/* RP-SEO-010 · Professor's starter field-lab console */

.starter-lab-page {
    --sl-navy: #10243a;
    --sl-navy-2: #183653;
    --sl-ink: #17212b;
    --sl-paper: #fffaf0;
    --sl-paper-2: #f5eddd;
    --sl-red: #e2493d;
    --sl-yellow: #f6c84c;
    --sl-blue: #2d78a8;
    --sl-green: #4d8c57;
    --sl-fire: #d75a3d;
    --sl-water: #387fae;
    --sl-muted: #65717d;
    --sl-line: rgba(16, 36, 58, 0.16);
    --sl-console-line: rgba(255, 255, 255, 0.14);
    --sl-shadow: 0 24px 60px rgba(28, 35, 47, 0.16);
}

.starter-lab-page main {
    overflow: clip;
}

.starter-lab-page button,
.starter-lab-page input,
.starter-lab-page select {
    font: inherit;
}

.starter-lab-page button,
.starter-lab-page a {
    -webkit-tap-highlight-color: transparent;
}

.starter-lab-page button:focus-visible,
.starter-lab-page a:focus-visible,
.starter-lab-page input:focus-visible,
.starter-lab-page summary:focus-visible {
    outline: 3px solid var(--sl-yellow);
    outline-offset: 3px;
}

.starter-hero {
    position: relative;
    padding: 2.5rem 0 2.1rem;
    color: var(--sl-ink);
    background:
        linear-gradient(rgba(16, 36, 58, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 36, 58, 0.045) 1px, transparent 1px),
        var(--sl-paper);
    background-size: 28px 28px;
    border-bottom: 1px solid rgba(16, 36, 58, 0.12);
}

.starter-hero::before,
.starter-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.starter-hero::before {
    width: 460px;
    height: 460px;
    border: 48px solid rgba(226, 73, 61, 0.07);
    border-radius: 50%;
    top: -250px;
    right: -110px;
}

.starter-hero::after {
    width: 180px;
    height: 14px;
    left: 0;
    bottom: -7px;
    background: repeating-linear-gradient(90deg, var(--sl-yellow) 0 16px, var(--sl-navy) 16px 32px);
}

.starter-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: 3rem;
    align-items: center;
}

.starter-breadcrumb {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 1.2rem;
    color: var(--sl-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.starter-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.lab-kicker,
.console-label,
.section-kicker {
    margin: 0 0 0.7rem;
    color: var(--sl-red);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.starter-lab-page .starter-hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--sl-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 4vw, 4.2rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.starter-hero-lead {
    max-width: 800px;
    margin: 1.25rem 0 1.3rem;
    color: #3c4853;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

.hero-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0 1.1rem;
}

.hero-proof-row span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.55rem 0.7rem;
    color: var(--sl-navy);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(16, 36, 58, 0.14);
    border-radius: 5px;
    box-shadow: 2px 2px 0 rgba(16, 36, 58, 0.08);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-proof-row strong {
    color: var(--sl-red);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1rem;
}

.starter-hero-card {
    position: relative;
    padding: 1.1rem 1.2rem 1.2rem;
    background: #fffdf8;
    border: 1px solid rgba(16, 36, 58, 0.18);
    border-radius: 8px 8px 22px 8px;
    box-shadow: 12px 14px 0 rgba(16, 36, 58, 0.08), var(--sl-shadow);
    transform: rotate(1.2deg);
}

.starter-hero-card::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 24px;
    top: -13px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    background: rgba(246, 200, 76, 0.68);
    box-shadow: 0 1px 0 rgba(16, 36, 58, 0.1);
}

.hero-card-stamp {
    display: inline-block;
    padding: 0.32rem 0.5rem;
    color: var(--sl-red);
    border: 2px solid currentColor;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    transform: rotate(-3deg);
}

.hero-card-orbit {
    position: relative;
    width: min(180px, 65vw);
    aspect-ratio: 1;
    margin: 0.65rem auto 0.55rem;
    border: 1px dashed rgba(16, 36, 58, 0.35);
    border-radius: 50%;
}

.hero-card-orbit::before,
.hero-card-orbit::after {
    content: "";
    position: absolute;
    inset: 19%;
    border: 1px solid rgba(16, 36, 58, 0.15);
    border-radius: 50%;
}

.hero-card-orbit::after {
    inset: 42%;
    background: var(--sl-navy);
    border: 0;
}

.orbit-core {
    position: absolute;
    inset: 42%;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-weight: 900;
}

.orbit-ball {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 36, 58, 0.25), 0 4px 8px rgba(16, 36, 58, 0.18);
}

.orbit-grass { left: 8%; top: 49%; background: var(--sl-green); }
.orbit-fire { right: 15%; top: 14%; background: var(--sl-fire); }
.orbit-water { right: 7%; bottom: 18%; background: var(--sl-water); }

.starter-hero-card p {
    margin: 0;
    color: #4e5964;
    font-size: 0.84rem;
    line-height: 1.55;
}

.starter-hero-card strong {
    color: var(--sl-navy);
}

.starter-app-section {
    position: relative;
    padding: 2.3rem 0 4.5rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(246, 200, 76, 0.14), transparent 22%),
        radial-gradient(circle at 88% 72%, rgba(45, 120, 168, 0.17), transparent 28%),
        var(--sl-navy);
}

