:root{
  --blue:#0066B1; --blue-dk:#00467a; --ink:#1a2230; --muted:#5c6b7a;
  --band:#eef4fb; --cat:#dbe8f7; --line:#c2d2e4; --boxfill:#f7fafd;
  --grid:#d3dded; --page:#eef1f5; --field:#fbfcfe;
  --m1:#63b1e5; --m2:#2e86c8; --m3:#0b3e6f;   /* brand ramp — rooftop-neutral, no BMW M red */
}
*{box-sizing:border-box;}
html{ -webkit-print-color-adjust:exact; print-color-adjust:exact; }
/* clip (not hidden): hidden turns body into a scroll container, which kills
   position:sticky for every descendant (the paperwork wizard's nav bar) */
@media screen{ html, body{ max-width:100%; overflow-x:clip; } }
body{
  margin:0; background:var(--page); color:var(--ink);
  font-family:"Barlow", -apple-system, system-ui, sans-serif;
  font-size:14px; line-height:1.4;
}

/* ---- toolbar ---- */
.toolbar{
  position:sticky; top:0; z-index:50;
  display:flex; gap:10px; align-items:center; justify-content:center;
  padding:12px 16px; background:rgba(26,34,48,.96); backdrop-filter:blur(6px);
  box-shadow:0 2px 10px rgba(0,0,0,.18);
}
.toolbar .brand{ display:flex; flex-direction:column; gap:1px; line-height:1.05; cursor:pointer;
  margin-right:auto; font-family:"Barlow Semi Condensed"; padding:1px 8px 1px 0; }
