/* ============================================================
   RAGADO — Customer Portal
   Reconstructs the app2.css primitives (kpi grid, feed, modal,
   toast, dropdown, user-pill, tag-chip) from the canonical
   Ragado OS design tokens (app.css), plus portal-only additions
   (auth layout, mobile drawer). NO new colours/fonts introduced.
   ============================================================ */

/* ---------- attribute hidden must beat .app{display:grid} ---------- */
[hidden]{display:none !important}

/* ---------- method-tile text stacks (title over description) ---------- */
.method-tile .mt-t,.method-tile .mt-d{display:block}

/* ---------- KPI grid (dashboard) ---------- */
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.kpi{display:block;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:16px 18px;box-shadow:var(--shadow-sm);transition:box-shadow var(--ease),transform var(--ease)}
.kpi:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}
.kpi-l{display:flex;align-items:center;gap:9px;font-size:var(--text-sm);font-weight:600;color:var(--text-muted)}
.kpi-ic{width:30px;height:30px;border-radius:9px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.kpi-ic svg{width:16px;height:16px}
.kpi-v{font-family:var(--font-display);font-size:var(--text-2xl);font-weight:700;letter-spacing:-.02em;color:var(--text);margin-top:10px}
.kpi-c{font-size:var(--text-sm);color:var(--text-muted);margin-top:3px}
.kpi.danger{border-left:3px solid var(--red)}
.kpi.warn{border-left:3px solid var(--amber)}
.kpi.ok{border-left:3px solid var(--green)}
.kpi.brand{border-left:3px solid var(--brand)}
@media(max-width:1080px){.kpi-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.kpi-grid{grid-template-columns:1fr}}

/* ---------- Activity / renewals feed ---------- */
.feed{display:flex;flex-direction:column}
.feed-row{display:flex;gap:12px;align-items:flex-start;padding:12px 20px;border-bottom:1px solid var(--divider)}
.feed:first-child .feed-row:first-child,.card-pad .feed-row:first-child{padding-top:0}
.feed-row:last-child{border-bottom:none}
.feed-dot{width:9px;height:9px;border-radius:50%;background:var(--brand);margin-top:6px;flex:0 0 auto}
.feed-body{flex:1;min-width:0}
.feed-txt{font-size:var(--text-md);color:var(--text-2)}
.feed-txt b{color:var(--text);font-weight:600}
.feed-meta{font-size:var(--text-xs);color:var(--text-faint);margin-top:2px}
.card > .feed{padding:6px 0}

/* ---------- Modal ---------- */
.modal-overlay{position:fixed;inset:0;background:rgba(10,14,42,.42);backdrop-filter:blur(3px);display:flex;align-items:flex-start;justify-content:center;padding:6vh 20px;z-index:100;animation:ovIn .2s ease}
@keyframes ovIn{from{opacity:0}to{opacity:1}}
.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);box-shadow:var(--shadow-lg);width:100%;max-width:560px;max-height:88vh;display:flex;flex-direction:column;overflow:hidden;animation:mIn .22s cubic-bezier(.16,1,.3,1)}
.modal.sm{max-width:440px}.modal.lg{max-width:760px}.modal.xl{max-width:960px}
@keyframes mIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.modal-head{display:flex;align-items:flex-start;gap:12px;padding:18px 20px;border-bottom:1px solid var(--divider)}
.mh-title{font-family:var(--font-display);font-size:var(--text-lg);font-weight:600;color:var(--text)}
.mh-sub{font-size:var(--text-sm);color:var(--text-muted);margin-top:2px}
.modal-x{margin-left:auto;width:34px;height:34px;border-radius:var(--r-md);border:none;background:var(--surface-3);color:var(--text-muted);display:flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto;transition:all var(--ease)}
.modal-x:hover{background:var(--border);color:var(--text)}
.modal-x svg{width:16px;height:16px}
.modal-body{padding:20px;overflow-y:auto}
.modal-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--divider);background:var(--surface-2)}