.starter-console {
    position: relative;
    overflow: hidden;
    color: #f5f8fb;
    background: rgba(10, 27, 43, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.36);
}

.starter-console::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 24px 24px;
}

.console-masthead {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--sl-console-line);
    background: rgba(255, 255, 255, 0.035);
}

.console-masthead h2,
.output-toolbar h2,
.recent-heading-row h3 {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.025em;
}

.console-masthead h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.console-label {
    color: var(--sl-yellow);
}

.masthead-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.masthead-roll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.55rem 0.8rem;
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border: 0;
    border-radius: 7px;
    box-shadow: 0 4px 0 #a87f1c;
    font-size: 0.74rem;
    font-weight: 950;
    cursor: pointer;
    transition: 140ms ease;
}

.masthead-roll:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 0 #a87f1c;
}

.masthead-roll:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #a87f1c;
}

.masthead-roll:disabled {
    color: #68717a;
    background: #aab2b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.masthead-roll > span:first-child {
    font-size: 1rem;
}

.dataset-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.45rem 0.65rem;
    color: #cfdae4;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
}

.indicator-light {
    width: 9px;
    height: 9px;
    background: var(--sl-yellow);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(246, 200, 76, 0.13), 0 0 14px rgba(246, 200, 76, 0.6);
    animation: indicator-pulse 1.4s ease-in-out infinite;
}

.dataset-indicator[data-status="ready"] .indicator-light {
    background: #73d88a;
    box-shadow: 0 0 0 4px rgba(115, 216, 138, 0.13), 0 0 14px rgba(115, 216, 138, 0.5);
    animation: none;
}

.dataset-indicator[data-status="fallback"] .indicator-light {
    background: var(--sl-yellow);
    animation: none;
}

.dataset-indicator[data-status="error"] .indicator-light {
    background: #ff776d;
    animation: none;
}

.dataset-indicator button {
    min-height: 30px;
    padding: 0.2rem 0.55rem;
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border: 0;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    cursor: pointer;
}

@keyframes indicator-pulse {
    50% { opacity: 0.4; transform: scale(0.8); }
}

.starter-console-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
    min-height: 760px;
}

.starter-controls {
    padding: 1.25rem;
    border-right: 1px solid var(--sl-console-line);
    background: rgba(6, 20, 33, 0.62);
}

