/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

:root {
    --ink: #172523;
    --muted: #64716e;
    --paper: #f4f6f3;
    --paper-deep: #e8eeea;
    --line: rgba(23, 37, 35, 0.12);
    --line-strong: rgba(23, 37, 35, 0.22);
    --teal: #168b7c;
    --teal-soft: #d9eeea;
    --coral: #e86f51;
    --coral-soft: #f8ded6;
    --blue: #426fba;
    --blue-soft: #dfe8f7;
    --white: rgba(255, 255, 255, 0.88);
    --board-h: clamp(218px, 30vh, 286px);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    background: var(--paper-deep);
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
input:focus-visible,
[data-tray-key]:focus-visible,
[data-source-uuid]:focus-visible {
    outline: 3px solid rgba(22, 139, 124, 0.32);
    outline-offset: 3px;
}

.source-group:focus,
.tray-group:focus {
    outline: none;
}

.source-group:focus .source-cell,
.tray-group:focus .tray-cell {
    stroke: var(--teal);
    stroke-width: 2.5;
}

noscript {
    display: block;
    padding-top: 100px;
    font-size: 20px;
    text-align: center;
}

#v3d-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    isolation: isolate;
    overflow: hidden;
    background: transparent;
}

#v3d-container > canvas {
    position: absolute !important;
    inset: 0;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
}

.lesson-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #e9eeeb;
    background-image:
        linear-gradient(rgba(23, 37, 35, 0.036) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 37, 35, 0.036) 1px, transparent 1px),
        linear-gradient(180deg, #f8faf8 0%, #eef2ef 58%, #e2e9e5 100%);
    background-size: 32px 32px, 32px 32px, 100% 100%;
}

.lesson-backdrop::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: var(--board-h);
    width: 15px;
    background: linear-gradient(180deg, var(--coral) 0 34%, #f0b14a 34% 63%, var(--teal) 63% 100%);
    opacity: 0.82;
}

.lesson-backdrop::after {
    content: "";
    position: absolute;
    left: 34px;
    top: 104px;
    width: 44px;
    height: 8px;
    border-top: 2px solid rgba(232, 111, 81, 0.62);
    border-bottom: 2px solid rgba(22, 139, 124, 0.55);
}

.backdrop-ruler {
    position: absolute;
    left: 42px;
    top: 132px;
    bottom: calc(var(--board-h) + 26px);
    width: 1px;
    background: rgba(23, 37, 35, 0.14);
}

.backdrop-ruler::before {
    content: "";
    position: absolute;
    inset: 0 -5px;
    background: repeating-linear-gradient(180deg, transparent 0 20px, rgba(23, 37, 35, 0.18) 20px 21px);
}

.backdrop-caption {
    position: absolute;
    right: 34px;
    bottom: calc(var(--board-h) + 22px);
    color: rgba(23, 37, 35, 0.34);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
}

.lesson-ui {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 1;
    transition: opacity 260ms ease;
}

.ui-hidden .lesson-ui {
    opacity: 0;
    visibility: hidden;
}

.lesson-header {
    position: absolute;
    top: 18px;
    left: 22px;
    right: 28px;
    min-height: 68px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    gap: 18px;
    pointer-events: none;
}

.lesson-title-block {
    min-width: 0;
}

