/* ============================================================
   OVERVIEW — dashboard-only styles: topbar, KPI cards, the
   mini revenue/expense chart, and the "at a glance" list.
   (Table styles are shared — see core/core.css)
   ============================================================ */

.topbar{
  display:flex; justify-content:space-between; align-items:flex-start;
  margin-bottom:26px; flex-wrap:wrap; gap:14px;
}
.topbar h1{ font-size:23px; font-weight:600; margin-bottom:5px; }
.topbar p{ margin:0; color:var(--muted); font-size:13px; }
.range{ display:flex; background:var(--surface); border:1px solid var(--line); border-radius:8px; overflow:hidden; height:fit-content; }
.range span{ padding:8px 14px; font-size:12.5px; color:var(--muted); cursor:pointer; }
.range span.on{ background:var(--gold-soft); color:var(--teal-deep); font-weight:600; }

/* KPI ROW */
.kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:22px; }
.kpi{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:17px 19px; }
.kpi.accent{ border-color:var(--gold); background:linear-gradient(180deg,#FFFCF4,var(--surface)); }
.kpi-top{ display:flex; justify-content:space-between; align-items:flex-start; }
.kpi-label{ font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.kpi-value{ font-family:'Fraunces',serif; font-size:25px; font-weight:600; margin-top:9px; color:var(--ink); }
.kpi-sub{ font-size:11.5px; margin-top:6px; }
.kpi-sub.up{ color:var(--success); }
.kpi-sub.down{ color:var(--danger); }
.kpi-sub.flat{ color:var(--muted); }

/* GRID */
.two-col{ display:grid; grid-template-columns:1.4fr 1fr; gap:16px; align-items:start; margin-bottom:16px; }

/* mini chart */
.chart-wrap{ padding:20px 22px 16px; }
.bars{ display:flex; align-items:flex-end; gap:10px; height:140px; }
.bar{ flex:1; background:linear-gradient(180deg, var(--gold), var(--gold-deep)); border-radius:5px 5px 0 0; position:relative; }
.bar.expense{ background:linear-gradient(180deg,#CDA9A9,#8A1F1F); }
.bar-label{ position:absolute; bottom:-20px; left:0; right:0; text-align:center; font-size:10.5px; color:var(--muted); }
.legend{ display:flex; gap:18px; margin-top:32px; font-size:12px; color:var(--muted); }
.legend span{ display:inline-flex; align-items:center; gap:6px; }
.dot{ width:9px; height:9px; border-radius:50%; display:inline-block; }
.dot.gold{ background:var(--gold); }
.dot.red{ background:var(--danger); }

.list-simple{ padding:4px 20px 16px; }
.li{ display:flex; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--line); font-size:13px; }
.li:last-child{ border-bottom:none; }
.li .t{ color:var(--muted); }
.li .v{ font-weight:600; color:var(--teal-deep); }

@media (max-width:960px){
  .kpis{ grid-template-columns:1fr 1fr; }
  .two-col{ grid-template-columns:1fr; }
}

/* ===================== Overview v2 (Today / Week / Month / Year) ===================== */
.ov-ctl{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.ov-nav{ display:flex; gap:6px; }
/* Backup report panel (Admin only): soft teal, so it stands apart from the cream page. To change the colour, edit the 4 variables on .ov-bk. */
.ov-bk{ --bk-bg:#e4efef; --bk-bd:#9cc3c3; --bk-ln:#c4dada; --bk-mu:#5d7676; background:var(--bk-bg); border:1px solid var(--bk-bd); box-shadow:0 6px 18px rgba(22,79,91,.15); border-radius:12px; margin-bottom:18px; }
.ov-bk-in{ padding:12px 16px; display:flex; flex-direction:column; gap:8px; }
.ov-bk-row{ display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center; }
.ov-bk-t{ font-family:'Fraunces',serif; color:var(--teal-deep); font-size:16px; margin-right:4px; }
.ov-bk-row label{ font-size:13px; color:var(--teal-deep); display:flex; align-items:center; gap:5px; }
.ov-bk-row input[type=date], .ov-bk-row input[type=email]{ border:1px solid #aecaca; background:#fff; border-radius:8px; padding:7px 7px; font:inherit; font-size:13px; }
.ov-bk-mail{ flex:1 1 200px; min-width:170px; } .ov-bk-mail input{ flex:1; min-width:0; }
.ov-bk-q{ display:flex; } .ov-bk-q button, .ov-bk-x{ border:0; background:none; color:var(--teal); font:inherit; font-size:12.5px; font-weight:600; cursor:pointer; padding:6px 6px; text-decoration:underline; }
.ov-bk-x{ margin-left:auto; color:var(--bk-mu); text-decoration:none; font-size:15px; }
.ov-bk-msg{ margin:0; font-size:13px; color:var(--teal-deep); font-weight:600; } .ov-bk-msg:empty{ display:none; }
.ov-bk-msg.bad{ color:#b3261e; }
.ov-bk .btn{ background:#fff; border-color:var(--bk-bd); color:var(--teal-deep); }
.ov-bk .btn:hover:not(:disabled){ border-color:var(--teal); }
.ov-bk-note{ color:var(--bk-mu); font-size:12px; margin:0; }
.ov-bk-file{ display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--bk-ln); }
.ov-bk-ft{ flex:1; min-width:0; } .ov-bk-ft b{ display:block; font-size:14px; } .ov-bk-ft span{ font-size:12.5px; color:var(--bk-mu); }
@media (max-width:640px){ .ov-bk-file{ flex-wrap:wrap; } .ov-bk-ft{ flex-basis:100%; } }

.ov-nav button{ width:34px; height:34px; border:1px solid var(--line); background:var(--surface); border-radius:8px; font-size:18px; line-height:1; color:var(--teal-deep); cursor:pointer; }
.ov-nav button:hover:not(:disabled){ border-color:var(--gold); }
.ov-nav button:disabled{ opacity:.35; cursor:default; }
.kpis{ grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }
.kpi{ text-decoration:none; color:inherit; }

.ov-attn{ background:#fdf1e3; border:1px solid #e8c48a; border-left:5px solid #c9791a; border-radius:var(--radius); padding:14px 20px 8px; margin-bottom:22px; }
.ov-attn.clear{ background:#eaf6ee; border-color:#b9dcc4; border-left-color:#2e8b57; padding-bottom:12px; }
.ov-attn h3{ font-family:'Inter',sans-serif; font-size:12px; letter-spacing:.08em; color:#9a5a10; margin:0 0 6px; font-weight:700; }
.ov-attn.clear h3{ color:#1e6b3a; }
.ov-attn h3 small{ font-weight:500; letter-spacing:0; color:#b08a55; margin-left:6px; }
.ov-ar{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:9px 0; border-top:1px solid #f1dcb4; font-size:13.5px; }
.ov-ar:first-of-type{ border-top:0; }
.ov-info{ color:var(--muted); }
.ov-sib{ color:var(--muted); font-size:12px; }
.ov-btns{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ov-bt{ border:0; border-radius:8px; padding:7px 14px; font:600 12.5px 'Inter',sans-serif; cursor:pointer; background:var(--gold); color:#fff; }
.ov-bt.ok{ background:#2e8b57; }
.ov-bt.no{ background:#fff; color:#b3402a; border:1px solid #e6b9ae; }
.ov-bt.plain{ background:#fff; color:var(--muted); border:1px solid var(--line); }
.ov-bt:hover{ filter:brightness(1.06); }
.ov-ask{ font-size:12.5px; color:var(--muted); }
.ov-ask.okk{ color:#1e6b3a; font-weight:600; } .ov-ask.bad{ color:#b3402a; }

.ov-grid{ display:grid; grid-template-columns:1.25fr 1fr; gap:16px; align-items:start; transition:opacity .15s; }
.ov-grid.busy{ opacity:.45; }
.ov-col{ display:flex; flex-direction:column; gap:16px; min-width:0; }
.ov-col .card[hidden]{ display:none; }
.ov-body{ padding:6px 20px 16px; }
.ov-empty{ color:var(--muted); font-size:13px; padding:10px 0; }
.ov-pr{ display:grid; grid-template-columns:minmax(80px,1.1fr) 70px 1.4fr 42px; gap:10px; align-items:center; padding:7px 0; font-size:13.5px; }
.ov-pr small{ color:var(--muted); }
.ov-hd{ font-size:10.5px; color:var(--muted); letter-spacing:.08em; padding-bottom:2px; }
.ov-bar{ height:9px; background:#f0e3bd; border-radius:5px; overflow:hidden; } .ov-bar i{ display:block; height:100%; background:#2e8b57; }
.ov-st{ display:grid; grid-template-columns:1.4fr 1fr auto; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); font-size:13.5px; align-items:center; }
.ov-st:last-child{ border-bottom:0; }
.ov-st.ov-hd{ grid-template-columns:1.6fr .6fr .6fr .6fr; border-bottom:0; }
.ov-st:not(.ov-hd):not(:has(.ov-mut)){ grid-template-columns:1.6fr .6fr .6fr .6fr; }
.ov-st small{ color:var(--muted); } .ov-mut{ color:var(--muted); }
.ov-st .ok,.ov-row .pos{ color:#2e8b57; } .ov-st .late{ color:#c9791a; } .ov-st .ab,.neg{ color:#b3402a; } .ov-st .mut{ color:var(--muted); font-weight:500; }
.ov-st b{ font-weight:700; }
.ov-row{ display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--line); font-size:13.5px; }
.ov-row b{ font-family:'Fraunces',serif; font-variant-numeric:tabular-nums; }
.ov-net{ display:flex; justify-content:space-between; align-items:center; padding-top:12px; margin-top:2px; border-top:2px solid var(--line); font-size:14px; }
.ov-net b{ font-family:'Fraunces',serif; font-size:20px; } .ov-net b.pos{ color:#2e8b57; }
.ov-note{ margin-top:8px; font-size:12px; color:var(--muted); }
.ov-chartwrap{ padding:18px 20px 14px; }
.ov-chart{ display:flex; align-items:flex-end; gap:3px; height:150px; padding-bottom:22px; }
.ov-pt{ flex:1; height:100%; display:flex; align-items:flex-end; gap:1px; position:relative; min-width:0; }
.ov-pt .b{ flex:1; border-radius:3px 3px 0 0; display:block; }
.ov-pt .b.gold{ background:linear-gradient(180deg,var(--gold),var(--gold-deep)); } .ov-pt .b.red{ background:linear-gradient(180deg,#CDA9A9,#8A1F1F); }
.ov-pt .lab{ position:absolute; bottom:-20px; left:50%; transform:translateX(-50%); font-size:10px; color:var(--muted); white-space:nowrap; }
.ov-chartwrap .legend{ margin-top:14px; }

.ov-setup{ background:#fff; border:1px solid var(--gold); border-radius:var(--radius); padding:16px 20px; margin-bottom:22px; }
.ov-setup-h{ display:flex; justify-content:space-between; align-items:center; }
.ov-setup h3{ font-size:16px; } .ov-setup h3 small{ font:500 12px 'Inter',sans-serif; color:var(--muted); margin-left:8px; }
.ov-x{ border:0; background:none; font-size:22px; color:var(--muted); cursor:pointer; line-height:1; }
.ov-setup-l{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:8px; margin:12px 0; }
.ov-su{ display:flex; gap:10px; align-items:center; padding:10px 12px; border:1px solid var(--line); border-radius:9px; text-decoration:none; color:var(--ink); font-size:13.5px; background:var(--surface); }
.ov-su i{ width:20px; height:20px; border-radius:50%; border:2px solid var(--gold); display:inline-flex; align-items:center; justify-content:center; font-style:normal; font-size:12px; color:#fff; flex:none; }
.ov-su.done{ color:var(--muted); text-decoration:line-through; } .ov-su.done i{ background:#2e8b57; border-color:#2e8b57; }
.ov-setup-p{ margin:6px 0 0; font-size:13.5px; color:var(--muted); max-width:70ch; }
.ov-su.cur{ border-color:var(--gold); background:#fff7e3; font-weight:600; } .ov-su.cur i{ background:var(--gold); }
.ov-share{ font-size:13px; color:var(--muted); display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .ov-share b{ color:var(--teal-deep); word-break:break-all; }

@media (max-width:960px){ .ov-grid{ grid-template-columns:1fr; } }
@media (max-width:560px){ .ov-pr{ grid-template-columns:1fr 64px 1fr 40px; } .ov-ar{ align-items:flex-start; } }

/* date picker (calendar icon between the ‹ › arrows) */
.ov-date{ position:relative; width:34px; height:34px; border:1px solid var(--line); background:var(--surface); border-radius:8px; display:inline-flex; align-items:center; justify-content:center; color:var(--teal-deep); cursor:pointer; }
.ov-date:hover{ border-color:var(--gold); }
.ov-date svg{ width:17px; height:17px; pointer-events:none; }
.ov-date input{ position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; border:0; padding:0; }
.ov-date input::-webkit-calendar-picker-indicator{ position:absolute; inset:0; width:100%; height:100%; cursor:pointer; }

/* print / PDF — the same idea as the curriculum Overview: hide the menu and buttons, keep the numbers */
/* letterhead: only on paper */
.ov-prhead{ display:none; }
@page{ size:A4 portrait; margin:11mm; }
@media print{
  *{ -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  html,body{ background:#fff; }
  #sidebar-container,#footer-container,.za-nav-toggle,.za-nav-backdrop,.ov-ctl,#ov-bkpanel,#ov-setup,#ov-publish,.ov-btns,.card-head .link-btn{ display:none!important; }
  .shell{ display:block; } .shell > main{ padding:0; max-width:none; }
  .topbar{ margin-bottom:12px; } .topbar h1{ font-size:22px; margin-bottom:3px; }
  .ov-prhead{ display:flex; align-items:center; gap:14px; padding-bottom:10px; margin-bottom:14px; border-bottom:2px solid var(--gold); }
  .ov-prhead img{ width:58px; height:58px; object-fit:contain; border-radius:10px; flex:none; }
  .ov-prcrest{ width:58px; height:58px; border-radius:12px; background:var(--gold); color:#fff; font:700 22px 'Fraunces',serif; display:flex; align-items:center; justify-content:center; flex:none; }
  .ov-prhead [hidden]{ display:none!important; }
  .ov-prname{ flex:1; min-width:0; }
  .ov-prname b{ display:block; font:600 20px 'Fraunces',serif; color:var(--ink); }
  .ov-prname span{ display:block; font-size:10.5px; color:var(--muted); margin-top:3px; }
  .ov-prdoc{ text-align:right; font:600 13px 'Inter',sans-serif; color:var(--teal-deep); letter-spacing:.06em; text-transform:uppercase; }
  .ov-prdoc small{ display:block; font-weight:400; text-transform:none; letter-spacing:0; color:var(--muted); font-size:10.5px; margin-top:3px; }
  .kpis{ grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:12px; }
  .kpi{ padding:9px 12px; break-inside:avoid; } .kpi-value{ font-size:20px; margin-top:4px; }
  .ov-attn{ break-inside:avoid; margin-bottom:12px; }
  .ov-grid{ grid-template-columns:1fr 1fr; gap:12px; } .ov-col{ gap:12px; }
  .ov-grid .card{ break-inside:avoid; box-shadow:none; }
  .ov-grid.busy{ opacity:1; }
}

/* publish switch */
.ov-pub{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; background:#fff; border:1px dashed var(--gold); border-radius:var(--radius); padding:12px 18px; margin-bottom:14px; font-size:14px; }
.ov-pub.on{ border-style:solid; border-color:var(--line); color:var(--muted); font-size:13px; padding:9px 16px; }
.ov-pub button:disabled{ opacity:.55; cursor:default; }

/* ===================== first-run screen ("Get your academy ready" / "Your academy is live") ===================== */
.topbar.first .ov-ctl{ display:none; }
.topbar.first{ margin-bottom:18px; align-items:center; }
.topbar.first h1{ font-family:'Fraunces',serif; font-size:30px; color:var(--gold-deep); }
.ov-trial{ display:flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:9px 16px; font-size:13px; }
.ov-trial b{ color:var(--gold-deep); }
.ov-trial i{ width:90px; height:5px; background:#f0e3bd; border-radius:4px; overflow:hidden; display:block; }
.ov-trial u{ display:block; height:100%; background:var(--gold-deep); }
.ov-trial[hidden]{ display:none; }
.fr{ display:flex; flex-direction:column; gap:16px; max-width:1100px; }
.fr-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px 22px; }
.fr-card h3{ font-family:'Fraunces',serif; font-size:17px; margin:0 0 6px; }
.fr-card p{ margin:0 0 12px; font-size:13.5px; color:var(--muted); }
.fr-two{ display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
.fr-b{ display:inline-block; border:1px solid var(--gold); background:#fff; color:var(--gold-deep); border-radius:8px; padding:8px 16px; font:600 13px 'Inter',sans-serif; text-decoration:none; cursor:pointer; white-space:nowrap; }
.fr-b:hover{ filter:brightness(.97); }
.fr-b.primary{ background:var(--gold-deep); border-color:var(--gold-deep); color:#fff; }
.fr-b.wa{ background:#1fa855; border-color:#1fa855; color:#fff; }
.fr-b:disabled{ opacity:.5; cursor:not-allowed; }
.fr-link{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:12px 18px; }
.fr-link > div{ flex:0 1 auto; min-width:0; }
.fr-lbl{ display:block; font-size:12.5px; color:var(--muted); margin-bottom:2px; }
.fr-url{ font-weight:600; color:#1a5fb4; word-break:break-all; text-decoration:none; }
.fr-chip{ background:#eceef2; color:#5b6472; border-radius:999px; padding:3px 11px; font-size:12px; }
.fr-list{ padding:0; overflow:hidden; }
.fr-h{ display:flex; justify-content:space-between; align-items:baseline; padding:18px 22px 10px; }
.fr-h h2{ font-family:'Fraunces',serif; font-size:21px; margin:0; }
.fr-h small{ color:var(--muted); font-size:13px; }
.fr-prog{ height:7px; background:#f0e3bd; margin:0 22px 14px; border-radius:4px; overflow:hidden; }
.fr-prog u{ display:block; height:100%; background:var(--gold-deep); }
.fr-step{ display:flex; align-items:center; gap:16px; padding:15px 22px; border-top:1px solid var(--line); }
.fr-step.cur{ background:#fff3d6; }
.fr-n{ width:34px; height:34px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-style:normal; font-weight:700; font-size:14px; border:2px solid var(--gold); color:var(--gold-deep); background:#fff; }
.fr-step.done .fr-n{ background:#2e8b57; border-color:#2e8b57; color:#fff; }
.fr-step.cur .fr-n{ background:#fff; }
.fr-t{ flex:1; min-width:0; }
.fr-t b{ font-size:15px; }
.fr-t span{ display:block; font-size:13px; color:var(--muted); margin-top:2px; }
.fr-step.done .fr-t b{ color:var(--muted); }
.fr-opt{ font-style:normal; font-size:11px; background:#f6e7c1; color:var(--gold-deep); border-radius:999px; padding:2px 9px; margin-left:6px; }
.fr-go{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:18px 22px 18px; border-top:1px solid var(--line); background:#fff3d6; }
.fr-go h3{ font-family:'Fraunces',serif; font-size:19px; margin:0 0 3px; }
.fr-go p{ margin:0; font-size:13.5px; color:var(--muted); }
.fr-warn{ flex:1 1 100%; display:flex; gap:10px; align-items:flex-start; margin:2px 0 0; padding:10px 14px; background:#fff; border:1px solid var(--line); border-left:4px solid #e0a23a; border-radius:6px; font-size:13px; }
.fr-list .fr-go + .fr-warn{ margin-top:0; background:#fff; }
.fr-live{ display:flex; align-items:center; gap:28px; padding:28px 30px; }
.fr-qr{ width:130px; height:130px; flex:none; border:1px solid var(--line); border-radius:10px; padding:8px; background:#fff; }
.fr-livebody{ min-width:0; }
.fr-livebody .fr-url{ display:block; font-size:21px; margin:2px 0 14px; }
.fr-acts{ display:flex; gap:10px; flex-wrap:wrap; }
.fr-foot{ text-align:center; font-size:13px; color:var(--muted); margin:4px 0 0; }
.fr-foot a{ color:var(--gold-deep); }
@media (max-width:760px){ .fr-two{ grid-template-columns:1fr; } .fr-step{ flex-wrap:wrap; } .fr-live{ flex-direction:column; align-items:flex-start; } }
@media print{ .fr, #ov-trial{ display:none!important; } }

.fr-ic{ flex:none; line-height:1.3; }

/* ---- inline first-run steps (phone, programs, logo) ---- */
.fr-step.open{ flex-wrap:wrap; align-items:flex-start; }
.fr-step.open .fr-t{ flex:1 1 60%; }
.fr-inline{ flex:0 0 100%; padding:8px 0 4px 50px; }
.fr-lab{ display:block; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.fr-ph{ display:flex; gap:10px; margin-bottom:12px; }
.fr-ph input, .fr-own input{ border:1.5px solid var(--line); border-radius:10px; padding:11px 14px; font:500 16px 'Inter',sans-serif; background:#fff; color:var(--ink); }
.fr-ph input:focus, .fr-own input:focus{ outline:none; border-color:var(--gold); }
.fr-ph input::placeholder, .fr-own input::placeholder{ color:#cdbf9f; }
.fr-cc{ width:84px; } #fr-num{ width:300px; max-width:100%; }
.fr-chk{ display:flex; align-items:center; gap:8px; font-size:14px; margin-bottom:14px; }
.fr-frow{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:4px; }
.fr-why{ color:var(--muted); font-size:13px; }
.fr-err{ color:#a12828; font-size:13.5px; margin-top:8px; min-height:1px; }
.fr-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.fr-chip{ border:1.5px solid var(--line); background:#fff; border-radius:99px; padding:8px 16px; font:500 14.5px 'Inter',sans-serif; color:var(--ink); cursor:pointer; }
.fr-chip.on{ background:#fff3d6; border-color:var(--gold); font-weight:600; }
.fr-own{ display:flex; gap:10px; margin-bottom:14px; } .fr-own input{ width:300px; max-width:100%; font-size:15px; padding:9px 14px; }
.fr-logorow{ display:flex; gap:20px; align-items:center; }
.fr-logo{ width:84px; height:84px; border-radius:18px; background:linear-gradient(135deg,#c58f3c,#a8702a); color:#fff; font:700 38px 'Fraunces',serif; display:flex; align-items:center; justify-content:center; flex:none; }
.fr-skip{ color:var(--muted); font-size:13.5px; margin-right:12px; text-decoration:underline; }

/* ---- packages + timetable inline ---- */
.fr-pk{ display:flex; gap:14px; align-items:flex-end; flex-wrap:wrap; margin-bottom:12px; }
.fr-fld label{ display:block; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.fr-fld input, .fr-fld select{ border:1.5px solid var(--line); border-radius:10px; padding:11px 14px; font:500 16px 'Inter',sans-serif; background:#fff; color:var(--ink); min-width:110px; }
.fr-fld select{ min-width:230px; } .fr-fld input:focus, .fr-fld select:focus{ outline:none; border-color:var(--gold); }
.fr-fld input::placeholder{ color:#cdbf9f; }
.fr-unit{ display:flex; align-items:center; gap:8px; } .fr-unit input{ width:140px; min-width:0; } .fr-unit span{ color:var(--muted); font-size:14px; }
.fr-sent{ background:#fff; border:1px dashed var(--gold); border-radius:12px; padding:11px 16px; margin:0 0 14px; font-size:15px; display:inline-block; } .fr-sent b{ color:var(--gold-deep); }
.fr-saved{ display:flex; gap:10px; flex-wrap:wrap; margin:4px 0 14px; } .fr-saved div{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:9px 15px; font-size:14.5px; } .fr-saved b{ color:var(--gold-deep); }
.fr-inline a{ color:var(--gold-deep); }

/* Onboarding timetable step: one compact row, extras and skip as quiet links */
.fr-ttrow{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.fr-ttrow select, .fr-ttrow input{ border:1.5px solid var(--line); border-radius:10px; padding:9px 12px; font:500 14.5px 'Inter',sans-serif; background:#fff; color:var(--ink); min-width:0; }
.fr-ttrow select:focus, .fr-ttrow input:focus{ outline:none; border-color:var(--gold); }
.fr-ttrow input::placeholder{ color:#cdbf9f; }
.fr-ttrow .fr-chips{ margin:0; gap:4px; }
.fr-ttrow .fr-chip{ padding:7px 10px; font-size:13.5px; }
.fr-ttrow .fr-b.primary{ padding:10px 20px; font-size:14px; }
.fr-ttlinks{ display:flex; gap:16px; flex-wrap:wrap; margin-top:10px; }
.fr-ttextra{ margin-top:10px; }
.fr-ttextra[hidden]{ display:none; }
.fr-lnk{ background:none; border:0; padding:4px 2px; font:600 13.5px 'Inter',sans-serif; color:var(--gold-deep); cursor:pointer; text-decoration:none; }
.fr-lnk:hover{ text-decoration:underline; }
.fr-lnk.muted{ color:var(--muted); font-weight:500; }

/* Live screen: one "Share your academy" card with both brochures side by side */
.fr-share{ padding:22px 26px; }
.fr-sh-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.fr-sh-top h2{ margin:0 0 2px; }
.fr-sh-top p{ margin:0; color:var(--muted); font-size:13.5px; }
.fr-sh-row{ display:flex; gap:40px; justify-content:center; flex-wrap:wrap; }
.fr-sh-col{ display:flex; flex-direction:column; align-items:center; gap:10px; }
.fr-sh-col > b{ font-size:15px; }
.fr-bro-f{ display:block; flex:none; width:345px; max-width:100%; height:487px; border:0; background:transparent; }
.fr-dl{ display:inline-flex; align-items:center; gap:8px; border:0; border-radius:24px; background:var(--gold-deep); color:#fff; font:600 15px 'Inter',sans-serif; padding:10px 22px; cursor:pointer; }
.fr-dl:hover{ filter:brightness(1.08); }
.fr-next{ display:flex; gap:22px; flex-wrap:wrap; font-size:13px; color:var(--muted); padding:14px 4px 2px; }
.fr-next b{ color:var(--gold-deep); font-weight:600; }
.fr-push{ margin-left:auto; }
.fr-link + .fr-share{ margin-top:14px; }

.fr-fin{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:16px 4px 4px; font-size:13px; color:var(--muted); }

/* Overview: slim "Pending" strip (replaces the big "Get your academy ready" card) */
.ov-pend{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:22px; padding:9px 16px 9px 18px; background:#fff3d6; border:1px solid #ead39c; border-left:4px solid #e0a23a; border-radius:12px; font-size:13.5px; }
.ov-pd{ width:10px; height:10px; border-radius:50%; background:#e0a23a; flex:none; }
.ov-pl{ color:#7a4f14; font-weight:700; }
.ov-pt2{ color:var(--muted); }
.ov-pchips{ display:flex; gap:8px; flex-wrap:wrap; margin-left:8px; }
.ov-pchip{ display:inline-flex; align-items:center; gap:6px; background:#fff; border:1px solid #e2c98a; border-radius:999px; padding:5px 14px; color:#5a3a0c; font-weight:600; font-size:13px; text-decoration:none; }
.ov-pchip i{ font-style:normal; color:var(--gold-deep); font-weight:700; }
.ov-pchip:hover{ background:#fffaf0; border-color:var(--gold); }
.ov-plink{ margin-left:auto; border:0; background:none; color:var(--gold-deep); font:600 13px 'Inter',sans-serif; cursor:pointer; padding:4px 2px; }
.ov-plink:hover{ text-decoration:underline; }
.ov-pend .ov-x{ font-size:20px; color:#9a8a6a; }
@media (max-width:760px){ .ov-pchips{ margin-left:0; flex:1 1 100%; } .ov-plink{ margin-left:0; } }

/* ---- compact top of the Overview: title + controls share one row, live strip and pending chips share one strip ---- */
.topbar:not(.first){ align-items:center; margin-bottom:14px; }
.topbar:not(.first) > div:first-child{ display:flex; align-items:baseline; gap:6px 14px; flex-wrap:wrap; }
.topbar:not(.first) h1{ margin-bottom:0; }
.ov-pub.ov-live{ display:flex; align-items:center; justify-content:flex-start; gap:10px 12px; margin-bottom:14px; padding:9px 16px; position:relative; }
.ov-pub.ov-live.has-pend{ background:#fff3d6; border-color:#ead39c; border-left:4px solid #e0a23a; }
.ov-pd.live{ background:#1fa855; }
.ov-ll{ color:#1a7d42; font-weight:700; font-size:13.5px; }
.ov-sep{ color:var(--muted); }
.ov-live .ov-pl{ color:#7a4f14; font-weight:700; font-size:13.5px; }
.ov-live .ov-pt2{ color:var(--muted); font-size:13px; }
.ov-live .ov-pchips{ margin-left:2px; }
.ov-lr{ margin-left:auto; display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.ov-more{ position:relative; }
.ov-morebtn{ border:0; background:none; font-size:22px; line-height:1; color:#8a7a5a; cursor:pointer; padding:2px 8px; border-radius:8px; }
.ov-morebtn:hover{ background:rgba(0,0,0,.05); }
.ov-menu{ position:absolute; right:0; top:calc(100% + 6px); z-index:20; min-width:200px; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 10px 26px rgba(90,60,10,.16); padding:6px; }
.ov-menu[hidden]{ display:none; }
.ov-menu a{ display:block; padding:9px 12px; border-radius:7px; font-size:13.5px; color:var(--ink); text-decoration:none; }
.ov-menu a:hover{ background:#fff7e3; }
@media (max-width:760px){ .ov-lr{ margin-left:0; flex:1 1 100%; } }
@media print{ .ov-pub.ov-live{ display:none!important; } }

/* ---- live screen: "Go to my dashboard" bar stays at the bottom while the owner scrolls the brochures ---- */
.fr-donebar{ position:sticky; bottom:0; z-index:5; display:flex; align-items:center; gap:16px; margin:6px -8px 0; padding:14px 22px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 -6px 24px rgba(90,60,10,.14); }
.fr-donetick{ flex:none; width:44px; height:44px; border-radius:50%; background:#e6f6ec; color:#1fa855; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; }
.fr-donetxt{ flex:1; min-width:0; }
.fr-donetxt b{ display:block; font-size:15.5px; }
.fr-donetxt span{ display:block; font-size:13px; color:var(--muted); margin-top:2px; }
.fr-done{ flex:none; display:inline-flex; align-items:center; gap:12px; border:0; border-radius:14px; padding:18px 30px; font:700 17px 'Inter',sans-serif; color:#fff; cursor:pointer; background:linear-gradient(180deg,#c9923a,#a8702a); box-shadow:0 6px 16px rgba(168,112,42,.35); transition:transform .15s, box-shadow .15s; }
.fr-done:hover{ transform:translateY(-1px); box-shadow:0 9px 20px rgba(168,112,42,.45); }
.fr-done:focus-visible{ outline:3px solid #f0d28a; outline-offset:2px; }
[dir="rtl"] .fr-done svg, .rtl .fr-done svg{ transform:scaleX(-1); }
@media (max-width:760px){ .fr-donebar{ flex-wrap:wrap; margin:6px 0 0; } .fr-donetick{ display:none; } .fr-donetxt{ flex:1 1 100%; } .fr-done{ width:100%; justify-content:center; } }
@media print{ .fr-donebar{ display:none!important; } }

/* ---- "Message for parents" panel (live screen + Overview strip) ---- */
.ov-live .ov-msgbtn{ background:#1fa855; border-color:#1fa855; color:#fff; font-weight:600; }
.ov-live .ov-msgbtn:hover{ filter:brightness(1.06); }
.za-msgov{ position:fixed; inset:0; z-index:90; background:rgba(60,40,10,.28); }
.za-msgp{ position:fixed; z-index:91; width:min(440px, calc(100vw - 24px)); background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:0 18px 44px rgba(60,40,10,.28); padding:18px 20px 16px; }
.za-mp-h{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.za-mp-h b{ font-family:'Fraunces',serif; font-size:18px; color:var(--gold-deep); }
.za-mp-lang{ display:inline-flex; border:1px solid #e2d3ae; border-radius:999px; overflow:hidden; }
.za-mp-lang button{ border:0; background:#fff; padding:5px 13px; font:500 12.5px 'Inter',sans-serif; color:var(--muted); cursor:pointer; }
.za-mp-lang button.on{ background:#f7e3bc; color:#5a3a0c; font-weight:700; }
.za-mp-tabs{ display:flex; gap:4px; background:#f8f1de; border-radius:12px; padding:3px; margin-bottom:12px; }
.za-mp-tabs button{ flex:1; border:0; background:none; border-radius:9px; padding:8px 0; font:500 13.5px 'Inter',sans-serif; color:var(--muted); cursor:pointer; }
.za-mp-tabs button.on{ background:#fff; color:#5a3a0c; font-weight:700; box-shadow:0 0 0 1px var(--line); }
.za-msgp textarea{ width:100%; box-sizing:border-box; resize:vertical; min-height:130px; border:1px solid #cfe6be; background:#e7f5dc; border-radius:14px; padding:12px 14px; font:14.5px/1.55 'Inter',sans-serif; color:var(--ink); }
.za-msgp textarea:focus{ outline:2px solid #f0d28a; outline-offset:1px; }
.za-mp-acts{ display:flex; gap:10px; margin-top:12px; }
.za-mp-acts .fr-b{ padding:12px 16px; font-size:14px; border-radius:10px; }
.za-mp-acts .fr-b.wa{ flex:1; }
.za-mp-note{ margin:10px 0 0; font-size:12.5px; color:var(--muted); }
@media (max-width:560px){ .za-msgp{ left:12px; right:12px!important; width:auto; } }
@media print{ .za-msgp, .za-msgov{ display:none!important; } }

/* ---- first-run: design update (3 needed steps, Recommended bank, "Add later" line, trial link) ---- */
.fr-n.plus{ border-style:dashed; color:var(--gold-deep); font-size:16px; }
.fr-later{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 22px; border-top:1px solid var(--line); font-size:13px; color:var(--muted); }
.fr-later b{ color:var(--ink); } .fr-later a{ color:var(--gold-deep); text-decoration:none; } .fr-later a:hover{ text-decoration:underline; }
.fr-ico{ vertical-align:-3px; margin-right:6px; color:var(--gold-deep); }
.ov-trial a{ color:var(--gold-deep); text-decoration:underline; font-size:13px; }
.za-tp{ margin:0 0 10px; font-size:14px; color:var(--ink); line-height:1.5; }

/* ---- bank name drop-down with search (replaces the browser's own suggestion list) ---- */
.fr-list{ overflow:visible; }
.fr-list .fr-go{ border-radius:0 0 var(--radius) var(--radius); }
.fr-cb{ position:relative; flex:1; min-width:170px; }
.fr-cbbtn{ width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px; border:1.5px solid var(--line); border-radius:10px; padding:9px 12px; background:#fff; font:500 14.5px 'Inter',sans-serif; color:var(--ink); cursor:pointer; text-align:left; height:41px; }
.fr-cbbtn .ph{ color:#cdbf9f; }
.fr-cbbtn svg{ color:var(--gold-deep); flex:none; transition:transform .15s; }
.fr-cbbtn[aria-expanded="true"]{ border-color:var(--gold); box-shadow:0 0 0 3px #f7e7c3; }
.fr-cbbtn[aria-expanded="true"] svg{ transform:rotate(180deg); }
.fr-cbdd{ position:absolute; z-index:30; top:calc(100% + 6px); left:0; width:max(100%,300px); background:#fff; border:1px solid #e5d3a6; border-radius:12px; box-shadow:0 14px 34px rgba(90,60,10,.18); overflow:hidden; }
.fr-cbdd[hidden]{ display:none; }
.fr-cbs{ display:flex; align-items:center; gap:9px; padding:4px 14px; border-bottom:1px solid var(--line); background:#fffaf0; color:var(--muted); }
.fr-cbs input{ flex:1; border:0!important; background:transparent!important; outline:none; padding:9px 0!important; font:500 14.5px 'Inter',sans-serif; color:var(--ink); }
.fr-cbl{ max-height:210px; overflow-y:auto; }
.fr-cbg{ padding:8px 16px 4px; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.fr-cbo{ padding:9px 16px; font-size:14.5px; cursor:pointer; }
.fr-cbo b{ background:#fbe9bd; font-weight:600; border-radius:3px; }
.fr-cbo:hover, .fr-cbo.hi{ background:#fff3d6; }
.fr-cbo.on{ font-weight:700; color:var(--gold-deep); }
.fr-cbe{ padding:14px 16px; font-size:13.5px; color:var(--muted); }
.fr-cbother{ display:block; width:100%; border:0; border-top:1px solid var(--line); background:#fffaf0; padding:12px 16px; text-align:left; font:600 14px 'Inter',sans-serif; color:var(--gold-deep); cursor:pointer; }
.fr-cbother:hover{ background:#fff3d6; }
.fr-bkrow{ align-items:flex-start; }
.fr-bkf{ min-width:0; }
.fr-ferr{ color:#a12828; font-size:13px; line-height:1.45; margin-top:6px; white-space:pre-line; }
.fr-ferr:empty{ display:none; }
.fr-bad{ border-color:#a12828 !important; }


/* ---- "Your emails are ready": small sample emails under the brochures (click = full size) ---- */
.fr-mail{ padding:18px 24px 20px; margin-top:14px; }
.fr-mail-h h3{ margin:0 0 2px; font-family:'Fraunces',serif; font-size:19px; color:var(--gold-deep); }
.fr-mail-h p{ margin:0 0 12px; font-size:13px; color:var(--muted); }
.fr-mail-row{ display:flex; gap:14px; flex-wrap:wrap; align-items:flex-start; }
.fr-mg{ border:2px solid; border-radius:14px; padding:10px 12px 12px; }
.fr-mg-p{ border-color:#1f6b7a; background:#f0f6f7; }
.fr-mg-a{ border-color:#a0651b; background:#fdf3e3; }
.fr-mg-h{ display:flex; align-items:center; gap:8px; margin-bottom:8px; flex-wrap:wrap; }
.fr-mg-h small{ font-size:11.5px; color:#5a4a30; }
.fr-mg-tag{ font:700 10.5px 'Inter',sans-serif; letter-spacing:.1em; color:#fff; padding:4px 10px; border-radius:999px; }
.fr-mg-p .fr-mg-tag{ background:#1f6b7a; } .fr-mg-a .fr-mg-tag{ background:#a0651b; }
.fr-mg-in{ display:flex; gap:8px; align-items:flex-start; }
.fr-mg-arr{ align-self:center; color:#1f6b7a; font-size:20px; margin-top:60px; }
.fr-em{ position:relative; width:216px; cursor:zoom-in; border-radius:10px; outline-offset:2px; }
.fr-em:focus-visible{ outline:2px solid var(--gold-deep); }
.fr-em-h{ display:flex; gap:7px; align-items:center; margin-bottom:6px; }
.fr-em-h i{ flex:none; width:20px; height:20px; border-radius:50%; background:#a0651b; color:#fff; font:700 11px 'Inter',sans-serif; font-style:normal; display:flex; align-items:center; justify-content:center; }
.fr-em-h b{ display:block; font-size:12px; color:#3b2a14; line-height:1.25; } .fr-em-h small{ font-size:10.5px; color:var(--muted); }
.fr-em-v{ display:block; position:relative; width:216px; height:300px; overflow:hidden; border:1px solid #e6d9b8; border-radius:8px; background:#f5f1e6; box-shadow:0 2px 8px rgba(60,40,10,.12); transition:box-shadow .15s, transform .15s; }
.fr-em:hover .fr-em-v{ box-shadow:0 6px 16px rgba(60,40,10,.25); transform:translateY(-2px); }
.fr-em-v iframe{ position:absolute; left:0; top:0; width:600px; height:835px; border:0; transform:scale(.36); transform-origin:0 0; pointer-events:none; }
.fr-em-z{ position:absolute; right:6px; bottom:6px; background:rgba(31,107,122,.94); color:#fff; font:700 10px 'Inter',sans-serif; padding:3px 9px; border-radius:999px; }
.fr-mail-note{ flex:1 1 200px; min-width:200px; display:flex; flex-direction:column; gap:8px; align-items:flex-start; font-size:13px; color:#5a4a30; line-height:1.55; padding-top:6px; }
.fr-mail-note b{ color:var(--gold-deep); }
.fr-mail-note em{ font-style:normal; font-size:12.5px; color:var(--muted); }
.fr-em-modal{ position:fixed; inset:0; z-index:1000; background:rgba(40,28,10,.55); display:flex; align-items:center; justify-content:center; padding:16px; }
.fr-em-box{ background:#fff; border-radius:14px; width:min(640px,100%); height:min(92vh,980px); display:flex; flex-direction:column; overflow:hidden; box-shadow:0 20px 50px rgba(0,0,0,.35); }
.fr-em-bh{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid #eadfc0; background:#fbf6e8; }
.fr-em-bh b{ font-size:14px; color:#3b2a14; }
.fr-em-box iframe{ flex:1; width:100%; border:0; background:#f5f1e6; }
@media (max-width:700px){ .fr-mg-in{ flex-direction:column; } .fr-mg-arr{ margin:0; transform:rotate(90deg); align-self:center; } }

/* ---- Email samples panel ---- */
.za-esm-ov{ position:fixed; inset:0; z-index:900; background:rgba(40,28,10,.45); }
.za-esm{ position:fixed; z-index:901; left:50%; top:50%; transform:translate(-50%,-50%); width:min(1000px, calc(100vw - 24px)); max-height:92vh; overflow:auto; background:#fffdf7; border:1px solid var(--line); border-radius:18px; box-shadow:0 22px 54px rgba(40,28,10,.35); padding:22px 26px 20px; }
.za-esm-h{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; } .za-esm-h b{ font:700 22px 'Fraunces',serif; color:var(--gold-deep); } .za-esm-h p{ margin:4px 0 0; color:var(--muted); font-size:14px; max-width:60ch; }
.za-esm-g{ margin:20px 0 10px; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.za-esm-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; }
.za-esm-card{ text-align:left; background:#fff; border:1px solid var(--line); border-radius:14px; padding:10px; cursor:zoom-in; font:inherit; color:inherit; display:flex; flex-direction:column; gap:4px; }
.za-esm-card:hover{ border-color:var(--gold); box-shadow:0 6px 16px rgba(60,40,10,.16); } .za-esm-card:focus-visible{ outline:2px solid var(--gold-deep); outline-offset:2px; }
.za-esm-img{ display:block; position:relative; height:210px; overflow:hidden; border-radius:8px; background:#f5f1e6; border:1px solid #eadfc0; margin-bottom:6px; } .za-esm-img img{ width:100%; display:block; }
.za-esm-card b{ font-size:15px; } .za-esm-card small{ color:var(--muted); font-size:12.5px; line-height:1.4; }
.za-esm-note{ margin:18px 0 0; color:var(--muted); font-size:13px; text-align:center; }
.fr-em-scroll{ flex:1; overflow:auto; background:#f5f1e6; } .fr-em-scroll img{ width:100%; display:block; }
@media print{ .za-esm, .za-esm-ov{ display:none!important; } }
.za-esm-img iframe{ position:absolute; left:0; top:0; width:620px; height:900px; border:0; transform-origin:0 0; pointer-events:none; background:#f5f1e6; }
.za-esm-wait{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:13px; }

#ov-backup[hidden], .ov-bk[hidden]{ display:none!important; }
/* The Backup button in the top bar wears the same teal as its panel */
#ov-backup{ background:#e4efef; border-color:#9cc3c3; color:var(--teal-deep); }
#ov-backup:hover{ border-color:var(--teal); }
#ov-backup[aria-expanded="true"]{ background:var(--teal); border-color:var(--teal); color:#fff; }
.ov-live .ov-ok{ color:#1e6b3a; font-weight:700; font-size:13.5px; }

/* First-run steps on a phone: the open step's box was 50px wider than the card, so the sport chips (Karate, Tennis), the phone box and the "type your own" box were cut off on the right. */
.fr-inline{ box-sizing:border-box; min-width:0; max-width:100%; }
.fr-step.open{ min-width:0; }
@media (max-width:560px){
  .fr-step{ padding-left:16px; padding-right:16px; }
  .fr-inline{ padding-left:0; }
  .fr-ph #fr-num{ flex:1 1 auto; width:auto; min-width:0; }
  .fr-own{ flex-wrap:wrap; } .fr-own input{ flex:1 1 100%; width:100%; }
}
