:root {
    --bg: #eef1f6;
    --paper: #ffffff;
    --ink: #151a24;
    --muted: #556074;
    --line: #d3d9e3;
    --accent: #1b5fc1;
    --accent-ink: #ffffff;
    --code-bg: #121722;
    --code-ink: #e8edf7;
    --cube-gap: #10141c;
    --w: #f4f4ef; --y: #f6c500; --r: #c8322b; --o: #f28a1f; --b: #1f5fbf; --g: #1f9d4b;
    --lv1: #1f9d4b; --lv2: #e0aa00; --lv3: #c8322b; --lv4: #7a5bd1;
    --font-head: "Avenir Next", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f131b; --paper: #171d29; --ink: #e9edf5; --muted: #9ba7bc; --line: #2a3345;
        --accent: #6aa3f5; --accent-ink: #0b1220; --code-bg: #0a0d14; --code-ink: #e8edf7;
        --cube-gap: #05070b;
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--font-body); }
.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; margin: 0 0 .75rem; }
h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }

/* Kopfzeile */
.top { background: var(--paper); border-bottom: 2px solid var(--ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .75rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.logo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; width: 34px; height: 34px; background: var(--cube-gap); border-radius: 5px; }
.logo i { border-radius: 2px; }
nav { display: flex; gap: .25rem; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; padding: .35rem .75rem; border-radius: 999px; font-weight: 600; }
nav a:hover { background: var(--bg); }
nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

main { padding-block: 2rem 3rem; min-height: 60vh; }

/* Würfelfarben */
.c-w { background: var(--w); } .c-y { background: var(--y); } .c-r { background: var(--r); }
.c-o { background: var(--o); } .c-b { background: var(--b); } .c-g { background: var(--g); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; margin-bottom: 2.5rem; }
@media (min-width: 46rem) { .hero { grid-template-columns: 1.4fr 1fr; } }
.hero-text p { max-width: 38rem; font-size: 1.1rem; color: var(--muted); margin: 0 0 .75rem; }
.hero-hint { color: var(--ink) !important; }
.face { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; background: var(--cube-gap); border-radius: 18px; width: min(100%, 17rem); aspect-ratio: 1; justify-self: center; transform: rotate(-3deg); }
.face button { border: 0; border-radius: 10px; cursor: pointer; padding: 0; box-shadow: inset 0 -4px 0 rgba(0,0,0,.14); }
.face button:active { transform: scale(.94); }

/* Filter */
.filters { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.search input { width: 100%; max-width: 28rem; padding: .7rem 1rem; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 10px; }
.search input:focus { border-color: var(--accent); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: .3rem .9rem; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.count { color: var(--muted); margin: 0 0 1rem; }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; gap: .5rem; background: var(--paper); border: 2px solid var(--line); border-top: 8px solid var(--lvc, var(--line)); border-radius: 12px; padding: 1rem 1.1rem 1.1rem; color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--ink); border-top-color: var(--lvc, var(--ink)); }
.card[hidden] { display: none; }
.card h2 { margin: 0; font-size: 1.15rem; }
.card .sub { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.lv-1 { --lvc: var(--lv1); } .lv-2 { --lvc: var(--lv2); } .lv-3 { --lvc: var(--lv3); } .lv-4 { --lvc: var(--lv4); }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.meta li { font-size: .82rem; font-weight: 600; padding: .1rem .55rem; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.diff { margin: 0; display: flex; gap: 4px; }
.dot { width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--line); }
.dot.on { background: var(--lvc, var(--ink)); border-color: var(--lvc, var(--ink)); }
.empty { color: var(--muted); }

/* Methodenseite */
.crumbs { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.page-head { border-left: 10px solid var(--lvc, var(--ink)); padding-left: 1rem; margin-bottom: 1.5rem; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 .75rem; }
.summary { max-width: 42rem; font-size: 1.05rem; }
.summary p { margin: 0 0 .75rem; }
.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.proscons > div { background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.proscons ul { margin: 0; padding-left: 1.2rem; }

.progress-box { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: .75rem 1rem; margin: 1.5rem 0; }
.progress-box label { font-weight: 700; }
progress { flex: 1; min-width: 8rem; height: 14px; accent-color: var(--lv1); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.step { counter-increment: s; position: relative; background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem 1.25rem 4rem; }
.step::before { content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; font: 800 1.1rem var(--font-head); background: var(--lvc, var(--ink)); color: #fff; border-radius: 8px; }
.step.is-done { border-color: var(--lv1); }
.step.is-done::before { content: "✓"; }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.done { font-size: .9rem; color: var(--muted); cursor: pointer; }
.done input { width: 1.05rem; height: 1.05rem; vertical-align: -2px; accent-color: var(--lv1); }
.step p { margin: 0 0 .7rem; max-width: 42rem; }

.alg { margin: .8rem 0; background: var(--code-bg); color: var(--code-ink); border-radius: 10px; padding: .75rem 1rem; max-width: 42rem; }
.alg-name { font-weight: 700; font-size: .9rem; margin-bottom: .25rem; color: #aebbd3; }
.alg-moves { display: block; font: 600 1.15rem/1.5 var(--font-mono); word-break: break-word; }
.alg-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.btn-s { font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none; color: #e8edf7; background: transparent; border: 1.5px solid #4a5670; border-radius: 8px; padding: .25rem .7rem; }
.btn-s:hover { border-color: #e8edf7; }
.alg .alg-note { margin: .5rem 0 0; font-size: .88rem; color: #aebbd3; }
.back { margin-top: 2rem; }

/* Tabellen, Fließtext */
.table-scroll { overflow-x: auto; margin: 1rem 0; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; min-width: 32rem; }
.compare th, .compare td { text-align: left; padding: .65rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--bg); font-family: var(--font-head); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.pill { display: inline-block; padding: .05rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--lvc); color: #fff; }
.lv-2.pill { color: #1b1500; }
code { font-family: var(--font-mono); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 0 .35rem; }
.prose { max-width: 44rem; }
.prose dt { font-weight: 700; margin-top: .8rem; }
.prose dd { margin: 0 0 .25rem; }

/* Footer */
.foot { border-top: 2px solid var(--ink); background: var(--paper); color: var(--muted); font-size: .92rem; }
.foot-in { display: flex; gap: 1.25rem; flex-wrap: wrap; padding-block: 1rem; }

/* Admin */
.admin-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.admin-bar form { display: inline; }
.notice { padding: .75rem 1rem; border-radius: 10px; border: 2px solid var(--lv1); background: var(--paper); margin-bottom: 1rem; }
.notice.err { border-color: var(--lv3); }
.form { display: grid; gap: 1rem; max-width: 44rem; }
.form label { display: grid; gap: .25rem; font-weight: 600; }
.form input[type=text], .form input[type=password], .form input[type=number], .form select, .form textarea {
    font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 8px; padding: .55rem .7rem; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; }
.form .check { display: flex; align-items: center; gap: .5rem; }
.form .hint { font-weight: 400; font-size: .88rem; color: var(--muted); }
.btn { font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); border-radius: 10px; padding: .55rem 1.1rem; }
.btn:hover { filter: brightness(1.08); }
.btn.sec { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.sec:hover { border-color: var(--ink); }
.btn.danger { background: var(--lv3); border-color: var(--lv3); color: #fff; }
.btn.small { padding: .25rem .7rem; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.actions form { display: inline; }
fieldset.step-box { border: 2px solid var(--line); border-radius: 12px; padding: 1rem; background: var(--paper); display: grid; gap: .8rem; margin: 0; }
fieldset.step-box legend { font-weight: 800; padding: 0 .4rem; }
.alg-box { border: 2px dashed var(--line); border-radius: 10px; padding: .8rem; display: grid; gap: .6rem; }
.alg-box input[name$="[moves]"] { font-family: var(--font-mono); }
.login { max-width: 26rem; }
.admin-meta { color: var(--muted); }
td.act { white-space: nowrap; }
td.act form { display: inline; }

@media (max-width: 40rem) {
    .step { padding: 3.6rem 1rem 1.1rem 1rem; }
    .hero .face { order: -1; width: min(70%, 12rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.lv-2 .step::before { color: #1b1500; }

/* ---------- Algorithmen: Diagramme, Animation, Bibliothek ---------- */
.diagram { display: inline-block; width: 6.5rem; height: 6.5rem; flex: none; }
.diagram svg { width: 100%; height: 100%; display: block; }
.alg-top { display: flex; gap: .9rem; align-items: flex-start; }
.alg-top .diagram { background: #1a2130; border-radius: 10px; padding: 4px; width: 6rem; height: 6rem; }
.alg-main { flex: 1; min-width: 0; }

.cv { margin: .8rem 0 .2rem; background: #0b0f18; border: 1px solid #2a3345; border-radius: 12px; padding: .75rem; color: #e8edf7; max-width: 42rem; }
.cv-error { margin: .6rem 0 0; color: #ffb4a9; font-size: .9rem; }
.cv-stage { height: 250px; perspective: 900px; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.cv-stage.is-drag { cursor: grabbing; }
.cv-cube { position: relative; width: 0; height: 0; transform-style: preserve-3d; }
.cv-cubie { position: absolute; width: var(--s); height: var(--s); left: calc(var(--s) / -2); top: calc(var(--s) / -2); transform-style: preserve-3d; }
.cv-face { position: absolute; inset: 0; background: #0d1016; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.cv-face i { display: block; width: 88%; height: 88%; border-radius: 14%; }
.f-F { transform: translateZ(calc(var(--s) / 2)); }
.f-B { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.f-R { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.f-L { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.f-U { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.f-D { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.k-y { background: #f6c500; } .k-w { background: #f4f4ef; } .k-g { background: #1f9d4b; }
.k-b { background: #1f5fbf; } .k-r { background: #c8322b; } .k-o { background: #f28a1f; }

.cv-moves { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: .5rem 0; }
.cv-m { font: 600 .95rem var(--font-mono); padding: .1rem .5rem; border-radius: 6px; background: #1a2130; color: #7f8aa3; border: 1px solid transparent; }
.cv-m.is-done { color: #e8edf7; }
.cv-m.is-next { border-color: #f6c500; color: #f6c500; background: #1f2433; }
.cv-ctrl { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.cv-ctrl button { font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; color: #e8edf7; background: transparent; border: 1.5px solid #4a5670; border-radius: 8px; padding: .3rem .7rem; }
.cv-ctrl button:hover { border-color: #e8edf7; }
.cv-ctrl .cv-main { background: #e8edf7; color: #0b0f18; border-color: #e8edf7; min-width: 6.5rem; }
.cv-speed { font-size: .85rem; color: #aebbd3; margin-left: auto; }
.cv-speed select { font: inherit; color: #e8edf7; background: #1a2130; border: 1px solid #4a5670; border-radius: 6px; padding: .15rem .3rem; }
.cv-hint { margin: .5rem 0 0 !important; font-size: .8rem; color: #8995ad; }

/* Bibliothek */
.set-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.set-nav a { text-decoration: none; padding: .3rem .85rem; border: 2px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--paper); font-weight: 600; font-size: .92rem; }
.set-nav a:hover { border-color: var(--ink); }
.set-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.group { margin: 2rem 0 1rem; }
.group h2 { margin-bottom: .75rem; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
.case { background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: .9rem 1rem 1rem; }
.case[hidden] { display: none; }
.case h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.case .alg { margin: 0; max-width: none; }
.case .alg-moves { font-size: 1rem; }
.case .alts { margin: .6rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .9rem; color: var(--muted); }
.case .alts code { font-size: .88rem; word-break: break-word; }
.case .alt-label { font-weight: 600; color: var(--ink); }
.case .btn-s.light, .alg .btn-s { color: #e8edf7; }
.case-note { font-size: .88rem; color: var(--muted); margin: .4rem 0 0; }
.see-also { margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.see-also a { text-decoration: none; padding: .45rem 1rem; border-radius: 10px; border: 2px solid var(--ink); color: var(--ink); font-weight: 700; background: var(--paper); }
.see-also a:hover { background: var(--ink); color: var(--paper); }

/* Lernplan und Fingertricks */
.week { background: var(--paper); border: 2px solid var(--line); border-left: 10px solid var(--accent); border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 1rem; }
.week h2 { margin-bottom: .4rem; }
.week ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.tip { border: 2px dashed var(--line); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; background: var(--paper); }
.tip p { margin: 0; }
.alg-moves { background: transparent; border: 0; padding: 0; color: inherit; border-radius: 0; }
.mono, textarea.mono { font-family: var(--font-mono); font-size: .88rem; }

/* ---------- Trainer ---------- */
.trainer { margin-bottom: 2rem; }
.tr-top { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.tr-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tr-chip { background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: .15rem .8rem; font-size: .92rem; }
.tr-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.tr-tab { font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: .4rem .9rem; }
.tr-tab:hover { border-color: var(--ink); }
.tr-tab.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tr-card { background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem 1.25rem; max-width: 46rem; }
.tr-center { text-align: center; margin-inline: auto; }
.tr-center .actions { justify-content: center; }
.tr-kind { margin: 0 0 .75rem; color: var(--muted); font-size: .92rem; }
.tr-case { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem; }
.tr-case-text { flex: 1; min-width: 12rem; }
.tr-case-text p { margin: 0 0 .75rem; }
.tr-diagram { width: 9rem; height: 9rem; background: #1a2130; border-radius: 12px; padding: 6px; }
.tr-static { width: min(100%, 15rem); flex: none; padding: 0 !important; margin: 0 !important; }
.tr-static.cv .cv-stage { height: 190px; }
.tr-answer h3 { margin: 0 0 .5rem; }
.tr-rate { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tr-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.tr-opt { text-align: left; }
.tr-opt.is-right { background: #1f9d4b; border-color: #1f9d4b; color: #fff; }
.tr-opt.is-wrong { background: #c8322b; border-color: #c8322b; color: #fff; }
.tr-opt:disabled { cursor: default; }
.tr-feedback { margin: .75rem 0; font-weight: 600; }
.tr-feedback.ok { color: #1f9d4b; } .tr-feedback.bad { color: #c8322b; }
.tr-steps { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: .6rem; }
.tr-setup { margin: .5rem 0 0; }
.tr-time { font: 700 2.6rem/1.1 var(--font-mono); margin: 0 0 .75rem; }
kbd { font: 600 .75rem var(--font-mono); background: rgba(127,127,127,.2); border-radius: 4px; padding: 0 .35rem; margin-left: .25rem; }
.tr-check { display: flex; align-items: center; gap: .5rem; margin: .4rem 0; }
.tr-sets { display: grid; gap: .1rem; margin-bottom: 1rem; }
.tr-field { display: flex; align-items: center; gap: .6rem; margin: .5rem 0; }
.tr-field input { width: 5rem; font: inherit; padding: .35rem .5rem; border: 2px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.tr-file { position: relative; overflow: hidden; }
.tr-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.trainer .hint { color: var(--muted); font-size: .9rem; margin: .25rem 0 .75rem; }
.trainer h2 { margin-top: 1rem; }
.tr-set h2 { margin: 1.5rem 0 .25rem; }
.tr-group { margin: .9rem 0 .4rem; font-size: .95rem; color: var(--muted); font-family: var(--font-body); font-weight: 600; }
.tr-tiles { display: flex; flex-wrap: wrap; gap: .35rem; }
.tile { font: 700 .82rem var(--font-mono); min-width: 2.6rem; height: 2.4rem; padding: 0 .4rem; border-radius: 8px; border: 2px solid var(--line); cursor: pointer; color: var(--ink); background: var(--paper); position: relative; }
.tile:hover { border-color: var(--ink); }
.tile.is-sel { outline: 3px solid var(--accent); outline-offset: 1px; }
.tile.is-due::after { content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: #c8322b; border: 2px solid var(--paper); }
.st-new { background: var(--paper); }
.st-learn { background: #f6b3ad; border-color: #e27c72; color: #3a0b07; }
.st-low { background: #f9d59a; border-color: #e4a94a; color: #3a2704; }
.st-mid { background: #f3e68a; border-color: #cdbb36; color: #332d02; }
.st-high { background: #9ed9ad; border-color: #4fae68; color: #06260f; }
.tr-legend { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-size: .9rem; margin-bottom: 1rem; }
.tr-legend .tile { min-width: 1.4rem; height: 1.4rem; cursor: default; display: inline-block; vertical-align: middle; padding: 0; }
.tile-due { width: 10px; height: 10px; border-radius: 50%; background: #c8322b; display: inline-block; }
.tr-detail { margin-top: 1.5rem; }

.forgot { margin: 1rem 0; }
.forgot summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.forgot p { margin: .6rem 0 0; color: var(--muted); font-size: .95rem; }

.diagram[data-diagram="f2l"] { width: 8.5rem; height: 8.5rem; }
.alg-top .diagram[data-diagram="f2l"] { width: 8.5rem; height: 8.5rem; }

.page-head .lede p { margin: 0 0 .7rem; }

.inline-form { display: inline; margin: 0; }
.foot .link { color: var(--muted); }

.actions input[type=password] { font: inherit; padding: .3rem .5rem; border: 2px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); width: 11rem; }
td.act form { display: inline-flex; gap: .4rem; flex-wrap: wrap; }
