/* =====================================================================
   designed-to-scale pass: soft panels, chips, stepper, cards, floor art.
   Loaded after desk.css; overrides it where they overlap.
   ===================================================================== */
:root { --amber-tile: #fbe5bd; --sheen: #ffffff; --shade: #3c2814; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --amber-tile: #5a4b30; --sheen: #fff0dc; --shade: #000000; } }
:root[data-theme="dark"] { --amber-tile: #5a4b30; --sheen: #fff0dc; --shade: #000000; }

.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; border: 1.6px solid var(--ink); border-radius: 10px;
  background: var(--card); padding: 6px 14px; box-shadow: 0 2.5px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 3.5px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink); }
.btn .ic { width: 15px; height: 15px; }
.btn:disabled { box-shadow: none; transform: none; }
.panel { border: 1.5px solid var(--line-soft); box-shadow: none; border-radius: 16px; background: var(--sheet); }

/* header */
.crumb .sl { color: var(--muted-2); margin: 0 6px; }
.head h1 { font-size: 30px; letter-spacing: -.015em; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 12px; border: 1.5px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.badge .ic { width: 14px; height: 14px; }
.badge.rose { background: var(--amber-tile); }

/* lesson grid */
.lesson { grid-template-columns: minmax(0, 1fr) 370px; gap: 20px; }
.stage { background: var(--sheet); border: 1.5px solid var(--line-soft); border-radius: 16px; padding: 14px 16px 10px; box-shadow: none; }
.stage-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stage-top { flex-wrap: nowrap; }
.mchips { display: flex; gap: 7px; flex-wrap: wrap; min-width: 0; }
.mchip { background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: 4px 9px 5px; min-width: 0; }
.mchip .mk { font-size: 9px; letter-spacing: .04em; }
.mchip .mv { font-size: 15px; }
.ctl { display: flex; gap: 8px; flex: none; }
.mchip:first-child { border-left: 3px solid var(--green-3); }
.mchip.warn { border-left: 3px solid var(--rust); }
.mk { display: flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mk .ic { width: 12px; height: 12px; }
.mv { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mchip.warn .mv { color: var(--rust); }
.floor-wrap { position: relative; }
.floor { margin-top: 2px; }
.stage-card { position: absolute; top: 8px; right: 4px; width: 290px; background: var(--card); border: 1.6px solid var(--ink); border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink); padding: 11px 14px 10px; font-size: 12.5px; }
.sc-h { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding-bottom: 7px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.sc-h .ic { width: 14px; height: 14px; }
.stage-card table { width: 100%; border-collapse: collapse; }
.stage-card td { padding: 2px 6px; }
.stage-card td a { color: var(--ink); text-decoration: none; }
.stage-card td a:hover { text-decoration: underline; }
.stage-card .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage-card tr.tot td { background: var(--green-tile); font-weight: 700; }
.stage-card tr.tot td:first-child { border-radius: 5px 0 0 5px; }
.stage-card tr.tot td:last-child { border-radius: 0 5px 5px 0; }
.sc-empty { margin: 4px 6px; color: var(--muted); }
.sc-foot { color: var(--muted); font-size: 11px; margin: 6px 6px 0; }
.legend { gap: 6px 18px; }
.lg { border-width: 1.4px; }
.lg.pk { background: var(--amber); }
.lg.pk.ship { background: var(--green-3); }
.lg.pk.report { background: var(--violet-tile); }
.lg.gate { width: 18px; height: 0; border: 0; border-top: 2px dashed var(--rust); border-radius: 0; }

/* stepper ("in this lesson") */
.lineup { background: var(--sheet); border: 1.5px solid var(--line-soft); border-radius: 16px; padding: 12px 18px 10px; }
.lineup-h { color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.lineup-n { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.lineup .stepper { display: flex; padding: 6px 0 2px; overflow-x: auto; }
.lineup .step { flex: 1; min-width: 84px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: none; border: 0; padding: 2px 0; cursor: pointer; border-radius: 0; }
.lineup .step::before { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; border-top: 2px solid var(--line-strong); z-index: 0; }
.lineup .step:first-child::before { display: none; }
.lineup .step.past::before, .lineup .step.on::before { border-top-color: var(--ink); }
.lineup .step .ball { position: relative; z-index: 1; width: 28px; height: 28px; margin: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1.6px solid var(--ink); font-size: 12px; font-weight: 600; color: var(--ink); box-shadow: none; transform: none; }
.lineup .step.on .ball { background: var(--green-tile); color: var(--ink); box-shadow: 0 0 0 3px var(--sheet), 0 0 0 4.6px var(--ink); font-weight: 700; }
.lineup .step:hover .ball { transform: translateY(-1px); }
.lineup .step .lbl { font-size: 12px; color: var(--ink-2); }
.lineup .step.on .lbl { font-weight: 700; color: var(--ink); }
.lineup .step .cnt { font-size: 10px; color: var(--muted); font-weight: 500; }
.lineup button.step.on { border: 0; background: none; }

/* right column: step card + done-when card */
.excol { display: grid; gap: 16px; align-content: start; position: sticky; top: 0; }
.excard { background: var(--sheet); border: 1.5px solid var(--line-soft); border-radius: 16px; padding: 18px 20px 14px; }
#explain.excard { display: flex; flex-direction: column; min-height: 560px; }
.ex-body { flex: 1; }
.ex-top .k { font-weight: 700; letter-spacing: .08em; font-size: 12px; color: var(--ink); text-transform: uppercase; }
.tag { padding: 2px 10px; font-size: 10px; }
.tag.gate { background: var(--rose-tile); color: var(--rust); border-color: var(--rust); }
.tag.recap { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.excard h3 { font-size: 21px; margin: 4px 0 8px; }
.excard .does { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.co { display: flex; gap: 10px; border-radius: 10px; padding: 10px 12px; margin: 12px 0; font-size: 12.5px; line-height: 1.55; }
.co b { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.co-ic { flex: none; width: 28px; height: 28px; border-radius: 7px; border: 1.5px solid var(--ink); display: grid; place-items: center; background: var(--card); }
.co-ic .ic { width: 15px; height: 15px; }
.co.idea { background: var(--violet-tile); border: 1.5px solid var(--violet-line); }
.co.watch { background: var(--rose-tile); border: 1.5px solid var(--rust); }
.co.watch .co-ic { color: var(--rust); border-color: var(--rust); }
.coming { display: flex; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 14px; background: var(--card); font-size: 12.5px; line-height: 1.55; }
.coming b { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.ex-nav { display: flex; gap: 10px; margin-top: 16px; }
.ex-nav .btn { padding: 9px 14px; }
.ex-nav .btn.go { flex: 1; justify-content: space-between; background: var(--green-tile); font-weight: 700; text-align: left; }
.keys { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: var(--muted); margin-top: 9px; text-align: center; }
.keys .ic { width: 15px; height: 15px; }
kbd { font: inherit; font-size: 10.5px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; background: var(--card); }
.dotsep::before { content: "."; margin: 0 2px; }
.ex-h.big { font-size: 12px; color: var(--ink); font-weight: 700; margin-top: 0; }
.learn-card ul.learn li { gap: 10px; align-items: flex-start; }
.learn-card ul.learn li::before { display: none; }
.ic.cb { width: 17px; height: 17px; padding: 1.5px; border: 1.5px solid #2f8a43; border-radius: 4px; background: var(--green-tile); stroke: #2f8a43; stroke-width: 3; }

/* sidebar tree */
.side { display: flex; flex-direction: column; padding: 18px 14px 14px; }
.tree { flex: 1; }
.tree-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: 0; text-transform: none; margin: 2px 6px 12px; }
.tree-h .ic.solid { fill: var(--ink); stroke: var(--ink); stroke-width: 1; }
.tree-h .c { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.node.top { font-size: 14px; font-weight: 500; padding: 5px 6px; }
.node .chev { width: 14px; height: 14px; color: var(--muted); }
.fold .ic { width: 18px; height: 18px; }
.fold.f-green .ic { fill: var(--green-3); stroke: var(--ink); stroke-width: 1.2; }
.kids { margin: 2px 0 0 20px; padding-left: 8px; border-left: 1.5px solid var(--line); display: grid; gap: 2px; grid-template-columns: minmax(0, 1fr); }
.kids > .node, .tree > .node { width: 100%; min-width: 0; }
.node .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node .c { flex: none; }
.node.child { padding: 4px 8px; font-size: 13px; }
.node.child .ic { width: 15px; height: 15px; color: var(--muted-2); }
.node.child .ic.ok { color: #2f8a43; }
.node.child .ic.run { color: var(--rust); }
.node.on { background: var(--green-tile); border: 1.5px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.progress { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px 6px; align-items: center; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); padding: 12px 14px; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.progress .pv { display: inline-flex; align-items: center; gap: 4px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.progress .pv .ic { width: 13px; height: 13px; color: var(--muted); }
.progress .bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--green-3); }

/* ---------- the floor art ---------- */
svg.iso { width: 100%; height: 520px; max-height: none; overflow: visible; }
.iso .grid line { stroke: var(--line); stroke-width: .8; opacity: .95; }
.iso .b-shadow { fill: var(--drop); opacity: .09; filter: url(#iso-blur); }
.iso .b-left { fill: var(--sheen); opacity: .10; }
.iso .b-right { fill: var(--shade); opacity: .11; }
.iso .b-top { fill: var(--sheen); opacity: .45; }
.iso .b-sheen, .iso .c-shade { fill: url(#iso-sheen); }
.iso .sheen-a { stop-color: var(--sheen); stop-opacity: .38; }
.iso .sheen-b { stop-color: var(--sheen); stop-opacity: 0; }
.iso .b-inner { fill: none; stroke: var(--sheen); stroke-opacity: .8; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.iso .b-outline { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }
.iso .k-idle .b-outline { stroke-dasharray: 7 6; stroke-width: 2; }
.iso .b-ic { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.iso .n-name { font-family: var(--font); font-size: 14px; font-weight: 700; fill: var(--ink); }
.iso .n-sub { font-family: var(--font); font-size: 11.5px; fill: var(--ink-2); }
.iso .blk { cursor: pointer; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), opacity .3s ease; }
.iso .blk.k-user, .iso .blk.k-live, .iso .blk.k-store { cursor: default; }
.iso .blk.on { transform: translateY(-7px); }
.iso.walking .blk:not(.on) { opacity: 1; }
.iso.walking .blk.dim { opacity: .45; }
.iso .wire { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.iso .wire.gate { stroke: var(--rust); stroke-dasharray: 6 6; opacity: .7; }
.iso .wire.ship, .iso .wire.report { stroke: var(--muted-2); stroke-dasharray: 5 6; }
.iso .wire.lit { stroke-width: 2.8; opacity: 1; }
.iso .arrow-head { fill: var(--ink); }
.iso .arrow-head.rust { fill: var(--rust); }
.iso .arrow-head.soft { fill: var(--muted-2); }
.iso .pill-bg { fill: var(--card); stroke: var(--ink); stroke-width: 1.6; }
.iso .pill-shadow { fill: var(--ink); }
.iso .pill-t { font-family: var(--font); font-size: 13px; font-weight: 500; fill: var(--ink); }
.iso .pill .b-ic { stroke-width: 2.3; }
.iso .pill.count .pill-bg { fill: var(--green-tile); }
.iso .pill.soft .pill-bg { fill: var(--paper-2); stroke: var(--line-strong); }
.iso .pill.soft .pill-shadow { display: none; }
.iso .pill.soft .pill-t { fill: var(--muted); }
.iso .pill.job .pill-bg { fill: var(--green-tile); }
.iso .pill.job .pill-bg { stroke: var(--ink); }
.iso .pill.job .pill-t { font-weight: 700; fill: var(--ink); }
.iso .pill.gate .pill-bg { fill: var(--rose-tile); stroke: var(--rust); }
.iso .pill.gate .pill-shadow { fill: var(--rust); }
.iso .pill.gate .pill-t { fill: var(--rust); font-weight: 700; font-size: 12px; }
.iso .pill.who .pill-t { font-weight: 600; }
.iso .pill.job { animation: pillpop .45s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: center; }
@keyframes pillpop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.iso .pk { fill: var(--amber); stroke: var(--ink); stroke-width: 1.6; }
.iso .pk.ship { fill: var(--green-3); }
.iso .pk.report { fill: var(--violet-tile); }
.iso .pk.walk.gate { fill: var(--rust); }
.iso .pk-ring { fill: none; stroke: var(--amber); stroke-width: 2; }
.iso .pk-ring.gate { stroke: var(--rust); }
.iso .pk-ring.ship { stroke: var(--green-3); }
.iso .pk-ring.report { stroke: var(--violet-line); }
.iso .ghost { fill: none; stroke: none; }
.iso .back { fill: none; stroke: var(--rust); stroke-width: 2.2; stroke-dasharray: 7 6; animation: march 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .iso .pill.job { animation: none; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .iso .b-top { opacity: .14; }
  :root:not([data-theme="light"]) .iso .b-inner { stroke-opacity: .25; }
}
:root[data-theme="dark"] .iso .b-top { opacity: .14; }
:root[data-theme="dark"] .iso .b-inner { stroke-opacity: .25; }
.stage-card td.more { color: var(--muted); font-size: 11.5px; }
