.bbs-page .worksheet-paper {
    padding: 12px 14px 14px;
}

.bbs-page .bbs-task-list {
    display: grid;
    gap: 7px;
}

.bbs-page .bbs-task,
.bbs-page .bbs-booking-task {
    display: grid;
    gap: 7px 10px;
    align-items: center;
    padding: 8px 9px;
    border: 1px solid #d7cbb6;
    background: rgba(255, 250, 240, 0.92);
}

.bbs-page .bbs-task {
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
}

.bbs-page .bbs-booking-task {
    grid-template-columns: 32px minmax(220px, 1fr);
}

.bbs-page .bbs-booking-grid,
.bbs-page .bbs-feedback {
    grid-column: 2 / -1;
}

.bbs-page .bbs-question {
    display: grid;
    gap: 4px;
}

.bbs-page .bbs-booking-task > strong {
    width: fit-content;
    padding: 3px 6px;
    border: 1px solid #d7cbb6;
    background: #fbf6ea;
    color: #28714c;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bbs-page .bbs-question strong,
.bbs-page .bbs-booking-copy strong {
    color: #171b18;
    font-family: "Lora", serif;
    font-size: 0.94rem;
    line-height: 1.25;
}

.bbs-page .bbs-question p,
.bbs-page .bbs-booking-copy p {
    margin: 0;
    color: #665f51;
    font-size: 0.82rem;
    line-height: 1.35;
}

.bbs-page .bbs-choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bbs-page .bbs-choice-list button,
.bbs-page .bbs-dropzone,
.bbs-page .bbs-booking-grid input,
.bbs-page .bbs-reset,
.bbs-page .bbs-status-button,
.bbs-page .bbs-more-practice {
    min-height: 32px;
    border: 1px solid #9f9279;
    border-radius: 0;
    background: #fffaf0;
    color: #1f2b2f;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.18;
}

.bbs-page .bbs-choice-list button,
.bbs-page .bbs-reset,
.bbs-page .bbs-status-button,
.bbs-page .bbs-more-practice {
    padding: 6px 8px;
    cursor: pointer;
}

.bbs-page .bbs-choice-list button {
    flex: 0 1 auto;
    min-width: min(100%, 148px);
}

.bbs-page .is-correct,
.bbs-page .bbs-task.is-complete,
.bbs-page .bbs-booking-task.is-complete {
    border-color: #9fc2a4 !important;
    background: #eef6ed !important;
}

.bbs-page .is-wrong {
    border-color: #b64b2d !important;
    background: #fff2ec !important;
    color: #7d2a1b !important;
}

.bbs-page .bbs-feedback {
    margin: 2px 0 0;
    padding: 6px 8px;
    border: 1px solid #d7cbb6;
    background: rgba(255, 252, 244, 0.86);
    color: #665f51;
    font-size: 0.78rem;
    line-height: 1.3;
}

.bbs-page .bbs-feedback:empty,
.bbs-page .bbs-feedback:not(.is-correct):not(.is-wrong) {
    display: none;
}

.bbs-page .bbs-feedback.is-correct {
    border-color: #9fc2a4;
    background: #eef6ed;
    color: #173b29;
}

.bbs-page .bbs-feedback.is-wrong {
    border-color: #d99a84;
    background: #fff2ec;
    color: #7d2a1b;
}

.bbs-page .bbs-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
    gap: 12px;
}

.bbs-page .bbs-account-plan {
    position: sticky;
    top: 92px;
    align-self: start;
    max-height: calc(100vh - 112px);
    overflow: auto;
    border-left: 2px solid #201d17;
    padding-left: 12px;
}

.bbs-page .account-plan-kicker {
    margin: 0 0 5px;
    color: #b64b2d;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.bbs-page .bbs-account-plan > strong {
    display: block;
    color: #171b18;
    font-size: 0.82rem;
    line-height: 1.25;
}

.bbs-page .bbs-plan-list {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.bbs-page .bbs-plan-class {
    border: 1px solid #201d17;
    padding: 5px 6px;
    color: #fff8e9;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.15;
}

.bbs-page .bbs-plan-class.is-muted {
    opacity: 0.42;
}

.bbs-page .bbs-plan-class h3 {
    margin: 0 0 4px;
    color: inherit;
    font-size: 0.62rem;
}

.bbs-page .bbs-plan-accounts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bbs-page .bbs-account-chip,
.bbs-page .bbs-chip {
    display: inline-flex;
    width: fit-content;
    padding: 4px 6px;
    border: 1px solid #201d17;
    color: #fff8e9;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6rem;
    font-weight: 800;
    cursor: grab;
}

.bbs-page .bbs-class-0 { background: #273641; color: #fff8e9; }
.bbs-page .bbs-class-1 { background: #7b5d1f; color: #fff8e9; }
.bbs-page .bbs-class-2 { background: #17623d; color: #fff8e9; }
.bbs-page .bbs-class-3 { background: #d98324; color: #201d17; }
.bbs-page .bbs-class-4 { background: #68429f; color: #fff8e9; }
.bbs-page .bbs-class-5 { background: #564d43; color: #fff8e9; }
.bbs-page .bbs-class-7 { background: #a93227; color: #fff8e9; }
.bbs-page .bbs-class-9 { background: #775097; color: #fff8e9; }

.bbs-page .bbs-dropzone {
    display: grid;
    align-items: center;
    min-height: 34px;
    padding: 6px 8px;
    border-style: dashed;
    color: #665f51;
}

.bbs-page .bbs-dropzone.is-over {
    border-color: #28714c;
    background: #eef6ed;
}

.bbs-page .bbs-booking-grid {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(86px, 0.42fr);
    gap: 7px;
}

.bbs-page .bbs-booking-grid label {
    display: grid;
    gap: 4px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bbs-page .bbs-booking-grid input {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 7px;
}

.bbs-page .bbs-summary-left {
    display: grid;
    align-content: start;
}

.bbs-page .bbs-next-exercise {
    width: fit-content;
    margin-top: 12px;
}

.bbs-page .bbs-status-box {
    display: grid;
    gap: 10px;
}

.bbs-page .bbs-status-button.is-complete {
    background: #28714c;
    color: #fff8e9;
}

.bbs-page .bbs-progress {
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    font-weight: 800;
}

.bbs-page .bbs-more-practice {
    opacity: 0.58;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .bbs-page .bbs-task,
    .bbs-page .bbs-booking-task,
    .bbs-page .bbs-workbench,
    .bbs-page .bbs-booking-grid {
        grid-template-columns: 1fr;
    }

    .bbs-page .bbs-booking-grid,
    .bbs-page .bbs-feedback {
        grid-column: 1;
    }

    .bbs-page .bbs-account-plan {
        position: static;
        max-height: none;
        overflow: visible;
        border-left: 0;
        border-top: 2px solid #201d17;
        padding: 12px 0 0;
    }
}
