:root {
  --bg: #0B1220; --panel: #0E1726; --card: #111A2C; --raise: #18233A; --line2: #22304B;
  --navy: #3A4C72; --gold: #C9A227; --gold2: #E8CA62; --cream: #F4F2EC; --text: #E9E7E1;
  --soft: #C9CED8; --muted: #8E9AAF; --dim: #5D6A80; --green: #43D18A; --red: #F28B82;
  --hair: rgba(244,242,236,.08); --hair2: rgba(244,242,236,.14);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; }
a { color: var(--gold2); }
a:hover { color: var(--cream); }
h1, h2 { margin: 0; color: var(--cream); letter-spacing: -0.01em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
button, input, select { font: inherit; }
input, select {
  min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--hair2);
  background: var(--bg); color: var(--cream); font-size: 15px; width: 100%;
}
input[type="color"] { padding: 4px; cursor: pointer; }
input::placeholder { color: var(--dim); }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--red); }
code { font-size: 12px; background: var(--raise); padding: 1px 5px; border-radius: 4px; }

/* helpers */
.muted { color: var(--muted); } .soft { color: var(--soft); } .gold { color: var(--gold2); } .green { color: var(--green); }
.small { font-size: 13px; } .tiny { font-size: 12px; } .strong { font-weight: 700; color: var(--cream); } .fw4 { font-weight: 500; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; } .minw0 { min-width: 0; }
.row { display: flex; align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .wrap { flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stack-2, .stack-4, .stack-6, .stack-8, .stack-12, .stack-14 { display: flex; flex-direction: column; }
.stack-2 { gap: 2px; } .stack-4 { gap: 4px; } .stack-6 { gap: 6px; } .stack-8 { gap: 8px; } .stack-12 { gap: 12px; } .stack-14 { gap: 14px; align-items: flex-start; }
.mt-12 { margin-top: 12px; } .grow { flex: 1; }
.gold-bg { background: var(--gold2); } .navy-bg { background: var(--navy); }

/* buttons */
.btn { min-height: 44px; padding: 0 20px; border-radius: 999px; border: none; cursor: pointer; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-gold { background: var(--gold); color: var(--bg); } .btn-gold:hover { background: var(--gold2); color: var(--bg); }
.btn-outline { background: transparent; color: var(--gold2); border: 1px solid var(--gold); }
.btn-outline:hover { background: rgba(201,162,39,.1); color: var(--gold2); }
.btn-lg { min-height: 50px; font-size: 15px; font-weight: 800; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.link-btn { background: none; border: none; color: var(--gold2); font-weight: 600; font-size: 13px; cursor: pointer; padding: 6px 0; align-self: flex-start; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-gold { color: var(--gold2); background: rgba(201,162,39,.14); }
.pill-green { color: #6FE0A6; background: rgba(67,209,138,.14); }
.pill-grey { color: var(--soft); background: rgba(244,242,236,.08); }
.pill-outline { color: var(--gold2); border: 1px solid rgba(201,162,39,.5); }

/* brand */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-word { font-weight: 800; font-size: 19px; letter-spacing: .04em; color: var(--cream); }
.brand-stack { display: flex; flex-direction: column; gap: 1px; }
.brand-sub { font-size: 10px; letter-spacing: .32em; color: var(--muted); }

/* loading / errors */
.center-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.loading { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); }
.loading svg { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .loading svg { animation: none; } }
.card { background: var(--card); border: 1px solid var(--hair); border-radius: 16px; padding: 20px; }
.error-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; max-width: 460px; border-color: rgba(242,139,130,.4); }
.not-linked { max-width: 480px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* auth */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-side { flex: 1 1 420px; padding: 48px 56px; background: var(--panel); border-right: 1px solid var(--hair);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-pitch { display: flex; flex-direction: column; gap: 22px; max-width: 460px; }
.auth-pitch h1 { font-size: 40px; line-height: 1.12; }
.auth-pitch p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--soft); font-size: 14px; }
.dots li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold2); margin-right: 10px; }
.auth-main { flex: 1 1 460px; padding: 48px 20px; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid rgba(244,242,236,.1); border-radius: 20px;
  padding: 36px 32px; display: flex; flex-direction: column; gap: 22px; }
.auth-card h2 { font-size: 26px; }
.auth-card p { margin: 0; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--soft); }
.field-err { font-size: 13px; color: var(--red); }
.form-err { font-size: 14px; color: var(--red); background: rgba(242,139,130,.08); border: 1px solid rgba(242,139,130,.3); padding: 10px 12px; border-radius: 10px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; min-height: 36px; padding: 0 10px; border: none; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.auth-foot { border-top: 1px solid var(--hair); padding-top: 18px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.secure-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.badge-circle { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.gold-tint { background: rgba(201,162,39,.14); color: var(--gold2); }

/* client dashboard */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 236px; max-width: 100%; padding: 28px 18px; background: var(--panel); border-right: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 26px; }
.client-chip { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--hair); }
.client-badge { flex: none; width: 36px; height: 36px; border-radius: 9px; color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav button { width: 100%; background: none; border: none; cursor: pointer; text-align: left; font: inherit; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--soft); font-size: 14px; text-decoration: none; }
.nav a:hover, .nav button:hover { background: rgba(244,242,236,.04); color: var(--cream); }
.nav a.active, .nav button.active { background: rgba(201,162,39,.12); color: var(--gold2); font-weight: 700; }
.help-box { margin-top: auto; padding: 14px; border-radius: 12px; border: 1px solid rgba(201,162,39,.3); display: flex; flex-direction: column; gap: 6px; }
.signout { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; background: none; border: 1px solid var(--hair);
  border-radius: 9px; color: var(--soft); cursor: pointer; font-size: 14px; text-align: left; overflow: hidden; }
.signout:hover { color: var(--cream); border-color: var(--hair2); }
.main { flex: 999 1 560px; min-width: 0; padding: 32px 36px 48px; display: flex; flex-direction: column; gap: 28px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kpi.goal .ring { width: 72px; height: 72px; } .kpi.goal .ring-inner { width: 54px; height: 54px; font-size: 15px; }
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi.goal { flex-direction: row; align-items: center; gap: 14px; border-color: rgba(201,162,39,.35); }
.kpi-num { font-size: 30px; font-weight: 800; color: var(--cream); }
.kpi-of { font-size: 15px; font-weight: 600; color: var(--muted); }
.ring { flex: none; width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ring-inner { width: 64px; height: 64px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--cream); }
.section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.split.align-center { align-items: center; }
.grow-10 { flex: 1 1 300px; min-width: 0; } .grow-12 { flex: 1.2 1 340px; min-width: 0; } .grow-14 { flex: 1.4 1 380px; min-width: 0; }
.grow-20 { flex: 2 1 360px; min-width: 0; } .grow-30 { flex: 3 1 440px; min-width: 0; }
.chart { display: flex; flex-direction: column; gap: 14px; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chart-title { font-size: 15px; font-weight: 700; color: var(--cream); margin: 0; }
.readout { font-size: 13px; font-weight: 600; color: var(--gold2); }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid rgba(244,242,236,.1); }
.seg button { min-height: 36px; padding: 0 14px; border: none; border-radius: 999px; background: transparent; color: var(--soft); font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--gold); color: var(--bg); font-weight: 700; }
.bars { display: flex; gap: 6px; height: 210px; align-items: stretch; border-bottom: 1px solid var(--hair2); padding-bottom: 2px; }
.bar-col { flex: 1 1 0; min-width: 0; border: none; padding: 0 2px; background: transparent; border-radius: 6px 6px 0 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-end; }
.bar-col.sel { background: rgba(232,202,98,.10); }
.bar-seg { display: block; width: 100%; }
.bar-seg.top { border-radius: 4px 4px 0 0; }
.bar-labels { display: flex; gap: 6px; margin-top: -8px; }
.bar-labels span.skip { visibility: hidden; }
.bar-labels span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--soft); }
.legend span { display: flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hbar { display: block; width: 100%; height: 12px; border-radius: 999px; background: var(--raise); overflow: hidden; }
.hbar > span { display: block; height: 100%; border-radius: 999px; }
.line-box { position: relative; height: 190px; }
.line-box svg { display: block; }
.dot { position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px; border: none; background: transparent; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.dot span { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold2); }
.dot.sel span { width: 16px; height: 16px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(244,242,236,.06); }
.list-row:first-of-type { margin-top: 8px; }
.time { flex: none; width: 70px; }
.stage { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(244,242,236,.06);
  background: transparent; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.stage.on { background: rgba(201,162,39,.10); border-color: rgba(201,162,39,.55); }
.src-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 36px; align-items: center; gap: 12px; }
.src-row .hbar { height: 20px; border-radius: 6px; } .src-row .hbar > span { border-radius: 6px; }
.insight { padding: 16px; border-radius: 12px; background: rgba(201,162,39,.1); border: 1px solid rgba(201,162,39,.3); display: flex; flex-direction: column; gap: 6px; color: var(--cream); line-height: 1.5; }
.upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border: 1px dashed rgba(201,162,39,.45); padding: 26px; }
.upsell-title { font-size: 16px; font-weight: 700; color: var(--cream); }
.foot { padding-top: 8px; }

