/* ClearedPro demo — mirrors the product shell (src/app/app/layout.tsx + globals.css tokens). Static, no backend. */
/* Geist Sans (SIL OFL), the same family next/font serves in the product; latin subset, variable weight. */
@font-face{font-family:"Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/geist-sans-latin.woff2") format("woff2")}
:root{
  /* same values as globals.css :root */
  --brand:#0b2545;--brand-deep:#06152b;--brand-green:#15803d;--brand-green-bright:#16a34a;--brand-mint:#dcfce7;
  --surface:#f6f8fb;--background:#fff;--foreground:#0b2545;--muted:#f3f5f9;--muted-foreground:#5b6b82;--secondary:#eef2f7;
  --border:#e3e8ef;--input:#dfe5ee;--ring:#16a34a;
  --sidebar:#0b2545;--sidebar-foreground:#dbe4f0;--sidebar-primary:#16a34a;--sidebar-accent:#123a6b;--sidebar-border:#1b3f70;
  --warning:#b45309;--danger:#b91c1c;--info:#0369a1;
  --radius:.75rem;--radius-xl:1.05rem;--radius-2xl:1.35rem;
  --shadow-soft:0 1px 2px rgb(11 37 69 / .04),0 8px 24px -12px rgb(11 37 69 / .18);
  --shadow-lift:0 2px 4px rgb(11 37 69 / .06),0 20px 40px -16px rgb(11 37 69 / .28);
  --font:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --text:#0b2545;
}
*{box-sizing:border-box}
html{scroll-padding-top:72px}
body{margin:0;font-family:var(--font);background:var(--surface);color:var(--foreground);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-feature-settings:"cv11","ss01","tnum"}
a{color:inherit}
h1,h2,h3,h4{letter-spacing:-.02em;margin:0;text-wrap:balance}
h1{font-size:1.5rem;font-weight:700;color:var(--brand);line-height:1.25;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.h3{font-size:1rem;font-weight:600;color:var(--foreground);margin:0 0 4px}
.sub{margin:2px 0 0;color:var(--muted-foreground);font-size:.875rem}
.muted{color:var(--muted-foreground)}
.fine{font-size:.78rem;color:var(--muted-foreground);margin:10px 0 0}
small{display:block;color:var(--muted-foreground);font-size:.78rem;font-weight:400}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid rgb(22 163 74 / .5);outline-offset:2px}
select,input[type=search],input[type=text],input[type=date],.chat-form input{font:inherit;font-size:.875rem;height:36px;padding:0 10px;border:1px solid var(--input);border-radius:.6rem;background:#fff;color:var(--foreground);min-width:0}
input::placeholder{color:#8a97aa}

/* buttons (shadcn sizes: sm h-9, default h-11 on touch) */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:600;font-size:.875rem;border-radius:.6rem;border:1px solid transparent;height:36px;padding:0 14px;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}
.btn-sm{height:32px;padding:0 12px;font-size:.8125rem}.btn-xs{height:28px;padding:0 10px;font-size:.75rem}
.btn-block{width:100%}
.btn-primary,.btn-navy{background:var(--brand);color:#fff}.btn-primary:hover,.btn-navy:hover{background:var(--brand-deep)}
.btn-green{background:var(--brand-green);color:#fff}.btn-green:hover{background:#166534}
.btn-outline{border-color:var(--border);color:var(--foreground);background:#fff}.btn-outline:hover{background:var(--muted)}
.btn-secondary{background:var(--secondary);color:var(--foreground)}.btn-secondary:hover{background:#e3e9f1}
.btn-ghost{border-color:rgba(255,255,255,.35);color:#fff;background:transparent}.btn-ghost:hover{background:rgba(255,255,255,.1)}
.btn-pill{border-radius:999px}
.linkbtn{background:none;border:0;padding:0;color:var(--foreground);font-weight:500;font-size:.875rem;cursor:pointer;text-decoration:underline;text-underline-offset:2px;display:inline-block}
.link{text-decoration:underline;text-underline-offset:2px;color:var(--foreground)}

/* demo strip (not in the product) + tour */
.demo-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;padding:7px 16px;background:#fef3c7;color:#92400e;font-size:.8rem;font-weight:500;text-align:center}
.demo-strip b{font-weight:700}
.demo-strip a{color:inherit;font-weight:700}
.demo-note{margin:0;padding:6px 16px;text-align:center;background:#fff;border-bottom:1px solid var(--border);font-size:.78rem;color:var(--muted-foreground)}
.tour{background:linear-gradient(90deg,#15803d,#16a34a);color:#fff}
.tour-in{display:flex;align-items:center;gap:16px;padding:9px 20px;max-width:1500px;margin:0 auto}
.tour-step{flex:none;font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:rgba(0,0,0,.18);padding:4px 9px;border-radius:999px}
.tour p{margin:0;font-size:.875rem;flex:1}
.tour-btns{display:flex;gap:8px;align-items:center;flex:none}
.tour .btn-primary{background:#fff;color:#15803d}
.tour-x{background:none;border:0;color:#fff;font-size:1rem;cursor:pointer;padding:4px 6px;opacity:.85}

/* ---- product shell (mirrors /app) ---- */
.layout{display:flex;min-height:100vh;background:var(--surface)}
.sidebar{position:sticky;top:0;display:flex;flex-direction:column;width:256px;flex:none;height:100vh;overflow:hidden;background:var(--sidebar);color:var(--sidebar-foreground)}
.sb-brand{display:flex;align-items:center;gap:10px;height:64px;padding:0 20px;color:#fff;font-weight:700;font-size:1.125rem;letter-spacing:-.02em;text-decoration:none}
.sb-brand img{width:26px;height:26px}
.sb-brand b{color:var(--sidebar-primary);font-weight:700}
.sb-org{margin:0 16px;border:1px solid var(--sidebar-border);background:rgba(255,255,255,.05);border-radius:.75rem;padding:8px 12px;font-size:.75rem}
.sb-org small{font-size:.625rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:rgba(219,228,240,.6)}
.sb-org div{margin-top:2px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.8rem}
.sidenav{display:flex;flex-direction:column;gap:2px;padding:0 12px;margin-top:16px;flex:1;min-height:0;overflow-y:auto}
.sidenav a,.sb-foot a{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:.75rem;font-size:.875rem;font-weight:500;color:rgba(219,228,240,.8);text-decoration:none;transition:background .15s,color .15s}
.sidenav a:hover,.sb-foot a:hover{background:rgba(255,255,255,.05);color:#fff}
.sidenav a.active,.sb-foot a.active{background:var(--sidebar-accent);color:#fff;box-shadow:inset 0 1px 0 rgb(255 255 255 / .06)}
.sidenav svg,.sb-foot svg{width:16px;height:16px;flex:none;color:rgba(219,228,240,.6)}
.sidenav a:hover svg,.sb-foot a:hover svg{color:#fff}
.sidenav a.active svg,.sb-foot a.active svg{color:var(--sidebar-primary)}
.sb-foot{display:flex;flex-direction:column;gap:2px;border-top:1px solid var(--sidebar-border);padding:12px}
.sb-user{display:flex;align-items:center;gap:12px;padding:8px 12px;margin-top:8px}
.sb-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--sidebar-primary);color:#fff;font-size:.75rem;font-weight:700;flex:none}
.sb-user div{min-width:0;flex:1}
.sb-user .em{color:#fff;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-user .ro{color:rgba(219,228,240,.6);font-size:.625rem;text-transform:capitalize}
.sb-user button{background:none;border:0;padding:6px;border-radius:.5rem;color:rgba(219,228,240,.6);cursor:pointer}
.sb-user button svg{width:16px;height:16px}
.sb-cta{margin:0 12px 8px;border:1px solid var(--sidebar-border);background:rgba(255,255,255,.05);border-radius:.75rem;padding:10px 12px;font-size:.78rem;color:rgba(219,228,240,.85)}
.sb-cta b{display:block;color:#fff;font-size:.8rem}
.sb-cta .btn{margin-top:8px;height:34px;font-size:.8rem}
.sb-cta .linkbtn{color:rgba(219,228,240,.8);font-size:.75rem;margin-top:8px;font-weight:500}
.content{flex:1;min-width:0;display:flex;flex-direction:column}
.mobile-head{display:none;position:sticky;top:0;z-index:40;height:56px;align-items:center;justify-content:space-between;gap:8px;padding:0 12px;background:rgba(255,255,255,.95);border-bottom:1px solid var(--border);backdrop-filter:blur(8px)}
.mobile-head a{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--brand);text-decoration:none;min-width:0}
.mobile-head a b{color:var(--brand-green)}
.mobile-head img{width:22px;height:22px}
.mobile-head button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--border);background:#fff;cursor:pointer}
.mobile-head button svg{width:20px;height:20px}
.main{padding:32px;min-width:0;flex:1}
.main > .in{max-width:1280px;margin:0 auto;width:100%}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:24px;flex-wrap:wrap}
.head-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.back{display:inline-block;margin-bottom:6px;text-decoration:underline;text-underline-offset:2px;font-size:.78rem;color:var(--muted-foreground)}
.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-2xl);padding:16px;box-shadow:var(--shadow-soft);min-width:0}
.card .h3{font-size:1rem;font-weight:600;margin-bottom:2px}
.card .desc{font-size:.875rem;color:var(--muted-foreground);margin:0 0 12px}
.stack{display:flex;flex-direction:column;gap:16px;min-width:0}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.grid-3{display:grid;grid-template-columns:2fr 1fr;gap:16px;align-items:start}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.kv{margin:0;font-size:.875rem;line-height:1.7}
.kv b{font-weight:600}

/* status badges = src/components/app/status-badge.tsx */
.badge{display:inline-flex;align-items:center;gap:6px;height:20px;padding:0 10px;border-radius:999px;font-size:.75rem;font-weight:600;white-space:nowrap;background:var(--secondary);color:var(--foreground)}
.badge .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
.st-compliant{background:var(--brand-mint);color:#14532d}.st-compliant .dot{background:#15803d}
.st-expiring{background:#fef3c7;color:#78350f}.st-expiring .dot{background:#f59e0b}
.st-non_compliant{background:#fee2e2;color:#7f1d1d}.st-non_compliant .dot{background:#ef4444}
.st-needs_review{background:#e0f2fe;color:#0c4a6e}.st-needs_review .dot{background:#0ea5e9}
.st-missing{background:var(--muted);color:var(--muted-foreground)}.st-missing .dot{background:#94a3b8}
.pill{display:inline-flex}
.tag{font-size:.7rem;font-weight:600;background:var(--secondary);color:var(--foreground);padding:3px 8px;border-radius:999px;white-space:nowrap}
.chip-plan{display:inline-block;font-size:.72rem;font-weight:600;background:var(--secondary);padding:3px 9px;border-radius:999px}

/* dashboard tiles (/app page) */
.tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:24px}
.tile{display:block;text-decoration:none;background:#fff;border:1px solid var(--border);border-radius:var(--radius-2xl);padding:16px;box-shadow:var(--shadow-soft);transition:transform .24s cubic-bezier(.22,1,.36,1),box-shadow .24s}
.tile:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift)}
.tile.on{outline:2px solid var(--brand);outline-offset:-2px}
.tile .t{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.75rem;font-weight:500;color:var(--muted-foreground)}
.tile .ic{display:grid;place-items:center;width:28px;height:28px;border-radius:.5rem;flex:none}
.tile .ic i{width:10px;height:10px;border-radius:50%;background:currentColor;display:block}
.tile .n{margin-top:8px;font-size:1.875rem;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.c-compliant{color:#15803d}.b-compliant{background:var(--brand-mint)}
.c-expiring{color:#b45309}.b-expiring{background:#fef3c7}
.c-non_compliant{color:#b91c1c}.b-non_compliant{background:#fee2e2}
.c-needs_review{color:#0369a1}.b-needs_review{background:#e0f2fe}
.c-missing{color:#475569}.b-missing{background:#f1f5f9}
.list{list-style:none;margin:0;padding:0;font-size:.875rem}
.list li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--border);align-items:center;flex-wrap:wrap}
.list li:first-child{border-top:0}
.list a{font-weight:500;text-decoration:none}
.list a:hover{text-decoration:underline}
.list .when{color:var(--muted-foreground);font-size:.75rem;white-space:nowrap}
.mini{list-style:none;margin:0;padding:0}
.mini li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--border);font-size:.875rem}
.mini li:first-child{border-top:0}

/* filters + data tables (.data-table in globals.css) */
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;align-items:center}
.filters input[type=search]{flex:1;min-width:180px;max-width:260px}
.filters label{display:flex;align-items:center;gap:8px;font-weight:500;font-size:.875rem}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;background:#fff;border:1px solid var(--border);border-radius:var(--radius-2xl);box-shadow:var(--shadow-soft)}
.card .table-wrap{border:0;box-shadow:none;border-radius:0}
table{width:100%;border-collapse:collapse;font-size:.875rem}
th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-foreground);font-weight:600;padding:10px 12px;background:rgb(243 245 249 / .6);white-space:nowrap}
td{padding:12px;border-top:1px solid var(--border);vertical-align:middle}
tbody tr{transition:background .15s}
tbody tr:hover{background:rgb(243 245 249 / .4)}
.vtable tbody tr{cursor:pointer}
.vlink{font-weight:500;color:var(--foreground);text-decoration:none}
.vlink:hover{text-decoration:underline}
td small{font-size:.75rem}
.issue.red{color:#b91c1c}.issue.amber{color:#b45309}

/* tabs (vendor detail) */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin:20px 0 24px;overflow-x:auto}
.tabs a{padding:10px 14px;font-size:.875rem;color:var(--muted-foreground);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tabs a:hover{color:var(--foreground)}
.tabs a.active{color:var(--foreground);font-weight:500;border-bottom-color:var(--brand)}

/* vendor detail */
.gap-line{display:flex;gap:8px;color:#b91c1c;font-size:.875rem;margin:10px 0 0}
.gap-line.amber{color:#b45309}.gap-line.sky{color:#0369a1}
.gap-line::before{content:"•";flex:none}
.cov-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 24px;margin-top:12px;font-size:.78rem;color:var(--muted-foreground)}
.ptable td b{font-weight:500}
.ri{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:.75rem;font-weight:700;flex:none}
.ri.pass{background:var(--brand-mint);color:#15803d}
.ri.fail{background:#fee2e2;color:#b91c1c}
.ri.warn{background:#fef3c7;color:#b45309}
.ri.na{background:#f1f5f9;color:var(--muted-foreground)}
.checks{list-style:none;margin:0;padding:0}
.checks li{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--border)}
.checks li:first-child{border-top:0}
.checks b{font-weight:500;font-size:.875rem}
.checks li.fail small{color:#b91c1c}.checks li.warn small{color:#b45309}
.endorse{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.end{border:1px solid var(--border);border-radius:.75rem;padding:10px 12px}
.end b{font-weight:500;font-size:.875rem;display:block}
.end small{word-break:break-word}
.end span{display:inline-block;margin-top:6px;font-size:.72rem;font-weight:600;padding:2px 8px;border-radius:999px}
.end.pass span{background:var(--brand-mint);color:#15803d}
.end.fail{border-color:#fecaca;background:#fef2f2}.end.fail span{background:#fee2e2;color:#b91c1c}
.end.na span{background:#f1f5f9;color:var(--muted-foreground)}
.history{list-style:none;margin:0;padding:0}
.history li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--border);font-size:.875rem;flex-wrap:wrap}
.history li:first-child{border-top:0}
.history time{font-size:.75rem;color:var(--muted-foreground);white-space:nowrap}

/* document preview */
.doc{position:relative;overflow:hidden;border:1px solid #cbd5e1;border-radius:6px;padding:14px;background:#fffefa;font-family:"Courier New",ui-monospace,monospace;font-size:.7rem;color:#1e293b;line-height:1.35}
.doc .wm{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%) rotate(-18deg);font:800 2.2rem var(--font);color:rgba(220,38,38,.09);white-space:nowrap;pointer-events:none;letter-spacing:.06em}
.doc-h{display:flex;justify-content:space-between;gap:8px;border-bottom:2px solid #1e293b;padding-bottom:6px;margin-bottom:8px;flex-wrap:wrap}
.doc-h b{font-family:var(--font);font-size:.78rem}
.doc-2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.doc-2 > div{border:1px solid #cbd5e1;padding:6px}
.doc small{font-size:.6rem;color:#64748b;font-weight:700}
.doc table th,.doc table td{font-size:.62rem;padding:4px;border:1px solid #cbd5e1;text-transform:none;letter-spacing:0;color:#1e293b;white-space:normal;background:none}
.doc-foot{margin:6px 0 0;font-size:.62rem;color:#b91c1c;font-family:var(--font)}
.doc.empty{font-family:var(--font);font-size:.875rem;text-align:center;padding:30px}

/* upload / triage */
.grid-upload{display:grid;grid-template-columns:360px 1fr;gap:16px;align-items:start}
.lbl{font-weight:500;font-size:.8rem;display:block;margin-bottom:6px}
#up-v{width:100%;margin-bottom:12px}
.drop{border:2px dashed #cbd5e1;border-radius:.75rem;padding:26px 16px;text-align:center;margin-bottom:12px;cursor:pointer;background:var(--muted);display:flex;flex-direction:column;align-items:center;gap:4px}
.drop:hover{border-color:var(--brand-green-bright);background:#f0fdf4}
.drop svg{width:28px;height:28px;fill:none;stroke:var(--brand);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.drop b{font-weight:500}.drop span{font-size:.78rem;color:var(--muted-foreground)}
.empty-state{text-align:center;padding:40px 20px;color:var(--muted-foreground);display:flex;flex-direction:column;gap:6px}
.empty-state b{color:var(--foreground);font-weight:500}
.scan{display:flex;align-items:center;gap:14px;padding:12px;border-radius:.75rem;background:var(--secondary);margin-bottom:16px}
.scan b{display:block;font-weight:500}
.scan-doc{position:relative;width:46px;height:58px;background:#fff;border-radius:4px;border:1px solid #cbd5e1;padding:6px 5px;overflow:hidden;flex:none}
.scan-doc i{display:block;height:3px;background:#cbd5e1;margin-bottom:3px;border-radius:2px}
.scan-doc i:nth-child(odd){width:70%}
.scanline{position:absolute;left:0;right:0;height:3px;background:#22c55e;box-shadow:0 0 8px #22c55e;animation:scan 1.1s linear infinite}
@keyframes scan{from{top:0}to{top:100%}}
.scan.done{background:#f0fdf4}.scan.done .scanline{display:none}
.fields{list-style:none;margin:0 0 16px;padding:0}
.fields li{display:grid;grid-template-columns:170px 1fr 52px;gap:10px;padding:8px 0;border-top:1px solid var(--border);font-size:.875rem;align-items:center}
.fields li:first-child{border-top:0}
.fields span{color:var(--muted-foreground)}
.fields b{font-weight:500}
.fields em{font-style:normal;font-size:.72rem;font-weight:600;text-align:right;color:#15803d}
.fields em.low{color:#b45309}
.appear{animation:appear .35s ease both}
@keyframes appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.result{margin-top:16px;border-radius:.75rem;padding:14px 16px;border:1px solid}
.result.red{background:#fef2f2;border-color:#fecaca}.result.green{background:#f0fdf4;border-color:#bbf7d0}.result.amber{background:#fffbeb;border-color:#fde68a}
.result p{margin:8px 0 12px;font-size:.875rem}
.row-actions{display:flex;gap:8px;flex-wrap:wrap}
.banner{border-radius:.75rem;padding:10px 14px;margin-bottom:16px;font-size:.875rem;border:1px solid}
.banner.red{background:#fef2f2;border-color:#fecaca;color:#7f1d1d}
.banner.amber{background:#fffbeb;border-color:#fde68a;color:#78350f}
.banner.green{background:#f0fdf4;border-color:#bbf7d0;color:#14532d}

/* reminders / activity */
.cadence{display:grid;grid-template-columns:repeat(7,1fr);margin:0 0 16px;background:#fff;border:1px solid var(--border);border-radius:var(--radius-2xl);padding:16px 10px 12px;box-shadow:var(--shadow-soft)}
.cad{position:relative;text-align:center;font-size:.75rem}
.cad::before{content:"";position:absolute;top:6px;left:0;right:0;height:2px;background:var(--border);z-index:0}
.cad:first-child::before{left:50%}.cad:last-child::before{right:50%}
.cad span{position:relative;z-index:1;display:block;width:14px;height:14px;margin:0 auto 6px;border-radius:50%;background:var(--brand-green-bright);border:3px solid #fff;box-shadow:0 0 0 1px var(--brand-green-bright)}
.cad.exp span{background:#b45309;box-shadow:0 0 0 1px #b45309}
.cad.late span{background:#b91c1c;box-shadow:0 0 0 1px #b91c1c}
.cad b{font-weight:500}
.grid-rem{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.timeline{list-style:none;margin:0;padding:0}
.tl{display:flex;gap:12px;padding:10px;border-radius:.75rem;cursor:pointer;position:relative}
.tl:hover,.tl.sel{background:var(--muted)}
.tl.sel{outline:2px solid var(--brand)}
.tl-dot{flex:none;width:10px;height:10px;border-radius:50%;margin-top:6px;background:var(--brand)}
.tl.agent .tl-dot{background:var(--brand-green-bright)}
.tl.future{opacity:.85}.tl.future .tl-dot{background:#fff;border:2px dashed var(--muted-foreground)}
.tl-body{min-width:0;flex:1}
.tl-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:2px}
.tl time{font-size:.75rem;font-weight:600}
.tl b{display:block;font-size:.875rem;font-weight:500}
.tl small{word-break:break-word}
.chip{font-size:.66rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:2px 7px;border-radius:999px;background:var(--secondary);color:var(--foreground)}
.chip.agent{background:var(--brand-mint);color:#15803d}
.state{font-size:.72rem;color:var(--muted-foreground);font-weight:500}
.email-prev{position:sticky;top:16px}
.email-h{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.email-meta{display:grid;grid-template-columns:70px 1fr;gap:4px 10px;margin:0 0 12px;font-size:.875rem;padding-bottom:12px;border-bottom:1px solid var(--border)}
.email-meta dt{color:var(--muted-foreground)}.email-meta dd{margin:0;word-break:break-word}
.email-body{white-space:pre-wrap;font-family:var(--font);font-size:.875rem;margin:0;line-height:1.6}

/* assistant (/app/assistant) */
.grid-chat{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.chat{display:flex;flex-direction:column;padding:0;overflow:hidden}
.chat-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--border);flex-wrap:wrap;font-size:.75rem;color:var(--muted-foreground)}
.chat-head b{color:var(--foreground);font-weight:500;margin-right:6px}
.chat-log{height:430px;overflow-y:auto;padding:14px;background:var(--surface);display:flex;flex-direction:column;gap:12px}
.msg{max-width:82%;padding:10px 14px;border-radius:.9rem;font-size:.875rem;line-height:1.5}
.msg.user{align-self:flex-end;background:var(--brand);color:#fff;border-bottom-right-radius:4px}
.msg.bot{align-self:flex-start;background:#fff;border:1px solid var(--border);border-bottom-left-radius:4px}
.msg.bot.unknown{background:#fffbeb;border-color:#fde68a}
.msg ul{margin:6px 0;padding-left:18px}
.cites{margin-top:8px;padding-top:8px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:2px}
.cite{font-size:.75rem;color:var(--info);text-decoration:none;font-weight:500}
.cite:hover{text-decoration:underline}
.typing{display:flex;gap:4px;padding:14px}
.typing i{width:7px;height:7px;border-radius:50%;background:#94a3b8;animation:blink 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes blink{50%{opacity:.3}}
.chips{display:flex;gap:6px;flex-wrap:wrap;padding:12px 14px 0}
.chipq{border:1px solid var(--border);background:#fff;border-radius:999px;padding:5px 11px;font-size:.78rem;cursor:pointer;font-weight:500}
.chipq:hover{border-color:var(--brand-green-bright);background:#f0fdf4}
.chat-form{display:flex;gap:8px;padding:12px 14px}
.chat-form input{flex:1;min-width:0}
.chat-foot{padding:8px 14px;border-top:1px solid var(--border);font-size:.72rem;color:var(--muted-foreground)}
.ticks{list-style:none;margin:0;padding:0}
.ticks li{position:relative;padding-left:24px;margin-bottom:9px;font-size:.875rem}
.ticks li::before{content:"✓";position:absolute;left:0;top:1px;width:17px;height:17px;border-radius:50%;background:var(--brand-mint);color:#15803d;font-size:.7rem;font-weight:800;display:grid;place-items:center}

/* reports */
.report-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border-radius:.75rem;background:var(--brand);color:#c9d6ea;margin-bottom:12px;flex-wrap:wrap}
.report-head b{color:#fff;display:block}
.report-head .sum{font-size:.875rem}.report-head .sum b{display:inline;font-size:1.3rem;color:#22c55e}
.rtable a{font-weight:500;color:var(--foreground);text-decoration:none}
.verdict{font-size:.72rem;font-weight:600;padding:3px 9px;border-radius:999px;white-space:nowrap}
.verdict.g{background:var(--brand-mint);color:#15803d}.verdict.a{background:#fef3c7;color:#b45309}.verdict.r{background:#fee2e2;color:#b91c1c}

/* vendor upload link (/u/[token]) */
body.vendor-mode{background:#fff}
.vpage{max-width:980px;margin:0 auto;padding:0 20px 40px}
.vp-head{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid var(--border);gap:12px;flex-wrap:wrap}
.vp-brand{display:flex;gap:10px;align-items:center}.vp-brand b{display:block}
.org-badge{flex:none;width:36px;height:36px;border-radius:.6rem;background:var(--secondary);color:var(--brand);display:grid;place-items:center;font-weight:700;font-size:.75rem}
.vp-secure{font-size:.75rem;font-weight:600;color:#15803d;background:var(--brand-mint);padding:4px 10px;border-radius:999px}
.vp-main h1{display:block;font-size:1.7rem;margin:28px 0 8px;line-height:1.25}
.vp-main h1 span{color:var(--brand-green)}
.vp-need{margin:18px 0;background:#fffbeb;border:1px solid #fde68a;border-radius:.75rem;padding:14px 18px;font-size:.9rem}
.vp-need.ok{background:#f0fdf4;border-color:#bbf7d0}
.vp-need ul{margin:6px 0 0;padding-left:18px}
.vp-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.vp-pass{margin-top:12px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:.75rem;padding:10px 12px;font-size:.84rem}
.vp-foot{text-align:center;color:var(--muted-foreground);font-size:.8rem;padding:24px 0 0}
.progress{height:8px;background:var(--border);border-radius:999px;overflow:hidden}
.progress span{display:block;height:100%;width:0;background:var(--brand-green-bright);animation:prog 1.5s ease forwards}
@keyframes prog{to{width:100%}}
.vp-done{display:flex;gap:10px;align-items:flex-start;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:.75rem;padding:12px}
.vp-done b{font-weight:500}
body.vendor-mode .disclaimer{background:#fff}

/* deck captures (?shot=1): product shell only */
body.shot-mode .demo-strip,body.shot-mode .demo-note,body.shot-mode .tour,body.shot-mode .disclaimer{display:none!important}

/* misc */
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--brand);color:#fff;padding:11px 18px;border-radius:.75rem;font-size:.875rem;opacity:0;pointer-events:none;transition:.25s;z-index:60;max-width:90vw;text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
.disclaimer{text-align:center;font-size:.75rem;color:var(--muted-foreground);margin:0;padding:14px 20px 22px;border-top:1px solid var(--border);background:var(--surface)}

/* responsive — the product collapses the sidebar below 768px into a white header + full-screen navy menu */
@media (max-width:1180px){.grid-chat{grid-template-columns:1fr}.tiles{grid-template-columns:repeat(3,1fr)}}
@media (max-width:1020px){.grid-2,.grid-3,.grid-rem,.grid-upload{grid-template-columns:1fr}.email-prev{position:static}}
@media (max-width:767px){
  .sidebar{display:none}
  body.nav-open .sidebar{display:flex;position:fixed;inset:0;width:100%;height:100%;padding-top:56px;z-index:45;overflow-y:auto}
  body.nav-open .sb-brand{display:none}
  body.nav-open .sidenav{flex:none;overflow:visible}
  body.nav-open .mobile-head{position:fixed;top:0;left:0;right:0;z-index:50}
  body.nav-open{overflow:hidden}
  .mobile-head{display:flex}
  .tour{position:static}
  .main{padding:20px 16px 40px}
  .page-head{align-items:flex-start}
  .tiles{grid-template-columns:1fr;gap:10px}
  h1{font-size:1.5rem}
  .vtable th:nth-child(3),.vtable td:nth-child(3),.vtable th:nth-child(4),.vtable td:nth-child(4){display:none}
  .fields li{grid-template-columns:1fr 46px}.fields li span{grid-column:1/-1}
  .endorse,.doc-2,.vp-grid,.cov-grid{grid-template-columns:1fr}
  .cadence{grid-template-columns:repeat(7,minmax(72px,1fr));overflow-x:auto;padding-bottom:14px}
  .chat-log{height:380px}
  .msg{max-width:92%}
  .vp-main h1{font-size:1.35rem}
  .head-actions{width:100%}
  .tour-in{flex-wrap:wrap;gap:8px;padding:10px 14px}
  .tour p{flex-basis:100%;order:2}
  .tour-btns{order:3;margin-left:auto}
  .rtable thead{display:none}
  .rtable,.rtable tbody{display:block;width:100%}
  .rtable tr{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 2px;border-top:1px solid var(--border)}
  .rtable td{display:block;border:0;padding:0;white-space:normal;min-width:0}
  .rtable td:first-child{flex:1 0 100%}
  .rtable td:nth-child(2),.rtable td:nth-child(3),.rtable td:nth-child(4),.rtable td:nth-child(5){display:flex;align-items:center;gap:4px;font-size:.75rem;font-weight:600;color:var(--muted-foreground)}
  .rtable td:nth-child(2)::before{content:"GL"}.rtable td:nth-child(3)::before{content:"Auto"}.rtable td:nth-child(4)::before{content:"WC"}.rtable td:nth-child(5)::before{content:"Umbrella"}
  .rtable td:last-child{flex:1 0 100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
  .rtable .verdict{white-space:normal;display:inline-block;max-width:100%;line-height:1.35}
}
@media print{
  .mobile-head,.tour,.sidebar,.head-actions,.filters,.disclaimer,.toast,.demo-strip,.demo-note{display:none!important}
  .layout{display:block}.main{padding:0}.card{box-shadow:none;border:0}
  body{background:#fff}
  .report-head{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition:none!important}}
