/* =====================================================================
   BUSINESS LENS by SS — shared design system (businesslens.vip)
   Every page links this one file so colours, fonts and sizes stay identical.

   COLOURS     Ground #f3f4f6 · Surface #ffffff · Surface-2 #eceef2
               Text #111317 · Muted #5d6370 · Lines #dde0e6
               Accent blue #1257d6 (soft #e3ecfc) · Dark tiles #0d1016
               Highlight on dark #8fb4ff · Positive #1f9d64 · Negative #d6453d
   FONTS       Headings: Urbanist 700/800 · Body: DM Sans 400–600 (16px)
               Labels & codes: JetBrains Mono 500 (12px, wide spacing)
   SIZES       Hero H1 36–60px · Section H2 30–44px · Card H3 19–32px
               Eyebrow 12px caps · Body 16px · Small 13–15px
   SHAPES      Big tiles 28px radius · Cards 20px · Pill buttons 999px
               Buttons 44px tall (38px small) · Page width 1240px
   Fonts link (put in every page <head>):
   https://fonts.googleapis.com/css2?family=Urbanist:wght@500;600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=JetBrains+Mono:wght@500&display=swap
   ===================================================================== */
/* Business Lens — Honor-style showroom: light ground, large rounded tiles, pill buttons */
:root{
  --bg:#f3f4f6; --surface:#ffffff; --surface-2:#eceef2;
  --fg:#111317; --muted:#5d6370; --line:#dde0e6;
  --accent:#1257d6; --accent-soft:#e3ecfc;
  --ink:#0d1016; --ink-fg:#f4f6fa; --ink-muted:#a5adbd; --ink-panel:#1a1f29; --ink-line:#2b3240;
  --good:#1f9d64; --bad:#d6453d; --logo-filter:none;
  --font-display:"Urbanist","Segoe UI",system-ui,sans-serif;
  --font-body:"DM Sans","Segoe UI",system-ui,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --r-lg:28px; --r-md:20px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0b0d11; --surface:#151921; --surface-2:#1c212b; --fg:#eef1f6; --muted:#9aa2b2; --line:#272d39;
  --accent:#5b95ff; --accent-soft:#17264a; --ink:#151a24; --ink-panel:#0e1219; --good:#3cc68a; --logo-filter:invert(1); color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#0b0d11; --surface:#151921; --surface-2:#1c212b; --fg:#eef1f6; --muted:#9aa2b2; --line:#272d39;
  --accent:#5b95ff; --accent-soft:#17264a; --ink:#151a24; --ink-panel:#0e1219; --good:#3cc68a; --logo-filter:invert(1); color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-body);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3{font-family:var(--font-display);line-height:1.1;margin:0;text-wrap:balance;letter-spacing:-.01em}
p{margin:0}
a{color:inherit}
img{max-width:100%}
[hidden]{display:none!important}
.wrap{max-width:1240px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:8px}

/* Header */
header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;gap:24px;height:68px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{display:block;filter:var(--logo-filter)}
.brand .sym{height:36px;width:auto}
.brand .word{display:flex;align-items:flex-end;gap:7px}
.brand .w1{height:20px;width:auto}
.brand .w2{height:19.6px;width:auto}
.brand .w3{height:13px;width:auto;margin-left:3px;opacity:.7}
.links{display:flex;gap:26px;margin-left:12px}
.links a{text-decoration:none;font-size:15px;font-weight:500;opacity:.82}
.links a:hover{opacity:1;color:var(--accent)}
.spacer{flex:1}
.acts{display:flex;gap:10px;align-items:center}
.pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 24px;border-radius:999px;font-weight:600;font-size:15px;text-decoration:none;border:1.5px solid transparent;cursor:pointer;font-family:var(--font-body);white-space:nowrap;transition:transform .15s,background .15s,color .15s}
.pill:hover{transform:translateY(-1px)}
.pill-dark{background:var(--fg);color:var(--bg)}
.pill-accent{background:var(--accent);color:#fff}
.pill-line{border-color:currentColor;background:transparent}
.pill-light{background:var(--ink-fg);color:var(--ink)}
.pill-sm{height:38px;padding:0 18px;font-size:14px}
.menu-btn{display:none;background:none;border:0;width:40px;height:40px;cursor:pointer;color:var(--fg);padding:0}
.menu-btn span{display:block;width:22px;height:2px;background:currentColor;margin:5px auto;border-radius:2px}
.mobile-menu{display:none}
@media (max-width:960px){.links{display:none}}
@media (max-width:640px){
  .acts .pill-line{display:none}
  .menu-btn{display:block}
  .brand .w3{display:none}
  .mobile-menu{position:fixed;top:68px;left:0;right:0;z-index:49;background:var(--surface);border-bottom:1px solid var(--line);padding:8px 16px 20px;flex-direction:column;box-shadow:0 20px 40px rgba(0,0,0,.08)}
  .mobile-menu.open{display:flex}
  .mobile-menu a{padding:12px 0;font-weight:500;text-decoration:none;border-bottom:1px solid var(--line)}
  .mobile-menu .pill{margin-top:14px;border-bottom:0}
}
@media (max-width:400px){.acts .pill-dark{display:none}}

/* Quick strip */
.strip{background:var(--surface);border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.strip::-webkit-scrollbar{display:none}
.strip ul{list-style:none;margin:0 auto;display:flex;gap:8px;padding-block:10px;white-space:nowrap}
.strip a{display:block;padding:7px 16px;border-radius:999px;text-decoration:none;font-size:14px;font-weight:500;background:var(--surface-2)}
.strip a:hover{background:var(--accent-soft);color:var(--accent)}

main{display:flex;flex-direction:column;gap:20px;padding-block:20px 0}
.tile{border-radius:var(--r-lg);overflow:hidden;position:relative}

/* Hero */
.hero{background:var(--ink);color:var(--ink-fg);display:grid;grid-template-columns:1fr 1.05fr;gap:44px;align-items:center;padding:68px 56px}
.hero > :not(.mark-bg){position:relative}
.mark-bg{position:absolute;left:-80px;bottom:-60px;height:90%;width:auto;filter:invert(1);opacity:.05;pointer-events:none}
.status{display:inline-flex;align-items:center;gap:10px;font-family:var(--font-mono);font-size:12px;letter-spacing:.12em;color:var(--ink-muted);border:1px solid var(--ink-line);border-radius:999px;padding:8px 14px}
.dot{width:8px;height:8px;border-radius:50%;background:#3cc68a;animation:pulse 2s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}
.hero h1{font-size:clamp(36px,4.6vw,60px);font-weight:800;margin-top:24px}
.hero h1 span{display:block;color:#8fb4ff}
.hero .lede{color:var(--ink-muted);font-size:18px;max-width:46ch;margin-top:20px}
.hero .ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.hero .ctas .pill-line{color:var(--ink-fg)}
.trust{display:flex;gap:34px;flex-wrap:wrap;margin-top:36px;padding-top:26px;border-top:1px solid var(--ink-line)}
.trust b{display:block;font-family:var(--font-display);font-size:26px;font-weight:800}
.trust span{font-size:13px;color:var(--ink-muted)}
.dash{background:var(--ink-panel);border:1px solid var(--ink-line);border-radius:22px;padding:18px;box-shadow:0 30px 80px -30px rgba(0,0,0,.6);min-width:0}
.dash svg{display:block;width:100%;height:auto}
.grow{transform-origin:bottom;transform-box:fill-box;animation:grow 1.2s cubic-bezier(.2,.8,.2,1) both}
@keyframes grow{from{transform:scaleY(0)}}
.draw{stroke-dasharray:700;stroke-dashoffset:700;animation:draw 2s .4s ease forwards}
@keyframes draw{to{stroke-dashoffset:0}}
@media (max-width:920px){.hero{grid-template-columns:1fr;padding:44px 24px}.mark-bg{height:60%}}

/* Dual tiles */
.duo{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.duo .tile{background:var(--surface);padding:44px 40px;display:flex;flex-direction:column;gap:14px;min-height:320px}
.duo h2{font-size:clamp(28px,3vw,38px);font-weight:700}
.duo p{color:var(--muted);max-width:46ch}
.chips{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.chip{font-family:var(--font-mono);font-size:12.5px;padding:8px 12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}
.chip.on{background:var(--accent-soft);color:var(--accent);border-color:transparent}
.arrow{color:var(--muted);font-size:18px}
.hub{font-family:var(--font-display);font-weight:700;padding:10px 16px;border-radius:14px;background:var(--fg);color:var(--bg)}
@media (max-width:820px){.duo{grid-template-columns:1fr}.duo .tile{padding:32px 24px;min-height:0}}

/* Section heads */
.sec{padding-block:44px 8px}
.sec-head{display:flex;align-items:end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.sec-head h2{font-size:clamp(30px,3.6vw,44px);font-weight:700;margin-top:8px}
.sec-head p{color:var(--muted);max-width:52ch;margin-top:10px}

/* Module tabs */
.tabs{display:flex;gap:6px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:22px;scrollbar-width:none}
.tab{appearance:none;border:0;background:none;font:600 16px var(--font-body);color:var(--muted);padding:12px 6px;margin-right:18px;cursor:pointer;position:relative;white-space:nowrap}
.tab[aria-selected="true"]{color:var(--fg)}
.tab[aria-selected="true"]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:3px;background:var(--accent)}
.panel{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}
.panel .tile{background:var(--surface);padding:40px}
.panel h3{font-size:32px;font-weight:700;margin-top:8px}
.tag{font-family:var(--font-mono);font-size:12px;color:var(--muted);letter-spacing:.06em}
.panel p{color:var(--muted);margin-top:14px;max-width:52ch}
.panel ul{margin:22px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.panel li{display:flex;gap:12px}
.panel li::before{content:"";flex:none;width:8px;height:8px;margin-top:9px;border-radius:50%;background:var(--accent)}
.panel .visual{background:var(--surface-2);display:grid;place-items:center;padding:28px;min-height:300px}
.panel .visual svg{width:100%;max-width:420px;height:auto}
@media (max-width:820px){.panel{grid-template-columns:1fr}.panel .tile{padding:28px 22px}.panel .visual{min-height:0}}

/* Access band (dark) */
.access{background:var(--ink);color:var(--ink-fg);display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center;padding:60px 56px}
.access .eyebrow{color:#8fb4ff}
.access h2{font-size:clamp(30px,3.6vw,46px);font-weight:800;margin-top:12px}
.access > div > p{color:var(--ink-muted);font-size:17px;margin-top:16px;max-width:46ch}
.access .ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.access .ctas .pill-line{color:var(--ink-fg)}
.flist{display:grid;gap:12px}
.fi{display:flex;gap:16px;padding:20px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid var(--ink-line)}
.fi .ic{flex:none;width:44px;height:44px;border-radius:14px;background:rgba(91,149,255,.16);color:#8fb4ff;display:grid;place-items:center}
.fi b{display:block;font-family:var(--font-display);font-size:18px}
.fi span{font-size:14px;color:var(--ink-muted)}
@media (max-width:920px){.access{grid-template-columns:1fr;padding:44px 24px}}

/* Steps */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;counter-reset:s}
.step{background:var(--surface);border-radius:var(--r-md);padding:28px 24px}
.step::before{counter-increment:s;content:"0" counter(s);display:block;font-family:var(--font-mono);font-size:13px;color:var(--accent);letter-spacing:.06em;margin-bottom:14px}
.step h3{font-size:21px;font-weight:700}
.step p{color:var(--muted);font-size:15px;margin-top:8px}
@media (max-width:960px){.steps{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.steps{grid-template-columns:1fr}}

/* Features */
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.feat{background:var(--surface);border-radius:var(--r-md);padding:30px 28px;display:flex;flex-direction:column;gap:10px}
.feat .ico{width:44px;height:44px;border-radius:14px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;margin-bottom:6px}
.feat h3{font-size:21px;font-weight:700}
.feat p{color:var(--muted);font-size:15px}
@media (max-width:960px){.features{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.features{grid-template-columns:1fr}}

/* About */
.about{background:var(--surface);display:grid;grid-template-columns:340px 1fr}
.portrait{background:linear-gradient(160deg,#1257d6 0%,#0b2f7a 100%);color:#fff;padding:40px;display:flex;flex-direction:column;justify-content:space-between;gap:28px;min-height:420px;position:relative;overflow:hidden}
.portrait .pm{position:absolute;right:-60px;bottom:-40px;height:70%;width:auto;filter:invert(1);opacity:.1;pointer-events:none}
.avatar{width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.14);border:2px solid rgba(255,255,255,.4);display:grid;place-items:center;font-family:var(--font-display);font-weight:800;font-size:48px;position:relative}
.portrait .name{font-family:var(--font-display);font-size:44px;font-weight:800;line-height:1}
.portrait .role{opacity:.86;margin-top:8px;font-weight:500}
.portrait .loc{font-family:var(--font-mono);font-size:12px;opacity:.75;margin-top:18px;letter-spacing:.06em}
.about-body{padding:48px;display:flex;flex-direction:column;gap:20px;min-width:0}
.about-body h2{font-size:clamp(28px,3.2vw,40px);font-weight:700}
.about-body p{color:var(--muted);max-width:62ch}
.case{border:1px solid var(--line);border-radius:var(--r-md);padding:22px 24px;background:var(--bg)}
.case .k{font-family:var(--font-mono);font-size:12px;color:var(--accent);letter-spacing:.06em}
.case h3{font-size:20px;margin-top:6px}
.case p{margin-top:8px;font-size:15px}
.skills{display:flex;flex-wrap:wrap;gap:8px}
.skills span{font-size:14px;font-weight:500;padding:8px 14px;border-radius:999px;background:var(--surface-2)}
@media (max-width:860px){.about{grid-template-columns:1fr}.portrait{min-height:0}.about-body{padding:30px 22px}}

/* Services */
.services{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.svc{background:var(--surface);border-radius:var(--r-md);padding:28px 24px}
.svc h3{font-size:19px;font-weight:700}
.svc p{color:var(--muted);font-size:15px;margin-top:8px}
@media (max-width:960px){.services{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.services{grid-template-columns:1fr}}

/* CTA */
.cta{background:var(--ink);color:var(--ink-fg);padding:60px 56px;display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap;margin-top:24px}
.cta > :not(.mark-bg){position:relative}
.cta .mark-bg{left:auto;right:-60px;bottom:auto;top:50%;transform:translateY(-50%);height:140%}
.cta h2{font-size:clamp(28px,3.6vw,46px);font-weight:800;max-width:18ch}
.cta p{color:var(--ink-muted);margin-top:12px;max-width:48ch}
.cta .ctas{display:flex;gap:12px;flex-wrap:wrap}
.cta .pill-line{color:var(--ink-fg)}
@media (max-width:700px){.cta{padding:40px 24px}}

/* Footer */
footer{margin-top:56px;background:var(--surface);border-top:1px solid var(--line);padding-block:48px 28px;font-size:14px}
.fcols{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:32px}
.fcols h4{font-family:var(--font-display);font-size:15px;margin:0 0 12px}
.fcols a{display:block;text-decoration:none;color:var(--muted);padding:4px 0}
.fcols a:hover{color:var(--accent)}
.fcols p{color:var(--muted);max-width:34ch;margin-top:14px}
.fbase{border-top:1px solid var(--line);margin-top:36px;padding-top:20px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:13px}
@media (max-width:760px){.fcols{grid-template-columns:1fr 1fr}.fcols > div:first-child{grid-column:1/-1}}

/* Reveal */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .8s cubic-bezier(.2,.8,.2,1),transform .8s cubic-bezier(.2,.8,.2,1)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){.reveal{opacity:1;transform:none}}

/* =====================================================================
   SHARED COMPONENTS for Login / Sign-up / Dashboard pages
   ===================================================================== */

/* Auth layout: dark brand tile + light form card, same as the landing hero */
.auth{min-height:calc(100vh - 68px);display:flex;align-items:center;padding-block:20px 40px}
.auth-grid{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:20px}
.auth-side{background:var(--ink);color:var(--ink-fg);padding:56px;display:flex;flex-direction:column;justify-content:space-between;gap:32px;min-height:560px}
.auth-side > :not(.mark-bg){position:relative}
.auth-side .eyebrow{color:#8fb4ff}
.auth-side h1{font-size:clamp(32px,3.8vw,48px);font-weight:800;margin-top:14px}
.auth-side h1 span{display:block;color:#8fb4ff}
.auth-side p{color:var(--ink-muted);max-width:40ch;margin-top:16px}
.auth-card{background:var(--surface);padding:56px;display:flex;flex-direction:column;justify-content:center}
.auth-card h2{font-size:clamp(28px,3vw,36px);font-weight:700;margin-top:8px}
.auth-card .sub{color:var(--muted);margin-top:8px}
.auth-switch{display:flex;background:var(--surface-2);border-radius:999px;padding:4px;margin-bottom:28px;width:max-content}
.auth-switch a,.auth-switch button{appearance:none;border:0;background:none;font:600 14px var(--font-body);color:var(--muted);padding:9px 20px;border-radius:999px;text-decoration:none;cursor:pointer}
.auth-switch [aria-selected="true"],.auth-switch .on{background:var(--surface);color:var(--fg);box-shadow:0 1px 3px rgba(0,0,0,.08)}
@media (max-width:860px){.auth-grid{grid-template-columns:1fr}.auth-side{min-height:0;padding:36px 24px}.auth-card{padding:36px 22px}}

/* Forms */
.form{display:flex;flex-direction:column;gap:18px;margin-top:28px}
.field{display:flex;flex-direction:column;gap:7px}
.field label{font-size:14px;font-weight:600}
.field .hint{font-size:13px;color:var(--muted)}
.input,.select,.textarea{width:100%;height:50px;padding:0 16px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);color:var(--fg);font:400 16px var(--font-body);transition:border-color .15s,box-shadow .15s}
.textarea{height:auto;min-height:110px;padding:12px 16px;resize:vertical}
.input::placeholder,.textarea::placeholder{color:var(--muted);opacity:.7}
.input:focus,.select:focus,.textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.input[aria-invalid="true"]{border-color:var(--bad)}
.field .err,.form > .err{font-size:13px;color:var(--bad);margin-top:-8px}
.field .err{margin-top:0}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px}
.check{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted);cursor:pointer}
.check input{width:18px;height:18px;accent-color:var(--accent)}
.link{color:var(--accent);font-weight:600;text-decoration:none}
.link:hover{text-decoration:underline}
.pill-block{width:100%;height:50px;font-size:16px}
.pill:disabled,.pill[aria-disabled="true"]{opacity:.5;cursor:not-allowed;transform:none}
.divider{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:13px}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}

/* Messages */
.alert{display:flex;gap:12px;padding:14px 16px;border-radius:14px;font-size:14px;border:1px solid transparent}
.alert-info{background:var(--accent-soft);color:var(--accent)}
.alert-ok{background:color-mix(in srgb,var(--good) 12%,transparent);color:var(--good)}
.alert-err{background:color-mix(in srgb,var(--bad) 12%,transparent);color:var(--bad)}

/* Badges & tables (dashboard file list) */
.badge{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:11.5px;letter-spacing:.04em;padding:5px 10px;border-radius:999px;background:var(--surface-2);color:var(--muted)}
.badge.on{background:var(--accent-soft);color:var(--accent)}
.badge.ok{background:color-mix(in srgb,var(--good) 14%,transparent);color:var(--good)}
.card{background:var(--surface);border-radius:var(--r-md);padding:28px}
.table-wrap{overflow-x:auto;border-radius:var(--r-md);background:var(--surface)}
.table{width:100%;border-collapse:collapse;font-size:15px}
.table th{text-align:left;font-family:var(--font-mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:500;padding:14px 20px;border-bottom:1px solid var(--line);white-space:nowrap}
.table td{padding:16px 20px;border-bottom:1px solid var(--line)}
.table tr:last-child td{border-bottom:0}
.table tr:hover td{background:var(--bg)}
.dropzone{border:2px dashed var(--line);border-radius:var(--r-md);background:var(--surface);padding:44px 24px;text-align:center;color:var(--muted);transition:border-color .15s,background .15s;cursor:pointer}
.dropzone:hover,.dropzone.over{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.dropzone b{display:block;font-family:var(--font-display);font-size:20px;color:var(--fg);margin-bottom:6px}

/* Auth page details */
.auth-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.auth-points li{padding:16px 18px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid var(--ink-line)}
.auth-points b{display:block;font-family:var(--font-display);font-size:17px}
.auth-points span{font-size:14px;color:var(--ink-muted)}
.switch-line{margin-top:22px;font-size:14px;color:var(--muted);text-align:center}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:520px){.field-row{grid-template-columns:1fr}}
.pw-wrap{position:relative}
.pw-wrap .input{padding-right:70px}
.pw-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:var(--surface-2);color:var(--fg);font:600 12.5px var(--font-body);padding:7px 11px;border-radius:999px;cursor:pointer}
.meter{display:flex;gap:4px;margin-top:2px}
.meter i{flex:1;height:4px;border-radius:4px;background:var(--line);transition:background .2s}
.meter[data-s="1"] i:nth-child(-n+1){background:var(--bad)}
.meter[data-s="2"] i:nth-child(-n+2){background:#e0a12b}
.meter[data-s="3"] i:nth-child(-n+3){background:var(--accent)}
.meter[data-s="4"] i{background:var(--good)}
.check.top{align-items:flex-start}
.check.top input{margin-top:2px;flex:none}
.done-ic{width:60px;height:60px;border-radius:50%;background:color-mix(in srgb,var(--good) 14%,transparent);color:var(--good);display:grid;place-items:center}
#doneView{display:flex;flex-direction:column}
#doneView[hidden]{display:none}
#doneView h2{margin-top:8px}
.spin{width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Signed-in app header (dashboard, admin) */
.app-nav{display:flex;gap:6px;margin-left:12px}
.app-nav a{text-decoration:none;font-size:15px;font-weight:500;padding:8px 14px;border-radius:999px;opacity:.82}
.app-nav a:hover{opacity:1;color:var(--accent)}
.app-nav a[aria-current="page"]{background:var(--surface-2);opacity:1}
.user-chip{display:flex;align-items:center;gap:10px}
.user-chip .av{width:38px;height:38px;border-radius:50%;background:linear-gradient(160deg,#1257d6,#0b2f7a);color:#fff;display:grid;place-items:center;font-family:var(--font-display);font-weight:800;font-size:14px}
.user-chip .who{line-height:1.2}
.user-chip .who b{display:block;font-size:14px}
.user-chip .who span{font-size:12px;color:var(--muted)}
@media (max-width:700px){.user-chip .who{display:none}.app-nav{margin-left:0}.app-nav a{padding:8px 10px;font-size:14px}}
@media (max-width:460px){.brand .word{display:none}}
.page-head{display:flex;align-items:end;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-block:36px 22px}
.page-head h1{font-size:clamp(30px,3.6vw,44px);font-weight:700;margin-top:8px}
.page-head p{color:var(--muted);margin-top:8px;max-width:60ch}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.stat{background:var(--surface);border-radius:var(--r-md);padding:24px}
.stat .tag{display:block}
.stat b{display:block;font-family:var(--font-display);font-size:34px;font-weight:800;margin-top:6px;line-height:1.1}
@media (max-width:860px){.stats{grid-template-columns:1fr 1fr}}
.actions-cell{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.empty{padding:40px 20px;text-align:center;color:var(--muted)}
.filter{display:flex;gap:6px;flex-wrap:wrap}
.filter button{appearance:none;border:1.5px solid var(--line);background:var(--surface);font:600 14px var(--font-body);color:var(--muted);padding:8px 16px;border-radius:999px;cursor:pointer}
.filter button[aria-pressed="true"]{background:var(--fg);border-color:var(--fg);color:var(--bg)}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:80;min-width:260px;max-width:calc(100% - 32px);box-shadow:0 20px 50px rgba(0,0,0,.15)}
@media (max-width:860px){.auth-card{order:-1}.auth-points{display:none}.auth-side{gap:0}}

/* Invite page: whose account */
.who-box{display:flex;flex-direction:column;gap:2px;padding:16px 18px;border-radius:16px;background:var(--surface-2)}
.who-box b{font-family:var(--font-display);font-size:19px}
.who-box span:last-child{color:var(--muted);font-size:14px}

/* Home page */
.muted{color:var(--muted)}
.small{font-size:13px}
.row-gap{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.home-files{background:rgba(255,255,255,.04);border:1px solid var(--ink-line);border-radius:22px;padding:22px 24px;min-width:0}
.home-files ul{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.home-files li{display:flex;flex-direction:column;gap:2px;padding-bottom:12px;border-bottom:1px solid var(--ink-line)}
.home-files li:last-child{border-bottom:0;padding-bottom:0}
.home-files li b{font-family:var(--font-display);font-size:16px}
.home-files li span{font-size:13px;color:var(--ink-muted);overflow-wrap:anywhere}
.home-files .muted{color:var(--ink-muted)}
.pill[aria-disabled="true"]{opacity:.45;pointer-events:none}
.team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.team-card{display:flex;flex-direction:column;gap:10px}
.team-card h3{font-size:24px;font-weight:700}
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0 0}
.facts div{background:var(--bg);border-radius:14px;padding:10px 12px}
.facts dt{font-family:var(--font-mono);font-size:11px;letter-spacing:.06em;color:var(--muted);text-transform:uppercase}
.facts dd{margin:2px 0 0;font-family:var(--font-display);font-size:24px;font-weight:800;font-variant-numeric:tabular-nums}
.acc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
@media (max-width:760px){.acc-grid{grid-template-columns:1fr}}
.acc-card{display:flex;flex-direction:column;gap:14px}
.chipset{display:flex;flex-wrap:wrap;gap:8px}
.chipset .badge{font-family:var(--font-body);font-size:13px;letter-spacing:0;padding:6px 12px}
.badge.off{background:transparent;border:1px dashed var(--line);color:var(--muted)}
.badge.off s{text-decoration-color:color-mix(in srgb,var(--muted) 50%,transparent)}

/* Team & access page */
.team-block{background:var(--surface);border-radius:var(--r-lg);overflow:hidden;scroll-margin-top:90px}
.team-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;padding:28px 28px 22px;border-bottom:1px solid var(--line)}
.team-top h2{font-size:clamp(24px,2.6vw,32px);font-weight:700;margin-top:6px}
.lead-row{display:flex;align-items:center;gap:14px;margin-top:14px;flex-wrap:wrap}
.lead-row .av{width:44px;height:44px;border-radius:50%;background:linear-gradient(160deg,#1257d6,#0b2f7a);color:#fff;display:grid;place-items:center;font-family:var(--font-display);font-weight:800}
.lead-row b{display:block}
.lead-row span{font-size:14px;color:var(--muted)}
.mini{display:flex;flex-wrap:wrap;gap:6px}
.table td .mini{max-width:340px}
.table .who b{display:block}
.table .who span{font-size:13px;color:var(--muted)}
.team-empty{padding:28px;color:var(--muted)}
.panel-shade{position:fixed;inset:0;z-index:70;background:color-mix(in srgb,#0d1016 45%,transparent);display:flex;justify-content:flex-end}
.panel-shade[hidden]{display:none}
.side-panel{width:min(620px,100%);height:100%;overflow-y:auto;background:var(--bg);padding:28px max(24px,env(safe-area-inset-right,0px)) calc(28px + env(safe-area-inset-bottom,0px)) 24px;display:flex;flex-direction:column;gap:20px;box-shadow:-30px 0 80px rgba(0,0,0,.2)}
.side-panel h2{font-size:30px;font-weight:700}
.side-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.close-x{appearance:none;border:0;background:var(--surface-2);width:40px;height:40px;border-radius:50%;font-size:18px;cursor:pointer;color:var(--fg);flex:none}
.side-panel .card{padding:22px}
.side-panel fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.side-panel legend{font-family:var(--font-display);font-weight:700;font-size:17px;margin-bottom:6px;display:flex;justify-content:space-between;width:100%}
.picks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (max-width:520px){.picks{grid-template-columns:1fr}}
.pick{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);cursor:pointer;font-size:14.5px}
.pick input{width:18px;height:18px;accent-color:var(--accent);flex:none}
.pick:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.pick.no{opacity:.45;cursor:not-allowed}
.link-btn{appearance:none;border:0;background:none;color:var(--accent);font:600 13px var(--font-body);cursor:pointer;padding:0}
.seg2{display:flex;background:var(--surface-2);border-radius:999px;padding:4px;gap:4px;width:max-content;max-width:100%;flex-wrap:wrap}
.seg2 label{position:relative;cursor:pointer}
.seg2 input{position:absolute;opacity:0;inset:0}
.seg2 span{display:block;padding:8px 18px;border-radius:999px;font-weight:600;font-size:14px;color:var(--muted)}
.seg2 input:checked + span{background:var(--surface);color:var(--fg);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.seg2 input:focus-visible + span{outline:2px solid var(--accent)}
.invite-box{display:flex;flex-direction:column;gap:12px}
.invite-box .input{font-family:var(--font-mono);font-size:13px}
.side-foot{display:flex;gap:10px;flex-wrap:wrap;position:sticky;bottom:-28px;background:var(--bg);padding-block:14px;margin-top:auto}
.home-hero{grid-template-columns:1.2fr .8fr}
@media (max-width:920px){.home-hero{grid-template-columns:1fr}}
.stack-20{display:flex;flex-direction:column;gap:20px}

/* Access editor: sub-tabs under a tab */
.tab-wsubs{grid-column:1/-1;display:flex;flex-direction:column;gap:8px}
.subpicks{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-left:28px;padding:12px;border-radius:14px;background:var(--surface-2)}
.subpicks[hidden]{display:none}
.subpicks .sub-head{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}
.subpicks .pick{padding:7px 10px;font-size:13.5px}
@media (max-width:520px){.subpicks{grid-template-columns:1fr;margin-left:12px}}
@media (max-width:700px){.chg-pw{display:none}}