/* admin */
.admin { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: var(--panel); border-bottom: 1px solid var(--hair); padding: 0 32px; min-height: 72px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 12px; }
.admin-main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 32px 48px; display: flex; flex-direction: column; gap: 24px; }
.client-bar { display: grid; grid-template-columns: 220px minmax(0, 1fr) 44px; align-items: center; gap: 14px; padding: 8px 10px;
  border: none; border-radius: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.client-bar.on { background: rgba(201,162,39,.10); }
.client-bar .hbar { height: 22px; border-radius: 6px; } .client-bar .hbar > span { border-radius: 6px; }
.table-scroll { overflow-x: auto; margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; min-width: 980px; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; padding: 10px 8px; white-space: nowrap; }
.table th.center { text-align: center; }
.table td { padding: 10px 8px; border-top: 1px solid rgba(244,242,236,.06); vertical-align: middle; }
.toggle { width: 56px; height: 44px; border: none; background: transparent; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.toggle .track { position: relative; display: block; width: 46px; height: 26px; border-radius: 999px; background: var(--line2); box-shadow: inset 0 0 0 1px var(--hair2); transition: background .2s; }
.toggle .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: left .2s, background .2s; }
.toggle.on .track { background: var(--gold); box-shadow: none; }
.toggle.on .knob { left: 23px; background: var(--bg); }
.toggle:disabled { opacity: .6; }
.goal-input { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.goal-input input { width: 80px; min-height: 36px; padding: 0 10px; }
.goal-input .field-err { width: 100%; font-size: 12px; }
.add-client { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.add-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--raise); color: var(--cream);
  border: 1px solid rgba(201,162,39,.4); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 10; }

/* phones */
@media (max-width: 720px) {
  h1 { font-size: 24px; }
  .auth-side { padding: 28px 20px; gap: 24px; }
  .auth-pitch h1 { font-size: 28px; }
  .auth-pitch svg, .auth-pitch .dots { display: none; }
  .auth-card { padding: 28px 20px; }
  .main { padding: 24px 16px 40px; }
  .side { padding: 20px 16px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .help-box { display: none; }
  .topbar { padding: 0 16px; }
  .admin-main { padding: 24px 16px 40px; }
  .src-row { grid-template-columns: 110px minmax(0, 1fr) 30px; }
  .client-bar { grid-template-columns: 120px minmax(0, 1fr) 36px; }
  .add-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
}

/* admin tabs + customers */
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.full { width: 100%; }
.red { color: var(--red); }
.pill-red { color: #FFB4AD; background: rgba(242,139,130,.16); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); margin-top: -8px; }
.tabs button { min-height: 44px; padding: 0 16px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--soft);
  font-weight: 600; font-size: 14px; cursor: pointer; margin-bottom: -1px; }
.tabs button.on { color: var(--gold2); border-bottom-color: var(--gold2); }
.search { width: 260px; min-height: 40px; border-radius: 999px; font-size: 14px; }
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.cust-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 14px; background: var(--panel);
  border: 1px solid var(--hair); color: inherit; text-align: left; cursor: pointer; font-size: 14px; }
.cust-card:hover { border-color: var(--hair2); }
.cust-card.on { border-color: rgba(201,162,39,.6); background: rgba(201,162,39,.06); }
.cust-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cust-stats > span { display: flex; flex-direction: column; gap: 2px; }
.cust-stats strong { color: var(--cream); font-size: 14px; }
.checkin { font-size: 12px; font-weight: 600; padding-top: 10px; border-top: 1px solid var(--hair); }
.checkin.red { color: #FFB4AD; } .checkin.gold { color: var(--gold2); } .checkin.grey { color: var(--muted); } .checkin.green { color: var(--green); }
.client-badge.lg { width: 52px; height: 52px; border-radius: 12px; font-size: 17px; }
.detail { display: flex; flex-direction: column; gap: 22px; border-color: rgba(201,162,39,.35); }
.info-group { display: flex; flex-direction: column; gap: 10px; }
.group-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold2); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 20px; }
.info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.info-val { color: var(--cream); font-size: 14px; overflow-wrap: anywhere; }
.notes { margin: 0; white-space: pre-wrap; color: var(--cream); line-height: 1.6; }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hair2); background: var(--bg); color: var(--cream);
  font: inherit; font-size: 15px; resize: vertical; }