.control-block {
    min-width: 0;
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.control-block legend {
    padding: 0 0.45rem;
    color: var(--sl-yellow);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.control-block label,
.control-heading-row > span:first-child {
    color: #eaf1f6;
    font-size: 0.82rem;
    font-weight: 800;
}

.control-note {
    margin: 0.65rem 0 0;
    color: #9db0c0;
    font-size: 0.74rem;
    line-height: 1.55;
}

.mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.mode-tab {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
    min-height: 67px;
    padding: 0.62rem;
    color: #c5d2dd;
    text-align: left;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    cursor: pointer;
    transition: 160ms ease;
}

.mode-tab:hover {
    color: #fff;
    border-color: rgba(246, 200, 76, 0.48);
    transform: translateY(-1px);
}

.mode-tab.is-active {
    color: #fff;
    background: rgba(246, 200, 76, 0.1);
    border-color: var(--sl-yellow);
    box-shadow: inset 4px 0 0 var(--sl-yellow);
}

.mode-code {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border-radius: 50%;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    font-weight: 900;
}

.mode-tab strong,
.mode-tab small {
    display: block;
}

.mode-tab strong {
    font-size: 0.78rem;
}

.mode-tab small {
    margin-top: 0.14rem;
    color: #8fa4b6;
    font-size: 0.65rem;
    line-height: 1.3;
}

.mode-tab.is-active small {
    color: #cdd8e0;
}

.control-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.mini-actions {
    display: inline-flex;
    gap: 0.35rem;
}

.mini-actions button {
    min-width: 42px;
    min-height: 30px;
    padding: 0.25rem 0.48rem;
    color: #b7c6d1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
}

.mini-actions button:hover {
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border-color: var(--sl-yellow);
}

.generation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
}

.generation-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.35rem 0.5rem;
    color: #9eb1c0;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 6px;
    cursor: pointer;
}

.generation-chip b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--sl-yellow);
    border: 1px solid rgba(246, 200, 76, 0.45);
    border-radius: 50%;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.68rem;
}

.generation-chip span {
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 700;
    text-overflow: ellipsis;
}

.generation-chip.is-active {
    color: #fff;
    background: rgba(45, 120, 168, 0.22);
    border-color: rgba(103, 181, 231, 0.66);
}

.generation-chip.is-active b {
    color: var(--sl-navy);
    background: #86c8ef;
    border-color: #86c8ef;
}

.element-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.48rem;
}

.element-chip {
    min-height: 42px;
    padding: 0.45rem 0.5rem;
    color: #aebdc8;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
}

.element-chip span {
    margin-right: 0.22rem;
}

.element-chip.is-active.element-grass { color: #fff; background: rgba(77, 140, 87, 0.3); border-color: #6eb17a; }
.element-chip.is-active.element-fire { color: #fff; background: rgba(215, 90, 61, 0.3); border-color: #e07e67; }
.element-chip.is-active.element-water { color: #fff; background: rgba(56, 127, 174, 0.3); border-color: #72add3; }

.element-filter[aria-disabled="true"] {
    opacity: 0.46;
}

.element-filter[aria-disabled="true"] button {
    pointer-events: none;
}

.switch-row,
.draft-size-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.switch-row > span:first-child,
.draft-size-row > span:first-child {
    min-width: 0;
}

.switch-row strong,
.switch-row small,
.draft-size-row strong,
.draft-size-row small {
    display: block;
}

.switch-row strong,
.draft-size-row strong {
    color: #e8eff5;
    font-size: 0.77rem;
}

.switch-row small,
.draft-size-row small {
    margin-top: 0.18rem;
    color: #8fa3b3;
    font-size: 0.66rem;
    line-height: 1.4;
}

.switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-ui {
    position: relative;
    flex: 0 0 auto;
    width: 45px;
    height: 25px;
    background: #344b5e;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    cursor: pointer;
    transition: 160ms ease;
}

.switch-ui::after {
    content: "";
    position: absolute;
    width: 17px;
    height: 17px;
    left: 3px;
    top: 3px;
    background: #d9e1e8;
    border-radius: 50%;
    transition: 160ms ease;
}

.switch-row input:checked + .switch-ui {
    background: var(--sl-yellow);
    border-color: var(--sl-yellow);
}

.switch-row input:checked + .switch-ui::after {
    left: 23px;
    background: var(--sl-navy);
}

.switch-row input:focus-visible + .switch-ui {
    outline: 3px solid var(--sl-yellow);
    outline-offset: 3px;
}

.segmented-control {
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 3px;
    background: rgba(0, 0, 0, 0.23);
    border-radius: 7px;
}

.segmented-control button {
    min-width: 44px;
    min-height: 34px;
    color: #a9bac7;
    background: transparent;
    border: 0;
    border-radius: 5px;
    font-weight: 900;
    cursor: pointer;
}

.segmented-control button.is-active {
    color: var(--sl-navy);
    background: var(--sl-yellow);
}

.seed-block label {
    display: block;
    margin-bottom: 0.45rem;
}

.seed-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.seed-row input {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    color: #f5f8fb;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 7px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.76rem;
}

.secondary-button,
.reset-button {
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    color: #d8e1e8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
}

.secondary-button:hover,
.reset-button:hover {
    color: var(--sl-navy);
    background: #fff;
}

.pool-readout {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin: 1rem 0;
    padding: 0.85rem;
    background: rgba(246, 200, 76, 0.09);
    border: 1px solid rgba(246, 200, 76, 0.32);
    border-radius: 9px;
}

.readout-number {
    display: grid;
    place-items: center;
    width: 72px;
    height: 58px;
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border-radius: 7px;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
}

.pool-readout strong,
.pool-readout small {
    display: block;
}

.pool-readout strong {
    color: #fff;
    font-size: 0.86rem;
}

.pool-readout small {
    margin-top: 0.22rem;
    color: #aab9c5;
    font-size: 0.7rem;
    line-height: 1.4;
}

.primary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
}

.roll-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 56px;
    padding: 0.75rem 1rem;
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 5px 0 #a87f1c, 0 12px 26px rgba(0, 0, 0, 0.2);
    font-weight: 950;
    cursor: pointer;
    transition: 140ms ease;
}

.roll-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 #a87f1c, 0 14px 28px rgba(0, 0, 0, 0.23);
}

