:root {
  --bg: #eef1f7;
  --glass: #ffffff;
  --glass-2: #f3f5fa;
  --border: #e2e7f1;
  --border-strong: #c9d3e4;
  --text: #1b2440;
  --muted: #5f6b85;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --green: #0ea371;
  --orange: #ea7c1c;
  --red: #dc2626;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(23, 34, 64, 0.10);
  --header-bg: rgba(255, 255, 255, 0.88);
  --input-bg: #ffffff;
  --tabs-bg: #e6eaf4;
  --tag-bg: rgba(23, 34, 64, 0.06);
  --row-hover: rgba(59, 130, 246, 0.06);
  --modal-bg: rgba(255, 255, 255, 0.99);
  --backdrop: rgba(23, 34, 64, 0.35);
  --glow-opacity: .10;
  /* canvas chart colors */
  --ch-label: #5f6b85;
  --ch-value: #1b2440;
  --ch-faint: #8a93a8;
  --ch-grid: rgba(23, 34, 64, 0.08);
  --ch-track: rgba(23, 34, 64, 0.07);
}

[data-theme="dark"] {
  --bg: #0a0c12;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --muted: #8b93a7;
  --green: #34d399;
  --orange: #fb923c;
  --red: #f87171;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(14, 17, 25, 0.82);
  --input-bg: rgba(0, 0, 0, 0.35);
  --tabs-bg: rgba(0, 0, 0, 0.3);
  --tag-bg: rgba(255, 255, 255, 0.07);
  --row-hover: rgba(79, 140, 255, 0.06);
  --modal-bg: rgba(17, 20, 29, 0.96);
  --backdrop: rgba(2, 4, 8, 0.72);
  --glow-opacity: .16;
  --ch-label: #8b93a7;
  --ch-value: #eef1f8;
  --ch-faint: #566077;
  --ch-grid: rgba(255, 255, 255, 0.06);
  --ch-track: rgba(255, 255, 255, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  min-height: 100vh;
  transition: background .25s, color .25s;
}

.bg-glow {
  position: fixed; border-radius: 50%; filter: blur(140px); opacity: var(--glow-opacity);
  pointer-events: none; z-index: 0;
}
.glow-1 { width: 620px; height: 620px; background: #3b82f6; top: -220px; left: -160px; }
.glow-2 { width: 540px; height: 540px; background: #8b5cf6; bottom: -240px; right: -140px; }

#app, #setup-screen, #login-screen { position: relative; z-index: 1; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.logo-text {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------- buttons ---------------- */
.btn {
  background: var(--glass-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 15px;
  cursor: pointer;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 600;
  transition: all .15s ease;
}
.btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, #3b82f6, #7c5cff);
  border: none; color: #fff;
  box-shadow: 0 6px 18px rgba(59, 130, 246, .3);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); }
.btn.success {
  background: linear-gradient(135deg, #059669, #10b981);
  border: none; color: #fff;
  box-shadow: 0 6px 18px rgba(16, 185, 129, .3);
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn {
  background: none; border: none; color: var(--accent);
  cursor: pointer; font-size: 11px; padding: 0 4px; font-family: inherit;
}

/* ---------------- setup / login ---------------- */
#setup-screen, #login-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.setup-card { padding: 36px; max-width: 620px; width: 100%; box-shadow: var(--shadow); }
.setup-card li { margin-bottom: 8px; line-height: 1.6; }
.token-row { display: flex; gap: 8px; margin-top: 14px; }
.token-row input {
  flex: 1; background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); padding: 10px 14px; font-size: 14px; font-family: inherit;
}
.token-row input:focus { outline: none; border-color: var(--accent); }
.setup-status { margin-top: 12px; min-height: 20px; }
.setup-status.ok { color: var(--green); }
.setup-status.err { color: var(--red); }

/* ---------------- header ---------------- */
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; margin: 14px 18px 0;
  position: sticky; top: 12px; z-index: 30;
  box-shadow: var(--shadow);
  flex-wrap: wrap; gap: 10px;
  background: var(--header-bg);
}
.header-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.header-right { display: flex; align-items: center; gap: 8px; }

.tabs { display: flex; gap: 4px; background: var(--tabs-bg); border-radius: 12px; padding: 4px; }
.tab {
  background: none; border: none; color: var(--muted); padding: 7px 18px;
  border-radius: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; font-family: inherit;
  transition: all .15s;
}
.tab.active { background: var(--glass); color: var(--text); box-shadow: 0 2px 8px rgba(23, 34, 64, .12), inset 0 0 0 1px var(--border); }

main { padding: 18px; max-width: 1500px; margin: 0 auto; }

/* ---------------- KPIs ---------------- */
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px; margin-bottom: 16px;
}
.kpi {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; position: relative; overflow: hidden;
  box-shadow: 0 4px 16px rgba(23, 34, 64, .05);
}
.kpi::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--kpi-color, var(--accent));
}
.kpi .k-label { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.kpi .k-value { font-size: 25px; font-weight: 800; margin-top: 6px; }
.kpi .k-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }

/* ---------------- filters ---------------- */
.filters { padding: 16px 20px; display: flex; gap: 36px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-title { font-size: 11px; color: var(--muted); margin-bottom: 9px; font-weight: 700; letter-spacing: .8px; }
.chip-list { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--glass-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 13px; cursor: pointer; font-size: 12.5px;
  user-select: none; transition: all .12s; font-weight: 500;
}
.chip:hover { border-color: var(--border-strong); }
.chip.on { border-color: rgba(59, 130, 246, .55); background: rgba(59, 130, 246, .1); }
.chip .count { color: var(--muted); font-size: 11px; }

/* ---------------- summary cards ---------------- */
.summary-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px; margin-bottom: 16px;
}
.payee-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: all .18s ease; position: relative; overflow: hidden;
  box-shadow: 0 4px 16px rgba(23, 34, 64, .05);
}
.payee-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.payee-card .top-row { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px; color: #fff;
  box-shadow: 0 6px 14px rgba(23, 34, 64, .22);
}
.payee-card .payee-name { font-size: 16px; font-weight: 700; }
.cur-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px; vertical-align: middle;
  background: var(--tag-bg); color: var(--muted); border-radius: 5px; padding: 1px 6px; margin-left: 4px;
}
.payee-card .payee-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.payee-card .payee-total { font-size: 28px; font-weight: 800; margin: 14px 0 4px; letter-spacing: -.5px; }
.payee-card .glow-line { position: absolute; top: 0; left: 0; right: 0; height: 2.5px; }

