  /* ===================== PHYX DESIGN SYSTEM ===================== */
  :root{
    /* brand */
    --linen:#F5EDDC;
    --forest:#122E30;
    --forest-700:#0D2224;
    --forest-500:#1B444A;
    --aqua:#1FC7CF;
    --aqua-600:#0E9EA6;
    --aqua-100:#DFF7F6;
    --stone:#6B6466;
    --black:#0A0A0A;
    --white:#FFFFFF;

    /* neutral scale (derived from linen/stone) */
    --g-25:#FCFAF6;
    --g-50:#F8F5EE;
    --g-100:#F0EBE0;
    --g-200:#E4DDCE;
    --g-300:#D1C8B6;
    --border:#E6E0D2;
    --border-strong:#D4CBB8;
    --ink:#171615;
    --ink-soft:#43403C;
    --ink-muted:#7A756E;

    /* chart / status (validated categorical) */
    --c-emerald:#0E8F73;
    --c-aqua:#1FC7CF;
    --c-terracotta:#C15A2E;
    --c-indigo:#5B5FA6;
    --good:#12946E;
    --good-bg:#E7F5EF;
    --watch:#B8791E;
    --watch-bg:#FBF1DE;
    --attention:#C1432E;
    --attention-bg:#FBEAE6;

    --radius-sm:10px;
    --radius-md:16px;
    --radius-lg:22px;
    --radius-pill:999px;
    --shadow-sm:0 1px 2px rgba(18,46,48,.06), 0 1px 1px rgba(18,46,48,.04);
    --shadow-md:0 8px 24px -8px rgba(18,46,48,.16), 0 2px 8px -2px rgba(18,46,48,.08);
    --shadow-lg:0 24px 48px -16px rgba(18,46,48,.28);
    --sidebar-w:264px;
    --topbar-h:76px;
    --font-head:'Manrope',ui-sans-serif,system-ui,sans-serif;
    --font-body:'DM Sans',ui-sans-serif,system-ui,sans-serif;
  }

  *,*::before,*::after{box-sizing:border-box;}
  html,body{height:100%;}
  body{
    margin:0;
    font-family:var(--font-body);
    background:var(--g-50);
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
    letter-spacing:.005em;
  }
  h1,h2,h3,h4,h5{
    font-family:var(--font-head);
    color:var(--forest);
    margin:0 0 4px;
    letter-spacing:-0.01em;
    font-weight:700;
  }
  p{margin:0 0 10px; color:var(--ink-soft); line-height:1.55;}
  a{color:inherit;}
  button{font-family:inherit;}
  ::selection{background:var(--aqua); color:var(--forest);}

  .eyebrow{
    font-family:var(--font-head);
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.14em;
    color:var(--aqua-600);
    display:flex; align-items:center; gap:6px;
  }
  .muted{color:var(--ink-muted);}
  .stone{color:var(--stone);}

  /* ===================== SCROLLBAR ===================== */
  ::-webkit-scrollbar{width:9px; height:9px;}
  ::-webkit-scrollbar-track{background:transparent;}
  ::-webkit-scrollbar-thumb{background:var(--g-300); border-radius:99px;}
  ::-webkit-scrollbar-thumb:hover{background:var(--stone);}

  /* ===================== APP SHELL ===================== */
  .shell{display:flex; min-height:100vh;}

  /* ---- Sidebar ---- */
  .sidebar{
    width:var(--sidebar-w);
    flex:0 0 var(--sidebar-w);
    background:var(--forest);
    color:var(--linen);
    display:flex;
    flex-direction:column;
    position:sticky; top:0; height:100vh;
    z-index:40;
  }
  .sidebar-brand{
    display:flex; align-items:center; gap:10px;
    padding:26px 24px 18px;
  }
  .sidebar-brand svg{height:20px; width:auto;}
  .sidebar-brand .dot{width:5px;height:5px;border-radius:50%;background:var(--aqua);}
  .sidebar-scroll{flex:1; overflow-y:auto; padding:6px 14px 14px;}
  .nav-section-label{
    font-family:var(--font-head);
    font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.14em;
    color:rgba(245,237,220,.42);
    margin:20px 12px 8px;
  }
  .nav-section-label:first-child{margin-top:6px;}
  .navitem{
    display:flex; align-items:center; gap:12px;
    padding:10px 12px;
    border-radius:12px;
    color:rgba(245,237,220,.78);
    text-decoration:none;
    font-size:14px; font-weight:600;
    cursor:pointer;
    margin-bottom:2px;
    border:1px solid transparent;
    position:relative;
    transition:background .15s ease, color .15s ease;
    background:none;
    width:100%;
    text-align:left;
  }
  .navitem svg{width:18px; height:18px; flex:0 0 18px; opacity:.9;}
  .navitem:hover{background:rgba(245,237,220,.06); color:var(--linen);}
  .navitem.active{background:rgba(31,199,207,.14); color:#fff; border-color:rgba(31,199,207,.35);}
  .navitem.active svg{color:var(--aqua); opacity:1;}
  .navitem .nav-badge{
    margin-left:auto; font-size:10.5px; font-weight:700; background:var(--aqua); color:var(--forest);
    padding:2px 7px; border-radius:99px;
  }
  .sidebar-foot{
    padding:14px; border-top:1px solid rgba(245,237,220,.1);
  }
  .patient-chip{
    display:flex; align-items:center; gap:10px;
    padding:10px; border-radius:14px; background:rgba(245,237,220,.06);
    cursor:pointer;
  }
  .patient-chip:hover{background:rgba(245,237,220,.1);}
  .avatar{
    width:36px; height:36px; border-radius:50%; flex:0 0 36px;
    background:linear-gradient(135deg, var(--aqua), var(--c-indigo));
    display:flex; align-items:center; justify-content:center;
    font-family:var(--font-head); font-weight:700; color:#fff; font-size:14px;
  }
  .patient-chip .who{min-width:0;}
  .patient-chip .who .name{font-size:13.5px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .patient-chip .who .plan{font-size:11.5px; color:rgba(245,237,220,.55);}

  /* ---- Main / Topbar ---- */
  .main{flex:1; min-width:0; display:flex; flex-direction:column;}
  .topbar{
    height:var(--topbar-h);
    display:flex; align-items:center; justify-content:space-between;
    padding:0 32px;
    position:sticky; top:0; z-index:30;
    background:rgba(248,245,238,.86);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--border);
  }
  .topbar .greet .k{font-size:11px; text-transform:uppercase; letter-spacing:.12em; color:var(--ink-muted); font-weight:700;}
  .topbar .greet h1{font-size:21px; margin:0;}
  .topbar-actions{display:flex; align-items:center; gap:10px;}
  .icon-btn{
    width:40px; height:40px; border-radius:12px; border:1px solid var(--border);
    background:var(--white); display:flex; align-items:center; justify-content:center;
    cursor:pointer; position:relative; color:var(--forest);
  }
  .icon-btn svg{width:18px;height:18px;}
  .icon-btn:hover{border-color:var(--border-strong); background:var(--g-25);}
  .icon-btn .ping{
    position:absolute; top:8px; right:8px; width:7px; height:7px; border-radius:50%;
    background:var(--attention); border:1.5px solid var(--white);
  }
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    font-family:var(--font-head); font-weight:700; font-size:13.5px;
    border-radius:12px; border:1px solid transparent; cursor:pointer;
    padding:11px 18px; white-space:nowrap;
    transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
  }
  .btn svg{width:15px;height:15px;}
  .btn:active{transform:scale(.98);}
  .btn-primary{background:var(--forest); color:#fff;}
  .btn-primary:hover{background:var(--forest-500);}
  .btn-aqua{background:var(--aqua); color:var(--forest);}
  .btn-aqua:hover{box-shadow:0 6px 18px -6px rgba(31,199,207,.6);}
  .btn-ghost{background:transparent; border-color:var(--border-strong); color:var(--forest);}
  .btn-ghost:hover{background:var(--g-100);}
  .btn-sm{padding:8px 13px; font-size:12.5px; border-radius:10px;}
  .btn-block{width:100%;}
  .btn[disabled]{opacity:.45; cursor:not-allowed;}

  .view{padding:26px 32px 64px; max-width:1360px;}

  /* ===================== SHARED COMPONENTS ===================== */
  .grid{display:grid; gap:18px;}
  .g-2{grid-template-columns:repeat(2,1fr);}
  .g-3{grid-template-columns:repeat(3,1fr);}
  .g-4{grid-template-columns:repeat(4,1fr);}
  .g-12{grid-template-columns:repeat(12,1fr);}
  .span-4{grid-column:span 4;}
  .span-5{grid-column:span 5;}
  .span-6{grid-column:span 6;}
  .span-7{grid-column:span 7;}
  .span-8{grid-column:span 8;}
  .span-12{grid-column:span 12;}

  .card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:22px;
    box-shadow:var(--shadow-sm);
  }
  .card.pad-sm{padding:16px;}
  .card-dark{
    background:linear-gradient(155deg, var(--forest), var(--forest-700));
    color:var(--linen);
    border:1px solid var(--forest-700);
  }
  .card-dark h1,.card-dark h2,.card-dark h3{color:#fff;}
  .card-dark p{color:rgba(245,237,220,.72);}
  .card-linen{background:var(--linen); border-color:var(--g-200);}
  .card-header{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:16px;}
  .card-title{font-family:var(--font-head); font-weight:700; font-size:16px; color:var(--forest); margin:0;}
  .card-sub{font-size:12.5px; color:var(--ink-muted); margin-top:2px;}

  .section-head{display:flex; align-items:flex-end; justify-content:space-between; margin:34px 0 16px;}
  .section-head:first-child{margin-top:0;}
  .section-head h2{font-size:19px;}

  .pill{
    display:inline-flex; align-items:center; gap:6px;
    padding:4px 11px; border-radius:99px; font-size:11.5px; font-weight:700;
    font-family:var(--font-head);
  }
  .pill-good{background:var(--good-bg); color:var(--good);}
  .pill-watch{background:var(--watch-bg); color:var(--watch);}
  .pill-attn{background:var(--attention-bg); color:var(--attention);}
  .pill-aqua{background:var(--aqua-100); color:var(--aqua-600);}
  .pill-neutral{background:var(--g-100); color:var(--ink-soft);}
  .pill svg{width:11px;height:11px;}

  .tag{
    display:inline-flex; align-items:center; padding:3px 9px; border-radius:8px;
    background:var(--g-100); color:var(--ink-soft); font-size:11.5px; font-weight:600;
  }

  .divider{height:1px; background:var(--border); margin:16px 0; border:none;}

  .stat{padding:18px; border-radius:var(--radius-md); border:1px solid var(--border); background:var(--white);}
  .stat .v{font-family:var(--font-head); font-size:26px; font-weight:800; color:var(--forest);}
  .stat .l{font-size:12px; color:var(--ink-muted); font-weight:600; margin-top:2px;}
  .stat .delta{font-size:11.5px; font-weight:700; display:inline-flex; align-items:center; gap:3px; margin-top:6px;}
  .delta.up{color:var(--good);}
  .delta.down{color:var(--attention);}

  .progress-track{height:8px; border-radius:99px; background:var(--g-150,var(--g-200)); overflow:hidden;}
  .progress-fill{height:100%; border-radius:99px; background:var(--aqua);}

  .avatar-sm{width:30px;height:30px;border-radius:50%;flex:0 0 30px;display:flex;align-items:center;justify-content:center;font-family:var(--font-head);font-weight:700;font-size:12px;color:#fff;}

  table{width:100%; border-collapse:collapse; font-size:13.5px;}
  th{text-align:left; font-family:var(--font-head); font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-muted); font-weight:700; padding:0 12px 10px; border-bottom:1px solid var(--border);}
  td{padding:13px 12px; border-bottom:1px solid var(--g-100); vertical-align:middle;}
  tr:last-child td{border-bottom:none;}
  tbody tr:hover{background:var(--g-25);}

  .empty{text-align:center; padding:40px 20px; color:var(--ink-muted);}

  /* buttons for choice chips */
  .chip-select{
    display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:99px;
    border:1.5px solid var(--border-strong); background:var(--white); cursor:pointer; font-weight:600; font-size:13px;
    color:var(--ink-soft);
  }
  .chip-select.active{border-color:var(--forest); background:var(--forest); color:#fff;}
  .chip-select:hover:not(.active){border-color:var(--forest);}

  /* modal */
  .modal-backdrop{
    position:fixed; inset:0; background:rgba(10,15,15,.55); backdrop-filter:blur(2px);
    display:flex; align-items:center; justify-content:center; z-index:100; padding:20px;
  }
  .modal{
    background:#fff; border-radius:var(--radius-lg); max-width:560px; width:100%;
    max-height:88vh; overflow-y:auto; box-shadow:var(--shadow-lg); padding:26px;
    position:relative;
  }
  .modal.wide{max-width:820px;}
  .modal-close{position:absolute; top:18px; right:18px; width:32px; height:32px; border-radius:50%; border:1px solid var(--border); background:var(--g-25); display:flex; align-items:center; justify-content:center; cursor:pointer;}
  .modal-close svg{width:14px;height:14px;}
  .toast-wrap{position:fixed; bottom:24px; right:24px; z-index:200; display:flex; flex-direction:column; gap:10px;}
  .toast{
    background:var(--forest); color:#fff; padding:13px 18px; border-radius:14px; box-shadow:var(--shadow-lg);
    font-size:13.5px; font-weight:600; display:flex; align-items:center; gap:10px; min-width:240px;
    animation:toastIn .25s ease;
  }
  .toast svg{width:16px;height:16px; color:var(--aqua); flex:0 0 auto;}
  @keyframes toastIn{from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);}}

  input[type=text],input[type=email],input[type=tel],input[type=date],input[type=number],input[type=password],select,textarea{
    width:100%; padding:11px 13px; border-radius:11px; border:1.5px solid var(--border-strong);
    font-family:var(--font-body); font-size:13.5px; color:var(--ink); background:var(--white);
    outline:none;
  }
  input:focus,select:focus,textarea:focus{border-color:var(--aqua); box-shadow:0 0 0 3px var(--aqua-100);}
  label.field-label{display:block; font-size:12px; font-weight:700; color:var(--ink-soft); margin-bottom:6px; font-family:var(--font-head);}
  .field{margin-bottom:14px;}

  .fade-in{animation:fadeIn .35s ease;}
  @keyframes fadeIn{from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);}}

  @media (max-width: 980px){
    .sidebar{position:fixed; left:-280px; transition:left .2s ease; box-shadow:var(--shadow-lg); z-index:60;}
    .sidebar.open{left:0;}
    .sidebar.open::after{content:''; position:fixed; top:0; right:0; bottom:0; left:var(--sidebar-w); background:rgba(10,15,15,.35); z-index:-1;}
    .g-2,.g-3,.g-4{grid-template-columns:1fr;}
    .g-12 > [class*=span-]{grid-column:span 12;}
    .view{padding:18px 16px 60px;}
    .topbar{padding:0 16px;}
    #mobileNavBtn{display:flex !important;}
    .topbar .greet h1{font-size:17px;}
  }

  /* ===================== PROTOTYPE ADDITIONS ===================== */
  .brand-wordmark{height:22px; width:auto; max-width:100%; aspect-ratio:1131/213; object-fit:contain; display:block; flex:0 0 auto;}
  .sidebar-brand .brand-wordmark{height:22px;}
  .pill-neutral{background:var(--g-100); color:var(--ink-soft);}
  .pill-attn{background:var(--attention-bg); color:var(--attention);}
  .pill-forest{background:var(--forest); color:#fff;}
  .pill-live{background:var(--attention); color:#fff;}
  .pill-live::before{content:''; width:7px; height:7px; border-radius:50%; background:#fff; animation:pulse 1.2s infinite;}
  @keyframes pulse{0%,100%{opacity:1;} 50%{opacity:.3;}}

  /* full-screen auth / quiz canvas */
  .canvas{min-height:100vh; display:flex; flex-direction:column; background:var(--g-50);}
  .canvas-top{display:flex; align-items:center; justify-content:space-between; padding:22px 32px;}
  .canvas-body{flex:1; display:flex; align-items:flex-start; justify-content:center; padding:10px 20px 60px;}
  .auth-card{width:100%; max-width:440px; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:34px 32px; box-shadow:var(--shadow-md);}
  .auth-card h1{font-size:24px; margin:0 0 6px;}
  .auth-hero{background:linear-gradient(155deg, var(--forest), var(--forest-700)); color:var(--linen);}
  .auth-hero h1,.auth-hero h2{color:#fff;}
  .split{display:grid; grid-template-columns:1fr 1fr; min-height:100vh;}
  .split-left{background:var(--forest); color:var(--linen); padding:48px; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden;}
  .split-left h1,.split-left h2{color:#fff;}
  .split-left p{color:rgba(245,237,220,.72);}
  .split-right{display:flex; align-items:center; justify-content:center; padding:40px 24px; background:var(--g-50);}
  .glow{position:absolute; width:520px; height:520px; border-radius:50%; background:radial-gradient(circle, rgba(31,199,207,.35), transparent 65%); right:-160px; bottom:-200px; pointer-events:none;}
  @media (max-width: 900px){ .split{grid-template-columns:1fr;} .split-left{min-height:auto; padding:32px 24px;} }

  /* stepper */
  .stepper{display:flex; gap:6px; margin-bottom:22px;}
  .stepper .seg{flex:1; height:5px; border-radius:99px; background:var(--g-200);}
  .stepper .seg.done{background:var(--aqua);}
  .stepper .seg.now{background:var(--forest);}

  /* option cards (quiz) */
  .opt{display:flex; align-items:center; gap:14px; padding:15px 16px; border:1.5px solid var(--border-strong); border-radius:14px; background:#fff; cursor:pointer; text-align:left; width:100%; font-family:inherit; transition:border-color .15s, background .15s, transform .1s;}
  .opt:hover{border-color:var(--forest);}
  .opt.active{border-color:var(--forest); background:var(--forest); color:#fff;}
  .opt.active .muted{color:rgba(245,237,220,.7);}
  .opt .opt-ic{width:38px; height:38px; border-radius:10px; background:var(--aqua-100); color:var(--aqua-600); display:flex; align-items:center; justify-content:center; flex:0 0 38px;}
  .opt.active .opt-ic{background:rgba(255,255,255,.15); color:var(--aqua);}
  .opt .t{font-weight:700; font-size:14.5px;}
  .opt-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
  @media (max-width: 640px){ .opt-grid{grid-template-columns:1fr;} }
  .yn{display:flex; gap:10px;}
  .yn .opt{justify-content:center; font-weight:700;}

  /* info boxes */
  .info{display:flex; gap:12px; padding:14px 16px; border-radius:14px; font-size:13.5px; line-height:1.5; border:1px solid var(--border);}
  .info svg{flex:0 0 18px; width:18px; height:18px; margin-top:1px;}
  .info-good{background:var(--good-bg); border-color:transparent; color:var(--good);}
  .info-watch{background:var(--watch-bg); border-color:transparent; color:var(--watch);}
  .info-attn{background:var(--attention-bg); border-color:transparent; color:var(--attention);}
  .info-aqua{background:var(--aqua-100); border-color:transparent; color:var(--forest);}

  /* banners on dashboards */
  .banner{display:flex; align-items:center; gap:16px; padding:16px 20px; border-radius:var(--radius-md); border:1px solid var(--border); background:#fff;}
  .banner .b-ic{width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex:0 0 42px; background:var(--aqua-100); color:var(--aqua-600);}
  .banner.attn{border-color:transparent; background:var(--attention-bg);} .banner.attn .b-ic{background:#fff; color:var(--attention);}
  .banner.watch{border-color:transparent; background:var(--watch-bg);} .banner.watch .b-ic{background:#fff; color:var(--watch);}
  .banner.good{border-color:transparent; background:var(--good-bg);} .banner.good .b-ic{background:#fff; color:var(--good);}
  .banner.dark{border-color:transparent; background:var(--forest); color:#fff;} .banner.dark .b-ic{background:rgba(31,199,207,.18); color:var(--aqua);} .banner.dark .muted{color:rgba(245,237,220,.65);}
  .banner .b-t{font-weight:700; font-size:14px;} .banner .b-s{font-size:12.5px; margin-top:2px;}

  /* tabs */
  .tabs{display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:18px;}
  .tab{padding:10px 14px; font-weight:700; font-size:13px; color:var(--ink-muted); border:none; background:none; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; font-family:var(--font-head); display:inline-flex; gap:8px; align-items:center;}
  .tab.active{color:var(--forest); border-bottom-color:var(--forest);}
  .tab .count{background:var(--g-100); border-radius:99px; padding:1px 7px; font-size:11px;}

  /* list rows */
  .row{display:flex; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--border); border-radius:14px; background:#fff;}
  .row.clickable{cursor:pointer;} .row.clickable:hover{border-color:var(--border-strong); background:var(--g-25);}
  .row .r-main{flex:1; min-width:0;} .row .r-t{font-weight:700; font-size:13.5px; color:var(--forest);} .row .r-s{font-size:12px; color:var(--ink-muted); margin-top:2px;}
  .datebox{width:52px; text-align:center; flex:0 0 auto; background:var(--forest); color:#fff; border-radius:12px; padding:8px 4px;}
  .datebox .m{font-size:10px; font-weight:700; text-transform:uppercase; color:var(--aqua);} .datebox .d{font-family:var(--font-head); font-weight:800; font-size:18px;}
  .timebox{width:64px; flex:0 0 64px; font-family:var(--font-head); font-weight:800; color:var(--forest); font-size:14px;}

  /* journey steps */
  .journey{display:flex; align-items:center; gap:0; margin:6px 0 4px;}
  .journey .js{display:flex; flex-direction:column; align-items:center; flex:1; position:relative; font-size:11px; font-weight:700; color:var(--ink-muted); text-align:center;}
  .journey .js .dot{width:22px; height:22px; border-radius:50%; background:var(--g-200); display:flex; align-items:center; justify-content:center; margin-bottom:6px; color:#fff; font-size:11px;}
  .journey .js.done .dot{background:var(--good);} .journey .js.now .dot{background:var(--forest); box-shadow:0 0 0 4px var(--aqua-100);} .journey .js.now{color:var(--forest);}
  .journey .js:not(:last-child)::after{content:''; position:absolute; top:11px; left:50%; width:100%; height:2px; background:var(--g-200); z-index:-1;}
  .journey .js.done:not(:last-child)::after{background:var(--good);}

  /* sticky bars in the clinician app */
  .sticky-bar{position:sticky; top:var(--topbar-h); z-index:30; display:flex; align-items:center; gap:14px; padding:10px 32px; font-size:13px; font-weight:600;}
  .sticky-bar.live{background:var(--forest); color:#fff;}
  .sticky-bar.waiting{background:var(--watch-bg); color:var(--watch); border-bottom:1px solid rgba(184,121,30,.2);}
  .sticky-bar.open{background:var(--aqua-100); color:var(--forest);}
  .chip{display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:99px; background:#fff; border:1px solid var(--border); font-size:12px; font-weight:700; cursor:pointer;}
  .chip:hover{border-color:var(--forest);}

  /* note editor */
  .editor{min-height:220px; padding:16px; border:1.5px solid var(--border-strong); border-radius:14px; background:#fff; font-size:14px; line-height:1.6; outline:none;}
  .editor:focus{border-color:var(--aqua); box-shadow:0 0 0 3px var(--aqua-100);}
  .editor:empty::before{content:attr(data-placeholder); color:var(--ink-muted);}
  .editor p{margin:0 0 8px; color:var(--ink);}

  .kbd{font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:11px; background:var(--g-100); padding:2px 6px; border-radius:6px; color:var(--ink-soft);}
  .muted-sm{font-size:12px; color:var(--ink-muted);}
  .flex{display:flex; align-items:center; gap:10px;} .between{justify-content:space-between;} .wrap{flex-wrap:wrap;}
  .mt-0{margin-top:0;} .mt-1{margin-top:8px;} .mt-2{margin-top:16px;} .mt-3{margin-top:24px;} .mb-1{margin-bottom:8px;} .mb-2{margin-bottom:16px;}
  .skeleton{background:linear-gradient(90deg, var(--g-100) 25%, var(--g-50) 50%, var(--g-100) 75%); background-size:200% 100%; animation:shimmer 1.2s infinite; border-radius:10px; min-height:14px;}
  @keyframes shimmer{0%{background-position:200% 0;} 100%{background-position:-200% 0;}}
  .spinner{width:22px; height:22px; border-radius:50%; border:3px solid var(--g-200); border-top-color:var(--aqua); animation:spin .8s linear infinite; display:inline-block;}
  @keyframes spin{to{transform:rotate(360deg);}}
  .dev-badge{position:fixed; left:50%; transform:translateX(-50%); bottom:12px; z-index:300; background:rgba(18,46,48,.92); color:var(--linen); font-size:11px; font-weight:700; padding:6px 10px; border-radius:99px; display:flex; gap:8px; align-items:center; font-family:var(--font-head); letter-spacing:.04em; box-shadow:var(--shadow-md);}
  .dev-badge a{color:var(--aqua); text-decoration:none;}
  .card-dark .journey .js{color:rgba(245,237,220,.55);}
  .card-dark .journey .js.now{color:#fff;}
  .card-dark .journey .js.now .dot{background:var(--aqua); color:var(--forest); box-shadow:0 0 0 4px rgba(31,199,207,.25);}
  .card-dark .journey .js .dot{background:rgba(245,237,220,.18);}
  .card-dark .journey .js.done .dot{background:var(--good);}
  .card-dark .journey .js:not(:last-child)::after{background:rgba(245,237,220,.18);}
  .card-dark .journey .js.done:not(:last-child)::after{background:var(--good);}
