@font-face {
  font-family: system;
  src: local("Arial");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #0a1013;
  color: #edf2f3;
  font:
    14px/1.5 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid #304047;
  border-radius: 8px;
  background: #162126;
  padding: 10px 15px;
}
button:hover {
  background: #223137;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #38ebd1;
  outline-offset: 3px;
}
.admin-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  border-right: 1px solid #253137;
  padding: 30px 22px;
  background: #0c1418;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.wordmark {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.wordmark span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #8eaaa9;
}
.workspace {
  margin: 24px 0 29px;
  font-size: 11px;
  color: #a4b1b7;
  display: flex;
  align-items: center;
  gap: 9px;
}
.workspace i,
.mini-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #38ebd1;
  border-radius: 50%;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
nav a,
nav button {
  font-size: 12px;
  border: 0;
  background: none;
  text-align: left;
  color: #a7b5bc;
  padding: 10px 12px;
  border-radius: 6px;
  line-height: 1.5;
}
nav .active {
  color: #38ebd1;
  background: #14302d;
}
nav a:hover,
nav button:hover {
  background: #17262b;
  color: white;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #637c86;
  margin: 32px 12px 11px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
  font-size: 10px;
  color: #849ca6;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.sidebar-bottom button {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding-left: 0;
  color: #8a9ea7;
  font-size: 11px;
}
.admin-main {
  margin-left: 246px;
  width: calc(100% - 246px);
}
.admin-top {
  height: 80px;
  border-bottom: 1px solid #253137;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #889ba5;
  font-size: 12px;
}
.admin-top b {
  margin: 0 14px;
  color: #405660;
}
.private {
  font-size: 10px;
  color: #9fb1b8;
}
#page {
  padding: 42px;
  max-width: 1600px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: #38ebd1;
  font-weight: 650;
  margin: 0 0 9px;
}
h1 {
  font-size: clamp(29px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
.muted,
.intro {
  color: #8fa4ae;
}
.intro {
  font-size: 13px;
  max-width: 600px;
  line-height: 1.8;
  margin: 0;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 32px;
}
.primary {
  background: #38ebd1;
  color: #071815;
  border-color: #38ebd1;
  font-weight: 650;
}
.primary:hover {
  background: #77f3e1;
  color: #071815;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 30px 0;
}
.stat {
  border: 1px solid #293940;
  background: #101b20;
  border-radius: 12px;
  padding: 20px;
}
.stat label {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #8fa5af;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 500;
  margin: 8px 0 3px;
}
.stat small {
  font-size: 10px;
  color: #748e99;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.panel {
  border: 1px solid #293940;
  border-radius: 12px;
  padding: 25px;
  background: #101a1f;
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
}
.panel-head p {
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #2c434b;
  color: #a9c6cb;
  border-radius: 30px;
  padding: 3px 9px;
  font-size: 10px;
  white-space: nowrap;
}
.pill.green {
  color: #38ebd1;
  background: #102d29;
}
.pill.amber {
  color: #e7c995;
  background: #2b271e;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #233239;
}
.row:last-child {
  border: 0;
}
.row small {
  display: block;
  color: #8097a2;
  margin-top: 4px;
  font-size: 11px;
}
.row button {
  font-size: 11px;
  align-self: center;
  white-space: nowrap;
}
.empty {
  padding: 24px 0;
  color: #8ba1ab;
  font-size: 12px;
}
.notice {
  border-left: 2px solid #38ebd1;
  padding: 0 0 0 14px;
  color: #a6bbc2;
  font-size: 12px;
  line-height: 1.8;
  margin: 22px 0;
}
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.filters input {
  flex: 1;
}
.filters select {
  width: 150px;
}
input,
select,
textarea {
  width: 100%;
  color: #e8f0f1;
  border: 1px solid #344951;
  background: #0d171c;
  border-radius: 7px;
  padding: 11px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #38ebd1;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-size: 11px;
  color: #a3b8c0;
  margin-bottom: 15px;
}
label input,
label textarea,
label select {
  margin-top: 6px;
  font-size: 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.content-card {
  border: 1px solid #2a3b43;
  border-radius: 12px;
  background: #111d22;
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #93abb5;
}
.content-card h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.content-card p {
  color: #8fa6b0;
  font-size: 12px;
  margin: 0;
  flex: 1;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-bottom button {
  background: none;
  border: none;
  padding: 3px 0;
  font-size: 11px;
  color: #38ebd1;
}
.source {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: #78929e;
  overflow-wrap: anywhere;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #293c45;
  font-size: 12px;
}
th {
  font-size: 10px;
  color: #7f99a5;
  font-weight: 500;
}
.calendar-day {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #26383f;
  padding: 18px 0;
}
.calendar-day > strong {
  width: 80px;
  color: #a0b8c1;
  font-size: 12px;
}
.calendar-day div {
  flex: 1;
}
.calendar-day small {
  color: #7894a1;
}
.budget-bar {
  height: 7px;
  border-radius: 8px;
  background: #203039;
  overflow: hidden;
  margin: 18px 0;
}
.budget-bar div {
  height: 100%;
  background: #38ebd1;
}
#toast {
  position: fixed;
  right: 30px;
  bottom: 25px;
  max-width: 430px;
  border: 1px solid #3b5d62;
  background: #183139;
  padding: 15px 22px;
  border-radius: 9px;
  color: #d7f6f3;
  display: none;
  z-index: 10;
}
dialog {
  background: #111d22;
  color: #e7f0f2;
  border: 1px solid #39555f;
  border-radius: 14px;
  width: min(790px, 94vw);
  max-height: 90vh;
  padding: 28px;
}
dialog::backdrop {
  background: #000a;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
}
.dialog-head button {
  border: 0;
  background: none;
  font-size: 25px;
  padding: 0;
}
.form-row {
  display: flex;
  gap: 14px;
}
.form-row label {
  flex: 1;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.dialog-actions button {
  font-size: 11px;
}
#candidates .panel {
  margin-top: 14px;
}
#draft-media {
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid #304047;
  border-radius: 12px;
}
#draft-media h3 {
  margin: 0 0 10px;
}
.draft-media-controls,
.draft-media-pagination:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.draft-media-controls button,
.draft-media-pagination button {
  padding: 7px 10px;
  font-size: 12px;
}
.draft-media-controls button[aria-pressed="true"] {
  color: #38ebd1;
  background: #14302d;
}
.draft-media-stage {
  margin-top: 12px;
}
.draft-media-stage .asset-preview {
  margin: 0;
  height: clamp(190px, 51vh, 520px);
  max-height: none;
}
.draft-media-pagination {
  justify-content: center;
  margin-top: 10px;
}
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #15332d, #0a1013 65%);
}
.login-card {
  padding: 42px;
  width: min(480px, 94vw);
  border: 1px solid #2c444a;
  border-radius: 16px;
  background: #101b20;
}
.login-card .eyebrow {
  margin-top: 44px;
}
.login-card h1 {
  font-size: 34px;
}
.login-card p {
  color: #93a9b2;
  font-size: 13px;
}
.login-card form {
  margin-top: 30px;
}
.login-card .primary {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.login-card small {
  color: #68838e;
  font-size: 10px;
}
.login-card #login-error {
  color: #f3b0a7;
  min-height: 20px;
}
body.factory-with-nav {
  padding-top: 52px;
}
.shared-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #0b171d;
  border-bottom: 1px solid #2b4148;
  padding: 14px 4vw;
  display: flex;
  gap: 25px;
  font-size: 12px;
  color: #b2c7cf;
}
.shared-nav a:hover {
  color: #38ebd1;
}
@media (min-width: 1500px) {
  #page {
    padding: 50px 58px;
  }
  .admin-top {
    padding: 0 58px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 210px;
    padding: 26px 14px;
  }
  .admin-main {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  #page {
    padding: 28px;
  }
  .admin-top {
    padding: 0 28px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .admin-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 18px;
    display: block;
  }
  .workspace,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  #modules,
  #marketing-nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 12px;
  }
  #modules a,
  #marketing-nav button {
    white-space: nowrap;
    font-size: 11px;
  }
  .admin-main {
    margin: 0;
    width: 100%;
  }
  .admin-top {
    height: 55px;
    padding: 0 20px;
  }
  #page {
    padding: 24px 20px;
  }
  .page-head {
    align-items: start;
  }
  .page-head > .primary {
    font-size: 11px;
    white-space: nowrap;
    padding: 9px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .private {
    display: none;
  }
  .form-row {
    flex-wrap: wrap;
  }
  .form-row label {
    min-width: 170px;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 26px;
  }
  .panel {
    padding: 19px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters select {
    width: 140px;
  }
  th,
  td {
    padding: 10px 6px;
    font-size: 10px;
  }
}
/* Remote operations use the same studio composition and components. */
.asset-preview{display:block;width:100%;max-height:420px;object-fit:contain;background:#080e11;border-radius:12px;margin:0 0 18px}
.check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;margin:14px 0}
.check input{width:auto;margin-top:3px;flex:0 0 auto}
.device-code{display:block;letter-spacing:3px;font-size:24px;margin:18px 0}
.exact-caption{white-space:pre-wrap}
.asset-gallery{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}
.asset-gallery .asset-preview{max-height:680px}
details{border-top:1px solid #243136;padding:16px 0;margin-top:12px}
summary{cursor:pointer;font-size:13px;color:#a5bfc2;line-height:1.6}
details form{margin-top:18px}
button:disabled{opacity:.45;cursor:wait}
