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

.ws11-page .worksheet-compact-tasks,
.ws11-select-grid,
.ws11-change-list,
.ws11-page .worksheet-check-list,
.ws11-page .worksheet-transfer-list {
    gap: 7px;
}

.ws11-task,
.ws11-card,
.ws11-transfer-case {
    border: 1px solid #d7cbb6;
    background: rgba(255, 250, 240, 0.9);
}

.ws11-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
    gap: 9px 12px;
    align-items: center;
    padding: 8px 9px;
}

.compact-task.ws11-task,
.check-case.ws11-task {
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
    padding: 8px 9px;
}

.ws11-card-question {
    display: grid;
    gap: 4px;
}

.ws11-card-question span {
    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;
}

.ws11-card-question strong,
.ws11-task > strong,
.ws11-task > span,
.ws11-transfer-case > span {
    color: #171b18;
    font-family: "Lora", serif;
    font-size: 0.94rem;
    line-height: 1.25;
}

.ws11-task .worksheet-choice-list,
.ws11-account-options,
.ws11-mini-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ws11-task .worksheet-choice-list {
    grid-template-columns: none;
}

.ws11-task .worksheet-choice-list button,
.ws11-account-option,
.ws11-mini-toggle button,
.ws11-reset,
.ws11-transfer-case select,
.ws11-transfer-case input {
    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;
}

.ws11-task .worksheet-choice-list button,
.ws11-account-option,
.ws11-mini-toggle button,
.ws11-reset {
    padding: 6px 8px;
    cursor: pointer;
}

.ws11-task .worksheet-choice-list button {
    flex: 0 1 auto;
    min-width: min(100%, 150px);
    padding-left: 8px;
    background: #fffaf0;
}

.ws11-task .worksheet-choice-list button::before {
    content: none;
}

.ws11-task .worksheet-choice-list button:hover,
.ws11-account-option:hover,
.ws11-mini-toggle button:hover {
    border-color: #201d17;
    background: #f8f1df;
}

.ws11-task .worksheet-choice-list button.is-selected,
.ws11-mini-toggle button.is-selected {
    border-color: #28714c;
    background: #eef6ed;
    color: #173b29;
}

.ws11-account-option.is-selected {
    outline: 3px solid #fff8e9;
    outline-offset: -5px;
    box-shadow: 0 0 0 2px #201d17;
}

.ws11-task .worksheet-choice-list button.is-correct,
.ws11-mini-toggle button.is-correct,
.ws11-task.is-complete,
.ws11-card.is-complete,
.ws11-transfer-case.is-complete {
    border-color: #9fc2a4;
    background: #eef6ed;
}

.ws11-account-option.is-correct {
    border-color: #173b29;
    outline: 3px solid #eef6ed;
    outline-offset: -5px;
    box-shadow: 0 0 0 2px #28714c;
}

.ws11-task .worksheet-choice-list button.is-wrong,
.ws11-account-option.is-wrong,
.ws11-mini-toggle button.is-wrong {
    border-color: #b64b2d;
    background: #fff2ec;
    color: #7d2a1b;
}

.ws11-account-option {
    color: #fff8e9;
    text-align: left;
}

.ws11-account-option.class-1 { background: #7b5d1f; color: #fff8e9; }
.ws11-account-option.class-2 { background: #17623d; color: #fff8e9; }
.ws11-account-option.class-3 { background: #d98324; color: #201d17; }
.ws11-account-option.class-4 { background: #68429f; color: #fff8e9; }
.ws11-account-option.class-5 { background: #564d43; color: #fff8e9; }
.ws11-account-option.class-7 { background: #a93227; color: #fff8e9; }

.ws11-account-option.is-wrong {
    background: #fff2ec;
    color: #7d2a1b;
}

.ws11-change-rows {
    display: grid;
    gap: 6px;
}

.ws11-change-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.58fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.ws11-account-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid #201d17;
    color: #fff8e9;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.15;
}

.ws11-account-chip.class-1 { background: #7b5d1f; color: #fff8e9; }
.ws11-account-chip.class-2 { background: #17623d; color: #fff8e9; }
.ws11-account-chip.class-3 { background: #d98324; color: #201d17; }
.ws11-account-chip.class-4 { background: #68429f; color: #fff8e9; }
.ws11-account-chip.class-5 { background: #564d43; color: #fff8e9; }
.ws11-account-chip.class-7 { background: #a93227; color: #fff8e9; }

.ws11-feedback {
    grid-column: 1 / -1;
    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;
}

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

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

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

.ws11-transfer-case {
    grid-template-columns: 28px minmax(230px, 1fr) minmax(120px, 0.42fr) minmax(120px, 0.42fr) 86px;
    padding: 7px 8px;
}

.ws11-transfer-case strong {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
}

.ws11-transfer-case select,
.ws11-transfer-case input {
    width: 100%;
    padding: 5px 7px;
}

.ws11-transfer-case .ws11-feedback {
    grid-column: 2 / -1;
}

.ws11-reset {
    width: 100%;
    border-color: #201d17;
    background: #fffaf0;
}

.ws11-summary {
    align-items: stretch;
}

.ws11-summary-learned {
    display: grid;
    align-content: start;
}

.ws11-summary-learned h2 {
    margin-bottom: 6px;
}

.ws11-next-exercise {
    justify-self: start;
    margin-top: 14px;
    color: #fffaf0;
    text-decoration: none;
}

.ws11-status-box {
    display: grid;
    gap: 10px;
    align-content: start;
}

.ws11-status-button,
.ws11-more-practice {
    width: 100%;
    min-height: 36px;
    border: 1px solid #201d17;
    border-radius: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ws11-status-button {
    background: #fffaf0;
    color: #b64b2d;
}

.ws11-status-button.is-complete {
    border-color: #28714c;
    background: #eef6ed;
    color: #173b29;
}

.ws11-more-practice {
    background: #f6f1e7;
    color: #665f51;
    opacity: 0.72;
    cursor: not-allowed;
}

.ws11-status-box #ws11Progress {
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    font-weight: 800;
    color: #4f6172;
}

.level1-bottom-nav {
    margin-top: 12px;
}

.level1-bottom-nav a {
    color: #183f5f;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 860px) {
    .ws11-card,
    .compact-task.ws11-task,
    .check-case.ws11-task,
    .ws11-change-row,
    .ws11-transfer-case {
        grid-template-columns: 1fr;
    }

    .ws11-transfer-case .ws11-feedback {
        grid-column: auto;
    }
}
