/* The roadmap page: the cloth, the ranked list, and the VS Code scenes. Plain CSS, straight from the reviewed mock. */
  .badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid transparent; vertical-align: middle; white-space: nowrap; }
  .badge.blue   { color: #9dbcff; background: rgba(53,116,240,.13); border-color: rgba(53,116,240,.38); }
  .badge.green  { color: #8fe6c8; background: rgba(78,201,160,.12); border-color: rgba(78,201,160,.35); }
  .badge.amber  { color: #f0d38a; background: rgba(226,185,61,.12); border-color: rgba(226,185,61,.35); }
  .badge.red    { color: #ffb0b7; background: rgba(242,109,120,.12); border-color: rgba(242,109,120,.35); }
  .badge.purple { color: #d4bcff; background: rgba(177,138,255,.12); border-color: rgba(177,138,255,.35); }
  .badge.gray   { color: var(--ink-dim); background: rgba(255,255,255,.05); border-color: var(--card-border); }

  .keys kbd + kbd { margin-left: 3px; }
  /* The cloth: red-and-cream gingham, as on the icon */
  :root { --red: #c94b4f; --red-deep: #a63a3e; --cream: #f3dfd4; --cream-dim: rgba(243,223,212,.55); }
  .stats { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 32px; margin: 18px 0 14px; }
  .stat-big { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: baseline; }
  .stat-n { font-size: 64px; font-weight: 800; letter-spacing: -.045em; line-height: .95; color: var(--cream); }
  .stat-of { font-size: 20px; color: var(--ink-dim); }
  .stat-lbl { grid-column: 1 / -1; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }
  .legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 22px; font-size: 13px; color: var(--ink-dim); }
  .legend b { color: var(--ink); font-family: var(--mono); font-weight: 600; margin-right: 2px; }
  .sw-l { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 8px; }
  .st-done { background: repeating-conic-gradient(var(--red) 0 25%, var(--cream) 0 50%) 0 0 / 8px 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
  .st-v1 { background: repeating-linear-gradient(135deg, var(--red) 0 2.5px, transparent 2.5px 6px); box-shadow: inset 0 0 0 1px rgba(201,75,79,.7); }
  .st-after { box-shadow: inset 0 0 0 1px rgba(243,223,212,.32); background-color: rgba(243,223,212,.06); background-image: radial-gradient(circle, rgba(243,223,212,.55) 1px, transparent 1.5px); background-size: 5px 5px; }
  .st-never { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); background-color: rgba(255,255,255,.025); }

  .cloth { border: 1px solid var(--card-border); border-radius: 14px; background:
      repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px),
      repeating-linear-gradient(-45deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px),
      #15151c; padding: 12px 14px 16px; margin: 0 0 14px; }
  .cloth-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
  .cloth-title { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
  .seg { display: inline-flex; border: 1px solid var(--card-border); border-radius: 999px; padding: 2px; background: #0e0e13; }
  .seg button { background: none; border: 0; color: var(--ink-dim); font: inherit; font-size: 12px; padding: 4px 12px; border-radius: 999px; cursor: pointer; }
  .seg button.on { background: var(--card-bg-2); color: var(--ink); box-shadow: 0 0 0 1px var(--card-border); }
  .cloth-body { position: relative; }
  .cloth-grid { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); gap: 3px; margin-right: 52px; }
  .cloth-areas .arow { display: grid; grid-template-columns: 148px minmax(0, 1fr) 52px; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid rgba(255,255,255,.05); }
  .cloth-areas .arow:first-child { border-top: 0; }
  .cloth-areas .alabel { font-size: 12px; color: var(--ink-dim); text-align: right; padding-right: 4px; }
  .cloth-areas .acount { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
  .cloth-areas .acells { display: flex; flex-wrap: wrap; gap: 3px; }
  .cloth-areas .acells .sq { width: 16px; height: 16px; flex: none; }
  .sq { position: relative; appearance: none; aspect-ratio: 1; width: 100%; padding: 0; margin: 0; border: 0; border-radius: 2px; background: transparent; cursor: pointer; transform-origin: center;
        animation: weave .4s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 3ms); }
  .sq.moving { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
  @keyframes weave { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
  .sq[data-stage="done"] { background: var(--red); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
  .sq[data-stage="done"].tb { background: var(--cream); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
  .sq[data-stage="v1"] { background: repeating-linear-gradient(135deg, var(--red) 0 2.5px, transparent 2.5px 6.5px); box-shadow: inset 0 0 0 1px rgba(201,75,79,.75); }
  .sq[data-stage="v1"].tb { background: repeating-linear-gradient(45deg, var(--red) 0 2.5px, transparent 2.5px 6.5px); }
  .sq[data-stage="after"] { box-shadow: inset 0 0 0 1px rgba(243,223,212,.32); background-color: rgba(243,223,212,.05); background-image: radial-gradient(circle, rgba(243,223,212,.55) 1px, transparent 1.5px); background-size: 5px 5px; }
  .sq[data-stage="after"].tb { background-color: rgba(243,223,212,.09); }
  .sq[data-stage="never"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); background-color: rgba(255,255,255,.025); }
  .sq:hover, .sq:focus-visible { outline: 2px solid var(--cream); outline-offset: 1px; z-index: 3; }
  .sq.next::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: #15151c; box-shadow: 0 0 0 1.5px var(--cream); }
  .seam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
  .seam .under { fill: none; stroke: #15151c; stroke-width: 6; stroke-linejoin: round; }
  .seam .over { fill: none; stroke: var(--cream); stroke-width: 2; stroke-dasharray: 6 4; stroke-linejoin: round; stroke-linecap: round; }
  .seam .tag { fill: var(--cream); }
  .seam .tagtext { font: 700 11px var(--mono); fill: #15151c; }
  .tip { position: absolute; z-index: 5; max-width: 320px; background: #0e0e13; border: 1px solid var(--card-border); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.45; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.45); pointer-events: none; }
  .tip .tn { font-family: var(--mono); color: var(--ink-faint); margin-right: 6px; }
  .tip .ts { display: block; margin-top: 3px; color: var(--ink-dim); }
  .tip .ts.done { color: #f0a9ab; }

  .v1box { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; align-items: start; border: 1px solid rgba(243,223,212,.25); background: linear-gradient(180deg, rgba(201,75,79,.10), rgba(201,75,79,.04)); border-radius: 12px; padding: 14px 16px; margin: 0 0 6px; font-size: 14px; }
  .v1box-ver { font-family: var(--mono); font-weight: 800; font-size: 26px; color: var(--cream); line-height: 1; padding-top: 2px; }
  .nextup { margin-top: 8px; font-size: 13px; color: var(--ink-dim); }
  .nextup span { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); background: var(--red); border-radius: 4px; padding: 2px 6px; margin-right: 8px; }

  .listbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 10px 0 12px; }
  .filters { display: flex; flex-wrap: wrap; gap: 6px; }
  .fbtn { background: none; border: 1px solid var(--card-border); color: var(--ink-dim); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12px; cursor: pointer; }
  .fbtn.on { border-color: var(--cream-dim); color: var(--cream); background: rgba(201,75,79,.12); }
  .asel { background: #0e0e13; color: var(--ink); border: 1px solid var(--card-border); border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 12px; }
  .plist { border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; background: var(--card-bg); }
  .tierhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; background: #20202a; border-top: 1px solid var(--card-border); position: sticky; top: 0; z-index: 1; }
  .tierhead:first-child { border-top: 0; }
  .tier-name { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; color: var(--cream); }
  .tier-sub { font-size: 12px; color: var(--ink-faint); margin-left: 8px; }
  .tier-prog { width: 220px; max-width: 45%; font-size: 11px; color: var(--ink-dim); }
  .tier-prog span { display: block; margin-bottom: 4px; text-align: right; }
  .segbar { display: flex; width: 100%; border-radius: 999px; overflow: hidden; background: #2a2a35; }
  .segbar span { display: block; height: 100%; }
  .segbar .s-done { background: repeating-linear-gradient(90deg, var(--red) 0 6px, var(--cream) 6px 12px); }
  .segbar .s-v1 { background: repeating-linear-gradient(135deg, var(--red) 0 2px, rgba(201,75,79,.25) 2px 5px); }
  .segbar .s-after { background: radial-gradient(circle, var(--cream-dim) 1px, transparent 1.4px) 0 0 / 5px 5px; }
  .segbar .s-never { background: #2a2a35; }
  .prow { display: grid; grid-template-columns: 34px 18px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 7px 14px; border-top: 1px solid #23232d; font-size: 13.5px; scroll-margin-top: 48px; }
  .prow:hover { background: rgba(255,255,255,.025); }
  .prow.flash { animation: flash 1.6s ease-out; }
  @keyframes flash { 0% { background: rgba(201,75,79,.35); } 100% { background: transparent; } }
  .prow .rank { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); text-align: right; }
  .sw { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; font-size: 11px; line-height: 1; }
  .sw.done { background: var(--red); color: var(--cream); }
  .sw.done::after { content: "✓"; font-weight: 700; }
  .sw.no::after { content: "×"; color: var(--ink-faint); }
  .prow .feat { min-width: 0; }
  .prow.never .feat, .prow.never .rank { color: var(--ink-faint); }
  .prow .tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
  .atag { font-size: 11px; color: var(--ink-faint); border: 1px solid var(--card-border); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
  .stage { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
  .stage.v1 { color: var(--cream); background: rgba(201,75,79,.35); }
  .stage.after { color: var(--cream-dim); background: rgba(243,223,212,.08); }
  .stage.never { color: var(--ink-faint); background: rgba(255,255,255,.05); }
  .stage.next { color: #15151c; background: var(--cream); }
  .seamrow { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; padding: 12px 14px; background: rgba(201,75,79,.08); border-top: 1px solid rgba(243,223,212,.25); border-bottom: 1px solid rgba(243,223,212,.25); }
  .stitch { height: 0; border-top: 2px dashed var(--cream); opacity: .8; }
  .seam-badge { font-family: var(--mono); font-weight: 800; font-size: 16px; color: #15151c; background: var(--cream); border-radius: 6px; padding: 2px 9px; }
  .seam-text { font-size: 12px; color: var(--cream); max-width: 520px; text-align: center; }
  .prow.hide, .tierhead.hide { display: none; }
  @media (max-width: 640px) {
    .prow { grid-template-columns: 28px 16px minmax(0,1fr); } .prow .tags { grid-column: 3; justify-content: flex-start; } .tier-prog { display: none; }
    .seamrow { grid-template-columns: 1fr; justify-items: center; } .stitch { display: none; }
    .cloth-areas .arow { grid-template-columns: 1fr; } .cloth-areas .alabel { text-align: left; }
  }
  @media (prefers-reduced-motion: reduce) { .sq { animation: none; } .sq.moving { transition: none; } .prow.flash { animation: none; } }

  /* expandable rows and the VS Code mock */
  .prow.expandable { cursor: pointer; }
  .prow.expandable:hover .feat { color: var(--cream); }
  .chev { width: 14px; height: 14px; display: inline-block; position: relative; }
  .chev::before { content: ""; position: absolute; left: 3px; top: 3px; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-dim); border-bottom: 1.5px solid var(--ink-dim); transform: rotate(45deg); transition: transform .25s; }
  .prow.open .chev::before { transform: rotate(-135deg); top: 5px; }
  .stage.demo { color: #15151c; background: var(--cream); }
  .pdetail { border-top: 1px solid #23232d; background: #14141a; padding: 18px 16px 20px 16px; animation: unfold .35s ease-out; }
  .pd-text { padding-left: 46px; }
  @keyframes unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .pd-text h4 { margin: 0 0 6px; font-size: 15px; }
  .pd-text p { font-size: 13.5px; color: var(--ink); max-width: 720px; }
  .pd-mock { overflow-x: auto; margin-top: 14px; }
  .vsc { min-width: 720px; width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid #333; background: #1f1f1f; box-shadow: 0 20px 50px rgba(0,0,0,.5); font: 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; color: #ccc; text-align: left; }
  .vsc svg { width: 16px; height: 16px; vertical-align: -3px; }
  .vsc-title { height: 30px; background: #181818; border-bottom: 1px solid #2b2b2b; display: flex; align-items: center; justify-content: center; position: relative; font-size: 12px; color: #9d9d9d; }
  .vsc-title .tl { position: absolute; left: 12px; top: 9px; display: flex; gap: 7px; }
  .vsc-title .tl i { width: 12px; height: 12px; border-radius: 50%; }
  .vsc-title .tl i:nth-child(1) { background: #ff5f57; } .vsc-title .tl i:nth-child(2) { background: #febc2e; } .vsc-title .tl i:nth-child(3) { background: #28c840; }
  .vsc-body { display: grid; grid-template-columns: 48px 236px minmax(0,1fr); height: 404px; }
  .vsc-act { background: #181818; border-right: 1px solid #2b2b2b; display: flex; flex-direction: column; align-items: center; padding: 6px 0; gap: 4px; color: #868686; }
  .vsc-act > span { width: 48px; height: 44px; display: grid; place-items: center; position: relative; }
  .vsc-act svg { width: 24px; height: 24px; }
  .vsc-act .on { color: #fff; }
  .vsc-act .on::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: #fff; }
  .vsc-act .bottom { margin-top: auto; }
  .vsc-side { background: #181818; border-right: 1px solid #2b2b2b; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
  .vsc-body > * { min-height: 0; }
  .side-head { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #ccc; padding: 10px 20px 8px; }
  .ij { flex: 1; background: #2b2d30; color: #dfe1e5; font-size: 13px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
  .ij-toolbar { display: flex; align-items: center; gap: 9px; padding: 4px 10px 6px; border-bottom: 1px solid #393b40; color: #9da0a8; }
  .ij .tbsep { width: 1px; height: 14px; background: #43454a; }
  .ij .tbtn { display: inline-flex; padding: 2px; border-radius: 4px; color: #9da0a8; }
  .ij .tbtn.active { color: #3574f0; }
  .ij .tbtn svg { width: 16px; height: 16px; }
  .ij .tbtn.ddl { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; border: 1px solid #55575c; border-radius: 3px; padding: 0 3px; height: 17px; line-height: 15px; }
  .ij-tree { padding: 4px 0 10px; }
  .trow { display: flex; align-items: center; gap: 6px; height: 23px; padding-left: calc(6px + var(--d) * 14px); padding-right: 8px; white-space: nowrap; overflow: hidden; color: #dfe1e5; }
  .trow.sel { background: #2e436e; color: #fff; }
  .trow.dim { color: #82858c; }
  .tchev { width: 14px; height: 14px; flex: none; color: #9da0a8; display: inline-flex; }
  .tchev svg { width: 12px; height: 12px; margin: auto; }
  .tchev.open { transform: rotate(90deg); } .tchev.none { visibility: hidden; }
  .envdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
  .vendor { width: 16px; height: 16px; flex: none; display: inline-flex; } .vendor svg { width: 15px; height: 15px; margin: auto; }
  .nicon { width: 15px; height: 15px; flex: none; display: inline-flex; } .nicon svg { width: 15px; height: 15px; }
  .nicon.lock { color: #9da0a8; }
  .nlabel { flex: none; }
  .nlabel mark { background: rgba(53,116,240,.4); color: inherit; border-radius: 2px; }
  .ncount { color: #82858c; font-size: 11px; flex: none; }
  .chip { font-size: 10.5px; color: #9da0a8; border: 1px solid #43454a; border-radius: 4px; padding: 0 5px; line-height: 15px; flex: none; }
  .nmeta { color: #82858c; font-size: 11.5px; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
  .trow.sel .nmeta { color: rgba(255,255,255,.72); }
  .ssearch { position: absolute; top: 34px; left: 8px; right: 8px; background: #1e1f22; border: 1px solid #3574f0; border-radius: 4px; padding: 3px 8px; font-size: 12px; display: flex; gap: 6px; align-items: center; color: #dfe1e5; }
  .ssearch svg { width: 13px; height: 13px; color: #9da0a8; } .ssearch em { margin-left: auto; font-style: normal; color: #82858c; font-size: 11px; }
  .fdrop { position: absolute; top: 32px; right: 8px; background: #2b2d30; border: 1px solid #43454a; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.5); padding: 4px 4px 8px; font-size: 12px; z-index: 4; min-width: 150px; }
  .fdrop .pt { padding: 4px 8px 6px; font-size: 11px; color: #9da0a8; }
  .fdrop .fchecks { flex-direction: column; gap: 5px; margin: 0; padding: 0 8px; }
  .vsc-ed { position: relative; display: flex; flex-direction: column; min-width: 0; }
  .ed-tabs { display: flex; background: #181818; border-bottom: 1px solid #2b2b2b; height: 35px; flex: none; }
  .etab { display: flex; align-items: center; gap: 6px; padding: 0 14px; color: #9d9d9d; border-right: 1px solid #2b2b2b; font-size: 12.5px; white-space: nowrap; }
  .etab.on { background: #1f1f1f; color: #fff; box-shadow: inset 0 1px 0 #0078d4; }
  .etab .mod { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
  .etag { font: 700 9px var(--mono); color: #6f9dff; border: 1px solid #3a4a6a; border-radius: 3px; padding: 0 4px; }
  .ed-bar { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-bottom: 1px solid #2b2b2b; background: #1f1f1f; flex: none; }
  .ebtn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; color: #ccc; font-size: 12px; white-space: nowrap; }
  .ebtn svg { width: 14px; height: 14px; }
  .ebtn kbd { font-size: 10px; background: rgba(255,255,255,.12); border: 0; padding: 0 4px; color: #fff; }
  .ebtn.primary { background: #3574f0; color: #fff; }
  .cbtn { display: inline-flex; color: #9d9d9d; padding: 2px; border-radius: 4px; } .cbtn svg { width: 16px; height: 16px; } .cbtn.run { color: #4ec9a0; } .cbtn.on { background: #37373d; color: #fff; }
  .ctx { font-size: 12px; color: #ccc; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; } .ctx svg { width: 12px; height: 12px; } .ctx.on { background: #37373d; }
  .ed-right { margin-left: auto; color: #9d9d9d; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; } .ed-right svg { width: 12px; height: 12px; }
  .vsc .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ec9a0; display: inline-block; }
  .vsc .sep { width: 1px; height: 12px; background: #3a3a3a; display: inline-block; margin: 0 2px; }
  .ed-code { font: 12.5px/20px var(--mono); padding: 6px 0; color: #bcbec4; flex: 1; min-height: 0; overflow: hidden; }
  .ln { display: grid; grid-template-columns: 44px 3px minmax(0,1fr); gap: 0 10px; align-items: center; height: 20px; white-space: nowrap; }
  .lno { text-align: right; color: #5c5c5c; padding-right: 4px; }
  .gut { height: 20px; }
  .ln.add .gut { background: #4ec9a0; } .ln.mod .gut { background: #3574f0; }
  .ln.cur .txt { box-shadow: inset 0 0 0 1px rgba(78,201,160,.55); border-radius: 2px; padding: 0 6px; margin-left: -6px; display: inline-block; min-width: 40%; }
  .kw { color: #cf8e6d; font-weight: 400; } .str { color: #6aab73; font-style: normal; } .cm { color: #7a7e85; text-decoration: none; } .ty { color: #c77dbb; font-style: normal; } .num { color: #2aacb8; }
  .sq { text-decoration: none; } .sq.warn { text-decoration: underline wavy #e2b93d; text-decoration-skip-ink: none; text-underline-offset: 3px; } .sq.err { text-decoration: underline wavy #f26d78; text-decoration-skip-ink: none; text-underline-offset: 3px; }
  .selx { background: #264f78; }
  .caret { display: inline-block; width: 1.5px; height: 15px; background: #fff; vertical-align: -3px; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .golink { color: #4daafc; text-decoration: underline; }
  .pop { position: absolute; background: #202020; border: 1px solid #454545; box-shadow: 0 6px 18px rgba(0,0,0,.55); font-size: 12.5px; z-index: 6; min-width: 240px; color: #ccc; border-radius: 4px; overflow: hidden; }
  .pi { padding: 4px 10px; display: flex; justify-content: space-between; gap: 14px; white-space: nowrap; align-items: center; }
  .pi.on { background: #04395e; color: #fff; } .pi em { color: #9d9d9d; font-style: normal; font-size: 11.5px; } .pi.on em { color: #cfe3ff; }
  .pt { padding: 5px 10px 4px; font-size: 11px; color: #9d9d9d; border-bottom: 1px solid #333; }
  .pf { padding: 4px 10px 5px; font-size: 11px; color: #9d9d9d; border-top: 1px solid #333; }
  .pf b { color: #fff; font-weight: 600; }
  .pop.input .finput { font-family: var(--mono); font-size: 13px; }
  .tip { position: absolute; background: #202020; border: 1px solid #454545; padding: 8px 10px; font-size: 12px; z-index: 6; border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.55); color: #ccc; line-height: 1.45; }
  .tip.warn .tip-body::before { content: "⚠ "; color: #e2b93d; } .tip.err .tip-body::before { content: "✖ "; color: #f26d78; }
  .tip .dim { color: #9d9d9d; }
  .tip-fixes { border-top: 1px solid #333; margin-top: 6px; padding-top: 6px; display: flex; flex-direction: column; gap: 2px; }
  .fix { display: flex; gap: 6px; align-items: center; color: #ccc; padding: 2px 10px; margin: 0 -10px; } .fix.on { background: #04395e; color: #fff; } .fix svg { width: 14px; height: 14px; color: #e2b93d; }
  .dlg { position: absolute; background: #2b2d30; border: 1px solid #43454a; border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.6); padding: 14px 16px 12px; color: #dfe1e5; z-index: 5; }
  .dlg-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
  .dlg-sub { font-size: 12px; color: #9da0a8; margin-bottom: 8px; }
  .dlg-ok { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #8fe6c8; margin-bottom: 8px; } .dlg-ok svg { width: 14px; height: 14px; }
  .dlg-script { background: #1e1f22; border: 1px solid #393b40; border-radius: 6px; padding: 8px 10px; font: 11px/16px var(--mono); color: #bcbec4; overflow-x: auto; }
  .sl { white-space: nowrap; }
  .dlg-script mark { background: rgba(78,201,160,.18); color: inherit; border-radius: 2px; padding: 0 2px; }
  .dlg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
  .dbtn { padding: 4px 12px; border-radius: 6px; border: 1px solid #4e5157; font-size: 12px; color: #dfe1e5; }
  .dbtn.primary { background: #3574f0; border-color: #3574f0; color: #fff; } .dbtn.danger { background: #c94b4f; border-color: #c94b4f; color: #fff; }
  .frow { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 8px; align-items: center; margin: 6px 0; font-size: 12px; }
  .flabel { color: #9da0a8; text-align: right; }
  .finput, .fsel, .farea { background: #1e1f22; border: 1px solid #43454a; border-radius: 5px; padding: 3px 8px; color: #dfe1e5; font-size: 12px; display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
  .farea { min-height: 44px; align-items: flex-start; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; display: block; }
  .fsel svg { width: 12px; height: 12px; }
  .fchecks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0; font-size: 12px; }
  .fcheck i { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1px solid #6c707e; border-radius: 3px; margin-right: 6px; vertical-align: -2px; background: #1e1f22; }
  .fcheck.on i { background: #3574f0; border-color: #3574f0; } .fcheck i svg { width: 10px; height: 10px; color: #fff; }
  .fradio i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #6c707e; display: inline-block; margin-right: 6px; vertical-align: -2px; background: #1e1f22; box-sizing: border-box; }
  .fradio.on i { border: 4px solid #3574f0; background: #fff; }
  .fprev { margin-top: 8px; } .fplabel { font-size: 11px; color: #9da0a8; margin-bottom: 4px; }
  .dtwrap { border: 1px solid #393b40; border-radius: 6px; overflow: hidden; margin: 6px 0; }
  .dt { width: 100%; border-collapse: collapse; font-size: 12px; }
  .dt th { background: #1e1f22; color: #9da0a8; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 11px; padding: 4px 8px; border-bottom: 1px solid #393b40; text-align: left; }
  .dt td { padding: 3px 8px; border-bottom: 1px solid #35373c; color: #dfe1e5; vertical-align: middle; } .dt tr:last-child td { border-bottom: 0; }
  .dt tr.new td { background: rgba(78,201,160,.12); } .dt td svg { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
  .dtabs { display: flex; gap: 2px; border-bottom: 1px solid #393b40; margin: 4px 0 8px; } .dtabs span { padding: 4px 10px; font-size: 12px; color: #9da0a8; } .dtabs span.on { color: #fff; box-shadow: inset 0 -2px 0 #3574f0; }
  .two { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; }
  .gfilter { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-bottom: 1px solid #2b2b2b; background: #1f1f1f; font-size: 11.5px; flex: none; }
  .glab { color: #9d9d9d; font-family: var(--mono); font-size: 10.5px; }
  .ginput { flex: 1; background: #1e1f22; border: 1px solid #3a3a3a; border-radius: 4px; padding: 2px 8px; min-height: 20px; font-family: var(--mono); font-size: 11.5px; color: #dfe1e5; }
  .gwrap { flex: 1; position: relative; overflow: hidden; font: 12px/1 var(--mono); min-height: 0; }
  .g { border-collapse: collapse; width: 100%; }
  .g th { background: #181818; color: #ccc; text-align: left; font-weight: 600; padding: 5px 8px; border-bottom: 1px solid #2b2b2b; border-right: 1px solid #2b2b2b; font-size: 12px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
  .g th em { font-style: normal; color: #7a7a7a; font-weight: 400; margin-left: 6px; font-size: 11px; }
  .g th .kk svg { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
  .g td { padding: 4px 8px; border-bottom: 1px solid #262626; border-right: 1px solid #262626; white-space: nowrap; color: #ccc; }
  .g td.rn, .g th.rn { color: #666; text-align: right; width: 30px; background: #181818; }
  .g tr.sel td { background: #04395e; color: #fff; }
  .g td.edit { background: rgba(53,116,240,.28); color: #fff; }
  .g tr.add td { background: rgba(78,201,160,.18); } .g tr.del td { text-decoration: line-through; color: #777; }
  .g td.nul { color: #666; font-style: italic; }
  .g td.editing { box-shadow: inset 0 0 0 1.5px #3574f0; background: #1e1f22; }
  .pager { position: absolute; right: 14px; bottom: 10px; background: #2b2d30; border: 1px solid #43454a; border-radius: 999px; padding: 3px 10px; font: 11.5px var(--mono); color: #dfe1e5; }
  .pager svg { width: 11px; height: 11px; vertical-align: -1px; }
  .gsplit { display: grid; grid-template-columns: minmax(0,1fr) 210px; flex: 1; min-height: 0; }
  .recview { border-left: 1px solid #2b2b2b; background: #1f1f1f; font-size: 12px; overflow: hidden; }
  .recview .rh { padding: 6px 10px; color: #9d9d9d; border-bottom: 1px solid #2b2b2b; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
  .rec { display: grid; grid-template-columns: 88px 1fr; gap: 6px 8px; padding: 8px 10px; font-family: var(--mono); font-size: 11.5px; }
  .rec b { color: #9d9d9d; font-weight: 500; text-align: right; } .rec span { color: #dfe1e5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tcpanel { border-top: 1px solid #2b2b2b; background: #181818; display: flex; flex-direction: column; margin-top: auto; flex: none; }
  .ptop { display: flex; gap: 18px; padding: 0 14px; height: 30px; align-items: center; font-size: 11px; letter-spacing: .04em; color: #9d9d9d; flex: none; }
  .pth.on { color: #fff; box-shadow: inset 0 -1px 0 #fff; padding: 8px 0; }
  .pbody { display: grid; grid-template-columns: 160px minmax(0,1fr); flex: 1; min-height: 0; }
  .ptree { background: #2b2d30; font-size: 12px; color: #dfe1e5; padding: 4px 0; }
  .prw { display: flex; align-items: center; gap: 6px; height: 22px; padding-left: 12px; } .prw.d1 { padding-left: 24px; } .prw.d2 { padding-left: 36px; } .prw.sel { background: #2e436e; } .prw svg { width: 14px; height: 14px; }
  .pmain { display: flex; flex-direction: column; min-width: 0; }
  .ptabs { display: flex; gap: 2px; padding: 4px 8px 0; border-bottom: 1px solid #393b40; background: #2b2d30; flex: none; }
  .ptab { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 12px; color: #9da0a8; } .ptab.on { color: #fff; box-shadow: inset 0 -2px 0 #3574f0; } .ptab svg { width: 12px; height: 12px; }
  .pcontent { flex: 1; overflow: hidden; background: #1f1f1f; position: relative; display: flex; flex-direction: column; }
  .pcontent .gwrap { flex: 1; }
  .ptool { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px; border-bottom: 1px solid #2b2b2b; flex: none; }
  .ptool .seg { display: inline-flex; border: 1px solid #3a3a3a; border-radius: 999px; padding: 2px; background: #181818; }
  .ptool .seg button { background: none; border: 0; color: #9d9d9d; font: inherit; font-size: 11px; padding: 2px 10px; border-radius: 999px; }
  .ptool .seg button.on { background: #37373d; color: #fff; }
  .ptool-r { font-size: 11px; color: #9d9d9d; }
  .plan { font-size: 12px; }
  .plh, .plr { display: grid; grid-template-columns: minmax(0,1fr) 60px 80px 110px; gap: 8px; align-items: center; padding: 3px 12px; border-bottom: 1px solid #262626; }
  .plh { color: #9d9d9d; font-size: 11px; background: #181818; }
  .plr { padding-left: calc(12px + var(--d) * 18px); white-space: nowrap; }
  .plop { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .plop svg { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; color: #9d9d9d; } .plop em { font-style: normal; color: #9d9d9d; margin-left: 8px; font-size: 11.5px; }
  .plc { font-family: var(--mono); font-size: 11.5px; text-align: right; }
  .heat { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #4ec9a0, #e2b93d, #f26d78); width: var(--w); }
  .diag { display: flex; flex-direction: column; align-items: center; padding: 8px 10px; gap: 14px; font-size: 11.5px; }
  .dnode { background: #2b2d30; border: 1px solid #43454a; border-radius: 8px; padding: 5px 12px; text-align: center; min-width: 150px; position: relative; }
  .dnode b { display: block; font-weight: 600; } .dnode em { font-style: normal; color: #9da0a8; font-family: var(--mono); font-size: 10.5px; }
  .dnode.hot { border-color: #f26d78; box-shadow: 0 0 0 2px rgba(242,109,120,.25); }
  .drow { display: flex; gap: 40px; position: relative; }
  .drow::before { content: ""; position: absolute; top: -16px; left: 25%; right: 25%; border-top: 1px solid #55575c; }
  .drow .dnode::before { content: ""; position: absolute; top: -16px; left: 50%; height: 16px; border-left: 1px solid #55575c; }
  .ulist { font-size: 12px; }
  .urow { display: grid; grid-template-columns: 190px 84px minmax(0,1fr); gap: 10px; padding: 4px 12px; border-bottom: 1px solid #262626; align-items: center; }
  .urow > span { display: inline-flex; align-items: center; gap: 6px; } .urow svg { width: 14px; height: 14px; }
  .urow em { font-style: normal; color: #9d9d9d; } .urow code { font-family: var(--mono); font-size: 11.5px; background: none; color: #bcbec4; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vsc-status { display: flex; align-items: center; gap: 14px; height: 24px; padding: 0 10px 0 0; background: #181818; border-top: 1px solid #2b2b2b; font-size: 11.5px; color: #9d9d9d; white-space: nowrap; overflow: hidden; }
  .vsc-status svg { width: 13px; height: 13px; }
  .vsc-status .sb-remote { background: #0078d4; color: #fff; height: 24px; display: inline-grid; place-items: center; padding: 0 8px; }
  .vsc-status .right { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }

