:root {
    --ink: #e7f0e4;
    --muted: #9aab9c;
    --line: rgba(186, 214, 168, 0.22);
    --lime: #c6f25a;
    --sage: #8fb89a;
    --violet: #b9a0e6;
    --glass: rgba(14, 22, 18, 0.72);
    --bg: #07110d;
}
* { box-sizing: border-box; }
body:not(.tutor) {
    --bg: #d5e6dc;
    --glass: rgba(255, 255, 255, 0.92);
    --ink: #173028;
    --muted: #4d665c;
    --line: rgba(36, 72, 58, 0.16);
}
body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
}
a { color: var(--sage); }
.scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 70% 10%, rgba(109, 78, 163, 0.22), transparent 60%),
        radial-gradient(700px 420px at 10% 80%, rgba(143, 184, 154, 0.12), transparent 55%),
        var(--bg);
}
.scene-grid {
    position: absolute;
    left: -8%;
    right: -8%;
    top: 38%;
    height: 78%;
    background-image:
        linear-gradient(rgba(143, 184, 154, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 184, 154, 0.28) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(480px) rotateX(68deg);
    transform-origin: center top;
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 62%, transparent);
}
.scene-orbits { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit { fill: none; stroke-width: 1.25; }
.orbit-sage { stroke: rgba(143, 184, 154, 0.7); }
.orbit-violet { stroke: rgba(185, 160, 230, 0.62); }
.node { fill: var(--violet); }
.node-lime { fill: var(--lime); }
.scene-crystal {
    display: none;
    position: absolute;
    right: 8%;
    top: 14%;
    width: 84px;
    height: 104px;
    background:
        linear-gradient(155deg, rgba(236, 226, 255, 0.72), rgba(140, 90, 210, 0.28) 42%, rgba(40, 16, 70, 0.18));
    clip-path: polygon(50% 0, 94% 22%, 100% 50%, 76% 100%, 24% 100%, 0 50%, 6% 22%);
    filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.55));
}
.scene-crystal::after {
    content: "";
    position: absolute;
    left: 28%;
    top: 16%;
    width: 34%;
    height: 46%;
    background: rgba(255, 255, 255, 0.28);
    clip-path: polygon(30% 0, 100% 18%, 62% 100%, 0 62%);
}
body[data-scene="single_choice"] .scene-crystal { display: block; }
.wrap { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 28px 18px 64px; }
body.is-live .wrap { max-width: 1120px; }
.top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.top a { font-weight: 650; text-decoration: none; }
.who:empty { display: none; }
.who {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--glass);
}
.hero { width: 100%; border-radius: 18px; display: block; margin: 0 0 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
body.is-live .hero { display: none; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; line-height: 1.25; margin: 0 0 10px; }
.layout { display: grid; gap: 16px; }
body.is-live .layout { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.75fr); align-items: start; }
body.is-live .layout-candidate { grid-template-columns: 1fr; }
.stage, .rail, .card, .panel {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}
.stage { margin-bottom: 0; }
.rail { position: sticky; top: 16px; }
.panel + .panel, .stage .panel { margin-top: 14px; }
.stage > .panel:first-child { margin-top: 0; }
.eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--violet);
}
.lesson-text, .lq-prompt { font-size: 1.05rem; line-height: 1.55; }
.lq-prompt { font-weight: 700; margin: 0 0 14px; max-width: 68ch; }
.meta { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.step-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 8px 0 0; color: var(--muted); font-size: 0.85rem; font-weight: 650; }
.progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--lime)); }
.phase {
    display: inline-block;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.phase-open { border-color: rgba(198, 242, 90, 0.7); color: var(--lime); }
.phase-locked { border-color: rgba(185, 160, 230, 0.7); color: var(--violet); }
.phase-revealed { border-color: rgba(143, 184, 154, 0.8); color: var(--sage); }
label { display: block; font-weight: 700; font-size: 0.82rem; margin: 12px 0 6px; }
input[type="text"], input[type="password"], input[type="search"], textarea, select, .lq-text {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: rgba(8, 12, 10, 0.72);
    color: var(--ink);
}
textarea { min-height: 88px; }
input:focus, textarea:focus, select:focus, button:focus-visible, .lq-plate:focus-visible {
    outline: 2px solid rgba(198, 242, 90, 0.65);
    outline-offset: 2px;
}
.lq-text:disabled, .lq-choice:disabled, select:disabled { opacity: 1; cursor: default; }
.share { display: flex; gap: 8px; align-items: center; }
.share input { flex: 1; }
.row, .toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.rail-primary { margin-top: 16px; }
.rail-primary button { width: 100%; }
button {
    border: 1px solid rgba(198, 242, 90, 0.55);
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
    background: #101a16;
    color: #e9f6df;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
button.secondary { border-color: rgba(185, 160, 230, 0.4); color: #ddd4f0; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.draft, .note, .result {
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(8, 12, 10, 0.45);
    border: 1px solid var(--line);
}
.draft { font-weight: 650; }
.note { color: var(--violet); font-weight: 700; }
.result { font-weight: 700; margin-top: 12px; }
.result-ok { border-color: rgba(198, 242, 90, 0.55); color: var(--lime); }
.result-miss { border-color: rgba(185, 160, 230, 0.55); color: #f0d8c8; }
.error { color: #f0b8a4; font-weight: 650; }
.ok { color: var(--lime); font-weight: 650; }
.people { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 12px 0 0; list-style: none; }
.people li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(8, 12, 10, 0.55);
    font-size: 0.85rem;
}
.people li.is-away { color: var(--muted); }
.lq { perspective: 900px; }
.lq-field { position: relative; display: grid; justify-items: center; gap: 28px; }
.lq-field::before {
    content: "";
    position: absolute;
    top: 6px;
    width: 210px;
    height: 78px;
    border: 1px solid rgba(143, 184, 154, 0.55);
    border-radius: 50%;
    pointer-events: none;
}
.lq-hub {
    position: relative;
    z-index: 1;
    width: 62px;
    height: 76px;
    background: linear-gradient(160deg, rgba(236, 226, 255, 0.78), rgba(150, 96, 220, 0.32) 46%, rgba(30, 12, 60, 0.2));
    clip-path: polygon(50% 0, 94% 24%, 100% 52%, 74% 100%, 26% 100%, 0 52%, 6% 24%);
    filter: drop-shadow(0 18px 14px rgba(0, 0, 0, 0.55));
}
.lq-hub::after {
    content: "";
    position: absolute;
    left: 30%;
    top: 14%;
    width: 32%;
    height: 42%;
    background: rgba(255, 255, 255, 0.35);
    clip-path: polygon(40% 0, 100% 24%, 60% 100%, 0 70%);
}
.lq-stack, .lq-order { display: grid; gap: 10px; width: 100%; }
.lq-plate, .lq-socket, .lq-region, .lq-check {
    position: relative;
    text-align: left;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 32%),
        rgba(16, 26, 22, 0.9);
    border: 1px solid rgba(198, 242, 90, 0.28);
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 16px 0 rgba(0, 0, 0, 0.18),
        0 22px 34px rgba(0, 0, 0, 0.42);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.lq-choice, .lq-check, .lq-socket { width: 100%; padding: 14px 16px; }
.lq-plate:hover:not(:disabled), .lq-socket:hover:not(:disabled), .lq-region:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: rgba(198, 242, 90, 0.45);
}
.lq-plate.is-selected, .lq-check.is-selected, .lq-socket.is-linked, .lq-socket.is-pending {
    transform: translateY(-6px);
    border-color: rgba(198, 242, 90, 0.85);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(198, 242, 90, 0.25);
}
.lq-mark { display: block; min-height: 0; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.lq-plate.is-selected .lq-mark::before, .lq-check.is-selected .lq-mark::before { content: "Selected"; }
[data-key="true"] { box-shadow: inset 0 0 0 1px rgba(143, 184, 154, 0.8); }
[data-key="true"] .lq-mark::after { content: "Key"; color: var(--sage); }
.is-selected[data-key="true"] .lq-mark::after,
.lq-check.is-selected[data-key="true"] .lq-mark::after { content: " · Key"; }
.lq[data-type="single_choice"] .lq-plate.is-selected::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    width: 1px;
    height: 22px;
    background: linear-gradient(var(--lime), transparent);
}
.lq-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.lq-check { position: relative; }
.lq-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lq-check:focus-within { outline: 2px solid rgba(198, 242, 90, 0.65); outline-offset: 2px; }
.lq-tf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lq-tf .lq-choice { display: flex; align-items: center; gap: 12px; }
.lq-shard {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 1px solid var(--violet);
    transform: rotate(45deg);
    transition: transform 180ms ease;
    vertical-align: -2px;
}
.lq-tf.is-selected .lq-shard { transform: rotate(45deg) translate(5px, -4px); }
.lq-matchboard { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.lq-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lq-wires path {
    fill: none;
    stroke: var(--lime);
    stroke-width: 1.4;
    stroke-dasharray: 280;
    stroke-dashoffset: 280;
    animation: draw 180ms ease forwards;
}
.lq-pair:empty { display: none; }
.lq-pair { display: block; margin-top: 6px; color: var(--lime); font-size: 0.82rem; }
.lq-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); }
.lq-order { list-style: none; padding: 0; margin: 0; }
.lq-order li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 12px; }
.lq-slot {
    width: 28px; height: 28px; display: grid; place-items: center;
    border: 1px solid rgba(198, 242, 90, 0.55); border-radius: 8px; color: var(--lime); font-size: 0.8rem;
}
.lq-order button { padding: 6px 10px; }
.lq-pedestal { color: var(--muted); }
.lq-track { list-style: none; display: flex; gap: 16px; padding: 0 0 8px; margin: 0 0 14px; overflow-x: auto; }
.lq-track li { min-width: 140px; padding-top: 12px; border-top: 1px solid rgba(185, 160, 230, 0.7); }
.lq-date { display: block; color: var(--lime); font-size: 0.78rem; letter-spacing: 0.04em; }
.lq-choice[data-undated="true"] { border-style: dashed; }
.lq-tree .lq-node {
    margin: 0 auto 16px;
    max-width: 46ch;
    text-align: center;
    padding: 14px 16px;
    border: 1px solid rgba(185, 160, 230, 0.45);
    border-radius: 16px;
    background: rgba(8, 12, 10, 0.55);
}
.lq-target { display: block; margin-top: 6px; color: var(--muted); font-weight: 500; }
.lq-branch.is-selected .lq-target { color: var(--ink); }
.lq-doc {
    position: relative;
    min-height: 280px;
    margin-bottom: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(22, 30, 26, 0.2), rgba(8, 12, 10, 0.2)),
        repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(186, 214, 168, 0.08) 28px);
}
.lq-doc-caption { margin: 10px 12px; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lq-region {
    position: absolute;
    overflow: auto;
    font-size: 0.82rem;
    line-height: 1.3;
}
.lq-hint, .lq-keyline { color: var(--muted); font-size: 0.85rem; }
.basis { margin: 8px 0 0; padding-left: 18px; }
details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; color: var(--sage); }
.lq-why { background: rgba(8, 12, 10, 0.45); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 14px 0 0; }
.lq-why p { margin: 0; line-height: 1.5; }
.bars { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(72px, 28%) 1fr auto; gap: 8px; align-items: center; font-size: 0.88rem; }
.bar-track { height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--sage); border-radius: inherit; }
.bar-n { font-variant-numeric: tabular-nums; color: var(--muted); }
body.is-shift .stage { animation: rise 420ms ease; }
@keyframes rise { from { opacity: 0.4; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 860px) {
    body.is-live .layout { grid-template-columns: 1fr; }
    .rail { position: static; }
    h1 { font-size: 1.7rem; }
    .share, .lq-tf, .lq-matchboard { display: flex; flex-direction: column; align-items: stretch; }
    .lq-wires { display: none; }
    .bars li { grid-template-columns: 1fr auto; }
    .bar-track { grid-column: 1 / -1; }
    .lq-order li { grid-template-columns: auto 1fr; }
    .lq-order button { justify-self: start; }
}
body {
    --ink: #173028;
    --muted: #4d665c;
    --bg: #d5e6dc;
    color: var(--ink);
    background: #d5e6dc;
}
body .scene {
    background:
        radial-gradient(900px 480px at 72% 0%, rgba(185, 160, 230, 0.34), transparent 58%),
        radial-gradient(680px 420px at 8% 100%, rgba(120, 168, 136, 0.45), transparent 56%),
        #d5e6dc;
}
body .scene-grid {
    background-image:
        linear-gradient(rgba(28, 78, 56, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 78, 56, 0.2) 1px, transparent 1px);
}
body .orbit-sage { stroke: rgba(32, 92, 66, 0.5); }
body .orbit-violet { stroke: rgba(108, 72, 158, 0.46); }
body h1,
body h2,
body .lesson-text,
body .lq-prompt,
body .lq-label,
body .lq-target { color: #173028; }
body .top a { color: #1d5a42; }
body .who,
body .stage,
body .rail,
body .card,
body .panel {
    background: rgba(255, 255, 255, 0.92);
    color: #173028;
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 34px rgba(24, 52, 40, 0.1);
}
body .meta,
body .step-line,
body .lq-hint,
body .lq-keyline,
body .lq-doc-caption,
body .people li.is-away { color: #4d665c; }
body input[type="text"],
body input[type="password"],
body input[type="search"],
body textarea,
body select,
body .lq-text {
    background: #fff;
    color: #173028;
    border-color: rgba(36, 72, 58, 0.22);
}
body .lq-plate,
body .lq-socket,
body .lq-region,
body .lq-check,
body .draft,
body .note,
body .result,
body .people li,
body .lq-why,
body .lq-tree .lq-node,
body .lq-doc {
    background: #fff;
    color: #173028;
    border-color: rgba(47, 92, 70, 0.24);
    box-shadow: 0 10px 18px rgba(24, 52, 40, 0.08);
}
body .bar-track { background: #e3eee8; }
body .bar-fill { background: #2f6d52; }
.panel:has(.lq-scene),
body .panel:has(.lq-scene) {
    background: #f6f3ec;
    color: #1e293b;
    border-color: rgba(201, 168, 108, 0.35);
    box-shadow: 0 12px 36px rgba(24, 52, 40, 0.12);
}
body .panel:has(.lq-scene) .eyebrow { color: #8a6a32; }
.lq-scene .lq-prompt,
body .lq-scene .lq-prompt,
body .panel:has(.lq-scene) .lq-prompt {
    color: #1e293b;
    font-size: 1.2rem;
    margin: 0 0 6px;
}
.panel:has(.lq-scene) { padding: 18px 20px 16px; }
.panel:has(.lq-scene) .row { margin-top: 10px; }
.panel:has(.lq-scene) #send {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 1rem;
    background: #2f6d58;
    color: #ffffff;
    border-color: rgba(232, 244, 214, 0.72);
}
.lq-scene {
    container-type: inline-size;
    container-name: lqscene;
}
.lq-board {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    gap: 0 18px;
    align-items: center;
}
.lq-stage {
    position: relative;
    height: 420px;
    order: 2;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}
.lq-gl { display: block; width: 100%; height: 100%; background: transparent; }
.lq-labels {
    position: static;
    display: grid;
    gap: 10px;
    order: 1;
    pointer-events: auto;
}
.lq-scene[data-type="single_choice"] .lq-choice,
body .lq-scene[data-type="single_choice"] .lq-choice,
body .lq-scene[data-type="single_choice"] .lq-plate,
.lq-scene[data-type="single_choice"] .lq-choice:hover:not(:disabled),
.lq-scene[data-type="single_choice"] .lq-choice.is-selected,
body .lq-scene[data-type="single_choice"] .lq-choice:hover:not(:disabled),
body .lq-scene[data-type="single_choice"] .lq-choice.is-selected {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) 4.8rem;
    column-gap: 12px;
    align-items: center;
    min-height: 64px;
    overflow: visible;
    text-align: left;
    color: #f7fbf6;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 38%),
        #3e514a;
    border: 1px solid rgba(214, 232, 220, 0.28);
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 10px 18px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
    transform: none;
}
.lq-scene[data-type="single_choice"] .lq-letter {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    color: #d7ebe3;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    line-height: 1;
}
.lq-scene[data-type="single_choice"] .lq-choice:focus-visible,
body .lq-scene[data-type="single_choice"] .lq-choice:focus-visible {
    outline: 2px dashed rgba(228, 239, 232, 0.95);
    outline-offset: 4px;
}
.lq-scene .lq-label,
body .lq-scene .lq-label,
body .panel:has(.lq-scene) .lq-label {
    position: static;
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    text-shadow: none;
    pointer-events: none;
}
.lq-scene[data-type="single_choice"] .lq-label {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}
.lq.lq-scene[data-type="single_choice"] .lq-plate.is-selected::after { content: none; display: none; }
.lq-scene[data-type="single_choice"] .lq-choice.is-selected,
body .lq-scene[data-type="single_choice"] .lq-choice.is-selected {
    border-color: rgba(228, 239, 232, 0.95);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
        #4a6158;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(228, 239, 232, 0.5),
        0 10px 18px rgba(0, 0, 0, 0.28);
}
.lq-scene[data-type="single_choice"] .lq-choice.is-selected .lq-letter { color: #ffffff; }
.lq-scene[data-type="single_choice"] .lq-choice:not(.is-selected) .lq-letter { color: #b7c9c0; }
.lq-scene[data-type="single_choice"] .lq-mark {
    position: static;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-height: 0;
    margin: 0;
    color: #d7e7c4;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
}
.lq-scene[data-type="single_choice"] .lq-choice:not(.is-selected):not([data-key="true"]) .lq-mark { visibility: hidden; }
.lq-scene [data-key="true"] .lq-mark::after { color: #d8e0da; }
.lq-scene .lq-plate,
.lq-scene .lq-socket,
.lq-scene .lq-check,
.lq-scene .lq-order li,
.lq-scene .lq-node {
    color: #f7fbf6;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 38%),
        #3e514a;
    border: 1px solid rgba(214, 232, 220, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 10px 18px rgba(0, 0, 0, 0.28);
    transform: none;
}
.lq-scene .lq-plate:hover:not(:disabled),
.lq-scene .lq-socket:hover:not(:disabled),
.lq-scene .lq-region:hover:not(:disabled),
.lq-scene .lq-plate.is-selected,
.lq-scene .lq-check.is-selected,
.lq-scene .lq-socket.is-linked,
.lq-scene .lq-socket.is-pending {
    transform: none;
}
.lq-scene .lq-plate.is-selected,
.lq-scene .lq-check.is-selected,
.lq-scene .lq-socket.is-linked,
.lq-scene .lq-socket.is-pending {
    border-color: rgba(228, 239, 232, 0.95);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
        #4a6158;
}
.lq-scene .lq-region {
    color: #f7fbf6;
    background: rgba(62, 81, 74, 0.92);
    border-color: rgba(214, 232, 220, 0.5);
}
.lq-scene .lq-region.is-selected {
    border-color: rgba(228, 239, 232, 0.95);
    background: rgba(74, 97, 88, 0.96);
}
.lq-scene .lq-hint,
.lq-scene .lq-keyline,
.lq-scene .lq-doc-caption,
.lq-scene .lq-pedestal,
.lq-scene .lq-date { color: #3d5248; }
.lq-scene .lq-target,
.lq-scene .lq-mark,
.lq-scene .lq-pair { color: #d7e7c4; }
.lq-scene .lq-slot {
    color: #d7e8df;
    border-color: rgba(228, 239, 232, 0.4);
}
.lq-scene .lq-order li {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}
.lq-scene .lq-order .lq-label { min-width: 0; }
.lq-scene .lq-wires path { stroke: #d7e7c4; }
.lq-scene .lq-text {
    background: #f4f7f2;
    color: #173028;
    border-color: rgba(228, 239, 232, 0.45);
}
.lq-scene .lq-doc {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12)),
        repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(186, 214, 168, 0.1) 28px);
    border-color: rgba(214, 232, 220, 0.22);
}
.lq-scene .lq-why,
body .lq-scene .lq-why {
    background: rgba(255, 255, 255, 0.72);
    color: #1e293b;
    border-color: rgba(47, 92, 70, 0.22);
}
.lq-scene.is-flat .lq-board { grid-template-columns: 1fr; }
.lq-scene.is-flat .lq-stage { display: none; }
.lq-scene.is-flat .lq-labels { order: 1; }
@container lqscene (max-width: 720px) {
    .lq-board { grid-template-columns: 1fr; }
    .lq-stage { height: 400px; order: 1; }
    .lq-labels { order: 2; }
}
.info-card { padding: 14px 18px; }
.info-fold { margin: 0; }
.info-fold summary {
    cursor: pointer;
    display: grid;
    gap: 2px;
    list-style: none;
}
.info-fold summary::-webkit-details-marker { display: none; }
.info-fold summary::marker { content: ""; }
.info-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    line-height: 1.3;
}
.info-fold .lesson-text,
.info-fold .basis { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .scene-grid, .scene-orbits, .scene-crystal { display: none; }
    .lq-plate, .lq-plate.is-selected, .lq-check.is-selected, .lq-socket.is-linked { transform: none; }
}