.roll-button:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #a87f1c, 0 5px 12px rgba(0, 0, 0, 0.18);
}

.roll-button:disabled {
    color: #68717a;
    background: #aab2b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.roll-button > span:first-child {
    font-size: 1.35rem;
}

.starter-output {
    min-width: 0;
    padding: 1.35rem;
}

.output-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.output-toolbar h2 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.output-toolbar p:last-child {
    margin: 0.28rem 0 0;
    color: #94a8b8;
    font-size: 0.78rem;
}

.output-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.output-toolbar-actions button,
.result-action-bar button,
.result-action-bar a,
.recent-heading-row button {
    min-height: 38px;
    padding: 0.45rem 0.65rem;
    color: #dbe5ec;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    font-size: 0.7rem;
    font-weight: 900;
    cursor: pointer;
}

.output-toolbar-actions button:hover,
.result-action-bar button:hover,
.result-action-bar a:hover,
.recent-heading-row button:hover {
    color: var(--sl-navy);
    background: #fff;
}

.output-toolbar-actions button[aria-pressed="true"] {
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border-color: var(--sl-yellow);
}

.inline-status {
    min-height: 42px;
    margin-bottom: 1rem;
    padding: 0.65rem 0.8rem;
    color: #cad7e0;
    background: rgba(45, 120, 168, 0.11);
    border-left: 4px solid #5ea0ca;
    border-radius: 4px 8px 8px 4px;
    font-size: 0.76rem;
    line-height: 1.55;
}

.inline-status[data-tone="success"] { background: rgba(77, 140, 87, 0.13); border-left-color: #6eb17a; }
.inline-status[data-tone="warning"] { background: rgba(246, 200, 76, 0.11); border-left-color: var(--sl-yellow); }
.inline-status[data-tone="error"] { background: rgba(226, 73, 61, 0.13); border-left-color: #ff776d; }

.wheel-stage {
    display: grid;
    justify-items: center;
    margin: 0.5rem 0 1.15rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
}

.wheel-shell {
    position: relative;
    width: min(520px, 100%);
    aspect-ratio: 1;
    filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.32));
}

#starterWheel {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: rotate(0deg);
    transition: transform 3.8s cubic-bezier(0.12, 0.72, 0.17, 1);
}

#starterWheel.is-spinning {
    pointer-events: none;
}

.wheel-pointer {
    position: absolute;
    z-index: 5;
    width: 0;
    height: 0;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 38px solid var(--sl-yellow);
    filter: drop-shadow(0 4px 1px rgba(0, 0, 0, 0.32));
}

.wheel-hub {
    position: absolute;
    z-index: 4;
    inset: 40%;
    display: grid;
    place-items: center;
    align-content: center;
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border: 8px solid #fff8e3;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--sl-navy), 0 8px 24px rgba(0, 0, 0, 0.28);
}