textarea:focus { outline: 2px solid var(--gold2); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft); cursor: pointer; }
.check input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--gold); }
@media (max-width: 720px) {
  .search { width: 100%; }
  .cust-grid { grid-template-columns: 1fr; }
}

/* wordmark: gold C + ORUTO, like corutotech.com */
.logo { display: inline-flex; flex-direction: column; gap: 4px; }
.logo-row { display: inline-flex; align-items: center; gap: 3px; }
.logo-word { font-weight: 800; color: var(--cream); line-height: 1; letter-spacing: .03em; transform: translateY(.04em); }
.logo-sub { color: var(--muted); letter-spacing: .42em; padding-left: 2px; white-space: nowrap; }

/* ---- shared bits for new features ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 100%; }
.mb-12 { margin-bottom: 12px; }
.btn-danger { background: #8E2C2C; color: #FFE4E1; } .btn-danger:hover { background: #A33636; }
.link-btn.danger { color: #FFB4AD; }
label.btn { cursor: pointer; } label.btn.disabled { opacity: .6; pointer-events: none; }
.pill-blue { color: #B9D3FF; background: rgba(120,160,255,.16); }
.form-ok { font-size: 14px; color: #8FF0BE; background: rgba(67,209,138,.08); border: 1px solid rgba(67,209,138,.3); padding: 10px 12px; border-radius: 10px; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
.field.inline select { width: auto; min-width: 180px; min-height: 44px; }
.edit-grid .field.wide { grid-column: span 2; }
@media (max-width: 720px) { .edit-grid .field.wide { grid-column: auto; } }
.count { margin-left: 8px; font-size: 11px; font-weight: 800; background: var(--gold); color: var(--bg); border-radius: 999px; padding: 1px 7px; }

/* leads */
.lead-list { display: flex; flex-direction: column; margin-top: 4px; max-height: 420px; overflow-y: auto; }
.lead-row { width: 100%; background: none; border: none; border-top: 1px solid rgba(244,242,236,.06); color: inherit; text-align: left; cursor: pointer; font: inherit; padding: 10px 8px; border-radius: 8px; }
.lead-row:hover, .lead-row.on { background: rgba(201,162,39,.08); }
.lead-form { display: flex; flex-direction: column; gap: 14px; }