/* ---------- Toast ---------- */
.toast-wrap{position:fixed;right:20px;bottom:20px;display:flex;flex-direction:column;gap:10px;z-index:200}
.toast{display:flex;gap:11px;align-items:flex-start;background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--green);border-radius:var(--r-md);box-shadow:var(--shadow-lg);padding:13px 15px;min-width:280px;max-width:380px;animation:tIn .28s cubic-bezier(.16,1,.3,1)}
.toast.err{border-left-color:var(--red)}
.toast.info{border-left-color:var(--blue)}
@keyframes tIn{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:none}}
.toast .ti{width:22px;height:22px;border-radius:50%;background:var(--green-soft);color:var(--green);display:flex;align-items:center;justify-content:center;flex:0 0 auto;margin-top:1px}
.toast.err .ti{background:var(--red-soft);color:var(--red)}
.toast.info .ti{background:var(--blue-soft);color:var(--blue)}
.toast .ti svg{width:13px;height:13px}
.toast .tt{font-size:var(--text-md);font-weight:600;color:var(--text)}
.toast .td{font-size:var(--text-sm);color:var(--text-muted);margin-top:2px;line-height:1.45}

/* ---------- Dropdown menus (topbar) ---------- */
.dropdown{position:absolute;top:calc(100% + 8px);right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);min-width:260px;padding:6px;z-index:90;animation:ddIn .16s ease}
@keyframes ddIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.dd-item{display:flex;align-items:center;gap:11px;width:100%;padding:9px 11px;border:none;background:transparent;border-radius:var(--r-md);cursor:pointer;text-align:left;color:var(--text-2);font-family:inherit;font-size:var(--text-md);transition:background var(--ease)}
.dd-item:hover{background:var(--surface-3)}
.dd-item.on{background:var(--brand-soft)}
.dd-item svg{width:16px;height:16px;color:var(--text-muted);flex:0 0 auto}
.ddi-ava{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#2A3EF4,#6B3FD4);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:var(--text-xs);flex:0 0 auto}
.ddi-meta{display:flex;flex-direction:column;min-width:0}
.ddi-name{font-size:var(--text-md);font-weight:600;color:var(--text)}
.ddi-role{font-size:var(--text-xs);color:var(--text-muted)}
.ddi-check{margin-left:auto;color:var(--brand);flex:0 0 auto}
.ddi-check svg{width:15px;height:15px;color:var(--brand)}
.dd-sep{height:1px;background:var(--divider);margin:6px 4px}
.dd-head{padding:9px 11px 6px;font-size:var(--text-xs);font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-faint)}