.breakdown { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.b-row { font-size: 12.5px; }
.b-row .b-head { display: flex; justify-content: space-between; margin-bottom: 3px; }
.b-row .b-name { color: var(--muted); }
.b-row .b-val { font-weight: 600; }
.b-bar { height: 5px; border-radius: 3px; background: var(--ch-track); overflow: hidden; }
.b-bar > div { height: 100%; border-radius: 3px; }

.card-actions { display: flex; gap: 8px; margin-top: 16px; }
.card-actions .btn { flex: 1; padding: 8px 6px; font-size: 12.5px; text-align: center; }

.payee-card.unassigned { border-color: rgba(234, 124, 28, .45); }

/* ---------------- charts ---------------- */
.chart-card { padding: 20px 22px; margin-bottom: 16px; box-shadow: 0 4px 16px rgba(23, 34, 64, .05); }
.chart-card h3 { margin: 0 0 14px; font-size: 14px; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.chart-card canvas { width: 100%; display: block; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.legend .l-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.legend .l-dot { width: 10px; height: 10px; border-radius: 3px; }

/* ---------------- tables ---------------- */
.payee-section {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 18px 14px; margin-bottom: 16px; overflow-x: auto;
  box-shadow: 0 4px 16px rgba(23, 34, 64, .05);
}
.payee-section h2 {
  font-size: 15px; padding: 14px 4px 12px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin: 0; border-bottom: 1px solid var(--border);
}
.payee-section h2 .sec-total { font-size: 14px; font-weight: 800; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; color: var(--muted); font-weight: 700; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 10px 10px 8px; border-bottom: 1px solid var(--border);
}
td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr { transition: background .1s; }
tbody tr:hover td { background: var(--row-hover); }
.tag {
  display: inline-block; background: var(--tag-bg); border-radius: 6px;
  padding: 2px 8px; font-size: 11.5px; margin: 1px 3px 1px 0; white-space: nowrap; font-weight: 500;
}
.tag.qc { background: rgba(234, 124, 28, .14); color: var(--orange); }
.tag.status-done { background: rgba(14, 163, 113, .13); color: var(--green); }
.tag.status-progress { background: rgba(59, 130, 246, .12); color: var(--accent); }
.rate-cell { text-align: right; white-space: nowrap; font-weight: 600; }

/* ---------------- loading / error / toast ---------------- */
.loading { padding: 50px; text-align: center; color: var(--muted); font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--ch-track); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-banner {
  margin: 0 0 16px; padding: 13px 18px; border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, .08); border: 1px solid rgba(220, 38, 38, .3);
  color: var(--red); font-size: 13.5px;
}

#toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--modal-bg); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 13px 18px; font-size: 13.5px; max-width: 380px;
  box-shadow: var(--shadow); animation: slideIn .25s ease;
  border-left: 3px solid var(--accent);
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------- modals ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: var(--backdrop);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; z-index: 100; overflow-y: auto;
  backdrop-filter: blur(4px);
}
.modal { padding: 26px; width: 100%; max-width: 780px; box-shadow: var(--shadow); background: var(--modal-bg); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-header h2 { margin: 0; font-size: 18px; }
.modal-footer { margin-top: 20px; text-align: right; display: flex; gap: 10px; justify-content: flex-end; }
.modal hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* pay modal */
.pay-summary {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  background: var(--glass-2); border: 1px solid var(--border);
  padding: 14px 18px; border-radius: var(--radius-sm); margin: 14px 0;
  position: sticky; top: 0; z-index: 5;
}
.pay-summary .total { font-size: 21px; font-weight: 800; color: var(--green); }
.select-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; flex-wrap: wrap; }
.pay-list { max-height: 380px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pay-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 14px;
  border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px;
}
.pay-item:hover { background: var(--row-hover); }
.pay-item.off { opacity: .42; }
.pay-item input { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }
.pay-item .pi-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-item .pi-rate { font-weight: 700; white-space: nowrap; }
.warn-box {
  background: rgba(234, 124, 28, .09); border: 1px solid rgba(234, 124, 28, .4);
  border-radius: var(--radius-sm); padding: 13px 16px; margin: 14px 0; font-size: 13px; line-height: 1.55;
}
.warn-box label { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; cursor: pointer; font-weight: 600; }
.opt-row { display: flex; gap: 9px; align-items: center; margin: 12px 2px; font-size: 13.5px; cursor: pointer; }
.opt-row input, .warn-box input { accent-color: var(--accent); width: 15px; height: 15px; }
.pay-progress { padding: 20px 4px; font-size: 14px; line-height: 2; }
.pay-progress .step-ok { color: var(--green); }
.pay-progress .step-err { color: var(--red); }

/* settings payee blocks */
.payee-block {
  background: var(--glass-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 15px; margin: 12px 0;
}
.payee-block .row1 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.payee-block input[type="text"], .payee-block input[type="number"], .payee-block select {
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 7px 10px; font-size: 13.5px; font-family: inherit;
}
.payee-block input.p-name { width: 140px; font-weight: 700; }
.payee-block input.p-rate, .payee-block input.p-qc { width: 92px; }
.payee-block label { font-size: 11.5px; color: var(--muted); }
.member-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.member-list .chip a { color: var(--muted); margin-left: 2px; }

/* history */
.history-card { padding: 20px 22px; box-shadow: 0 4px 16px rgba(23, 34, 64, .05); }
.history-card h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.pay-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 6px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.pay-row .pr-date { color: var(--muted); font-size: 12.5px; width: 105px; }
.pay-row .pr-name { font-weight: 700; width: 110px; }
.pay-row .pr-detail { color: var(--muted); font-size: 12.5px; flex: 1; }
.pay-row .pr-total { font-weight: 800; }
.pay-row .pr-badge { font-size: 11px; color: var(--green); }
.pay-row .actions { display: flex; gap: 6px; }
.pay-row .btn { padding: 5px 10px; font-size: 11.5px; }
.pr-videos { width: 100%; padding: 4px 10px 10px 120px; color: var(--muted); font-size: 12px; line-height: 1.8; }

.empty-note { color: var(--muted); padding: 26px; text-align: center; font-size: 14px; }

@media (max-width: 720px) {
  header { position: static; margin: 10px 10px 0; padding: 12px 14px; }
  main { padding: 12px 10px; }
  .pr-videos { padding-left: 10px; }
  .filters { gap: 18px; }
}

/* ---- Production tab: premium pass (2026-08-22) ---------------------------- */
.prod-client {
  border-radius: 18px;
  padding: 22px 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.prod-client:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .10);
}
.prod-client h2 { margin-bottom: 14px; }
.prod-client table { width: 100%; border-collapse: collapse; }
.prod-client thead th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 600; text-align: left; padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.prod-client tbody td { padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.prod-client tbody tr:last-child td { border-bottom: none; }
.prod-client tbody tr { transition: background .12s ease; }
.prod-client tbody tr:hover { background: rgba(120, 130, 150, .06); }
.prod-client .tag { border-radius: 999px; }
#prod-kpis { gap: 14px; }
#prod-kpis > div { border-radius: 16px; transition: transform .15s ease; }
#prod-kpis > div:hover { transform: translateY(-2px); }
#intake-inbox { border: 1px solid rgba(239, 68, 68, .35); border-radius: 18px; }

/* ==== CONTROL ROOM redesign (2026-08-23) — scoped to the Production view ==== */
#view-production { --cc: var(--accent); }

/* KPI cards: accent bar + big numerals */
#prod-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
#prod-kpis > div:not([style*="grid-column"]) {
  position: relative; overflow: hidden;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 18px 14px;
  box-shadow: 0 6px 22px rgba(10, 15, 30, .06);
}
#prod-kpis > div:not([style*="grid-column"])::before {
  content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: .65;
}
#prod-kpis .kpi-value, #prod-kpis b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }

/* Client panels: hairline gradient ring in the client's own color */
.prod-client {
  position: relative;
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 20px;
  padding: 24px 26px 20px;
  margin-bottom: 18px;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(135deg, var(--cc) 0%, transparent 45%) border-box;
  border-left: 5px solid var(--cc);
  box-shadow: 0 10px 30px rgba(10, 15, 30, .07);
  transition: transform .16s ease, box-shadow .16s ease;
}
.prod-client:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(10, 15, 30, .13); }
.prod-client::after {
  content: ''; position: absolute; top: -30px; left: -30px; width: 150px; height: 150px;
  border-radius: 50%; background: radial-gradient(circle, var(--cc), transparent 70%);
  opacity: var(--glow-opacity); pointer-events: none;
}
.prod-client h2 { margin: 0 0 16px; }
.prod-client h2 img, .prod-client h2 > span:first-child { z-index: 1; }

/* Tables: airy rows, dotted separators, first column leads */
.prod-client table { width: 100%; border-collapse: collapse; }
.prod-client thead th {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 700; text-align: left;
  padding: 4px 10px 8px; border-bottom: 1px solid var(--border-strong);
}
.prod-client tbody td {
  padding: 11px 10px; font-size: 13.5px;
  border-bottom: 1px dashed var(--border);
  vertical-align: middle;
}
.prod-client tbody tr:last-child td { border-bottom: none; }
.prod-client tbody tr { transition: background .12s ease; }
.prod-client tbody tr:hover { background: var(--row-hover); }
.prod-client tbody td:first-child { font-weight: 600; }
.prod-client tbody td:first-child a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--border-strong); }
.prod-client tbody td:first-child a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* pills + buttons */
.prod-client .tag {
  display: inline-block; border-radius: 999px; padding: 2.5px 10px;
  font-size: 11px; font-weight: 600; background: var(--tag-bg);
  vertical-align: middle;
}
.prod-client .btn {
  border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 600;
  transition: transform .1s ease, box-shadow .1s ease;
}
.prod-client .btn:hover { transform: translateY(-1px); }
.prod-client .btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: none; color: #fff; box-shadow: 0 4px 14px rgba(59, 130, 246, .35);
}
.prod-client .sec-total { font-size: 12.5px; font-weight: 700; opacity: .85; }