.lesson-index {
    display: block;
    margin-bottom: 3px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.lesson-title-block h1 {
    margin: 0;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.18;
    letter-spacing: 0;
}

.stage-tabs {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px;
    border: 1px solid rgba(23, 37, 35, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 28px rgba(47, 67, 62, 0.08);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.stage-tab {
    min-width: 84px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 5px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.stage-tab-number {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.stage-tab.is-active {
    background: var(--ink);
    color: #fff;
}

.stage-tab.is-active .stage-tab-number {
    border-color: rgba(255, 255, 255, 0.28);
    background: var(--teal);
    color: #fff;
}

.stage-tab:disabled {
    cursor: default;
    opacity: 0.38;
}

.stage-tab:not(:disabled):active {
    transform: scale(0.97);
}

.lesson-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.quiet-button,
.fullscreen-button {
    min-width: 52px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(23, 37, 35, 0.11);
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 24px rgba(47, 67, 62, 0.07);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.quiet-button:hover,
.fullscreen-button:hover {
    border-color: rgba(22, 139, 124, 0.34);
    background-color: rgba(255, 255, 255, 0.94);
}

.quiet-button:active,
.fullscreen-button:active {
    transform: scale(0.96);
}

.count-button {
    min-width: 68px;
    color: var(--teal);
    font-size: 18px;
}

.count-button small {
    margin-left: 3px;
    color: var(--muted);
    font-size: 11px;
}

.fullscreen-button {
    position: static;
    width: 46px;
    min-width: 46px;
    padding: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 22px 22px;
}

.fullscreen-open {
    background-image: url("media/fullscreen_open.svg");
}

.fullscreen-close {
    background-image: url("media/fullscreen_close.svg");
}

.lesson-status {
    position: absolute;
    top: 102px;
    left: 50%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(23, 37, 35, 0.09);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 32px rgba(47, 67, 62, 0.08);
    backdrop-filter: blur(12px);
    font-size: 15px;
    font-weight: 750;
    transform: translateX(-50%);
    pointer-events: none;
}

.status-mark {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 5px rgba(232, 111, 81, 0.13);
}

.remaining-count {
    padding-left: 10px;
    border-left: 1px solid var(--line);
    color: var(--teal);
    font-size: 13px;
    white-space: nowrap;
}

.classification-board {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--board-h);
    display: grid;
    grid-template-rows: 58px minmax(0, 1fr);
    border-top: 1px solid rgba(23, 37, 35, 0.13);
    background: rgba(247, 249, 247, 0.91);
    box-shadow: 0 -18px 48px rgba(47, 67, 62, 0.11);
    backdrop-filter: blur(18px) saturate(0.9);
    pointer-events: auto;
}

.board-heading {
    display: grid;
    grid-template-columns: 180px 1fr 150px;
    align-items: center;
    gap: 14px;
    padding: 8px clamp(18px, 3vw, 44px) 4px;
}

.board-heading > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.board-kicker {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

#criterion-label {
    font-size: 19px;
}

.stage-progress {
    min-width: 42px;
    padding: 3px 7px;
    border-radius: 5px;
    background: rgba(22, 139, 124, 0.1);
    color: var(--teal);
    font-size: 11px;
    font-weight: 850;
    text-align: center;
    white-space: nowrap;
}

.criterion-path {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(100, 113, 110, 0.55);
    font-size: 13px;
    font-weight: 750;
}

.criterion-path i {
    width: 30px;
    height: 1px;
    background: currentColor;
}

.criterion-path span.is-current,
.criterion-path span.is-done {
    color: var(--teal);
}

.next-stage-button {
    justify-self: end;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.classification-svg {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: visible;
}

.tray-group {
    cursor: pointer;
    transition: opacity 180ms ease;
}

.is-physics-waiting .tray-group {
    cursor: wait;
    opacity: 0.48;
}

.tray-cell {
    fill: rgba(255, 255, 255, 0.78);
    stroke: rgba(23, 37, 35, 0.14);
    stroke-width: 1.25;
    vector-effect: non-scaling-stroke;
    transition: fill 180ms ease, stroke 180ms ease;
}

.tray-group:hover .tray-cell,
.tray-group.is-ready .tray-cell {
    fill: rgba(255, 255, 255, 0.98);
    stroke: rgba(22, 139, 124, 0.56);
}

.tray-group.is-selected .tray-cell {
    fill: rgba(217, 238, 234, 0.94);
    stroke: var(--teal);
    stroke-width: 2.5;
}

.tray-group.is-selected .tray-title {
    fill: #0b7467;
}

.tray-group.is-related .tray-cell {
    fill: rgba(240, 249, 247, 0.98);
    stroke: rgba(22, 139, 124, 0.78);
    stroke-width: 2;
}

.tray-group.is-dimmed {
    opacity: 0.24;
}

.tray-group.is-ready .tray-cell {
    stroke-dasharray: 7 5;
    animation: tray-dash 1.2s linear infinite;
}

.tray-accent {
    pointer-events: none;
}

.tray-title {
    fill: var(--ink);
    font-size: 14px;
    font-weight: 800;
    text-anchor: middle;
    pointer-events: none;
}

.tray-count {
    fill: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-anchor: end;
    pointer-events: none;
}

.svg-token {
    filter: drop-shadow(0 2px 2px rgba(23, 37, 35, 0.18));
    pointer-events: none;
}

.source-cell {
    fill: rgba(231, 237, 233, 0.86);
    stroke: rgba(23, 37, 35, 0.16);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    vector-effect: non-scaling-stroke;
    transition: fill 180ms ease, stroke 180ms ease;
}

.source-group {
    cursor: pointer;
    transition: opacity 180ms ease;
}

.source-group:hover .source-cell,
.source-group.is-selected .source-cell {
    fill: rgba(217, 238, 234, 0.98);
    stroke: var(--teal);
    stroke-width: 2;
    stroke-dasharray: none;
}

.source-group.is-selected .source-title {
    fill: #0b7467;
}

.source-group.is-dimmed {
    opacity: 0.48;
}

.source-group.is-complete {
    cursor: default;
    opacity: 0.58;
}

.source-group.is-complete .source-cell {
    fill: rgba(228, 235, 231, 0.62);
    stroke-dasharray: none;
}

.source-title {
    fill: var(--muted);
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

.source-token {
    cursor: pointer;
    pointer-events: auto;
    transform-box: fill-box;
    transform-origin: center;
    transition: filter 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.source-token:hover,
.source-token:focus-visible {
    filter: drop-shadow(0 4px 4px rgba(23, 37, 35, 0.28));
    transform: translateY(-2px) scale(1.08);
}

.source-token.is-moving {
    opacity: 0.18;
    pointer-events: none;
}

.token-foreign-object {
    overflow: hidden;
}

.token-scroll {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--board-token-size));
    grid-auto-rows: var(--board-token-size);
    align-content: start;
    justify-content: center;
    gap: 7px;
    padding: 3px 4px 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(22, 139, 124, 0.56) rgba(23, 37, 35, 0.07);
    scrollbar-width: thin;
    touch-action: pan-y;
}

.token-scroll::-webkit-scrollbar {
    width: 7px;
}

.token-scroll::-webkit-scrollbar-track {
    border-radius: 4px;
    background: rgba(23, 37, 35, 0.07);
}

.token-scroll::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(22, 139, 124, 0.56);
}

.source-token-scroll {
    gap: 5px;
    padding-top: 2px;
}

.board-token {
    position: relative;
    width: var(--board-token-size);
    height: var(--board-token-size);
    box-sizing: border-box;
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 1px solid #35433f;
    background: var(--token-color);
    box-shadow: 0 2px 3px rgba(23, 37, 35, 0.2), inset 0 2px 3px rgba(255, 255, 255, 0.3);
}

.board-token.is-round {
    border-radius: 50%;
}

.board-token.is-square {
    border-radius: calc(var(--board-token-size) * 0.18);
}

button.board-token {
    appearance: none;
}

.board-token-hole {
    position: absolute;
    width: max(3px, calc(var(--board-token-size) * 0.15));
    height: max(3px, calc(var(--board-token-size) * 0.15));
    border-radius: 50%;
    background: #263330;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.board-token-hole.hole-0 { left: 30%; top: 30%; }
.board-token-hole.hole-1 { left: 70%; top: 70%; }
.board-token-hole.hole-2 { left: 70%; top: 30%; }
.board-token-hole.hole-3 { left: 30%; top: 70%; }

.tray-group.is-wrong {
    transform-box: fill-box;
    transform-origin: center;
    animation: tray-wrong 360ms ease;
}

.classification-board.is-final-overview {
    background: rgba(244, 249, 246, 0.95);
}

.classification-board.is-final-overview .tray-cell {
    fill: rgba(255, 255, 255, 0.94);
}

.start-dialog {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(232, 238, 234, 0.36);
    backdrop-filter: blur(7px);
    pointer-events: auto;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.start-dialog.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.start-panel {
    width: min(400px, calc(100vw - 32px));
    padding: 30px;
    border: 1px solid rgba(23, 37, 35, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 26px 70px rgba(38, 55, 51, 0.2);
    text-align: center;
}

.start-eyebrow {
    color: var(--teal);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
}

.start-panel h2 {
    margin: 8px 0 22px;
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: 0;
}

.count-control {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
    margin-bottom: 12px;
}

.count-control button,
.count-control input {
    height: 52px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: var(--paper);
}

.count-control button {
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
}

.count-control input {
    width: 100%;
    color: var(--ink);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    appearance: textfield;
}

.count-control input::-webkit-inner-spin-button,
.count-control input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.start-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 7px;
    background: var(--ink);
    color: #fff;
    font-size: 17px;
    font-weight: 850;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.start-button:hover {
    background: var(--teal);
}

.start-button:active {
    transform: scale(0.985);
}

.start-button:disabled {
    cursor: wait;
    opacity: 0.64;
}

.start-note {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.start-note span {
    color: var(--coral);
    font-weight: 900;
}

.completion-banner {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 12;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    border: 1px solid rgba(22, 139, 124, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 64px rgba(38, 55, 51, 0.18);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.completion-banner[hidden] {
    display: none;
}

.completion-check {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.completion-banner strong,
.completion-banner small {
    display: block;
}

.completion-banner strong {
    font-size: 17px;
}

.completion-banner small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.flight-token {
    position: absolute;
    z-index: 30;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    pointer-events: none;
    will-change: left, top, transform, opacity;
}

.flight-token-shape {
    position: relative;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(23, 37, 35, 0.22);
    background: var(--token-color, #e86f51);
    box-shadow: 0 5px 10px rgba(23, 37, 35, 0.22), inset 0 2px 3px rgba(255, 255, 255, 0.46);
}

.flight-token.is-round .flight-token-shape {
    border-radius: 50%;
}

.flight-token.is-square .flight-token-shape {
    border-radius: 7px;
}

.token-hole {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(20, 30, 29, 0.7);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.45);
}

.token-hole.hole-0 { left: 8px; top: 8px; }
.token-hole.hole-1 { right: 8px; bottom: 8px; }
.token-hole.hole-2 { right: 8px; top: 8px; }
.token-hole.hole-3 { left: 8px; bottom: 8px; }

@keyframes tray-dash {
    to { stroke-dashoffset: -24; }
}

@keyframes tray-wrong {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-7px); }
    60% { transform: translateX(6px); }
}

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

@media (max-width: 900px), (max-height: 680px) {
    :root {
        --board-h: clamp(190px, 29vh, 234px);
    }

    .lesson-header {
        top: 10px;
        left: 12px;
        right: 18px;
        grid-template-columns: minmax(155px, 1fr) auto;
        gap: 9px;
    }

    .stage-tabs {
        position: absolute;
        top: 58px;
        left: 50%;
        transform: translateX(-50%);
    }

    .lesson-actions {
        grid-column: 2;
    }

    .lesson-status {
        top: 120px;
    }

    .board-heading {
        grid-template-columns: 150px 1fr 132px;
        padding-inline: 14px;
    }

    .criterion-path i {
        width: 18px;
    }

    .next-stage-button {
        padding-inline: 11px;
        font-size: 13px;
    }

    .backdrop-ruler,
    .backdrop-caption {
        display: none;
    }
}

@media (max-width: 640px) {
    :root {
        --board-h: min(264px, 39vh);
    }

    .lesson-backdrop {
        background-size: 24px 24px, 24px 24px, 100% 100%;
    }

    .lesson-backdrop::before {
        width: 7px;
    }

    .lesson-backdrop::after {
        display: none;
    }

    .lesson-header {
        min-height: 48px;
        align-items: start;
    }

    .lesson-index {
        font-size: 10px;
    }

    .lesson-title-block h1 {
        font-size: 18px;
    }

    .lesson-actions {
        gap: 5px;
    }

    .quiet-button,
    .fullscreen-button {
        min-width: 44px;
        height: 44px;
        padding-inline: 9px;
        font-size: 12px;
    }

    .count-button {
        min-width: 58px;
        font-size: 16px;
    }

    .fullscreen-button {
        width: 44px;
    }

    .stage-tabs {
        top: 51px;
        gap: 3px;
        padding: 4px;
    }

    .stage-tab {
        min-width: 70px;
        min-height: 40px;
        gap: 5px;
        padding-inline: 6px;
        font-size: 12px;
    }

    .stage-tab-number {
        width: 23px;
        height: 23px;
        font-size: 11px;
    }

    .lesson-status {
        top: 102px;
        width: auto;
        max-width: calc(100% - 30px);
        min-height: 38px;
        gap: 7px;
        padding: 6px 9px;
        font-size: 12px;
        white-space: nowrap;
    }

    .remaining-count {
        display: none;
    }

    .classification-board {
        grid-template-rows: 52px minmax(0, 1fr);
    }

    .board-heading {
        grid-template-columns: 95px minmax(0, 1fr) auto;
        gap: 7px;
        padding: 6px 8px 2px;
    }

    .board-heading > div:first-child {
        display: block;
    }

    .board-kicker {
        display: block;
        font-size: 9px;
    }

    #criterion-label {
        font-size: 15px;
    }

    .stage-progress {
        display: inline-block;
        margin-top: 0;
        padding: 1px 5px;
        font-size: 9px;
        vertical-align: 2px;
    }

    .classification-board.is-final-overview .board-heading {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .criterion-path {
        gap: 4px;
        font-size: 10px;
    }

    .criterion-path i {
        width: 8px;
    }

    .next-stage-button {
        min-height: 38px;
        padding-inline: 9px;
        font-size: 11px;
    }

    .tray-title {
        font-size: 11px;
    }

    .tray-count {
        font-size: 9px;
    }

    .start-panel {
        padding: 24px 20px;
    }

    .completion-banner {
        min-width: 0;
        width: calc(100% - 36px);
    }
}

@media (max-width: 400px) {
    .quiet-button:not(.count-button) {
        display: none;
    }

    .stage-tab {
        min-width: 64px;
    }

    .criterion-path i {
        display: none;
    }
}