/* ---------- User pill (topbar) ---------- */
.user-pill{display:inline-flex;align-items:center;gap:9px;background:var(--surface-3);border:1px solid var(--border);border-radius:var(--r-full);padding:5px 12px 5px 6px;cursor:pointer;font-family:inherit;transition:all var(--ease)}
.user-pill:hover{border-color:var(--border-strong)}
.upa{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#2A3EF4,#6B3FD4);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:11px;flex:0 0 auto}
.upn{font-size:var(--text-sm);font-weight:600;color:var(--text);max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upc{color:var(--text-muted);display:flex}
.upc svg{width:15px;height:15px}
@media(max-width:720px){.upn{display:none}}

/* ---------- Tag chips ---------- */
.tag-chip{display:inline-flex;align-items:center;gap:5px;font-size:var(--text-xs);font-weight:600;padding:3px 9px;border-radius:var(--r-full);background:var(--surface-3);color:var(--text-2);border:1px solid var(--border)}
.tag-chip .pip{width:6px;height:6px;border-radius:50%;background:var(--slate)}
.tag-Compliance{background:var(--purple-soft);color:var(--purple-text)}.tag-Compliance .pip{background:var(--purple)}
.tag-Renewal{background:var(--amber-soft);color:var(--amber-text)}.tag-Renewal .pip{background:var(--amber)}
.tag-Claim{background:var(--red-soft);color:var(--red-text)}.tag-Claim .pip{background:var(--red)}
.tag-Payment{background:var(--blue-soft);color:var(--blue-text)}.tag-Payment .pip{background:var(--blue)}
.tag-Policy{background:var(--green-soft);color:var(--green-text)}.tag-Policy .pip{background:var(--green)}

/* ---------- sidebar version + user meta ---------- */
.sb-ver{font-size:11px;color:var(--text-muted);padding:6px 4px 0;opacity:.7}
.sb-user{display:flex;align-items:center;gap:10px;padding:6px 4px}
.sb-user-meta{display:flex;flex-direction:column;min-width:0}
.sb-user-name{font-size:var(--text-sm);font-weight:600;color:#EDEEF6}
.sb-user-role{font-size:var(--text-xs);color:#8A90B0}

/* ---------- table scroll wrapper ---------- */
.tbl-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tbl-scroll .tbl{min-width:640px}

/* ---------- small utilities ---------- */
.mb14{margin-bottom:14px}.mb8{margin-bottom:8px}.mb18{margin-bottom:18px}.mt10{margin-top:10px}.mt16{margin-top:16px}
.grow{flex:1}.wrap-text{white-space:normal}
.count{font-size:var(--text-xs);font-weight:600;color:var(--text-muted);background:var(--surface-3);border:1px solid var(--border);border-radius:var(--r-full);padding:2px 9px}

/* ============================================================
   PORTAL-ONLY additions (auth, mobile drawer, misc.)
   ============================================================ */

/* ---------- Auth shell (login / register / reset / mfa) ---------- */
.auth-shell{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:var(--bg)}
.auth-hero{background:linear-gradient(150deg,#0A0E2A 0%,#141A44 55%,#1B2B6B 100%);color:#fff;padding:48px 56px;display:flex;flex-direction:column;position:relative;overflow:hidden}
.auth-hero::after{content:"";position:absolute;right:-120px;bottom:-120px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(92,108,255,.35),transparent 70%)}
.auth-hero .ah-brand{display:flex;align-items:center;gap:11px;z-index:2}
.auth-hero .ah-brand svg{width:36px;height:36px}
.auth-hero .ah-bn{font-family:var(--font-display);font-weight:700;font-size:1.35rem;letter-spacing:.3px}
.auth-hero .ah-bn .os{color:#5C6CFF}
.auth-hero .ah-frn{font-size:11px;color:#7B82AE;margin-top:2px}
.auth-hero .ah-mid{margin-top:auto;margin-bottom:auto;z-index:2;max-width:420px}
.auth-hero .ah-h{font-family:var(--font-display);font-size:2rem;font-weight:700;line-height:1.15;letter-spacing:-.02em}
.auth-hero .ah-p{font-size:var(--text-base);color:#C2C6DC;margin-top:14px;line-height:1.55}
.auth-hero .ah-feat{display:flex;flex-direction:column;gap:12px;margin-top:26px}
.auth-hero .ah-fi{display:flex;align-items:center;gap:11px;font-size:var(--text-md);color:#D7DBF4}
.auth-hero .ah-fi .fi-ic{width:30px;height:30px;border-radius:8px;background:rgba(92,108,255,.18);border:1px solid rgba(92,108,255,.3);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.auth-hero .ah-fi svg{width:15px;height:15px;color:#B9C2FF}
.auth-hero .ah-foot{font-size:11px;color:#6A709A;z-index:2}
.auth-main{display:flex;align-items:center;justify-content:center;padding:40px 24px;overflow-y:auto}
.auth-card{width:100%;max-width:420px}
.auth-card .ac-h{font-family:var(--font-display);font-size:var(--text-2xl);font-weight:700;color:var(--text);letter-spacing:-.02em}
.auth-card .ac-sub{font-size:var(--text-md);color:var(--text-muted);margin-top:6px;margin-bottom:24px;line-height:1.5}
.auth-card .ac-mobile-brand{display:none;align-items:center;gap:10px;margin-bottom:22px}
.auth-card .ac-mobile-brand svg{width:32px;height:32px}
.auth-card .ac-mobile-brand .bn{font-family:var(--font-display);font-weight:700;font-size:1.2rem;color:var(--text)}
.auth-card .ac-mobile-brand .bn .os{color:var(--brand)}
.auth-foot{text-align:center;font-size:var(--text-sm);color:var(--text-muted);margin-top:22px}
.btn-block{width:100%;justify-content:center}
.divider-or{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--text-faint);font-size:var(--text-sm)}
.divider-or::before,.divider-or::after{content:"";flex:1;height:1px;background:var(--border)}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-hero{display:none}.auth-card .ac-mobile-brand{display:flex}}

/* password strength meter */
.pw-meter{display:flex;gap:5px;margin-top:8px}
.pw-seg{flex:1;height:5px;border-radius:99px;background:var(--surface-3)}
.pw-seg.on1{background:var(--red)}.pw-seg.on2{background:var(--amber)}.pw-seg.on3{background:var(--green)}
.pw-note{font-size:var(--text-xs);color:var(--text-muted);margin-top:6px}

/* biometric / passkey option tiles */
.method-tile{display:flex;align-items:center;gap:13px;padding:14px 16px;border:1.5px solid var(--border-strong);border-radius:var(--r-lg);cursor:pointer;transition:all var(--ease);background:var(--surface);width:100%;text-align:left;font-family:inherit;margin-bottom:12px}
.method-tile:hover{border-color:var(--brand);box-shadow:var(--shadow-sm)}
.method-tile .mt-ic{width:42px;height:42px;border-radius:11px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.method-tile .mt-ic svg{width:20px;height:20px}
.method-tile .mt-b{flex:1;min-width:0}
.method-tile .mt-t{font-size:var(--text-base);font-weight:600;color:var(--text)}
.method-tile .mt-d{font-size:var(--text-sm);color:var(--text-muted);margin-top:2px;line-height:1.4}
.method-tile .mt-ar{color:var(--text-faint);flex:0 0 auto}
.method-tile .mt-ar svg{width:18px;height:18px}

/* ---------- Mobile drawer ---------- */
.mobile-topbar{display:none}
.menu-btn{display:none}
.scrim{display:none}
@media(max-width:920px){
  .app{grid-template-columns:1fr;grid-template-rows:56px 1fr}
  .sidebar{position:fixed;top:0;left:0;bottom:0;width:262px;z-index:120;transform:translateX(-100%);transition:transform .28s cubic-bezier(.16,1,.3,1)}
  .sidebar.open{transform:none;box-shadow:0 0 60px rgba(0,0,0,.4)}
  .menu-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:var(--r-md);border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;flex:0 0 auto}
  .menu-btn svg{width:19px;height:19px}
  .topbar .global-search{max-width:none}
  .scrim.show{display:block;position:fixed;inset:0;background:rgba(10,14,42,.4);z-index:110;animation:ovIn .2s ease}
  /* BROKOS-59 — do NOT pad .main here: #view already provides the content
     padding and the topbar carries its own, so a .main pad double-padded every
     page on tablet/mobile (and wrongly inset the topbar). */
}
@media(max-width:560px){
  .global-search{display:none !important}
  .page-head{flex-direction:column;align-items:flex-start;gap:12px}
  .page-head-actions{width:100%}
  .two,.two-wide{grid-template-columns:1fr}
}
/* BROKOS-59 — two-column layouts (How to, policy / referral detail, etc.) must
   stack BEFORE the 300px-minimum second column forces the content wider than a
   narrow window or tablet and clips it on the right. Collapse to one column at
   900px. */
@media(max-width:900px){
  .two,.two-wide{grid-template-columns:1fr}
}

/* Override forms.css sticky actionbar — quote-detail uses it as a static CTA strip */
.actionbar{position:static !important;bottom:auto !important;margin:0 0 14px 0 !important;border-radius:12px !important;border:1px solid var(--card-border,#e8eaf6) !important;box-shadow:none !important;background:var(--surface-2,#f7f8ff) !important;padding:16px 20px !important}
.actionbar .ab-info b{font-size:22px !important;font-weight:700 !important;color:var(--text) !important;display:block !important}

/* detail two-column summary layout re-use guard */
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px}
@media(max-width:640px){.detail-grid{grid-template-columns:1fr}}
.dl-k{font-size:var(--text-xs);font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}
.dl-v{font-size:var(--text-base);color:var(--text);font-weight:500;margin-top:3px}

/* skeleton loading */
.skel{background:linear-gradient(90deg,var(--surface-3) 25%,var(--surface-2) 50%,var(--surface-3) 75%);background-size:200% 100%;animation:sk 1.3s ease-in-out infinite;border-radius:var(--r-md)}
@keyframes sk{0%{background-position:200% 0}100%{background-position:-200% 0}}
.skel-line{height:12px;margin-bottom:9px}
.skel-card{height:96px;margin-bottom:14px}

/* help / faq accordion */
.faq{border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden}
.faq-item{border-bottom:1px solid var(--divider)}
.faq-item:last-child{border-bottom:none}
.faq-q{display:flex;align-items:center;gap:12px;width:100%;padding:15px 18px;background:transparent;border:none;cursor:pointer;font-family:inherit;font-size:var(--text-base);font-weight:600;color:var(--text);text-align:left}
.faq-q:hover{background:var(--surface-3)}
.faq-q .fq-ar{margin-left:auto;color:var(--text-muted);transition:transform var(--ease);flex:0 0 auto}
.faq-q .fq-ar svg{width:17px;height:17px}
.faq-item.open .fq-ar{transform:rotate(180deg)}
.faq-a{padding:0 18px 16px 48px;font-size:var(--text-md);color:var(--text-2);line-height:1.6;display:none}
.faq-item.open .faq-a{display:block}

/* message thread */
.msg-thread{display:flex;flex-direction:column;gap:14px;padding:4px}
.msg{max-width:74%;padding:11px 14px;border-radius:var(--r-lg);font-size:var(--text-md);line-height:1.5}
.msg.them{align-self:flex-start;background:var(--surface-3);color:var(--text);border-bottom-left-radius:4px}
.msg.me{align-self:flex-end;background:var(--brand);color:#fff;border-bottom-right-radius:4px}
.msg-meta{font-size:var(--text-xs);color:var(--text-faint);margin-top:5px}
.msg.me .msg-meta{text-align:right}
.msg-composer{display:flex;gap:10px;align-items:flex-end;padding:14px;border-top:1px solid var(--border);background:var(--surface-2)}

/* comparison table for renewals */
.cmp{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:0;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden}
.cmp-cell{padding:13px 16px;border-bottom:1px solid var(--divider);font-size:var(--text-md)}
.cmp-cell.head{background:var(--surface-2);font-weight:700;color:var(--text);font-family:var(--font-display)}
.cmp-cell.label{color:var(--text-muted);font-weight:500;background:var(--surface-2)}
.cmp-cell.hl{background:var(--brand-soft)}
.cmp > .cmp-cell:nth-last-child(-n+3){border-bottom:none}
@media(max-width:640px){.cmp{grid-template-columns:1fr;font-size:var(--text-sm)}.cmp-cell.label{display:none}}

/* ============================================================
   BROKER — agency application wizard & tracking (portal-only)
   Uses canonical tokens; no new colours/fonts.
   ============================================================ */
.wiz-steps{display:flex;align-items:center;gap:6px;margin:6px 0 22px}
.wiz-step{display:flex;flex-direction:column;align-items:center;gap:6px;flex:0 0 auto}
.wiz-step .ws-dot{width:30px;height:30px;border-radius:var(--r-full);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;border:1.5px solid var(--border);background:var(--surface);color:var(--text-muted)}
.wiz-step .ws-dot svg{width:15px;height:15px}
.wiz-step.current .ws-dot{background:var(--brand);border-color:var(--brand);color:#fff}
.wiz-step.done .ws-dot{background:var(--green);border-color:var(--green);color:#fff}
.wiz-step .ws-l{font-size:11px;color:var(--text-muted);white-space:nowrap;max-width:70px;text-align:center;line-height:1.2}
.wiz-step.current .ws-l,.wiz-step.done .ws-l{color:var(--text-2);font-weight:500}
.ws-line{flex:1 1 auto;height:1.5px;background:var(--border);margin:0 2px;margin-bottom:20px}
.wiz-body{margin-bottom:18px}
.wiz-foot{display:flex;justify-content:space-between;gap:10px}
.wiz-foot .btn{flex:1}

.check-row{display:flex;align-items:flex-start;gap:10px;font-size:var(--text-sm);color:var(--text-2);line-height:1.5;padding:9px 0;cursor:pointer}
.check-row input{margin-top:2px;flex:0 0 auto}

.track-card{border:1px solid var(--border);border-radius:var(--r-lg);padding:16px 18px;background:var(--surface-2);display:flex;flex-direction:column;gap:2px;margin-top:18px}
.track-row{display:flex;align-items:flex-start;gap:12px;padding:9px 0;position:relative}
.track-row:not(:last-child)::before{content:"";position:absolute;left:14px;top:32px;bottom:-9px;width:1.5px;background:var(--border)}
.track-row .tr-dot{width:29px;height:29px;border-radius:var(--r-full);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;border:1.5px solid var(--border);background:var(--surface);color:var(--text-muted);flex:0 0 auto;z-index:1}
.track-row .tr-dot svg{width:15px;height:15px}
.track-row.done .tr-dot{background:var(--green);border-color:var(--green);color:#fff}
.track-row.current .tr-dot{background:var(--brand);border-color:var(--brand);color:#fff}
.track-row .tr-t{font-size:var(--text-sm);font-weight:600;color:var(--text)}
.track-row .tr-s{font-size:var(--text-xs);color:var(--text-muted);margin-top:1px}
.track-row.todo .tr-t{color:var(--text-muted)}

.submitted-ico{width:56px;height:56px;border-radius:var(--r-full);background:var(--green-soft);color:var(--green);display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.submitted-ico svg{width:30px;height:30px}

/* ---------- Ragado OS locked section (subscriber-only preview) ---------- */
.nav-label-os{display:flex;align-items:center;justify-content:space-between;gap:8px}
.nlo-tag{font-size:9px;font-weight:600;letter-spacing:.06em;text-transform:none;color:#8A91BE;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:99px;padding:2px 7px;letter-spacing:.02em}
.nav-item.nav-locked{width:100%;background:none;border:0;text-align:left;font-family:inherit;font-size:var(--text-md);font-weight:500;color:#7C82AC;cursor:pointer;opacity:.9}
.nav-item.nav-locked .nl-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-item.nav-locked svg{width:16px;height:16px;opacity:.6}
.nav-item.nav-locked:hover{background:rgba(255,255,255,.05);color:#C7CCEA}
.nav-item.nav-locked:hover svg{opacity:.85}
.sub-pill{margin-left:auto;flex:0 0 auto;font-size:9.5px;font-weight:600;letter-spacing:.02em;color:#B9C2FF;background:rgba(42,62,244,.22);border:1px solid rgba(90,110,255,.35);border-radius:99px;padding:2px 7px}

/* ---------- developer credit in sidebar footer ---------- */
.sb-dev{margin-top:8px;font-size:10.5px;line-height:1.45;color:#646B97}

/* ---------- statements date-range filter ---------- */
.filter-bar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:0 0 16px;margin-bottom:4px;border-bottom:1px solid var(--border)}
.filter-bar .fb-label{display:inline-flex;align-items:center;gap:6px;font-size:var(--text-sm);font-weight:600;color:var(--text-2);padding-bottom:8px}
.filter-bar .fb-label svg{color:var(--text-muted)}
.fb-field{display:flex;flex-direction:column;gap:4px}
.fb-field label{font-size:var(--text-xs);font-weight:600;color:var(--text-muted)}
.fb-field input[type=date]{font-family:inherit;font-size:var(--text-sm);color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md,10px);padding:7px 10px;min-width:150px;transition:border-color var(--ease),box-shadow var(--ease)}
.fb-field input[type=date]:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.filter-bar .btn-sm{margin-bottom:0}
.tbl-empty{padding:26px 8px;text-align:center;color:var(--text-muted);font-size:var(--text-sm)}

/* ---------- OS subscriber upsell modal ---------- */
.upsell-hero{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}
.upsell-lock{width:40px;height:40px;flex:0 0 auto;border-radius:11px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center}
.upsell-lock svg{width:20px;height:20px}
.upsell-list{list-style:none;margin:0 0 16px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}
.upsell-list li{display:flex;align-items:center;gap:8px;font-size:var(--text-sm);color:var(--text-2)}
.upsell-list li svg{color:var(--green);flex:0 0 auto}
@media(max-width:560px){.upsell-list{grid-template-columns:1fr}}