/* queue block */
.prod-client p.muted.small { letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; font-weight: 700; margin-top: 14px; }

/* attention + alert strips inherit the glass language */
#intake-inbox { border-radius: 20px; }
#intake-inbox h3 { letter-spacing: -.01em; }

/* agency chips row */
#prod-agency-chips .chip {
  border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 12.5px;
  border: 1px solid var(--border-strong); background: var(--glass);
  transition: all .12s ease;
}
#prod-agency-chips .chip.on {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(59, 130, 246, .3);
}

/* ==== LIGHT · NOTION-FUTURIST pass (2026-08-23) — overrides the layer above == */
#view-production { --prod-canvas: #fbfbfd; }
[data-theme="dark"] #view-production { --prod-canvas: transparent; }

.prod-hero {
  background: linear-gradient(135deg, #ffffff 55%, rgba(99, 102, 241, .07));
  border: 1px solid #ececf1;
  border-radius: 16px;
  padding: 18px 22px 16px;
}
[data-theme="dark"] .prod-hero {
  background: linear-gradient(135deg, var(--glass) 55%, rgba(99, 102, 241, .12));
  border-color: var(--border);
}
.prod-hero-line { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.prod-hero-line b { font-weight: 800; font-size: 24px; color: #6366f1; }
.prod-hero-sub { color: var(--muted); font-size: 13.5px; margin-left: 6px; }
.prod-hero-bar {
  display: flex; height: 7px; border-radius: 999px; overflow: hidden;
  margin-top: 12px; gap: 2px;
}
.prod-hero-bar span { border-radius: 999px; transition: width .4s ease; }

/* Notion-calm panels: white, hairline border, tiny radius accents kept */
.prod-client {
  background: #ffffff;
  border: 1px solid #ececf1;
  border-left: 4px solid var(--cc);
  border-radius: 14px;
  padding: 20px 22px 16px;
  box-shadow: 0 1px 3px rgba(20, 25, 40, .05);
}
.prod-client:hover { transform: none; box-shadow: 0 4px 16px rgba(20, 25, 40, .09); }
.prod-client::after { opacity: .05; }
[data-theme="dark"] .prod-client { background: var(--glass); border-color: var(--border); }

.prod-client thead th { border-bottom: 1px solid #ececf1; }
.prod-client tbody td { border-bottom: 1px solid #f3f3f7; }
[data-theme="dark"] .prod-client thead th { border-bottom-color: var(--border); }
[data-theme="dark"] .prod-client tbody td { border-bottom-color: var(--border); }

#prod-kpis > div:not([style*="grid-column"]) {
  background: #ffffff; border: 1px solid #ececf1;
  box-shadow: 0 1px 3px rgba(20, 25, 40, .05);
  border-radius: 14px;
}
[data-theme="dark"] #prod-kpis > div:not([style*="grid-column"]) { background: var(--glass); border-color: var(--border); }
#prod-kpis > div:not([style*="grid-column"])::before { height: 2px; opacity: .8; }
