  :root{
    /* SynQtube — pvapins-style: teal #1b9388 primary, cool light canvas,
       white sidebar, 14px radii, soft layered shadows */
    --accent:#1b9388; --accent-strong:#157f76; --accent-deep:#116b63;
    --accent-2:#2fa89c;
    --accent-soft:#eaf5f6; --accent-softer:#f3fafa;
    --accent-glow:rgba(27,147,136,.16);
    --accent-ink:#ffffff;
    --grad:linear-gradient(135deg,#1fa295 0%,#157f76 100%);
    --grad-deep:linear-gradient(135deg,#157f76 0%,#0f6b64 100%);
    --grad-glow:0 4px 12px -3px rgba(21,127,118,.32);

    --ink:#23262c; --ink-2:#384049; --muted:#5d6b7e; --faint:#90a1b9;

    --line:#e2e5e8; --line-2:#d3d9de;
    --bg:#eef5f9; --card:#ffffff; --surface-2:#f2f6f8;
    /* alias — some settings pages reference var(--bg2) for input fills; map it
       to the real surface token so those controls aren't left transparent. */
    --bg2:#f2f6f8;

    /* pvapins-style light sidebar: white rail, teal active states */
    --side:#ffffff; --side-2:#ffffff; --side-line:#e2e5e8;
    --side-text:#5d6b7e; --side-dim:#90a1b9;
    --side-ink:#23262c; --side-hover:#f2f6f8;

    --green:#0d9d55; --green-bg:#e4f7ec; --green-deep:#0a7b43;
    --amber:#c77700; --amber-bg:#fdf3d8; --amber-deep:#a35b00;
    --red:#de3a46; --red-bg:#fdeced; --red-deep:#b92d38;
    --blue:#2f7fd6; --blue-bg:#e9f1fb;
    --teal:#1b9388;

    --r:14px; --r-sm:10px;
    --shadow:0 1px 2px rgba(16,24,40,.05), 0 6px 16px rgba(16,24,40,.04);
    --shadow-md:0 0 0 1px rgba(16,24,40,.03), 0 2px 6px rgba(16,24,40,.06), 0 8px 20px rgba(16,24,40,.05);
    --shadow-lg:0 0 0 1px rgba(16,24,40,.03), 0 8px 20px -4px rgba(16,24,40,.09), 0 16px 34px rgba(16,24,40,.06);
    --shadow-lift:0 2px 8px rgba(16,24,40,.08), 0 16px 34px rgba(16,24,40,.06), 0 24px 48px -8px rgba(16,24,40,.1);
    --font:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    --fdisp:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  }

  /* ---- Dark theme — deep navy + muted steel ---- */
  html[data-theme="dark"]{
    color-scheme:dark;
    --accent:#25aa9e; --accent-strong:#2fc0b2; --accent-deep:#4ecdc0;
    --accent-2:#2fc0b2;
    --accent-soft:#12312e; --accent-softer:#0d2422;
    --accent-glow:rgba(37,170,158,.25);
    --accent-ink:#ffffff;
    --grad-glow:0 5px 16px -4px rgba(27,147,136,.4);

    --ink:#fafafa; --ink-2:#d4d4d8; --muted:#9f9fa9; --faint:#71717b;

    --line:rgba(255,255,255,.1); --line-2:rgba(255,255,255,.16);
    --bg:#09090b; --card:#18181b; --surface-2:#27272a;
    --bg2:#27272a;

    --side:#111113; --side-2:#111113; --side-line:rgba(255,255,255,.08);
    --side-text:#9f9fa9; --side-dim:#71717b;
    --side-ink:#fafafa; --side-hover:rgba(255,255,255,.06);

    --green:#54bf5c; --green-bg:#122a16; --green-deep:#7ad381;
    --amber:#fcbb00; --amber-bg:#2a2206; --amber-deep:#ffd236;
    --red:#ff6568; --red-bg:#2a1416; --red-deep:#ff8d8f;
    --blue:#5aa2ff; --blue-bg:#101f38;

    --shadow:0 1px 2px rgba(0,0,0,.4), 0 6px 16px rgba(0,0,0,.3);
    --shadow-md:0 0 0 1px rgba(255,255,255,.05), 0 2px 8px rgba(0,0,0,.5);
    --shadow-lg:0 0 0 1px rgba(255,255,255,.05), 0 10px 26px -4px rgba(0,0,0,.55);
    --shadow-lift:0 2px 8px rgba(0,0,0,.5), 0 16px 34px rgba(0,0,0,.4);
  }
  html[data-theme="dark"] .stab.active{background:var(--accent-strong)!important;border-color:var(--accent-strong)!important;color:#fff!important}
  html[data-theme="dark"] .prow-stop:hover{background:rgba(255,122,122,.14)}

  *{box-sizing:border-box;margin:0;padding:0}
  html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;scroll-behavior:smooth}
  body{font-family:var(--font);background:var(--bg);color:var(--ink);
    font-size:14px;line-height:1.6;letter-spacing:-.006em}
  a{color:var(--accent-deep);text-decoration:none;transition:color .15s}
  a:hover{color:var(--accent-strong)}
  h1,h2,h3{margin:0;font-weight:700;letter-spacing:-.02em}
  ::selection{background:var(--accent-soft);color:var(--ink)}

  /* ---- Accessibility ---- */
  :focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px;
    box-shadow:0 0 0 4px var(--accent-glow)}
  .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}
  .skip-link{position:absolute;top:-50px;left:16px;z-index:9999;
    background:var(--accent);color:var(--accent-ink);padding:10px 22px;
    border-radius:0 0 12px 12px;font-weight:700;font-size:13px;
    box-shadow:var(--shadow-md);transition:top .2s;text-decoration:none}
  .skip-link:focus{top:0}

  /* ---- Top navigation progress bar (instant feedback) ---- */
  #topbar{position:fixed;top:0;left:0;height:2.5px;width:0;z-index:99999;
    background:var(--accent);border-radius:0 2px 2px 0;opacity:0;pointer-events:none;
    transition:width .25s ease,opacity .35s ease}
  #topbar.go{opacity:1}

  /* ---- Layout ---- */
  .shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}

  /* ---- Sidebar — clean light rail, teal actives (pvapins style) ---- */
  .sidebar{background:var(--side);
    color:var(--side-text);
    position:sticky;top:0;height:100vh;padding:20px 14px;
    display:flex;flex-direction:column;align-items:stretch;gap:3px;
    border-right:1px solid var(--side-line);
    overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}
  .main{min-width:0;background:var(--bg)}
  .main-inner{max-width:1200px;margin:0 auto;padding:40px 40px 88px;
    animation:fadeUp .16s ease-out both}
  @keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

  .brand{display:flex;align-items:center;gap:11px;justify-content:flex-start;padding:4px 8px 22px;width:100%}
  .brand .mark{width:38px;height:38px;border-radius:11px;flex:none;
    background:var(--accent-soft);
    display:grid;place-items:center;color:var(--accent-deep);
    transition:transform .25s cubic-bezier(.16,1,.3,1)}
  .brand:hover .mark{transform:translateY(-1px)}
  .brand .mark svg{width:20px;height:20px}
  .brand-txt{display:flex;flex-direction:column;line-height:1.15;min-width:0}
  .brand-txt b{color:var(--side-ink);font-family:var(--fdisp);font-size:19px;font-weight:700;letter-spacing:-.02em}
  .brand-txt small{color:var(--side-dim);font-size:10.5px;font-weight:500;letter-spacing:.02em;margin-top:1px}

  .nav-label{display:none}
  .nav-item{display:flex;align-items:center;justify-content:flex-start;gap:12px;
    width:100%;height:42px;padding:0 13px;border-radius:11px;
    color:var(--side-text);font-weight:600;font-size:13.5px;transition:all .15s;position:relative}
  .nav-item:hover{background:var(--side-hover);color:var(--side-ink)}
  .nav-item.active{background:var(--accent-soft);
    color:var(--accent-deep);font-weight:600}
  .nav-item.active::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
    width:3px;height:18px;border-radius:0 3px 3px 0;background:var(--accent)}
  .nav-item .ico{width:19px;height:19px;flex:none;opacity:.8;transition:.15s}
  .nav-item.active .ico{opacity:1}

  /* Icons share the rail text colour; teal when active. */
  .nav-dash .ico,.nav-yt .ico,.nav-fb .ico,.nav-set .ico{color:var(--side-text)}
  .nav-item.active .ico{color:var(--accent)}
  .nav-txt{display:inline;white-space:nowrap}

  .nav-channels{display:flex;flex-direction:column;gap:1px}
  .nav-ch{display:flex;align-items:center;justify-content:center;
    width:48px;height:38px;border-radius:9px;color:var(--side-dim);transition:all .15s}
  .nav-ch:hover{background:var(--side-hover);color:var(--side-ink)}
  .nav-ch.active{background:var(--accent-soft);color:var(--accent-deep)}
  .nav-ch .dot{width:7px;height:7px;border-radius:50%;flex:none}
  .dot.on{background:#1a8a5c;box-shadow:0 0 6px rgba(26,138,92,.4)}
  .dot.off{background:#fb923c;box-shadow:0 0 6px rgba(251,146,60,.3)}
  .nav-ch span{display:none}

  .side-foot{margin-top:auto;display:flex;flex-direction:column;align-items:stretch;gap:6px;padding-top:14px;
    border-top:1px solid var(--side-line);margin-top:auto}
  .logout{display:flex;align-items:center;justify-content:flex-start;gap:12px;
    width:100%;height:42px;padding:0 13px;border-radius:11px;
    color:var(--side-dim);font-size:13.5px;font-weight:600;transition:all .15s;position:relative;margin-top:10px}
  .logout .lico{width:19px;height:19px;flex:none;display:grid;place-items:center}
  .logout .lico svg{width:18px;height:18px}
  .logout:hover{background:var(--red-bg);color:var(--red)}

  /* ---- Cards ---- */
  .card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);
    padding:26px;margin-bottom:16px;box-shadow:var(--shadow);transition:box-shadow .2s,border-color .2s}
  .card.tight{padding:16px 20px}

  .page-head{margin-bottom:32px}
  .page-head h1{font-family:var(--fdisp);font-size:33px;font-weight:600;letter-spacing:-.02em;line-height:1.15;color:var(--ink)}
  .page-head .sub{color:var(--muted);margin-top:9px;font-size:14.5px;max-width:62ch;line-height:1.65}
  .eyebrow{font-size:11px;font-weight:700;color:var(--faint);letter-spacing:.1em;text-transform:uppercase;margin-bottom:8px}
  h2{font-size:16px;font-weight:700;margin-bottom:2px;letter-spacing:-.01em}
  .sec-sub{font-size:13px;color:var(--muted);margin:0 0 16px;line-height:1.6}
  .muted{color:var(--muted)}
  .crumb{color:var(--muted);font-size:12.5px;font-weight:600;display:inline-flex;align-items:center;gap:4px;transition:.15s}
  .crumb:hover{color:var(--accent-deep)}

  /* ---- Page header — clean & to-the-point (koi bara gradient band nahi).
     Platform ka rang sirf chhote icon-badge mein jhalakta hai (--hero-grad). ---- */
  .set-hero{position:relative;margin-bottom:24px;padding:0;
    color:var(--ink);background:none;box-shadow:none;border-radius:0}
  .set-hero::before{display:none}
  .set-hero .h-row{display:flex;align-items:center;gap:14px}
  .set-hero .h-badge{width:44px;height:44px;border-radius:12px;flex:none;
    background:var(--accent-soft);display:grid;place-items:center}
  .set-hero .h-badge svg{width:23px;height:23px;color:var(--accent-deep)}
  .set-hero .h-eyebrow{font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
    color:var(--faint);margin-bottom:3px}
  .set-hero h1{font-family:var(--fdisp);font-size:24px;font-weight:700;color:var(--ink);
    line-height:1.15;letter-spacing:-.02em}
  .set-hero .h-sub{color:var(--muted);font-size:13px;margin-top:5px;
    max-width:74ch;line-height:1.6}
  .set-hero .h-pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
  .set-hero .h-pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;
    color:var(--ink-2);background:var(--surface-2);padding:4px 11px;border-radius:999px;
    box-shadow:inset 0 0 0 1px var(--line)}
  .set-hero .h-pill b{font-weight:800;color:var(--ink)}
  .set-hero .h-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;flex-shrink:0}
  /* Header action buttons — neutral card chips, sab pages par uniform */
  .set-hero .h-actions .btn,.set-hero .h-actions a.btn,.set-hero .h-actions button,.set-hero .h-actions a{
    background:var(--card)!important;color:var(--ink-2)!important;
    border:1px solid var(--line-2)!important;box-shadow:var(--shadow)!important;
    text-decoration:none;transition:background .16s,border-color .16s,transform .16s}
  .set-hero .h-actions .btn:hover,.set-hero .h-actions button:hover,.set-hero .h-actions a:hover{
    background:var(--surface-2)!important;border-color:var(--line-2)!important;transform:translateY(-1px)}
  .set-hero .h-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
  .set-hero .h-topline>div:first-child{min-width:0}
  @media(max-width:820px){
    .set-hero .h-badge{width:38px;height:38px;border-radius:10px}
    .set-hero .h-badge svg{width:20px;height:20px}
    .set-hero h1{font-size:20px}
  }

  /* ---- Elevated stat tile — shared look for settings estimate bands ---- */
  .set-tile{position:relative;overflow:hidden;background:var(--card);border:1px solid var(--line);
    border-radius:13px;padding:14px 16px 15px;min-width:0;box-shadow:var(--shadow);
    transition:transform .18s cubic-bezier(.16,1,.3,1),box-shadow .18s,border-color .18s}
  .set-tile::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
    background:var(--accent);opacity:.4;transition:opacity .18s}
  .set-tile:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:var(--line-2)}
  .set-tile:hover::before{opacity:1}
  .set-tile .l{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;
    color:var(--faint);margin-bottom:7px}
  .set-tile .v{font-size:21px;font-weight:800;color:var(--ink);letter-spacing:-.02em;
    line-height:1.12;white-space:nowrap;font-variant-numeric:tabular-nums}
  .set-tile .v small{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:0}
  .set-tile .s{font-size:11.5px;color:var(--muted);margin-top:5px;line-height:1.5}
  .set-tile .s b.good{color:var(--green)}
  .set-tile .s b.bad{color:var(--red)}

  /* ---- Segmented tabs — one clean, professional control used app-wide ----
     Covers every tab naming scheme in the app (.subtab-bar/.subtab,
     .itabs/.itab-btn, .subnav/.subnav-pill). Defined here ONCE so all pages
     match; page-level copies were removed. Hugs its tabs on desktop, and on a
     narrow screen the track caps at 100% and scrolls horizontally instead of
     wrapping into a broken second row. */
  .subtab-bar,.itabs,.subnav{display:inline-flex;gap:4px;background:var(--surface-2);
    padding:4px;border-radius:11px;margin-bottom:22px;max-width:100%;overflow-x:auto;
    scrollbar-width:none;-ms-overflow-style:none;vertical-align:top}
  .itabs{margin-bottom:16px;flex-wrap:nowrap}
  .subtab-bar::-webkit-scrollbar,.itabs::-webkit-scrollbar,.subnav::-webkit-scrollbar{display:none}
  .subtab,.itab-btn,.subnav-pill{appearance:none;border:none;background:none;cursor:pointer;
    font-family:inherit;font-size:13px;font-weight:600;color:var(--muted);
    padding:7px 15px;border-radius:8px;transition:color .15s,background .15s,box-shadow .15s;
    display:inline-flex;align-items:center;gap:7px;white-space:nowrap;flex:none;
    text-decoration:none;line-height:1.3}
  .subtab:hover,.itab-btn:hover,.subnav-pill:hover{color:var(--ink)}
  .subtab.active,.itab-btn.active,.subnav-pill.active{background:var(--card);
    color:var(--accent-deep);box-shadow:var(--shadow)}
  .subtab-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;
    border-radius:999px;font-size:10.5px;font-weight:700;background:var(--accent-soft);color:var(--accent-deep)}
  .subtab.active .subtab-count,.itab-btn.active .subtab-count{background:var(--accent);color:#fff}
  @media(max-width:820px){
    .subtab-bar,.itabs,.subnav{width:100%}
    .subtab,.itab-btn,.subnav-pill{padding:7px 13px;font-size:12.5px}
  }

  /* ---- Buttons — flat, subtle primary ---- */
  .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;
    background:var(--accent);
    color:var(--accent-ink);border:none;padding:9px 17px;border-radius:var(--r-sm);font-size:13px;cursor:pointer;
    font-weight:600;font-family:inherit;transition:all .16s cubic-bezier(.16,1,.3,1);letter-spacing:0;
    min-height:38px;box-shadow:0 1px 2px rgba(16,24,40,.1)}
  .btn:hover{background:var(--accent-strong);transform:translateY(-1px);box-shadow:0 3px 8px -2px rgba(16,24,40,.18)}
  .btn:active{transform:translateY(0);box-shadow:inset 0 1px 3px rgba(40,20,90,.3)}
  .btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none;transform:none}
  .btn.ghost{background:var(--accent-soft);color:var(--accent-deep);box-shadow:none}
  .btn.ghost:hover{background:var(--accent-soft);transform:none;box-shadow:none}
  .btn.neutral{background:var(--card);color:var(--ink-2);box-shadow:none;border:1px solid var(--line-2)}
  .btn.neutral:hover{background:var(--surface-2);transform:none}
  .btn.danger{background:var(--card);color:var(--red);border:1px solid #f0c8c8;box-shadow:none}
  .btn.danger:hover{background:var(--red-bg);border-color:#e6a8a8;transform:none}
  .btn.sm{padding:6px 13px;font-size:12.5px;border-radius:6px;min-height:34px}
  .btn.block{width:100%}
  .btn.ok{background:var(--green)!important;color:#fff!important;box-shadow:0 4px 12px -2px rgba(13,157,85,.4)!important}
  .bi{width:11px;height:11px;vertical-align:-1px;margin-right:4px;flex:none}

  /* ---- Forms ---- */
  label{display:block;font-size:12px;font-weight:600;margin:0 0 5px;color:var(--ink-2);letter-spacing:.01em}
  input,select,textarea{width:100%;padding:9px 12px;border:1px solid var(--line-2);border-radius:var(--r-sm);
    font-size:13.5px;font-family:inherit;background:var(--card);color:var(--ink);height:40px;transition:none}
  textarea{height:auto;min-height:62px;resize:vertical;line-height:1.55}
  input::placeholder,textarea::placeholder{color:var(--faint)}
  input:hover,select:hover,textarea:hover{border-color:var(--line-2)}
  input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow);background:var(--card)}
  input[type="checkbox"],input[type="radio"]{width:auto;height:auto;padding:0;border:0;box-shadow:none;transition:none;background:none;min-width:0}
  input[type="checkbox"]:focus,input[type="radio"]:focus{box-shadow:none;border-color:transparent}
  .hint{font-size:12px;color:var(--faint);margin-top:6px;line-height:1.55}
  .hint code,code{background:var(--surface-2);padding:2px 6px;border-radius:4px;font-size:11.5px;font-family:"SF Mono",ui-monospace,Consolas,monospace;color:var(--ink-2)}
  .field{margin-bottom:14px}
  .check{display:flex;align-items:flex-start;gap:10px;font-size:13px;font-weight:600;color:var(--ink-2);cursor:pointer;margin:0}
  .check input{width:auto;height:auto;margin-top:3px;accent-color:var(--accent);padding:0;border:0;box-shadow:none;transition:none}
  .check small{display:block;font-weight:400;color:var(--muted);font-size:12px;margin-top:2px;line-height:1.5}

  .grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
  .sect{padding:18px 0;border-top:1px solid var(--line)}
  .sect:first-of-type{border-top:none;padding-top:0}
  .sect-h{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);margin:0 0 14px}

  /* ---- Pills / Status ---- */
  .pill{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.01em}
  .pill .d{width:5px;height:5px;border-radius:50%;background:currentColor}
  .s-done{background:var(--green-bg);color:var(--green-deep)}
  .s-queued{background:var(--blue-bg);color:var(--blue)}
  .s-uploading{background:var(--amber-bg);color:var(--amber-deep)}
  .s-discovered{background:var(--surface-2);color:var(--muted)}
  .s-error{background:var(--red-bg);color:var(--red)}

  .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
  .ch-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px;box-shadow:var(--shadow);transition:all .2s}
  .ch-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:var(--line-2)}
  .ch-card h3{font-size:15px;font-weight:700}
  .ch-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:13px}
  .progress{height:6px;border-radius:6px;background:var(--surface-2);overflow:hidden;margin:4px 0 10px}
  .progress i{display:block;height:100%;background:var(--accent);border-radius:6px;transition:width .6s cubic-bezier(.16,1,.3,1)}
  .counts{display:flex;gap:16px;font-size:12px;color:var(--muted)}
  .counts b{display:block;font-size:17px;color:var(--ink);font-weight:700;line-height:1.1}
  .ch-actions{display:flex;gap:8px;margin-top:14px}

  /* ---- Video rows ---- */
  .vrow{border:1px solid var(--line);border-radius:var(--r-sm);padding:14px 16px;margin-bottom:10px;background:var(--card);transition:all .15s}
  .vrow:hover{border-color:var(--line-2);box-shadow:var(--shadow)}
  .vrow-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
  .vname{font-weight:600;font-size:13.5px;display:flex;align-items:center;gap:10px;min-width:0}
  .vname .fi{width:30px;height:30px;border-radius:8px;background:var(--accent-soft);display:grid;place-items:center;flex:none;color:var(--accent-deep)}
  .vname .txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .row{display:flex;gap:14px;flex-wrap:wrap}
  .row>div{flex:1;min-width:150px}

  /* ---- Banners ---- */
  .banner{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:12px;font-size:13px;font-weight:500;line-height:1.5}
  .banner.ok{background:var(--green-bg);color:var(--green-deep)}
  .banner.warn{background:var(--amber-bg);color:var(--amber-deep)}
  .banner.info{background:var(--accent-soft);color:var(--accent-deep)}
  .banner .ic{width:18px;height:18px;flex:none}
  .empty{text-align:center;padding:48px 20px;color:var(--muted)}
  .empty .big{width:52px;height:52px;border-radius:14px;background:var(--accent-soft);display:grid;place-items:center;margin:0 auto 14px;color:var(--accent-deep)}

  /* ---- Details / Accordions ---- */
  details summary{cursor:pointer;font-weight:600;color:var(--ink);list-style:none;display:flex;align-items:center;gap:8px;font-size:14px}
  details summary::-webkit-details-marker{display:none}
  details summary .chev{transition:transform .2s;color:var(--accent-deep)}
  details[open] summary .chev{transform:rotate(90deg)}

  /* ---- Toast ---- */
  .toast{position:fixed;top:20px;left:50%;transform:translateX(-50%) translateY(-12px);
    background:#23262c;color:#fff;padding:12px 22px;border-radius:12px;
    font-size:13px;font-weight:500;
    display:flex;align-items:center;gap:8px;z-index:9000;opacity:0;
    transition:all .32s cubic-bezier(.16,1,.3,1);
    box-shadow:0 8px 24px rgba(20,20,32,.2)}
  .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
  .toast .tk{width:20px;height:20px;border-radius:50%;background:#1a8a5c;
    display:grid;place-items:center;color:#fff;flex:none}

  /* ---- Theme toggle ---- */
  .theme-toggle{position:fixed;top:14px;right:16px;z-index:9500;width:38px;height:38px;
    border-radius:50%;border:1px solid var(--line-2);background:var(--card);color:var(--ink-2);
    display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow);transition:all .18s}
  .theme-toggle:hover{color:var(--accent-deep);border-color:var(--accent);transform:translateY(-1px);box-shadow:var(--shadow-md)}
  .theme-toggle svg{width:18px;height:18px}
  .theme-toggle .t-sun{display:none}
  html[data-theme="dark"] .theme-toggle .t-moon{display:none}
  html[data-theme="dark"] .theme-toggle .t-sun{display:block}

  /* ---- Mobile bottom nav ---- */
  .mob-nav{display:none}
  @media(max-width:820px){
    .mob-nav{
      display:flex;position:fixed;bottom:0;left:0;right:0;z-index:100;
      background:var(--card);border-top:1px solid var(--line);
      padding:4px 0 max(4px,env(safe-area-inset-bottom,0px));
      box-shadow:0 -4px 24px rgba(20,20,32,.08);
    }
    .mob-nav a{
      flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;
      color:#9a9aa6;font-size:9px;font-weight:700;letter-spacing:.05em;
      text-transform:uppercase;padding:8px 4px;transition:.15s;text-decoration:none;
    }
    .mob-nav a svg{width:22px;height:22px;opacity:.7;flex:none}
    .mob-nav a.active{color:var(--ink)}
    .mob-nav a.active svg{opacity:1}
  }

  /* ---- List toolbar (search + sort on big list pages) ---- */
  .list-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
  .list-tools .lt-search{flex:1;min-width:200px;max-width:340px;position:relative}
  .list-tools .lt-search input{padding-left:34px;height:38px;font-size:13px}
  .list-tools .lt-search svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);
    width:15px;height:15px;color:var(--faint);pointer-events:none}
  .list-tools select{width:auto;height:38px;font-size:12.5px;font-weight:600;color:var(--ink-2)}
  .lt-count{font-size:12px;color:var(--muted);font-weight:600;white-space:nowrap}

  /* ---- Mobile drawer (hamburger sidebar) ---- */
  .menu-btn{display:none}

  /* ---- Responsive ---- */
  @media(max-width:820px){
    .shell{display:block}
    /* Sidebar becomes an off-canvas drawer instead of disappearing entirely,
       so Grow/Drives/Schedule/History etc. stay reachable on phones. */
    .sidebar{position:fixed;top:0;left:0;bottom:0;height:100vh;width:264px;z-index:1200;
      transform:translateX(-105%);transition:transform .22s cubic-bezier(.16,1,.3,1);
      box-shadow:none}
    html.drawer-open .sidebar{transform:translateX(0);box-shadow:0 0 40px rgba(0,0,0,.35)}
    .drawer-overlay{position:fixed;inset:0;z-index:1100;background:rgba(0,10,20,.45);
      opacity:0;pointer-events:none;transition:opacity .2s}
    html.drawer-open .drawer-overlay{opacity:1;pointer-events:auto}
    .menu-btn{display:grid;place-items:center;position:fixed;top:12px;left:12px;z-index:1000;
      width:38px;height:38px;border-radius:10px;border:1px solid var(--line-2);
      background:var(--card);color:var(--ink-2);cursor:pointer;box-shadow:var(--shadow-md)}
    .menu-btn svg{width:19px;height:19px}
    .main-inner{padding:24px 18px max(88px,calc(72px + env(safe-area-inset-bottom,0px)))}
    .grid2{grid-template-columns:1fr}
    .page-head{margin-bottom:22px}
    .page-head h1{font-size:25px}
    /* Theme toggle: bottom-right, clear of page headings and the bottom nav */
    .theme-toggle{top:auto;bottom:max(76px,calc(64px + env(safe-area-inset-bottom,0px)));right:12px}
  }