/* share box */
.share-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; border: 1px solid rgba(201,162,39,.4); background: rgba(201,162,39,.06); }
.share-url { display: flex; gap: 8px; } .share-url input { min-height: 40px; font-size: 13px; }
.report-tools { display: flex; flex-direction: column; gap: 12px; }

/* requests */
.req-row { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid rgba(244,242,236,.06); }
.req-details { margin: 0; white-space: pre-wrap; color: var(--soft); font-size: 14px; line-height: 1.55; }
.req-reply { padding: 10px 12px; border-left: 3px solid var(--gold); background: rgba(201,162,39,.06); border-radius: 0; }
.req-reply p { margin: 4px 0 0; color: var(--cream); font-size: 14px; white-space: pre-wrap; }
.req-admin { display: grid; grid-template-columns: 160px minmax(0,1fr) auto; gap: 8px; align-items: center; }
.req-admin select, .req-admin input { min-height: 40px; font-size: 14px; }
@media (max-width: 720px) { .req-admin { grid-template-columns: 1fr; } }

/* staff invites */
.invite-row { display: grid; grid-template-columns: minmax(0,1fr) 120px auto; gap: 8px; align-items: center; margin-top: 6px; }
.invite-row input, .invite-row select { min-height: 40px; font-size: 14px; }
@media (max-width: 720px) { .invite-row { grid-template-columns: 1fr; } }