.wheel-hub span {
    font-family: Georgia, serif;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1;
}

.wheel-hub small {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: clamp(0.45rem, 1vw, 0.7rem);
    font-weight: 900;
    letter-spacing: 0.14em;
}

.wheel-caption {
    max-width: 600px;
    margin: 0.8rem 0 0;
    color: #9fb0bd;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.55;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    min-height: 250px;
}

.result-grid[data-count="1"] {
    grid-template-columns: minmax(260px, 430px);
    justify-content: center;
}

.starter-dossier {
    position: relative;
    overflow: hidden;
    min-width: 0;
    color: var(--sl-ink);
    background:
        linear-gradient(rgba(16, 36, 58, 0.035) 1px, transparent 1px),
        var(--sl-paper);
    background-size: 100% 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px 8px 18px 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    animation: dossier-in 320ms ease both;
}

@keyframes dossier-in {
    from { opacity: 0; transform: translateY(10px) rotate(0.6deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

.starter-dossier::before {
    content: "";
    display: block;
    height: 7px;
    background: var(--dossier-color, var(--sl-blue));
}

.starter-dossier[data-element="grass"] { --dossier-color: var(--sl-green); }
.starter-dossier[data-element="fire"] { --dossier-color: var(--sl-fire); }
.starter-dossier[data-element="water"] { --dossier-color: var(--sl-water); }
.starter-dossier[data-element="partner"] { --dossier-color: var(--sl-yellow); }

.starter-dossier.is-locked {
    box-shadow: 0 0 0 3px var(--sl-yellow), 0 14px 32px rgba(0, 0, 0, 0.26);
}

.dossier-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem 0;
}

.dossier-index,
.dossier-region,
.dossier-special {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.dossier-index { color: var(--sl-red); }
.dossier-region { color: var(--sl-muted); text-align: right; }
.dossier-special {
    display: inline-block;
    padding: 0.2rem 0.35rem;
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border-radius: 3px;
}

.dossier-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 152px;
    margin: 0.4rem 0.65rem 0;
    background: radial-gradient(circle, rgba(45, 120, 168, 0.12), transparent 64%);
}

.dossier-art::before,
.dossier-art::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.dossier-art::before {
    width: 118px;
    height: 118px;
    border: 1px dashed rgba(16, 36, 58, 0.18);
    border-radius: 50%;
}

.dossier-art::after {
    width: 1px;
    height: 120px;
    background: rgba(16, 36, 58, 0.08);
    box-shadow: 60px 0 rgba(16, 36, 58, 0.05), -60px 0 rgba(16, 36, 58, 0.05);
}

.dossier-art img {
    position: relative;
    z-index: 2;
    width: 142px;
    height: 142px;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 10px 8px rgba(16, 36, 58, 0.18));
}

.dossier-initials {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    color: var(--sl-navy);
    background: var(--sl-paper-2);
    border: 2px solid rgba(16, 36, 58, 0.22);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
}

.dossier-body {
    padding: 0 0.8rem 0.8rem;
}

.dossier-name-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(16, 36, 58, 0.13);
}