.brand-eyebrow{ font-size:9px; letter-spacing:.22em; color:#7f93ab; font-weight:600; }
.brand-name{ font-size:17px; color:#fff; font-weight:700; letter-spacing:.04em; transition:color .12s; }
.toolbar .brand:hover .brand-name{ color:#9fd0f5; }
.btn{
  font-family:"Barlow Semi Condensed"; font-weight:600; letter-spacing:.04em;
  font-size:13px; text-transform:uppercase; cursor:pointer; border:none;
  padding:9px 16px; border-radius:6px; transition:transform .08s ease, background .15s ease;
}
.btn:active{ transform:translateY(1px); }
.btn:disabled{ opacity:.5; cursor:not-allowed; }
.btn-primary{ background:var(--blue); color:#fff; }
.btn-primary:hover{ background:#0a76c7; }
.btn-ghost{ background:transparent; color:#cdd8e4; border:1px solid #44546a; }
.btn-ghost:hover{ background:#2a3445; color:#fff; }

/* ---- sheet ---- */
.sheet{
  background:#fff; max-width:8.5in; margin:22px auto; padding:0.55in 0.62in 0.5in;
  box-shadow:0 6px 28px rgba(20,40,70,.14); border-radius:3px;
}

/* ---- masthead ---- */
.title{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:30px;
  line-height:1.05; margin:0; letter-spacing:-.01em; }
.sub{ display:flex; align-items:baseline; gap:10px; margin-top:3px; color:var(--muted);
  font-size:13px; font-weight:500; }
.sub .dealer{ color:var(--blue); font-family:"Barlow Semi Condensed"; font-weight:700;
  letter-spacing:.07em; font-size:15px; }
.mstripe{ display:flex; height:4px; margin:9px 0 0; border-radius:3px; overflow:hidden; }
.mstripe i{ flex:1; } .mstripe i:nth-child(1){background:var(--m1);}
.mstripe i:nth-child(2){background:var(--m2);} .mstripe i:nth-child(3){background:var(--m3);}

/* ---- info grid ---- */
.info{ display:grid; grid-template-columns:auto 1fr auto 1fr; gap:6px 18px;
  align-items:end; margin-top:16px; }
.info label{ font-weight:600; color:var(--ink); white-space:nowrap; font-size:13px; padding-bottom:3px; }
.underline{ border:none; border-bottom:1.4px solid var(--line); background:transparent;
  font-family:inherit; font-size:14px; color:var(--ink); padding:3px 2px; width:100%; }
.underline:focus{ outline:none; border-bottom-color:var(--blue); background:#f3f8fe; }
.rtype{ margin-top:10px; color:var(--muted); font-size:13px; display:flex; flex-wrap:wrap;
  gap:4px 16px; align-items:center; }
.rtype b{ color:var(--ink); font-weight:600; margin-right:4px; }
.opt{ display:inline-flex; align-items:center; gap:5px; cursor:pointer; }

/* ---- section band ---- */
.band{ margin:22px 0 10px; padding:6px 10px; background:var(--band);
  border-bottom:2px solid var(--blue);
  font-family:"Barlow Semi Condensed"; font-weight:700; font-size:16px; color:var(--blue-dk);
  letter-spacing:.01em; }
.hint{ color:var(--muted); font-style:italic; font-size:12.5px; margin:-2px 0 8px; }

/* ---- tables ---- */
table{ width:100%; border-collapse:collapse; }
th{ background:var(--blue); color:#fff; font-family:"Barlow Semi Condensed"; font-weight:600;
  letter-spacing:.02em; font-size:12.5px; text-align:center; padding:7px 8px;
  border:1px solid var(--blue); }
th.l{ text-align:left; }
td{ border:1px solid var(--grid); padding:0; vertical-align:middle; }
td.metric{ padding:7px 9px; font-size:13.5px; }
.cat td{ background:var(--cat); color:var(--blue-dk); font-family:"Barlow Semi Condensed";
  font-weight:700; font-size:12px; letter-spacing:.04em; text-transform:uppercase;
  padding:5px 9px; }
.cell-input{ width:100%; border:none; background:var(--field); text-align:center;
  font-family:inherit; font-size:13.5px; color:var(--ink); padding:7px 6px; }
.cell-input:focus{ outline:2px solid var(--blue); outline-offset:-2px; background:#eef6ff; }
.att{ text-align:center; font-weight:600; color:var(--blue-dk); font-size:13.5px;
  padding:7px 6px; background:#f0f6fc; }
.overall{ display:flex; align-items:center; gap:12px; margin-top:12px;
  font-family:"Barlow Semi Condensed"; font-weight:700; font-size:16px; }
.overall .box{ min-width:96px; text-align:center; padding:6px 12px; border:1.6px solid var(--blue);
  border-radius:6px; background:#f0f6fc; color:var(--blue-dk); font-size:17px; }

/* table text inputs for goals / actions */
td .tin{ width:100%; border:none; background:var(--field); font-family:inherit;
  font-size:13.5px; color:var(--ink); padding:9px 8px; }
td .tin:focus{ outline:2px solid var(--blue); outline-offset:-2px; background:#eef6ff; }
td.center .tin{ text-align:center; }
.addrow{ margin:7px 0 0; }
.add-btn{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:12px;
  letter-spacing:.03em; text-transform:uppercase; color:var(--blue); background:#eef4fb;
  border:1px dashed var(--line); border-radius:6px; padding:6px 12px; cursor:pointer; }
.add-btn:hover{ background:#e2eefb; }

/* ---- rating ---- */
.ratings{ display:flex; flex-direction:column; gap:8px; margin-top:4px; }
.rate{ display:flex; gap:10px; align-items:flex-start; padding:9px 12px; border:1px solid var(--grid);
  border-radius:8px; cursor:pointer; transition:border-color .15s, background .15s; }
.rate:hover{ border-color:var(--blue); background:#f5faff; }
.rate input{ margin-top:3px; accent-color:var(--blue); transform:scale(1.15); }
.rate b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:14.5px; }
.rate .d{ color:var(--muted); font-size:13px; }
.rate.sel{ border-color:var(--blue); background:#eef6ff; box-shadow:inset 3px 0 0 var(--blue); }

/* ---- text areas ---- */
textarea{ width:100%; min-height:78px; border:1.4px solid var(--line); border-radius:8px;
  background:var(--boxfill); font-family:inherit; font-size:14px; color:var(--ink);
  padding:10px 12px; resize:vertical; line-height:1.55; }
textarea:focus{ outline:none; border-color:var(--blue); background:#f3f8fe; }

/* ---- acknowledgment ---- */
.ack{ color:var(--muted); font-style:italic; font-size:12.5px; margin:2px 0 16px; }
.sigs{ display:grid; grid-template-columns:1fr 200px; gap:18px 26px; }
.sigfield label{ display:block; font-size:11.5px; color:var(--muted); letter-spacing:.03em;
  text-transform:uppercase; font-weight:600; margin-bottom:2px; }

/* ---- reference (now used inside the modal) ---- */
.defs p{ margin:0 0 9px; font-size:13.5px; }
.defs b{ color:var(--blue-dk); font-family:"Barlow Semi Condensed"; }
table.gloss td{ padding:7px 9px; font-size:13px; vertical-align:top; }
table.gloss td.term{ background:var(--boxfill); color:var(--blue-dk); font-weight:600;
  font-family:"Barlow Semi Condensed"; width:30%; white-space:nowrap; }
.notes{ margin:6px 0 0 18px; padding:0; }
.notes li{ margin:0 0 6px; font-size:13.5px; }

.footnote{ text-align:center; color:#9aa7b4; font-size:11.5px; margin:26px 0 4px;
  border-top:1px solid var(--grid); padding-top:8px; }

/* ---- launcher / home ---- */
.launcher{ max-width:8.5in; margin:26px auto; padding:0 14px; }
.lhero{ background:#fff; border-radius:12px; padding:30px 34px 18px; box-shadow:0 6px 28px rgba(20,40,70,.14); }
.lhero h1{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:30px; margin:0; letter-spacing:-.01em; }
.lhero .dealer{ color:var(--blue); font-family:"Barlow Semi Condensed"; font-weight:700; letter-spacing:.07em; font-size:15px; }
.lhero .sub{ color:var(--muted); font-size:13px; margin-top:3px; }
.lhero .mstripe{ margin:10px 0 0; }
.pick{ color:var(--muted); font-size:12.5px; font-style:italic; margin:18px 4px 8px; }
td.calc{ text-align:center; background:#eef4fb; color:var(--ink); font-weight:600; font-size:13.5px; padding:7px 6px; }
.metric.sub{ padding-left:30px; position:relative; color:#41566b; font-size:13px; }
.metric.sub:before{ content:"↳"; position:absolute; left:13px; top:6px; color:#9fb2c6; }
.autohint{ color:#8a97a4; font-size:11px; font-weight:400; }
.cards{ display:grid; grid-template-columns:1fr 1fr; gap:16px; padding-bottom:28px; }
#hubCards{ margin-top:26px; }
.card{ display:flex; align-items:stretch; gap:14px; text-align:left; cursor:pointer;
  background:#fff; border:1px solid var(--grid); border-left:5px solid var(--blue);
  border-radius:11px; padding:16px 16px; font-family:inherit;
  box-shadow:0 3px 14px rgba(20,40,70,.08); transition:transform .1s ease, box-shadow .15s ease, border-color .15s; }
.card:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(20,40,70,.16); border-left-color:var(--m3); }
.badge{ flex:0 0 50px; height:50px; border-radius:10px; background:linear-gradient(150deg,var(--blue),var(--blue-dk));
  color:#fff; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:17px;
  display:flex; align-items:center; justify-content:center; letter-spacing:.02em; }
.cbody{ flex:1; }
.cname{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:18px; color:var(--ink); }
.cblurb{ color:var(--muted); font-size:12.8px; margin:2px 0 8px; line-height:1.4; }
.chips{ display:flex; flex-wrap:wrap; gap:5px; }
.chips span{ font-size:10.5px; font-weight:600; letter-spacing:.03em; text-transform:uppercase;
  color:var(--blue-dk); background:var(--band); border:1px solid #dbe8f7; border-radius:20px; padding:2px 9px; }
.cgo{ align-self:center; color:var(--blue); font-family:"Barlow Semi Condensed"; font-weight:600;
  font-size:13px; white-space:nowrap; }
@media (max-width:640px){ .cards{ grid-template-columns:1fr; } }

/* ---- hub tiles (modern launcher) ---- */
.tiles{ display:grid; grid-template-columns:repeat(auto-fill,minmax(225px,1fr)); gap:14px; margin-top:18px; }
.tile{ position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:9px; text-align:left;
  background:#fff; border:1px solid var(--grid); border-radius:16px; padding:18px 18px 16px; cursor:pointer;
  font-family:inherit; transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.tile:hover{ transform:translateY(-3px); box-shadow:0 10px 26px rgba(20,40,70,.13); border-color:var(--blue); }
.tile:active{ transform:translateY(-1px); }
.tbadge{ width:46px; height:46px; border-radius:12px; background:linear-gradient(150deg,var(--blue),var(--blue-dk));
  color:#fff; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:15px; display:flex; align-items:center; justify-content:center; letter-spacing:.02em; }
.tname{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:16.5px; color:var(--ink); line-height:1.15; }
.tdesc{ font-size:12px; color:var(--muted); line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tgo{ position:absolute; right:14px; bottom:12px; color:var(--blue); font-size:16px; font-weight:700; opacity:0; transform:translateX(-4px); transition:all .14s ease; }
.tile:hover .tgo{ opacity:1; transform:translateX(0); }
@media (max-width:640px){
  .tiles{ grid-template-columns:1fr 1fr; gap:10px; }
  .tile{ padding:14px 13px 12px; border-radius:14px; gap:7px; }
  .tbadge{ width:38px; height:38px; border-radius:10px; font-size:13px; }
  .tname{ font-size:14px; }
  .tdesc{ display:none; }
  .tgo{ display:none; }
}

/* toolbar contextual buttons */
.toolbar .ctx{ display:none; }
body.in-form .toolbar .form-only{ display:inline-flex; }
body.in-form .toolbar .home-link, body.in-dash .toolbar .home-link{ display:inline-flex; }
.toolbar .home-link{ display:none; background:transparent; color:#cdd8e4; border:1px solid #44546a; }
.toolbar .home-link:hover{ background:#2a3445; color:#fff; }

/* status pills + lock banner */
.statuspill{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:12px; letter-spacing:.05em;
  text-transform:uppercase; padding:5px 12px; border-radius:20px; }
.pill-draft{ background:#34425a; color:#cdd8e4; }
.pill-locked{ background:#1f7a3d; color:#fff; }
.lockbanner{ display:flex; align-items:center; gap:12px; margin:12px 0 0; padding:10px 14px;
  background:#fdecec; border:1px solid #f1b5b5; border-radius:8px; color:#9a2330; font-size:13.5px; }
.lockbanner b{ font-family:"Barlow Semi Condensed"; }
.mini{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:12px; letter-spacing:.03em;
  padding:5px 12px; border-radius:6px; cursor:pointer; }
.lockbanner .mini{ background:#9a2330; color:#fff; border:none; }
input:disabled, textarea:disabled, select:disabled{ background:#f3f5f8 !important; color:#39434f !important;
  -webkit-text-fill-color:#39434f; opacity:1; cursor:default; }
.dashbtn{ margin-top:14px; }

/* ---- dashboard ---- */
.dash{ max-width:9.2in; margin:26px auto; padding:0 14px; }
.dash .lhero{ background:#fff; border-radius:12px; padding:26px 30px 18px; box-shadow:0 6px 28px rgba(20,40,70,.14); }
.dashbar{ display:flex; gap:10px; align-items:center; margin:18px 2px 10px; flex-wrap:wrap; }
.dashbar .btn{ color:var(--blue-dk); border:1px solid var(--line); background:#fff; }
.dashbar .btn:hover{ background:#eef6ff; border-color:var(--blue); }
.dashsearch{ flex:1; min-width:220px; border:1.4px solid var(--line); border-radius:8px; padding:9px 12px;
  font-family:inherit; font-size:14px; }
.dashsearch:focus{ outline:none; border-color:var(--blue); }
.dashtable{ background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 3px 14px rgba(20,40,70,.08); }
.dashtable th{ background:var(--blue); }
.dashtable td{ padding:10px 12px; font-size:13.5px; border:1px solid var(--grid); }
.dashtable td.c{ text-align:center; } .dashtable td.nowrap{ white-space:nowrap; }
.tag{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:11px; letter-spacing:.04em;
  text-transform:uppercase; padding:3px 10px; border-radius:20px; white-space:nowrap; }
.tag-draft{ background:#e7edf5; color:#44515e; }
.tag-locked{ background:#dff0e4; color:#1f7a3d; }
.tag-due{ background:#fff1d6; color:#9a6a12; }
.tag-overdue{ background:#fde0e0; color:#b3261e; }
.rowbtn{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:12px; cursor:pointer;
  border:1px solid var(--line); background:#fff; color:var(--blue); border-radius:6px; padding:5px 11px; }
.rowbtn:hover{ background:#eef6ff; } .rowbtn.del{ color:#b23; border-color:#e7b3bd; }
.rowbtn.del:hover{ background:#fdeef0; }
.dashempty{ text-align:center; color:var(--muted); padding:40px; font-size:14px; }

/* ---- toast ---- */
.toast{ position:fixed; left:50%; bottom:26px; transform:translateX(-50%) translateY(20px);
  background:#1a2230; color:#fff; padding:11px 20px; border-radius:8px; font-size:13.5px;
  box-shadow:0 8px 26px rgba(0,0,0,.25); opacity:0; pointer-events:none; transition:.25s; z-index:200; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* =========================== NEW COMPONENTS =========================== */

/* ---- login screen ---- */
.authwrap{ min-height:calc(100vh - 56px); display:flex; align-items:center; justify-content:center; padding:24px; }
.authcard{ background:#fff; width:100%; max-width:400px; border-radius:14px; padding:34px 32px;
  box-shadow:0 10px 40px rgba(20,40,70,.18); }
.authcard .dealer{ color:var(--blue); font-family:"Barlow Semi Condensed"; font-weight:700; letter-spacing:.07em; font-size:14px; }
.authcard h1{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:24px; margin:2px 0 0; }
.authcard .mstripe{ margin:10px 0 20px; }
.field{ margin-bottom:14px; }
.field label{ display:block; font-size:12px; font-weight:600; color:var(--muted); margin-bottom:5px;
  text-transform:uppercase; letter-spacing:.03em; }
.field input, .field select{ width:100%; border:1.4px solid var(--line); border-radius:8px; padding:10px 12px;
  font-family:inherit; font-size:14px; color:var(--ink); background:#fff; }
.field input:focus, .field select:focus{ outline:none; border-color:var(--blue); }
.authcard .btn-primary{ width:100%; padding:12px; margin-top:4px; }
.autherr{ color:#b3261e; font-size:13px; margin:4px 0 12px; min-height:0; }

/* ---- modal ---- */
.modal-overlay{ position:fixed; inset:0; background:rgba(16,24,38,.55); z-index:150;
  display:none; align-items:flex-start; justify-content:center; padding:40px 16px; overflow:auto; }
.modal-overlay.open{ display:flex; }
.modal{ background:#fff; width:100%; max-width:760px; border-radius:14px; box-shadow:0 18px 60px rgba(0,0,0,.3);
  padding:26px 30px 30px; animation:pop .14s ease; }
.modal.narrow{ max-width:440px; }
@keyframes pop{ from{ transform:translateY(10px); opacity:.6; } to{ transform:none; opacity:1; } }
.modal-head{ display:flex; align-items:center; gap:12px; margin-bottom:6px; }
.modal-head h2{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:22px; margin:0; flex:1; }
.modal-close{ border:none; background:#eef1f5; color:#44515e; width:32px; height:32px; border-radius:8px;
  font-size:18px; cursor:pointer; line-height:1; }
.modal-close:hover{ background:#e0e6ee; }

/* ---- notifications bell ---- */
.bellwrap{ position:relative; }
.bell{ background:transparent; border:1px solid #44546a; color:#cdd8e4; border-radius:8px;
  width:38px; height:36px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.bell svg{ display:block; }
.bell:hover{ background:#2a3445; color:#fff; }
.bellcount{ position:absolute; top:-6px; right:-6px; background:var(--m3); color:#fff; font-size:10px;
  font-weight:700; min-width:18px; height:18px; border-radius:9px; display:flex; align-items:center;
  justify-content:center; padding:0 4px; }
.notifpanel{ position:absolute; right:0; top:44px; width:340px; max-height:420px; overflow:auto;
  background:#fff; border-radius:12px; box-shadow:0 14px 40px rgba(0,0,0,.25); display:none; z-index:120; }
.notifpanel.open{ display:block; }
.notifpanel .nphead{ display:flex; align-items:center; padding:12px 14px; border-bottom:1px solid var(--grid); }
.notifpanel .nphead b{ flex:1; font-family:"Barlow Semi Condensed"; font-size:15px; color:var(--ink); }
.notifpanel .npread{ font-size:12px; color:var(--blue); cursor:pointer; background:none; border:none; }
.nitem{ display:flex; gap:10px; padding:11px 14px; border-bottom:1px solid #eef1f5; cursor:pointer; }
.nitem:hover{ background:#f6f9fd; }
.nitem.unread{ background:#f0f7ff; }
.nitem .ndot{ flex:0 0 8px; height:8px; border-radius:50%; margin-top:5px; background:var(--blue); }
.nitem.t-overdue .ndot{ background:var(--m3); } .nitem.t-due_soon .ndot{ background:#e0a32e; }
.nitem.t-completed .ndot{ background:#1f7a3d; }
.nitem .nmsg{ font-size:13px; color:var(--ink); line-height:1.35; }
.nitem .ntime{ font-size:11px; color:var(--muted); margin-top:2px; }
.notifempty{ padding:26px; text-align:center; color:var(--muted); font-size:13px; }

/* ---- admin: user list ---- */
.usertable{ width:100%; border-collapse:collapse; margin-top:4px; }
.usertable th{ background:var(--blue); font-size:12px; }
.usertable td{ padding:9px 10px; border:1px solid var(--grid); font-size:13.5px; }
.usertable select{ border:1px solid var(--line); border-radius:6px; padding:5px 8px; font-family:inherit; font-size:13px; }
.rolepill{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
  padding:3px 9px; border-radius:20px; background:var(--band); color:var(--blue-dk); }
.statusdot{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; }
.statusdot.on{ background:#1f7a3d; } .statusdot.off{ background:#b3261e; }
.usertable td.center{ text-align:center; }
.usertable .adminchk{ display:inline-flex; cursor:pointer; }
.usertable .adminchk input{ width:17px; height:17px; accent-color:var(--blue); cursor:pointer; }
.usertable .adminchk input:disabled{ cursor:not-allowed; }
.adminchk-inline{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink); cursor:pointer; padding-top:6px; }
.adminchk-inline input{ width:17px; height:17px; accent-color:var(--blue); flex:0 0 auto; }
/* ---- employee profile expansion (Team & Profiles) ---- */
.missbadge{ display:inline-flex; align-items:center; justify-content:center; min-width:16px; height:16px; border-radius:8px; background:#b3261e; color:#fff; font-size:10px; font-weight:700; padding:0 4px; margin-left:3px; }
tr.profrow > td{ background:#f6faff !important; padding:0 !important; }
.profpanel{ padding:14px 16px; border-top:2px solid var(--blue); }
.profcols{ display:grid; grid-template-columns:minmax(220px, 300px) 1fr; gap:18px; }
.profh{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:12.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--blue-dk); margin-bottom:9px; }
.proffield{ display:flex; align-items:center; gap:10px; margin-bottom:9px; }
.proffield label{ font-size:13px; font-weight:600; color:var(--ink); width:74px; }
.proffield input{ border:1.4px solid var(--line); border-radius:8px; padding:7px 10px; font-family:inherit; font-size:13px; color:var(--ink); background:#fff; }
.profsys{ display:flex; flex-direction:column; gap:6px; }
.profsysrow{ display:flex; align-items:center; gap:9px; font-size:13px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:8px; padding:7px 11px; cursor:pointer; }
.profsysrow input{ width:16px; height:16px; accent-color:#1f7a3d; flex:0 0 auto; }
.profsysrow em{ font-style:normal; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin-left:auto; }
.profsysrow.has em{ color:#1f7a3d; }
.profsysrow.miss{ border-color:#e7b3bd; background:#fffafa; }
.profsysrow.miss em{ color:#b3261e; }
/* admin matrices */
.adminmatrix{ margin-top:22px; }
.matrixwrap{ overflow-x:auto; border:1px solid var(--line); border-radius:10px; background:#fff; }
table.matrix{ border-collapse:collapse; width:100%; min-width:640px; }
.matrix th{ background:var(--blue); color:#fff; font-family:"Barlow Semi Condensed"; font-weight:600; font-size:11.5px; padding:7px 6px; text-align:center; border:1px solid var(--blue); }
.matrix th.l{ text-align:left; padding-left:12px; min-width:190px; }
.matrix td{ border:1px solid var(--grid); padding:6px; font-size:13px; }
.matrix td.l{ font-weight:600; color:var(--ink); padding-left:12px; }
.matrix td.center{ text-align:center; }
.matrix input[type=checkbox]{ width:15px; height:15px; accent-color:var(--blue); }
.matrix .mcat{ display:block; font-size:9.5px; color:var(--muted); font-family:"Barlow Semi Condensed"; text-transform:uppercase; letter-spacing:.04em; }
.matrix .mx{ border:none; background:#f1f3f5; color:#5c6b7a; width:20px; height:20px; border-radius:5px; font-size:13px; line-height:1; cursor:pointer; }
.matrix .mx:hover{ background:#fdeef0; color:#b3261e; }
/* my-profile modal */
.pfwho{ display:flex; flex-direction:column; gap:1px; margin:4px 0 12px; }
.pfwho b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:17px; color:var(--ink); }
.pfwho span{ font-size:12.5px; color:var(--muted); }
.pfdates{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pfsys{ display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:9px; padding:8px 12px; margin-bottom:7px; }
.pfsys .pfname{ font-size:13.5px; font-weight:600; color:var(--ink); flex:1; }
.pfhas{ font-size:11px; font-weight:700; color:#1f7a3d; background:#e1f5ee; border-radius:5px; padding:2px 8px; }
.pfmiss{ font-size:11px; font-weight:700; color:#b3261e; background:#fdeef0; border-radius:5px; padding:2px 8px; }
.bd-row{ display:flex; gap:7px; flex-wrap:wrap; }
.bd-row select, .bd-row input{ border:1.4px solid var(--line); border-radius:8px; padding:8px 9px; font-family:inherit; font-size:13px; color:var(--ink); background:#fff; min-width:0; box-sizing:border-box; }
.bd-row select:focus, .bd-row input:focus{ outline:none; border-color:var(--blue); }
.bd-row select{ flex:1 1 86px; }
.bd-row input{ flex:1 1 96px; width:auto; }
.tp-field input[type="date"]{ width:100%; box-sizing:border-box; }
@media (max-width:680px){ .bd-row select, .bd-row input{ flex:1 1 100%; } }
@media (max-width:680px){ .profcols{ grid-template-columns:1fr; } .pfdates{ grid-template-columns:1fr; } }

/* ---- Team & Profiles: tabs + people master-detail ---- */
.tp-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin:16px 0 14px; }
.tp-tab{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:13.5px; letter-spacing:.02em; padding:8px 18px;
  border-radius:9px; border:1px solid var(--line); background:#fff; color:var(--muted); cursor:pointer; transition:all .12s; }
.tp-tab:hover{ border-color:var(--blue); color:var(--blue-dk); }
.tp-tab.on{ background:var(--blue); border-color:var(--blue); color:#fff; box-shadow:0 2px 8px rgba(0,102,177,.25); }
.tp-err{ padding:20px; text-align:center; color:var(--muted); background:#fff; border:1px solid var(--line); border-radius:12px; }
.tp-card{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; box-shadow:0 3px 14px rgba(20,40,70,.07); }
.tp-layout{ display:grid; grid-template-columns:330px 1fr; gap:14px; align-items:start; }
.tp-listcol{ background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow:0 3px 14px rgba(20,40,70,.07); }
.tp-toolbar{ display:flex; gap:8px; padding:10px; border-bottom:1px solid var(--grid); background:#fbfcfe; }
.tp-search{ flex:1; border:1.4px solid var(--line); border-radius:8px; padding:8px 11px; font-family:inherit; font-size:13px; color:var(--ink); min-width:0; }
.tp-search:focus{ outline:none; border-color:var(--blue); }
.tp-addbtn{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:12.5px; text-transform:uppercase; letter-spacing:.03em;
  background:var(--blue); color:#fff; border:none; border-radius:8px; padding:0 14px; cursor:pointer; }
.tp-addbtn:hover{ background:#0a76c7; }
.tp-list{ max-height:560px; overflow-y:auto; }
.tp-person{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:10px 12px; border:none; border-bottom:1px solid var(--grid);
  background:#fff; cursor:pointer; font-family:inherit; transition:background .1s; }
.tp-person:hover{ background:#f2f8fe; }
.tp-person.on{ background:#e2eefb; box-shadow:inset 3px 0 0 var(--blue); }
.tp-person.inact{ opacity:.55; }
.tp-av{ width:36px; height:36px; border-radius:50%; background:linear-gradient(150deg,#37577a,#1a2b3f); color:#fff;
  font-family:"Barlow Semi Condensed"; font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.tp-av.big{ width:48px; height:48px; font-size:17px; border-radius:14px; }
.tp-pmeta{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.tp-pmeta b{ font-size:13.5px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tp-pmeta span{ font-size:11px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tp-pbadges{ display:flex; gap:4px; flex:0 0 auto; }
.tp-badge{ font-style:normal; font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; border-radius:5px; padding:2px 6px; }
.tp-badge.adm{ background:#e6f1fb; color:#0c447c; }
.tp-badge.miss{ background:#b3261e; color:#fff; border-radius:8px; min-width:17px; text-align:center; }
.tp-badge.off{ background:#eceff2; color:#5c6b7a; }
.tp-badge.you{ background:#e1f5ee; color:#085041; }
.tp-detail{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 18px; box-shadow:0 3px 14px rgba(20,40,70,.07); min-height:300px; }
.tp-empty{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:280px; text-align:center;
  color:var(--muted); font-size:13.5px; line-height:1.6; padding:20px; }
.tp-emptyicon{ font-size:34px; }
.tp-dhead{ display:flex; align-items:center; gap:12px; padding-bottom:13px; border-bottom:1px solid var(--grid); }
.tp-dwho{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.tp-dwho b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:18px; color:var(--ink); }
.tp-dwho span{ font-size:12px; color:var(--muted); }
.tp-dbadges{ display:flex; gap:5px; }
.tp-sec{ padding-top:14px; }
.tp-sect{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--blue-dk); margin-bottom:9px; }
.tp-grid{ display:grid; grid-template-columns:1fr 1fr; gap:11px 14px; }
.tp-field{ display:flex; flex-direction:column; gap:4px; font-size:12px; font-weight:600; color:var(--muted); }
.tp-field select, .tp-field input{ border:1.4px solid var(--line); border-radius:8px; padding:8px 10px; font-family:inherit; font-size:13.5px; color:var(--ink); background:#fff; width:100%; }
.tp-field select:focus, .tp-field input:focus{ outline:none; border-color:var(--blue); }
.tp-check{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink); cursor:pointer; grid-column:1/-1; }
.tp-check input{ width:16px; height:16px; accent-color:var(--blue); }
.tp-check.dim{ color:var(--muted); }
.tp-actions{ display:flex; gap:8px; flex-wrap:wrap; grid-column:1/-1; align-items:center; }
@media (max-width:860px){
  .tp-layout{ grid-template-columns:1fr; }
  .tp-list{ max-height:300px; }
}
.adminsub{ color:var(--muted); font-size:13px; margin:0 0 14px; }
.adminadd{ display:grid; grid-template-columns:1fr 1fr; gap:10px 12px; margin-top:8px; }
.adminadd .full{ grid-column:1 / -1; }

/* ---- demo banner ---- */
.demobar{ background:#fff7e6; border-bottom:1px solid #f0d28a; color:#7a5a12; font-size:12.5px;
  text-align:center; padding:7px 14px; }
.demobar b{ font-family:"Barlow Semi Condensed"; }

/* ---- pre-form role hint chip on dashboard rows ---- */
.role-chip{ font-size:11px; color:var(--blue-dk); }

@media (max-width:640px){
  .adminadd{ grid-template-columns:1fr; }
  .notifpanel{ width:300px; }
}

/* =========================================================================
   DAILY CHECK-IN MODULE  (scoped under #checkinView so it never collides
   with the Reviews module's global table/th/td styles)
   ========================================================================= */
#checkinView.ci-root{ background:#f5f4f0; min-height:calc(100vh - 56px);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; color:#1a1a18; padding:18px 16px 48px; }
#checkinView .ci-container{ max-width:1500px; margin:0 auto; }
#checkinView .ci-header{ display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:14px; flex-wrap:wrap; gap:10px; }
#checkinView .ci-title{ font-size:20px; font-weight:700; letter-spacing:-.02em; }
#checkinView .ci-subtitle{ font-size:12px; color:#73726c; margin-top:3px; }
#checkinView .ctrl-row{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
#checkinView .date-input{ font-size:11px; padding:5px 8px; border-radius:6px; border:1px solid rgba(0,0,0,.15); font-family:inherit; color:#1a1a18; background:#fff; cursor:pointer; }
#checkinView .day-badge{ font-size:11px; font-weight:600; padding:5px 10px; border-radius:6px; }
#checkinView .day-badge.wd{ background:#E1F5EE; color:#085041; border:1px solid #9FE1CB; }
#checkinView .day-badge.sun{ background:#FAEEDA; color:#633806; border:1px solid #FAC775; }
#checkinView .ci-btn{ font-size:11px; padding:5px 12px; border-radius:6px; border:1px solid rgba(0,0,0,.15); cursor:pointer; font-family:inherit; background:transparent; color:#44443f; transition:all .12s; }
#checkinView .ci-btn:hover{ background:rgba(0,0,0,.05); }
#checkinView .ci-btn-clear{ color:#A32D2D; border-color:#F7C1C1; }
#checkinView .ci-btn-clear:hover{ background:#FCEBEB; }
#checkinView .save-flash{ font-size:10px; color:#1D9E75; font-weight:500; opacity:0; transition:opacity .4s; white-space:nowrap; }
#checkinView .ci-banner{ font-size:11px; color:#73726c; margin-bottom:10px; padding:7px 12px; background:#f0efe9; border-radius:6px; border:1px solid rgba(0,0,0,.07); line-height:1.6; }

#checkinView .ci-exp{ margin-bottom:12px; padding:12px 16px; background:#fff; border-radius:8px; border:1px solid rgba(0,0,0,.09); border-left:4px solid #1D9E75; }
#checkinView .ci-exp-header{ display:flex; align-items:baseline; gap:10px; margin-bottom:10px; }
#checkinView .ci-exp-title{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
#checkinView .ci-exp-note{ font-size:10px; color:#73726c; }
#checkinView .ci-exp-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
#checkinView .ci-exp-item{ background:#f5f4f0; border-radius:6px; padding:8px 10px; }
#checkinView .ci-exp-metric{ font-size:9px; font-weight:700; color:#73726c; text-transform:uppercase; letter-spacing:.06em; margin-bottom:3px; }
#checkinView .ci-exp-target{ font-size:13px; font-weight:700; }
#checkinView .ci-exp-sub{ font-size:10px; color:#73726c; margin-top:2px; }

#checkinView .ci-tablewrap{ background:#fff; border-radius:10px; border:1px solid rgba(0,0,0,.1); overflow:auto; max-height:calc(100vh - 96px); box-shadow:0 1px 4px rgba(0,0,0,.06); }
#checkinView table.ci-table{ border-collapse:collapse; min-width:900px; width:100%; }
#checkinView .ci-table .thead-top th, #checkinView .ci-table .thead-sub th{ border:1px solid rgba(0,0,0,.09); background:#fafaf8; padding:0; vertical-align:middle; color:#1a1a18; }
#checkinView .status-th{ position:sticky; left:0; z-index:11; width:40px; min-width:40px; text-align:center; background:#fafaf8 !important; border-right:1px solid rgba(0,0,0,.09) !important; font-size:10px; color:#bbb; }
#checkinView .stc{ position:sticky; left:0; z-index:4; width:40px; min-width:40px; text-align:center; vertical-align:middle; border:1px solid rgba(0,0,0,.07); cursor:pointer; padding:0; transition:background .1s; }
#checkinView .stc:hover{ background:rgba(0,0,0,.04) !important; }
#checkinView .sdot{ width:14px; height:14px; border-radius:50%; margin:auto; transition:all .15s; pointer-events:none; }
#checkinView .don{ background:#1D9E75; border:2px solid #0F6E56; box-shadow:0 0 0 3px rgba(29,158,117,.13); }
#checkinView .doff{ background:transparent; border:2px solid #D3D1C7; }
#checkinView .name-th{ position:sticky; left:40px; z-index:11; text-align:left; padding:9px 10px !important; width:162px; min-width:162px; font-size:10px; font-weight:400; color:#aaa; border-right:2px solid rgba(0,0,0,.13) !important; background:#fafaf8 !important; }
#checkinView .nc{ position:sticky; left:40px; z-index:4; border-right:2px solid rgba(0,0,0,.13) !important; border-top:1px solid rgba(0,0,0,.07); border-bottom:1px solid rgba(0,0,0,.07); width:162px; min-width:162px; padding:6px 10px; vertical-align:middle; height:50px; }
#checkinView .nd{ display:flex; flex-direction:column; gap:2px; }
#checkinView .nt{ font-size:11px; font-weight:600; }
#checkinView .nt.off{ color:#999; }
#checkinView .nr{ font-size:9px; color:#bbb; margin-top:1px; }
#checkinView .iv-th{ font-size:11px; font-weight:700; padding:9px 4px !important; text-align:center; border-right:2px solid rgba(0,0,0,.13) !important; border-bottom:1px solid rgba(0,0,0,.07) !important; }
#checkinView .total-th{ font-size:11px; font-weight:700; color:#44443f; padding:9px 4px !important; text-align:center; background:#f0efe9 !important; border-bottom:1px solid rgba(0,0,0,.07) !important; }
#checkinView .mth{ font-size:9px; font-weight:500; color:#aaa; padding:4px 1px !important; text-align:center; height:26px; width:34px; min-width:34px; }
#checkinView .mth.sold{ border-right:2px solid rgba(0,0,0,.13) !important; }
#checkinView .mth.tc{ background:#f0efe9 !important; color:#73726c !important; font-weight:600 !important; width:46px; min-width:46px; }
#checkinView .mth.tc.sold{ border-right:none !important; }
#checkinView .sec-hdr{ padding:5px 12px !important; font-size:9px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
#checkinView .por-note{ font-size:8px; font-weight:400; opacity:.7; margin-left:6px; font-style:italic; text-transform:none; letter-spacing:0; }
#checkinView .dc{ border:1px solid rgba(0,0,0,.07); height:50px; padding:0; vertical-align:middle; text-align:center; width:34px; min-width:34px; }
#checkinView .dc.sold{ border-right:2px solid rgba(0,0,0,.13) !important; }
#checkinView .ni2{ width:100%; border:none; background:transparent; text-align:center; font-size:11px; font-family:inherit; padding:4px 1px; color:#1a1a18; outline:none; -moz-appearance:textfield; height:100%; }
#checkinView .ni2::-webkit-inner-spin-button, #checkinView .ni2::-webkit-outer-spin-button{ -webkit-appearance:none; margin:0; }
#checkinView .ni2:focus{ background:rgba(55,138,221,.06); }
#checkinView .ni2::placeholder{ color:#e4e4e2; font-size:10px; }
#checkinView .gc{ background:#ECEAE6 !important; border:1px solid rgba(0,0,0,.07); height:50px; vertical-align:middle; text-align:center; font-size:14px; color:#C8C6C1; width:34px; min-width:34px; }
#checkinView .gc.sold{ border-right:2px solid rgba(0,0,0,.13) !important; }
#checkinView .gtc{ height:50px; background:#ECEAE6 !important; text-align:center; vertical-align:middle; font-size:14px; color:#C8C6C1; border:1px solid rgba(0,0,0,.07); width:46px; min-width:46px; }
#checkinView .tc2{ height:50px; text-align:center; vertical-align:middle; font-size:12px; font-weight:700; border:1px solid rgba(0,0,0,.07); width:46px; min-width:46px; background:#f5f4f0; }
#checkinView .store-row td{ border:1px solid rgba(255,255,255,.05); vertical-align:middle; height:54px; text-align:center; background:#2c2c2a; font-size:12px; font-weight:600; color:#fff; }
#checkinView .ssc{ position:sticky; left:0; z-index:5; background:#111110 !important; width:40px; min-width:40px; border-right:1px solid rgba(255,255,255,.07) !important; }
#checkinView .snc{ position:sticky; left:40px; z-index:5; background:#111110 !important; text-align:left !important; padding:0 12px !important; border-right:2px solid rgba(255,255,255,.1) !important; width:162px; min-width:162px; }
#checkinView .ssub{ font-size:9px; font-weight:700; color:rgba(255,255,255,.35); letter-spacing:.08em; text-transform:uppercase; }
#checkinView .smain{ font-size:12px; font-weight:700; color:#fff; margin-top:2px; }
#checkinView .ivt{ font-size:11px; font-weight:600; background:#2c2c2a !important; }
#checkinView .gt{ font-size:14px; font-weight:800; background:#111110 !important; width:46px; min-width:46px; }
#checkinView .ci-footer{ margin-top:10px; font-size:11px; color:#aaa; line-height:1.6; }
/* Frozen headers: top header row stays on vertical scroll; status+name columns stay on horizontal scroll. */
#checkinView .ci-table .thead-top th{ position:sticky; top:0; z-index:9; height:31px; }
#checkinView .ci-table .thead-sub th{ position:sticky; top:31px; z-index:9; }
#checkinView .ci-table .thead-top th.status-th, #checkinView .ci-table .thead-top th.name-th{ z-index:13; }
#checkinView .ci-printonly{ display:none; }
@media(max-width:600px){ #checkinView .ci-exp-grid{ grid-template-columns:repeat(2,1fr); } }

/* --- ApexBoard skin for the Daily Check-In (overrides the ported warm styles) --- */
#checkinView.ci-root{ background:var(--page); font-family:"Barlow",-apple-system,system-ui,sans-serif; color:var(--ink); }
#checkinView .ci-title{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:22px; color:var(--ink); }
#checkinView .ci-subtitle{ color:var(--blue); font-family:"Barlow Semi Condensed"; font-weight:700; letter-spacing:.07em; font-size:13px; }
#checkinView .date-input{ border:1.4px solid var(--line); color:var(--ink); font-size:12px; }
#checkinView .ci-btn{ font-family:"Barlow Semi Condensed"; font-weight:600; letter-spacing:.03em; text-transform:uppercase; font-size:12px; background:#fff; color:var(--blue-dk); border:1px solid var(--line); }
#checkinView .ci-btn:hover{ background:#eef6ff; border-color:var(--blue); }
#checkinView .ci-btn-clear{ color:#b3261e; border-color:#e7b3bd; }
#checkinView .ci-btn-clear:hover{ background:#fdeef0; }
#checkinView .day-badge{ font-family:"Barlow Semi Condensed"; }
#checkinView .day-badge.wd{ background:var(--band); color:var(--blue-dk); border:1px solid #dbe8f7; }
#checkinView .day-badge.sun{ background:#fff7e6; color:#7a5a12; border:1px solid #f0d28a; }
#checkinView .save-flash{ color:#1f7a3d; }
#checkinView .ci-banner{ background:var(--band); color:var(--muted); border:1px solid #dbe8f7; }
#checkinView .ci-exp{ border:1px solid var(--line); border-left:4px solid var(--blue); }
#checkinView .ci-exp-title{ font-family:"Barlow Semi Condensed"; color:var(--blue-dk); }
#checkinView .ci-exp-item{ background:var(--band); }
#checkinView .ci-exp-target{ font-family:"Barlow Semi Condensed"; color:var(--ink); }
#checkinView .ci-tablewrap{ border:1px solid var(--line); box-shadow:0 3px 14px rgba(20,40,70,.08); }
#checkinView .ci-table .thead-top th, #checkinView .ci-table .thead-sub th{ background:var(--blue) !important; color:#fff !important; font-family:"Barlow Semi Condensed"; border-color:rgba(255,255,255,.18) !important; }
#checkinView .status-th{ background:var(--blue) !important; color:#cfe2f5; border-right:1px solid rgba(255,255,255,.2) !important; }
#checkinView .name-th{ background:var(--blue) !important; color:#cfe2f5; border-right:2px solid rgba(255,255,255,.28) !important; }
#checkinView .iv-th{ color:#fff; border-right:2px solid rgba(255,255,255,.28) !important; }
#checkinView .total-th{ background:var(--blue-dk) !important; color:#fff; }
#checkinView .mth{ color:#dbe8f7; }
#checkinView .mth.tc{ background:var(--blue-dk) !important; color:#fff !important; }
#checkinView .don{ background:var(--blue); border:2px solid var(--blue-dk); box-shadow:0 0 0 3px rgba(0,102,177,.13); }
#checkinView .doff{ border:2px solid #c2d2e4; }
#checkinView .gc{ background:#eef1f5 !important; color:#aab6c4; }
#checkinView .gtc{ background:#eef1f5 !important; color:#aab6c4; }
#checkinView .nt{ font-family:"Barlow"; }
#checkinView .ni2:focus{ background:#eef6ff; outline:2px solid var(--blue); outline-offset:-2px; }
#checkinView .store-row td{ background:var(--ink) !important; }
#checkinView .ssc, #checkinView .snc, #checkinView .gt{ background:#11161f !important; }
#checkinView .ivt{ background:var(--ink) !important; }
#checkinView .sec-hdr{ font-family:"Barlow Semi Condensed"; }

/* check-in history panel */
#checkinView .ci-history-panel{ background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 6px 20px rgba(20,40,70,.12); padding:12px 14px; margin-bottom:12px; }
#checkinView .ci-hist-title{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:12px; color:var(--blue-dk); text-transform:uppercase; letter-spacing:.04em; margin-bottom:8px; }
#checkinView .ci-hist-list{ display:flex; flex-wrap:wrap; gap:6px; }
#checkinView .ci-hist-item{ display:flex; flex-direction:column; align-items:flex-start; gap:1px; background:var(--band); border:1px solid #dbe8f7; border-radius:8px; padding:6px 11px; cursor:pointer; font-family:inherit; color:var(--ink); }
#checkinView .ci-hist-item:hover{ background:#e2eefb; border-color:var(--blue); }
#checkinView .ci-hist-item.cur{ background:var(--blue); color:#fff; border-color:var(--blue); }
#checkinView .ci-hist-item b{ font-size:12.5px; font-family:"Barlow Semi Condensed"; }
#checkinView .ci-hist-item span{ font-size:10px; opacity:.7; }
#checkinView .ci-hist-empty{ color:var(--muted); font-size:13px; }

/* toolbar autosave indicator */
.savedflash{ color:#54d6a0; font-size:11px; font-weight:600; opacity:0; transition:opacity .3s; align-self:center; white-space:nowrap; }
.savedflash.show{ opacity:1; }

/* users page: add-login card */
.adduserbox{ background:#fff; border:1px solid var(--grid); border-radius:10px; box-shadow:0 3px 14px rgba(20,40,70,.08); padding:18px 20px 22px; margin-top:20px; }
.adduserbox .band{ margin-top:0; }

/* ---- navbar: brand parts + account menu ---- */
.toolbar{ flex-wrap:nowrap; }
.brand{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.brand-app{ color:#fff; }
.acct{ position:relative; }
.acctbtn{ display:inline-flex; align-items:center; gap:7px; background:transparent; color:#cdd8e4;
  border:1px solid #44546a; border-radius:8px; padding:7px 11px; cursor:pointer;
  font-family:"Barlow Semi Condensed"; font-weight:600; font-size:13px; letter-spacing:.02em; }
.acctbtn:hover{ background:#2a3445; color:#fff; }
.acctbtn .accticon{ flex:0 0 auto; }
.acctbtn .acctname{ white-space:nowrap; max-width:140px; overflow:hidden; text-overflow:ellipsis; }
.acctbtn .acctcaret{ opacity:.65; flex:0 0 auto; }
.acctmenu{ position:absolute; right:0; top:44px; min-width:210px; background:#fff; border-radius:12px;
  box-shadow:0 14px 40px rgba(0,0,0,.28); display:none; z-index:120; overflow:hidden; }
.acctmenu.open{ display:block; }
.acctmeta{ padding:12px 14px; border-bottom:1px solid var(--grid); }
.acctmeta b{ display:block; font-family:"Barlow Semi Condensed"; font-size:14px; color:var(--ink); }
.acctmeta span{ font-size:12px; color:var(--muted); }
.acctitem{ display:block; width:100%; text-align:left; background:none; border:none; padding:11px 14px;
  font-family:inherit; font-size:13.5px; color:var(--ink); cursor:pointer; }
.acctitem:hover{ background:#f0f6fc; }
.acctitem.danger{ color:#b3261e; border-top:1px solid var(--grid); }
.acctitem.danger:hover{ background:#fdeef0; }

/* ---- uniform module bar (reviews + check-in) ---- */
.modulebar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; max-width:8.5in;
  margin:18px auto 0; padding:9px 14px; background:#fff; border:1px solid var(--grid);
  border-radius:10px; box-shadow:0 2px 10px rgba(20,40,70,.06); }
.modulebar .mb-title{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:16px;
  color:var(--ink); margin-right:auto; white-space:nowrap; }
.modulebar .mb-actions{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.modulebar .savedflash{ color:#1f7a3d; }
.mb-btn{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:12px; letter-spacing:.03em;
  text-transform:uppercase; background:#fff; color:var(--blue-dk); border:1px solid var(--line);
  border-radius:6px; padding:6px 12px; cursor:pointer; }
.mb-btn:hover{ background:#eef6ff; border-color:var(--blue); }
.mb-btn:disabled{ opacity:.5; cursor:not-allowed; }
#reviewBar{ display:none; }
body[data-view="form"] #reviewBar{ display:flex; }
#checkinView .ci-bar{ max-width:none; margin:0 0 12px; }
#checkinView .ci-bar .mb-actions{ gap:6px; }
#checkinView .ci-arrow{ font-size:15px; line-height:1; padding:4px 10px; font-weight:700; }

/* ---- presence: collaborative "who's here / editing" ---- */
.presence{ display:inline-flex; align-items:center; gap:8px; }
.presence:empty{ display:none; }
.pr-chips{ display:inline-flex; }
.pr-chip{ width:24px; height:24px; border-radius:50%; background:var(--blue); color:#fff; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:10px; display:inline-flex; align-items:center; justify-content:center; border:2px solid #fff; margin-left:-7px; box-shadow:0 0 0 1px var(--line); }
.pr-chip:first-child{ margin-left:0; }
.pr-chip.editing{ background:#1f9d57; box-shadow:0 0 0 1px #1f9d57, 0 0 0 4px rgba(31,157,87,.18); }
.pr-label{ font-size:11px; font-weight:600; color:var(--muted); white-space:nowrap; }
.pr-label.editing{ color:#1f7a3d; }

/* ---- install-to-home-screen banner ---- */
.install-banner{ display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--grid); border-left:4px solid var(--blue); border-radius:12px; padding:12px 14px; margin-bottom:18px; box-shadow:0 4px 16px rgba(20,40,70,.1); }
.install-banner .ib-icon{ width:42px; height:42px; border-radius:10px; flex:0 0 auto; }
.install-banner .ib-text{ flex:1; display:flex; flex-direction:column; gap:1px; min-width:0; }
.install-banner .ib-text b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:15px; color:var(--ink); }
.install-banner .ib-text span{ font-size:12.5px; color:var(--muted); line-height:1.4; }
.install-banner .ib-btn{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:13px; letter-spacing:.03em; text-transform:uppercase; background:var(--blue); color:#fff; border:none; border-radius:7px; padding:9px 16px; cursor:pointer; flex:0 0 auto; }
.install-banner .ib-btn:hover{ background:#0a76c7; }
.install-banner .ib-x{ background:none; border:none; color:#9aa7b4; font-size:20px; line-height:1; cursor:pointer; padding:2px 6px; flex:0 0 auto; }
.install-banner .ib-x:hover{ color:#44515e; }

/* ---- Road to the Sale module ---- */
#rtsView.ci-root{ background:var(--page); font-family:"Barlow",-apple-system,system-ui,sans-serif; color:var(--ink); min-height:calc(100vh - 56px); padding:18px 16px 48px; }
#rtsView .ci-container{ margin:0 auto; }       /* was only scoped to #checkinView — center it */
#rtsView .ci-bar{ max-width:none; margin:0 0 12px; }
#rtsView .rts-intro{ font-size:12.5px; color:var(--muted); margin-bottom:12px; padding:9px 13px; background:var(--band); border:1px solid #dbe8f7; border-radius:8px; line-height:1.55; }
#rtsView .rts-tablewrap{ background:#fff; border:1px solid var(--line); border-radius:10px; overflow-x:auto; box-shadow:0 3px 14px rgba(20,40,70,.08); }
#rtsView table.rts-table{ width:100%; border-collapse:collapse; min-width:560px; }
#rtsView .rts-table thead th{ background:var(--blue); color:#fff; font-family:"Barlow Semi Condensed"; font-weight:600; font-size:11.5px; line-height:1.25; padding:8px 6px; text-align:center; border:1px solid var(--blue); }
#rtsView .rts-table thead th.rts-sh{ text-align:left; padding-left:14px; width:38%; }
#rtsView .rts-row{ cursor:pointer; transition:background .1s; }
#rtsView .rts-row:nth-child(even) td{ background:#f7fafd; }
#rtsView .rts-row:hover td{ background:#eef6ff; }
#rtsView .rts-row.sel td{ background:#e2eefb; }
#rtsView .rts-sc{ position:relative; text-align:left; padding:8px 8px 8px 34px; border:1px solid var(--grid); height:50px; vertical-align:middle; }
#rtsView .rts-num{ position:absolute; left:8px; top:50%; transform:translateY(-50%); width:20px; height:20px; border-radius:50%; background:var(--band); border:1px solid var(--line); font-size:10px; font-weight:700; color:var(--blue-dk); display:flex; align-items:center; justify-content:center; font-family:"Barlow Semi Condensed"; }
#rtsView .rts-num.opt{ border-style:dashed; }
#rtsView .rts-name{ font-size:12.5px; font-weight:600; color:var(--ink); display:block; }
#rtsView .rts-sub{ font-size:10.5px; color:var(--muted); display:block; margin-top:1px; }
#rtsView .rts-tc{ text-align:center; vertical-align:middle; height:50px; font-size:12px; font-weight:700; padding:4px; border:1px solid; }
#rtsView .rts-tc .rts-ts{ display:block; font-size:9px; opacity:.85; font-weight:500; margin-top:1px; }
#rtsView .rts-te{ border:1px solid var(--grid); }
#rtsView .rts-legend{ display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:12px; padding:0 2px; font-size:11.5px; color:var(--ink); }
#rtsView .rts-li{ display:flex; align-items:center; gap:6px; }
#rtsView .rts-ld{ width:11px; height:11px; border-radius:50%; flex-shrink:0; }
#rtsView .rts-detail{ margin-top:14px; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow:0 6px 20px rgba(20,40,70,.1); }
#rtsView .rts-dh{ display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--grid); background:var(--band); }
#rtsView .rts-dn{ width:26px; height:26px; border-radius:50%; background:var(--blue); color:#fff; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:12px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
#rtsView .rts-dt{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:17px; color:var(--ink); flex:1; }
#rtsView .rts-db{ font-size:10px; color:var(--muted); border:1px dashed var(--line); border-radius:4px; padding:2px 8px; text-transform:uppercase; letter-spacing:.04em; }
#rtsView .rts-dc{ border:none; background:#eef1f5; color:#44515e; width:28px; height:28px; border-radius:7px; font-size:17px; line-height:1; cursor:pointer; }
#rtsView .rts-dc:hover{ background:#e0e6ee; }
#rtsView .rts-dbody{ padding:14px 16px; }
#rtsView .rts-dsum{ font-size:13px; color:var(--ink); line-height:1.6; margin-bottom:14px; padding-left:11px; border-left:3px solid var(--line); }
#rtsView .rts-droles{ display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
#rtsView .rts-drole{ border-radius:8px; padding:10px 13px; border-left:3px solid transparent; }
#rtsView .rts-drname{ font-size:12px; font-weight:700; margin-bottom:3px; font-family:"Barlow Semi Condensed"; }
#rtsView .rts-drnote{ font-size:12px; opacity:.92; line-height:1.55; }
#rtsView .rts-dcols{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
#rtsView .rts-dct{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin-bottom:9px; padding-bottom:5px; border-bottom:1px solid var(--grid); font-family:"Barlow Semi Condensed"; }
#rtsView .rts-dct.g{ color:#0f6e56; }
#rtsView .rts-dct.r{ color:#b3261e; }
#rtsView .rts-dp{ font-size:12.5px; color:var(--ink); line-height:1.55; padding-left:15px; position:relative; margin-bottom:7px; }
#rtsView .rts-dp .rts-m{ position:absolute; left:0; top:0; font-weight:700; }
#rtsView .rts-dp .rts-m.g{ color:#0f6e56; }
#rtsView .rts-dp .rts-m.r{ color:#b3261e; }
@media(max-width:600px){ #rtsView .rts-dcols{ grid-template-columns:1fr; } }

/* ---- Schedule module (month calendar + day view) ---- */
#scheduleView.ci-root{ background:var(--page); font-family:"Barlow",-apple-system,system-ui,sans-serif; color:var(--ink); min-height:calc(100vh - 56px); padding:18px 16px 48px; }
#scheduleView .ci-container{ margin:0 auto; }
#scheduleView .ci-bar{ max-width:none; margin:0 0 12px; }
:is(#scheduleView,#schTplModal) .ci-btn{ font-family:"Barlow Semi Condensed"; font-weight:600; letter-spacing:.03em; text-transform:uppercase; font-size:12px; background:#fff; color:var(--blue-dk); border:1px solid var(--line); border-radius:6px; padding:6px 12px; cursor:pointer; transition:all .12s; }
:is(#scheduleView,#schTplModal) .ci-btn:hover{ background:#eef6ff; border-color:var(--blue); }
#scheduleView .sch-monthbar{ display:flex; align-items:center; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
#scheduleView .sch-monthlabel{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:19px; color:var(--ink); min-width:160px; text-align:center; }
#scheduleView .sch-legend{ margin-left:auto; display:flex; flex-wrap:wrap; gap:6px 14px; font-size:11.5px; color:var(--muted); align-items:center; }
#scheduleView .sch-li{ display:flex; align-items:center; gap:5px; }
:is(#scheduleView,#schTplModal) .sch-dot{ width:10px; height:10px; border-radius:50%; display:inline-block; flex:0 0 auto; }
.sch-dot.t0{ background:#2f7fc1; } .sch-dot.t1{ background:#1d9e75; } .sch-dot.t2{ background:#d99114; } .sch-dot.t3{ background:#8a63d2; }
.sch-dot.away{ background:#e9b94c; }
/* month calendar */
#scheduleView .sch-calwrap{ background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden; box-shadow:0 3px 14px rgba(20,40,70,.08); }
#scheduleView table.sch-cal{ width:100%; border-collapse:collapse; table-layout:fixed; }
#scheduleView .sch-cal thead th{ background:var(--blue); color:#fff; font-family:"Barlow Semi Condensed"; font-weight:600; font-size:12px; padding:7px 4px; text-align:center; border:1px solid var(--blue); }
#scheduleView td.sch-mc{ border:1px solid var(--grid); vertical-align:top; padding:5px 6px; min-height:86px; height:92px; cursor:pointer; transition:background .1s; }
#scheduleView td.sch-mc:hover{ background:#f2f8fe; }
#scheduleView td.sch-mc.out{ background:#f7f9fb; }
#scheduleView td.sch-mc.out > *{ opacity:.45; }
#scheduleView td.sch-mc.today{ box-shadow:inset 0 0 0 2px var(--blue); }
#scheduleView td.sch-mc.sel{ background:#e2eefb; }
#scheduleView td.sch-mc.closed{ background:#fdf1f2; }
#scheduleView .sch-mday{ display:block; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:13px; color:var(--muted); margin-bottom:3px; }
#scheduleView td.sch-mc.today .sch-mday{ color:var(--blue); }
#scheduleView .sch-mt{ display:flex; align-items:center; gap:4px; font-size:10px; line-height:1.3; border-radius:5px; padding:1.5px 5px; margin-bottom:2px; overflow:hidden; white-space:nowrap; }
#scheduleView .sch-mt i{ width:7px; height:7px; border-radius:50%; flex:0 0 auto; }
#scheduleView .sch-mt b{ font-weight:700; }
#scheduleView .sch-mt em{ font-style:normal; opacity:.8; margin-left:auto; }
#scheduleView .sch-mt.t0{ background:#e6f1fb; color:#0c447c; } #scheduleView .sch-mt.t0 i{ background:#2f7fc1; }
#scheduleView .sch-mt.t1{ background:#e1f5ee; color:#085041; } #scheduleView .sch-mt.t1 i{ background:#1d9e75; }
#scheduleView .sch-mt.t2{ background:#faeeda; color:#633806; } #scheduleView .sch-mt.t2 i{ background:#d99114; }
#scheduleView .sch-mt.t3{ background:#eee8fb; color:#432c77; } #scheduleView .sch-mt.t3 i{ background:#8a63d2; }
#scheduleView .sch-mind{ display:inline-block; font-size:9.5px; font-weight:700; color:#3c4a58; background:#eef1f4; border-radius:4px; padding:1px 5px; margin-right:3px; }
#scheduleView .sch-maway{ display:inline-block; font-size:9.5px; font-weight:700; color:#8a5a00; background:#f6dca6; border-radius:4px; padding:1px 5px; }
#scheduleView .sch-mclosed{ display:inline-block; font-size:9.5px; font-weight:800; letter-spacing:.05em; color:#b3261e; background:#fbdbe0; border-radius:4px; padding:1px 6px; }
#scheduleView .sch-mnote{ display:block; font-size:9px; color:var(--muted); font-style:italic; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#scheduleView .sch-mcel{ display:block; font-size:9.5px; color:#8a5a00; margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* month-cell event chips */
#scheduleView .sch-mev{ display:flex; align-items:center; gap:4px; font-size:9.5px; font-weight:600; color:var(--ink); margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#scheduleView .sch-mev i{ width:6px; height:6px; border-radius:50%; flex:0 0 auto; }
#scheduleView .sch-mev.ev-meeting i{ background:#2f7fc1; } #scheduleView .sch-mev.ev-training i{ background:#1d9e75; }
#scheduleView .sch-mev.ev-deadline i{ background:#d23b3b; } #scheduleView .sch-mev.ev-event i{ background:#8a63d2; }
#scheduleView .sch-mev.more{ color:var(--muted); font-weight:500; }
/* day-panel events */
#scheduleView .sch-evs{ padding:10px 16px; border-bottom:1px solid var(--grid); background:#fbfdff; display:flex; flex-direction:column; gap:7px; }
#scheduleView .sch-evrow{ display:flex; align-items:center; gap:8px; }
#scheduleView .sch-evtag{ font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; border-radius:5px; padding:2px 7px; flex:0 0 auto; }
#scheduleView .sch-evtag.ev-meeting{ background:#e6f1fb; color:#0c447c; } #scheduleView .sch-evtag.ev-training{ background:#e1f5ee; color:#085041; }
#scheduleView .sch-evtag.ev-deadline{ background:#fbdbe0; color:#a3252d; } #scheduleView .sch-evtag.ev-event{ background:#eee8fb; color:#432c77; }
#scheduleView .sch-evtime{ font-size:11.5px; font-weight:700; color:var(--blue-dk); flex:0 0 auto; }
#scheduleView .sch-evtitle{ font-size:13px; color:var(--ink); flex:1; min-width:0; }
#scheduleView .sch-evx{ border:none; background:#f1f3f5; color:#5c6b7a; width:22px; height:22px; border-radius:6px; font-size:14px; line-height:1; cursor:pointer; flex:0 0 auto; }
#scheduleView .sch-evx:hover{ background:#fdeef0; color:#b3261e; }
#scheduleView .sch-evnone{ font-size:12px; color:var(--muted); font-style:italic; }
#scheduleView .sch-evadd{ display:flex; gap:7px; flex-wrap:wrap; padding-top:3px; }
#scheduleView .sch-evadd input, #scheduleView .sch-evadd select{ border:1.4px solid var(--line); border-radius:8px; padding:7px 10px; font-family:inherit; font-size:12.5px; color:var(--ink); background:#fff; }
#scheduleView .sch-evadd input:focus, #scheduleView .sch-evadd select:focus{ outline:none; border-color:var(--blue); }
#scheduleView .sch-evadd #schEvTitle{ flex:1 1 200px; min-width:0; }
#scheduleView .sch-evadd #schEvTime{ width:96px; }
/* mobile week strip */
#scheduleView .sch-stripwrap{ margin-bottom:12px; }
#scheduleView .sch-striphead{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
#scheduleView .sch-striphead b{ flex:1; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:17px; color:var(--ink); }
#scheduleView .sch-strip{ display:flex; align-items:stretch; gap:6px; }
#scheduleView .sch-snav{ border:1px solid var(--line); background:#fff; color:var(--blue-dk); border-radius:10px; width:34px; font-size:17px; cursor:pointer; flex:0 0 auto; }
#scheduleView .sch-stripdays{ flex:1; display:grid; grid-template-columns:repeat(7,1fr); gap:5px; }
#scheduleView .sch-sd{ display:flex; flex-direction:column; align-items:center; gap:1px; padding:7px 0 5px; border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer; font-family:inherit; min-height:58px; }
#scheduleView .sch-sd .sd-dow{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:10px; text-transform:uppercase; color:var(--muted); }
#scheduleView .sch-sd .sd-num{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:16px; color:var(--ink); }
#scheduleView .sch-sd.today{ box-shadow:inset 0 0 0 2px var(--blue); }
#scheduleView .sch-sd.on{ background:var(--blue); border-color:var(--blue); }
#scheduleView .sch-sd.on .sd-dow{ color:rgba(255,255,255,.75); }
#scheduleView .sch-sd.on .sd-num{ color:#fff; }
#scheduleView .sd-dots{ display:flex; gap:2px; min-height:6px; }
#scheduleView .sd-dot{ width:5px; height:5px; border-radius:50%; }
#scheduleView .sd-dot.closed{ background:#d23b3b; } #scheduleView .sd-dot.ev{ background:#2f7fc1; } #scheduleView .sd-dot.cele{ background:#e9b94c; }
#scheduleView .sch-sd.on .sd-dot{ filter:brightness(1.6); }
@media (max-width:640px){
  #scheduleView .sch-monthbar{ display:none; }
  #scheduleView .sch-day{ margin-top:10px; }
}
#scheduleView .sch-celerow{ padding:9px 16px; background:#fffbf0; border-bottom:1px solid var(--grid); font-size:12.5px; color:#6b5410; }
#scheduleView .sch-chip.ro{ cursor:default; pointer-events:none; }
#scheduleView .sch-err{ padding:20px; text-align:center; color:var(--muted); }
/* day view */
#scheduleView .sch-day{ margin-top:14px; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow:0 6px 20px rgba(20,40,70,.1); }
#scheduleView .sch-dh{ display:flex; align-items:center; gap:10px; padding:11px 16px; border-bottom:1px solid var(--grid); background:var(--band); }
#scheduleView .sch-dt{ flex:1; text-align:center; }
#scheduleView .sch-dt b{ display:block; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:17px; color:var(--ink); line-height:1.15; }
#scheduleView .sch-dt span{ font-size:12px; color:var(--muted); }
#scheduleView .rts-dc{ border:none; background:#eef1f5; color:#44515e; width:28px; height:28px; border-radius:7px; font-size:17px; line-height:1; cursor:pointer; flex:0 0 auto; }
#scheduleView .rts-dc:hover{ background:#e0e6ee; }
#scheduleView .sch-dbody{ padding:13px 16px 15px; }
#scheduleView .sch-closedbanner{ font-size:13px; font-weight:600; color:#b3261e; background:#fdeef0; border:1px solid #f3c6cd; border-radius:8px; padding:10px 13px; margin-bottom:4px; }
#scheduleView .sch-grp{ border:1px solid var(--grid); border-radius:9px; padding:9px 12px 10px; margin-bottom:9px; background:#fbfdff; }
#scheduleView .sch-grp.offgrp{ background:#f8f9fa; }
#scheduleView .sch-grp.t0{ border-left:3px solid #2f7fc1; } #scheduleView .sch-grp.t1{ border-left:3px solid #1d9e75; }
#scheduleView .sch-grp.t2{ border-left:3px solid #d99114; } #scheduleView .sch-grp.t3{ border-left:3px solid #8a63d2; }
#scheduleView .sch-grp.ind{ border-left:3px solid #5c6b7a; }
#scheduleView .sch-grp.away{ border-left:3px solid #e9b94c; background:#fffdf6; }
:is(#scheduleView,#schTplModal) .sch-gh{ display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
:is(#scheduleView,#schTplModal) .sch-gh i{ width:9px; height:9px; border-radius:50%; align-self:center; flex:0 0 auto; }
#scheduleView .sch-grp.t0 .sch-gh i{ background:#2f7fc1; } #scheduleView .sch-grp.t1 .sch-gh i{ background:#1d9e75; }
#scheduleView .sch-grp.t2 .sch-gh i{ background:#d99114; } #scheduleView .sch-grp.t3 .sch-gh i{ background:#8a63d2; }
:is(#scheduleView,#schTplModal) .sch-gh b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:14px; color:var(--ink); }
#scheduleView .sch-gsh{ font-size:12px; font-weight:600; color:var(--blue-dk); background:var(--band); border:1px solid #dbe8f7; border-radius:5px; padding:1px 8px; }
#scheduleView .sch-gsh.off{ color:var(--muted); background:#f1f3f5; border-color:#e1e5e9; font-style:italic; }
:is(#scheduleView,#schTplModal) .sch-ghnote{ font-size:11px; color:var(--muted); font-style:italic; }
#scheduleView .sch-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
#scheduleView .sch-chip{ display:inline-flex; align-items:center; gap:6px; font-family:inherit; font-size:12.5px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:15px; padding:4px 12px; cursor:pointer; transition:all .1s; }
#scheduleView .sch-chip:hover{ border-color:var(--blue); background:#f2f8fe; }
#scheduleView .sch-chip em{ font-style:normal; font-size:11px; font-weight:700; color:var(--blue-dk); }
#scheduleView .sch-chip u{ text-decoration:none; font-size:10.5px; color:var(--muted); font-style:italic; }
#scheduleView .sch-chip.exc{ border-color:#9cc6f0; background:#eef5fd; }
#scheduleView .sch-chip.vac{ border-color:#f0c878; background:#fbf1dc; } #scheduleView .sch-chip.vac em{ color:#8a5a00; }
#scheduleView .sch-chip.swap{ border-color:#c3acec; background:#f1eafb; } #scheduleView .sch-chip.swap em{ color:#5a3a93; }
#scheduleView .sch-chip.offc{ border-color:#d6d6cf; background:#f4f4f1; } #scheduleView .sch-chip.offc em{ color:#5c6b7a; }
#scheduleView .sch-chip.mini{ padding:2px 10px; font-size:11.5px; color:#5c6b7a; }
:is(#scheduleView,#schTplModal) .sch-gnone{ font-size:12px; color:var(--muted); font-style:italic; margin-top:6px; display:inline-block; }
#scheduleView .sch-offrow{ font-size:12px; color:var(--muted); margin:2px 0 9px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
#scheduleView .sch-dayfoot{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; border-top:1px solid var(--grid); padding-top:11px; margin-top:4px; }
#scheduleView .sch-ck{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink); cursor:pointer; }
#scheduleView .sch-ck input{ width:16px; height:16px; accent-color:var(--blue); }
#scheduleView .sch-fnote{ flex:1; min-width:180px; max-width:300px; border:1.4px solid var(--line); border-radius:8px; padding:7px 11px; font-family:inherit; font-size:12.5px; color:var(--ink); }
#scheduleView .sch-fnote:focus{ outline:none; border-color:var(--blue); }
/* inline person editor */
#scheduleView .sch-edit{ border-bottom:1px solid var(--grid); background:#f6faff; }
#scheduleView .sch-eh{ display:flex; align-items:center; gap:10px; padding:10px 16px 0; }
#scheduleView .sch-eh b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:15px; color:var(--ink); }
#scheduleView .sch-ehsub{ flex:1; font-size:11.5px; color:var(--muted); }
#scheduleView .sch-eb{ padding:10px 16px 13px; }
#scheduleView .sch-erow{ display:flex; gap:8px; margin-bottom:9px; max-width:430px; }
#scheduleView .sch-eshift{ flex:1; border:1.4px solid var(--line); border-radius:8px; padding:8px 11px; font-family:inherit; font-size:13.5px; color:var(--ink); }
#scheduleView .sch-eshift:focus{ outline:none; border-color:var(--blue); }
#scheduleView .sch-ebtns{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:9px; }
#scheduleView .sch-ebtns button{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.03em; border-radius:7px; padding:7px 13px; cursor:pointer; border:1px solid; background:#fff; }
#scheduleView .sch-eb-off{ color:#5c6b7a; border-color:#cfd6dd; } #scheduleView .sch-eb-off:hover{ background:#f1f3f5; }
#scheduleView .sch-eb-vac{ color:#8a5a00; border-color:#f0c878; } #scheduleView .sch-eb-vac:hover{ background:#fbf1dc; }
#scheduleView .sch-eb-swap{ color:#5a3a93; border-color:#c3acec; } #scheduleView .sch-eb-swap:hover{ background:#f1eafb; }
#scheduleView .sch-eb-clear{ color:#b3261e; border-color:#e7b3bd; } #scheduleView .sch-eb-clear:hover{ background:#fdeef0; }
#scheduleView .sch-enote{ width:100%; max-width:430px; border:1.4px solid var(--line); border-radius:8px; padding:7px 11px; font-family:inherit; font-size:12.5px; color:var(--ink); }
#scheduleView .sch-enote:focus{ outline:none; border-color:var(--blue); }
/* weekly templates panel */
:is(#scheduleView,#schTplModal) .sch-tpl{ margin-top:16px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 4px 16px rgba(20,40,70,.08); padding:0 16px 16px; }
:is(#scheduleView,#schTplModal) .sch-tplhead{ display:flex; align-items:center; gap:10px; padding:12px 0; border-bottom:1px solid var(--grid); margin-bottom:12px; }
:is(#scheduleView,#schTplModal) .sch-tplhead b{ flex:1; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:15px; text-transform:uppercase; letter-spacing:.04em; color:var(--blue-dk); }
:is(#scheduleView,#schTplModal) .sch-tplteam{ margin-bottom:14px; }
:is(#scheduleView,#schTplModal) table.sch-tpltable{ width:100%; border-collapse:collapse; margin-top:7px; table-layout:fixed; }
:is(#scheduleView,#schTplModal) .sch-tpltable th{ background:var(--band); color:var(--blue-dk); font-family:"Barlow Semi Condensed"; font-weight:600; font-size:11px; padding:4px; text-align:center; border:1px solid var(--grid); }
:is(#scheduleView,#schTplModal) .sch-tpltable th.l, :is(#scheduleView,#schTplModal) .sch-tpltable td.l{ text-align:left; padding-left:10px; width:172px; font-size:11.5px; }
:is(#scheduleView,#schTplModal) .sch-tpltable td{ border:1px solid var(--grid); font-size:11.5px; text-align:center; padding:5px 3px; color:var(--ink); }
:is(#scheduleView,#schTplModal) .sch-tdash{ color:#c8ccd0; }
:is(#scheduleView,#schTplModal) .sch-tplind{ margin-top:4px; }
:is(#scheduleView,#schTplModal) .sch-indtablewrap{ overflow-x:auto; border:1px solid var(--line); border-radius:9px; margin-top:8px; }
:is(#scheduleView,#schTplModal) table.sch-indtable{ border-collapse:collapse; width:100%; min-width:700px; }
:is(#scheduleView,#schTplModal) .sch-indtable th{ background:var(--blue); color:#fff; font-family:"Barlow Semi Condensed"; font-weight:600; font-size:11.5px; padding:6px 4px; text-align:center; border:1px solid var(--blue); }
:is(#scheduleView,#schTplModal) .sch-indtable th.l{ text-align:left; padding-left:12px; width:150px; }
:is(#scheduleView,#schTplModal) .sch-indtable td{ border:1px solid var(--grid); padding:0; }
:is(#scheduleView,#schTplModal) .sch-indtable td.l{ padding:6px 12px; }
:is(#scheduleView,#schTplModal) .sch-pn{ display:block; font-size:13px; font-weight:600; color:var(--ink); }
:is(#scheduleView,#schTplModal) .sch-pr{ display:block; font-size:9.5px; color:var(--muted); font-family:"Barlow Semi Condensed"; text-transform:uppercase; letter-spacing:.03em; }
:is(#scheduleView,#schTplModal) .sch-indin{ width:100%; border:none; background:var(--field); text-align:center; font-family:inherit; font-size:11.5px; color:var(--ink); padding:8px 4px; }
:is(#scheduleView,#schTplModal) .sch-indin:focus{ outline:2px solid var(--blue); outline-offset:-2px; background:#eef6ff; }
:is(#scheduleView,#schTplModal) .sch-indin::placeholder{ color:#c8ccd0; }
/* phones: calendar cells collapse to dots */
@media (max-width:640px){
  #scheduleView td.sch-mc{ height:64px; padding:4px 4px; }
  #scheduleView .sch-mt{ padding:0; background:none !important; margin-bottom:1px; }
  #scheduleView .sch-mt b, #scheduleView .sch-mt em{ display:none; }
  #scheduleView .sch-mt i{ width:8px; height:8px; }
  #scheduleView .sch-mind, #scheduleView .sch-maway{ font-size:8.5px; padding:0 3px; }
  #scheduleView .sch-mclosed{ font-size:8px; padding:0 3px; }
  #scheduleView .sch-mnote{ display:none; }
  #scheduleView .sch-dayfoot{ align-items:flex-start; flex-direction:column; gap:9px; }
}

/* ---- End-of-Day Recap module ---- */
#recapView.ci-root{ background:var(--page); font-family:"Barlow",-apple-system,system-ui,sans-serif; color:var(--ink); min-height:calc(100vh - 56px); padding:18px 16px 48px; }
#recapView .ci-container{ margin:0 auto; }
#recapView .ci-bar{ max-width:none; margin:0 0 12px; }
#recapView .ci-btn{ font-family:"Barlow Semi Condensed"; font-weight:600; letter-spacing:.03em; text-transform:uppercase; font-size:12px; background:#fff; color:var(--blue-dk); border:1px solid var(--line); border-radius:6px; padding:6px 12px; cursor:pointer; transition:all .12s; }
#recapView .ci-btn:hover{ background:#eef6ff; border-color:var(--blue); }
#recapView .rc-daybar{ display:flex; align-items:center; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
#recapView .rc-date{ border:1.4px solid var(--line); border-radius:8px; padding:7px 11px; font-family:inherit; font-size:14px; color:var(--ink); background:#fff; }
#recapView .rc-date:focus{ outline:none; border-color:var(--blue); }
#recapView .rc-saved{ color:#0f6e56; font-size:12px; font-weight:600; margin-left:6px; }
#recapView .rc-card{ background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 3px 14px rgba(20,40,70,.07); padding:14px 16px; margin-bottom:14px; }
#recapView .rc-ct{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:14px; text-transform:uppercase; letter-spacing:.03em; color:var(--blue-dk); padding-bottom:8px; margin-bottom:12px; border-bottom:2px solid var(--band); }
#recapView .rc-appt-row{ display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap; }
#recapView .rc-appt-row label{ font-weight:600; font-size:13px; color:var(--ink); }
#recapView .rc-in{ width:84px; border:1.4px solid var(--line); border-radius:8px; padding:8px 10px; font-family:inherit; font-size:14px; color:var(--ink); text-align:center; background:var(--field); }
#recapView .rc-in:focus{ outline:2px solid var(--blue); outline-offset:-2px; background:#eef6ff; }
#recapView .rc-rate{ margin-left:auto; display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
#recapView .rc-rate b{ font-family:"Barlow Semi Condensed"; font-size:20px; color:var(--blue-dk); background:#f0f6fc; border:1.6px solid var(--blue); border-radius:7px; padding:2px 12px; }
#recapView .rc-tablewrap{ overflow-x:auto; }
#recapView table.rc-table{ width:100%; border-collapse:collapse; min-width:480px; }
#recapView .rc-table th{ background:var(--blue); color:#fff; font-family:"Barlow Semi Condensed"; font-weight:600; font-size:12.5px; padding:7px 6px; text-align:center; border:1px solid var(--blue); }
#recapView .rc-table th.l{ text-align:left; padding-left:12px; }
#recapView .rc-th2{ display:block; font-size:9.5px; opacity:.8; font-weight:500; text-transform:uppercase; letter-spacing:.04em; }
#recapView .rc-table td{ border:1px solid var(--grid); text-align:center; padding:0; }
#recapView .rc-table td.l{ text-align:left; padding:8px 12px; font-weight:600; font-size:13.5px; }
#recapView .rc-table .rc-in{ width:100%; border:none; border-radius:0; background:var(--field); }
#recapView .rc-table .rc-in:focus{ outline:2px solid var(--blue); outline-offset:-2px; }
#recapView .rc-mtd{ background:#f0f6fc; color:var(--blue-dk); font-weight:600; font-size:13.5px; padding:8px 6px; }
#recapView .rc-pct{ background:#eef4fb; color:var(--blue-dk); font-weight:700; font-size:13.5px; padding:8px 6px; }
#recapView .rc-table tfoot td{ background:var(--ink); color:#fff; font-weight:700; border-color:var(--ink); padding:8px 6px; }
#recapView .rc-table tfoot td.l{ color:#fff; }
#recapView .rc-table tfoot .rc-mtd, #recapView .rc-table tfoot .rc-pct{ background:var(--ink); color:#fff; }
#recapView .rc-notes{ width:100%; min-height:80px; border:1.4px solid var(--line); border-radius:8px; background:var(--field); font-family:inherit; font-size:14px; color:var(--ink); padding:10px 12px; resize:vertical; }
#recapView .rc-notes:focus{ outline:none; border-color:var(--blue); }
#recapView .rc-check{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:9px 16px; }
#recapView .rc-ck{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--ink); cursor:pointer; }
#recapView .rc-ck input{ width:17px; height:17px; accent-color:var(--blue); flex:0 0 auto; }

/* ---- System Access module ---- */
#accessView.ci-root{ background:var(--page); font-family:"Barlow",-apple-system,system-ui,sans-serif; color:var(--ink); min-height:calc(100vh - 56px); padding:18px 16px 48px; }
#accessView .ci-container{ margin:0 auto; }
#accessView .ci-bar{ max-width:none; margin:0 0 12px; }
#accessView .ci-btn{ font-family:"Barlow Semi Condensed"; font-weight:600; letter-spacing:.03em; text-transform:uppercase; font-size:12px; background:#fff; color:var(--blue-dk); border:1px solid var(--line); border-radius:6px; padding:6px 12px; cursor:pointer; transition:all .12s; }
#accessView .ci-btn:hover{ background:#eef6ff; border-color:var(--blue); }
#accessView .ac-legend{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin-bottom:12px; font-size:12.5px; color:var(--ink); }
#accessView .ac-li{ display:flex; align-items:center; gap:7px; }
#accessView .ac-dot{ width:20px; height:20px; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; border:1px solid var(--line); }
#accessView .ac-dot.has{ background:#e1f5ee; color:#0f6e56; border-color:#9fe1cb; }
#accessView .ac-dot.needs{ background:#fdeef0; color:#b3261e; border-color:#f3c6cd; }
#accessView .ac-dot.none{ background:#fff; }
#accessView .ac-hint{ color:var(--muted); font-style:italic; margin-left:auto; }
#accessView .ac-tablewrap{ overflow-x:auto; border:1px solid var(--line); border-radius:10px; box-shadow:0 3px 14px rgba(20,40,70,.08); background:#fff; }
#accessView table.ac-table{ border-collapse:collapse; }
#accessView .ac-table th{ background:var(--blue); color:#fff; border:1px solid var(--blue); vertical-align:bottom; }
#accessView .ac-table th.ac-name{ position:sticky; left:0; z-index:3; text-align:left; padding:8px 12px; min-width:150px; }
#accessView .ac-table th.ac-tool{ min-width:66px; max-width:84px; padding:8px 5px; position:relative; }
#accessView .ac-tname{ display:block; font-family:"Barlow Semi Condensed"; font-weight:600; font-size:11.5px; line-height:1.2; }
#accessView .ac-tcat{ display:block; font-size:8.5px; opacity:.78; text-transform:uppercase; letter-spacing:.03em; margin-top:2px; }
#accessView .ac-trm{ position:absolute; top:2px; right:2px; width:15px; height:15px; border:none; border-radius:4px; background:rgba(255,255,255,.18); color:#fff; font-size:12px; line-height:1; cursor:pointer; padding:0; }
#accessView .ac-trm:hover{ background:var(--m3); }
#accessView .ac-table td{ border:1px solid var(--grid); }
#accessView td.ac-name{ position:sticky; left:0; z-index:2; background:#fff; padding:8px 12px; min-width:150px; }
#accessView td.ac-name b{ display:block; font-size:13.5px; color:var(--ink); }
#accessView .ac-role{ font-size:10.5px; color:var(--muted); font-family:"Barlow Semi Condensed"; text-transform:uppercase; letter-spacing:.03em; }
#accessView td.ac-cell{ text-align:center; font-size:14px; font-weight:700; cursor:pointer; height:42px; transition:background .1s; }
#accessView td.ac-cell.none{ color:transparent; }
#accessView td.ac-cell.none::after{ content:"·"; color:#c2cdda; }
#accessView td.ac-cell.has{ background:#e1f5ee; color:#0f6e56; }
#accessView td.ac-cell.needs{ background:#fdeef0; color:#b3261e; }
#accessView td.ac-cell:hover{ filter:brightness(.96); }
#accessView .ac-err, #accessView .ac-empty{ padding:22px; text-align:center; color:var(--muted); }

/* ---- hub quick links (managed bookmarks) ---- */
.ql-wrap{ margin-top:16px; }
.ql-row{ display:flex; flex-wrap:wrap; gap:10px; align-items:stretch; }
.ql, .ql-addtile{ display:flex; flex-direction:column; align-items:center; gap:6px; width:86px; padding:11px 6px 9px;
  background:#fff; border:1px solid var(--grid); border-radius:13px; text-decoration:none; cursor:pointer;
  font-family:inherit; position:relative; transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.ql:hover{ transform:translateY(-2px); box-shadow:0 6px 16px rgba(20,40,70,.12); border-color:var(--blue); }
.ql.editing{ cursor:default; }
.ql.editing:hover{ transform:none; box-shadow:none; border-color:var(--grid); }
.ql-ico{ width:40px; height:40px; border-radius:10px; background:#f4f7fa; border:1px solid var(--grid); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.ql-ico img{ width:26px; height:26px; object-fit:contain; }
.ql-ico .ql-letter{ width:100%; height:100%; align-items:center; justify-content:center; display:flex;
  font-family:"Barlow Semi Condensed"; font-weight:700; font-size:17px; color:#fff; background:linear-gradient(150deg,var(--blue),var(--blue-dk)); border-radius:9px; }
.ql, .ql-addtile{ min-height:96px; }
.ql-mine{ position:absolute; top:7px; left:7px; width:7px; height:7px; border-radius:50%; background:#1D9E75; }
.qlm-opts{ display:flex; flex-direction:column; gap:6px; padding-top:4px; }
.qlm-roles{ display:grid; grid-template-columns:1fr 1fr; gap:5px 10px; margin-top:8px; padding:10px 12px; background:#f7fafd; border:1px solid var(--grid); border-radius:9px; }
.qlm-iconrow{ display:flex; align-items:center; gap:10px; padding-top:4px; }
.qlm-iconprev{ width:46px; height:46px; border-radius:11px; background:#f4f7fa; border:1px solid var(--grid); display:flex; align-items:center; justify-content:center; overflow:hidden; flex:0 0 auto; }
.qlm-iconprev img{ width:30px; height:30px; object-fit:contain; }
.qlm-globe{ font-size:20px; }
.ql-name{ font-size:11px; font-weight:600; color:var(--ink); text-align:center; line-height:1.2; max-width:100%;
  overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.ql-x{ position:absolute; top:4px; right:4px; width:20px; height:20px; border-radius:50%; border:none; background:var(--m3); color:#fff;
  font-size:13px; line-height:1; cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,.22); }
.ql-edit, .ql-done{ align-self:center; font-family:"Barlow Semi Condensed"; font-weight:600; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em;
  color:var(--muted); background:none; border:1px dashed var(--line); border-radius:9px; padding:8px 13px; cursor:pointer; }
.ql-edit:hover, .ql-done:hover{ color:var(--blue-dk); border-color:var(--blue); }
.ql-done{ border-style:solid; color:var(--blue-dk); }
/* grouped launcher */
.ql-group{ margin-bottom:13px; }
.ql-glabel{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:0 2px 7px; }
.ql-controls{ display:flex; gap:8px; margin-top:2px; }
.ql-mv{ position:absolute; bottom:4px; width:20px; height:20px; border-radius:50%; border:1px solid var(--line); background:#fff; color:var(--blue-dk);
  font-size:12px; line-height:1; cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,.12); }
.ql-mv.l{ left:4px; } .ql-mv.r{ right:4px; }
/* editing tiles need bottom room so the name doesn't sit under the arrows */
.ql.editing{ padding-bottom:26px; }
.ql-mv:hover{ border-color:var(--blue); background:#eef6ff; }
/* phones: folders (iOS-style) — one row of category folders, tap to fan open */
.ql-folders{ display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; }
.ql-folder{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:10px 4px 8px;
  background:#fff; border:1px solid var(--grid); border-radius:14px; cursor:pointer; font-family:inherit; }
.ql-folder:active{ transform:scale(.97); }
.qf-grid{ width:52px; height:52px; border-radius:13px; background:#eef1f5; border:1px solid var(--grid);
  display:grid; grid-template-columns:1fr 1fr; gap:3px; padding:5px; }
.qf-mini{ background:#fff; border-radius:5px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.qf-mini img{ width:13px; height:13px; object-fit:contain; }
.qf-letter{ width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-family:"Barlow Semi Condensed"; font-weight:700; font-size:9px; color:#fff; background:linear-gradient(150deg,var(--blue),var(--blue-dk)); }
.qf-more, .qf-plus{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:9px; color:var(--blue-dk); background:#e2eefb; }
/* the fan-open sheet */
.ql-backdrop{ position:fixed; inset:0; background:rgba(16,24,36,.45); z-index:90; }
.ql-sheet{ position:fixed; left:0; right:0; bottom:0; z-index:91; background:#fff; border-radius:18px 18px 0 0;
  box-shadow:0 -10px 40px rgba(0,0,0,.25); max-height:72vh; display:flex; flex-direction:column; animation:qlsUp .18s ease; }
@keyframes qlsUp{ from{ transform:translateY(24px); opacity:.6; } to{ transform:translateY(0); opacity:1; } }
.ql-sheethead{ display:flex; align-items:center; gap:10px; padding:14px 18px 10px; }
.ql-sheethead b{ flex:1; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:17px; color:var(--ink); }
.qls-x{ border:none; background:#eef1f5; color:#44515e; width:30px; height:30px; border-radius:9px; font-size:18px; line-height:1; cursor:pointer; }
.ql-sheetgrid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; padding:4px 16px 26px; overflow-y:auto; }
.ql-sheetgrid .ql, .ql-sheetgrid .ql-addtile{ width:auto; min-height:88px; padding:10px 4px 8px; }
/* desktop: folder tiles spread evenly across the full width (balanced w/ the hero) + centered Launchpad panel */
@media (min-width:641px){
  .ql-folders{ display:grid; grid-template-columns:repeat(auto-fit, minmax(96px, 1fr)); gap:12px; }
  .ql-folder{ width:auto; padding:13px 6px 11px; transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
  .ql-folder .qf-grid{ width:58px; height:58px; }
  .ql-folder:hover{ transform:translateY(-2px); box-shadow:0 6px 16px rgba(20,40,70,.12); border-color:var(--blue); }
  .ql-sheet{ left:50%; right:auto; top:50%; bottom:auto; transform:translate(-50%,-50%);
    width:min(640px, 92vw); border-radius:18px; max-height:72vh; animation:qlsIn .16s ease; }
  .ql-sheetgrid{ grid-template-columns:repeat(auto-fill, minmax(104px, 1fr)); padding:4px 18px 22px; }
}
@keyframes qlsIn{ from{ transform:translate(-50%,-48%) scale(.96); opacity:.5; } to{ transform:translate(-50%,-50%) scale(1); opacity:1; } }

/* ---- Daily module segmented switcher (Check-In | Recap) ---- */
.mb-seg{ display:inline-flex; background:#eef1f5; border-radius:9px; padding:3px; gap:2px; }
.mb-seg .seg{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:12px; letter-spacing:.02em; text-transform:uppercase;
  border:none; background:transparent; color:var(--muted); border-radius:7px; padding:6px 14px; cursor:pointer; transition:all .12s; }
.mb-seg .seg.on{ background:#fff; color:var(--blue-dk); box-shadow:0 1px 4px rgba(20,40,70,.15); }
.mb-seg .seg:not(.on):hover{ color:var(--ink); }

/* ---- check-in block view (one check-in time at a time) ---- */
#checkinView .ci-blocktabs{ display:flex; flex-wrap:wrap; gap:7px; margin-bottom:11px; }
#checkinView .cib-tab{ position:relative; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:13px; letter-spacing:.02em;
  padding:8px 16px; border-radius:9px; border:1px solid var(--line); background:#fff; color:var(--muted); cursor:pointer; transition:all .12s; }
#checkinView .cib-tab:hover{ border-color:var(--blue); color:var(--blue-dk); }
#checkinView .cib-tab.on{ background:var(--blue); border-color:var(--blue); color:#fff; box-shadow:0 2px 8px rgba(0,102,177,.25); }
#checkinView .cib-tab.dayt{ margin-left:auto; border-style:dashed; }
#checkinView .cib-tab.dayt.on{ border-style:solid; }
#checkinView .cib-nowdot{ position:absolute; top:-3px; right:-3px; width:9px; height:9px; border-radius:50%; background:#1D9E75; border:2px solid var(--page); }
#checkinView .ci-blockwrap{ background:#fff; border:1px solid var(--line); border-radius:12px; overflow-x:auto; box-shadow:0 3px 14px rgba(20,40,70,.08); }
#checkinView table.cib-table{ width:100%; border-collapse:collapse; min-width:660px; }
#checkinView .cib-table th{ background:var(--blue); color:#fff; font-family:"Barlow Semi Condensed"; font-weight:600; font-size:12.5px;
  padding:9px 6px; text-align:center; border:1px solid var(--blue); }
#checkinView .cib-table th.cib-dot{ width:44px; }
#checkinView .cib-table th.cib-name{ text-align:left; padding-left:14px; width:200px; }
#checkinView .cib-table th.cib-dayh{ width:170px; }
#checkinView .cib-table td{ border:1px solid var(--grid); vertical-align:middle; }
#checkinView .cib-sec td{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:10.5px; letter-spacing:.07em; text-transform:uppercase; padding:5px 14px; }
#checkinView .cib-sec .por-note{ font-size:9px; font-weight:400; opacity:.7; margin-left:8px; font-style:italic; text-transform:none; letter-spacing:0; }
#checkinView .cib-table td.cib-dot{ text-align:center; cursor:pointer; width:44px; }
#checkinView .cib-table td.cib-dot:hover{ background:#f2f8fe; }
#checkinView .cib-table td.cib-name{ padding:7px 14px; }
#checkinView .cib-table td.cib-name b{ display:block; font-size:13.5px; color:var(--ink); }
#checkinView .cib-table td.cib-name span{ display:block; font-size:10px; color:var(--muted); }
#checkinView .cib-table td.cib-in{ padding:0; height:46px; }
#checkinView .cib-table td.cib-in input{ width:100%; height:46px; border:none; background:var(--field); text-align:center;
  font-family:inherit; font-size:15.5px; font-weight:600; color:var(--ink); outline:none; -moz-appearance:textfield; }
#checkinView .cib-table td.cib-in input::-webkit-inner-spin-button{ -webkit-appearance:none; }
#checkinView .cib-table td.cib-in input:focus{ background:#eef6ff; box-shadow:inset 0 0 0 2px var(--blue); }
#checkinView .cib-table td.cib-in input::placeholder{ color:#dfe4e9; }
#checkinView .cib-table td.cib-gc{ background:#f1f3f5; color:#c2cdda; text-align:center; }
#checkinView .cib-table td.cib-off{ background:#f5f4f0; }
#checkinView .cib-offrow{ opacity:.5; }
#checkinView .cib-table td.cib-day{ font-size:11px; color:var(--blue-dk); font-weight:600; text-align:center; padding:4px 8px; background:#f7fafd; }
#checkinView .cib-spark{ letter-spacing:3px; font-size:10px; color:var(--blue); }
#checkinView .cib-table td.cib-sum{ text-align:center; font-size:15px; font-weight:700; color:var(--ink); height:46px; }
#checkinView .cib-table td.cib-sum.zero{ color:#c8ccd0; font-weight:500; }
#checkinView .cib-tot td{ background:var(--ink); color:#fff; font-weight:700; font-size:14.5px; text-align:center; height:48px; border-color:var(--ink); }
#checkinView .cib-tot td.cib-name{ text-align:left; }
#checkinView .cib-tot td.cib-name b{ color:#fff; font-size:12.5px; }
#checkinView .cib-tot td.cib-name span{ color:rgba(255,255,255,.5); font-size:9.5px; }
#checkinView .ci-printwrap{ display:none; }

/* check-in on phones: per-person cards, no sideways scrolling */
@media (max-width:640px){
  #checkinView .ci-exp{ display:none; }
  #checkinView .ci-blocktabs{ flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px; }
  #checkinView .cib-tab{ flex:0 0 auto; }
  #checkinView .cib-tab.dayt{ margin-left:6px; }
  #checkinView .ci-blockwrap{ background:transparent; border:none; box-shadow:none; overflow:visible; }
}
#checkinView .cic-list{ display:flex; flex-direction:column; gap:9px; }
#checkinView .cic-band{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:10.5px; letter-spacing:.07em; text-transform:uppercase; padding:6px 12px; border-radius:8px; }
#checkinView .cic-card{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:11px 13px; box-shadow:0 2px 8px rgba(20,40,70,.06); }
#checkinView .cic-card.off{ opacity:.6; background:#f7f7f4; }
#checkinView .cic-top{ display:flex; align-items:center; gap:10px; }
#checkinView .cic-dot{ width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; background:#f4f7fa; border:1px solid var(--grid); flex:0 0 auto; }
#checkinView .cic-who{ flex:1; min-width:0; }
#checkinView .cic-who b{ display:block; font-size:14.5px; color:var(--ink); }
#checkinView .cic-who span{ display:block; font-size:10px; color:var(--muted); }
#checkinView .cic-ds{ font-style:normal; font-size:10.5px; font-weight:700; color:var(--blue-dk); background:var(--band); border-radius:6px; padding:3px 8px; white-space:nowrap; }
#checkinView .cic-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:10px; }
#checkinView .cic-f{ display:flex; flex-direction:column; gap:3px; font-family:"Barlow Semi Condensed"; font-weight:600; font-size:10.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
#checkinView .cic-f input, #checkinView .cic-f output{ width:100%; height:46px; border:1.4px solid var(--line); border-radius:10px; background:var(--field); text-align:center; font-family:"Barlow"; font-size:18px; font-weight:600; color:var(--ink); -moz-appearance:textfield; display:flex; align-items:center; justify-content:center; }
#checkinView .cic-f input::-webkit-inner-spin-button{ -webkit-appearance:none; }
#checkinView .cic-f input:focus{ outline:none; border-color:var(--blue); background:#eef6ff; }
#checkinView .cic-f.ro output{ background:#f4f6f8; border-style:dashed; }
#checkinView .cic-card.cic-tot{ background:var(--ink); border-color:var(--ink); }
#checkinView .cic-card.cic-tot .cic-who b{ color:#fff; }
#checkinView .cic-card.cic-tot .cic-who span{ color:rgba(255,255,255,.5); }
#checkinView .cic-card.cic-tot .cic-f{ color:rgba(255,255,255,.6); }
#checkinView .cic-card.cic-tot .cic-f output{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.15); color:#fff; }

/* =========================================================================
   RESPONSIVE  — phones & small screens
   ========================================================================= */
@media (max-width: 820px){
  .toolbar{ padding:9px 10px; gap:7px; }
  .sheet{ padding:22px 16px; margin:14px auto; max-width:100%; }
  .info{ grid-template-columns:1fr; gap:2px 0; align-items:start; }
  .info label{ padding-bottom:1px; margin-top:9px; }
  .sigs{ grid-template-columns:1fr; gap:14px; }
  .dash, .launcher{ padding:0 10px; }
  table.dashtable{ display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .modal{ padding:22px 18px; }
  .modal-overlay{ padding:18px 10px; }
  .adminadd{ grid-template-columns:1fr; }
  table.gloss td.term{ width:auto; white-space:normal; }
  .modulebar{ margin:12px auto 0; padding:8px 11px; }
  body[data-view="form"] #reviewBar{ margin:12px auto 0; }
  #checkinView.ci-root{ padding:12px 8px 40px; }
  #checkinView .ci-bar{ margin:0 0 10px; }
  #scheduleView.ci-root{ padding:12px 8px 40px; }
  #scheduleView .ci-bar{ margin:0 0 10px; }
  #recapView.ci-root, #accessView.ci-root{ padding:12px 8px 40px; }
  #recapView .ci-bar, #accessView .ci-bar{ margin:0 0 10px; }
  #recapView .rc-rate{ margin-left:0; width:100%; }
  #accessView .ac-hint{ margin-left:0; width:100%; }
}
@media (max-width: 600px){
  .brand-eyebrow{ display:none; }                            /* just "Apex Board" on phones */
  .acctbtn .acctname, .acctbtn .acctcaret{ display:none; }    /* account menu = icon only */
  .acctbtn{ padding:8px; }
  .toolbar .btn{ padding:8px 10px; font-size:12px; }
  #backBtn{ padding:8px 9px; }
  .modulebar .mb-title{ font-size:14.5px; }                   /* titles stay visible on phones */
  .modulebar .mb-actions{ width:100%; justify-content:flex-start; }
}
@media (max-width: 480px){
  body{ font-size:13.5px; }
  .lhero{ padding:20px 18px 14px; }
  .lhero h1{ font-size:24px; }
  .title{ font-size:22px; }
  .band{ font-size:14px; }
  .rtype{ font-size:12px; gap:4px 12px; }
  .overall{ font-size:14px; }
  .notifpanel{ position:fixed; left:10px; right:10px; top:60px; width:auto; max-height:72vh; }
  .acctmenu{ position:fixed; left:auto; right:10px; top:60px; max-width:calc(100vw - 20px); }
}

/* ===================== PRINT ===================== */
@page{ size:letter; margin:0.5in; }
@media print{
  body{ background:#fff; }
  .toolbar, .demobar, .modal-overlay, .notifpanel, .toast, .no-print{ display:none !important; }
  #home, #dashboard, #authView, #hubView, #bootstrapView{ display:none !important; }
  .sheet{ box-shadow:none; margin:0; padding:0; max-width:none; border-radius:0; }
  .add-btn, .addrow{ display:none !important; }
  .cell-input, td .tin, .underline, textarea{ background:#fff !important; }
  .att{ background:#f0f6fc !important; }
  textarea{ border-color:#c2d2e4 !important; }
  .band{ break-inside:avoid; }
  table, .rate, .sigs{ break-inside:avoid; }
  .rate.sel{ box-shadow:inset 3px 0 0 var(--blue) !important; }
  input:disabled, textarea:disabled{ background:#fff !important; }
  .lockbanner .mini{ display:none !important; }
  /* End-of-Day Recap: print as a clean sheet */
  #recapView.ci-root{ padding:0 !important; background:#fff !important; }
  #recapView .modulebar, #recapView .rc-daybar .ci-btn, #recapView .rc-saved, #recapView .presence{ display:none !important; }
  #recapView .rc-card{ box-shadow:none !important; break-inside:avoid; }
  #recapView .rc-in, #recapView .rc-notes{ background:#fff !important; }
}

/* ===== Daily Check-In: print the REAL table in landscape so the printout matches the web app ===== */
@page ciLand{ size:letter landscape; margin:0.3in; }
@media print{
  /* Apply the landscape page at the ROOT of the print flow (not a nested element) so the
     page format never switches mid-document — a mid-flow switch makes Chrome emit a blank page. */
  body[data-view="checkin"]{ page:ciLand; }
  html, body{ height:auto !important; }
  body[data-view="checkin"] #checkinView.ci-root{ padding:0 !important; background:#fff !important; min-height:0 !important; overflow:visible !important; }
  body[data-view="checkin"] #checkinView .modulebar,
  body[data-view="checkin"] #checkinView .ci-exp,
  body[data-view="checkin"] #checkinView .ci-banner,
  body[data-view="checkin"] #checkinView .ci-history-panel,
  body[data-view="checkin"] #checkinView .ci-footer,
  body[data-view="checkin"] #checkinView .no-print,
  body[data-view="checkin"] #checkinView .presence{ display:none !important; }
  body[data-view="checkin"] #checkinView .ci-printonly{ display:block !important; margin:0 0 8pt; font-family:"Barlow Semi Condensed",sans-serif; font-size:12pt; color:var(--ink); }
  body[data-view="checkin"] #checkinView .ci-printonly .ci-pt-co{ color:var(--blue); font-weight:700; letter-spacing:.06em; }
  /* show the hidden full-day print grid; the interactive block view is .no-print */
  body[data-view="checkin"] #checkinView .ci-printwrap{ display:block !important; }
  /* COMPACT so the whole grid fits ONE landscape page at natural (crisp) scale — no print-scaling = no fuzzy text, no overflow page */
  body[data-view="checkin"] #checkinView .ci-table th, body[data-view="checkin"] #checkinView .ci-table td{ position:static !important; height:auto !important; line-height:1.15 !important; }
  body[data-view="checkin"] #checkinView table.ci-table{ table-layout:fixed; width:100%; min-width:0 !important; page-break-inside:avoid; margin:0 0 12pt !important; }
  body[data-view="checkin"] #checkinView .ci-pleg{ font-family:"Barlow Semi Condensed",sans-serif; font-size:8.5pt; color:#5a6573; letter-spacing:.02em; margin:0 0 7pt; }
  body[data-view="checkin"] #checkinView .ci-pleg b{ color:var(--blue-dk); }
  /* column widths: status + name fixed; every metric column shares the rest evenly */
  body[data-view="checkin"] #checkinView .status-th, body[data-view="checkin"] #checkinView .stc, body[data-view="checkin"] #checkinView .ssc{ width:22pt !important; min-width:0 !important; }
  body[data-view="checkin"] #checkinView .name-th, body[data-view="checkin"] #checkinView .nc, body[data-view="checkin"] #checkinView .snc{ width:104pt !important; min-width:0 !important; }
  body[data-view="checkin"] #checkinView .iv-th{ width:auto !important; }
  body[data-view="checkin"] #checkinView .total-th{ width:auto !important; }
  body[data-view="checkin"] #checkinView .ci-table .mth, body[data-view="checkin"] #checkinView .ci-table .dc, body[data-view="checkin"] #checkinView .ci-table .gc,
  body[data-view="checkin"] #checkinView .ci-table .tc2, body[data-view="checkin"] #checkinView .ci-table .gtc{ width:auto !important; min-width:0 !important; }
  /* header rows */
  body[data-view="checkin"] #checkinView .iv-th, body[data-view="checkin"] #checkinView .total-th{ padding:3pt 2pt !important; font-size:9pt !important; }
  body[data-view="checkin"] #checkinView .mth{ padding:2pt 1pt !important; font-size:8.5pt !important; }
  body[data-view="checkin"] #checkinView .status-th, body[data-view="checkin"] #checkinView .name-th{ padding:3pt 5pt !important; font-size:7.5pt !important; }
  /* name cell — single tight line (the section bands already say the role, so drop the per-row role) */
  body[data-view="checkin"] #checkinView .nc{ padding:2.5pt 6pt !important; }
  body[data-view="checkin"] #checkinView .nt{ font-size:9.5pt !important; font-weight:700 !important; }
  body[data-view="checkin"] #checkinView .nr{ display:none !important; }
  /* data cells — roomy + crisp */
  body[data-view="checkin"] #checkinView .ci-table .dc, body[data-view="checkin"] #checkinView .ci-table .tc2, body[data-view="checkin"] #checkinView .ci-table .gc, body[data-view="checkin"] #checkinView .ci-table .gtc{ padding:2.5pt 1pt !important; font-size:10pt !important; }
  body[data-view="checkin"] #checkinView .ci-table .ni2{ font-size:10pt !important; padding:1.5pt 0 !important; }
  /* section bands + store row */
  body[data-view="checkin"] #checkinView .sec-hdr{ padding:2pt 6pt !important; font-size:7.5pt !important; }
  body[data-view="checkin"] #checkinView .store-row td{ padding:3pt 1pt !important; font-size:10pt !important; }
  body[data-view="checkin"] #checkinView .snc{ padding:3pt 6pt !important; }
  body[data-view="checkin"] #checkinView .ssub{ font-size:6.5pt !important; }
  body[data-view="checkin"] #checkinView .smain{ font-size:9pt !important; }
}

/* ============================ DEAL PAPERWORK (Forms) ============================ */
#formsView .ci-container{ width:100%; margin:0 auto; }
#formsView .ci-btn{ font-family:"Barlow Semi Condensed"; font-weight:600; letter-spacing:.03em; text-transform:uppercase; font-size:12px; background:#fff; color:var(--blue-dk); border:1px solid var(--line); border-radius:6px; padding:6px 12px; cursor:pointer; transition:all .12s; }
#formsView .ci-btn:hover{ background:#eef6ff; border-color:var(--blue); }
#formsView .ci-btn.primary{ background:var(--blue); color:#fff; border-color:var(--blue); }
#formsView .ci-btn.primary:hover{ background:var(--blue-dk); }
#formsView .ci-btn.danger{ color:#b3261e; border-color:#e7b3bd; }
#formsView .ci-btn.danger:hover{ background:#fdeef0; }
#formsView .ci-btn:disabled{ opacity:.55; cursor:default; }

.forms-note{ max-width:8.5in; margin:10px auto 0; padding:0 14px; box-sizing:border-box; color:var(--muted); font-size:13px; line-height:1.45; }
.forms-note .muted, .forms-prefill .muted{ color:#8090a0; }
#formsBody{ max-width:8.5in; margin:14px auto 40px; padding:0 14px; box-sizing:border-box; }

.forms-search{ margin:0 0 12px; }
.forms-search input{ width:100%; box-sizing:border-box; padding:10px 13px; font:inherit; font-size:14px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); }
.forms-search input:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(0,102,177,.12); }

.forms-deals{ display:flex; flex-direction:column; gap:8px; }
.forms-deal{ display:flex; align-items:center; gap:12px; text-align:left; width:100%; background:#fff; border:1px solid var(--line); border-radius:11px; padding:13px 15px; cursor:pointer; transition:all .12s; font:inherit; }
.forms-deal:hover{ border-color:var(--blue); box-shadow:0 3px 12px rgba(0,70,122,.08); transform:translateY(-1px); }
.forms-deal .fd-main{ flex:1; min-width:0; }
.forms-deal .fd-name{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:16px; color:var(--ink); }
.forms-deal .fd-sub{ font-size:12.5px; color:var(--muted); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.forms-deal .fd-go{ color:var(--blue); font-size:18px; font-weight:700; }
.forms-empty{ text-align:center; color:var(--muted); padding:34px 16px; font-size:14px; }

.forms-card{ background:#fff; border:1px solid var(--line); border-radius:13px; padding:6px 16px 16px; margin-bottom:16px; }
.forms-sec{ padding:12px 0; border-bottom:1px solid #eef2f7; }
.forms-sec:last-child{ border-bottom:none; }
.forms-sec-h{ font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.04em; font-size:12px; color:var(--blue-dk); margin-bottom:9px; }
.forms-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:11px 13px; }
.forms-subh{ grid-column:1/-1; font-weight:600; font-size:12.5px; color:var(--muted); margin:4px 0 -2px; }
.ff{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.ff.ff-2{ grid-column:span 2; }
.ff > span{ font-size:11.5px; font-weight:600; color:var(--muted); letter-spacing:.01em; }
.ff input{ width:100%; box-sizing:border-box; padding:8px 10px; font:inherit; font-size:14px; border:1px solid var(--line); border-radius:7px; background:#fbfdff; color:var(--ink); }
.ff input:focus{ outline:none; border-color:var(--blue); background:#fff; box-shadow:0 0 0 3px rgba(0,102,177,.1); }
.ff.ff-check{ flex-direction:row; align-items:center; gap:8px; font-size:13.5px; color:var(--ink); grid-column:span 2; padding-top:18px; }
.ff.ff-check input{ width:17px; height:17px; }

.forms-sec-h2{ font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.04em; font-size:13px; color:var(--ink); margin:6px 0 11px; }
.forms-formgrid{ display:grid; grid-template-columns:repeat(2,1fr); gap:11px; }
.forms-formtile{ text-align:left; background:#fff; border:1px solid var(--line); border-radius:12px; padding:13px 15px; cursor:pointer; transition:all .12s; font:inherit; }
.forms-formtile:hover{ border-color:var(--blue); box-shadow:0 3px 12px rgba(0,70,122,.08); transform:translateY(-1px); }
.fft-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:7px; }
.fft-tag{ font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:10px; padding:2px 7px; border-radius:5px; background:#eef4fb; color:var(--blue-dk); }
.fft-tag.checklist{ background:#fbf2e6; color:#9a6a1a; }
.fft-saved{ font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#1f7a3d; background:#e7f6ec; padding:2px 7px; border-radius:5px; }
.fft-name{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:15.5px; color:var(--ink); }
.fft-blurb{ font-size:12.5px; color:var(--muted); margin-top:3px; line-height:1.4; }

.forms-prefill{ background:#f1f7fd; border:1px solid #d4e6f7; border-radius:9px; padding:10px 13px; font-size:13px; color:#3a566e; margin-bottom:14px; line-height:1.45; }
.forms-warn{ background:#fef4e7; border:1px solid #f3d9ad; border-radius:9px; padding:10px 13px; font-size:13px; color:#8a5a12; margin-bottom:12px; line-height:1.45; }
.forms-saved{ font-size:11.5px; color:#1f7a3d; min-width:42px; }

.forms-checklist{ display:flex; flex-direction:column; gap:2px; padding:6px 0; }
.fcl-h{ font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.04em; font-size:12px; color:var(--blue-dk); margin:14px 0 5px; }
.fcl-h:first-child{ margin-top:4px; }
.fcl-item{ display:flex; align-items:flex-start; gap:10px; padding:7px 8px; border-radius:8px; font-size:13.5px; color:var(--ink); line-height:1.4; cursor:pointer; }
.fcl-item:hover{ background:#f5f9fd; }
.fcl-item input{ width:17px; height:17px; margin-top:1px; flex:none; }

@media (max-width:680px){
  .forms-grid{ grid-template-columns:repeat(2,1fr); }
  .ff.ff-2{ grid-column:span 2; }
  .ff.ff-check{ grid-column:span 2; padding-top:6px; }
  .forms-formgrid{ grid-template-columns:1fr; }
  #formsBody{ margin:12px auto 32px; }
}

/* ---- Forms v2: library, picker, quick fill, checklist editor ---- */
#formsView .ci-btn.mini{ font-size:10.5px; padding:4px 9px; }
.forms-libhead{ display:flex; align-items:center; gap:10px; margin-top:26px; }
.forms-lib{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.forms-doc{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 10px 11px; transition:all .12s; }
.forms-doc:hover{ border-color:var(--blue); box-shadow:0 3px 12px rgba(0,70,122,.08); }
.fd-thumb{ display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:17/22; background:#f4f7fa; border:1px solid #e3eaf2; border-radius:8px; overflow:hidden; cursor:zoom-in; padding:0; }
.fd-thumb img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.fd-thumb.fd-generic{ color:#9fb0c0; }
.fd-docname{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:13.5px; line-height:1.25; color:var(--ink); margin:8px 0 3px; min-height:34px; text-align:center;
  overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.fd-docmeta{ margin-bottom:8px; }
.fd-acts{ display:flex; gap:5px; flex-wrap:wrap; margin-top:auto; }
.fft-tag.doc{ background:#eef0f3; color:#5a6573; }
.forms-quicknote{ color:#9a6a1a; font-weight:600; }

.forms-pickbar{ display:flex; align-items:center; justify-content:space-between; padding:10px 2px 12px; color:var(--ink); font-size:13.5px; }
.forms-picks{ display:grid; grid-template-columns:repeat(2,1fr); gap:7px; padding-bottom:8px; }
.forms-pick{ display:flex; align-items:center; gap:9px; border:1px solid var(--line); border-radius:9px; padding:9px 11px; cursor:pointer; font-size:13.5px; color:var(--ink); background:#fbfdff; }
.forms-pick:hover{ border-color:var(--blue); }
.forms-pick input{ width:16px; height:16px; flex:none; }
.forms-pick .fp-name{ flex:1; min-width:0; }

.fcl-role{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:13px; letter-spacing:.05em; text-transform:uppercase; background:var(--ink); color:#fff; border-radius:6px; padding:5px 10px; margin:16px 0 4px; }
.fcl-role:first-child{ margin-top:4px; }
.fcl-m{ font-style:normal; font-weight:700; color:var(--blue-dk); margin-right:2px; }
.fcl-item small{ display:block; color:var(--muted); font-size:12px; margin-top:2px; }
.fcl-note{ margin-top:14px; padding-top:10px; border-top:1px solid #eef2f7; font-size:12px; color:#8a5a12; }

.forms-chkedit .fce-sec{ border:1px solid var(--line); border-radius:10px; padding:11px; margin:12px 0; }
.fce-sech{ width:100%; box-sizing:border-box; font:inherit; font-weight:700; font-size:14px; color:var(--blue-dk); border:1px solid transparent; border-radius:6px; padding:6px 8px; background:#f1f7fd; margin-bottom:8px; }
.fce-sech:focus{ outline:none; border-color:var(--blue); background:#fff; }
.fce-band{ font-weight:700; font-size:11.5px; letter-spacing:.04em; color:#fff; background:var(--ink); border-radius:5px; padding:3px 8px; margin:8px 0 4px; }
.fce-col{ border-top:1px dashed #dbe4ee; padding-top:6px; margin-top:6px; }
.fce-colh{ font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#8090a0; margin-bottom:4px; }
.fce-row{ display:flex; align-items:center; gap:5px; margin:3px 0; }
.fce-row.fce-hd .fce-t{ font-weight:700; background:#eef2f7; }
.fce-t{ flex:1; min-width:0; font:inherit; font-size:12.5px; padding:6px 8px; border:1px solid var(--line); border-radius:6px; color:var(--ink); background:#fff; }
.fce-t:focus{ outline:none; border-color:var(--blue); }
.fce-m{ font:inherit; font-size:12.5px; padding:5px 3px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.fce-sub{ width:100%; box-sizing:border-box; font:inherit; font-size:11.5px; color:var(--muted); padding:4px 8px; margin:0 0 3px 26px; max-width:calc(100% - 26px); border:1px dashed var(--line); border-radius:6px; background:#fcfdff; }
.fce-b{ flex:none; width:26px; height:28px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--blue-dk); cursor:pointer; font-size:13px; }
.fce-b:hover{ background:#eef6ff; }
.fce-b.danger{ color:#b3261e; border-color:#e7b3bd; }
.fce-adds{ display:flex; gap:6px; margin-top:6px; }
.ff select{ width:100%; box-sizing:border-box; padding:8px 10px; font:inherit; font-size:14px; border:1px solid var(--line); border-radius:7px; background:#fbfdff; color:var(--ink); }
.ff select:focus{ outline:none; border-color:var(--blue); background:#fff; }

@media (max-width:680px){
  .forms-picks{ grid-template-columns:1fr; }
  .forms-lib{ grid-template-columns:repeat(2,1fr); gap:9px; }
  .fd-docname{ font-size:12.5px; }
}

/* ---- schedule v2: event audiences + calendar feed ---- */
.sch-evaud{ font-size:10.5px; font-weight:700; color:#6a4ea3; background:#f1ecfa; border-radius:5px; padding:2px 7px; white-space:nowrap; }
.sch-evaudpick{ display:flex; flex-wrap:wrap; gap:4px 12px; padding:8px 10px; margin-top:6px; background:#f7fafd; border:1px dashed var(--line); border-radius:8px; }
.sch-evaudpick label{ display:flex; align-items:center; gap:5px; font-size:12.5px; color:var(--ink); cursor:pointer; }
.sch-evaudpick input{ width:14px; height:14px; }
.schcal-row{ display:flex; gap:7px; }
.schcal-row input{ flex:1; min-width:0; font-size:12px; color:var(--muted); }

/* ---- forms v3: recommendations + upload field review ---- */
.fp-rec{ font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#1f7a3d; background:#e7f6ec; border-radius:5px; padding:2px 6px; margin-left:7px; }
.fp-norec{ font-size:10.5px; color:#9aa6b2; margin-left:7px; font-style:italic; }
.forms-pick.fp-dim{ opacity:.62; }
.forms-suggest{ margin-top:12px; padding:11px 13px; background:#f1f7fd; border:1px dashed #b9d4ec; border-radius:10px; font-size:13px; color:#3a566e; display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.fs-add{ font:inherit; font-size:12.5px; color:var(--blue-dk); background:#fff; border:1px solid var(--line); border-radius:7px; padding:5px 10px; cursor:pointer; }
.fs-add:hover{ border-color:var(--blue); background:#eef6ff; }
.fs-add i{ color:#8aa0b5; font-style:normal; font-size:11px; }
.fu-map{ margin-top:10px; display:flex; flex-direction:column; gap:4px; max-height:300px; overflow-y:auto; }
.fu-row{ display:flex; align-items:center; gap:9px; }
.fu-f{ flex:0 0 44%; font-size:12px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fu-sel{ flex:1; min-width:0; font:inherit; font-size:12px; padding:5px 7px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); }
.fu-static{ font-size:11.5px; color:#9aa6b2; font-style:italic; }

/* ---- schedule v3: coverage, repeats, training tracker ---- */
.sch-mcount{ display:inline-block; font-size:9.5px; font-weight:700; color:#3a6ea5; background:#eaf2fb; border-radius:5px; padding:1px 6px; margin:1px 0 2px; }
.sch-mcount.low{ color:#a33b2e; background:#fdecea; }
.sch-evrep{ font-size:10px; font-weight:700; color:#3a6ea5; background:#eaf2fb; border-radius:5px; padding:2px 6px; white-space:nowrap; }
.sch-trkbtn{ font:inherit; font-size:10.5px; font-weight:700; color:#8a5a12; background:#fdf3dc; border:1px solid #ecd9a8; border-radius:6px; padding:2px 8px; cursor:pointer; white-space:nowrap; }
.sch-trkbtn.all{ color:#1f7a3d; background:#e7f6ec; border-color:#bfe3cc; }
.sch-trk{ display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:3px 14px; padding:8px 10px 9px; margin:2px 0 6px; background:#fbf8f1; border:1px dashed #ecd9a8; border-radius:8px; }
.sch-trkrow{ display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--ink); cursor:pointer; }
.sch-trkrow.done{ color:#1f7a3d; }
.sch-trkrow input{ width:14px; height:14px; flex:none; }
.sch-trkrow input:disabled{ opacity:.5; }
@media (max-width:640px){ .sch-mcount{ display:none; } .sch-trk{ grid-template-columns:1fr 1fr; } }

/* ---- forms v4: minimal cards + admin tools on the thumbnail ---- */
.forms-doc{ position:relative; }
.fd-tools{ position:absolute; top:16px; right:16px; display:flex; gap:5px; }
.fd-tool{ width:26px; height:26px; border-radius:8px; border:1px solid var(--line); background:rgba(255,255,255,.94); color:var(--blue-dk);
  display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,.14); font-size:15px; line-height:1; }
.fd-tool:hover{ border-color:var(--blue); background:#eef6ff; }
.fd-tool.danger{ color:#b3261e; border-color:#e7b3bd; }
.fd-tool.danger:hover{ background:#fdeef0; }
.fd-docname{ min-height:0; margin-bottom:2px; }

/* ---- forms v5: categories + manage mode ---- */
.forms-cath{ display:flex; align-items:center; gap:10px; font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:12px; color:var(--muted); margin:18px 2px 8px; }
.forms-cath:first-of-type{ margin-top:10px; }
.fd-tools{ flex-wrap:wrap; max-width:calc(100% - 28px); justify-content:flex-end; }

/* ---- category picker ---- */
.fcat-list{ display:flex; flex-direction:column; gap:6px; margin:6px 0 12px; max-height:300px; overflow-y:auto; }
.fcat-opt{ display:flex; align-items:center; justify-content:space-between; font:inherit; font-size:14px; color:var(--ink); text-align:left;
  background:#fbfdff; border:1px solid var(--line); border-radius:9px; padding:10px 13px; cursor:pointer; }
.fcat-opt:hover{ border-color:var(--blue); background:#eef6ff; }
.fcat-opt.on{ border-color:var(--blue); background:#eaf2fb; font-weight:600; }
.fcat-cur{ font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--blue-dk); background:#fff; border-radius:5px; padding:2px 7px; }
.fcat-new{ display:flex; gap:7px; }
.fcat-new input{ flex:1; min-width:0; font:inherit; font-size:13.5px; padding:9px 11px; border:1px solid var(--line); border-radius:8px; }

/* ---- forms v6: filter bar + audience chips ---- */
.forms-filter{ display:flex; align-items:center; gap:10px; margin:2px 0 4px; }
.ff-chips{ display:flex; gap:6px; flex-wrap:wrap; flex:1; min-width:0; }
.ff-chip{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em;
  color:var(--blue-dk); background:#fff; border:1px solid var(--line); border-radius:999px; padding:5px 12px; cursor:pointer; white-space:nowrap; }
.ff-chip:hover{ border-color:var(--blue); background:#eef6ff; }
.ff-chip.on{ background:var(--blue); border-color:var(--blue); color:#fff; }
.ff-search{ flex:0 1 220px; min-width:130px; font:inherit; font-size:13px; padding:7px 11px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--ink); }
.ff-search:focus{ outline:none; border-color:var(--blue); }
.ff-aud{ font-size:10px; font-weight:700; letter-spacing:.03em; color:#6a4ea3; background:#f1ecfa; border-radius:5px; padding:2px 7px; text-transform:none; }
@media (max-width:680px){
  .forms-filter{ flex-direction:column; align-items:stretch; }
  .ff-chips{ overflow-x:auto; flex-wrap:nowrap; padding-bottom:2px; }
  .ff-search{ flex:none; width:100%; box-sizing:border-box; }
}

/* ---- new-deal wizard ---- */
.fw-prog{ display:flex; align-items:center; gap:7px; margin:6px 2px 12px; flex-wrap:wrap; }
.fw-dot{ width:24px; height:24px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  font-family:"Barlow Semi Condensed"; font-weight:700; font-size:12px; background:#e7edf4; color:#8090a0; flex:none; }
.fw-dot.on{ background:var(--blue); color:#fff; }
.fw-dot.done{ background:#cfe3f6; color:var(--blue-dk); }
.fw-prog b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:14px; color:var(--ink); margin:0 4px 0 1px; }
.fw-card{ padding-top:14px; }
.fw-q{ padding:9px 0 11px; border-bottom:1px solid #eef2f7; }
.fw-q:last-child{ border-bottom:none; }
.fw-ql{ font-weight:600; font-size:13.5px; color:var(--ink); margin-bottom:8px; }
.fw-chips{ display:flex; gap:8px; flex-wrap:wrap; }
.fw-chip{ font:inherit; font-size:13.5px; font-weight:600; color:var(--blue-dk); background:#fff; border:1.5px solid var(--line);
  border-radius:10px; padding:9px 16px; cursor:pointer; transition:all .12s; }
.fw-chip:hover{ border-color:var(--blue); background:#eef6ff; }
.fw-chip.on{ background:var(--blue); border-color:var(--blue); color:#fff; }
.fw-hint{ margin-top:10px; }
.fw-nav{ margin:16px 0 8px; }
.fw-next{ width:100%; padding:13px; font-size:15px; }
@media (max-width:680px){ .fw-chip{ flex:1 1 calc(50% - 8px); text-align:center; } }

/* ---- v39 polish: library header/chips, matrix header ---- */
.forms-libhead{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.forms-libhead .ff-search{ margin-left:auto; flex:0 1 240px; }
.ff-chips{ margin:2px 0 6px; }
.ff-chip{ padding:5px 13px; }
.matrix th.mx-span{ text-align:left; font-size:10.5px; letter-spacing:.04em; color:#cfe0f2; font-weight:600; text-transform:uppercase; padding:5px 8px; }
@media (max-width:680px){
  .forms-libhead .ff-search{ flex:1 1 100%; margin-left:0; order:9; }
}

/* ---- announcements board (hub) ---- */
.ann-wrap{ background:#fff; border:1px solid var(--grid); border-radius:16px; padding:14px 16px 13px; margin:0 0 14px; box-shadow:0 2px 10px rgba(20,40,70,.05); }
.ann-head{ display:flex; align-items:center; gap:10px; margin-bottom:9px; }
.ann-head b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:15.5px; color:var(--ink); flex:1; }
.ann-actions{ display:flex; gap:6px; }
.ann-btn{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:11px; text-transform:uppercase; letter-spacing:.04em;
  color:var(--blue-dk); background:#fff; border:1px solid var(--line); border-radius:7px; padding:5px 10px; cursor:pointer; text-decoration:none; }
.ann-btn:hover{ border-color:var(--blue); background:#eef6ff; }
.ann-pb-legacy-unused{ display:flex; align-items:center; gap:9px; background:linear-gradient(135deg,#eaf2fb,#f6faff); border:1px solid #c9ddf2; border-radius:11px;
  padding:11px 14px; margin-bottom:9px; text-decoration:none; color:var(--ink); font-size:14px; }
.ann-pb-legacy-unused:hover{ border-color:var(--blue); }
.ann-items{ display:flex; flex-direction:column; gap:7px; }
.ann-item{ display:flex; align-items:center; gap:10px; background:#fbfdff; border:1px solid #e3ecf5; border-radius:10px; padding:9px 12px; }
.ann-item.hist{ background:#f7f8fa; }
.ann-tag{ flex:none; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:10px; text-transform:uppercase; letter-spacing:.05em; border-radius:5px; padding:3px 8px; }
.ann-tag.offer{ background:#fdf3dc; color:#8a5a12; }
.ann-tag.spiff{ background:#e7f6ec; color:#1f7a3d; }
.ann-tag.note{ background:#eaf2fb; color:#3a6ea5; }
.ann-main{ flex:1; min-width:0; }
.ann-main b{ display:block; font-size:13.5px; color:var(--ink); }
.ann-main span{ display:block; font-size:12px; color:var(--muted); margin-top:1px; }
.ann-exp{ flex:none; font-size:11px; font-weight:700; color:#3a6ea5; background:#eaf2fb; border-radius:6px; padding:3px 8px; white-space:nowrap; }
.ann-exp.soon{ color:#a33b2e; background:#fdecea; }
.ann-x{ flex:none; width:22px; height:22px; border-radius:50%; border:1px solid #e7b3bd; background:#fff; color:#b3261e; cursor:pointer; font-size:13px; line-height:1; }
.ann-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.ann-chip{ font-size:12px; color:var(--ink); background:#f4f8fc; border:1px solid #e0eaf4; border-radius:999px; padding:5px 11px; }
.ann-chip i{ font-style:normal; color:#8090a0; font-size:11px; }
.ann-empty{ font-size:12.5px; color:var(--muted); padding:4px 2px; }
@media (max-width:640px){
  .ann-head{ flex-wrap:wrap; }
  .ann-item{ flex-wrap:wrap; }
  .ann-main{ flex:1 1 100%; order:3; }
}

/* ---- wizard v2: required marks + pack screen ---- */
.fw-req{ font-style:normal; font-size:10px; font-weight:700; color:#a33b2e; text-transform:uppercase; letter-spacing:.04em; }
.ff.miss input, .ff.miss select{ border-color:#d23b2e !important; background:#fdf3f2; }
.fw-q.miss .fw-ql{ color:#a33b2e; }
.fw-q.miss .fw-chip{ border-color:#e3a39c; }
.fw-packtop{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:14px 16px; }
.fw-packbtn{ flex:1 1 300px; padding:13px; font-size:15px; }
.fw-packrow .ci-btn{ flex:none; }
@media (max-width:680px){ .fw-packtop{ flex-direction:column; align-items:stretch; } }

/* ---- v42: slim hub greeting + wizard eligibility notes + people leads ---- */
.hub-hello{ display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--grid); border-radius:14px;
  padding:12px 18px; margin:0 0 12px; box-shadow:0 2px 8px rgba(20,40,70,.04); }
.hh-text{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:15px; color:var(--ink); flex:1; }
.hh-stripe{ width:120px; flex:none; margin:0; }
.launcher .ann-wrap{ margin-bottom:12px; }
.launcher .ql-wrap{ margin-bottom:12px; }
.fw-na{ font-size:12.5px; color:#8a5a12; background:#fdf6e7; border:1px dashed #ecd9a8; border-radius:8px; padding:8px 11px; }
.tp-lead{ margin:2px 2px 10px; }
.tp-fold summary{ cursor:pointer; list-style:none; }
.tp-fold summary::-webkit-details-marker{ display:none; }
.tp-fold summary:after{ content:"▾"; color:#8aa0b5; margin-left:6px; font-size:11px; }
.tp-fold:not([open]) summary:after{ content:"▸"; }

/* ---- v44: pdf modal, required tier, detail tabs, field warnings ---- */
.modal.pdfm{ width:min(1240px, 96vw); max-width:none; height:min(92vh, 1150px); display:flex; flex-direction:column; padding:14px 16px; }
.modal.pdfm .modal-head{ margin-bottom:10px; }
.pdfm-acts{ display:flex; gap:7px; align-items:center; }
#pdfFrame{ flex:1; width:100%; border:1px solid var(--grid); border-radius:10px; background:#525659; }
.fp-required{ font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#fff; background:var(--blue); border-radius:5px; padding:2px 7px; margin-left:7px; }
.forms-pick.fp-lock{ background:#f4f8fd; border-color:#c9ddf2; }
.forms-pick.fp-lock input{ accent-color: var(--blue); }
.ff-fieldwarn{ display:block; font-size:11px; color:#a33b2e; margin-top:3px; }
.tp-dettabs{ display:flex; gap:6px; margin:10px 0 12px; }
.pf-tabs{ display:flex; gap:6px; margin:10px 0 12px; }
.fw-remote .fw-remotehead{ flex:1 1 100%; font-size:14px; color:var(--ink); }
@media (max-width:680px){ .modal.pdfm{ width:96vw; height:88vh; padding:10px; } }

/* ---- v46/v48: EVERY module bar is uniform and sticky under the dark toolbar ---- */
.modulebar{ position:sticky; top:60px; z-index:40; }

/* ---- v47: pdf modal page-mode (phones/tablets), hub edit tile, schedule polish ---- */
.pdfm-pages{ flex:1; overflow:auto; -webkit-overflow-scrolling:touch; background:#67738a; border-radius:10px; padding:10px 8px; text-align:center; touch-action:pan-x pan-y; }
.pdfm-pages canvas{ display:inline-block; background:#fff; box-shadow:0 2px 12px rgba(0,0,0,.35); margin:0 auto 10px; max-width:none; border-radius:2px; }
.pdfm-loading{ color:#fff; padding:34px 12px; font-size:13.5px; }
.ql-editfold{ border:1.5px dashed var(--line); background:transparent; box-shadow:none; justify-content:center;
  font-family:"Barlow Semi Condensed"; font-weight:600; font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); cursor:pointer; }
.ql-editfold:hover{ color:var(--blue-dk); border-color:var(--blue); transform:none !important; box-shadow:none !important; }
.ql-editfold.on{ border-style:solid; color:var(--blue-dk); border-color:var(--blue); }
.sch-advise{ background:#fdf6e7; border:1px solid #ecd9a8; color:#7a5a17; border-radius:10px; padding:10px 14px; font-size:13px; margin:10px 0 2px; }
.sch-toolsrow{ margin-top:10px; }

/* ---- v48: pack-screen document tiles ---- */
.fw-doctools{ display:flex; gap:5px; justify-content:center; margin-top:5px; flex-wrap:wrap; }

/* ---- v49: icon buttons, announcements board v2, schedule modals, brochure subgroups ---- */
.ci-btn.icon{ border:none; background:#eef1f5; color:#44515e; width:32px; height:32px; padding:0; border-radius:8px;
  display:inline-flex; align-items:center; justify-content:center; box-shadow:none; font-size:16px; }
.ci-btn.icon:hover{ background:#e0e6ee; border:none; color:#1c2733; }
.ann-tabs{ display:flex; gap:6px; margin-bottom:14px; }
.ann-tab{ flex:1; font-family:"Barlow Semi Condensed"; font-weight:600; font-size:12.5px; letter-spacing:.03em; text-transform:uppercase;
  background:#eef1f5; color:#44515e; border:none; border-radius:8px; padding:9px 4px; cursor:pointer; }
.ann-tab.on{ background:var(--blue); color:#fff; }
.ann-head{ display:flex; align-items:center; gap:10px; }
.ann-head > b{ flex:1; min-width:0; }
.ann-pb{ width:100%; display:flex; align-items:center; gap:10px; justify-content:space-between; box-sizing:border-box; }
.ann-pbtitle{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ann-pbgo{ flex:0 0 auto; font-weight:700; color:var(--blue-dk); }
.ann-item{ display:block; }
.ann-itop{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ann-itop .ann-title{ flex:1; min-width:140px; }
.ann-body{ margin-top:3px; color:var(--muted); font-size:12.5px; line-height:1.45; }
.ann-sech{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.05em;
  color:var(--blue-dk); border-bottom:1px solid var(--line); padding-bottom:4px; margin:18px 0 10px; }
.ann-sech:first-child{ margin-top:0; }
.ann-btn.danger{ color:#b3261e; border-color:#e3a39c; }
.modal.schtpl{ max-width:1020px; width:min(1020px, 96vw); max-height:88vh; overflow:auto; }
.sch-calfoot{ text-align:right; margin:8px 2px 0; }
.sch-nonelbl{ display:block; font-size:10.5px; color:var(--muted); margin-top:3px; white-space:nowrap; }
.sch-noneRow .sch-indin{ background:#f4f5f7; }
.forms-subcath{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.06em;
  color:var(--muted); margin:10px 2px 6px; }

/* ---- v51: edit-schedules modal polish ---- */
#schTplModal .sch-tplteam{ margin:0 0 18px; }
#schTplModal .sch-gh{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:2px; }
#schTplModal .sch-gh b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:15px; color:var(--ink); }
#schTplModal .sch-ghnote{ color:var(--muted); font-size:11.5px; }
#schTplModal .sch-tplind{ margin-top:4px; }
#schTplModal .sch-pn{ display:block; font-weight:600; font-size:12px; color:var(--ink); }
#schTplModal .sch-pr{ display:block; font-size:10.5px; color:var(--muted); }

/* ---- v52: manage popup — board rows with right-side edit/remove ---- */
.ann-mrow{ display:flex; align-items:center; gap:9px; padding:9px 11px; border:1px solid var(--line); border-radius:9px; margin-bottom:7px; background:#fbfcfe; }
.ann-mrow.editing{ border-color:var(--blue); background:#f2f8ff; }
.ann-mmain{ flex:1; min-width:0; }
.ann-mmain b{ display:block; font-size:13px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ann-mends{ font-size:10.5px; color:var(--muted); }
.ann-macts{ display:flex; gap:5px; flex:0 0 auto; }
.ann-editbar{ display:flex; align-items:center; gap:8px; background:#f2f8ff; border:1px solid var(--blue); border-radius:9px;
  padding:8px 11px; margin-bottom:12px; font-size:12.5px; color:var(--ink); }
.ann-editbar b{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---- v53: check-in date bar (matches the Schedule month bar) + month picker ---- */
#checkinView .ci-datebar{ display:flex; align-items:center; gap:10px; margin:12px 0; flex-wrap:wrap; }
#checkinView .ci-datelabel{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:19px; color:var(--ink); min-width:230px; text-align:center; }
#checkinView .ci-datelabel.sun{ color:#8a5a12; }
#checkinView .ci-todaychip{ font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; background:var(--band); color:var(--blue-dk); border-radius:7px; padding:3px 8px; vertical-align:2px; margin-left:4px; }
#checkinView .ci-datepick{ position:relative; display:inline-flex; }
#checkinView .ci-datepick input{ position:absolute; inset:0; opacity:0; cursor:pointer; }

/* ---- v55: uniform module headers everywhere + global buttons + inline icons ---- */
.ci-btn{ font-family:"Barlow Semi Condensed"; font-weight:600; letter-spacing:.03em; text-transform:uppercase; font-size:12px;
  background:#fff; color:var(--blue-dk); border:1px solid var(--line); border-radius:6px; padding:6px 12px; cursor:pointer; transition:all .12s; }
.ci-btn:hover{ background:#eef6ff; border-color:var(--blue); }
.ci-btn.primary{ background:var(--blue); color:#fff; border-color:var(--blue); }
.ci-btn.primary:hover{ background:var(--blue-dk); }
.ci-btn.mini{ font-size:10.5px; padding:4px 9px; }
.svgi{ display:inline-block; vertical-align:-2.5px; }
.svgi + b, b .svgi{ vertical-align:-2px; }
.module-note{ max-width:8.5in; margin:10px auto 14px; padding:9px 14px; background:var(--band); border:1px solid var(--line);
  border-radius:9px; color:var(--blue-dk); font-size:13px; }
#home .modulebar, #usersView .modulebar{ margin-bottom:0; }
.sch-mcel .svgi{ width:11px; height:11px; }

/* ---- v56: header flair (brand stripe) + width alignment ---- */
.modulebar{ position:sticky; top:60px; z-index:40; overflow:hidden; padding-bottom:12px; }
.modulebar::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:3.5px;
  background:linear-gradient(90deg, var(--m1) 0 25%, var(--m2) 25% 60%, var(--m3) 60% 100%); }
#usersView .modulebar, #usersView .module-note{ max-width:none; margin-left:0; margin-right:0; }

/* ---- v56: Road to the Sale — stacked cards on phones ---- */
.rts-cards{ display:none; }
.rtsm-card{ display:flex; align-items:center; gap:11px; width:100%; text-align:left; background:#fff; border:1px solid var(--line);
  border-radius:11px; padding:11px 12px; margin-bottom:8px; cursor:pointer; font:inherit; }
.rtsm-card.sel{ border-color:var(--blue); box-shadow:0 0 0 2px rgba(0,102,177,.18); }
.rtsm-main{ flex:1; min-width:0; }
.rtsm-main b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:14.5px; color:var(--ink); display:block; }
.rtsm-sub{ display:block; font-size:11px; color:var(--muted); margin-top:1px; }
.rtsm-chips{ display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.rtsm-chip{ font-size:10px; font-weight:600; border:1px solid; border-radius:7px; padding:2px 7px; }
.rtsm-go{ color:var(--muted); font-size:18px; }
@media (max-width:640px){
  .rts-tablewrap{ display:none; }
  .rts-cards{ display:block; }
}

/* v56: stage number inside the mobile RTS cards (desktop positions it absolutely) */
#rtsView .rtsm-card .rts-num{ position:static; display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px; flex:0 0 auto; margin:0; }

/* ---- v57: playbook banner flair + header icon alignment ---- */
.ann-pb{ background:linear-gradient(100deg, #0a3a66, #0066B1 58%, #1b86d4); color:#fff; border:none; border-radius:12px;
  padding:12px 14px; box-shadow:0 5px 16px rgba(0,60,120,.28); align-items:center; gap:12px; cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease; }
.ann-pb:hover{ transform:translateY(-1px); box-shadow:0 7px 20px rgba(0,60,120,.34); }
.ann-pbicon{ flex:0 0 auto; width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.16);
  display:inline-flex; align-items:center; justify-content:center; }
.ann-pbicon .svgi{ width:20px; height:20px; color:#fff; }
.ann-pbtitle{ flex:1; min-width:0; text-align:left; white-space:normal; }
.ann-pbtitle b{ display:block; color:#fff; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:15px; }
.ann-pbsub{ display:block; color:rgba(255,255,255,.82); font-size:11.5px; margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ann-pbgo{ flex:0 0 auto; background:rgba(255,255,255,.18); border-radius:8px; padding:6px 13px; color:#fff; font-weight:700; font-size:12.5px; }
.ci-btn .svgi{ vertical-align:-2px; margin-right:2px; }

/* ---- v58: hub greeting = the same module-header bar as everywhere else ---- */
#hubView .hub-bar{ margin-bottom:14px; }

/* ---- v60: announcements board visual upgrade ---- */
.ann-wrap{ padding:16px 18px 15px; }
.ann-head{ margin-bottom:11px; }
.ann-head b{ font-size:16px; }
.ann-head .svgi{ color:var(--blue-dk); width:16px; height:16px; }
.ann-items{ gap:8px; }
.ann-item{ background:#fff; border:1px solid var(--line); border-left:4px solid var(--line); border-radius:10px; padding:10px 13px; }
.ann-item.ann-offer{ border-left-color:#d99114; }
.ann-item.ann-spiff{ border-left-color:#1f9e75; }
.ann-item.ann-note{ border-left-color:#3a6ea5; }
.ann-itop .ann-title{ font-size:14px; }
.ann-body{ color:#5a6c7e; }
.ann-chips{ margin-top:11px; gap:7px; }
.ann-chip{ background:#fff; border:1px solid var(--line); padding:6px 12px; font-weight:500; }
.ann-chip .svgi{ color:var(--blue-dk); margin-right:2px; }

/* ---- v61: board header badge + even playbook spacing ---- */
.ann-pb{ margin-bottom:8px; }
.ann-headicon{ flex:0 0 auto; width:30px; height:30px; border-radius:9px; background:linear-gradient(135deg,#0a3a66,#0066B1);
  display:inline-flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,60,120,.22); }
.ann-headicon .svgi{ color:#fff; width:15px; height:15px; }
.ann-head b{ font-size:17px; }

/* ---- v62: expectations strip — cleaner, Apex-styled, 5 metrics ---- */
#checkinView .ci-exp{ border:1px solid var(--line); border-left:4px solid var(--blue); border-radius:11px; padding:11px 14px 12px; box-shadow:0 2px 10px rgba(20,40,70,.05); }
#checkinView .ci-exp-header{ margin-bottom:8px; }
#checkinView .ci-exp-title{ font-family:"Barlow Semi Condensed"; font-size:12px; color:var(--blue-dk); letter-spacing:.05em; }
#checkinView .ci-exp-note{ font-size:10.5px; color:var(--muted); }
#checkinView .ci-exp-grid{ grid-template-columns:repeat(5,1fr); gap:8px; }
#checkinView .ci-exp-item{ background:#f7fafd; border:1px solid #e3ecf5; border-radius:9px; padding:8px 11px; }
#checkinView .ci-exp-metric{ color:var(--blue-dk); }
#checkinView .ci-exp-target{ color:var(--ink); font-family:"Barlow Semi Condensed"; font-size:14px; }
#checkinView .ci-exp-sub{ color:var(--muted); }
@media (max-width:760px){ #checkinView .ci-exp-grid{ grid-template-columns:1fr 1fr; } }

/* ---- v63: Inventory module ---- */
#inventoryView .inv-tabs{ display:flex; gap:6px; margin:12px 0; max-width:560px; }
#inventoryView .ff-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
#inventoryView .ff-chip{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:12px; background:#fff; color:var(--blue-dk);
  border:1px solid var(--line); border-radius:999px; padding:6px 13px; cursor:pointer; }
#inventoryView .ff-chip.on{ background:var(--blue); color:#fff; border-color:var(--blue); }
#inventoryView .forms-card{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:12px; box-shadow:0 3px 14px rgba(20,40,70,.06); }
#inventoryView .forms-sec-h{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:var(--blue-dk); margin-bottom:10px; }
#inventoryView .forms-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:10px 12px; }
#inventoryView .ff{ display:flex; flex-direction:column; gap:4px; }
#inventoryView .ff.ff-2{ grid-column:span 2; }
#inventoryView .ff > span{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:11.5px; color:var(--ink); }
#inventoryView .ff input, #inventoryView .ff select{ font:inherit; font-size:13px; padding:8px 10px; border:1.4px solid var(--line); border-radius:8px; background:#fbfdff; }
#inventoryView .forms-search input{ width:100%; box-sizing:border-box; font:inherit; font-size:13px; padding:9px 12px; border:1.4px solid var(--line); border-radius:9px; margin:2px 0 6px; }
#inventoryView .forms-empty{ text-align:center; color:var(--muted); padding:30px 10px; }
.inv-tablewrap{ overflow-x:auto; background:#fff; border:1px solid var(--line); border-radius:11px; box-shadow:0 3px 14px rgba(20,40,70,.06); }
table.inv-table{ width:100%; border-collapse:collapse; min-width:860px; }
.inv-table th{ background:var(--blue); color:#fff; font-family:"Barlow Semi Condensed"; font-weight:600; font-size:11.5px; text-align:left; padding:8px 10px; white-space:nowrap; }
.inv-table td{ border-top:1px solid #eef2f7; font-size:12.5px; color:var(--ink); padding:7px 10px; white-space:nowrap; }
.inv-table td.inv-vin{ font-family:ui-monospace, Menlo, monospace; font-size:11.5px; }
.inv-table td.inv-notes{ white-space:normal; min-width:140px; color:var(--muted); }
.inv-table tr.inv-void td{ color:#b6bec7; text-decoration:line-through; }
.inv-table tr.inv-void td .ci-btn{ text-decoration:none; }
@media (max-width:760px){ #inventoryView .forms-grid{ grid-template-columns:1fr 1fr; } }

/* ---- v64: deal log module ---- */
#deallogView .inv-tabs{ display:flex; gap:6px; margin:12px 0; max-width:760px; }
#deallogView .forms-card{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:12px; box-shadow:0 3px 14px rgba(20,40,70,.06); }
#deallogView .forms-sec-h{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:var(--blue-dk); margin-bottom:10px; }
#deallogView .forms-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:10px 12px; }
#deallogView .ff{ display:flex; flex-direction:column; gap:4px; }
#deallogView .ff.ff-2{ grid-column:span 2; }
#deallogView .ff > span{ font-family:"Barlow Semi Condensed"; font-weight:600; font-size:11.5px; color:var(--ink); }
#deallogView .ff input, #deallogView .ff select{ font:inherit; font-size:13px; padding:8px 10px; border:1.4px solid var(--line); border-radius:8px; background:#fbfdff; }
#deallogView .forms-search input{ width:100%; box-sizing:border-box; font:inherit; font-size:13px; padding:9px 12px; border:1.4px solid var(--line); border-radius:9px; margin:2px 0 6px; }
#deallogView .forms-empty{ text-align:center; color:var(--muted); padding:30px 10px; }
.dl-month{ font:inherit; font-size:12.5px; font-family:"Barlow Semi Condensed"; font-weight:600; color:var(--blue-dk); padding:6px 9px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.dl-rank{ display:inline-block; margin-left:5px; font-size:9.5px; font-weight:700; color:var(--muted); background:#eef2f7; border-radius:5px; padding:1px 5px; vertical-align:1px; }
tr.dl-first td{ background:#f2f9f4; }
tr.dl-first td:first-child{ border-left:3px solid #1f9e75; }
@media (max-width:760px){ #deallogView .forms-grid{ grid-template-columns:1fr 1fr; } }

/* ---- v65: In/Off pills replace the working dot; tighter name cells ---- */
#checkinView .ci-inout{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:10.5px; letter-spacing:.05em; text-transform:uppercase;
  border-radius:999px; padding:4px 11px; cursor:pointer; border:1.4px solid transparent; min-width:42px; }
#checkinView .ci-inout.on{ background:var(--blue); color:#fff; border-color:var(--blue); }
#checkinView .ci-inout.off{ background:#fff; color:#8a97a5; border-color:#d4dce4; }
#checkinView .ci-inout.off:hover{ color:var(--blue-dk); border-color:var(--blue); }
#checkinView .cib-dot{ width:64px; }
#checkinView .cib-name b{ font-size:13.5px; }
#checkinView .ci-printinout{ font-size:8px; font-weight:700; letter-spacing:.04em; }

/* ---- v66: In/Off pills — identical size, centered, in a wide-enough cell ---- */
#checkinView .cib-table .stc, #checkinView .cib-table .cib-dot{ width:68px; min-width:68px; text-align:center; padding:0 8px; }
#checkinView .ci-inout{ display:inline-flex; align-items:center; justify-content:center; width:48px; padding:5px 0; box-sizing:border-box; }

/* ---- v67: check-in grid proportions — equal metric columns, uniform row heights ---- */
#checkinView .cib-table{ table-layout:fixed; width:100%; }
#checkinView .cib-table th.cib-dot{ width:68px; }
#checkinView .cib-table th.cib-name{ width:230px; }
#checkinView .cib-table th.cib-dayh{ width:185px; }
/* metric columns get no explicit width -> fixed layout splits the rest equally */
#checkinView .cib-table td{ height:56px; box-sizing:border-box; vertical-align:middle; }
#checkinView .cib-table tr.cib-sec td, #checkinView .cib-table thead th{ height:auto; }

/* ===== v70: F&I Hub (recap dashboard, charts, filters) + Scorecard module ===== */
.dl-filt{ display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin:0 0 12px; }
.dl-fgroup{ display:inline-flex; gap:0; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#fff; }
.dl-fchip{ font-family:"Barlow Semi Condensed"; font-weight:600; letter-spacing:.03em; text-transform:uppercase; font-size:11px; padding:6px 11px; background:#fff; color:var(--blue-dk); border:none; border-right:1px solid var(--line); cursor:pointer; transition:all .12s; }
.dl-fchip:last-child{ border-right:none; }
.dl-fchip:hover{ background:#eef6ff; }
.dl-fchip.on{ background:var(--blue); color:#fff; }
.dl-fsel{ font:inherit; font-size:12.5px; padding:6px 9px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); }
.dl-fsel:focus{ outline:none; border-color:var(--blue); }

.dl-kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:0 0 12px; }
.dl-kpi{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:11px 13px 10px; display:flex; flex-direction:column; gap:2px; }
.dl-kpi span{ font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:10.5px; color:var(--muted); }
.dl-kpi b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:24px; line-height:1.1; color:var(--ink); }
.dl-kpi em{ font-style:normal; font-size:11.5px; color:var(--muted); }

.dl-charts{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:0 0 10px; }
.dl-chart{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 14px; min-width:0; }
.dl-ch{ font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:11.5px; color:var(--blue-dk); margin-bottom:10px; }
.dl-ch small{ text-transform:none; letter-spacing:0; color:var(--muted); font-weight:500; }
.dl-nodata{ color:var(--muted); font-size:13px; padding:18px 0; text-align:center; }

.dl-donutwrap{ display:flex; align-items:center; gap:14px; }
.dl-donut{ width:128px; height:128px; flex:none; }
.dl-donut .dl-dn{ font:700 20px "Barlow Semi Condensed",sans-serif; fill:var(--ink); }
.dl-donut .dl-dl{ font:600 8.5px "Barlow Semi Condensed",sans-serif; letter-spacing:.06em; text-transform:uppercase; fill:#7a8694; }
.dl-leg{ display:flex; flex-direction:column; gap:5px; font-size:12.5px; color:var(--ink); min-width:0; }
.dl-leg i{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.dl-leg b{ font-weight:700; }

.dl-bars{ display:flex; flex-direction:column; gap:7px; }
.dl-bar{ display:grid; grid-template-columns:minmax(86px,38%) 1fr auto; align-items:center; gap:8px; font-size:12px; }
.dl-bl{ color:var(--ink); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dl-bt{ height:12px; background:#eef2f7; border-radius:6px; overflow:hidden; }
.dl-bt i{ display:block; height:100%; background:linear-gradient(90deg,var(--blue),#3f8fd2); border-radius:6px; }
.dl-bv{ font-weight:700; color:var(--blue-dk); white-space:nowrap; font-size:11.5px; }

.dl-trendcard{ margin-bottom:10px; }
.dl-trend{ display:flex; align-items:flex-end; gap:10px; padding-top:6px; }
.dl-tm{ flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; min-width:0; }
.dl-tm b{ font-size:11.5px; color:var(--blue-dk); white-space:nowrap; }
.dl-tbar{ width:100%; max-width:64px; height:110px; background:#eef2f7; border-radius:7px; display:flex; align-items:flex-end; overflow:hidden; }
.dl-tbar i{ display:block; width:100%; background:linear-gradient(180deg,#3f8fd2,var(--blue)); border-radius:7px 7px 0 0; }
.dl-tm em{ font-style:normal; font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:10.5px; color:var(--muted); }
.dl-tm u{ text-decoration:none; font-size:10.5px; color:var(--muted); }

.dl-unitsub{ font-size:11px; color:var(--muted); font-weight:400; }
.dl-dim td{ color:#9aa6b3; }
.dl-prodf{ background:#f6faff; border-radius:8px; padding:6px 8px; margin:-6px -8px; }
#deallogView .forms-subh{ margin-top:8px; padding-top:10px; border-top:1px dashed #dbe4ee; }

.sc-podium{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:14px 0 14px; }
.sc-pod{ background:#fff; border:1px solid var(--line); border-radius:13px; padding:14px 16px; display:flex; flex-direction:column; gap:3px; position:relative; overflow:hidden; }
.sc-pod::before{ content:""; position:absolute; inset:0 auto 0 0; width:4px; }
.sc-pod1::before{ background:linear-gradient(180deg,#d4a017,#f2c94c); }
.sc-pod2::before{ background:linear-gradient(180deg,#8a97a5,#c0c9d2); }
.sc-pod3::before{ background:linear-gradient(180deg,#a05a2c,#c98a55); }
.sc-rank{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:12px; letter-spacing:.06em; color:var(--muted); }
.sc-pod b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:22px; color:var(--ink); }
.sc-pod em{ font-style:normal; font-size:12px; color:var(--muted); }
#scorecardView .module-note{ margin-top:10px; }

@media (max-width:980px){
  .dl-kpis{ grid-template-columns:repeat(2,1fr); }
  .dl-charts{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .sc-podium{ grid-template-columns:1fr; }
  .dl-trend{ gap:5px; }
  .dl-tm b{ font-size:10px; }
}

/* ===== v71: Inventory / F&I Hub / Scorecard — same centered page chrome as every other module
   (their roots never got the per-view rules: container centering, page bg, padding) ===== */
#inventoryView.ci-root, #deallogView.ci-root, #scorecardView.ci-root{ background:var(--page); font-family:"Barlow",-apple-system,system-ui,sans-serif; color:var(--ink); min-height:calc(100vh - 56px); padding:18px 16px 48px; }
#inventoryView .ci-container, #deallogView .ci-container, #scorecardView .ci-container{ margin:0 auto; }
@media (max-width:640px){
  #inventoryView.ci-root, #deallogView.ci-root, #scorecardView.ci-root{ padding:12px 8px 40px; }
}

/* ===== v72: Add Index footer line (Products tab) ===== */
.dl-addidx{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; background:#fff; border:1px solid var(--line); border-left:4px solid var(--blue); border-radius:10px; padding:11px 14px; margin-top:10px; font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:12px; color:var(--blue-dk); }
.dl-addidx b{ font-size:22px; color:var(--ink); }
.dl-addidx span{ font-family:"Barlow",sans-serif; font-weight:400; text-transform:none; letter-spacing:0; font-size:12px; color:var(--muted); }

/* ===== v73: headers span content width; penetration-vs-targets row; designated specials ===== */
#inventoryView .modulebar, #deallogView .modulebar, #scorecardView .modulebar,
#inventoryView .module-note, #deallogView .module-note, #scorecardView .module-note{ max-width:none; margin-left:0; margin-right:0; }

.dl-chrow{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.dl-pencard{ margin-bottom:10px; }
.dl-pens{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px 16px; }
.dl-pen{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.dl-pl{ font-size:12px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dl-pen b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:19px; color:var(--ink); line-height:1.05; }
.dl-pen.ok b{ color:#1f7a3d; }
.dl-pen.miss b{ color:#a33b2e; }
.dl-pbar{ position:relative; height:9px; background:#eef2f7; border-radius:5px; overflow:visible; }
.dl-pbar i{ display:block; height:100%; background:linear-gradient(90deg,var(--blue),#3f8fd2); border-radius:5px; }
.dl-pen.ok .dl-pbar i{ background:linear-gradient(90deg,#1f7a3d,#3aa164); }
.dl-pen.miss .dl-pbar i{ background:linear-gradient(90deg,#b3543e,#d2763f); }
.dl-pbar u{ position:absolute; top:-3px; bottom:-3px; width:2.5px; background:var(--ink); border-radius:2px; transform:translateX(-1px); }
.dl-pen em{ font-style:normal; font-size:11px; color:var(--muted); }
.dl-tgtedit{ display:flex; flex-wrap:wrap; gap:9px 14px; align-items:flex-end; background:#f6faff; border:1px dashed var(--line); border-radius:10px; padding:11px 13px; margin-bottom:12px; }
.dl-tgtedit label{ display:flex; flex-direction:column; gap:3px; font-size:11px; font-weight:600; color:var(--muted); }
.dl-tgtedit input{ width:88px; font:inherit; font-size:13px; padding:6px 8px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); }
.dl-tgtedit input:focus{ outline:none; border-color:var(--blue); }

.sc-specials{ background:#fff; border:1px solid var(--line); border-left:4px solid #d4a017; border-radius:12px; padding:12px 15px; margin:0 0 14px; }
.sc-sph{ display:flex; align-items:center; justify-content:space-between; gap:10px; font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:11.5px; color:var(--blue-dk); margin-bottom:8px; }
.sc-splist{ display:flex; flex-wrap:wrap; gap:7px; }
.sc-spchip{ display:inline-flex; align-items:baseline; gap:7px; background:#fdf8ec; border:1px solid #ecd9a8; border-radius:8px; padding:6px 11px; font-size:13px; color:var(--ink); }
.sc-spchip b{ font-family:"Barlow Semi Condensed"; font-weight:700; }
.sc-spchip i{ font-style:normal; color:#7a6a45; font-size:12px; }
.sc-spempty{ color:var(--muted); font-size:13px; }
.sc-spedit .sc-sprow{ display:grid; grid-template-columns:150px 1fr; gap:7px; margin-bottom:7px; }
.sc-spedit input{ font:inherit; font-size:13px; padding:7px 9px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); }
.sc-spedit input:focus{ outline:none; border-color:var(--blue); }
.sc-spacts{ display:flex; gap:7px; margin-top:8px; }

@media (max-width:980px){ .dl-pens{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .sc-spedit .sc-sprow{ grid-template-columns:1fr; } }

/* ===== v74: Deal Tracking view, hub pulse, ACOV highlight, BTS band, GL/CB entry ===== */
#trackingView.ci-root{ background:var(--page); font-family:"Barlow",-apple-system,system-ui,sans-serif; color:var(--ink); min-height:calc(100vh - 56px); padding:18px 16px 48px; }
#trackingView .ci-container{ margin:0 auto; }
#trackingView .modulebar, #trackingView .module-note{ max-width:none; margin-left:0; margin-right:0; }
@media (max-width:640px){ #trackingView.ci-root{ padding:12px 8px 40px; } }

.hp-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; max-width:1180px; margin:14px auto 0; }
.hp-card{ display:block; text-align:left; background:#fff; border:1px solid var(--line); border-radius:13px; padding:13px 16px 14px; cursor:pointer; font:inherit; transition:all .12s; }
.hp-card:hover{ border-color:var(--blue); box-shadow:0 3px 12px rgba(0,70,122,.08); transform:translateY(-1px); }
.hp-head{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:11.5px; color:var(--blue-dk); margin-bottom:9px; }
.hp-head span{ font-family:"Barlow",sans-serif; font-weight:400; text-transform:none; letter-spacing:0; color:var(--muted); font-size:12px; }
.hp-stats{ display:flex; flex-wrap:wrap; gap:6px 22px; }
.hp-stat{ display:flex; flex-direction:column; }
.hp-stat b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:21px; line-height:1.1; color:var(--ink); }
.hp-stat i{ font-style:normal; font-size:10.5px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }

#deallogView tr.dl-acovrow td{ background:#fdf6e8; }
.dl-acovchip{ display:inline-block; margin-left:6px; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:9.5px; letter-spacing:.05em; color:#8a5a12; background:#f6e3bd; border-radius:4px; padding:1px 5px; vertical-align:1px; }
.dl-acovkey{ color:#8a5a12; }
.dl-btsbadge{ display:inline-block; margin-left:7px; font-family:"Barlow Semi Condensed"; font-weight:700; font-size:9.5px; letter-spacing:.05em; color:#fff; background:#a33b2e; border-radius:4px; padding:1.5px 6px; vertical-align:1px; }
.dl-btsband{ background:#fdeef0; border:1px solid #e7b3bd; border-left:4px solid #a33b2e; border-radius:10px; padding:10px 14px; margin:0 0 12px; font-size:13px; color:#6e2a22; line-height:1.5; }
.dl-btsband b{ color:#a33b2e; }
.dl-btsnote{ display:block; font-size:12px; color:#8a5a52; margin-top:3px; }
.dl-vok{ color:#1f7a3d; font-weight:700; }
.dl-vmiss{ color:#a33b2e; font-weight:700; }
.dl-btsf{ background:#fdeef0; border-radius:8px; padding:8px 10px !important; }

.dl-adjnet{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:12px; color:var(--blue-dk); background:#eef4fb; border-radius:6px; padding:2px 9px; margin-left:8px; }
.dl-adjadd{ display:grid; grid-template-columns:140px 1fr 120px 120px auto; gap:7px; margin:8px 0 4px; align-items:center; }
.dl-adjadd input{ font:inherit; font-size:13px; padding:7px 9px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); }
.dl-adjadd input:focus{ outline:none; border-color:var(--blue); }
.dl-tgtgrp{ flex-basis:100%; font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:10.5px; color:var(--blue-dk); margin-top:2px; }

@media (max-width:760px){ .hp-grid{ grid-template-columns:1fr; } .dl-adjadd{ grid-template-columns:1fr 1fr; } }

/* ===== v75: inventory inline entry + pagination + no h-scroll; scorecard equal columns ===== */
#inventoryView .ci-container{ max-width:1320px !important; }
.inv-table.inv-fixed{ table-layout:fixed; width:100%; }
.inv-table.inv-fixed th, .inv-table.inv-fixed td{ overflow:hidden; text-overflow:ellipsis; word-break:break-word; padding:7px 8px; }
.inv-c-date{ width:92px; } .inv-c-stock{ width:96px; } .inv-c-miles{ width:72px; } .inv-c-cost{ width:92px; } .inv-c-keys{ width:54px; }
.inv-actcol{ width:118px; }
.inv-cost{ font-weight:600; color:var(--blue-dk); white-space:nowrap; }
.inv-table .dl-unitsub{ font-size:10.5px; color:#9aa6b3; font-weight:400; }

tr.inv-addrow td{ background:#f6faff; border-bottom:2px solid #cfe0f2; vertical-align:top; }
.inv-in{ width:100%; box-sizing:border-box; font:inherit; font-size:12.5px; padding:6px 7px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); margin:1.5px 0; }
.inv-in:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 2px rgba(0,102,177,.1); }
.inv-stockpair{ display:flex; gap:4px; }
.inv-stockpair .inv-prefix{ width:58px; flex:none; }
.inv-vehgrid{ display:grid; grid-template-columns:1fr 1fr; gap:3px; }
.inv-yearcell{ font-weight:700; color:var(--blue-dk); }

.inv-pager{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:12px 0 0; font-size:12.5px; color:var(--muted); }
.inv-pager .ci-btn[disabled]{ opacity:.4; cursor:default; }
.inv-pageno{ font-weight:600; color:var(--ink); }

.sc-table{ table-layout:fixed; width:100%; }
.sc-table th, .sc-table td{ overflow:hidden; text-overflow:ellipsis; }
.sc-table .sc-c-rank{ width:40px; }
.sc-table .sc-c-name{ width:170px; }
.dl-comborow td{ background:#f4f8fc; border-top:2px solid #cfe0f2; }

/* ===== v76: balanced hub pulse, you-vs-store, deal-log no h-scroll (Notes column folded in) ===== */
.hp-stats{ display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:8px; }
.hp-stat u{ text-decoration:none; font-size:10.5px; color:#9aa6b3; margin-top:1px; }

.dl-logtable th, .dl-logtable td{ padding:7px 8px; overflow:hidden; text-overflow:ellipsis; word-break:break-word; }
.dl-logtable .dl-lc0{ width:86px; }   /* delivered */
.dl-logtable .dl-lc2{ width:88px; }   /* deal/stock */
.dl-logtable .dl-lc3{ width:42px; }   /* N/U */
.dl-logtable .dl-lc4{ width:46px; }   /* type */
.dl-logtable .dl-lc8{ width:80px; }   /* front */
.dl-logtable .dl-lc9{ width:80px; }   /* F&I $ */
.dl-logtable .dl-lc10{ width:70px; }  /* open btn */

/* ===== v77: hub pulse figures centered in their columns ===== */
.hp-stat{ align-items:center; text-align:center; }

/* ===== v78: Road to the Sale lives in the navbar (reference tool, not a module) ===== */
.toolbar .brand{ margin-right:14px; }
.navrts{ display:inline-flex; align-items:center; gap:7px; margin-right:auto;
  font-family:"Barlow Semi Condensed"; font-weight:600; letter-spacing:.04em; text-transform:uppercase; font-size:11.5px;
  background:transparent; color:#cdd8e4; border:1px solid #44546a; border-radius:8px; padding:8px 12px; cursor:pointer; transition:all .12s; }
.navrts:hover{ color:#fff; border-color:#7f93ab; background:rgba(255,255,255,.06); }
@media (max-width:640px){ .navrts span{ display:none; } .navrts{ padding:8px 10px; } }

/* ===== v79: centered module tiles; profile modal alignment; device-alerts block ===== */
.tile{ align-items:center; text-align:center; }
.tile .tdesc{ -webkit-line-clamp:3; }

.pfdates .pf-bdfield{ grid-column:1 / -1; }
.bd-row{ display:grid; grid-template-columns:1.3fr .8fr 1fr; gap:7px; }
.bd-row select, .bd-row input{ width:100%; height:40px; }
.pfdates .field input{ height:40px; box-sizing:border-box; }
.pfdates .field label{ display:block; margin-bottom:5px; }

.pf-da{ margin-top:14px; padding:12px 14px; background:#f6faff; border:1px solid #d4e6f7; border-radius:11px; }
.pf-dahead{ font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:11px; color:var(--blue-dk); }

/* ===== v80: RTS equal role columns + spanned T1 cell; legend removed ===== */
#rtsView table.rts-table{ table-layout:fixed; }
#rtsView .rts-table thead th:not(.rts-sh){ width:15.5%; }
#rtsView td.rts-tc.rts-span{ vertical-align:middle; }

/* ===== v81: uniform tile heights; acct icon row; calendar button in the monthbar ===== */
.tiles{ grid-auto-rows:1fr; }
.acct-iconrow{ display:flex; gap:8px; padding:9px 12px 11px; border-top:1px solid #eef1f5; }
.acct-icon{ flex:1; height:38px; display:inline-flex; align-items:center; justify-content:center; background:#fff; border:1px solid var(--line); border-radius:9px; color:var(--blue-dk); cursor:pointer; transition:all .12s; }
.acct-icon:hover{ background:#eef6ff; border-color:var(--blue); }
.acct-icon.danger{ color:#b3261e; }
.acct-icon.danger:hover{ background:#fdeef0; border-color:#e7b3bd; }
#scheduleView .sch-addcal{ margin-left:auto; }

/* ===== v82: day view shows every person under their group; dimmed = not in today ===== */
:is(#scheduleView,#schTplModal) .sch-chip.dim{ background:#f3f5f8; border-color:#e3e8ee; color:#8a97a5; }
:is(#scheduleView,#schTplModal) .sch-chip.dim:hover{ border-color:var(--blue); color:var(--blue-dk); }

/* ===== v83: dismissible notifications ===== */
.nitem{ position:relative; padding-right:36px; }
.nx{ position:absolute; right:8px; top:9px; width:24px; height:24px; border:none; border-radius:7px; background:transparent; color:#9aa6b3; font-size:16px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.nx:hover{ background:#eef1f5; color:#b3261e; }

/* ===== v85: tracking tabs spacing (the inv-tabs rules never reached #trackingView);
   dropdowns match button height everywhere ===== */
#trackingView .inv-tabs{ display:flex; gap:6px; margin:12px 0; max-width:560px; }
#trackingView #tkControls{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.dl-month, .dl-fsel, .mb-actions select{ height:34px; box-sizing:border-box; padding-top:0; padding-bottom:0; }
.mb-actions .dl-fgroup{ display:inline-flex; height:34px; box-sizing:border-box; align-items:stretch; }
.mb-actions .dl-fchip{ display:inline-flex; align-items:center; }
/* one control height for toolbars: buttons rise to meet the 34px selects */
.modulebar .ci-btn:not(.mini):not(.icon), .sch-monthbar .ci-btn, #ciDateBar .ci-btn, .dl-filt .ci-btn:not(.mini){ min-height:34px; }

/* ===== v86: Sales Recap dashboard hierarchy — hero row vs target, mini strip, deal peek ===== */
.dl-heroes{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:0 0 10px; }
.dl-hero{ position:relative; background:#fff; border:1px solid var(--line); border-radius:13px; padding:13px 15px 12px; display:flex; flex-direction:column; gap:5px; overflow:hidden; }
.dl-hero::before{ content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#cfd8e2; }
.dl-hero.ok::before{ background:#1f7a3d; }
.dl-hero.miss::before{ background:#a33b2e; }
.dl-hero.click{ cursor:pointer; transition:all .12s; }
.dl-hero.click:hover{ border-color:var(--blue); box-shadow:0 3px 12px rgba(0,70,122,.08); }
.dl-hl{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:11px; color:var(--muted); }
.dl-hero b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:32px; line-height:1.05; color:var(--ink); }
.dl-varchip{ font-size:10.5px; font-weight:700; border-radius:5px; padding:2px 7px; letter-spacing:.02em; white-space:nowrap; }
.dl-varchip.vok{ color:#1f7a3d; background:#e1f5ee; }
.dl-varchip.vmiss{ color:#a33b2e; background:#fdeef0; }
.dl-herobar{ height:7px; background:#eef2f7; border-radius:4px; overflow:hidden; }
.dl-herobar i{ display:block; height:100%; border-radius:4px; background:linear-gradient(90deg,var(--blue),#3f8fd2); }
.dl-hero.ok .dl-herobar i{ background:linear-gradient(90deg,#1f7a3d,#3aa164); }
.dl-hero.miss .dl-herobar i{ background:linear-gradient(90deg,#b3543e,#d2763f); }
.dl-herotgt{ font-style:normal; font-size:10.5px; color:var(--muted); }
.dl-hsub{ font-style:normal; font-size:11.5px; color:var(--muted); }
.dl-hsub a{ color:var(--blue-dk); font-weight:600; cursor:pointer; text-decoration:underline; text-decoration-color:#bcd4ea; }

.dl-minis{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; margin:0 0 12px; }
.dl-mini{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:8px 11px; display:flex; flex-direction:column; gap:1px; }
.dl-mini span{ font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:9.5px; color:var(--muted); }
.dl-mini b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:17px; color:var(--ink); }
.dl-mini em{ font-style:normal; font-size:10.5px; color:var(--muted); }
.dl-mini.ok b{ color:#1f7a3d; } .dl-mini.miss b{ color:#a33b2e; }
.dl-mini.click{ cursor:pointer; transition:all .12s; }
.dl-mini.click:hover{ border-color:var(--blue); box-shadow:0 2px 8px rgba(0,70,122,.08); }

.dl-legbtn{ display:flex; align-items:center; gap:0; background:none; border:none; font:inherit; font-size:12.5px; color:var(--ink); cursor:pointer; padding:2px 0; text-align:left; }
.dl-legbtn:hover{ color:var(--blue-dk); text-decoration:underline; text-decoration-color:#bcd4ea; }
.dl-legbtn i{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; }
.dl-legbtn b{ font-weight:700; margin:0 3px; }
.dl-viewdeals{ margin-left:auto; }

@media (max-width:980px){ .dl-heroes{ grid-template-columns:repeat(2,1fr); } }

/* ===== v87: schedule day-first layout + tracking outstanding strip ===== */
#scheduleView .sch-day{ margin-bottom:14px; }
#scheduleView .sch-daybtn{ margin-left:10px; }
.tk-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:0 0 12px; }
.tk-stat{ position:relative; display:flex; flex-direction:column; gap:1px; text-align:left; background:#fff; border:1px solid var(--line); border-radius:12px; padding:11px 14px; cursor:pointer; font:inherit; overflow:hidden; transition:all .12s; }
.tk-stat::before{ content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#cfd8e2; }
.tk-stat.warn::before{ background:#a33b2e; }
.tk-stat.clear::before{ background:#1f7a3d; }
.tk-stat:hover{ border-color:var(--blue); box-shadow:0 3px 12px rgba(0,70,122,.08); transform:translateY(-1px); }
.tk-stat b{ font-family:"Barlow Semi Condensed"; font-weight:700; font-size:26px; line-height:1.05; color:var(--ink); }
.tk-stat.warn b{ color:#a33b2e; }
.tk-stat span{ font-family:"Barlow Semi Condensed"; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:10.5px; color:var(--muted); }
.tk-stat em{ font-style:normal; font-size:11px; color:var(--muted); }
@media (max-width:760px){ .tk-stats{ grid-template-columns:1fr; } }