/* ---- the monthly report "paper" (light, prints well) ---- */
.report-paper { background: #FFFFFF; color: #1B2333; border-radius: 16px; padding: 40px 44px; max-width: 900px; width: 100%; margin: 0 auto;
  box-sizing: border-box; font-family: var(--font); display: flex; flex-direction: column; gap: 22px; }
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid #C9A227; padding-bottom: 14px; }
.rp-brand { display: flex; align-items: center; gap: 2px; font-weight: 800; font-size: 22px; letter-spacing: .03em; color: #0B1220; }
.rp-brand svg circle { fill: #0B1220; }
.rp-meta { font-size: 13px; color: #5D6A80; font-weight: 600; }
.rp-title { font-size: 30px; font-weight: 800; color: #0B1220; margin: 0; }
.rp-sub { margin: -12px 0 0; color: #5D6A80; }
.rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.rp-kpi { border: 1px solid #E6E2D6; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; background: #FBFAF6; }
.rp-kpi span { font-size: 12px; color: #5D6A80; } .rp-kpi strong { font-size: 28px; font-weight: 800; color: #0B1220; }
.rp-kpi em { font-style: normal; font-size: 12px; color: #8A6D12; font-weight: 600; }
.rp-sec { display: flex; flex-direction: column; gap: 10px; } .rp-sec h2 { font-size: 16px; font-weight: 800; color: #0B1220; margin: 0; }
.rp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.rp-bars { display: flex; gap: 10px; align-items: flex-end; height: 170px; border-bottom: 1px solid #E6E2D6; }
.rp-bar-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.rp-bar { width: 100%; max-width: 64px; height: 120px; display: flex; align-items: flex-end; }
.rp-bar-all { display: flex; align-items: flex-end; width: 100%; background: #3A4C72; border-radius: 6px 6px 0 0; overflow: hidden; }
.rp-bar-ai { display: block; width: 100%; background: #C9A227; }
.rp-bar-n { font-size: 13px; font-weight: 800; color: #0B1220; } .rp-bar-l { font-size: 11px; color: #5D6A80; white-space: nowrap; }
.rp-legend { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #5D6A80; }
.rp-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; } .rp-sw.gold { background: #C9A227; } .rp-sw.navy { background: #3A4C72; margin-left: 10px; }
.rp-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.rp-row strong { color: #0B1220; } .rp-row em { font-style: normal; color: #5D6A80; font-weight: 500; }
.rp-track { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: #EFEBDF; overflow: hidden; }
.rp-track span { display: block; height: 100%; border-radius: 999px; } .rp-track .gold { background: #C9A227; } .rp-track .navy { background: #3A4C72; }
.rp-note { margin: 0; font-size: 13px; color: #5D6A80; }
.rp-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #E6E2D6; padding-top: 12px; font-size: 11px; color: #5D6A80; }
.shared-page { min-height: 100vh; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.shared-bar { width: 100%; max-width: 900px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 720px) { .report-paper { padding: 24px 18px; } .rp-title { font-size: 24px; } }

@media print {
  @page { margin: 12mm; }
  html, body { background: #FFFFFF !important; }
  .no-print, .side, .topbar, .tabs, .toast, .help-box { display: none !important; }
  .shell, .admin, .main, .admin-main, .shared-page { display: block !important; padding: 0 !important; margin: 0 !important; background: #FFFFFF !important; min-height: 0 !important; }
  .main > *:not(.stack-24), .admin-main > *:not(.stack-24) { display: none !important; }
  .stack-24 > *:not(.report-paper) { display: none !important; }
  .report-paper { border-radius: 0; padding: 0; max-width: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
label.btn { margin-left: auto; }