.dossier-name-row h3 {
    min-width: 0;
    margin: 0;
    color: var(--sl-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.dossier-name-row span {
    flex: 0 0 auto;
    color: var(--sl-red);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.68rem;
    font-weight: 900;
}

.dossier-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0.65rem 0;
}

.dossier-fact {
    min-width: 0;
    padding: 0.42rem 0.45rem;
    background: rgba(16, 36, 58, 0.045);
    border-left: 3px solid rgba(16, 36, 58, 0.14);
}

.dossier-fact span,
.dossier-fact strong {
    display: block;
}

.dossier-fact span {
    color: var(--sl-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dossier-fact strong {
    overflow: hidden;
    margin-top: 0.14rem;
    color: var(--sl-navy);
    font-size: 0.74rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.dossier-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-height: 24px;
    margin-bottom: 0.55rem;
}

.dossier-types .type-badge {
    padding: 0.25rem 0.48rem;
    border-radius: 3px;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
}

.dossier-note {
    min-height: 44px;
    margin: 0;
    color: #55616c;
    font-size: 0.74rem;
    line-height: 1.5;
}

.dossier-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.dossier-actions button,
.dossier-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.35rem 0.45rem;
    color: var(--sl-navy);
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(16, 36, 58, 0.16);
    border-radius: 5px;
    font-size: 0.66rem;
    font-weight: 900;
    cursor: pointer;
}

.dossier-actions button:hover,
.dossier-actions a:hover {
    color: #fff;
    background: var(--sl-navy);
}

.dossier-actions .lock-card[aria-pressed="true"] {
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border-color: #c99b28;
}

.dossier-actions button:disabled {
    color: #8d959c;
    background: #e4e6e7;
    cursor: not-allowed;
}

.result-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 300px;
    padding: 2rem;
    color: #a8bac7;
    text-align: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 12px;
}

.result-empty strong,
.result-empty span {
    display: block;
}

.result-empty strong {
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1.4rem;
}

.result-empty span {
    max-width: 520px;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.55;
}

.result-empty button {
    min-height: 42px;
    margin-top: 1rem;
    padding: 0.5rem 0.8rem;
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border: 0;
    border-radius: 6px;
    font-weight: 900;
    cursor: pointer;
}

.result-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.result-action-bar .action-primary {
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border-color: var(--sl-yellow);
}

.recent-rolls {
    margin-top: 1.3rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.recent-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.recent-heading-row h3 {
    font-size: 1.1rem;
}

.recent-list {
    display: grid;
    gap: 0.45rem;
}

.recent-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    min-height: 50px;
    padding: 0.5rem 0.6rem;
    color: #dbe5eb;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
}

.recent-mode {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border-radius: 50%;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.62rem;
    font-weight: 900;
}

.recent-copy {
    min-width: 0;
}

.recent-copy strong,
.recent-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-copy strong {
    color: #edf3f7;
    font-size: 0.72rem;
}

.recent-copy small {
    margin-top: 0.16rem;
    color: #8fa3b3;
    font-size: 0.62rem;
}

.recent-item button {
    min-height: 34px;
    padding: 0.35rem 0.55rem;
    color: #dbe5eb;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 5px;
    font-size: 0.62rem;
    font-weight: 900;
    cursor: pointer;
}

.recent-item button:hover {
    color: var(--sl-navy);
    background: #fff;
}

.recent-empty {
    margin: 0;
    padding: 0.8rem;
    color: #8298a8;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    font-size: 0.72rem;
}

.starter-reference-section,
.starter-use-section,
.related-tools-section {
    padding: 4.5rem 0;
    background: var(--sl-paper);
}

.starter-reference-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 1.2rem;
}

.reference-card,
.use-panel {
    padding: clamp(1.2rem, 3vw, 2rem);
    color: var(--sl-ink);
    background: #fffdf8;
    border: 1px solid rgba(16, 36, 58, 0.14);
    border-radius: 10px;
    box-shadow: 8px 10px 0 rgba(16, 36, 58, 0.055);
}

