/* Podium platform flows: a Figma-style board of screenshots, black theme. */
:root {
  --ui: #0a0a0a;
  --ui-2: #161616;
  --ui-3: #242424;
  --ui-hover: #171717;
  --line: #1f1f1f;
  --text: #ffffff;
  --text-2: #a8a8a8;
  --text-3: #6e6e6e;
  --canvas: #000000;
  --blue: #0d99ff;
  --soft: rgba(255, 255, 255, 0.08);
  --left-w: 200px;
  --right-w: 236px;
  --top-h: 46px;
  --inv: 1;
  --z: 1;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--canvas); color: var(--text); overflow: hidden; }
body { font: 400 12px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
kbd { font: 500 10px/1 Inter, sans-serif; color: var(--text-3); margin-left: auto; padding-left: 16px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; font-size: 16px; }

/* ---------- app frame ---------- */
.app {
  display: grid;
  grid-template-columns: var(--left-w) 1fr var(--right-w);
  grid-template-rows: var(--top-h) 1fr;
  height: 100dvh;
}
.topbar {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ui); border-bottom: 1px solid var(--line);
  padding: 0 10px 0 8px; position: relative; z-index: 20;
}
.tb-left, .tb-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; background: #111; padding: 3px; border-radius: 9px; border: 1px solid var(--line); }
.role-tab { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 6px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.role-tab:hover { background: var(--ui-hover); color: var(--text); }
.role-tab[aria-pressed="true"] { background: var(--ui-3); color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #888); flex: none; }
.brand { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; }
.brand:hover { background: var(--ui-hover); }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.crumb-dim { color: var(--text-3); }
.crumb-sep { color: #3a3a3a; }
.crumb { font-weight: 500; white-space: nowrap; }
.crumb-page { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: var(--text-2); }
.icon-btn:hover { background: var(--ui-hover); color: var(--text); }
.btn-present { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 7px; background: #fff; color: #000; font-weight: 600; }
.btn-present:hover { background: #e6e6e6; }
.zoom-wrap { position: relative; }
.zoom-btn { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border-radius: 6px; font-weight: 500; min-width: 64px; justify-content: flex-end; }
.zoom-btn:hover, .zoom-btn[aria-expanded="true"] { background: var(--ui-hover); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); width: 230px; background: #0d0d0d; border: 1px solid #262626; border-radius: 10px; padding: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8); }
.menu button { display: flex; width: 100%; align-items: center; height: 30px; padding: 0 10px; border-radius: 6px; text-align: left; }
.menu button:hover { background: var(--blue); }
.menu button:hover kbd { color: #dbeeff; }
.menu [role="menuitemcheckbox"]::before { content: ""; width: 14px; margin-right: 6px; }
.menu [role="menuitemcheckbox"][aria-checked="true"]::before { content: "\2713"; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- side panels ---------- */
.panel { background: var(--ui); display: flex; flex-direction: column; min-height: 0; z-index: 10; }
.panel.left { border-right: 1px solid var(--line); }
.panel.right { border-left: 1px solid var(--line); overflow-y: auto; }
.panel-scroll { overflow-y: auto; flex: 1; min-height: 0; padding-bottom: 20px; }
.search { display: flex; align-items: center; gap: 8px; margin: 10px 10px 4px; padding: 0 10px; height: 32px; border-radius: 7px; background: #121212; border: 1px solid var(--line); color: var(--text-3); }
.search:focus-within { border-color: #fff; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; }
.search input::placeholder { color: var(--text-3); }
.p-section { padding: 8px 0 4px; border-bottom: 1px solid var(--line); }
.p-section.grow { border-bottom: 0; }
.p-title { font-weight: 600; padding: 6px 16px 6px; color: var(--text); display: flex; align-items: center; justify-content: space-between; }
.pages { list-style: none; margin: 0; padding: 0 8px; }
.pages button { display: flex; align-items: center; gap: 9px; width: 100%; height: 28px; padding: 0 8px; border-radius: 6px; color: var(--text-2); }
.pages button:hover { background: var(--ui-hover); color: var(--text); }
.pages button[aria-current="true"] { background: var(--soft); color: var(--text); }
.pages .count { margin-left: auto; color: var(--text-3); font-size: 11px; }
.layers { padding: 0 8px; }
.layer-flow > summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 6px; cursor: pointer; color: var(--text); font-weight: 500; }
.layer-flow > summary::-webkit-details-marker { display: none; }
.layer-flow > summary:hover { background: var(--ui-hover); }
.layer-flow > summary .caret { width: 10px; color: var(--text-3); transition: transform 0.15s; flex: none; }
.layer-flow[open] > summary .caret { transform: rotate(90deg); }
.layer-flow > summary .ico, .layer-frame .ico { color: var(--text-3); flex: none; }
.layer-flow > summary .t, .layer-frame .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-frame { display: flex; align-items: center; gap: 7px; width: 100%; height: 26px; padding: 0 8px 0 30px; border-radius: 6px; color: var(--text-2); text-align: left; }
.layer-frame:hover { background: var(--ui-hover); color: var(--text); }
.layer-frame[aria-current="true"] { background: var(--blue); color: #fff; }
.layer-frame[aria-current="true"] .ico { color: #fff; }
.search-hit { padding: 7px 10px; border-radius: 7px; display: block; width: 100%; text-align: left; }
.search-hit:hover { background: var(--ui-hover); }
.search-hit b { display: block; font-weight: 500; color: var(--text); }
.search-hit span { color: var(--text-3); font-size: 11px; }
.empty-note { padding: 10px 16px; color: var(--text-3); }

/* inspect panel */
.inspect { padding-bottom: 28px; }
.ins-sec { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ins-sec:last-child { border-bottom: 0; }
.ins-label { font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.ins-label small { font-weight: 400; color: var(--text-3); }
.ins-title { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 8px 0 2px; }
.ins-text { color: var(--text-2); font-size: 12.5px; line-height: 1.55; margin: 0; }
.ins-list { margin: 0; padding-left: 16px; color: var(--text-2); font-size: 12.5px; line-height: 1.55; }
.ins-list li + li { margin-top: 3px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 99px; background: #161616; border: 1px solid #262626; color: #fff; font-weight: 600; font-size: 11px; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #888); }
.url { font: 500 11.5px/1.5 "JetBrains Mono", ui-monospace, monospace; color: var(--text-2); background: #121212; border-radius: 6px; padding: 6px 8px; word-break: break-all; }
.ins-thumb { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; background: #fff; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.conn { display: flex; align-items: flex-start; gap: 8px; width: calc(100% + 16px); padding: 6px 8px; margin: 0 -8px; border-radius: 6px; text-align: left; color: var(--text-2); }
.conn:hover { background: var(--ui-hover); color: var(--text); }
.conn svg { flex: none; margin-top: 3px; color: var(--text-3); }
.conn em { display: block; font-style: normal; color: var(--text-3); font-size: 11px; }
.btn-row { display: flex; gap: 8px; margin-top: 12px; }
.btn { flex: 1; height: 30px; border-radius: 7px; background: var(--ui-2); border: 1px solid #262626; font-weight: 500; }
.btn:hover { background: var(--ui-3); }
.btn.primary { background: #fff; color: #000; border-color: #fff; }
.btn.primary:hover { background: #e6e6e6; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: #121212; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.stat b { display: block; font-size: 20px; font-weight: 700; }
.stat span { color: var(--text-3); font-size: 11px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; color: var(--text-2); align-items: center; }
.keys kbd { margin: 0; padding: 3px 6px; border-radius: 5px; background: #121212; border: 1px solid #262626; color: var(--text); justify-self: start; }
.legend { display: grid; gap: 8px; color: var(--text-2); }
.legend div { display: flex; align-items: center; gap: 10px; }
.legend svg { flex: none; }

/* ---------- canvas ---------- */
.viewport {
  position: relative; overflow: hidden; min-width: 0; min-height: 0;
  background-color: var(--canvas);
  background-image: radial-gradient(circle, #1c1c1c 1px, transparent 1.2px);
  background-size: 24px 24px;
  cursor: default; touch-action: none; outline: none;
}
.viewport.panning { cursor: grabbing; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.world.moving { will-change: transform; }
.board { position: relative; display: flex; align-items: flex-start; gap: 380px; padding: 420px 380px 480px; }
.wires { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.wire-labels { position: absolute; left: 0; top: 0; pointer-events: none; }

.wires path { fill: none; stroke-linecap: round; transition: opacity 0.2s, stroke 0.2s; }
.wires .step { stroke: #f2f2f2; stroke-width: 3.5; }
.wires .link { stroke: #f2f2f2; stroke-width: 3.5; stroke-dasharray: 16 12; opacity: 0.7; }
.wires .cross { stroke: #f2f2f2; stroke-width: 3.5; stroke-dasharray: 4 12; opacity: 0.4; }
.wires .hl { stroke: var(--blue) !important; opacity: 1 !important; stroke-width: 5; }
.wires.dim path:not(.hl) { opacity: 0.22; }
.no-links .wires .link, .no-links .wires .cross, .no-links .wl.link-label { display: none; }
.wl {
  position: absolute; transform: translate(-50%, calc(-100% - 12px));
  max-width: 212px; width: max-content; padding: 9px 15px; border-radius: 12px;
  background: #000; border: 1.5px solid #3a3a3a; color: #fff;
  font: 500 19px/1.3 Inter, sans-serif; text-align: left; transition: opacity 0.2s, border-color 0.2s;
  display: flex; align-items: flex-start; gap: 8px;
}
.wl svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #fff; }
.wl.link-label { transform: translate(-50%, -50%); border-style: dashed; border-color: #555; color: #e6e6e6; max-width: 300px; }
.wl.hl { border-color: var(--blue); background: #04243a; color: #fff; }
.dim-labels .wl:not(.hl) { opacity: 0.3; }

/* sections */
.role-sec {
  position: relative; border-radius: 44px; padding: 160px 150px 180px;
  background: #060606; border: 3px solid #1a1a1a;
  display: flex; flex-direction: column; gap: 170px;
}
.sec-tab {
  position: absolute; left: -3px; bottom: 100%; margin-bottom: 18px;
  display: flex; align-items: center; gap: 18px; padding: 16px 30px; border-radius: 22px;
  background: #0f0f0f; border: 3px solid #1f1f1f; color: #fff;
  font: 700 46px/1 Inter, sans-serif; white-space: nowrap;
}
.sec-tab .dot { width: 26px; height: 26px; }
.role-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 120px; align-items: end; max-width: 4200px; }
.role-kicker { display: flex; align-items: center; gap: 18px; font: 600 30px/1 "JetBrains Mono", monospace; letter-spacing: 0.16em; text-transform: uppercase; color: #7a7a7a; }
.role-kicker::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.role-head h2 { margin: 26px 0 0; font-size: 200px; line-height: 0.88; font-weight: 800; letter-spacing: -0.045em; color: #fff; }
.role-persona { margin: 40px 0 0; font-size: 34px; color: #8f8f8f; line-height: 1.4; }
.role-summary { margin: 0; font-size: 46px; line-height: 1.32; color: #fff; font-weight: 500; letter-spacing: -0.01em; }
.role-index { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.role-index button { font: 500 26px/1 Inter, sans-serif; padding: 16px 24px; border-radius: 16px; background: #0f0f0f; color: #e6e6e6; border: 2px solid #232323; }
.role-index button:hover { border-color: #fff; color: #fff; }
.role-index b { color: #6e6e6e; font-family: "JetBrains Mono", monospace; margin-right: 10px; }

.flow { border-radius: 30px; padding: 80px 90px 100px; background: #000; border: 2px solid #171717; }
.flow-head { display: flex; align-items: flex-start; gap: 34px; }
.flow-no { flex: none; font: 600 32px/1 "JetBrains Mono", monospace; color: #fff; border: 3px solid #2e2e2e; border-radius: 16px; padding: 14px 16px; margin-top: 6px; }
.flow-head h3 { margin: 0; font-size: 72px; line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; color: #fff; }
.flow-tldr { margin: 16px 0 0; font-size: 32px; color: #8f8f8f; line-height: 1.4; max-width: 2400px; }
.steps { display: flex; align-items: flex-start; gap: 250px; margin-top: 150px; }

.frame { position: relative; width: 720px; margin: 0; flex: none; }
.frame-name {
  position: absolute; left: 0; bottom: 100%; cursor: pointer;
  transform: scale(var(--inv)); transform-origin: 0 100%;
  max-width: calc(720px * var(--z)); padding-bottom: 6px;
  font: 500 12px/1.2 Inter, sans-serif; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame:hover .frame-name, .frame.selected .frame-name { color: var(--blue); }
.shot { position: relative; width: 720px; background: #fff; box-shadow: 0 0 0 1px #262626; cursor: pointer; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; user-select: none; -webkit-user-drag: none; }
.shot .step-no {
  position: absolute; top: 18px; left: 18px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #000; color: #fff; font: 800 22px/1 Inter, sans-serif;
  box-shadow: 0 0 0 3px #fff;
}
.frame:hover .shot { outline: calc(1.5px * var(--inv)) solid var(--blue); }
.frame.selected .shot { outline: calc(2px * var(--inv)) solid var(--blue); }
.handles { position: absolute; inset: 0; pointer-events: none; display: none; }
.frame.selected .handles { display: block; }
.handles i { position: absolute; width: calc(8px * var(--inv)); height: calc(8px * var(--inv)); background: #fff; border: calc(1.5px * var(--inv)) solid var(--blue); transform: translate(-50%, -50%); }
.handles i:nth-child(1) { left: 0; top: 0; }
.handles i:nth-child(2) { left: 100%; top: 0; }
.handles i:nth-child(3) { left: 0; top: 100%; }
.handles i:nth-child(4) { left: 100%; top: 100%; }
.size-tag { position: absolute; left: 50%; top: 100%; transform: translate(-50%, calc(8px * var(--inv))) scale(var(--inv)); transform-origin: 50% 0; background: var(--blue); color: #fff; font: 500 11px/1 Inter, sans-serif; padding: 4px 6px; border-radius: 4px; white-space: nowrap; display: none; }
.frame.selected .size-tag { display: block; }

/* TL;DR card under each screen */
.sticky {
  margin-bottom: 36px; padding: 26px 32px 28px; border-radius: 14px;
  background: #0b0b0b; color: #fff; border: 2px solid #1f1f1f; border-left: 6px solid var(--c);
  cursor: pointer;
}
.sticky .tl { font-weight: 600; font-size: 27px; line-height: 1.38; margin: 0; }
.sticky .tl::before { content: "TL;DR"; display: block; margin-bottom: 10px; font: 700 16px/1 "JetBrains Mono", monospace; letter-spacing: 0.14em; color: #6e6e6e; }
.sticky .feat-h { margin-top: 20px; font: 700 16px/1 "JetBrains Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: #6e6e6e; }
.sticky ul { margin: 12px 0 0; grid-template-columns: 1fr 1fr; column-gap: 24px; padding: 0; list-style: none; display: grid; gap: 8px; }
.sticky li { position: relative; padding-left: 26px; font-size: 21px; line-height: 1.3; color: #bdbdbd; }
.sticky li::before { content: ""; position: absolute; left: 4px; top: 0.52em; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* jumps to other flows: hidden until an end is selected, listed as chips on the card */
.wires .far { display: none; }
.wires .far.hl { display: inline; }
.wl.far { display: none; }
.wl.far.hl { display: flex; }
.sticky .jumps { display: grid; gap: 10px; margin-top: 12px; }
.sticky .jump { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 14px 18px; border-radius: 12px; background: #141414; border: 2px solid #262626; color: #fff; font: 500 21px/1.3 Inter, sans-serif; }
.sticky .jump:hover { border-color: #fff; }
.sticky .jump svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.sticky .jump em { display: block; font-style: normal; font-size: 17px; color: #8a8a8a; margin-top: 3px; }

/* Overview column */
.overview { position: relative; display: flex; flex-direction: column; gap: 200px; width: 3400px; }
.ov-frame { position: relative; }
.ov-frame > .frame-name { cursor: default; }
.cover { background: #050505; color: #fff; border-radius: 10px; padding: 190px 200px 170px; overflow: hidden; border: 3px solid #1c1c1c; position: relative; }
.cover::after { content: ""; position: absolute; right: -300px; top: -300px; width: 1300px; height: 1300px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 62%); }
.cover-kicker { font: 600 34px/1 "JetBrains Mono", monospace; letter-spacing: 0.18em; text-transform: uppercase; color: #7a7a7a; }
.cover h1 { margin: 60px 0 0; font-size: 196px; line-height: 0.95; letter-spacing: -0.05em; font-weight: 800; max-width: 2500px; position: relative; z-index: 1; }
.cover h1 em { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.cover p { margin: 64px 0 0; font-size: 50px; line-height: 1.35; color: #9a9a9a; max-width: 2300px; position: relative; z-index: 1; }
.cover-stats { display: flex; gap: 80px; margin-top: 110px; position: relative; z-index: 1; }
.cover-stats div { border-top: 4px solid #fff; padding-top: 30px; min-width: 360px; }
.cover-stats b { display: block; font-size: 128px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.cover-stats span { font-size: 36px; color: #8a8a8a; }
.cover-help { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 110px; font-size: 32px; color: #bdbdbd; position: relative; z-index: 1; }
.cover-help span { background: #111; border: 2px solid #1f1f1f; border-radius: 18px; padding: 18px 28px; }
.cover-help kbd { font: 600 26px/1 "JetBrains Mono", monospace; color: #fff; background: #000; border: 2px solid #3a3a3a; border-bottom-width: 4px; border-radius: 10px; padding: 6px 12px; margin: 0 6px; }

.board-card { background: #050505; border: 3px solid #1c1c1c; border-radius: 30px; padding: 110px 120px 120px; }
.board-card h2 { margin: 0; font-size: 96px; line-height: 1; letter-spacing: -0.03em; font-weight: 800; color: #fff; }
.board-card .lead { margin: 30px 0 0; font-size: 38px; color: #8f8f8f; line-height: 1.4; max-width: 2600px; }
.roles-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 44px; margin-top: 90px; }
.role-card { text-align: left; background: #0b0b0b; border: 3px solid #1f1f1f; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s; }
.role-card:hover { border-color: #fff; }
.role-card .rc-img { height: 330px; background: #fff; overflow: hidden; border-bottom: 3px solid #1f1f1f; }
.role-card .rc-img img { width: 100%; display: block; }
.role-card .rc-body { padding: 44px 44px 50px; }
.role-card .rc-k { display: flex; align-items: center; gap: 14px; font: 600 24px/1 "JetBrains Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; color: #7a7a7a; }
.role-card .rc-k::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.role-card h3 { margin: 22px 0 0; font-size: 64px; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.role-card p { margin: 24px 0 0; font-size: 28px; line-height: 1.42; color: #a3a3a3; }
.role-card .rc-meta { margin-top: 30px; font: 500 24px/1 "JetBrains Mono", monospace; color: #6e6e6e; }

.matrix { margin-top: 90px; display: grid; gap: 14px; }
.matrix .row { display: grid; gap: 14px; }
.matrix .cell { border-radius: 18px; padding: 26px 28px; font-size: 26px; line-height: 1.35; min-height: 120px; }
.matrix .ph { background: #0d0d0d; font: 600 24px/1.25 "JetBrains Mono", monospace; letter-spacing: 0.04em; text-transform: uppercase; color: #cfcfcf; min-height: 0; display: flex; align-items: center; gap: 14px; }
.matrix .ph i { font-style: normal; color: #555; }
.matrix .rl { display: flex; align-items: center; gap: 18px; font-size: 38px; font-weight: 700; color: #fff; background: #0d0d0d; }
.matrix .rl .dot { width: 22px; height: 22px; }
.matrix .act { background: #141414; color: #fff; box-shadow: inset 5px 0 0 var(--c); }
.matrix .off { background: #080808; }
.matrix .yes, .matrix .no { display: grid; place-items: center; font-size: 44px; font-weight: 800; min-height: 96px; }
.matrix .yes { background: #141414; color: #fff; box-shadow: inset 0 -5px 0 var(--c); }
.matrix .no { background: #080808; color: #333; }
.matrix .feat { background: #0d0d0d; color: #e6e6e6; display: flex; align-items: center; font-size: 30px; min-height: 96px; }

.journey { display: flex; align-items: stretch; margin-top: 90px; }
.j-step { width: 470px; flex: none; text-align: left; background: #0b0b0b; border: 3px solid #1f1f1f; border-radius: 24px; overflow: hidden; transition: border-color 0.15s; }
.j-step:hover { border-color: #fff; }
.j-step .j-img { height: 270px; background: #fff; overflow: hidden; border-bottom: 3px solid #1f1f1f; }
.j-step .j-img img { width: 100%; display: block; }
.j-step .j-body { padding: 30px 32px 36px; }
.j-step .j-who { display: flex; align-items: center; gap: 12px; font: 600 22px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: 0.1em; color: #8a8a8a; }
.j-step .j-who .dot { width: 16px; height: 16px; }
.j-step p { margin: 18px 0 0; font-size: 30px; line-height: 1.35; color: #fff; font-weight: 500; }
.j-arrow { flex: 1; min-width: 80px; display: grid; place-items: center; color: #fff; }

/* level of detail */
.lod-far .frame-name, .lod-far .wl { visibility: hidden; }
.lod-far .shot .step-no { transform: scale(2.2); transform-origin: 0 0; }

/* ---------- minimap, hint ---------- */
.minimap { position: absolute; right: 14px; bottom: 14px; width: 220px; height: 140px; background: rgba(10, 10, 10, 0.94); border: 1px solid #262626; border-radius: 10px; cursor: pointer; z-index: 5; }
.hint { position: absolute; left: 14px; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; color: var(--text-3); background: rgba(10, 10, 10, 0.9); border: 1px solid var(--line); padding: 7px 12px; border-radius: 9px; font-size: 11.5px; }
.hint i { width: 3px; height: 3px; border-radius: 50%; background: #444; }

/* ---------- presentation ---------- */
.presenting .app { grid-template-columns: 0 1fr 0; }
.presenting .panel { visibility: hidden; }
.presenting .minimap, .presenting .hint { display: none; }
.present-bar {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 8;
  display: flex; align-items: center; gap: 12px; width: min(760px, calc(100% - 24px));
  background: rgba(8, 8, 8, 0.96); border: 1px solid #2a2a2a; border-radius: 16px; padding: 12px 12px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
}
.pb-body { flex: 1; min-width: 0; }
.pb-meta { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 11.5px; flex-wrap: wrap; }
.pb-title { font-size: 16px; font-weight: 600; margin-top: 4px; }
.pb-text { color: var(--text-2); font-size: 13px; margin-top: 2px; line-height: 1.5; }
.pb-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ui-2); border: 1px solid #262626; flex: none; }
.pb-btn:hover { background: var(--ui-3); }
.pb-exit { display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--ui-2); border: 1px solid #262626; flex: none; font-weight: 500; }
.pb-exit kbd { padding-left: 8px; }
.pb-progress { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 3px; background: #222; overflow: hidden; }
.pb-progress i { display: block; height: 100%; width: 0; background: #fff; transition: width 0.3s; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(6px); display: flex; flex-direction: column; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); background: var(--ui); }
.lb-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-head h2 { margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-count { color: var(--text-3); white-space: nowrap; }
.lb-actions { display: flex; gap: 4px; }
.lb-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 320px; }
.lb-img { overflow: auto; padding: 28px; display: flex; justify-content: center; align-items: flex-start; }
.lb-img img { width: min(100%, 1440px); height: auto; display: block; background: #fff; box-shadow: 0 0 0 1px #262626; border-radius: 4px; }
.lb-side { background: var(--ui); border-left: 1px solid var(--line); overflow-y: auto; }

/* ---------- mobile ---------- */
.only-mobile { display: none; }
@media (max-width: 1180px) {
  .tb-center { display: none; }
}
@media (max-width: 860px) {
  :root { --top-h: 50px; }
  .app { grid-template-columns: 1fr; }
  .only-mobile { display: grid; }
  .hide-mobile { display: none !important; }
  .viewport { grid-column: 1; grid-row: 2; }
  .panel.left { position: fixed; left: 0; top: var(--top-h); bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform 0.2s ease; z-index: 30; box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8); }
  .left-open .panel.left { transform: none; }
  .panel.right { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 46dvh; border-left: 0; border-top: 1px solid #262626; border-radius: 16px 16px 0 0; transform: translateY(102%); transition: transform 0.2s ease; z-index: 25; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8); }
  .has-selection .panel.right { transform: none; }
  .panel.right::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: #333; margin: 8px auto 0; }
  .minimap { width: 132px; height: 84px; right: 10px; bottom: 10px; }
  .has-selection .minimap { display: none; }
  .btn-present span { display: none; }
  .btn-present { padding: 0 10px; }
  .zoom-btn { min-width: 0; }
  .lb-main { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-img { padding: 10px; }
  .lb-side { max-height: 34dvh; border-left: 0; border-top: 1px solid var(--line); }
  .present-bar { bottom: 10px; }
  .pb-exit kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
