.brand { gap: 10px; min-width: 0; letter-spacing: normal; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  border: 1px solid rgba(241, 203, 120, .45);
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 18px rgba(213, 170, 85, .28), inset 0 0 0 1px rgba(255,255,255,.05);
}

/* Monthly closing and comparison */
.monthly-comparison {
  margin: 18px 0;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid color-mix(in srgb, var(--accent, #f4c541) 34%, rgba(255,255,255,.08));
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 48px rgba(0,0,0,.2);
}

.month-comparison-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.month-comparison-heading > div:first-child {
  display: grid;
  gap: 4px;
}

.month-comparison-heading span,
.month-snapshot span,
.month-delta-grid article > span {
  color: var(--accent, #f4c541);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.month-comparison-heading strong {
  color: var(--text, #f7f7f7);
  font-size: 1.08rem;
}

.month-comparison-heading small,
.month-snapshot small {
  color: var(--muted, #9ea4ad);
  line-height: 1.45;
}

.month-period-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.month-period-buttons button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: var(--muted, #a9adb4);
  background: rgba(0,0,0,.22);
  font: inherit;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
}

.month-period-buttons button:hover,
.month-period-buttons button.selected {
  border-color: var(--accent, #f4c541);
  color: var(--text, #fff);
  background: color-mix(in srgb, var(--accent, #f4c541) 14%, transparent);
}

.month-snapshot-grid,
.month-delta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.month-snapshot {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(0,0,0,.2);
}

.month-snapshot.current {
  border-color: color-mix(in srgb, var(--accent, #f4c541) 48%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #f4c541) 10%, transparent), rgba(0,0,0,.2));
}

.month-snapshot > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.month-snapshot > div strong { font-size: .78rem; }
.month-snapshot > b { color: var(--text, #fff); font-size: clamp(1.35rem, 3vw, 2rem); }
.month-snapshot p { margin: 0; color: var(--text, #f0f0f0); font-size: .78rem; }

.month-delta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.month-delta-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}

.month-delta-grid article strong { font-size: .92rem; }
.month-delta-grid article small { color: var(--muted, #9298a1); font-size: .68rem; }
.month-delta,
.month-delta-grid em {
  display: inline-flex;
  width: fit-content;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: .66rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.month-delta.up { color: #72e5a5; background: rgba(38,190,105,.12); }
.month-delta.down { color: #ff8d8d; background: rgba(225,64,64,.13); }
.month-delta.neutral { color: var(--muted, #aaa); background: rgba(255,255,255,.06); }
.month-comparison-empty { margin: 10px 0 0; color: var(--muted, #9da2aa); font-size: .76rem; }

.month-agent-comparison { margin-top: 16px; }
.month-agent-row {
  display: grid;
  grid-template-columns: minmax(135px, 1.1fr) minmax(150px, .9fr) minmax(170px, 1fr) minmax(170px, 1.2fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .75rem;
}
.month-agent-row > strong { min-width: 0; overflow-wrap: anywhere; }
.month-agent-row > small { color: var(--muted, #9ca1aa); }

.month-creator-comparison {
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.month-creator-comparison summary {
  padding: 13px 0 5px;
  color: var(--accent, #f4c541);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
}
.month-creator-head,
.month-creator-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(120px, 1fr) minmax(100px, .8fr) minmax(100px, .8fr) minmax(90px, .7fr) minmax(110px, .8fr);
  align-items: center;
  gap: 9px;
  min-width: 760px;
  padding: 9px 10px;
}
.month-creator-scroll { overflow-x: auto; }
.month-creator-head {
  margin-top: 8px;
  color: var(--muted, #989ea7);
  border-bottom: 1px solid rgba(255,255,255,.09);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .07em;
}
.month-creator-row {
  border-bottom: 1px solid rgba(255,255,255,.055);
  color: var(--text, #eee);
  font-size: .72rem;
}
.month-creator-row > strong,
.month-creator-row > span { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .month-delta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .month-agent-row { grid-template-columns: minmax(130px, 1fr) 1fr 1fr; }
  .month-agent-row > small { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .monthly-comparison { padding: 14px; border-radius: 15px; }
  .month-comparison-heading { align-items: stretch; flex-direction: column; }
  .month-period-buttons { justify-content: flex-start; }
  .month-snapshot-grid,
  .month-delta-grid { grid-template-columns: 1fr; }
  .month-agent-row { grid-template-columns: 1fr; gap: 5px; }
  .month-agent-row > small { grid-column: auto; }
}
.brand-copy { display: grid; gap: 3px; min-width: 0; line-height: 1; }
.brand-copy strong { color: #fbfbf8; font-size: 14px; font-weight: 900; letter-spacing: .16em; }
.brand-copy span { color: var(--gold-bright); font-size: 7px; font-weight: 800; letter-spacing: .21em; white-space: nowrap; }
.cockpit-footer { gap: 14px; padding-top: 7px; }
.footer-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.footer-brand img { width: 25px; height: 25px; flex: 0 0 auto; border: 1px solid rgba(241,203,120,.28); border-radius: 7px; object-fit: cover; }
.footer-brand div { display: grid; gap: 3px; }
.footer-brand strong { color: #bdb7aa; font-size: 8px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.footer-brand small { color: var(--gold); font-size: 6px; font-weight: 700; letter-spacing: .18em; white-space: nowrap; }

/* The cockpit keeps its gold identity while its light and depth follow local time. */
body {
  --ambience-card: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.014));
  --ambience-music: linear-gradient(145deg, rgba(224,174,83,.13), rgba(255,255,255,.015));
  --ambience-live: linear-gradient(110deg, rgba(243,203,112,.13), rgba(255,255,255,.02) 60%);
  --ambience-fps: linear-gradient(145deg, rgba(224,174,83,.18), rgba(255,255,255,.025));
  --ambience-line: rgba(221,177,95,.22);
  --ambience-tab: rgba(12,12,12,.88);
  --ambience-label: #d8b777;
  position: relative;
  background: radial-gradient(105% 34% at 50% -2%, #252b3b 0%, transparent 52%), linear-gradient(140deg, #0b0d14, #050609 60%);
  transition: background 1.2s ease, color .8s ease;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 28% at 84% 10%, rgba(180,200,255,.045), transparent 72%);
  opacity: .8;
  transition: background 1.2s ease, opacity 1.2s ease;
}

.dashboard { position: relative; z-index: 1; }
.system-state .ambience-label { color: var(--ambience-label); font-size: 8px; }

body[data-ambience="morning"] {
  --ambience-card: linear-gradient(145deg, rgba(255,214,158,.10), rgba(255,255,255,.02));
  --ambience-music: linear-gradient(145deg, rgba(244,174,92,.19), rgba(255,245,218,.025));
  --ambience-live: linear-gradient(110deg, rgba(250,186,111,.17), rgba(255,246,224,.025) 60%);
  --ambience-fps: linear-gradient(145deg, rgba(246,178,96,.22), rgba(255,248,234,.03));
  --ambience-line: rgba(248,193,119,.28);
  --ambience-tab: rgba(31,21,16,.88);
  --ambience-label: #ffd59b;
  background: radial-gradient(105% 38% at 50% -4%, #663b20 0%, transparent 54%), linear-gradient(140deg, #17100e, #080707 62%);
}
body[data-ambience="morning"]::before { background: radial-gradient(52% 31% at 15% 0%, rgba(255,179,104,.12), transparent 70%); }

body[data-ambience="day"] {
  --ambience-card: linear-gradient(145deg, rgba(255,248,219,.09), rgba(255,255,255,.027));
  --ambience-music: linear-gradient(145deg, rgba(239,203,116,.20), rgba(255,255,255,.04));
  --ambience-live: linear-gradient(110deg, rgba(246,213,137,.17), rgba(255,255,255,.04) 60%);
  --ambience-fps: linear-gradient(145deg, rgba(237,204,114,.20), rgba(255,255,255,.04));
  --ambience-line: rgba(244,215,146,.27);
  --ambience-tab: rgba(28,28,21,.88);
  --ambience-label: #fff0bc;
  background: radial-gradient(105% 42% at 50% -7%, #555037 0%, transparent 56%), linear-gradient(140deg, #12130f, #070807 62%);
}
body[data-ambience="day"]::before { background: radial-gradient(52% 31% at 86% 0%, rgba(255,236,164,.09), transparent 70%); }

body[data-ambience="evening"] {
  --ambience-card: linear-gradient(145deg, rgba(173,130,199,.075), rgba(255,255,255,.012));
  --ambience-music: linear-gradient(145deg, rgba(225,150,107,.15), rgba(157,113,185,.024));
  --ambience-live: linear-gradient(110deg, rgba(209,135,108,.14), rgba(150,105,181,.02) 60%);
  --ambience-fps: linear-gradient(145deg, rgba(215,143,103,.16), rgba(150,105,181,.025));
  --ambience-line: rgba(205,153,190,.22);
  --ambience-tab: rgba(20,14,26,.9);
  --ambience-label: #e6b0d1;
  background: radial-gradient(104% 38% at 50% -4%, #341d3d 0%, transparent 54%), linear-gradient(140deg, #0d0911, #040405 62%);
}
body[data-ambience="evening"]::before { background: radial-gradient(50% 30% at 88% 3%, rgba(168,91,160,.10), transparent 71%); }

body[data-ambience="night"] {
  --ambience-card: linear-gradient(145deg, rgba(122,162,220,.06), rgba(255,255,255,.008));
  --ambience-music: linear-gradient(145deg, rgba(204,172,97,.14), rgba(94,139,206,.025));
  --ambience-live: linear-gradient(110deg, rgba(98,157,225,.11), rgba(255,255,255,.014) 60%);
  --ambience-fps: linear-gradient(145deg, rgba(101,158,226,.13), rgba(255,255,255,.018));
  --ambience-line: rgba(119,157,213,.20);
  --ambience-tab: rgba(6,10,18,.92);
  --ambience-label: #9ec7ff;
  background: radial-gradient(106% 36% at 50% -6%, #152039 0%, transparent 54%), linear-gradient(140deg, #06080e, #020305 62%);
}
body[data-ambience="night"]::before { background: radial-gradient(48% 28% at 84% 8%, rgba(63,130,231,.11), transparent 70%); opacity: 1; }

body[data-ambience] .core-card,
body[data-ambience] .metric-card,
body[data-ambience] .panel,
body[data-ambience] .utility-card,
body[data-ambience] .agency-panel,
body[data-ambience] .agency-pilot {
  background: var(--ambience-card);
  border-color: var(--ambience-line);
  transition: background 1.2s ease, border-color 1.2s ease, box-shadow 1.2s ease;
}
body[data-ambience] .music-card { background: var(--ambience-music); }
body[data-ambience] .live-panel { background: var(--ambience-live); border-color: var(--ambience-line); transition: background 1.2s ease, border-color 1.2s ease; }
body[data-ambience] .fps-card { background: var(--ambience-fps); }
body[data-ambience] .local-tabs { background: var(--ambience-tab); border-color: var(--ambience-line); transition: background 1.2s ease, border-color 1.2s ease; }
body[data-ambience] .local-tabs button.selected { border-color: var(--ambience-line); }

body[data-ambience="night"] .music-active .music-control.primary,
body[data-ambience="night"] .music-active .sound-bars i,
body[data-ambience="night"] .live-dot,
body[data-ambience="night"] .connection i,
body[data-ambience="night"] .local-tabs button.selected {
  box-shadow: 0 0 13px rgba(116,171,255,.42), 0 0 26px rgba(116,171,255,.16);
}

.local-tabs { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 5px; border: 1px solid rgba(255,255,255,.09); background: rgba(12,12,12,.92); box-shadow: 0 9px 22px rgba(0,0,0,.26); backdrop-filter: blur(10px); }
.local-tabs button, .creator-filters button { border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; letter-spacing: .05em; padding: 9px 6px; }
.local-tabs button.selected, .creator-filters button.selected { border-color: rgba(224, 174, 83, .46); background: rgba(224, 174, 83, .13); color: var(--gold-bright); }
.tab-view[hidden] { display: none !important; }
.tab-intro { margin: 14px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.card-footer span {
  max-width: 66%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hardware-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 13px 0; }
.hardware-strip > div { min-width: 0; padding: 9px 10px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.025); }
.hardware-strip span { display: block; overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-overflow: ellipsis; white-space: nowrap; }
.hardware-strip strong { display: block; overflow: hidden; margin-top: 6px; color: #fff4df; font-size: 10px; font-weight: 700; letter-spacing: .015em; text-overflow: ellipsis; white-space: nowrap; }

.utility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.utility-card {
  position: relative;
  min-height: 154px;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.utility-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.utility-heading span { font-size: 9px; color: #796743; }
.utility-heading h2 { margin: 0; font-size: 11px; letter-spacing: .15em; }
.utility-heading small { margin-left: auto; color: #90dc9c; font-size: 8px; letter-spacing: .1em; }
.utility-main { display: flex; align-items: baseline; gap: 5px; margin-top: 16px; }
.utility-main strong { color: var(--gold-bright); font-size: 37px; line-height: 1; letter-spacing: -.07em; }
.utility-main small { color: var(--gold); font-size: 11px; }
.utility-card p { margin: 12px 0 3px; overflow: hidden; color: #ddd7cc; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.utility-card > span { display: block; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.music-card { display: flex; flex-direction: column; min-height: 210px; background: linear-gradient(145deg, rgba(224,174,83,.11), rgba(255,255,255,.012)); }
.music-copy { min-width: 0; margin-top: 14px; padding-right: 78px; }
.music-copy strong { color: var(--gold-bright); font-size: 18px; letter-spacing: .04em; }
.music-copy p { margin: 6px 0 0; }
.music-controls { position: static; display: grid; gap: 8px; margin-top: auto; padding-top: 14px; }
.track-controls, .volume-controls { display: flex; align-items: center; gap: 7px; }
.volume-controls span { width: 24px; color: #9b8960; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.music-control { display: grid; place-items: center; width: 31px; height: 29px; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; background: rgba(0,0,0,.18); color: #fff7e0; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.music-control:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(224,174,83,.75); background: rgba(224,174,83,.16); }
.music-control.primary { border-color: rgba(224,174,83,.48); background: rgba(224,174,83,.19); color: var(--gold-bright); }
.music-control:disabled { cursor: wait; opacity: .52; }
.sound-bars { position: absolute; right: 15px; top: 58px; display: flex; align-items: end; width: 67px; height: 19px; gap: 4px; }
.sound-bars i { display: block; flex: 1; height: 22%; background: #796638; opacity: .5; }
.music-active .sound-bars i { background: var(--gold); opacity: 1; animation: pulse .8s ease-in-out infinite alternate; }
.music-active .sound-bars i:nth-child(2) { height: 76%; animation-delay: .1s; }
.music-active .sound-bars i:nth-child(3) { height: 42%; animation-delay: .2s; }
.music-active .sound-bars i:nth-child(4) { height: 100%; animation-delay: .3s; }
.music-active .sound-bars i:nth-child(5) { height: 63%; animation-delay: .4s; }
.music-active .sound-bars i:nth-child(6) { height: 88%; animation-delay: .5s; }
.music-active .sound-bars i:nth-child(7) { height: 48%; animation-delay: .6s; }
.music-active .sound-bars i:nth-child(8) { height: 71%; animation-delay: .7s; }

.dashboard { overflow-x: hidden; overflow-y: auto; }
.local-card { background: linear-gradient(145deg, rgba(112, 214, 160, .08), rgba(255,255,255,.012)); }
.agency-panel { padding: 16px; border: 1px solid rgba(224, 174, 83, .38); background: linear-gradient(145deg, rgba(224, 174, 83, .09), rgba(255,255,255,.018)); box-shadow: inset 0 1px rgba(255,255,255,.05); }
.agency-panel .panel-heading { gap: 9px; }
.agency-panel .panel-heading small { margin-left: auto; color: var(--gold); font-size: 8px; letter-spacing: .1em; }
.agency-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 15px 0; }
.agency-summary article { min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.09); background: rgba(5,5,5,.23); }
.agency-summary span, .agency-summary small { display: block; overflow: hidden; color: var(--muted); font-size: 8px; letter-spacing: .09em; text-overflow: ellipsis; white-space: nowrap; }
.agency-summary strong { display: block; overflow: hidden; margin: 9px 0 6px; color: var(--gold-bright); font-size: clamp(18px, 3.5vw, 27px); letter-spacing: -.055em; text-overflow: ellipsis; white-space: nowrap; }
.agency-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.agency-form label { display: flex; flex-direction: column; gap: 6px; color: #c8c2b8; font-size: 9px; letter-spacing: .07em; }
.agency-form input, .agency-form textarea, .creator-form input { width: 100%; border: 1px solid rgba(224, 174, 83, .25); background: rgba(0,0,0,.28); color: #fff8e8; font: inherit; font-size: 11px; outline: none; padding: 9px; }
.agency-form input:focus, .agency-form textarea:focus, .creator-form input:focus { border-color: var(--gold); }
.agency-form textarea { resize: vertical; min-height: 52px; }
.agency-form .agency-notes { grid-column: 1 / -1; }
.agency-save, .creator-form button { border: 1px solid rgba(224, 174, 83, .8); background: var(--gold); color: #1b1509; font: inherit; font-size: 10px; font-weight: 800; letter-spacing: .05em; cursor: pointer; padding: 10px; }
.agency-save:hover:not(:disabled), .creator-form button:hover { background: var(--gold-bright); }
.agency-save:disabled { cursor: wait; opacity: .6; }
.agency-history { display: flex; gap: 10px; align-items: flex-start; margin-top: 13px; padding: 10px 0; border-top: 1px solid var(--line); }
.agency-history > span, .agency-creators-head > span { flex: 0 0 auto; color: var(--gold); font-size: 8px; letter-spacing: .1em; }
.agency-history p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.agency-creators { padding-top: 12px; border-top: 1px solid var(--line); }
.agency-creators-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.agency-creators-head small { color: var(--muted); font-size: 9px; }
.creator-form { display: grid; grid-template-columns: 1.1fr .8fr .75fr .65fr 1.4fr auto; gap: 7px; }
.creator-form button { padding: 7px 10px; }
.creator-list { margin-top: 7px; }
.creator-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.creator-row > div { min-width: 0; flex: 1; }
.creator-row strong, .creator-row span, .creator-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-row strong { color: #f7f2e7; font-size: 11px; }
.creator-row span { margin-top: 3px; color: var(--gold); font-size: 9px; }
.creator-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.creator-row button { flex: 0 0 auto; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #d8d1c4; cursor: pointer; font-size: 16px; line-height: 1; }
.creator-row button:hover { border-color: #df694f; color: #df694f; }
.creator-badge { display: inline-block; margin-left: 5px; padding: 2px 5px; border: 1px solid currentColor; border-radius: 99px; font-size: 7px; font-style: normal; font-weight: 800; letter-spacing: .06em; vertical-align: 2px; }
.creator-badge.good { color: #80d998; }.creator-badge.gold { color: var(--gold); }.creator-badge.bad { color: #e48b79; }
.creator-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.creator-filters button { border-color: rgba(255,255,255,.1); padding: 7px 9px; }
.import-comparison-controls { display:grid; grid-template-columns:repeat(3,minmax(150px,1fr)); gap:12px; margin:16px 0; }
.import-comparison-controls label,.monthly-comparison>label { display:grid; gap:6px; }
.import-comparison-controls select,.monthly-comparison>label select { width:100%; background:#171717; color:#fff; border:1px solid #806329; padding:10px; border-radius:7px; }
.import-comparison-controls button { color:#e2b557; background:#191919; border:1px solid #806329; border-radius:7px; padding:10px; }
.import-charts { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:16px 0; }
.import-chart { margin:0; padding:12px; background:#111; border:1px solid #4b3b22; border-radius:10px; min-width:0; }
.import-chart figcaption { color:#e2b557; font-size:12px; margin-bottom:12px; }
.import-chart svg { width:100%; height:auto; }
.import-chart svg text { fill:#ddd; font-size:13px; }
.import-table { margin:12px 0; padding:10px; border:1px solid #4b3b22; border-radius:8px; }
.import-table summary { cursor:pointer; color:#e2b557; }
.import-table>div { overflow-x:auto; margin-top:10px; }
.import-table table { width:100%; border-collapse:collapse; min-width:620px; }
.import-table th,.import-table td { padding:9px; text-align:left; border-bottom:1px solid #333; font-size:12px; }
@media(max-width:800px) { .import-comparison-controls,.import-charts { grid-template-columns:1fr; } }
.creator-import-card { margin: 15px 0; padding: 13px; border: 1px solid rgba(224,174,83,.42); background: linear-gradient(135deg, rgba(224,174,83,.13), rgba(0,0,0,.13)); }
.creator-import-card > div { display: grid; gap: 3px; }
.creator-import-card > div > span, .creator-import-card > div > small, .creator-import-history, .insights-heading { color: var(--muted); font-size: 9px; letter-spacing: .06em; }
.creator-import-card > div > span, .insights-heading > span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.creator-import-card > div > strong { color: #fff7e7; font-size: 15px; letter-spacing: .02em; }
.creator-import-form { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(120px, .75fr) auto; gap: 8px; align-items: end; margin-top: 12px; }
.creator-import-form label, .creator-controls > label { display: grid; gap: 5px; color: #c8c2b8; font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.creator-import-form input, .creator-controls select { width: 100%; min-width: 0; border: 1px solid rgba(224,174,83,.25); background: rgba(0,0,0,.31); color: #fff8e8; font: inherit; font-size: 10px; padding: 8px; }
.creator-import-form input:focus, .creator-controls select:focus { outline: none; border-color: var(--gold); }
.creator-import-form button { height: 34px; border: 1px solid rgba(224,174,83,.8); background: var(--gold); color: #1b1509; font: inherit; font-size: 10px; font-weight: 800; letter-spacing: .05em; cursor: pointer; padding: 0 13px; }
.creator-import-form button:disabled { cursor: wait; opacity: .55; }
.creator-import-history { display: block; margin: 10px 0 0; line-height: 1.6; }
.creator-import-history span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-import-history b { color: var(--gold-bright); }
.creator-insights { margin: 15px 0; padding: 11px; border: 1px solid rgba(255,255,255,.09); background: rgba(0,0,0,.16); }
.insights-heading { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.07); }
.insights-heading small { font-size: 8px; text-align: right; }
.agent-scoreboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 7px; margin-top: 9px; }
.agent-score { min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.agent-score strong, .agent-score span, .agent-score b, .agent-score small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-score strong { color: #f7f2e7; font-size: 10px; }.agent-score span { margin-top: 4px; color: var(--muted); font-size: 8px; }.agent-score b { margin-top: 8px; color: var(--gold-bright); font-size: 15px; }.agent-score small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.creator-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .45fr) minmax(130px, .5fr); gap: 9px; align-items: end; margin: 13px 0; }
.creator-controls .creator-filters { margin: 0; }
.creator-row { padding: 11px 0; }
.creator-row small { white-space: normal; line-height: 1.45; }
.creator-next { color: #c8c2b8 !important; }
.creator-delta { display: inline-block; margin-left: 4px; font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .03em; }.creator-delta.up { color: #80d998; }.creator-delta.down { color: #e48b79; }.creator-delta.neutral { color: #9d978c; }
.creator-badge.support { color: #e7b65a; }
.manual-entry { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 11px; }
.manual-entry summary { color: var(--muted); cursor: pointer; font-size: 9px; letter-spacing: .05em; }.manual-entry[open] summary { color: var(--gold-bright); margin-bottom: 10px; }
.agency-pilot { margin: 19px -1px -1px; padding: 16px; border: 1px solid rgba(224,174,83,.35); background: linear-gradient(150deg, rgba(224,174,83,.10), rgba(0,0,0,.14)); }
.agency-pilot > .panel-heading { margin-bottom: 13px; }.agency-pilot > .panel-heading small { margin-left: auto; color: var(--gold); font-size: 8px; letter-spacing: .08em; }
.creator-decisions { margin: 14px 0; padding: 11px; border: 1px solid rgba(255,255,255,.09); background: rgba(0,0,0,.16); }
.creator-decision-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.decision-card { min-width: 0; min-height: 104px; padding: 10px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.025); color: #f7f2e7; text-align: left; cursor: pointer; }
.decision-card:hover, .decision-card.selected { transform: translateY(-1px); border-color: rgba(224,174,83,.72); background: rgba(224,174,83,.12); }
.decision-card span, .decision-card strong, .decision-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decision-card span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; }.decision-card strong { margin: 11px 0 7px; color: var(--gold-bright); font-size: 27px; letter-spacing: -.06em; }.decision-card small { color: #c9c2b8; font-size: 8px; }
.decision-card.confirmed { border-color: rgba(128,217,152,.26); }.decision-card.confirmed strong { color: #80d998; }.decision-card.potential { border-color: rgba(224,174,83,.35); }.decision-card.maintain { border-color: rgba(164,174,190,.22); }.decision-card.maintain strong { color: #c7d0dd; }.decision-card.support { border-color: rgba(231,182,90,.38); }.decision-card.support strong { color: #e7b65a; }
.creator-table-labels { display: grid; grid-template-columns: minmax(140px,1.25fr) minmax(125px,.95fr) minmax(85px,.65fr) minmax(88px,.7fr) minmax(55px,.5fr) minmax(115px,1fr) 26px; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(224,174,83,.32); color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.creator-table-row { display: grid; grid-template-columns: minmax(140px,1.25fr) minmax(125px,.95fr) minmax(85px,.65fr) minmax(88px,.7fr) minmax(55px,.5fr) minmax(115px,1fr) 26px; gap: 8px; align-items: center; }
.creator-table-row > div { min-width: 0; }.creator-table-row .creator-cell > span, .creator-table-row .creator-cell > b, .creator-table-row .creator-cell > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-table-row .creator-cell > span { margin: 0; color: #d3c7ae; font-size: 9px; }.creator-table-row .creator-cell > b { color: #f7f2e7; font-size: 11px; }.creator-table-row .creator-cell > small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.creator-table-row .creator-name-cell strong { font-size: 11px; }.creator-table-row .creator-name-cell small { white-space: nowrap; }.creator-table-row .creator-decision { min-width: 0; }.creator-table-row .creator-decision small { white-space: nowrap; }
.creator-table-row .creator-badge { margin: 0; }.creator-badge.confirmed { color: #80d998; }.creator-badge.potential { color: var(--gold-bright); }.creator-badge.maintain { color: #c7d0dd; }
.followup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.followup-card { min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.17); }
.followup-card h3 { margin: 0 0 11px; color: var(--gold-bright); font-size: 12px; letter-spacing: .05em; }
.followup-card.incident-card { border-color: rgba(223,105,79,.28); }
.compact-form { display: grid; gap: 7px; }
.compact-form input, .compact-form select, .compact-form textarea { width: 100%; border: 1px solid rgba(224,174,83,.24); background: rgba(0,0,0,.26); color: #fff8e8; font: inherit; font-size: 10px; padding: 8px; }
.compact-form textarea { resize: vertical; }
.compact-form button { border: 1px solid rgba(224,174,83,.7); background: rgba(224,174,83,.15); color: var(--gold-bright); cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; padding: 9px; }
.compact-form button:hover { background: rgba(224,174,83,.29); }
.followup-list { margin-top: 10px; }
.followup-item { display: flex; gap: 8px; align-items: flex-start; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08); }
.followup-item > div { min-width: 0; flex: 1; }
.followup-item b, .followup-item span, .followup-item p, .followup-item small { display: block; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.followup-item b { color: #f7f2e7; font-size: 10px; }.followup-item span { margin-top: 3px; color: var(--gold); font-size: 8px; }.followup-item p { margin-top: 5px; color: #cbc4b9; font-size: 9px; line-height: 1.4; }.followup-item small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.followup-item button { flex: 0 0 auto; width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #d8d1c4; cursor: pointer; font-size: 15px; line-height: 1; }
.followup-item button:hover { border-color: #df694f; color: #df694f; }

@media (max-width: 480px) {
  .utility-grid { gap: 10px; }
  .utility-card { padding: 12px; }
  .agency-summary { grid-template-columns: 1fr; }
  .agency-form { grid-template-columns: 1fr; }
  .agency-form .agency-notes { grid-column: auto; }
  .creator-form { grid-template-columns: 1fr 1fr; }
  .creator-form input:nth-child(6), .creator-form button { grid-column: 1 / -1; }
  .local-tabs { position: static; grid-template-columns: 1fr 1fr; }
  .followup-grid { grid-template-columns: 1fr; }
  .creator-import-form, .creator-controls { grid-template-columns: 1fr; }
  .creator-import-form button { width: 100%; }
  .insights-heading { display: grid; }
  .insights-heading small { text-align: left; }
  .agency-pilot { margin-left: -1px; margin-right: -1px; padding: 12px; }
  .creator-decision-grid { grid-template-columns: 1fr 1fr; }
  .creator-table-labels { display: none; }
  .creator-table-row { grid-template-columns: 1.1fr .9fr; gap: 7px 11px; align-items: start; padding: 12px 0; }
  .creator-table-row .creator-value, .creator-table-row .creator-decision { border-top: 1px solid rgba(255,255,255,.06); padding-top: 6px; }
  .creator-table-row button { grid-column: 2; grid-row: 1; justify-self: end; }
}

/* Local configuration panel. Settings are stored only in the Windows profile. */
.settings-card {
  width: min(100%, 570px);
  max-height: calc(100vh - 30px);
  overflow-y: auto;
  border-color: rgba(224,174,83,.42);
  background: linear-gradient(155deg, #171410, #0d0e12 70%);
}
.settings-card h2 { margin-bottom: 20px; }
.settings-section {
  margin-top: 16px;
  padding: 14px 0 2px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.settings-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.settings-section-heading span { color: var(--gold-bright); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.settings-section-heading small { color: var(--muted); font-size: 9px; text-align: right; }
.settings-card input[type="url"] {
  width: 100%;
  border: 1px solid rgba(224,174,83,.28);
  background: rgba(0,0,0,.27);
  color: #fff8e8;
  font: inherit;
  padding: 11px;
}
.settings-card input[type="url"]:focus { outline: none; border-color: var(--gold-bright); }
.spotify-settings p { margin: -4px 0 11px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.spotify-open-button {
  border: 1px solid rgba(224,174,83,.55);
  background: rgba(224,174,83,.12);
  color: var(--gold-bright);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 9px 12px;
}
.spotify-open-button:hover { background: rgba(224,174,83,.24); }
.settings-status { min-height: 15px; margin: 14px 0 0; color: #90dc9c; font-size: 10px; }
.settings-status.error { color: #ec9686; }

body[data-density="compact"] .dashboard { gap: clamp(12px, 1.5vw, 20px); padding: clamp(14px, 2vw, 30px); }
body[data-density="compact"] .core-card, body[data-density="compact"] .panel, body[data-density="compact"] .utility-card { padding: 13px; }
body[data-density="spacious"] .dashboard { gap: clamp(22px, 3vw, 36px); padding: clamp(24px, 4vw, 54px); }
body[data-density="spacious"] .core-card, body[data-density="spacious"] .panel, body[data-density="spacious"] .utility-card { padding: 20px; }

@media (max-width: 480px) {
  .settings-card { padding: 22px 18px; }
  .settings-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .settings-section-heading small { text-align: left; }
}

/* Preferences: a compact, Windows-inspired local control surface. */
:root { --glass-blur: 12px; --interface-scale: 1; --wallpaper-brightness: 65%; --wallpaper-opacity: .28; --wallpaper-blur: 0px; }
.pc-home { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); }
.pc-home > .home-widget { order: 0; }
.monitoring-group { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); }
.monitoring-group[hidden], .home-widget[hidden], [data-monitor-item][hidden], [data-monitor-temperature][hidden], [data-weather-field][hidden] { display: none !important; }
.utility-grid[data-home-widget="music"] .music-card { grid-column: 1 / -1; }
.weather-card .utility-main { margin-top: 13px; }
.weather-card .utility-main strong { font-size: 33px; }
.weather-details { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.weather-details small { border: 1px solid rgba(255,255,255,.09); color: var(--muted); font-size: 7px; letter-spacing: .08em; padding: 4px 5px; }
.weather-details b { color: var(--gold-bright); font-weight: 700; }
body[data-music-size="compact"] .music-card { min-height: 168px; }
body[data-music-size="compact"] .music-card .music-controls { padding-top: 8px; }

body[data-accent="blue"] { --gold: #4f9dff; --gold-bright: #a9d1ff; --line: rgba(96,168,255,.25); }
body[data-accent="red"] { --gold: #e45d67; --gold-bright: #ffb1b6; --line: rgba(228,93,103,.25); }
body[data-accent="green"] { --gold: #54be86; --gold-bright: #b1f0c9; --line: rgba(84,190,134,.25); }
body[data-accent="purple"] { --gold: #a47de8; --gold-bright: #d8c3ff; --line: rgba(164,125,232,.25); }
body[data-transparency="off"] .core-card, body[data-transparency="off"] .metric-card, body[data-transparency="off"] .panel, body[data-transparency="off"] .live-panel, body[data-transparency="off"] .utility-card, body[data-transparency="off"] .agency-panel, body[data-transparency="off"] .local-tabs { backdrop-filter: none; background-color: #111; }
body[data-transparency="low"] .core-card, body[data-transparency="low"] .metric-card, body[data-transparency="low"] .panel, body[data-transparency="low"] .live-panel, body[data-transparency="low"] .utility-card, body[data-transparency="low"] .agency-panel, body[data-transparency="low"] .local-tabs { backdrop-filter: blur(calc(var(--glass-blur) * .45)); }
body[data-transparency="medium"] .core-card, body[data-transparency="medium"] .metric-card, body[data-transparency="medium"] .panel, body[data-transparency="medium"] .live-panel, body[data-transparency="medium"] .utility-card, body[data-transparency="medium"] .agency-panel, body[data-transparency="medium"] .local-tabs { backdrop-filter: blur(var(--glass-blur)); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 10px 28px rgba(0,0,0,.12); }
body[data-has-wallpaper="true"]::before { inset: -3%; background-image: linear-gradient(135deg, rgba(4,6,12,.58), rgba(4,6,12,.12)), var(--wallpaper-image); background-position: center; background-repeat: no-repeat; background-size: cover; filter: blur(var(--wallpaper-blur)) brightness(var(--wallpaper-brightness)); opacity: var(--wallpaper-opacity); transform: scale(1.04); }
body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
.dashboard { zoom: var(--interface-scale); }

body[data-theme="light"] { --ink: #edf0f5; --surface: #fbfcff; --surface2: #f2f4f8; --muted: #647083; --line: rgba(88,104,132,.2); color: #18202c; background: radial-gradient(115% 43% at 50% -10%, #d6e0ee 0%, transparent 54%), linear-gradient(140deg, #f7f9fd, #e7ebf2 70%); }
body[data-theme="light"]::before { opacity: .18; }
body[data-theme="light"] .topbar, body[data-theme="light"] .hero h1, body[data-theme="light"] .card-footer strong, body[data-theme="light"] .utility-card p, body[data-theme="light"] .hardware-strip strong, body[data-theme="light"] .creator-row strong { color: #202938; }
body[data-theme="light"] .core-card, body[data-theme="light"] .metric-card, body[data-theme="light"] .panel, body[data-theme="light"] .live-panel, body[data-theme="light"] .utility-card, body[data-theme="light"] .agency-panel, body[data-theme="light"] .agency-pilot { background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(247,249,253,.62)); box-shadow: inset 0 1px rgba(255,255,255,.95), 0 8px 22px rgba(31,42,61,.06); }
body[data-theme="light"] .local-tabs { background: rgba(250,252,255,.82); box-shadow: 0 9px 22px rgba(31,42,61,.1); }
body[data-theme="light"] .local-tabs button, body[data-theme="light"] .row span, body[data-theme="light"] .utility-card > span, body[data-theme="light"] .system-state small { color: #5e6b7d; }
body[data-theme="light"] .dial { background: radial-gradient(circle at center,#f7f9fc 0 61%,transparent 62%), conic-gradient(var(--gold) var(--value),#d6dce7 0); }
body[data-theme="light"] .progress { background: #d9dfeb; }
body[data-theme="light"] .weather-details small { border-color: rgba(40,54,79,.14); }

dialog#settings-dialog { width: min(1120px, calc(100% - 32px)); max-width: none; }
dialog#settings-dialog::backdrop { background: rgba(4,6,11,.62); backdrop-filter: blur(12px); }
.preferences-shell { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: linear-gradient(145deg, rgba(22,24,31,.98), rgba(9,10,14,.98)); box-shadow: 0 30px 100px rgba(0,0,0,.58); }
.preferences-header { display: flex; justify-content: space-between; gap: 24px; padding: 26px 28px 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.preferences-header .eyebrow { margin-bottom: 7px; }
.preferences-header h2 { margin: 0; color: #fff8e8; font-size: 29px; letter-spacing: -.04em; }
.preferences-header p:not(.eyebrow) { margin: 7px 0 0; color: #9c9ba1; font-size: 11px; }
.preferences-header .close { position: static; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.04); font-size: 22px; }
.preferences-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 540px; max-height: min(660px, calc(100vh - 205px)); }
.preferences-nav { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; border-right: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.018); overflow-y: auto; }
.preferences-nav button[hidden], .preference-panel[hidden], [data-access-scope][hidden], [data-access-capability][hidden] { display: none !important; }
.preferences-nav button { display: grid; grid-template-columns: 23px 1fr; grid-template-rows: auto auto; gap: 2px 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #aaa8ae; cursor: pointer; padding: 9px 10px; text-align: left; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.preferences-nav button > span { grid-row: 1 / 3; display: grid; place-items: center; color: var(--gold); font-size: 13px; }
.preferences-nav button b { color: inherit; font-size: 10px; letter-spacing: .025em; }
.preferences-nav button small { color: #6d6c73; font-size: 8px; }
.preferences-nav button:hover, .preferences-nav button.selected { border-color: rgba(224,174,83,.25); background: rgba(224,174,83,.11); color: #fff4dc; }
.preferences-nav button.selected small { color: var(--gold-bright); }
.preferences-content { min-width: 0; overflow-y: auto; padding: 25px 28px 28px; }
.preference-panel { max-width: 690px; animation: preference-in .2s ease both; }
@keyframes preference-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.preference-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.preference-heading > span { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; border: 1px solid rgba(224,174,83,.34); border-radius: 9px; color: var(--gold-bright); background: rgba(224,174,83,.09); font-size: 15px; }
.preference-heading h3 { margin: 1px 0 5px; color: #fff9eb; font-size: 17px; letter-spacing: -.02em; }
.preference-heading p { margin: 0; color: #929096; font-size: 10px; line-height: 1.45; }
.preference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.preference-panel label { display: flex; flex-direction: column; gap: 7px; margin: 0 0 14px; color: #d3d0d5; font-size: 10px; letter-spacing: .035em; }
.preference-panel select, .preference-panel input[type="text"], .preference-panel input[type="url"], .preference-panel input[type="file"] { width: 100%; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(0,0,0,.22); color: #fffaf0; font: inherit; font-size: 11px; padding: 10px 11px; outline: none; }
.preference-panel select:focus, .preference-panel input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent); }
.preference-block { margin: 5px 0 17px; }
.preference-block > span, .home-order > span { display: block; margin-bottom: 9px; color: #d3d0d5; font-size: 10px; letter-spacing: .035em; }
.accent-swatches { display: flex; gap: 10px; }
.accent-swatches button { width: 30px; height: 30px; border: 2px solid transparent; border-radius: 50%; background: #d5aa55; cursor: pointer; box-shadow: inset 0 0 0 3px rgba(0,0,0,.28); }
.accent-swatches button:nth-child(2) { background: #4f9dff; }.accent-swatches button:nth-child(3) { background: #e45d67; }.accent-swatches button:nth-child(4) { background: #54be86; }.accent-swatches button:nth-child(5) { background: #a47de8; }
.accent-swatches button.selected { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 52%, transparent); }
.range-preference { display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: 8px !important; }
.range-preference output { color: var(--gold-bright); font-size: 10px; }
.range-preference input { grid-column: 1 / -1; width: 100%; accent-color: var(--gold); }
.switch-preference { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px !important; margin: 12px 0 !important; cursor: pointer; }
.switch-preference input { position: absolute; opacity: 0; pointer-events: none; }
.switch-preference > span { width: 31px; height: 18px; border-radius: 99px; background: #46444c; position: relative; transition: background .18s ease; }
.switch-preference > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #d8d6dc; transition: transform .18s ease; }
.switch-preference input:checked + span { background: var(--gold); }.switch-preference input:checked + span::after { transform: translateX(13px); background: #12110f; }
.toggle-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.toggle-matrix label { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 38px; margin: 0; padding: 9px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.025); color: #d6d3d8; font-size: 9px; }
.toggle-matrix input { accent-color: var(--gold); }
.subtle-action, .danger-action { margin: 1px 0 15px; border: 1px solid rgba(224,174,83,.46); border-radius: 8px; background: rgba(224,174,83,.1); color: var(--gold-bright); cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; padding: 9px 12px; }
.subtle-action:hover { background: rgba(224,174,83,.2); }
.inline-actions { display: flex; align-items: center; gap: 12px; margin: -3px 0 11px; }.inline-actions .subtle-action { margin: 0; }.inline-actions small { color: #8d8a91; font-size: 9px; }
.home-order { margin-top: 18px; }.home-order ol { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.home-order li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 9px; min-height: 38px; padding: 7px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.025); }
.home-order li > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(224,174,83,.15); color: var(--gold-bright); font-size: 9px; }.home-order li b { color: #e6e2e8; font-size: 10px; }
.home-order li div { display: flex; gap: 5px; }.home-order button { width: 25px; height: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: transparent; color: #d7d3da; cursor: pointer; }
.home-order button:hover { border-color: var(--gold); color: var(--gold-bright); }
.data-actions { display: grid; gap: 8px; align-items: start; }.data-actions .subtle-action, .data-actions .danger-action { width: fit-content; margin: 0; }.danger-action { border-color: rgba(228,93,103,.48); background: rgba(228,93,103,.1); color: #ffb1b6; }.danger-action:hover { background: rgba(228,93,103,.2); }.data-note { margin: 17px 0 0; color: #87848b; font-size: 9px; }
.preferences-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 12px 24px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.018); }.preferences-footer span { color: #91dca5; font-size: 10px; }.preferences-footer span.error { color: #f2a092; }.preferences-footer button { border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: #15110a; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; padding: 9px 14px; }

/* Agency direction: all indicators below are built from local imports and follow-up records. */
.agency-direction, .agency-goals, .activity-journal { margin-top: 17px; padding: 14px; border: 1px solid rgba(224,174,83,.24); background: linear-gradient(145deg, rgba(224,174,83,.07), rgba(0,0,0,.12)); }
.direction-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.direction-grid article { min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(7,8,12,.24); }
.direction-grid span, .direction-grid small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.direction-grid strong { display: block; overflow: hidden; margin: 7px 0 4px; color: #fff5df; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.direction-grid .positive-value { color: #8ce1a5; }.direction-grid .negative-value { color: #ef9a86; }
.agency-overview-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 10px; margin-top: 10px; }
.priority-center, .agency-health, .agency-statistics { min-width: 0; padding: 11px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.16); }
.priority-list, .health-list { display: grid; gap: 6px; margin-top: 10px; }
.priority-item { display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); }
.priority-item:first-child { border-top: 0; }.priority-item > span { display: inline-flex; justify-content: center; padding: 3px 4px; border: 1px solid currentColor; color: #adb6c2; font-size: 7px; font-weight: 800; letter-spacing: .05em; }
.priority-item.priority > span { color: #ee8e78; }.priority-item.attention > span { color: var(--gold-bright); }.priority-item.info > span { color: #93d7a2; }
.priority-item b { display: block; color: #f6f0e5; font-size: 10px; }.priority-item p { margin: 3px 0 0; color: #b7b1a8; font-size: 9px; line-height: 1.35; }
.health-item { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: center; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.06); }
.health-item:first-child { border-top: 0; }.health-item > span { color: #ded8cd; font-size: 9px; }.health-item > b { color: var(--gold-bright); font-size: 10px; }.health-item > i { grid-column: 1 / -1; display: block; height: 4px; overflow: hidden; background: rgba(255,255,255,.09); }.health-item > i > em { display: block; height: 100%; background: var(--gold); }.health-item small { grid-column: 1 / -1; color: var(--muted); font-size: 8px; }
.agency-statistics { margin-top: 10px; }.statistics-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)); gap: 7px; margin-top: 10px; }
.stat-day { position: relative; display: grid; gap: 6px; overflow: hidden; min-height: 113px; padding: 9px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.stat-day > b { color: var(--gold-bright); font-size: 9px; }.stat-day > div { display: grid; grid-template-columns: 1fr 34px; gap: 5px; align-items: center; }.stat-day span, .stat-day small { color: #c6c0b5; font-size: 8px; }.stat-day > div i { display: block; height: 4px; background: linear-gradient(90deg, var(--gold) var(--bar), rgba(255,255,255,.09) var(--bar)); }.stat-day > em { position: absolute; right: 8px; bottom: 8px; width: 3px; height: 20px; background: linear-gradient(to top, #7edfa0 var(--active), rgba(255,255,255,.08) var(--active)); }
.goal-form { display: grid; grid-template-columns: 1.1fr .8fr 1fr .7fr auto; gap: 8px; margin-top: 10px; }.goal-form select, .goal-form input, .creator-event-form select, .creator-event-form input { min-width: 0; border: 1px solid rgba(255,255,255,.13); background: rgba(0,0,0,.22); color: #fff8e8; font: inherit; font-size: 9px; padding: 9px; }
.goal-form button, .creator-event-form button, .provider-card button { border: 1px solid rgba(224,174,83,.6); background: rgba(224,174,83,.13); color: var(--gold-bright); cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; padding: 8px 10px; }
.goal-list { display: grid; gap: 7px; margin-top: 11px; }.goal-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: center; padding: 9px 28px 9px 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.14); }.goal-item strong, .goal-item span { display: block; }.goal-item strong { color: #f7f2e7; font-size: 10px; }.goal-item span { margin-top: 3px; color: var(--muted); font-size: 8px; }.goal-item > b { color: var(--gold-bright); font-size: 10px; }.goal-progress { grid-column: 1 / -1; height: 4px; overflow: hidden; background: rgba(255,255,255,.1); }.goal-progress i { display: block; height: 100%; background: var(--gold); }.goal-item.reached .goal-progress i { background: #82d998; }.goal-item.watch .goal-progress i { background: #e6bd65; }.goal-item button { position: absolute; top: 8px; right: 7px; border: 0; background: transparent; color: #aaa39a; cursor: pointer; font-size: 16px; line-height: 1; }
.creator-table-labels, .creator-table-row { grid-template-columns: minmax(140px,1.25fr) minmax(125px,.95fr) minmax(85px,.65fr) minmax(88px,.7fr) minmax(55px,.5fr) minmax(115px,1fr) 66px; }
.creator-row-actions { display: flex; justify-content: flex-end; gap: 4px; }.creator-row-actions button { min-width: 24px; height: 23px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #d8d1c4; cursor: pointer; font: inherit; font-size: 8px; line-height: 1; }.creator-row-actions button:last-child { font-size: 15px; }.creator-row-actions button:hover { border-color: var(--gold); color: var(--gold-bright); }
.activity-list { display: grid; gap: 5px; margin-top: 10px; }.activity-item { display: grid; grid-template-columns: 112px 1fr; gap: 9px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08); }.activity-item:first-child { border-top: 0; }.activity-item time { color: var(--gold); font-size: 8px; }.activity-item b, .activity-item span, .activity-item p { display: block; }.activity-item b { color: #f6f0e4; font-size: 10px; }.activity-item span { margin-top: 2px; color: var(--muted); font-size: 8px; }.activity-item p { margin: 4px 0 0; color: #c5bfb5; font-size: 9px; line-height: 1.35; }
.live-provider-empty { display: flex; align-items: center; gap: 12px; margin-top: 15px; padding: 16px; border: 1px solid rgba(224,174,83,.28); background: linear-gradient(135deg, rgba(224,174,83,.11), rgba(0,0,0,.15)); }.live-provider-empty .live-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #a9a298; box-shadow: 0 0 0 4px rgba(169,162,152,.1); }.live-provider-empty strong { display: block; color: #fff6e4; font-size: 12px; }.live-provider-empty p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }.live-session-placeholder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; padding: 12px; border: 1px dashed rgba(255,255,255,.14); color: #8d8982; font-size: 8px; letter-spacing: .06em; }.live-session-placeholder p { grid-column: 1 / -1; margin: 5px 0 0; color: #b7b0a5; font-size: 10px; letter-spacing: 0; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }.provider-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 176px; padding: 13px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.16); }.provider-card > span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .07em; }.provider-card h3 { margin: 10px 0 5px; color: #fff7e7; font-size: 13px; }.provider-card p { flex: 1; margin: 0 0 12px; color: #b8b1a8; font-size: 9px; line-height: 1.45; }.provider-status { display: inline-block; margin-bottom: 9px; padding: 3px 5px; border: 1px solid currentColor; color: #b6afa4; font-size: 8px; }.provider-status.local { color: #84d99e; }.provider-message { margin: 13px 0 0; color: var(--muted); font-size: 9px; }
dialog#creator-detail-dialog { width: min(960px, calc(100% - 32px)); max-width: none; border: 0; padding: 0; background: transparent; color: #fff7e7; }dialog#creator-detail-dialog::backdrop { background: rgba(4,6,11,.68); backdrop-filter: blur(10px); }.creator-detail-shell { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: linear-gradient(145deg, #1a1b21, #090a0e); box-shadow: 0 28px 80px rgba(0,0,0,.6); }.creator-detail-header { display: flex; justify-content: space-between; gap: 22px; padding: 24px; border-bottom: 1px solid rgba(255,255,255,.08); }.creator-detail-header h2 { margin: 3px 0 5px; color: #fff8e7; font-size: 25px; }.creator-detail-header p:not(.eyebrow) { margin: 0; color: #9e9a93; font-size: 10px; }.creator-detail-header .close { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: transparent; color: #fff; cursor: pointer; font-size: 21px; }.creator-detail-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 18px; padding: 20px 24px; }.creator-detail-grid h3, .creator-history h3 { margin: 0 0 11px; color: var(--gold-bright); font-size: 12px; letter-spacing: .04em; }.creator-detail-grid .compact-form { display: grid; gap: 8px; }.creator-detail-grid label { display: grid; gap: 5px; color: #c9c4bd; font-size: 9px; }.creator-detail-grid input, .creator-detail-grid select, .creator-detail-grid textarea { border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.22); color: #fff8e8; font: inherit; font-size: 10px; padding: 8px; }.creator-detail-grid button { border: 1px solid var(--gold); background: var(--gold); color: #1a150d; cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; padding: 9px; }.detail-performance { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 19px; }.detail-performance > div { padding: 9px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }.detail-performance span, .detail-performance b { display: block; }.detail-performance span { color: var(--muted); font-size: 8px; }.detail-performance b { margin-top: 5px; color: #f7f2e7; font-size: 10px; }.creator-history { padding: 0 24px 24px; }.creator-event-form { display: grid; grid-template-columns: 170px 1fr auto; gap: 8px; margin-top: 10px; }

/* Agency signature: Duck Elite remains the visual foundation. */
.agency-identity { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: min(290px, 30vw); margin-left: auto; padding: 5px 10px; border-left: 1px solid rgba(224,174,83,.28); }
.agency-identity[hidden] { display: none !important; }
.agency-identity img, .agency-brand-preview img { flex: 0 0 auto; width: 31px; height: 31px; border: 1px solid rgba(224,174,83,.45); border-radius: 8px; background: rgba(255,255,255,.04); object-fit: cover; }
.agency-identity > div { min-width: 0; }.agency-identity small, .agency-identity strong, .agency-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agency-identity small { color: var(--gold); font-size: 7px; font-weight: 800; letter-spacing: .09em; }.agency-identity strong { margin-top: 2px; color: #fff5e1; font-size: 10px; }.agency-identity span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.agency-brand-preview { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 13px; border: 1px solid rgba(224,174,83,.28); background: linear-gradient(135deg, rgba(224,174,83,.10), rgba(255,255,255,.02)); }.agency-brand-preview > div { min-width: 0; }.agency-brand-preview span, .agency-brand-preview strong, .agency-brand-preview small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.agency-brand-preview span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .09em; }.agency-brand-preview strong { margin-top: 5px; color: #fff8e9; font-size: 15px; }.agency-brand-preview small { margin-top: 4px; color: #aaa49a; font-size: 9px; }

/* Local role workspaces and reward program. */
.access-identity { display: grid; gap: 1px; min-width: 104px; margin-left: auto; padding: 4px 9px; border-left: 1px solid rgba(224,174,83,.28); }.access-identity[hidden] { display: none !important; }.access-identity small { color: var(--gold); font-size: 7px; font-weight: 800; letter-spacing: .08em; }.access-identity strong { color: #fff7e5; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.access-identity button { width: fit-content; padding: 0; border: 0; background: transparent; color: #a9a49c; cursor: pointer; font: inherit; font-size: 8px; }
.workspace-panel { display: grid; gap: 18px; }.workspace-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.workspace-summary article { min-height: 102px; padding: 16px; border: 1px solid rgba(224,174,83,.22); background: linear-gradient(145deg, rgba(224,174,83,.10), rgba(255,255,255,.025)); }.workspace-summary span, .workspace-summary strong, .workspace-summary small { display: block; }.workspace-summary span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .08em; }.workspace-summary strong { margin: 9px 0 4px; color: #fff9ed; font-size: 24px; }.workspace-summary small { color: #aaa49a; font-size: 9px; }
.personal-backstage-import { padding: 17px; border: 1px solid rgba(224,174,83,.32); background: linear-gradient(135deg, rgba(224,174,83,.1), rgba(0,0,0,.17)); }.personal-backstage-import[hidden] { display: none !important; }.personal-backstage-import-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .45fr) auto; gap: 9px; align-items: end; margin-top: 12px; }.personal-backstage-import-form label { display: grid; gap: 5px; min-width: 0; color: #d9d3c9; font-size: 8px; }.personal-backstage-import-form input { min-width: 0; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.22); color: #fff7e4; font: inherit; font-size: 10px; padding: 8px; }.personal-backstage-import-form button { min-height: 34px; border: 1px solid var(--gold); background: var(--gold); color: #19130a; cursor: pointer; font: inherit; font-size: 9px; font-weight: 900; padding: 8px 10px; }.personal-backstage-import-form button:disabled { cursor: wait; opacity: .65; }.personal-backstage-import-status { margin: 10px 0 0; color: #e4d7bf; font-size: 9px; line-height: 1.45; }.personal-backstage-import-history { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 6px; margin-top: 9px; }.personal-backstage-import-history span { padding: 7px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); color: #aaa49a; font-size: 8px; line-height: 1.4; }.personal-backstage-import-history b { color: #f4d789; }
.workspace-scope-switch { padding: 17px; border: 1px solid rgba(224,174,83,.28); background: linear-gradient(135deg, rgba(224,174,83,.08), rgba(255,255,255,.018)); }.workspace-scope-switch[hidden] { display: none !important; }.workspace-scope-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }.workspace-scope-tile { display: grid; min-height: 106px; padding: 14px; border: 1px solid rgba(255,255,255,.11); background: rgba(0,0,0,.18); color: inherit; cursor: pointer; font: inherit; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }.workspace-scope-tile:hover { transform: translateY(-1px); border-color: rgba(224,174,83,.5); }.workspace-scope-tile.selected { border-color: var(--gold); background: linear-gradient(135deg, rgba(224,174,83,.18), rgba(255,255,255,.035)); box-shadow: inset 0 0 0 1px rgba(255,218,134,.12); }.workspace-scope-tile span, .workspace-scope-tile strong, .workspace-scope-tile small { display: block; }.workspace-scope-tile span { color: var(--gold); font-size: 8px; font-weight: 900; letter-spacing: .09em; }.workspace-scope-tile strong { margin-top: 12px; color: #fff8e8; font-size: 25px; }.workspace-scope-tile small { margin-top: 5px; color: #aaa49a; font-size: 9px; }
.backstage-access { padding: 17px; border: 1px solid rgba(224,174,83,.25); background: linear-gradient(135deg, rgba(224,174,83,.09), rgba(0,0,0,.13)); }.backstage-mine { margin-top: 11px; }.backstage-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin-top: 8px; }.backstage-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; min-height: 112px; padding: 12px; border: 1px solid rgba(255,255,255,.09); background: rgba(0,0,0,.17); }.backstage-card.mine { border-color: rgba(224,174,83,.48); background: linear-gradient(130deg, rgba(224,174,83,.15), rgba(255,255,255,.025)); }.backstage-card span, .backstage-card strong, .backstage-card small, .backstage-card em, .backstage-card p { display: block; }.backstage-card span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .08em; }.backstage-card strong { margin-top: 4px; overflow: hidden; color: #fff8e9; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.backstage-card small { margin-top: 4px; color: #aaa49a; font-size: 9px; }.backstage-card > b { align-self: start; color: #f5d481; font-size: 8px; letter-spacing: .05em; }.backstage-card em { grid-column: 1 / -1; color: #e0dbd2; font-size: 9px; font-style: normal; }.backstage-card p { grid-column: 1 / -1; margin: 1px 0 0; color: #8f8a82; font-size: 8px; line-height: 1.35; }
.reward-section { padding: 17px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.13); }.reward-section[hidden] { display: none !important; }.reward-list { display: grid; gap: 8px; margin-top: 12px; }.reward-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 15px; padding: 12px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.025); }.reward-card.eligible { border-color: rgba(224,174,83,.42); background: linear-gradient(110deg, rgba(224,174,83,.12), rgba(255,255,255,.025)); }.reward-card.withheld { border-color: rgba(210,91,65,.45); background: rgba(116,30,20,.14); }.reward-card span, .reward-card strong, .reward-card small, .reward-card em { display: block; }.reward-card span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .08em; }.reward-card strong { margin-top: 3px; color: #fff8ea; font-size: 13px; }.reward-card small { margin-top: 5px; color: #aaa49a; font-size: 9px; }.reward-card > b { align-self: center; color: #ffd46d; font-size: 21px; text-align: right; }.reward-card > b .reward-amount { margin-top: 4px; color: #fff0c8; font-size: 9px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }.reward-card em { grid-column: 1 / -1; color: #d2ccc2; font-size: 9px; font-style: normal; }.reward-card button { position: absolute; right: 10px; bottom: 9px; padding: 4px 6px; border: 1px solid rgba(224,174,83,.42); background: transparent; color: #f6d98f; cursor: pointer; font: inherit; font-size: 8px; }.reward-card button + * { padding-bottom: 15px; }.reward-rules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }.reward-rules span { padding: 9px 7px; border: 1px solid rgba(224,174,83,.25); background: rgba(224,174,83,.06); color: #fff4d7; font-size: 10px; text-align: center; }.reward-rules small, .reward-rules b { display: block; }.reward-rules small { margin-top: 4px; color: #aaa49a; font-size: 8px; }.reward-rules b { margin-top: 6px; color: #ffd46d; font-size: 12px; }.reward-legal-note { margin: 11px 0 0; color: #aaa49a; font-size: 9px; line-height: 1.55; }
.reward-manual-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }.reward-manual-controls > span { margin-right: 2px; color: #c9c1b6; font-size: 8px; letter-spacing: .04em; }.reward-manual-controls input { width: 52px; min-width: 0; border: 1px solid rgba(224,174,83,.4); background: rgba(0,0,0,.22); color: #fff6dd; font: inherit; font-size: 10px; padding: 5px 6px; }.reward-manual-controls button { position: static; padding: 5px 7px; font-size: 8px; }.reward-manual-controls button[data-agent-recruit-auto] { border-color: rgba(255,255,255,.17); color: #c5c0b8; }
.backstage-followup { padding: 17px; border: 1px solid rgba(224,174,83,.28); background: linear-gradient(135deg, rgba(224,174,83,.08), rgba(0,0,0,.18)); }.backstage-followup[hidden] { display: none !important; }.backstage-followup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }.backstage-followup-card { min-width: 0; padding: 13px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.17); }.backstage-followup-card h3 { margin: 0 0 10px; color: #fff5dc; font-size: 12px; }.backstage-followup-list { display: grid; gap: 7px; margin-top: 12px; }.backstage-followup-item { padding: 9px; border-left: 2px solid rgba(224,174,83,.52); background: rgba(255,255,255,.025); }.backstage-followup-item b, .backstage-followup-item span, .backstage-followup-item p, .backstage-followup-item small { display: block; }.backstage-followup-item b { color: #fff6e4; font-size: 10px; }.backstage-followup-item span { margin-top: 3px; color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .06em; }.backstage-followup-item p { margin: 6px 0 0; color: #d5d0c9; font-size: 9px; line-height: 1.45; white-space: pre-wrap; }.backstage-followup-item small { margin-top: 6px; color: #9b968e; font-size: 8px; }.backstage-followup-item em { display: block; margin-top: 6px; color: #e5ca87; font-size: 8px; font-style: normal; }
.backstage-followup-item.archived { border-left-color: rgba(160,154,145,.42); opacity: .82; }.backstage-followup-item-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin-top: 8px; }.backstage-followup-item-actions button { border: 1px solid rgba(224,174,83,.45); background: rgba(224,174,83,.08); color: #ffe3a2; cursor: pointer; font: inherit; font-size: 8px; font-weight: 800; padding: 5px 7px; }.backstage-followup-item-actions button.danger { border-color: rgba(224,112,91,.5); background: rgba(132,43,30,.12); color: #ffb2a1; }.backstage-followup-archive { margin-top: 12px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.15); }.backstage-followup-archive[hidden] { display: none !important; }.backstage-followup-archive summary { cursor: pointer; color: #f2d58c; font-size: 9px; font-weight: 900; letter-spacing: .08em; }.backstage-followup-archive summary b { margin-left: 6px; color: #fff5dc; }.backstage-followup-archive > p { margin: 8px 0 0; color: #aaa49a; font-size: 8px; line-height: 1.45; }
.reward-payment-panel { padding: 17px; border: 1px solid rgba(224,174,83,.3); background: linear-gradient(135deg, rgba(224,174,83,.11), rgba(255,255,255,.018)); }.payment-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 11px; color: #d7d0c3; font-size: 9px; }.payment-summary strong { color: #ffe2a0; font-size: 13px; }.payment-summary span { padding: 4px 6px; border: 1px solid rgba(255,255,255,.11); color: #aaa49a; }.payment-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }.payment-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 9px; padding: 11px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.17); }.payment-item.paid { border-color: rgba(111,211,144,.36); background: rgba(80,170,108,.08); }.payment-item span, .payment-item strong, .payment-item b, .payment-item small { display: block; }.payment-item span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .07em; }.payment-item strong { margin-top: 3px; overflow: hidden; color: #fff8e9; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.payment-item .payment-amount { margin-top: 5px; color: #fff0c8; font-size: 12px; }.payment-item small { grid-column: 1 / -1; color: #aaa49a; font-size: 8px; }.payment-item button { align-self: center; padding: 6px 7px; border: 1px solid rgba(224,174,83,.55); background: rgba(224,174,83,.13); color: #ffe3a2; cursor: pointer; font: inherit; font-size: 8px; font-weight: 800; }.payment-item.paid button { border-color: rgba(255,255,255,.14); background: transparent; color: #b9b4ab; }
.reward-placeholder { margin-top: 11px; padding: 13px; border: 1px dashed rgba(224,174,83,.34); background: rgba(224,174,83,.045); }.reward-placeholder strong { color: #ffe5a3; font-size: 11px; }.reward-placeholder p { margin: 5px 0 0; color: #aaa49a; font-size: 9px; line-height: 1.5; }
.member-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 11px; padding: 15px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.16); }.member-form label { display: grid; gap: 5px; color: #d4cec5; font-size: 9px; }.member-form input, .member-form select, .member-form textarea { min-width: 0; border: 1px solid rgba(255,255,255,.13); background: rgba(0,0,0,.21); color: #fff8e9; font: inherit; font-size: 10px; padding: 8px; }.member-form-actions { display: flex; align-items: end; gap: 7px; }.member-form button, .member-card button { align-self: end; border: 1px solid var(--gold); background: var(--gold); color: #19130a; cursor: pointer; font: inherit; font-size: 10px; font-weight: 900; padding: 10px; }.member-form-actions button:last-child, .member-card button { border-color: rgba(224,174,83,.48); background: transparent; color: var(--gold-bright); }.member-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }.member-card { padding: 11px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }.member-card strong, .member-card span, .member-card small { display: block; }.member-card strong { color: #fff8ea; font-size: 12px; }.member-card span { margin-top: 4px; color: var(--gold); font-size: 8px; font-weight: 800; }.member-card small { margin-top: 6px; color: #aaa49a; font-size: 9px; line-height: 1.4; }.member-card button { margin-top: 10px; padding: 6px 8px; font-size: 8px; }
dialog#access-dialog { width: min(430px, calc(100% - 28px)); border: 0; padding: 0; background: transparent; color: #fff8e9; }dialog#access-dialog::backdrop { background: rgba(2,4,8,.84); backdrop-filter: blur(11px); }.access-shell { padding: 28px; border: 1px solid rgba(224,174,83,.45); background: radial-gradient(circle at top right, rgba(224,174,83,.16), transparent 38%), linear-gradient(145deg, #171719, #090a0e); box-shadow: 0 32px 95px rgba(0,0,0,.7); }.access-shell h2 { margin: 3px 0 7px; font-size: 25px; }.access-shell header > p:not(.eyebrow) { margin: 0; color: #aaa49a; font-size: 11px; line-height: 1.5; }.access-form { display: grid; gap: 11px; margin-top: 21px; }.access-form label { display: grid; gap: 5px; color: #d7d0c6; font-size: 10px; }.access-form input { border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.23); color: #fff8e9; font: inherit; font-size: 12px; padding: 10px; }.access-form button { margin-top: 4px; border: 1px solid var(--gold); background: var(--gold); color: #17120b; cursor: pointer; font: inherit; font-size: 11px; font-weight: 900; padding: 11px; }.access-error { min-height: 16px; margin: 12px 0 0; color: #ffad9a; font-size: 10px; }.access-note { margin: 15px 0 0; color: #87827a; font-size: 9px; }
.access-form .remember-access { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 3px 8px; align-items: center; padding: 10px; border: 1px solid rgba(224,174,83,.18); background: rgba(224,174,83,.045); cursor: pointer; }.access-form .remember-access input { position: absolute; opacity: 0; pointer-events: none; }.access-form .remember-access > span { width: 31px; height: 18px; border-radius: 99px; background: #46444c; position: relative; transition: background .18s ease; }.access-form .remember-access > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #d8d6dc; transition: transform .18s ease; }.access-form .remember-access input:checked + span { background: var(--gold); }.access-form .remember-access input:checked + span::after { transform: translateX(13px); background: #12110f; }.access-form .remember-access b { color: #fff5dc; font-size: 10px; }.access-form .remember-access small { grid-column: 2; color: #979187; font-size: 8px; line-height: 1.4; }

.former-creators-archive { margin-top: 13px; border: 1px solid rgba(180, 177, 169, .22); background: rgba(255,255,255,.018); }.former-creators-archive[hidden] { display: none !important; }.former-creators-archive summary { display: flex; align-items: center; justify-content: space-between; padding: 12px; color: #d9d4cb; cursor: pointer; font-size: 9px; font-weight: 900; letter-spacing: .08em; }.former-creators-archive summary b { color: #d3aa66; font-size: 12px; }.former-creators-archive > p { margin: 0; padding: 0 12px 10px; color: #969188; font-size: 9px; line-height: 1.45; }.former-creators-list { display: grid; gap: 6px; padding: 0 12px 12px; }.former-creators-list article { padding: 9px 10px; border-left: 2px solid rgba(186,174,150,.45); background: rgba(0,0,0,.16); }.former-creators-list strong, .former-creators-list span, .former-creators-list small { display: block; }.former-creators-list strong { color: #d9d5cd; font-size: 11px; }.former-creators-list span { margin-top: 3px; color: #bcad93; font-size: 8px; font-weight: 800; letter-spacing: .06em; }.former-creators-list small { margin-top: 4px; color: #908b83; font-size: 9px; }
.member-director-access { grid-column: 1 / -1; margin: 0; padding: 13px; border: 1px solid rgba(224,174,83,.33); background: linear-gradient(135deg, rgba(224,174,83,.09), rgba(0,0,0,.16)); }.member-director-access[hidden] { display: none !important; }.member-director-access legend { padding: 0 6px; color: var(--gold-bright); font-size: 9px; font-weight: 900; letter-spacing: .07em; }.member-director-access > p { margin: 8px 0 11px; color: #aaa49a; font-size: 8px; line-height: 1.45; }.member-director-access .switch-preference { margin-bottom: 0; }.member-director-access .toggle-matrix { margin-top: 11px; }.member-director-access .toggle-matrix[hidden] { display: none !important; }

@media (max-width: 880px) {
  .direction-grid { grid-template-columns: 1fr 1fr; }.agency-overview-grid { grid-template-columns: 1fr; }.goal-form { grid-template-columns: 1fr 1fr; }.goal-form button { grid-column: 1 / -1; }.provider-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .activity-item { grid-template-columns: 1fr; gap: 4px; }.creator-detail-grid { grid-template-columns: 1fr; padding: 17px; }.creator-history { padding: 0 17px 17px; }.creator-detail-header { padding: 18px; }.creator-event-form { grid-template-columns: 1fr; }.live-session-placeholder { grid-template-columns: 1fr 1fr; }.provider-grid { grid-template-columns: 1fr; }.creator-table-row { grid-template-columns: 1.1fr .9fr; }.creator-row-actions { grid-column: 2; grid-row: 1; }.creator-table-row > .creator-row-actions + * { grid-column: auto; }.agency-identity { max-width: 44vw; padding-right: 0; }
  .workspace-summary, .workspace-scope-options, .member-form, .member-list, .backstage-directory, .backstage-followup-grid, .payment-list, .personal-backstage-import-form { grid-template-columns: 1fr; }.reward-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }.access-identity { min-width: 0; max-width: 34vw; }
}

@media (max-width: 720px) {
  .preferences-layout { grid-template-columns: 1fr; max-height: calc(100vh - 184px); }
  .preferences-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .preferences-nav button { padding: 8px; }.preferences-nav button small { display: none; }
  .preferences-content { padding: 21px; }.preferences-header { padding: 21px 21px 17px; }
}
@media (max-width: 480px) {
  dialog#settings-dialog { width: calc(100% - 16px); }.preferences-header h2 { font-size: 24px; }.preferences-header p:not(.eyebrow) { font-size: 10px; }
  .preference-grid, .toggle-matrix { grid-template-columns: 1fr; }.preferences-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }.preferences-nav button { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; }.preferences-nav button > span { grid-row: auto; }.preferences-nav button b { font-size: 8px; }.preferences-footer { padding: 11px 17px; }.preferences-footer span { max-width: 70%; }
}

/* Cockpit Evolution 2026 — responsive application shell and decision-first hierarchy. */
:root {
  --evo-radius-xl: 22px;
  --evo-radius-lg: 17px;
  --evo-radius-md: 12px;
  --evo-edge: rgba(255,255,255,.09);
  --evo-soft: rgba(255,255,255,.035);
  --evo-shadow: 0 18px 55px rgba(0,0,0,.24);
  --evo-sidebar: 224px;
}

html { scroll-behavior: smooth; }
body { min-width: 320px; }
.dashboard {
  width: min(100%, 1480px);
  padding: clamp(16px, 2.25vw, 34px);
  gap: clamp(14px, 1.7vw, 24px);
}

.topbar {
  min-height: 64px;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid var(--evo-edge);
  border-radius: var(--evo-radius-lg);
  background: rgba(9,10,14,.66);
  box-shadow: 0 12px 35px rgba(0,0,0,.17);
  backdrop-filter: blur(18px);
}
.topbar .brand { flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; }
.brand-copy strong { font-size: 15px; }
.brand-copy span { font-size: 7px; }
.active-section-context {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--evo-edge);
  line-height: 1;
}
.active-section-context small { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .18em; }
.active-section-context strong { overflow: hidden; color: #f8f4ea; font-size: 11px; letter-spacing: .11em; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topbar-actions .connection {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(127,220,145,.18);
  border-radius: 99px;
  background: rgba(127,220,145,.045);
}
.topbar-actions #open-settings {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--evo-edge);
  border-radius: 11px;
  background: var(--evo-soft);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.topbar-actions #open-settings:hover { transform: translateY(-1px); border-color: rgba(224,174,83,.5); background: rgba(224,174,83,.1); }
.agency-identity, .access-identity { min-width: 0; }

.local-tabs {
  border-radius: var(--evo-radius-lg);
  overflow: hidden;
}
.nav-intro, .nav-local-state { display: none; }
.local-tabs button {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border-radius: 9px;
  text-align: left;
}
.local-tabs button[hidden] { display: none !important; }
.nav-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  color: #aaa49b;
  background: rgba(255,255,255,.025);
  font-size: 12px;
}
.nav-copy { min-width: 0; display: grid; gap: 3px; }
.nav-copy strong { overflow: hidden; color: #c8c4bc; font-size: 9px; letter-spacing: .035em; text-overflow: ellipsis; white-space: nowrap; }
.nav-copy small { overflow: hidden; color: #6f6c67; font-size: 7px; font-weight: 600; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.local-tabs button.selected .nav-icon { border-color: rgba(224,174,83,.48); color: var(--gold-bright); background: rgba(224,174,83,.14); }
.local-tabs button.selected .nav-copy strong { color: var(--gold-bright); }
.local-tabs button.selected .nav-copy small { color: #b9a77f; }

.tab-view {
  min-width: 0;
  outline: none;
}
.tab-view.selected { animation: evoReveal .28s ease both; }
@keyframes evoReveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.pc-home { gap: 18px; }
.hero {
  min-height: 206px;
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--evo-edge);
  border-radius: var(--evo-radius-xl);
  background: radial-gradient(60% 120% at 0 50%, rgba(224,174,83,.12), transparent 72%), linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  box-shadow: var(--evo-shadow), inset 0 1px rgba(255,255,255,.055);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -150px;
  top: -165px;
  border: 1px solid rgba(224,174,83,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(224,174,83,.025), 0 0 0 76px rgba(224,174,83,.018);
  pointer-events: none;
}
.hero { position: relative; }
.hero h1 { font-size: clamp(72px, 11vw, 126px); }
.hero .eyebrow { max-width: 760px; line-height: 1.6; }
.system-state { position: relative; z-index: 1; min-width: 144px; }

.pc-status-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.pc-status-rail article {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--evo-edge);
  border-radius: var(--evo-radius-md);
  background: rgba(255,255,255,.026);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.pc-status-rail article.quick-fps { border-color: rgba(224,174,83,.34); background: linear-gradient(135deg, rgba(224,174,83,.13), rgba(255,255,255,.02)); }
.pc-status-rail span, .pc-status-rail small, .pc-status-rail strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-status-rail span { color: #8f8a81; font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.pc-status-rail strong { margin-top: 7px; color: #fff7e6; font-size: clamp(20px, 2.3vw, 29px); letter-spacing: -.045em; }
.pc-status-rail small { margin-top: 4px; color: #8e8980; font-size: 8px; }
.pc-status-rail .quick-fps strong { color: var(--gold-bright); }

.core-card, .metric-card, .panel, .live-panel, .utility-card, .agency-panel, .agency-pilot,
.workspace-summary article, .direction-card, .followup-card, .member-card, .payment-item, .backstage-followup-card {
  border-radius: var(--evo-radius-lg);
}
.core-card, .metric-card, .panel, .live-panel, .utility-card, .agency-panel, .agency-pilot { box-shadow: 0 15px 38px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.045); }
.core-card { min-height: 238px; padding: 20px; }
.core-card, .metric-card, .panel, .utility-card { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
body:not(.reduced-motion) .core-card:hover, body:not(.reduced-motion) .metric-card:hover, body:not(.reduced-motion) .panel:hover, body:not(.reduced-motion) .utility-card:hover { transform: translateY(-2px); border-color: rgba(224,174,83,.34); box-shadow: 0 20px 48px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.06); }
.dial { width: min(26vw, 142px); }
.hardware-strip > div, .agency-summary article, .workspace-summary article { border-radius: 11px; }
.metric-card { min-height: 156px; padding: 17px; }
.lower-grid { gap: 12px; }
.panel { padding: 18px; }
.live-panel { padding: 18px 20px; }

.utility-grid { gap: 12px; }
.utility-card { min-height: 170px; padding: 19px; }
.utility-grid[data-home-widget="weather"] { grid-template-columns: .72fr 1.28fr; }
.utility-grid[data-home-widget="music"] .music-card { min-height: 204px; }
.music-card {
  padding-right: clamp(18px, 18vw, 250px);
  background: radial-gradient(70% 140% at 100% 0, rgba(224,174,83,.2), transparent 65%), var(--ambience-music);
}
.music-copy { padding-right: 0; }
.music-copy strong { font-size: clamp(19px, 2.3vw, 28px); }
.music-controls { max-width: 430px; grid-template-columns: auto 1fr; align-items: end; gap: 18px; }
.music-control { width: 36px; height: 34px; border-radius: 10px; }
.sound-bars { width: clamp(90px, 12vw, 150px); height: 34px; right: 28px; top: 95px; }

.agency-panel { padding: clamp(18px, 2.1vw, 28px); }
.agency-panel > .panel-heading { min-height: 45px; }
.agency-panel > .panel-heading h2 { font-size: 13px; }
.agency-panel > .panel-heading span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(224,174,83,.28); border-radius: 8px; }
.tab-intro { max-width: 760px; margin: 12px 0 19px; font-size: 10px; }
.agency-summary, .workspace-summary { gap: 10px; }
.agency-summary article, .workspace-summary article { padding: 15px; background: rgba(0,0,0,.2); }
.agency-summary strong, .workspace-summary strong { font-variant-numeric: tabular-nums; }
.creator-controls, .creator-filters, .agency-history, .personal-backstage-import, .backstage-access, .backstage-followup, .reward-payment-panel {
  border-radius: var(--evo-radius-lg);
}
.creator-controls { position: sticky; top: 12px; z-index: 3; padding: 11px; background: rgba(10,10,12,.9); backdrop-filter: blur(15px); }
.creator-table-row { border-radius: 10px; padding-left: 10px; padding-right: 10px; transition: background .16s ease; }
.creator-table-row:hover { background: rgba(255,255,255,.026); }
.creator-row-openable { cursor: pointer; }
.creator-row-openable:hover { background: rgba(224,174,83,.055); }
.creator-row-openable:focus-visible { outline: 1px solid var(--gold); outline-offset: -1px; background: rgba(224,174,83,.055); }
.creator-open-indicator {
  display: grid !important;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 0 0 auto !important;
  overflow: visible !important;
  border: 1px solid rgba(224,174,83,.24);
  border-radius: 7px;
  color: var(--gold-bright) !important;
  font-size: 18px !important;
  line-height: 1;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.creator-row-openable:hover .creator-open-indicator,
.creator-row-openable:focus-visible .creator-open-indicator { transform: translateX(2px); border-color: var(--gold); background: rgba(224,174,83,.1); }
.member-form, .access-shell, .preferences-shell, .creator-detail-shell { border-radius: var(--evo-radius-xl); overflow: hidden; }
.cockpit-footer { min-height: 40px; padding: 7px 4px 0; }

@media (min-width: 1180px) {
  .dashboard {
    display: grid;
    grid-template-columns: var(--evo-sidebar) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, auto);
    align-items: start;
    overflow: visible;
  }
  .topbar { grid-column: 1 / -1; }
  .local-tabs {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-self: start;
    max-height: calc(100vh - 36px);
    padding: 11px;
    overflow-y: auto;
  }
  .local-tabs .nav-intro { display: grid; gap: 5px; padding: 7px 8px 12px; margin-bottom: 2px; border-bottom: 1px solid var(--evo-edge); }
  .nav-intro span { color: var(--gold); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
  .nav-intro small { color: #66635e; font-size: 7px; font-weight: 700; letter-spacing: .08em; }
  .local-tabs button { width: 100%; min-height: 48px; padding: 7px; }
  .local-tabs button.selected { position: relative; }
  .local-tabs button.selected::before { content: ""; position: absolute; left: -6px; top: 12px; bottom: 12px; width: 2px; border-radius: 9px; background: var(--gold-bright); box-shadow: 0 0 14px var(--gold); }
  .nav-local-state { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 12px 8px 5px; border-top: 1px solid var(--evo-edge); }
  .nav-local-state i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #77d993; box-shadow: 0 0 13px rgba(119,217,147,.52); }
  .nav-local-state span { display: grid; gap: 2px; }
  .nav-local-state strong { color: #bae8c6; font-size: 8px; letter-spacing: .1em; }
  .nav-local-state small { color: #6f6c66; font-size: 7px; }
  .tab-view { grid-column: 2; grid-row: 2; }
  .cockpit-footer { grid-column: 2; grid-row: 3; }
  .pc-home { width: 100%; }
}

@media (min-width: 1360px) {
  .monitoring-group {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
    grid-template-areas:
      "status status"
      "cores metrics"
      "hotspot metrics"
      "hardware hardware"
      "lower lower"
      "live live";
    gap: 12px;
  }
  .monitoring-group .pc-status-rail { grid-area: status; }
  .monitoring-group .core-grid { grid-area: cores; }
  .monitoring-group .hotspot { grid-area: hotspot; }
  .monitoring-group .hardware-strip { grid-area: hardware; margin: 0; }
  .monitoring-group .metric-grid { grid-area: metrics; grid-template-columns: 1fr; }
  .monitoring-group .metric-card { min-height: 115px; }
  .monitoring-group .metric-card > strong { margin-top: 16px; }
  .monitoring-group .lower-grid { grid-area: lower; }
  .monitoring-group .live-panel { grid-area: live; }
}

@media (max-width: 1179px) {
  .local-tabs {
    position: sticky;
    top: 8px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 6px;
  }
  .local-tabs button { min-height: 43px; padding: 6px; }
  .nav-copy small { display: none; }
  .active-section-context { margin-right: auto; }
}

@media (max-width: 820px) {
  .dashboard { padding: 12px; }
  .topbar { min-height: 58px; padding: 8px 10px; }
  .active-section-context { display: none; }
  .connection span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { min-height: 190px; padding: 25px; }
  .hero h1 { font-size: clamp(66px, 17vw, 105px); }
  .pc-status-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utility-grid[data-home-widget="weather"] { grid-template-columns: 1fr 1fr; }
  .music-card { padding-right: 19px; }
  .sound-bars { right: 19px; top: 66px; width: 78px; height: 23px; }
  .music-copy { padding-right: 90px; }
  .agency-panel { padding: 16px; }
}

@media (max-width: 620px) {
  :root { --evo-radius-xl: 18px; --evo-radius-lg: 14px; }
  body { padding-bottom: 82px; }
  .dashboard { padding: 9px; gap: 11px; }
  .topbar { position: sticky; top: 7px; z-index: 8; min-height: 54px; border-radius: 14px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy span { font-size: 6px; }
  .topbar .agency-identity { display: none !important; }
  .topbar-actions .connection { display: none; }
  .access-identity { margin-left: auto; }
  .access-identity small { display: none; }
  .local-tabs {
    position: fixed;
    z-index: 15;
    left: 8px;
    right: 8px;
    bottom: 8px;
    top: auto;
    display: flex;
    gap: 4px;
    padding: 6px;
    border-radius: 17px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .local-tabs::-webkit-scrollbar { display: none; }
  .local-tabs button { min-width: 72px; min-height: 55px; flex: 1 0 72px; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 5px; text-align: center; }
  .nav-icon { width: 25px; height: 23px; border: 0; background: transparent; }
  .nav-copy strong { font-size: 7px; }
  .nav-copy small { display: none; }
  .local-tabs button.selected { border-color: rgba(224,174,83,.38); }
  .hero { min-height: 172px; display: grid; padding: 22px 18px; }
  .hero .eyebrow { font-size: 7px; }
  .hero .eyebrow span:nth-of-type(n+2), .hero .eyebrow span:nth-of-type(n+2) ~ * { display: none; }
  .hero h1 { font-size: clamp(62px, 21vw, 91px); }
  .hero p:not(.eyebrow) { margin-top: 10px; font-size: 11px; }
  .system-state { width: 100%; min-width: 0; margin-top: 16px; padding: 11px 0 0; border-left: 0; border-top: 1px solid var(--evo-edge); flex-direction: row; align-items: center; justify-content: space-between; }
  .system-state .ambience-label { display: none; }
  .pc-status-rail { gap: 6px; }
  .pc-status-rail article { padding: 11px; }
  .pc-status-rail strong { font-size: 21px; }
  .core-grid, .lower-grid, .utility-grid, .utility-grid[data-home-widget="weather"] { grid-template-columns: 1fr; }
  .core-card { min-height: 218px; }
  .dial { width: 128px; }
  .hardware-strip { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid .fps-card { grid-column: 1 / -1; }
  .live-metrics { grid-template-columns: 1fr 1fr; }
  .live-metrics > div:last-child { grid-column: 1 / -1; }
  .utility-card { min-height: 158px; }
  .music-card { min-height: 215px !important; }
  .music-controls { grid-template-columns: 1fr; gap: 9px; }
  .cockpit-footer { padding-bottom: 4px; }
  .cockpit-footer #last-update { display: none; }
  .creator-controls { top: 69px; }
}

@media (max-width: 390px) {
  .topbar-actions #open-settings { width: 34px; height: 34px; }
  .access-identity strong { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pc-status-rail { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid .fps-card { grid-column: auto; }
  .music-copy { padding-right: 76px; }
  .creator-decision-grid, .reward-rules { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tab-view.selected { animation: none; }
}

/* Reward workspaces: compact, collapsible panels matching the monthly comparison. */
.reward-collapsible {
  padding: 0;
  overflow: hidden;
}

.reward-collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  cursor: pointer;
  list-style: none;
  transition: background .18s ease, border-color .18s ease;
}

.reward-collapsible-summary::-webkit-details-marker {
  display: none;
}

.reward-collapsible-summary::marker {
  content: "";
}

.reward-collapsible-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.reward-collapsible-copy > b {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.reward-collapsible-copy > small {
  color: #aaa49a;
  font-size: 8px;
  line-height: 1.45;
}

.reward-collapsible-chevron {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(224,174,83,.36);
  color: #f2d58c;
  font-size: 17px;
  transition: transform .18s ease, background .18s ease;
}

.reward-collapsible-summary:hover,
.reward-collapsible-summary:focus-visible {
  background: rgba(224,174,83,.055);
}

.reward-collapsible-summary:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: -2px;
}

.reward-collapsible[open] > .reward-collapsible-summary {
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(224,174,83,.045);
}

.reward-collapsible[open] .reward-collapsible-chevron {
  transform: rotate(180deg);
  background: rgba(224,174,83,.09);
}

.reward-collapsible-body {
  padding: 0 17px 17px;
}

.reward-collapsible-body > .reward-list,
.reward-collapsible-body > .reward-rules {
  margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .reward-collapsible-summary,
  .reward-collapsible-chevron {
    transition: none;
  }
}

/* Unified creator command center inside Mon Backstage. */
.workspace-creator-pilot {
  margin: 0;
  padding: clamp(14px, 2vw, 20px);
  border-color: rgba(224,174,83,.4);
  border-radius: var(--evo-radius-xl);
  background:
    radial-gradient(circle at 88% 0%, rgba(224,174,83,.11), transparent 34%),
    linear-gradient(150deg, rgba(224,174,83,.075), rgba(0,0,0,.17));
}

.workspace-creator-pilot > .panel-heading {
  margin-bottom: 0;
}

.workspace-pilot-intro {
  max-width: 780px;
  margin: 10px 0 15px;
  color: #aaa49a;
  font-size: 10px;
  line-height: 1.55;
}

.workspace-creator-pilot .creator-decisions,
.workspace-creator-pilot .creator-insights {
  border-radius: var(--evo-radius-lg);
  background: rgba(7,9,13,.32);
}

.workspace-creator-pilot .creator-controls {
  grid-template-columns: minmax(145px,.72fr) minmax(280px,1.35fr) minmax(125px,.58fr) minmax(135px,.62fr);
  border: 1px solid rgba(255,255,255,.09);
}

.creator-search-field {
  display: grid;
  gap: 5px;
  color: #c8c2b8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
}

.creator-search-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(224,174,83,.25);
  background: rgba(0,0,0,.31);
  color: #fff8e8;
  font: inherit;
  font-size: 10px;
  padding: 8px;
}

.creator-search-field input:focus {
  outline: none;
  border-color: var(--gold);
}

.workspace-tool-fold {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--evo-radius-lg);
  background: rgba(5,7,10,.3);
}

.workspace-tool-fold[hidden] {
  display: none !important;
}

.workspace-tool-fold > summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  transition: background .18s ease;
}

.workspace-tool-fold > summary::-webkit-details-marker {
  display: none;
}

.workspace-tool-fold > summary::marker {
  content: "";
}

.workspace-tool-fold > summary:hover,
.workspace-tool-fold > summary:focus-visible,
.workspace-tool-fold[open] > summary {
  background: rgba(224,174,83,.055);
}

.workspace-tool-fold > summary:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: -2px;
}

.workspace-tool-fold > summary span,
.workspace-tool-fold > summary b,
.workspace-tool-fold > summary small {
  display: block;
}

.workspace-tool-fold > summary b {
  color: #f3d58d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
}

.workspace-tool-fold > summary small {
  margin-top: 4px;
  color: #99948b;
  font-size: 8px;
  line-height: 1.4;
}

.workspace-tool-fold > summary i {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(224,174,83,.34);
  color: #f2d58c;
  font-size: 16px;
  font-style: normal;
  transition: transform .18s ease, background .18s ease;
}

.workspace-tool-fold[open] > summary {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.workspace-tool-fold[open] > summary i {
  transform: rotate(180deg);
  background: rgba(224,174,83,.09);
}

.workspace-tool-body {
  padding: 13px;
}

.workspace-tool-body > .monthly-comparison,
.workspace-tool-body > .personal-backstage-import,
.workspace-tool-body > .creator-import-card,
.workspace-tool-body > .backstage-followup {
  margin: 0;
}

.workspace-tool-body > .creator-import-card + .manual-entry,
.workspace-tool-body > .personal-backstage-import + .creator-import-card {
  margin-top: 12px;
}

.workspace-creator-rewards {
  margin-top: 10px;
  border-radius: var(--evo-radius-lg);
}

/* Mon Backstage is the single agency command center. */
.workspace-section-stack {
  display: grid;
  gap: 11px;
}

.workspace-command-section {
  overflow: hidden;
  border: 1px solid rgba(224,174,83,.26);
  border-radius: var(--evo-radius-lg);
  background: linear-gradient(145deg, rgba(224,174,83,.065), rgba(255,255,255,.012));
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 13px 35px rgba(0,0,0,.11);
}

.workspace-command-section[hidden] {
  display: none !important;
}

.workspace-command-section > summary {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  transition: background .18s ease, border-color .18s ease;
}

.workspace-command-section > summary::-webkit-details-marker { display: none; }
.workspace-command-section > summary::marker { content: ""; }
.workspace-command-section > summary:hover,
.workspace-command-section > summary:focus-visible,
.workspace-command-section[open] > summary {
  background: linear-gradient(90deg, rgba(224,174,83,.11), rgba(255,255,255,.018));
}
.workspace-command-section > summary:focus-visible { outline: 1px solid var(--gold); outline-offset: -2px; }
.workspace-command-section[open] > summary { border-bottom: 1px solid rgba(255,255,255,.075); }

.workspace-command-number {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(224,174,83,.48);
  border-radius: 11px;
  background: rgba(224,174,83,.08);
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.workspace-command-copy { min-width: 0; }
.workspace-command-copy b,
.workspace-command-copy small { display: block; }
.workspace-command-copy b { color: #fff5df; font-size: 11px; font-weight: 900; letter-spacing: .095em; }
.workspace-command-copy small { margin-top: 5px; color: #aaa49a; font-size: 9px; line-height: 1.45; }
.workspace-command-chevron {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-left: auto;
  place-items: center;
  border: 1px solid rgba(224,174,83,.28);
  color: #f0cf7e;
  font-size: 17px;
  transition: transform .18s ease, background .18s ease;
}
.workspace-command-section[open] > summary .workspace-command-chevron { transform: rotate(180deg); background: rgba(224,174,83,.09); }

.workspace-command-body {
  display: grid;
  gap: 13px;
  padding: 14px;
}
.workspace-command-body > .workspace-summary,
.workspace-command-body > .direction-grid,
.workspace-command-body > .backstage-access,
.workspace-command-body > .agency-pilot,
.workspace-command-body > .agency-history,
.workspace-command-body > .agency-goals,
.workspace-command-body > .agency-statistics,
.workspace-command-body > .activity-journal,
.workspace-command-body > .reward-section,
.workspace-command-body > .reward-payment-panel,
.workspace-command-body > .agency-summary,
.workspace-command-body > .agency-form {
  margin: 0;
}
.workspace-command-body > .agency-pilot { padding: 0; border: 0; background: transparent; }
.workspace-command-body > .agency-pilot > .panel-heading { display: none; }
.workspace-command-body > .agency-pilot > .workspace-pilot-intro { margin-top: 0; }
.workspace-command-body > .workspace-tool-fold { margin: 0; }
.workspace-inline-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.15);
}
.workspace-inline-status span { color: var(--gold); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.workspace-inline-status small { color: #c9c2b7; font-size: 9px; }
#workspace-priorities-section .workspace-command-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#workspace-priorities-section .workspace-inline-status,
#workspace-priorities-section .agency-statistics,
#workspace-priorities-section .agency-goals,
#workspace-priorities-section .activity-journal { grid-column: 1 / -1; }
#workspace-team-section .backstage-access { padding-top: 0; }
#workspace-rewards-section .reward-section { border-radius: var(--evo-radius-lg); }
#workspace-finance-section .agency-summary { margin-bottom: 2px; }

body[data-theme="light"] .workspace-command-section {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(247,249,253,.66));
  box-shadow: inset 0 1px rgba(255,255,255,.95), 0 8px 22px rgba(31,42,61,.06);
}
body[data-theme="light"] .workspace-command-copy b { color: #1b2230; }
body[data-theme="light"] .workspace-command-copy small { color: #626b79; }

@media (max-width: 1040px) {
  .workspace-creator-pilot .creator-controls {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 620px) {
  .workspace-creator-pilot {
    padding: 12px;
  }

  .workspace-creator-pilot .creator-controls {
    position: static;
    grid-template-columns: 1fr;
  }

  .workspace-tool-fold > summary {
    min-height: 54px;
    padding: 11px 12px;
  }

  .workspace-tool-body {
    padding: 10px;
  }

  .workspace-command-section > summary { min-height: 64px; padding: 11px 12px; gap: 10px; }
  .workspace-command-number { flex-basis: 34px; width: 34px; height: 34px; }
  .workspace-command-copy b { font-size: 9px; }
  .workspace-command-copy small { font-size: 8px; }
  .workspace-command-body { padding: 10px; }
  #workspace-priorities-section .workspace-command-body { grid-template-columns: 1fr; }
  #workspace-priorities-section .workspace-inline-status,
  #workspace-priorities-section .agency-statistics,
  #workspace-priorities-section .agency-goals,
  #workspace-priorities-section .activity-journal { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-tool-fold > summary,
  .workspace-tool-fold > summary i {
    transition: none;
  }
}