.reference-card h2,
.guide-heading h2,
.use-panel h2,
.starter-faq-section h2,
.related-tools-section h2 {
    margin: 0;
    color: var(--sl-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.reference-card p,
.guide-heading p:last-child,
.use-panel p {
    color: #56616b;
    line-height: 1.75;
}

.partner-note-card {
    position: relative;
    overflow: hidden;
    background: var(--sl-navy);
    color: #fff;
    box-shadow: 8px 10px 0 rgba(246, 200, 76, 0.42);
}

.partner-note-card::after {
    content: "+2";
    position: absolute;
    right: -0.25rem;
    bottom: -1.8rem;
    color: rgba(246, 200, 76, 0.13);
    font-family: Georgia, serif;
    font-size: 9rem;
    font-weight: 900;
    line-height: 1;
}

.partner-note-card h2,
.partner-note-card p {
    position: relative;
    z-index: 1;
    color: #fff;
}

.partner-note-card p {
    color: #c9d5dd;
}

.starter-table-wrap {
    overflow-x: auto;
    margin-top: 1.3rem;
    border: 1px solid rgba(16, 36, 58, 0.13);
    border-radius: 7px;
}

.starter-table-wrap table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.starter-table-wrap th,
.starter-table-wrap td {
    padding: 0.72rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(16, 36, 58, 0.09);
}

.starter-table-wrap th {
    color: #fff;
    background: var(--sl-navy);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.starter-table-wrap td {
    color: #44515d;
    font-size: 0.8rem;
}

.starter-table-wrap tbody tr:nth-child(even) {
    background: rgba(45, 120, 168, 0.04);
}

.starter-guide-section {
    padding: 4.7rem 0;
    color: #fff;
    background: var(--sl-navy);
}

.guide-heading {
    max-width: 780px;
    margin-bottom: 2rem;
}

.starter-guide-section .guide-heading h2,
.starter-guide-section .guide-heading p:last-child {
    color: #fff;
}

.starter-guide-section .guide-heading p:last-child {
    color: #bdcbd5;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.guide-card {
    position: relative;
    min-height: 250px;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.guide-number {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--sl-navy);
    background: var(--sl-yellow);
    border-radius: 50%;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
    font-weight: 900;
}

.guide-card h3,
.mode-explainer-grid h3,
.related-tool-card h3 {
    margin: 1rem 0 0.55rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    line-height: 1.1;
}

.guide-card p,
.mode-explainer-grid p {
    margin: 0;
    color: #b9c7d1;
    font-size: 0.8rem;
    line-height: 1.7;
}

.mode-explainer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mode-explainer-grid article {
    padding: 1.2rem;
    background: #15304a;
}

.mode-explainer-grid h3 {
    margin-top: 0;
    color: var(--sl-yellow);
}

.starter-use-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.check-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.3rem 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.8rem;
    color: #55616b;
    line-height: 1.65;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.05rem;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #fff;
    background: var(--sl-green);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 900;
}

.limit-panel {
    background: #fff8e4;
    border-color: rgba(246, 200, 76, 0.65);
    box-shadow: 8px 10px 0 rgba(246, 200, 76, 0.2);
}

.starter-faq-section {
    padding: 4.7rem 0;
    background: var(--sl-paper-2);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.faq-grid details {
    padding: 1rem 1.1rem;
    background: #fffdf8;
    border: 1px solid rgba(16, 36, 58, 0.13);
    border-radius: 8px;
}

.faq-grid summary {
    color: var(--sl-navy);
    font-weight: 900;
    line-height: 1.45;
    cursor: pointer;
}

.faq-grid p {
    margin: 0.75rem 0 0;
    color: #58636d;
    font-size: 0.86rem;
    line-height: 1.7;
}

.faq-grid a {
    color: var(--sl-red);
    font-weight: 800;
}

.related-tools-section {
    border-top: 1px solid rgba(16, 36, 58, 0.1);
}

.starter-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.starter-related-grid .related-tool-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 1.2rem;
    color: var(--sl-ink);
    background: #fffdf8;
    border: 1px solid rgba(16, 36, 58, 0.14);
    border-radius: 8px;
    box-shadow: 5px 6px 0 rgba(16, 36, 58, 0.055);
}

.starter-related-grid .related-tool-card > span {
    color: var(--sl-red);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.starter-related-grid .related-tool-card h3 {
    color: var(--sl-navy);
}

.starter-related-grid .related-tool-card p {
    color: #5e6872;
    font-size: 0.8rem;
    line-height: 1.65;
}

.starter-related-grid .related-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 10px 0 rgba(246, 200, 76, 0.35);
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .starter-hero-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
        gap: 1.8rem;
    }

    .starter-console-grid {
        grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    }

    .mode-tabs {
        grid-template-columns: 1fr;
    }

    .result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-grid,
    .mode-explainer-grid,
    .starter-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .starter-hero {
        padding-top: 2.4rem;
    }

    .starter-hero-grid,
    .starter-reference-grid {
        grid-template-columns: 1fr;
    }

    .starter-hero-card {
        max-width: 560px;
        justify-self: center;
        transform: rotate(0.5deg);
    }

    .starter-console-grid {
        grid-template-columns: 1fr;
    }

    .starter-controls {
        border-right: 0;
        border-bottom: 1px solid var(--sl-console-line);
    }

    .mode-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mode-tab {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .mode-tab small {
        display: none;
    }

    .result-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .starter-use-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .starter-lab-page .starter-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.6rem);
    }

    .starter-hero-lead {
        font-size: 0.98rem;
    }

    .hero-proof-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-proof-row span {
        justify-content: center;
    }

    .console-masthead,
    .output-toolbar,
    .recent-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .masthead-actions {
        width: 100%;
        justify-content: stretch;
    }

    .dataset-indicator {
        flex: 1 1 220px;
        width: 100%;
        justify-content: center;
        border-radius: 7px;
    }

    .mode-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mode-tab {
        grid-template-columns: 34px minmax(0, 1fr);
        justify-items: initial;
        text-align: left;
    }

    .mode-tab small {
        display: block;
    }

    .generation-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .result-grid,
    .result-grid[data-count="1"] {
        grid-template-columns: minmax(0, 1fr);
    }

    .dossier-art {
        min-height: 180px;
    }

    .dossier-art img {
        width: 164px;
        height: 164px;
    }

    .guide-grid,
    .mode-explainer-grid,
    .faq-grid,
    .starter-related-grid {
        grid-template-columns: 1fr;
    }

    .guide-card {
        min-height: 0;
    }

    .primary-actions {
        grid-template-columns: 1fr;
    }

    .reset-button {
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .starter-hero {
        padding: 1.6rem 0 2rem;
    }

    .starter-breadcrumb {
        margin-bottom: 0.8rem;
    }

    .lab-kicker {
        font-size: 0.64rem;
    }

    .starter-lab-page .starter-hero h1 {
        font-size: 2.55rem;
    }

    .starter-hero-lead {
        margin-top: 0.9rem;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero-proof-row span {
        padding: 0.48rem 0.35rem;
        font-size: 0.69rem;
    }

    .starter-hero-card {
        padding: 1rem;
        box-shadow: 7px 8px 0 rgba(16, 36, 58, 0.08);
    }

    .hero-card-orbit {
        width: 170px;
    }

    .starter-app-section {
        padding: 1rem 0 3rem;
    }

    .starter-console {
        border-radius: 10px;
    }

    .console-masthead,
    .starter-controls,
    .starter-output {
        padding: 0.9rem;
    }

    .masthead-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .masthead-roll {
        width: 100%;
        min-height: 48px;
    }

    .control-block {
        padding: 0.8rem;
    }

    .mode-tabs {
        grid-template-columns: 1fr;
    }

    .mode-tab {
        min-height: 58px;
    }

    .generation-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .generation-chip {
        justify-content: center;
        min-height: 48px;
        padding: 0.3rem;
    }

    .generation-chip span {
        display: none;
    }

    .element-grid {
        grid-template-columns: 1fr;
    }

    .element-chip {
        min-height: 46px;
    }

    .switch-row,
    .draft-size-row {
        align-items: flex-start;
    }

    .seed-row {
        grid-template-columns: 1fr;
    }

    .seed-row input,
    .secondary-button {
        min-height: 48px;
    }

    .pool-readout {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .readout-number {
        width: 58px;
        height: 54px;
        font-size: 1.7rem;
    }

    .roll-button {
        min-height: 58px;
    }

    .output-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .output-toolbar-actions button,
    .result-action-bar button,
    .result-action-bar a,
    .recent-heading-row button {
        min-height: 44px;
    }

    .result-action-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .result-action-bar > * {
        text-align: center;
    }

    .wheel-stage {
        padding: 0.55rem;
    }

    .wheel-pointer {
        border-left-width: 12px;
        border-right-width: 12px;
        border-top-width: 30px;
    }

    .dossier-actions button,
    .dossier-actions a {
        min-height: 44px;
    }

    .recent-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .recent-item button {
        grid-column: 1 / -1;
        min-height: 42px;
    }

    .starter-reference-section,
    .starter-guide-section,
    .starter-use-section,
    .starter-faq-section,
    .related-tools-section {
        padding: 3.2rem 0;
    }

    .reference-card,
    .use-panel {
        padding: 1rem;
        box-shadow: 5px 6px 0 rgba(16, 36, 58, 0.055);
    }
}

@media (prefers-reduced-motion: reduce) {
    .starter-lab-page *,
    .starter-lab-page *::before,
    .starter-lab-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
