/* /Components/Admin/AdminDialog.razor.rz.scp.css */
/* The card itself is styled by AdminShell.razor.css (.cce-dialog). The dialog takes focus when it opens; the ring would
   frame the whole card, so it is dropped there (buttons inside keep theirs). */
.admin-dialog:focus[b-x7iixcanx0] {
    outline: none;
}

/* More specific than AdminShell's `.cce ::deep .cce-dialog` width, which this widens. */
div.cce-dialog.admin-dialog.is-wide[b-x7iixcanx0] {
    width: min(100%, 640px);
}
/* /Components/Admin/AdminShell.razor.rz.scp.css */
/* Shared look of the admin editors (/custom-content, /custom-layout). Moved from
   CustomContent.razor.css: AdminShell renders the .cce root, so every rule here
   reaches the pages' markup through ::deep. Prefix cce- keeps Bootstrap and the
   global custom-content-shared.css out. */

/* ===== Tokens ===== */
.cce[b-m6qt5xcqe7] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #e6e8ee;
    --line-strong: #d3d7df;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-strong: #3a68ee;
    --brand-soft: #eef3ff;
    --brand-line: #c9d6ff;
    --ok: #4f8a1c;
    --ok-soft: #f2f9ea;
    --ok-line: #cfe7b3;
    --danger: #d93639;
    --danger-soft: #fff3f3;
    --danger-line: #f6c9ca;
    /* The yellow of the Progress page (its ring and the ring's track). An accent: borders, fills, dots. Words on it and
       beside it stay ink, because yellow text does not read on white. --warn-line is the same yellow, lighter, for the
       outline of a large block. */
    --warn: #f5c518;
    --warn-soft: #fef9e7;
    --warn-line: #f9dc74;
    --radius: 16px;
    --radius-sm: 10px;
    --pad: 22px;
    --gap: 16px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    /* Admin pages are tools: they take what the layout gives them (main is at most about 1330px wide), not the narrower
       reading width of the student pages (--page-max). */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem 120px;
    /* Closer to the app header than main's padding puts it: admin pages are tools,
       and every row of height counts on a page that fits the screen. */
    margin-top: calc(12px - var(--main-pad-top, 1rem));
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    -webkit-text-size-adjust: 100%;
}

    .cce[b-m6qt5xcqe7]  *,
    .cce[b-m6qt5xcqe7]  *::before,
    .cce[b-m6qt5xcqe7]  *::after {
        box-sizing: border-box;
    }

/* ===== Fill: the page fits the screen, only its panes scroll (see AdminShell.razor) ===== */
.cce.cce--fill[b-m6qt5xcqe7] {
    position: relative; /* anchors the notices */
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding-bottom: 0;
}

    .cce.cce--fill[b-m6qt5xcqe7]  .cce-page-head,
    .cce.cce--fill[b-m6qt5xcqe7]  .cce-savebar {
        flex-shrink: 0;
    }

    /* The save bar has its own row at the bottom instead of floating over the content. */
    .cce.cce--fill[b-m6qt5xcqe7]  .cce-savebar {
        position: static;
    }

    /* Notices float over the bottom of the panes, above the save bar. */
    .cce.cce--fill[b-m6qt5xcqe7]  .cce-notices {
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: 0;
    }

        .cce.cce--fill[b-m6qt5xcqe7]  .cce-notices.has-savebar {
            bottom: 72px;
        }

/* A scrolling pane. The side and bottom padding keep the cards' shadows from being
   clipped by the scroll edge; the negative margin keeps the cards where they were. */
.cce[b-m6qt5xcqe7]  .cce-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    margin: -4px -12px 0;
    padding: 4px 12px 12px;
}

/* ===== Page header ===== */
.cce[b-m6qt5xcqe7]  .cce-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

    .cce[b-m6qt5xcqe7]  .cce-page-head h1 {
        margin: 0;
        font-size: clamp(22px, 2.4vw, 28px);
        font-weight: 700;
        letter-spacing: -0.2px;
    }

/* The title with its "i" icon (InfoTip) beside it: what the page is for hangs from the icon instead of standing as
   a subtitle under the title, so the head is one line and the page itself gets the room, above all on phones. */
.cce[b-m6qt5xcqe7]  .cce-page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cce[b-m6qt5xcqe7]  .cce-quick-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== Cards ===== */
.cce[b-m6qt5xcqe7]  .cce-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.04);
    min-width: 0;
}

.cce[b-m6qt5xcqe7]  .cce-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px var(--pad);
    border-bottom: 1px solid var(--line);
}

.cce[b-m6qt5xcqe7]  .cce-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.cce[b-m6qt5xcqe7]  .cce-card-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    min-height: 32px;
    text-align: left;
}

    .cce[b-m6qt5xcqe7]  .cce-card-toggle:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 4px;
        border-radius: 6px;
    }

.cce[b-m6qt5xcqe7]  .cce-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

    .cce[b-m6qt5xcqe7]  .cce-chevron.is-open {
        transform: translateY(2px) rotate(-135deg);
    }

.cce[b-m6qt5xcqe7]  .cce-card-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.cce[b-m6qt5xcqe7]  .cce-card-body {
    padding: 18px var(--pad) var(--pad);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    /* The class sets display:flex, which would beat the UA rule for [hidden]. */
    .cce[b-m6qt5xcqe7]  .cce-card-body[hidden] {
        display: none;
    }

.cce[b-m6qt5xcqe7]  .cce-card-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px var(--pad);
    color: var(--ink-muted);
    font-size: 15px;
}

.cce[b-m6qt5xcqe7]  .cce-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

/* How the section saves: one look for "instant", one for "with the save bar". */
.cce[b-m6qt5xcqe7]  .cce-save-mode {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

    .cce[b-m6qt5xcqe7]  .cce-save-mode.is-instant {
        color: var(--ok);
        background: var(--ok-soft);
        border: 1px solid var(--ok-line);
    }

    .cce[b-m6qt5xcqe7]  .cce-save-mode.is-bar {
        color: var(--brand-strong);
        background: var(--brand-soft);
        border: 1px solid var(--brand-line);
    }

.cce[b-m6qt5xcqe7]  .cce-subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.cce[b-m6qt5xcqe7]  .cce-empty-state {
    padding: 20px var(--pad);
    color: var(--ink-soft);
    font-size: 15px;
}

    .cce[b-m6qt5xcqe7]  .cce-empty-state p {
        margin: 0;
    }

    .cce[b-m6qt5xcqe7]  .cce-empty-state.is-warning {
        background: var(--warn-soft);
        border-color: var(--warn-line);
        color: var(--ink);
    }

/* ===== Fields ===== */
.cce[b-m6qt5xcqe7]  .cce-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.cce[b-m6qt5xcqe7]  .cce-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cce[b-m6qt5xcqe7]  .cce-label-note {
    font-weight: 500;
    color: var(--ink-muted);
}

.cce[b-m6qt5xcqe7]  .cce-help {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-muted);
}

.cce[b-m6qt5xcqe7]  .cce-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font: inherit;
    font-size: 16px; /* 16px keeps iOS from zooming on focus */
    line-height: 1.45;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    user-select: text;
}

    .cce[b-m6qt5xcqe7]  .cce-input:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.14);
    }

    .cce[b-m6qt5xcqe7]  .cce-input:disabled {
        background: var(--surface);
        color: var(--ink-muted);
    }

.cce[b-m6qt5xcqe7]  .cce-input--static {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-muted);
}

.cce[b-m6qt5xcqe7]  .cce-textarea {
    resize: vertical;
    min-height: 88px;
}

.cce[b-m6qt5xcqe7]  .cce-select {
    appearance: none;
    cursor: pointer;
    padding-right: 38px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236c757d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.cce[b-m6qt5xcqe7]  .cce-search {
    max-width: 360px;
}

.cce[b-m6qt5xcqe7]  .cce-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cce[b-m6qt5xcqe7]  .cce-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .cce[b-m6qt5xcqe7]  .cce-row--under {
        margin-bottom: 10px;
    }

.cce[b-m6qt5xcqe7]  .cce-inline-error {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--danger);
    white-space: pre-line;
}

/* The import dialogs' file bar on the check step: the file's name and line count, and the way back to another file. */
.cce[b-m6qt5xcqe7]  .cce-filebar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 10px 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    font-size: 13.5px;
}

    .cce[b-m6qt5xcqe7]  .cce-filebar-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        color: var(--brand);
    }

    .cce[b-m6qt5xcqe7]  .cce-filebar-name {
        min-width: 0;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

    .cce[b-m6qt5xcqe7]  .cce-filebar-meta {
        color: var(--ink-muted);
        white-space: nowrap;
    }

    .cce[b-m6qt5xcqe7]  .cce-filebar-btn {
        margin-left: auto;
    }

@media (max-width: 560px) {
    .cce[b-m6qt5xcqe7]  .cce-filebar {
        flex-wrap: wrap;
    }

    .cce[b-m6qt5xcqe7]  .cce-filebar-btn {
        margin-left: 0;
        width: 100%;
    }
}

/* A checkbox that sets how a load meets what is stored ("Только дополнять"), with its "i" icon and a status word. */
.cce[b-m6qt5xcqe7]  .cce-mode-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 9px;
    margin: 0 0 10px;
    font-size: 13.5px;
    font-weight: 600;
}

    .cce[b-m6qt5xcqe7]  .cce-mode-row input {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: var(--brand);
        cursor: pointer;
    }

    .cce[b-m6qt5xcqe7]  .cce-mode-row label {
        margin: 0;
        cursor: pointer;
    }

    .cce[b-m6qt5xcqe7]  .cce-mode-note {
        margin-left: 6px;
        font-size: 13px;
        font-weight: 400;
        color: var(--ink-muted);
    }

.cce[b-m6qt5xcqe7]  .cce-link {
    color: var(--brand-strong);
    font-size: 14px;
}

.cce[b-m6qt5xcqe7]  .cce-break {
    overflow-wrap: anywhere;
}

/* ===== Buttons ===== */
.cce[b-m6qt5xcqe7]  .cce-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    color: var(--brand-strong);
    background: #fff;
    border: 1.5px solid var(--brand-line);
    border-radius: 999px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .cce[b-m6qt5xcqe7]  .cce-btn:active:not(:disabled):not(.is-disabled) {
        transform: scale(0.98);
    }

    .cce[b-m6qt5xcqe7]  .cce-btn:focus-visible,
    .cce[b-m6qt5xcqe7]  .cce-btn:focus-within {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    .cce[b-m6qt5xcqe7]  .cce-btn:disabled,
    .cce[b-m6qt5xcqe7]  .cce-btn.is-disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

.cce[b-m6qt5xcqe7]  .cce-btn--primary {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.cce[b-m6qt5xcqe7]  .cce-btn--ghost {
    color: var(--ink-soft);
    border-color: var(--line-strong);
}

.cce[b-m6qt5xcqe7]  .cce-btn--danger {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.cce[b-m6qt5xcqe7]  .cce-btn--danger-ghost {
    color: var(--danger);
    border-color: var(--danger-line);
}

.cce[b-m6qt5xcqe7]  .cce-btn--small {
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
}

.cce[b-m6qt5xcqe7]  .cce-icon-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.7;
}

    .cce[b-m6qt5xcqe7]  .cce-icon-btn:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 1px;
    }

/* The native file input stays in the DOM (a picked file is only readable while its
   input exists) but is hidden inside the label that looks like a button. */
.cce[b-m6qt5xcqe7]  .cce-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.cce[b-m6qt5xcqe7]  label.cce-btn {
    position: relative;
}

.cce[b-m6qt5xcqe7]  .cce-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 44px;
}

.cce[b-m6qt5xcqe7]  .cce-file-name {
    font-size: 14px;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

/* ===== Chips, spinner, dot ===== */
.cce[b-m6qt5xcqe7]  .cce-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.cce[b-m6qt5xcqe7]  .cce-chip--id {
    background: var(--ink);
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* A question students do not see (saved under another lesson type): the warning yellow as a fill, words in ink. */
.cce[b-m6qt5xcqe7]  .cce-chip--hidden {
    background: var(--warn-soft);
    border: 1px solid var(--warn-line);
    color: var(--ink);
    white-space: normal;
    height: auto;
    min-height: 24px;
    padding: 2px 10px;
}

    /* Module numbers, coloured by level — the same colours as the course tree. */
    .cce[b-m6qt5xcqe7]  .cce-chip--id.is-main {
        background: #4d7cfe;
    }

    .cce[b-m6qt5xcqe7]  .cce-chip--id.is-sub {
        background: #8b5cf6;
    }

    .cce[b-m6qt5xcqe7]  .cce-chip--id.is-lesson {
        background: #0f9488;
    }

    .cce[b-m6qt5xcqe7]  .cce-chip--id.is-completion {
        background: #5d8f22;
    }

.cce[b-m6qt5xcqe7]  .cce-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 2px solid rgba(77, 124, 254, 0.2);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: cce-spin-b-m6qt5xcqe7 0.7s linear infinite;
}

.cce[b-m6qt5xcqe7]  .cce-spinner--light {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
}

@keyframes cce-spin-b-m6qt5xcqe7 {
    to {
        transform: rotate(360deg);
    }
}

.cce[b-m6qt5xcqe7]  .cce-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warn);
    flex-shrink: 0;
}

.cce[b-m6qt5xcqe7]  .cce-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--ink-muted);
    background: var(--surface);
    border-radius: var(--radius-sm);
}

/* The lesson picker of /custom-content has its own styles (LessonPicker.razor.css). */
.cce[b-m6qt5xcqe7]  .cce-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Notices =====
   Pinned to the bottom, above the save bar, where the admin looks after pressing a
   button (the layout's sticky header would cover a notice pinned to the top). */
.cce[b-m6qt5xcqe7]  .cce-notices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    bottom: 12px;
    z-index: 41;
}

    .cce[b-m6qt5xcqe7]  .cce-notices.has-savebar {
        bottom: 84px;
    }

.cce[b-m6qt5xcqe7]  .cce-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 4px 14px rgba(20, 30, 60, 0.08);
    animation: cce-fade-b-m6qt5xcqe7 0.2s ease;
    white-space: pre-line;
}

    .cce[b-m6qt5xcqe7]  .cce-notice.is-success {
        background: var(--ok-soft);
        color: var(--ok);
        border: 1px solid var(--ok-line);
    }

    .cce[b-m6qt5xcqe7]  .cce-notice.is-error {
        background: var(--danger-soft);
        color: var(--danger);
        border: 1px solid var(--danger-line);
    }

@keyframes cce-fade-b-m6qt5xcqe7 {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

/* The module head is the lesson picker's closed card (LessonPicker.razor.css). */

.cce[b-m6qt5xcqe7]  .cce-sections {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

/* ===== Media (video) ===== */
.cce[b-m6qt5xcqe7]  .cce-media-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.cce[b-m6qt5xcqe7]  .cce-media-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cce[b-m6qt5xcqe7]  .cce-progress {
    position: relative;
    height: 28px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
}

    .cce[b-m6qt5xcqe7]  .cce-progress span {
        position: relative;
        display: block;
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        line-height: 26px;
    }

.cce[b-m6qt5xcqe7]  .cce-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--brand-soft);
    border-right: 2px solid var(--brand);
    transition: width 0.3s ease;
}

/* ===== Image picker ===== */
.cce[b-m6qt5xcqe7]  .cce-image {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cce[b-m6qt5xcqe7]  .cce-image-frame {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    overflow: hidden;
}

    .cce[b-m6qt5xcqe7]  .cce-image-frame img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .cce[b-m6qt5xcqe7]  .cce-image-frame a {
        display: block;
        width: 100%;
        height: 100%;
    }

.cce[b-m6qt5xcqe7]  .cce-image.is-large .cce-image-frame {
    width: min(100%, 320px);
    height: 220px;
}

.cce[b-m6qt5xcqe7]  .cce-image-placeholder {
    padding: 4px;
    font-size: 11px;
    line-height: 1.3;
    color: var(--ink-muted);
    text-align: center;
    overflow-wrap: break-word;
    hyphens: auto;
}

.cce[b-m6qt5xcqe7]  .cce-image-tag {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    padding: 2px 4px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.cce[b-m6qt5xcqe7]  .cce-image-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== Vocabulary ===== */
.cce[b-m6qt5xcqe7]  .cce-bulk {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.cce[b-m6qt5xcqe7]  .cce-report {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* ===== Level import dialog: steps, stats, the module-by-module check, the loading bar, the result ===== */
.cce[b-m6qt5xcqe7]  .cce-steps {
    display: flex;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

    .cce[b-m6qt5xcqe7]  .cce-step {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex: 1 1 0;
        min-width: 0;
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid var(--line);
        font-size: 13px;
        font-weight: 600;
        color: var(--ink-muted);
        white-space: nowrap;
    }

    .cce[b-m6qt5xcqe7]  .cce-step-num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--surface);
        font-size: 12px;
        font-variant-numeric: tabular-nums;
    }

    .cce[b-m6qt5xcqe7]  .cce-step.is-current {
        border-color: var(--brand-line);
        background: var(--brand-soft);
        color: var(--brand-strong);
    }

        .cce[b-m6qt5xcqe7]  .cce-step.is-current .cce-step-num {
            background: var(--brand);
            color: #fff;
        }

    .cce[b-m6qt5xcqe7]  .cce-step.is-done {
        color: var(--ok);
    }

        .cce[b-m6qt5xcqe7]  .cce-step.is-done .cce-step-num {
            background: var(--ok-soft);
            color: var(--ok);
        }

.cce[b-m6qt5xcqe7]  .cce-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

    .cce[b-m6qt5xcqe7]  .cce-stat {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 10px 12px;
        border-radius: var(--radius-sm);
        background: var(--surface);
        min-width: 0;
    }

    .cce[b-m6qt5xcqe7]  .cce-stat-num {
        font-size: 22px;
        font-weight: 700;
        line-height: 1.1;
        font-variant-numeric: tabular-nums;
    }

    .cce[b-m6qt5xcqe7]  .cce-stat-label {
        font-size: 12px;
        color: var(--ink-soft);
        line-height: 1.3;
    }

    .cce[b-m6qt5xcqe7]  .cce-stat.is-zero .cce-stat-num,
    .cce[b-m6qt5xcqe7]  .cce-stat.is-zero .cce-stat-label {
        color: var(--ink-muted);
    }

.cce[b-m6qt5xcqe7]  .cce-status {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

    .cce[b-m6qt5xcqe7]  .cce-status.is-new {
        background: var(--ok-soft);
        color: var(--ok);
    }

    .cce[b-m6qt5xcqe7]  .cce-status.is-existing {
        background: var(--brand-soft);
        color: var(--brand-strong);
    }

.cce[b-m6qt5xcqe7]  .cce-plan-level {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--ink-soft);
}

    .cce[b-m6qt5xcqe7]  .cce-plan-level.is-warning {
        padding: 8px 12px;
        border-radius: var(--radius-sm);
        background: var(--warn-soft);
        border: 1px solid var(--warn-line);
        color: var(--ink);
    }

    .cce[b-m6qt5xcqe7]  .cce-plan-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--warn);
        flex-shrink: 0;
    }

.cce[b-m6qt5xcqe7]  .cce-plan {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .cce[b-m6qt5xcqe7]  .cce-plan-main {
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
    }

    .cce[b-m6qt5xcqe7]  .cce-plan-head,
    .cce[b-m6qt5xcqe7]  .cce-plan-sub-head {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .cce[b-m6qt5xcqe7]  .cce-plan-name {
        font-weight: 600;
        min-width: 0;
    }

    .cce[b-m6qt5xcqe7]  .cce-plan-head .cce-status {
        margin-left: auto;
    }

    .cce[b-m6qt5xcqe7]  .cce-plan-descr {
        margin: 4px 0 0;
        font-size: 13px;
        color: var(--ink-soft);
    }

    .cce[b-m6qt5xcqe7]  .cce-plan-details {
        margin-top: 6px;
    }

        .cce[b-m6qt5xcqe7]  .cce-plan-details > summary {
            cursor: pointer;
            font-size: 13px;
            color: var(--brand-strong);
            list-style: none;
        }

            .cce[b-m6qt5xcqe7]  .cce-plan-details > summary::-webkit-details-marker {
                display: none;
            }

            .cce[b-m6qt5xcqe7]  .cce-plan-details > summary::before {
                content: "▸ ";
            }

        .cce[b-m6qt5xcqe7]  .cce-plan-details[open] > summary::before {
            content: "▾ ";
        }

    .cce[b-m6qt5xcqe7]  .cce-plan-sub {
        margin: 8px 0 0 6px;
        padding-left: 10px;
        border-left: 2px solid var(--line);
    }

    .cce[b-m6qt5xcqe7]  .cce-plan-sub-head {
        font-size: 14px;
    }

    .cce[b-m6qt5xcqe7]  .cce-plan-lessons {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 6px;
    }

    .cce[b-m6qt5xcqe7]  .cce-plan-lesson {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        max-width: 100%;
        padding: 3px 9px 3px 5px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: #fff;
        font-size: 12px;
        line-height: 1.3;
    }

        .cce[b-m6qt5xcqe7]  .cce-plan-lesson img {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        .cce[b-m6qt5xcqe7]  .cce-plan-lesson .cce-plan-kind {
            color: var(--ink-muted);
        }

.cce[b-m6qt5xcqe7]  .cce-errors {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--danger-soft);
    border: 1px solid var(--danger-line);
    user-select: text; /* the admin selects or copies the list to hand it on */
}

    .cce[b-m6qt5xcqe7]  .cce-errors h3 {
        margin: 0 0 6px;
        font-size: 14px;
        font-weight: 600;
        color: var(--danger);
    }

    /* The heading with the "Скопировать" button at its end (ErrorList). */
    .cce[b-m6qt5xcqe7]  .cce-errors-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px 12px;
        margin: 0 0 6px;
    }

        .cce[b-m6qt5xcqe7]  .cce-errors-head h3 {
            margin: 0;
            flex: 1 1 200px;
        }

    .cce[b-m6qt5xcqe7]  .cce-errors ul {
        margin: 0;
        padding-left: 18px;
        font-size: 13px;
        line-height: 1.5;
        color: var(--ink);
    }

    .cce[b-m6qt5xcqe7]  .cce-errors-line {
        display: inline-block;
        margin-right: 6px;
        padding: 0 6px;
        border-radius: 999px;
        background: #fff;
        font-size: 12px;
        font-weight: 600;
        color: var(--danger);
        font-variant-numeric: tabular-nums;
    }

.cce[b-m6qt5xcqe7]  .cce-loading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 12px;
}

    .cce[b-m6qt5xcqe7]  .cce-loading-meta {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        font-size: 14px;
    }

    .cce[b-m6qt5xcqe7]  .cce-loading-label {
        font-weight: 600;
        min-width: 0;
    }

    .cce[b-m6qt5xcqe7]  .cce-loading-count {
        color: var(--ink-muted);
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .cce[b-m6qt5xcqe7]  .cce-loading-detail {
        margin: 0;
        font-size: 13px;
        color: var(--ink-soft);
    }

.cce[b-m6qt5xcqe7]  .cce-result {
    margin: 8px 0 4px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--ok-line);
    background: var(--ok-soft);
}

    .cce[b-m6qt5xcqe7]  .cce-result.is-error {
        border-color: var(--warn-line);
        background: var(--warn-soft);
    }

    .cce[b-m6qt5xcqe7]  .cce-result h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
    }

    .cce[b-m6qt5xcqe7]  .cce-result .cce-stats {
        margin: 10px 0;
    }

    .cce[b-m6qt5xcqe7]  .cce-result .cce-stat {
        background: #fff;
    }

    .cce[b-m6qt5xcqe7]  .cce-result-lines {
        margin: 0;
        padding-left: 18px;
        font-size: 14px;
        line-height: 1.5;
    }

/* The lesson dialog's question list: a kind chip and the question, one per line. */
.cce[b-m6qt5xcqe7]  .cce-check-questions {
    margin: 8px 0 0;
    padding-left: 22px;
    font-size: 13px;
    line-height: 1.5;
}

    .cce[b-m6qt5xcqe7]  .cce-check-questions li {
        margin: 2px 0;
    }

    .cce[b-m6qt5xcqe7]  .cce-check-questions .cce-chip {
        height: 20px;
        margin-right: 6px;
        font-size: 11px;
    }

.cce[b-m6qt5xcqe7]  .cce-vocab-add,
.cce[b-m6qt5xcqe7]  .cce-vocab-edit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.cce[b-m6qt5xcqe7]  .cce-vocab-add {
    padding: 14px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-sm);
}

    .cce[b-m6qt5xcqe7]  .cce-vocab-add .cce-image-frame,
    .cce[b-m6qt5xcqe7]  .cce-vocab-edit .cce-image-frame {
        width: 72px;
        height: 72px;
        background: #fff;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-add .cce-image,
    .cce[b-m6qt5xcqe7]  .cce-vocab-edit .cce-image {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 150px;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-add > .cce-inline-error,
    .cce[b-m6qt5xcqe7]  .cce-vocab-edit > .cce-inline-error {
        flex-basis: 100%;
    }

.cce[b-m6qt5xcqe7]  .cce-vocab-add-fields {
    flex: 1 1 320px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    min-width: 0;
}

.cce[b-m6qt5xcqe7]  .cce-vocab-list,
.cce[b-m6qt5xcqe7]  .cce-question-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cce[b-m6qt5xcqe7]  .cce-vocab-item {
    display: grid;
    grid-template-columns: 32px 52px minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-top: 1px solid var(--line);
    min-height: 64px;
}

    .cce[b-m6qt5xcqe7]  .cce-vocab-item:first-child {
        border-top: 0;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-item.is-editing {
        display: block;
        padding: 14px;
        background: var(--warn-soft);
    }

.cce[b-m6qt5xcqe7]  .cce-vocab-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.cce[b-m6qt5xcqe7]  .cce-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cce[b-m6qt5xcqe7]  .cce-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.cce[b-m6qt5xcqe7]  .cce-vocab-word {
    font-weight: 600;
    overflow-wrap: anywhere;
    user-select: text;
}

.cce[b-m6qt5xcqe7]  .cce-vocab-translation {
    color: var(--ink-soft);
    overflow-wrap: anywhere;
    user-select: text;
}

.cce[b-m6qt5xcqe7]  .cce-vocab-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

/* ===== Questions ===== */
.cce[b-m6qt5xcqe7]  .cce-question-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-sm);
}

    .cce[b-m6qt5xcqe7]  .cce-question-form.is-editing {
        background: var(--warn-soft);
        border-color: var(--warn-line);
    }

.cce[b-m6qt5xcqe7]  .cce-question-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.cce[b-m6qt5xcqe7]  .cce-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cce[b-m6qt5xcqe7]  .cce-tab {
    appearance: none;
    min-height: 36px;
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    background: #fff;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    cursor: pointer;
    touch-action: manipulation;
}

    .cce[b-m6qt5xcqe7]  .cce-tab.is-selected {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }

    .cce[b-m6qt5xcqe7]  .cce-tab:disabled:not(.is-selected) {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .cce[b-m6qt5xcqe7]  .cce-tab:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.cce[b-m6qt5xcqe7]  .cce-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
}

    .cce[b-m6qt5xcqe7]  .cce-question:first-child {
        border-top: 0;
    }

    .cce[b-m6qt5xcqe7]  .cce-question.is-editing {
        background: var(--warn-soft);
    }

.cce[b-m6qt5xcqe7]  .cce-question-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cce[b-m6qt5xcqe7]  .cce-question-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cce[b-m6qt5xcqe7]  .cce-question-text {
    margin: 2px 0 0;
    font-weight: 600;
    overflow-wrap: anywhere;
    user-select: text;
}

.cce[b-m6qt5xcqe7]  .cce-question-detail {
    margin: 0;
    font-size: 14px;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
    user-select: text;
}

    .cce[b-m6qt5xcqe7]  .cce-question-detail span {
        color: var(--ink-muted);
    }

/* ===== Audio ===== */
.cce[b-m6qt5xcqe7]  .cce-audio .module-audio-recorder {
    max-width: none;
    width: 100%;
}

/* ===== Save bar ===== */
.cce[b-m6qt5xcqe7]  .cce-savebar {
    position: sticky;
    bottom: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 12px 10px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(20, 30, 60, 0.12);
}

    .cce[b-m6qt5xcqe7]  .cce-savebar.is-dirty {
        border-color: var(--warn);
        box-shadow: 0 6px 24px rgba(245, 197, 24, 0.22);
    }

.cce[b-m6qt5xcqe7]  .cce-savebar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
}

.cce[b-m6qt5xcqe7]  .cce-savebar-actions {
    display: flex;
    gap: 8px;
}

/* ===== Leave guard dialog =====
   Above the layout's sticky header (900) and side menu (1100 / 1700). */
.cce[b-m6qt5xcqe7]  .cce-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(20, 24, 35, 0.45);
    animation: cce-fade-b-m6qt5xcqe7 0.15s ease;
}

.cce[b-m6qt5xcqe7]  .cce-dialog {
    width: min(100%, 520px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 22px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(20, 30, 60, 0.25);
}

.cce[b-m6qt5xcqe7]  .cce-dialog-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
}

/* The title with an "i" icon beside it (InfoTip): the explanation hangs from the icon instead of taking a paragraph. */
.cce[b-m6qt5xcqe7]  .cce-dialog-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}

    .cce[b-m6qt5xcqe7]  .cce-dialog-head .cce-dialog-title {
        margin: 0;
    }

.cce[b-m6qt5xcqe7]  .cce-dialog-text {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--ink-soft);
}

.cce[b-m6qt5xcqe7]  .cce-dialog-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cce[b-m6qt5xcqe7]  .cce-dialog-item {
    appearance: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    color: var(--ink);
    background: var(--warn-soft);
    border: 1px solid var(--warn-line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    touch-action: manipulation;
    overflow-wrap: anywhere;
}

    .cce[b-m6qt5xcqe7]  .cce-dialog-item:active:not(:disabled) {
        transform: scale(0.99);
    }

    .cce[b-m6qt5xcqe7]  .cce-dialog-item:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.cce[b-m6qt5xcqe7]  .cce-dialog-go {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-strong);
}

.cce[b-m6qt5xcqe7]  .cce-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== Hover (mouse/trackpad only — see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .cce[b-m6qt5xcqe7]  .cce-dialog-item:hover:not(:disabled) {
        border-color: var(--warn);
    }

    .cce[b-m6qt5xcqe7]  .cce-btn:hover:not(:disabled):not(.is-disabled) {
        border-color: var(--brand);
        background: var(--brand-soft);
    }

    .cce[b-m6qt5xcqe7]  .cce-btn--primary:hover:not(:disabled):not(.is-disabled) {
        background: var(--brand-strong);
        border-color: var(--brand-strong);
        box-shadow: 0 4px 14px rgba(77, 124, 254, 0.3);
    }

    .cce[b-m6qt5xcqe7]  .cce-btn--danger:hover:not(:disabled):not(.is-disabled) {
        background: #c02f32;
        border-color: #c02f32;
    }

    .cce[b-m6qt5xcqe7]  .cce-btn--danger-ghost:hover:not(:disabled):not(.is-disabled) {
        background: var(--danger-soft);
        border-color: var(--danger);
    }

    .cce[b-m6qt5xcqe7]  .cce-icon-btn:hover {
        opacity: 1;
        background: rgba(0, 0, 0, 0.06);
    }

    .cce[b-m6qt5xcqe7]  .cce-tab:hover:not(:disabled):not(.is-selected) {
        border-color: var(--brand);
        color: var(--brand-strong);
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-item:not(.is-editing):hover,
    .cce[b-m6qt5xcqe7]  .cce-question:not(.is-editing):hover {
        background: var(--surface);
    }
}

/* ===== Tablet ===== */
@media (max-width: 900px) {
    .cce[b-m6qt5xcqe7]  .cce-vocab-item {
        grid-template-columns: 28px 48px minmax(0, 1fr) auto;
        row-gap: 2px;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-num {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-item > .cce-thumb {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-word {
        grid-column: 3;
        grid-row: 1;
        align-self: end;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-translation {
        grid-column: 3;
        grid-row: 2;
        align-self: start;
        font-size: 14px;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-actions {
        grid-column: 4;
        grid-row: 1 / span 2;
    }
}

/* ===== Phones ===== */
@media (max-width: 600px) {
    .cce[b-m6qt5xcqe7] {
        --pad: 16px;
        --gap: 12px;
        padding: 0 0 110px;
    }

    .cce[b-m6qt5xcqe7]  .cce-page-head {
        padding-top: 4px;
    }

    .cce[b-m6qt5xcqe7]  .cce-grid-2,
    .cce[b-m6qt5xcqe7]  .cce-vocab-add-fields {
        grid-template-columns: 1fr;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-add .cce-image,
    .cce[b-m6qt5xcqe7]  .cce-vocab-edit .cce-image {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-add-submit .cce-btn {
        width: 100%;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-item {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        column-gap: 10px;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-num {
        display: none;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-item > .cce-thumb {
        grid-column: 1;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-word,
    .cce[b-m6qt5xcqe7]  .cce-vocab-translation {
        grid-column: 2;
    }

    .cce[b-m6qt5xcqe7]  .cce-vocab-actions {
        grid-column: 3;
        flex-direction: column;
    }

    .cce[b-m6qt5xcqe7]  .cce-question {
        flex-wrap: wrap;
    }

    .cce[b-m6qt5xcqe7]  .cce-question .cce-vocab-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
    }

    /* One row on phones: the dot and the amber border say "unsaved", the text goes. */
    .cce[b-m6qt5xcqe7]  .cce-savebar {
        bottom: 8px;
        flex-wrap: nowrap;
        padding: 8px 8px 8px 14px;
    }

        .cce[b-m6qt5xcqe7]  .cce-savebar-status > span:not(.cce-dot):not(.cce-spinner):not(.cce-savebar-progress) {
            display: none;
        }

    .cce[b-m6qt5xcqe7]  .cce-savebar-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
    }

        .cce[b-m6qt5xcqe7]  .cce-savebar-actions .cce-btn {
            padding: 0 16px;
        }

    .cce[b-m6qt5xcqe7]  .cce-notices.has-savebar {
        bottom: 72px;
    }

    .cce[b-m6qt5xcqe7]  .cce-dialog-actions .cce-btn {
        flex: 1 1 100%;
    }

    /* The lesson chips of the level check: one lesson per line, the status wrapping under the name. */
    .cce[b-m6qt5xcqe7]  .cce-plan-lesson {
        width: 100%;
        flex-wrap: wrap;
        border-radius: 10px;
    }
}

/* ===== The list pages (Работы, Отчёты об ошибках) =====
   A head with the title and its info icon (actions on the right), then one card that fills the page: filter tabs with
   counts in its head, and rows that unfold. A folded row is one line of facts with a dot for the state and the date on
   the right; the unfolded one opens under it, in the same frame, with the tags, the facts, the text and the one button.
   The look follows the Levels and Themes pages. */
.cce[b-m6qt5xcqe7]  .cce-split-head {
    align-items: center;
    gap: 10px 16px;
}

.cce[b-m6qt5xcqe7]  .cce-split-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-left: auto;
}

/* A small search field in the admin look */
.cce[b-m6qt5xcqe7]  .cce-search {
    width: 240px;
    max-width: 100%;
    min-height: 36px;
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

    .cce[b-m6qt5xcqe7]  .cce-search::placeholder {
        color: var(--ink-muted);
        opacity: 1;
    }

    .cce[b-m6qt5xcqe7]  .cce-search:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px var(--brand-soft);
    }

.cce[b-m6qt5xcqe7]  .cce-split-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* The one card: its head stays, its body scrolls */
.cce[b-m6qt5xcqe7]  .cce-pane {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cce[b-m6qt5xcqe7]  .cce-pane-head {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.cce[b-m6qt5xcqe7]  .cce-pane-tabs {
    flex-wrap: wrap;
}

    .cce[b-m6qt5xcqe7]  .cce-pane-tabs .cce-tab {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 32px;
        padding: 0 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .cce[b-m6qt5xcqe7]  .cce-pane-tabs .cce-badge {
        min-width: 22px;
        height: 20px;
        font-size: 12px;
    }

    .cce[b-m6qt5xcqe7]  .cce-pane-tabs .cce-tab.is-selected .cce-badge {
        color: var(--brand-strong);
        background: #fff;
        border-color: #fff;
    }

/* A head with two filters of different weight: the tabs on the left, a narrower control on the right; the second one
   wraps under the first when the card is narrow */
.cce[b-m6qt5xcqe7]  .cce-pane-head--row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

/* A segmented switch: the second filter in a grey track, so it is not read as another row of the blue tabs. Segments
   are text on the track; the chosen one is a white pill with a light shadow, its count in the brand colour. */
.cce[b-m6qt5xcqe7]  .cce-seg {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.cce[b-m6qt5xcqe7]  .cce-seg-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 0 11px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .cce[b-m6qt5xcqe7]  .cce-seg-btn.is-selected {
        color: var(--ink);
        background: #fff;
        box-shadow: 0 1px 3px rgba(20, 30, 60, 0.14);
    }

    /* The press shows on its own (the chosen segment is already white, so a fill alone would show nothing) */
    .cce[b-m6qt5xcqe7]  .cce-seg-btn:active {
        transform: scale(0.96);
        transition-duration: 0s;
    }

    .cce[b-m6qt5xcqe7]  .cce-seg-btn:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 1px;
    }

.cce[b-m6qt5xcqe7]  .cce-seg-count {
    font-size: 11.5px;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

    .cce[b-m6qt5xcqe7]  .cce-seg-btn.is-selected .cce-seg-count {
        color: var(--brand-strong);
    }

/* The same choice as a dropdown pill, shown on phones in place of the switch (the four segments with their counts do
   not fit a phone's width; a native picker does). Hidden elsewhere. */
.cce[b-m6qt5xcqe7]  .cce-seg-select {
    display: none;
    max-width: 100%;
    height: 36px; /* set, not min: the browser's own select height is taller */
    padding: 0 36px 0 14px;
    font: inherit;
    font-size: 16px; /* 16px keeps iOS from zooming on focus */
    font-weight: 600;
    color: var(--ink-soft);
    background-color: #fff;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    outline: none;
}

    .cce[b-m6qt5xcqe7]  .cce-seg-select:focus-visible {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px var(--brand-soft);
    }

.cce[b-m6qt5xcqe7]  .cce-pane-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
}

.cce[b-m6qt5xcqe7]  .cce-pane-empty {
    margin: 0;
    padding: 24px 12px;
    text-align: center;
    font-size: 14px;
    color: var(--ink-muted);
}

/* The rows: a dot for the state, the title with a line under it, the date and a chevron on the right; a waiting row
   carries the yellow tint, the unfolded row the brand frame that its body continues */
.cce[b-m6qt5xcqe7]  .cce-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cce[b-m6qt5xcqe7]  .cce-row {
    appearance: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    text-align: left;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

    .cce[b-m6qt5xcqe7]  .cce-row.is-pending {
        background: var(--warn-soft);
        border-color: var(--warn-line);
    }

    .cce[b-m6qt5xcqe7]  .cce-item.is-open .cce-row {
        background: var(--brand-soft);
        border-color: var(--brand);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .cce[b-m6qt5xcqe7]  .cce-row:active {
        transform: scale(0.995);
    }

    .cce[b-m6qt5xcqe7]  .cce-row:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.cce[b-m6qt5xcqe7]  .cce-row-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cce[b-m6qt5xcqe7]  .cce-row-title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.cce[b-m6qt5xcqe7]  .cce-row-sub {
    display: flex;
    align-items: center;
    gap: 4px 8px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ink-soft);
}

    .cce[b-m6qt5xcqe7]  .cce-row-sub .cce-chip {
        height: 20px;
        padding: 0 8px;
        font-size: 11.5px;
    }

    /* One line of text, cut with an ellipsis (a report's first line), after whatever stands before it on the line */
    .cce[b-m6qt5xcqe7]  .cce-row-sub--line {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.cce[b-m6qt5xcqe7]  .cce-row-muted {
    color: var(--ink-muted);
}

.cce[b-m6qt5xcqe7]  .cce-row-side {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--ink-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

    .cce[b-m6qt5xcqe7]  .cce-row-side .cce-chevron {
        color: var(--ink-muted);
    }

/* The dot's states: yellow waits (the default), green done, red open */
.cce[b-m6qt5xcqe7]  .cce-dot.is-ok {
    background: var(--ok);
}

.cce[b-m6qt5xcqe7]  .cce-dot.is-danger {
    background: var(--danger);
}

/* The unfolded row's body: the same frame continued under the row */
.cce[b-m6qt5xcqe7]  .cce-row-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px 14px;
    background: #fff;
    border: 1.5px solid var(--brand);
    border-top: 0;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.cce[b-m6qt5xcqe7]  .cce-item-tags {
    display: flex;
    align-items: center;
    gap: 6px 12px;
    flex-wrap: wrap;
    font-size: 13px;
}

.cce[b-m6qt5xcqe7]  .cce-item-link {
    font-weight: 600;
    color: var(--brand-strong);
    text-decoration: none;
}

    .cce[b-m6qt5xcqe7]  .cce-item-link:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
        border-radius: 4px;
    }

/* The state of an item: ink on the yellow while it waits (yellow text does not read), green when done, red when open */
.cce[b-m6qt5xcqe7]  .cce-state {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

    .cce[b-m6qt5xcqe7]  .cce-state.is-pending {
        color: var(--ink);
        background: var(--warn-soft);
        border: 1px solid var(--warn-line);
    }

    .cce[b-m6qt5xcqe7]  .cce-state.is-answered {
        color: var(--ok);
        background: var(--ok-soft);
        border: 1px solid var(--ok-line);
    }

    .cce[b-m6qt5xcqe7]  .cce-state.is-open {
        color: var(--danger);
        background: var(--danger-soft);
        border: 1px solid var(--danger-line);
    }

.cce[b-m6qt5xcqe7]  .cce-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin: 0;
}

.cce[b-m6qt5xcqe7]  .cce-fact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    min-width: 0;
}

    .cce[b-m6qt5xcqe7]  .cce-fact dt {
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: 0.2px;
        text-transform: uppercase;
        color: var(--ink-muted);
    }

    .cce[b-m6qt5xcqe7]  .cce-fact dd {
        margin: 0;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
        color: var(--ink);
        overflow-wrap: anywhere;
    }

/* The text itself (the start of an essay, the whole report), as written */
.cce[b-m6qt5xcqe7]  .cce-excerpt {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cce[b-m6qt5xcqe7]  .cce-excerpt-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.cce[b-m6qt5xcqe7]  .cce-excerpt-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    user-select: text;
}

/* The one action, at the end of the unfolded row, on the right */
.cce[b-m6qt5xcqe7]  .cce-row-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== Hover (mouse/trackpad only - see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .cce[b-m6qt5xcqe7]  .cce-item:not(.is-open) .cce-row:hover {
        border-color: var(--brand-line);
        box-shadow: 0 2px 8px rgba(20, 30, 60, 0.06);
    }

    .cce[b-m6qt5xcqe7]  .cce-seg-btn:hover:not(.is-selected) {
        color: var(--ink);
        background: rgba(255, 255, 255, 0.7);
    }

    .cce[b-m6qt5xcqe7]  .cce-seg-select:hover {
        border-color: var(--brand);
    }

    .cce[b-m6qt5xcqe7]  .cce-item-link:hover {
        text-decoration: underline;
    }
}

/* ===== Phones and small tablets ===== */
@media (max-width: 900px) {
    .cce[b-m6qt5xcqe7]  .cce-split-head {
        flex-direction: column;
        align-items: stretch;
    }

    .cce[b-m6qt5xcqe7]  .cce-split-actions {
        margin-left: 0;
    }

    .cce[b-m6qt5xcqe7]  .cce-search {
        width: 100%;
    }

    .cce[b-m6qt5xcqe7]  .cce-row-body {
        padding: 10px 12px 12px;
    }

    .cce[b-m6qt5xcqe7]  .cce-row-foot .cce-btn {
        flex: 1 1 100%;
    }
}

/* ===== Phones: the list pages ===== */
@media (max-width: 600px) {
    /* The kind of work as the dropdown pill in place of the switch, and both filters the height of a finger. The state
       tabs share the row (they wrap only if a phone is narrower than their words). */
    .cce[b-m6qt5xcqe7]  .cce-seg {
        display: none;
    }

    .cce[b-m6qt5xcqe7]  .cce-seg-select {
        display: block;
        width: 100%;
    }

    .cce[b-m6qt5xcqe7]  .cce-pane-head--row .cce-pane-tabs {
        flex: 1 1 100%;
    }

    .cce[b-m6qt5xcqe7]  .cce-pane-tabs .cce-tab {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 36px;
        padding: 0 6px;
    }

    .cce[b-m6qt5xcqe7]  .cce-pane-tabs .cce-badge {
        min-width: 20px;
        padding: 0 6px;
    }
}
/* /Components/Admin/LessonPicker.razor.rz.scp.css */
/* The lesson picker of /custom-content. Tokens (--brand, --ink, --warn ...) come from the
   AdminShell root (.cce) it always sits in. Palette: the Progress page's (CLAUDE.md). */

.lp[b-jz4ujzl5cg] {
    position: relative;
    flex-shrink: 0;
    min-height: 44px;
}

/* ===== The closed card: the lesson (a button that opens the list) and its actions ===== */
/* With a lesson open it stands out from the editor cards below it the way a focused control
   does: white, the brand line for a border, a soft brand halo. */
.lp-head[b-jz4ujzl5cg] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .lp-head.has-lesson[b-jz4ujzl5cg] {
        border-color: var(--brand-line);
        border-radius: var(--radius);
        box-shadow: 0 0 0 4px var(--brand-soft), 0 6px 20px rgba(77, 124, 254, 0.14);
    }

    .lp-head:focus-within[b-jz4ujzl5cg] {
        border-color: var(--brand);
    }

.lp-field[b-jz4ujzl5cg] {
    appearance: none;
    display: flex;
    align-items: center;
    flex: 1 1 380px;
    gap: 10px;
    min-width: 0;
    min-height: 38px;
    padding: 4px 8px 4px 9px;
    font: inherit;
    color: var(--ink);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease;
}

    /* With a lesson: two rows beside the tile. The number, name and type on the first (the type
       gives way first, the name only when it is longer than most of the row), the status chips
       wrapping on the second, the chevron on the right spanning both. */
    .lp-field--lesson[b-jz4ujzl5cg] {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 5px;
        align-items: center;
    }

        .lp-field--lesson .lp-tile[b-jz4ujzl5cg] {
            grid-column: 1;
            grid-row: 1 / span 2;
            width: 34px;
            height: 34px;
            padding: 7px;
            border-radius: 10px;
        }

        .lp-field--lesson .lp-chevron[b-jz4ujzl5cg] {
            grid-column: 3;
            grid-row: 1 / span 2;
            margin-left: 0;
        }

    .lp-line--field[b-jz4ujzl5cg] {
        grid-column: 2;
        grid-row: 1;
    }

        .lp-line--field .lp-name[b-jz4ujzl5cg] {
            font-size: 15px;
        }

    .lp-field:disabled[b-jz4ujzl5cg] {
        cursor: default;
        color: var(--ink-soft);
    }

    .lp-field:focus-visible[b-jz4ujzl5cg] {
        outline: none;
        box-shadow: inset 0 0 0 2px var(--brand);
    }

    .lp-field:active:not(:disabled)[b-jz4ujzl5cg] {
        background: var(--brand-soft);
        transition-duration: 0s;
    }

@media (hover: hover) and (pointer: fine) {
    .lp-field:hover:not(:disabled)[b-jz4ujzl5cg] {
        background: var(--brand-soft);
    }

        .lp-field:hover:not(:disabled) .lp-chevron[b-jz4ujzl5cg] {
            stroke: var(--brand-strong);
        }
}

/* The page's buttons, at the right; when the card is too narrow they scroll sideways under the lesson. */
.lp-actions[b-jz4ujzl5cg] {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 6px;
    min-width: 0;
    margin-left: auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    /* The scroll box clips the buttons' focus outline (2px + 2px offset): room for it inside,
       cancelled by the margin so the card keeps its size. */
    padding: 4px;
    margin-top: -4px;
    margin-bottom: -4px;
}

    .lp-actions[b-jz4ujzl5cg]::-webkit-scrollbar {
        display: none;
    }

    .lp-head .lp-actions[b-jz4ujzl5cg]  .cce-btn {
        flex-shrink: 0;
        min-height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }

.lp-placeholder[b-jz4ujzl5cg] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-icon[b-jz4ujzl5cg] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    stroke: var(--ink-soft);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-chevron[b-jz4ujzl5cg] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-left: auto;
    stroke: var(--ink-soft);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-count[b-jz4ujzl5cg] {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* The type icons are white glyphs; they sit on a brand tile, as in the module head. */
.lp-tile[b-jz4ujzl5cg] {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 9px;
    background: var(--brand);
    object-fit: contain;
}

.lp-num[b-jz4ujzl5cg] {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* The name keeps its full width until it would take most of the line; the type beside it shrinks first. */
.lp-name[b-jz4ujzl5cg] {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 72%;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-type[b-jz4ujzl5cg] {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Status chips: ink text, the colour on the dot (yellow never carries words) ===== */
.lp-chips[b-jz4ujzl5cg] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.lp-chips--field[b-jz4ujzl5cg] {
    grid-column: 2;
    grid-row: 2;
}

.lp-chip[b-jz4ujzl5cg] {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    height: 20px;
    padding: 0 8px 0 7px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}

.lp-dot[b-jz4ujzl5cg] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #999999;
}

.lp-chip--ok[b-jz4ujzl5cg] {
    background: #f4faec;
    border-color: var(--ok-line);
}

    .lp-chip--ok .lp-dot[b-jz4ujzl5cg],
    .lp-dot--ok[b-jz4ujzl5cg] {
        background: #5d8f22;
    }

.lp-chip--gap[b-jz4ujzl5cg] {
    background: var(--warn-soft);
    border-color: var(--warn-line);
}

    .lp-chip--gap .lp-dot[b-jz4ujzl5cg],
    .lp-dot--gap[b-jz4ujzl5cg] {
        background: var(--warn);
    }

.lp-chip--empty[b-jz4ujzl5cg] {
    background: var(--warn);
    border-color: #d9a300;
}

    .lp-chip--empty .lp-dot[b-jz4ujzl5cg] {
        background: var(--ink);
    }

.lp-chip--draft[b-jz4ujzl5cg] {
    background: #eeeeee;
    border-color: var(--line-strong);
    color: var(--ink-soft);
}

/* ===== The open list ===== */
.lp-backdrop[b-jz4ujzl5cg] {
    position: fixed;
    inset: 0;
    z-index: 49;
}

.lp-panel[b-jz4ujzl5cg] {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    max-height: min(72vh, 760px);
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(20, 30, 60, 0.16);
}

.lp-search[b-jz4ujzl5cg] {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    min-height: 44px;
    padding: 0 8px 0 10px;
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.14);
}

.lp-input[b-jz4ujzl5cg] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: none;
    font: inherit;
    font-size: 16px; /* 16px keeps iOS from zooming on focus */
    color: var(--ink);
    background: transparent;
}

.lp-clear[b-jz4ujzl5cg] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink-soft);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

    .lp-clear:active[b-jz4ujzl5cg] {
        background: var(--line);
        transition-duration: 0s;
    }

.lp-cancel[b-jz4ujzl5cg] {
    display: none;
    appearance: none;
    flex: 0 0 auto;
    padding: 0 2px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-strong);
    cursor: pointer;
}

.lp-close[b-jz4ujzl5cg] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

    .lp-close svg[b-jz4ujzl5cg] {
        width: 18px;
        height: 18px;
        stroke: var(--ink-soft);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .lp-close:active[b-jz4ujzl5cg] {
        background: var(--surface);
        transition-duration: 0s;
    }

/* The "show only" chips: a blue dot for all, grey for drafts, yellow for every gap. The pressed one fills with the brand. */
.lp-filters[b-jz4ujzl5cg] {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    gap: 6px;
    padding: 8px 4px 10px;
    border-bottom: 1px solid var(--line);
}

.lp-filter[b-jz4ujzl5cg] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    height: 30px;
    padding: 0 12px 0 10px;
    border-radius: 999px;
    border: 1.5px solid var(--line-strong);
    background: #fff;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .lp-filter .lp-n[b-jz4ujzl5cg] {
        color: var(--ink-soft);
        font-variant-numeric: tabular-nums;
    }

    .lp-filter .lp-dot[b-jz4ujzl5cg] {
        background: var(--warn);
    }

    .lp-filter--all .lp-dot[b-jz4ujzl5cg] {
        background: var(--brand);
    }

    .lp-filter--draft .lp-dot[b-jz4ujzl5cg] {
        background: #999999;
    }

    .lp-filter.is-on[b-jz4ujzl5cg] {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

        .lp-filter.is-on .lp-n[b-jz4ujzl5cg] {
            color: #fff;
        }

        .lp-filter.is-on .lp-dot[b-jz4ujzl5cg] {
            background: #fff;
        }

    .lp-filter:active:not(.is-on)[b-jz4ujzl5cg] {
        background: var(--brand-soft);
        border-color: var(--brand-line);
        transition-duration: 0s;
    }

    .lp-filter:focus-visible[b-jz4ujzl5cg] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

@media (hover: hover) and (pointer: fine) {
    .lp-filter:hover:not(.is-on)[b-jz4ujzl5cg] {
        border-color: var(--brand-line);
        background: var(--brand-soft);
    }
}

.lp-list[b-jz4ujzl5cg] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}

.lp-none[b-jz4ujzl5cg] {
    padding: 18px 14px;
    font-size: 14px;
    color: var(--ink-soft);
}

.lp-group[b-jz4ujzl5cg] {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 6px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
}

    .lp-group b[b-jz4ujzl5cg] {
        color: var(--ink);
        font-weight: 700;
    }

.lp-group-name[b-jz4ujzl5cg] {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-group-count[b-jz4ujzl5cg] {
    margin-left: auto;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* A row: the tile, then the number, name, type and badges on one line with the status chips under them (laptops). */
.lp-row[b-jz4ujzl5cg] {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 8px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font: inherit;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .lp-row:focus-visible[b-jz4ujzl5cg] {
        outline: none;
        box-shadow: inset 0 0 0 2px var(--brand);
    }

    .lp-row.is-active[b-jz4ujzl5cg] {
        background: var(--brand-soft);
        box-shadow: inset 0 0 0 1.5px var(--brand-line);
    }

    .lp-row.is-selected .lp-num[b-jz4ujzl5cg] {
        background: var(--brand);
    }

    .lp-row:active[b-jz4ujzl5cg] {
        background: var(--brand-soft);
        transition-duration: 0s;
    }

@media (hover: hover) and (pointer: fine) {
    .lp-row:hover[b-jz4ujzl5cg] {
        background: var(--brand-soft);
    }
}

.lp-main[b-jz4ujzl5cg] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lp-line[b-jz4ujzl5cg] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* The phone strip: one slot per section of the type, green when filled, yellow when not. Hidden on laptops. */
.lp-strip[b-jz4ujzl5cg] {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
}

.lp-slot[b-jz4ujzl5cg] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid transparent;
}

    .lp-slot svg[b-jz4ujzl5cg] {
        width: 12px;
        height: 12px;
        fill: none;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .lp-slot.is-ok[b-jz4ujzl5cg] {
        background: #f4faec;
        border-color: var(--ok-line);
    }

        .lp-slot.is-ok svg[b-jz4ujzl5cg] {
            stroke: #5d8f22;
        }

    .lp-slot.is-gap[b-jz4ujzl5cg] {
        background: var(--warn-soft);
        border-color: var(--warn-line);
    }

        .lp-slot.is-gap svg[b-jz4ujzl5cg] {
            stroke: var(--ink);
        }

.lp-foot[b-jz4ujzl5cg] {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 14px;
    padding: 8px 14px 4px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-soft);
}

.lp-legend[b-jz4ujzl5cg] {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.lp-legend--phone[b-jz4ujzl5cg] {
    display: none;
}

.lp-legend-item[b-jz4ujzl5cg] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

    .lp-legend-item svg[b-jz4ujzl5cg] {
        width: 12px;
        height: 12px;
        fill: none;
        stroke: var(--ink-soft);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.lp-swatch[b-jz4ujzl5cg] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--ok-line);
    background: #f4faec;
}

.lp-swatch--gap[b-jz4ujzl5cg] {
    border-color: var(--warn-line);
    background: var(--warn-soft);
}

.lp-keys[b-jz4ujzl5cg] {
    margin-left: auto;
    white-space: nowrap;
}

/* ===== Phones: the list is a sheet over the whole screen; rows are one line with the strip ===== */
@media (max-width: 600px) {
    .lp-head[b-jz4ujzl5cg] {
        gap: 4px 8px;
        padding: 4px;
    }

    .lp-field[b-jz4ujzl5cg] {
        flex-basis: 100%;
        min-height: 44px;
        gap: 8px;
        padding: 4px 6px 4px 8px;
    }

    /* The actions take the second row, previous / next first so they are always on screen. */
    .lp-actions[b-jz4ujzl5cg] {
        flex: 1 1 100%;
        margin: 0 -4px -4px;
        padding: 4px 8px 8px;
    }

        /* The closed field keeps only the gaps: the row is too short for every chip. */
        .lp-field .lp-type[b-jz4ujzl5cg],
        .lp-field .lp-chip--ok[b-jz4ujzl5cg] {
            display: none;
        }

    .lp-field .lp-tile[b-jz4ujzl5cg],
    .lp-field--lesson .lp-tile[b-jz4ujzl5cg] {
        width: 28px;
        height: 28px;
        padding: 6px;
        border-radius: 8px;
    }

    /* A lesson that lacks nothing has no second row on a phone. */
    .lp-field--lesson .lp-chips--field:empty[b-jz4ujzl5cg] {
        display: none;
    }

    .lp-backdrop[b-jz4ujzl5cg] {
        display: none;
    }

    /* The sheet fills the screen below the app header, which is fixed on phones and stays on top
       (its z-index is above anything a page can reach past the hamburger). --lp-top mirrors the
       header heights in LeftSideNavLayout.razor.css, the same steps ViewportPage's --vp-top uses. */
    .lp-panel[b-jz4ujzl5cg] {
        --lp-top: calc(34px + 1.3rem);
        position: fixed;
        top: var(--lp-top);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        max-height: none;
        padding: 10px 0 env(safe-area-inset-bottom);
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 0;
        box-shadow: none;
    }

    .lp-search[b-jz4ujzl5cg] {
        min-height: 48px;
        margin: 0 12px;
        padding: 0 8px 0 10px;
        gap: 8px;
        border-radius: 12px;
    }

    .lp-cancel[b-jz4ujzl5cg] {
        display: inline-flex;
    }

    .lp-close[b-jz4ujzl5cg],
    .lp-search .lp-count[b-jz4ujzl5cg] {
        display: none;
    }

    .lp-filters[b-jz4ujzl5cg] {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 10px 12px;
        margin: 0;
        -webkit-overflow-scrolling: touch;
    }

        .lp-filters[b-jz4ujzl5cg]::-webkit-scrollbar {
            display: none;
        }

    .lp-legend--phone[b-jz4ujzl5cg] {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 7px 12px;
        border-bottom: 1px solid var(--line);
        font-size: 11px;
    }

    .lp-legend-keys[b-jz4ujzl5cg] {
        display: inline-flex;
        gap: 8px;
        margin-left: auto;
    }

    .lp-group[b-jz4ujzl5cg] {
        padding: 8px 12px 5px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        font-size: 11px;
    }

    .lp-group-word[b-jz4ujzl5cg] {
        display: none;
    }

    .lp-row[b-jz4ujzl5cg] {
        gap: 8px;
        min-height: 48px;
        padding: 0 12px;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
    }

        .lp-row .lp-tile[b-jz4ujzl5cg] {
            width: 28px;
            height: 28px;
            border-radius: 8px;
        }

        .lp-row .lp-type[b-jz4ujzl5cg],
        .lp-row .lp-chips[b-jz4ujzl5cg] {
            display: none;
        }

    .lp-line[b-jz4ujzl5cg] {
        gap: 7px;
    }

    .lp-num[b-jz4ujzl5cg] {
        height: 18px;
        padding: 0 6px;
        font-size: 10.5px;
    }

    .lp-name[b-jz4ujzl5cg] {
        font-size: 13.5px;
    }

    .lp-chip[b-jz4ujzl5cg] {
        height: 18px;
        padding: 0 7px 0 6px;
        font-size: 10.5px;
    }

    .lp-strip[b-jz4ujzl5cg] {
        display: flex;
    }

    .lp-foot[b-jz4ujzl5cg] {
        display: none;
    }
}

@media (max-width: 500px) {
    .lp-panel[b-jz4ujzl5cg] {
        --lp-top: calc(32px + 1.1rem);
    }
}

@media (max-width: 450px) {
    .lp-panel[b-jz4ujzl5cg] {
        --lp-top: calc(28px + 1rem);
    }
}

@media (max-width: 380px) {
    .lp-panel[b-jz4ujzl5cg] {
        --lp-top: calc(26px + 0.8rem);
    }
}
/* /Components/Admin/LevelImportDialog.razor.rz.scp.css */
/* The template options: a short labelled form inside the dialog. One segmented control for how much of the course the
   file describes (the three presets), the six switches behind it as checkboxes shown on request, the levels as a
   checkbox list with lesson counts, the new level's name, and the download row. Labels sit in a narrow left column on
   laptops and above their control on phones. */
.lid[b-7ev94qphb5] {
    margin: 4px 0 16px;
    padding: 14px 16px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.lid-title[b-7ev94qphb5] {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.lid-row[b-7ev94qphb5] {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 6px 14px;
    align-items: start;
}

    .lid-row + .lid-row[b-7ev94qphb5] {
        margin-top: 14px;
    }

.lid-label[b-7ev94qphb5] {
    padding-top: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-muted);
}

.lid-body[b-7ev94qphb5] {
    min-width: 0;
}

/* ── The amount: one connected pill with three segments, the chosen one filled with the brand ── */
.lid-seg[b-7ev94qphb5] {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
}

.lid-seg-item[b-7ev94qphb5] {
    appearance: none;
    height: 30px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .lid-seg-item.is-on[b-7ev94qphb5] {
        background: var(--brand);
        color: #fff;
    }

    .lid-seg-item:active:not(.is-on):not(:disabled)[b-7ev94qphb5] {
        background: var(--brand-soft);
        transition-duration: 0s;
    }

    .lid-seg-item:focus-visible[b-7ev94qphb5] {
        outline: 2px solid var(--brand);
        outline-offset: 1px;
    }

    .lid-seg-item:disabled[b-7ev94qphb5] {
        opacity: 0.5;
        cursor: default;
    }

@media (hover: hover) and (pointer: fine) {
    .lid-seg-item:hover:not(.is-on):not(:disabled)[b-7ev94qphb5] {
        background: var(--brand-soft);
    }
}

.lid-help[b-7ev94qphb5] {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-soft);
}

.lid-link[b-7ev94qphb5] {
    appearance: none;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-strong);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .lid-link:focus-visible[b-7ev94qphb5] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
        border-radius: 4px;
    }

    .lid-link:disabled[b-7ev94qphb5] {
        opacity: 0.5;
        cursor: default;
    }

/* ── Checkbox lists: the switches in two columns, the levels one per line ── */
.lid-checks[b-7ev94qphb5] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lid-checks--grid[b-7ev94qphb5] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 18px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.lid-check[b-7ev94qphb5] {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.3;
    color: var(--ink);
}

    .lid-check input[b-7ev94qphb5] {
        flex: 0 0 auto;
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: var(--brand);
        cursor: pointer;
    }

    .lid-check label[b-7ev94qphb5] {
        margin: 0;
        cursor: pointer;
    }

    .lid-check--drafts[b-7ev94qphb5] {
        margin-top: 6px;
        padding-top: 8px;
        border-top: 1px solid var(--line);
    }

.lid-tag[b-7ev94qphb5] {
    padding: 1px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    font-size: 11.5px;
    color: var(--ink-soft);
    white-space: nowrap;
}

.lid-n[b-7ev94qphb5] {
    margin-left: auto;
    padding-left: 12px;
    font-size: 12.5px;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lid-body .lid-level-input[b-7ev94qphb5] {
    max-width: 280px;
    min-height: 38px;
    padding: 7px 12px;
    font-size: 14px;
}

/* ── The download row ── */
.lid-foot[b-7ev94qphb5] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.lid-count[b-7ev94qphb5] {
    font-size: 13px;
    color: var(--ink-soft);
}

@media (max-width: 560px) {
    .lid-row[b-7ev94qphb5] {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .lid-label[b-7ev94qphb5] {
        padding-top: 0;
    }

    .lid-seg[b-7ev94qphb5] {
        display: flex;
    }

        .lid-seg .lid-seg-item[b-7ev94qphb5] {
            flex: 1 1 0;
            padding: 0 8px;
        }

    .lid-checks--grid[b-7ev94qphb5] {
        grid-template-columns: minmax(0, 1fr);
    }

    .lid-body .lid-level-input[b-7ev94qphb5] {
        max-width: none;
    }
}

/* ── Step 1: what to do, as two cards ── */
.lid-start[b-7ev94qphb5] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 14px;
}

/* Three cards share the dialog's 640px, so each is about 190px wide: the icon sits above the title and the text is
   centred. Stacked (below 720px) the icon goes back beside the text. */
.lid-start-card[b-7ev94qphb5] {
    appearance: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    justify-items: center;
    row-gap: 3px;
    align-items: center;
    padding: 14px 10px 12px;
    text-align: center;
    border: 1.5px solid var(--line-strong);
    border-radius: 14px;
    background: #fff;
    font: inherit;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

    .lid-start-card.is-on[b-7ev94qphb5] {
        border-color: var(--brand);
        background: var(--brand-soft);
        box-shadow: 0 0 0 1px var(--brand) inset;
    }

    .lid-start-card:active:not(:disabled)[b-7ev94qphb5] {
        background: var(--brand-soft);
        transition-duration: 0s;
    }

    .lid-start-card:focus-visible[b-7ev94qphb5] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    .lid-start-card:disabled[b-7ev94qphb5] {
        opacity: 0.5;
        cursor: default;
    }

@media (hover: hover) and (pointer: fine) {
    .lid-start-card:hover:not(.is-on):not(:disabled)[b-7ev94qphb5] {
        border-color: var(--brand-line);
        background: var(--surface);
    }
}

.lid-start-icon[b-7ev94qphb5] {
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--brand-line);
    font-size: 18px;
    line-height: 1;
    color: var(--brand);
}

.is-on .lid-start-icon[b-7ev94qphb5] {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.lid-start-title[b-7ev94qphb5] {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.25;
}

.lid-start-text[b-7ev94qphb5] {
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--ink-soft);
}

/* The level pills of "edit": the segmented control, allowed to wrap. */
.lid-seg--wrap[b-7ev94qphb5] {
    flex-wrap: wrap;
    row-gap: 3px;
}

/* ── Step 2: the summary (the file bar is the shell's .cce-filebar) ── */
/* What the load does, one row per outcome: a coloured dot, the outcome, the counts. */
.lid-sum[b-7ev94qphb5] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.lid-sum-row[b-7ev94qphb5] {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 2px 12px;
    align-items: baseline;
    font-size: 13.5px;
    line-height: 1.45;
}

    .lid-sum-row dt[b-7ev94qphb5] {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        font-weight: 600;
        white-space: nowrap;
    }

    .lid-sum-row dd[b-7ev94qphb5] {
        margin: 0;
        color: var(--ink-soft);
    }

.lid-sum-dot[b-7ev94qphb5] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--ink-muted);
}

.is-new .lid-sum-dot[b-7ev94qphb5],
.is-add .lid-sum-dot[b-7ev94qphb5] {
    background: var(--ok);
}

.is-existing .lid-sum-dot[b-7ev94qphb5] {
    background: var(--brand);
}

.is-replace .lid-sum-dot[b-7ev94qphb5],
.is-kept .lid-sum-dot[b-7ev94qphb5] {
    background: var(--warn);
}

.is-same .lid-sum-dot[b-7ev94qphb5] {
    background: #999999;
}

/* ── How the file meets what is stored ── */
.lid-mode[b-7ev94qphb5] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0 0 10px;
}

    .lid-mode .lid-check[b-7ev94qphb5] {
        font-weight: 600;
    }

.lid-checking[b-7ev94qphb5] {
    font-size: 13px;
    color: var(--ink-muted);
}

/* A folded list under a one-line heading: what is replaced (yellow), the keys that were not found (quiet). */
.lid-fold[b-7ev94qphb5] {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--warn-soft);
    border: 1px solid var(--warn-line);
    font-size: 14px;
    color: var(--ink);
}

    .lid-fold.is-quiet[b-7ev94qphb5] {
        background: var(--surface);
        border-color: var(--line);
        color: var(--ink-soft);
    }

    .lid-fold > summary[b-7ev94qphb5] {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        list-style: none;
    }

        .lid-fold > summary[b-7ev94qphb5]::-webkit-details-marker {
            display: none;
        }

        .lid-fold > summary[b-7ev94qphb5]::after {
            content: "▸";
            margin-left: auto;
            font-size: 12px;
            color: var(--ink-muted);
        }

    .lid-fold[open] > summary[b-7ev94qphb5]::after {
        content: "▾";
    }

    .lid-fold ul[b-7ev94qphb5] {
        margin: 8px 0 0;
        padding-left: 18px;
        font-size: 13px;
        line-height: 1.5;
    }

/* What a lesson's line of the file does, after its name on the chip; and a short note in a head row. */
.lid-note[b-7ev94qphb5] {
    font-size: 12px;
    color: var(--ink-muted);
    white-space: normal;
}

.cce-plan-lesson .lid-note[b-7ev94qphb5]::before {
    content: "· ";
}

/* ── After the load: publish or take back what was created ── */
.lid-after[b-7ev94qphb5] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ok-line);
}

.cce-result.is-error .lid-after[b-7ev94qphb5] {
    border-top-color: var(--warn-line);
}

.lid-after-note[b-7ev94qphb5] {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
}

    .lid-after-note.is-error[b-7ev94qphb5] {
        color: var(--danger);
    }

/* Three start cards need the full dialog width; below that they stack, each a row with the icon beside the text. */
@media (max-width: 720px) {
    .lid-start[b-7ev94qphb5] {
        grid-template-columns: minmax(0, 1fr);
    }

    .lid-start-card[b-7ev94qphb5] {
        grid-template-columns: 34px minmax(0, 1fr);
        grid-template-rows: auto auto;
        justify-items: start;
        column-gap: 10px;
        row-gap: 2px;
        padding: 12px 14px;
        text-align: left;
    }

    .lid-start-icon[b-7ev94qphb5] {
        grid-row: 1 / 3;
        margin-bottom: 0;
    }
}

@media (max-width: 560px) {

    .lid-sum-row[b-7ev94qphb5] {
        grid-template-columns: minmax(0, 1fr);
    }

}

/* A row of controls with an "i" icon among them. */
.lid-inline[b-7ev94qphb5] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}
/* /Components/Admin/PicturesStep.razor.rz.scp.css */
/* The pictures section of the import dialogs: a head line, the drop zone (the file input covers it, so a drop and a click
   both reach it), the match as rows, the upload progress and the result. Colours fall back to the palette. */
.pics[b-fcaloz0pko] {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line, #eceef3);
}

.pics-head[b-fcaloz0pko] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 10px;
}

.pics-title[b-fcaloz0pko] {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.pics-note[b-fcaloz0pko] {
    font-size: 13px;
    color: var(--ink-muted, #8a8f98);
}

    .pics-head .cce-btn[b-fcaloz0pko] {
        margin-left: auto;
    }

/* The drop zone: dashed, the input on top. */
.pics-zone[b-fcaloz0pko] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 16px 16px 14px;
    border: 2px dashed var(--line-strong, #c9d6ff);
    border-radius: 14px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

    .pics-zone:focus-within[b-fcaloz0pko] {
        outline: 2px solid var(--brand, #4d7cfe);
        outline-offset: 2px;
    }

    .pics-zone:active[b-fcaloz0pko] {
        background: var(--brand-soft, #f3f6ff);
        border-color: var(--brand, #4d7cfe);
        transition-duration: 0s;
    }

    .pics-zone.has-files[b-fcaloz0pko] {
        border-style: solid;
        border-color: var(--brand-line, #c9d6ff);
        background: var(--brand-soft, #f3f6ff);
    }

    .pics-zone.is-disabled[b-fcaloz0pko] {
        opacity: 0.5;
        cursor: default;
    }

@media (hover: hover) and (pointer: fine) {
    .pics-zone:not(.is-disabled):hover[b-fcaloz0pko] {
        border-color: var(--brand, #4d7cfe);
        background: var(--brand-soft, #f3f6ff);
    }
}

.pics-zone[b-fcaloz0pko]  .pics-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.pics-zone.is-disabled[b-fcaloz0pko]  .pics-input {
    cursor: default;
}

.pics-icon[b-fcaloz0pko] {
    width: 28px;
    height: 28px;
    color: var(--brand, #4d7cfe);
}

.pics-text[b-fcaloz0pko] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 5px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink-soft, #4a4f57);
}

    .pics-text strong[b-fcaloz0pko] {
        font-weight: 600;
        color: var(--ink, #1a1a1a);
    }

.pics-hint[b-fcaloz0pko] {
    font-size: 12.5px;
    color: var(--ink-muted, #8a8f98);
}

/* The sum of the match, as chips: green for what goes up, yellow for what needs a look, grey for the rest. */
.pics-sum[b-fcaloz0pko] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 8px;
}

.pics-chip[b-fcaloz0pko] {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
    background: var(--surface, #eeeeee);
}

    .pics-chip.is-ok[b-fcaloz0pko] {
        background: #e0f7e9;
    }

    .pics-chip.is-warn[b-fcaloz0pko] {
        background: #fef9e7;
    }

/* The rows: file, where it goes, how it was matched. */
.pics-rows[b-fcaloz0pko] {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--line, #eceef3);
    border-radius: 10px;
}

.pics-row[b-fcaloz0pko] {
    display: grid;
    grid-template-columns: minmax(120px, 2fr) minmax(0, 3fr) auto;
    gap: 4px 10px;
    align-items: baseline;
    padding: 7px 10px;
    font-size: 13px;
    line-height: 1.4;
    border-top: 1px solid var(--line, #eceef3);
}

    .pics-row:first-child[b-fcaloz0pko] {
        border-top: 0;
    }

    .pics-row.is-skip[b-fcaloz0pko] {
        color: var(--ink-muted, #8a8f98);
    }

    .pics-row.is-bad[b-fcaloz0pko] {
        background: #fef9e7;
    }

.pics-file[b-fcaloz0pko] {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pics-name[b-fcaloz0pko] {
    font-weight: 600;
}

.pics-size[b-fcaloz0pko] {
    font-size: 12px;
    color: var(--ink-muted, #8a8f98);
}

.pics-to[b-fcaloz0pko] {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pics-muted[b-fcaloz0pko] {
    color: var(--ink-muted, #8a8f98);
}

.pics-by[b-fcaloz0pko] {
    font-size: 12px;
    white-space: nowrap;
    color: var(--ink-muted, #8a8f98);
}

.pics-missing[b-fcaloz0pko] {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--ink-soft, #4a4f57);
    overflow-wrap: anywhere;
}

.pics-foot[b-fcaloz0pko] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 560px) {
    .pics-row[b-fcaloz0pko] {
        grid-template-columns: minmax(0, 1fr);
    }

    .pics-by[b-fcaloz0pko] {
        white-space: normal;
    }

    .pics-head .cce-btn[b-fcaloz0pko] {
        margin-left: 0;
    }
}
/* /Components/Admin/TemplateDrop.razor.rz.scp.css */
/* The drop zone: a dashed card the file input covers (opacity 0), so a drop and a click both reach the input. Colours fall
   back to the Progress-page palette, so the component also works outside the admin shell. */
.tdrop[b-qdt60yrz98] {
    margin: 0 0 4px;
}

.tdrop-zone[b-qdt60yrz98] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 18px 16px 16px;
    border: 2px dashed var(--line-strong, #c9d6ff);
    border-radius: 14px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

    .tdrop-zone:focus-within[b-qdt60yrz98] {
        outline: 2px solid var(--brand, #4d7cfe);
        outline-offset: 2px;
    }

    .tdrop-zone:active[b-qdt60yrz98] {
        background: var(--brand-soft, #f3f6ff);
        border-color: var(--brand, #4d7cfe);
        transition-duration: 0s;
    }

.has-file .tdrop-zone[b-qdt60yrz98] {
    border-style: solid;
    border-color: var(--brand-line, #c9d6ff);
    background: var(--brand-soft, #f3f6ff);
}

.is-disabled .tdrop-zone[b-qdt60yrz98] {
    opacity: 0.5;
    cursor: default;
}

@media (hover: hover) and (pointer: fine) {
    .tdrop:not(.is-disabled) .tdrop-zone:hover[b-qdt60yrz98] {
        border-color: var(--brand, #4d7cfe);
        background: var(--brand-soft, #f3f6ff);
    }
}

/* The input is the whole zone: invisible, on top, so a dropped file lands in it. */
.tdrop-zone[b-qdt60yrz98]  .tdrop-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.is-disabled .tdrop-zone[b-qdt60yrz98]  .tdrop-input {
    cursor: default;
}

.tdrop-icon[b-qdt60yrz98] {
    width: 28px;
    height: 28px;
    color: var(--brand, #4d7cfe);
}

.tdrop-text[b-qdt60yrz98] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 5px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink-soft, #4a4f57);
}

    .tdrop-text strong[b-qdt60yrz98] {
        font-weight: 600;
        color: var(--ink, #1a1a1a);
    }

.tdrop-file[b-qdt60yrz98] {
    overflow-wrap: anywhere;
}

.tdrop-hint[b-qdt60yrz98] {
    font-size: 12.5px;
    color: var(--ink-muted, #8a8f98);
}

.tdrop-link[b-qdt60yrz98] {
    appearance: none;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-strong, #4d7cfe);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .tdrop-link:focus-visible[b-qdt60yrz98] {
        outline: 2px solid var(--brand, #4d7cfe);
        outline-offset: 2px;
        border-radius: 4px;
    }

    .tdrop-link:disabled[b-qdt60yrz98] {
        opacity: 0.5;
        cursor: default;
    }

.tdrop-paste[b-qdt60yrz98] {
    margin-top: 8px;
}

.tdrop-paste.cce-textarea.cce-input[b-qdt60yrz98] {
    min-height: 96px;
}
/* /Components/Admin/VocabularyCopyPanel.razor.rz.scp.css */
.vocab-copy[b-stpzpgc6be] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vocab-copy-hint[b-stpzpgc6be] {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.vocab-copy-loading[b-stpzpgc6be] {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-size: 14px;
}

/* ========== Toolbar ========== */
.vocab-copy-toolbar[b-stpzpgc6be] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.vocab-copy-search[b-stpzpgc6be] {
    flex: 1 1 240px;
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px; /* 16px keeps iOS from zooming on focus */
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .vocab-copy-search:focus[b-stpzpgc6be] {
        border-color: #4D7CFE;
        box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.12);
    }

.vocab-copy-link[b-stpzpgc6be] {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

    @media (hover: hover) and (pointer: fine) {
        .vocab-copy-link:hover:not(:disabled)[b-stpzpgc6be] {
            background: #f3f4f6;
            border-color: #9ca3af;
        }
    }

    .vocab-copy-link:active:not(:disabled)[b-stpzpgc6be] {
        background: #e5e7eb;
    }

    .vocab-copy-link:disabled[b-stpzpgc6be] {
        opacity: 0.45;
        cursor: not-allowed;
    }

/* ========== Module list ========== */
.vocab-copy-list[b-stpzpgc6be] {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

    .vocab-copy-list li + li[b-stpzpgc6be] {
        border-top: 1px solid #f0f0f0;
    }

.vocab-copy-option[b-stpzpgc6be] {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color 0.15s;
}

    @media (hover: hover) and (pointer: fine) {
        .vocab-copy-option:hover[b-stpzpgc6be] {
            background: #f8faff;
        }
    }

    .vocab-copy-option.is-selected[b-stpzpgc6be] {
        background: #EFF4FF;
    }

    .vocab-copy-option input[type="checkbox"][b-stpzpgc6be] {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: #4D7CFE;
        cursor: pointer;
    }

.vocab-copy-id[b-stpzpgc6be] {
    font-weight: 700;
    color: #2c3e50;
    font-variant-numeric: tabular-nums;
}

.vocab-copy-name[b-stpzpgc6be] {
    min-width: 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vocab-copy-type[b-stpzpgc6be] {
    padding: 3px 10px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ========== Action ========== */
.vocab-copy-actions[b-stpzpgc6be] {
    display: flex;
    justify-content: flex-end;
}

.vocab-copy-button[b-stpzpgc6be] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid #4D7CFE;
    border-radius: 20px;
    background: #4D7CFE;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

    @media (hover: hover) and (pointer: fine) {
        .vocab-copy-button:hover:not(:disabled)[b-stpzpgc6be] {
            background: #3d6cee;
            box-shadow: 0 4px 14px rgba(77, 124, 254, 0.35);
        }
    }

    .vocab-copy-button:active:not(:disabled)[b-stpzpgc6be] {
        background: #3369FD;
    }

    .vocab-copy-button:disabled[b-stpzpgc6be] {
        opacity: 0.45;
        cursor: not-allowed;
    }

/* ========== Messages ========== */
.vocab-copy-message[b-stpzpgc6be] {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

    .vocab-copy-message p[b-stpzpgc6be] {
        margin: 0;
    }

.vocab-copy-message-success[b-stpzpgc6be] {
    background: #f2fae8;
    color: #3f6b17;
    border: 1px solid #c8e6a0;
}

.vocab-copy-message-neutral[b-stpzpgc6be] {
    background: #f3f4f6;
    color: #444;
    border: 1px solid #e5e7eb;
}

.vocab-copy-message-error[b-stpzpgc6be] {
    background: #fef0f0;
    color: #d1242f;
    border: 1px solid #fecaca;
}

.vocab-copy-results[b-stpzpgc6be] {
    margin: 6px 0 0;
    padding-left: 18px;
}

.vocab-copy-footnote[b-stpzpgc6be] {
    margin-top: 8px !important;
    font-size: 13px;
    opacity: 0.85;
}

/* ========== Spinner ========== */
.vocab-copy-spinner[b-stpzpgc6be] {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(77, 124, 254, 0.2);
    border-top-color: #4D7CFE;
    border-radius: 50%;
    animation: vocab-copy-spin-b-stpzpgc6be 0.7s linear infinite;
    flex-shrink: 0;
}

.vocab-copy-spinner-light[b-stpzpgc6be] {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
}

@keyframes vocab-copy-spin-b-stpzpgc6be {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .vocab-copy-option[b-stpzpgc6be] {
        grid-template-columns: auto auto 1fr;
    }

    .vocab-copy-type[b-stpzpgc6be] {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .vocab-copy-actions .vocab-copy-button[b-stpzpgc6be] {
        width: 100%;
    }
}
/* /Components/Audio/AdminAudioRecorder.razor.rz.scp.css */
/* The teacher's feedback recorder: the teacher's card (brand-soft, like the feedback
   card the student sees). One audio look with AudioRecorder, AdminFeedbackPlayer and
   ModuleAudioPlayer: the same numbers in each file (scoped CSS cannot share them).
   Hover: every :hover is gated to mouse and trackpad (see CLAUDE.md). */
.admin-audio-recorder[b-4gfioo5tn4] {
    --ink: #1a1a1a;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --done: #92cd4d;
    --done-ink: #5d8f22;
    --done-soft: #f4faec;
    --wrong: #ff4245;
    --wrong-ink: #d93639;
    --wrong-soft: #fff4f4;
    --audio-h: 42px;
    --wave-h: 42px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    text-align: left;
    padding: clamp(14px, 2vw, 20px);
    background: var(--brand-soft);
    border-radius: 16px;
}

/* Notices. Display and margins are set here because a global .error-message
   (custom-content-shared.css) would otherwise leak in. */
.error-message[b-4gfioo5tn4],
.success-message[b-4gfioo5tn4] {
    display: block;
    margin: 0 0 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    border-radius: 12px;
}

.error-message[b-4gfioo5tn4] {
    color: var(--wrong-ink);
    background: var(--wrong-soft);
    border: 1px solid #f6c9ca;
}

/* Success: green-soft with a 40% tint of the green as its line */
.success-message[b-4gfioo5tn4] {
    color: var(--done-ink);
    background: var(--done-soft);
    border: 1px solid #d3ebb8;
}

.admin-recorder-header[b-4gfioo5tn4] {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--brand);
}

    .admin-recorder-header strong[b-4gfioo5tn4] {
        font-weight: 700;
    }

.audio-buttons[b-4gfioo5tn4] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===== Text pills: the NavigationButtons shape; the teacher's actions are blue ===== */
.admin-record-button[b-4gfioo5tn4],
.admin-stop-button[b-4gfioo5tn4],
.admin-submit-button[b-4gfioo5tn4] {
    --btn: var(--brand);
    --btn-ink: var(--brand);
    --btn-h: var(--audio-h);
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: var(--btn-h);
    padding: 0 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    color: var(--btn-ink);
    background: #fff;
    border: 2px solid var(--btn);
    border-radius: calc(var(--btn-h) / 2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

/* Sending the feedback is the "do it" action: green, at page size. */
.admin-submit-button[b-4gfioo5tn4] {
    --btn: var(--done);
    --btn-ink: var(--done);
    --btn-h: 46px;
    padding: 0 28px;
}

    @media (hover: hover) and (pointer: fine) {
        .admin-record-button:hover:not(:disabled)[b-4gfioo5tn4],
        .admin-stop-button:hover:not(:disabled)[b-4gfioo5tn4],
        .admin-submit-button:hover:not(:disabled)[b-4gfioo5tn4] {
            color: #fff;
            background: var(--btn);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }
    }

    /* Pressed: fills at once (no transition, so a quick tap shows it) and sinks. */
    .admin-record-button:active:not(:disabled)[b-4gfioo5tn4],
    .admin-stop-button:active:not(:disabled)[b-4gfioo5tn4],
    .admin-submit-button:active:not(:disabled)[b-4gfioo5tn4] {
        color: #fff;
        background: var(--btn);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .admin-record-button:focus-visible[b-4gfioo5tn4],
    .admin-stop-button:focus-visible[b-4gfioo5tn4],
    .admin-submit-button:focus-visible[b-4gfioo5tn4] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    .admin-record-button:disabled[b-4gfioo5tn4],
    .admin-stop-button:disabled[b-4gfioo5tn4],
    .admin-submit-button:disabled[b-4gfioo5tn4] {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ===== The waveform row ===== */
.admin-feedback-recording-active[b-4gfioo5tn4] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-feedback-waveform-wrapper[b-4gfioo5tn4] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-feedback-waveform-container[b-4gfioo5tn4] {
    width: 265px;
    height: var(--wave-h);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--wave-h) / 2);
    overflow: hidden;
}

#adminWaveCanvas[b-4gfioo5tn4] {
    display: block;
    width: 100%;
    height: 100%;
}

.admin-feedback-timer[b-4gfioo5tn4] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 72px;
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

    /* The recorder's clock is red: it times a recording. */
    .admin-feedback-timer svg[b-4gfioo5tn4] {
        flex-shrink: 0;
        width: 14px;
        height: 14px;
        color: var(--wrong);
    }

.admin-feedback-recording-controls[b-4gfioo5tn4] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== Icon circles: blue playback, red trash ===== */
.admin-feedback-playback-button[b-4gfioo5tn4] {
    --btn: var(--brand);
    --btn-press: #3b66e6;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: var(--audio-h);
    height: var(--audio-h);
    padding: 0;
    background: var(--btn);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

    .admin-feedback-playback-button.admin-trash-icon-button[b-4gfioo5tn4] {
        --btn: var(--wrong);
        --btn-press: #d93639;
    }

    /* The icons are white already; the filter keeps them white whatever the file. */
    .admin-feedback-playback-button img[b-4gfioo5tn4] {
        display: block;
        width: 15px;
        height: 15px;
        filter: brightness(0) invert(1);
    }

    .admin-feedback-playback-button.admin-trash-icon-button img[b-4gfioo5tn4] {
        width: 22px;
        height: 22px;
    }

    @media (hover: hover) and (pointer: fine) {
        .admin-feedback-playback-button:hover:not(:disabled)[b-4gfioo5tn4] {
            background: var(--btn-press);
        }
    }

    .admin-feedback-playback-button:active:not(:disabled)[b-4gfioo5tn4] {
        background: var(--btn-press);
        transform: scale(0.95);
        transition-duration: 0s;
    }

    .admin-feedback-playback-button:focus-visible[b-4gfioo5tn4] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    .admin-feedback-playback-button:disabled[b-4gfioo5tn4] {
        background: var(--line);
        box-shadow: none;
        opacity: 0.6;
        cursor: not-allowed;
    }

        /* White icon on the light fill would vanish: draw it grey (about --ink-muted). */
        .admin-feedback-playback-button:disabled img[b-4gfioo5tn4] {
            filter: brightness(0) invert(0.55);
        }

/* ===== Written feedback ===== */
.admin-text-feedback-container[b-4gfioo5tn4] {
    margin-top: 12px;
}

.admin-text-feedback-input[b-4gfioo5tn4] {
    display: block;
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid #c5c9d3;
    border-radius: 10px;
    resize: vertical;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .admin-text-feedback-input[b-4gfioo5tn4]::placeholder {
        color: var(--ink-muted);
    }

    .admin-text-feedback-input:focus[b-4gfioo5tn4] {
        outline: none;
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.14);
    }

.admin-submit-container[b-4gfioo5tn4] {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

/* Sent: the success notice */
.admin-feedback-sent[b-4gfioo5tn4] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--done-ink);
    background: var(--done-soft);
    border: 1px solid #d3ebb8;
    border-radius: 12px;
}

    .admin-feedback-sent .check-green[b-4gfioo5tn4] {
        flex: none;
        width: 20px;
        height: 20px;
    }

    .admin-feedback-sent p[b-4gfioo5tn4] {
        margin: 0;
    }

/* ===== Tablet and phone: the waveform fills the row, the timer sits inside it ===== */
@media (max-width: 768px) {
    .admin-audio-recorder[b-4gfioo5tn4] {
        --wave-h: 36px;
    }

    .audio-buttons[b-4gfioo5tn4] {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-feedback-waveform-wrapper[b-4gfioo5tn4] {
        flex: 1 1 100%;
    }

    .admin-feedback-waveform-container[b-4gfioo5tn4] {
        flex: 1;
        width: auto;
        min-width: 0;
        padding-right: 75px;
    }

    .admin-feedback-timer[b-4gfioo5tn4] {
        position: absolute;
        top: 50%;
        right: 4px;
        transform: translateY(-50%);
        min-width: 0;
        height: 26px;
        /* 70px wide at 4px from the edge: inside the container's 75px padding */
        padding: 0 6px;
        gap: 4px;
        border-color: transparent;
        border-radius: 13px;
    }

        .admin-feedback-timer svg[b-4gfioo5tn4] {
            width: 13px;
            height: 13px;
        }

    .admin-submit-button[b-4gfioo5tn4] {
        width: 100%;
    }
}

/* Small phones: one step down, never below 14px for a label */
@media (max-width: 480px) {
    .admin-audio-recorder[b-4gfioo5tn4] {
        --audio-h: 40px;
        --wave-h: 34px;
    }

    .admin-record-button[b-4gfioo5tn4],
    .admin-stop-button[b-4gfioo5tn4],
    .admin-submit-button[b-4gfioo5tn4] {
        height: auto;
        min-height: var(--btn-h);
        padding: 0 16px;
        font-size: 14px;
        letter-spacing: 0.2px;
        white-space: normal;
    }

    .admin-feedback-timer[b-4gfioo5tn4] {
        height: 24px;
        border-radius: 12px;
    }

    .admin-feedback-playback-button img[b-4gfioo5tn4] {
        width: 14px;
        height: 14px;
    }

    .admin-feedback-playback-button.admin-trash-icon-button img[b-4gfioo5tn4] {
        width: 20px;
        height: 20px;
    }
}
/* /Components/Audio/AdminFeedbackPlayer.razor.rz.scp.css */
/* The teacher's audio as the student plays it. No card of its own: the page's
   .admin-feedback card holds it. One audio look with AudioRecorder,
   AdminAudioRecorder and ModuleAudioPlayer: the same numbers in each file.
   Hover: every :hover is gated to mouse and trackpad (see CLAUDE.md). */
.admin-feedback-player[b-jq2be276ut] {
    --ink: #1a1a1a;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --audio-h: 42px;
    --wave-h: 42px;
    margin-top: 12px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    text-align: left;
}

/* ===== The waveform row ===== */
.admin-feedback-recording-active[b-jq2be276ut] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-feedback-waveform-wrapper[b-jq2be276ut] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-feedback-waveform-container[b-jq2be276ut] {
    width: 265px;
    height: var(--wave-h);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--wave-h) / 2);
    overflow: hidden;
}

#adminFeedbackCanvas[b-jq2be276ut] {
    display: block;
    width: 100%;
    height: 100%;
}

.admin-feedback-timer[b-jq2be276ut] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 72px;
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

    .admin-feedback-timer svg[b-jq2be276ut] {
        flex-shrink: 0;
        width: 14px;
        height: 14px;
        color: var(--ink-muted);
    }

.admin-feedback-recording-controls[b-jq2be276ut] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== "Прослушать": the teacher's blue pill, shown until listening starts ===== */
.admin-feedback-listen-button[b-jq2be276ut] {
    --btn: var(--brand);
    --btn-press: #3b66e6;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: var(--audio-h);
    padding: 0 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--btn);
    background: #fff;
    border: 2px solid var(--btn);
    border-radius: calc(var(--audio-h) / 2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .admin-feedback-listen-button:hover[b-jq2be276ut] {
            color: #fff;
            background: var(--btn);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }
    }

    /* Pressed: fills at once (no transition, so a quick tap shows it) and sinks. */
    .admin-feedback-listen-button:active[b-jq2be276ut] {
        color: #fff;
        background: var(--btn);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .admin-feedback-listen-button:focus-visible[b-jq2be276ut] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

/* Until listening starts the pill stands alone (the circles come from 768px down, below) */
.admin-feedback-recording-active.is-unstarted .admin-feedback-playback-button[b-jq2be276ut] {
    display: none;
}

/* ===== Playback circles ===== */
.admin-feedback-playback-button[b-jq2be276ut] {
    --btn: var(--brand);
    --btn-press: #3b66e6;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: var(--audio-h);
    height: var(--audio-h);
    padding: 0;
    background: var(--btn);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

    /* The icons are white already; the filter keeps them white whatever the file. */
    .admin-feedback-playback-button img[b-jq2be276ut] {
        display: block;
        width: 15px;
        height: 15px;
        filter: brightness(0) invert(1);
    }

    @media (hover: hover) and (pointer: fine) {
        .admin-feedback-playback-button:hover:not(:disabled)[b-jq2be276ut] {
            background: var(--btn-press);
        }
    }

    .admin-feedback-playback-button:active:not(:disabled)[b-jq2be276ut] {
        background: var(--btn-press);
        transform: scale(0.95);
        transition-duration: 0s;
    }

    .admin-feedback-playback-button:focus-visible[b-jq2be276ut] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    .admin-feedback-playback-button:disabled[b-jq2be276ut] {
        background: var(--line);
        box-shadow: none;
        opacity: 0.6;
        cursor: not-allowed;
    }

        /* White icon on the light fill would vanish: draw it grey (about --ink-muted). */
        .admin-feedback-playback-button:disabled img[b-jq2be276ut] {
            filter: brightness(0) invert(0.55);
        }

/* ===== Tablet and phone: the waveform fills the row, the timer sits inside it ===== */
@media (max-width: 768px) {
    .admin-feedback-player[b-jq2be276ut] {
        --wave-h: 36px;
    }

    .admin-feedback-recording-active[b-jq2be276ut] {
        flex-wrap: nowrap;
    }

    .admin-feedback-waveform-wrapper[b-jq2be276ut] {
        flex: 1 1 0;
    }

    .admin-feedback-waveform-container[b-jq2be276ut] {
        flex: 1;
        width: auto;
        min-width: 0;
        padding-right: 75px;
    }

    .admin-feedback-timer[b-jq2be276ut] {
        position: absolute;
        top: 50%;
        right: 4px;
        transform: translateY(-50%);
        min-width: 0;
        height: 26px;
        /* 70px wide at 4px from the edge: inside the container's 75px padding */
        padding: 0 6px;
        gap: 4px;
        border-color: transparent;
        border-radius: 13px;
    }

        .admin-feedback-timer svg[b-jq2be276ut] {
            width: 13px;
            height: 13px;
        }

    .admin-feedback-recording-controls[b-jq2be276ut] {
        flex-wrap: nowrap;
    }

    /* Phones: no pill, the two circles beside the waveform from the start */
    .admin-feedback-listen-button[b-jq2be276ut] {
        display: none;
    }

    .admin-feedback-recording-active.is-unstarted .admin-feedback-playback-button[b-jq2be276ut] {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .admin-feedback-player[b-jq2be276ut] {
        --audio-h: 40px;
        --wave-h: 34px;
    }

    .admin-feedback-timer[b-jq2be276ut] {
        height: 24px;
        border-radius: 12px;
    }

    .admin-feedback-playback-button img[b-jq2be276ut] {
        width: 14px;
        height: 14px;
    }
}
/* /Components/Audio/AudioRecorder.razor.rz.scp.css */
/* The student's recorder. No card of its own: the page's card holds it.
   One audio look with AdminAudioRecorder, AdminFeedbackPlayer and ModuleAudioPlayer:
   the same numbers in each file (scoped CSS cannot share a block between them).
   Hover: every :hover is gated to mouse and trackpad (see CLAUDE.md). */
.audio-recorder[b-g49gngp2lf] {
    --ink: #1a1a1a;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --done: #92cd4d;
    --active-ink: #8a6500;
    --wrong: #ff4245;
    --wrong-ink: #d93639;
    --wrong-soft: #fff4f4;
    --audio-h: 42px;
    --wave-h: 42px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    text-align: left;
}

/* The error notice. Display and margins are set here because a global
   .error-message (custom-content-shared.css) would otherwise leak in. */
.error-message[b-g49gngp2lf] {
    display: block;
    margin: 0 0 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--wrong-ink);
    background: var(--wrong-soft);
    border: 1px solid #f6c9ca;
    border-radius: 12px;
}

.audio-buttons[b-g49gngp2lf] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===== Text pills: the NavigationButtons shape at the row's height ===== */
.record-button[b-g49gngp2lf],
.skip-button[b-g49gngp2lf],
.stop-button[b-g49gngp2lf],
.rerecord-button[b-g49gngp2lf] {
    --btn: var(--done);
    --btn-ink: var(--done);
    --btn-fill-ink: #fff;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: var(--audio-h);
    padding: 0 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    color: var(--btn-ink);
    background: #fff;
    border: 2px solid var(--btn);
    border-radius: calc(var(--audio-h) / 2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

/* Record: the "do it" action of the card, filled green with the microphone, so it never
   reads as the page's outlined navigation below it. Pressed: the darker green. */
.record-button[b-g49gngp2lf] {
    --btn-press: #7fb83d;
    gap: 8px;
    color: #fff;
    background: var(--btn);
}

    .record-button .record-icon[b-g49gngp2lf] {
        flex: none;
    }

/* Skip: the ordinary action, blue. Chosen: filled blue. */
.skip-button[b-g49gngp2lf] {
    --btn: var(--brand);
    --btn-ink: var(--brand);
}

    .skip-button.skip-button-clicked[b-g49gngp2lf] {
        color: #fff;
        background: var(--brand);
    }

/* Shown after skipping: the outlined pill with a dashed border (recording is optional now). */
.record-button.record-button-highlight[b-g49gngp2lf] {
    color: var(--btn-ink);
    background: #fff;
    border-style: dashed;
}

/* Re-record: the repeat yellow; words on yellow stay ink. */
.rerecord-button[b-g49gngp2lf] {
    --btn: #edc829;
    --btn-ink: var(--active-ink);
    --btn-fill-ink: var(--ink);
}

    @media (hover: hover) and (pointer: fine) {
        .record-button:hover:not(:disabled)[b-g49gngp2lf],
        .skip-button:hover:not(:disabled)[b-g49gngp2lf],
        .stop-button:hover:not(:disabled)[b-g49gngp2lf],
        .rerecord-button:hover:not(:disabled)[b-g49gngp2lf] {
            color: var(--btn-fill-ink);
            background: var(--btn);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }

        /* Already filled: darkens instead */
        .record-button:not(.record-button-highlight):hover:not(:disabled)[b-g49gngp2lf] {
            background: var(--btn-press);
            border-color: var(--btn-press);
        }
    }

    /* Pressed: fills at once (no transition, so a quick tap shows it) and sinks. */
    .record-button:active:not(:disabled)[b-g49gngp2lf],
    .skip-button:active:not(:disabled)[b-g49gngp2lf],
    .stop-button:active:not(:disabled)[b-g49gngp2lf],
    .rerecord-button:active:not(:disabled)[b-g49gngp2lf] {
        color: var(--btn-fill-ink);
        background: var(--btn);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .record-button:not(.record-button-highlight):active:not(:disabled)[b-g49gngp2lf] {
        background: var(--btn-press);
        border-color: var(--btn-press);
    }

    .record-button:focus-visible[b-g49gngp2lf],
    .skip-button:focus-visible[b-g49gngp2lf],
    .stop-button:focus-visible[b-g49gngp2lf],
    .rerecord-button:focus-visible[b-g49gngp2lf] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    .record-button:disabled[b-g49gngp2lf],
    .skip-button:disabled[b-g49gngp2lf],
    .stop-button:disabled[b-g49gngp2lf],
    .rerecord-button:disabled[b-g49gngp2lf] {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ===== The waveform row ===== */
.recording-active[b-g49gngp2lf] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.waveform-wrapper[b-g49gngp2lf] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.waveform-container[b-g49gngp2lf] {
    width: 265px;
    height: var(--wave-h);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--wave-h) / 2);
    overflow: hidden;
}

#waveCanvas[b-g49gngp2lf] {
    display: block;
    width: 100%;
    height: 100%;
}

.record-timer[b-g49gngp2lf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 72px;
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

    /* The recorder's clock is red: it times a recording. */
    .record-timer svg[b-g49gngp2lf] {
        flex-shrink: 0;
        width: 14px;
        height: 14px;
        color: var(--wrong);
    }

.recording-controls[b-g49gngp2lf] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== Icon circles: the pill at equal width and height ===== */
.trash-button[b-g49gngp2lf],
.playback-button[b-g49gngp2lf] {
    --btn: var(--brand);
    --btn-press: #3b66e6;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: var(--audio-h);
    height: var(--audio-h);
    padding: 0;
    background: var(--btn);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.trash-button[b-g49gngp2lf] {
    --btn: var(--wrong);
    --btn-press: #d93639;
}

    /* The icons are white already; the filter keeps them white whatever the file. */
    .trash-button img[b-g49gngp2lf],
    .playback-button img[b-g49gngp2lf] {
        display: block;
        filter: brightness(0) invert(1);
    }

    .trash-button img[b-g49gngp2lf] {
        width: 22px;
        height: 22px;
    }

    .playback-button img[b-g49gngp2lf] {
        width: 15px;
        height: 15px;
    }

    @media (hover: hover) and (pointer: fine) {
        .trash-button:hover:not(:disabled)[b-g49gngp2lf],
        .playback-button:hover:not(:disabled)[b-g49gngp2lf] {
            background: var(--btn-press);
        }
    }

    .trash-button:active:not(:disabled)[b-g49gngp2lf],
    .playback-button:active:not(:disabled)[b-g49gngp2lf] {
        background: var(--btn-press);
        transform: scale(0.95);
        transition-duration: 0s;
    }

    .trash-button:focus-visible[b-g49gngp2lf],
    .playback-button:focus-visible[b-g49gngp2lf] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    .trash-button:disabled[b-g49gngp2lf],
    .playback-button:disabled[b-g49gngp2lf] {
        background: var(--line);
        box-shadow: none;
        opacity: 0.6;
        cursor: not-allowed;
    }

        /* White icon on the light fill would vanish: draw it grey (about --ink-muted). */
        .trash-button:disabled img[b-g49gngp2lf],
        .playback-button:disabled img[b-g49gngp2lf] {
            filter: brightness(0) invert(0.55);
        }

/* Beside the teacher's audio: the circles that phones show in place of the "Прослушать" pill */
.phone-only[b-g49gngp2lf] {
    display: none;
}

/* ===== Tablet and phone: the waveform fills the row, the timer sits inside it ===== */
@media (max-width: 768px) {
    /* The pills stay their own width, left in the card and a step smaller than the page's
       full-width 48px navigation under it, so the two rows cannot be taken for each other. */
    .audio-recorder[b-g49gngp2lf] {
        --audio-h: 40px;
        --wave-h: 36px;
    }

    .phone-hidden[b-g49gngp2lf] {
        display: none;
    }

    .phone-only[b-g49gngp2lf] {
        display: inline-flex;
    }

    /* One row, as the teacher's card beside it: the waveform takes the width the circles leave */
    .recording-active.is-row[b-g49gngp2lf] {
        flex-wrap: nowrap;
    }

        .recording-active.is-row .waveform-wrapper[b-g49gngp2lf] {
            flex: 1 1 0;
        }

        .recording-active.is-row .recording-controls[b-g49gngp2lf] {
            flex-shrink: 0;
            flex-wrap: nowrap;
        }

    .waveform-wrapper[b-g49gngp2lf] {
        flex: 1 1 100%;
    }

    .waveform-container[b-g49gngp2lf] {
        flex: 1;
        width: auto;
        min-width: 0;
        padding-right: 75px;
    }

    .record-timer[b-g49gngp2lf] {
        position: absolute;
        top: 50%;
        right: 4px;
        transform: translateY(-50%);
        min-width: 0;
        height: 26px;
        /* 70px wide at 4px from the edge: inside the container's 75px padding */
        padding: 0 6px;
        gap: 4px;
        border-color: transparent;
        border-radius: 13px;
    }

        .record-timer svg[b-g49gngp2lf] {
            width: 13px;
            height: 13px;
        }
}

/* Small phones: one step down, never below 14px for a label */
@media (max-width: 480px) {
    .audio-recorder[b-g49gngp2lf] {
        --audio-h: 40px;
        --wave-h: 34px;
    }

    .record-button[b-g49gngp2lf],
    .skip-button[b-g49gngp2lf],
    .stop-button[b-g49gngp2lf],
    .rerecord-button[b-g49gngp2lf] {
        height: auto;
        min-height: var(--audio-h);
        padding: 0 16px;
        font-size: 14px;
        letter-spacing: 0.2px;
        white-space: normal;
    }

    .record-timer[b-g49gngp2lf] {
        height: 24px;
        border-radius: 12px;
    }

    .trash-button img[b-g49gngp2lf] {
        width: 20px;
        height: 20px;
    }

    .playback-button img[b-g49gngp2lf] {
        width: 14px;
        height: 14px;
    }
}
/* /Components/Audio/ChatAudioPlayer.razor.rz.scp.css */
.chat-audio[b-xni8zdj9sd] {
    --wave-idle: rgba(77, 124, 254, 0.32);
    --wave-played: #4D7CFE;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(260px, 62vw);
    min-width: 190px;
}

.chat-audio__toggle[b-xni8zdj9sd] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #4D7CFE;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .12s ease, background-color .15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-audio__toggle:hover[b-xni8zdj9sd] {
            background: #3D6AE8;
        }
    }

    .chat-audio__toggle:active[b-xni8zdj9sd] {
        transform: scale(.94);
    }

    .chat-audio__toggle:focus-visible[b-xni8zdj9sd] {
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }

.chat-audio__body[b-xni8zdj9sd] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.chat-audio__wave[b-xni8zdj9sd] {
    display: block;
    width: 100%;
    height: 28px;
    cursor: pointer;
}

.chat-audio__meta[b-xni8zdj9sd] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.2;
}

.chat-audio__time[b-xni8zdj9sd] {
    font-variant-numeric: tabular-nums;
    color: var(--chat-text-muted, #6B7385);
    flex-shrink: 0;
}

.chat-audio__error[b-xni8zdj9sd] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-color: #FF4245;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

/* In the user's own (blue) bubble everything turns white. */
.chat-audio--mine[b-xni8zdj9sd] {
    --wave-idle: rgba(255, 255, 255, 0.45);
    --wave-played: #fff;
}

    .chat-audio--mine .chat-audio__toggle[b-xni8zdj9sd] {
        background: #fff;
        color: #4D7CFE;
    }

        @media (hover: hover) and (pointer: fine) {
            .chat-audio--mine .chat-audio__toggle:hover[b-xni8zdj9sd] {
                background: #EEF3FF;
            }
        }

    .chat-audio--mine .chat-audio__time[b-xni8zdj9sd] {
        color: rgba(255, 255, 255, 0.85);
    }

@media (max-width: 400px) {
    .chat-audio[b-xni8zdj9sd] {
        min-width: 170px;
    }
}
/* /Components/Audio/ChatAudioRecorder.razor.rz.scp.css */
/* Idle: microphone button, styled like the composer's other icon buttons. */
.chat-recorder__mic[b-rnef5u0h20] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--chat-text-muted, #6B7385);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s ease, color .15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-recorder__mic:hover:not(:disabled)[b-rnef5u0h20] {
            background: var(--chat-surface-alt, #F4F6FB);
            color: var(--chat-primary, #4D7CFE);
        }
    }

    .chat-recorder__mic:disabled[b-rnef5u0h20] {
        opacity: .45;
        cursor: not-allowed;
    }

/* Active session */
.chat-recorder[b-rnef5u0h20] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.chat-recorder__track[b-rnef5u0h20] {
    --wave-idle: rgba(77, 124, 254, .3);
    --wave-played: #4D7CFE;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 16px 0 10px;
    border-radius: 22px;
    background: var(--chat-surface-alt, #F4F6FB);
}

.chat-recorder.is-recording .chat-recorder__track[b-rnef5u0h20] {
    --wave-played: #E5484D;
    padding-left: 16px;
    background: #FFF1F1;
}

.chat-recorder__dot[b-rnef5u0h20] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E5484D;
    flex-shrink: 0;
    animation: chat-recorder-pulse-b-rnef5u0h20 1.2s ease-in-out infinite;
}

.chat-recorder__play[b-rnef5u0h20] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--chat-primary, #4D7CFE);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

    .chat-recorder__play:disabled[b-rnef5u0h20] {
        opacity: .5;
        cursor: not-allowed;
    }

.chat-recorder__wave[b-rnef5u0h20] {
    display: block;
    flex: 1;
    min-width: 0;
    height: 26px;
}

/* Only the reviewable recording can be seeked - there is nothing to scrub to while still recording. */
.chat-recorder.is-recorded .chat-recorder__wave[b-rnef5u0h20] {
    cursor: pointer;
}

.chat-recorder__time[b-rnef5u0h20] {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--chat-text, #1B1F2A);
    flex-shrink: 0;
}

.chat-recorder__btn[b-rnef5u0h20] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s ease, color .15s ease, transform .12s ease;
}

    .chat-recorder__btn:active:not(:disabled)[b-rnef5u0h20] {
        transform: scale(.94);
    }

    .chat-recorder__btn:disabled[b-rnef5u0h20] {
        opacity: .55;
        cursor: not-allowed;
    }

.chat-recorder__btn--discard[b-rnef5u0h20] {
    background: transparent;
    color: var(--chat-text-muted, #6B7385);
}

    @media (hover: hover) and (pointer: fine) {
        .chat-recorder__btn--discard:hover:not(:disabled)[b-rnef5u0h20] {
            background: #FFF1F1;
            color: #E5484D;
        }
    }

.chat-recorder__btn--stop[b-rnef5u0h20] {
    background: #E5484D;
    color: #fff;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-recorder__btn--stop:hover:not(:disabled)[b-rnef5u0h20] {
            background: #D13A3F;
        }
    }

.chat-recorder__btn--send[b-rnef5u0h20] {
    background: var(--chat-primary, #4D7CFE);
    color: #fff;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-recorder__btn--send:hover:not(:disabled)[b-rnef5u0h20] {
            background: var(--chat-primary-hover, #3D6AE8);
        }
    }

.chat-recorder__mic:focus-visible[b-rnef5u0h20],
.chat-recorder__btn:focus-visible[b-rnef5u0h20],
.chat-recorder__play:focus-visible[b-rnef5u0h20] {
    outline: 2px solid var(--chat-primary, #4D7CFE);
    outline-offset: 2px;
}

.chat-recorder__spinner[b-rnef5u0h20] {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(107, 115, 133, .3);
    border-top-color: var(--chat-text-muted, #6B7385);
    border-radius: 50%;
    animation: chat-recorder-spin-b-rnef5u0h20 .8s linear infinite;
}

.chat-recorder__spinner--light[b-rnef5u0h20] {
    border-color: rgba(255, 255, 255, .35);
    border-top-color: #fff;
}

@keyframes chat-recorder-pulse-b-rnef5u0h20 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .35;
        transform: scale(.8);
    }
}

@keyframes chat-recorder-spin-b-rnef5u0h20 {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 400px) {
    .chat-recorder[b-rnef5u0h20] {
        gap: 4px;
    }

    .chat-recorder__track[b-rnef5u0h20] {
        gap: 8px;
        padding: 0 12px 0 8px;
    }

    .chat-recorder.is-recording .chat-recorder__track[b-rnef5u0h20] {
        padding-left: 12px;
    }

    .chat-recorder__btn[b-rnef5u0h20] {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-recorder__dot[b-rnef5u0h20],
    .chat-recorder__spinner[b-rnef5u0h20] {
        animation: none;
    }
}
/* /Components/Audio/ModuleAudioPlayer.razor.rz.scp.css */
/* The lesson's audio. No card of its own: it sits on the page with 16px above and
   below. One audio look with AudioRecorder, AdminAudioRecorder and
   AdminFeedbackPlayer: the same numbers in each file.
   Hover: every :hover is gated to mouse and trackpad (see CLAUDE.md). */
.module-audio-player[b-rkq4h0u9xd] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --done: #92cd4d;
    --wrong-ink: #d93639;
    --wrong-soft: #fff4f4;
    --audio-h: 42px;
    --wave-h: 42px;
    position: relative;
    margin: 16px 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    text-align: left;
    background: transparent;
}

/* Loading: covers the row until the waveform is read */
.map-init-overlay[b-rkq4h0u9xd] {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
}

.map-spinner[b-rkq4h0u9xd] {
    flex: none;
    width: 24px;
    height: 24px;
    border: 3px solid var(--line);
    border-top-color: var(--done);
    border-radius: 50%;
    animation: map-spin-b-rkq4h0u9xd 0.9s linear infinite;
}

@keyframes map-spin-b-rkq4h0u9xd {
    to {
        transform: rotate(360deg);
    }
}

.map-init-text[b-rkq4h0u9xd] {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
}

/* The error notice */
.map-error[b-rkq4h0u9xd] {
    display: block;
    margin: 0 0 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--wrong-ink);
    background: var(--wrong-soft);
    border: 1px solid #f6c9ca;
    border-radius: 12px;
}

/* ===== The waveform row ===== */
.map-active[b-rkq4h0u9xd] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.map-waveform-wrapper[b-rkq4h0u9xd] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.map-waveform-container[b-rkq4h0u9xd] {
    position: relative;
    width: 265px;
    height: var(--wave-h);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--wave-h) / 2);
    overflow: hidden;
}

    .map-waveform-container canvas[b-rkq4h0u9xd] {
        display: block;
        width: 100%;
        height: 100%;
    }

/* Kept in the markup for the script; never shown */
.map-progress[b-rkq4h0u9xd] {
    display: none;
}

.map-duration[b-rkq4h0u9xd] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 72px;
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

    .map-duration svg[b-rkq4h0u9xd] {
        flex-shrink: 0;
        width: 14px;
        height: 14px;
        color: var(--ink-muted);
    }

.map-controls[b-rkq4h0u9xd] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== Buttons: a labelled one is the green pill, an icon one the blue circle ===== */
.map-btn[b-rkq4h0u9xd] {
    --btn: var(--done);
    --btn-press: #7fb83d;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    height: var(--audio-h);
    padding: 0 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: var(--btn);
    background: #fff;
    border: 2px solid var(--btn);
    border-radius: calc(var(--audio-h) / 2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .map-btn:not(.circle):hover:not(:disabled)[b-rkq4h0u9xd] {
            color: #fff;
            background: var(--btn);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }
    }

    .map-btn:not(.circle):active:not(:disabled)[b-rkq4h0u9xd] {
        color: #fff;
        background: var(--btn);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .map-btn:focus-visible[b-rkq4h0u9xd] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    .map-btn:disabled[b-rkq4h0u9xd] {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .map-btn.circle[b-rkq4h0u9xd] {
        --btn: var(--brand);
        --btn-press: #3b66e6;
        flex: none;
        width: var(--audio-h);
        padding: 0;
        background: var(--btn);
        border: none;
        border-radius: 50%;
        transition: background-color 0.15s ease, transform 0.15s ease;
    }

        /* The icons are white already; the filter keeps them white whatever the file. */
        .map-btn.circle img[b-rkq4h0u9xd] {
            display: block;
            width: 15px;
            height: 15px;
            filter: brightness(0) invert(1);
        }

        @media (hover: hover) and (pointer: fine) {
            .map-btn.circle:hover:not(:disabled)[b-rkq4h0u9xd] {
                background: var(--btn-press);
            }
        }

        .map-btn.circle:active:not(:disabled)[b-rkq4h0u9xd] {
            background: var(--btn-press);
            transform: scale(0.95);
            transition-duration: 0s;
        }

        .map-btn.circle:disabled[b-rkq4h0u9xd] {
            background: var(--line);
            box-shadow: none;
            opacity: 0.6;
        }

            /* White icon on the light fill would vanish: draw it grey (about --ink-muted). */
            .map-btn.circle:disabled img[b-rkq4h0u9xd] {
                filter: brightness(0) invert(0.55);
            }

/* ===== Tablet and phone: the waveform fills the row, the timer sits inside it ===== */
@media (max-width: 768px) {
    .module-audio-player[b-rkq4h0u9xd] {
        --wave-h: 36px;
    }

    .map-active[b-rkq4h0u9xd] {
        flex-wrap: nowrap;
    }

    .map-waveform-wrapper[b-rkq4h0u9xd] {
        flex: 1 1 0;
    }

    .map-waveform-container[b-rkq4h0u9xd] {
        flex: 1;
        width: auto;
        min-width: 0;
        padding-right: 75px;
    }

    .map-duration[b-rkq4h0u9xd] {
        position: absolute;
        top: 50%;
        right: 4px;
        transform: translateY(-50%);
        min-width: 0;
        height: 26px;
        /* 70px wide at 4px from the edge: inside the container's 75px padding */
        padding: 0 6px;
        gap: 4px;
        border-color: transparent;
        border-radius: 13px;
    }

        .map-duration svg[b-rkq4h0u9xd] {
            width: 13px;
            height: 13px;
        }

    .map-controls[b-rkq4h0u9xd] {
        flex-shrink: 0;
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .module-audio-player[b-rkq4h0u9xd] {
        --audio-h: 40px;
        --wave-h: 34px;
    }

    .map-duration[b-rkq4h0u9xd] {
        height: 24px;
        border-radius: 12px;
    }

    .map-btn.circle img[b-rkq4h0u9xd] {
        width: 14px;
        height: 14px;
    }
}
/* /Components/Auth/AuthShell.razor.rz.scp.css */
/* ===== Tokens — the Progress page palette and scale ===== */
.auth[b-b3w5g6gqeq] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --field-line: #dfe2e8;
    --field-bg: #fff;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-strong: #3a6aee;
    --brand-press: #2f5ad6;
    --brand-soft: #f3f6ff;
    --brand-ring: rgba(77, 124, 254, 0.16);
    --right: #3f7d17;
    --right-soft: #f4faec;
    --right-line: #cfe6b4;
    --wrong: #d93639;
    --wrong-soft: #fff4f4;
    --wrong-line: #f6c9ca;
    --wrong-ring: rgba(217, 54, 57, 0.14);
    --warn: #7a5b00;
    --warn-soft: #fff8e6;
    --warn-line: #f3dfa2;
    --card-radius: 20px;
    --card-pad-top: 32px;
    --card-pad-x: 36px;
    --card-pad-bottom: 28px;
    --field-radius: 12px;
    --field-height: 48px;
    --shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    background: var(--surface);
    min-height: calc(100vh - var(--public-header-height, 70px));
    padding: calc(var(--public-header-height, 70px) + 24px) 16px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    -webkit-text-size-adjust: 100%;
}

/* ===== Card ===== */
.auth-card[b-b3w5g6gqeq] {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    padding: var(--card-pad-top) var(--card-pad-x) var(--card-pad-bottom);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden; /* clips the footer strip to the rounded corners */
    animation: auth-rise-b-b3w5g6gqeq 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.auth-card--wide[b-b3w5g6gqeq] {
    max-width: 560px;
}

.auth-card--xl[b-b3w5g6gqeq] {
    max-width: 760px;
}

@media (min-width: 768px) {
    .auth-card--xl[b-b3w5g6gqeq] {
        --card-pad-x: 44px;
    }
}

.auth-card--centered[b-b3w5g6gqeq] {
    align-items: center;
    text-align: center;
}

@keyframes auth-rise-b-b3w5g6gqeq {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.auth-head[b-b3w5g6gqeq] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-title[b-b3w5g6gqeq] {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.auth-subtitle[b-b3w5g6gqeq] {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
}

    .auth-subtitle[b-b3w5g6gqeq]  strong {
        color: var(--ink);
        font-weight: 600;
        overflow-wrap: anywhere;
    }

/* Bottom strip of the card, divided off edge to edge */
.auth-footer[b-b3w5g6gqeq] {
    align-self: stretch;
    margin: 0 calc(-1 * var(--card-pad-x)) calc(-1 * var(--card-pad-bottom));
    padding: 18px var(--card-pad-x);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
    text-align: center;
    background: #fbfbfd;
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
}

/* ===== Icon badge ===== */
.auth-icon[b-b3w5g6gqeq] {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .auth-icon[b-b3w5g6gqeq]  svg {
        width: 24px;
        height: 24px;
    }

.auth-icon--brand[b-b3w5g6gqeq] {
    color: var(--brand);
    background: var(--brand-soft);
}

.auth-icon--success[b-b3w5g6gqeq] {
    color: var(--right);
    background: var(--right-soft);
}

.auth-icon--error[b-b3w5g6gqeq] {
    color: var(--wrong);
    background: var(--wrong-soft);
}

/* ===== Form ===== */
.auth[b-b3w5g6gqeq]  .auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth[b-b3w5g6gqeq]  .auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth[b-b3w5g6gqeq]  .auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.auth[b-b3w5g6gqeq]  .auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.auth[b-b3w5g6gqeq]  .auth-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.auth[b-b3w5g6gqeq]  .auth-input {
    width: 100%;
    height: var(--field-height);
    padding: 0 14px;
    font-family: inherit;
    font-size: 16px; /* 16px or more: iOS does not zoom into the field */
    color: var(--ink);
    background: var(--field-bg);
    border: 1px solid var(--field-line);
    border-radius: var(--field-radius);
    outline: none;
    user-select: text;
    -webkit-user-select: text;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .auth[b-b3w5g6gqeq]  .auth-input::placeholder {
        color: #aab0ba;
    }

    .auth[b-b3w5g6gqeq]  .auth-input:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px var(--brand-ring);
    }

    .auth[b-b3w5g6gqeq]  .auth-input.is-invalid {
        border-color: var(--wrong);
    }

        .auth[b-b3w5g6gqeq]  .auth-input.is-invalid:focus {
            box-shadow: 0 0 0 3px var(--wrong-ring);
        }

/* Multi-line field. height:auto beats login.css's site-wide phone rule (textarea { height: 48px }). */
.auth[b-b3w5g6gqeq]  .auth-textarea {
    height: auto;
    min-height: 150px;
    padding: 12px 14px;
    line-height: 1.55;
    resize: vertical;
}

/* Error on the left, character counter on the right */
.auth[b-b3w5g6gqeq]  .auth-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.auth[b-b3w5g6gqeq]  .auth-counter {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 12.5px;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.auth[b-b3w5g6gqeq]  .auth-counter--warn {
    color: var(--warn);
    font-weight: 600;
}

/* Password: the show/hide toggle sits inside the field */
.auth[b-b3w5g6gqeq]  .auth-input-wrap {
    position: relative;
}

    .auth[b-b3w5g6gqeq]  .auth-input-wrap .auth-input {
        padding-right: 52px;
    }

.auth[b-b3w5g6gqeq]  .auth-eye {
    appearance: none;
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, background-color 0.15s ease;
}

    .auth[b-b3w5g6gqeq]  .auth-eye svg {
        width: 20px;
        height: 20px;
    }

    .auth[b-b3w5g6gqeq]  .auth-eye:active {
        color: var(--brand);
        background: var(--brand-soft);
        transition-duration: 0s;
    }

    .auth[b-b3w5g6gqeq]  .auth-eye:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: -2px;
    }

.auth[b-b3w5g6gqeq]  .auth-error,
.auth[b-b3w5g6gqeq]  .auth-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
}

.auth[b-b3w5g6gqeq]  .auth-error {
    color: var(--wrong);
}

.auth[b-b3w5g6gqeq]  .auth-hint {
    color: var(--ink-muted);
}

.auth[b-b3w5g6gqeq]  .auth-hint--warn {
    color: var(--warn);
}

    .auth[b-b3w5g6gqeq]  .auth-error svg,
    .auth[b-b3w5g6gqeq]  .auth-hint svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        margin-top: 1px;
    }

.auth[b-b3w5g6gqeq]  .auth-match {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
}

.auth[b-b3w5g6gqeq]  .auth-match--ok {
    color: var(--right);
}

.auth[b-b3w5g6gqeq]  .auth-match--fail {
    color: var(--wrong);
}

/* ===== Checkboxes ===== */
.auth[b-b3w5g6gqeq]  .auth-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth[b-b3w5g6gqeq]  .auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .auth[b-b3w5g6gqeq]  .auth-check input {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        margin: 2px 0 0;
        accent-color: var(--brand);
        cursor: pointer;
    }

    .auth[b-b3w5g6gqeq]  .auth-check.is-invalid {
        color: var(--wrong);
    }

        .auth[b-b3w5g6gqeq]  .auth-check.is-invalid input {
            outline: 2px solid var(--wrong);
            outline-offset: 1px;
            border-radius: 3px;
        }

/* ===== Links ===== */
.auth[b-b3w5g6gqeq]  .auth-link {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    -webkit-tap-highlight-color: transparent;
}

    .auth[b-b3w5g6gqeq]  .auth-link:active {
        color: var(--brand-press);
        text-decoration: underline;
        transition-duration: 0s;
    }

    .auth[b-b3w5g6gqeq]  .auth-link:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.auth[b-b3w5g6gqeq]  .auth-link--small {
    font-size: 14px;
}

.auth[b-b3w5g6gqeq]  .auth-check .auth-link {
    font-weight: 600;
    text-decoration: underline;
}

/* ===== Notices (same shape as Progress's .pg-error) ===== */
.auth[b-b3w5g6gqeq]  .auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    font-size: 14.5px;
    line-height: 1.5;
    text-align: left;
    border: 1px solid;
    border-radius: 14px;
    width: 100%;
}

    .auth[b-b3w5g6gqeq]  .auth-notice svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .auth[b-b3w5g6gqeq]  .auth-notice a {
        color: inherit;
        font-weight: 600;
        text-decoration: underline;
    }

.auth[b-b3w5g6gqeq]  .auth-notice--error {
    color: var(--wrong);
    background: var(--wrong-soft);
    border-color: var(--wrong-line);
}

.auth[b-b3w5g6gqeq]  .auth-notice--success {
    color: var(--right);
    background: var(--right-soft);
    border-color: var(--right-line);
}

.auth[b-b3w5g6gqeq]  .auth-notice--info {
    color: var(--warn);
    background: var(--warn-soft);
    border-color: var(--warn-line);
}

.auth[b-b3w5g6gqeq]  .auth-hint--center {
    justify-content: center;
    text-align: center;
}

/* Social sign-in placed above the form (the device's last sign-in method) */
.auth[b-b3w5g6gqeq]  .auth-social-first {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== Provider card: the account was created through Google, so it has no password ===== */
.auth[b-b3w5g6gqeq]  .auth-provider {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: var(--brand-soft);
    border: 1px solid rgba(77, 124, 254, 0.28);
    border-radius: 14px;
    animation: auth-rise-b-b3w5g6gqeq 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.auth[b-b3w5g6gqeq]  .auth-provider-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink-soft);
}

    .auth[b-b3w5g6gqeq]  .auth-provider-text strong {
        display: block;
        margin-bottom: 2px;
        color: var(--ink);
        font-weight: 700;
    }

/* The card's call to action: a brand outline so it reads as the way forward. Only the
   border changes: the neutral fills (hover, press, busy) keep the dark label readable. */
.auth[b-b3w5g6gqeq]  .auth-provider .auth-btn--social {
    border: 2px solid var(--brand);
}

.auth[b-b3w5g6gqeq]  .auth-provider-alt {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ink-soft);
    text-align: center;
}

    .auth[b-b3w5g6gqeq]  .auth-provider-alt .auth-link {
        white-space: nowrap;
    }

/* ===== CAPTCHA ===== */
.auth[b-b3w5g6gqeq]  .auth-captcha {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 65px; /* the widget's height, so the button below doesn't jump when it loads */
}

/* ===== Buttons — same pill as NavigationButtons (.nav-left / .nav-right) =====
   White, 2px outline in the button's colour; fills with that colour on hover
   (mouse only) and instantly when pressed; stays filled with a spinner while
   its action runs. Each variant only sets --btn and, if needed, --btn-ink. */
.auth[b-b3w5g6gqeq]  .auth-btn {
    --btn: var(--brand);
    --btn-ink: #fff; /* text colour once filled */
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    padding: 0 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    color: var(--btn);
    background: #fff;
    border: 2px solid var(--btn);
    border-radius: 23px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    /* No grey iOS tap rectangle, no 300ms tap delay, no label selection on long press */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

    /* Pressed: fills instantly (no transition, so even a quick tap shows it) and sinks */
    .auth[b-b3w5g6gqeq]  .auth-btn:active:not(:disabled) {
        color: var(--btn-ink);
        background: var(--btn);
        transform: scale(0.97);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transition-duration: 0s;
    }

    .auth[b-b3w5g6gqeq]  .auth-btn:focus-visible {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    .auth[b-b3w5g6gqeq]  .auth-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Busy (the page renders a spinner inside while its request runs):
       filled and at full strength, so the tap reads as taken, not refused. */
    .auth[b-b3w5g6gqeq]  .auth-btn:disabled:has(.auth-spinner) {
        opacity: 1;
        color: var(--btn-ink);
        background: var(--btn);
        cursor: progress;
    }

    .auth[b-b3w5g6gqeq]  .auth-btn svg,
    .auth[b-b3w5g6gqeq]  .auth-btn img {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

/* A monochrome icon drawn in the button's text colour (tinted at rest, white
   once filled). The page passes the SVG as --icon: style="--icon:url(...)". */
.auth[b-b3w5g6gqeq]  .auth-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

/* Primary (submit): brand blue, like .nav-left */
.auth[b-b3w5g6gqeq]  .auth-btn--primary {
    --btn: var(--brand);
}

/* Contact channels */
.auth[b-b3w5g6gqeq]  .auth-btn--telegram {
    --btn: var(--brand);
}

/* The "Далее" green of .nav-right; its text sits on white at 1.9:1, so the
   label uses a darker green of the same hue and fills with the brand green. */
.auth[b-b3w5g6gqeq]  .auth-btn--email {
    --btn: #92cd4d;
    color: #4f8a1c;
}

/* Social sign-in: neutral outline; fills light, so the Google colours stay readable */
.auth[b-b3w5g6gqeq]  .auth-btn--social {
    --btn: #d5d9e0;
    --btn-ink: var(--ink);
    color: var(--ink);
    border-width: 1.5px;
}

    .auth[b-b3w5g6gqeq]  .auth-btn--social:active:not(:disabled) {
        background: #eef0f4;
    }

/* Text-only action (secondary links in message cards) */
.auth[b-b3w5g6gqeq]  .auth-btn--text {
    --btn: transparent;
    --btn-ink: var(--brand);
    width: auto;
    height: 40px;
    padding: 0 16px;
    color: var(--ink-soft);
    box-shadow: none;
}

    .auth[b-b3w5g6gqeq]  .auth-btn--text:active:not(:disabled) {
        background: var(--brand-soft);
    }

.auth[b-b3w5g6gqeq]  .auth-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.auth[b-b3w5g6gqeq]  .auth-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: auth-spin-b-b3w5g6gqeq 0.7s linear infinite;
}

@keyframes auth-spin-b-b3w5g6gqeq {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Divider ===== */
.auth[b-b3w5g6gqeq]  .auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
}

    .auth[b-b3w5g6gqeq]  .auth-divider::before,
    .auth[b-b3w5g6gqeq]  .auth-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
    }

/* ===== Message cards (AuthStatusCard) ===== */
.auth[b-b3w5g6gqeq]  .auth-message {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ===== Hover (mouse/trackpad only — see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    /* Hover lift and fill, as in NavigationButtons */
    .auth[b-b3w5g6gqeq]  .auth-btn:hover:not(:disabled) {
        color: var(--btn-ink);
        background: var(--btn);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .auth[b-b3w5g6gqeq]  .auth-btn--social:hover:not(:disabled) {
        background: #f3f4f7;
    }

    .auth[b-b3w5g6gqeq]  .auth-btn--text:hover:not(:disabled) {
        color: var(--brand);
        background: var(--brand-soft);
        box-shadow: none;
        transform: none;
    }

    .auth[b-b3w5g6gqeq]  .auth-link:hover {
        text-decoration: underline;
    }

    .auth[b-b3w5g6gqeq]  .auth-eye:hover {
        color: var(--ink);
        background: var(--surface);
    }

    .auth[b-b3w5g6gqeq]  .auth-input:hover:not(:focus):not(.is-invalid) {
        border-color: #c9cdd4;
    }
}

/* ===== Tablet and phone: 48px buttons, flat, as NavigationButtons at ≤ 992px ===== */
@media (max-width: 992px) {
    .auth[b-b3w5g6gqeq]  .auth-btn {
        height: 48px;
        padding: 0 20px;
        border-radius: 24px;
        box-shadow: none;
    }

    .auth[b-b3w5g6gqeq]  .auth-btn--text {
        height: 40px;
    }
}

/* ===== Phones ===== */
@media (max-width: 600px) {
    .auth[b-b3w5g6gqeq] {
        --card-pad-top: 26px;
        --card-pad-x: 22px;
        --card-pad-bottom: 22px;
        padding: calc(var(--public-header-height, 70px) + 16px) 12px 32px;
    }

    .auth-title[b-b3w5g6gqeq] {
        font-size: 23px;
    }
}

@media (max-width: 480px) {
    .auth[b-b3w5g6gqeq]  .auth-row {
        grid-template-columns: 1fr;
    }
}

/* Narrow phones (≤ 360px) */
@media (max-width: 360px) {
    .auth[b-b3w5g6gqeq] {
        --card-pad-top: 22px;
        --card-pad-x: 16px;
        --card-pad-bottom: 18px;
        --card-radius: 16px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* ===== Short screens (laptops at 125–150% scaling: ~600–800 CSS px tall) =====
   Sizes above suit a full-height screen. On a short one the same form needs
   scrolling to reach its main button, so, as common sign-in pages do, the
   layout gets denser: tighter spacing, 44px controls, no icon badge on forms
   (message cards keep theirs: the icon is their content). Placed after the
   ≤ 992px rules so it wins on short tablets too. */
@media (min-width: 601px) and (max-height: 820px) {
    .auth[b-b3w5g6gqeq] {
        --card-pad-top: 20px;
        --card-pad-x: 32px;
        --card-pad-bottom: 22px;
        --field-height: 44px;
        padding-top: calc(var(--public-header-height, 70px) + 14px);
        padding-bottom: 24px;
        gap: 14px;
    }

    .auth-card[b-b3w5g6gqeq] {
        gap: 14px;
    }

    .auth-card:not(.auth-card--centered) .auth-icon[b-b3w5g6gqeq] {
        display: none;
    }

    .auth-head[b-b3w5g6gqeq] {
        gap: 4px;
    }

    .auth-title[b-b3w5g6gqeq] {
        font-size: 22px;
    }

    .auth-subtitle[b-b3w5g6gqeq] {
        font-size: 14px;
        line-height: 1.5;
    }

    .auth-footer[b-b3w5g6gqeq] {
        padding-top: 12px;
        padding-bottom: 12px;
        font-size: 14px;
    }

    .auth[b-b3w5g6gqeq]  .auth-form {
        gap: 12px;
    }

    .auth[b-b3w5g6gqeq]  .auth-field {
        gap: 5px;
    }

    .auth[b-b3w5g6gqeq]  .auth-label {
        font-size: 13px;
    }

    .auth[b-b3w5g6gqeq]  .auth-btn {
        height: 44px;
        border-radius: 22px;
        font-size: 14.5px;
    }

    .auth[b-b3w5g6gqeq]  .auth-btn--text {
        height: 36px;
    }

    .auth[b-b3w5g6gqeq]  .auth-eye {
        width: 36px;
        height: 36px;
    }

    .auth[b-b3w5g6gqeq]  .auth-textarea {
        min-height: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card[b-b3w5g6gqeq] {
        animation: none;
    }

    .auth[b-b3w5g6gqeq]  .auth-spinner {
        animation-duration: 1.6s;
    }
}
/* /Components/Auth/PasswordRules.razor.rz.scp.css */
/* Collapsed by default; .password-rules--open animates it open. Colours: AuthShell tokens. */
.password-rules[b-xq7mjie0cr] {
    list-style: none;
    margin: 0;
    padding: 0 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 6px;
    background: var(--surface, #f7f8fa);
    border-radius: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .password-rules--open[b-xq7mjie0cr] {
        margin-top: 4px;
        max-height: 200px;
        opacity: 1;
        padding-top: 12px;
        padding-bottom: 12px;
    }

.password-rule[b-xq7mjie0cr] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ink-muted, #8a8f98);
    transition: color 0.2s ease;
}

    .password-rule--met[b-xq7mjie0cr] {
        color: var(--right, #3f7d17);
    }

.password-rule-mark[b-xq7mjie0cr] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #c9cdd4;
    border-radius: 50%;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.password-rule--met .password-rule-mark[b-xq7mjie0cr] {
    color: #fff;
    background: var(--right, #3f7d17);
    border-color: var(--right, #3f7d17);
}

    .password-rule-mark[b-xq7mjie0cr]  svg {
        width: 10px;
        height: 10px;
        stroke-width: 3.5;
    }

@media (max-width: 400px) {
    .password-rules[b-xq7mjie0cr] {
        grid-template-columns: 1fr;
    }

    .password-rules--open[b-xq7mjie0cr] {
        max-height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .password-rules[b-xq7mjie0cr],
    .password-rule[b-xq7mjie0cr],
    .password-rule-mark[b-xq7mjie0cr] {
        transition: none;
    }
}
/* /Components/Auth/Turnstile.razor.rz.scp.css */
/* Shown instead of the widget while the development-only captcha switch is on. */
.turnstile-off[b-9p09fbw9vd] {
    margin: 0;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #7a4f00;
    background: #fff8e6;
    border: 1px dashed #e0b54a;
    border-radius: 8px;
}
/* /Components/Chat/ChatAvatar.razor.rz.scp.css */
.chat-avatar[b-1plz1xvf3u] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    background: hsl(var(--avatar-hue) 70% 93%);
    color: hsl(var(--avatar-hue) 42% 34%);
    font-size: calc(var(--avatar-size) * 0.38);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    user-select: none;
}

    .chat-avatar img[b-1plz1xvf3u] {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        background: #f1f3f7;
    }

.chat-avatar__dot[b-1plz1xvf3u] {
    position: absolute;
    top: 0;
    right: 0;
    width: max(9px, calc(var(--avatar-size) * 0.26));
    height: max(9px, calc(var(--avatar-size) * 0.26));
    border-radius: 50%;
    background: #FF4245;
    box-shadow: 0 0 0 2px #fff;
}
/* /Components/Chat/ChatComposer.razor.rz.scp.css */
.composer[b-mm7u8suerf] {
    flex-shrink: 0;
    padding: 10px 24px 14px;
    border-top: 1px solid var(--chat-border, #E6E9F0);
    background: #fff;
}

.composer__inner[b-mm7u8suerf] {
    max-width: 880px;
    margin: 0 auto;
}

/* Error line */
.composer__alert[b-mm7u8suerf] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 8px 8px 12px;
    border-radius: 12px;
    background: #FDECEC;
    color: #B42318;
    font-size: 13px;
    line-height: 1.4;
    animation: composer-slide-b-mm7u8suerf .18s ease-out;
}

.composer__alert[b-mm7u8suerf]  .composer__alert-icon {
    margin-top: 1px;
}

.composer__alert-text[b-mm7u8suerf] {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.composer__alert-close[b-mm7u8suerf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
}

    @media (hover: hover) and (pointer: fine) {
        .composer__alert-close:hover[b-mm7u8suerf] {
            background: rgba(180, 35, 24, .1);
        }
    }

/* Attached file */
.composer__attachment[b-mm7u8suerf] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 8px 8px 10px;
    border: 1px solid var(--chat-border, #E6E9F0);
    border-radius: 14px;
    background: var(--chat-surface-alt, #F4F6FB);
    animation: composer-slide-b-mm7u8suerf .18s ease-out;
}

.composer__attachment-icon[b-mm7u8suerf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    color: var(--chat-primary, #4D7CFE);
    flex-shrink: 0;
}

.composer__attachment-text[b-mm7u8suerf] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.composer__attachment-name[b-mm7u8suerf] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: var(--chat-text, #1B1F2A);
}

.composer__attachment-meta[b-mm7u8suerf] {
    font-size: 12px;
    color: var(--chat-text-muted, #6B7385);
}

.composer__attachment-remove[b-mm7u8suerf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--chat-text-muted, #6B7385);
    cursor: pointer;
    flex-shrink: 0;
}

    @media (hover: hover) and (pointer: fine) {
        .composer__attachment-remove:hover:not(:disabled)[b-mm7u8suerf] {
            background: #FDECEC;
            color: #E5484D;
        }
    }

    .composer__attachment-remove:disabled[b-mm7u8suerf] {
        opacity: .5;
        cursor: not-allowed;
    }

/* Input row */
.composer__row[b-mm7u8suerf] {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.composer__icon-btn[b-mm7u8suerf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--chat-text-muted, #6B7385);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s ease, color .15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .composer__icon-btn:hover:not(:disabled)[b-mm7u8suerf] {
            background: var(--chat-surface-alt, #F4F6FB);
            color: var(--chat-primary, #4D7CFE);
        }
    }

    .composer__icon-btn:disabled[b-mm7u8suerf] {
        opacity: .45;
        cursor: not-allowed;
    }

.composer__field[b-mm7u8suerf] {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
    border: 1px solid var(--chat-border, #E6E9F0);
    border-radius: 22px;
    background: var(--chat-surface-alt, #F4F6FB);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

    .composer__field:focus-within[b-mm7u8suerf] {
        border-color: var(--chat-primary, #4D7CFE);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(77, 124, 254, .15);
    }

.composer__textarea[b-mm7u8suerf] {
    display: block;
    flex: 1;
    min-width: 0;
    height: 42px;
    max-height: 160px;
    margin: 0;
    padding: 10px 18px;
    border: none;
    outline: none;
    resize: none;
    overflow-y: hidden;
    background: transparent;
    color: var(--chat-text, #1B1F2A);
    font-family: inherit;
    font-size: 16px;
    line-height: 22px;
    -webkit-user-select: text;
    user-select: text;
}

    .composer__textarea[b-mm7u8suerf]::placeholder {
        color: var(--chat-text-subtle, #9AA1B2);
    }

    .composer__textarea:disabled[b-mm7u8suerf] {
        cursor: not-allowed;
    }

.composer__counter[b-mm7u8suerf] {
    position: absolute;
    right: 14px;
    bottom: calc(100% + 4px);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--chat-text-muted, #6B7385);
}

    .composer__counter.is-limit[b-mm7u8suerf] {
        color: #E5484D;
        font-weight: 600;
    }

.composer__send[b-mm7u8suerf] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 2px 0 0;
    border: none;
    border-radius: 50%;
    background: #E9ECF2;
    color: #9AA1B2;
    cursor: not-allowed;
    flex-shrink: 0;
    transition: background-color .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease;
}

    .composer__send.is-ready[b-mm7u8suerf] {
        background: var(--chat-primary, #4D7CFE);
        color: #fff;
        box-shadow: 0 4px 12px rgba(77, 124, 254, .35);
        cursor: pointer;
    }

        @media (hover: hover) and (pointer: fine) {
            .composer__send.is-ready:hover[b-mm7u8suerf] {
                background: var(--chat-primary-hover, #3D6AE8);
            }
        }

        .composer__send.is-ready:active[b-mm7u8suerf] {
            transform: scale(.94);
        }

.composer__icon-btn:focus-visible[b-mm7u8suerf],
.composer__send:focus-visible[b-mm7u8suerf],
.composer__attachment-remove:focus-visible[b-mm7u8suerf],
.composer__alert-close:focus-visible[b-mm7u8suerf] {
    outline: 2px solid var(--chat-primary, #4D7CFE);
    outline-offset: 2px;
}

.composer__spinner[b-mm7u8suerf] {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(77, 124, 254, .25);
    border-top-color: var(--chat-primary, #4D7CFE);
    border-radius: 50%;
    animation: composer-spin-b-mm7u8suerf .8s linear infinite;
}

.composer__spinner--light[b-mm7u8suerf] {
    border-color: rgba(255, 255, 255, .35);
    border-top-color: #fff;
}

/* Touch devices never show this hint (Enter always just inserts a newline there - see
   chat-page.js's attachComposer), so it stays fully collapsed and out of the layout for them;
   there the "has-content" toggle can never create a jump because the element never has size to
   begin with. */
.composer__hint[b-mm7u8suerf] {
    display: none;
    margin-top: 6px;
    padding-right: 56px;
    font-size: 11px;
    line-height: 14px;
    text-align: right;
    color: var(--chat-text-subtle, #9AA1B2);
}

/* The keyboard hint only makes sense with a physical keyboard. Its box is always present here
   (kept invisible with `visibility`, not `display`) so its height is reserved at all times -
   text appearing/disappearing as HasContent changes never shifts the row above it. */
@media (hover: hover) and (pointer: fine) {
    .composer__hint[b-mm7u8suerf] {
        display: block;
        visibility: hidden;
    }

    .composer__hint.has-content[b-mm7u8suerf] {
        visibility: visible;
    }
}

@keyframes composer-spin-b-mm7u8suerf {
    to {
        transform: rotate(360deg);
    }
}

@keyframes composer-slide-b-mm7u8suerf {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .composer[b-mm7u8suerf] {
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .composer__row[b-mm7u8suerf] {
        gap: 6px;
    }

    .composer__textarea[b-mm7u8suerf] {
        max-height: 120px;
        padding: 10px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .composer__alert[b-mm7u8suerf],
    .composer__attachment[b-mm7u8suerf],
    .composer__spinner[b-mm7u8suerf] {
        animation: none;
    }
}
/* /Components/Chat/ChatHeader.razor.rz.scp.css */
/* Sized by its own width, not the viewport: next to the user list the
   conversation pane is much narrower than the screen. */
.chat-header[b-n9xzph8h2t] {
    container: chat-header / inline-size;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--chat-border, #E6E9F0);
    background: #fff;
    flex-shrink: 0;
}

.chat-header__text[b-n9xzph8h2t] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.chat-header__title[b-n9xzph8h2t],
.chat-header__subtitle[b-n9xzph8h2t] {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-header__title-row[b-n9xzph8h2t] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.chat-header__title[b-n9xzph8h2t] {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--chat-text, #1B1F2A);
    min-width: 0;
}

.chat-header__sub-pill[b-n9xzph8h2t] {
    flex-shrink: 0;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .4px;
}

    .chat-header__sub-pill.free[b-n9xzph8h2t] {
        background: #6c757d;
    }

    .chat-header__sub-pill.basic[b-n9xzph8h2t] {
        background: linear-gradient(135deg, #4D7CFE, #3d6cee);
    }

    .chat-header__sub-pill.premium[b-n9xzph8h2t] {
        background: linear-gradient(135deg, #92CD4D, #76b939);
    }

    .chat-header__sub-pill.expired[b-n9xzph8h2t] {
        background: #E5484D;
    }

/* Email and course progress share the quieter second line. */
.chat-header__meta[b-n9xzph8h2t] {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.chat-header__subtitle[b-n9xzph8h2t] {
    min-width: 0;
    font-size: 13px;
    line-height: 1.3;
    color: var(--chat-text-muted, #6B7385);
}

.chat-header__progress[b-n9xzph8h2t] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-left: 14px;
    border-left: 1px solid var(--chat-border, #E6E9F0);
    font-size: 13px;
    line-height: 1.3;
    color: var(--chat-text-muted, #6B7385);
    white-space: nowrap;
}

    .chat-header__progress:first-child[b-n9xzph8h2t] {
        padding-left: 0;
        border-left: none;
    }

.chat-header__progress-track[b-n9xzph8h2t] {
    width: 64px;
    height: 5px;
    border-radius: 3px;
    background: #E8EEFF;
    overflow: hidden;
}

.chat-header__progress-fill[b-n9xzph8h2t] {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--chat-primary, #4D7CFE);
}

.chat-header__progress-value strong[b-n9xzph8h2t] {
    color: var(--chat-text, #1B1F2A);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.chat-header__icon-btn[b-n9xzph8h2t] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: -8px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--chat-text, #1B1F2A);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-header__icon-btn:hover[b-n9xzph8h2t] {
            background: var(--chat-surface-alt, #F4F6FB);
        }
    }

.chat-header__actions[b-n9xzph8h2t] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.chat-header__action[b-n9xzph8h2t] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--chat-border, #E6E9F0);
    border-radius: 999px;
    background: #fff;
    color: var(--chat-text, #1B1F2A);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-header__action:hover[b-n9xzph8h2t] {
            border-color: var(--chat-primary, #4D7CFE);
            background: var(--chat-primary-soft, #EEF3FF);
            color: var(--chat-primary, #4D7CFE);
        }
    }

.chat-header__icon-btn:focus-visible[b-n9xzph8h2t],
.chat-header__action:focus-visible[b-n9xzph8h2t] {
    outline: 2px solid var(--chat-primary, #4D7CFE);
    outline-offset: 2px;
}

/* The list sits next to the conversation from 1024px, so "back" is not needed there. */
@media (min-width: 1024px) {
    .chat-header__icon-btn.is-compact-only[b-n9xzph8h2t] {
        display: none;
    }
}

@media (max-width: 640px) {
    .chat-header[b-n9xzph8h2t] {
        gap: 10px;
        min-height: 64px;
        padding: 10px 12px;
    }

    .chat-header__icon-btn[b-n9xzph8h2t] {
        margin-left: -4px;
    }

    .chat-header__title[b-n9xzph8h2t] {
        font-size: 16px;
    }

    .chat-header__subtitle[b-n9xzph8h2t],
    .chat-header__progress[b-n9xzph8h2t] {
        font-size: 12px;
    }
}

/* Narrow conversation pane: the actions keep only their icons. */
@container chat-header (max-width: 700px) {
    .chat-header__action[b-n9xzph8h2t] {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    .chat-header__action-label[b-n9xzph8h2t] {
        display: none;
    }
}

/* Very narrow: the email is already in the list, progress matters more here. */
@container chat-header (max-width: 460px) {
    .chat-header__subtitle[b-n9xzph8h2t] {
        display: none;
    }

    .chat-header__progress[b-n9xzph8h2t] {
        padding-left: 0;
        border-left: none;
    }

    .chat-header__progress-track[b-n9xzph8h2t] {
        width: 48px;
    }
}
/* /Components/Chat/ChatMessageBubble.razor.rz.scp.css */
.msg[b-zv1g5zya8n] {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 2px;
}

    .msg.is-first[b-zv1g5zya8n] {
        margin-top: 14px;
    }

.msg--mine[b-zv1g5zya8n],
.msg--team[b-zv1g5zya8n] {
    justify-content: flex-end;
}

/* display:flex (not just a bare wrapper) matters here: ChatAvatar's root is inline-flex, and as
   a bare inline element it picks up a few px of baseline/descender space below it from the
   surrounding line box, which align-items:flex-end on .msg then aligns to - leaving the visible
   circle sitting slightly above the bubble's true bottom edge. A flex container child has no
   such line-box, so its own box is exactly the avatar's height. */
.msg__avatar[b-zv1g5zya8n] {
    display: flex;
    align-items: flex-end;
    width: 32px;
    flex-shrink: 0;
}

.msg__column[b-zv1g5zya8n] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: min(620px, 78%);
}

.msg--mine .msg__column[b-zv1g5zya8n],
.msg--team .msg__column[b-zv1g5zya8n] {
    align-items: flex-end;
}

.msg--other .msg__column[b-zv1g5zya8n] {
    align-items: flex-start;
}

.msg__sender[b-zv1g5zya8n] {
    margin: 0 12px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--chat-text-muted, #6B7385);
}

.msg--team .msg__sender[b-zv1g5zya8n] {
    color: var(--chat-primary, #4D7CFE);
}

/* Bubble */
.msg__bubble[b-zv1g5zya8n] {
    position: relative;
    max-width: 100%;
    padding: 8px 12px 8px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
    user-select: text;
    -webkit-user-select: text;
}

.msg--mine .msg__bubble[b-zv1g5zya8n] {
    background: var(--chat-primary, #4D7CFE);
    color: #fff;
}

.msg--team .msg__bubble[b-zv1g5zya8n] {
    background: var(--chat-team-bubble, #E4EBFF);
    color: var(--chat-text, #1B1F2A);
}

.msg--other .msg__bubble[b-zv1g5zya8n] {
    background: var(--chat-other-bubble, #F1F3F7);
    color: var(--chat-text, #1B1F2A);
}

/* Consecutive messages from the same person read as one block. */
.msg--mine:not(.is-first) .msg__bubble[b-zv1g5zya8n],
.msg--team:not(.is-first) .msg__bubble[b-zv1g5zya8n] {
    border-top-right-radius: 6px;
}

.msg--mine:not(.is-last) .msg__bubble[b-zv1g5zya8n],
.msg--team:not(.is-last) .msg__bubble[b-zv1g5zya8n] {
    border-bottom-right-radius: 6px;
}

.msg--other:not(.is-first) .msg__bubble[b-zv1g5zya8n] {
    border-top-left-radius: 6px;
}

.msg--other:not(.is-last) .msg__bubble[b-zv1g5zya8n] {
    border-bottom-left-radius: 6px;
}

.msg__text[b-zv1g5zya8n] {
    white-space: pre-wrap;
}

/* Reserves room so the overlaid time never covers the last line of text. */
.msg__time-spacer[b-zv1g5zya8n] {
    display: inline-block;
    width: 44px;
    height: 1px;
    visibility: hidden;
}

.msg__time[b-zv1g5zya8n] {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--chat-text-subtle, #8C93A3);
}

    .msg__time.is-overlay[b-zv1g5zya8n] {
        position: absolute;
        right: 12px;
        bottom: 8px;
        margin: 0;
    }

.msg--mine .msg__time[b-zv1g5zya8n] {
    color: rgba(255, 255, 255, .78);
}

/* Links only appear in notifications (rendered as raw HTML, hence ::deep). */
.msg__text[b-zv1g5zya8n]  .chat-link {
    color: var(--chat-primary, #4D7CFE);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    @media (hover: hover) and (pointer: fine) {
        .msg__text[b-zv1g5zya8n]  .chat-link:hover {
            text-decoration-thickness: 2px;
        }
    }

.msg--mine .msg__text[b-zv1g5zya8n]  .chat-link {
    color: #fff;
}

/* Notifications */
.msg__bubble--notice[b-zv1g5zya8n] {
    border: 1px solid var(--chat-border, #E6E9F0);
}

.msg--other .msg__bubble--notice[b-zv1g5zya8n] {
    background: #fff;
}

.msg--mine .msg__bubble--notice[b-zv1g5zya8n] {
    border-color: transparent;
}

.msg__notice-label[b-zv1g5zya8n] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--chat-text-muted, #6B7385);
}

.msg--mine .msg__notice-label[b-zv1g5zya8n] {
    color: rgba(255, 255, 255, .8);
}

/* Voice messages */
.msg__bubble--media[b-zv1g5zya8n] {
    padding: 8px 12px 6px 8px;
}

.msg__media + .msg__time[b-zv1g5zya8n],
.msg__text + .msg__media[b-zv1g5zya8n] {
    margin-top: 6px;
}

/* Files */
.msg__file[b-zv1g5zya8n] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(240px, 60vw);
    margin: 2px -4px 0;
    padding: 8px 10px 8px 8px;
    border-radius: 12px;
    background: rgba(27, 31, 42, .05);
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease;
}

.msg__text + .msg__file[b-zv1g5zya8n] {
    margin-top: 8px;
}

@media (hover: hover) and (pointer: fine) {
    .msg__file:hover[b-zv1g5zya8n] {
        background: rgba(27, 31, 42, .09);
        color: inherit;
    }
}

.msg--mine .msg__file[b-zv1g5zya8n] {
    background: rgba(255, 255, 255, .16);
}

    @media (hover: hover) and (pointer: fine) {
        .msg--mine .msg__file:hover[b-zv1g5zya8n] {
            background: rgba(255, 255, 255, .24);
        }
    }

.msg__file:focus-visible[b-zv1g5zya8n] {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.msg__file-icon[b-zv1g5zya8n] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    color: var(--chat-primary, #4D7CFE);
    flex-shrink: 0;
}

.msg__file-ext[b-zv1g5zya8n] {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 3px;
    border-radius: 3px;
    background: var(--chat-primary, #4D7CFE);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 11px;
    letter-spacing: .02em;
}

.msg__file-text[b-zv1g5zya8n] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.msg__file-name[b-zv1g5zya8n] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.msg__file-size[b-zv1g5zya8n] {
    font-size: 12px;
    opacity: .72;
}

.msg__file[b-zv1g5zya8n]  .msg__file-download {
    opacity: .7;
}

@media (max-width: 640px) {
    .msg__column[b-zv1g5zya8n] {
        max-width: 84%;
    }

    .msg__avatar[b-zv1g5zya8n] {
        width: 28px;
    }

    .msg__bubble[b-zv1g5zya8n] {
        font-size: 15px;
    }
}
/* /Components/Chat/ChatMessageList.razor.rz.scp.css */
.chat-messages-wrap[b-viguyvau9a] {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-messages[b-viguyvau9a] {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: rgba(27, 31, 42, .18) transparent;
}

    .chat-messages[b-viguyvau9a]::-webkit-scrollbar {
        width: 8px;
    }

    .chat-messages[b-viguyvau9a]::-webkit-scrollbar-thumb {
        border: 2px solid transparent;
        border-radius: 8px;
        background: rgba(27, 31, 42, .18);
        background-clip: padding-box;
    }

/* Few messages sit at the bottom, next to the composer, like in any messenger. */
.chat-messages__inner[b-viguyvau9a] {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 4px 24px 20px;
}

/* Paging edges */
.chat-messages__edge[b-viguyvau9a] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 0 2px;
}

.chat-messages__spinner[b-viguyvau9a] {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(77, 124, 254, .2);
    border-top-color: var(--chat-primary, #4D7CFE);
    border-radius: 50%;
    animation: chat-messages-spin-b-viguyvau9a .8s linear infinite;
}

.chat-messages__start[b-viguyvau9a] {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--chat-surface-alt, #F4F6FB);
    color: var(--chat-text-subtle, #8C93A3);
    font-size: 12px;
    font-weight: 500;
}

.chat-messages__edge-error[b-viguyvau9a] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #FDECEC;
    color: #B42318;
    font-size: 13px;
    text-align: center;
}

/* Sticky day separators */
.chat-messages__date[b-viguyvau9a] {
    position: sticky;
    top: 8px;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin: 18px 0 2px;
    pointer-events: none;
}

    .chat-messages__date span[b-viguyvau9a] {
        padding: 4px 12px;
        border: 1px solid var(--chat-border, #E6E9F0);
        border-radius: 999px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
        color: var(--chat-text-muted, #6B7385);
        font-size: 12px;
        font-weight: 600;
    }

/* Loading, empty and error states */
.chat-messages__skeleton[b-viguyvau9a] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0;
}

.bubble-skeleton[b-viguyvau9a] {
    display: block;
    width: 38%;
    height: 40px;
    border-radius: 18px;
    background: linear-gradient(90deg, #EEF0F5 25%, #F6F7FA 37%, #EEF0F5 63%);
    background-size: 400% 100%;
    animation: chat-messages-shimmer-b-viguyvau9a 1.4s ease infinite;
}

    .bubble-skeleton.is-wide[b-viguyvau9a] {
        width: 56%;
        height: 58px;
    }

    .bubble-skeleton.is-right[b-viguyvau9a] {
        align-self: flex-end;
    }

.chat-messages__state[b-viguyvau9a] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: auto;
    padding: 32px 16px;
    text-align: center;
}

.chat-messages__state[b-viguyvau9a]  .chat-messages__state-icon.is-error {
    color: #E5484D;
}

.chat-messages__state-title[b-viguyvau9a] {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--chat-text, #1B1F2A);
}

.chat-messages__state-text[b-viguyvau9a] {
    max-width: 420px;
    margin: 0;
    font-size: 14px;
    color: var(--chat-text-muted, #6B7385);
}

.chat-messages__empty-img[b-viguyvau9a] {
    width: 100%;
    max-width: 220px;
    height: auto;
    margin-top: 4px;
    user-select: none;
    pointer-events: none;
}

.chat-messages__retry[b-viguyvau9a] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--chat-border, #E6E9F0);
    border-radius: 999px;
    background: #fff;
    color: var(--chat-primary, #4D7CFE);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-messages__retry:hover[b-viguyvau9a] {
            border-color: var(--chat-primary, #4D7CFE);
            background: var(--chat-primary-soft, #EEF3FF);
        }
    }

    .chat-messages__retry.is-small[b-viguyvau9a] {
        height: 30px;
        padding: 0 12px;
        font-size: 13px;
    }

/* Jump to the newest message */
.chat-messages__jump[b-viguyvau9a] {
    position: absolute;
    right: 20px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--chat-border, #E6E9F0);
    border-radius: 50%;
    background: #fff;
    color: var(--chat-text, #1B1F2A);
    box-shadow: 0 4px 12px rgba(16, 24, 40, .12);
    cursor: pointer;
    animation: chat-messages-pop-b-viguyvau9a .18s ease-out;
    transition: background-color .15s ease, color .15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-messages__jump:hover[b-viguyvau9a] {
            background: var(--chat-primary-soft, #EEF3FF);
            color: var(--chat-primary, #4D7CFE);
        }
    }

.chat-messages__retry:focus-visible[b-viguyvau9a],
.chat-messages__jump:focus-visible[b-viguyvau9a] {
    outline: 2px solid var(--chat-primary, #4D7CFE);
    outline-offset: 2px;
}

@keyframes chat-messages-spin-b-viguyvau9a {
    to {
        transform: rotate(360deg);
    }
}

@keyframes chat-messages-shimmer-b-viguyvau9a {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

@keyframes chat-messages-pop-b-viguyvau9a {
    from {
        opacity: 0;
        transform: translateY(6px) scale(.9);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .chat-messages__inner[b-viguyvau9a] {
        padding: 4px 12px 16px;
    }

    .chat-messages__jump[b-viguyvau9a] {
        right: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-messages__spinner[b-viguyvau9a],
    .bubble-skeleton[b-viguyvau9a],
    .chat-messages__jump[b-viguyvau9a] {
        animation: none;
    }
}
/* /Components/Chat/ChatUserList.razor.rz.scp.css */
.chat-users[b-rggile3dgx] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #fff;
}

.chat-users__header[b-rggile3dgx] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 16px 12px;
    border-bottom: 1px solid var(--chat-border, #E6E9F0);
    flex-shrink: 0;
}

.chat-users__title-row[b-rggile3dgx] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-users__title[b-rggile3dgx] {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--chat-text, #1B1F2A);
}

.chat-users__badge[b-rggile3dgx] {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: #FF4245;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
}

/* "Рассылка": the way to the news emails page, at the end of the title row. A white pill in the brand colour that
   fills on press, like the other buttons (NavigationButtons.razor.css), at the size of this compact header. */
.chat-users__news[b-rggile3dgx] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    margin-left: auto;
    padding: 0 14px;
    border: 2px solid var(--chat-primary, #4D7CFE);
    border-radius: 18px;
    background: #fff;
    color: var(--chat-primary, #4D7CFE);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(20, 30, 60, 0.08);
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, color .15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-users__news:hover[b-rggile3dgx] {
            background: var(--chat-primary, #4D7CFE);
            color: #fff;
        }
    }

    .chat-users__news:active[b-rggile3dgx] {
        background: var(--chat-primary, #4D7CFE);
        color: #fff;
        transition-duration: 0s;
    }

    .chat-users__news:focus-visible[b-rggile3dgx] {
        outline: 2px solid var(--chat-primary, #4D7CFE);
        outline-offset: 2px;
    }

/* Search */
.chat-users__search[b-rggile3dgx] {
    position: relative;
    display: flex;
    align-items: center;
}

.chat-users__search[b-rggile3dgx]  .chat-users__search-icon {
    position: absolute;
    left: 12px;
    color: var(--chat-text-subtle, #9AA1B2);
    pointer-events: none;
}

.chat-users__search-input[b-rggile3dgx] {
    width: 100%;
    height: 42px;
    padding: 0 40px 0 40px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--chat-surface-alt, #F4F6FB);
    color: var(--chat-text, #1B1F2A);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

    .chat-users__search-input[b-rggile3dgx]::placeholder {
        color: var(--chat-text-subtle, #9AA1B2);
    }

    .chat-users__search-input[b-rggile3dgx]::-webkit-search-cancel-button {
        display: none;
    }

    .chat-users__search-input:focus[b-rggile3dgx] {
        border-color: var(--chat-primary, #4D7CFE);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(77, 124, 254, .18);
    }

.chat-users__search-clear[b-rggile3dgx] {
    position: absolute;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--chat-text-muted, #6B7385);
    cursor: pointer;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-users__search-clear:hover[b-rggile3dgx] {
            background: rgba(27, 31, 42, .06);
        }
    }

/* Segmented switch */
.chat-users__tabs[b-rggile3dgx] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: var(--chat-surface-alt, #F4F6FB);
}

.chat-users__tab[b-rggile3dgx] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    height: 34px;
    padding: 0 8px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--chat-text-muted, #6B7385);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.chat-users__tab-label[b-rggile3dgx] {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* Count chip: the tab's size, or its search matches while a search is typed. */
.chat-users__tab-count[b-rggile3dgx] {
    flex-shrink: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(27, 31, 42, .07);
    color: var(--chat-text-muted, #6B7385);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

    .chat-users__tab.is-active .chat-users__tab-count[b-rggile3dgx] {
        background: var(--chat-primary-soft, #EEF3FF);
        color: var(--chat-primary, #4D7CFE);
    }

    /* While searching, a tab with hits stands out even when it is not the open one. */
    .chat-users__tabs.is-searching .chat-users__tab-count:not(.is-zero)[b-rggile3dgx] {
        background: var(--chat-primary, #4D7CFE);
        color: #fff;
    }

    .chat-users__tab-count.is-zero[b-rggile3dgx] {
        opacity: .55;
    }

    @media (hover: hover) and (pointer: fine) {
        .chat-users__tab:hover:not(:disabled)[b-rggile3dgx] {
            color: var(--chat-text, #1B1F2A);
        }
    }

    .chat-users__tab.is-active[b-rggile3dgx] {
        background: #fff;
        color: var(--chat-primary, #4D7CFE);
        box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 1px 3px rgba(16, 24, 40, .06);
    }

    .chat-users__tab:active:not(:disabled):not(.is-active)[b-rggile3dgx] {
        background: rgba(27, 31, 42, .06);
        transition-duration: 0s;
    }

    .chat-users__tab:disabled[b-rggile3dgx] {
        cursor: default;
    }

/* List */
.chat-users__list[b-rggile3dgx] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
}

.chat-users__caption[b-rggile3dgx] {
    margin: 2px 14px 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--chat-text-subtle, #9AA1B2);
}

.chat-users__caption-link[b-rggile3dgx] {
    padding: 0;
    border: none;
    background: none;
    color: var(--chat-primary, #4D7CFE);
    font: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(77, 124, 254, .35);
    text-underline-offset: 2px;
    cursor: pointer;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-users__caption-link:hover[b-rggile3dgx] {
            text-decoration-color: currentColor;
        }
    }

    .chat-users__caption-link:active[b-rggile3dgx] {
        opacity: .6;
        transition-duration: 0s;
    }

    .chat-users__caption-link:focus-visible[b-rggile3dgx] {
        outline: 2px solid var(--chat-primary, #4D7CFE);
        outline-offset: 2px;
        border-radius: 3px;
    }

.chat-user[b-rggile3dgx] {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .12s ease;
}

    .chat-user + .chat-user[b-rggile3dgx] {
        margin-top: 4px;
    }

    @media (hover: hover) and (pointer: fine) {
        .chat-user:hover[b-rggile3dgx] {
            background: var(--chat-surface-alt, #F4F6FB);
        }

        .chat-user:not(.is-selected):hover[b-rggile3dgx]  .chat-avatar__dot {
            box-shadow: 0 0 0 2px var(--chat-surface-alt, #F4F6FB);
        }
    }

    .chat-user:focus-visible[b-rggile3dgx] {
        outline: 2px solid var(--chat-primary, #4D7CFE);
        outline-offset: -2px;
    }

    .chat-user.is-selected[b-rggile3dgx] {
        background: var(--chat-primary-soft, #EEF3FF);
    }

    /* The unread dot's ring matches the row behind it. */
    .chat-user.is-selected[b-rggile3dgx]  .chat-avatar__dot {
        box-shadow: 0 0 0 2px var(--chat-primary-soft, #EEF3FF);
    }

.chat-user__text[b-rggile3dgx] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.chat-user__name[b-rggile3dgx],
.chat-user__email[b-rggile3dgx] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-user__name-row[b-rggile3dgx] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.chat-user__name[b-rggile3dgx] {
    font-size: 15px;
    font-weight: 500;
    color: var(--chat-text, #1B1F2A);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.chat-user__self[b-rggile3dgx] {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--chat-text-subtle, #9AA1B2);
}

.chat-user__sub-pill[b-rggile3dgx] {
    margin-left: auto;
    flex-shrink: 0;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .3px;
}

    .chat-user__sub-pill.free[b-rggile3dgx] {
        background: #6c757d;
    }

    .chat-user__sub-pill.basic[b-rggile3dgx] {
        background: linear-gradient(135deg, #4D7CFE, #3d6cee);
    }

    .chat-user__sub-pill.premium[b-rggile3dgx] {
        background: linear-gradient(135deg, #92CD4D, #76b939);
    }

    .chat-user__sub-pill.expired[b-rggile3dgx] {
        background: #E5484D;
    }

.chat-user.is-unread .chat-user__name[b-rggile3dgx] {
    font-weight: 700;
}

.chat-user.is-selected .chat-user__name[b-rggile3dgx] {
    color: var(--chat-primary, #4D7CFE);
}

.chat-user__email[b-rggile3dgx] {
    font-size: 13px;
    color: var(--chat-text-muted, #6B7385);
}

/* The registration day: what the list is ordered by */
.chat-user__since[b-rggile3dgx] {
    font-size: 12px;
    color: var(--chat-text-subtle, #9AA1B2);
    font-variant-numeric: tabular-nums;
}

/* Course progress, as on the progress page */
.chat-user__progress[b-rggile3dgx] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.chat-user__progress-track[b-rggile3dgx] {
    flex: 1;
    height: 4px;
    border-radius: 3px;
    background: #E8EEFF;
    overflow: hidden;
}

.chat-user__progress-fill[b-rggile3dgx] {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--chat-primary, #4D7CFE);
}

.chat-user__progress-value[b-rggile3dgx] {
    min-width: 4ch;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: var(--chat-text-muted, #6B7385);
    font-variant-numeric: tabular-nums;
}

/* Loading / empty / error */
.chat-user--skeleton[b-rggile3dgx] {
    cursor: default;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-user--skeleton:hover[b-rggile3dgx] {
            background: transparent;
        }
    }

.skeleton[b-rggile3dgx] {
    display: block;
    border-radius: 6px;
    background: linear-gradient(90deg, #EEF0F5 25%, #F6F7FA 37%, #EEF0F5 63%);
    background-size: 400% 100%;
    animation: chat-skeleton-b-rggile3dgx 1.4s ease infinite;
}

.skeleton--avatar[b-rggile3dgx] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton--line[b-rggile3dgx] {
    width: 70%;
    height: 12px;
}

.skeleton--short[b-rggile3dgx] {
    width: 45%;
    margin-top: 6px;
}

@keyframes chat-skeleton-b-rggile3dgx {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

.chat-users__state[b-rggile3dgx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    text-align: center;
}

.chat-users__state[b-rggile3dgx]  .chat-users__state-icon {
    color: var(--chat-text-subtle, #9AA1B2);
}

    .chat-users__state[b-rggile3dgx]  .chat-users__state-icon.is-error {
        color: #E5484D;
    }

.chat-users__state-text[b-rggile3dgx] {
    margin: 0;
    font-size: 14px;
    color: var(--chat-text-muted, #6B7385);
}

.chat-users__state-btn[b-rggile3dgx] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--chat-border, #E6E9F0);
    border-radius: 999px;
    background: #fff;
    color: var(--chat-primary, #4D7CFE);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-users__state-btn:hover[b-rggile3dgx] {
            border-color: var(--chat-primary, #4D7CFE);
            background: var(--chat-primary-soft, #EEF3FF);
        }
    }

@media (prefers-reduced-motion: reduce) {
    .skeleton[b-rggile3dgx] {
        animation: none;
    }
}
/* /Components/Landing/CookieBanner.razor.rz.scp.css */
/* =====================================================
   Cookie Banner
   ===================================================== */
.cookie-banner[b-j3m2jo7vzf] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    z-index: 2000;
    pointer-events: none;
    padding: var(--spacing-l);
    padding-bottom: calc(var(--spacing-l) + env(safe-area-inset-bottom, 0px));
    animation: cookie-slide-up-b-j3m2jo7vzf 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cookie-slide-up-b-j3m2jo7vzf {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-inner[b-j3m2jo7vzf] {
    pointer-events: auto;
    max-width: 1100px;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 30, 87, 0.08);
    box-shadow: 0 12px 40px rgba(0, 30, 87, 0.18);
    border-radius: 18px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 auto;
}

.cookie-icon[b-j3m2jo7vzf] {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #92CD4D 0%, #6fb33a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(146, 205, 77, 0.35);
}

    .cookie-icon svg[b-j3m2jo7vzf] {
        width: 24px;
        height: 24px;
    }

.cookie-message[b-j3m2jo7vzf] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-title[b-j3m2jo7vzf] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #001e57;
    letter-spacing: 0.2px;
}

.cookie-text[b-j3m2jo7vzf] {
    font-size: 0.82rem;
    color: #4a5570;
    line-height: 1.5;
}

.cookie-actions[b-j3m2jo7vzf] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.cookie-btn[b-j3m2jo7vzf] {
    border: none;
    padding: 11px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .cookie-btn:active[b-j3m2jo7vzf] {
        transform: translateY(1px);
    }

.cookie-accept[b-j3m2jo7vzf] {
    background: #92CD4D;
    border: 1.5px solid #92CD4D;
    color: #fff;
    box-shadow: 0 4px 12px rgba(146, 205, 77, 0.35);
}

    @media (hover: hover) and (pointer: fine) {
        .cookie-accept:hover[b-j3m2jo7vzf] {
            background: #82bd3d;
            border: 1.5px solid #82bd3d;
            box-shadow: 0 6px 16px rgba(146, 205, 77, 0.45);
        }
    }

.cookie-customize[b-j3m2jo7vzf] {
    background: transparent;
    color: #4D7CFE;
    border: 1.5px solid #4D7CFE;
}

    @media (hover: hover) and (pointer: fine) {
        .cookie-customize:hover[b-j3m2jo7vzf] {
            background: #4D7CFE;
            color: #fff;
            box-shadow: 0 4px 12px rgba(77, 124, 254, 0.3);
        }
    }

.cookie-link[b-j3m2jo7vzf] {
    background: transparent;
    color: #6b7c9e;
    padding: 11px 14px;
}

    @media (hover: hover) and (pointer: fine) {
        .cookie-link:hover[b-j3m2jo7vzf] {
            color: #001e57;
        }
    }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 900px) {
    .cookie-inner[b-j3m2jo7vzf] {
        flex-wrap: wrap;
        padding: 16px 18px;
        gap: 14px;
    }

    .cookie-actions[b-j3m2jo7vzf] {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .cookie-banner[b-j3m2jo7vzf] {
        padding: 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-inner[b-j3m2jo7vzf] {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 18px;
        border-radius: 16px;
    }

    .cookie-icon[b-j3m2jo7vzf] {
        align-self: center;
    }

    .cookie-message[b-j3m2jo7vzf] {
        align-items: center;
    }

    .cookie-actions[b-j3m2jo7vzf] {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .cookie-btn[b-j3m2jo7vzf] {
        width: 100%;
        padding: 13px 16px;
        font-size: 0.9rem;
    }

    .cookie-link[b-j3m2jo7vzf] {
        padding: 10px 16px;
    }
}

@media (max-width: 380px) {
    .cookie-title[b-j3m2jo7vzf] {
        font-size: 0.9rem;
    }

    .cookie-text[b-j3m2jo7vzf] {
        font-size: 0.78rem;
    }
}
/* /Components/Landing/CookieSettingsModal.razor.rz.scp.css */
/* =====================================================
   Cookie Settings Modal
   ===================================================== */
.cs-backdrop[b-a304vy1xxr] {
    position: fixed;
    inset: 0;
    background: rgba(0, 30, 87, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: cs-fade-b-a304vy1xxr 0.2s ease;
}

.cs-modal[b-a304vy1xxr] {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 30, 87, 0.35);
    font-family: 'Montserrat', sans-serif;
    animation: cs-pop-b-a304vy1xxr 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cs-fade-b-a304vy1xxr {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes cs-pop-b-a304vy1xxr {
    from {
        transform: translateY(20px) scale(0.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Header */
.cs-header[b-a304vy1xxr] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px 18px;
    border-bottom: 1px solid #eef2ff;
}

.cs-header-text[b-a304vy1xxr] {
    flex: 1 1 auto;
    min-width: 0;
}

.cs-title[b-a304vy1xxr] {
    font-size: 1.25rem;
    font-weight: 800;
    color: #001e57;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}

.cs-subtitle[b-a304vy1xxr] {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7c9e;
    line-height: 1.5;
}

.cs-close[b-a304vy1xxr] {
    background: #f4f6fc;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #6b7c9e;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .cs-close:hover[b-a304vy1xxr] {
            background: #e8ecf8;
            color: #001e57;
            transform: rotate(90deg);
        }
    }

    .cs-close svg[b-a304vy1xxr] {
        width: 18px;
        height: 18px;
    }

/* Body */
.cs-body[b-a304vy1xxr] {
    padding: 18px 26px 4px;
    overflow-y: auto;
}

.cs-intro[b-a304vy1xxr] {
    font-size: 0.82rem;
    color: #4a5570;
    margin: 0 0 18px;
    line-height: 1.6;
    background: #f7f9ff;
    border: 1px solid #eef2ff;
    border-radius: 12px;
    padding: 12px 14px;
}

.cs-row[b-a304vy1xxr] {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 0;
    border-top: 1px solid #eef2ff;
}

    .cs-row:first-of-type[b-a304vy1xxr] {
        border-top: none;
    }

.cs-row-text[b-a304vy1xxr] {
    flex: 1 1 auto;
    min-width: 0;
}

    .cs-row-text h3[b-a304vy1xxr] {
        margin: 0 0 6px;
        font-size: 0.95rem;
        font-weight: 700;
        color: #001e57;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

.cs-dot[b-a304vy1xxr] {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #92CD4D;
    box-shadow: 0 0 0 3px rgba(146, 205, 77, 0.18);
}

.cs-dot--locked[b-a304vy1xxr] {
    background: #4D7CFE;
    box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.18);
}

.cs-row-text p[b-a304vy1xxr] {
    margin: 0;
    font-size: 0.78rem;
    color: #5a6680;
    line-height: 1.6;
}

/* Toggle */
.cs-toggle[b-a304vy1xxr] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7c9e;
}

    .cs-toggle input[b-a304vy1xxr] {
        display: none;
    }

.cs-slider[b-a304vy1xxr] {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5ec;
    border-radius: 24px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

    .cs-slider[b-a304vy1xxr]::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        background: #fff;
        border-radius: 50%;
        transition: transform 0.2s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

.cs-toggle input:checked + .cs-slider[b-a304vy1xxr] {
    background: #92CD4D;
}

    .cs-toggle input:checked + .cs-slider[b-a304vy1xxr]::after {
        transform: translateX(20px);
    }

.cs-toggle--locked[b-a304vy1xxr] {
    cursor: not-allowed;
}

    .cs-toggle--locked .cs-slider[b-a304vy1xxr] {
        background: #4D7CFE;
        opacity: 0.55;
    }

        .cs-toggle--locked .cs-slider[b-a304vy1xxr]::after {
            transform: translateX(20px);
        }

/* Footer */
.cs-footer[b-a304vy1xxr] {
    display: flex;
    gap: 10px;
    padding: 18px 26px;
    border-top: 1px solid #eef2ff;
    background: #f7f9ff;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cs-btn[b-a304vy1xxr] {
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .cs-btn:active[b-a304vy1xxr] {
        transform: translateY(1px);
    }

.cs-btn-ghost[b-a304vy1xxr] {
    background: #fff;
    color: #4D7CFE;
    border: 1.5px solid #cfd8ee;
}

    @media (hover: hover) and (pointer: fine) {
        .cs-btn-ghost:hover[b-a304vy1xxr] {
            border-color: #4D7CFE;
            background: #f0f4ff;
        }
    }

.cs-btn-accent[b-a304vy1xxr] {
    background: #92CD4D;
    color: #fff;
    box-shadow: 0 4px 12px rgba(146, 205, 77, 0.35);
}

    @media (hover: hover) and (pointer: fine) {
        .cs-btn-accent:hover[b-a304vy1xxr] {
            background: #82bd3d;
            box-shadow: 0 6px 16px rgba(146, 205, 77, 0.45);
        }
    }

/* Responsive */
@media (max-width: 560px) {
    .cs-backdrop[b-a304vy1xxr] {
        padding: 0;
        align-items: flex-end;
    }

    .cs-modal[b-a304vy1xxr] {
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        animation: cs-slide-up-b-a304vy1xxr 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes cs-slide-up-b-a304vy1xxr {
        from {
            transform: translateY(100%);
            opacity: 0.5;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .cs-header[b-a304vy1xxr],
    .cs-body[b-a304vy1xxr],
    .cs-footer[b-a304vy1xxr] {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cs-row[b-a304vy1xxr] {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    /* Toggle: right-aligned, label LEFT of slider */
    .cs-toggle[b-a304vy1xxr] {
        align-self: flex-end; /* push the whole toggle to the right */
        flex-direction: row-reverse; /* slider on right, label on left */
        justify-content: flex-start;
    }

    .cs-footer[b-a304vy1xxr] {
        flex-direction: column-reverse;
    }

        .cs-footer .cs-btn[b-a304vy1xxr] {
            width: 100%;
        }
}
/* /Components/Landing/Footer.razor.rz.scp.css */
/* =====================================================
   Footer Section
   ===================================================== */
.footer-section[b-zld9n06cef] {
    padding: var(--spacing-xl) 8rem;
    background: var(--bg-light);
}

.footer-container[b-zld9n06cef] {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content[b-zld9n06cef] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-xl);
}

.footer-column[b-zld9n06cef] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m);
    opacity: 1 !important;
    text-align: left;
}

.footer-column-logo[b-zld9n06cef] {
    justify-content: space-between;
    align-items: flex-start;
}

.footer-column-title[b-zld9n06cef] {
    font-size: var(--text-s);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.footer-logo[b-zld9n06cef] {
    height: var(--icon-l);
    width: auto;
}

.footer-links[b-zld9n06cef] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-s);
    align-items: flex-start;
}

    .footer-links a[b-zld9n06cef] {
        color: var(--text-light);
        text-decoration: none;
        font-size: var(--text-xs);
        transition: color var(--transition-fast);
    }

        @media (hover: hover) and (pointer: fine) {
            .footer-links a:hover[b-zld9n06cef] {
                color: var(--text-dark);
            }
        }

.footer-email[b-zld9n06cef] {
    color: var(--text-light);
    font-size: var(--text-xs);
    transition: color var(--transition-fast);
}

    @media (hover: hover) and (pointer: fine) {
        .footer-email:hover[b-zld9n06cef] {
            color: var(--text-dark);
        }
    }

.footer-social[b-zld9n06cef] {
    display: flex;
    gap: var(--spacing-m);
}

.footer-social-link[b-zld9n06cef] {
    padding: var(--spacing-s);
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

    @media (hover: hover) and (pointer: fine) {
        .footer-social-link:hover[b-zld9n06cef] {
            background: var(--bg-white);
            border-color: var(--border-color);
            transform: scale(1.15);
        }
    }

    .footer-social-link img[b-zld9n06cef] {
        width: var(--icon-s);
        height: var(--icon-s);
    }

.footer-copyright[b-zld9n06cef] {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* Footer responsive - stack on mobile */
@media (max-width: 768px) {
    .footer-content[b-zld9n06cef] {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .footer-column[b-zld9n06cef],
    .footer-column-logo[b-zld9n06cef] {
        align-items: center;
        text-align: center;
    }

    .footer-links[b-zld9n06cef] {
        align-items: center;
    }

    .footer-social[b-zld9n06cef] {
        justify-content: center;
    }
}

/* =====================================================
   Collapsible footer (app pages) — phones get one short
   row; the documents and contacts open underneath it.
   Stays in normal flow, so it never competes with the
   fixed bottom overlays (update banner, mistake nav).
   ===================================================== */
.footer-bar[b-zld9n06cef] {
    display: none;
}

@media (max-width: 768px) {
    .footer-collapsible[b-zld9n06cef] {
        padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px));
    }

    .footer-collapsible .footer-bar[b-zld9n06cef] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .footer-bar-copy[b-zld9n06cef] {
        font-size: 13px;
        color: var(--text-light);
        white-space: nowrap;
    }

    .footer-toggle[b-zld9n06cef] {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-height: 44px;
        padding: 0 4px 0 12px;
        margin-right: -4px;
        background: none;
        border: none;
        border-radius: 10px;
        color: var(--text-light);
        font-family: inherit;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        transition: color var(--transition-fast);
    }

        .footer-toggle svg[b-zld9n06cef] {
            width: 20px;
            height: 20px;
            fill: currentColor;
            flex-shrink: 0;
            transition: transform var(--transition-fast);
        }

        .footer-toggle:active[b-zld9n06cef] {
            color: var(--text-dark);
        }

        .footer-toggle:focus-visible[b-zld9n06cef] {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }

    .is-expanded .footer-toggle[b-zld9n06cef] {
        color: var(--text-dark);
    }

        .is-expanded .footer-toggle svg[b-zld9n06cef] {
            transform: rotate(180deg);
        }

    /* Collapsed: only the bar. Expanded: the columns, minus the logo column,
       whose copyright the bar already shows. */
    .footer-collapsible .footer-content[b-zld9n06cef] {
        display: none;
    }

    .footer-collapsible.is-expanded .footer-content[b-zld9n06cef] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 16px;
        padding: 8px 0 12px;
        border-top: 1px solid var(--border-color);
        text-align: left;
        animation: footer-open-b-zld9n06cef var(--transition-fast);
    }

    .footer-collapsible .footer-column-logo[b-zld9n06cef] {
        display: none;
    }

    .footer-collapsible .footer-column[b-zld9n06cef],
    .footer-collapsible .footer-links[b-zld9n06cef] {
        align-items: flex-start;
        text-align: left;
        gap: 0;
        min-width: 0;
    }

    .footer-collapsible .footer-column-title[b-zld9n06cef] {
        font-size: 14px;
        padding: 8px 0 2px;
    }

    /* Finger-sized rows for every link */
    .footer-collapsible .footer-links a[b-zld9n06cef],
    .footer-collapsible .footer-email[b-zld9n06cef] {
        display: flex;
        align-items: center;
        min-height: 40px;
        font-size: 13px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .footer-collapsible .footer-social[b-zld9n06cef] {
        justify-content: flex-start;
        gap: 4px;
        margin-left: -10px;
    }
}

/* Very narrow phones: stack the two columns */
@media (max-width: 400px) {
    .footer-collapsible.is-expanded .footer-content[b-zld9n06cef] {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@keyframes footer-open-b-zld9n06cef {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-collapsible.is-expanded .footer-content[b-zld9n06cef] {
        animation: none;
    }
}
/* /Components/Landing/Nav.razor.rz.scp.css */
/* =====================================================
   Navigation
   ===================================================== */
.nav-header[b-r2utnl2vi1] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    height: calc(70px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background-color: rgba(255, 255, 255, 0.05);
}

    .nav-header[b-r2utnl2vi1]::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: env(safe-area-inset-top, 0px);
        background-color: #ffffff;
        z-index: -1;
    }

.nav-blur[b-r2utnl2vi1] {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

    .nav-blur .blur-filter[b-r2utnl2vi1] {
        position: absolute;
        inset: 0;
    }

        /* -webkit- prefixes: Safari < 18 ignores the unprefixed backdrop-filter */
        .nav-blur .blur-filter:nth-child(1)[b-r2utnl2vi1] {
            -webkit-backdrop-filter: blur(32px);
            backdrop-filter: blur(32px);
            mask: linear-gradient(to bottom, black 0%, transparent 100%);
            -webkit-mask: linear-gradient(to bottom, black 0%, transparent 100%);
        }

        .nav-blur .blur-filter:nth-child(2)[b-r2utnl2vi1] {
            -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
            mask: linear-gradient(to bottom, black 0%, black 30%, transparent 100%);
            -webkit-mask: linear-gradient(to bottom, black 0%, black 30%, transparent 100%);
        }

        .nav-blur .blur-filter:nth-child(3)[b-r2utnl2vi1] {
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
            mask: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
            -webkit-mask: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
        }

        .nav-blur .blur-filter:nth-child(4)[b-r2utnl2vi1] {
            -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
            mask: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
            -webkit-mask: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
        }

/* Touch devices: every stacked backdrop-filter is re-rendered on each scroll
   frame. The two strongest layers carry the look; dropping the faint ones keeps
   scrolling smooth on mid/low-end phones. */
@media (hover: none) {
    .nav-blur .blur-filter:nth-child(3)[b-r2utnl2vi1],
    .nav-blur .blur-filter:nth-child(4)[b-r2utnl2vi1] {
        display: none;
    }
}

.nav-container[b-r2utnl2vi1] {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-l);
}

.nav-left[b-r2utnl2vi1],
.nav-right[b-r2utnl2vi1] {
    width: 164px;
    height: 40px;
    display: flex;
    align-items: center;
}

.nav-left[b-r2utnl2vi1] {
    justify-content: flex-start;
}

.nav-right[b-r2utnl2vi1] {
    justify-content: flex-end;
}

.nav-logo[b-r2utnl2vi1] {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
}

    /* Same lift as the app header logo (LeftSideNavLayout / MainLayout) */
    .nav-logo img[b-r2utnl2vi1] {
        display: block;
        height: var(--icon-m);
        width: auto;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

.nav-help[b-r2utnl2vi1] {
    flex-shrink: 0;
    width: 164px;
    height: 40px;
    background-color: #fff;
    color: #4D7CFE;
    border: 2px solid #4D7CFE;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    letter-spacing: 0.3px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

    .nav-help:active[b-r2utnl2vi1] {
        transform: scale(0.96);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition-duration: 0.1s;
    }

/* Hover effects only for devices that truly support hover (mouse/trackpad).
   Touch devices skip these so a single tap activates links immediately
   instead of requiring a first tap to trigger :hover and a second to click. */
@media (hover: hover) and (pointer: fine) {
    .nav-logo:hover img[b-r2utnl2vi1] {
        transform: translateY(-3px) scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    }

    .nav-help:hover[b-r2utnl2vi1] {
        background-color: #4D7CFE;
        color: #fff !important;
        border-color: #4D7CFE;
        box-shadow: 0 6px 20px rgba(77, 124, 254, 0.25);
        transform: translateY(-2px);
    }

    .nav-menu-btn:hover[b-r2utnl2vi1] {
        opacity: 0.7;
    }

    .menu-link:hover[b-r2utnl2vi1] {
        color: #4D7CFE;
    }

    .menu-email:hover[b-r2utnl2vi1] {
        color: var(--text-dark);
    }
}

/* After the hover block so a mouse press shows too */
.nav-logo:active img[b-r2utnl2vi1] {
    transform: translateY(-1px) scale(1.02);
    transition-duration: 0s;
}

.help-button-icon[b-r2utnl2vi1] {
    display: none;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.nav-menu-btn[b-r2utnl2vi1] {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: unset;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform 0.15s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

    .nav-menu-btn:active[b-r2utnl2vi1] {
        transform: scale(0.92);
    }

/* Flag hamburger menu */
.flag-hamburger[b-r2utnl2vi1] {
    --hamburger-h: 20px;
    width: 30px;
    height: var(--hamburger-h);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.flag-bar[b-r2utnl2vi1] {
    width: 100%;
    height: calc(var(--hamburger-h) * 0.2);
    border-radius: calc(var(--hamburger-h) * 0.1);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), opacity 0.2s ease;
    transform-origin: center;
}

.flag-bar-black[b-r2utnl2vi1] {
    background: #000000;
}

.flag-bar-red[b-r2utnl2vi1] {
    background: #e43e2d;
}

.flag-bar-yellow[b-r2utnl2vi1] {
    background: #fdbf0e;
}

/* Open state - form X */
.nav-menu-btn.open .flag-bar-black[b-r2utnl2vi1] {
    transform: translateY(calc(var(--hamburger-h) * 0.4)) rotate(45deg);
}

.nav-menu-btn.open .flag-bar-red[b-r2utnl2vi1] {
    opacity: 0;
    transform: scaleX(0);
}

.nav-menu-btn.open .flag-bar-yellow[b-r2utnl2vi1] {
    transform: translateY(calc(var(--hamburger-h) * -0.4)) rotate(-45deg);
}

/* =====================================================
   Menu Overlay
   ===================================================== */
/* Children animate their own opacity via GSAP. The overlay only toggles
   visibility, delayed on close so the exit animation can play (keep the delay
   in sync with LandingAnimations.closeMenu, ~0.28s). */
.menu-overlay[b-r2utnl2vi1] {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 0.3s;
}

    .menu-overlay.open[b-r2utnl2vi1] {
        pointer-events: auto;
        visibility: visible;
        transition-delay: 0s;
    }

.menu-blur[b-r2utnl2vi1] {
    position: absolute;
    inset: 0;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.8);
}

.menu-content[b-r2utnl2vi1] {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xxl);
    padding: 70px var(--spacing-l) var(--spacing-xl);
}

.menu-links[b-r2utnl2vi1] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-l);
    flex: 1;
    justify-content: center;
}

.menu-link[b-r2utnl2vi1] {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

    /* SplitText line wrappers for menu links */
    .menu-link .line-wrapper[b-r2utnl2vi1] {
        overflow: hidden;
        display: block;
    }

    .menu-link .line[b-r2utnl2vi1] {
        display: block;
    }

/* Stands apart from the plain text .menu-link entries above it — a filled
   brand pill, matching the site's other primary actions (e.g. .nav-help). */
.menu-download[b-r2utnl2vi1] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 30px;
    background-color: var(--primary-color, #4d7cfe);
    color: #fff;
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(77, 124, 254, 0.35);
    /* Not `all`: GSAP animates this element's opacity/transform in and out */
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-download-icon[b-r2utnl2vi1] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
    .menu-download:hover[b-r2utnl2vi1] {
        background-color: #3a67e6;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(77, 124, 254, 0.45);
    }
}

/* Current page: brand colour (both layouts) */
.menu-link.is-current[b-r2utnl2vi1] {
    color: var(--primary-color, #4d7cfe);
}

/* Email + socials. On phones the wrapper is invisible to layout (the full-screen
   menu spaces them like its other items); on laptops it is the panel's footer. */
.menu-footer[b-r2utnl2vi1] {
    display: contents;
}

.menu-email[b-r2utnl2vi1] {
    font-size: var(--text-s);
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.menu-socials[b-r2utnl2vi1] {
    display: flex;
    gap: var(--spacing-l);
}

    /* --social-brand is set per link in Nav.razor */
    .menu-socials a[b-r2utnl2vi1] {
        width: var(--icon-m);
        height: var(--icon-m);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #2b3140;
        border: 1px solid transparent;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

        @media (hover: hover) and (pointer: fine) {
            .menu-socials a:hover[b-r2utnl2vi1] {
                color: var(--social-brand);
                background: color-mix(in srgb, var(--social-brand) 12%, #fff);
                box-shadow: 0 4px 12px color-mix(in srgb, var(--social-brand) 22%, transparent);
                transform: translateY(-2px);
            }
        }

        /* Touch feedback: the same colouring, pressed in, drawn instantly */
        .menu-socials a:active[b-r2utnl2vi1] {
            color: var(--social-brand);
            background: color-mix(in srgb, var(--social-brand) 16%, #fff);
            box-shadow: none;
            transform: scale(0.92);
            transition-duration: 0s;
        }

        .menu-socials a:focus-visible[b-r2utnl2vi1] {
            outline: 2px solid #4d7cfe;
            outline-offset: 2px;
        }

/* A monochrome icon in the link's text colour (the SVG is only the shape) */
.menu-social-icon[b-r2utnl2vi1] {
    width: var(--icon-s);
    height: var(--icon-s);
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

/* =====================================================
   Responsive Styles - Match LeftSideNavLayout
   ===================================================== */

/* Gradual header shrink: 900px */
@media (max-width: 900px) {
    .nav-left[b-r2utnl2vi1],
    .nav-right[b-r2utnl2vi1] {
        width: 156px;
        height: 38px;
    }

    .nav-help[b-r2utnl2vi1] {
        height: 38px;
        width: 156px;
        font-size: 13px;
        border-radius: 19px;
    }
}

/* Mobile - show icon only.
   Touch targets are held at a 44x44 floor (Apple/Google minimum
   recommended hit-area) all the way down to the smallest phones,
   instead of shrinking past a comfortably tappable size. */
@media (max-width: 700px) {
    .nav-container[b-r2utnl2vi1] {
        padding: 0 var(--spacing-m, 16px);
    }

    .nav-left[b-r2utnl2vi1],
    .nav-right[b-r2utnl2vi1] {
        width: 44px;
        height: 44px;
    }

    .nav-help[b-r2utnl2vi1] {
        width: 44px;
        height: 44px;
        border-radius: 22px;
    }

    .help-button-text[b-r2utnl2vi1] {
        display: none;
    }

    .help-button-icon[b-r2utnl2vi1] {
        display: inline;
        font-size: 24px;
    }

    .flag-hamburger[b-r2utnl2vi1] {
        --hamburger-h: 22px;
        width: 32px;
        height: var(--hamburger-h);
    }

    .menu-content[b-r2utnl2vi1] {
        padding: 88px var(--spacing-l) var(--spacing-xl);
        gap: var(--spacing-xl);
    }

    .menu-links[b-r2utnl2vi1] {
        gap: var(--spacing-xl);
    }

    .menu-link[b-r2utnl2vi1] {
        padding: 6px 0;
    }

    .menu-socials[b-r2utnl2vi1] {
        gap: var(--spacing-xl);
    }

        .menu-socials a[b-r2utnl2vi1] {
            width: 48px;
            height: 48px;
        }
}

/* Gradual header shrink: 600px */
@media (max-width: 600px) {
    .help-button-icon[b-r2utnl2vi1] {
        font-size: 23px;
    }
}

/* Gradual header shrink: 500px */
@media (max-width: 500px) {
    .nav-container[b-r2utnl2vi1] {
        padding: 0 var(--spacing-s, 12px);
    }

    .help-button-icon[b-r2utnl2vi1] {
        font-size: 22px;
    }
}

/* Small mobile devices */
@media (max-width: 450px) {
    .help-button-icon[b-r2utnl2vi1] {
        font-size: 21px;
    }
}

/* Extra small */
@media (max-width: 380px) {
    .help-button-icon[b-r2utnl2vi1] {
        font-size: 20px;
    }
}

/* =====================================================
   Laptop and desktop (> 700px): a dropdown panel, not a full screen
   =====================================================
   The full-screen menu suits phones; on a laptop it filled the whole screen
   with 35px words. Here the menu is a card under the ☰ button, in the same
   tokens as the account pages (white, 20px radius, soft shadow). The backdrop
   only dims the page and closes the menu when clicked. GSAP still animates the
   individual items (LandingAnimations.openMenu); the card itself fades in here. */
@media (min-width: 701px) {
    .menu-blur[b-r2utnl2vi1] {
        background: rgba(15, 23, 42, 0.18);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }

    .menu-content[b-r2utnl2vi1] {
        position: absolute;
        top: calc(70px + env(safe-area-inset-top, 0px) + 4px);
        right: max(var(--spacing-l), calc((100vw - 1400px) / 2 + var(--spacing-l)));
        width: 340px;
        height: auto;
        max-height: calc(100vh - 70px - env(safe-area-inset-top, 0px) - 24px);
        /* Clip, not scroll: the open animation starts each item 24px low, and
           "auto" flashed a scrollbar (Windows) while they slid into place. */
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px;
        background: #fff;
        border: 1px solid #eceef3;
        border-radius: 20px;
        box-shadow: 0 12px 40px rgba(20, 30, 60, 0.16), 0 2px 6px rgba(20, 30, 60, 0.06);
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top right;
        transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .menu-overlay.open .menu-content[b-r2utnl2vi1] {
        opacity: 1;
        transform: none;
    }

    .menu-links[b-r2utnl2vi1] {
        flex: none;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
    }

    .menu-link[b-r2utnl2vi1] {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 14px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
        transition: color var(--transition-fast), background-color var(--transition-fast);
    }

        .menu-link:active[b-r2utnl2vi1] {
            background: #eef2ff;
            transition-duration: 0s;
        }

        .menu-link.is-current[b-r2utnl2vi1] {
            background: #f3f6ff;
        }

        .menu-link:focus-visible[b-r2utnl2vi1] {
            outline: 2px solid #4d7cfe;
            outline-offset: -2px;
        }

    /* Same pill as the other buttons (NavigationButtons / account pages), filled
       because it is this menu's one call to action */
    .menu-download[b-r2utnl2vi1] {
        justify-content: center;
        height: 44px;
        padding: 0 20px;
        font-size: 14.5px;
        box-shadow: 0 4px 14px rgba(77, 124, 254, 0.28);
    }

        .menu-download:active[b-r2utnl2vi1] {
            background-color: #2f5ad6;
            transform: scale(0.97);
            transition-duration: 0s;
        }

    .menu-footer[b-r2utnl2vi1] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: 0 -12px -12px;
        padding: 10px 12px 10px 16px;
        background: #fbfbfd;
        border-top: 1px solid #eceef3;
        border-radius: 0 0 20px 20px;
    }

    .menu-email[b-r2utnl2vi1] {
        font-size: 13px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-socials[b-r2utnl2vi1] {
        gap: 2px;
        flex-shrink: 0;
    }

        .menu-socials a[b-r2utnl2vi1] {
            width: 34px;
            height: 34px;
        }

        .menu-social-icon[b-r2utnl2vi1] {
            width: 17px;
            height: 17px;
        }
}

@media (min-width: 701px) and (hover: hover) and (pointer: fine) {
    .menu-link:hover[b-r2utnl2vi1] {
        background: #f3f6ff;
    }

}

@media (min-width: 701px) and (prefers-reduced-motion: reduce) {
    .menu-content[b-r2utnl2vi1] {
        transform: none;
        transition: opacity 0.15s ease;
    }
}

/* Only a window too short for the ~330px panel needs it to scroll */
@media (min-width: 701px) and (max-height: 460px) {
    .menu-content[b-r2utnl2vi1] {
        overflow-y: auto;
    }
}
/* /Components/Lessons/ScoreBar.razor.rz.scp.css */
/* Filling bar for a module score. Its three colours come inline from ProgressColors.Score (see
   ScoreBar.razor); the values here are only the fallback. */
.score-bar[b-mm4uitkgxx] {
    --score-fill: #4d7cfe;
    --score-fill-end: #7c9dff;
    --score-ink: #3a6aee;
    flex: 0 1 auto;
    width: 100%;
    max-width: 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
}

    .score-bar.is-empty[b-mm4uitkgxx] {
        --score-ink: #8a8f98;
    }

.score-bar-head[b-mm4uitkgxx] {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-width: 0;
}

.score-bar-value[b-mm4uitkgxx] {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--score-ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.score-bar-verdict[b-mm4uitkgxx] {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #4a4f57;
    min-width: 0;
    overflow-wrap: anywhere;
}

.score-bar.is-empty .score-bar-verdict[b-mm4uitkgxx] {
    color: #8a8f98;
    font-weight: 400;
}

.score-bar-track[b-mm4uitkgxx] {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: #eef0f4;
    overflow: hidden;
}

.score-bar-fill[b-mm4uitkgxx] {
    height: 100%;
    width: var(--score);
    min-width: 10px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--score-fill), var(--score-fill-end));
    animation: score-bar-grow-b-mm4uitkgxx 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes score-bar-grow-b-mm4uitkgxx {
    from {
        width: 0;
    }
}

.score-bar-caption[b-mm4uitkgxx] {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #8a8f98;
}

@media (prefers-reduced-motion: reduce) {
    .score-bar-fill[b-mm4uitkgxx] {
        animation: none;
    }
}

@media (max-width: 480px) {
    .score-bar[b-mm4uitkgxx] {
        max-width: none;
    }

    .score-bar-value[b-mm4uitkgxx] {
        font-size: 18px;
    }
}
/* /Components/Lessons/VideoPlayer.razor.rz.scp.css */
/* The video box: 16:9 of the width it is given, the player filling it. The host decides the width and the
   rounding (every level inherits the host's border-radius, so the player's corners are the host's corners:
   a player rounded more than its host left the host's fill showing in the corners); this file draws nothing
   outside the box and nothing behind the player. */
.video-player-container[b-8a10mb8dtc] {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.video-wrapper[b-8a10mb8dtc] {
    position: relative;
    padding-top: 56.25%;
    height: 100%;
    box-sizing: border-box;
    border-radius: inherit;
}

/* A native video letterboxes on its own black inside the element */
.native-video[b-8a10mb8dtc] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: #000;
}

.youtube-video[b-8a10mb8dtc] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    border: none;
    background-color: transparent;
}
/* /Components/Shared/AgeConsentModal.razor.rz.scp.css */
.consent-modal-backdrop[b-qbz83etn3z] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    animation: backdropFadeIn-b-qbz83etn3z 0.2s ease-out;
    /* Prevent scroll-through on iOS */
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: none;
}

@keyframes backdropFadeIn-b-qbz83etn3z {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.consent-modal[b-qbz83etn3z] {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 540px;
    /* Allow internal scrolling on small screens */
    max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn-b-qbz83etn3z 0.25s ease-out;
    /* Prevent tap highlight on iOS */
    -webkit-tap-highlight-color: transparent;
}

@keyframes modalSlideIn-b-qbz83etn3z {
    from {
        transform: translateY(24px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.consent-modal-header[b-qbz83etn3z] {
    background: linear-gradient(135deg, #e0ecff 0%, #d4e1ff 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #c5d9f5;
    flex-shrink: 0;
}

    .consent-modal-header h3[b-qbz83etn3z] {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 700;
        color: #4D7CFE;
        font-family: 'Montserrat', sans-serif;
    }

.consent-modal-body[b-qbz83etn3z] {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Scroll inside body if content overflows */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1;
}

.consent-modal-description[b-qbz83etn3z] {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.consent-options[b-qbz83etn3z] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.consent-option[b-qbz83etn3z] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    /* Minimum touch target height for iOS (44px recommended by Apple HIG) */
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-size: 0.875rem;
    color: #444;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
    /* Prevent text selection on tap */
    -webkit-user-select: none;
    user-select: none;
}

    .consent-option input[type="radio"][b-qbz83etn3z] {
        margin-top: 3px;
        accent-color: #4D7CFE;
        flex-shrink: 0;
        /* Larger touch area on iOS */
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    @media (hover: hover) and (pointer: fine) {
        .consent-option:hover[b-qbz83etn3z] {
            border-color: #4D7CFE;
            background: #f5f8ff;
        }
    }

    /* Active state for touch devices */
    .consent-option:active[b-qbz83etn3z] {
        background: #eef3ff;
        border-color: #4D7CFE;
    }

.consent-selected[b-qbz83etn3z] {
    border-color: #4D7CFE !important;
    background: #eef3ff !important;
    color: #2c3e50;
    font-weight: 500;
}

.consent-modal-notice[b-qbz83etn3z] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    font-size: 0.82rem;
    color: #7a5c00;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
}

.consent-modal-error[b-qbz83etn3z] {
    margin: 0;
    font-size: 0.85rem;
    color: #dc3545;
    font-family: 'Montserrat', sans-serif;
}

.consent-modal-footer[b-qbz83etn3z] {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    flex-shrink: 0;
}

.consent-btn-cancel[b-qbz83etn3z] {
    padding: 0.65rem 1.25rem;
    /* Minimum 44px touch target */
    min-height: 44px;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Prevent iOS button styling override */
    -webkit-appearance: none;
    appearance: none;
}

    @media (hover: hover) and (pointer: fine) {
        .consent-btn-cancel:hover[b-qbz83etn3z] {
            border-color: #adb5bd;
            color: #495057;
        }
    }

    .consent-btn-cancel:active[b-qbz83etn3z] {
        border-color: #6c757d;
        color: #343a40;
    }

    .consent-btn-cancel:disabled[b-qbz83etn3z] {
        opacity: 0.5;
        cursor: not-allowed;
    }

.consent-btn-confirm[b-qbz83etn3z] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    min-height: 44px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #4D7CFE, #3d6cee);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 14px rgba(77, 124, 254, 0.35);
    transition: background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

    @media (hover: hover) and (pointer: fine) {
        .consent-btn-confirm:hover:not(:disabled)[b-qbz83etn3z] {
            background: linear-gradient(135deg, #3d6cee, #2d5cde);
            transform: translateY(-1px);
        }
    }

    .consent-btn-confirm:active:not(:disabled)[b-qbz83etn3z] {
        background: linear-gradient(135deg, #2d5cde, #1d4cce);
        transform: translateY(0);
    }

    .consent-btn-confirm:disabled[b-qbz83etn3z] {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.consent-saving-spinner[b-qbz83etn3z] {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin-b-qbz83etn3z 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes spin-b-qbz83etn3z {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 580px) {
    .consent-modal-backdrop[b-qbz83etn3z] {
        /* On small phones align to bottom for easier thumb reach */
        align-items: flex-end;
        padding: 0;
    }

    .consent-modal[b-qbz83etn3z] {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        max-height: calc(92dvh - env(safe-area-inset-top));
        /* Bottom safe area for home indicator */
        padding-bottom: env(safe-area-inset-bottom);
    }

    .consent-modal-header[b-qbz83etn3z],
    .consent-modal-body[b-qbz83etn3z],
    .consent-modal-footer[b-qbz83etn3z] {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .consent-modal-footer[b-qbz83etn3z] {
        flex-direction: column-reverse;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }

    .consent-btn-cancel[b-qbz83etn3z],
    .consent-btn-confirm[b-qbz83etn3z] {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 375px) {
    .consent-modal-header h3[b-qbz83etn3z] {
        font-size: 1.1rem;
    }

    .consent-modal-description[b-qbz83etn3z] {
        font-size: 0.875rem;
    }

    .consent-option[b-qbz83etn3z] {
        font-size: 0.82rem;
    }
}
/* /Components/Shared/FreeTrialPrompt.razor.rz.scp.css */
/* =========================================================
   FreeTrialPrompt — brand-aligned, fluid across all devices
   ========================================================= */
.free-trial-prompt[b-849r1pnxo0] {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto clamp(1rem, 1.2vw + 0.6rem, 2rem);
    padding: clamp(1.1rem, 1.2vw + 0.7rem, 2rem);
    padding-top: calc(clamp(1.1rem, 1.2vw + 0.7rem, 2rem) + env(safe-area-inset-top, 0px));
    background: #4D7CFE;
    color: #fff;
    border-radius: clamp(14px, 0.6vw + 10px, 22px);
    box-shadow: 0 12px 32px rgba(77, 124, 254, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    isolation: isolate;
    box-sizing: border-box;
}

    /* Subtle inner top highlight — no gradient, just a thin inset line */
    .free-trial-prompt[b-849r1pnxo0]::before {
        content: "";
        position: absolute;
        inset: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: inherit;
        pointer-events: none;
        z-index: 0;
    }

    .free-trial-prompt.expired[b-849r1pnxo0] {
        background: #2e6da4;
        box-shadow: 0 12px 32px rgba(30, 60, 100, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
    }

/* ===== Body ===== */
.ftp-body[b-849r1pnxo0] {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.ftp-eyebrow[b-849r1pnxo0] {
    display: inline-block;
    font-size: clamp(0.7rem, 0.2vw + 0.65rem, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #92CD4D;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: clamp(0.5rem, 0.4vw + 0.35rem, 0.85rem);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.expired .ftp-eyebrow[b-849r1pnxo0] {
    background: #e84545;
}

.ftp-title[b-849r1pnxo0] {
    font-size: clamp(1.1rem, 0.9vw + 0.85rem, 1.7rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 clamp(0.35rem, 0.3vw + 0.25rem, 0.6rem);
    color: #fff;
    letter-spacing: -0.01em;
}

.ftp-description[b-849r1pnxo0] {
    font-size: clamp(0.9rem, 0.35vw + 0.78rem, 1.05rem);
    line-height: 1.55;
    margin: 0 0 clamp(0.75rem, 0.6vw + 0.5rem, 1.1rem);
    color: rgba(255, 255, 255, 0.88);
}

/* ===== Perks =====
   Breakpoint strategy (3 tiers, always evenly filled):
     > 700px  → 4 × 1fr  — one row, items share space equally
   481–700px  → 2 × 1fr  — exactly 2+2, no orphan
     ≤ 480px  → 1fr      — all stacked
   ============================================================ */
.ftp-perks[b-849r1pnxo0] {
    list-style: none;
    padding: 0;
    margin: 0 0 clamp(0.9rem, 0.7vw + 0.6rem, 1.3rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.5rem, 0.5vw + 0.3rem, 0.85rem) clamp(0.85rem, 0.7vw + 0.5rem, 1.4rem);
}

    .ftp-perks li[b-849r1pnxo0] {
        display: flex;
        align-items: flex-start;
        gap: 0.45rem;
        font-size: clamp(0.8rem, 0.25vw + 0.72rem, 0.95rem);
        font-weight: 500;
        color: rgba(255, 255, 255, 0.95);
        line-height: 1.4;
        min-width: 0;
        white-space: normal;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        hyphens: auto;
    }

/* ===== Success icon (replaces ftp-check badge) ===== */
.ftp-check[b-849r1pnxo0] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    margin-top: -0.05em;
    filter: brightness(0) invert(1);
}

/* ===== Actions ===== */
.ftp-actions[b-849r1pnxo0] {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 0.4vw + 0.4rem, 0.85rem);
    align-items: center;
}

.ftp-btn[b-849r1pnxo0] {
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid transparent;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 0.3vw + 0.8rem, 1rem);
    line-height: 1;
    padding: clamp(0.7rem, 0.4vw + 0.55rem, 0.95rem) clamp(1rem, 1vw + 0.75rem, 1.6rem);
    min-height: 44px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* ===== Primary CTA — Start Free Trial ===== */
.ftp-btn-primary[b-849r1pnxo0] {
    background: linear-gradient(135deg, #a2d95e 0%, #92CD4D 45%, #7fba3c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(146, 205, 77, 0.45), 0 1px 3px rgba(0, 0, 0, 0.12);
    font-weight: 700;
    letter-spacing: 0.3px;
    animation: ftp-cta-glow-b-849r1pnxo0 2.8s ease-in-out infinite;
    padding-left: clamp(1.25rem, 1.2vw + 0.9rem, 1.9rem);
    padding-right: clamp(1.25rem, 1.2vw + 0.9rem, 1.9rem);
}

    /* Shimmer sweep overlay */
    .ftp-btn-primary[b-849r1pnxo0]::before {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient( 120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 100% );
        transform: skewX(-18deg);
        animation: ftp-shimmer-b-849r1pnxo0 2.8s ease-in-out infinite;
        pointer-events: none;
        z-index: 1;
    }

    @media (hover: hover) and (pointer: fine) {
        .ftp-btn-primary:hover:not(:disabled)[b-849r1pnxo0] {
            background: linear-gradient(135deg, #aee068 0%, #9dd44f 45%, #8ac63f 100%);
            transform: translateY(-3px) scale(1.025);
            box-shadow: 0 10px 28px rgba(146, 205, 77, 0.55), 0 2px 6px rgba(0, 0, 0, 0.14);
            animation: none;
        }
    }

    .ftp-btn-primary:active:not(:disabled)[b-849r1pnxo0] {
        background: linear-gradient(135deg, #8ec845 0%, #7fba3c 100%);
        transform: translateY(0) scale(0.98);
        box-shadow: 0 3px 10px rgba(146, 205, 77, 0.35);
        animation: none;
    }

    .ftp-btn-primary:disabled[b-849r1pnxo0] {
        opacity: 0.7;
        cursor: progress;
        transform: none;
        animation: none;
    }

/* Glow pulse keyframes */
@keyframes ftp-cta-glow-b-849r1pnxo0 {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(146, 205, 77, 0.45), 0 1px 3px rgba(0, 0, 0, 0.12);
    }

    50% {
        box-shadow: 0 6px 26px rgba(146, 205, 77, 0.72), 0 1px 3px rgba(0, 0, 0, 0.12);
    }
}

/* Shimmer sweep keyframes */
@keyframes ftp-shimmer-b-849r1pnxo0 {
    0% {
        left: -75%;
    }

    55% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

/* ===== Secondary button ===== */
.ftp-btn-secondary[b-849r1pnxo0] {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

    @media (hover: hover) and (pointer: fine) {
        .ftp-btn-secondary:hover[b-849r1pnxo0] {
            background: #fff;
            color: #4D7CFE;
            border-color: #fff;
            transform: translateY(-2px);
        }
    }

    .ftp-btn-secondary:active[b-849r1pnxo0] {
        transform: translateY(0);
    }

@media (hover: hover) and (pointer: fine) {
    .expired .ftp-btn-secondary:hover[b-849r1pnxo0] {
        color: #2e6da4;
    }
}

.ftp-btn:focus-visible[b-849r1pnxo0] {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

/* Spinner */
.ftp-spinner[b-849r1pnxo0] {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    animation: ftp-spin-b-849r1pnxo0 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes ftp-spin-b-849r1pnxo0 {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Inline error ===== */
.ftp-error[b-849r1pnxo0] {
    margin-top: clamp(0.6rem, 0.5vw + 0.4rem, 0.9rem);
    padding: 0.6rem 0.85rem;
    background: rgba(232, 69, 69, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    font-size: clamp(0.8rem, 0.25vw + 0.72rem, 0.9rem);
    font-weight: 500;
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* Medium — tablet portrait / narrow desktop: 2 columns = exactly 2+2 */
@media (max-width: 700px) {
    .ftp-perks[b-849r1pnxo0] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .free-trial-prompt[b-849r1pnxo0] {
        border-radius: 16px;
        margin-bottom: 1rem;
    }

    .ftp-actions[b-849r1pnxo0] {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
    }

    .ftp-btn[b-849r1pnxo0] {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* prevent iOS Safari focus auto-zoom */
        min-height: 48px;
        white-space: normal;
    }

    .ftp-btn-primary[b-849r1pnxo0]::before {
        display: none;
    }
}

/* Small phones — single column */
@media (max-width: 480px) {
    .ftp-perks[b-849r1pnxo0] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .free-trial-prompt[b-849r1pnxo0] {
        padding: 1rem;
        padding-top: calc(1rem + env(safe-area-inset-top, 0px));
    }
}

/* Honour reduced-motion system preference */
@media (prefers-reduced-motion: reduce) {
    .ftp-btn-primary[b-849r1pnxo0] {
        animation: none;
    }

        .ftp-btn-primary[b-849r1pnxo0]::before {
            display: none;
        }

        @media (hover: hover) and (pointer: fine) {
            .ftp-btn-primary:hover:not(:disabled)[b-849r1pnxo0] {
                transform: translateY(-2px);
            }
        }
}
/* /Components/Shared/InfoTip.razor.rz.scp.css */
/* The icon: a small ring with an "i", muted until it is hovered, focused or open. The text is a popover (the browser's
   top layer): js/info-tip.js opens it and sets its left, top and width next to the icon, inside the viewport, so this
   file only draws it. The colours are the palette with fallbacks, so the component works outside the admin shell,
   where the --brand / --ink tokens are not defined. */
.tip[b-tvtg1issg8] {
    display: inline-flex;
    flex-shrink: 0;
    vertical-align: middle;
    border-radius: 50%;
    cursor: help;
    -webkit-tap-highlight-color: transparent;
}

    .tip:focus-visible[b-tvtg1issg8] {
        outline: 2px solid var(--brand, #4d7cfe);
        outline-offset: 2px;
    }

/* The ring, 18px with a 1.5px border, so 15px inside. The "i" is drawn, not typed: a 2px dot and a 2px by 6px stem in
   the ring's colour, 9px tall together and 3px from the inside edges top and bottom, so it is centred by geometry.
   A typed "i" sits where the font's ascent and descent put it, which was visibly low and off to one side. */
.tip-icon[b-tvtg1issg8] {
    position: relative;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    display: block;
    color: var(--ink-muted, #8a8f98);
    border: 1.5px solid var(--line-strong, #d3d7df);
    border-radius: 50%;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

    .tip-icon[b-tvtg1issg8]::before,
    .tip-icon[b-tvtg1issg8]::after {
        content: "";
        position: absolute;
        left: calc(50% - 1px);
        width: 2px;
        background: currentColor;
        border-radius: 1px;
    }

    .tip-icon[b-tvtg1issg8]::before {
        top: 3px;
        height: 2px;
    }

    .tip-icon[b-tvtg1issg8]::after {
        top: 6px;
        height: 6px;
    }

/* The box. The browser's own popover styles (inset 0, margin auto, a border, overflow auto) are all overridden, and the
   script positions it. Hidden it is display: none, so it never takes layout space: a hidden-but-laid-out box of 280px to
   the right of an icon once widened a scrolling dialog and gave it a horizontal scrollbar. */
.tip-text[b-tvtg1issg8] {
    position: fixed;
    inset: auto;
    width: 280px;
    height: auto;
    margin: 0;
    padding: 9px 13px;
    border: 0;
    overflow: visible;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    color: #f0f0f5;
    background: #1e1e2e;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    display: none;
    pointer-events: none;
}

    .tip-text:popover-open[b-tvtg1issg8],
    .tip-text.is-shown[b-tvtg1issg8] {
        display: block;
    }

    /* The arrow, at the icon's centre (--tip-arrow is set by the script); on the bottom edge when the box sits above. */
    .tip-text[b-tvtg1issg8]::after {
        content: "";
        position: absolute;
        bottom: 100%;
        left: calc(var(--tip-arrow, 17px) - 5px);
        border: 5px solid transparent;
        border-bottom-color: #1e1e2e;
    }

    .tip-text.is-above[b-tvtg1issg8]::after {
        bottom: auto;
        top: 100%;
        border-bottom-color: transparent;
        border-top-color: #1e1e2e;
    }

/* Open or focused: the icon lights up. */
.tip:focus .tip-icon[b-tvtg1issg8],
.tip.is-open .tip-icon[b-tvtg1issg8] {
    color: var(--brand, #4d7cfe);
    border-color: var(--brand, #4d7cfe);
    background: var(--brand-soft, #eef3ff);
}

@media (hover: hover) and (pointer: fine) {
    .tip:hover .tip-icon[b-tvtg1issg8] {
        color: var(--brand, #4d7cfe);
        border-color: var(--brand, #4d7cfe);
        background: var(--brand-soft, #eef3ff);
    }
}
/* /Components/Shared/InstallAppHint.razor.rz.scp.css */
/* ==========================================================================
   InstallAppHint — a one-time, dismissible suggestion on /select-module to
   install Zunge as an app. Same shape and rhythm as TutorialHint, but in
   the app's blue so the two read as different features. Breakpoints follow
   ModuleSelection.razor.css (768px / 480px).
   ========================================================================== */

.install-app-hint[b-isfebemvgh],
.install-app-hint *[b-isfebemvgh],
.install-app-hint *[b-isfebemvgh]::before,
.install-app-hint *[b-isfebemvgh]::after {
    box-sizing: border-box;
}

.install-app-hint[b-isfebemvgh] {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    list-style: none;
    margin: 0 0 var(--module-gap, 50px);
    padding: 16px 40px 16px 18px;
    background: #F3F6FF;
    border: 1px solid #D6E0FD;
    border-radius: 16px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    animation: iah-fade-in-b-isfebemvgh 0.35s ease;
}

@keyframes iah-fade-in-b-isfebemvgh {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iah-icon[b-isfebemvgh] {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #4D7CFE;
}

    .iah-icon svg[b-isfebemvgh] {
        width: 15px;
        height: 15px;
        color: #fff;
    }

.iah-body[b-isfebemvgh] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.iah-title[b-isfebemvgh] {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.iah-text[b-isfebemvgh] {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #555;
}

/* The same button as TutorialHint's "Открыть обучение" (the site's ordinary button, compact), in this note's blue. */
.iah-cta[b-isfebemvgh] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin-top: 6px;
    padding: 0 18px;
    background-color: #fff;
    color: #4d7cfe;
    border: 2px solid #4d7cfe;
    border-radius: 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease, color 0.3s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .iah-cta:hover[b-isfebemvgh] {
            background-color: #4d7cfe;
            color: #fff;
        }
    }

    .iah-cta:active[b-isfebemvgh] {
        background-color: #4d7cfe;
        color: #fff;
        transition-duration: 0s;
    }

    .iah-cta:focus-visible[b-isfebemvgh] {
        outline: 2px solid #4D7CFE;
        outline-offset: 2px;
    }

.iah-dismiss[b-isfebemvgh] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #4a5670;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .iah-dismiss:hover[b-isfebemvgh] {
            background: rgba(0, 0, 0, 0.1);
            transform: rotate(90deg);
        }
    }

    .iah-dismiss:focus-visible[b-isfebemvgh] {
        outline: 2px solid #4D7CFE;
        outline-offset: 2px;
    }

@media (max-width: 768px) {
    .install-app-hint[b-isfebemvgh] {
        gap: 10px;
        padding: 14px 34px 14px 14px;
        border-radius: 14px;
    }

    .iah-icon[b-isfebemvgh] {
        width: 28px;
        height: 28px;
    }

        .iah-icon svg[b-isfebemvgh] {
            width: 13px;
            height: 13px;
        }

    .iah-title[b-isfebemvgh] {
        font-size: 14px;
    }

    .iah-text[b-isfebemvgh] {
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .install-app-hint[b-isfebemvgh] {
        padding: 12px 30px 12px 12px;
        border-radius: 12px;
    }

    .iah-title[b-isfebemvgh] {
        font-size: 13px;
    }

    .iah-text[b-isfebemvgh] {
        font-size: 12px;
    }

    /* A phone: the button runs the width of the note, from under the icon to under the close button. */
    .iah-cta[b-isfebemvgh] {
        width: calc(100% + 56px);
        height: 40px;
        margin-left: -38px;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .install-app-hint[b-isfebemvgh] {
        animation: none;
    }

    .iah-cta[b-isfebemvgh] {
        transition: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .iah-dismiss:hover[b-isfebemvgh] {
            transform: none;
        }
    }
}
/* /Components/Shared/IosInstallGuide.razor.rz.scp.css */
/* iOS "Add to Home Screen" guide. Drawn screens stand in for screenshots so
   they follow the chosen browser, layout and device language. Colors inherit
   the --sc-* tokens of the shortcut page, with fallbacks. */
.ig[b-724h3x3oi7] {
    --ig-brand: var(--sc-brand, #4d7cfe);
    --ig-brand-soft: var(--sc-brand-soft, #eef2ff);
    --ig-text: var(--sc-text, #0d1a2d);
    --ig-muted: var(--sc-text-muted, #6b7c9e);
    --ig-border: var(--sc-border, #dde3f0);
    --ig-ink: #1c2233;
    --ig-glass: rgba(245, 246, 250, 0.96);
    --ig-skeleton: #e6eaf2;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ===== Pickers ===== */
.ig-picker[b-724h3x3oi7] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ig-picker-label[b-724h3x3oi7] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ig-text);
}

.ig-picker-hint[b-724h3x3oi7] {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ig-muted);
}

.ig-chips[b-724h3x3oi7] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ig-chip[b-724h3x3oi7] {
    height: 38px;
    padding: 0 16px;
    background: #fff;
    color: var(--ig-text);
    border: 2px solid var(--ig-border);
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .ig-chip:hover[b-724h3x3oi7] {
            border-color: var(--ig-brand);
        }
    }

    .ig-chip.active[b-724h3x3oi7] {
        background: var(--ig-brand);
        border-color: var(--ig-brand);
        color: #fff;
        box-shadow: 0 4px 14px rgba(77, 124, 254, 0.3);
    }

/* Marks the browser we detected, so it's still recognizable after switching */
.ig-chip-mine[b-724h3x3oi7] {
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 100px;
    background: var(--ig-brand-soft);
    color: var(--ig-brand);
    font-size: 0.7rem;
    font-weight: 700;
    vertical-align: 1px;
}

.ig-chip.active .ig-chip-mine[b-724h3x3oi7] {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.ig-layouts[b-724h3x3oi7] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ig-layout[b-724h3x3oi7] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 10px;
    background: #fff;
    border: 2px solid var(--ig-border);
    border-radius: 16px;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .ig-layout:hover[b-724h3x3oi7] {
            border-color: var(--ig-brand);
        }
    }

    .ig-layout.active[b-724h3x3oi7] {
        border-color: var(--ig-brand);
        background: var(--ig-brand-soft);
        box-shadow: 0 4px 14px rgba(77, 124, 254, 0.2);
    }

.ig-layout-name[b-724h3x3oi7] {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ig-text);
    text-align: center;
}

.ig-layout.active .ig-layout-name[b-724h3x3oi7] {
    color: var(--ig-brand);
}

.ig-mini[b-724h3x3oi7] {
    position: relative;
    display: block;
    width: 100%;
    max-width: 140px;
    height: 76px;
    background: #fff;
    border: 3px solid var(--ig-ink);
    border-top-width: 0;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.ig-mini-top[b-724h3x3oi7] {
    border-top-width: 3px;
    border-bottom-width: 0;
    border-radius: 12px 12px 0 0;
}

/* ===== Steps ===== */
.ig-steps[b-724h3x3oi7] {
    list-style: none;
    counter-reset: ig-step;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ig-step[b-724h3x3oi7] {
    counter-increment: ig-step;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 24px;
    padding: 18px 20px 18px 66px;
    background: #fafbff;
    border: 1px solid var(--ig-brand-soft);
    border-radius: 20px;
}

    .ig-step[b-724h3x3oi7]::before {
        content: counter(ig-step);
        position: absolute;
        left: 18px;
        top: 18px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--ig-brand);
        color: #fff;
        font-size: 1rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(77, 124, 254, 0.35);
    }

.ig-step-text[b-724h3x3oi7] {
    min-width: 0;
}

    .ig-step-text p[b-724h3x3oi7] {
        margin: 0 0 0.6rem;
        font-size: 1.02rem;
        line-height: 1.6;
        color: #3a4a68;
    }

        .ig-step-text p b[b-724h3x3oi7] {
            color: var(--ig-text);
        }

    .ig-step-text > :last-child[b-724h3x3oi7] {
        margin-bottom: 0;
    }

    .ig-step-text p.ig-note[b-724h3x3oi7] {
        font-size: 0.85rem;
        line-height: 1.5;
        color: var(--ig-muted);
        margin-top: 0.6rem;
    }

.ig-term[b-724h3x3oi7] {
    display: inline;
    font-weight: 700;
    color: var(--ig-brand);
    background: var(--ig-brand-soft);
    border-radius: 6px;
    padding: 1px 7px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* "Where to look" badge: a tiny phone with a blinking dot on the right spot */
.ig-where[b-724h3x3oi7] {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 14px 5px 6px;
    background: #fff;
    border: 2px solid var(--ig-brand);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ig-brand);
}

.ig-where-phone[b-724h3x3oi7] {
    position: relative;
    flex-shrink: 0;
    width: 16px;
    height: 26px;
    border: 2px solid var(--ig-ink);
    border-radius: 5px;
    background: #fff;
}

.ig-where-dot[b-724h3x3oi7] {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4d4f;
    animation: ig-blink-b-724h3x3oi7 1.2s ease-in-out infinite;
}

.ig-where-tl[b-724h3x3oi7] { top: 1px; left: 1px; }
.ig-where-tr[b-724h3x3oi7] { top: 1px; right: 1px; }
.ig-where-bl[b-724h3x3oi7] { bottom: 1px; left: 1px; }
.ig-where-br[b-724h3x3oi7] { bottom: 1px; right: 1px; }
.ig-where-bc[b-724h3x3oi7] { bottom: 1px; left: 50%; margin-left: -3.5px; }
.ig-where-b[b-724h3x3oi7] { bottom: 1px; left: 1px; right: 1px; width: auto; height: 5px; border-radius: 2px; }

/* ===== Glyphs ===== */
.ig-gl[b-724h3x3oi7] {
    display: inline-block;
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    vertical-align: middle;
    background-color: var(--ig-ink);
    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
    -webkit-mask-image: var(--g);
    mask-image: var(--g);
}

/* Inline version inside instructions, drawn like a key cap */
.ig-gl.ig-key[b-724h3x3oi7] {
    position: relative;
    width: 30px;
    height: 26px;
    margin: -3px 2px 0;
    background: #fff;
    border: 1px solid var(--ig-border);
    border-radius: 8px;
    box-shadow: 0 1px 0 var(--ig-border);
    -webkit-mask: none;
    mask: none;
}

    .ig-gl.ig-key[b-724h3x3oi7]::before {
        content: "";
        position: absolute;
        inset: 4px 6px;
        background-color: var(--ig-brand);
        -webkit-mask: no-repeat center / contain;
        mask: no-repeat center / contain;
        -webkit-mask-image: var(--g);
        mask-image: var(--g);
    }

.ig-gl-share[b-724h3x3oi7] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4M8.5 10H7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2h-1.5'/%3E%3C/svg%3E"); }
.ig-gl-more[b-724h3x3oi7] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='12' r='2.3'/%3E%3Ccircle cx='12' cy='12' r='2.3'/%3E%3Ccircle cx='19' cy='12' r='2.3'/%3E%3C/svg%3E"); }
.ig-gl-back[b-724h3x3oi7] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4l-8 8 8 8'/%3E%3C/svg%3E"); }
.ig-gl-forward[b-724h3x3oi7] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4l8 8-8 8'/%3E%3C/svg%3E"); }
.ig-gl-book[b-724h3x3oi7] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 5.5c3-1.3 6-1.3 9 .5 3-1.8 6-1.8 9-.5V19c-3-1.3-6-1.3-9 .5-3-1.8-6-1.8-9-.5V5.5ZM12 6v13.5'/%3E%3C/svg%3E"); }
.ig-gl-tabs[b-724h3x3oi7] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='3' width='13' height='13' rx='2.5'/%3E%3Cpath d='M16 20H6a3 3 0 0 1-3-3V7'/%3E%3C/svg%3E"); }
.ig-gl-pagemenu[b-724h3x3oi7] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 6.5h16M4 12h16M4 17.5h9'/%3E%3C/svg%3E"); }
.ig-gl-menu[b-724h3x3oi7] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E"); }
.ig-gl-plus[b-724h3x3oi7] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E"); }
.ig-gl-close[b-724h3x3oi7] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.ig-gl-add-square[b-724h3x3oi7] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='4'/%3E%3Cpath d='M12 8.5v7M8.5 12h7'/%3E%3C/svg%3E"); }

/* ===== Drawn devices ===== */
.ig-shot[b-724h3x3oi7] {
    display: flex;
    justify-content: center;
}

.ig-phone[b-724h3x3oi7],
.ig-tablet[b-724h3x3oi7] {
    position: relative;
    flex-shrink: 0;
    background: #fff;
    border: 5px solid var(--ig-ink);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 30, 87, 0.14);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    color: var(--ig-ink);
    text-align: left;
}

.ig-phone[b-724h3x3oi7] {
    width: 158px;
    height: 290px;
    border-radius: 30px;
}

.ig-tablet[b-724h3x3oi7] {
    width: 250px;
    height: 176px;
    border-radius: 16px;
}

.ig-island[b-724h3x3oi7] {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 44px;
    height: 12px;
    margin-left: -22px;
    border-radius: 8px;
    background: var(--ig-ink);
    z-index: 6;
}

.ig-page[b-724h3x3oi7] {
    position: absolute;
    inset: 30px 14px 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .ig-page i[b-724h3x3oi7] {
        display: block;
        height: 8px;
        border-radius: 4px;
        background: var(--ig-skeleton);
    }

        .ig-page i.short[b-724h3x3oi7] {
            width: 60%;
        }

.ig-tablet .ig-page[b-724h3x3oi7] {
    inset: 42px 18px 12px;
}

.ig-mini .ig-page[b-724h3x3oi7] {
    inset: 8px 10px 40px;
    gap: 5px;
}

.ig-mini-top .ig-page[b-724h3x3oi7] {
    inset: 38px 10px 8px;
}

    .ig-mini .ig-page i[b-724h3x3oi7] {
        height: 5px;
    }

.ig-dim[b-724h3x3oi7] {
    position: absolute;
    inset: 0;
    background: rgba(13, 26, 45, 0.38);
    z-index: 2;
}

.ig-layer[b-724h3x3oi7] {
    display: contents;
}

/* ===== Browser bars ===== */
.ig-dock[b-724h3x3oi7] {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
}

.ig-mini .ig-dock[b-724h3x3oi7] {
    bottom: 8px;
}

.ig-btn[b-724h3x3oi7],
.ig-pill[b-724h3x3oi7] {
    height: 26px;
    background: var(--ig-glass);
    border: 1px solid #dfe3ec;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ig-btn[b-724h3x3oi7] {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-pill[b-724h3x3oi7] {
    position: relative;
    flex: 1;
    min-width: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.ig-pill-row[b-724h3x3oi7] {
    justify-content: space-between;
    gap: 2px;
    padding: 0 3px;
    overflow: visible;
}

.ig-url[b-724h3x3oi7] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.ig-inbtn[b-724h3x3oi7],
.ig-tool[b-724h3x3oi7] {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-inbtn[b-724h3x3oi7] {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.ig-tool[b-724h3x3oi7] {
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

.ig-bottom[b-724h3x3oi7] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}

.ig-urlbar[b-724h3x3oi7] {
    display: flex;
    padding: 5px 10px;
    background: #f5f6fa;
    border-top: 1px solid #e3e7ef;
}

    .ig-urlbar .ig-pill[b-724h3x3oi7] {
        height: 20px;
        background: #fff;
        box-shadow: none;
    }

.ig-toolbar[b-724h3x3oi7] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    padding: 0 4px 3px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #f5f6fa;
    border-top: 1px solid #e3e7ef;
    z-index: 3;
}

.ig-toolbar-static[b-724h3x3oi7] {
    position: static;
}

.ig-mini .ig-toolbar[b-724h3x3oi7] {
    height: 26px;
}

.ig-mini .ig-urlbar[b-724h3x3oi7] {
    padding: 3px 8px;
}

.ig-topbar[b-724h3x3oi7] {
    position: absolute;
    left: 0;
    right: 0;
    top: 22px;
    height: 34px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f6fa;
    border-bottom: 1px solid #e3e7ef;
    z-index: 3;
}

    .ig-topbar .ig-pill[b-724h3x3oi7] {
        height: 22px;
        background: #fff;
        box-shadow: none;
    }

.ig-tablet .ig-topbar[b-724h3x3oi7],
.ig-mini .ig-topbar[b-724h3x3oi7] {
    top: 0;
    gap: 7px;
}

.ig-mini .ig-topbar[b-724h3x3oi7] {
    height: 30px;
    gap: 4px;
    padding: 0 5px;
}

    .ig-mini .ig-topbar .ig-gl[b-724h3x3oi7] {
        width: 8px;
        height: 8px;
    }

    .ig-mini .ig-topbar .ig-pill[b-724h3x3oi7] {
        font-size: 6.5px;
    }

    .ig-mini .ig-topbar .ig-tool[b-724h3x3oi7] {
        width: 12px;
    }

.ig-title-sk[b-724h3x3oi7] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--ig-skeleton);
}

/* ===== Highlighted button ===== */
.ig-target[b-724h3x3oi7] {
    z-index: 4;
    background: var(--ig-brand) !important;
    border-color: var(--ig-brand) !important;
    color: #fff !important;
}

    .ig-target > .ig-gl[b-724h3x3oi7] {
        background-color: #fff;
    }

    .ig-target[b-724h3x3oi7]::after,
    .ig-target-row[b-724h3x3oi7]::after {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: inherit;
        animation: ig-pulse-b-724h3x3oi7 1.5s ease-out infinite;
        pointer-events: none;
    }

.ig-maybe[b-724h3x3oi7] {
    outline: 2px dashed var(--ig-brand);
    outline-offset: 1px;
}

/* ===== Menus and sheets ===== */
.ig-menu[b-724h3x3oi7],
.ig-popover[b-724h3x3oi7] {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.ig-menu[b-724h3x3oi7] {
    bottom: 48px;
    width: 116px;
}

.ig-menu-br[b-724h3x3oi7] { right: 8px; }
.ig-menu-bl[b-724h3x3oi7] { left: 8px; }

.ig-popover[b-724h3x3oi7] {
    top: 38px;
    right: 44px;
    width: 124px;
}

.ig-row[b-724h3x3oi7] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 8px;
    background: #f3f5f9;
}

    .ig-row i[b-724h3x3oi7] {
        flex: 1;
        height: 6px;
        border-radius: 3px;
        background: #dfe3ec;
    }

        .ig-row i.short[b-724h3x3oi7] {
            flex: 0 0 55%;
        }

.ig-target-row[b-724h3x3oi7] {
    z-index: 1;
    padding: 5px 8px;
    background: var(--ig-brand-soft);
    box-shadow: inset 0 0 0 2px var(--ig-brand);
    color: var(--ig-brand);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
}

    .ig-target-row .ig-gl[b-724h3x3oi7] {
        background-color: var(--ig-brand);
    }

.ig-sheet[b-724h3x3oi7] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 74px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 9px 10px;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15);
}

.ig-sheet-half[b-724h3x3oi7] {
    top: 150px;
}

.ig-sheet-full[b-724h3x3oi7] {
    top: 26px;
    gap: 10px;
    padding-top: 8px;
}

.ig-grab[b-724h3x3oi7] {
    align-self: center;
    flex-shrink: 0;
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #d5dae4;
}

.ig-sheet-head[b-724h3x3oi7] {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .ig-sheet-head i[b-724h3x3oi7] {
        flex: 1;
        height: 7px;
        border-radius: 4px;
        background: var(--ig-skeleton);
    }

.ig-favicon[b-724h3x3oi7] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--ig-skeleton);
}

.ig-apps[b-724h3x3oi7] {
    display: flex;
    justify-content: space-between;
    padding: 2px 4px 4px;
}

    .ig-apps i[b-724h3x3oi7] {
        display: block;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--ig-skeleton);
    }

/* Bouncing chevron: "scroll down" */
.ig-scroll[b-724h3x3oi7] {
    align-self: center;
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    margin-top: 2px;
    border-right: 2.5px solid var(--ig-brand);
    border-bottom: 2.5px solid var(--ig-brand);
    transform: rotate(45deg);
    animation: ig-bounce-b-724h3x3oi7 1s ease-in-out infinite;
}

.ig-grid[b-724h3x3oi7] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 4px 2px;
}

.ig-cell[b-724h3x3oi7] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 44px;
    padding: 3px;
    border-radius: 10px;
    background: #f3f5f9;
    text-align: center;
}

    .ig-cell i[b-724h3x3oi7] {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #dfe3ec;
    }

    .ig-cell.ig-target-row[b-724h3x3oi7] {
        font-size: 7.5px;
    }

/* Add to Home Screen dialog */
.ig-dialog-bar[b-724h3x3oi7] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 2px 0;
    font-size: 9px;
}

.ig-dialog-cancel[b-724h3x3oi7] {
    color: #0a7aff;
}

.ig-dialog-add[b-724h3x3oi7] {
    position: relative;
    padding: 4px 8px;
    border-radius: 9px;
    font-weight: 700;
    color: #0a7aff;
}

.ig-app-row[b-724h3x3oi7] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    background: #f3f5f9;
}

/* Home Screen tile: the favicon on a white rounded square. The logo is sized
   as a share of the tile (not padding, which would follow the parent's width),
   so it keeps its proportions at any scale. */
.ig-app-icon[b-724h3x3oi7],
.ig-done-icon[b-724h3x3oi7] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--ig-border);
    box-shadow: 0 2px 6px rgba(0, 30, 87, 0.08);
}

    .ig-app-icon img[b-724h3x3oi7],
    .ig-done-icon img[b-724h3x3oi7] {
        display: block;
        width: 64%;
        height: 64%;
        object-fit: contain;
    }

.ig-app-icon[b-724h3x3oi7] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.ig-app-name[b-724h3x3oi7] {
    font-size: 10px;
    font-weight: 600;
}

.ig-toggle-row[b-724h3x3oi7] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    background: #f3f5f9;
    font-size: 8.5px;
    font-weight: 600;
    line-height: 1.25;
}

.ig-switch[b-724h3x3oi7] {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 16px;
    border-radius: 8px;
    background: #34c759;
}

    .ig-switch[b-724h3x3oi7]::after {
        content: "";
        position: absolute;
        top: 2px;
        right: 2px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #fff;
    }

/* ===== Fallback and finish ===== */
.ig-fallback[b-724h3x3oi7] {
    padding: 16px 18px;
    background: #fff8e8;
    border: 1px solid #ffe2a6;
    border-radius: 18px;
}

.ig-fallback-title[b-724h3x3oi7] {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ig-text);
}

.ig-fallback-text[b-724h3x3oi7] {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #3a4a68;
}

.ig-fallback-actions[b-724h3x3oi7] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.ig-copy[b-724h3x3oi7] {
    height: 42px;
    padding: 0 22px;
    background: var(--ig-brand);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(77, 124, 254, 0.3);
    transition: background-color 0.2s ease;
}

    .ig-copy.copied[b-724h3x3oi7] {
        background: #34c759;
        box-shadow: 0 6px 18px rgba(52, 199, 89, 0.3);
    }

.ig-link[b-724h3x3oi7] {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ig-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ig-done[b-724h3x3oi7] {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.85rem 1.1rem;
    background: rgba(52, 199, 89, 0.1);
    border-radius: 16px;
    /* Same size as the step text */
    font-size: 1.02rem;
    line-height: 1.55;
    color: #1f7a3a;
}

.ig-done-icon[b-724h3x3oi7] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

/* ===== Pointer to the real button on the user's own screen ===== */
.ig-live[b-724h3x3oi7] {
    position: fixed;
    /* Above every layout's fixed header (Nav.razor.css uses 999999, LeftSideNavLayout's mobile header 1800) */
    z-index: 1000000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 24px);
    padding: 10px 44px 10px 14px;
    background: var(--ig-brand);
    color: #fff;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.ig-live-br[b-724h3x3oi7] {
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
}

.ig-live-bl[b-724h3x3oi7] {
    left: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    flex-direction: row-reverse;
}

.ig-live-bc[b-724h3x3oi7] {
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    translate: -50% 0;
    flex-direction: column-reverse;
    gap: 2px;
    padding: 10px 44px 8px 16px;
    text-align: center;
}

.ig-live-tr[b-724h3x3oi7] {
    right: 12px;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
}

.ig-live-arrow[b-724h3x3oi7] {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-right: 3.5px solid #fff;
    border-bottom: 3.5px solid #fff;
    animation: ig-nudge-b-724h3x3oi7 0.9s ease-in-out infinite;
}

.ig-live-br .ig-live-arrow[b-724h3x3oi7] { rotate: 0deg; --ig-dx: 3px; --ig-dy: 3px; }
.ig-live-bl .ig-live-arrow[b-724h3x3oi7] { rotate: 90deg; --ig-dx: -3px; --ig-dy: 3px; }
.ig-live-bc .ig-live-arrow[b-724h3x3oi7] { rotate: 45deg; --ig-dx: 0px; --ig-dy: 4px; }
.ig-live-tr .ig-live-arrow[b-724h3x3oi7] { rotate: -90deg; --ig-dx: 3px; --ig-dy: -3px; }

.ig-live-close[b-724h3x3oi7] {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 18px;
    line-height: 26px;
    cursor: pointer;
}

/* ===== Animations ===== */
/* A ring spreading out from the button; box-shadow keeps its shape on wide rows */
@keyframes ig-pulse-b-724h3x3oi7 {
    0% { box-shadow: 0 0 0 0 rgba(77, 124, 254, 0.75); }
    100% { box-shadow: 0 0 0 9px rgba(77, 124, 254, 0); }
}

@keyframes ig-blink-b-724h3x3oi7 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

@keyframes ig-bounce-b-724h3x3oi7 {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 3px; }
}

@keyframes ig-nudge-b-724h3x3oi7 {
    0%, 100% { translate: 0 0; }
    50% { translate: var(--ig-dx) var(--ig-dy); }
}

@media (prefers-reduced-motion: reduce) {
    .ig-target[b-724h3x3oi7]::after,
    .ig-target-row[b-724h3x3oi7]::after,
    .ig-where-dot[b-724h3x3oi7],
    .ig-scroll[b-724h3x3oi7],
    .ig-live-arrow[b-724h3x3oi7] {
        animation: none;
    }
}

/* ===== Narrow: stack text above the picture ===== */
@container (max-width: 560px) {
    .ig-layouts[b-724h3x3oi7] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ig-step[b-724h3x3oi7] {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        padding: 16px 14px 18px;
    }

        .ig-step[b-724h3x3oi7]::before {
            left: 14px;
            top: 14px;
        }

    .ig-step-text[b-724h3x3oi7] {
        padding-left: 46px;
        min-height: 34px;
    }

        .ig-step-text p[b-724h3x3oi7] {
            font-size: 0.98rem;
        }

    .ig-done[b-724h3x3oi7] {
        gap: 12px;
        padding: 0.8rem 0.9rem;
        font-size: 0.98rem;
    }

    .ig-where[b-724h3x3oi7] {
        font-size: 0.82rem;
    }
}
/* /Components/Shared/MacInstallGuide.razor.rz.scp.css */
/* Mac "install as an app" guide. Pickers, steps, notes and the live pointer
   are the same as IosInstallGuide.razor.css (kept in step with it, since scoped
   CSS can't be shared); everything under "Drawn Mac" is specific to this guide. */
.ig[b-n5cylmfqz1] {
    --ig-brand: var(--sc-brand, #4d7cfe);
    --ig-brand-soft: var(--sc-brand-soft, #eef2ff);
    --ig-text: var(--sc-text, #0d1a2d);
    --ig-muted: var(--sc-text-muted, #6b7c9e);
    --ig-border: var(--sc-border, #dde3f0);
    --ig-ink: #1c2233;
    --ig-glass: rgba(245, 246, 250, 0.96);
    --ig-skeleton: #e6eaf2;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ===== Pickers ===== */
.ig-picker[b-n5cylmfqz1] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ig-picker-label[b-n5cylmfqz1] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ig-text);
}

.ig-picker-hint[b-n5cylmfqz1] {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ig-muted);
}

.ig-chips[b-n5cylmfqz1] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ig-chip[b-n5cylmfqz1] {
    height: 38px;
    padding: 0 16px;
    background: #fff;
    color: var(--ig-text);
    border: 2px solid var(--ig-border);
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .ig-chip:hover[b-n5cylmfqz1] {
            border-color: var(--ig-brand);
        }
    }

    .ig-chip.active[b-n5cylmfqz1] {
        background: var(--ig-brand);
        border-color: var(--ig-brand);
        color: #fff;
        box-shadow: 0 4px 14px rgba(77, 124, 254, 0.3);
    }

/* Marks the browser we detected, so it's still recognizable after switching */
.ig-chip-mine[b-n5cylmfqz1] {
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 100px;
    background: var(--ig-brand-soft);
    color: var(--ig-brand);
    font-size: 0.7rem;
    font-weight: 700;
    vertical-align: 1px;
}

.ig-chip.active .ig-chip-mine[b-n5cylmfqz1] {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ===== Steps ===== */
.ig-steps[b-n5cylmfqz1] {
    list-style: none;
    counter-reset: ig-step;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ig-step[b-n5cylmfqz1] {
    counter-increment: ig-step;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 24px;
    padding: 18px 20px 18px 66px;
    background: #fafbff;
    border: 1px solid var(--ig-brand-soft);
    border-radius: 20px;
}

    .ig-step[b-n5cylmfqz1]::before {
        content: counter(ig-step);
        position: absolute;
        left: 18px;
        top: 18px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--ig-brand);
        color: #fff;
        font-size: 1rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(77, 124, 254, 0.35);
    }

.ig-step-text[b-n5cylmfqz1] {
    min-width: 0;
}

    .ig-step-text p[b-n5cylmfqz1] {
        margin: 0 0 0.6rem;
        font-size: 1.02rem;
        line-height: 1.6;
        color: #3a4a68;
    }

        .ig-step-text p b[b-n5cylmfqz1] {
            color: var(--ig-text);
        }

    .ig-step-text > :last-child[b-n5cylmfqz1] {
        margin-bottom: 0;
    }

    .ig-step-text p.ig-note[b-n5cylmfqz1] {
        font-size: 0.85rem;
        line-height: 1.5;
        color: var(--ig-muted);
        margin-top: 0.6rem;
    }

.ig-term[b-n5cylmfqz1] {
    display: inline;
    font-weight: 700;
    color: var(--ig-brand);
    background: var(--ig-brand-soft);
    border-radius: 6px;
    padding: 1px 7px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* "Where to look" badge: a tiny Mac with a blinking dot on the right spot */
.ig-where[b-n5cylmfqz1] {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 14px 5px 6px;
    background: #fff;
    border: 2px solid var(--ig-brand);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ig-brand);
}

.ig-where-dot[b-n5cylmfqz1] {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4d4f;
    animation: ig-blink-b-n5cylmfqz1 1.2s ease-in-out infinite;
}

.ig-where-dot.mg-where-tl[b-n5cylmfqz1] { top: 1px; left: 1px; }
.ig-where-dot.mg-where-tr[b-n5cylmfqz1] { top: 1px; right: 1px; }
.ig-where-dot.mg-where-c[b-n5cylmfqz1] { top: 50%; left: 50%; margin: -3.5px 0 0 -3.5px; }
.ig-where-dot.mg-where-t[b-n5cylmfqz1] { top: 1px; left: 3px; right: 3px; width: auto; height: 3px; border-radius: 2px; }
.ig-where-dot.mg-where-b[b-n5cylmfqz1] { bottom: 1px; left: 3px; right: 3px; width: auto; height: 3px; border-radius: 2px; }

/* A tiny laptop: the screen plus a wider base line */
.mg-where-mac[b-n5cylmfqz1] {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 16px;
    margin: 0 4px 3px;
    border: 2px solid var(--ig-ink);
    border-radius: 3px;
    background: #fff;
}

    .mg-where-mac[b-n5cylmfqz1]::after {
        content: "";
        position: absolute;
        left: -6px;
        right: -6px;
        bottom: -6px;
        height: 2.5px;
        border-radius: 2px;
        background: var(--ig-ink);
    }

/* ===== Glyphs ===== */
.ig-gl[b-n5cylmfqz1] {
    display: inline-block;
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    vertical-align: middle;
    background-color: var(--ig-ink);
    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
    -webkit-mask-image: var(--g);
    mask-image: var(--g);
}

/* Inline version inside instructions, drawn like a key cap */
.ig-gl.ig-key[b-n5cylmfqz1] {
    position: relative;
    width: 30px;
    height: 26px;
    margin: -3px 2px 0;
    background: #fff;
    border: 1px solid var(--ig-border);
    border-radius: 8px;
    box-shadow: 0 1px 0 var(--ig-border);
    -webkit-mask: none;
    mask: none;
}

    .ig-gl.ig-key[b-n5cylmfqz1]::before {
        content: "";
        position: absolute;
        inset: 4px 6px;
        background-color: var(--ig-brand);
        -webkit-mask: no-repeat center / contain;
        mask: no-repeat center / contain;
        -webkit-mask-image: var(--g);
        mask-image: var(--g);
    }

.ig-gl-share[b-n5cylmfqz1] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4M8.5 10H7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2h-1.5'/%3E%3C/svg%3E"); }
.ig-gl-more[b-n5cylmfqz1] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='12' r='2.3'/%3E%3Ccircle cx='12' cy='12' r='2.3'/%3E%3Ccircle cx='19' cy='12' r='2.3'/%3E%3C/svg%3E"); }
.ig-gl-back[b-n5cylmfqz1] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4l-8 8 8 8'/%3E%3C/svg%3E"); }
.ig-gl-forward[b-n5cylmfqz1] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4l8 8-8 8'/%3E%3C/svg%3E"); }
.ig-gl-plus[b-n5cylmfqz1] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E"); }
.ig-gl-morev[b-n5cylmfqz1] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5' r='2.3'/%3E%3Ccircle cx='12' cy='12' r='2.3'/%3E%3Ccircle cx='12' cy='19' r='2.3'/%3E%3C/svg%3E"); }
.ig-gl-sidebar[b-n5cylmfqz1] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='3'/%3E%3Cpath d='M9.5 4.5v15'/%3E%3C/svg%3E"); }
.ig-gl-install[b-n5cylmfqz1] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4H6a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3h-2M12 3v9M8.5 8.5 12 12l3.5-3.5M8 21h8'/%3E%3C/svg%3E"); }
.ig-gl-dock[b-n5cylmfqz1] { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M7 16.5h10'/%3E%3C/svg%3E"); }

/* ===== Drawn devices ===== */
.ig-shot[b-n5cylmfqz1] {
    display: flex;
    justify-content: center;
}

.ig-dim[b-n5cylmfqz1] {
    position: absolute;
    inset: 0;
    background: rgba(13, 26, 45, 0.38);
    z-index: 2;
}

/* ===== Highlighted button ===== */
.ig-target[b-n5cylmfqz1] {
    z-index: 4;
    background: var(--ig-brand) !important;
    border-color: var(--ig-brand) !important;
    color: #fff !important;
}

    .ig-target > .ig-gl[b-n5cylmfqz1] {
        background-color: #fff;
    }

    .ig-target[b-n5cylmfqz1]::after,
    .ig-target-row[b-n5cylmfqz1]::after {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: inherit;
        animation: ig-pulse-b-n5cylmfqz1 1.5s ease-out infinite;
        pointer-events: none;
    }

.ig-maybe[b-n5cylmfqz1] {
    outline: 2px dashed var(--ig-brand);
    outline-offset: 1px;
}

/* ===== Fallback and finish ===== */
.ig-fallback[b-n5cylmfqz1] {
    padding: 16px 18px;
    background: #fff8e8;
    border: 1px solid #ffe2a6;
    border-radius: 18px;
}

.ig-fallback-title[b-n5cylmfqz1] {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ig-text);
}

.ig-fallback-text[b-n5cylmfqz1] {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #3a4a68;
}

.ig-fallback-actions[b-n5cylmfqz1] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.ig-copy[b-n5cylmfqz1] {
    height: 42px;
    padding: 0 22px;
    background: var(--ig-brand);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(77, 124, 254, 0.3);
    transition: background-color 0.2s ease;
}

    .ig-copy.copied[b-n5cylmfqz1] {
        background: #34c759;
        box-shadow: 0 6px 18px rgba(52, 199, 89, 0.3);
    }

.ig-link[b-n5cylmfqz1] {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ig-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ===== Mac-only text pieces ===== */
.mg-lead[b-n5cylmfqz1] {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0.85rem 1.1rem;
    background: var(--ig-brand-soft);
    border-radius: 16px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #3a4a68;
}

    .mg-lead b[b-n5cylmfqz1] {
        color: var(--ig-text);
    }

.mg-lead-icon[b-n5cylmfqz1] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--ig-border);
    box-shadow: 0 2px 6px rgba(0, 30, 87, 0.08);
}

    .mg-lead-icon img[b-n5cylmfqz1] {
        width: 64%;
        height: 64%;
        object-fit: contain;
    }

.mg-kbd[b-n5cylmfqz1] {
    display: inline-block;
    padding: 0 7px;
    background: #fff;
    border: 1px solid var(--ig-border);
    border-bottom-width: 3px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1.6;
    color: var(--ig-text);
    white-space: nowrap;
}

.ig-step-text .ig-copy[b-n5cylmfqz1],
.ig-step-text .ig-link[b-n5cylmfqz1] {
    margin-top: 0.2rem;
}

.ig-fallback-text.mg-after[b-n5cylmfqz1] {
    margin: 0.8rem 0 0;
}

/* ===== Drawn Mac ===== */
.mg-mac[b-n5cylmfqz1] {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    color: var(--ig-ink);
    text-align: left;
}

.mg-screen[b-n5cylmfqz1] {
    position: relative;
    width: 266px;
    height: 164px;
    border: 7px solid var(--ig-ink);
    border-bottom-width: 9px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #b9cdfb 0%, #d8cdf9 55%, #f6d6e6 100%);
}

/* The laptop's base: wider than the screen, with the opening notch */
.mg-base[b-n5cylmfqz1] {
    position: relative;
    width: 320px;
    height: 10px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(#cfd4de, #a9b0bd);
    box-shadow: 0 10px 24px rgba(0, 30, 87, 0.14);
}

    .mg-base[b-n5cylmfqz1]::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 44px;
        height: 4px;
        margin-left: -22px;
        border-radius: 0 0 5px 5px;
        background: #9aa1ae;
    }

/* Menu bar */
.mg-menubar[b-n5cylmfqz1] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: 14px;
    padding: 0 7px;
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 7px;
    white-space: nowrap;
}

.mg-apple[b-n5cylmfqz1] {
    flex-shrink: 0;
    width: 6px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50% 50% 45% 45%;
    background: var(--ig-ink);
}

.mg-app-name[b-n5cylmfqz1] {
    margin-right: 3px;
    font-weight: 800;
}

.mg-mi[b-n5cylmfqz1] {
    position: relative;
    padding: 1px 4px;
    border-radius: 4px;
}

.mg-mi-open[b-n5cylmfqz1] {
    background: var(--ig-brand);
    color: #fff;
}

.mg-status[b-n5cylmfqz1] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .mg-status i[b-n5cylmfqz1] {
        width: 7px;
        height: 5px;
        border-radius: 1px;
        background: var(--ig-ink);
        opacity: 0.55;
    }

        .mg-status i.wide[b-n5cylmfqz1] {
            width: 18px;
        }

/* Window */
.mg-win[b-n5cylmfqz1] {
    position: absolute;
    top: 21px;
    left: 14px;
    right: 14px;
    bottom: 33px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(13, 26, 45, 0.25);
}

    .mg-win > .ig-dim[b-n5cylmfqz1] {
        border-radius: 7px;
    }

.mg-lights[b-n5cylmfqz1] {
    flex-shrink: 0;
    display: flex;
    gap: 2.5px;
    margin-right: 3px;
}

    .mg-lights i[b-n5cylmfqz1] {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #ff5f57;
    }

        .mg-lights i:nth-child(2)[b-n5cylmfqz1] { background: #febc2e; }
        .mg-lights i:nth-child(3)[b-n5cylmfqz1] { background: #28c840; }

.mg-tabs[b-n5cylmfqz1] {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 16px;
    padding: 0 7px;
    border-radius: 7px 7px 0 0;
    background: #e6e9f1;
}

    .mg-tabs .mg-lights[b-n5cylmfqz1] {
        align-self: center;
    }

.mg-tab[b-n5cylmfqz1] {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 12px;
    padding: 0 12px 0 6px;
    border-radius: 5px 5px 0 0;
    background: #fff;
    font-size: 6.5px;
    font-weight: 600;
}

    .mg-tab img[b-n5cylmfqz1] {
        width: 7px;
        height: 7px;
    }

.mg-bar[b-n5cylmfqz1] {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 20px;
    padding: 0 7px;
    border-bottom: 1px solid #e6e9f0;
    background: #fff;
}

    .mg-bar .ig-gl[b-n5cylmfqz1] {
        width: 8px;
        height: 8px;
    }

.mg-bar-safari[b-n5cylmfqz1],
.mg-bar-app[b-n5cylmfqz1] {
    border-radius: 7px 7px 0 0;
    background: #f5f6fa;
}

.mg-url[b-n5cylmfqz1] {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 13px;
    border-radius: 7px;
    background: #eceef4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6.5px;
    font-weight: 600;
    white-space: nowrap;
}

.mg-url-row[b-n5cylmfqz1] {
    justify-content: space-between;
    padding: 0 3px 0 8px;
}

.mg-url-text[b-n5cylmfqz1] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: left;
}

.mg-inbtn[b-n5cylmfqz1],
.mg-tb[b-n5cylmfqz1] {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mg-inbtn[b-n5cylmfqz1] {
    width: 11px;
    height: 11px;
}

.mg-tb[b-n5cylmfqz1] {
    width: 16px;
    height: 16px;
}

.mg-app-title[b-n5cylmfqz1] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-right: 22px;
    font-size: 7px;
    font-weight: 700;
}

    .mg-app-title img[b-n5cylmfqz1] {
        width: 8px;
        height: 8px;
    }

.mg-page[b-n5cylmfqz1] {
    position: absolute;
    top: 46px;
    left: 14px;
    right: 14px;
    bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.mg-bar-safari ~ .mg-page[b-n5cylmfqz1],
.mg-bar-app ~ .mg-page[b-n5cylmfqz1] {
    top: 30px;
}

    .mg-page i[b-n5cylmfqz1] {
        display: block;
        flex-shrink: 0;
        height: 6px;
        border-radius: 3px;
        background: var(--ig-skeleton);
    }

        .mg-page i.short[b-n5cylmfqz1] {
            width: 60%;
        }

/* Dock */
.mg-dock[b-n5cylmfqz1] {
    position: absolute;
    bottom: 5px;
    left: 50%;
    z-index: 4;
    translate: -50% 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
}

    .mg-dock > i[b-n5cylmfqz1],
    .mg-dock-app[b-n5cylmfqz1] {
        position: relative;
        display: block;
        width: 17px;
        height: 17px;
        border-radius: 5px;
        background: #ffb86b;
    }

        .mg-dock > i:nth-of-type(2)[b-n5cylmfqz1] { background: #7fd1ae; }
        .mg-dock > i:nth-of-type(3)[b-n5cylmfqz1] { background: #a3adff; }
        .mg-dock > i:nth-of-type(4)[b-n5cylmfqz1] { background: #ff9fb2; }

/* Safari's icon: a white compass needle on blue */
.mg-dock-safari[b-n5cylmfqz1] {
    background:
        linear-gradient(45deg, transparent 44%, #fff 44% 56%, transparent 56%) center / 70% 70% no-repeat,
        radial-gradient(circle, #fff 0 22%, transparent 23%),
        linear-gradient(#5ac8fa, #1a73e8);
}

.mg-dock-zunge[b-n5cylmfqz1] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

    .mg-dock-zunge > img[b-n5cylmfqz1] {
        width: 70%;
        height: 70%;
    }

.mg-hl[b-n5cylmfqz1] {
    z-index: 1;
    outline: 2px solid var(--ig-brand);
    outline-offset: 1px;
}

    .mg-hl[b-n5cylmfqz1]::after {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: 7px;
        animation: ig-pulse-b-n5cylmfqz1 1.5s ease-out infinite;
        pointer-events: none;
    }

/* Menus: macOS menu bar, browser menu, Dock menu */
.mg-menu[b-n5cylmfqz1],
.mg-submenu[b-n5cylmfqz1] {
    position: absolute;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    color: var(--ig-ink);
    white-space: normal;
}

.mg-menu-file[b-n5cylmfqz1] {
    top: calc(100% + 3px);
    left: 0;
    width: 104px;
}

.mg-menu-browser[b-n5cylmfqz1] {
    top: 39px;
    right: 5px;
    width: 92px;
}

/* The browser menu sits at the window's right edge, so its submenu opens to the left */
.mg-submenu[b-n5cylmfqz1] {
    top: -4px;
    right: calc(100% + 3px);
    width: 104px;
}

/* Shifted left of the icon so the submenu opening to its right stays on screen */
.mg-menu-dock[b-n5cylmfqz1] {
    bottom: calc(100% + 7px);
    left: 50%;
    width: 60px;
    translate: -85% 0;
}

.mg-submenu-dock[b-n5cylmfqz1] {
    top: -4px;
    right: auto;
    left: calc(100% + 3px);
    width: 66px;
}

.ig-row[b-n5cylmfqz1] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 12px;
    padding: 0 6px;
    border-radius: 4px;
    background: #f3f5f9;
}

    .ig-row i[b-n5cylmfqz1] {
        flex: 1;
        height: 4px;
        border-radius: 2px;
        background: #dfe3ec;
    }

        .ig-row i.short[b-n5cylmfqz1] {
            flex: 0 0 55%;
        }

.ig-target-row[b-n5cylmfqz1] {
    z-index: 1;
    padding: 3px 6px;
    background: var(--ig-brand-soft);
    box-shadow: inset 0 0 0 1.5px var(--ig-brand);
    color: var(--ig-brand);
    font-size: 7px;
    font-weight: 700;
    line-height: 1.2;
}

    .ig-target-row .ig-gl[b-n5cylmfqz1] {
        width: 8px;
        height: 8px;
        background-color: var(--ig-brand);
    }

.mg-row-sub[b-n5cylmfqz1] {
    justify-content: space-between;
}

.mg-row-hover[b-n5cylmfqz1] {
    padding: 3px 6px;
    background: #dfe5f3;
    font-size: 6.5px;
    font-weight: 600;
    line-height: 1.2;
}

.mg-chev[b-n5cylmfqz1] {
    flex-shrink: 0;
    width: 4px;
    height: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    rotate: -45deg;
}

.mg-sep[b-n5cylmfqz1] {
    height: 1px;
    margin: 0 4px;
    background: #e3e7ef;
}

/* Dialogs */
.mg-dialog[b-n5cylmfqz1] {
    position: absolute;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 116px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.mg-dialog-center[b-n5cylmfqz1] {
    top: 28px;
    left: 50%;
    translate: -50% 0;
}

.mg-dialog-right[b-n5cylmfqz1] {
    top: 39px;
    right: 5px;
}

.mg-dialog-app[b-n5cylmfqz1] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mg-dialog-icon[b-n5cylmfqz1] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 1px solid var(--ig-border);
    border-radius: 5px;
    background: #fff;
}

    .mg-dialog-icon img[b-n5cylmfqz1] {
        width: 64%;
        height: 64%;
    }

.mg-dialog-name[b-n5cylmfqz1] {
    display: flex;
    flex-direction: column;
    font-size: 7.5px;
    font-weight: 700;
}

    .mg-dialog-name small[b-n5cylmfqz1] {
        font-size: 6px;
        font-weight: 500;
        color: var(--ig-muted);
    }

.mg-dialog-buttons[b-n5cylmfqz1] {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.mg-dbtn[b-n5cylmfqz1] {
    position: relative;
    padding: 2px 7px;
    border-radius: 5px;
    background: #eceef4;
    font-size: 6.5px;
    font-weight: 600;
    white-space: nowrap;
}

.mg-dbtn-main[b-n5cylmfqz1] {
    background: #0a7aff;
    color: #fff;
}

/* ===== Pointer to the real button on the user's own screen ===== */
.ig-live[b-n5cylmfqz1] {
    position: fixed;
    /* Above every layout's fixed header (Nav.razor.css uses 999999, LeftSideNavLayout's mobile header 1800) */
    z-index: 1000000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 24px);
    padding: 10px 44px 10px 14px;
    background: var(--ig-brand);
    color: #fff;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.ig-live-br[b-n5cylmfqz1] {
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
}

.ig-live-bl[b-n5cylmfqz1] {
    left: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    flex-direction: row-reverse;
}

.ig-live-bc[b-n5cylmfqz1] {
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    translate: -50% 0;
    flex-direction: column-reverse;
    gap: 2px;
    padding: 10px 44px 8px 16px;
    text-align: center;
}

.ig-live-tr[b-n5cylmfqz1] {
    right: 12px;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
}

.ig-live-arrow[b-n5cylmfqz1] {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-right: 3.5px solid #fff;
    border-bottom: 3.5px solid #fff;
    animation: ig-nudge-b-n5cylmfqz1 0.9s ease-in-out infinite;
}

.ig-live-br .ig-live-arrow[b-n5cylmfqz1] { rotate: 0deg; --ig-dx: 3px; --ig-dy: 3px; }
.ig-live-bl .ig-live-arrow[b-n5cylmfqz1] { rotate: 90deg; --ig-dx: -3px; --ig-dy: 3px; }
.ig-live-bc .ig-live-arrow[b-n5cylmfqz1] { rotate: 45deg; --ig-dx: 0px; --ig-dy: 4px; }
.ig-live-tr .ig-live-arrow[b-n5cylmfqz1] { rotate: -90deg; --ig-dx: 3px; --ig-dy: -3px; }

/* Safari's step 1 is in the menu bar, above the page's top-left corner */
.ig-live-tl[b-n5cylmfqz1] {
    left: 12px;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    flex-direction: row-reverse;
}

.ig-live-tl .ig-live-arrow[b-n5cylmfqz1] { rotate: 180deg; --ig-dx: -3px; --ig-dy: -3px; }


.ig-live-close[b-n5cylmfqz1] {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 18px;
    line-height: 26px;
    cursor: pointer;
}

/* ===== Animations ===== */
/* A ring spreading out from the button; box-shadow keeps its shape on wide rows */
@keyframes ig-pulse-b-n5cylmfqz1 {
    0% { box-shadow: 0 0 0 0 rgba(77, 124, 254, 0.75); }
    100% { box-shadow: 0 0 0 9px rgba(77, 124, 254, 0); }
}

@keyframes ig-blink-b-n5cylmfqz1 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

@keyframes ig-bounce-b-n5cylmfqz1 {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 3px; }
}

@keyframes ig-nudge-b-n5cylmfqz1 {
    0%, 100% { translate: 0 0; }
    50% { translate: var(--ig-dx) var(--ig-dy); }
}

@media (prefers-reduced-motion: reduce) {
    .ig-target[b-n5cylmfqz1]::after,
    .ig-target-row[b-n5cylmfqz1]::after,
    .ig-where-dot[b-n5cylmfqz1],
    .ig-scroll[b-n5cylmfqz1],
    .ig-live-arrow[b-n5cylmfqz1],
    .mg-hl[b-n5cylmfqz1]::after {
        animation: none;
    }
}

/* ===== Narrower: stack text above the picture =====
   The Mac drawing is landscape, so it needs a wider guide than the iOS phone
   before text and picture fit side by side. */
@container (max-width: 760px) {
    .ig-step[b-n5cylmfqz1] {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        padding: 16px 14px 18px;
    }

        .ig-step[b-n5cylmfqz1]::before {
            left: 14px;
            top: 14px;
        }

    .ig-step-text[b-n5cylmfqz1] {
        padding-left: 46px;
        min-height: 34px;
    }

        .ig-step-text p[b-n5cylmfqz1] {
            font-size: 0.98rem;
        }

    .mg-lead[b-n5cylmfqz1] {
        gap: 12px;
        padding: 0.8rem 0.9rem;
        font-size: 0.95rem;
    }

    .ig-where[b-n5cylmfqz1] {
        font-size: 0.82rem;
    }
}

/* Draw the Mac larger wherever it fits, so its labels stay readable */
.mg-mac[b-n5cylmfqz1] {
    zoom: 1.15;
}

@container (max-width: 470px) {
    .mg-mac[b-n5cylmfqz1] {
        zoom: 1;
    }
}

/* Very narrow phones: shrink the drawn Mac rather than let it overflow */
@container (max-width: 360px) {
    .mg-mac[b-n5cylmfqz1] {
        zoom: 0.85;
    }
}
/* /Components/Shared/MatchingLayout.razor.rz.scp.css */
/* ============================================================
   MatchingLayout – scoped styles
   Mobile-first · intuitive · works on any device
   ============================================================ */

/* --- Page containers --- */
[b-0hz2db29oo] .matching-container,
[b-0hz2db29oo] .completed-container {
    max-width: 1700px;
    margin: 0 auto;
    background: #fff;
    padding: 16px 12px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    -webkit-user-select: none;
    user-select: none;
    overflow-x: hidden;
    overflow-x: clip;
}

/* Until the words, the targets and their pictures are in, the page stays under the spinner. */
[b-0hz2db29oo] .matching-container.is-loading,
[b-0hz2db29oo] .completed-container.is-loading {
    visibility: hidden;
}

/* --- Phones and tablets: the lesson fills the screen ---
   From the top: the progress and the name, the targets in the middle of whatever room is left,
   the words in a dock, the buttons, and the site's footer at the very bottom of the screen.
   (app.css makes <main> a column for this page, so the layout can take its whole height.)
   A lesson taller than the screen scrolls, and the dock stays at the bottom of the screen
   until its own place above the buttons comes into view. */
@media (max-width: 1023px) {
    .matching-layout[b-0hz2db29oo] {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
    }

    /* width: its auto margins would otherwise shrink it to its content inside the column. */
    [b-0hz2db29oo] .matching-container {
        flex: 1 0 auto;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    [b-0hz2db29oo] .matching-container > .images-container {
        order: 2;
        margin-top: auto;
        margin-bottom: auto;
        padding: 12px 0;
    }

    [b-0hz2db29oo] .matching-container > .words-container {
        order: 3;
    }

    [b-0hz2db29oo] .matching-container > .navigation-buttons,
    [b-0hz2db29oo] .matching-container > .retry-hint {
        order: 4;
    }
}

/* --- Headings / instructions --- */
[b-0hz2db29oo] .instructions,
[b-0hz2db29oo] .completion-message {
    text-align: left;
    margin-bottom: 16px;
}

[b-0hz2db29oo] .task-label {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    margin: 0;
}

[b-0hz2db29oo] .instructions h1,
[b-0hz2db29oo] .completion-message h1 {
    font-weight: 700;
    font-size: clamp(22px, 5vw, 36px);
    margin: 4px 0 8px;
    color: #222;
}

[b-0hz2db29oo] .instructions p,
[b-0hz2db29oo] .completion-message p {
    font-size: clamp(13px, 2.5vw, 15px);
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 20px;
    color: #555;
}

/* --- Words (mobile-first) ---
   Below 1024px the words are a dock above the buttons, under the thumb: a soft grey sheet with
   up to three rows of words that are swiped sideways. It is in the page's flow, so it covers
   neither the buttons nor the footer, and sticks to the bottom of the screen while a long lesson
   is scrolled, so the words and the targets are on screen together.
   From 1024px they are the sticky bar at the top (see the desktop block). */
[b-0hz2db29oo] .words-container {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    margin: 8px -4px 0;
    background: #f7f8fa;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(26, 26, 26, 0.10);
    padding: 12px 0 14px;
}

/* How many are left, and what to do next. */
[b-0hz2db29oo] .words-status {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
    color: #8a8f98;
}

[b-0hz2db29oo] .words-count {
    flex-shrink: 0;
    font-weight: 600;
    color: #4a4f57;
}

[b-0hz2db29oo] .words-hint {
    min-width: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[b-0hz2db29oo] .words-hint.is-picked {
    color: #4d7cfe;
    font-weight: 600;
}

/* The sideways scroll; its bar is hidden, the word cut off at the edge says there is more. */
[b-0hz2db29oo] .words-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    [b-0hz2db29oo] .words-scroll::-webkit-scrollbar {
        display: none;
    }

/* As wide as its words: in the middle while they fit, scrolled from the first one when they do not.
   The words fill it column by column; the page says how many rows by how many words are left
   (rows-3, rows-2, rows-1), so many words show more at once and the last few stand in one line. */
[b-0hz2db29oo] .words-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: auto;
    gap: 8px;
    width: max-content;
    margin: 0 auto;
    padding: 2px 14px;
}

    /* The last few need no swiping: they wrap, in the middle. */
    [b-0hz2db29oo] .words-track.rows-1 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }

    [b-0hz2db29oo] .words-track.rows-2 {
        grid-template-rows: repeat(2, auto);
    }

    [b-0hz2db29oo] .words-track.rows-3 {
        grid-template-rows: repeat(3, auto);
    }

[b-0hz2db29oo] .word-box {
    flex-shrink: 0;
    padding: 6px 14px;
    border: 1.5px solid #dfe3ea;
    border-radius: 22px;
    cursor: pointer;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 64px;
    box-sizing: border-box;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

    [b-0hz2db29oo] .word-box:active {
        background-color: #e8eeff;
        border-color: #4d7cfe;
        transition-duration: 0s;
    }

    [b-0hz2db29oo] .word-box.dragging {
        opacity: 0.4;
    }

    /* In the dock a placed word is gone, and the dock with the last one. */
    [b-0hz2db29oo] .word-box.matched,
    [b-0hz2db29oo] .words-container.is-empty {
        display: none;
    }

    [b-0hz2db29oo] .word-box.selected {
        background-color: #4D7CFE;
        color: #fff;
        border-color: #4D7CFE;
        border-style: solid;
    }

/* --- Images / results grid --- */
/* The targets are inline boxes on centred lines, not grid cells: a row that is not
   full sits in the middle, and `text-wrap: balance` evens the rows out (7 targets
   where 6 fit make 4 + 3, not 6 + 1). A browser without it still centres every row.
   font-size 0 takes the width out of the spaces between the targets; the gaps are
   the targets' margins (--target-gap-y / --target-gap-x, half on each side). */
[b-0hz2db29oo] .images-container,
[b-0hz2db29oo] .results-container {
    --target-gap-y: 16px;
    --target-gap-x: 8px;
    display: block;
    text-align: center;
    text-wrap: balance;
    font-size: 0;
    line-height: 0;
    margin: 16px 0 8px;
}

/* --- Image target card --- */
[b-0hz2db29oo] .image-target {
    display: inline-flex;
    vertical-align: top;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    /* three in a row; the half pixel keeps a rounded-up width from wrapping the third */
    width: calc((100% - 3 * var(--target-gap-x)) / 3 - 0.5px);
    max-width: 170px;
    margin: calc(var(--target-gap-y) / 2) calc(var(--target-gap-x) / 2);
    font-size: 1rem;
    line-height: normal;
    text-wrap: wrap;
    -webkit-tap-highlight-color: transparent;
    z-index: 1;
}

/* --- Image circle --- */
/* On a phone as large as its third of the row allows, up to 104px. */
[b-0hz2db29oo] .image-circle {
    width: 100%;
    max-width: 104px;
    aspect-ratio: 1;
    border: 2px solid #ddd;
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: border-color 0.2s ease;
    background-color: #fff;
    flex-shrink: 0;
}

    [b-0hz2db29oo] .image-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        pointer-events: none;
        display: block;
    }

[b-0hz2db29oo] .text-image {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    color: #4a4a4a;
    word-break: break-word;
    overflow: hidden;
}

/* --- Image caption (shown only when image + textImage both exist) --- */
[b-0hz2db29oo] .image-caption {
    margin-top: 6px;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 10px;
    background: #f4f6fa;
    color: #4a5568;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(9px, 1.6vw, 11px);
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
    white-space: normal;
    letter-spacing: 0.1px;
    box-shadow: inset 0 0 0 1px #e6eaf2;
}

/* --- Labels stack (always in normal flow) --- */
[b-0hz2db29oo] .labels-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin-top: 6px;
    width: 100%;
}

/* Tighten the gap between caption and labels so the card stays compact */
[b-0hz2db29oo] .image-target.has-caption .labels-stack {
    margin-top: 4px;
}

/* --- Label pill --- */
[b-0hz2db29oo] .label {
    width: 100%;
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    color: #fff;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
}

    [b-0hz2db29oo] .label.correct {
        background: #92CD4D;
    }

    [b-0hz2db29oo] .label.incorrect {
        background: #FF4245;
        animation: shake-b-0hz2db29oo 0.35s ease;
    }

@keyframes shake-b-0hz2db29oo {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* --- Image modal (tap-to-expand on touch devices) --- */
[b-0hz2db29oo] .image-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

[b-0hz2db29oo] .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    overflow-y: auto;
}

[b-0hz2db29oo] .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #FF4245;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    -webkit-tap-highlight-color: transparent;
}

[b-0hz2db29oo] .modal-content img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 12px;
}

[b-0hz2db29oo] .expanded-text-image {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #ddd;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: #4a4a4a;
}

/* --- Expanded caption inside modal --- */
[b-0hz2db29oo] .expanded-caption {
    margin-top: -4px;
    padding: 8px 18px;
    border-radius: 14px;
    background: #f4f6fa;
    box-shadow: inset 0 0 0 1px #e6eaf2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 2.2vw, 18px);
    line-height: 1.3;
    color: #2d3748;
    text-align: center;
    max-width: 90%;
    word-break: break-word;
}

[b-0hz2db29oo] .expanded-labels {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

    [b-0hz2db29oo] .expanded-labels .label.correct,
    [b-0hz2db29oo] .expanded-labels .label.incorrect {
        min-width: 140px;
        max-width: 250px;
        font-size: 14px;
        padding: 10px 16px;
        min-height: auto;
    }

@keyframes spin-loader-b-0hz2db29oo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   Larger phones — 480px+
   ============================================================ */
@media (min-width: 480px) {
    [b-0hz2db29oo] .images-container,
    [b-0hz2db29oo] .results-container {
        --target-gap-x: 12px;
    }

    /* four in a row */
    [b-0hz2db29oo] .image-target {
        width: calc((100% - 4 * var(--target-gap-x)) / 4 - 0.5px);
    }

    [b-0hz2db29oo] .image-circle {
        width: 88px;
    }

    [b-0hz2db29oo] .labels-stack {
        max-width: 110px;
    }

    [b-0hz2db29oo] .image-caption {
        max-width: 110px;
        font-size: clamp(10px, 1.5vw, 12px);
        padding: 4px 9px;
    }

    [b-0hz2db29oo] .label {
        font-size: 11px;
        min-height: 30px;
        padding: 5px 10px;
    }
}

/* ============================================================
   Tablets — 768px+
   ============================================================ */
@media (min-width: 768px) {
    [b-0hz2db29oo] .matching-container,
    [b-0hz2db29oo] .completed-container {
        padding: 20px 16px;
    }

    [b-0hz2db29oo] .words-status {
        justify-content: center;
        gap: 16px;
    }

    [b-0hz2db29oo] .images-container,
    [b-0hz2db29oo] .results-container {
        --target-gap-y: 24px;
        --target-gap-x: 16px;
        margin: 20px 0 8px;
    }

    /* as many as fit */
    [b-0hz2db29oo] .image-target {
        width: 130px;
    }

    [b-0hz2db29oo] .image-circle {
        width: 110px;
        max-width: none;
    }

    [b-0hz2db29oo] .text-image {
        font-size: clamp(11px, 1.8vw, 14px);
        padding: 10px;
    }

    [b-0hz2db29oo] .labels-stack {
        max-width: 130px;
        margin-top: 8px;
    }

    [b-0hz2db29oo] .image-caption {
        max-width: 130px;
        margin-top: 8px;
        padding: 4px 10px;
        font-size: clamp(11px, 1.5vw, 13px);
        border-radius: 12px;
    }

    [b-0hz2db29oo] .image-target.has-caption .labels-stack {
        margin-top: 6px;
    }

    [b-0hz2db29oo] .label {
        font-size: 12px;
        min-height: 32px;
        padding: 6px 12px;
        border-radius: 16px;
    }

}

/* ============================================================
   Desktop — 1024px+
   ============================================================ */
@media (min-width: 1024px) {
    [b-0hz2db29oo] .matching-container,
    [b-0hz2db29oo] .completed-container {
        padding: 24px 20px;
        padding-top: var(--lesson-pad-top, 24px);
    }

    /* --- Sticky words bar (desktop only) --- */
    [b-0hz2db29oo] .words-container {
        position: sticky;
        top: 72px;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: 100;
        background: #fff;
        margin: 0;
        padding: 14px 16px;
        max-height: 30vh;
        overflow-y: auto;
        border-top: 0;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
        border-radius: 0 0 16px 16px;
        animation: none;
    }

    [b-0hz2db29oo] .words-container.is-empty {
        display: block;
    }

    /* In the bar a placed word leaves its empty place, so the other words do not move. */
    [b-0hz2db29oo] .word-box.matched {
        display: inline-flex;
        cursor: default;
        pointer-events: none;
    }

    [b-0hz2db29oo] .words-status {
        display: none;
    }

    [b-0hz2db29oo] .words-scroll {
        overflow: visible;
    }

    [b-0hz2db29oo] .words-track {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        width: auto;
        margin: 0;
        padding: 0;
    }

        /* thin scrollbar when many words overflow */
        [b-0hz2db29oo] .words-container::-webkit-scrollbar {
            width: 4px;
        }

        [b-0hz2db29oo] .words-container::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 2px;
        }

    /* Dashed: a thing to pick up and drag. */
    [b-0hz2db29oo] .word-box {
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0;
        white-space: normal;
        padding: 10px 22px;
        min-height: 42px;
        min-width: 120px;
        border: 2px dashed #ccc;
        border-radius: 24px;
    }

        @media (hover: hover) and (pointer: fine) {
            [b-0hz2db29oo] .word-box:hover {
                border-color: #4D7CFE;
                background: #f0f4ff;
            }
        }

    [b-0hz2db29oo] .images-container,
    [b-0hz2db29oo] .results-container {
        --target-gap-y: 30px;
        --target-gap-x: 30px;
        margin: 25px 0 5px;
        overflow: visible;
        padding-top: 50px;
    }

    /* --- Hover-to-enlarge on desktop --- */
    [b-0hz2db29oo] .image-target {
        width: 170px;
        position: relative;
        z-index: 1;
        transition: z-index 0s 0.3s;
    }

        @media (hover: hover) and (pointer: fine) {
            [b-0hz2db29oo] .image-target:hover {
                z-index: 10;
                transition: z-index 0s;
            }
        }

    [b-0hz2db29oo] .image-circle {
        width: 166px;
        max-width: none;
        overflow: visible;
        transition: border-color 0.3s ease;
    }

        [b-0hz2db29oo] .image-circle img {
            transition: transform 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
            background-color: #fff;
        }

    @media (hover: hover) and (pointer: fine) {
        [b-0hz2db29oo] .image-target:hover .image-circle {
            border-color: transparent;
        }
    }

        @media (hover: hover) and (pointer: fine) {
            [b-0hz2db29oo] .image-target:hover .image-circle img,
            [b-0hz2db29oo] .image-target:hover .text-image {
                transform: scale(1.5);
                border-radius: 20%;
                z-index: 10;
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
                background-color: #fff;
            }
        }

    [b-0hz2db29oo] .text-image {
        font-size: clamp(13px, 2vw, 17px);
        padding: 14px;
        line-height: 1.25;
        transition: transform 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
    }

    [b-0hz2db29oo] .labels-stack {
        max-width: 190px;
        margin-top: 10px;
        gap: 6px;
        transition: transform 0.3s ease;
    }

    [b-0hz2db29oo] .image-caption {
        max-width: 190px;
        margin-top: 10px;
        padding: 6px 14px;
        font-size: clamp(12px, 1.1vw, 14px);
        border-radius: 14px;
        transition: transform 0.3s ease;
    }

    [b-0hz2db29oo] .image-target.has-caption .labels-stack {
        margin-top: 8px;
    }

    /* Move caption + labels together on hover so the enlarged image has space */
    @media (hover: hover) and (pointer: fine) {
        [b-0hz2db29oo] .image-target:hover .labels-stack,
        [b-0hz2db29oo] .image-target:hover .image-caption {
            transform: translateY(50px);
        }
    }

    [b-0hz2db29oo] .label {
        min-width: 140px;
        min-height: 38px;
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 20px;
    }

    /* --- disable-hover: suppress enlarge during match processing --- */
    @media (hover: hover) and (pointer: fine) {
        [b-0hz2db29oo] .images-container.disable-hover .image-target:hover .image-circle img,
        [b-0hz2db29oo] .images-container.disable-hover .image-target:hover .text-image {
            transform: none;
            border-radius: 50%;
            box-shadow: none;
        }
    }

    @media (hover: hover) and (pointer: fine) {
        [b-0hz2db29oo] .images-container.disable-hover .image-target:hover .image-circle {
            border-color: #ddd;
        }
    }

    @media (hover: hover) and (pointer: fine) {
        [b-0hz2db29oo] .images-container.disable-hover .image-target:hover .labels-stack,
        [b-0hz2db29oo] .images-container.disable-hover .image-target:hover .image-caption {
            transform: none;
        }
    }

    /* Desktop images are large enough — hide tap-to-expand modal */
    [b-0hz2db29oo] .image-modal {
        display: none;
    }
}

/* ============================================================
   Large screens — 1400px+
   ============================================================ */
@media (min-width: 1400px) {
    [b-0hz2db29oo] .images-container,
    [b-0hz2db29oo] .results-container {
        --target-gap-y: 36px;
        --target-gap-x: 36px;
        margin: 22px 0 2px;
    }
}
/* /Components/Shared/ModuleHeader.razor.rz.scp.css */
.module-header[b-6uboayj7s4] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.module-header-icon[b-6uboayj7s4] {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    filter: brightness(0);
}

.module-header-title[b-6uboayj7s4] {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.module-type-name[b-6uboayj7s4] {
    color: #92CD4D;
    font-weight: 600;
}
/* /Components/Shared/NavigationButtons.razor.rz.scp.css */
/* Navigation Buttons */
.navigation-buttons[b-xd7zkzkauj] {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 40px;
}

    .navigation-buttons.after-hint[b-xd7zkzkauj] {
        margin-top: 12px;
    }

/* The line above the check button while a near miss waits for its retry: the yellow
   dot of the marked fields' note, words in the page's text colour. It sits over the
   buttons, on their side. */
.retry-hint[b-xd7zkzkauj] {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    margin: 40px 0 0;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

    /* The dot stays on the first line when the text wraps (1.4 line height, 14px type). */
    .retry-hint[b-xd7zkzkauj]::before {
        content: "";
        flex: none;
        width: 10px;
        height: 10px;
        margin-top: 5px;
        border-radius: 50%;
        background: #f5c518;
    }

/* Where the buttons stack to full width, the line is centred over them. */
@media (max-width: 992px) {
    .retry-hint[b-xd7zkzkauj] {
        justify-content: center;
        margin-top: 28px;
    }
}

    .navigation-buttons button[b-xd7zkzkauj] {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 46px;
        padding: 0 28px;
        font-family: 'Montserrat', sans-serif;
        font-size: 15px;
        font-weight: 600;
        border-radius: 23px;
        background: #fff;
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        letter-spacing: 0.3px;
        white-space: nowrap;
        /* No grey iOS tap rectangle over the pill, no 300ms tap delay, and a
           long press doesn't select the label. Press feedback is :active. */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
    }

        @media (hover: hover) and (pointer: fine) {
            .navigation-buttons button:hover[b-xd7zkzkauj] {
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
                transform: translateY(-2px);
            }
        }

        /* Pressed: fills with the button's colour instantly (no transition, so
           even a quick tap shows it) and sinks slightly. */
        .navigation-buttons button:active[b-xd7zkzkauj] {
            transform: scale(0.97);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
            transition-duration: 0s;
        }

        .navigation-buttons button:focus-visible[b-xd7zkzkauj] {
            outline: 3px solid rgba(77, 124, 254, 0.35);
            outline-offset: 2px;
        }

        .navigation-buttons button:disabled[b-xd7zkzkauj] {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* Action still running (page loading): stays filled and shows a
           spinner in place of the label, so the tap is visibly taken. */
        .navigation-buttons button.is-busy[b-xd7zkzkauj] {
            cursor: progress;
        }

            .navigation-buttons button.is-busy .nav-label[b-xd7zkzkauj] {
                visibility: hidden;
            }

            .navigation-buttons button.is-busy[b-xd7zkzkauj]::after {
                content: "";
                position: absolute;
                top: 50%;
                left: 50%;
                width: 18px;
                height: 18px;
                margin: -9px 0 0 -9px;
                border: 2px solid currentColor;
                border-right-color: transparent;
                border-radius: 50%;
                animation: nav-spin-b-xd7zkzkauj 0.7s linear infinite;
            }

@keyframes nav-spin-b-xd7zkzkauj {
    to {
        transform: rotate(360deg);
    }
}

.nav-right[b-xd7zkzkauj] {
    min-width: 160px;
    border: 2px solid #92CD4D;
    color: #92CD4D;
}

    @media (hover: hover) and (pointer: fine) {
        .nav-right:hover[b-xd7zkzkauj] {
            background: #92CD4D;
            color: #fff;
            border-color: #92CD4D;
        }
    }

    .nav-right:active[b-xd7zkzkauj],
    .nav-right.is-busy[b-xd7zkzkauj] {
        background: #92CD4D;
        color: #fff;
        border-color: #92CD4D;
    }

    /* "Скачать PDF" is an ordinary action, not the way forward: blue, and on the
       side "Далее" is not (left of the back button on wide screens, last when
       stacked), where "Пропустить" and "Повторить" sit on the other pages. */
    .nav-right.pdf-download[b-xd7zkzkauj] {
        min-width: 160px;
        border: 2px solid #4D7CFE;
        color: #4D7CFE;
        order: -1;
    }

        @media (hover: hover) and (pointer: fine) {
            .nav-right.pdf-download:hover[b-xd7zkzkauj] {
                background: #4D7CFE;
                color: #fff;
                border-color: #4D7CFE;
            }
        }

        .nav-right.pdf-download:active[b-xd7zkzkauj],
        .nav-right.pdf-download.is-busy[b-xd7zkzkauj] {
            background: #4D7CFE;
            color: #fff;
            border-color: #4D7CFE;
        }

.nav-left[b-xd7zkzkauj] {
    min-width: 270px;
    border: 2px solid #4D7CFE;
    color: #4D7CFE;
}

    @media (hover: hover) and (pointer: fine) {
        .nav-left:hover[b-xd7zkzkauj] {
            background: #4D7CFE;
            color: #fff;
            border-color: #4D7CFE;
        }
    }

    .nav-left:active[b-xd7zkzkauj],
    .nav-left.is-busy[b-xd7zkzkauj] {
        background: #4D7CFE;
        color: #fff;
        border-color: #4D7CFE;
    }

/* Tablet and phone: stacked, full-width, 48px tall (the common touch-target
   size for full-width buttons; Apple's minimum is 44pt). */
@media (max-width: 992px) {
    .navigation-buttons[b-xd7zkzkauj] {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
        margin-top: 28px;
    }

        .navigation-buttons button[b-xd7zkzkauj] {
            height: 48px;
            padding: 0 20px;
            font-size: 15px;
            border-radius: 24px;
            box-shadow: none;
        }

    .nav-right[b-xd7zkzkauj],
    .nav-left[b-xd7zkzkauj] {
        width: 100%;
        min-width: 0;
    }
}

/* Small mobile (iPhone Pro, iPhone Mini, etc.) */
@media (max-width: 480px) {
    .navigation-buttons[b-xd7zkzkauj] {
        gap: 10px;
        margin-top: 20px;
    }

        .navigation-buttons button[b-xd7zkzkauj] {
            letter-spacing: 0.2px;
        }
}

[b-xd7zkzkauj] .nav-repeat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 23px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    letter-spacing: 0.3px;
    min-width: 160px;
    border: 2px solid #EDC829;
    color: #EDC829;
    order: -1;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

    @media (hover: hover) and (pointer: fine) {
        [b-xd7zkzkauj] .nav-repeat:hover {
            background: #EDC829;
            color: #fff;
            border-color: #EDC829;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }
    }

    [b-xd7zkzkauj] .nav-repeat:active {
        background: #EDC829;
        color: #fff;
        border-color: #EDC829;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transform: scale(0.97);
        transition-duration: 0s;
    }

    /* "Пропустить" while the next page loads: stays filled, the spinner in place of the label. */
    .nav-skip.is-busy[b-xd7zkzkauj] {
        background: #EDC829;
        color: #fff;
        border-color: #EDC829;
    }

    [b-xd7zkzkauj] .nav-repeat:focus-visible {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    [b-xd7zkzkauj] .nav-repeat:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

@media (max-width: 992px) {
    [b-xd7zkzkauj] .nav-repeat {
        width: 100%;
        min-width: 0;
        height: 48px;
        padding: 0 20px;
        font-size: 15px;
        border-radius: 24px;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    [b-xd7zkzkauj] .nav-repeat {
        letter-spacing: 0.2px;
    }
}
/* /Components/Shared/PremiumPrompt.razor.rz.scp.css */
/* Same yellow as the lesson page's premium state (lessons.css) */
.premium-prompt[b-zq406ri99y] {
    flex: 1 1 360px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
    padding: 12px 14px 12px 18px;
    font-family: 'Montserrat', sans-serif;
    background: #fef9e7;
    border: 1px solid #f3e2a3;
    border-radius: 16px;
}

.premium-prompt-text[b-zq406ri99y] {
    flex: 1 1 220px;
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
    color: #6b5500;
}

/* Outlined pill of NavigationButtons, in the premium yellow */
.premium-prompt-btn[b-zq406ri99y] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 160px;
    height: 46px;
    padding: 0 28px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: #8a6500;
    background: #fff;
    border: 2px solid #edc829;
    border-radius: 23px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

    .premium-prompt-btn:active[b-zq406ri99y] {
        transform: scale(0.98);
        color: #1a1a1a;
        background: #edc829;
    }

    .premium-prompt-btn:focus-visible[b-zq406ri99y] {
        outline: 2px solid #edc829;
        outline-offset: 2px;
    }

/* Hover (mouse/trackpad only — see CLAUDE.md) */
@media (hover: hover) and (pointer: fine) {
    .premium-prompt-btn:hover[b-zq406ri99y] {
        color: #1a1a1a;
        background: #edc829;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .premium-prompt[b-zq406ri99y] {
        flex-basis: auto;
    }

    .premium-prompt-btn[b-zq406ri99y] {
        width: 100%;
    }
}

/* Phones: the iOS-sized tap target the pages' main buttons use */
@media (max-width: 480px) {
    .premium-prompt-btn[b-zq406ri99y] {
        height: 56px;
        padding: 0 20px;
        font-size: 16px;
        border-radius: 28px;
    }
}
/* /Components/Shared/QuestionsSection.razor.rz.scp.css */
/* ── Custom Properties ──────────────────────────────────────────────── */
.questions-section-root[b-g5or6pjmer] {
    /* Palette */
    --qs-green: #92CD4D;
    --qs-green-glow: rgba(146, 205, 77, 0.2);
    --qs-red: #FF4245;
    --qs-red-glow: rgba(255, 66, 69, 0.12);
    --qs-blue: #4d7cfe;
    --qs-blue-glow: rgba(77, 124, 254, 0.14);
    --qs-border: #e4e7ed;
    --qs-border-input: #c5c9d3;
    --qs-text: #333;
    --qs-text-light: #888;
    --qs-white: #fff;
    --qs-bg-disabled: #f7f8fc;
    --qs-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 3px 10px rgba(0, 0, 0, 0.04);
    --qs-modal-bg: rgba(0, 0, 0, 0.65);
    --qs-modal-close: rgba(0, 0, 0, 0.45);
    --qs-modal-close-hover: rgba(0, 0, 0, 0.7);
    /* Radii — unified */
    --qs-radius-xs: 8px;
    --qs-radius-sm: 10px;
    --qs-radius-md: 14px;
    --qs-radius-lg: 14px;
    --qs-radius-round: 50%;
    /* Spacing tokens */
    --qs-gap-xs: 6px;
    --qs-gap-sm: 10px;
    --qs-gap-md: 14px;
    --qs-content-pad: clamp(1rem, 2.5vw, 1.5rem);
    /* Typography */
    --qs-fs-body: clamp(0.9rem, 0.3vw + 0.85rem, 1.05rem);
    --qs-fs-control: clamp(0.9rem, 0.3vw + 0.85rem, 1rem);
    /* Controls */
    --qs-control-h: 42px;
    --qs-input-border: 1.5px solid var(--qs-border-input);
    --qs-button-border: 1.5px solid var(--qs-border);
    /* Motion */
    --qs-transition: 0.2s ease;
    --qs-transition-slow: 0.3s ease;
}

/* ── Section Layout ─────────────────────────────────────────────────── */
.questions-section[b-g5or6pjmer] {
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

    .questions-section h2[b-g5or6pjmer] {
        font-size: clamp(1.1rem, 0.5vw + 1rem, 1.35rem);
        font-weight: 700;
        color: var(--qs-text);
        margin: 0 0 clamp(0.75rem, 2vw, 1.25rem) 0;
        letter-spacing: -0.2px;
    }

/* ── Question Grid ──────────────────────────────────────────────────── */
.question-grid[b-g5or6pjmer] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
    gap: clamp(16px, 3vw, 28px);
    align-items: stretch;
}

/* ── Question Card (single shared shell) ────────────────────────────── */
.question-block[b-g5or6pjmer] {
    background: var(--qs-white);
    border: 1px solid var(--qs-border);
    border-radius: var(--qs-radius-md);
    padding: var(--qs-content-pad);
    box-shadow: var(--qs-card-shadow);
    display: flex;
    flex-direction: column;
    /* The gap between the card's parts; the phone blocks below set it smaller */
    --qs-card-gap: var(--qs-gap-md);
    gap: var(--qs-card-gap);
    min-width: 0;
    height: 100%;
}

/* Unified question text across every variant */
.question-text[b-g5or6pjmer],
.basic-options p[b-g5or6pjmer],
.sentence-translation > p[b-g5or6pjmer],
.word-translation p[b-g5or6pjmer],
.fill-blank p[b-g5or6pjmer] {
    font-size: var(--qs-fs-body);
    color: var(--qs-text);
    line-height: 1.55;
    margin: 0;
}

.question-text[b-g5or6pjmer] {
    font-weight: 500;
    margin: 0 0 var(--qs-gap-sm) 0;
    display: table;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    max-width: 100%;
}

/* Basic: the text to work on ("Abends ich esse zu Abend.") is the card's main line, centred like the
   question while it fits on one line and left-aligned once it wraps */
.basic-options p[b-g5or6pjmer] {
    display: table;
    margin: 0 auto var(--qs-gap-sm) auto;
    max-width: 100%;
    text-align: left;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* ...and the question above it ("Исправьте:") is its instruction: a small label close to the text */
.question-text.question-lead[b-g5or6pjmer] {
    font-size: 0.82em;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #4a4f57;
    /* 6px to the text, whatever the card's gap is at this width */
    margin-bottom: calc(var(--qs-gap-xs) - var(--qs-card-gap));
}

/* ══════════════════════════════════════════════════════════════════════
   INTERACTIVE BUTTONS — shared base
   ══════════════════════════════════════════════════════════════════════ */
.option-button[b-g5or6pjmer],
.transport-button[b-g5or6pjmer],
.choice-button[b-g5or6pjmer] {
    border: var(--qs-button-border);
    background-color: var(--qs-white);
    color: var(--qs-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    box-sizing: border-box;
    font-family: inherit;
    font-size: var(--qs-fs-control);
    font-weight: 500;
    min-height: var(--qs-control-h);
    border-radius: var(--qs-radius-sm);
    padding: 8px 12px;
    /* A word longer than the whole row breaks inside the button. break-word, not anywhere: it leaves
       the button's minimum width at its longest word, which is what lets the option rows below give a
       long word the room it needs instead of breaking it. */
    overflow-wrap: break-word;
    transition: background-color var(--qs-transition), color var(--qs-transition), border-color var(--qs-transition), box-shadow var(--qs-transition), transform var(--qs-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

    @media (hover: hover) and (pointer: fine) {
        .option-button:hover:not(:disabled):not(.selected):not(.correct-option):not(.incorrect-option)[b-g5or6pjmer],
        .transport-button:hover:not(:disabled):not(.selected):not(.correct-option):not(.incorrect-option)[b-g5or6pjmer],
        .choice-button:hover:not(:disabled):not(.selected):not(.correct-option):not(.incorrect-option)[b-g5or6pjmer] {
            border-color: var(--qs-blue);
            box-shadow: 0 0 0 3px var(--qs-blue-glow);
        }
    }

    .option-button:focus-visible[b-g5or6pjmer],
    .transport-button:focus-visible[b-g5or6pjmer],
    .choice-button:focus-visible[b-g5or6pjmer] {
        outline: 2px solid var(--qs-blue);
        outline-offset: 2px;
    }

    .option-button.selected[b-g5or6pjmer],
    .transport-button.selected[b-g5or6pjmer],
    .choice-button.selected[b-g5or6pjmer] {
        background-color: var(--qs-blue);
        color: var(--qs-white);
        border-color: transparent;
        box-shadow: 0 2px 8px var(--qs-blue-glow);
    }

    .option-button:active:not(:disabled)[b-g5or6pjmer],
    .transport-button:active:not(:disabled)[b-g5or6pjmer],
    .choice-button:active:not(:disabled)[b-g5or6pjmer] {
        transform: scale(0.97);
    }

    .option-button:disabled[b-g5or6pjmer],
    .transport-button:disabled[b-g5or6pjmer],
    .choice-button:disabled[b-g5or6pjmer] {
        cursor: default;
        opacity: 0.85;
    }

/* ══════════════════════════════════════════════════════════════════════
   INPUTS — shared base
   ══════════════════════════════════════════════════════════════════════ */
.open-answer[b-g5or6pjmer],
.blank-input[b-g5or6pjmer],
.translation-input[b-g5or6pjmer],
.translation-textarea[b-g5or6pjmer] {
    box-sizing: border-box;
    user-select: text;
    font-family: inherit;
    font-size: var(--qs-fs-control);
    color: var(--qs-text);
    background-color: var(--qs-white);
    border: var(--qs-input-border);
    border-radius: var(--qs-radius-sm);
    transition: border-color var(--qs-transition), box-shadow var(--qs-transition);
    -webkit-appearance: none;
    appearance: none;
}

    .open-answer:focus[b-g5or6pjmer],
    .blank-input:focus[b-g5or6pjmer],
    .translation-input:focus[b-g5or6pjmer],
    .translation-textarea:focus[b-g5or6pjmer] {
        outline: none;
        border-color: var(--qs-blue);
        box-shadow: 0 0 0 3px var(--qs-blue-glow);
    }

    .open-answer:disabled[b-g5or6pjmer],
    .blank-input:disabled[b-g5or6pjmer],
    .translation-input:disabled[b-g5or6pjmer],
    .translation-textarea:disabled[b-g5or6pjmer] {
        background-color: var(--qs-bg-disabled);
        color: #666;
        cursor: default;
    }

    .open-answer[b-g5or6pjmer]::placeholder,
    .blank-input[b-g5or6pjmer]::placeholder,
    .translation-input[b-g5or6pjmer]::placeholder,
    .translation-textarea[b-g5or6pjmer]::placeholder {
        color: #b0b4bf;
        font-style: italic;
        font-size: 0.88em;
    }

/* ── Multiple Choice — Numbers ──────────────────────────────────────── */
.number-options[b-g5or6pjmer] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--qs-gap-sm);
}

.option-button[b-g5or6pjmer] {
    min-width: var(--qs-control-h);
    padding: 8px 10px;
}

/* ── Multiple Choice — Words ────────────────────────────────────────── */
/* The options in pairs: a wrapping row whose buttons share each line. A grid of two 1fr columns could
   not shrink a column below its longest word, so two long words side by side pushed the grid out of a
   narrow card. Here a button asks for a bit under half the row (so a pair still fits when one of them
   needs more than half for a long word) and never less than its longest word; the pair then shares the
   line, equally when both are short, and only a word that will not fit beside anything takes a line of
   its own. Wider cards (the single-column layouts below) go back to exact halves. */
.transport-options[b-g5or6pjmer] {
    --opt-gap: var(--qs-gap-sm);
    --opt-basis: 38%;
    display: flex;
    flex-wrap: wrap;
    gap: var(--opt-gap);
    width: 100%;
}

.transport-button[b-g5or6pjmer] {
    flex: 1 1 var(--opt-basis);
    width: auto;
}

/* ── Basic / Open Text ──────────────────────────────────────────────── */
.open-answer[b-g5or6pjmer] {
    display: block;
    width: 100%;
    max-width: 400px;
    min-height: 80px;
    max-height: 300px;
    padding: 12px;
    line-height: 1.55;
    resize: none;
}

/* ── Fill in the Blank ──────────────────────────────────────────────── */
.fill-blank[b-g5or6pjmer] {
    display: flex;
    flex-direction: column;
    gap: var(--qs-gap-xs);
}

    .fill-blank p[b-g5or6pjmer] {
        white-space: normal;
        line-height: 2;
        display: table; /* shrink-to-fit so margin auto centers */
        margin: 0 auto; /* center horizontally on a single line */
        max-width: 100%; /* when content wraps, fill the row -> left-aligns */
        text-align: left;
        word-spacing: 2px;
    }

.blank-input[b-g5or6pjmer] {
    width: clamp(100px, 18vw, 150px);
    max-width: 100%;
    height: 2em;
    padding: 0 10px;
    margin: 0 2px;
    display: inline-block;
    vertical-align: middle;
    background-color: #f7f8fc;
    border: none;
    border-bottom: 2px solid var(--qs-border-input);
    border-radius: 6px 6px 2px 2px;
    box-shadow: none;
    font-size: var(--qs-fs-control);
    color: var(--qs-text);
    transition: background-color var(--qs-transition), border-color var(--qs-transition), box-shadow var(--qs-transition);
}

    @media (hover: hover) and (pointer: fine) {
        .blank-input:hover:not(:disabled):not(:focus)[b-g5or6pjmer] {
            background-color: #f1f3f9;
            border-bottom-color: #a8b0c2;
        }
    }

    .blank-input:focus[b-g5or6pjmer] {
        outline: none;
        background-color: #eaf0ff;
        border-bottom-color: var(--qs-blue);
        box-shadow: 0 2px 0 0 var(--qs-blue);
    }

    .blank-input:disabled[b-g5or6pjmer] {
        background-color: var(--qs-bg-disabled);
        border-bottom-color: var(--qs-border-input);
        color: #666;
        cursor: default;
    }

    .blank-input[b-g5or6pjmer]::placeholder {
        color: #b8c2d8;
        font-style: italic;
        font-size: 0.88em;
    }

    /* Feedback overrides — keep border-bottom style consistent */
    .blank-input.correct-input[b-g5or6pjmer] {
        background-color: rgba(146, 205, 77, 0.08) !important;
        border-bottom-color: var(--qs-green) !important;
        box-shadow: 0 2px 0 0 var(--qs-green) !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-width: 2px !important;
    }

    .blank-input.incorrect-input[b-g5or6pjmer] {
        background-color: rgba(255, 66, 69, 0.06) !important;
        border-bottom-color: var(--qs-red) !important;
        box-shadow: 0 2px 0 0 var(--qs-red) !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-width: 2px !important;
    }

/* ── Translation ────────────────────────────────────────────────────── */
.sentence-translation[b-g5or6pjmer] {
    display: flex;
    flex-direction: column;
    gap: var(--qs-gap-sm);
}

    .sentence-translation > p[b-g5or6pjmer] {
        display: table;
        margin: 0 auto var(--qs-gap-sm) auto;
        max-width: 100%;
        text-align: left;
        font-weight: 500;
    }

.word-translation[b-g5or6pjmer] {
    display: flex;
    flex-direction: column;
    gap: var(--qs-gap-sm);
}

    .word-translation p[b-g5or6pjmer] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--qs-gap-sm);
    }

.translation-input[b-g5or6pjmer] {
    width: min(220px, 100%);
    height: var(--qs-control-h);
    padding: 4px 12px;
}

.translation-textarea[b-g5or6pjmer] {
    width: 100%;
    max-width: 400px;
    min-height: 80px;
    padding: 12px;
    resize: none;
    line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════════════
   IMAGE QUESTIONS — Top Square (MC with Image)
   ══════════════════════════════════════════════════════════════════════ */
.top-square[b-g5or6pjmer] {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: transparent;
    overflow: visible;
    z-index: 1;
    flex: 1;
}

    @media (hover: hover) and (pointer: fine) {
        .top-square:hover[b-g5or6pjmer] {
            z-index: 100;
        }
    }

.top-square-content[b-g5or6pjmer] {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--qs-gap-md);
}

.top-square-image[b-g5or6pjmer] {
    width: clamp(120px, 18vw, 158px);
    height: clamp(120px, 18vw, 158px);
    object-fit: contain;
    padding: 2px;
    border: 1px solid white;
    border-radius: var(--qs-radius-sm);
    background-color: white;
    transition: transform var(--qs-transition-slow), border-radius var(--qs-transition-slow), box-shadow var(--qs-transition-slow);
    position: relative;
    z-index: 7;
    transform-origin: center center;
    cursor: pointer;
}

    @media (hover: hover) and (pointer: fine) {
        .top-square-image:hover[b-g5or6pjmer] {
            transform: scale(1.5);
            border-radius: var(--qs-radius-md);
            z-index: 10;
            border-color: transparent;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
    }

/* The question's text, between the picture and the options; it moves aside with the options when the picture grows */
.top-square-question[b-g5or6pjmer] {
    margin: 0 auto;
    max-width: 100%;
    overflow-wrap: anywhere;
    position: relative;
    z-index: 5;
    transition: transform var(--qs-transition-slow);
}

@media (hover: hover) and (pointer: fine) {
    .top-square-image:hover ~ .top-square-question[b-g5or6pjmer] {
        transform: translateY(20px);
    }
}

/* The same pairing row as .transport-options (see there) */
.choice-buttons-container[b-g5or6pjmer] {
    --opt-gap: var(--qs-gap-sm);
    --opt-basis: 38%;
    display: flex;
    flex-wrap: wrap;
    gap: var(--opt-gap);
    width: 100%;
    position: relative;
    z-index: 5;
    transition: transform var(--qs-transition-slow);
    margin-top: auto;
}

@media (hover: hover) and (pointer: fine) {
    .top-square-image:hover ~ .choice-buttons-container[b-g5or6pjmer] {
        transform: translateY(20px);
    }
}

.choice-button[b-g5or6pjmer] {
    flex: 1 1 var(--opt-basis);
    width: auto;
}

/* ══════════════════════════════════════════════════════════════════════
   IMAGE QUESTIONS — Bottom Square (Fill-in with Image)
   ══════════════════════════════════════════════════════════════════════ */
.bottom-square[b-g5or6pjmer] {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: var(--qs-gap-md);
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    flex: 1;
}

.question-header[b-g5or6pjmer] {
    width: 100%;
}

.bottom-square-content[b-g5or6pjmer] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--qs-gap-md);
    position: relative;
    width: 100%;
    flex: 1;
}

.bottom-square-image[b-g5or6pjmer] {
    width: clamp(120px, 18vw, 158px);
    height: clamp(120px, 18vw, 158px);
    object-fit: contain;
    flex-shrink: 0;
    padding: 2px;
    border: 1px solid white;
    border-radius: var(--qs-radius-sm);
    background-color: white;
    transition: transform var(--qs-transition-slow), border-radius var(--qs-transition-slow), box-shadow var(--qs-transition-slow);
    position: relative;
    z-index: 7;
    transform-origin: center center;
    cursor: pointer;
    align-self: center;
    margin: 0;
}

    @media (hover: hover) and (pointer: fine) {
        .bottom-square-image:hover[b-g5or6pjmer] {
            transform: scale(1.5);
            border-radius: var(--qs-radius-md);
            z-index: 10;
            border-color: transparent;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
    }

.bottom-square-inputs[b-g5or6pjmer] {
    width: 100%;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform var(--qs-transition-slow);
    position: relative;
    z-index: 5;
    overflow: visible;
    margin-left: 0;
}

    .bottom-square-inputs .blank-input[b-g5or6pjmer] {
        width: clamp(100px, 22vw, 170px);
        max-width: 100%;
    }

@media (hover: hover) and (pointer: fine) {
    .bottom-square-image:hover ~ .bottom-square-inputs[b-g5or6pjmer] {
        transform: translateY(20px);
    }
}

.bottom-square-inputs input[b-g5or6pjmer],
.bottom-square-inputs button[b-g5or6pjmer],
.bottom-square-inputs textarea[b-g5or6pjmer] {
    position: relative;
    z-index: 6;
}

.bottom-square-inputs .fill-blank[b-g5or6pjmer] {
    width: 100%;
}

    /* Center the sentence row when it fits on one line; left-align when it wraps */
    .bottom-square-inputs .fill-blank p[b-g5or6pjmer] {
        display: table;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        text-align: left;
    }

    /* Same treatment for the per-blank feedback line so it stays under the row */
    .bottom-square-inputs .fill-blank .correct-feedback[b-g5or6pjmer] {
        display: table;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        text-align: left;
    }

/* ══════════════════════════════════════════════════════════════════════
   ANSWER FEEDBACK STATES
   ══════════════════════════════════════════════════════════════════════ */
.correct-option[b-g5or6pjmer] {
    background-color: var(--qs-green) !important;
    color: var(--qs-white) !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(146, 205, 77, 0.3) !important;
}

.incorrect-option[b-g5or6pjmer] {
    background-color: var(--qs-red) !important;
    color: var(--qs-white) !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(255, 66, 69, 0.25) !important;
}

/* Options the student picked carry a mark, so a fill always means "you chose this" */
.correct-option[b-g5or6pjmer]::before,
.incorrect-option[b-g5or6pjmer]::before {
    font-weight: 700;
    margin-right: 6px;
}

.correct-option[b-g5or6pjmer]::before {
    content: "✓";
}

.incorrect-option[b-g5or6pjmer]::before {
    content: "✗";
}

/* Correct option the student did not pick: outlined, never filled */
.missed-option[b-g5or6pjmer] {
    background-color: rgba(146, 205, 77, 0.1) !important;
    color: #4f7f1a !important;
    border: 2px dashed var(--qs-green) !important;
    box-shadow: none !important;
}

/* Wrong option the student correctly left alone: step back */
.unselected-option[b-g5or6pjmer] {
    opacity: 0.5 !important;
}

.mc-feedback[b-g5or6pjmer] {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .mc-feedback .correct-feedback[b-g5or6pjmer] {
        margin-top: 0;
    }

.mc-legend[b-g5or6pjmer] {
    color: var(--qs-text-light);
    font-size: 0.8rem;
    line-height: 1.4;
}

.correct-input[b-g5or6pjmer] {
    border-color: var(--qs-green) !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 3px var(--qs-green-glow) !important;
}

.incorrect-input[b-g5or6pjmer] {
    border-color: var(--qs-red) !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 3px var(--qs-red-glow) !important;
}

/* A near miss waiting for its one retry: the yellow is the accent (border, soft
   fill, the bar of the note); the words on and beside it are ink. */
.near-miss-input[b-g5or6pjmer] {
    border-color: #f5c518 !important;
    border-width: 2px !important;
    background-color: #fef9e7 !important;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.25) !important;
    color: #1a1a1a !important;
}

    .blank-input.near-miss-input[b-g5or6pjmer] {
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom-color: #f5c518 !important;
        box-shadow: 0 2px 0 0 #f5c518 !important;
    }

/* The note under a marked field: the type of .correct-feedback, with the dot of the
   results legend in the retry's yellow. */
.near-miss-note[b-g5or6pjmer] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: var(--qs-gap-xs);
    color: var(--qs-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

    /* The dot stays on the first line when the note wraps. */
    .near-miss-note[b-g5or6pjmer]::before {
        content: "";
        flex: none;
        width: 10px;
        height: 10px;
        margin-top: calc((1.4em - 10px) / 2);
        border-radius: 50%;
        background: #f5c518;
    }

    /* In the picture card the blank sits centred under the image, and so does its note. */
    .bottom-square-inputs .fill-blank .near-miss-note[b-g5or6pjmer] {
        justify-content: center;
    }

/* The line above the questions (what today's review holds). */
.qs-intro[b-g5or6pjmer] {
    margin: 0 0 clamp(16px, 3vw, 28px) 0;
}

/* The line at the foot of the results card (what the check did). */
.results-footer[b-g5or6pjmer] {
    padding-top: clamp(12px, 2vw, 16px);
    border-top: 1px solid var(--qs-border);
}

.correct-feedback[b-g5or6pjmer] {
    color: var(--qs-green);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: var(--qs-gap-xs);
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════════
   IMAGE MODAL
   ══════════════════════════════════════════════════════════════════════ */
.image-modal[b-g5or6pjmer] {
    display: flex;
    position: fixed;
    inset: 0;
    background-color: var(--qs-modal-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    box-sizing: border-box;
    animation: qs-fade-in-b-g5or6pjmer 0.2s ease;
}

@keyframes qs-fade-in-b-g5or6pjmer {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content[b-g5or6pjmer] {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    width: fit-content;
    background: var(--qs-white);
    border-radius: var(--qs-radius-md);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: qs-scale-in-b-g5or6pjmer 0.2s ease;
}

@keyframes qs-scale-in-b-g5or6pjmer {
    from {
        transform: scale(0.94);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img[b-g5or6pjmer] {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: var(--qs-radius-sm);
    display: block;
}

.close-button[b-g5or6pjmer] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: var(--qs-modal-close);
    backdrop-filter: blur(8px);
    color: var(--qs-white);
    border: none;
    border-radius: var(--qs-radius-round);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    line-height: 1;
    transition: background-color var(--qs-transition), transform var(--qs-transition);
}

    @media (hover: hover) and (pointer: fine) {
        .close-button:hover[b-g5or6pjmer] {
            background: var(--qs-modal-close-hover);
            transform: scale(1.1);
        }
    }

    .close-button:focus-visible[b-g5or6pjmer] {
        outline: 2px solid var(--qs-white);
        outline-offset: 2px;
    }

/* ══════════════════════════════════════════════════════════════════════
   TOUCH PRESS FEEDBACK — the hover effects above are gated behind
   (hover: hover) and (pointer: fine), so touch never sees them
   ══════════════════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
    /* Subtle press feedback on touch instead of hover */
    .top-square-image:active[b-g5or6pjmer],
    .bottom-square-image:active[b-g5or6pjmer] {
        transform: scale(0.97);
    }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .question-grid[b-g5or6pjmer] {
        grid-template-columns: 1fr;
        gap: clamp(14px, 2.5vw, 22px);
    }

    /* One wide card per row: the options in two exact halves */
    .transport-options[b-g5or6pjmer],
    .choice-buttons-container[b-g5or6pjmer] {
        --opt-basis: calc(50% - var(--opt-gap) / 2);
    }

    .open-answer[b-g5or6pjmer],
    .translation-textarea[b-g5or6pjmer] {
        max-width: 100%;
    }

    /* Cards no longer need to stretch — let them hug their content */
    .question-block[b-g5or6pjmer] {
        height: auto;
    }

    .top-square[b-g5or6pjmer],
    .bottom-square[b-g5or6pjmer] {
        flex: 0 0 auto;
    }

    /* Bottom-anchoring is unnecessary in single-column layout */
    .number-selection .number-options[b-g5or6pjmer],
    .transport-selection .transport-options[b-g5or6pjmer],
    .fill-in-blank .fill-blank[b-g5or6pjmer],
    .translation .word-translation[b-g5or6pjmer],
    .choice-buttons-container[b-g5or6pjmer] {
        margin-top: 0;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .questions-section[b-g5or6pjmer] {
        margin-top: clamp(1.25rem, 4vw, 2rem);
    }

    .question-grid[b-g5or6pjmer] {
        gap: 14px;
    }

    .question-block[b-g5or6pjmer] {
        padding: 16px;
        border-radius: var(--qs-radius-sm);
        --qs-card-gap: 12px;
    }

    .question-text[b-g5or6pjmer] {
        margin-bottom: 4px;
    }

    /* Bigger tap targets on touch */
    .option-button[b-g5or6pjmer],
    .transport-button[b-g5or6pjmer],
    .choice-button[b-g5or6pjmer] {
        min-height: 46px;
    }

    .blank-input[b-g5or6pjmer],
    .translation-input[b-g5or6pjmer] {
        height: 46px;
    }

    .number-options[b-g5or6pjmer] {
        justify-content: flex-start;
        gap: 8px;
    }

    .option-button[b-g5or6pjmer] {
        min-width: 46px;
        flex: 0 0 auto;
    }

    .transport-options[b-g5or6pjmer] {
        --opt-gap: 8px;
        width: 100%;
        max-width: none;
    }

    .choice-buttons-container[b-g5or6pjmer] {
        --opt-gap: 8px;
    }

    .choice-button[b-g5or6pjmer] {
        max-width: none;
        margin: 0;
    }

    /* Inline blanks expand to fill row width on mobile (standalone fill-in) */
    .fill-in-blank .blank-input[b-g5or6pjmer] {
        width: 100%;
        flex: 1 1 120px;
        min-width: 100px;
    }

    .fill-blank p[b-g5or6pjmer] {
        gap: 6px;
    }

    /* ──────────────────────────────────────────────────────────────────
       BOTTOM-SQUARE (fill-in WITH image) on mobile.
       Sentence is a wrapping flex row so words sit BESIDE the input on
       the same line — including short cases like "der [input]" or
       "[input] die".
       ────────────────────────────────────────────────────────────────── */
    .bottom-square[b-g5or6pjmer] {
        gap: 10px;
    }

    /* Smaller image leaves more room for the sentence */
    .bottom-square-image[b-g5or6pjmer] {
        width: clamp(96px, 28vw, 130px);
        height: clamp(96px, 28vw, 130px);
    }

    /* Sentence row: flex wrap, baseline-aligned, left-justified */
    .bottom-square-inputs .fill-blank p[b-g5or6pjmer] {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: flex-start;
        gap: 6px 8px;
        line-height: 1.55;
        text-align: left;
        word-spacing: normal;
        max-width: 100%;
        margin: 0;
    }

    /* Input flexes inside the sentence row.
       Critical:  min-width: 0  — overrides the input's intrinsic
       min-content width so it can shrink and stay on the same row
       as a short word like "der" or "die". */
    .bottom-square-inputs .blank-input[b-g5or6pjmer] {
        flex: 1 1 90px;
        width: auto;
        min-width: 0;
        max-width: 100%;
        height: 2.4em;
        padding: 0 10px;
        margin: 0;
        vertical-align: baseline;
        display: inline-block;
    }

    /* Feedback hugs the sentence on the left for a clear reading order */
    .bottom-square-inputs .fill-blank .correct-feedback[b-g5or6pjmer] {
        display: block;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        flex-basis: 100%;
    }

    .translation-input[b-g5or6pjmer] {
        width: 100%;
        max-width: none;
    }

    /* Image cards: image stays centered, sizes scale down naturally */
    .top-square-image[b-g5or6pjmer] {
        width: clamp(120px, 32vw, 150px);
        height: clamp(120px, 32vw, 150px);
    }

    .modal-content[b-g5or6pjmer] {
        max-width: 94%;
        max-height: 88%;
        padding: 0.5rem;
    }

        .modal-content img[b-g5or6pjmer] {
            max-height: 70vh;
        }

    .close-button[b-g5or6pjmer] {
        top: 8px;
        right: 8px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤ 480px)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .questions-section h2[b-g5or6pjmer] {
        font-size: 1.05rem;
    }

    .question-grid[b-g5or6pjmer] {
        gap: 12px;
    }

    .question-block[b-g5or6pjmer] {
        padding: 14px 12px;
        border-radius: var(--qs-radius-sm);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        --qs-card-gap: 10px;
    }

    .question-text[b-g5or6pjmer],
    .basic-options p[b-g5or6pjmer],
    .fill-blank p[b-g5or6pjmer],
    .sentence-translation > p[b-g5or6pjmer],
    .word-translation p[b-g5or6pjmer] {
        font-size: 0.9rem;
    }

    .option-button[b-g5or6pjmer],
    .transport-button[b-g5or6pjmer],
    .choice-button[b-g5or6pjmer] {
        min-height: 44px;
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    /* Words MC: one option per line on tiny screens for easier tapping */
    .transport-options[b-g5or6pjmer],
    .choice-buttons-container[b-g5or6pjmer] {
        --opt-basis: 100%;
        max-width: none;
    }

    .open-answer[b-g5or6pjmer],
    .translation-textarea[b-g5or6pjmer] {
        font-size: 0.9rem;
        min-height: 70px;
        padding: 10px;
    }

    /* The field keeps the 46px tap height of the phone block above */
    .translation-input[b-g5or6pjmer] {
        font-size: 0.9rem;
    }

    /* The field stops at 45% of a phone card, leaving the phrase the rest (165px of 318): the two
       columns otherwise share the room equally and the phrase wraps for nothing. A single word longer
       than that breaks inside, so the card never scrolls sideways.
       (.question-block in the selector: the columns' own rule stands lower in this file.) */
    .question-block.translation .word-translation[b-g5or6pjmer] {
        grid-template-columns: fit-content(55%) minmax(120px, 45%);
        overflow-wrap: anywhere;
    }

    .top-square-image[b-g5or6pjmer] {
        width: 110px;
        height: 110px;
    }

    /* ──────────────────────────────────────────────────────────────────
       BOTTOM-SQUARE on tiny screens — same flex-row layout, slightly
       smaller flex-basis so the input always sits BESIDE a single
       short word ("der", "die") instead of dropping below it.
       ────────────────────────────────────────────────────────────────── */
    .bottom-square-image[b-g5or6pjmer] {
        width: 104px;
        height: 104px;
    }

    .bottom-square-content[b-g5or6pjmer] {
        gap: 10px;
    }

    .bottom-square-inputs .fill-blank p[b-g5or6pjmer] {
        gap: 4px 6px;
        line-height: 1.5;
    }

    .bottom-square-inputs .blank-input[b-g5or6pjmer] {
        flex: 1 1 80px;
        min-width: 0;
        height: 2.4em;
        font-size: 0.95rem;
        margin: 0;
    }

    .correct-feedback[b-g5or6pjmer] {
        font-size: 0.825rem;
    }

    .modal-content[b-g5or6pjmer] {
        max-width: 96%;
        max-height: 90%;
        padding: 6px;
        border-radius: var(--qs-radius-sm);
    }

        .modal-content img[b-g5or6pjmer] {
            max-height: 76vh;
        }

    .close-button[b-g5or6pjmer] {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 6px;
        right: 6px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   CARD CONTENT DISTRIBUTION — bottom-anchored controls (desktop only)
   Pin interactive controls to the bottom so neighbouring cards align.
   Disabled in tablet/mobile breakpoints above (single-column = no need).
   ══════════════════════════════════════════════════════════════════════ */

.number-selection .number-options[b-g5or6pjmer],
.transport-selection .transport-options[b-g5or6pjmer] {
    margin-top: auto;
}

/* A choice card stretched to its row's height: the question shares the free space with the options, so it stands
   in the middle of the room above them, not under the card's top edge */
.number-selection > .question-text[b-g5or6pjmer],
.transport-selection > .question-text[b-g5or6pjmer] {
    margin-top: auto;
}

.open-text .open-answer[b-g5or6pjmer] {
    flex: 1;
    max-height: none;
}

.fill-in-blank .fill-blank[b-g5or6pjmer] {
    margin-top: auto;
}

/* Without a picture the sentences (or the words to translate) are all the card holds: in a card stretched
   to its row's height they stand in the middle, not on the bottom edge under an empty card */
.fill-in-blank > .fill-blank[b-g5or6pjmer],
.translation > .word-translation[b-g5or6pjmer] {
    margin-top: auto;
    margin-bottom: auto;
}

.top-square[b-g5or6pjmer],
.bottom-square[b-g5or6pjmer] {
    flex: 1;
}

.translation .sentence-translation[b-g5or6pjmer] {
    flex: 1;
}

    .translation .sentence-translation .translation-textarea[b-g5or6pjmer] {
        flex: 1;
        height: auto;
        min-height: 80px;
    }

.translation .word-translation[b-g5or6pjmer] {
    margin-top: auto;
}

/* ── Translation under a picture (the fill-in's picture card with the translation fields in it) ──
   The fields take the card's width and sit centred under the image, like the blanks do; the
   bottom-anchoring above is for the plain card and does not apply inside the picture card. */
.translation .bottom-square-inputs .sentence-translation[b-g5or6pjmer],
.translation .bottom-square-inputs .word-translation[b-g5or6pjmer] {
    width: 100%;
    margin-top: 0;
}

    .translation .bottom-square-inputs .sentence-translation .translation-textarea[b-g5or6pjmer] {
        max-width: 100%;
    }

    /* The words in two centred columns, the word and its field, so the fields line up (under the
       picture, or in the plain card) instead of each starting where its word ends, at every width:
       the word column gives way and wraps on a narrow phone. The note under a field spans both. */
    .translation .word-translation[b-g5or6pjmer] {
        display: grid;
        /* A phrase takes what it needs, up to 55% of the card, and wraps at its spaces past that. The
           column is never narrower than the longest single word: the field gives way instead (down to
           120px), so a word is not broken in the middle. Phones break it: see the 480px block. */
        grid-template-columns: fit-content(55%) minmax(120px, 220px);
        justify-content: center;
        align-items: center;
        gap: var(--qs-gap-sm);
    }

        .translation .word-translation p[b-g5or6pjmer] {
            display: contents;
        }

        .translation .word-translation .translation-input[b-g5or6pjmer] {
            width: 100%;
        }

        /* A card with a long word or phrase (the component decides): each word above its field, the
           field as wide as the card, so nothing is squeezed or broken beside it */
        .translation .word-translation.stacked[b-g5or6pjmer] {
            grid-template-columns: minmax(0, 1fr);
            justify-content: stretch;
            gap: var(--qs-gap-md);
            overflow-wrap: anywhere;
        }

            .translation .word-translation.stacked p[b-g5or6pjmer] {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                gap: var(--qs-gap-xs);
            }

        /* width 0 + min-width 100%: the note fills the row without widening the word column
           (a spanning item otherwise lends its text to the tracks it spans). */
        .translation .word-translation .near-miss-note[b-g5or6pjmer],
        .translation .word-translation .correct-feedback[b-g5or6pjmer] {
            grid-column: 1 / -1;
            width: 0;
            min-width: 100%;
        }

    .translation .bottom-square-inputs .correct-feedback[b-g5or6pjmer],
    .translation .bottom-square-inputs .near-miss-note[b-g5or6pjmer] {
        text-align: center;
        justify-content: center;
    }

/* ══════════════════════════════════════════════════════════════════════
   RESULTS OVERVIEW — shown after "Проверить": score donut + one numbered
   circle per question. Tapping a circle jumps to that card; the floating
   mistake navigator steps through the wrong ones.
   ══════════════════════════════════════════════════════════════════════ */
.question-block[b-g5or6pjmer] {
    position: relative;
    /* Keeps a jumped-to card clear of the sticky site header */
    scroll-margin-top: 96px;
    transition: border-color var(--qs-transition-slow), box-shadow var(--qs-transition-slow);
}

.results-overview[b-g5or6pjmer] {
    scroll-margin-top: 96px;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 20px);
    margin: 0 0 clamp(22px, 3.5vw, 36px) 0;
    padding: clamp(16px, 2.5vw, 24px);
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    border: 1px solid var(--qs-border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    animation: qs-results-in-b-g5or6pjmer 0.35s ease both;
}

@keyframes qs-results-in-b-g5or6pjmer {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.results-head[b-g5or6pjmer] {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 24px);
}

/* Same donut language as the Progress page: green share = correct answers */
.results-donut[b-g5or6pjmer] {
    --size: clamp(72px, 9vw, 92px);
    position: relative;
    flex-shrink: 0;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--qs-green) calc(var(--progress) * 3.6deg), #ffe3e4 0deg 360deg);
}

.all-correct .results-donut[b-g5or6pjmer] {
    background: var(--qs-green);
}

.results-donut[b-g5or6pjmer]::after {
    content: "";
    position: absolute;
    inset: 9px;
    background: var(--qs-white);
    border-radius: 50%;
}

.results-score[b-g5or6pjmer] {
    position: relative;
    z-index: 1;
    font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem);
    font-weight: 700;
    color: var(--qs-text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

    .results-score small[b-g5or6pjmer] {
        font-size: 0.6em;
        font-weight: 600;
        color: var(--qs-text-light);
        margin-left: 1px;
    }

.results-text[b-g5or6pjmer] {
    min-width: 0;
}

    .results-text h3[b-g5or6pjmer] {
        margin: 0 0 4px 0;
        font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.3rem);
        font-weight: 700;
        color: var(--qs-text);
        letter-spacing: -0.2px;
    }

    .results-text p[b-g5or6pjmer] {
        margin: 0;
        font-size: clamp(0.85rem, 0.2vw + 0.8rem, 0.95rem);
        color: var(--qs-text-light);
        line-height: 1.45;
    }

.results-legend[b-g5or6pjmer] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--qs-text-light);
}

.legend-item[b-g5or6pjmer] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot[b-g5or6pjmer] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .legend-dot.correct[b-g5or6pjmer] {
        background: #eaf6dc;
        box-shadow: inset 0 0 0 1.5px var(--qs-green);
    }

    .legend-dot.incorrect[b-g5or6pjmer] {
        background: var(--qs-red);
    }

.all-correct .results-legend[b-g5or6pjmer] {
    display: none;
}

.results-circles[b-g5or6pjmer] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .results-circles li[b-g5or6pjmer] {
        display: contents;
    }

.result-circle[b-g5or6pjmer] {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform var(--qs-transition), box-shadow var(--qs-transition);
    animation: qs-circle-pop-b-g5or6pjmer 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(min(var(--i), 24) * 22ms + 120ms);
}

    .result-circle.correct[b-g5or6pjmer] {
        background: #eaf6dc;
        border-color: #bfe196;
        color: #4f7f1a;
    }

    .result-circle.incorrect[b-g5or6pjmer] {
        background: var(--qs-red);
        color: var(--qs-white);
        box-shadow: 0 2px 8px rgba(255, 66, 69, 0.3);
    }

    @media (hover: hover) and (pointer: fine) {
        .result-circle:hover[b-g5or6pjmer] {
            transform: translateY(-2px);
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
        }
    }

    .result-circle:active[b-g5or6pjmer] {
        transform: scale(0.9);
    }

    .result-circle:focus-visible[b-g5or6pjmer] {
        outline: 2px solid var(--qs-blue);
        outline-offset: 2px;
    }

@keyframes qs-circle-pop-b-g5or6pjmer {
    from {
        opacity: 0;
        transform: scale(0.4);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Card state after checking: coloured frame + number badge matching its circle */
.question-block.is-correct[b-g5or6pjmer] {
    border-color: #cfe8b2;
}

.question-block.is-incorrect[b-g5or6pjmer] {
    border-color: rgba(255, 66, 69, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 66, 69, 0.12), var(--qs-card-shadow);
}

.result-badge[b-g5or6pjmer] {
    position: absolute;
    top: -11px;
    left: 16px;
    z-index: 2;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--qs-white);
    box-shadow: 0 0 0 3px var(--qs-white);
    pointer-events: none;
}

.is-correct .result-badge[b-g5or6pjmer] {
    background: var(--qs-green);
}

.is-incorrect .result-badge[b-g5or6pjmer] {
    background: var(--qs-red);
}

/* Brief pulse on the card the user jumped to (class toggled from JS) */
.question-block.qs-flash[b-g5or6pjmer] {
    animation: qs-flash-b-g5or6pjmer 1.2s ease;
}

.question-block.is-incorrect.qs-flash[b-g5or6pjmer] {
    --flash: rgba(255, 66, 69, 0.35);
}

.question-block.is-correct.qs-flash[b-g5or6pjmer] {
    --flash: rgba(146, 205, 77, 0.45);
}

@keyframes qs-flash-b-g5or6pjmer {
    0%, 100% {
        box-shadow: 0 0 0 0 transparent, var(--qs-card-shadow);
    }

    25%, 60% {
        box-shadow: 0 0 0 6px var(--flash, var(--qs-blue-glow)), var(--qs-card-shadow);
    }
}

/* ── Floating mistake navigator ─────────────────────────────────────── */
.has-mistake-nav[b-g5or6pjmer] {
    /* Room so the navigator never covers the page's own buttons */
    padding-bottom: 76px;
}

.mistake-nav[b-g5or6pjmer] {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(30, 30, 46, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    animation: qs-nav-in-b-g5or6pjmer 0.3s ease both;
}

@keyframes qs-nav-in-b-g5or6pjmer {
    from {
        opacity: 0;
        transform: translate(-50%, 16px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.mistake-nav-btn[b-g5or6pjmer] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 22px;
    background: transparent;
    color: #f0f0f5;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color var(--qs-transition), transform var(--qs-transition);
}

    .mistake-nav-btn svg[b-g5or6pjmer] {
        width: 18px;
        height: 18px;
        fill: currentColor;
        flex-shrink: 0;
    }

    .mistake-nav-btn.next-btn[b-g5or6pjmer] {
        background: var(--qs-red);
        color: var(--qs-white);
    }

    @media (hover: hover) and (pointer: fine) {
        .mistake-nav-btn.overview-btn:hover[b-g5or6pjmer] {
            background: rgba(255, 255, 255, 0.12);
        }

        .mistake-nav-btn.next-btn:hover[b-g5or6pjmer] {
            background: #e8383b;
        }
    }

    .mistake-nav-btn:active[b-g5or6pjmer] {
        transform: scale(0.95);
    }

    .mistake-nav-btn:focus-visible[b-g5or6pjmer] {
        outline: 2px solid var(--qs-white);
        outline-offset: 2px;
    }

.mistake-nav-count[b-g5or6pjmer] {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

/* Bigger tap targets wherever the pointer is a finger */
@media (pointer: coarse) {
    .result-circle[b-g5or6pjmer] {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .question-block[b-g5or6pjmer],
    .results-overview[b-g5or6pjmer] {
        scroll-margin-top: 76px;
    }

    .results-overview[b-g5or6pjmer] {
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .results-head[b-g5or6pjmer] {
        gap: 14px;
    }

    .results-circles[b-g5or6pjmer] {
        gap: 7px;
    }

    .has-mistake-nav[b-g5or6pjmer] {
        padding-bottom: 72px;
    }

    /* Navigator spans the width so the thumb target is large */
    .mistake-nav[b-g5or6pjmer] {
        left: 12px;
        right: 12px;
        transform: none;
        animation-name: qs-nav-in-mobile-b-g5or6pjmer;
    }

    .mistake-nav-btn.next-btn[b-g5or6pjmer] {
        flex: 1;
        min-width: 0;
        padding: 0 14px;
    }

    .mistake-nav-btn.next-btn .mistake-nav-label[b-g5or6pjmer] {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Icon-only on phones; the button keeps its aria-label */
    .mistake-nav-btn.overview-btn[b-g5or6pjmer] {
        width: 44px;
        padding: 0;
        flex-shrink: 0;
    }

        .mistake-nav-btn.overview-btn .mistake-nav-label[b-g5or6pjmer] {
            display: none;
        }
}

@keyframes qs-nav-in-mobile-b-g5or6pjmer {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .results-overview[b-g5or6pjmer],
    .result-circle[b-g5or6pjmer],
    .mistake-nav[b-g5or6pjmer],
    .question-block.qs-flash[b-g5or6pjmer] {
        animation: none;
    }
}
/* /Components/Shared/ReportProblemButton.razor.rz.scp.css */
/* ==========================================================================
   "Что-то не так?" — header button that opens the problem-report dialog.

   Heights track the header line-up in MainLayout / LeftSideNavLayout /
   SmartDocLayout (and TutorialButton) breakpoint for breakpoint.

     > 900px  icon + "Что-то не так?"
   701-900px  "Что-то не так?" (icon dropped to stay clear of the centred logo)
     <= 700px  icon only — aria-label / title carry the meaning
   ========================================================================== */

.report-btn[b-tg3hevz9no],
.report-btn *[b-tg3hevz9no],
.report-overlay[b-tg3hevz9no],
.report-overlay *[b-tg3hevz9no],
.report-overlay *[b-tg3hevz9no]::before,
.report-overlay *[b-tg3hevz9no]::after {
    box-sizing: border-box;
}

/* ========== Header button ========== */
.report-btn[b-tg3hevz9no] {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    background-color: #fff;
    color: #4D7CFE;
    border: 2px solid #4D7CFE;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

    /* Small headers shrink the button below a comfortable tap size;
       this extends the touch target without changing the visual. */
    .report-btn[b-tg3hevz9no]::after {
        content: '';
        position: absolute;
        inset: -6px;
    }

    @media (hover: hover) and (pointer: fine) {
        .report-btn:hover[b-tg3hevz9no] {
            background-color: #4D7CFE;
            color: #fff;
            box-shadow: 0 6px 20px rgba(77, 124, 254, 0.25);
            transform: translateY(-2px);
        }
    }

    .report-btn:active[b-tg3hevz9no] {
        background-color: #4D7CFE;
        color: #fff;
        transform: translateY(0) scale(0.96);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .report-btn:focus-visible[b-tg3hevz9no] {
        outline: 2px solid #4D7CFE;
        outline-offset: 3px;
    }

.report-btn-icon[b-tg3hevz9no] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ========== Dialog ========== */
.report-overlay[b-tg3hevz9no] {
    position: fixed;
    inset: 0;
    z-index: 2100; /* above the fixed mobile header (1800) and hamburger (2000) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: report-fade-b-tg3hevz9no 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.report-dialog[b-tg3hevz9no] {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
    animation: report-rise-b-tg3hevz9no 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.report-header[b-tg3hevz9no] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 0 24px;
}

    .report-header h3[b-tg3hevz9no] {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        line-height: 1.3;
    }

.report-close[b-tg3hevz9no] {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #666;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .report-close:hover[b-tg3hevz9no] {
            background: #f2f2f2;
            color: #000;
        }
    }

    .report-close:active[b-tg3hevz9no] {
        background: #e8e8e8;
    }

    .report-close:focus-visible[b-tg3hevz9no] {
        outline: 2px solid #4D7CFE;
        outline-offset: 2px;
    }

.report-body[b-tg3hevz9no] {
    padding: 12px 24px 0;
}

.report-hint[b-tg3hevz9no] {
    display: block;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.report-error[b-tg3hevz9no] {
    margin: 0 0 8px;
    font-size: 13px;
    color: #ef4444;
}

.report-textarea[b-tg3hevz9no] {
    display: block;
    width: 100%;
    min-height: 140px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px; /* 16px stops iOS Safari zooming the page on focus */
    line-height: 1.5;
    color: #1a1a1a;
    user-select: text;
    -webkit-user-select: text;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .report-textarea[b-tg3hevz9no]::placeholder {
        color: #9a9a9a;
    }

    .report-textarea:focus[b-tg3hevz9no] {
        outline: none;
        border-color: #4D7CFE;
        box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.15);
    }

.report-actions[b-tg3hevz9no] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px 24px;
}

.report-primary[b-tg3hevz9no],
.report-secondary[b-tg3hevz9no] {
    min-height: 44px;
    padding: 0 28px;
    border-radius: 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.report-primary[b-tg3hevz9no] {
    background: #4D7CFE;
    color: #fff;
    border: 2px solid #4D7CFE;
    box-shadow: 0 6px 20px rgba(77, 124, 254, 0.3);
}

    @media (hover: hover) and (pointer: fine) {
        .report-primary:hover:not([disabled])[b-tg3hevz9no] {
            background: #3a67e6;
            border-color: #3a67e6;
            transform: translateY(-2px);
        }
    }

    .report-primary:active:not([disabled])[b-tg3hevz9no] {
        transform: scale(0.97);
    }

    .report-primary[disabled][b-tg3hevz9no] {
        background: #d6d6d6;
        border-color: #d6d6d6;
        color: #777;
        box-shadow: none;
        cursor: not-allowed;
    }

.report-secondary[b-tg3hevz9no] {
    background: #fff;
    color: #555;
    border: 2px solid #d6d6d6;
}

    @media (hover: hover) and (pointer: fine) {
        .report-secondary:hover[b-tg3hevz9no] {
            border-color: #999;
            color: #1a1a1a;
        }
    }

    .report-secondary:active[b-tg3hevz9no] {
        background: #f2f2f2;
    }

.report-primary:focus-visible[b-tg3hevz9no],
.report-secondary:focus-visible[b-tg3hevz9no] {
    outline: 2px solid #4D7CFE;
    outline-offset: 2px;
}

/* ========== Success state ========== */
.report-success[b-tg3hevz9no] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 28px 28px;
}

.report-success-icon[b-tg3hevz9no] {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0fdf4;
    color: #16a34a;
    animation: report-pop-b-tg3hevz9no 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .report-success-icon svg[b-tg3hevz9no] {
        width: 32px;
        height: 32px;
    }

.report-success-title[b-tg3hevz9no] {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 600;
}

.report-success-text[b-tg3hevz9no] {
    margin: 0 0 24px;
    max-width: 340px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

@keyframes report-fade-b-tg3hevz9no {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes report-rise-b-tg3hevz9no {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes report-pop-b-tg3hevz9no {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .report-overlay[b-tg3hevz9no],
    .report-dialog[b-tg3hevz9no],
    .report-success-icon[b-tg3hevz9no] {
        animation: none;
    }
}

/* ========== Header breakpoints (match the layouts) ========== */
@media (max-width: 900px) {
    .report-btn[b-tg3hevz9no] {
        height: 38px;
        padding: 0 16px;
        font-size: 13px;
        border-radius: 19px;
    }

    .report-btn-icon[b-tg3hevz9no] {
        display: none;
    }
}

@media (max-width: 700px) {
    .report-btn[b-tg3hevz9no] {
        width: 42px;
        height: 36px;
        padding: 0;
        border-radius: 18px;
    }

    .report-btn-text[b-tg3hevz9no] {
        display: none;
    }

    .report-btn-icon[b-tg3hevz9no] {
        display: block;
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    .report-btn[b-tg3hevz9no] {
        width: 40px;
        height: 34px;
        border-radius: 17px;
    }

    /* Phones: the dialog sits at the top, not in the middle. iOS Safari lays the
       keyboard over the page without resizing it, so a centred dialog loses its
       lower half (textarea and buttons) as soon as the textarea takes focus.
       The overlay is fixed above the header (z-index 2100 in a lifted header),
       so starting at the top never puts it under the header or side menu. */
    .report-overlay[b-tg3hevz9no] {
        align-items: flex-start;
        padding: 12px;
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .report-dialog[b-tg3hevz9no] {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 18px;
    }

    .report-header[b-tg3hevz9no] {
        padding: 16px 12px 0 18px;
    }

        .report-header h3[b-tg3hevz9no] {
            font-size: 18px;
        }

    .report-body[b-tg3hevz9no] {
        padding: 10px 18px 0;
    }

    .report-textarea[b-tg3hevz9no] {
        min-height: 120px;
    }

    /* One row, not stacked: every pixel of height is space the keyboard doesn't cover */
    .report-actions[b-tg3hevz9no] {
        gap: 10px;
        padding: 14px 18px 18px;
    }

    .report-primary[b-tg3hevz9no],
    .report-secondary[b-tg3hevz9no] {
        flex: 1;
        padding: 0 12px;
    }

    .report-success[b-tg3hevz9no] {
        padding: 32px 18px 18px;
    }

        .report-success .report-primary[b-tg3hevz9no] {
            width: 100%;
        }
}

@media (max-width: 500px) {
    .report-btn[b-tg3hevz9no] {
        width: 38px;
        height: 32px;
        border-radius: 16px;
    }

    .report-btn-icon[b-tg3hevz9no] {
        width: 19px;
        height: 19px;
    }
}

@media (max-width: 450px) {
    .report-btn[b-tg3hevz9no] {
        width: 36px;
        height: 28px;
        border-radius: 14px;
    }

    .report-btn-icon[b-tg3hevz9no] {
        width: 17px;
        height: 17px;
    }
}

@media (max-width: 380px) {
    .report-btn[b-tg3hevz9no] {
        width: 34px;
        height: 26px;
        border-radius: 13px;
    }

    .report-btn-icon[b-tg3hevz9no] {
        width: 16px;
        height: 16px;
    }
}
/* /Components/Shared/ReviewNote.razor.rz.scp.css */
/* The status line of a review page. Its look follows the question list's results card (QuestionsSection.razor.css):
   the same text colours and fluid sizes, the same card when it stands alone, and the pill of the lesson buttons. */
.review-note[b-3e778i27k8] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.875rem, 0.2vw + 0.82rem, 0.95rem);
    font-weight: 500;
    line-height: 1.45;
    color: #333;
}

    .review-note.boxed[b-3e778i27k8] {
        padding: clamp(12px, 2vw, 16px) clamp(14px, 2.5vw, 22px);
        background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
        border: 1px solid #e4e7ed;
        border-radius: 14px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    }

        .review-note.boxed.failed[b-3e778i27k8] {
            background: #fff4f4;
            border-color: #ffd9da;
        }

.review-note-icon[b-3e778i27k8] {
    flex: none;
    width: 22px;
    height: 22px;
    fill: #4d7cfe;
}

.failed .review-note-icon[b-3e778i27k8] {
    fill: #ff4245;
}

.review-note-text[b-3e778i27k8] {
    flex: 1 1 240px;
    min-width: 0;
}

/* The pill of the lesson's own buttons (NavigationButtons), one size down. */
.review-note-btn[b-3e778i27k8] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 132px;
    padding: 0 22px;
    border: 2px solid #4d7cfe;
    border-radius: 20px;
    background: #fff;
    color: #4d7cfe;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

@media (hover: hover) and (pointer: fine) {
    .review-note-btn:hover[b-3e778i27k8] {
        background: #4d7cfe;
        color: #fff;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }
}

/* Pressed: fills at once and sinks, so a quick tap shows. */
.review-note-btn:active[b-3e778i27k8],
.review-note-btn.is-busy[b-3e778i27k8] {
    background: #4d7cfe;
    color: #fff;
}

.review-note-btn:active[b-3e778i27k8] {
    transform: scale(0.97);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition-duration: 0s;
}

.review-note-btn:focus-visible[b-3e778i27k8] {
    outline: 3px solid rgba(77, 124, 254, 0.35);
    outline-offset: 2px;
}

.review-note-btn.is-busy[b-3e778i27k8] {
    cursor: progress;
}

    .review-note-btn.is-busy .review-note-btn-label[b-3e778i27k8] {
        visibility: hidden;
    }

    .review-note-btn.is-busy[b-3e778i27k8]::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        border: 2px solid currentColor;
        border-right-color: transparent;
        border-radius: 50%;
        animation: review-note-spin-b-3e778i27k8 0.7s linear infinite;
    }

@keyframes review-note-spin-b-3e778i27k8 {
    to {
        transform: rotate(360deg);
    }
}

/* Phone: the button takes the row under the text, like the lesson buttons do. */
@media (max-width: 480px) {
    .review-note-btn[b-3e778i27k8] {
        flex: 1 1 100%;
        height: 44px;
        border-radius: 22px;
        box-shadow: none;
    }
}
/* /Components/Shared/StudyGoalRules.razor.rz.scp.css */
/* Three rows: what was done, and what it adds. Colours: the Progress page palette (CLAUDE.md). */
.sgr[b-f6ukoct8hy] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Montserrat', sans-serif;
}

.sgr-row[b-f6ukoct8hy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sgr-what[b-f6ukoct8hy] {
    min-width: 0;
    font-size: var(--sgr-font, 14px);
    line-height: 1.4;
    color: #1a1a1a;
}

/* The number is a chip: ink on the soft blue (the blue itself is too light for small text) */
.sgr-n[b-f6ukoct8hy] {
    flex-shrink: 0;
    min-width: 40px;
    padding: 4px 8px;
    font-size: var(--sgr-font, 14px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #1a1a1a;
    background: #e8eeff;
    border-radius: 999px;
}

.sgr-note[b-f6ukoct8hy] {
    margin: 10px 0 0;
    font: 500 13px/1.4 'Montserrat', sans-serif;
    color: #4a4f57;
}
/* /Components/Shared/StudyGoalToast.razor.rz.scp.css */
.goal-toast[b-zpiz8scts7] {
    position: fixed;
    /* Under the header row (1rem + 40px + 1rem in both layouts), so it never covers the logo or the header buttons */
    top: calc(env(safe-area-inset-top, 0px) + 80px);
    /* Centred by auto margins between the two insets, not by left: 50% (that would cap its width at half the screen) */
    left: 12px;
    right: 12px;
    width: fit-content;
    max-width: calc(100vw - 24px);
    margin: 0 auto;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 12px;
    font: 600 15px/1.35 'Montserrat', sans-serif;
    color: #1a1a1a;
    background: #f4faec;
    border: 1px solid #cde8ac;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(20, 30, 60, 0.14);
    /* Never in the way of the lesson under it */
    pointer-events: none;
    animation: goal-toast-in-b-zpiz8scts7 0.25s ease-out, goal-toast-out-b-zpiz8scts7 0.3s ease-in 3.7s forwards;
}

.goal-toast-icon[b-zpiz8scts7] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #92cd4d;
    border-radius: 50%;
}

    .goal-toast-icon svg[b-zpiz8scts7] {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: #1a1a1a;
        stroke-width: 2.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.goal-toast-text[b-zpiz8scts7] {
    min-width: 0;
    overflow-wrap: anywhere;
}

.goal-toast-streak[b-zpiz8scts7] {
    font-weight: 500;
    color: #4a4f57;
}

@keyframes goal-toast-in-b-zpiz8scts7 {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes goal-toast-out-b-zpiz8scts7 {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .goal-toast[b-zpiz8scts7] {
        animation: none;
    }
}
/* /Components/Shared/StudyHero.razor.rz.scp.css */
/* The size container the tiers at the end of this file are chosen by */
.sh-host[b-3kk780qi0q] {
    container: sh / inline-size;
}

/* ===== Tokens: the Progress page palette (CLAUDE.md) =====
   One layout for laptops and desktops alike: the button, and beside it the two numbers as thin tiles
   stacked on each other (the dock stays about 90px tall). The tiers at the end hold the differences
   for narrower cards; the phone puts the tiles under the button. */
.sh-card[b-3kk780qi0q] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-press: #3a63d8;
    --brand-soft: #e8eeff;
    --done: #92cd4d;
    --done-ink: #5d8f22;
    --done-soft: #f4faec;
    --streak: #f5c518;
    --streak-soft: #fef9e7;
    /* Anchors the goal panel (.sh-rules), which hangs above the whole card */
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    /* The page that hosts it sets --sh-gap-below (the dock on the module list wants none) */
    margin: 0 0 var(--sh-gap-below, var(--card-gap, 18px));
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    min-width: 0;
}

/* ===== The one button =====
   A zero basis keeps it on the tiles' row; the card still wraps, for the reminder offer under it. */
.sh-continue[b-3kk780qi0q] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
    min-height: 72px;
    padding: 10px 14px 10px 18px;
    color: #fff;
    background: var(--brand);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(77, 124, 254, 0.2), 0 6px 18px rgba(77, 124, 254, 0.22);
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .sh-continue:active[b-3kk780qi0q] {
        background: var(--brand-press);
        transform: scale(0.99);
        transition-duration: 0s;
    }

    .sh-continue:focus-visible[b-3kk780qi0q] {
        outline: 2px solid var(--ink);
        outline-offset: 2px;
    }

    /* The next lesson is behind a purchase: white card with the brand outline, so it does not look like a lesson button */
    .sh-continue.is-locked[b-3kk780qi0q] {
        color: var(--ink);
        background: #fff;
        border: 2px solid var(--brand);
        box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
    }

        .sh-continue.is-locked:active[b-3kk780qi0q] {
            background: var(--brand-soft);
        }

.sh-continue-text[b-3kk780qi0q] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

/* What the button does: the small line above. One line, cut with an ellipsis: the lesson's name below is what
   has to be read, and it gets the second line when it needs one. */
.sh-continue-lead[b-3kk780qi0q] {
    font-size: 12.5px;
    line-height: 1.3;
    font-weight: 500;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow-wrap: anywhere;
}

/* Where it leads: the big line, two lines at most in every layout */
.sh-continue-title[b-3kk780qi0q] {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
}

.sh-continue.is-locked .sh-continue-lead[b-3kk780qi0q] {
    color: var(--ink-soft);
}

/* The action, as a white pill on the blue button (a chevron alone where the row is narrow, see the tiers) */
.sh-continue-cta[b-3kk780qi0q] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 12px 0 16px;
    color: var(--brand);
    background: #fff;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.sh-continue.is-locked .sh-continue-cta[b-3kk780qi0q] {
    color: #fff;
    background: var(--brand);
}

.sh-continue-chevron[b-3kk780qi0q] {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

/* ===== Two small numbers =====
   Thin tiles stacked beside the button, as wide as the longer one's words. Both tiles have the same two
   parts: the number(s) in the value, the words in the label (one line here, two on a phone). */
.sh-stats[b-3kk780qi0q] {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.sh-stat[b-3kk780qi0q] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    min-height: 30px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.sh-stat-text[b-3kk780qi0q] {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.sh-stat-value[b-3kk780qi0q] {
    font-size: 15px;
    line-height: 1.25;
    color: var(--ink-soft);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

    .sh-stat-value strong[b-3kk780qi0q] {
        font-size: 16px;
        font-weight: 700;
        color: var(--ink);
    }

.sh-stat-label[b-3kk780qi0q] {
    font-size: 13px;
    line-height: 1.3;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== The goal tile is a button: it opens what counts towards the goal =====
   The panel is anchored on the card (position: relative above), above the whole dock, at the tiles' end;
   hung on the tile it would cover the button on a phone. */
.sh-goal-wrap[b-3kk780qi0q] {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
}

button.sh-goal[b-3kk780qi0q] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    margin: 0;
    padding-right: 10px;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

    button.sh-goal:active[b-3kk780qi0q] {
        background: var(--surface);
        transition-duration: 0s;
    }

    button.sh-goal.is-met:active[b-3kk780qi0q] {
        background: #e6f3d3;
    }

    button.sh-goal:focus-visible[b-3kk780qi0q] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

/* The "i" at the end of the line: says the tile can be opened. Filled while the panel is open. The glyph is drawn
   (a dot and a stem, like the shared InfoTip's), not typed: a typed "i" sits where the font puts it, off centre. */
.sh-info[b-3kk780qi0q] {
    position: relative;
    box-sizing: border-box;
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--ink-soft);
    background: #fff;
    border: 1.5px solid #c9cdd4;
    border-radius: 50%;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

    .sh-info[b-3kk780qi0q]::before,
    .sh-info[b-3kk780qi0q]::after {
        content: "";
        position: absolute;
        left: calc(50% - 1px);
        width: 2px;
        background: currentColor;
        border-radius: 1px;
    }

    .sh-info[b-3kk780qi0q]::before {
        top: 2.5px;
        height: 2px;
    }

    .sh-info[b-3kk780qi0q]::after {
        top: 5.5px;
        height: 5px;
    }

.sh-goal-wrap.is-open .sh-info[b-3kk780qi0q] {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

/* The panel: a white card above the dock */
.sh-rules[b-3kk780qi0q] {
    --sgr-font: 14px;
    position: absolute;
    z-index: 2;
    bottom: calc(100% + 16px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 32px);
    padding: 12px 16px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(20, 30, 60, 0.06), 0 12px 32px rgba(20, 30, 60, 0.16);
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    pointer-events: none;
}

    /* Bridges the gap to the card, so the mouse can move from the tile onto the panel without closing it */
    .sh-rules[b-3kk780qi0q]::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 16px;
    }

.sh-goal-wrap.is-open .sh-rules[b-3kk780qi0q] {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
}

.sh-rules-head[b-3kk780qi0q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 -8px 6px 0;
}

.sh-rules-title[b-3kk780qi0q] {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

/* Only a panel that was opened by a tap or a key needs closing; one shown by hover closes when the mouse leaves */
.sh-rules-close[b-3kk780qi0q] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--ink-soft);
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    visibility: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease;
}

.sh-goal-wrap.is-open .sh-rules-close[b-3kk780qi0q] {
    visibility: visible;
}

.sh-rules-close svg[b-3kk780qi0q] {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2px;
    stroke-linecap: round;
}

.sh-rules-close:active[b-3kk780qi0q] {
    background: #e9ebf0;
    transition-duration: 0s;
}

.sh-rules-close:focus-visible[b-3kk780qi0q],
.sh-rules-link:focus-visible[b-3kk780qi0q] {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.sh-rules-link[b-3kk780qi0q] {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    border-radius: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .sh-rules-link:active[b-3kk780qi0q] {
        color: var(--brand-press);
        transition-duration: 0s;
    }

/* Today's goal: a ring that fills, then turns green with a tick (one SVG, see the markup) */
.sh-ring[b-3kk780qi0q] {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    fill: none;
    stroke-width: 5px;
    /* The arc starts at 12 o'clock */
    transform: rotate(-90deg);
}

.sh-ring-track[b-3kk780qi0q] {
    stroke: var(--brand-soft);
}

.sh-ring-arc[b-3kk780qi0q] {
    stroke: var(--brand);
    stroke-linecap: round;
    transition: stroke-dasharray 0.4s ease, stroke 0.3s ease;
}

.sh-ring-tick[b-3kk780qi0q] {
    stroke: var(--done-ink);
    stroke-width: 3.2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Undo the ring's quarter turn */
    transform: rotate(90deg);
    transform-origin: 18px 18px;
}

.sh-goal.is-met[b-3kk780qi0q] {
    border-color: #cde8ac;
    background: var(--done-soft);
}

    .sh-goal.is-met .sh-ring-arc[b-3kk780qi0q] {
        stroke: var(--done);
    }

    .sh-goal.is-met .sh-stat-label[b-3kk780qi0q] {
        color: var(--done-ink);
        font-weight: 600;
    }

/* The moment the goal is reached: the ring swells once. Nothing covers the page. */
.sh-goal.is-celebrating .sh-ring[b-3kk780qi0q] {
    animation: sh-reached-b-3kk780qi0q 0.8s ease 3;
}

@keyframes sh-reached-b-3kk780qi0q {
    0%, 100% {
        transform: rotate(-90deg) scale(1);
    }

    50% {
        transform: rotate(-90deg) scale(1.16);
    }
}

/* Streak: the flame is the accent; the words stay ink */
.sh-flame[b-3kk780qi0q] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

    /* The flame of the Дипломат game's streak (PyramidGame.razor.css: .hud-streak-icon), with its "cold" look at 0 */
    .sh-flame .hud-streak-icon[b-3kk780qi0q] {
        font-size: 17px;
        line-height: 1;
        filter: grayscale(1);
        opacity: 0.6;
    }

.sh-streak.is-on .sh-flame .hud-streak-icon[b-3kk780qi0q] {
    filter: none;
    opacity: 1;
}

/* ===== One-time offer of reminder emails: a line under the card, never a pop-up ===== */
.sh-offer[b-3kk780qi0q] {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 6px 6px 6px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.sh-offer-text[b-3kk780qi0q] {
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink);
}

.sh-offer-actions[b-3kk780qi0q] {
    display: flex;
    gap: 8px;
}

.sh-offer-btn[b-3kk780qi0q] {
    appearance: none;
    -webkit-appearance: none;
    min-width: 72px;
    min-height: 44px;
    padding: 0 18px;
    font: 600 15px/1.2 'Montserrat', sans-serif;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d5d9e0;
    border-radius: 22px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .sh-offer-btn.is-yes[b-3kk780qi0q] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }

    .sh-offer-btn:active:not(:disabled)[b-3kk780qi0q] {
        background: #e9ebf0;
        transition-duration: 0s;
    }

    .sh-offer-btn.is-yes:active:not(:disabled)[b-3kk780qi0q] {
        background: var(--brand-press);
        border-color: var(--brand-press);
    }

    .sh-offer-btn:focus-visible[b-3kk780qi0q] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    .sh-offer-btn:disabled[b-3kk780qi0q] {
        opacity: 0.6;
        cursor: default;
    }

/* ===== Hover (mouse / trackpad only, see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .sh-continue:hover[b-3kk780qi0q] {
        background: #3f6cf0;
        box-shadow: 0 2px 4px rgba(77, 124, 254, 0.24), 0 10px 24px rgba(77, 124, 254, 0.3);
    }

        .sh-continue:hover .sh-continue-chevron[b-3kk780qi0q] {
            transform: translateX(3px) rotate(-45deg);
        }

    .sh-continue.is-locked:hover[b-3kk780qi0q] {
        background: #f3f6ff;
        box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 6px 18px rgba(77, 124, 254, 0.12);
    }

    .sh-offer-btn:hover:not(:disabled)[b-3kk780qi0q] {
        background: var(--surface);
        border-color: #b9bfca;
    }

    /* The goal tile: the panel shows while the mouse is on the tile or on the panel */
    button.sh-goal:hover[b-3kk780qi0q] {
        border-color: #c9d6ff;
    }

    button.sh-goal.is-met:hover[b-3kk780qi0q] {
        border-color: var(--done);
    }

    .sh-goal-wrap:hover .sh-info[b-3kk780qi0q] {
        color: var(--brand);
        border-color: var(--brand);
    }

    .sh-goal-wrap.is-open:hover .sh-info[b-3kk780qi0q] {
        color: #fff;
    }

    .sh-goal-wrap:hover .sh-rules[b-3kk780qi0q] {
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .sh-rules-close:hover[b-3kk780qi0q] {
        background: var(--surface);
    }

    .sh-rules-link:hover[b-3kk780qi0q] {
        text-decoration: underline;
    }

    .sh-offer-btn.is-yes:hover:not(:disabled)[b-3kk780qi0q] {
        background: #3f6cf0;
        border-color: #3f6cf0;
    }
}

/* ===== Tiers, by the width of the card itself (the screen minus the side menu and the page's gutters) =====
   880px and up   the layout above: the button with its pill, the two thin tiles stacked beside it.
   600 to 880px   the same row without the pill: the whole button is the action, and a chevron says so.
   under 600px    a phone: the button on its own row, the two tiles side by side under it, each two short
                  lines (the number over its words), so the words are read in full on any width. */
@container sh (max-width: 879.98px) {
    .sh-continue-cta[b-3kk780qi0q] {
        gap: 0;
        min-height: 0;
        padding: 0;
        color: inherit;
        background: none;
    }

    .sh-continue.is-locked .sh-continue-cta[b-3kk780qi0q] {
        color: var(--brand);
        background: none;
    }

    .sh-continue-cta-text[b-3kk780qi0q] {
        display: none;
    }
}

@container sh (max-width: 599.98px) {
    .sh-continue[b-3kk780qi0q] {
        flex-basis: 100%;
        min-height: 60px;
        padding: 10px 14px 10px 16px;
    }

    .sh-continue-title[b-3kk780qi0q] {
        font-size: 17px;
    }

    .sh-stats[b-3kk780qi0q] {
        flex: 1 1 100%;
        flex-direction: row;
        gap: 8px;
    }

    /* Each tile starts at the width of its words and the two share what is left equally, so the row
       stays close to symmetrical without ever cutting a word */
    .sh-stat[b-3kk780qi0q] {
        min-height: 50px;
        padding: 6px 12px 6px 10px;
    }

    .sh-goal-wrap[b-3kk780qi0q],
    .sh-streak[b-3kk780qi0q] {
        flex: 1 1 auto;
    }

    .sh-stat-text[b-3kk780qi0q] {
        flex: 1 1 auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }

    .sh-stat-value[b-3kk780qi0q] {
        font-size: 15px;
        line-height: 1.2;
    }

        .sh-stat-value strong[b-3kk780qi0q] {
            font-size: 17px;
        }

    .sh-stat-label[b-3kk780qi0q] {
        font-size: 12.5px;
        line-height: 1.2;
    }

    .sh-ring[b-3kk780qi0q],
    .sh-flame[b-3kk780qi0q] {
        width: 26px;
        height: 26px;
    }

    /* Under the button, the panel starts at the card's left edge */
    .sh-rules[b-3kk780qi0q] {
        left: 0;
    }
}

@container sh (max-width: 479.98px) {
    .sh-continue-title[b-3kk780qi0q] {
        font-size: 16px;
    }
}

/* ===== Phone: the panel is a sheet as wide as the card, above the whole dock; larger text, a full-width action ===== */
@media (max-width: 600px) {
    .sh-rules[b-3kk780qi0q] {
        --sgr-font: 15px;
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        padding: 14px 16px 16px;
        border-radius: 20px;
        transform: translateY(12px);
    }

    .sh-rules-title[b-3kk780qi0q] {
        font-size: 17px;
    }

    .sh-rules-close[b-3kk780qi0q] {
        width: 44px;
        height: 44px;
    }

    .sh-rules-link[b-3kk780qi0q] {
        display: flex;
        justify-content: center;
        min-height: 44px;
        margin-top: 12px;
        color: var(--ink);
        background: var(--brand-soft);
        border-radius: 14px;
    }

        .sh-rules-link:active[b-3kk780qi0q] {
            color: var(--ink);
            background: #d6e0ff;
        }
}

@media (prefers-reduced-motion: reduce) {
    .sh-goal.is-celebrating .sh-ring[b-3kk780qi0q] {
        animation: none;
    }

    .sh-rules[b-3kk780qi0q] {
        transform: none;
        transition: none;
    }
}
/* /Components/Shared/SubModuleProgress.razor.rz.scp.css */
/* Same look as the pyramid game's score bar: grey track, green fill */
.submodule-progress[b-tex2h1po07] {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 30px;
    font-family: 'Montserrat', sans-serif;
}

.submodule-progress-label[b-tex2h1po07] {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

    .submodule-progress-label strong[b-tex2h1po07] {
        color: #333;
    }

.submodule-progress-track[b-tex2h1po07] {
    display: flex;
    gap: 4px;
    height: 10px;
}

    .submodule-progress-track.continuous[b-tex2h1po07] {
        display: block;
        border-radius: 5px;
        background-color: #EEEEEE;
        overflow: hidden;
    }

.submodule-progress-segment[b-tex2h1po07] {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 5px;
    background-color: #EEEEEE;
    overflow: hidden;
}

    .submodule-progress-segment.done[b-tex2h1po07] {
        background-color: #92CD4D;
    }

    /* The current step fills in when the page opens */
    .submodule-progress-segment.current[b-tex2h1po07]::before {
        content: "";
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #92CD4D, #B6E07E);
        transform-origin: left center;
        animation: submodule-progress-fill-b-tex2h1po07 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) both;
    }

.submodule-progress-fill[b-tex2h1po07] {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #92CD4D, #B6E07E);
    transform-origin: left center;
    animation: submodule-progress-fill-b-tex2h1po07 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes submodule-progress-fill-b-tex2h1po07 {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* On a tablet pages sit 65px below the header (main's padding plus their own); a thin bar there looks adrift.
   On desktop MainLayout has already taken that space out and sets the lift to 0. */
@media (min-width: 769px) {
    .submodule-progress[b-tex2h1po07] {
        margin-top: var(--submodule-progress-lift, -20px);
    }
}

@media (max-width: 768px) {
    .submodule-progress[b-tex2h1po07] {
        margin-bottom: 20px;
    }

    .submodule-progress-label[b-tex2h1po07] {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .submodule-progress-track[b-tex2h1po07] {
        gap: 3px;
        height: 8px;
    }

    .submodule-progress-segment[b-tex2h1po07],
    .submodule-progress-track.continuous[b-tex2h1po07],
    .submodule-progress-fill[b-tex2h1po07] {
        border-radius: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .submodule-progress-segment.current[b-tex2h1po07]::before,
    .submodule-progress-fill[b-tex2h1po07] {
        animation: none;
    }
}
/* /Components/Shared/TutorialButton.razor.rz.scp.css */
/* ==========================================================================
   The header's link to the "how the site works" page (/tutorial).

   It lives in the layout header at every width and never floats over content:
   every lesson page ends with NavigationButtons, and a floating button would
   sit on top of them.

   Heights track ReportProblemButton.razor.css (the header's "Что-то не так?"
   button) breakpoint for breakpoint, so the two sit on one line. It is the
   site's ordinary button (NavigationButtons.razor.css): a white pill with a
   green border and label, filled on :active and on a mouse hover.

   The link always carries a text label. Only the wording shortens as space
   runs out; the label itself never disappears.

     > 1400px  icon + "Как устроен Zunge"
   701-1400px  icon + "Обучение" - keeps clear of the centred logo
     <= 700px  "Обучение", icon dropped to buy the label its width
   ========================================================================== */

/* Blazor scopes each component's CSS separately, so the layouts' own
   `* { box-sizing: border-box }` never reaches these elements. Without this the
   declared heights would be off by the border and break the header line-up. */
.tutorial-link[b-0a3tm98crl],
.tutorial-link *[b-0a3tm98crl] {
    box-sizing: border-box;
}

.tutorial-link[b-0a3tm98crl] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    background-color: #fff;
    color: #92cd4d;
    border: 2px solid #92cd4d;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .tutorial-link:hover[b-0a3tm98crl] {
            background-color: #92cd4d;
            color: #fff;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }
    }

    .tutorial-link:active[b-0a3tm98crl] {
        background-color: #92cd4d;
        color: #fff;
        transition-duration: 0s;
    }

    .tutorial-link:focus-visible[b-0a3tm98crl] {
        outline: 2px solid #4d7cfe;
        outline-offset: 2px;
    }

.tutorial-link-icon[b-0a3tm98crl] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.tutorial-link-label-short[b-0a3tm98crl] {
    display: none;
}

/* ========== Laptop - shorten the label before it reaches the logo ========== */
@media (max-width: 1400px) {
    .tutorial-link-label[b-0a3tm98crl] {
        display: none;
    }

    .tutorial-link-label-short[b-0a3tm98crl] {
        display: inline;
    }
}

/* ========== 900px - matches the help button ========== */
@media (max-width: 900px) {
    .tutorial-link[b-0a3tm98crl] {
        height: 38px;
        padding: 0 16px;
        font-size: 13px;
        border-radius: 19px;
    }
}

/* ========== 700px and below - the glyph is dropped and the word kept ========== */
@media (max-width: 700px) {
    .tutorial-link[b-0a3tm98crl] {
        height: 36px;
        padding: 0 13px;
        gap: 0;
        font-size: 12px;
        letter-spacing: 0.2px;
        border-radius: 18px;
    }

    .tutorial-link-icon[b-0a3tm98crl] {
        display: none;
    }
}

@media (max-width: 600px) {
    .tutorial-link[b-0a3tm98crl] {
        height: 34px;
        border-radius: 17px;
    }
}

@media (max-width: 500px) {
    .tutorial-link[b-0a3tm98crl] {
        height: 32px;
        padding: 0 12px;
        border-radius: 16px;
    }
}

@media (max-width: 450px) {
    .tutorial-link[b-0a3tm98crl] {
        height: 28px;
        padding: 0 10px;
        font-size: 11px;
        border-radius: 14px;
    }
}

@media (max-width: 380px) {
    .tutorial-link[b-0a3tm98crl] {
        height: 26px;
        padding: 0 9px;
        border-radius: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tutorial-link[b-0a3tm98crl] {
        transition: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .tutorial-link:hover[b-0a3tm98crl] {
            transform: none;
        }
    }
}
/* /Components/Shared/TutorialHint.razor.rz.scp.css */
/* ==========================================================================
   TutorialHint - a small note under the first module on /select-module for a
   student who has not completed a lesson yet, offering the "how the site
   works" page (/tutorial). Purely informational and dismissible: it never
   blocks anything, and goes away for good with the first completed lesson.

   Rendered as a plain <li> inside ul.module-items (see ModuleSelection.razor),
   so it inherits the responsive custom properties ModuleSelection.razor.css
   defines on .select-module-page (e.g. --module-gap) and keeps the same list
   rhythm as the module rows around it. Sizing otherwise shrinks at that same
   page's own 768px/480px breakpoints, not new ones of its own.
   ========================================================================== */

.tutorial-hint[b-foim9sw5se],
.tutorial-hint *[b-foim9sw5se],
.tutorial-hint *[b-foim9sw5se]::before,
.tutorial-hint *[b-foim9sw5se]::after {
    box-sizing: border-box;
}

.tutorial-hint[b-foim9sw5se] {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    list-style: none;
    /* Half of module-gap, not the full gap - this is a compact aside, not
       another module row, so it doesn't need the same breathing room. The
       negative top margin pulls it up out of the main-module's own
       margin-bottom (the full module-gap) so the gap above matches the one
       below instead of being twice as tall. */
    margin: calc(var(--module-gap, 50px) * -0.5) 0 calc(var(--module-gap, 50px) * 0.5);
    padding: 12px 40px 12px 18px;
    background: #f4faec;
    border: 1px solid #cde8ac;
    border-radius: 16px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    animation: th-fade-in-b-foim9sw5se 0.35s ease;
}

@keyframes th-fade-in-b-foim9sw5se {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Icon - same glyph and green as the header link ===== */
.th-icon[b-foim9sw5se] {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #92cd4d;
}

    .th-icon svg[b-foim9sw5se] {
        width: 17px;
        height: 17px;
        color: #fff;
    }

/* ===== Body ===== */
.th-body[b-foim9sw5se] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.th-title[b-foim9sw5se] {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.th-text[b-foim9sw5se] {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #4a4f57;
}

/* The site's ordinary button, compact (NavigationButtons.razor.css). */
.th-open[b-foim9sw5se] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin-top: 6px;
    padding: 0 18px;
    background-color: #fff;
    color: #92cd4d;
    border: 2px solid #92cd4d;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease, color 0.3s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .th-open:hover[b-foim9sw5se] {
            background-color: #92cd4d;
            color: #fff;
        }
    }

    .th-open:active[b-foim9sw5se] {
        background-color: #92cd4d;
        color: #fff;
        transition-duration: 0s;
    }

    .th-open:focus-visible[b-foim9sw5se] {
        outline: 2px solid #4d7cfe;
        outline-offset: 2px;
    }

/* ===== Dismiss ===== */
.th-dismiss[b-foim9sw5se] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #4a4f57;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .th-dismiss:hover[b-foim9sw5se] {
            background: rgba(0, 0, 0, 0.1);
            transform: rotate(90deg);
        }
    }

    .th-dismiss:active[b-foim9sw5se] {
        background: rgba(0, 0, 0, 0.16);
        transition-duration: 0s;
    }

    .th-dismiss:focus-visible[b-foim9sw5se] {
        outline: 2px solid #4d7cfe;
        outline-offset: 2px;
    }

/* ===== Tablet - matches ModuleSelection.razor.css's own 768px step ===== */
@media (max-width: 768px) {
    .tutorial-hint[b-foim9sw5se] {
        gap: 10px;
        padding: 10px 34px 10px 14px;
        border-radius: 14px;
    }

    .th-icon[b-foim9sw5se] {
        width: 28px;
        height: 28px;
    }

        .th-icon svg[b-foim9sw5se] {
            width: 14px;
            height: 14px;
        }

    .th-title[b-foim9sw5se] {
        font-size: 14px;
    }

    .th-text[b-foim9sw5se] {
        font-size: 12.5px;
    }
}

/* ===== Mobile - matches ModuleSelection.razor.css's own 480px step ===== */
@media (max-width: 480px) {
    .tutorial-hint[b-foim9sw5se] {
        padding: 9px 30px 9px 12px;
        border-radius: 12px;
    }

    .th-title[b-foim9sw5se] {
        font-size: 13px;
    }

    .th-text[b-foim9sw5se] {
        font-size: 12px;
    }

    /* A phone: the button runs the width of the note, from under the icon to under the close button. */
    .th-open[b-foim9sw5se] {
        width: calc(100% + 56px);
        height: 40px;
        margin-left: -38px;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tutorial-hint[b-foim9sw5se] {
        animation: none;
    }

    .th-open[b-foim9sw5se] {
        transition: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .th-dismiss:hover[b-foim9sw5se] {
            transform: none;
        }
    }
}
/* /Components/Shared/ViewportPage.razor.rz.scp.css */
/* js/viewport-page.js sets --vp-height from the page's real top edge and the visible
   viewport (keyboards included); the calc() is the fallback until it runs. 136px = the
   app header plus main's top and bottom padding on desktop. */
.vp[b-jqf0qo374p] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: var(--vp-height, calc(100dvh - 136px));
}

/* Phones and tablets: the app header is fixed, so a pinned page fills the screen below
   it, edge to edge. --vp-top mirrors the header heights in LeftSideNavLayout.razor.css. */
@media (max-width: 1100px) {
    .vp--pinned[b-jqf0qo374p] {
        --vp-top: 72px;
        position: fixed;
        top: var(--vp-top);
        right: 0;
        left: 0;
        z-index: 10;
        height: var(--vp-height, calc(100dvh - var(--vp-top)));
    }
}

@media (max-width: 900px) {
    .vp--pinned[b-jqf0qo374p] {
        --vp-top: calc(38px + 1.7rem);
    }
}

@media (max-width: 700px) {
    .vp--pinned[b-jqf0qo374p] {
        --vp-top: calc(36px + 1.5rem);
    }
}

@media (max-width: 600px) {
    .vp--pinned[b-jqf0qo374p] {
        --vp-top: calc(34px + 1.3rem);
    }
}

@media (max-width: 500px) {
    .vp--pinned[b-jqf0qo374p] {
        --vp-top: calc(32px + 1.1rem);
    }
}

@media (max-width: 450px) {
    .vp--pinned[b-jqf0qo374p] {
        --vp-top: calc(28px + 1rem);
    }
}

@media (max-width: 380px) {
    .vp--pinned[b-jqf0qo374p] {
        --vp-top: calc(26px + .8rem);
    }
}
/* /Layout/LeftSideNavLayout.razor.rz.scp.css */
*[b-cll9n72cd4], *[b-cll9n72cd4]::before, *[b-cll9n72cd4]::after {
    box-sizing: border-box;
}

.layout-container[b-cll9n72cd4] {
    /* Geometry shared by the header row and main (and read by page
       stylesheets such as Subscription's fixed checkout bar):
       --nav-w     width of the fixed left nav (0 once it is off-canvas)
       --main-pad  main's padding; the header buttons use the same inset
       --main-pad-top  main's top padding (half of --main-pad, see main);
                   AdminShell cancels it to sit close to the header
       --page-max  width cap of the page container, centred in main
                   (ModuleSelection, Test, Progress, the lesson page, the
                   chat card) */
    --nav-w: 320px;
    --main-pad: 2rem;
    --main-pad-top: calc(var(--main-pad) * 0.5);
    --page-max: 1200px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: white;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    max-width: 1700px;
    margin: 0 auto;
    user-select: none;
    min-width: 350px;
    position: relative;
}

.header[b-cll9n72cd4] {
    position: sticky;
    top: 0;
    background: transparent;
    padding: 1rem 0;
    z-index: 900;
    border-bottom: none !important;
    text-decoration: none !important;
    transition: padding 0.3s ease;
    pointer-events: none;
}

    .header[b-cll9n72cd4]::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: -1;
    }

/* The header spans the whole layout (under the fixed nav), so the logo,
   positioned against .header, sits in the centre of the screen. The left
   padding clears the nav and both paddings match main's, so the buttons
   line up with the page content. */
.top-nav-container[b-cll9n72cd4] {
    padding: 0 var(--main-pad) 0 calc(var(--nav-w) + var(--main-pad));
    transition: padding 0.3s ease;
    pointer-events: auto;
}

.top-nav[b-cll9n72cd4] {
    display: flex;
    align-items: center;
    height: 40px;
    transition: height 0.3s ease;
}

.logo-container[b-cll9n72cd4] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 950;
}

.logo[b-cll9n72cd4] {
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .logo:hover[b-cll9n72cd4] {
            transform: translateY(-3px) scale(1.05);
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
        }
    }

    .logo:active[b-cll9n72cd4] {
        transform: translateY(-1px) scale(1.02);
        transition-duration: 0s;
    }

/* Skip + report, always at the right end of the header row */
.help-button-container[b-cll9n72cd4] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
}

.content-wrapper[b-cll9n72cd4] {
    display: flex;
    flex: 1;
    position: relative;
    padding-left: var(--nav-w);
}

/* Main Content — pages centre in it, capped at --page-max.
   Top padding is halved relative to the sides/bottom so pages sit closer
   to the header row than the full --main-pad would put them; the header
   row's own padding already provides most of the vertical breathing room. */
main[b-cll9n72cd4] {
    flex: 1;
    min-width: 0;
    padding: var(--main-pad);
    padding-top: var(--main-pad-top);
    position: relative;
}

/* The hamburger (NavMenuToggle, sized by --toggle-size) — only shown <= 1100px */
.navmenu-toggle-slot[b-cll9n72cd4] {
    display: none;
}

/* ========== Very large desktop — wider sidebar (SideNav gives it bigger rows and text) ==========
   Below this the column is 320px, the width of the drawer (SideNav.razor.css). */
@media (min-width: 2300px) and (min-height: 1200px) {
    .layout-container[b-cll9n72cd4] {
        --nav-w: 340px;
    }
}

/* ========== Laptop — narrower sidebar, header identical to MainLayout ========== */
@media (max-width: 1500px) {
    .layout-container[b-cll9n72cd4] {
        --nav-w: 240px;
        --main-pad: 1.6rem;
        --page-max: 940px;
    }
}

/* ========== Tablet / Mobile — header switches to fixed, the nav becomes a drawer ========== */
@media (max-width: 1100px) {
    .header[b-cll9n72cd4] {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 1800;
        pointer-events: auto;
    }

    .header[b-cll9n72cd4]::before {
        display: none;
    }

    .content-wrapper[b-cll9n72cd4] {
        padding-top: calc(40px + 2rem);
    }

    .layout-container[b-cll9n72cd4] {
        --nav-w: 0px;
        --main-pad: 1.5rem;
    }

    .navmenu-toggle-slot[b-cll9n72cd4] {
        display: block;
        z-index: 2000;
        --toggle-size: 40px;
        position: fixed;
        top: 1rem;
        left: var(--main-pad);
    }
}

/* ========== 900px — matches MainLayout exactly ========== */
@media (max-width: 900px) {
    .header[b-cll9n72cd4] {
        padding: 0.85rem 0;
    }

    .top-nav[b-cll9n72cd4] {
        height: 38px;
    }

    .logo[b-cll9n72cd4] {
        height: 38px;
    }

    .content-wrapper[b-cll9n72cd4] {
        padding-top: calc(38px + 1.7rem);
    }

    .navmenu-toggle-slot[b-cll9n72cd4] {
        --toggle-size: 38px;
        top: 0.85rem;
    }
}

/* ========== 700px — matches MainLayout exactly ========== */
@media (max-width: 700px) {
    .header[b-cll9n72cd4] {
        padding: 0.75rem 0;
    }

    .top-nav[b-cll9n72cd4] {
        height: 36px;
    }

    .logo[b-cll9n72cd4] {
        height: 35px;
    }

        @media (hover: hover) and (pointer: fine) {
            .logo:hover[b-cll9n72cd4] {
                transform: translateY(-2px) scale(1.03);
            }
        }

    .content-wrapper[b-cll9n72cd4] {
        padding-top: calc(36px + 1.5rem);
    }

    .layout-container[b-cll9n72cd4] {
        --main-pad: 1rem;
    }

    .navmenu-toggle-slot[b-cll9n72cd4] {
        --toggle-size: 36px;
        top: 0.75rem;
    }
}

/* ========== 600px — matches MainLayout exactly ========== */
@media (max-width: 600px) {
    .header[b-cll9n72cd4] {
        padding: 0.65rem 0;
    }

    .top-nav[b-cll9n72cd4] {
        height: 34px;
    }

    .logo[b-cll9n72cd4] {
        height: 32px;
    }

    .content-wrapper[b-cll9n72cd4] {
        padding-top: calc(34px + 1.3rem);
    }

    .navmenu-toggle-slot[b-cll9n72cd4] {
        --toggle-size: 34px;
        top: 0.65rem;
    }

    .layout-container[b-cll9n72cd4] {
        --main-pad: 0.75rem;
    }
}

/* ========== 500px — matches MainLayout exactly ========== */
@media (max-width: 500px) {
    .header[b-cll9n72cd4] {
        padding: 0.55rem 0;
    }

    .top-nav[b-cll9n72cd4] {
        height: 32px;
    }

    .logo[b-cll9n72cd4] {
        height: 30px;
    }

    .content-wrapper[b-cll9n72cd4] {
        padding-top: calc(32px + 1.1rem);
    }

    .navmenu-toggle-slot[b-cll9n72cd4] {
        --toggle-size: 32px;
        top: 0.55rem;
    }
}

/* ========== 450px — matches MainLayout exactly ========== */
@media (max-width: 450px) {
    .layout-container[b-cll9n72cd4] {
        min-width: 350px;
    }

    .header[b-cll9n72cd4] {
        padding: 0.5rem 0;
    }

    .top-nav[b-cll9n72cd4] {
        height: 28px;
    }

    .logo[b-cll9n72cd4] {
        height: 28px;
    }

        @media (hover: hover) and (pointer: fine) {
            .logo:hover[b-cll9n72cd4] {
                transform: translateY(-1px) scale(1.02);
            }
        }

    .content-wrapper[b-cll9n72cd4] {
        padding-top: calc(28px + 1rem);
    }

    .navmenu-toggle-slot[b-cll9n72cd4] {
        --toggle-size: 28px;
        top: 0.5rem;
    }
}

/* ========== 380px — matches MainLayout exactly ========== */
@media (max-width: 380px) {
    .header[b-cll9n72cd4] {
        padding: 0.4rem 0;
    }

    .top-nav[b-cll9n72cd4] {
        height: 26px;
    }

    .logo[b-cll9n72cd4] {
        height: 26px;
    }

    .content-wrapper[b-cll9n72cd4] {
        padding-top: calc(26px + 0.8rem);
    }

    .navmenu-toggle-slot[b-cll9n72cd4] {
        --toggle-size: 26px;
        top: 0.4rem;
    }
}

/* While the problem-report dialog is open, lift the header (its stacking context)
   above the side menu, mobile header and hamburger so the backdrop covers them. */
.header.report-open[b-cll9n72cd4] {
    z-index: 2100;
}
/* /Layout/MainLayout.razor.rz.scp.css */
*[b-3ljwtt8n2z], *[b-3ljwtt8n2z]::before, *[b-3ljwtt8n2z]::after {
    box-sizing: border-box;
}

.layout-container[b-3ljwtt8n2z] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* iOS Safari sizes 100vh to the viewport with its toolbars hidden, so a page
       that fits still overflowed by the toolbar height and the footer sat below
       the fold. svh is the viewport with the toolbars shown. */
    min-height: 100svh;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    min-width: 350px;
}

/* ========== Header ========== */
.header[b-3ljwtt8n2z] {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    padding: 1rem 0;
    z-index: 1100;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: padding 0.3s ease;
}

.top-nav-container[b-3ljwtt8n2z] {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 2rem;
    transition: padding 0.3s ease;
}

.top-nav[b-3ljwtt8n2z] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    --toggle-size: 40px;
    height: 40px;
    transition: height 0.3s ease;
}

.logo-container[b-3ljwtt8n2z] {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.logo[b-3ljwtt8n2z] {
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .logo:hover[b-3ljwtt8n2z] {
            transform: translateY(-3px) scale(1.05);
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
        }
    }

    .logo:active[b-3ljwtt8n2z] {
        transform: translateY(-1px) scale(1.02);
        transition-duration: 0s;
    }

/* Skip + report, always at the right end of the header row (as in LeftSideNavLayout);
   the hamburger (NavMenuToggle, sized by --toggle-size) is at the left end. */
.help-button-container[b-3ljwtt8n2z] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
}

/* ========== Main ========== */
main[b-3ljwtt8n2z] {
    flex: 1 0 auto;
    padding-top: 35px;
    width: 100%;
}

/* Desktop and laptop: a lesson starts as close to the header as the left-nav
   pages do (LeftSideNavLayout's --main-pad-top, 1rem). main keeps that gap and
   the lesson pages give up their own top padding: each reads --lesson-pad-top
   with its former padding as the fallback, and SubModuleProgress reads
   --submodule-progress-lift instead of pulling itself up into that padding. */
@media (min-width: 1025px) {
    main[b-3ljwtt8n2z] {
        --lesson-pad-top: 0px;
        --submodule-progress-lift: 0px;
        padding-top: 1rem;
    }
}

/* ========== Responsive Breakpoints ========== */
@media (max-width: 1100px) {
    main[b-3ljwtt8n2z] {
        padding-top: 35px;
    }
}

@media (max-width: 900px) {
    .header[b-3ljwtt8n2z] {
        padding: 0.85rem 0;
    }

    .top-nav[b-3ljwtt8n2z] {
        --toggle-size: 38px;
        height: 38px;
    }

    .logo[b-3ljwtt8n2z] {
        height: 38px;
    }

    main[b-3ljwtt8n2z] {
        padding-top: 20px;
    }

    .top-nav-container[b-3ljwtt8n2z] {
        padding: 0 1rem;
    }
}

@media (max-width: 700px) {
    .header[b-3ljwtt8n2z] {
        padding: 0.75rem 0;
    }

    .top-nav[b-3ljwtt8n2z] {
        --toggle-size: 36px;
        height: 36px;
    }

    .logo[b-3ljwtt8n2z] {
        height: 35px;
    }

        @media (hover: hover) and (pointer: fine) {
            .logo:hover[b-3ljwtt8n2z] {
                transform: translateY(-2px) scale(1.03);
            }
        }

    .top-nav-container[b-3ljwtt8n2z] {
        padding: 0 1rem;
    }
}

@media (max-width: 600px) {
    .header[b-3ljwtt8n2z] {
        padding: 0.65rem 0;
    }

    .top-nav[b-3ljwtt8n2z] {
        --toggle-size: 34px;
        height: 34px;
    }

    .logo[b-3ljwtt8n2z] {
        height: 32px;
    }

    main[b-3ljwtt8n2z] {
        padding-top: 10px;
    }

    .top-nav-container[b-3ljwtt8n2z] {
        padding: 0 0.5rem;
    }
}

@media (max-width: 500px) {
    .header[b-3ljwtt8n2z] {
        padding: 0.55rem 0;
    }

    .top-nav[b-3ljwtt8n2z] {
        --toggle-size: 32px;
        height: 32px;
    }

    .logo[b-3ljwtt8n2z] {
        height: 30px;
    }
}

@media (max-width: 450px) {
    .header[b-3ljwtt8n2z] {
        padding: 0.5rem 0;
    }

    .top-nav[b-3ljwtt8n2z] {
        --toggle-size: 28px;
        height: 28px;
    }

    .logo[b-3ljwtt8n2z] {
        height: 28px;
    }

        @media (hover: hover) and (pointer: fine) {
            .logo:hover[b-3ljwtt8n2z] {
                transform: translateY(-1px) scale(1.02);
            }
        }

    .top-nav-container[b-3ljwtt8n2z] {
        padding: 0 0.5rem;
    }
}

@media (max-width: 380px) {
    .header[b-3ljwtt8n2z] {
        padding: 0.4rem 0;
    }

    .top-nav[b-3ljwtt8n2z] {
        --toggle-size: 26px;
        height: 26px;
    }

    .logo[b-3ljwtt8n2z] {
        height: 26px;
    }
}

/* While the problem-report dialog is open, lift the header (its stacking context)
   above the side menu, mobile header and hamburger so the backdrop covers them. */
.header.report-open[b-3ljwtt8n2z] {
    z-index: 2100;
}

/* ========== Leave guard — above the menu drawer (1950) and the report dialog (2100) ========== */
.leave-backdrop[b-3ljwtt8n2z] {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(15, 23, 42, 0.32);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    /* A swipe on the dimmed area must not scroll the lesson underneath. */
    touch-action: none;
    overscroll-behavior: contain;
    animation: leave-fade-b-3ljwtt8n2z 0.15s ease-out;
}

.leave-dialog[b-3ljwtt8n2z] {
    width: min(420px, 100%);
    /* A phone on its side is lower than the dialog: it scrolls inside instead of being cut. */
    max-height: 100%;
    overflow-y: auto;
    touch-action: pan-y;
    padding: 28px 28px 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(20, 30, 60, 0.18), 0 2px 6px rgba(20, 30, 60, 0.06);
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    text-align: center;
    outline: none;
    animation: leave-pop-b-3ljwtt8n2z 0.18s ease-out;
}

@keyframes leave-fade-b-3ljwtt8n2z {
    from {
        opacity: 0;
    }
}

@keyframes leave-pop-b-3ljwtt8n2z {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
}

@media (prefers-reduced-motion: reduce) {
    .leave-backdrop[b-3ljwtt8n2z],
    .leave-dialog[b-3ljwtt8n2z] {
        animation: none;
    }
}

.leave-title[b-3ljwtt8n2z] {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.leave-text[b-3ljwtt8n2z] {
    margin: 0 0 24px;
    color: #4a4f57;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.leave-actions[b-3ljwtt8n2z] {
    display: flex;
    gap: 12px;
}

/* The pills of NavigationButtons: white with a 2px coloured border, filled with
   that colour on hover and while pressed. Red leaves, blue stays. */
.leave-btn[b-3ljwtt8n2z] {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 16px;
    border: 2px solid var(--leave-btn-color);
    border-radius: 23px;
    background: #fff;
    color: var(--leave-btn-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.leave-btn--leave[b-3ljwtt8n2z] {
    --leave-btn-color: #ff4245;
    --leave-btn-text: #d93639;
}

.leave-btn--stay[b-3ljwtt8n2z] {
    --leave-btn-color: #4d7cfe;
    --leave-btn-text: #4d7cfe;
}

@media (hover: hover) and (pointer: fine) {
    .leave-btn:hover[b-3ljwtt8n2z] {
        background: var(--leave-btn-color);
        color: #fff;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }
}

.leave-btn:active[b-3ljwtt8n2z] {
    background: var(--leave-btn-color);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transform: scale(0.97);
    transition-duration: 0s;
}

.leave-btn:focus-visible[b-3ljwtt8n2z] {
    outline: 3px solid rgba(77, 124, 254, 0.35);
    outline-offset: 2px;
}

.leave-btn--leave:focus-visible[b-3ljwtt8n2z] {
    outline-color: rgba(255, 66, 69, 0.35);
}

/* Tablet and phone: 48px tall and no resting shadow, as NavigationButtons. */
@media (max-width: 992px) {
    .leave-btn[b-3ljwtt8n2z] {
        height: 48px;
        border-radius: 24px;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .leave-dialog[b-3ljwtt8n2z] {
        padding: 24px 20px 20px;
        border-radius: 20px;
    }

    .leave-title[b-3ljwtt8n2z] {
        font-size: 18px;
    }

    .leave-text[b-3ljwtt8n2z] {
        margin-bottom: 20px;
        font-size: 14.5px;
    }

    .leave-actions[b-3ljwtt8n2z] {
        gap: 10px;
    }

    .leave-btn[b-3ljwtt8n2z] {
        padding: 0 10px;
        letter-spacing: 0.2px;
    }
}
/* /Layout/NavMenuToggle.razor.rz.scp.css */
.navmenu-toggle[b-q3qqp3a31s] {
    display: block;
    width: var(--toggle-size, 40px);
    height: var(--toggle-size, 40px);
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

    .navmenu-toggle:active[b-q3qqp3a31s] {
        transform: scale(0.9);
        transition-duration: 0s;
    }

    .navmenu-toggle:focus-visible[b-q3qqp3a31s] {
        outline: 2px solid #4d7cfe;
        outline-offset: 2px;
        border-radius: 8px;
    }

@media (hover: hover) and (pointer: fine) {
    .navmenu-toggle:hover[b-q3qqp3a31s] {
        transform: scale(1.1);
    }
}

.flag-hamburger[b-q3qqp3a31s] {
    width: calc(var(--toggle-size, 40px) * 0.75);
    height: calc(var(--toggle-size, 40px) * 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.flag-bar[b-q3qqp3a31s] {
    width: 100%;
    height: calc(var(--toggle-size, 40px) * 0.1);
    border-radius: calc(var(--toggle-size, 40px) * 0.05);
    transition: all 0.3s ease;
    transform-origin: center;
}

.flag-bar-black[b-q3qqp3a31s] {
    background: #000000;
}

.flag-bar-red[b-q3qqp3a31s] {
    background: #e43e2d;
}

.flag-bar-yellow[b-q3qqp3a31s] {
    background: #fdbf0e;
}

.navmenu-toggle.open .flag-bar-black[b-q3qqp3a31s] {
    transform: translateY(calc(var(--toggle-size, 40px) * 0.2)) rotate(45deg);
}

.navmenu-toggle.open .flag-bar-red[b-q3qqp3a31s] {
    opacity: 0;
    transform: scaleX(0);
}

.navmenu-toggle.open .flag-bar-yellow[b-q3qqp3a31s] {
    transform: translateY(calc(var(--toggle-size, 40px) * -0.2)) rotate(-45deg);
}
/* /Layout/SideNav.razor.rz.scp.css */
/* =====================================================
   Side navigation
   =====================================================
   Same visual language as the landing menu (Components/Landing/Nav.razor.css):
   rounded rows, soft brand tint for the current page, a filled pill for the
   one call to action, monochrome socials that take their brand colour.

   The rules below draw the off-canvas drawer. That is how the menu looks
   everywhere in MainLayout (.is-drawer) and at <= 1100px in LeftSideNavLayout;
   above 1100px LeftSideNavLayout docks it as a fixed column beside main (the
   "Docked" block). */
.sidenav[b-8xtj5n78up] {
    --sn-text: #1f2433;
    --sn-muted: #6b7385;
    --sn-faint: #9aa1b1;
    --sn-brand: #4d7cfe;
    --sn-soft: #f3f6ff;
    --sn-hover: #f5f7fb;
    --sn-press: #e6ecff;
    --sn-line: #eceef3;
    --sn-row: 50px;
    --sn-font: 17px;
    --sn-sub-row: 44px;
    --sn-sub-font: 16px;
    --sn-social: 44px;
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: calc(env(safe-area-inset-top, 0px) + 0.75rem) 0.875rem calc(env(safe-area-inset-bottom, 0px) + 1rem);
    background: #fff;
    border-radius: 0 24px 24px 0;
    box-shadow: 0 12px 40px rgba(20, 30, 60, 0.18), 0 2px 6px rgba(20, 30, 60, 0.06);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Thin and invisible until the pointer is over the nav (see the hover
       block); touch devices use their own overlay scrollbars. Where the
       scrollbar takes up width (Windows, Linux, "always show scrollbars"),
       its gutter is reserved whether or not the menu overflows: opening the
       library group then never narrows the rows or re-wraps the goal line.
       Overlay scrollbars have no gutter, so this costs nothing there. */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    scrollbar-gutter: stable;
    /* The drawer and its backdrop sit above the layouts' headers (1800 at most);
       the problem-report dialog lifts the header to 2100, above both. */
    z-index: 1950;
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.3s;
    font-family: 'Montserrat', sans-serif;
    color: var(--sn-text);
    user-select: none;
}

    .sidenav.is-open[b-8xtj5n78up] {
        transform: none;
        visibility: visible;
        transition-delay: 0s;
    }

/* Drawer-only: logo + close button */
.sidenav-top[b-8xtj5n78up] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    margin-bottom: 10px;
    padding: 0 2px 0 10px;
}

.sidenav-logo[b-8xtj5n78up] {
    display: flex;
    -webkit-tap-highlight-color: transparent;
}

    .sidenav-logo img[b-8xtj5n78up] {
        height: 30px;
        width: auto;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    /* Same lift and press as the header .logo */
    .sidenav-logo:active img[b-8xtj5n78up] {
        transform: translateY(-1px) scale(1.02);
        transition-duration: 0s;
    }

.sidenav-close[b-8xtj5n78up] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f4f8;
    color: var(--sn-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

    .sidenav-close .sidenav-icon[b-8xtj5n78up] {
        width: 20px;
        height: 20px;
        stroke-width: 2.2px;
    }

    .sidenav-close:active[b-8xtj5n78up] {
        background: var(--sn-press);
        transform: scale(0.92);
        transition-duration: 0s;
    }

    .sidenav-close:focus-visible[b-8xtj5n78up] {
        outline: 2px solid var(--sn-brand);
        outline-offset: 2px;
    }

.sidenav-list[b-8xtj5n78up] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ---------- Rows ---------- */
.sidenav-link[b-8xtj5n78up] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: var(--sn-row);
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--sn-text);
    font: 600 var(--sn-font)/1.2 'Montserrat', sans-serif;
    letter-spacing: 0.1px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .sidenav-link:active[b-8xtj5n78up] {
        background: var(--sn-press);
        transition-duration: 0s;
    }

    .sidenav-link:focus-visible[b-8xtj5n78up] {
        outline: 2px solid var(--sn-brand);
        outline-offset: -2px;
    }

    .sidenav-link.is-current[b-8xtj5n78up] {
        background: var(--sn-soft);
        color: var(--sn-brand);
    }

        .sidenav-link.is-current:active[b-8xtj5n78up] {
            background: #dce5ff;
        }

.sidenav-label[b-8xtj5n78up] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidenav-icon[b-8xtj5n78up] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Fine detail inside an icon (circuit traces, the % sign), and the faded
   track under the progress ring — both follow the icon's colour */
.sidenav-icon-fine[b-8xtj5n78up] {
    stroke-width: 1.4px;
}

.sidenav-icon-track[b-8xtj5n78up] {
    stroke-opacity: 0.35;
}

.sidenav-link > .sidenav-icon[b-8xtj5n78up] {
    color: var(--sn-muted);
    transition: color 0.15s ease;
}

.sidenav-link.is-current > .sidenav-icon[b-8xtj5n78up] {
    color: var(--sn-brand);
}

/* Chat while access is still loading, and without Premium */
.sidenav-link.is-loading[b-8xtj5n78up] {
    color: var(--sn-faint);
    cursor: default;
    pointer-events: none;
}

.sidenav-link.is-locked[b-8xtj5n78up] {
    color: var(--sn-muted);
}

/* ---------- Continue: first in the menu, on every page ----------
   One button, two lines inside it: what it does, and the lesson it leads to (one line, cut with an ellipsis).
   Its height never changes (the second line is reserved while the target is still loading), so the rows below
   never move. On the module list it is quiet (.is-quiet), because the same button is docked on that page; the
   two looks cross-fade. */
.sidenav-continue[b-8xtj5n78up] {
    display: block;
    margin: 0 0 8px;
    border-radius: 14px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

    .sidenav-continue:focus-visible[b-8xtj5n78up] {
        outline: 2px solid var(--sn-brand);
        outline-offset: 2px;
    }

.sidenav-continue-pill[b-8xtj5n78up] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 7px 12px;
    border-radius: 14px;
    background: var(--sn-brand);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.sidenav-continue.is-quiet .sidenav-continue-pill[b-8xtj5n78up] {
    background: var(--sn-soft);
    color: var(--sn-brand);
}

.sidenav-continue:active .sidenav-continue-pill[b-8xtj5n78up] {
    background: #3a63d8;
    transition-duration: 0s;
}

.sidenav-continue.is-quiet:active .sidenav-continue-pill[b-8xtj5n78up] {
    background: var(--sn-press);
}

.sidenav-continue-play[b-8xtj5n78up] {
    fill: currentColor;
}

.sidenav-continue-text[b-8xtj5n78up] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.sidenav-continue-title[b-8xtj5n78up] {
    font-size: var(--sn-font);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1px;
}

.sidenav-continue-title[b-8xtj5n78up],
.sidenav-continue-detail[b-8xtj5n78up] {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidenav-continue-detail[b-8xtj5n78up] {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    /* Exactly one line, present even while empty */
    min-height: 1.3em;
    transition: color 0.35s ease;
}

.sidenav-continue.is-quiet .sidenav-continue-detail[b-8xtj5n78up] {
    color: var(--sn-muted);
}

/* Today's goal and the streak, on the desktop and in the drawer alike */
.sidenav-study[b-8xtj5n78up] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0 0 8px;
    padding: 8px 12px;
    border: 1px solid var(--sn-line);
    border-radius: 12px;
    color: var(--sn-muted);
    font: 500 13px/1.3 'Montserrat', sans-serif;
}

.sidenav-study-item[b-8xtj5n78up] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

    .sidenav-study-item strong[b-8xtj5n78up] {
        color: var(--sn-text);
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

/* Both icons sit in the same 18px column, so the two lines start at the same x when they stack */
.sidenav-study-dot[b-8xtj5n78up] {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border: 2px solid var(--sn-brand);
    border-radius: 50%;
    flex-shrink: 0;
}

.sidenav-study.is-met .sidenav-study-dot[b-8xtj5n78up] {
    border-color: #92cd4d;
    background: #92cd4d;
}

/* The flame of the Дипломат game's streak (PyramidGame.razor.css: .hud-streak-icon), with its "cold" look at 0 */
.sidenav-study .hud-streak-icon[b-8xtj5n78up] {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 15px;
    line-height: 1;
    filter: grayscale(1);
    opacity: 0.6;
}

.sidenav-study-item.is-on .hud-streak-icon[b-8xtj5n78up] {
    filter: none;
    opacity: 1;
}

/* ---------- Badges ---------- */
.sidenav-count[b-8xtj5n78up] {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ff4245;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.sidenav-dot[b-8xtj5n78up] {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
    background: #ff4245;
    box-shadow: 0 0 0 4px rgba(255, 66, 69, 0.15);
}

.sidenav-premium[b-8xtj5n78up] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #92cd4d 0%, #7ab83d 100%);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
}

    .sidenav-premium .sidenav-icon[b-8xtj5n78up] {
        width: 11px;
        height: 11px;
        stroke-width: 2.6px;
    }

/* ---------- Library group ---------- */
.sidenav-chevron[b-8xtj5n78up] {
    display: flex;
    flex-shrink: 0;
    color: var(--sn-faint);
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

    .sidenav-chevron .sidenav-icon[b-8xtj5n78up] {
        width: 18px;
        height: 18px;
        stroke-width: 2.2px;
    }

.sidenav-toggle[aria-expanded="true"] .sidenav-chevron[b-8xtj5n78up] {
    transform: rotate(90deg);
}

.sidenav-toggle.is-current .sidenav-chevron[b-8xtj5n78up] {
    color: var(--sn-brand);
}

/* Height animates through a 0fr -> 1fr grid row; hidden when collapsed so
   its links drop out of the tab order. */
.sidenav-sub[b-8xtj5n78up] {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.28s;
}

    .sidenav-sub.is-open[b-8xtj5n78up] {
        grid-template-rows: 1fr;
        visibility: visible;
        transition-delay: 0s;
    }

.sidenav-sub-inner[b-8xtj5n78up] {
    min-height: 0;
    overflow: hidden;
}

/* The guide line runs under the icon column of the rows above */
.sidenav-sub-list[b-8xtj5n78up] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 2px 0 6px 22px;
    border-left: 2px solid var(--sn-line);
}

.sidenav-sublink[b-8xtj5n78up] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--sn-sub-row);
    margin-left: -2px;
    padding: 0 12px 0 16px;
    border-left: 2px solid transparent;
    border-radius: 0 10px 10px 0;
    color: var(--sn-muted);
    font-size: var(--sn-sub-font);
    font-weight: 500;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .sidenav-sublink:active[b-8xtj5n78up] {
        background: var(--sn-press);
        color: var(--sn-text);
        transition-duration: 0s;
    }

    .sidenav-sublink:focus-visible[b-8xtj5n78up] {
        outline: 2px solid var(--sn-brand);
        outline-offset: -2px;
    }

    .sidenav-sublink.is-current[b-8xtj5n78up] {
        border-left-color: var(--sn-brand);
        background: var(--sn-soft);
        color: var(--sn-brand);
        font-weight: 600;
    }

/* The white lesson-type icons of the lesson cards (images/*-icon.svg), used as a mask so they
   take the link's colour: grey at rest, ink on hover/press, blue when current. Sized from the
   sub-row font (about the 22px of the row icons), so it grows with the large-screen steps;
   smaller, the tall thin ones (автор, мэтч) fade to a hairline. */
.sidenav-sub-icon[b-8xtj5n78up] {
    width: 1.4em;
    height: 1.4em;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

/* ---------- Admin ---------- */
.sidenav-heading[b-8xtj5n78up] {
    margin: 14px 12px 4px;
    color: var(--sn-faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Footer ---------- */
.sidenav-footer[b-8xtj5n78up] {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Outlined pill. The filled brand button of this menu is "continue"; this one stays quiet beside it. */
.sidenav-install[b-8xtj5n78up] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #c9d6ff;
    border-radius: 999px;
    background-color: #fff;
    color: var(--sn-brand);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .sidenav-install:active[b-8xtj5n78up] {
        background-color: var(--sn-press);
        border-color: var(--sn-brand);
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .sidenav-install:focus-visible[b-8xtj5n78up] {
        outline: 2px solid var(--sn-brand);
        outline-offset: 2px;
    }

.sidenav-install-icon[b-8xtj5n78up] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* Support card: email + socials, like the footer of the landing menu */
.sidenav-support[b-8xtj5n78up] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--sn-line);
    border-radius: 16px;
    background: #fbfbfd;
}

.sidenav-help[b-8xtj5n78up] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 10px;
    border-radius: 11px;
    color: var(--sn-text);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease;
}

    .sidenav-help > .sidenav-icon[b-8xtj5n78up] {
        color: var(--sn-brand);
    }

    .sidenav-help:active[b-8xtj5n78up] {
        background: var(--sn-press);
        transition-duration: 0s;
    }

    .sidenav-help:focus-visible[b-8xtj5n78up] {
        outline: 2px solid var(--sn-brand);
        outline-offset: -2px;
    }

.sidenav-help-text[b-8xtj5n78up] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidenav-help-title[b-8xtj5n78up] {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.sidenav-help-email[b-8xtj5n78up] {
    overflow: hidden;
    color: var(--sn-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidenav-socials[b-8xtj5n78up] {
    display: flex;
    justify-content: space-between;
    padding: 0 4px 2px;
}

    /* --social-brand is set per link in the markup */
    .sidenav-socials a[b-8xtj5n78up] {
        width: var(--sn-social);
        height: var(--sn-social);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #2b3140;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

        /* Touch feedback: the brand colouring, pressed in, drawn instantly */
        .sidenav-socials a:active[b-8xtj5n78up] {
            color: var(--social-brand);
            background: color-mix(in srgb, var(--social-brand) 16%, #fff);
            box-shadow: none;
            transform: scale(0.92);
            transition-duration: 0s;
        }

        .sidenav-socials a:focus-visible[b-8xtj5n78up] {
            outline: 2px solid var(--sn-brand);
            outline-offset: 2px;
        }

/* A monochrome icon in the link's text colour (the SVG is only the shape) */
.sidenav-social-icon[b-8xtj5n78up] {
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.sidenav-legal[b-8xtj5n78up] {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

    .sidenav-legal a[b-8xtj5n78up] {
        padding: 6px 0;
        color: var(--sn-faint);
        text-decoration: none;
        transition: color 0.15s ease;
    }

        .sidenav-legal a:active[b-8xtj5n78up] {
            color: var(--sn-brand);
            transition-duration: 0s;
        }

/* ---------- Hover (mouse / trackpad only — see CLAUDE.md) ---------- */
@media (hover: hover) and (pointer: fine) {
    .sidenav:hover[b-8xtj5n78up] {
        scrollbar-color: #dde1ea transparent;
    }

    .sidenav-link:hover[b-8xtj5n78up] {
        background: var(--sn-hover);
    }

    .sidenav-continue:hover .sidenav-continue-pill[b-8xtj5n78up] {
        background: #3f6cf0;
    }

    .sidenav-continue.is-quiet:hover .sidenav-continue-pill[b-8xtj5n78up] {
        background: #e8eeff;
    }


        .sidenav-link:hover > .sidenav-icon[b-8xtj5n78up] {
            color: var(--sn-text);
        }

    .sidenav-link.is-current:hover[b-8xtj5n78up] {
        background: var(--sn-soft);
    }

        .sidenav-link.is-current:hover > .sidenav-icon[b-8xtj5n78up] {
            color: var(--sn-brand);
        }

    .sidenav-link.is-locked:hover[b-8xtj5n78up] {
        color: var(--sn-text);
    }

    .sidenav-sublink:hover[b-8xtj5n78up] {
        background: var(--sn-hover);
        color: var(--sn-text);
    }

    .sidenav-sublink.is-current:hover[b-8xtj5n78up] {
        background: var(--sn-soft);
        color: var(--sn-brand);
    }

    .sidenav-install:hover[b-8xtj5n78up] {
        background-color: var(--sn-soft);
        border-color: var(--sn-brand);
    }

    .sidenav-help:hover[b-8xtj5n78up] {
        background: #f0f3fa;
    }

    .sidenav-socials a:hover[b-8xtj5n78up] {
        color: var(--social-brand);
        background: color-mix(in srgb, var(--social-brand) 12%, #fff);
        box-shadow: 0 4px 12px color-mix(in srgb, var(--social-brand) 22%, transparent);
        transform: translateY(-2px);
    }

    .sidenav-legal a:hover[b-8xtj5n78up] {
        color: var(--sn-brand);
    }

    .sidenav-logo:hover img[b-8xtj5n78up] {
        transform: translateY(-3px) scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    }

    .sidenav-close:hover[b-8xtj5n78up] {
        background: #e9ecf3;
    }
}

/* Drawer backdrop */
.sidenav-backdrop[b-8xtj5n78up] {
    position: fixed;
    inset: 0;
    z-index: 1900;
    background: rgba(15, 23, 42, 0.32);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    touch-action: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

    .sidenav-backdrop.is-open[b-8xtj5n78up] {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

/* ========== Docked — LeftSideNavLayout above 1100px: a fixed column beside main ==========
   --nav-w comes from the layout. Every rule that sizes the docked column carries
   :not(.is-drawer), here and in the breakpoints below, so MainLayout's drawer keeps
   the drawer's own sizes on a wide screen. */
@media (min-width: 1100.01px) {
    .sidenav:not(.is-drawer)[b-8xtj5n78up] {
        --sn-row: 42px;
        --sn-font: 16px;
        --sn-sub-row: 34px;
        --sn-sub-font: 15px;
        --sn-social: 36px;
        left: max(0px, calc((100vw - 1700px) / 2));
        width: var(--nav-w);
        /* The first row is centred on the header row (1rem padding + 40px / 2),
           so "Модули" lines up with the logo and the header buttons */
        padding: calc(1rem + 20px - var(--sn-row) / 2) 0.875rem 1rem;
        border-right: 1px solid var(--sn-line);
        border-radius: 0;
        box-shadow: none;
        z-index: 1100;
        transform: none;
        visibility: visible;
        transition: scrollbar-color 0.2s ease;
    }

        .sidenav:not(.is-drawer) .sidenav-top[b-8xtj5n78up] {
            display: none;
        }

        .sidenav:not(.is-drawer) .sidenav-legal a[b-8xtj5n78up] {
            padding: 3px 0;
        }

    .sidenav-backdrop:not(.is-drawer)[b-8xtj5n78up] {
        display: none;
    }
}

/* ========== Large desktop — bigger rows and text ==========
   Needs the height too, so a wide but short window keeps the compact rows
   and still fits without scrolling. */
@media (min-width: 1800px) and (min-height: 900px) {
    .sidenav:not(.is-drawer)[b-8xtj5n78up] {
        --sn-row: 48px;
        --sn-font: 17px;
        --sn-sub-row: 38px;
        --sn-sub-font: 16px;
        --sn-social: 40px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .sidenav-icon[b-8xtj5n78up] {
        width: 24px;
        height: 24px;
    }

    .sidenav-install[b-8xtj5n78up] {
        min-height: 48px;
        font-size: 15px;
    }

    .sidenav-help-title[b-8xtj5n78up] {
        font-size: 15px;
    }

    .sidenav-help-email[b-8xtj5n78up] {
        font-size: 13px;
    }

    .sidenav-heading[b-8xtj5n78up] {
        font-size: 12px;
    }

    .sidenav-legal[b-8xtj5n78up] {
        font-size: 12px;
    }
}

@media (min-width: 2300px) and (min-height: 1200px) {
    .sidenav:not(.is-drawer)[b-8xtj5n78up] {
        --sn-row: 54px;
        --sn-font: 18px;
        --sn-sub-row: 42px;
        --sn-sub-font: 17px;
        --sn-social: 44px;
    }

    .sidenav-icon[b-8xtj5n78up] {
        width: 26px;
        height: 26px;
    }

    .sidenav-install[b-8xtj5n78up] {
        min-height: 52px;
        font-size: 16px;
    }
}

/* ========== Laptop — narrower column ========== */
@media (min-width: 1100.01px) and (max-width: 1500px) {
    .sidenav:not(.is-drawer)[b-8xtj5n78up] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 1500px) {
    /* "Скачать приложение" needs ~217px at 14px; the column has 216 */
    .sidenav-install[b-8xtj5n78up] {
        gap: 7px;
        padding: 0 12px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidenav[b-8xtj5n78up],
    .sidenav-backdrop[b-8xtj5n78up],
    .sidenav-sub[b-8xtj5n78up],
    .sidenav-chevron[b-8xtj5n78up] {
        transition-duration: 0.01ms !important;
    }
}
/* /Layout/SmartDocLayout.razor.rz.scp.css */
*[b-kidszscebi], *[b-kidszscebi]::before, *[b-kidszscebi]::after {
    box-sizing: border-box;
}

/* ========== Authenticated layout ========== */
.layout-container[b-kidszscebi] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    min-width: 350px;
}

/* ========== Header ========== */
.header[b-kidszscebi] {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    padding: 1rem 0;
    z-index: 1100;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: padding 0.3s ease;
}

.top-nav-container[b-kidszscebi] {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 2rem;
    transition: padding 0.3s ease;
}

.top-nav[b-kidszscebi] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 40px;
    transition: height 0.3s ease;
}

.logo-container[b-kidszscebi] {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.logo[b-kidszscebi] {
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .logo:hover[b-kidszscebi] {
            transform: translateY(-3px) scale(1.05);
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
        }
    }

    .logo:active[b-kidszscebi] {
        transform: translateY(-1px) scale(1.02);
        transition-duration: 0s;
    }

.help-button-container[b-kidszscebi] {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
}

/* ========== Main ========== */
main[b-kidszscebi] {
    flex: 1 0 auto;
    padding-top: 35px;
    width: 100%;
}

/* ========== Public (unauthenticated) layout ========== */
.public-layout-container[b-kidszscebi] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.public-main[b-kidszscebi] {
    flex: 1;
}

/* ========== Responsive Breakpoints ========== */
@media (max-width: 1100px) {
    main[b-kidszscebi] {
        padding-top: 35px;
    }
}

@media (max-width: 900px) {
    .header[b-kidszscebi] {
        padding: 0.85rem 0;
    }

    .top-nav[b-kidszscebi] {
        height: 38px;
    }

    .logo[b-kidszscebi] {
        height: 38px;
    }

    main[b-kidszscebi] {
        padding-top: 20px;
    }

    .top-nav-container[b-kidszscebi] {
        padding: 0 1rem;
    }
}

@media (max-width: 700px) {
    .header[b-kidszscebi] {
        padding: 0.75rem 0;
    }

    .top-nav[b-kidszscebi] {
        height: 36px;
    }

    .logo[b-kidszscebi] {
        height: 35px;
    }

        @media (hover: hover) and (pointer: fine) {
            .logo:hover[b-kidszscebi] {
                transform: translateY(-2px) scale(1.03);
            }
        }

    .top-nav-container[b-kidszscebi] {
        padding: 0 1rem;
    }
}

@media (max-width: 600px) {
    .header[b-kidszscebi] {
        padding: 0.65rem 0;
    }

    .top-nav[b-kidszscebi] {
        height: 34px;
    }

    .logo[b-kidszscebi] {
        height: 32px;
    }

    main[b-kidszscebi] {
        padding-top: 10px;
    }

    .top-nav-container[b-kidszscebi] {
        padding: 0 0.5rem;
    }
}

@media (max-width: 500px) {
    .header[b-kidszscebi] {
        padding: 0.55rem 0;
    }

    .top-nav[b-kidszscebi] {
        height: 32px;
    }

    .logo[b-kidszscebi] {
        height: 30px;
    }
}

@media (max-width: 450px) {
    .header[b-kidszscebi] {
        padding: 0.5rem 0;
    }

    .top-nav[b-kidszscebi] {
        height: 28px;
    }

    .logo[b-kidszscebi] {
        height: 28px;
    }

        @media (hover: hover) and (pointer: fine) {
            .logo:hover[b-kidszscebi] {
                transform: translateY(-1px) scale(1.02);
            }
        }

    .top-nav-container[b-kidszscebi] {
        padding: 0 0.5rem;
    }
}

@media (max-width: 380px) {
    .header[b-kidszscebi] {
        padding: 0.4rem 0;
    }

    .top-nav[b-kidszscebi] {
        height: 26px;
    }

    .logo[b-kidszscebi] {
        height: 26px;
    }
}

/* While the problem-report dialog is open, lift the header (its stacking context)
   above the side menu, mobile header and hamburger so the backdrop covers them. */
.header.report-open[b-kidszscebi] {
    z-index: 2100;
}
/* /Pages/Account/Account.razor.rz.scp.css */
/* ===== Tokens — same palette and scale as ModuleSelection / Progress ===== */
.acc-page[b-p4uxzegfuy] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --brand: #4d7cfe;
    --wrong: #d93639;
    --wrong-soft: #fff4f4;
    /* --page-max comes from LeftSideNavLayout */
    --page-margin-top: 0px;
    --card-radius: 20px;
    --card-pad: 22px 24px;
    --card-gap: 18px;
    --avatar-size: 96px;
    --name-font: 24px;
    --title-font: 17px;
    --desc-font: 14px;
    --icon-tile: 44px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    max-width: var(--page-max);
    margin: var(--page-margin-top) auto 0;
    padding: 0 1rem 32px;
    display: flex;
    flex-direction: column;
    gap: var(--card-gap);
    text-align: left;
    user-select: none;
    -webkit-text-size-adjust: 100%;
}

.acc-error[b-p4uxzegfuy] {
    margin: 0;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--wrong);
    background: var(--wrong-soft);
    border: 1px solid #f6c9ca;
    border-radius: 14px;
}

/* ===== Card (same surface as a module card) ===== */
.acc-card[b-p4uxzegfuy] {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
    min-width: 0;
}

/* ===== Shared button reset (Bootstrap's reboot styles <button>) ===== */
.acc-avatar[b-p4uxzegfuy],
.acc-row[b-p4uxzegfuy],
.acc-btn[b-p4uxzegfuy] {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .acc-avatar:focus-visible[b-p4uxzegfuy],
    .acc-row:focus-visible[b-p4uxzegfuy] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    .acc-row:disabled[b-p4uxzegfuy],
    .acc-btn:disabled[b-p4uxzegfuy] {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ===== Profile: avatar + name, laid out like the lesson-page header ===== */
.acc-profile[b-p4uxzegfuy] {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: var(--card-pad);
}

.acc-avatar[b-p4uxzegfuy] {
    position: relative;
    flex-shrink: 0;
    width: var(--avatar-size);
    height: var(--avatar-size);
    padding: 0;
    background: #f7f8fa;
    border: 2px dashed #c9cdd4;
    border-radius: 50%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

    .acc-avatar.custom-avatar[b-p4uxzegfuy] {
        border: 3px solid var(--brand);
    }

    .acc-avatar:active[b-p4uxzegfuy] {
        transform: scale(0.97);
    }

.acc-avatar-img[b-p4uxzegfuy] {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.acc-avatar.default-avatar .acc-avatar-img[b-p4uxzegfuy] {
    padding: 26%;
    object-fit: contain;
    opacity: 0.6;
}

.acc-avatar-edit[b-p4uxzegfuy] {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(20, 30, 60, 0.15);
}

    .acc-avatar-edit img[b-p4uxzegfuy] {
        width: 15px;
        height: 15px;
    }

.acc-profile-text[b-p4uxzegfuy] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.acc-name[b-p4uxzegfuy] {
    margin: 0;
    font-size: var(--name-font);
    line-height: 1.25;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.acc-email[b-p4uxzegfuy] {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
    user-select: text;
}

.acc-plan[b-p4uxzegfuy] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 8px 0 0;
}

/* Tier pill, in the same colours as the progress rings */
.acc-badge[b-p4uxzegfuy] {
    padding: 3px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    background: #8a8f98;
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

    .acc-badge.basic[b-p4uxzegfuy] {
        background: #4d7cfe;
    }

    .acc-badge.premium[b-p4uxzegfuy] {
        background: #92cd4d;
    }

.acc-plan-date[b-p4uxzegfuy] {
    font-size: 14px;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

/* ===== Action list: one tappable row per action ===== */
.acc-list[b-p4uxzegfuy] {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.acc-row[b-p4uxzegfuy] {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 64px;
    padding: 10px 14px;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 14px;
    transition: background-color 0.15s ease;
}

    .acc-row:active:not(:disabled)[b-p4uxzegfuy] {
        background-color: #f3f4f7;
    }

    /* Hairline between rows, inset past the icon */
    .acc-row + .acc-row[b-p4uxzegfuy] {
        position: relative;
    }

        .acc-row + .acc-row[b-p4uxzegfuy]::before {
            content: "";
            position: absolute;
            top: 0;
            left: calc(14px + var(--icon-tile) + 16px);
            right: 14px;
            border-top: 1px solid var(--line);
        }

/* Icon tile, like the exercise tiles on the lesson page */
.acc-icon[b-p4uxzegfuy] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--icon-tile);
    height: var(--icon-tile);
    color: #fff;
    border-radius: 13px;
}

    .acc-icon svg[b-p4uxzegfuy] {
        width: 45%;
        height: 45%;
    }

    .acc-icon.is-blue[b-p4uxzegfuy] {
        background: #4d7cfe;
    }

    .acc-icon.is-green[b-p4uxzegfuy] {
        background: #92cd4d;
    }

    .acc-icon.is-yellow[b-p4uxzegfuy] {
        background: #edc829;
    }

    .acc-icon.is-grey[b-p4uxzegfuy] {
        background: #a3a8b0;
    }

.acc-row-text[b-p4uxzegfuy] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.acc-row-title[b-p4uxzegfuy] {
    font-size: var(--title-font);
    line-height: 1.3;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.acc-row-desc[b-p4uxzegfuy] {
    font-size: var(--desc-font);
    line-height: 1.4;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

/* Chevron pointing right, same stroke as the module-card chevron */
.acc-chevron[b-p4uxzegfuy] {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid #a3a8b0;
    border-bottom: 2px solid #a3a8b0;
    transform: rotate(-45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

/* ===== Settings: a label on the left, its control on the right ===== */
.acc-setting[b-p4uxzegfuy] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    min-height: 64px;
    padding: 10px 14px;
}

    .acc-setting .acc-row-text[b-p4uxzegfuy] {
        flex: 1 1 200px;
    }

    .acc-setting + .acc-setting[b-p4uxzegfuy] {
        border-top: 1px solid var(--line);
    }

/* "How it is counted" under the daily goal: a disclosure on its own row (tap or click, no hover needed) */
.acc-how[b-p4uxzegfuy] {
    flex: 1 1 100%;
    min-width: 0;
}

    .acc-how summary[b-p4uxzegfuy] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 32px;
        font-size: var(--desc-font);
        font-weight: 600;
        color: var(--brand);
        cursor: pointer;
        list-style: none;
        border-radius: 6px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

        .acc-how summary[b-p4uxzegfuy]::-webkit-details-marker {
            display: none;
        }

        .acc-how summary[b-p4uxzegfuy]::after {
            content: "";
            width: 7px;
            height: 7px;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: translateY(-2px) rotate(45deg);
            transition: transform 0.2s ease;
        }

    .acc-how[open] summary[b-p4uxzegfuy]::after {
        transform: translateY(2px) rotate(-135deg);
    }

    .acc-how summary:active[b-p4uxzegfuy] {
        color: #3a63d8;
    }

    .acc-how summary:focus-visible[b-p4uxzegfuy] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.acc-how-body[b-p4uxzegfuy] {
    max-width: 460px;
    margin: 6px 0 4px;
    padding: 12px 14px;
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: 14px;
}

/* The daily goal: the presets, and beside them a stepper for any other goal */
.acc-goal[b-p4uxzegfuy] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Stepper: − value +. Same box as the presets beside it, so the two read as one control. */
.acc-step[b-p4uxzegfuy] {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.acc-step-btn[b-p4uxzegfuy] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    /* Held down to repeat: no scrolling, text selection or long-press menu may start from it */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .acc-step-btn svg[b-p4uxzegfuy] {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        pointer-events: none;
    }

    .acc-step-btn:active:not(:disabled)[b-p4uxzegfuy] {
        background: #e3e6ec;
        transition-duration: 0s;
    }

    .acc-step-btn:focus-visible[b-p4uxzegfuy] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    .acc-step-btn:disabled[b-p4uxzegfuy] {
        opacity: 0.4;
        cursor: default;
    }

.acc-step-value[b-p4uxzegfuy] {
    min-width: 44px;
    font: 700 18px/1 'Montserrat', sans-serif;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: var(--ink);
}

/* A narrow phone: the two fit on one row */
@media (max-width: 420px) {
    .acc-goal .acc-seg-btn[b-p4uxzegfuy] {
        min-width: 48px;
        padding: 0 8px;
    }

    .acc-step-value[b-p4uxzegfuy] {
        min-width: 36px;
    }
}

/* Segmented choice (the daily goal): the picked one is filled */
.acc-seg[b-p4uxzegfuy] {
    display: flex;
    flex-shrink: 0;
    gap: 4px;
    padding: 4px;
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.acc-seg-btn[b-p4uxzegfuy] {
    appearance: none;
    -webkit-appearance: none;
    min-width: 56px;
    min-height: 44px;
    padding: 0 14px;
    font: 600 16px/1 'Montserrat', sans-serif;
    font-variant-numeric: tabular-nums;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .acc-seg-btn.is-on[b-p4uxzegfuy] {
        color: #fff;
        background: var(--brand);
    }

    .acc-seg-btn:active:not(:disabled)[b-p4uxzegfuy] {
        background: #e3e6ec;
        transition-duration: 0s;
    }

    .acc-seg-btn.is-on:active:not(:disabled)[b-p4uxzegfuy] {
        background: #3a63d8;
    }

    .acc-seg-btn:focus-visible[b-p4uxzegfuy],
    .acc-switch:focus-visible[b-p4uxzegfuy] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    .acc-seg-btn:disabled[b-p4uxzegfuy],
    .acc-switch:disabled[b-p4uxzegfuy] {
        opacity: 0.6;
        cursor: default;
    }

/* Switch (reminder emails). The 44px box is the touch target; the track is drawn inside it. */
.acc-switch[b-p4uxzegfuy] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
    width: 60px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .acc-switch[b-p4uxzegfuy]::before {
        content: "";
        position: absolute;
        inset: 7px 4px;
        background: #c9cdd4;
        border-radius: 15px;
        transition: background-color 0.2s ease;
    }

    .acc-switch.is-on[b-p4uxzegfuy]::before {
        background: var(--brand);
    }

    .acc-switch:active:not(:disabled)[b-p4uxzegfuy]::before {
        background: #a3a8b0;
        transition-duration: 0s;
    }

    .acc-switch.is-on:active:not(:disabled)[b-p4uxzegfuy]::before {
        background: #3a63d8;
    }

.acc-switch-knob[b-p4uxzegfuy] {
    position: absolute;
    top: 10px;
    left: 7px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(20, 30, 60, 0.3);
    transition: transform 0.2s ease;
}

.acc-switch.is-on .acc-switch-knob[b-p4uxzegfuy] {
    transform: translateX(22px);
}

.acc-study-error[b-p4uxzegfuy] {
    margin: 4px 6px 6px;
}

/* Outlined pill, same family as NavigationButtons; red = destructive */
.acc-btn[b-p4uxzegfuy] {
    --btn-color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 140px;
    height: 44px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: var(--btn-color);
    background: #fff;
    border: 2px solid var(--btn-color);
    border-radius: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

    .acc-btn.is-danger[b-p4uxzegfuy] {
        --btn-color: var(--wrong);
    }

    .acc-btn:active:not(:disabled)[b-p4uxzegfuy] {
        transform: scale(0.98);
        color: #fff;
        background: var(--btn-color);
    }

    .acc-btn:focus-visible[b-p4uxzegfuy] {
        outline: 2px solid var(--btn-color);
        outline-offset: 2px;
    }

.acc-logout-btn[b-p4uxzegfuy] {
    align-self: center;
    width: 100%;
    max-width: 320px;
}

/* Tucked-away disclosure: nothing destructive is reachable until this is
   deliberately opened, and it sits well clear of Logout so a mistap near
   that button can't land on it. Tap-to-open works identically on every
   device, unlike a hover-revealed control. */
.acc-more[b-p4uxzegfuy] {
    align-self: center;
    margin-top: 12px;
}

    .acc-more summary[b-p4uxzegfuy] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
        padding: 0 14px;
        font-size: 13px;
        color: var(--ink-muted);
        cursor: pointer;
        list-style: none;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

        .acc-more summary[b-p4uxzegfuy]::-webkit-details-marker {
            display: none;
        }

        .acc-more summary[b-p4uxzegfuy]::after {
            content: "";
            width: 6px;
            height: 6px;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: translateY(-2px) rotate(45deg);
            transition: transform 0.2s ease;
        }

    .acc-more[open] summary[b-p4uxzegfuy]::after {
        transform: translateY(2px) rotate(-135deg);
    }

    .acc-more summary:focus-visible[b-p4uxzegfuy] {
        outline: 2px solid var(--ink-muted);
        outline-offset: 2px;
        border-radius: 4px;
    }

/* Deliberately unadvertised: a plain small text link, not a card or button */
.acc-delete-link[b-p4uxzegfuy] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    margin: 2px auto 0;
    min-height: 44px;
    padding: 8px 16px;
    font: inherit;
    font-size: 13px;
    color: var(--ink-muted);
    background: none;
    border: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
}

    .acc-delete-link:active:not(:disabled)[b-p4uxzegfuy] {
        color: var(--wrong);
    }

    .acc-delete-link:focus-visible[b-p4uxzegfuy] {
        outline: 2px solid var(--ink-muted);
        outline-offset: 2px;
        border-radius: 4px;
    }

    .acc-delete-link:disabled[b-p4uxzegfuy] {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ===== Hover (mouse/trackpad only — see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .acc-avatar:hover[b-p4uxzegfuy] {
        border-color: var(--brand);
    }

    .acc-step-btn:hover:not(:disabled)[b-p4uxzegfuy] {
        color: var(--brand);
        border-color: #c9d6ff;
    }

    .acc-how summary:hover[b-p4uxzegfuy] {
        text-decoration: underline;
    }

    .acc-row:hover:not(:disabled)[b-p4uxzegfuy] {
        background-color: #f7f8fa;
    }

        .acc-row:hover:not(:disabled) .acc-chevron[b-p4uxzegfuy] {
            border-color: #6b7078;
            transform: translateX(2px) rotate(-45deg);
        }

    .acc-btn:hover:not(:disabled)[b-p4uxzegfuy] {
        color: #fff;
        background: var(--btn-color);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .acc-delete-link:hover:not(:disabled)[b-p4uxzegfuy] {
        color: var(--wrong);
    }

    .acc-seg-btn:hover:not(:disabled):not(.is-on)[b-p4uxzegfuy] {
        color: var(--ink);
        background: #eceef3;
    }

    .acc-switch:hover:not(:disabled):not(.is-on)[b-p4uxzegfuy]::before {
        background: #b4b9c2;
    }

    .acc-more summary:hover[b-p4uxzegfuy] {
        color: var(--ink-soft);
    }
}

/* ===== Loading ===== */
.module-loading-container[b-p4uxzegfuy] {
    text-align: center;
    padding: 3rem;
}

    .module-loading-container p[b-p4uxzegfuy] {
        color: #888;
        font-size: 15px;
        margin-top: 0.5rem;
    }

.loading-spinner[b-p4uxzegfuy] {
    display: inline-block;
    width: 70px;
    height: 70px;
    margin: 20px auto;
    position: relative;
}

    .loading-spinner[b-p4uxzegfuy]::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 4px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        border-top: 4px solid #000;
        animation: spin-b-p4uxzegfuy 0.85s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
        box-sizing: border-box;
    }

    .loading-spinner[b-p4uxzegfuy]::before {
        content: "";
        position: absolute;
        width: 30px;
        height: 30px;
        top: 52%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: url('/favicon.svg') no-repeat center center;
        background-size: contain;
        z-index: 5;
    }

@keyframes spin-b-p4uxzegfuy {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== Laptop ===== */
@media (max-width: 1500px) {
    .acc-page[b-p4uxzegfuy] {
        --card-pad: 20px 22px;
        --avatar-size: 84px;
        --name-font: 22px;
    }
}

/* ===== Tablet (≤ 768px) ===== */
@media (max-width: 768px) {
    .acc-page[b-p4uxzegfuy] {
        --page-margin-top: 12px;
        --card-radius: 18px;
        --card-pad: 18px;
        --card-gap: 14px;
        padding: 0 0 16px;
    }
}

/* ===== Phones (≤ 480px, iPhone 16 = 393px) — text stays at 15–18px ===== */
@media (max-width: 480px) {
    .acc-page[b-p4uxzegfuy] {
        --page-margin-top: 4px;
        --card-radius: 16px;
        --card-pad: 16px;
        --card-gap: 12px;
        --avatar-size: 72px;
        --name-font: 20px;
        --title-font: 16px;
        --icon-tile: 40px;
    }

    .acc-profile[b-p4uxzegfuy] {
        gap: 16px;
    }

    .acc-avatar-edit[b-p4uxzegfuy] {
        width: 28px;
        height: 28px;
    }

    .acc-list[b-p4uxzegfuy] {
        padding: 6px;
    }

    .acc-row[b-p4uxzegfuy] {
        gap: 14px;
        min-height: 60px;
        padding: 10px;
    }

        .acc-row + .acc-row[b-p4uxzegfuy]::before {
            left: calc(10px + var(--icon-tile) + 14px);
            right: 10px;
        }

    .acc-btn[b-p4uxzegfuy] {
        width: 100%;
        height: 50px;
        border-radius: 25px;
        font-size: 16px;
    }

    .module-loading-container[b-p4uxzegfuy] {
        padding: 2rem 1rem;
    }
}

/* ===== Narrow phones (≤ 360px) ===== */
@media (max-width: 360px) {
    .acc-page[b-p4uxzegfuy] {
        --card-pad: 14px;
        --avatar-size: 64px;
        --name-font: 18px;
    }
}
/* /Pages/Account/CreateShortcut.razor.rz.scp.css */
/* Visual language follows the login/account screens: navy text, soft
   blue-tinted card, pill buttons that fill with brand blue on hover. */
.shortcut-page[b-898mxb622h] {
    --sc-text: #0d1a2d;
    --sc-text-muted: #6b7c9e;
    --sc-brand: #4d7cfe;
    --sc-brand-soft: #eef2ff;
    --sc-border: #dde3f0;
    font-family: 'Montserrat', sans-serif;
    color: var(--sc-text);
    max-width: 1080px;
    margin: 0 auto;
    padding: calc(var(--public-header-height, 70px) + var(--spacing-l, 20px)) 1rem 3rem;
    text-align: left;
    container-type: inline-size;
}

/* Inside LeftSideNavLayout its header sits in normal flow (not fixed like
   PublicLayout's), and <main> already reserves top space — so skip the
   public-header compensation entirely here. Also match <main>'s own width
   (LeftSideNavLayout.razor.css) instead of the narrower public max-width, so
   navigating here from /select-module or /progress doesn't visibly shrink
   the content column. */
.shortcut-page.shortcut-page--app[b-898mxb622h] {
    max-width: none;
    padding: 0 1rem 3rem;
}

/* Back button sits inline with the title instead of its own row, so the
   page doesn't spend an extra row + margin just to get back. */
.shortcut-header[b-898mxb622h] {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.25rem;
}

.back-button[b-898mxb622h] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #fff;
    color: var(--sc-brand);
    border: 2px solid var(--sc-brand);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .back-button:hover[b-898mxb622h] {
            background-color: var(--sc-brand);
            color: #fff;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }
    }

    .back-button:active[b-898mxb622h] {
        transform: translateY(0);
    }

.back-arrow[b-898mxb622h] {
    width: 9px;
    height: 9px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 3px;
}

.shortcut-title[b-898mxb622h] {
    flex: 1;
    min-width: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--sc-text);
    margin: 0;
}

.shortcut-intro[b-898mxb622h] {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--sc-text-muted);
    max-width: 640px;
    margin: 0 0 1.75rem;
}

.shortcut-card[b-898mxb622h] {
    background: #fff;
    border: 1px solid var(--sc-brand-soft);
    border-radius: 20px;
    min-width: 0;
    box-shadow: 0 8px 40px rgba(0, 30, 87, 0.08);
    padding: 28px 32px;
}

.detected-banner[b-898mxb622h] {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--sc-brand-soft);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.5rem;
}

.detected-icon[b-898mxb622h] {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background-color: var(--sc-brand);
    -webkit-mask: no-repeat center / 60%;
    mask: no-repeat center / 60%;
}

.detected-text[b-898mxb622h] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
    color: var(--sc-text-muted);
}

    .detected-text strong[b-898mxb622h] {
        font-weight: 700;
        font-size: 0.95rem;
        color: var(--sc-text);
    }

.platform-tabs[b-898mxb622h] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.platform-tab[b-898mxb622h] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background: #fff;
    border: 2px solid var(--sc-brand);
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sc-brand);
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .platform-tab:hover[b-898mxb622h] {
            background-color: var(--sc-brand);
            color: #fff;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }
    }

    .platform-tab:active[b-898mxb622h] {
        transform: translateY(0);
    }

    .platform-tab.active[b-898mxb622h] {
        background: var(--sc-brand);
        border-color: var(--sc-brand);
        color: #fff;
        box-shadow: 0 4px 14px rgba(77, 124, 254, 0.3);
    }

.tab-icon[b-898mxb622h] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: no-repeat center / 100%;
    mask: no-repeat center / 100%;
}

.platform-panel[b-898mxb622h] {
    border-top: 1px solid var(--sc-brand-soft);
    padding-top: 1.5rem;
}

.panel-title[b-898mxb622h] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sc-text);
    margin: 0 0 1.25rem;
}

.panel-icon[b-898mxb622h] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background-color: var(--sc-brand);
    -webkit-mask: no-repeat center / 100%;
    mask: no-repeat center / 100%;
}

.shortcut-steps[b-898mxb622h] {
    list-style: none;
    counter-reset: step;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .shortcut-steps li[b-898mxb622h] {
        counter-increment: step;
        position: relative;
        padding-left: 42px;
        min-height: 28px;
        font-size: 0.92rem;
        line-height: 1.6;
        color: #3a4a68;
    }

        .shortcut-steps li[b-898mxb622h]::before {
            content: counter(step);
            position: absolute;
            left: 0;
            top: 0;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--sc-brand-soft);
            color: var(--sc-brand);
            font-size: 0.8rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .shortcut-steps li b[b-898mxb622h] {
            font-weight: 700;
            color: var(--sc-text);
        }

    .shortcut-steps code[b-898mxb622h] {
        font-family: inherit;
        font-size: 0.85em;
        font-weight: 600;
        color: var(--sc-text);
        background: #fafbff;
        border: 1px solid var(--sc-border);
        border-radius: 6px;
        padding: 1px 6px;
        user-select: text;
        word-break: break-word;
    }

.platform-note[b-898mxb622h] {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--sc-text-muted);
    margin: 0.9rem 0 0;
}

.install-status[b-898mxb622h] {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(52, 199, 89, 0.1);
    color: #1f7a3a;
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-dot[b-898mxb622h] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green, #34c759);
    flex-shrink: 0;
}

.primary-button[b-898mxb622h] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 26px;
    background: #fff;
    color: var(--sc-brand);
    border: 2px solid var(--sc-brand);
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .primary-button:hover[b-898mxb622h] {
            background-color: var(--sc-brand);
            border-color: var(--sc-brand);
            color: #fff;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }
    }

    .primary-button:active[b-898mxb622h] {
        transform: translateY(0);
    }

/* ===== Device language picker ===== */
.language-row[b-898mxb622h] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
    padding: 0 0 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--sc-brand-soft);
}

.language-label[b-898mxb622h] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sc-text);
    flex: 1 1 260px;
}

.language-hint[b-898mxb622h] {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--sc-text-muted);
}

.language-picker[b-898mxb622h] {
    position: relative;
    flex: 0 0 auto;
    min-width: 200px;
}

.language-select[b-898mxb622h] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--sc-text);
    text-align: left;
    background: #fff;
    border: 2px solid var(--sc-border);
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .language-select:focus-visible[b-898mxb622h],
    .language-select.open[b-898mxb622h] {
        border-color: var(--sc-brand);
        outline: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .language-select:hover[b-898mxb622h] {
            border-color: var(--sc-brand);
            outline: none;
        }
    }

    .language-select.open[b-898mxb622h] {
        box-shadow: 0 0 0 4px var(--sc-brand-soft);
    }

.language-name[b-898mxb622h] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-caret[b-898mxb622h] {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin: -4px 2px 0 4px;
    border-right: 2px solid var(--sc-brand);
    border-bottom: 2px solid var(--sc-brand);
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
}

.language-select.open .language-caret[b-898mxb622h] {
    margin-top: 4px;
    transform: rotate(-135deg);
}

/* 3:2 flag with a hairline edge so white stripes stay visible */
.flag[b-898mxb622h] {
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 16px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(13, 26, 45, 0.12);
}

    .flag svg[b-898mxb622h] {
        display: block;
        width: 100%;
        height: 100%;
    }

/* Invisible layer that closes the menu on an outside tap */
.language-backdrop[b-898mxb622h] {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.language-menu[b-898mxb622h] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 41;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 30, 87, 0.16);
}

.language-option[b-898mxb622h] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--sc-text);
    text-align: left;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .language-option:focus-visible[b-898mxb622h] {
        background: var(--sc-brand-soft);
        outline: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .language-option:hover[b-898mxb622h] {
            background: var(--sc-brand-soft);
            outline: none;
        }
    }

    .language-option.selected[b-898mxb622h] {
        color: var(--sc-brand);
        font-weight: 700;
    }

.language-check[b-898mxb622h] {
    flex-shrink: 0;
    width: 6px;
    height: 11px;
    margin: -3px 4px 0;
    border-right: 2px solid var(--sc-brand);
    border-bottom: 2px solid var(--sc-brand);
    transform: rotate(45deg);
}

/* Labels the user has to find on their own screen */
.ui-term[b-898mxb622h] {
    display: inline;
    font-weight: 700;
    color: var(--sc-brand);
    background: var(--sc-brand-soft);
    border-radius: 6px;
    padding: 1px 7px;
    white-space: nowrap;
}

/* Picture of the button the user has to tap, drawn like a small key cap */
.ui-icon[b-898mxb622h] {
    display: inline-block;
    width: 28px;
    height: 24px;
    vertical-align: middle;
    margin: -3px 1px 0;
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: 7px;
    box-shadow: 0 1px 0 var(--sc-border);
    position: relative;
}

    .ui-icon[b-898mxb622h]::before {
        content: "";
        position: absolute;
        inset: 3px 5px;
        background-color: var(--sc-brand);
        -webkit-mask: no-repeat center / contain;
        mask: no-repeat center / contain;
        -webkit-mask-image: var(--icon);
        mask-image: var(--icon);
    }

.ui-icon-install[b-898mxb622h] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M9 20h6M12 7v5M9.5 9.5 12 12l2.5-2.5'/%3E%3C/svg%3E");
}

.ui-icon-menu-vertical[b-898mxb622h] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5' r='2.2'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Ccircle cx='12' cy='19' r='2.2'/%3E%3C/svg%3E");
}

.ui-icon-menu-horizontal[b-898mxb622h] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='12' r='2.2'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Ccircle cx='19' cy='12' r='2.2'/%3E%3C/svg%3E");
}

/* ===== One-click action, shown above the manual steps ===== */
.quick-action[b-898mxb622h] {
    background: linear-gradient(135deg, #eef2ff 0%, #f7f9ff 100%);
    border: 2px solid var(--sc-brand);
    border-radius: 18px;
    padding: 1.25rem 1.4rem 1.1rem;
    margin-bottom: 1.5rem;
}

.quick-badge[b-898mxb622h] {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
    background: var(--sc-brand);
    border-radius: 100px;
    padding: 3px 10px;
    margin-bottom: 0.6rem;
}

.quick-title[b-898mxb622h] {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--sc-text);
    margin: 0 0 0.35rem;
}

.quick-text[b-898mxb622h] {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #3a4a68;
    margin: 0 0 1rem;
}

.quick-button[b-898mxb622h] {
    height: 52px;
    padding: 0 32px;
    font-size: 1rem;
    background: var(--sc-brand);
    color: #fff;
    box-shadow: 0 6px 20px rgba(77, 124, 254, 0.35);
}

    @media (hover: hover) and (pointer: fine) {
        .quick-button:hover[b-898mxb622h] {
            background-color: #3a67e6;
            border-color: #3a67e6;
            box-shadow: 0 10px 26px rgba(77, 124, 254, 0.45);
        }
    }

.button-icon[b-898mxb622h] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: no-repeat center / 100%;
    mask: no-repeat center / 100%;
}

.button-icon-download[b-898mxb622h] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E");
}

.button-icon-install[b-898mxb622h] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");
}

.quick-after[b-898mxb622h] {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--sc-text-muted);
    margin: 0.9rem 0 0;
}

    .quick-after code[b-898mxb622h] {
        font-family: inherit;
        font-size: 0.9em;
        font-weight: 600;
        color: var(--sc-text);
        background: #fff;
        border: 1px solid var(--sc-border);
        border-radius: 6px;
        padding: 1px 6px;
    }

.manual-divider[b-898mxb622h] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sc-text-muted);
}

    .manual-divider[b-898mxb622h]::before,
    .manual-divider[b-898mxb622h]::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--sc-border);
    }

.inline-link[b-898mxb622h] {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 700;
    color: var(--sc-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

    @media (hover: hover) and (pointer: fine) {
        .inline-link:hover[b-898mxb622h] {
            color: #3a67e6;
        }
    }

/* ===== Platform icons (mask-based, tinted via background-color) ===== */
.platform-icon-windows[b-898mxb622h] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5.5 10.5 4.4V11.5H3V5.5ZM11.5 4.3 21 3V11.5H11.5V4.3ZM3 12.5H10.5V19.6L3 18.5V12.5ZM11.5 12.5H21V21L11.5 19.7V12.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5.5 10.5 4.4V11.5H3V5.5ZM11.5 4.3 21 3V11.5H11.5V4.3ZM3 12.5H10.5V19.6L3 18.5V12.5ZM11.5 12.5H21V21L11.5 19.7V12.5Z'/%3E%3C/svg%3E");
}

.platform-icon-macos[b-898mxb622h] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.7 12.7c0-2.4 2-3.6 2.1-3.6-1.1-1.6-2.9-1.9-3.5-1.9-1.5-.2-2.9.9-3.7.9-.8 0-1.9-.9-3.2-.8-1.6 0-3.1.9-3.9 2.4-1.7 2.9-.4 7.2 1.2 9.6.8 1.1 1.7 2.4 3 2.4 1.2-.1 1.6-.8 3-.8 1.4 0 1.8.8 3.1.7 1.3 0 2.1-1.2 2.9-2.3.9-1.3 1.3-2.6 1.3-2.7-.1 0-2.3-.9-2.3-3.4M14.6 5.6c.6-.8 1-1.9.9-3-1 .1-2.1.7-2.8 1.4-.6.7-1.1 1.8-1 2.9 1.1.1 2.2-.6 2.9-1.3Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.7 12.7c0-2.4 2-3.6 2.1-3.6-1.1-1.6-2.9-1.9-3.5-1.9-1.5-.2-2.9.9-3.7.9-.8 0-1.9-.9-3.2-.8-1.6 0-3.1.9-3.9 2.4-1.7 2.9-.4 7.2 1.2 9.6.8 1.1 1.7 2.4 3 2.4 1.2-.1 1.6-.8 3-.8 1.4 0 1.8.8 3.1.7 1.3 0 2.1-1.2 2.9-2.3.9-1.3 1.3-2.6 1.3-2.7-.1 0-2.3-.9-2.3-3.4M14.6 5.6c.6-.8 1-1.9.9-3-1 .1-2.1.7-2.8 1.4-.6.7-1.1 1.8-1 2.9 1.1.1 2.2-.6 2.9-1.3Z'/%3E%3C/svg%3E");
}

.platform-icon-linux[b-898mxb622h] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c-1.3 0-2.4 1.3-2.4 3.3 0 1.5.5 2.1.5 3.4 0 1-1.5 1.8-1.5 3.6 0 .8.3 1.3.3 1.3s-2.9.9-2.9 3c0 2 2.8 2.4 2.8 2.4s-.2.6.6 1.1c1 .6 2.6.8 2.6.8s-.1.9 1.2 1.1c1.5.2 2.9-.8 2.9-.8s1.4 1 2.9.8c1.3-.2 1.2-1.1 1.2-1.1s1.6-.2 2.6-.8c.8-.5.6-1.1.6-1.1s2.8-.4 2.8-2.4c0-2.1-2.9-3-2.9-3s.3-.5.3-1.3c0-1.8-1.5-2.6-1.5-3.6 0-1.3.5-1.9.5-3.4C14.4 3.3 13.3 2 12 2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c-1.3 0-2.4 1.3-2.4 3.3 0 1.5.5 2.1.5 3.4 0 1-1.5 1.8-1.5 3.6 0 .8.3 1.3.3 1.3s-2.9.9-2.9 3c0 2 2.8 2.4 2.8 2.4s-.2.6.6 1.1c1 .6 2.6.8 2.6.8s-.1.9 1.2 1.1c1.5.2 2.9-.8 2.9-.8s1.4 1 2.9.8c1.3-.2 1.2-1.1 1.2-1.1s1.6-.2 2.6-.8c.8-.5.6-1.1.6-1.1s2.8-.4 2.8-2.4c0-2.1-2.9-3-2.9-3s.3-.5.3-1.3c0-1.8-1.5-2.6-1.5-3.6 0-1.3.5-1.9.5-3.4C14.4 3.3 13.3 2 12 2Z'/%3E%3C/svg%3E");
}

.platform-icon-android[b-898mxb622h] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 9v6.5a1 1 0 0 0 1 1H8v3a1.3 1.3 0 0 0 2.6 0v-3h2.8v3a1.3 1.3 0 0 0 2.6 0v-3h.5a1 1 0 0 0 1-1V9h-11ZM4.8 9a1.2 1.2 0 0 0-1.2 1.2v4.4a1.2 1.2 0 0 0 2.4 0v-4.4A1.2 1.2 0 0 0 4.8 9ZM19.2 9a1.2 1.2 0 0 0-1.2 1.2v4.4a1.2 1.2 0 0 0 2.4 0v-4.4A1.2 1.2 0 0 0 19.2 9ZM15.9 4.3l1-1.7a.35.35 0 0 0-.6-.35l-1 1.75a5.9 5.9 0 0 0-4.6 0l-1-1.75a.35.35 0 0 0-.6.35l1 1.7A5.1 5.1 0 0 0 6.5 8.4h11a5.1 5.1 0 0 0-1.6-4.1ZM9.5 6.6a.6.6 0 1 1 0-1.2.6.6 0 0 1 0 1.2Zm5 0a.6.6 0 1 1 0-1.2.6.6 0 0 1 0 1.2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 9v6.5a1 1 0 0 0 1 1H8v3a1.3 1.3 0 0 0 2.6 0v-3h2.8v3a1.3 1.3 0 0 0 2.6 0v-3h.5a1 1 0 0 0 1-1V9h-11ZM4.8 9a1.2 1.2 0 0 0-1.2 1.2v4.4a1.2 1.2 0 0 0 2.4 0v-4.4A1.2 1.2 0 0 0 4.8 9ZM19.2 9a1.2 1.2 0 0 0-1.2 1.2v4.4a1.2 1.2 0 0 0 2.4 0v-4.4A1.2 1.2 0 0 0 19.2 9ZM15.9 4.3l1-1.7a.35.35 0 0 0-.6-.35l-1 1.75a5.9 5.9 0 0 0-4.6 0l-1-1.75a.35.35 0 0 0-.6.35l1 1.7A5.1 5.1 0 0 0 6.5 8.4h11a5.1 5.1 0 0 0-1.6-4.1ZM9.5 6.6a.6.6 0 1 1 0-1.2.6.6 0 0 1 0 1.2Zm5 0a.6.6 0 1 1 0-1.2.6.6 0 0 1 0 1.2Z'/%3E%3C/svg%3E");
}

.platform-icon-ios[b-898mxb622h] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3C/svg%3E");
}

.platform-icon-chromeos[b-898mxb622h] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5a1.5 1.5 0 0 1 1.5-1.5h11A1.5 1.5 0 0 1 19 5v10H5V5Zm-3 11.5h20v1A2.5 2.5 0 0 1 19.5 20h-15A2.5 2.5 0 0 1 2 17.5v-1Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5a1.5 1.5 0 0 1 1.5-1.5h11A1.5 1.5 0 0 1 19 5v10H5V5Zm-3 11.5h20v1A2.5 2.5 0 0 1 19.5 20h-15A2.5 2.5 0 0 1 2 17.5v-1Z'/%3E%3C/svg%3E");
}

/* ===== Wide screens: tabs become a sidebar next to the instructions ===== */
@container (min-width: 780px) {
    .shortcut-card[b-898mxb622h] {
        padding: 36px 40px;
    }

    .shortcut-body[b-898mxb622h] {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 40px;
        align-items: start;
    }

    .platform-tabs[b-898mxb622h] {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 6px;
        margin: 0;
    }

    .platform-tab[b-898mxb622h] {
        width: 100%;
        height: 46px;
        padding: 0 16px;
        gap: 12px;
        border-color: transparent;
        border-radius: 14px;
        font-size: 0.92rem;
    }

        @media (hover: hover) and (pointer: fine) {
            .platform-tab:hover[b-898mxb622h] {
                border-color: transparent;
                background-color: var(--sc-brand);
                color: #fff;
            }
        }

        .platform-tab.active[b-898mxb622h] {
            background: var(--sc-brand);
            color: #fff;
        }

    .tab-icon[b-898mxb622h] {
        width: 18px;
        height: 18px;
    }

    .platform-panel[b-898mxb622h] {
        border-top: none;
        border-left: 1px solid var(--sc-brand-soft);
        padding: 4px 0 4px 40px;
        min-height: 300px;
    }

    .shortcut-steps li[b-898mxb622h] {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .shortcut-page[b-898mxb622h] {
        padding: calc(var(--public-header-height, 70px) + 12px) 16px 2rem;
    }

    .shortcut-page.shortcut-page--app[b-898mxb622h] {
        padding: 0 16px 2rem;
    }

    .shortcut-card[b-898mxb622h] {
        padding: 20px 16px;
        border-radius: 16px;
    }

    /* overflow-x: auto also clips vertically, so the scroller needs its own
       vertical padding to leave room for the pills' shadows; the negative
       margins keep the visual spacing unchanged. */
    .platform-tabs[b-898mxb622h] {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        margin: -8px -16px calc(1.25rem - 14px);
        padding: 8px 16px 14px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

        .platform-tabs[b-898mxb622h]::-webkit-scrollbar {
            display: none;
        }

    .platform-tab[b-898mxb622h] {
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .primary-button[b-898mxb622h] {
        width: 100%;
    }

    .quick-action[b-898mxb622h] {
        padding: 1rem 1rem 0.9rem;
    }

    .language-picker[b-898mxb622h] {
        flex: 1 1 100%;
        min-width: 0;
    }

    .ui-term[b-898mxb622h] {
        white-space: normal;
    }
}

@media (max-width: 360px) {
    .shortcut-page[b-898mxb622h] {
        padding: calc(var(--public-header-height, 70px) + 10px) 12px 1.5rem;
    }

    .shortcut-page.shortcut-page--app[b-898mxb622h] {
        padding: 0 12px 1.5rem;
    }

    .shortcut-card[b-898mxb622h] {
        padding: 18px 12px;
    }

    .platform-tabs[b-898mxb622h] {
        margin: -8px -12px calc(1.25rem - 14px);
        padding: 8px 12px 14px;
    }

    .platform-tab[b-898mxb622h] {
        height: 36px;
        padding: 0 12px;
        font-size: 0.8rem;
    }

    .shortcut-steps li[b-898mxb622h] {
        padding-left: 36px;
        font-size: 0.88rem;
    }

        .shortcut-steps li[b-898mxb622h]::before {
            width: 24px;
            height: 24px;
        }

    .detected-banner[b-898mxb622h] {
        padding: 0.75rem 0.85rem;
    }
}
/* /Pages/Account/PaymentCancel.razor.rz.scp.css */
/* Layout — mirrors Subscription.razor.css */
.subscription-container[b-0uqz5j8sje] {
    font-family: 'Montserrat', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: #333;
    user-select: none;
}

/* Card */
.subscription-card[b-0uqz5j8sje] {
    background: #ffffff;
    border-radius: var(--radius-s);
    box-shadow: var(--shadow);
    border: none;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-header[b-0uqz5j8sje] {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    padding: 2rem;
    border-bottom: 1px solid #f0d98c;
}

.header-content[b-0uqz5j8sje] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header h3[b-0uqz5j8sje] {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #b8860b;
}

.card-body[b-0uqz5j8sje] {
    padding: 2rem;
    text-align: center;
}

/* Header icon */
.header-icon[b-0uqz5j8sje] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: popIn-b-0uqz5j8sje 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn-b-0uqz5j8sje {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Messages */
.result-message[b-0uqz5j8sje] {
    font-size: 1.125rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.result-hint[b-0uqz5j8sje] {
    color: #888;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Button — matches subscription purchase-btn */
.purchase-btn[b-0uqz5j8sje] {
    background: linear-gradient(135deg, #4D7CFE, #3d6cee);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

    @media (hover: hover) and (pointer: fine) {
        .purchase-btn:hover[b-0uqz5j8sje] {
            background: linear-gradient(135deg, #3d6cee, #2d5cde);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(77, 124, 254, 0.4);
        }
    }

/* Responsive */
@media (max-width: 768px) {
    .subscription-container[b-0uqz5j8sje] {
        padding: 1rem;
    }

    .card-header[b-0uqz5j8sje], .card-body[b-0uqz5j8sje] {
        padding: 1.5rem;
    }

    .header-icon svg[b-0uqz5j8sje] {
        width: 32px;
        height: 32px;
    }

    .purchase-btn[b-0uqz5j8sje] {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .card-header[b-0uqz5j8sje], .card-body[b-0uqz5j8sje] {
        padding: 1rem;
    }

        .card-header h3[b-0uqz5j8sje] {
            font-size: 1.25rem;
        }

    .header-icon svg[b-0uqz5j8sje] {
        width: 28px;
        height: 28px;
    }
}
/* /Pages/Account/PaymentSuccess.razor.rz.scp.css */
/* ===== Tokens — same palette and scale as the Subscription page ===== */
.pay-page[b-6ywwasdds8] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --brand: #4d7cfe;
    --done: #92cd4d;
    /* --page-max comes from LeftSideNavLayout */
    --page-margin-top: 0px;
    --card-radius: 20px;
    --card-pad: 40px 32px 32px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    max-width: var(--page-max);
    margin: var(--page-margin-top) auto 0;
    padding: 0 1rem 32px;
    user-select: none;
    -webkit-text-size-adjust: 100%;
}

/* ===== Result card: one centred column ===== */
.pay-card[b-6ywwasdds8] {
    --tone: var(--brand);
    --tone-soft: #f3f6ff;
    --tone-ink: var(--brand);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 640px;
    margin: 0 auto;
    padding: var(--card-pad);
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
}

    .pay-card.is-success[b-6ywwasdds8] {
        --tone: var(--done);
        --tone-soft: #f4faec;
        --tone-ink: #5d8f22;
    }

    .pay-card.is-error[b-6ywwasdds8] {
        --tone: #ff4245;
        --tone-soft: #fff4f4;
        --tone-ink: #d93639;
    }

.pay-icon[b-6ywwasdds8] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 6px;
    color: var(--tone-ink);
    background: var(--tone-soft);
    border-radius: 50%;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--tone-soft) 50%, transparent);
    animation: pay-pop-b-6ywwasdds8 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

    .pay-icon svg[b-6ywwasdds8] {
        width: 34px;
        height: 34px;
    }

@keyframes pay-pop-b-6ywwasdds8 {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.pay-title[b-6ywwasdds8] {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--ink);
}

.pay-message[b-6ywwasdds8] {
    max-width: 480px;
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-soft);
}

    .pay-message strong[b-6ywwasdds8] {
        color: var(--ink);
        font-weight: 600;
    }

.pay-hint[b-6ywwasdds8] {
    max-width: 480px;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-muted);
}

/* ===== Order summary ===== */
.pay-summary[b-6ywwasdds8] {
    align-self: stretch;
    max-width: 440px;
    width: 100%;
    margin: 10px auto 4px;
    padding: 16px 18px;
    text-align: left;
    background: #f7f8fa;
    border-radius: 16px;
}

.pay-summary-title[b-6ywwasdds8] {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
}

.pay-summary-list[b-6ywwasdds8] {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.pay-row[b-6ywwasdds8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #e9ebf0;
}

    .pay-row:first-child[b-6ywwasdds8] {
        padding-top: 0;
        border-top: 0;
    }

    .pay-row:last-child[b-6ywwasdds8] {
        padding-bottom: 0;
    }

    .pay-row dt[b-6ywwasdds8] {
        font-size: 14px;
        font-weight: 500;
        color: var(--ink-muted);
    }

    .pay-row dd[b-6ywwasdds8] {
        margin: 0;
        font-size: 15px;
        font-weight: 600;
        text-align: right;
        color: var(--ink);
        overflow-wrap: anywhere;
    }

/* Tier pill, in the same colours as the account and subscription pages */
.pay-badge[b-6ywwasdds8] {
    display: inline-block;
    padding: 3px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .pay-badge.premium[b-6ywwasdds8] {
        background: var(--done);
    }

/* ===== Button: the outlined pill of NavigationButtons; green filled for
   "go on", blue outlined for refresh / back ===== */
.pay-btn[b-6ywwasdds8] {
    --btn-color: var(--brand);
    --btn-ink: var(--brand);
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 50px;
    margin-top: 10px;
    padding: 0 28px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: var(--btn-ink);
    background: #fff;
    border: 2px solid var(--btn-color);
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

    .pay-btn.is-green[b-6ywwasdds8] {
        --btn-color: var(--done);
        --btn-ink: #5d8f22;
    }

    .pay-btn.is-filled[b-6ywwasdds8] {
        color: #fff;
        background: var(--btn-color);
    }

    .pay-btn:active[b-6ywwasdds8] {
        transform: scale(0.98);
        color: #fff;
        background: var(--btn-color);
    }

    .pay-btn:focus-visible[b-6ywwasdds8] {
        outline: 2px solid var(--btn-color);
        outline-offset: 2px;
    }

/* ===== Hover (mouse/trackpad only — see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .pay-btn:hover[b-6ywwasdds8] {
        color: #fff;
        background: var(--btn-color);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pay-icon[b-6ywwasdds8] {
        animation: none;
    }
}

/* ===== Full-screen loading overlay — covers the side nav ===== */
.fullscreen-loading-overlay[b-6ywwasdds8] {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.module-loading-container[b-6ywwasdds8] {
    text-align: center;
    padding: 3rem;
}

    .module-loading-container p[b-6ywwasdds8] {
        color: #888;
        font-size: 15px;
        margin-top: 0.5rem;
    }

.loading-spinner[b-6ywwasdds8] {
    display: inline-block;
    width: 70px;
    height: 70px;
    margin: 20px auto;
    position: relative;
}

    .loading-spinner[b-6ywwasdds8]::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 4px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        border-top: 4px solid #000;
        animation: spin-b-6ywwasdds8 0.85s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
        box-sizing: border-box;
    }

    .loading-spinner[b-6ywwasdds8]::before {
        content: "";
        position: absolute;
        width: 30px;
        height: 30px;
        top: 52%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: url('/favicon.svg') no-repeat center center;
        background-size: contain;
        z-index: 5;
    }

@keyframes spin-b-6ywwasdds8 {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Tablet (≤ 768px) ===== */
@media (max-width: 768px) {
    .pay-page[b-6ywwasdds8] {
        --page-margin-top: 12px;
        --card-radius: 18px;
        --card-pad: 32px 20px 24px;
        padding: 0 0 16px;
    }
}

/* ===== Phones (≤ 480px, iPhone 16 = 393px) ===== */
@media (max-width: 480px) {
    .pay-page[b-6ywwasdds8] {
        --page-margin-top: 4px;
        --card-radius: 16px;
        --card-pad: 28px 16px 18px;
    }

    .pay-icon[b-6ywwasdds8] {
        width: 64px;
        height: 64px;
    }

        .pay-icon svg[b-6ywwasdds8] {
            width: 30px;
            height: 30px;
        }

    .pay-title[b-6ywwasdds8] {
        font-size: 21px;
    }

    .pay-btn[b-6ywwasdds8] {
        width: 100%;
        min-width: 0;
        height: 56px;
        border-radius: 28px;
    }

    .module-loading-container[b-6ywwasdds8] {
        padding: 2rem 1rem;
    }
}
/* /Pages/Account/Subscription.razor.rz.scp.css */
/* =====================================================================
   Subscription page: the shop. Palette and type of the Progress page; buttons
   in the shape of the lesson pages' navigation buttons (white pill, 2px border
   in the button's colour, fills with it when pressed). The two pricing cards
   (.plan-option) keep the landing page's look and its global variables.

   Hover: every :hover sits inside @media (hover: hover) and (pointer: fine)
   (see CLAUDE.md); touch gets :active instead.
   ===================================================================== */

/* ===== Tokens ===== */
.sub-page[b-xogbjn1ggk] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --line-strong: #d3d7df;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-strong: #3a68ee;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --go: #92cd4d;
    --go-ink: #5d8f22;
    --go-soft: #f4faec;
    --go-line: #cfe7b3;
    --warn: #f5c518;
    --warn-soft: #fef9e7;
    --wrong: #d93639;
    --wrong-soft: #fff4f4;
    --wrong-line: #f6c9ca;
    --grey: #999999;
    --grey-soft: #eeeeee;
    /* --page-max comes from LeftSideNavLayout */
    --card-radius: 20px;
    --card-pad: 22px 24px;
    --gap: 18px;
    /* The order panel floats over the bottom of the page: this much room under the content keeps the last tiles reachable. */
    --bar-space: 170px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    max-width: var(--page-max, 1200px);
    margin: 0 auto;
    padding: 0 1rem var(--bar-space);
    text-align: left;
    -webkit-text-size-adjust: 100%;
}

    .sub-page *[b-xogbjn1ggk],
    .sub-page *[b-xogbjn1ggk]::before,
    .sub-page *[b-xogbjn1ggk]::after {
        box-sizing: border-box;
    }

/* ===== Head ===== */
.sub-head[b-xogbjn1ggk] {
    margin: 0 0 var(--gap);
}

    .sub-head h1[b-xogbjn1ggk] {
        margin: 0;
        font-size: clamp(24px, 2.6vw, 30px);
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.3px;
    }

.sub-lead[b-xogbjn1ggk] {
    margin: 6px 0 0;
    max-width: 70ch;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* ===== Cards ===== */
.sub-card[b-xogbjn1ggk] {
    margin: 0 0 var(--gap);
    padding: var(--card-pad);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
    min-width: 0;
}

.sub-loading[b-xogbjn1ggk] {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-muted);
    font-size: 15px;
}

.sub-note[b-xogbjn1ggk] {
    margin: -6px 0 var(--gap);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.sub-empty[b-xogbjn1ggk] {
    padding: 18px;
    font-size: 15px;
    color: var(--ink-soft);
    background: var(--surface);
    border-radius: 14px;
}

/* ===== What the student has now ===== */
.sub-status[b-xogbjn1ggk] {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

    .sub-status.is-active[b-xogbjn1ggk] {
        border-left: 4px solid var(--go);
    }

    .sub-status.is-admin[b-xogbjn1ggk] {
        border-left: 4px solid var(--brand);
    }

.sub-status-icon[b-xogbjn1ggk] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: #fff;
    background: var(--brand);
    border-radius: 14px;
}

.sub-status-text[b-xogbjn1ggk] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.sub-status-row[b-xogbjn1ggk] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.sub-status-title[b-xogbjn1ggk] {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.sub-status-desc[b-xogbjn1ggk] {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.sub-plan-badge[b-xogbjn1ggk] {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    background: var(--grey);
    border-radius: 999px;
}

    .sub-plan-badge.basic[b-xogbjn1ggk] {
        background: var(--brand);
    }

    .sub-plan-badge.premium[b-xogbjn1ggk] {
        background: var(--go);
    }

/* Status words: green on sale / active, grey otherwise; ink on yellow never needed here. */
.sub-pill[b-xogbjn1ggk] {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

    .sub-pill.is-on[b-xogbjn1ggk] {
        color: var(--go-ink);
        background: var(--go-soft);
        border: 1px solid var(--go-line);
    }

    .sub-pill.is-off[b-xogbjn1ggk] {
        color: var(--ink-soft);
        background: var(--grey-soft);
        border: 1px solid var(--line-strong);
    }

.sub-facts[b-xogbjn1ggk] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 10px;
    margin: 0;
}

.sub-fact[b-xogbjn1ggk] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: 14px;
}

    .sub-fact dt[b-xogbjn1ggk] {
        font-size: 12.5px;
        font-weight: 600;
        color: var(--ink-muted);
    }

    .sub-fact dd[b-xogbjn1ggk] {
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.35;
        color: var(--ink);
        overflow-wrap: anywhere;
    }

.sub-chip[b-xogbjn1ggk] {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-strong);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    white-space: nowrap;
}

    .sub-chip.is-owned[b-xogbjn1ggk] {
        color: var(--go-ink);
        background: var(--go-soft);
        border-color: var(--go-line);
    }

/* ===== The shop: the steps and the order ===== */
.sub-shop[b-xogbjn1ggk] {
    min-width: 0;
}

.sub-steps[b-xogbjn1ggk] {
    min-width: 0;
}

.sub-step-head[b-xogbjn1ggk] {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.sub-step-no[b-xogbjn1ggk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
}

.sub-step-text[b-xogbjn1ggk] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-step-title[b-xogbjn1ggk] {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.sub-step-hint[b-xogbjn1ggk] {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* ===== Buttons: the site's pill ===== */
.sub-btn[b-xogbjn1ggk] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: var(--brand);
    background: #fff;
    border: 2px solid var(--brand);
    border-radius: 23px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

    .sub-btn:active:not(:disabled)[b-xogbjn1ggk] {
        color: #fff;
        background: var(--brand);
        transform: scale(0.98);
        transition-duration: 0s;
    }

    .sub-btn:focus-visible[b-xogbjn1ggk] {
        outline: 2px solid var(--brand);
        outline-offset: 3px;
    }

    .sub-btn:disabled[b-xogbjn1ggk] {
        opacity: 0.5;
        cursor: not-allowed;
        box-shadow: none;
    }

/* The forward action: green, full width of the order box; busy = filled with a spinner. */
.sub-btn--go[b-xogbjn1ggk] {
    width: 100%;
    height: 48px;
    color: var(--go-ink);
    border-color: var(--go);
    border-radius: 24px;
    font-size: 16px;
}

    .sub-btn--go:active:not(:disabled)[b-xogbjn1ggk],
    .sub-btn--go.is-busy[b-xogbjn1ggk] {
        color: #fff;
        background: var(--go);
    }

    .sub-btn--go.is-busy:disabled[b-xogbjn1ggk] {
        opacity: 1;
    }

.sub-btn--small[b-xogbjn1ggk] {
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
    border-width: 1.5px;
    border-radius: 18px;
    align-self: center;
}

.sub-spinner[b-xogbjn1ggk] {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid rgba(77, 124, 254, 0.2);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: sub-spin-b-xogbjn1ggk 0.7s linear infinite;
}

    .sub-spinner.sub-spinner--light[b-xogbjn1ggk] {
        border-color: rgba(255, 255, 255, 0.4);
        border-top-color: #fff;
    }

@keyframes sub-spin-b-xogbjn1ggk {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   Plan option: the landing page's pricing card (kept)
   ===================================================== */
.plan-options[b-xogbjn1ggk] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-l);
    width: 100%;
}

.plan-option[b-xogbjn1ggk] {
    position: relative;
    flex: 1;
    width: 100%;
    max-width: 500px;
    min-width: 0;
    background: var(--bg-white);
    border-radius: var(--radius-s);
    padding: var(--spacing-l);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    border: 2px solid transparent;
}

    .plan-option:active[b-xogbjn1ggk] {
        transform: scale(0.99);
    }

    .plan-option:focus-visible[b-xogbjn1ggk] {
        outline: 2px solid var(--brand);
        outline-offset: 3px;
    }

    .plan-option.active[b-xogbjn1ggk] {
        border-color: var(--primary-color);
    }

    .plan-option.premium.active[b-xogbjn1ggk] {
        border-color: var(--go);
    }

    /* Can't be selected (Basic while Premium runs) */
    .plan-option.disabled[b-xogbjn1ggk] {
        opacity: 0.5;
        cursor: not-allowed;
        filter: grayscale(40%);
        pointer-events: none;
    }

.premium-badge[b-xogbjn1ggk] {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: linear-gradient(135deg, #92CD4D, #76b939);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-option-header[b-xogbjn1ggk] {
    display: flex;
    flex-direction: column;
}

.plan-option-name[b-xogbjn1ggk] {
    font-size: var(--text-m);
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

    .plan-option-name.premium-name[b-xogbjn1ggk] {
        color: var(--primary-color);
    }

.plan-option-price[b-xogbjn1ggk] {
    display: flex;
    width: 100%;
}

.plan-option-amount[b-xogbjn1ggk] {
    font-size: var(--text-xxl);
    font-weight: 700;
    color: var(--text-dark);
}

.plan-option-discount-block[b-xogbjn1ggk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: var(--spacing-s);
}

.plan-option-price-row[b-xogbjn1ggk] {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-s);
}

.plan-option-original-price[b-xogbjn1ggk] {
    position: relative;
    display: inline-block;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-light);
}

    .plan-option-original-price[b-xogbjn1ggk]::after {
        content: "";
        position: absolute;
        left: -4px;
        right: -4px;
        top: 50%;
        height: 3px;
        background: var(--text-light);
        transform: rotate(-8deg);
    }

.plan-option-price-meta[b-xogbjn1ggk] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
    font-weight: 500;
}

.plan-option-price-launch[b-xogbjn1ggk] {
    color: var(--text-dark);
}

.plan-option-highlight[b-xogbjn1ggk] {
    color: var(--primary-color);
    font-weight: 700;
}

.plan-option-features[b-xogbjn1ggk] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m);
    flex: 1;
}

    .plan-option-features li[b-xogbjn1ggk] {
        display: flex;
        align-items: center;
        gap: var(--spacing-s);
        font-size: var(--text-s);
        color: var(--text-dark);
    }

        .plan-option-features li img[b-xogbjn1ggk] {
            width: var(--icon-s);
            height: var(--icon-s);
            flex-shrink: 0;
        }

        .plan-option-features li:has(.feature-muted)[b-xogbjn1ggk] {
            opacity: 0.6;
        }

.feature-stack[b-xogbjn1ggk] {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.feature-note[b-xogbjn1ggk] {
    font-size: 0.78rem;
    font-weight: 400;
    color: #888;
}

.current-plan-indicator[b-xogbjn1ggk] {
    margin-top: auto;
    padding: 0.5rem;
    background: var(--brand);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
}

    .current-plan-indicator.premium-current[b-xogbjn1ggk] {
        background: var(--go);
    }

    .current-plan-indicator.disabled-indicator[b-xogbjn1ggk] {
        background: var(--grey);
    }

.plan-option-footer[b-xogbjn1ggk] {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-light);
    margin: auto 0 0;
}

/* ===== Levels, as products ===== */
.levels-grid[b-xogbjn1ggk] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 12px;
}

.level-card[b-xogbjn1ggk] {
    appearance: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    font: inherit;
    text-align: left;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04);
    overflow: hidden;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

    .level-card:active:not(:disabled)[b-xogbjn1ggk] {
        background: var(--surface);
        transition-duration: 0s;
    }

    .level-card:focus-visible[b-xogbjn1ggk] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    /* In the order */
    .level-card.is-selected[b-xogbjn1ggk] {
        border-color: var(--brand);
        background: var(--brand-soft);
        box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.12);
    }

    .level-card.is-owned[b-xogbjn1ggk] {
        border-color: var(--go-line);
        background: var(--go-soft);
        cursor: default;
    }

    .level-card.is-off[b-xogbjn1ggk] {
        cursor: default;
        background: var(--surface);
    }

        .level-card.is-off .level-top[b-xogbjn1ggk],
        .level-card.is-off .level-foot[b-xogbjn1ggk] {
            opacity: 0.55;
        }

    .level-card:disabled[b-xogbjn1ggk] {
        cursor: default;
    }

.level-top[b-xogbjn1ggk] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 12px;
    flex: 1 1 auto;
}

.level-icon[b-xogbjn1ggk] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: var(--brand);
    border-radius: 12px;
}

    .level-card.is-owned .level-icon[b-xogbjn1ggk] {
        background: var(--go);
    }

    .level-card.is-off .level-icon[b-xogbjn1ggk] {
        background: var(--grey);
    }

    .level-icon img[b-xogbjn1ggk] {
        display: block;
        width: 50%;
        height: 50%;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }

.level-text[b-xogbjn1ggk] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1 1 auto;
}

.level-name[b-xogbjn1ggk] {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.level-desc[b-xogbjn1ggk] {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

/* The tick: an empty ring that fills when the level is in the order (brand) or already owned (green). */
.level-check[b-xogbjn1ggk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--line-strong);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .level-card.is-selected .level-check[b-xogbjn1ggk] {
        background: var(--brand);
        border-color: var(--brand);
    }

    .level-card.is-owned .level-check[b-xogbjn1ggk] {
        background: var(--go);
        border-color: var(--go);
    }

.level-foot[b-xogbjn1ggk] {
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--brand-strong);
}

    .level-card.is-selected .level-foot[b-xogbjn1ggk] {
        border-top-color: var(--brand-line);
    }

    .level-card.is-owned .level-foot[b-xogbjn1ggk] {
        color: var(--go-ink);
        border-top-color: var(--go-line);
    }

    .level-card.is-off .level-foot[b-xogbjn1ggk] {
        color: var(--ink-muted);
    }

/* ===== The order: a floating panel, folded to one line until the student opens it ===== */
.sub-order[b-xogbjn1ggk] {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    width: min(380px, calc(100vw - 48px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px 16px;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(20, 30, 60, 0.18);
}

/* The head: the title, the one-line summary (or the total when open) and the chevron; the whole line toggles. */
.sub-order-head[b-xogbjn1ggk] {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .sub-order-head:focus-visible[b-xogbjn1ggk] {
        outline: 2px solid var(--brand);
        outline-offset: 4px;
        border-radius: 8px;
    }

.sub-order-title[b-xogbjn1ggk] {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.sub-order-sum[b-xogbjn1ggk] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

    .sub-order.is-open .sub-order-sum[b-xogbjn1ggk] {
        text-align: right;
        font-size: 16px;
        color: var(--ink);
        font-variant-numeric: tabular-nums;
    }

/* The chevron lives in a fixed box, so its visual centre stays on the text line whichever way it points. */
.sub-chevron[b-xogbjn1ggk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

    .sub-chevron[b-xogbjn1ggk]::before {
        content: "";
        width: 9px;
        height: 9px;
        border-right: 2px solid var(--ink-muted);
        border-bottom: 2px solid var(--ink-muted);
        transform: translateY(2px) rotate(-135deg);   /* points up: the panel opens upward */
        transition: transform 0.15s ease;
    }

    .sub-order.is-open .sub-chevron[b-xogbjn1ggk]::before {
        transform: translateY(-2px) rotate(45deg);
    }

.sub-order-body[b-xogbjn1ggk] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.sub-order-rows[b-xogbjn1ggk] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.sub-order-row[b-xogbjn1ggk] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    align-items: baseline;
    font-size: 14px;
}

    .sub-order-row dt[b-xogbjn1ggk] {
        grid-column: 1 / -1;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--ink-muted);
    }

    .sub-order-row dd[b-xogbjn1ggk] {
        margin: 0;
        font-weight: 600;
        color: var(--ink);
        overflow-wrap: anywhere;
    }

.sub-order-levels[b-xogbjn1ggk] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    grid-column: 1 / -1;
}

.sub-order-price[b-xogbjn1ggk] {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}

.sub-order-total[b-xogbjn1ggk] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

    .sub-order-total dt[b-xogbjn1ggk] {
        grid-column: auto;
        font-size: 15px;
        font-weight: 700;
        color: var(--ink);
    }

    .sub-order-total dd[b-xogbjn1ggk] {
        font-size: 22px;
        font-weight: 700;
    }

.sub-order-note[b-xogbjn1ggk] {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-muted);
}

/* ===== Toast ===== */
.sub-toast[b-xogbjn1ggk] {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1900;
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 3rem);
    max-width: 480px;
    padding: 12px 12px 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 8px 30px rgba(20, 30, 60, 0.15);
    overflow-wrap: anywhere;
    animation: sub-fade-b-xogbjn1ggk 0.2s ease;
}

    .sub-toast.is-success[b-xogbjn1ggk] {
        color: var(--go-ink);
        background: var(--go-soft);
        border: 1px solid var(--go-line);
    }

    .sub-toast.is-error[b-xogbjn1ggk] {
        color: var(--wrong);
        background: var(--wrong-soft);
        border: 1px solid var(--wrong-line);
    }

.sub-toast-close[b-xogbjn1ggk] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.7;
}

    .sub-toast-close:active[b-xogbjn1ggk] {
        opacity: 1;
        background: rgba(0, 0, 0, 0.06);
    }

@keyframes sub-fade-b-xogbjn1ggk {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

/* ===== Hover (mouse/trackpad only - see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .sub-btn:hover:not(:disabled)[b-xogbjn1ggk] {
        color: #fff;
        background: var(--brand);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .sub-btn--go:hover:not(:disabled)[b-xogbjn1ggk] {
        background: var(--go);
    }

    .plan-option:hover[b-xogbjn1ggk] {
        transform: translateY(-4px);
        box-shadow: 0 12px 36px rgba(77, 124, 254, 0.15);
    }

    .level-card:hover:not(:disabled)[b-xogbjn1ggk] {
        border-color: var(--brand-line);
        box-shadow: 0 4px 14px rgba(77, 124, 254, 0.12);
    }

    .sub-toast-close:hover[b-xogbjn1ggk] {
        opacity: 1;
        background: rgba(0, 0, 0, 0.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sub-toast[b-xogbjn1ggk] {
        animation: none;
    }
}

/* Wide enough for the two pricing cards side by side: one row grid for both, so the name, the price, each of the nine
   feature lines and the foot sit at the same height in both cards even when a line wraps in one of them (subgrid; a browser
   without it falls back to two independent cards). */
@media (min-width: 768px) {
    .plan-options[b-xogbjn1ggk] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 500px));
        grid-template-rows: auto repeat(9, auto) auto;
        justify-content: center;
        column-gap: var(--spacing-l);
    }

    .plan-option[b-xogbjn1ggk] {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 11;
        row-gap: var(--spacing-m);
        max-width: none;
    }

    .plan-option-header[b-xogbjn1ggk] {
        margin-bottom: calc(var(--spacing-xl) - var(--spacing-m));
    }

    /* The list's items become the card's rows 2 to 10. */
    .plan-option-features[b-xogbjn1ggk] {
        display: contents;
    }

    .current-plan-indicator[b-xogbjn1ggk],
    .plan-option-footer[b-xogbjn1ggk] {
        align-self: end;
        margin-top: calc(var(--spacing-xl) - var(--spacing-m));
    }
}

/* ===== Laptops ===== */
@media (max-width: 1500px) {
    .sub-page[b-xogbjn1ggk] {
        --card-pad: 20px 22px;
    }
}

/* ===== Nav collapses: the panel takes the bottom edge, full width ===== */
@media (max-width: 1100px) {
    .sub-page[b-xogbjn1ggk] {
        --bar-space: calc(10rem + env(safe-area-inset-bottom, 0px));
    }

    .sub-order[b-xogbjn1ggk] {
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        border-radius: 20px 20px 0 0;
        border-bottom: 0;
        box-shadow: 0 -4px 24px rgba(20, 30, 60, 0.1);
    }
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
    .sub-page[b-xogbjn1ggk] {
        --card-radius: 18px;
        --card-pad: 18px;
        --gap: 14px;
        padding-left: 0;
        padding-right: 0;
    }

    .sub-lead[b-xogbjn1ggk] {
        display: none;
    }

    .sub-step-head[b-xogbjn1ggk] {
        flex-wrap: wrap;
    }

    .sub-btn--small[b-xogbjn1ggk] {
        width: 100%;
    }
}

/* ===== Phones (≤ 480px, iPhone 16 = 393px) ===== */
@media (max-width: 480px) {
    .sub-page[b-xogbjn1ggk] {
        --card-radius: 16px;
        --card-pad: 16px;
        --gap: 12px;
    }

    .sub-status[b-xogbjn1ggk] {
        flex-direction: column;
        gap: 12px;
    }

    .sub-step-title[b-xogbjn1ggk] {
        font-size: 18px;
    }

    .levels-grid[b-xogbjn1ggk] {
        grid-template-columns: minmax(0, 1fr);
    }

    .sub-toast[b-xogbjn1ggk] {
        right: 0.5rem;
        left: 0.5rem;
        bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: none;
    }
}

@media (max-width: 360px) {
    .sub-page[b-xogbjn1ggk] {
        --card-pad: 14px 12px;
    }

    .plan-option-price-meta[b-xogbjn1ggk] {
        align-items: flex-start;
    }
}
/* /Pages/Admin/AdminManageAccount.razor.rz.scp.css */
/* ===== Tokens: the Progress page palette (see CLAUDE.md, "Colours").
   Class names carry an mng- prefix: Bootstrap styles .card, .row, .btn and
   .toast globally, and those rules would land on top of ours. ===== */
.mng-page[b-iwx5rxrf2h] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-press: #3a68ee;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --right: #5d8f22;
    --right-soft: #f4faec;
    --wrong: #d93639;
    --wrong-soft: #fff4f4;
    --warn: #f5c518;
    --warn-soft: #fef9e7;
    /* --page-max comes from LeftSideNavLayout */
    --card-radius: 18px;
    --card-pad: 18px 20px;
    --gap: 14px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 1rem 32px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    text-align: left;
    -webkit-text-size-adjust: 100%;
}

    .mng-page *[b-iwx5rxrf2h],
    .mng-page *[b-iwx5rxrf2h]::before,
    .mng-page *[b-iwx5rxrf2h]::after {
        box-sizing: border-box;
    }

/* ===== Shared button reset (Bootstrap's reboot styles <button>) ===== */
.mng-btn[b-iwx5rxrf2h],
.mng-copy[b-iwx5rxrf2h],
.mng-seg-btn[b-iwx5rxrf2h],
.mng-quick-btn[b-iwx5rxrf2h],
.mng-more[b-iwx5rxrf2h],
.mng-toast-close[b-iwx5rxrf2h] {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

/* ===== Cards ===== */
.mng-card[b-iwx5rxrf2h] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: var(--card-pad);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
}

.mng-card-title[b-iwx5rxrf2h] {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ink);
}

.mng-note[b-iwx5rxrf2h] {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink-muted);
}

.mng-grid[b-iwx5rxrf2h] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.mng-wide[b-iwx5rxrf2h] {
    grid-column: 1 / -1;
}

/* ===== Profile ===== */
.mng-who[b-iwx5rxrf2h] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mng-avatar[b-iwx5rxrf2h] {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 2px solid var(--brand);
    border-radius: 50%;
}

    .mng-avatar.is-default[b-iwx5rxrf2h] {
        padding: 15px;
        object-fit: contain;
        background: var(--surface);
        border: 2px dashed #c9cdd4;
        opacity: 0.8;
    }

.mng-who-text[b-iwx5rxrf2h] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.mng-name[b-iwx5rxrf2h] {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.mng-email[b-iwx5rxrf2h] {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink-soft);
}

    .mng-email span[b-iwx5rxrf2h] {
        min-width: 0;
        overflow-wrap: anywhere;
    }

.mng-copy[b-iwx5rxrf2h] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -6px 0;
    padding: 0;
    color: var(--ink-muted);
    background: none;
    border: 0;
    border-radius: 50%;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .mng-copy svg[b-iwx5rxrf2h] {
        width: 16px;
        height: 16px;
    }

    .mng-copy:active[b-iwx5rxrf2h] {
        color: var(--brand);
        background: #e8eeff;
        transition-duration: 0s;
    }

    .mng-copy:focus-visible[b-iwx5rxrf2h] {
        outline: 2px solid var(--brand);
        outline-offset: 1px;
    }

.mng-chips[b-iwx5rxrf2h] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 0;
}

.mng-chip[b-iwx5rxrf2h] {
    padding: 3px 11px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    border-radius: 999px;
}

    .mng-chip.is-ok[b-iwx5rxrf2h] {
        color: var(--right);
        background: var(--right-soft);
    }

    .mng-chip.is-bad[b-iwx5rxrf2h] {
        color: var(--wrong);
        background: var(--wrong-soft);
    }

    .mng-chip.is-brand[b-iwx5rxrf2h] {
        color: var(--brand);
        background: var(--brand-soft);
    }

    .mng-chip.is-none[b-iwx5rxrf2h] {
        color: var(--ink-soft);
        background: #eeeeee;
    }

    /* Needs attention: the yellow is the border, the words stay ink */
    .mng-chip.is-warn[b-iwx5rxrf2h] {
        color: var(--ink);
        background: var(--warn-soft);
        box-shadow: inset 0 0 0 1px var(--warn);
    }

.mng-who-links[b-iwx5rxrf2h] {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mng-facts[b-iwx5rxrf2h] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px 16px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.mng-fact[b-iwx5rxrf2h] {
    min-width: 0;
}

    .mng-fact dt[b-iwx5rxrf2h] {
        font-size: 12px;
        line-height: 1.3;
        font-weight: 500;
        color: var(--ink-muted);
    }

    .mng-fact dd[b-iwx5rxrf2h] {
        margin: 2px 0 0;
        font-size: 15px;
        line-height: 1.3;
        font-weight: 600;
        color: var(--ink);
        overflow-wrap: anywhere;
    }

/* ===== Buttons: outlined pills, as in NavigationButtons, a size smaller.
   Hover (mouse) and press fill them with their colour; is-filled is the
   confirming step; is-grey is cancel. ===== */
.mng-buttons[b-iwx5rxrf2h] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.mng-btn[b-iwx5rxrf2h] {
    --btn-line: var(--brand);
    --btn-ink: var(--brand);
    --btn-fill: var(--brand);
    --btn-press: var(--brand-press);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: var(--btn-ink);
    background: #fff;
    border: 2px solid var(--btn-line);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

/* Icon in a button: the side menu's line icons, in the label's colour */
.mng-btn-label[b-iwx5rxrf2h] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mng-btn-icon[b-iwx5rxrf2h] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mng-btn-icon-fine[b-iwx5rxrf2h] {
    stroke-width: 1.4;
}

.mng-btn-icon-track[b-iwx5rxrf2h] {
    stroke-opacity: 0.35;
}

    .mng-btn.is-green[b-iwx5rxrf2h] {
        --btn-line: #92cd4d;
        --btn-ink: var(--right);
        --btn-fill: var(--right);
        --btn-press: #4c7719;
    }

    .mng-btn.is-red[b-iwx5rxrf2h] {
        --btn-line: #ff4245;
        --btn-ink: var(--wrong);
        --btn-fill: var(--wrong);
        --btn-press: #b82d30;
    }

    .mng-btn.is-filled[b-iwx5rxrf2h] {
        color: #fff;
        background: var(--btn-fill);
        border-color: var(--btn-fill);
    }

    /* Pressed: filled at once (no transition, so a quick tap shows it) and sinks */
    .mng-btn:active[b-iwx5rxrf2h],
    .mng-btn.is-busy[b-iwx5rxrf2h] {
        color: #fff;
        background: var(--btn-fill);
        border-color: var(--btn-fill);
    }

    .mng-btn:active[b-iwx5rxrf2h] {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .mng-btn.is-filled:active[b-iwx5rxrf2h] {
        background: var(--btn-press);
        border-color: var(--btn-press);
    }

    /* Cancel: grey, and it darkens instead of filling */
    .mng-btn.is-grey[b-iwx5rxrf2h] {
        color: var(--ink-soft);
        border-color: #d5d8de;
        box-shadow: none;
    }

        .mng-btn.is-grey:active[b-iwx5rxrf2h] {
            color: var(--ink);
            background: #e4e6eb;
            border-color: #c9cdd4;
        }

    .mng-btn:focus-visible[b-iwx5rxrf2h] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    .mng-btn:disabled[b-iwx5rxrf2h] {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
        box-shadow: none;
    }

    /* Running: stays filled, a spinner takes the label's place (same width) */
    .mng-btn.is-busy[b-iwx5rxrf2h] {
        opacity: 1;
        cursor: progress;
    }

        .mng-btn.is-busy .mng-btn-label[b-iwx5rxrf2h] {
            visibility: hidden;
        }

        .mng-btn.is-busy[b-iwx5rxrf2h]::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 16px;
            height: 16px;
            margin: -8px 0 0 -8px;
            border: 2px solid currentColor;
            border-right-color: transparent;
            border-radius: 50%;
            animation: mng-spin-b-iwx5rxrf2h 0.7s linear infinite;
        }

@keyframes mng-spin-b-iwx5rxrf2h {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Subscription: plan picker, dates, quick extension ===== */
.mng-seg[b-iwx5rxrf2h] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.mng-seg-btn[b-iwx5rxrf2h] {
    min-height: 40px;
    padding: 0 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid #dfe2e8;
    border-radius: 12px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .mng-seg-btn.is-on[b-iwx5rxrf2h] {
        font-weight: 600;
        color: var(--brand);
        background: var(--brand-soft);
        border-color: var(--brand);
    }

    .mng-seg-btn:active[b-iwx5rxrf2h] {
        background: #e8eeff;
        border-color: var(--brand-line);
        transition-duration: 0s;
    }

    .mng-seg-btn:focus-visible[b-iwx5rxrf2h],
    .mng-quick-btn:focus-visible[b-iwx5rxrf2h],
    .mng-more:focus-visible[b-iwx5rxrf2h] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    .mng-seg-btn:disabled[b-iwx5rxrf2h],
    .mng-quick-btn:disabled[b-iwx5rxrf2h] {
        opacity: 0.5;
        pointer-events: none;
    }

.mng-dates[b-iwx5rxrf2h] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mng-field[b-iwx5rxrf2h] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0;
}

.mng-field-label[b-iwx5rxrf2h] {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
}

/* 16px text: iOS zooms into any smaller input on focus */
.mng-input[b-iwx5rxrf2h] {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #dfe2e8;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .mng-input:focus[b-iwx5rxrf2h] {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.12);
    }

    .mng-input:disabled[b-iwx5rxrf2h] {
        background: var(--surface);
        color: var(--ink-muted);
    }

.mng-quick[b-iwx5rxrf2h] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.mng-quick-label[b-iwx5rxrf2h] {
    margin-right: 2px;
    font-size: 13px;
    color: var(--ink-muted);
}

.mng-quick-btn[b-iwx5rxrf2h] {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .mng-quick-btn:active[b-iwx5rxrf2h] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
        transition-duration: 0s;
    }

/* What saving will do, when it is more than it looks: yellow bar, ink words */
.mng-warn[b-iwx5rxrf2h] {
    margin: 0;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink);
    background: var(--warn-soft);
    border-left: 3px solid var(--warn);
    border-radius: 8px;
}

/* ===== Levels ===== */
.mng-levels[b-iwx5rxrf2h] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
    gap: 6px;
}

.mng-level[b-iwx5rxrf2h] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 44px;
    margin: 0;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .mng-level.is-on[b-iwx5rxrf2h] {
        background: var(--brand-soft);
        border-color: var(--brand-line);
    }

    .mng-level.is-disabled[b-iwx5rxrf2h] {
        cursor: not-allowed;
        background: var(--surface);
        opacity: 0.6;
    }

    .mng-level:active:not(.is-disabled)[b-iwx5rxrf2h] {
        background-color: #e8eeff;
        transition-duration: 0s;
    }

/* The name keeps its words whole ("A2" must not become "A" over "2"):
   when the tile is too narrow for the badge as well, the badge wraps under it */
.mng-level-name[b-iwx5rxrf2h] {
    flex: 1 1 0;
    min-width: min-content;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ink);
}

.mng-level-badge[b-iwx5rxrf2h] {
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-soft);
    background: #eeeeee;
    border-radius: 999px;
}

.mng-toggle[b-iwx5rxrf2h] {
    position: relative;
    flex-shrink: 0;
    width: 38px;
    height: 22px;
}

    .mng-toggle input[b-iwx5rxrf2h] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        opacity: 0;
        cursor: inherit;
    }

.mng-toggle-track[b-iwx5rxrf2h] {
    position: absolute;
    inset: 0;
    background: #d5d8de;
    border-radius: 11px;
    pointer-events: none;
    transition: background-color 0.2s ease;
}

    .mng-toggle-track[b-iwx5rxrf2h]::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 16px;
        height: 16px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease;
    }

.mng-toggle input:checked + .mng-toggle-track[b-iwx5rxrf2h] {
    background: var(--brand);
}

    .mng-toggle input:checked + .mng-toggle-track[b-iwx5rxrf2h]::before {
        transform: translateX(16px);
    }

.mng-toggle input:focus-visible + .mng-toggle-track[b-iwx5rxrf2h] {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ===== Rows: what it is on the left, its one action on the right ===== */
.mng-rows[b-iwx5rxrf2h] {
    display: flex;
    flex-direction: column;
}

.mng-row[b-iwx5rxrf2h] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 56px;
    padding: 8px 0;
}

.mng-rows .mng-row + .mng-row[b-iwx5rxrf2h] {
    border-top: 1px solid var(--line);
}

.mng-rows .mng-row:first-child[b-iwx5rxrf2h] {
    padding-top: 0;
}

.mng-rows .mng-row:last-child[b-iwx5rxrf2h] {
    padding-bottom: 0;
}

.mng-row-text[b-iwx5rxrf2h] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1 1 150px;
    min-width: 0;
}

.mng-row-title[b-iwx5rxrf2h] {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ink);
}

.mng-row-sub[b-iwx5rxrf2h] {
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-soft);
}

.mng-row-action[b-iwx5rxrf2h] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== History ===== */
.mng-history[b-iwx5rxrf2h] {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mng-history-item[b-iwx5rxrf2h] {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 7px 0;
    font-size: 14px;
    line-height: 1.4;
}

    .mng-history-item + .mng-history-item[b-iwx5rxrf2h] {
        border-top: 1px solid var(--line);
    }

.mng-history-date[b-iwx5rxrf2h] {
    flex-shrink: 0;
    width: 62px;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.mng-history-text[b-iwx5rxrf2h] {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.mng-history-by[b-iwx5rxrf2h] {
    margin-left: 6px;
    font-size: 13px;
    color: var(--ink-muted);
}

.mng-more[b-iwx5rxrf2h] {
    align-self: flex-start;
    min-height: 36px;
    padding: 0 12px;
    margin-left: -12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    background: none;
    border: 0;
    border-radius: 999px;
    transition: background-color 0.15s ease;
}

    .mng-more:active[b-iwx5rxrf2h] {
        background: #e8eeff;
        transition-duration: 0s;
    }

/* ===== Deletion ===== */
.mng-danger[b-iwx5rxrf2h] {
    border-color: #f6d4d5;
}

    .mng-danger .mng-row[b-iwx5rxrf2h] {
        min-height: 0;
        padding: 0;
    }

.mng-delete[b-iwx5rxrf2h] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 460px;
}

/* ===== Message: a pill at the bottom of the screen, so it shows wherever
   the page is scrolled. The layer spans the width and centres the pill;
   the pill itself is as wide as its text needs (a fixed element centred
   with left: 50% can only grow to half the screen). ===== */
.mng-toast-layer[b-iwx5rxrf2h] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
}

.mng-toast[b-iwx5rxrf2h] {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 520px;
    padding: 6px 6px 6px 16px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(20, 30, 60, 0.16);
    pointer-events: auto;
    animation: mng-toast-in-b-iwx5rxrf2h 0.2s ease;
}

    .mng-toast.is-success[b-iwx5rxrf2h] {
        color: var(--right);
        background: var(--right-soft);
        border-color: #d7ebbd;
    }

    .mng-toast.is-error[b-iwx5rxrf2h] {
        color: var(--wrong);
        background: var(--wrong-soft);
        border-color: #f6c9ca;
    }

.mng-toast-close[b-iwx5rxrf2h] {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 50%;
    opacity: 0.7;
}

    .mng-toast-close:active[b-iwx5rxrf2h] {
        opacity: 1;
        background: rgba(0, 0, 0, 0.08);
    }

@keyframes mng-toast-in-b-iwx5rxrf2h {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ===== Loading ===== */
.mng-loading[b-iwx5rxrf2h] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 3rem 1rem;
    font-size: 15px;
    color: var(--ink-muted);
}

.mng-loading-spinner[b-iwx5rxrf2h] {
    width: 22px;
    height: 22px;
    border: 2px solid var(--brand-line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: mng-spin-b-iwx5rxrf2h 0.7s linear infinite;
}

/* ===== Hover (mouse/trackpad only, see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .mng-btn:hover[b-iwx5rxrf2h] {
        color: #fff;
        background: var(--btn-fill);
        border-color: var(--btn-fill);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .mng-btn.is-filled:hover[b-iwx5rxrf2h] {
        background: var(--btn-press);
        border-color: var(--btn-press);
    }

    .mng-btn.is-grey:hover[b-iwx5rxrf2h] {
        color: var(--ink);
        background: #f1f2f5;
        border-color: #c9cdd4;
        box-shadow: none;
    }

    .mng-copy:hover[b-iwx5rxrf2h] {
        color: var(--brand);
        background: var(--brand-soft);
    }

    .mng-seg-btn:hover[b-iwx5rxrf2h] {
        border-color: var(--brand-line);
        background: var(--brand-soft);
    }

    .mng-quick-btn:hover[b-iwx5rxrf2h] {
        background: #e8eeff;
    }

    .mng-level:hover:not(.is-disabled)[b-iwx5rxrf2h] {
        border-color: var(--brand-line);
    }

    .mng-more:hover[b-iwx5rxrf2h] {
        background: var(--brand-soft);
    }

    .mng-toast-close:hover[b-iwx5rxrf2h] {
        opacity: 1;
        background: rgba(0, 0, 0, 0.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mng-toast[b-iwx5rxrf2h] {
        animation: none;
    }
}

/* ===== Tablet (≤ 900px): one column ===== */
@media (max-width: 900px) {
    .mng-grid[b-iwx5rxrf2h] {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .mng-page[b-iwx5rxrf2h] {
        padding: 0 0 16px;
    }
}

/* ===== Phones (≤ 600px): the two links drop under the name, touch sizes ===== */
@media (max-width: 600px) {
    .mng-page[b-iwx5rxrf2h] {
        --card-radius: 16px;
        --card-pad: 16px;
        --gap: 12px;
    }

    .mng-who[b-iwx5rxrf2h] {
        flex-wrap: wrap;
        gap: 12px 14px;
    }

    .mng-who-text[b-iwx5rxrf2h] {
        flex-basis: 0;
    }

    .mng-who-links[b-iwx5rxrf2h] {
        flex-basis: 100%;
    }

        .mng-who-links .mng-btn[b-iwx5rxrf2h] {
            flex: 1 1 0;
        }

    .mng-btn[b-iwx5rxrf2h] {
        height: 44px;
        border-radius: 22px;
        font-size: 15px;
        box-shadow: none;
    }

    .mng-buttons .mng-btn[b-iwx5rxrf2h] {
        flex: 1 1 0;
        min-width: 0;
    }

    /* "Yes / cancel" takes the row's full width; a single button stays beside its text */
    .mng-row-action.is-asking[b-iwx5rxrf2h] {
        flex: 1 1 100%;
    }

        .mng-row-action.is-asking .mng-btn[b-iwx5rxrf2h] {
            flex: 1 1 0;
            min-width: 0;
        }

    .mng-quick-btn[b-iwx5rxrf2h],
    .mng-more[b-iwx5rxrf2h] {
        min-height: 40px;
        padding: 0 14px;
    }

    .mng-more[b-iwx5rxrf2h] {
        margin-left: -14px;
    }

    .mng-facts[b-iwx5rxrf2h] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== Narrow phones (≤ 360px) ===== */
@media (max-width: 360px) {
    .mng-page[b-iwx5rxrf2h] {
        --card-pad: 14px;
    }

    .mng-avatar[b-iwx5rxrf2h] {
        width: 52px;
        height: 52px;
    }

        .mng-avatar.is-default[b-iwx5rxrf2h] {
            padding: 12px;
        }

    .mng-seg-btn[b-iwx5rxrf2h] {
        font-size: 13px;
        padding: 0 2px;
    }
}
/* /Pages/Admin/BugReports.razor.rz.scp.css */
/* Bug reports. The card, the unfolding rows, the facts and the state chips are the shared admin list layout in
   AdminShell.razor.css (cce-pane, cce-row, cce-row-body, cce-facts, cce-state); nothing is this page's own yet. */
/* /Pages/Admin/CustomLayout.razor.rz.scp.css */
/* Course structure page. Buttons, fields, cards, dialogs and the leave dialog come from AdminShell.razor.css (and its colour
   tokens: --ink, --brand, --ok, --danger, --warn, --line, --radius…); this file lays out the course list and the panel beside it,
   and styles the dialogs' contents (rendered by this page, so this file's scope reaches them).
   What an item is shows in its shape: a module is a card, a sub-module a heading inside it, a lesson a row with the icon of its
   kind of exercise. The colours of the numbers (module · sub-module · lesson · summary) are the ones /custom-content uses. */

/* ===== Page head and banners =====
   The head is the title with its info icon (the shared cce-page-title; the other admin tools are in the side menu);
   .cml-head is only the hook the phone rules use to hide it while an item is open. */
.cml-banner[b-y27ma3a8le] {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.5;
}

    .cml-banner p[b-y27ma3a8le] {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
    }

    .cml-banner strong[b-y27ma3a8le] {
        color: var(--ink);
    }

    .cml-banner.is-warning[b-y27ma3a8le] {
        flex-wrap: wrap;
        padding: 10px 14px;
        border-color: var(--warn);
        background: var(--warn-soft);
        color: var(--ink);
        font-size: 14px;
    }

        .cml-banner.is-warning p[b-y27ma3a8le] {
            flex-basis: 300px;
        }

/* The banner's "i" mark, drawn like the shared InfoTip's glyph (a dot and a stem) so it is centred by geometry */
.cml-banner-mark[b-y27ma3a8le] {
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
    display: block;
    width: 20px;
    height: 20px;
    border: 1px solid var(--brand-line);
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-strong);
}

    .cml-banner-mark[b-y27ma3a8le]::before,
    .cml-banner-mark[b-y27ma3a8le]::after {
        content: "";
        position: absolute;
        left: calc(50% - 1px);
        width: 2px;
        background: currentColor;
        border-radius: 1px;
    }

    .cml-banner-mark[b-y27ma3a8le]::before {
        top: 4px;
        height: 2px;
    }

    .cml-banner-mark[b-y27ma3a8le]::after {
        top: 7px;
        height: 7px;
    }

/* ===== Layout =====
   The page fits the screen (AdminShell Fill): the grid takes the height under the page head, and the list and the panel
   scroll on their own. The list is the wide one: it is what the admin reads. */
.cml-grid[b-y27ma3a8le] {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(400px, 42%, 520px);
    grid-template-rows: minmax(0, 1fr);
    gap: 16px;
}

/* ===== The course list ===== */
.cml-outline[b-y27ma3a8le] {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cml-outline-bar[b-y27ma3a8le] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

/* Over AdminShell's .cce-input (the search is slimmer than a form field). */
input.cml-search.cce-input[b-y27ma3a8le] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* A quiet text button: "Свернуть все", "Показать все". */
.cml-text-btn[b-y27ma3a8le] {
    appearance: none;
    flex-shrink: 0;
    align-self: flex-start;
    min-height: 36px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--brand-strong);
    cursor: pointer;
    touch-action: manipulation;
}

.cml-outline-bar .cml-text-btn[b-y27ma3a8le] {
    align-self: center;
}

    .cml-text-btn:active[b-y27ma3a8le] {
        background: var(--brand-soft);
        transition-duration: 0s;
    }

    .cml-text-btn:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.cml-outline-body[b-y27ma3a8le] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.cml-tree[b-y27ma3a8le],
.cml-tree ul[b-y27ma3a8le] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cml-tree[b-y27ma3a8le] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* A module: a card that opens. */
.cml-module[b-y27ma3a8le] {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

    .cml-module.is-open[b-y27ma3a8le] {
        border-color: var(--line-strong);
    }

.cml-row[b-y27ma3a8le] {
    display: flex;
    align-items: stretch;
    border-radius: var(--radius-sm);
}

.cml-module > .cml-row[b-y27ma3a8le] {
    border-radius: 11px;
}

.cml-module.is-open > .cml-row[b-y27ma3a8le] {
    border-radius: 11px 11px 0 0;
}

    .cml-module.is-open > .cml-row:not(.is-selected)[b-y27ma3a8le] {
        background: var(--surface);
    }

/* ===== What students do not see is grey and dashed, once, at the level it is hidden at =====
   A draft module: its whole card is a grey, dashed sketch beside the white, solid, live ones, with a dashed line under its header
   while it is open. A draft sub-module in a live module: one grey dashed frame around its row and its lessons. A lone draft
   lesson: its row is grey and outlined dashed. Nothing inside a dashed thing is dashed again (the outline
   around the larger thing already says so); the rows inside keep their dimming and tags. Stated after the open-card rules, so
   they win when the card is open too. */
.cml-module.is-unseen[b-y27ma3a8le],
.cml-module.is-unseen.is-open[b-y27ma3a8le] {
    background: var(--surface);
    border: 2px dashed var(--ink-muted);
}

    .cml-module.is-unseen > .cml-row[b-y27ma3a8le] {
        border-radius: 9px;
    }

    .cml-module.is-unseen.is-open > .cml-row[b-y27ma3a8le] {
        border-radius: 9px 9px 0 0;
        border-bottom: 2px dashed var(--ink-muted);
    }

    .cml-module.is-unseen.is-open > .cml-row:not(.is-selected)[b-y27ma3a8le] {
        background: transparent;
    }

/* A draft sub-module: one frame around its row and its lessons together (the row alone outlined, with the lessons hanging
   beside it, read as two broken pieces). The selected row keeps its blue fill on top of the grey. */
.cml-sub.is-unseen[b-y27ma3a8le] {
    padding: 2px 2px 4px;
    border: 2px dashed var(--ink-muted);
    border-radius: 12px;
    background: var(--surface);
}

    .cml-sub.is-unseen > .cml-leaves[b-y27ma3a8le] {
        margin-bottom: 2px;
    }

/* A lone draft lesson: its row grey and outlined dashed. The outline draws inside the row's box without moving anything. */
.cml-row.is-unseen[b-y27ma3a8le] {
    outline: 2px dashed var(--ink-muted);
    outline-offset: -2px;
}

    .cml-row.is-unseen:not(.is-selected)[b-y27ma3a8le] {
        background: var(--surface);
    }

.cml-row.is-selected[b-y27ma3a8le] {
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1.5px var(--brand-line);
}

.cml-toggle[b-y27ma3a8le] {
    appearance: none;
    flex-shrink: 0;
    width: 40px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    touch-action: manipulation;
}

    .cml-toggle:active[b-y27ma3a8le] {
        background: #e8ebf1;
        transition-duration: 0s;
    }

    .cml-toggle:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: -2px;
    }

/* "Изменить" on a module: only where the panel takes the list's place (see the phone rules at the end). */
.cml-edit[b-y27ma3a8le] {
    display: none;
    appearance: none;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    align-self: center;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    min-height: 36px;
    margin-right: 8px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    touch-action: manipulation;
}

    .cml-edit:active[b-y27ma3a8le] {
        border-color: var(--brand);
        background: var(--brand-soft);
        color: var(--brand-strong);
        transition-duration: 0s;
    }

    .cml-edit:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

/* One item of the list: what leads it (number or icon), its name with what is inside or its kind, then its tags. */
.cml-item[b-y27ma3a8le] {
    appearance: none;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    font: inherit;
    font-size: 14px;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .cml-item:active[b-y27ma3a8le] {
        background: #e8ebf1;
        transition-duration: 0s;
    }

    .cml-item:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: -2px;
    }

.cml-row--main .cml-item[b-y27ma3a8le] {
    min-height: 52px;
    padding-left: 0;
    font-size: 15px;
    font-weight: 600;
}

.cml-row--sub .cml-item[b-y27ma3a8le] {
    min-height: 44px;
    font-weight: 600;
}

.cml-item-text[b-y27ma3a8le] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 12px;
    line-height: 1.35;
}

.cml-item-name[b-y27ma3a8le] {
    flex: 1 1 160px;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* A lesson's number: beside its name, quiet (the icon leads the row). */
.cml-item-no[b-y27ma3a8le] {
    margin-right: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.cml-item-meta[b-y27ma3a8le] {
    flex: 0 1 auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
}

/* A draft, and a published item under a draft (students see neither): the name steps back, the number or icon fades. */
.cml-item.is-draft .cml-item-name[b-y27ma3a8le],
.cml-item.is-hidden .cml-item-name[b-y27ma3a8le] {
    color: var(--ink-soft);
}

.cml-item.is-draft .cml-icon[b-y27ma3a8le],
.cml-item.is-draft .cml-id[b-y27ma3a8le],
.cml-item.is-hidden .cml-icon[b-y27ma3a8le],
.cml-item.is-hidden .cml-id[b-y27ma3a8le] {
    opacity: 0.5;
}

/* Numbers, coloured by what they are: module · sub-module · lesson · summary. */
.cml-id[b-y27ma3a8le] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: var(--ink-muted);
}

.cml-id--main[b-y27ma3a8le] {
    min-width: 34px; /* fits two digits, so the names of 1 … 99 start at one line */
    height: 32px;
    border-radius: 10px;
    font-size: 14px;
    background: var(--brand);
}

.cml-id--sub[b-y27ma3a8le] {
    background: #8b5cf6;
}

.cml-id--lesson[b-y27ma3a8le] {
    background: #0f9488;
}

.cml-id--completion[b-y27ma3a8le] {
    background: #5d8f22;
}

.cml-id--big[b-y27ma3a8le] {
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
    border-radius: 10px;
    font-size: 14px;
}

/* A lesson leads with the icon of its kind of exercise, a summary with the summary icon (white glyphs on a tile). */
.cml-icon[b-y27ma3a8le] {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--ink-muted);
}

.cml-icon--lesson[b-y27ma3a8le] {
    background: #0f9488;
}

.cml-icon--completion[b-y27ma3a8le] {
    background: #5d8f22;
}

.cml-icon--big[b-y27ma3a8le] {
    width: 36px;
    height: 36px;
    padding: 7px;
    border-radius: 10px;
}

/* Short tags at the end of a row: a draft, or something to fix. */
.cml-tags[b-y27ma3a8le] {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    max-width: 45%;
}

.cml-tag[b-y27ma3a8le] {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

    /* "Черновик", and "Скрыто" on what a draft above takes out of sight: the same quiet dashed pill, the word tells them apart. */
    .cml-tag.is-draft[b-y27ma3a8le],
    .cml-tag.is-hidden[b-y27ma3a8le] {
        color: var(--ink-soft);
        background: #fff;
        border: 1px dashed var(--ink-muted);
    }

    /* The yellow is the accent (border, fill, dot); the words on it are ink: yellow text does not read on white. */
    .cml-tag.is-problem[b-y27ma3a8le] {
        color: var(--ink);
        background: var(--warn-soft);
        border: 1px solid var(--warn);
    }

    /* The paid level of a main module ("A2"); "без уровня" is a problem, in the problems' yellow. */
    .cml-tag.is-level[b-y27ma3a8le] {
        color: var(--brand-strong);
        background: var(--brand-soft);
        border: 1px solid var(--brand-line);
    }

    .cml-tag.is-nolevel[b-y27ma3a8le] {
        color: var(--ink);
        background: var(--warn-soft);
        border: 1px solid var(--warn);
    }

/* Inside an open module: its sub-modules, and under each its lessons on a guide line. */
.cml-subs[b-y27ma3a8le] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 10px 10px;
}

.cml-leaves[b-y27ma3a8le] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 6px 24px;
    padding-left: 10px;
    border-left: 2px solid var(--line);
}

/* "+ Добавить урок": a dashed row where the new item will stand. */
.cml-add[b-y27ma3a8le] {
    appearance: none;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 1px dashed var(--brand-line);
    border-radius: var(--radius-sm);
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    color: var(--brand-strong);
    cursor: pointer;
    touch-action: manipulation;
}

    .cml-add:active:not(:disabled)[b-y27ma3a8le] {
        background: var(--brand-soft);
        border-style: solid;
        transition-duration: 0s;
    }

    .cml-add:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    .cml-add:disabled[b-y27ma3a8le] {
        opacity: 0.5;
        cursor: not-allowed;
    }

.cml-leaves .cml-add[b-y27ma3a8le] {
    margin-top: 4px;
}

.cml-add--main[b-y27ma3a8le] {
    flex-shrink: 0;
    justify-content: center;
    min-height: 48px;
    border-radius: 12px;
    font-size: 14px;
}

/* A sub-module without its summary: said where the summary would stand. */
.cml-gap[b-y27ma3a8le] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 2px;
    padding: 6px 6px 6px 12px;
    border: 1px solid var(--warn);
    border-radius: var(--radius-sm);
    background: var(--warn-soft);
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-soft);
}

    .cml-gap span[b-y27ma3a8le] {
        flex: 1 1 200px;
    }

.cml-leaves .cml-add--needed[b-y27ma3a8le] {
    width: auto;
    min-height: 32px;
    margin-top: 0;
    border: 1px solid var(--warn);
    background: var(--warn);
    color: var(--ink);
}

    /* #d9a300: the darker yellow of the Progress page's bars. */
    .cml-leaves .cml-add--needed:active:not(:disabled)[b-y27ma3a8le] {
        background: #d9a300;
        border-color: #d9a300;
    }

.cml-none[b-y27ma3a8le] {
    margin: 0;
    padding: 8px 4px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* Rows no main module leads to, and the bin: under the course. */
.cml-extra[b-y27ma3a8le] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.cml-extra-title[b-y27ma3a8le] {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.cml-extra .cce-help[b-y27ma3a8le] {
    margin: 0 0 4px;
}

/* ===== The bin =====
   Apart from the course: a grey, dashed frame under the list with the bin icon, folded to one line unless a search or
   the open item leads into it. Its entries are quiet rows (outlined letter, name, where from and since when) with their
   own "Вернуть" at the right end; the open one carries the brand tint like a selected row of the course. */
.cml-trash[b-y27ma3a8le] {
    margin-top: 12px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

    .cml-trash summary[b-y27ma3a8le] {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 12px;
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 600;
        color: var(--ink-soft);
        cursor: pointer;
        list-style: none;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

        .cml-trash summary[b-y27ma3a8le]::-webkit-details-marker {
            display: none;
        }

        /* The chevron: down while folded, up while open */
        .cml-trash summary[b-y27ma3a8le]::after {
            content: "";
            flex-shrink: 0;
            width: 8px;
            height: 8px;
            margin-left: auto;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: translateY(-2px) rotate(45deg);
            transition: transform 0.2s ease;
        }

    .cml-trash[open] summary[b-y27ma3a8le]::after {
        transform: translateY(2px) rotate(-135deg);
    }

    .cml-trash summary:active[b-y27ma3a8le] {
        background: var(--line);
        transition-duration: 0s;
    }

    .cml-trash summary:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.cml-trash-title[b-y27ma3a8le] {
    color: var(--ink);
}

.cml-trash-hint[b-y27ma3a8le] {
    min-width: 0;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cml-trash-icon[b-y27ma3a8le] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--ink-muted);
}

    .cml-trash-icon svg[b-y27ma3a8le] {
        display: block;
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.cml-trash-list[b-y27ma3a8le] {
    list-style: none;
    margin: 0;
    padding: 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cml-trash-row[b-y27ma3a8le] {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-sm);
}

    .cml-trash-row.is-selected[b-y27ma3a8le] {
        background: var(--brand-soft);
        box-shadow: inset 0 0 0 1.5px var(--brand-line);
    }

.cml-trash-item[b-y27ma3a8le] {
    appearance: none;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 6px 8px;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    font: inherit;
    font-size: 14px;
    text-align: left;
    color: var(--ink-soft);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .cml-trash-item:active[b-y27ma3a8le] {
        background: var(--line);
        transition-duration: 0s;
    }

    .cml-trash-item:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: -2px;
    }

    /* The kind's letter, outlined: an item in the bin has no number and no colour of its own */
    .cml-trash-item .cml-id[b-y27ma3a8le] {
        background: #fff;
        color: var(--ink-muted);
        box-shadow: inset 0 0 0 1.5px var(--line-strong);
    }

.cml-trash-restore[b-y27ma3a8le] {
    flex-shrink: 0;
    margin-right: 4px;
}

/* The panel's note for an item in the bin: the same grey dashed frame, since when, what it means, the one button */
.cml-bin-note[b-y27ma3a8le] {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 10px 12px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.cml-bin-note-text[b-y27ma3a8le] {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .cml-bin-note-text strong[b-y27ma3a8le] {
        font-size: 14px;
        color: var(--ink);
    }

/* ===== The panel beside the list =====
   Dense on purpose: one row per question, its short name in a narrow column on the left, the answer and its buttons beside
   it, so the whole item is on screen without scrolling on a laptop. */
.cml-side[b-y27ma3a8le] {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* As tall as its content, up to the screen: then its head stays and its body scrolls. */
.cml-panel[b-y27ma3a8le] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.cml-panel-head[b-y27ma3a8le] {
    position: relative; /* anchors the close button */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 44px 10px 16px;
    border-bottom: 1px solid var(--line);
}

/* "← Весь курс": only where the list and the panel do not fit side by side. */
.cml-back[b-y27ma3a8le] {
    display: none;
    appearance: none;
    align-self: flex-start;
    min-height: 36px;
    margin-left: -8px;
    padding: 0 12px 0 8px;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-strong);
    cursor: pointer;
    touch-action: manipulation;
}

    .cml-back:active[b-y27ma3a8le] {
        background: var(--brand-soft);
        transition-duration: 0s;
    }

    .cml-back:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.cml-close[b-y27ma3a8le] {
    appearance: none;
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    font-size: 14px;
    color: var(--ink-soft);
    cursor: pointer;
    touch-action: manipulation;
}

    .cml-close:active[b-y27ma3a8le] {
        background: #e8ebf1;
        transition-duration: 0s;
    }

    .cml-close:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: 1px;
    }

/* Where the item sits: "6 Substantive › 6.2 Genusregeln…" */
.cml-crumbs[b-y27ma3a8le] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 2px;
    margin: -2px 0 0 -6px;
    font-size: 12px;
    color: var(--ink-muted);
}

.cml-crumb-sep:last-child[b-y27ma3a8le] {
    display: none;
}

.cml-crumb[b-y27ma3a8le] {
    appearance: none;
    min-height: 24px;
    padding: 0 6px;
    border: 0;
    border-radius: 6px;
    background: none;
    font: inherit;
    color: var(--ink-soft);
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    overflow-wrap: anywhere;
}

    .cml-crumb:active[b-y27ma3a8le] {
        background: #e8ebf1;
        transition-duration: 0s;
    }

    .cml-crumb:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: 1px;
    }

.cml-title-row[b-y27ma3a8le] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cml-title-text[b-y27ma3a8le] {
    min-width: 0;
}

.cml-title[b-y27ma3a8le] {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.cml-kind[b-y27ma3a8le] {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--ink-soft);
}

.cml-missing[b-y27ma3a8le] {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.cml-panel-body[b-y27ma3a8le] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin; /* when it does scroll, the bar takes little of the rows' width */
}

/* One row: the question's name, then its answer. The name sits on the first line of the answer, whatever that is (a
   sentence, a button, a field). */
.cml-prop[b-y27ma3a8le] {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr); /* "Содержимое", the longest one-word name, fits */
    column-gap: 10px;
    align-items: first baseline;
    padding: 8px 16px;
    border-top: 1px solid var(--line);
}

.cml-panel-body > .cml-prop:first-child[b-y27ma3a8le] {
    border-top: 0;
}

.cml-prop-name[b-y27ma3a8le] {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink-muted);
}

.cml-prop-body[b-y27ma3a8le] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* The answer and its buttons on one line when they fit ("Опубликовано" and "Скрыть", "Удалить" and "В корзину, можно вернуть"),
   the buttons on the next line when they do not. */
.cml-prop-body--inline[b-y27ma3a8le] {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
}

    .cml-prop-body--inline > p[b-y27ma3a8le] {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* A note beside a button wraps in what is left of the line instead of dropping under the button. */
    .cml-prop-body--inline > .cml-prop-hint[b-y27ma3a8le] {
        flex-basis: 110px;
    }

.cml-prop-text[b-y27ma3a8le] {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ink-soft);
}

.cml-prop-hint[b-y27ma3a8le] {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--ink-muted);
}

/* A text area has no first line to sit on (its baseline is its bottom edge in some browsers): the name goes to the top. */
.cml-prop--area[b-y27ma3a8le] {
    align-items: start;
}

    .cml-prop--area .cml-prop-name[b-y27ma3a8le] {
        padding-top: 10px;
    }

.cml-actions[b-y27ma3a8le] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* Denser controls than AdminShell's, in the panel only. Each selector is more specific than the AdminShell rule it adjusts
   (`.cce ::deep .cce-btn--small`, `.cce ::deep .cce-input`, `.cce ::deep .cce-textarea`), so the bundle's order does not
   decide. The select keeps AdminShell's right padding (its arrow). */
.cml-panel-body .cce-btn.cce-btn--small[b-y27ma3a8le] {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
}

.cml-panel-body .cml-prop .cce-input[b-y27ma3a8le] {
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 12px;
    font-size: 15px;
}

.cml-panel-body .cml-prop .cce-textarea[b-y27ma3a8le] {
    min-height: 72px;
}

/* iOS zooms the page into a field whose text is under 16px. */
@media (pointer: coarse) {
    .cml-panel-body .cml-prop .cce-input[b-y27ma3a8le] {
        font-size: 16px;
    }
}

/* What students see of the item: a word in a pill, then one sentence. */
.cml-status[b-y27ma3a8le] {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.cml-status-name[b-y27ma3a8le] {
    display: inline-block;
    margin-right: 4px;
    padding: 0 9px 0 8px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

.cml-status-dot[b-y27ma3a8le] {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--ink-muted);
    vertical-align: 0;
}

.cml-status.is-published .cml-status-name[b-y27ma3a8le] {
    border-color: var(--ok-line);
    background: var(--ok-soft);
    color: #35600f;
}

.cml-status.is-published .cml-status-dot[b-y27ma3a8le] {
    background: var(--ok);
}

.cml-status.is-draft .cml-status-name[b-y27ma3a8le] {
    border-style: dashed;
    border-color: var(--ink-muted);
    background: #fff;
}

.cml-status.is-draft .cml-status-dot[b-y27ma3a8le] {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--ink-muted);
}

.cml-status.is-hidden .cml-status-name[b-y27ma3a8le] {
    border-color: var(--warn);
    background: var(--warn-soft);
    color: var(--ink);
}

.cml-status.is-hidden .cml-status-dot[b-y27ma3a8le] {
    background: var(--warn);
}

/* The date the history gives the state ("Скрыто от студентов 03.10.2026"): its own quiet line under the status. */
.cml-status-when[b-y27ma3a8le] {
    margin: -2px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--ink-muted);
}

/* A second and third line in the place row ("У студентов это 17…", "Перенесено сюда…"): quieter than the place itself. */
.cml-prop-more[b-y27ma3a8le] {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--ink-muted);
}

/* The fields and their "Сохранить" are one group: no lines between its rows. */
.cml-form[b-y27ma3a8le] {
    padding-top: 3px;
    border-top: 1px solid var(--line);
}

    .cml-form .cml-prop[b-y27ma3a8le] {
        padding-top: 6px;
        padding-bottom: 6px;
        border-top: 0;
    }

.cml-form-error[b-y27ma3a8le] {
    padding: 2px 16px 0;
}

/* "Сохранить" belongs to the fields above it. With something unsaved the row turns yellow and stays on screen while the
   fields are. Same box in both states, so typing the first letter moves nothing. */
.cml-save[b-y27ma3a8le] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 16px 8px;
    border-top: 1px solid transparent;
}

    .cml-save.is-dirty[b-y27ma3a8le] {
        position: sticky;
        bottom: 0;
        z-index: 1;
        border-top-color: var(--warn);
        background: var(--warn-soft);
    }

.cml-save-status[b-y27ma3a8le] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.cml-warning[b-y27ma3a8le] {
    margin: 0;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--warn-soft);
    border: 1px solid var(--warn);
    border-radius: var(--radius-sm);
}

.cml-prop .cml-warning[b-y27ma3a8le] {
    padding: 8px 10px;
    font-size: 13px;
}

/* Keys are for developers: folded away at the bottom. */
.cml-tech[b-y27ma3a8le] {
    padding: 0 16px 4px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-muted);
}

    .cml-tech summary[b-y27ma3a8le] {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        cursor: pointer;
        touch-action: manipulation;
    }

        .cml-tech summary:focus-visible[b-y27ma3a8le] {
            outline: 2px solid var(--brand);
            outline-offset: 2px;
        }

    .cml-tech p[b-y27ma3a8le] {
        margin: 2px 0 4px;
        line-height: 1.5;
    }

    .cml-tech code[b-y27ma3a8le] {
        font-size: 12px;
        color: var(--ink-soft);
    }

/* ===== Nothing selected: what is left to finish ===== */
.cml-overview-head[b-y27ma3a8le] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.cml-overview-title[b-y27ma3a8le] {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.cml-sec[b-y27ma3a8le] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
}

.cml-panel-body > .cml-sec:first-child[b-y27ma3a8le] {
    border-top: 0;
}

.cml-sec-title[b-y27ma3a8le] {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink-muted);
}

.cml-all-done[b-y27ma3a8le] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--ok-line);
    border-radius: var(--radius-sm);
    background: var(--ok-soft);
    font-size: 13.5px;
    line-height: 1.45;
    color: #35600f;
}

.cml-todo[b-y27ma3a8le] {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0 -8px;
    padding: 0;
}

    .cml-todo .cml-item[b-y27ma3a8le] {
        width: 100%;
        min-height: 34px;
        padding: 4px 8px;
        font-size: 13.5px;
    }

    .cml-todo .cml-id[b-y27ma3a8le] {
        min-width: 30px;
        height: 22px;
        padding: 0 6px;
        border-radius: 6px;
        font-size: 11px;
    }

    /* What is left to do with the item: said in ink, marked with the yellow dot. */
    .cml-todo .cml-item-meta[b-y27ma3a8le] {
        flex-basis: 100%;
        color: var(--ink-soft);
    }

        .cml-todo .cml-item-meta[b-y27ma3a8le]::before {
            content: "";
            display: inline-block;
            width: 7px;
            height: 7px;
            margin-right: 6px;
            border-radius: 50%;
            background: var(--warn);
        }

/* "Стоит исправить": one group per problem. Its name with the count and the yellow dot of the reminders, one line of what to do,
   then the items as number chips in the list's colours. A chip is the item's number pill made a button; it opens the item. */
.cml-fix[b-y27ma3a8le] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0 4px;
}

    .cml-fix + .cml-fix[b-y27ma3a8le] {
        border-top: 1px dashed var(--line);
    }

.cml-fix-title[b-y27ma3a8le] {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

    .cml-fix-title[b-y27ma3a8le]::before {
        content: "";
        display: inline-block;
        width: 7px;
        height: 7px;
        margin-right: 6px;
        border-radius: 50%;
        background: var(--warn);
        vertical-align: 1px;
    }

.cml-fix-count[b-y27ma3a8le] {
    margin-left: 2px;
    font-weight: 600;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.cml-fix-hint[b-y27ma3a8le] {
    margin: 0 0 2px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--ink-muted);
}

.cml-chips[b-y27ma3a8le] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cml-chip[b-y27ma3a8le] {
    height: 28px;
    border: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    touch-action: manipulation;
}

    .cml-chip:active[b-y27ma3a8le] {
        opacity: 0.75;
        transition-duration: 0s;
    }

    .cml-chip:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

/* ===== Dialog contents ===== */
.cml-dlg-text[b-y27ma3a8le] {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.cml-dlg-note[b-y27ma3a8le] {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-muted);
}

.cml-dlg-loading[b-y27ma3a8le] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--ink-soft);
}

/* The kinds of lesson, each a tile with the icon students see. */
.cml-types[b-y27ma3a8le] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.cml-type[b-y27ma3a8le] {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 6px 10px 6px 8px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
    touch-action: manipulation;
}

    .cml-type.is-selected[b-y27ma3a8le] {
        border-color: var(--brand);
        background: var(--brand-soft);
        box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.14);
    }

    .cml-type:active:not(:disabled)[b-y27ma3a8le] {
        border-color: var(--brand);
        background: var(--brand-soft);
        transition-duration: 0s;
    }

    .cml-type:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    .cml-type:disabled[b-y27ma3a8le] {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* The add dialog's fields, one under another. */
.cce-field + .cce-field[b-y27ma3a8le] {
    margin-top: 14px;
}

/* What the action will do, from the server's dry run. */
.cml-dlg-result[b-y27ma3a8le] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    font-size: 14px;
    line-height: 1.5;
}

    .cml-dlg-result p[b-y27ma3a8le] {
        margin: 0;
    }

.cml-dlg-more summary[b-y27ma3a8le] {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-weight: 600;
    color: var(--brand-strong);
    cursor: pointer;
    touch-action: manipulation;
}

    .cml-dlg-more summary:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    /* What "Подробнее" holds in the move dialog: said quietly, it changes nothing the admin has to decide. */
    .cml-dlg-more p[b-y27ma3a8le] {
        margin: 6px 0 0;
        font-size: 13px;
        line-height: 1.5;
        color: var(--ink-soft);
    }

.cml-dlg-safe + .cml-dlg-more[b-y27ma3a8le] {
    margin-top: 6px;
}

/* The reassurance that nothing is lost. */
.cml-dlg-safe[b-y27ma3a8le] {
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--ok-line);
    border-radius: var(--radius-sm);
    background: var(--ok-soft);
    font-size: 14px;
    line-height: 1.5;
    color: #35600f;
}

.cml-dlg-result + .cml-warning[b-y27ma3a8le],
.cml-dlg-safe + .cml-warning[b-y27ma3a8le],
.cml-dlg-result ~ .cml-warning[b-y27ma3a8le],
.cml-warning + .cml-warning[b-y27ma3a8le] {
    margin-top: 12px;
}

.cml-renumbered[b-y27ma3a8le] {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
}

.cml-checklist[b-y27ma3a8le] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
}

    .cml-checklist legend[b-y27ma3a8le] {
        margin-bottom: 4px;
        font-size: 14px;
        font-weight: 600;
    }

.cml-check[b-y27ma3a8le] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    font-size: 14px;
    cursor: pointer;
}

    .cml-check input[b-y27ma3a8le] {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

/* ===== Moving an item: the list shows the places =====
   The bar on top asks the question; "Поставить сюда" stands at every place the item may go; the panel waits. */
.cml-move-bar[b-y27ma3a8le] {
    align-items: center;
    flex-wrap: wrap;
    border-bottom-color: var(--brand-line);
    background: var(--brand-soft);
}

    .cml-move-bar p[b-y27ma3a8le] {
        flex: 1 1 260px;
        min-width: 0;
        margin: 0;
        font-size: 14px;
        line-height: 1.45;
        color: var(--ink-soft);
    }

    .cml-move-bar strong[b-y27ma3a8le] {
        display: block;
        color: var(--ink);
        overflow-wrap: anywhere;
    }

/* A place: a dashed line across the list with its button in the middle. */
.cml-slot[b-y27ma3a8le] {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-strong);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .cml-slot[b-y27ma3a8le]::before,
    .cml-slot[b-y27ma3a8le]::after {
        content: "";
        flex: 1 1 0;
        border-top: 2px dashed var(--brand-line);
    }

    .cml-slot span[b-y27ma3a8le] {
        padding: 4px 12px;
        border: 1.5px solid var(--brand-line);
        border-radius: 999px;
        background: #fff;
        white-space: nowrap;
    }

    .cml-slot:active:not(:disabled) span[b-y27ma3a8le] {
        border-color: var(--brand);
        background: var(--brand);
        color: #fff;
        transition-duration: 0s;
    }

    .cml-slot:focus-visible[b-y27ma3a8le] {
        outline: 2px solid var(--brand);
        outline-offset: -2px;
        border-radius: var(--radius-sm);
    }

    .cml-slot:disabled[b-y27ma3a8le] {
        opacity: 0.5;
        cursor: progress;
    }

/* Why an open module has no places (another level, the tutorial). */
.cml-noslot[b-y27ma3a8le] {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-soft);
}

/* While moving, a row opens nothing: only a module's row still opens and closes it. */
.cml-outline.is-moving .cml-row:not(.cml-row--main) .cml-item[b-y27ma3a8le] {
    pointer-events: none;
}

.cml-module.is-off > .cml-row[b-y27ma3a8le] {
    opacity: 0.55;
}

.cml-tag.is-moving[b-y27ma3a8le] {
    color: var(--brand-strong);
    background: #fff;
    border: 1px solid var(--brand-line);
}

/* The panel steps back until the place is chosen (it is inert too). */
.cml-side.is-waiting[b-y27ma3a8le] {
    opacity: 0.45;
    pointer-events: none;
}

/* ===== Hover (mouse/trackpad only — see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .cml-slot:hover:not(:disabled) span[b-y27ma3a8le] {
        border-color: var(--brand);
        background: var(--brand-soft);
    }

    .cml-slot:hover:not(:disabled)[b-y27ma3a8le]::before,
    .cml-slot:hover:not(:disabled)[b-y27ma3a8le]::after {
        border-top-color: var(--brand);
    }

    .cml-item:hover[b-y27ma3a8le] {
        background: var(--surface);
    }

    .cml-row.is-selected .cml-item:hover[b-y27ma3a8le] {
        background: transparent;
    }

    .cml-module.is-open > .cml-row:not(.is-selected) .cml-item:hover[b-y27ma3a8le] {
        background: #eceff4;
    }

    .cml-add:hover:not(:disabled)[b-y27ma3a8le] {
        border-style: solid;
        background: var(--brand-soft);
    }

    .cml-leaves .cml-add--needed:hover:not(:disabled)[b-y27ma3a8le] {
        background: #e6b70f;
        border-color: #e6b70f;
    }

    .cml-toggle:hover[b-y27ma3a8le],
    .cml-crumb:hover[b-y27ma3a8le],
    .cml-close:hover[b-y27ma3a8le] {
        color: var(--brand-strong);
    }

    .cml-crumb:hover[b-y27ma3a8le],
    .cml-close:hover[b-y27ma3a8le] {
        background: var(--surface);
    }

    .cml-trash summary:hover[b-y27ma3a8le],
    .cml-trash-item:hover[b-y27ma3a8le] {
        background: var(--line);
    }

    .cml-text-btn:hover[b-y27ma3a8le],
    .cml-back:hover[b-y27ma3a8le] {
        background: var(--brand-soft);
    }

    .cml-type:hover:not(:disabled):not(.is-selected)[b-y27ma3a8le] {
        border-color: var(--brand);
    }

    .cml-chip:hover[b-y27ma3a8le] {
        opacity: 0.85;
    }
}

/* ===== Tablet / phone: one thing at a time =====
   The list alone; once an item is open, its panel alone with "← Весь курс" back to the list. The page head and the note about
   what can be edited step aside too: the panel needs the height. */
@media (max-width: 900px) {
    .cml-grid[b-y27ma3a8le] {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .cml-grid:not(.has-item) .cml-side[b-y27ma3a8le],
    .cml-grid.has-item .cml-outline[b-y27ma3a8le] {
        display: none;
    }

    .cml--item .cml-head[b-y27ma3a8le],
    .cml--item .cml-banner:not(.is-warning)[b-y27ma3a8le] {
        display: none;
    }

    /* A tap anywhere on a module's row opens and closes it (the arrow's hit area covers the row), so its lessons are one tap
       away; "Изменить" opens the module itself. */
    .cml-row--main[b-y27ma3a8le] {
        position: relative;
    }

        .cml-row--main .cml-toggle[b-y27ma3a8le]::after {
            content: "";
            position: absolute;
            inset: 0;
        }

        /* The press shows on the whole row. As specific as the open module's row background above, and later. */
        .cml-module > .cml-row--main:has(.cml-toggle:active)[b-y27ma3a8le] {
            background: #e8ebf1;
            transition-duration: 0s;
        }

    .cml-edit[b-y27ma3a8le] {
        display: inline-flex;
    }

    /* Moving: the list comes back in the panel's place until the place is chosen. */
    .cml-grid.has-item.is-moving .cml-outline[b-y27ma3a8le] {
        display: flex;
    }

    .cml-grid.is-moving .cml-side[b-y27ma3a8le],
    .cml-outline.is-moving .cml-edit[b-y27ma3a8le] {
        display: none;
    }

    .cml-back[b-y27ma3a8le] {
        display: inline-flex;
        align-items: center;
    }

    .cml-close[b-y27ma3a8le] {
        display: none;
    }

    /* The whole panel scrolls, its head too: a phone has no height to keep it in place. */
    .cml-panel[b-y27ma3a8le] {
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .cml-panel-body[b-y27ma3a8le] {
        flex: 0 0 auto;
        overflow: visible;
    }

    .cml-panel-head[b-y27ma3a8le] {
        padding: 8px 16px 12px;
    }

    .cml-crumbs[b-y27ma3a8le] {
        margin-top: 0;
    }

    .cml-tags[b-y27ma3a8le] {
        max-width: 100%;
    }

    .cml-leaves[b-y27ma3a8le] {
        margin-left: 14px;
    }
}

/* ===== Phones: the module's name needs the row's width, "Изменить" keeps its pencil (its label stays for screen readers) ===== */
@media (max-width: 600px) {
    .cml-edit[b-y27ma3a8le] {
        padding: 0;
        border-radius: 50%;
    }

        .cml-edit span[b-y27ma3a8le] {
            display: none;
        }

    /* The panel's rows: the name over its answer, the width goes to the answer. */
    .cml-prop[b-y27ma3a8le] {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 4px;
    }

        .cml-prop--area .cml-prop-name[b-y27ma3a8le] {
            padding-top: 0;
        }

    /* What is inside / the kind of lesson: always under the name, not beside it on one row and under it on the next. */
    .cml-item-name[b-y27ma3a8le] {
        flex-basis: 100%;
    }

    .cml-outline-bar[b-y27ma3a8le],
    .cml-outline-body[b-y27ma3a8le] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .cml-subs[b-y27ma3a8le] {
        padding-left: 6px;
        padding-right: 6px;
    }
}
/* /Pages/Admin/Database.razor.rz.scp.css */
/* Database page. The head, the card, the tabs and the rows that unfold come from AdminShell.razor.css (the list
   pages' pattern); this file holds the filter row under the tabs, the tags a row carries, the inline forms and the
   video preview. */

/* ===== The pills: one per list, with its count; a yellow (or red) count after it when rows there need attention =====
   On phones the pills stay on one line that scrolls sideways, so the head keeps its height. */
.dbp-tabs .cce-tab .cce-badge.dbp-badge-warn[b-x0wiqivp86] {
    min-width: 20px;
    color: var(--ink);
    background: var(--warn-soft);
    border-color: var(--warn-line);
}

    .dbp-tabs .cce-tab .cce-badge.dbp-badge-warn.is-danger[b-x0wiqivp86] {
        color: var(--danger);
        background: var(--danger-soft);
        border-color: var(--danger-line);
    }

    .dbp-tabs .cce-tab.is-selected .cce-badge.dbp-badge-warn[b-x0wiqivp86] {
        color: var(--ink);
        background: var(--warn);
        border-color: var(--warn);
    }

    .dbp-tabs .cce-tab.is-selected .cce-badge.dbp-badge-warn.is-danger[b-x0wiqivp86] {
        color: #fff;
        background: var(--danger);
        border-color: var(--danger);
    }
/* ===== The filters every tab shares: the module, the search, then the chips (the chosen lesson, the drafts, the rows
   needing attention) ===== */
.dbp-filters[b-x0wiqivp86] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dbp-chips[b-x0wiqivp86] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* The module as a dropdown pill, the height of the search beside it */
.dbp-select[b-x0wiqivp86] {
    appearance: none;
    -webkit-appearance: none;
    max-width: 100%;
    min-height: 36px;
    padding: 0 32px 0 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236c757d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") no-repeat right 12px center;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

    .dbp-select:focus-visible[b-x0wiqivp86] {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px var(--brand-soft);
    }

.dbp-search[b-x0wiqivp86] {
    flex: 1 1 220px;
    width: auto;
    max-width: 420px;
}

/* One lesson chosen from the lessons tab: a dark pill naming it, with its × */
.dbp-scope[b-x0wiqivp86] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 4px 0 12px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.dbp-scope-x[b-x0wiqivp86] {
    appearance: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

    .dbp-scope-x:active[b-x0wiqivp86] {
        background: rgba(255, 255, 255, 0.4);
        transition-duration: 0s;
    }

    .dbp-scope-x:focus-visible[b-x0wiqivp86] {
        outline: 2px solid #fff;
        outline-offset: 1px;
    }

/* A chip that toggles: white with the ink line, filled brand when on; the problems chip fills with the yellow and keeps
   its words in ink (yellow text does not read) */
.dbp-chip[b-x0wiqivp86] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 6px 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--ink-soft);
    background: #fff;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .dbp-chip .cce-badge[b-x0wiqivp86] {
        min-width: 22px;
        height: 20px;
        font-size: 12px;
    }

    .dbp-chip.is-on[b-x0wiqivp86] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }

        .dbp-chip.is-on .cce-badge[b-x0wiqivp86] {
            color: var(--brand-strong);
            background: #fff;
            border-color: #fff;
        }

    .dbp-chip--warn.is-on[b-x0wiqivp86] {
        color: var(--ink);
        background: var(--warn);
        border-color: var(--warn);
    }

        .dbp-chip--warn.is-on .cce-badge[b-x0wiqivp86] {
            color: var(--ink);
            background: #fff;
            border-color: #fff;
        }

    .dbp-chip:active[b-x0wiqivp86] {
        background: var(--brand-soft);
        border-color: var(--brand);
        transition-duration: 0s;
    }

    .dbp-chip--warn:active[b-x0wiqivp86] {
        background: var(--warn-soft);
        border-color: var(--warn);
    }

    /* "× Сбросить": at the end of the row only while a filter is in force, in a greyed red that fills red when pressed
       (and on a mouse hover, below) */
    .dbp-chip--reset[b-x0wiqivp86] {
        gap: 4px;
        padding: 0 12px 0 10px;
        color: rgba(217, 54, 57, 0.7);
        border-color: var(--danger-line);
    }

        .dbp-chip--reset .dbp-reset-x[b-x0wiqivp86] {
            font-size: 17px;
            line-height: 1;
        }

        .dbp-chip--reset:active[b-x0wiqivp86] {
            color: #fff;
            background: var(--danger);
            border-color: var(--danger);
        }

    /* The mistakes list's chip counts answers waiting for repetition: red, like its pill's count */
    .dbp-chip--warn.is-danger.is-on[b-x0wiqivp86] {
        color: #fff;
        background: var(--danger);
        border-color: var(--danger);
    }

        .dbp-chip--warn.is-danger.is-on .cce-badge[b-x0wiqivp86] {
            color: var(--danger);
        }

    .dbp-chip:focus-visible[b-x0wiqivp86] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

/* ===== Rows ===== */
/* The lesson's number before its name, in the brand colour */
.dbp-num[b-x0wiqivp86] {
    color: var(--brand-strong);
    font-variant-numeric: tabular-nums;
}

/* The line over a group of rows (one sub-module's lessons, one lesson's questions): stays at the top while its rows
   scroll under it, with the lesson's icon, number, name and type and how many rows follow */
/* No padding over the rows: the sticky line then sits flush with the pane's top edge, with nothing showing above it */
.cce-pane .cce-pane-body[b-x0wiqivp86] {
    padding-top: 0;
}

.dbp-group[b-x0wiqivp86] {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 6px 0 0;
    padding: 8px 6px 6px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

    .dbp-group:first-child[b-x0wiqivp86] {
        margin-top: 0;
    }

/* The type icons are white glyphs: they sit on the brand colour, as in the lesson picker */
.dbp-group-icon[b-x0wiqivp86] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 6px;
    background: var(--brand);
    object-fit: contain;
}

.dbp-group-word[b-x0wiqivp86] {
    font-weight: 500;
    color: var(--ink-muted);
}

.dbp-group-name[b-x0wiqivp86] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dbp-group-type[b-x0wiqivp86] {
    font-weight: 500;
    color: var(--ink-muted);
    white-space: nowrap;
}

.dbp-group-count[b-x0wiqivp86] {
    margin-left: auto;
    flex-shrink: 0;
    min-width: 24px;
    height: 20px;
    padding: 0 7px;
    border-radius: 10px;
    background: var(--surface);
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

/* A lesson's row with the type's icon after the dot (the lessons and videos lists) */
.cce-rows .dbp-row[b-x0wiqivp86] {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.dbp-icon[b-x0wiqivp86] {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    padding: 7px;
    border-radius: 9px;
    object-fit: contain;
    background: var(--brand);
}

.dbp-icon--summary[b-x0wiqivp86] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #5d8f22;
    background: #f4faec;
}

/* A text-shaped button in a row's tag line (the students' mistakes behind a question) */
.dbp-link[b-x0wiqivp86] {
    appearance: none;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-strong);
    cursor: pointer;
}

    .dbp-link:focus-visible[b-x0wiqivp86] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
        border-radius: 4px;
    }

/* The empty element after the rows that scroll-more.js watches */
.dbp-sentinel[b-x0wiqivp86] {
    height: 1px;
}

/* What a folded row carries: green for what is there, the yellow for a gap or an unsaved edit, red for an empty lesson,
   grey for a draft */
.dbp-tag[b-x0wiqivp86] {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.dbp-tag--ok[b-x0wiqivp86] {
    color: var(--ok);
    background: var(--ok-soft);
}

.dbp-tag--gap[b-x0wiqivp86] {
    color: var(--ink);
    background: var(--warn-soft);
    border: 1px solid var(--warn-line);
}

.dbp-tag--empty[b-x0wiqivp86] {
    color: var(--danger);
    background: var(--danger-soft);
}

.dbp-tag--draft[b-x0wiqivp86] {
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line-strong);
}

/* A lesson whose content has not arrived yet: grey, like its dot */
.dbp-tag--load[b-x0wiqivp86] {
    color: var(--ink-muted);
    background: var(--surface);
}

.cce-rows .cce-dot.is-load[b-x0wiqivp86] {
    background: #999999;
}

/* "Загружено 12 из 34 модулей" at the end of the filter row while the content arrives */
.dbp-progress[b-x0wiqivp86] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-muted);
    white-space: nowrap;
}

    .dbp-progress.is-error[b-x0wiqivp86] {
        color: var(--danger);
    }

/* A fact of a missing section, in the unfolded lesson */
.dbp-fact--gap[b-x0wiqivp86] {
    background: var(--warn-soft);
}

/* A joined list of words, or the options of a question: compact */
.dbp-compact[b-x0wiqivp86] {
    font-size: 14px;
    line-height: 1.5;
}

/* The lesson's questions, one line each, with the type in front and the answer after */
.dbp-qlist[b-x0wiqivp86] {
    margin: 0;
    padding: 0 0 0 22px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Each line is a button that opens the question in the questions list's editor: shaped as the text it was, so the list
   reads as before; the line fills soft brand while pressed (and on a mouse hover, below) */
.dbp-qline[b-x0wiqivp86] {
    appearance: none;
    display: inline-block;
    vertical-align: top; /* the list's number stays on the first line of a question that wraps */
    max-width: 100%;
    margin: 0 -6px;
    padding: 1px 6px;
    border: 0;
    border-radius: 6px;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    white-space: normal;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .dbp-qline:active[b-x0wiqivp86] {
        color: var(--brand-strong);
        background: var(--brand-line);
        transition-duration: 0s;
    }

    .dbp-qline:focus-visible[b-x0wiqivp86] {
        outline: 2px solid var(--brand);
        outline-offset: 1px;
    }

.dbp-qtype[b-x0wiqivp86] {
    display: inline-block;
    margin-right: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 18px;
    vertical-align: 1px;
}

.dbp-answer[b-x0wiqivp86] {
    margin-left: 4px;
    color: var(--ok);
    font-weight: 600;
}

/* ===== The inline form of a question ===== */
.dbp-form[b-x0wiqivp86] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* The foot of an editable row: deleting on the left (with its two-step confirmation), undo and save on the right */
.dbp-foot[b-x0wiqivp86] {
    align-items: center;
}

.dbp-foot-left[b-x0wiqivp86] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-right: auto;
}

.dbp-confirm[b-x0wiqivp86] {
    font-size: 13px;
    font-weight: 600;
    color: var(--danger);
}

/* ===== The video preview ===== */
.dbp-video[b-x0wiqivp86] {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--ink);
}

    .dbp-video iframe[b-x0wiqivp86],
    .dbp-video video[b-x0wiqivp86] {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* ===== "Show more" under a long list ===== */
.dbp-more[b-x0wiqivp86] {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
}

/* ===== Hover (mouse/trackpad only - see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .dbp-chip:hover:not(.is-on)[b-x0wiqivp86] {
        border-color: var(--brand);
        color: var(--ink);
    }

    .dbp-chip--warn:hover:not(.is-on)[b-x0wiqivp86] {
        border-color: var(--warn);
    }

    .dbp-chip--reset:hover[b-x0wiqivp86] {
        color: var(--danger);
        background: var(--danger-soft);
        border-color: var(--danger);
    }

    .dbp-select:hover[b-x0wiqivp86] {
        border-color: var(--brand);
    }

    .dbp-scope-x:hover[b-x0wiqivp86] {
        background: rgba(255, 255, 255, 0.3);
    }

    .dbp-link:hover[b-x0wiqivp86] {
        text-decoration: underline;
    }

    .dbp-qline:hover[b-x0wiqivp86] {
        color: var(--brand-strong);
        background: var(--brand-soft);
    }
}

/* ===== Phones ===== */
@media (max-width: 600px) {
    /* The pills on one line that scrolls sideways (the shared phone rule would wrap them onto two or three), and the
       module and the search side by side: the head is three short rows */
    .cce-pane-head .dbp-tabs[b-x0wiqivp86] {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -14px;
        padding: 0 14px 2px;
        scrollbar-width: none;
    }

        .dbp-tabs[b-x0wiqivp86]::-webkit-scrollbar {
            display: none;
        }

        .dbp-tabs .cce-tab[b-x0wiqivp86] {
            flex: 0 0 auto;
        }

    /* The module and the search share the second row, the module a little wider so its name reads; both the height
       of a finger. The search gets a magnifier, so its cut placeholder still says what it is. */
    .dbp-select[b-x0wiqivp86],
    .dbp-search[b-x0wiqivp86] {
        min-width: 0;
        width: auto;
        max-width: none;
        height: 40px;
        min-height: 40px;
        font-size: 16px; /* 16px keeps iOS from zooming on focus */
    }

    .dbp-select[b-x0wiqivp86] {
        flex: 1 1 52%;
        padding-right: 30px;
        background-position: right 10px center;
    }

    .dbp-search[b-x0wiqivp86] {
        flex: 1 1 40%;
        padding-left: 34px;
        background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2.2' stroke-linecap='round'%3e%3ccircle cx='11' cy='11' r='7'/%3e%3cpath d='M20 20l-3.5-3.5'/%3e%3c/svg%3e") no-repeat 12px center;
    }

    /* The third row: the two chips share it, and the reset is a round × at its end */
    .dbp-chips[b-x0wiqivp86] {
        flex: 1 1 100%;
        gap: 6px;
    }

    .dbp-chip[b-x0wiqivp86] {
        flex: 1 1 0;
        justify-content: center;
        min-height: 36px;
        padding: 0 4px 0 9px;
        font-size: 12.5px;
    }

        .dbp-chip .cce-badge[b-x0wiqivp86] {
            min-width: 20px;
            height: 19px;
            padding: 0 6px;
            font-size: 11.5px;
        }

    .dbp-scope[b-x0wiqivp86] {
        flex: 1 1 100%;
        justify-content: space-between;
        height: 36px;
    }

    .dbp-chip--reset[b-x0wiqivp86] {
        flex: 0 0 36px;
        width: 36px;
        padding: 0;
    }

        .dbp-chip--reset .dbp-reset-text[b-x0wiqivp86] {
            display: none;
        }

    .dbp-foot-left[b-x0wiqivp86] {
        flex: 1 1 100%;
    }

        .dbp-foot-left .cce-btn[b-x0wiqivp86] {
            flex: 1 1 auto;
        }

    .dbp-confirm[b-x0wiqivp86] {
        flex: 1 1 100%;
    }
}
/* /Pages/Admin/ManageModuleAudio.razor.rz.scp.css */
/* ========== Container ========== */
.audio-page-container[b-wfszfgcpzd] {
    font-family: 'Montserrat', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
    color: #333;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

    .audio-page-container *[b-wfszfgcpzd] {
        box-sizing: border-box;
    }

/* ========== Page Header ========== */
.page-header[b-wfszfgcpzd] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header-inner[b-wfszfgcpzd] {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
}

    .page-header-inner h1[b-wfszfgcpzd] {
        font-size: clamp(1.4rem, 3vw, 2rem);
        font-weight: 700;
        color: #2c3e50;
        margin: 0;
        letter-spacing: -0.3px;
        line-height: 1.2;
    }

.page-subtitle[b-wfszfgcpzd] {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: #6c757d;
    margin: 2px 0 0 0;
}

/* ========== Action Icons ========== */
.action-icon[b-wfszfgcpzd] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.action-icon-blue[b-wfszfgcpzd] {
    background: linear-gradient(135deg, #4D7CFE, #3d6cee);
}

.action-icon-purple[b-wfszfgcpzd] {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.action-icon-green[b-wfszfgcpzd] {
    background: linear-gradient(135deg, #92CD4D, #76b939);
}

/* ========== Cards ========== */
.card[b-wfszfgcpzd] {
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: cardFadeIn-b-wfszfgcpzd 0.4s ease both;
}

    @media (hover: hover) and (pointer: fine) {
        .card:hover[b-wfszfgcpzd] {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(77, 124, 254, 0.12);
        }
    }

.recorder-card[b-wfszfgcpzd] {
    border-color: #92CD4D44;
}

    @media (hover: hover) and (pointer: fine) {
        .recorder-card:hover[b-wfszfgcpzd] {
            box-shadow: 0 8px 25px rgba(146, 205, 77, 0.18);
        }
    }

    .recorder-card .card-header[b-wfszfgcpzd] {
        background: linear-gradient(135deg, #e9f7d6 0%, #d8f0bb 100%);
        border-bottom-color: #c5e497;
    }

@keyframes cardFadeIn-b-wfszfgcpzd {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Card Header ========== */
.card-header[b-wfszfgcpzd] {
    background: linear-gradient(135deg, #e0ecff 0%, #d4e1ff 100%);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border-bottom: 1px solid #c5d9f5;
}

.card-header-content[b-wfszfgcpzd] {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

    .card-header-content h3[b-wfszfgcpzd] {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        font-weight: 700;
        color: #2c3e50;
        margin: 0;
        flex-grow: 1;
    }

/* ========== Badges ========== */
.badge[b-wfszfgcpzd] {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-count[b-wfszfgcpzd] {
    background: #e0ecff;
    color: #4D7CFE;
    border: 1px solid #b9ccf9;
}

.edit-badge[b-wfszfgcpzd] {
    background: #4D7CFE;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
}

.module-name-badge[b-wfszfgcpzd] {
    font-size: clamp(12px, 1.4vw, 13px);
    font-weight: 600;
    color: #5d8a30;
    background: #e9f7d6;
    border: 1px solid #c5e497;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: clamp(140px, 30vw, 320px);
}

/* ========== Card Body ========== */
.card-body[b-wfszfgcpzd] {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recorder-body[b-wfszfgcpzd] {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    gap: 0;
}

/* ========== Form Group ========== */
.form-group[b-wfszfgcpzd] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label[b-wfszfgcpzd] {
        font-size: 12px;
        font-weight: 600;
        color: #555;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

/* ========== Module Select ========== */
.module-select[b-wfszfgcpzd] {
    width: 100%;
    max-width: 540px;
    padding: 11px 40px 11px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    background: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 44px;
}

    .module-select:focus[b-wfszfgcpzd] {
        border-color: #4D7CFE;
        box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.1);
    }

    .module-select:disabled[b-wfszfgcpzd] {
        opacity: 0.55;
        cursor: not-allowed;
    }

/* ========== Recorder Wrapper ========== */
.recorder-wrapper[b-wfszfgcpzd] {
    position: relative;
}

    .recorder-wrapper[b-wfszfgcpzd]  .module-audio-recorder {
        max-width: none;
        width: 100%;
    }

.recorder-overlay[b-wfszfgcpzd] {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 16px;
}

.spinner[b-wfszfgcpzd] {
    width: 42px;
    height: 42px;
    border: 5px solid #e3e3e3;
    border-top-color: #4D7CFE;
    border-radius: 50%;
    animation: spin-b-wfszfgcpzd 0.9s linear infinite;
}

@keyframes spin-b-wfszfgcpzd {
    to {
        transform: rotate(360deg);
    }
}

.overlay-text[b-wfszfgcpzd] {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* ========== Skeleton Loaders ========== */
.skeleton-list[b-wfszfgcpzd] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-row[b-wfszfgcpzd] {
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer-b-wfszfgcpzd 1.4s infinite;
}

@keyframes shimmer-b-wfszfgcpzd {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ========== Buttons ========== */
.action-btn[b-wfszfgcpzd] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    font-size: clamp(13px, 1.4vw, 14px);
    font-weight: 600;
    color: #4D7CFE;
    background-color: #EFF4FF;
    border: 1px solid #B9CCF9;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    flex-shrink: 0;
    font-family: inherit;
    white-space: nowrap;
    min-height: 44px;
}

    @media (hover: hover) and (pointer: fine) {
        .action-btn:hover:not(:disabled)[b-wfszfgcpzd] {
            background-color: #4D7CFE;
            color: #fff;
            box-shadow: 0 4px 14px rgba(77, 124, 254, 0.3);
            transform: translateY(-1px);
        }
    }

        @media (hover: hover) and (pointer: fine) {
            .action-btn:hover:not(:disabled) svg[b-wfszfgcpzd] {
                stroke: #fff;
            }
        }

    .action-btn:disabled[b-wfszfgcpzd] {
        opacity: 0.45;
        cursor: not-allowed;
        pointer-events: none;
    }

.action-btn-muted[b-wfszfgcpzd] {
    color: #6c757d;
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

    @media (hover: hover) and (pointer: fine) {
        .action-btn-muted:hover:not(:disabled)[b-wfszfgcpzd] {
            background-color: #6c757d;
            color: #fff;
            box-shadow: 0 4px 14px rgba(108, 117, 125, 0.3);
        }
    }

/* ========== Responsive ========== */
@media (max-width: 600px) {
    .page-header[b-wfszfgcpzd] {
        flex-direction: column;
        align-items: flex-start;
    }

        .page-header .action-btn[b-wfszfgcpzd] {
            width: 100%;
            justify-content: center;
        }

    .module-select[b-wfszfgcpzd] {
        max-width: none;
    }

    .module-name-badge[b-wfszfgcpzd] {
        max-width: 100%;
    }
}

@media (min-width: 1400px) {
    .audio-page-container[b-wfszfgcpzd] {
        padding: 2rem;
    }
}
/* /Pages/Admin/ModuleLevels.razor.rz.scp.css */
/* Levels (admin). Tokens, buttons, cards, dialogs and notices come from AdminShell.razor.css through ::deep; this file
   lays out the two panes and styles the level cards and the course rows. Palette: the Progress page. Yellow marks what
   needs a decision (a module in no level, a level on sale with nothing in it); words beside it stay ink. */

/* ===== Head: the title with its info icon on the left (the shared cce-page-title), the two actions on the right ===== */
.lvl-head[b-qwspz9hed7] {
    align-items: center;
    gap: 10px 16px;
}

.lvl-title[b-qwspz9hed7] {
    min-width: 0;
}

.lvl-actions[b-qwspz9hed7] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-left: auto;
}

.lvl-error[b-qwspz9hed7] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== Two panes: the levels are narrower, the course is where the work is ===== */
.lvl-grid[b-qwspz9hed7] {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: clamp(300px, 36%, 420px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 16px;
}

.lvl-pane[b-qwspz9hed7] {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lvl-pane-head[b-qwspz9hed7] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--line);
}

    .lvl-pane-head .cce-card-title[b-qwspz9hed7] {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 17px;
    }

    .lvl-pane-head .cce-help.lvl-help-warn[b-qwspz9hed7] {
        color: var(--ink);
    }

/* The course pane's title row: the title left, the filter (all / in no level) right. */
.lvl-pane-head-row[b-qwspz9hed7] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    flex-wrap: wrap;
}

.lvl-filter[b-qwspz9hed7] {
    flex-wrap: nowrap;
}

    .lvl-filter .cce-tab[b-qwspz9hed7] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 32px;
        padding: 0 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .lvl-filter .cce-tab.is-selected .cce-badge[b-qwspz9hed7] {
        color: var(--brand-strong);
        background: #fff;
        border-color: #fff;
    }

    .lvl-filter .cce-badge[b-qwspz9hed7] {
        min-width: 22px;
        height: 20px;
        font-size: 12px;
    }

.lvl-pane-body[b-qwspz9hed7] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== A level: a row of the shared list pattern (cce-item, cce-row, cce-row-body in AdminShell.razor.css). This file
   adds only what is the level's own: the name larger, the sale state in green, the grey dot for a level off sale, and
   the unfolded body's parts (description, stat tiles, module numbers, warnings, the sale switch). ===== */
.lvl-pane-title[b-qwspz9hed7] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lvl-pane-body .cce-rows[b-qwspz9hed7] {
    flex-shrink: 0;
}

.lvl-row-name[b-qwspz9hed7] {
    font-size: 17px;
    letter-spacing: -0.2px;
}

.lvl-row-sale[b-qwspz9hed7] {
    color: #5d8f22;
    font-weight: 600;
}

/* A level off sale: the grey of "no data" (the shared dot is yellow by default, green with is-ok) */
.cce-rows .cce-dot.is-off[b-qwspz9hed7] {
    background: #999999;
}

.lvl-level-desc[b-qwspz9hed7] {
    margin: 0;
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

    .lvl-level-desc.is-empty[b-qwspz9hed7] {
        color: var(--ink-muted);
        font-style: italic;
    }

/* The sale switch: a checkbox whose label is the status it sets (green when on sale, grey when not). */
.lvl-sale[b-qwspz9hed7] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 36px;
    cursor: pointer;
    user-select: none;
}

    .lvl-sale input[b-qwspz9hed7] {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: #5d8f22;
        cursor: pointer;
    }

        .lvl-sale input:disabled[b-qwspz9hed7] {
            cursor: not-allowed;
        }

        .lvl-sale input:focus-visible + .lvl-sale-pill[b-qwspz9hed7] {
            outline: 2px solid var(--brand);
            outline-offset: 2px;
        }

.lvl-sale-pill[b-qwspz9hed7] {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

    .lvl-sale-pill.is-on[b-qwspz9hed7] {
        color: #5d8f22;
        background: #f4faec;
        border: 1px solid #cfe7b3;
    }

    .lvl-sale-pill.is-off[b-qwspz9hed7] {
        color: var(--ink-soft);
        background: #eeeeee;
        border: 1px solid var(--line-strong);
    }

/* Three stat tiles: the number large, what it counts under it, a note (hidden lessons, the free trial) when there is one. */
.lvl-stats[b-qwspz9hed7] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.lvl-stat[b-qwspz9hed7] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--surface);
}

    .lvl-stat dd[b-qwspz9hed7] {
        order: -1;
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.1;
        color: var(--ink);
        font-variant-numeric: tabular-nums;
    }

    .lvl-stat dt[b-qwspz9hed7] {
        font-size: 11.5px;
        font-weight: 600;
        line-height: 1.3;
        color: var(--ink-muted);
    }

    .lvl-stat small[b-qwspz9hed7] {
        font-size: 11.5px;
        line-height: 1.3;
        color: var(--ink-soft);
    }

/* The level's modules by number, in course order; a number students cannot see (draft, archive) is dimmed. */
.lvl-level-mods[b-qwspz9hed7] {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

    .lvl-level-mods-label[b-qwspz9hed7] {
        margin-right: 4px;
        font-size: 12px;
        font-weight: 600;
        color: var(--ink-muted);
    }

    .lvl-level-mods .cce-chip.is-hidden[b-qwspz9hed7] {
        opacity: 0.45;
    }

    .lvl-level-mods.is-empty[b-qwspz9hed7] {
        font-size: 13px;
        line-height: 1.4;
        color: var(--ink-muted);
    }

.lvl-warn[b-qwspz9hed7] {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--warn-line);
    border-radius: 8px;
    background: var(--warn-soft);
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink);
}

    .lvl-warn .cce-dot[b-qwspz9hed7] {
        margin-top: 5px;
    }

/* The foot: the sale switch at the left end, the one button at the right (the shared foot puts everything right) */
.lvl-level-foot[b-qwspz9hed7] {
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

    /* The shared phone foot stretches its button to the full row; here the switch keeps the left and the button the
       right (outranks .cce ::deep .cce-row-foot .cce-btn) */
    .cce-row-foot.lvl-level-foot .cce-btn[b-qwspz9hed7] {
        flex: 0 0 auto;
    }

/* "+ Добавить уровень", where the new level will stand: the course editor's "+ Добавить модуль" (CustomLayout .cml-add--main). */
.lvl-add[b-qwspz9hed7] {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px dashed var(--brand-line);
    border-radius: 12px;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-strong);
    cursor: pointer;
    touch-action: manipulation;
}

    .lvl-add:active:not(:disabled)[b-qwspz9hed7] {
        background: var(--brand-soft);
        border-style: solid;
        transition-duration: 0s;
    }

    .lvl-add:focus-visible[b-qwspz9hed7] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    .lvl-add:disabled[b-qwspz9hed7] {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ===== A main module of the course ===== */
.lvl-mods[b-qwspz9hed7] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lvl-mod[b-qwspz9hed7] {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) 180px;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

    .lvl-mod.is-free[b-qwspz9hed7] {
        border-color: var(--warn-line);
        background: var(--warn-soft);
    }

    .lvl-mod.is-highlighted[b-qwspz9hed7] {
        border-color: var(--brand);
        background: var(--brand-soft);
    }

    .lvl-mod.is-picked[b-qwspz9hed7] {
        border-color: var(--brand-line);
        box-shadow: inset 0 0 0 1px var(--brand-line);
    }

/* The tick for a change of several modules at once. */
.lvl-mod-pick[b-qwspz9hed7] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-height: 28px;
    margin-left: -4px;
    cursor: pointer;
}

    .lvl-mod-pick input[b-qwspz9hed7] {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: var(--brand);
        cursor: pointer;
    }

        .lvl-mod-pick input:disabled[b-qwspz9hed7] {
            cursor: not-allowed;
        }

/* The bulk bar under the course pane's head: how many are ticked, the level, one button. */
.lvl-bulk[b-qwspz9hed7] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    background: var(--brand-soft);
}

.lvl-bulk-count[b-qwspz9hed7] {
    font-size: 14px;
    color: var(--ink-soft);
    margin-right: auto;
}

    .lvl-bulk-count strong[b-qwspz9hed7] {
        color: var(--ink);
        font-variant-numeric: tabular-nums;
    }

.lvl-bulk .lvl-bulk-level[b-qwspz9hed7] {
    width: 150px;
    min-height: 36px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
}

.lvl-pick-all[b-qwspz9hed7] {
    margin-left: auto;
}

.lvl-bulk-list[b-qwspz9hed7] {
    margin: 0 0 12px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

    .lvl-bulk-list li + li[b-qwspz9hed7] {
        margin-top: 4px;
    }

.lvl-bulk-users[b-qwspz9hed7] {
    display: block;
    font-size: 13px;
    color: var(--ink-soft);
    user-select: text;
}

.lvl-mod-text[b-qwspz9hed7] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* The name is the link into the course editor; a link in text, as the bug reports' page link, not a third button shape. */
.lvl-mod-name[b-qwspz9hed7] {
    align-self: flex-start;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

    .lvl-mod-name:focus-visible[b-qwspz9hed7] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
        border-radius: 4px;
    }

.lvl-mod.is-hidden .lvl-mod-name[b-qwspz9hed7] {
    color: var(--ink-muted);
}

/* The page was opened for this module (?module=): the row stands out until the admin moves on. */
.lvl-mod.is-target[b-qwspz9hed7] {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.2);
}

/* The course editor's tags, in its words: "Черновик" and "В корзине" as quiet dashed pills; a tag that is a link opens the editor. */
.lvl-tags[b-qwspz9hed7] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.lvl-tag[b-qwspz9hed7] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink-soft);
    background: #fff;
    border: 1px dashed var(--ink-muted);
    text-decoration: none;
}

    a.lvl-tag:focus-visible[b-qwspz9hed7] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.lvl-level-mods a.cce-chip[b-qwspz9hed7] {
    text-decoration: none;
    cursor: pointer;
}

    .lvl-level-mods a.cce-chip:focus-visible[b-qwspz9hed7] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.lvl-mod-meta[b-qwspz9hed7] {
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--ink-muted);
}

.lvl-mod.is-free .lvl-mod-meta[b-qwspz9hed7] {
    color: var(--ink-soft);
}

/* The level select: a row's height, not a form field's. Outranks .cce ::deep .cce-input. */
.lvl-mod .lvl-mod-level[b-qwspz9hed7] {
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
}

/* ===== The last level changes, folded under the course ===== */
.lvl-history[b-qwspz9hed7] {
    margin-top: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

    .lvl-history summary[b-qwspz9hed7] {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        padding: 0 12px;
        font-size: 14px;
        font-weight: 600;
        color: var(--ink-soft);
        cursor: pointer;
        list-style: none;
    }

        .lvl-history summary[b-qwspz9hed7]::-webkit-details-marker {
            display: none;
        }

        .lvl-history summary[b-qwspz9hed7]::before {
            content: "";
            width: 7px;
            height: 7px;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(-45deg);
            transition: transform 0.15s ease;
        }

    .lvl-history[open] summary[b-qwspz9hed7]::before {
        transform: rotate(45deg);
    }

.lvl-history-list[b-qwspz9hed7] {
    list-style: none;
    margin: 0;
    padding: 4px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    line-height: 1.45;
}

    .lvl-history-list li[b-qwspz9hed7] {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 10px;
        align-items: baseline;
    }

.lvl-history-when[b-qwspz9hed7] {
    color: var(--ink-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.lvl-history-what[b-qwspz9hed7] {
    min-width: 0;
    overflow-wrap: anywhere;
}

.lvl-history-who[b-qwspz9hed7] {
    color: var(--ink-muted);
    overflow-wrap: anywhere;
}

/* ===== Dialogs ===== */
.lvl-dlg-left[b-qwspz9hed7] {
    margin-right: auto;
}

.lvl-dlg-facts[b-qwspz9hed7] {
    margin: 0 0 12px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
}

.lvl-loss-title[b-qwspz9hed7] {
    font-weight: 600;
    color: var(--ink);
}

.lvl-loss-users[b-qwspz9hed7] {
    margin: 0 0 12px;
    padding-left: 20px;
    max-height: 220px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    user-select: text;
}

/* ===== Hover (mouse/trackpad only - see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .lvl-add:hover:not(:disabled)[b-qwspz9hed7] {
        border-style: solid;
        background: var(--brand-soft);
    }

    .lvl-mod-name:hover[b-qwspz9hed7],
    a.lvl-tag:hover[b-qwspz9hed7] {
        text-decoration: underline;
        color: var(--brand-strong);
    }

    .lvl-level-mods a.cce-chip:hover[b-qwspz9hed7] {
        background: var(--brand-strong);
    }
}

/* ===== Tablets and phones: the panes stack and the whole page scrolls ===== */
@media (max-width: 900px) {
    /* Phones: the title alone on its row, flush left, then the two actions half each. The shell's .cce-page-head keeps
       align-items: center (it outranks a page rule), so the title takes the full row instead of being centred as a box. */
    .cce-page-head.lvl-head[b-qwspz9hed7] {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .lvl-head .lvl-title[b-qwspz9hed7] {
        width: 100%;
        text-align: left;
    }

    .lvl-actions[b-qwspz9hed7] {
        width: 100%;
        flex-wrap: nowrap;
        margin-left: 0;
    }

        .lvl-actions .cce-btn[b-qwspz9hed7] {
            flex: 1 1 0;
            min-width: 0;
            padding: 0 12px;
            white-space: nowrap;
        }

    .lvl-grid[b-qwspz9hed7] {
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
        margin: -4px -12px 0;
        padding: 4px 12px 12px;
    }

    .lvl-pane[b-qwspz9hed7] {
        flex: 0 0 auto;
        overflow: visible;
    }

    .lvl-pane-body[b-qwspz9hed7] {
        flex: none;
        overflow: visible;
    }

    .lvl-mod[b-qwspz9hed7] {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .lvl-mod .lvl-mod-level[b-qwspz9hed7] {
        grid-column: 1 / -1;
    }

    .lvl-pick-all[b-qwspz9hed7] {
        margin-left: 0;
    }

    .lvl-bulk-count[b-qwspz9hed7] {
        flex: 1 1 100%;
        margin-right: 0;
    }

    .lvl-bulk .lvl-bulk-level[b-qwspz9hed7] {
        flex: 1 1 120px;
    }

    .lvl-pane-head-row[b-qwspz9hed7] {
        flex-direction: column;
        align-items: stretch;
    }

    .lvl-filter .cce-tab[b-qwspz9hed7] {
        flex: 1 1 0;
    }
}

@media (max-width: 480px) {
    .lvl-pane-head[b-qwspz9hed7] {
        padding: 12px 12px 10px;
    }

    .lvl-pane-body[b-qwspz9hed7] {
        padding: 10px;
    }

    .lvl-row-name[b-qwspz9hed7] {
        font-size: 16px;
    }
}
/* /Pages/Admin/Newsletter.razor.rz.scp.css */
/* /admin/newsletter. The shared look (cards, fields, buttons, tabs, rows) is AdminShell.razor.css; here is only what the
   page adds: the two panes of a newsletter, the blocks of its body, the files and the preview frame. The tokens
   (--line, --brand, ...) come from the .cce root that AdminShell renders. */

/* ===== Head ===== */
.nws-count[b-7mxu1jihtu] {
    align-self: center;
    font-size: 14px;
    color: var(--ink-soft);
    white-space: nowrap;
}

    .nws-count strong[b-7mxu1jihtu] {
        color: var(--ink);
        font-variant-numeric: tabular-nums;
    }

/* Back to the list: a round icon link before the title */
.nws-back[b-7mxu1jihtu] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--ink-soft);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .nws-back:active[b-7mxu1jihtu] {
        background: var(--brand-soft);
        color: var(--brand-strong);
        transition-duration: 0s;
    }

    .nws-back:focus-visible[b-7mxu1jihtu] {
        outline: 2px solid var(--brand);
        outline-offset: 1px;
    }

/* Whether what is on screen is on the server: a dot and two words beside the title */
.nws-save[b-7mxu1jihtu] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
    white-space: nowrap;
}

    .nws-save[b-7mxu1jihtu]::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--warn);
    }

    .nws-save.is-saved[b-7mxu1jihtu]::before {
        background: var(--ok);
    }

    .nws-save.is-failed[b-7mxu1jihtu] {
        color: var(--danger);
    }

        .nws-save.is-failed[b-7mxu1jihtu]::before {
            background: var(--danger);
        }

/* ===== The list ===== */
.nws-row[b-7mxu1jihtu] {
    text-decoration: none;
}

/* ===== One newsletter: the email (or its report) on the left, the real email on the right ===== */
/* The phone's switch between the two panes: the segmented look of the admin pages (.cce-seg), with its own classes
   because AdminShell hides .cce-seg on phones, which is exactly where this one is needed. Hidden on wide screens. */
.nws-switch[b-7mxu1jihtu] {
    display: none;
    align-self: stretch;
    gap: 2px;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.nws-switch-btn[b-7mxu1jihtu] {
    appearance: none;
    flex: 1 1 0;
    min-height: 34px;
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .nws-switch-btn.is-selected[b-7mxu1jihtu] {
        color: var(--ink);
        background: #fff;
        box-shadow: 0 1px 3px rgba(20, 30, 60, 0.14);
    }

    .nws-switch-btn:active[b-7mxu1jihtu] {
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .nws-switch-btn:focus-visible[b-7mxu1jihtu] {
        outline: 2px solid var(--brand);
        outline-offset: 1px;
    }

.nws-split[b-7mxu1jihtu] {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--gap);
}

.nws-pane[b-7mxu1jihtu] {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nws-form[b-7mxu1jihtu] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px var(--pad) var(--pad);
}

.nws-frame[b-7mxu1jihtu] {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background: var(--surface);
}

/* A label with its "i" icon beside it */
.nws-label-row[b-7mxu1jihtu] {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* What is still missing before the email can go: the warning yellow as a fill, the words in ink */
.nws-todo[b-7mxu1jihtu] {
    padding: 10px 14px;
    background: var(--warn-soft);
    border: 1px solid var(--warn-line);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink);
}

.nws-todo-title[b-7mxu1jihtu] {
    font-weight: 600;
}

.nws-todo ul[b-7mxu1jihtu] {
    margin: 2px 0 0;
    padding-left: 18px;
}

/* ===== Blocks ===== */
.nws-block[b-7mxu1jihtu] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.nws-block-head[b-7mxu1jihtu] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
}

.nws-tools[b-7mxu1jihtu] {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.nws-tools-gap[b-7mxu1jihtu] {
    width: 1px;
    height: 18px;
    margin: 0 6px;
    background: var(--line-strong);
}

/* A round icon button: format, move, remove */
.nws-tool[b-7mxu1jihtu] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    padding: 0;
    font: inherit;
    font-size: 14px;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .nws-tool:active:not(:disabled)[b-7mxu1jihtu] {
        background: var(--brand-soft);
        color: var(--brand-strong);
        transition-duration: 0s;
    }

    .nws-tool:focus-visible[b-7mxu1jihtu] {
        outline: 2px solid var(--brand);
        outline-offset: 1px;
    }

    .nws-tool:disabled[b-7mxu1jihtu] {
        opacity: 0.35;
        cursor: default;
    }

.nws-tool--bold[b-7mxu1jihtu] {
    font-weight: 700;
}

.nws-tool--up[b-7mxu1jihtu]  svg {
    transform: rotate(180deg);
}

.nws-tool--danger:active:not(:disabled)[b-7mxu1jihtu] {
    background: var(--danger-soft);
    color: var(--danger);
}

.nws-text[b-7mxu1jihtu] {
    resize: vertical;
    min-height: 0;
}

.nws-pair[b-7mxu1jihtu] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 8px;
}

.nws-image[b-7mxu1jihtu] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nws-thumb[b-7mxu1jihtu] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    padding: 4px;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    overflow: hidden;
    font-size: 12px;
    color: var(--ink-muted);
    text-align: center;
}

    .nws-thumb img[b-7mxu1jihtu] {
        display: block;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 8px;
    }

.nws-image-fields[b-7mxu1jihtu] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nws-pick[b-7mxu1jihtu] {
    align-self: flex-start;
}

.nws-add[b-7mxu1jihtu] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== Files ===== */
.nws-files[b-7mxu1jihtu] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nws-file[b-7mxu1jihtu] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 6px 4px 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--ink-soft);
}

.nws-file-name[b-7mxu1jihtu] {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.nws-file-size[b-7mxu1jihtu] {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--ink-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.nws-form-foot[b-7mxu1jihtu] {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

/* ===== The report of a sent newsletter ===== */
.nws-report-head[b-7mxu1jihtu] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.nws-report-subject[b-7mxu1jihtu] {
    min-width: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.nws-fact-tip[b-7mxu1jihtu] {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== Hover (mouse/trackpad only - see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    /* :not(:active): these rules come after the press rules above, and a mouse press has to show too */
    .nws-back:hover:not(:active)[b-7mxu1jihtu] {
        background: var(--surface);
        color: var(--ink);
    }

    .nws-tool:hover:not(:disabled):not(:active)[b-7mxu1jihtu] {
        background: var(--surface);
        color: var(--ink);
    }

    .nws-switch-btn:hover:not(.is-selected)[b-7mxu1jihtu] {
        color: var(--ink);
        background: rgba(255, 255, 255, 0.7);
    }

    .nws-tool--danger:hover:not(:disabled):not(:active)[b-7mxu1jihtu] {
        background: var(--danger-soft);
        color: var(--danger);
    }
}

/* ===== Phones and small tablets: one pane at a time, picked with the switch ===== */
@media (max-width: 900px) {
    .nws-switch[b-7mxu1jihtu] {
        display: flex;
    }

    .nws-split[b-7mxu1jihtu] {
        grid-template-columns: minmax(0, 1fr);
    }

        .nws-split:not(.show-preview) .nws-pane--preview[b-7mxu1jihtu],
        .nws-split.show-preview .nws-pane--main[b-7mxu1jihtu] {
            display: none;
        }

    .nws-save[b-7mxu1jihtu] {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .nws-form[b-7mxu1jihtu] {
        padding: 12px;
    }

    /* A finger needs more than the 32px a mouse does */
    .nws-tool[b-7mxu1jihtu] {
        width: 40px;
        height: 40px;
    }

    .nws-tools-gap[b-7mxu1jihtu] {
        margin: 0 2px;
    }

    .nws-pair[b-7mxu1jihtu] {
        grid-template-columns: minmax(0, 1fr);
    }

    .nws-image[b-7mxu1jihtu] {
        flex-direction: column;
    }

    .nws-add .cce-btn[b-7mxu1jihtu],
    .nws-add[b-7mxu1jihtu]  .cce-btn {
        flex: 1 1 calc(50% - 4px);
    }

    .nws-form-foot .cce-btn[b-7mxu1jihtu] {
        flex: 1 1 100%;
    }
}
/* /Pages/Admin/Themes.razor.rz.scp.css */
/* Test themes (admin). Tokens, buttons, cards, tabs and badges come from AdminShell.razor.css through ::deep; this file lays
   out the two panes and styles the theme list, the module accordion and the lesson rows. Palette: the Progress page.
   Heights are budgeted so that at 1280x720 nothing but the two panes' own lists scrolls. */

/* ===== Head: the title with its info icon (the shared cce-page-title) and the two actions beside it; the section
   switch on its own row under them ===== */
.thm-head[b-gg2tl0560t] {
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.thm-title[b-gg2tl0560t] {
    min-width: 0;
}

    .thm-title h1[b-gg2tl0560t] {
        margin: 0;
    }

.thm-actions[b-gg2tl0560t] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-left: auto;
}

/* The site's green button, in the shape of the lesson pages' navigation buttons (NavigationButtons.razor.css .nav-right): a white
   pill with a 2px green border and green text that fills with green and turns white when pressed. More specific than the shell's
   .cce-btn rules (.cce ::deep .cce-btn), so the bundle's order does not decide. */
.thm-actions .cce-btn.thm-btn-green[b-gg2tl0560t] {
    color: #5d8f22;                      /* the darker green where green carries text, as on the Progress page */
    background: #fff;
    border: 1.5px solid #92cd4d;          /* the admin buttons' border weight; the lesson pages use 2px at their larger size */
}

    .thm-actions .cce-btn.thm-btn-green:active:not(:disabled)[b-gg2tl0560t] {
        color: #fff;
        background: #92cd4d;
        border-color: #92cd4d;
        transform: scale(0.98);
        transition-duration: 0s;
    }

    .thm-actions .cce-btn.thm-btn-green:disabled[b-gg2tl0560t] {
        opacity: 0.5;
    }

.thm-tabs[b-gg2tl0560t] {
    flex-wrap: nowrap;
}

/* A tab is one line: label, then its count. The shell styles the selected state (.cce-tab.is-selected). */
.thm-tab[b-gg2tl0560t] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

/* Long and short labels: the long one on wide screens, the short one on phones. */
.thm-short[b-gg2tl0560t] {
    display: none;
}

.cce-tab.is-selected .cce-badge[b-gg2tl0560t] {
    color: var(--brand-strong);
    background: #fff;
    border-color: #fff;
}

/* ===== The proposal banner (yellow: it asks for a decision) ===== */
.thm-banner[b-gg2tl0560t] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid var(--warn-line);
    border-left: 4px solid var(--warn);
    border-radius: var(--radius-sm);
    background: var(--warn-soft);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.45;
}

    .thm-banner p[b-gg2tl0560t] {
        margin: 0;
        max-width: 80ch;
    }

.thm-banner-actions[b-gg2tl0560t] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.thm-confirm-text[b-gg2tl0560t] {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.thm-notice[b-gg2tl0560t] {
    flex-shrink: 0;
    margin-bottom: 12px;
}

/* ===== Two panes: the list is narrower, the editor is where the work is ===== */
.thm-grid[b-gg2tl0560t] {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: clamp(320px, 40%, 480px) minmax(0, 1fr);   /* 320px: "Грамматика 9" and "Слова 20" fit half each; from 1200px the column is wide enough for "Словарный запас 20" */
    grid-template-rows: minmax(0, 1fr);
    gap: 16px;
}

.thm-list[b-gg2tl0560t],
.thm-editor[b-gg2tl0560t] {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== The theme list: the section switch on top, the themes, then the dashed "+ Новая тема" where the new one will stand ===== */
.thm-list-head[b-gg2tl0560t] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 10px 8px;
    border-bottom: 1px solid var(--line);
}

    .thm-list-head .thm-tabs[b-gg2tl0560t] {
        width: 100%;
    }

    /* Half the head each, and never wider: the label gives way (ellipsis) before a tab can spill over its neighbour. */
    .thm-list-head .thm-tab[b-gg2tl0560t] {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 10px;
        overflow: hidden;
    }

    .thm-list-head .thm-tab .cce-badge[b-gg2tl0560t] {
        flex-shrink: 0;
    }

.thm-tab-label[b-gg2tl0560t] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The short name by default; the full one once the list column is wide enough for it (the 40% column from 1200px). */
.thm-tab-long[b-gg2tl0560t] {
    display: none;
}

@media (min-width: 1200px) {
    .thm-tab-long[b-gg2tl0560t] {
        display: inline;
    }

    .thm-tab-short[b-gg2tl0560t] {
        display: none;
    }
}

.thm-list-body[b-gg2tl0560t] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
}

.thm-list-empty[b-gg2tl0560t] {
    padding: 12px 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

    .thm-list-empty p[b-gg2tl0560t] {
        margin: 0 0 6px;
    }

.thm-rows[b-gg2tl0560t] {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== Moving a theme =====
   The bar under the section switch while a theme is placed by taps: the question and the way out. */
.thm-move-bar[b-gg2tl0560t] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px 12px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-bottom: 1px solid var(--brand-line);
    background: var(--brand-soft);
}

    .thm-move-bar p[b-gg2tl0560t] {
        flex: 1 1 200px;
        min-width: 0;
        margin: 0;
        font-size: 13.5px;
        line-height: 1.45;
        color: var(--ink-soft);
    }

    .thm-move-bar strong[b-gg2tl0560t] {
        display: block;
        color: var(--ink);
        overflow-wrap: anywhere;
    }

/* A place: a dashed line across the list with its button in the middle (the course editor's cml-slot). */
.thm-slot-row[b-gg2tl0560t] {
    list-style: none;
}

.thm-slot[b-gg2tl0560t] {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-strong);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .thm-slot[b-gg2tl0560t]::before,
    .thm-slot[b-gg2tl0560t]::after {
        content: "";
        flex: 1 1 0;
        border-top: 2px dashed var(--brand-line);
    }

    .thm-slot span[b-gg2tl0560t] {
        padding: 5px 12px;
        border: 1.5px solid var(--brand-line);
        border-radius: 999px;
        background: #fff;
        white-space: nowrap;
        transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

    .thm-slot:active span[b-gg2tl0560t] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
        transition-duration: 0s;
    }

    .thm-slot:focus-visible[b-gg2tl0560t] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
        border-radius: 6px;
    }

    .thm-slot:disabled[b-gg2tl0560t] {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* While the slots are shown, the other rows step back so the places read first */
.thm-rows.is-moving .thm-item:not(.is-moving)[b-gg2tl0560t] {
    opacity: 0.7;
}

/* "+ Новая тема": a dashed row under the last theme, as the structure page adds a lesson under the last one. */
.thm-add[b-gg2tl0560t] {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 0 12px;
    border: 1px dashed var(--brand-line);
    border-radius: var(--radius-sm);
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-strong);
    cursor: pointer;
    touch-action: manipulation;
}

    .thm-add:active:not(:disabled)[b-gg2tl0560t] {
        background: var(--brand-soft);
        border-style: solid;
        transition-duration: 0s;
    }

    .thm-add.is-selected[b-gg2tl0560t] {
        background: var(--brand-soft);
        border-style: solid;
        border-color: var(--brand-line);
    }

    .thm-add:focus-visible[b-gg2tl0560t] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    .thm-add:disabled[b-gg2tl0560t] {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ===== A theme in the list: the site's row (a white frame, the brand frame when open), its order number in a small
   circle, the name with where it lives and how big it is, the warning dot, and the grip at the end that moves it ===== */
.thm-item[b-gg2tl0560t] {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

    .thm-item.is-selected[b-gg2tl0560t] {
        background: var(--brand-soft);
        border-color: var(--brand);
    }

    /* Being dragged, or placed by taps: lifted out of the list */
    .thm-item.is-moving[b-gg2tl0560t] {
        opacity: 0.45;
        border-style: dashed;
    }

    /* The row under the dragged theme: this is the place it will take */
    .thm-item.is-drop[b-gg2tl0560t] {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.2);
    }

.thm-row[b-gg2tl0560t] {
    appearance: none;
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 6px 4px 6px 10px;
    font: inherit;
    text-align: left;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .thm-row:active[b-gg2tl0560t] {
        background: var(--brand-soft);
        transition-duration: 0s;
    }

    .thm-row:focus-visible[b-gg2tl0560t] {
        outline: 2px solid var(--brand);
        outline-offset: -2px;
    }

    .thm-row.is-empty .thm-row-name[b-gg2tl0560t] {
        color: var(--ink-muted);
    }

/* The place in the order, in a small circle: ink on grey, white on the brand when the theme is open */
.thm-row-num[b-gg2tl0560t] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

    .thm-item.is-selected .thm-row-num[b-gg2tl0560t] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }

.thm-row-text[b-gg2tl0560t] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thm-row-name[b-gg2tl0560t] {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thm-row-meta[b-gg2tl0560t] {
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--ink-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The grip: six dots at the row's end; a drag handle for the mouse, a button that opens the slots for a tap or the keyboard */
.thm-grip[b-gg2tl0560t] {
    appearance: none;
    flex-shrink: 0;
    width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: transparent;
    color: var(--ink-muted);
    cursor: grab;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, background-color 0.15s ease;
}

    .thm-grip svg[b-gg2tl0560t] {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    .thm-item.is-selected .thm-grip[b-gg2tl0560t] {
        border-left-color: var(--brand-line);
    }

    .thm-grip:active[b-gg2tl0560t] {
        cursor: grabbing;
        color: var(--brand-strong);
        background: var(--brand-soft);
        transition-duration: 0s;
    }

    .thm-grip[aria-pressed="true"][b-gg2tl0560t] {
        color: #fff;
        background: var(--brand);
    }

    .thm-grip:focus-visible[b-gg2tl0560t] {
        outline: 2px solid var(--brand);
        outline-offset: -2px;
    }

    .thm-grip:disabled[b-gg2tl0560t] {
        cursor: not-allowed;
        opacity: 0.5;
    }

/* ===== The editor ===== */

/* Nothing selected: three steps, read once. */
.thm-guide[b-gg2tl0560t] {
    margin: 12px auto 0;   /* at the top of the pane, where the eye starts, not floating in the middle */
    max-width: 44ch;
    padding: 24px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.thm-guide-title[b-gg2tl0560t] {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.thm-guide ol[b-gg2tl0560t] {
    margin: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.thm-guide strong[b-gg2tl0560t] {
    color: var(--ink);
    font-weight: 600;
}

/* A control's name stays on one line, so "+ Новая тема" never breaks after the plus. */
.thm-kbd[b-gg2tl0560t] {
    white-space: nowrap;
}

.thm-guide-note[b-gg2tl0560t] {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-muted);
}

.thm-editor-head[b-gg2tl0560t] {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

/* The wrapper is hidden, not the button: the shell's .cce-btn rule would outrank a rule on the button itself. */
.thm-back-wrap[b-gg2tl0560t] {
    display: none;
}

.thm-name-field[b-gg2tl0560t] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thm-field-label[b-gg2tl0560t] {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.thm-name[b-gg2tl0560t] {
    font-weight: 600;
}


.thm-warnings[b-gg2tl0560t] {
    flex-shrink: 0;
    margin: 0;
    padding: 8px 16px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--warn-soft);
    border-bottom: 1px solid var(--warn-line);
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink);
}

    .thm-warnings li[b-gg2tl0560t] {
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    /* The lesson the warning names cannot be unticked in the picker (it is not offered there), so the warning carries the
       way out itself, at the right end */
    .thm-warning-text[b-gg2tl0560t] {
        flex: 1 1 200px;
        min-width: 0;
    }

    .thm-warnings .thm-warning-drop[b-gg2tl0560t] {
        align-self: center;
        margin-left: auto;
    }

    .thm-warnings li .cce-dot[b-gg2tl0560t] {
        position: relative;
        top: 1px;
    }

    .thm-warnings li.is-error .cce-dot[b-gg2tl0560t] {
        background: var(--danger);
    }

/* The picker's heading: what is ticked, and the search box. */
.thm-picker-bar[b-gg2tl0560t] {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(180px, 280px);
    align-items: center;
    gap: 6px 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.thm-picked[b-gg2tl0560t] {
    font-size: 13px;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thm-search .cce-input[b-gg2tl0560t] {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 14px;
}

/* The course as modules that open one at a time. */
.thm-picker[b-gg2tl0560t] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 8px 10px;
}

.thm-main[b-gg2tl0560t] {
    appearance: none;
    width: 100%;
    display: grid;
    grid-template-columns: 16px 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 4px 10px 4px 8px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    touch-action: manipulation;
}

    .thm-main:active[b-gg2tl0560t] {
        background: var(--surface);
        transition-duration: 0s;
    }

.thm-main-chevron[b-gg2tl0560t] {
    font-size: 18px;
    line-height: 1;
    color: var(--ink-muted);
    transition: transform 0.15s ease;
}

    .thm-main.is-open .thm-main-chevron[b-gg2tl0560t] {
        transform: rotate(90deg);
    }

.thm-main-num[b-gg2tl0560t] {
    color: var(--brand-strong);
    font-variant-numeric: tabular-nums;
}

.thm-main-name[b-gg2tl0560t] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thm-main-count[b-gg2tl0560t] {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

    .thm-main.has-picked .thm-main-count[b-gg2tl0560t] {
        background: var(--brand-soft);
        border-color: var(--brand-line);
        color: var(--brand-strong);
    }

.thm-main-body[b-gg2tl0560t] {
    margin: 0 0 6px 24px;
    padding-left: 10px;
    border-left: 2px solid var(--line);
}

.thm-sub[b-gg2tl0560t] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 6px 0 2px;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.thm-sub-num[b-gg2tl0560t] {
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.thm-sub-all[b-gg2tl0560t] {
    appearance: none;
    min-height: 28px;
    padding: 0 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-strong);
    background: transparent;
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
}

    .thm-sub-all:active[b-gg2tl0560t] {
        background: var(--brand-soft);
        transition-duration: 0s;
    }

.thm-lesson[b-gg2tl0560t] {
    display: grid;
    grid-template-columns: 20px 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
}

    .thm-lesson input[b-gg2tl0560t] {
        width: 18px;
        height: 18px;
        margin: 0;
        accent-color: var(--brand);
        cursor: pointer;
    }

    .thm-lesson.is-on[b-gg2tl0560t] {
        background: var(--brand-soft);
    }

    .thm-lesson:active[b-gg2tl0560t] {
        background: var(--brand-soft);
    }

.thm-lesson-num[b-gg2tl0560t] {
    font-size: 13px;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.thm-lesson-name[b-gg2tl0560t] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thm-lesson-tags[b-gg2tl0560t] {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.thm-tag[b-gg2tl0560t] {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-soft);
    white-space: nowrap;
}

    .thm-tag.is-draft[b-gg2tl0560t] {
        background: var(--warn-soft);
        border-color: var(--warn-line);
        color: var(--ink);
    }

.thm-picker-empty[b-gg2tl0560t] {
    margin: 0;
    padding: 18px 10px;
    font-size: 14px;
    color: var(--ink-muted);
}

.thm-editor-foot[b-gg2tl0560t] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.thm-foot-note[b-gg2tl0560t] {
    margin-right: auto;
    font-size: 13px;
    color: var(--ink-muted);
}

    .thm-foot-note.is-dirty[b-gg2tl0560t] {
        color: var(--ink);
        font-weight: 600;
    }

/* ===== Review of the automatic proposal: one card per proposed theme, every lesson in view ===== */
.thm-review[b-gg2tl0560t] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.thm-review-head[b-gg2tl0560t] {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.thm-review-text[b-gg2tl0560t] {
    min-width: 0;
    max-width: 90ch;
}

.thm-review-title[b-gg2tl0560t] {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.thm-review-sub[b-gg2tl0560t] {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-soft);
}

/* The same explanation behind a thin fold: phones only (see the narrow block), hidden on wide screens. */
.thm-review-help[b-gg2tl0560t] {
    display: none;
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-soft);
}

    .thm-review-help summary[b-gg2tl0560t] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 32px;
        padding: 0 2px;
        list-style: none;
        cursor: pointer;
        font-weight: 600;
        color: var(--brand-strong);
        touch-action: manipulation;
    }

        .thm-review-help summary[b-gg2tl0560t]::-webkit-details-marker {
            display: none;
        }

        .thm-review-help summary[b-gg2tl0560t]::before {
            content: "›";
            display: inline-block;
            font-size: 16px;
            line-height: 1;
            transition: transform 0.15s ease;
        }

    .thm-review-help[open] summary[b-gg2tl0560t]::before {
        transform: rotate(90deg);
    }

    .thm-review-help p[b-gg2tl0560t] {
        margin: 2px 0 4px;
    }

/* The two choices over the review: how to split the course, and what happens to the current themes. */
.thm-review-controls[b-gg2tl0560t] {
    display: flex;
    gap: 10px 20px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.thm-review-control[b-gg2tl0560t] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thm-review-mode[b-gg2tl0560t] {
    flex-shrink: 0;
}

.thm-review-list[b-gg2tl0560t] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 10px;
    align-content: start;
    background: var(--surface);
}

.thm-rv[b-gg2tl0560t] {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 4px 8px;
    padding: 10px 12px 10px 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

    .thm-rv.is-on[b-gg2tl0560t] {
        border-color: var(--brand-line);
        box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04);
    }

    .thm-rv.is-off[b-gg2tl0560t] {
        opacity: 0.6;
    }

.thm-rv-pick[b-gg2tl0560t] {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    cursor: pointer;
}

    .thm-rv-pick input[b-gg2tl0560t] {
        width: 20px;
        height: 20px;
        margin: 0;
        accent-color: var(--brand);
        cursor: pointer;
    }

.thm-rv-body[b-gg2tl0560t] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.thm-rv-top[b-gg2tl0560t] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.thm-rv-name[b-gg2tl0560t] {
    min-height: 40px;
    padding: 6px 12px;
    font-size: 15px;
    font-weight: 600;
}

.thm-rv-where[b-gg2tl0560t] {
    font-size: 12px;
    color: var(--ink-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The one line that says what applying this card does: green for new, yellow for a partial overlap, grey for already there. */
.thm-rv-status[b-gg2tl0560t] {
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
}

    .thm-rv-status.is-new[b-gg2tl0560t] {
        color: #5d8f22;
        background: #f4faec;
        border-color: #cfe7b3;
    }

    .thm-rv-status.is-overlap[b-gg2tl0560t] {
        color: var(--ink);
        background: var(--warn-soft);
        border-color: var(--warn-line);
    }

.thm-rv-lessons[b-gg2tl0560t] {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thm-rv-lesson[b-gg2tl0560t] {
    display: grid;
    grid-template-columns: 18px 52px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
}

    .thm-rv-lesson input[b-gg2tl0560t] {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: var(--brand);
        cursor: pointer;
    }

    .thm-rv-lesson:not(.is-on) .thm-lesson-name[b-gg2tl0560t] {
        color: var(--ink-muted);
        text-decoration: line-through;
    }

    .thm-rv-lesson .thm-tag[b-gg2tl0560t] {
        grid-column: 2 / -1;
        justify-self: start;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.thm-rv-problem[b-gg2tl0560t] {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--danger);
}

.thm-review-foot[b-gg2tl0560t] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.thm-review-sum[b-gg2tl0560t] {
    margin: 0 auto 0 0;
    font-size: 14px;
    color: var(--ink-soft);
}

    .thm-review-sum strong[b-gg2tl0560t] {
        color: var(--ink);
    }

/* ===== Hover (mouse/trackpad only - see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .thm-item:not(.is-selected):hover[b-gg2tl0560t] {
        border-color: var(--brand-line);
        box-shadow: 0 2px 8px rgba(20, 30, 60, 0.06);
    }

    .thm-grip:hover:not(:disabled):not([aria-pressed="true"])[b-gg2tl0560t] {
        color: var(--brand-strong);
        background: var(--brand-soft);
    }

    .thm-slot:hover span[b-gg2tl0560t] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }

    .thm-main:hover[b-gg2tl0560t] {
        background: var(--surface);
    }

    .thm-lesson:hover[b-gg2tl0560t] {
        background: var(--surface);
    }

    .thm-lesson.is-on:hover[b-gg2tl0560t] {
        background: var(--brand-soft);
    }

    .thm-sub-all:hover[b-gg2tl0560t] {
        background: var(--brand-soft);
    }

    .thm-add:hover:not(:disabled)[b-gg2tl0560t] {
        border-style: solid;
        background: var(--brand-soft);
    }

    .thm-actions .cce-btn.thm-btn-green:hover:not(:disabled)[b-gg2tl0560t] {
        color: #fff;
        background: #92cd4d;
        border-color: #92cd4d;
    }
}

/* ===== Narrow windows and phones: the list or the editor, never both ===== */
@media (max-width: 900px) {
    /* Phones: the title alone on its row, flush left, then the two actions half each, then the section switch half each. */
    .thm-head[b-gg2tl0560t] {
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .thm-head .thm-title[b-gg2tl0560t] {
        width: 100%;
        align-self: flex-start;
        text-align: left;
    }

        .thm-head .thm-title h1[b-gg2tl0560t] {
            text-align: left;
            margin: 0;
        }

    .thm-list-head[b-gg2tl0560t] {
        padding: 8px 8px 6px;
    }

    .thm-grid[b-gg2tl0560t] {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .thm-grid:not(.has-item) .thm-editor[b-gg2tl0560t],
    .thm-grid.has-item .thm-list[b-gg2tl0560t] {
        display: none;
    }

    .thm--item .thm-head[b-gg2tl0560t] {
        display: none;
    }

    .thm-actions[b-gg2tl0560t] {
        width: 100%;
        flex-wrap: nowrap;
        margin-left: 0;
    }

    .thm-actions .cce-btn[b-gg2tl0560t] {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 12px;
        font-size: 14px;
        white-space: nowrap;
    }

    .thm-long[b-gg2tl0560t] {
        display: none;
    }

    .thm-short[b-gg2tl0560t] {
        display: inline;
    }

    .thm-back-wrap[b-gg2tl0560t] {
        display: inline-flex;
    }

    /* Editor head on a phone: "← Темы" on its line, the name under it. */
    .thm-editor-head[b-gg2tl0560t] {
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 12px 12px;
    }

    .thm-name-field[b-gg2tl0560t] {
        flex-basis: 100%;
        order: 3;
    }

    .thm-grip[b-gg2tl0560t] {
        width: 44px;
    }

    .thm-warnings[b-gg2tl0560t],
    .thm-picker-bar[b-gg2tl0560t],
    .thm-editor-foot[b-gg2tl0560t] {
        padding-left: 12px;
        padding-right: 12px;
    }

    .thm-rows[b-gg2tl0560t] {
        padding: 4px;
    }

    .thm-row[b-gg2tl0560t] {
        min-height: 56px;
    }

    .thm-main[b-gg2tl0560t] {
        min-height: 46px;
    }

    .thm-lesson[b-gg2tl0560t] {
        min-height: 44px;
    }

    .thm-picker-bar[b-gg2tl0560t] {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .thm-search[b-gg2tl0560t] {
        grid-column: 1 / -1;
    }

    .thm-main-body[b-gg2tl0560t] {
        margin-left: 10px;
        padding-left: 8px;
    }

    /* The review on a phone: one card per line, the mode switch under the text, the summary over the buttons. */
    .thm-review-list[b-gg2tl0560t] {
        grid-template-columns: minmax(0, 1fr);
        padding: 8px;
    }

    .thm-review-controls[b-gg2tl0560t],
    .thm-review-control[b-gg2tl0560t],
    .thm-review-mode[b-gg2tl0560t] {
        width: 100%;
    }

    /* The explanation folds away on a phone; the title, the two choices and the cards get the screen. */
    .thm-review-sub[b-gg2tl0560t] {
        display: none;
    }

    .thm-review-help[b-gg2tl0560t] {
        display: block;
    }

    .thm-review-head[b-gg2tl0560t] {
        padding: 10px 12px;
        gap: 8px;
    }

    .thm-review-title[b-gg2tl0560t] {
        font-size: 15px;
    }

    .thm-review-mode .cce-tab[b-gg2tl0560t] {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        padding: 6px 10px;
    }

    .thm-review-sum[b-gg2tl0560t] {
        flex-basis: 100%;
        margin: 0;
    }

    .thm-review-foot .cce-btn[b-gg2tl0560t] {
        flex: 1 1 0;
        min-width: 0;
    }

    .thm-rv-lesson[b-gg2tl0560t] {
        min-height: 40px;
    }

    .thm-lesson[b-gg2tl0560t] {
        grid-template-columns: 20px 48px minmax(0, 1fr);
    }

    .thm-lesson-tags[b-gg2tl0560t] {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .thm-actions .cce-btn[b-gg2tl0560t] {
        padding: 0 12px;
    }

    /* Footer on a phone: the status line, then the buttons side by side, each taking its share of the width;
       "Удалить тему" (or "Убрать из списка") gets its own line under them so a thumb never lands on it by accident. */
    .thm-editor-foot[b-gg2tl0560t] {
        justify-content: stretch;
    }

        .thm-editor-foot .cce-btn[b-gg2tl0560t] {
            flex: 1 1 0;
            min-width: 0;
        }

        .thm-editor-foot .cce-btn--danger-ghost[b-gg2tl0560t] {
            order: 9;
            flex-basis: 100%;
        }

    .thm-foot-note[b-gg2tl0560t] {
        flex-basis: 100%;
        margin-right: 0;
        order: -1;
    }

    .thm-confirm-text[b-gg2tl0560t] {
        flex-basis: 100%;
    }
}
/* /Pages/Admin/VideoUpload.razor.rz.scp.css */
/* ========== Container ========== */
.video-upload-container[b-r068jjxr8c] {
    font-family: 'Montserrat', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: #333;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* ========== Page Header ========== */
.page-header[b-r068jjxr8c] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

    .page-header h1[b-r068jjxr8c] {
        font-size: clamp(1.5rem, 3vw, 2rem);
        font-weight: 700;
        color: #2c3e50;
        margin: 0;
        letter-spacing: -0.3px;
    }

/* ========== Responsive ========== */
@media (max-width: 600px) {
    .page-header[b-r068jjxr8c] {
        flex-direction: column;
        align-items: flex-start;
    }

        .page-header .action-btn[b-r068jjxr8c] {
            width: 100%;
            justify-content: center;
        }
}

/* ========== Cards ========== */
.card[b-r068jjxr8c] {
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: cardFadeIn-b-r068jjxr8c 0.4s ease both;
}

    @media (hover: hover) and (pointer: fine) {
        .card:hover[b-r068jjxr8c] {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(77, 124, 254, 0.12);
        }
    }

@keyframes cardFadeIn-b-r068jjxr8c {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Card Header ========== */
.card-header[b-r068jjxr8c] {
    background: linear-gradient(135deg, #e0ecff 0%, #d4e1ff 100%);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    border-bottom: 1px solid #c5d9f5;
}

.card-header-content[b-r068jjxr8c] {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

    .card-header-content h3[b-r068jjxr8c] {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        font-weight: 700;
        color: #2c3e50;
        margin: 0;
        flex-grow: 1;
    }

/* ========== Upload Number Badge ========== */
.upload-number-badge[b-r068jjxr8c] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4D7CFE, #3d6cee);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ========== Action Icons ========== */
.action-icon[b-r068jjxr8c] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.action-icon-blue[b-r068jjxr8c] {
    background: linear-gradient(135deg, #4D7CFE, #3d6cee);
}

.action-icon-purple[b-r068jjxr8c] {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

/* ========== Card Body ========== */
.card-body[b-r068jjxr8c] {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ========== Form Group ========== */
.form-group[b-r068jjxr8c] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label[b-r068jjxr8c] {
        font-size: 12px;
        font-weight: 600;
        color: #555;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .form-group select[b-r068jjxr8c],
    .form-group input[b-r068jjxr8c],
    .form-group[b-r068jjxr8c]  input[type="file"] {
        padding: 10px 14px;
        border: 1px solid #d1d5db;
        border-radius: 10px;
        font-size: 14px;
        font-family: inherit;
        background: #fff;
        color: #333;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
        width: 100%;
        box-sizing: border-box;
    }

    .form-group select[b-r068jjxr8c] {
        appearance: none;
        cursor: pointer;
    }

        .form-group select:focus[b-r068jjxr8c],
        .form-group input:focus[b-r068jjxr8c] {
            border-color: #4D7CFE;
            box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.1);
        }

/* ========== Existing Video Section ========== */
.existing-video-section[b-r068jjxr8c] {
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    border: 1px solid #c5d9f5;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.existing-video-header[b-r068jjxr8c] {
    font-size: 13px;
    font-weight: 700;
    color: #4D7CFE;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.existing-video-info[b-r068jjxr8c] {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.existing-video-icon[b-r068jjxr8c] {
    font-size: 20px;
    flex-shrink: 0;
}

.existing-video-details[b-r068jjxr8c] {
    min-width: 0;
    flex-grow: 1;
}

    .existing-video-details .video-type-label[b-r068jjxr8c] {
        font-size: 12px;
        font-weight: 600;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .existing-video-details .video-url[b-r068jjxr8c] {
        font-size: 13px;
        color: #2c3e50;
        word-break: break-all;
        margin: 2px 0 0 0;
        line-height: 1.4;
    }

/* ========== File Info Chip ========== */
.file-info-chip[b-r068jjxr8c] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9ff;
    border: 1px solid #e0e7ff;
    border-radius: 10px;
    font-size: 13px;
    color: #2c3e50;
}

    .file-info-chip strong[b-r068jjxr8c] {
        color: #4D7CFE;
    }

.file-dismiss-btn[b-r068jjxr8c] {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

    @media (hover: hover) and (pointer: fine) {
        .file-dismiss-btn:hover[b-r068jjxr8c] {
            color: #ff3b30;
            transform: scale(1.15);
        }
    }

/* ========== Progress Bar ========== */
.progress-container[b-r068jjxr8c] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar-track[b-r068jjxr8c] {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill[b-r068jjxr8c] {
    height: 100%;
    background: linear-gradient(135deg, #4D7CFE, #3d6cee);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-bar-fill-complete[b-r068jjxr8c] {
    background: linear-gradient(135deg, #92CD4D, #76b939);
}

.progress-label[b-r068jjxr8c] {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-align: right;
}

/* ========== Status Messages ========== */
.status-message[b-r068jjxr8c] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    animation: fadeIn-b-r068jjxr8c 0.25s ease;
}

.status-success[b-r068jjxr8c] {
    background: linear-gradient(135deg, #f2fae8, #e8f5d6);
    color: #5a8f2a;
    border: 1px solid #c8e6a0;
}

.status-error[b-r068jjxr8c] {
    background: linear-gradient(135deg, #fef0f0, #fde8e8);
    color: #d1242f;
    border: 1px solid #fecaca;
}

@keyframes fadeIn-b-r068jjxr8c {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Buttons ========== */
.button-group[b-r068jjxr8c] {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn[b-r068jjxr8c] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #4D7CFE;
    background-color: #EFF4FF;
    border: 1px solid #B9CCF9;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    flex-shrink: 0;
    font-family: inherit;
    white-space: nowrap;
}

    @media (hover: hover) and (pointer: fine) {
        .action-btn:hover:not(:disabled)[b-r068jjxr8c] {
            background-color: #4D7CFE;
            color: #fff;
            box-shadow: 0 4px 14px rgba(77, 124, 254, 0.3);
            transform: translateY(-1px);
        }
    }

        @media (hover: hover) and (pointer: fine) {
            .action-btn:hover:not(:disabled) svg[b-r068jjxr8c] {
                stroke: #fff;
            }
        }

    .action-btn:disabled[b-r068jjxr8c] {
        opacity: 0.45;
        cursor: not-allowed;
        pointer-events: none;
    }

.action-btn-primary[b-r068jjxr8c] {
    background-color: #4D7CFE;
    color: #fff;
    border-color: #4D7CFE;
}

    @media (hover: hover) and (pointer: fine) {
        .action-btn-primary:hover:not(:disabled)[b-r068jjxr8c] {
            background-color: #3d6cee;
            box-shadow: 0 4px 14px rgba(77, 124, 254, 0.35);
        }
    }

.action-btn-success[b-r068jjxr8c] {
    color: #5a8f2a;
    background-color: #f2fae8;
    border-color: #c8e6a0;
}

    @media (hover: hover) and (pointer: fine) {
        .action-btn-success:hover:not(:disabled)[b-r068jjxr8c] {
            background-color: #92CD4D;
            color: #fff;
            box-shadow: 0 4px 14px rgba(146, 205, 77, 0.3);
        }
    }

.action-btn-danger[b-r068jjxr8c] {
    color: #ff3b30;
    background-color: #fef0f0;
    border-color: #fecaca;
}

    @media (hover: hover) and (pointer: fine) {
        .action-btn-danger:hover:not(:disabled)[b-r068jjxr8c] {
            background-color: #ff3b30;
            color: #fff;
            box-shadow: 0 4px 14px rgba(255, 59, 48, 0.3);
        }
    }

.action-btn-muted[b-r068jjxr8c] {
    color: #6c757d;
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

    @media (hover: hover) and (pointer: fine) {
        .action-btn-muted:hover:not(:disabled)[b-r068jjxr8c] {
            background-color: #6c757d;
            color: #fff;
            box-shadow: 0 4px 14px rgba(108, 117, 125, 0.3);
        }
    }

/* ========== Button Spinner ========== */
.btn-spinner[b-r068jjxr8c] {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin-b-r068jjxr8c 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes spin-b-r068jjxr8c {
    to {
        transform: rotate(360deg);
    }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .video-upload-container[b-r068jjxr8c] {
        padding: 1.25rem 1rem;
    }

    .card-header-content[b-r068jjxr8c] {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-group[b-r068jjxr8c] {
        flex-direction: column;
    }

        .button-group .action-btn[b-r068jjxr8c] {
            width: 100%;
            justify-content: center;
        }
}

@media (max-width: 480px) {
    .video-upload-container[b-r068jjxr8c] {
        padding: 1rem 0.75rem;
    }

    .file-info-chip[b-r068jjxr8c] {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* /Pages/Admin/WrittenWorkReview.razor.rz.scp.css */
/* The teacher's list of works (essays, corrections, recordings). The card, the unfolding rows, the facts and the
   state chips are the shared admin list layout in AdminShell.razor.css (cce-pane, cce-row, cce-row-body, cce-facts,
   cce-state), and so are the two filters in the card's head (cce-pane-tabs for the state, cce-seg and cce-seg-select
   for the kind of work); nothing is this page's own yet. */
/* /Pages/Chat/ChatPage.razor.rz.scp.css */
/* ============================================================
   Chat shell: sizing, the two panes and page-level states.
   The components inside use the colour tokens defined here.
   ============================================================ */

.chat-shell[b-dy25n4dn2v] {
    --chat-primary: #4D7CFE;
    --chat-primary-hover: #3D6AE8;
    --chat-primary-soft: #EEF3FF;
    --chat-text: #1B1F2A;
    --chat-text-muted: #6B7385;
    --chat-text-subtle: #9AA1B2;
    --chat-border: #E6E9F0;
    --chat-surface-alt: #F4F6FB;
    --chat-team-bubble: #E4EBFF;
    --chat-other-bubble: #F1F3F7;
    /* Fills the ViewportPage it sits in (which sizes the height). Same width as the
       other left-nav pages' cards (ModuleSelection, Test, Progress): a page container
       of --page-max (from LeftSideNavLayout) with a 1rem inset on each side. */
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: calc(min(100%, var(--page-max)) - 2rem);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--chat-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .06);
    color: var(--chat-text);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

.chat-shell__sidebar[b-dy25n4dn2v] {
    display: flex;
    flex-direction: column;
    /* Wider on a wide screen (a row holds a name, a plan, an address, a date and a progress bar); the admin's own
       width, set with the divider, wins. Never so wide that the conversation gets less than 420px. */
    width: var(--chat-list-width, clamp(340px, 30vw, 440px));
    max-width: calc(100% - 420px);
    min-height: 0;
    border-right: 1px solid var(--chat-border);
    flex-shrink: 0;
}

/* The divider: a 10px strip over the list's right border, with a line that shows on hover, focus and while dragged */
.chat-shell__resize[b-dy25n4dn2v] {
    position: relative;
    z-index: 2;
    flex: 0 0 10px;
    margin: 0 -5px;
    cursor: col-resize;
    touch-action: none;
    outline: none;
}

    .chat-shell__resize[b-dy25n4dn2v]::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 3px;
        width: 3px;
        border-radius: 2px;
        background: var(--chat-primary);
        opacity: 0;
        transition: opacity .15s ease;
    }

    .chat-shell__resize.is-dragging[b-dy25n4dn2v]::after,
    .chat-shell__resize:focus-visible[b-dy25n4dn2v]::after {
        opacity: 1;
    }

    @media (hover: hover) and (pointer: fine) {
        .chat-shell__resize:hover[b-dy25n4dn2v]::after {
            opacity: .6;
        }
    }

.chat-shell__main[b-dy25n4dn2v] {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
}

/* Loading, error, "choose a user" */
.chat-shell__center[b-dy25n4dn2v] {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 20px;
    text-align: center;
}

.chat-shell__center-icon[b-dy25n4dn2v] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--chat-primary-soft);
    color: var(--chat-primary);
}

    .chat-shell__center-icon.is-error[b-dy25n4dn2v] {
        background: #FDECEC;
        color: #E5484D;
    }

.chat-shell__center-title[b-dy25n4dn2v] {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--chat-text);
}

.chat-shell__center-text[b-dy25n4dn2v] {
    max-width: 420px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--chat-text-muted);
}

.chat-shell__spinner[b-dy25n4dn2v] {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(77, 124, 254, .2);
    border-top-color: var(--chat-primary);
    border-radius: 50%;
    animation: chat-shell-spin-b-dy25n4dn2v .8s linear infinite;
}

.chat-shell__btn[b-dy25n4dn2v] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin-top: 6px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: var(--chat-primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-shell__btn:hover[b-dy25n4dn2v] {
            background: var(--chat-primary-hover);
        }
    }

    .chat-shell__btn:focus-visible[b-dy25n4dn2v] {
        outline: 2px solid var(--chat-primary);
        outline-offset: 2px;
    }

/* Non-blocking errors, e.g. "could not mark as read" */
.chat-shell__toast[b-dy25n4dn2v] {
    position: absolute;
    top: 80px;
    left: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 8px 8px 8px 14px;
    border-radius: 12px;
    background: #1B1F2A;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .18);
    transform: translateX(-50%);
    animation: chat-shell-toast-b-dy25n4dn2v .2s ease-out;
}

.chat-shell__toast-close[b-dy25n4dn2v] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
}

    @media (hover: hover) and (pointer: fine) {
        .chat-shell__toast-close:hover[b-dy25n4dn2v] {
            background: rgba(255, 255, 255, .12);
        }
    }

@keyframes chat-shell-spin-b-dy25n4dn2v {
    to {
        transform: rotate(360deg);
    }
}

@keyframes chat-shell-toast-b-dy25n4dn2v {
    from {
        opacity: 0;
        transform: translate(-50%, -6px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Below 1024px only one pane fits: the list, or the open conversation. */
@media (max-width: 1023.98px) {
    .chat-shell.is-admin .chat-shell__sidebar[b-dy25n4dn2v] {
        width: 100%;
        max-width: none;
        border-right: none;
    }

    .chat-shell__resize[b-dy25n4dn2v] {
        display: none;
    }

    .chat-shell.is-admin.has-selection .chat-shell__sidebar[b-dy25n4dn2v] {
        display: none;
    }

    .chat-shell.is-admin:not(.has-selection) .chat-shell__main[b-dy25n4dn2v] {
        display: none;
    }
}

/* Tablets and phones: ViewportPage pins the chat below the app header, edge to edge,
   like a native messenger, so the card loses its frame. */
@media (max-width: 1100px) {
    .chat-shell[b-dy25n4dn2v] {
        width: auto;
        margin: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 640px) {
    .chat-shell__toast[b-dy25n4dn2v] {
        top: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-shell__spinner[b-dy25n4dn2v],
    .chat-shell__toast[b-dy25n4dn2v] {
        animation: none;
    }
}
/* /Pages/Course/Continue.razor.rz.scp.css */
.continue-page[b-lm61l2j2rj] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --brand: #4d7cfe;
    font-family: 'Montserrat', sans-serif;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 48px 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.continue-spinner[b-lm61l2j2rj] {
    width: 44px;
    height: 44px;
    border: 4px solid #e8eeff;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: continue-spin-b-lm61l2j2rj 0.8s linear infinite;
}

@keyframes continue-spin-b-lm61l2j2rj {
    to {
        transform: rotate(360deg);
    }
}

.continue-text[b-lm61l2j2rj] {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

.continue-actions[b-lm61l2j2rj] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
}

.continue-btn[b-lm61l2j2rj] {
    appearance: none;
    -webkit-appearance: none;
    min-height: 48px;
    padding: 0 26px;
    font: 600 16px/1.2 'Montserrat', sans-serif;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 24px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

    .continue-btn:active[b-lm61l2j2rj] {
        background: #3a63d8;
        transform: scale(0.98);
        transition-duration: 0s;
    }

    .continue-btn:focus-visible[b-lm61l2j2rj],
    .continue-link:focus-visible[b-lm61l2j2rj] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.continue-link[b-lm61l2j2rj] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

    .continue-link:active[b-lm61l2j2rj] {
        color: #3a63d8;
        transition-duration: 0s;
    }

@media (hover: hover) and (pointer: fine) {
    .continue-btn:hover[b-lm61l2j2rj] {
        background: #3f6cf0;
    }

    .continue-link:hover[b-lm61l2j2rj] {
        text-decoration: underline;
    }
}

@media (prefers-reduced-motion: reduce) {
    .continue-spinner[b-lm61l2j2rj] {
        animation-duration: 2.4s;
    }
}
/* /Pages/Course/ModuleSelection.razor.rz.scp.css */
/* ===== Tokens (desktop defaults, overridden per breakpoint below) ===== */
.select-module-page[b-uxcyauumyo] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --brand: #4d7cfe;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --done: #92cd4d;
    --done-line: #cde8ac;
    /* --page-max comes from LeftSideNavLayout */
    --page-margin-top: 0px;
    --card-radius: 20px;
    --card-pad: 20px 22px;
    --card-gap: 18px;
    --ring-size: 96px;
    --ring-width: 7px;
    --ring-font: 17px;
    --pill-pad: 0.25rem 0.75rem;
    --title-font: 22px;
    --desc-font: 16px;
    --sub-title-font: 18px;
    --sub-desc-font: 15px;
    --icon-size: 26px;
    --row-pad-y: 12px;
    --row-pad-x: 12px;
    --row-gap: 16px;
    /* Read by TutorialHint / InstallAppHint to space themselves */
    --module-gap: var(--card-gap);
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    background-color: #fff;
    max-width: var(--page-max);
    margin: var(--page-margin-top) auto 0;
    padding: 0 1rem;
    text-align: left;
    user-select: none;
    -webkit-text-size-adjust: 100%;
    /* A column as tall as main, so the dock (margin-top: auto) rests at the bottom of the
       screen when the list is short, instead of right under the last card */
    display: flex;
    flex-direction: column;
    min-height: calc(100% - var(--page-margin-top));
}

/* ===== List reset ===== */
ul.module-items[b-uxcyauumyo],
ul.submodules-ul[b-uxcyauumyo] {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== Dock: the continue button, goal and streak stay at the bottom of the screen =====
   Sticky, not fixed: it keeps the page's width and gutters, and at the end of the list it
   simply rests under the last card. Below the header (900) and the drawer. */
.select-module-dock[b-uxcyauumyo] {
    --sh-gap-below: 0px;
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    z-index: 20;
    margin: auto -8px 0;
}

.dock-body[b-uxcyauumyo] {
    position: relative;
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 -2px 8px rgba(20, 30, 60, 0.04), 0 8px 28px rgba(20, 30, 60, 0.14);
}

    /* Nothing to dock until the button is known (StudyHero renders nothing before that) */
    .dock-body:empty[b-uxcyauumyo],
    .dock-body:empty + .dock-toggle[b-uxcyauumyo] {
        display: none;
    }

/* Minimise: a tab that grows out of the dock's top border, past the curve of its right corner.
   It overlaps the border by 1px and has no bottom edge, so the two outlines read as one. */
.dock-toggle[b-uxcyauumyo] {
    --toggle-ink: #4d7cfe;
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    right: 26px;
    bottom: calc(100% - 1px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 22px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* An integer, so the step behind the goal panel (below) can be timed */
    z-index: 0;
    transition: background-color 0.15s ease, z-index 0s linear 0.2s;
}

    /* The tab is small; the area that takes a tap is 60 x 44. */
    .dock-toggle[b-uxcyauumyo]::before {
        content: "";
        position: absolute;
        inset: -14px -4px -8px;
    }

    .dock-toggle:active[b-uxcyauumyo] {
        --toggle-ink: #4d7cfe;
        background: #e8eeff;
        transition-duration: 0s;
    }

    .dock-toggle:focus-visible[b-uxcyauumyo] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

/* Points down (push the dock away) while it is open, up (bring it back) when minimised */
.dock-toggle-chevron[b-uxcyauumyo] {
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-right: 2px solid var(--toggle-ink);
    border-bottom: 2px solid var(--toggle-ink);
    transform: rotate(45deg);
    transition: border-color 0.15s ease;
}

/* While the goal panel is shown above the dock (opened by a tap here, shown on hover in the mouse block
   below), the tab goes under it at once, and comes back only after the panel has faded (0.18s) */
.dock-body:has(.sh-goal-wrap.is-open) + .dock-toggle[b-uxcyauumyo] {
    z-index: -1;
    transition-delay: 0s;
}

/* Minimised: the dock is gone and the toggle is a pill in the same corner, in the shape of the
   lesson pages' navigation buttons (white, 2px brand border, the chevron in brand blue; filled while
   pressed), so it is found at a glance. The empty strip beside it lets taps through to the list. */
.select-module-dock.is-minimised[b-uxcyauumyo] {
    display: flex;
    justify-content: flex-end;
    padding-right: 26px;
    pointer-events: none;
}

    .select-module-dock.is-minimised .dock-body[b-uxcyauumyo] {
        display: none;
    }

    .select-module-dock.is-minimised .dock-toggle[b-uxcyauumyo] {
        --toggle-ink: #4d7cfe;
        position: relative;
        right: auto;
        bottom: auto;
        width: 52px;
        height: 36px;
        border: 2px solid var(--brand);
        border-radius: 999px;
        box-shadow: 0 2px 6px rgba(20, 30, 60, 0.08), 0 8px 24px rgba(77, 124, 254, 0.22);
        pointer-events: auto;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

        .select-module-dock.is-minimised .dock-toggle[b-uxcyauumyo]::before {
            inset: -4px;
        }

        .select-module-dock.is-minimised .dock-toggle:active[b-uxcyauumyo] {
            --toggle-ink: #fff;
            background: var(--brand);
            transition-duration: 0s;
        }

    .select-module-dock.is-minimised .dock-toggle-chevron[b-uxcyauumyo] {
        width: 10px;
        height: 10px;
        margin-top: 5px;
        border-width: 2.5px;
        transform: rotate(-135deg);
    }

/* The slide-in plays when the dock comes back from the pill (is-restoring, set by the toggle), not when the page
   draws it with the list: the list and the dock appear together, and nothing moves once they are on screen. */
.select-module-dock.is-restoring:not(.is-minimised) .dock-body[b-uxcyauumyo] {
    animation: dock-in-b-uxcyauumyo 0.2s ease-out;
}

@keyframes dock-in-b-uxcyauumyo {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

@media (hover: hover) and (pointer: fine) {
    .dock-toggle:hover[b-uxcyauumyo] {
        --toggle-ink: #4d7cfe;
        background: #f3f6ff;
    }

    .select-module-dock.is-minimised .dock-toggle:hover[b-uxcyauumyo] {
        --toggle-ink: #fff;
        background: var(--brand);
    }

    /* The goal panel also shows while the mouse is on the tile or the panel (StudyHero.razor.css) */
    .dock-body:has(.sh-goal-wrap:hover) + .dock-toggle[b-uxcyauumyo] {
        z-index: -1;
        transition-delay: 0s;
    }
}

/* Phones: the dock is a sheet on the bottom edge of the screen - full width, solid white, rounded at the
   top only, with room for the home indicator - rather than a card floating 12px above it. The minimised
   pill keeps floating in the corner. --main-pad is main's padding (LeftSideNavLayout). */
@media (max-width: 600px) {
    .select-module-dock:not(.is-minimised)[b-uxcyauumyo] {
        bottom: 0;
        margin: auto calc(-1 * var(--main-pad)) calc(-1 * var(--main-pad));
    }

        .select-module-dock:not(.is-minimised) .dock-body[b-uxcyauumyo] {
            padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
            background: #fff;
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
            border: 0;
            border-top: 1px solid var(--line);
            border-radius: 22px 22px 0 0;
            box-shadow: 0 -6px 24px rgba(20, 30, 60, 0.1);
        }

    .dock-toggle[b-uxcyauumyo] {
        right: 20px;
    }

    /* A little smaller still; the hit zone around it stays 44px tall */
    .select-module-dock.is-minimised .dock-toggle[b-uxcyauumyo] {
        width: 46px;
        height: 32px;
    }

        .select-module-dock.is-minimised .dock-toggle[b-uxcyauumyo]::before {
            inset: -6px;
        }

    .select-module-dock.is-minimised .dock-toggle-chevron[b-uxcyauumyo] {
        width: 9px;
        height: 9px;
        margin-top: 4px;
    }
}

/* The card the page scrolls to is centred; keep it clear of the header when it lands near the top */
.module-card[b-uxcyauumyo] {
    scroll-margin-top: 90px;
}

/* ===== Shared button reset (Bootstrap's reboot styles <button>) ===== */
.module-card-header[b-uxcyauumyo],
.submodule-row[b-uxcyauumyo],
.back-button[b-uxcyauumyo] {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .module-card-header:focus-visible[b-uxcyauumyo],
    .submodule-row:focus-visible[b-uxcyauumyo],
    .back-button:focus-visible[b-uxcyauumyo] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

/* ===== Module card ===== */
.module-card[b-uxcyauumyo] {
    list-style: none;
    margin: 0 0 var(--card-gap);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .module-card.lesson-current[b-uxcyauumyo] {
        border-color: var(--brand-line);
        box-shadow: 0 1px 2px rgba(77, 124, 254, 0.08), 0 6px 18px rgba(77, 124, 254, 0.12);
    }

.module-card-header[b-uxcyauumyo] {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 44px;
    padding: var(--card-pad);
    background: none;
    border: 0;
    transition: background-color 0.15s ease;
}

    .module-card-header:active[b-uxcyauumyo] {
        background-color: #f7f8fa;
    }

.module-card-info[b-uxcyauumyo] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.module-title[b-uxcyauumyo] {
    font-size: var(--title-font);
    line-height: 1.25;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.module-description[b-uxcyauumyo] {
    font-size: var(--desc-font);
    line-height: 1.45;
    font-weight: 400;
    color: var(--ink-soft);
    margin: 0;
    overflow-wrap: anywhere;
}

/* Chevron: points down when collapsed, up when expanded */
.module-chevron[b-uxcyauumyo] {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin: 0 4px 4px 0;
    border-right: 2px solid #a3a8b0;
    border-bottom: 2px solid #a3a8b0;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.module-card.is-expanded .module-chevron[b-uxcyauumyo] {
    transform: translateY(4px) rotate(-135deg);
}

/* ===== Progress ring ===== */
.progress-circle[b-uxcyauumyo] {
    --ring-inner: calc(var(--ring-size) - 2 * var(--ring-width));
    width: var(--ring-size);
    height: var(--ring-size);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Two layers, as on the lessons page. On top: the coloured arc of what is done, a hole for the lessons passed with "Пропустить" (--skipped, in
       percent), then the track. Under the hole: slate dashes on the track colour, starting where the done arc ends; --skip-step
       (ProgressColors.SkipStep) fits them to the arc, and the .4deg blends keep their edges from looking jagged. Slate, not
       the grey of a locked module. */
    background:
        conic-gradient(var(--progress-color, #4d7cfe) calc(var(--progress) * 3.6deg), transparent 0deg calc((var(--progress) + var(--skipped, 0)) * 3.6deg), var(--progress-bg, #e8eeff) 0deg 360deg),
        repeating-conic-gradient(from calc(var(--progress) * 3.6deg), var(--progress-bg, #e8eeff) 0deg calc(var(--skip-step, 12deg) / 6), #4a4f57 calc(var(--skip-step, 12deg) / 6 + .4deg) calc(var(--skip-step, 12deg) * 5 / 6 - .4deg), var(--progress-bg, #e8eeff) calc(var(--skip-step, 12deg) * 5 / 6) var(--skip-step, 12deg));
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

    .progress-circle[b-uxcyauumyo]::after {
        content: "";
        position: absolute;
        width: var(--ring-inner);
        height: var(--ring-inner);
        background: #fff;
        border-radius: 50%;
    }

.progress-value[b-uxcyauumyo] {
    position: relative;
    z-index: 1;
    font-size: var(--ring-font);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    background-color: var(--progress-color, #4d7cfe);
    padding: var(--pill-pad);
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* ===== Submodule list (inside a card) ===== */
.module-card .submodules-ul[b-uxcyauumyo] {
    border-top: 1px solid var(--line);
    padding: 8px 10px 12px;
    animation: submodules-in-b-uxcyauumyo 0.25s ease;
}

@keyframes submodules-in-b-uxcyauumyo {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.submodule[b-uxcyauumyo] {
    list-style: none;
    position: relative;
}

.submodule-row[b-uxcyauumyo] {
    display: flex;
    align-items: flex-start;
    gap: var(--row-gap);
    width: 100%;
    min-height: 44px;
    padding: var(--row-pad-y) var(--row-pad-x);
    background: none;
    border: 0;
    border-radius: 14px;
    transition: background-color 0.15s ease;
}

    .submodule-row:active[b-uxcyauumyo] {
        background-color: #f3f4f7;
    }

/* Timeline line joining one status icon to the next */
.submodules-ul.timeline > .submodule:not(:last-child)[b-uxcyauumyo]::after {
    content: "";
    position: absolute;
    left: calc(var(--row-pad-x) + var(--icon-size) / 2 - 1px);
    top: calc(var(--row-pad-y) + var(--icon-size) + 5px);
    bottom: calc(5px - var(--row-pad-y));
    width: 2px;
    border-radius: 1px;
    background: var(--line);
    pointer-events: none;
}

.submodules-ul.timeline > .submodule.lesson-completed:not(:last-child)[b-uxcyauumyo]::after {
    background: var(--done-line);
}

.item-text[b-uxcyauumyo] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
}

.item-title[b-uxcyauumyo] {
    font-size: var(--sub-title-font);
    line-height: 1.3;
    font-weight: 500;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.sub-description[b-uxcyauumyo] {
    font-size: var(--sub-desc-font);
    line-height: 1.45;
    color: var(--ink-soft);
    margin: 0;
    overflow-wrap: anywhere;
}

/* ===== Submodule status icons ===== */
.item-check-icon[b-uxcyauumyo],
.item-circle-icon[b-uxcyauumyo] {
    width: var(--icon-size);
    height: var(--icon-size);
    flex-shrink: 0;
    border-radius: 50%;
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.item-check-icon[b-uxcyauumyo] {
    background: url('/images/module-select-check.svg') no-repeat center / contain;
}

.item-circle-icon[b-uxcyauumyo] {
    background-color: #fff;
    border: 2px solid #c9cdd4;
}

/* ===== Lesson states ===== */
.submodule.lesson-current > .submodule-row[b-uxcyauumyo] {
    background-color: var(--brand-soft);
}

.submodule.lesson-current .item-title[b-uxcyauumyo] {
    font-weight: 600;
}

.submodule.lesson-current .item-circle-icon[b-uxcyauumyo] {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 12px var(--brand);
}

.submodule.lesson-completed .item-title[b-uxcyauumyo] {
    color: var(--ink-muted);
}

.submodule.lesson-completed .sub-description[b-uxcyauumyo] {
    color: #a0a4ab;
}

/* Locked: dim the content; on a card dim only its header so a nested
   locked submodule isn't dimmed twice */
.submodule.lesson-locked[b-uxcyauumyo],
.module-card.lesson-locked > .module-card-header[b-uxcyauumyo] {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.submodule.lesson-locked .item-circle-icon[b-uxcyauumyo] {
    border-style: dashed;
}

/* Lock badge on the progress ring */
.lesson-locked .progress-circle[b-uxcyauumyo]::before {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z'/%3E%3C/svg%3E") no-repeat center / 13px 13px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* ===== Back button ===== */
.back-button[b-uxcyauumyo] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin: 0 0 14px;
    padding: 0 18px 0 14px;
    font-size: 15px;
    font-weight: 500;
    background-color: #f1f2f5;
    border: 0;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

    .back-button[b-uxcyauumyo]::before {
        content: "";
        width: 8px;
        height: 8px;
        border-left: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-left: 4px;
    }

    .back-button:active[b-uxcyauumyo] {
        background-color: #e4e6eb;
    }

/* ===== Simple view (list of sub-submodules) ===== */
.simple-view .simple-title[b-uxcyauumyo] {
    font-size: calc(var(--title-font) + 2px);
    line-height: 1.25;
    font-weight: 600;
    margin: 0 0 12px;
}

.simple-view .submodules-ul[b-uxcyauumyo] {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    padding: 6px;
    margin-bottom: 16px;
}

.simple-view .empty-note[b-uxcyauumyo] {
    font-size: var(--desc-font);
    color: var(--ink-soft);
}

/* ===== Hover (mouse/trackpad only — see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .module-card-header:hover[b-uxcyauumyo] {
        background-color: #fafbfc;
    }

        .module-card-header:hover .progress-circle[b-uxcyauumyo] {
            transform: scale(1.04);
        }

        .module-card-header:hover .module-chevron[b-uxcyauumyo] {
            border-color: #6b7078;
        }

    .submodule-row:hover[b-uxcyauumyo] {
        background-color: #f7f8fa;
    }

    .submodule.lesson-current > .submodule-row:hover[b-uxcyauumyo] {
        background-color: #eaf0ff;
    }

    .submodule-row:hover .item-check-icon[b-uxcyauumyo],
    .submodule-row:hover .item-circle-icon[b-uxcyauumyo] {
        transform: scale(1.1);
    }

    .submodule.lesson-locked:hover[b-uxcyauumyo],
    .module-card.lesson-locked > .module-card-header:hover[b-uxcyauumyo] {
        opacity: 0.75;
    }

    .back-button:hover[b-uxcyauumyo] {
        background-color: #e4e6eb;
    }
}

/* ===== Loading ===== */
.module-loading-container[b-uxcyauumyo] {
    text-align: center;
    padding: 3rem;
}

    .module-loading-container p[b-uxcyauumyo] {
        color: #888;
        font-size: 15px;
        margin-top: 0.5rem;
    }

.loading-spinner[b-uxcyauumyo] {
    display: inline-block;
    width: 70px;
    height: 70px;
    margin: 20px auto;
    position: relative;
}

    .loading-spinner[b-uxcyauumyo]::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 4px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        border-top: 4px solid #000;
        animation: spin-b-uxcyauumyo 0.85s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
        box-sizing: border-box;
    }

    .loading-spinner[b-uxcyauumyo]::before {
        content: "";
        position: absolute;
        width: 30px;
        height: 30px;
        top: 52%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: url('/favicon.svg') no-repeat center center;
        background-size: contain;
        z-index: 5;
    }

@keyframes spin-b-uxcyauumyo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .module-card .submodules-ul[b-uxcyauumyo],
    .select-module-dock:not(.is-minimised) .dock-body[b-uxcyauumyo] {
        animation: none;
    }
}

/* ===== Laptop ===== */
@media (max-width: 1500px) {
    .select-module-page[b-uxcyauumyo] {
        --card-pad: 18px 20px;
        --ring-size: 82px;
        --ring-width: 6px;
        --ring-font: 15px;
        --pill-pad: 0.2rem 0.6rem;
        --title-font: 20px;
        --desc-font: 15px;
        --sub-title-font: 17px;
        --sub-desc-font: 14px;
        --icon-size: 24px;
    }
}

/* ===== Tablet (≤ 768px) ===== */
@media (max-width: 768px) {
    .select-module-page[b-uxcyauumyo] {
        --page-margin-top: 12px;
        --card-radius: 18px;
        --card-pad: 16px 18px;
        --card-gap: 14px;
        padding: 0;
    }
}

/* ===== Phones (≤ 480px, iPhone 16 = 393px) =====
   Text stays at iOS reading sizes (15–18px) instead of shrinking with
   the screen; the ring and paddings give up the space instead. */
@media (max-width: 480px) {
    .select-module-page[b-uxcyauumyo] {
        --page-margin-top: 4px;
        --card-radius: 16px;
        --card-pad: 14px 14px 14px 16px;
        --card-gap: 12px;
        --ring-size: 64px;
        --ring-width: 5px;
        --ring-font: 12px;
        --pill-pad: 0.12rem 0.4rem;
        --title-font: 18px;
        --desc-font: 15px;
        --sub-title-font: 17px;
        --sub-desc-font: 15px;
        --icon-size: 24px;
        --row-pad-y: 11px;
        --row-pad-x: 8px;
        --row-gap: 12px;
    }

    .module-card-header[b-uxcyauumyo] {
        gap: 14px;
    }

    .module-card-info[b-uxcyauumyo] {
        gap: 4px;
    }

    .module-card .submodules-ul[b-uxcyauumyo] {
        padding: 6px 6px 8px;
    }

    .lesson-locked .progress-circle[b-uxcyauumyo]::before {
        width: 22px;
        height: 22px;
        top: -4px;
        right: -4px;
        background-size: 12px 12px;
    }

    .module-loading-container[b-uxcyauumyo] {
        padding: 2rem 1rem;
    }
}

/* ===== Narrow phones (≤ 360px) ===== */
@media (max-width: 360px) {
    .select-module-page[b-uxcyauumyo] {
        --card-pad: 12px;
        --ring-size: 58px;
        --ring-font: 11px;
        --pill-pad: 0.1rem 0.35rem;
        --title-font: 17px;
        --sub-title-font: 16px;
        --desc-font: 14px;
        --sub-desc-font: 14px;
    }
}
/* /Pages/Course/Progress.razor.rz.scp.css */
/* ===== Tokens — same palette and scale as ModuleSelection / Test ===== */
.pg-page[b-d5fzwy9heq] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --brand: #4d7cfe;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --right: #5d8f22;
    --right-soft: #f4faec;
    --wrong: #d93639;
    --wrong-soft: #fff4f4;
    /* --page-max comes from LeftSideNavLayout */
    --page-margin-top: 0px;
    --card-radius: 20px;
    --card-pad: 22px 24px;
    /* Horizontal card padding on its own: the mistakes strip bleeds to the card edges */
    --card-pad-x: 24px;
    --surface: #f7f8fa;
    --card-gap: 18px;
    --ring-size: 96px;
    --ring-width: 7px;
    --ring-font: 17px;
    --pill-pad: 0.25rem 0.75rem;
    --section-title-font: 22px;
    --card-title-font: 19px;
    --desc-font: 15px;
    --body-font: 16px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    max-width: var(--page-max);
    margin: var(--page-margin-top) auto 0;
    padding: 0 1rem 32px;
    display: flex;
    flex-direction: column;
    gap: var(--card-gap);
    text-align: left;
    user-select: none;
    -webkit-text-size-adjust: 100%;
}

.pg-error[b-d5fzwy9heq] {
    margin: 0;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--wrong);
    background: var(--wrong-soft);
    border: 1px solid #f6c9ca;
    border-radius: 14px;
}

/* ===== Layout and cards =====
   Overview: the course-progress card (hero) beside a column of stat tiles.
   A section's two stat tiles sit side by side. */
.pg-overview[b-d5fzwy9heq] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: var(--card-gap);
}

.pg-tiles[b-d5fzwy9heq] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--card-gap);
}

.pg-overview .pg-tiles[b-d5fzwy9heq] {
    grid-template-columns: minmax(0, 1fr);
}

.pg-card[b-d5fzwy9heq] {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
    padding: var(--card-pad);
    min-width: 0;
}

/* Course progress: the headline of the page, with the largest ring */
.pg-hero[b-d5fzwy9heq] {
    --ring-size: 148px;
    --ring-width: 10px;
    --ring-font: 22px;
    --pill-pad: 0.3rem 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

    .pg-hero .pg-stat-text[b-d5fzwy9heq] {
        flex: 0 1 auto;
        align-items: center;
    }

    .pg-hero .pg-stat-title[b-d5fzwy9heq] {
        font-size: calc(var(--card-title-font) + 3px);
    }

/* Shown to a student who has not done anything yet */
.pg-intro[b-d5fzwy9heq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
    text-align: center;
}

.pg-intro-title[b-d5fzwy9heq] {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.pg-intro-text[b-d5fzwy9heq] {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink-soft);
}

    .pg-intro .pg-nav-btn[b-d5fzwy9heq] {
        align-self: center;
        min-width: 230px;
        margin-top: 28px;
        text-decoration: none;
    }

/* Stat card: ring on the left, like a module card */
.pg-stat[b-d5fzwy9heq] {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.pg-stat-text[b-d5fzwy9heq] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.pg-stat-title[b-d5fzwy9heq] {
    font-size: var(--card-title-font);
    line-height: 1.25;
    font-weight: 600;
    margin: 0;
    color: var(--ink);
}

/* The plain-word gloss beside a term ("Eigensinn · работа над ошибками") */
.pg-stat-sub[b-d5fzwy9heq] {
    font-size: var(--desc-font);
    font-weight: 400;
    color: var(--ink-soft);
}

    /* The dot joins it to the title on one line; in a tile it sits on a line of its own, without one */
    .pg-stat-sub[b-d5fzwy9heq]::before {
        content: "· ";
    }

.pg-stat-desc[b-d5fzwy9heq] {
    font-size: var(--desc-font);
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0;
}

.pg-stat-detail[b-d5fzwy9heq] {
    font-size: var(--desc-font);
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 4px 0 0;
}

    .pg-stat-detail strong[b-d5fzwy9heq] {
        color: var(--ink);
        font-weight: 600;
    }

/* ===== Progress ring (same as the module-selection ring) ===== */
.pg-ring[b-d5fzwy9heq] {
    --ring-inner: calc(var(--ring-size) - 2 * var(--ring-width));
    width: var(--ring-size);
    height: var(--ring-size);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--ring-color) calc(var(--progress) * 3.6deg), var(--ring-track) 0deg 360deg);
    flex-shrink: 0;
}

    .pg-ring[b-d5fzwy9heq]::after {
        content: "";
        position: absolute;
        width: var(--ring-inner);
        height: var(--ring-inner);
        background: #fff;
        border-radius: 50%;
    }

.pg-ring-value[b-d5fzwy9heq] {
    position: relative;
    z-index: 1;
    font-size: var(--ring-font);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    background-color: var(--ring-color);
    padding: var(--pill-pad);
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* ===== Title with an info icon (mouse/trackpad only, see below) ===== */
.pg-title-row[b-d5fzwy9heq] {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The shared InfoTip (icon, popover and placement are the component's and js/info-tip.js's); this host only hides it
   on touch screens, where the disclosure below is the path to the same text */
.pg-tip-host[b-d5fzwy9heq] {
    display: none;
    flex-shrink: 0;
}

/* ===== "How it works" disclosure (touch: tap to open, no hover needed) ===== */
.pg-info[b-d5fzwy9heq],
.pg-what[b-d5fzwy9heq] {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

    .pg-info summary[b-d5fzwy9heq],
    .pg-what summary[b-d5fzwy9heq] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 32px;
        color: var(--brand);
        font-weight: 600;
        cursor: pointer;
        list-style: none;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

        .pg-info summary[b-d5fzwy9heq]::-webkit-details-marker,
        .pg-what summary[b-d5fzwy9heq]::-webkit-details-marker {
            display: none;
        }

        .pg-info summary[b-d5fzwy9heq]::after,
        .pg-what summary[b-d5fzwy9heq]::after {
            content: "";
            width: 7px;
            height: 7px;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: translateY(-2px) rotate(45deg);
            transition: transform 0.2s ease;
        }

    .pg-info[open] summary[b-d5fzwy9heq]::after,
    .pg-what[open] summary[b-d5fzwy9heq]::after {
        transform: translateY(2px) rotate(-135deg);
    }

    .pg-info summary:focus-visible[b-d5fzwy9heq],
    .pg-what summary:focus-visible[b-d5fzwy9heq] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
        border-radius: 4px;
    }

    .pg-info p[b-d5fzwy9heq],
    .pg-what p[b-d5fzwy9heq] {
        margin: 6px 0 0;
    }

/* The steps of "how Eigensinn works" */
.pg-info-steps[b-d5fzwy9heq] {
    margin: 8px 0 0;
    padding-left: 1.4em;
    text-align: left;
}

    .pg-info-steps li[b-d5fzwy9heq] {
        margin-top: 4px;
        padding-left: 2px;
    }

/* Only the tile layout (≤ 900px below) uses these two: wide screens print the
   description in the card itself, and keep "how it works" inside the card. */
.pg-what[b-d5fzwy9heq],
.pg-info.is-wide[b-d5fzwy9heq] {
    display: none;
}

.pg-what[b-d5fzwy9heq] {
    order: 9;
}

/* ===== Teacher comment ===== */
.pg-comment-card[b-d5fzwy9heq] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* The student's view of a comment: a note in the yellow, first on the page */
.pg-comment-card.is-note[b-d5fzwy9heq] {
    background: #fef9e7;
    border-color: #f5c518;
}

.pg-comment-head[b-d5fzwy9heq] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pg-comment-icon[b-d5fzwy9heq] {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.pg-comment-text[b-d5fzwy9heq] {
    margin: 0;
    font-size: var(--body-font);
    line-height: 1.6;
    color: var(--ink);
    white-space: pre-line;
    overflow-wrap: anywhere;
    user-select: text;
}

.pg-comment-editor[b-d5fzwy9heq] {
    display: flex;
    flex-direction: column;
    border: 1px solid #dfe2e8;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .pg-comment-editor:focus-within[b-d5fzwy9heq] {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.12);
    }

.pg-comment-input[b-d5fzwy9heq] {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px 4px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 14px;
    resize: vertical;
    user-select: text;
}

    .pg-comment-input:focus[b-d5fzwy9heq] {
        outline: none;
    }

.pg-comment-footer[b-d5fzwy9heq] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 14px 10px;
    font-size: 13px;
    color: var(--ink-muted);
}

.pg-char-counter[b-d5fzwy9heq] {
    font-variant-numeric: tabular-nums;
}

/* PremiumPrompt sizes itself with flex: 1 1 360px expecting a horizontal
   row (see PremiumPrompt.razor.css) — .pg-page is a column flex container,
   so without this wrapper that flex-basis stretches its height instead. */
.pg-premium-row[b-d5fzwy9heq] {
    display: flex;
}

/* ===== Sections ===== */
.pg-section[b-d5fzwy9heq] {
    display: flex;
    flex-direction: column;
    gap: var(--card-gap);
}

.pg-section-title[b-d5fzwy9heq] {
    font-size: var(--section-title-font);
    line-height: 1.25;
    font-weight: 600;
    margin: 0;
    color: var(--ink);
}

.pg-section-body[b-d5fzwy9heq] {
    display: flex;
    flex-direction: column;
    gap: var(--card-gap);
}

/* Grammar and Words: each behind its own header button, closed at first */
.pg-section:not(.is-open) .pg-section-body[b-d5fzwy9heq] {
    display: none;
}

.pg-section-toggle[b-d5fzwy9heq] {
    display: flex;
    appearance: none;
    -webkit-appearance: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 14px var(--card-pad-x);
    font: inherit;
    text-align: left;
    color: var(--ink);
    /* Tinted with the brand's soft pair, so the two headers read as a different
       kind of card than the white stat cards around them */
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: var(--card-radius);
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .pg-section.is-open .pg-section-toggle[b-d5fzwy9heq] {
        background: #e8eeff;
    }

    /* After the open state and as specific, so pressing an open header shows too */
    .pg-section .pg-section-toggle:active[b-d5fzwy9heq] {
        background: #dbe4ff;
        transition-duration: 0s;
    }

    .pg-section-toggle:focus-visible[b-d5fzwy9heq] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.pg-section-toggle-text[b-d5fzwy9heq] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pg-section-sub[b-d5fzwy9heq] {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--ink-soft);
}

.pg-section-chevron[b-d5fzwy9heq] {
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.pg-section.is-open .pg-section-chevron[b-d5fzwy9heq] {
    transform: translateY(2px) rotate(-135deg);
}

.pg-detail[b-d5fzwy9heq] {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pg-detail-head[b-d5fzwy9heq] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ===== Per-theme results: horizontal bars, labelled directly =====
   One series per chart, so no legend; every value is printed as text
   (the yellow sits below 3:1 on white, so the numbers carry it). */
.pg-bars[b-d5fzwy9heq] {
    --bar-color: #92cd4d;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    /* Both lists count correct answers, so both are the green of "correct" */
    .pg-bars.is-grammar[b-d5fzwy9heq],
    .pg-bars.is-words[b-d5fzwy9heq] {
        --bar-color: #92cd4d;
    }

.pg-bar-head[b-d5fzwy9heq] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.pg-bar-name[b-d5fzwy9heq] {
    font-size: var(--desc-font);
    line-height: 1.35;
    font-weight: 500;
    color: var(--ink);
    min-width: 0;
    overflow-wrap: anywhere;
}

.pg-bar-value[b-d5fzwy9heq] {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

    .pg-bar-value strong[b-d5fzwy9heq] {
        color: var(--ink);
        font-weight: 600;
    }

.pg-bar-track[b-d5fzwy9heq] {
    height: 10px;
    background: #f1f2f5;
    border-radius: 5px;
    overflow: hidden;
}

.pg-bar-fill[b-d5fzwy9heq] {
    height: 100%;
    min-width: 4px;
    background: var(--bar-color);
    border-radius: 5px;
}

/* ===== Frequent mistakes =====
   The tiles, grid and phone strip are MistakeList's shared styles in
   wwwroot/css/lessons.css, scoped to .pg-page there; this page only
   supplies the tokens they read (--surface, --card-pad-x). */
.pg-empty[b-d5fzwy9heq] {
    margin: 0;
    font-size: var(--desc-font);
    color: var(--ink-muted);
}

/* ===== Buttons ===== */
/* Same pill as NavigationButtons.razor.css (.nav-left): white, blue 2px
   outline, filled on hover (mouse only) */
.pg-nav-btn[b-d5fzwy9heq] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 160px;
    height: 46px;
    padding: 0 28px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: #4d7cfe;
    background: #fff;
    border: 2px solid #4d7cfe;
    border-radius: 23px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

    /* Press feedback for touch, where there is no hover: fills instantly (no
       transition, so even a quick tap shows it) and sinks slightly. */
    .pg-nav-btn:active:not(:disabled)[b-d5fzwy9heq] {
        transform: scale(0.97);
        color: #fff;
        background: #4d7cfe;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transition-duration: 0s;
    }

    .pg-nav-btn:focus-visible[b-d5fzwy9heq] {
        outline: 2px solid #4d7cfe;
        outline-offset: 2px;
    }

    .pg-nav-btn:disabled[b-d5fzwy9heq] {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* "Show all themes" for a list that is only cut short on phones */
    .pg-nav-btn.is-phone-only[b-d5fzwy9heq] {
        display: none;
    }

/* ===== Loading ===== */
.module-loading-container[b-d5fzwy9heq] {
    text-align: center;
    padding: 3rem;
}

    .module-loading-container p[b-d5fzwy9heq] {
        color: #888;
        font-size: 15px;
        margin-top: 0.5rem;
    }

.loading-spinner[b-d5fzwy9heq] {
    display: inline-block;
    width: 70px;
    height: 70px;
    margin: 20px auto;
    position: relative;
}

    .loading-spinner[b-d5fzwy9heq]::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 4px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        border-top: 4px solid #000;
        animation: spin-b-d5fzwy9heq 0.85s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
        box-sizing: border-box;
    }

    .loading-spinner[b-d5fzwy9heq]::before {
        content: "";
        position: absolute;
        width: 30px;
        height: 30px;
        top: 52%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: url('/favicon.svg') no-repeat center center;
        background-size: contain;
        z-index: 5;
    }

@keyframes spin-b-d5fzwy9heq {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== Hover (mouse/trackpad only — see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .pg-info summary:hover[b-d5fzwy9heq],
    .pg-what summary:hover[b-d5fzwy9heq] {
        color: #3a6aee;
    }

    .pg-section-toggle:hover:not(:active)[b-d5fzwy9heq] {
        background: #e8eeff;
        border-color: #a9bfff;
    }

    .pg-nav-btn:hover:not(:disabled)[b-d5fzwy9heq] {
        color: #fff;
        background: #4d7cfe;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    /* Info: the icon with its popover for mouse users; the disclosure is the touch path */
    .pg-tip-host[b-d5fzwy9heq] {
        display: inline-flex;
    }

    .pg-info[b-d5fzwy9heq] {
        display: none;
    }
}

/* ===== Laptop ===== */
@media (max-width: 1500px) {
    .pg-page[b-d5fzwy9heq] {
        --card-pad: 20px 22px;
        --card-pad-x: 22px;
        --ring-size: 82px;
        --ring-width: 6px;
        --ring-font: 15px;
        --pill-pad: 0.2rem 0.6rem;
        --section-title-font: 21px;
        --card-title-font: 18px;
    }
}

/* Many themes on a wide content area: two columns of bars */
@media (min-width: 1101px) {
    .pg-bars.is-many[b-d5fzwy9heq] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
        row-gap: 16px;
    }

        /* A wrapped name in one column must not shift that row's bars */
        .pg-bars.is-many .pg-bar-row[b-d5fzwy9heq] {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }
}

/* ===== Tablet (≤ 992px): full-width nav buttons, like NavigationButtons ===== */
@media (max-width: 992px) {
    .pg-nav-btn[b-d5fzwy9heq] {
        align-self: stretch;
        width: 100%;
        height: 48px;
        padding: 0 20px;
        font-size: 15px;
        border-radius: 24px;
        box-shadow: none;
    }
}

/* ===== Tablet and phone (≤ 900px): the tile layout =====
   The hero lies across the top, ring on the left. Under it the stats are tiles
   two to a row: ring on top, title and figures centred under it, and the
   sentence that explains the title behind "Что это?". */
@media (max-width: 900px) {
    .pg-overview[b-d5fzwy9heq] {
        grid-template-columns: minmax(0, 1fr);
    }

    .pg-overview .pg-tiles[b-d5fzwy9heq] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pg-hero[b-d5fzwy9heq] {
        --ring-size: 104px;
        --ring-width: 8px;
        --ring-font: 17px;
        --pill-pad: 0.22rem 0.7rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 18px;
        text-align: left;
    }

        .pg-hero .pg-stat-text[b-d5fzwy9heq] {
            align-items: flex-start;
        }

    .pg-stat.is-tile[b-d5fzwy9heq] {
        --ring-size: 76px;
        --ring-width: 6px;
        --ring-font: 13px;
        --pill-pad: 0.14rem 0.5rem;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

        .pg-stat.is-tile .pg-stat-text[b-d5fzwy9heq] {
            flex: 1 1 auto;
            align-items: center;
            width: 100%;
        }

        /* Two tiles of unequal text: their "Что это?" still line up at the bottom */
        .pg-stat.is-tile .pg-what[b-d5fzwy9heq] {
            margin-top: auto;
            padding-top: 6px;
        }

        .pg-stat.is-tile .pg-title-row[b-d5fzwy9heq] {
            justify-content: center;
            flex-wrap: wrap;
        }

        .pg-stat.is-tile .pg-stat-desc[b-d5fzwy9heq] {
            display: none;
        }

        /* Half-width cards: a size down, so a title keeps to two lines */
        .pg-stat.is-tile .pg-stat-title[b-d5fzwy9heq] {
            font-size: 16px;
        }

        .pg-stat.is-tile .pg-stat-detail[b-d5fzwy9heq] {
            margin-top: 0;
            font-size: 14px;
            line-height: 1.4;
        }

        .pg-stat.is-tile .pg-stat-sub[b-d5fzwy9heq] {
            display: block;
            font-size: 13px;
        }

            .pg-stat.is-tile .pg-stat-sub[b-d5fzwy9heq]::before {
                content: none;
            }

    .pg-what[b-d5fzwy9heq] {
        display: block;
    }

    /* "How Eigensinn works" leaves the half-width tile, where it wrapped to a word or two a line,
       for a full-width row of its own under the two tiles (for mouse users too: there is room). */
    .pg-stat.is-tile .pg-info[b-d5fzwy9heq] {
        display: none;
    }

    .pg-info.is-wide[b-d5fzwy9heq] {
        display: block;
        margin-top: 0;
        padding: 6px var(--card-pad-x) 10px;
        font-size: var(--desc-font);
        text-align: left;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--card-radius);
    }

        .pg-info.is-wide summary[b-d5fzwy9heq] {
            display: flex;
            justify-content: space-between;
            min-height: 40px;
        }

    /* A third tile alone on its row lies flat, like the hero */
    .pg-tiles > .pg-stat.is-tile:last-child:nth-child(odd)[b-d5fzwy9heq] {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 16px;
        text-align: left;
    }

        .pg-tiles > .pg-stat.is-tile:last-child:nth-child(odd) .pg-stat-text[b-d5fzwy9heq] {
            flex: 1 1 auto;
            align-items: flex-start;
            width: auto;
        }
}

@media (max-width: 768px) {
    .pg-page[b-d5fzwy9heq] {
        --page-margin-top: 12px;
        --card-radius: 18px;
        --card-pad: 18px;
        --card-pad-x: 18px;
        --card-gap: 14px;
        padding: 0 0 16px;
    }

    /* Theme results: the first four until "show all" */
    .pg-bars.is-collapsed .pg-bar-row:nth-child(n+5)[b-d5fzwy9heq] {
        display: none;
    }

    .pg-nav-btn.is-phone-only[b-d5fzwy9heq] {
        display: inline-flex;
    }
}

/* ===== Phones (≤ 480px, iPhone 16 = 393px) — text stays at 15–18px ===== */
@media (max-width: 480px) {
    .pg-page[b-d5fzwy9heq] {
        --page-margin-top: 4px;
        --card-radius: 16px;
        --card-pad: 16px;
        --card-pad-x: 16px;
        --card-gap: 12px;
        --ring-size: 64px;
        --ring-width: 5px;
        --ring-font: 12px;
        --pill-pad: 0.12rem 0.4rem;
        --section-title-font: 20px;
        --card-title-font: 17px;
        --desc-font: 15px;
        --body-font: 16px;
    }

    .pg-stat[b-d5fzwy9heq] {
        gap: 14px;
    }

    .pg-hero[b-d5fzwy9heq] {
        --ring-size: 92px;
        --ring-width: 7px;
        --ring-font: 15px;
        --pill-pad: 0.18rem 0.6rem;
        gap: 14px;
    }

    .pg-stat.is-tile[b-d5fzwy9heq] {
        --ring-size: 72px;
        gap: 8px;
    }

    .module-loading-container[b-d5fzwy9heq] {
        padding: 2rem 1rem;
    }
}

/* ===== Narrow phones (≤ 360px) ===== */
@media (max-width: 360px) {
    .pg-page[b-d5fzwy9heq] {
        --card-pad: 14px;
        --card-pad-x: 14px;
        --ring-size: 58px;
        --ring-font: 11px;
        --pill-pad: 0.1rem 0.35rem;
        --card-title-font: 16px;
        --desc-font: 14px;
    }
}
/* /Pages/Course/Test.razor.rz.scp.css */
/* ===== Tokens - same palette and scale as ModuleSelection / Progress ===== */
.test-page[b-izd3pjfpfc] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --brand: #4d7cfe;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --done: #92cd4d;
    /* --page-max comes from LeftSideNavLayout */
    --page-margin-top: 0px;
    --card-radius: 20px;
    --card-pad: 24px 26px;
    --card-gap: 18px;
    --section-gap: 26px;
    --title-font: 24px;
    --section-title-font: 19px;
    --desc-font: 15px;
    --option-font: 16px;
    --mark-size: 24px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    max-width: var(--page-max);
    margin: var(--page-margin-top) auto 0;
    padding: 0 1rem 32px;
    display: flex;
    flex-direction: column;
    gap: var(--card-gap);
    text-align: left;
    user-select: none;
    -webkit-text-size-adjust: 100%;
}

/* ===== Card (same surface as a module card) ===== */
.test-card[b-izd3pjfpfc] {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
    padding: var(--card-pad);
    min-width: 0;
}

/* ===== Header card: eyebrow + title, like the lesson-page header ===== */
.test-hero[b-izd3pjfpfc] {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.test-hero-text[b-izd3pjfpfc] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.test-eyebrow[b-izd3pjfpfc] {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
}

.test-title[b-izd3pjfpfc] {
    margin: 0;
    font-size: var(--title-font);
    line-height: 1.25;
    font-weight: 600;
    color: var(--ink);
}

.test-description[b-izd3pjfpfc] {
    margin: 0;
    font-size: var(--desc-font);
    line-height: 1.55;
    color: var(--ink-soft);
}

/* ===== How the test goes / what Eigensinn is =====
   Two short numbered lists on a quiet panel, side by side. Phones (≤ 768px below) keep the
   panel closed behind .test-how-toggle. */
.test-how[b-izd3pjfpfc] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 32px;
    padding: 18px 20px;
    background: #f7f8fa;
    border-radius: 14px;
}

.test-how-block[b-izd3pjfpfc] {
    min-width: 0;
}

.test-how-title[b-izd3pjfpfc] {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ink);
}

.test-how-steps[b-izd3pjfpfc] {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: how;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

    .test-how-steps li[b-izd3pjfpfc] {
        position: relative;
        padding-left: 30px;
        counter-increment: how;
    }

        /* The step's number in a small brand-tinted disc */
        .test-how-steps li[b-izd3pjfpfc]::before {
            content: counter(how);
            position: absolute;
            left: 0;
            top: 1px;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
            color: var(--brand);
            background: #e8eeff;
            border-radius: 50%;
        }

.test-how-more[b-izd3pjfpfc] {
    margin: 8px 0 0;
    padding-left: 30px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-muted);
}

/* Phones only: opens the panel above. Same look as .test-locked-toggle. */
.test-how-toggle[b-izd3pjfpfc] {
    display: none;
    appearance: none;
    -webkit-appearance: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    text-align: left;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: 14px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .test-how-toggle[b-izd3pjfpfc]::after {
        content: "";
        flex: none;
        width: 8px;
        height: 8px;
        margin-right: 4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 0.2s ease;
    }

    .test-how-toggle[aria-expanded="true"][b-izd3pjfpfc]::after {
        transform: translateY(2px) rotate(-135deg);
    }

    .test-how-toggle:active[b-izd3pjfpfc] {
        background: #e8eeff;
    }

    .test-how-toggle:focus-visible[b-izd3pjfpfc] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.test-group[b-izd3pjfpfc] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* The label, and at the other end of its row what the review holds for the chosen
   section. Where the two do not fit on one line the review line goes under the label. */
.test-group-head[b-izd3pjfpfc] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
}

.test-group-label[b-izd3pjfpfc] {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
}

/* ===== Selectable options (basis, themes, error filters) ===== */
.test-basis-grid[b-izd3pjfpfc],
.test-options-grid[b-izd3pjfpfc] {
    display: grid;
    gap: 10px;
}

/* Two-choice grids span the card, so the page reads as one column of
   full-width blocks instead of a narrow strip on the left */
.test-basis-grid[b-izd3pjfpfc],
.test-options-grid.two-up[b-izd3pjfpfc] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.test-options-grid[b-izd3pjfpfc] {
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}

.test-option[b-izd3pjfpfc] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    font: inherit;
    font-size: var(--option-font);
    line-height: 1.3;
    font-weight: 500;
    text-align: left;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .test-option.basis-option[b-izd3pjfpfc] {
        min-height: 76px;
        padding: 14px 18px;
        font-size: calc(var(--option-font) + 1px);
        font-weight: 600;
    }

    .test-option:active:not(:disabled)[b-izd3pjfpfc] {
        background-color: #f3f4f7;
    }

    .test-option:focus-visible[b-izd3pjfpfc] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

.option-label[b-izd3pjfpfc] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.option-sub[b-izd3pjfpfc] {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--ink-soft);
}

/* Status mark: empty circle, green check when selected, dashed when locked
   (the same icons as the lesson rows on the module page) */
.option-mark[b-izd3pjfpfc] {
    width: var(--mark-size);
    height: var(--mark-size);
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #c9cdd4;
    background: #fff;
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.test-option.selected[b-izd3pjfpfc] {
    background-color: var(--brand-soft);
    border-color: var(--brand-line);
    font-weight: 600;
}

    .test-option.selected > .option-mark[b-izd3pjfpfc] {
        border: 0;
        background: url('/images/module-select-check.svg') no-repeat center / contain;
    }

.test-option.is-locked[b-izd3pjfpfc] {
    cursor: not-allowed;
    color: var(--ink-muted);
    background: #fafbfc;
}

    .test-option.is-locked > .option-mark[b-izd3pjfpfc] {
        border-style: dashed;
    }

.test-locked-note[b-izd3pjfpfc] {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-muted);
}

/* Phones only (shown from ≤ 768px below): opens the locked themes, which are
   left out of the list there until asked for. */
.test-locked-toggle[b-izd3pjfpfc] {
    display: none;
    appearance: none;
    -webkit-appearance: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    text-align: left;
    color: var(--ink-soft);
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .test-locked-toggle[b-izd3pjfpfc]::after {
        content: "";
        flex: none;
        width: 8px;
        height: 8px;
        margin-right: 4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 0.2s ease;
    }

    .test-locked-toggle[aria-expanded="true"][b-izd3pjfpfc]::after {
        transform: translateY(2px) rotate(-135deg);
    }

    .test-locked-toggle:active[b-izd3pjfpfc] {
        background: #eceef3;
    }

    .test-locked-toggle:focus-visible[b-izd3pjfpfc] {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

/* What waits for the student today in the chosen section (mistake repetition):
   a quiet status line under the two section buttons, with the brand dot. */
.test-review-line[b-izd3pjfpfc] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink-soft);
}

    .test-review-line[b-izd3pjfpfc]::before {
        content: "";
        flex: none;
        width: 8px;
        height: 8px;
        margin-top: calc((1.5em - 8px) / 2);
        border-radius: 50%;
        background: var(--brand);
    }

/* ===== Buttons: the outlined pills of NavigationButtons and the lesson
   page. Colours keep the lesson pages' meaning: blue = back / settings,
   green = go on, red = reset. is-filled marks the main action. ===== */
.test-pill[b-izd3pjfpfc] {
    --btn-color: var(--brand);
    --btn-ink: var(--brand);
    --btn-fill-ink: #fff;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    height: 46px;
    padding: 0 28px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: var(--btn-ink);
    background: #fff;
    border: 2px solid var(--btn-color);
    border-radius: 23px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease, filter 0.15s ease;
}

    .test-pill.is-green[b-izd3pjfpfc] {
        --btn-color: #92cd4d;
        --btn-ink: #5d8f22;
    }

    .test-pill.is-red[b-izd3pjfpfc] {
        --btn-color: #ff4245;
        --btn-ink: #d93639;
    }

    .test-pill.is-premium[b-izd3pjfpfc] {
        --btn-color: #edc829;
        --btn-ink: #8a6500;
        --btn-fill-ink: #1a1a1a;
    }

    .test-pill.is-filled[b-izd3pjfpfc] {
        color: var(--btn-fill-ink);
        background: var(--btn-color);
    }

    /* Secondary actions (select / reset all): a size smaller */
    .test-pill.is-sm[b-izd3pjfpfc] {
        min-width: 0;
        height: 38px;
        padding: 0 18px;
        font-size: 14px;
        border-radius: 19px;
    }

    /* Stroked in currentColor, so it takes the text colour in every state */
    .test-pill-icon[b-izd3pjfpfc] {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    /* Press feedback for touch, where there is no hover: fills instantly (no
       transition, so even a quick tap shows it) and sinks slightly. */
    .test-pill:active:not(:disabled)[b-izd3pjfpfc] {
        transform: scale(0.97);
        color: var(--btn-fill-ink);
        background: var(--btn-color);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transition-duration: 0s;
    }

        /* Already filled: filling again would change nothing, so it darkens */
        .test-pill.is-filled:active:not(:disabled)[b-izd3pjfpfc] {
            filter: brightness(0.9);
        }

    .test-pill:focus-visible[b-izd3pjfpfc] {
        outline: 2px solid var(--btn-color);
        outline-offset: 2px;
    }

    .test-pill:disabled[b-izd3pjfpfc] {
        opacity: 0.45;
        cursor: not-allowed;
        box-shadow: none;
    }

/* Footer row, like the settings footer: the main action sits at the right
   end, the secondary one (or the Premium prompt) fills in before it */
.test-hero-actions[b-izd3pjfpfc] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 20px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* ===== Settings card ===== */
.test-settings[b-izd3pjfpfc] {
    display: flex;
    flex-direction: column;
    animation: test-settings-in-b-izd3pjfpfc 0.25s ease;
}

@keyframes test-settings-in-b-izd3pjfpfc {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.test-settings-section[b-izd3pjfpfc] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: var(--section-gap) 0;
    border-top: 1px solid var(--line);
}

    .test-settings-section:first-child[b-izd3pjfpfc] {
        padding-top: 0;
        border-top: 0;
    }

.test-settings-header[b-izd3pjfpfc] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.test-settings-title[b-izd3pjfpfc] {
    margin: 0;
    font-size: var(--section-title-font);
    line-height: 1.25;
    font-weight: 600;
    color: var(--ink);
}

.test-settings-hint[b-izd3pjfpfc] {
    margin: 0;
    max-width: 620px;
    font-size: var(--desc-font);
    line-height: 1.5;
    color: var(--ink-soft);
}

/* ===== Task-count slider ===== */
.test-slider-row[b-izd3pjfpfc] {
    display: flex;
    align-items: center;
    gap: 14px;
}

.test-slider-track[b-izd3pjfpfc] {
    flex: 1;
    min-width: 0;
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: border-color 0.2s ease;
}

    .test-slider-track:focus-within[b-izd3pjfpfc] {
        border-color: var(--brand-line);
    }

.test-slider[b-izd3pjfpfc] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    margin: 0;
    background: var(--line);
    border-radius: 3px;
    position: relative;
    outline: none;
}

    .test-slider[b-izd3pjfpfc]::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 6px;
        width: var(--percent, 0%);
        background: linear-gradient(90deg, #92cd4d, #b6e07e);
        border-radius: 3px;
        pointer-events: none;
    }

    .test-slider[b-izd3pjfpfc]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 26px;
        height: 26px;
        border: 3px solid #fff;
        border-radius: 50%;
        background: var(--done);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(20, 30, 60, 0.2);
        position: relative;
        z-index: 1;
        transition: transform 0.15s ease;
    }

    .test-slider[b-izd3pjfpfc]::-moz-range-track {
        height: 6px;
        background: var(--line);
        border-radius: 3px;
        border: none;
    }

    .test-slider[b-izd3pjfpfc]::-moz-range-progress {
        height: 6px;
        background: var(--done);
        border-radius: 3px;
    }

    .test-slider[b-izd3pjfpfc]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border: 3px solid #fff;
        border-radius: 50%;
        background: var(--done);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(20, 30, 60, 0.2);
        transition: transform 0.15s ease;
    }

    .test-slider:active[b-izd3pjfpfc]::-webkit-slider-thumb {
        transform: scale(1.1);
    }

/* Value in the same coloured pill as the module progress rings */
.test-slider-value[b-izd3pjfpfc] {
    flex-shrink: 0;
    min-width: 64px;
    padding: 6px 14px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: #fff;
    background-color: var(--done);
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-variant-numeric: tabular-nums;
}

/* ===== Settings footer: select / reset (small) left, close / start right ===== */
.test-settings-actions[b-izd3pjfpfc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: var(--section-gap);
    border-top: 1px solid var(--line);
}

.test-settings-actions-group[b-izd3pjfpfc] {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

    .test-settings-actions-group.is-secondary[b-izd3pjfpfc] {
        gap: 10px;
    }

/* ===== Hover (mouse/trackpad only - see CLAUDE.md) ===== */
@media (hover: hover) and (pointer: fine) {
    .test-option:hover:not(:disabled)[b-izd3pjfpfc] {
        border-color: #dfe3ea;
        background-color: #fafbfc;
    }

    .test-option.selected:hover:not(:disabled)[b-izd3pjfpfc] {
        background-color: #eaf0ff;
        border-color: var(--brand-line);
    }

    .test-option:hover:not(:disabled) > .option-mark[b-izd3pjfpfc] {
        transform: scale(1.08);
    }

    .test-pill:hover:not(:disabled)[b-izd3pjfpfc] {
        color: var(--btn-fill-ink);
        background: var(--btn-color);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

        .test-pill:hover:not(:disabled) .test-pill-icon[b-izd3pjfpfc] {
            transform: rotate(45deg);
        }

}

@media (prefers-reduced-motion: reduce) {
    .test-settings[b-izd3pjfpfc],
}

/* ===== Laptop ===== */
@media (max-width: 1500px) {
    .test-page[b-izd3pjfpfc] {
        --card-pad: 22px 24px;
        --title-font: 22px;
        --section-title-font: 18px;
    }
}

/* ===== Tablet (≤ 992px) - stack like NavigationButtons: the go-on action
   on top, full width; select / reset stay side by side below ===== */
@media (max-width: 992px) {
    .test-settings-actions[b-izd3pjfpfc],
    .test-settings-actions-group:not(.is-secondary)[b-izd3pjfpfc] {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 14px;
    }

    .test-settings-actions-group.is-secondary[b-izd3pjfpfc] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .test-settings-actions .test-pill[b-izd3pjfpfc] {
        width: 100%;
    }

        .test-settings-actions .test-pill:not(.is-sm)[b-izd3pjfpfc] {
            height: 48px;
            padding: 0 20px;
            font-size: 15px;
            border-radius: 24px;
            box-shadow: none;
        }
}

/* ===== Tablet (≤ 768px) ===== */
@media (max-width: 768px) {
    .test-page[b-izd3pjfpfc] {
        --page-margin-top: 12px;
        --card-radius: 18px;
        --card-pad: 20px 18px;
        --card-gap: 14px;
        --section-gap: 22px;
        padding: 0 0 16px;
    }

    /* "How the test works": behind its toggle, one list under the other */
    .test-how-toggle[b-izd3pjfpfc] {
        display: flex;
    }

    .test-how[b-izd3pjfpfc] {
        grid-template-columns: minmax(0, 1fr);
        margin-top: -12px;
        padding: 16px;
    }

        .test-how:not(.is-open)[b-izd3pjfpfc] {
            display: none;
        }

    /* Locked themes: behind their toggle, with the note that explains them */
    .test-locked-toggle[b-izd3pjfpfc] {
        display: flex;
    }

    /* (a list with nothing unlocked would be an empty gap: it goes as a whole) */
    .test-options-grid:not(.show-locked) .test-option.is-locked[b-izd3pjfpfc],
    .test-options-grid.all-locked:not(.show-locked)[b-izd3pjfpfc],
    .test-locked-note:not(.is-open)[b-izd3pjfpfc] {
        display: none;
    }

    /* Stacked with the main action on top, as in the settings footer */
    .test-hero-actions[b-izd3pjfpfc] {
        flex-direction: column-reverse;
        align-items: stretch;
        padding-top: 20px;
    }

        .test-hero-actions .test-pill[b-izd3pjfpfc] {
            width: 100%;
        }

}

/* ===== Phones (≤ 480px, iPhone 16 = 393px) - text stays at 15–18px ===== */
@media (max-width: 480px) {
    .test-page[b-izd3pjfpfc] {
        --page-margin-top: 4px;
        --card-radius: 16px;
        --card-pad: 18px 16px;
        --card-gap: 12px;
        --title-font: 22px;
        --section-title-font: 18px;
        --option-font: 17px;
    }

    .test-basis-grid[b-izd3pjfpfc],
    .test-options-grid.two-up[b-izd3pjfpfc] {
        grid-template-columns: 1fr;
    }

    .test-slider-value[b-izd3pjfpfc] {
        min-width: 56px;
        padding: 6px 12px;
    }

    .test-settings-actions[b-izd3pjfpfc],
    .test-settings-actions-group[b-izd3pjfpfc] {
        gap: 12px;
    }

    /* Full-width buttons at the common 48px touch height (Apple's minimum is
       44pt), as in NavigationButtons */
    .test-hero-actions .test-pill[b-izd3pjfpfc],
    .test-settings-actions .test-pill:not(.is-sm)[b-izd3pjfpfc] {
        height: 48px;
        padding: 0 20px;
        font-size: 15px;
        border-radius: 24px;
        box-shadow: none;
    }

    .test-pill.is-sm[b-izd3pjfpfc] {
        height: 44px;
        border-radius: 22px;
    }
}

/* ===== Narrow phones (≤ 360px) ===== */
@media (max-width: 360px) {
    .test-page[b-izd3pjfpfc] {
        --card-pad: 16px 14px;
        --title-font: 20px;
        --option-font: 16px;
    }
}
/* /Pages/Course/Tutorial.razor.rz.scp.css */
/* ===== Tokens: the Progress page's palette ===== */
.tut-page[b-bwivs2i1a5] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-dark: #3a63d8;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --green: #92cd4d;
    --right: #5d8f22;
    --right-soft: #f4faec;
    --wrong: #d93639;
    --wrong-soft: #fff4f4;
    --yellow: #f5c518;
    /* --page-max comes from LeftSideNavLayout; the page is narrower: it is read, not scanned */
    max-width: min(var(--page-max), 980px);
    margin: 0 auto;
    padding: 0 1rem 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    text-align: left;
    -webkit-text-size-adjust: 100%;
    /* The page lays itself out by the width it gets, whatever the side menu leaves it */
    container-type: inline-size;
}

.tut-title[b-bwivs2i1a5] {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.tut-lead[b-bwivs2i1a5] {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* Icons are drawn with lines; their paths come as markup, so the rules sit on the svg and are inherited */
.tut-icon[b-bwivs2i1a5] {
    flex: none;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== The parts: pick any ===== */
.tut-parts[b-bwivs2i1a5] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.tut-part[b-bwivs2i1a5] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 10px 2px;
    font: inherit;
    text-align: center;
    color: var(--ink-soft);
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 16px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tut-part-text[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
}

.tut-part-name[b-bwivs2i1a5] {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}

.tut-part-about[b-bwivs2i1a5] {
    display: none;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink-muted);
}

.tut-part .tut-icon[b-bwivs2i1a5] {
    color: var(--brand);
}

.tut-part.is-seen[b-bwivs2i1a5] {
    border-color: var(--brand-line);
}

/* The tick of a part already looked at */
.tut-part-seen[b-bwivs2i1a5] {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    fill: var(--green);
}

    .tut-part-seen path[b-bwivs2i1a5] {
        fill: none;
        stroke: #fff;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.tut-part.is-current[b-bwivs2i1a5] {
    background: var(--brand-soft);
    border-color: var(--brand);
}

    .tut-part.is-current .tut-part-name[b-bwivs2i1a5] {
        color: var(--brand);
    }

@media (hover: hover) and (pointer: fine) {
    .tut-part:not(.is-current):hover[b-bwivs2i1a5] {
        border-color: var(--brand);
    }
}

.tut-part:active[b-bwivs2i1a5] {
    background: var(--brand-line);
    border-color: var(--brand);
    transform: scale(0.97);
    transition-duration: 0s;
}

.tut-part:focus-visible[b-bwivs2i1a5],
.tut-btn:focus-visible[b-bwivs2i1a5],
.tut-arrow:focus-visible[b-bwivs2i1a5],
.tut-spot:focus-visible[b-bwivs2i1a5],
.tut-screen button:focus-visible[b-bwivs2i1a5] {
    outline: 3px solid rgba(77, 124, 254, 0.35);
    outline-offset: 2px;
}

@container (min-width: 860px) {
    .tut-parts[b-bwivs2i1a5] {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .tut-part[b-bwivs2i1a5] {
        gap: 8px;
        padding: 14px 8px;
    }

    .tut-part-name[b-bwivs2i1a5] {
        font-size: 14px;
    }

    .tut-part-about[b-bwivs2i1a5] {
        display: block;
    }

    /* The list of parts stays on screen above the part that was picked */
    .tut-stage[b-bwivs2i1a5] {
        scroll-margin-top: 230px;
    }
}

/* ===== The part: words, the screen, the way on ===== */
.tut-stage[b-bwivs2i1a5] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
    outline: none;
    /* It is scrolled to when a part is picked: clear of the page header */
    scroll-margin-top: 88px;
    animation: tut-in-b-bwivs2i1a5 0.25s ease;
}

@keyframes tut-in-b-bwivs2i1a5 {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

@container (min-width: 760px) {
    .tut-stage[b-bwivs2i1a5] {
        grid-template-columns: minmax(0, 1fr) 380px;
        grid-template-areas: "text phone" "nav phone";
        grid-template-rows: 1fr auto;
        gap: 24px 36px;
        padding: 30px 32px;
    }

    .tut-text[b-bwivs2i1a5] {
        grid-area: text;
    }

    .tut-phone[b-bwivs2i1a5] {
        grid-area: phone;
    }

    .tut-nav[b-bwivs2i1a5] {
        grid-area: nav;
    }
}

.tut-text p[b-bwivs2i1a5] {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.tut-text .tut-count[b-bwivs2i1a5] {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--brand);
}

.tut-h[b-bwivs2i1a5] {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.tut-text .tut-try[b-bwivs2i1a5] {
    margin: 16px 0 0;
    font-weight: 600;
    color: var(--ink);
}

.tut-link[b-bwivs2i1a5] {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .tut-link:active[b-bwivs2i1a5] {
        color: var(--brand-dark);
    }

/* ===== Buttons: the pill of NavigationButtons ===== */
.tut-btn[b-bwivs2i1a5],
.sc-btn[b-bwivs2i1a5] {
    --btn: var(--brand);
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 46px;
    padding: 0 24px;
    font: 600 15px/1 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--btn);
    background: #fff;
    border: 2px solid var(--btn);
    border-radius: 23px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.tut-btn--green[b-bwivs2i1a5],
.sc-btn--green[b-bwivs2i1a5] {
    --btn: var(--green);
}

/* The buttons of the copies: the same pill, the screen's size */
.sc-btn[b-bwivs2i1a5] {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 20px;
    box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
    .tut-btn:hover:not(:disabled)[b-bwivs2i1a5],
    .sc-btn:hover:not(:disabled)[b-bwivs2i1a5] {
        color: #fff;
        background: var(--btn);
    }

    .tut-btn:hover:not(:disabled)[b-bwivs2i1a5] {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }
}

.tut-btn:active:not(:disabled)[b-bwivs2i1a5],
.sc-btn:active:not(:disabled)[b-bwivs2i1a5] {
    color: #fff;
    background: var(--btn);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transform: scale(0.97);
    transition-duration: 0s;
}

.tut-btn:disabled[b-bwivs2i1a5],
.sc-btn:disabled[b-bwivs2i1a5] {
    opacity: 0.5;
    cursor: not-allowed;
}

.tut-nav[b-bwivs2i1a5] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* ===== The phone ===== */
.tut-phone[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(20, 30, 60, 0.1);
}

.tut-addr[b-bwivs2i1a5] {
    align-self: center;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink-muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tut-screen[b-bwivs2i1a5] {
    min-height: 400px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}

/* ===== The numbered marks ===== */
.tut-hot[b-bwivs2i1a5] {
    position: relative;
}

.is-lit[b-bwivs2i1a5] {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 12px;
}

.tut-spot[b-bwivs2i1a5] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: -10px;
    right: -8px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    /* 12px in the 22px inside the border leaves whole pixels above and below; tabular digits are centred in
       their own width, so a 1 sits in the middle like an 8 */
    font: 700 12px/1 'Montserrat', sans-serif;
    font-variant-numeric: tabular-nums;
    color: var(--brand);
    background: #fff;
    border: 2px solid var(--brand);
    border-radius: 50%;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    animation: tut-pulse-b-bwivs2i1a5 2s ease-out infinite;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

    /* A finger needs more than 26px */
    .tut-spot[b-bwivs2i1a5]::after {
        content: "";
        position: absolute;
        inset: -9px;
        border-radius: 50%;
    }

    .tut-spot.is-on[b-bwivs2i1a5] {
        color: #fff;
        background: var(--brand);
        animation: none;
        box-shadow: 0 0 0 4px rgba(77, 124, 254, 0.22);
    }

@keyframes tut-pulse-b-bwivs2i1a5 {
    0% {
        box-shadow: 0 0 0 0 rgba(77, 124, 254, 0.45);
    }

    70%, 100% {
        box-shadow: 0 0 0 9px rgba(77, 124, 254, 0);
    }
}

@media (hover: hover) and (pointer: fine) {
    .tut-spot:not(.is-on):hover[b-bwivs2i1a5] {
        color: #fff;
        background: var(--brand);
    }
}

.tut-spot:active[b-bwivs2i1a5] {
    color: #fff;
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: scale(0.88);
    transition-duration: 0s;
}

/* Where there is little room (the header, a ring, a line of small words) the mark is small */
.tut-spot--small[b-bwivs2i1a5] {
    top: -9px;
    right: -9px;
    width: 18px;
    height: 18px;
    font-size: 10px;
    animation-name: tut-pulse-small-b-bwivs2i1a5;
}

    .tut-spot--small.is-on[b-bwivs2i1a5] {
        box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.22);
    }

    .tut-spot--small[b-bwivs2i1a5]::after {
        inset: -13px;
    }

@keyframes tut-pulse-small-b-bwivs2i1a5 {
    0% {
        box-shadow: 0 0 0 0 rgba(77, 124, 254, 0.45);
    }

    70%, 100% {
        box-shadow: 0 0 0 5px rgba(77, 124, 254, 0);
    }
}

/* On the corner of a module card's ring, clear of the title beside it */
.tut-spot--ring[b-bwivs2i1a5] {
    top: 6px;
    right: auto;
    left: 6px;
}

/* On the corner of an element of the header */
.tut-spot--corner[b-bwivs2i1a5] {
    top: -10px;
    right: -10px;
}

/* After a task's kind and state, and at the end of its result row: beside the words, not on them */
.sc-les-kind .tut-spot[b-bwivs2i1a5] {
    top: 50%;
    right: -24px;
    margin-top: -9px;
}

.sc-les-row.tut-hot[b-bwivs2i1a5] {
    padding-right: 24px;
}

.sc-les-row .tut-spot[b-bwivs2i1a5] {
    top: 50%;
    right: 0;
    margin-top: -9px;
}

/* At the end of a menu row */
.tut-spot--row[b-bwivs2i1a5] {
    top: 50%;
    right: 10px;
    margin-top: -13px;
}

/* ===== The explanation under the screen ===== */
.tut-sheet[b-bwivs2i1a5] {
    position: sticky;
    bottom: 12px;
    z-index: 4;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
    min-height: 124px;
    margin-top: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(20, 30, 60, 0.12);
}

.tut-sheet-num[b-bwivs2i1a5] {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    font: 700 12px/1 'Montserrat', sans-serif;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: var(--brand);
    border-radius: 50%;
}

.tut-sheet-text p[b-bwivs2i1a5] {
    margin: 0 0 2px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink-soft);
}

.tut-sheet-text .tut-sheet-title[b-bwivs2i1a5] {
    font-size: 15px;
    font-weight: 700;
    line-height: 26px;
    color: var(--ink);
}

.tut-sheet-text .tut-link[b-bwivs2i1a5] {
    display: inline-block;
    padding: 4px 0;
    font-size: 14px;
}

.tut-sheet-nav[b-bwivs2i1a5] {
    grid-column: 1 / -1;
    align-self: end;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-muted);
}

.tut-arrow[b-bwivs2i1a5] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 36px;
    padding: 0;
    color: var(--brand);
    background: #fff;
    border: 2px solid var(--brand);
    border-radius: 18px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

    .tut-arrow .tut-icon[b-bwivs2i1a5] {
        width: 20px;
        height: 20px;
        stroke-width: 2.4;
    }

@media (hover: hover) and (pointer: fine) {
    .tut-arrow:hover[b-bwivs2i1a5] {
        color: #fff;
        background: var(--brand);
    }
}

.tut-arrow:active[b-bwivs2i1a5] {
    color: #fff;
    background: var(--brand);
    transform: scale(0.94);
    transition-duration: 0s;
}

/* ===== The copies of the pages. Everything below lives inside .tut-screen ===== */
.sc-top[b-bwivs2i1a5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.sc-burger[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 22px;
}

    .sc-burger i[b-bwivs2i1a5] {
        height: 3px;
        border-radius: 2px;
        background: var(--ink);
    }

        .sc-burger i:nth-child(2)[b-bwivs2i1a5] {
            background: #ff4245;
        }

        .sc-burger i:nth-child(3)[b-bwivs2i1a5] {
            background: var(--yellow);
        }

.sc-logo[b-bwivs2i1a5] {
    height: 18px;
    width: auto;
}

.sc-help[b-bwivs2i1a5] {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--brand);
    border: 1.5px solid var(--brand);
    border-radius: 14px;
}

    .sc-help.is-lit[b-bwivs2i1a5] {
        border-radius: 14px;
    }

.sc-body[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 12px 16px;
}

    .sc-body p[b-bwivs2i1a5] {
        margin: 0;
    }

/* Cards */
.sc-mod[b-bwivs2i1a5],
.sc-sum[b-bwivs2i1a5],
.sc-les[b-bwivs2i1a5],
.sc-q[b-bwivs2i1a5],
.sc-card[b-bwivs2i1a5],
.sc-tile[b-bwivs2i1a5],
.sc-goal[b-bwivs2i1a5] {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(20, 30, 60, 0.05);
}

/* The ring with its percent */
.sc-ring[b-bwivs2i1a5] {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
}

    .sc-ring svg[b-bwivs2i1a5],
    .sc-goal-ring[b-bwivs2i1a5] {
        fill: none;
        stroke-width: 4px;
        /* The arc starts at 12 o'clock */
        transform: rotate(-90deg);
    }

    .sc-ring svg[b-bwivs2i1a5] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

.sc-ring-track[b-bwivs2i1a5] {
    stroke: #e8eeff;
}

.sc-ring-arc[b-bwivs2i1a5] {
    stroke: var(--brand);
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease, stroke 0.3s ease;
}

.sc-ring-pill[b-bwivs2i1a5] {
    position: relative;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: var(--brand);
    border-radius: 8px;
}

/* --- Modules --- */
.sc-mod-head[b-bwivs2i1a5] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    text-align: left;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 14px;
    -webkit-tap-highlight-color: transparent;
}

button.sc-mod-head[b-bwivs2i1a5] {
    cursor: pointer;
    touch-action: manipulation;
}

    .sc-mod-head > span:first-child[b-bwivs2i1a5] {
        display: inline-flex;
        border-radius: 50%;
    }

.sc-mod-text[b-bwivs2i1a5],
.sc-sub-text[b-bwivs2i1a5],
.sc-sum-text[b-bwivs2i1a5],
.sc-les-text[b-bwivs2i1a5],
.sc-continue-text[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.sc-mod-name[b-bwivs2i1a5],
.sc-les-name[b-bwivs2i1a5] {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.sc-mod-about[b-bwivs2i1a5],
.sc-sub-about[b-bwivs2i1a5],
.sc-sum-about[b-bwivs2i1a5],
.sc-card-about[b-bwivs2i1a5] {
    font-size: 12px;
    line-height: 1.35;
    color: var(--ink-muted);
}

    .sc-sum-about b[b-bwivs2i1a5] {
        color: var(--ink);
    }

.sc-chevron[b-bwivs2i1a5] {
    flex: none;
    width: 8px;
    height: 8px;
    margin: 0 4px 4px;
    border: solid var(--ink-muted);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.sc-mod.is-open .sc-chevron[b-bwivs2i1a5] {
    margin-bottom: -2px;
    transform: rotate(-135deg);
}

.sc-chevron--right[b-bwivs2i1a5] {
    margin: 0 4px 0 0;
    border-color: #fff;
    transform: rotate(-45deg);
}

.sc-subs[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 4px 12px 8px;
    list-style: none;
    border-top: 1px solid var(--line);
}

.sc-sub[b-bwivs2i1a5] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 4px;
    font: inherit;
    text-align: left;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sc-sub-mark[b-bwivs2i1a5] {
    flex: none;
    width: 16px;
    height: 16px;
    border: 2px solid #d9dde6;
    border-radius: 50%;
}

.sc-sub-name[b-bwivs2i1a5] {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
}

@media (hover: hover) and (pointer: fine) {
    button.sc-mod-head:hover[b-bwivs2i1a5],
    .sc-sub:hover[b-bwivs2i1a5] {
        background: var(--surface);
    }
}

button.sc-mod-head:active[b-bwivs2i1a5],
.sc-sub:active[b-bwivs2i1a5] {
    background: var(--brand-soft);
    transition-duration: 0s;
}

/* "Continue from where you stopped" */
.sc-continue[b-bwivs2i1a5] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    text-align: left;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

    .sc-continue span[b-bwivs2i1a5] {
        font-size: 11px;
        line-height: 1.3;
    }

    .sc-continue strong[b-bwivs2i1a5] {
        font-size: 13.5px;
        font-weight: 700;
        line-height: 1.3;
    }

@media (hover: hover) and (pointer: fine) {
    .sc-continue:hover[b-bwivs2i1a5] {
        background: var(--brand-dark);
    }
}

.sc-continue:active[b-bwivs2i1a5] {
    background: var(--brand-dark);
    transform: scale(0.98);
    transition-duration: 0s;
}

/* --- A sub-module's tasks --- */
.sc-sum[b-bwivs2i1a5] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.sc-eyebrow[b-bwivs2i1a5] {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink-muted);
}

.sc-sum-name[b-bwivs2i1a5],
.sc-card-name[b-bwivs2i1a5] {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.sc-les[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

    .sc-les.is-locked > .sc-les-head[b-bwivs2i1a5] {
        opacity: 0.55;
    }

.sc-les-head[b-bwivs2i1a5] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-les-icon[b-bwivs2i1a5] {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--brand);
    border-radius: 10px;
}

    /* The site's own icons: white drawings on the tile, at the share of it the task list gives them */
    .sc-les-icon img[b-bwivs2i1a5] {
        display: block;
        width: 58%;
        height: 58%;
        object-fit: contain;
    }

/* The tile takes the task's state, as on the site */
.sc-les-icon--done[b-bwivs2i1a5] {
    background: var(--green);
}

.sc-les-icon--locked[b-bwivs2i1a5] {
    background: #c9cdd4;
}

/* --- The kinds of task --- */
.sc-kinds[b-bwivs2i1a5] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.sc-kind[b-bwivs2i1a5] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 76px;
    padding: 8px 4px;
    font: 600 12.5px/1.25 'Montserrat', sans-serif;
    text-align: center;
    color: var(--ink);
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

    .sc-kind > span:last-child[b-bwivs2i1a5] {
        min-width: 0;
        max-width: 100%;
    }

    .sc-kind.is-on[b-bwivs2i1a5] {
        color: var(--brand);
        background: var(--brand-soft);
        border-color: var(--brand);
    }

@media (hover: hover) and (pointer: fine) {
    .sc-kind:not(.is-on):hover[b-bwivs2i1a5] {
        border-color: var(--brand-line);
    }
}

.sc-kind:active[b-bwivs2i1a5] {
    background: var(--brand-line);
    border-color: var(--brand);
    transform: scale(0.97);
    transition-duration: 0s;
}

.sc-les-kind[b-bwivs2i1a5] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink-muted);
}

.sc-chip[b-bwivs2i1a5] {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 10px;
}

.sc-chip--done[b-bwivs2i1a5] {
    color: var(--right);
    background: var(--right-soft);
}

.sc-chip--locked[b-bwivs2i1a5] {
    color: var(--ink-muted);
    background: var(--surface);
}

.sc-les-row[b-bwivs2i1a5] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-soft);
}

.sc-bar[b-bwivs2i1a5] {
    flex: 1 1 auto;
    height: 6px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}

    .sc-bar i[b-bwivs2i1a5] {
        display: block;
        height: 100%;
        background: var(--green);
        border-radius: 3px;
    }

/* --- A task --- */
.sc-where[b-bwivs2i1a5] {
    font-size: 12px;
    line-height: 1.3;
    color: var(--ink-soft);
}

.sc-segs[b-bwivs2i1a5] {
    display: flex;
    gap: 3px;
    margin-top: 6px;
}

    .sc-segs i[b-bwivs2i1a5] {
        flex: 1 1 0;
        height: 6px;
        background: var(--line);
        border-radius: 3px;
    }

        .sc-segs i.is-on[b-bwivs2i1a5] {
            background: var(--green);
        }

.sc-title[b-bwivs2i1a5] {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

    .sc-title span[b-bwivs2i1a5] {
        color: var(--right);
    }

.sc-q[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.sc-q-text[b-bwivs2i1a5] {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.sc-opts[b-bwivs2i1a5] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.sc-opt[b-bwivs2i1a5] {
    appearance: none;
    -webkit-appearance: none;
    height: 38px;
    padding: 0 8px;
    font: 500 14px/1 'Montserrat', sans-serif;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid #d9dde6;
    border-radius: 10px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

    /* An odd one out takes the row */
    .sc-opt:last-child:nth-child(odd)[b-bwivs2i1a5] {
        grid-column: 1 / -1;
    }

@media (hover: hover) and (pointer: fine) {
    .sc-opt:hover:not(:disabled):not(.is-picked)[b-bwivs2i1a5] {
        border-color: var(--brand);
    }
}

.sc-opt:active:not(:disabled)[b-bwivs2i1a5] {
    color: var(--brand);
    background: var(--brand-line);
    border-color: var(--brand);
    transform: scale(0.97);
    transition-duration: 0s;
}

.sc-opt.is-picked[b-bwivs2i1a5] {
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-soft);
    border-color: var(--brand);
}

.sc-opt:disabled[b-bwivs2i1a5] {
    cursor: default;
}

    .sc-opt:disabled:not(.is-right):not(.is-wrong)[b-bwivs2i1a5] {
        opacity: 0.5;
    }

.sc-opt.is-right[b-bwivs2i1a5],
.sc-input.is-right[b-bwivs2i1a5] {
    font-weight: 600;
    color: var(--right);
    background: var(--right-soft);
    border-color: var(--right);
    opacity: 1;
}

.sc-opt.is-wrong[b-bwivs2i1a5],
.sc-input.is-wrong[b-bwivs2i1a5] {
    font-weight: 600;
    color: var(--wrong);
    background: var(--wrong-soft);
    border-color: var(--wrong);
    opacity: 1;
}

.sc-input[b-bwivs2i1a5] {
    width: 112px;
    height: 36px;
    margin: 0 4px;
    padding: 0 6px;
    /* 16px: iOS zooms into a smaller field */
    font: 500 16px/1 'Montserrat', sans-serif;
    text-align: center;
    color: var(--ink);
    background: var(--brand-soft);
    border: 0;
    border-bottom: 2px solid var(--brand-line);
    border-radius: 8px 8px 0 0;
    outline: none;
    -webkit-user-select: text;
    user-select: text;
    transition: border-color 0.15s ease;
}

    .sc-input[b-bwivs2i1a5]::placeholder {
        font-size: 13px;
        font-style: italic;
        color: var(--ink-muted);
    }

    .sc-input:focus[b-bwivs2i1a5] {
        border-color: var(--brand);
    }

.sc-answer[b-bwivs2i1a5] {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--right);
}

.sc-actions[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sc-note[b-bwivs2i1a5] {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 12px;
}

.sc-note--good[b-bwivs2i1a5] {
    color: var(--right);
    background: var(--right-soft);
}

.sc-note--bad[b-bwivs2i1a5] {
    color: var(--wrong);
    background: var(--wrong-soft);
}

/* --- Eigensinn --- */
.sc-card[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.sc-label[b-bwivs2i1a5] {
    padding-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
}

.sc-choices[b-bwivs2i1a5],
.sc-two[b-bwivs2i1a5],
.sc-tiles[b-bwivs2i1a5] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sc-choice[b-bwivs2i1a5] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    font: inherit;
    text-align: left;
    color: var(--ink);
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

    .sc-choice strong[b-bwivs2i1a5] {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
    }

    .sc-choice span[b-bwivs2i1a5] {
        font-size: 11px;
        line-height: 1.35;
        color: var(--ink-muted);
    }

    .sc-choice.is-picked[b-bwivs2i1a5] {
        background: var(--brand-soft);
        border-color: var(--brand);
    }

@media (hover: hover) and (pointer: fine) {
    .sc-choice:not(.is-picked):hover[b-bwivs2i1a5] {
        border-color: var(--brand-line);
    }
}

.sc-choice:active[b-bwivs2i1a5] {
    background: var(--brand-line);
    border-color: var(--brand);
    transform: scale(0.97);
    transition-duration: 0s;
}

/* Right answers so far */
.sc-count[b-bwivs2i1a5] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
}

    .sc-count i[b-bwivs2i1a5] {
        width: 26px;
        height: 8px;
        background: #fff;
        border: 2px solid var(--line);
        border-radius: 4px;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

        .sc-count i.is-on[b-bwivs2i1a5] {
            background: var(--green);
            border-color: var(--green);
        }

    .sc-count span[b-bwivs2i1a5] {
        margin-left: 4px;
    }

/* --- Progress --- */
.sc-tile[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    text-align: center;
}

    .sc-tile strong[b-bwivs2i1a5] {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
    }

    .sc-tile span[b-bwivs2i1a5] {
        font-size: 11px;
        line-height: 1.3;
        color: var(--ink-soft);
    }

    .sc-tile .sc-tile-num[b-bwivs2i1a5] {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        font-size: 12px;
        font-weight: 700;
        color: var(--ink);
        border: 4px solid var(--yellow);
        border-radius: 50%;
    }

.sc-tile--good .sc-tile-num[b-bwivs2i1a5] {
    border-color: var(--green);
}

.sc-mistake-q[b-bwivs2i1a5] {
    padding: 2px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.sc-mistake-a[b-bwivs2i1a5] {
    font-size: 12px;
    line-height: 1.45;
    color: var(--ink-soft);
}

    .sc-mistake-a b[b-bwivs2i1a5] {
        margin-left: 4px;
        font-weight: 600;
    }

        .sc-mistake-a b.is-wrong[b-bwivs2i1a5] {
            color: var(--wrong);
        }

        .sc-mistake-a b.is-right[b-bwivs2i1a5] {
            color: var(--right);
        }

/* --- The daily goal --- */
.sc-goal[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
}

.sc-goal-row[b-bwivs2i1a5] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 8px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ink-soft);
}

    .sc-goal-row b[b-bwivs2i1a5] {
        font-size: 15px;
        color: var(--ink);
    }

.sc-goal-ring[b-bwivs2i1a5] {
    flex: none;
    width: 34px;
    height: 34px;
}

.sc-goal.is-met .sc-ring-arc[b-bwivs2i1a5] {
    stroke: var(--green);
}

.sc-goal-tick[b-bwivs2i1a5] {
    stroke: var(--right);
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Undo the ring's quarter turn */
    transform: rotate(90deg);
    transform-origin: 18px 18px;
}

.sc-flame[b-bwivs2i1a5] {
    flex: none;
    width: 34px;
    font-size: 20px;
    line-height: 1;
    text-align: center;
}

    /* No streak yet: the flame is grey */
    .sc-flame:not(.is-on)[b-bwivs2i1a5] {
        filter: grayscale(1);
        opacity: 0.55;
    }

/* --- The menu --- */
.sc-menu[b-bwivs2i1a5] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sc-menu-row[b-bwivs2i1a5] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    padding: 0 46px 0 12px;
    font: 600 14px/1.2 'Montserrat', sans-serif;
    text-align: left;
    color: var(--ink);
    background: none;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .sc-menu-row .tut-icon[b-bwivs2i1a5] {
        width: 20px;
        height: 20px;
    }

    .sc-menu-row.is-on[b-bwivs2i1a5] {
        color: var(--brand);
        background: var(--brand-soft);
    }

@media (hover: hover) and (pointer: fine) {
    .sc-menu-row:not(.is-on):hover[b-bwivs2i1a5] {
        background: var(--surface);
    }
}

.sc-menu-row:active[b-bwivs2i1a5] {
    color: var(--brand);
    background: var(--brand-line);
    transition-duration: 0s;
}

/* ===== Phones ===== */
@container (max-width: 520px) {
    .tut-title[b-bwivs2i1a5] {
        font-size: 22px;
    }

    .tut-h[b-bwivs2i1a5] {
        font-size: 20px;
    }

    .tut-stage[b-bwivs2i1a5] {
        padding: 16px 12px;
    }

    /* Full-width, 48px, forward on top (as the lesson pages do) */
    .tut-nav[b-bwivs2i1a5] {
        flex-direction: column-reverse;
    }

        .tut-nav .tut-btn[b-bwivs2i1a5] {
            width: 100%;
            height: 48px;
            border-radius: 24px;
            box-shadow: none;
        }
}

@media (prefers-reduced-motion: reduce) {
    .tut-stage[b-bwivs2i1a5],
    .tut-spot[b-bwivs2i1a5] {
        animation: none;
    }
}
/* /Pages/Errors/404.razor.rz.scp.css */
/* ===== Tokens — the Progress / account-page palette ===== */
.nf[b-dfp3msx8xq] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-soft: #f3f6ff;
    --brand-line: #dbe5ff;
    --card-radius: 20px;
    --shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    background: var(--surface);
    min-height: calc(100vh - var(--public-header-height, 70px));
    padding: calc(var(--public-header-height, 70px) + 24px) 16px 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-text-size-adjust: 100%;
}

/* Signed in: MainLayout's header is in the flow and main already pads
   below it, so no fixed-header offset and no second page surface. */
.nf.nf--app[b-dfp3msx8xq] {
    min-height: 0;
    background: transparent;
    padding: 8px 16px 48px;
}

/* ===== Card ===== */
.nf-card[b-dfp3msx8xq] {
    width: 100%;
    max-width: 560px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    padding: 32px 36px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    animation: nf-rise-b-dfp3msx8xq 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes nf-rise-b-dfp3msx8xq {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.nf-illustration[b-dfp3msx8xq] {
    width: 100%;
    max-width: 260px;
    height: auto;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.nf-head[b-dfp3msx8xq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nf-code[b-dfp3msx8xq] {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 4px 12px;
}

.nf-title[b-dfp3msx8xq] {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.nf-subtitle[b-dfp3msx8xq] {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ===== Notice ===== */
.nf-notice[b-dfp3msx8xq] {
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    padding: 14px 16px;
}

.nf-notice-icon[b-dfp3msx8xq] {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brand);
}

.nf-notice p[b-dfp3msx8xq] {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* The header's "Что-то не так?" button, drawn inline so it can be found.
   At <= 700px the header shows it as an icon only (ReportProblemButton),
   so the chip does the same; the label stays for screen readers. */
.nf-report[b-dfp3msx8xq] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
    padding: 2px 10px;
    border: 1.5px solid var(--brand);
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font-weight: 600;
    white-space: nowrap;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

    @media (hover: hover) and (pointer: fine) {
        .nf-report:hover[b-dfp3msx8xq] {
            background: var(--brand);
            color: #fff;
        }
    }

    .nf-report:active[b-dfp3msx8xq] {
        background: var(--brand);
        color: #fff;
        transform: scale(0.96);
        transition-duration: 0s;
    }

    .nf-report:focus-visible[b-dfp3msx8xq] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    .nf-report svg[b-dfp3msx8xq] {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

/* Signed out: the landing header's button is text only, with a "?" on phones. */
.nf-report-icon[b-dfp3msx8xq] {
    display: none;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 700px) {
    .nf-report[b-dfp3msx8xq] {
        padding: 3px 9px;
    }

    .nf-report-text[b-dfp3msx8xq] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .nf-report--public .nf-report-icon[b-dfp3msx8xq] {
        display: inline;
        font-size: 16px;
    }
}

/* ===== Button — the NavigationButtons "back" pill ===== */
.nf-button[b-dfp3msx8xq] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 270px;
    max-width: 100%;
    height: 46px;
    padding: 0 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: #4D7CFE;
    background: #fff;
    border: 2px solid #4D7CFE;
    border-radius: 23px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

    @media (hover: hover) and (pointer: fine) {
        .nf-button:hover[b-dfp3msx8xq] {
            background: #4D7CFE;
            color: #fff;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }
    }

    /* Pressed: fills instantly and sinks, so even a quick tap shows it. */
    .nf-button:active[b-dfp3msx8xq] {
        background: #4D7CFE;
        color: #fff;
        transform: scale(0.97);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transition-duration: 0s;
    }

    .nf-button:focus-visible[b-dfp3msx8xq] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

/* ===== Phones ===== */
@media (max-width: 480px) {
    .nf[b-dfp3msx8xq] {
        padding: calc(var(--public-header-height, 70px) + 16px) 12px 32px;
    }

    .nf-card[b-dfp3msx8xq] {
        padding: 24px 20px;
        gap: 18px;
    }

    .nf-illustration[b-dfp3msx8xq] {
        max-width: 200px;
    }

    .nf-title[b-dfp3msx8xq] {
        font-size: 22px;
    }

    .nf-button[b-dfp3msx8xq] {
        width: 100%;
        min-width: 0;
        white-space: normal;
        line-height: 1.2;
    }
}
/* /Pages/Landing/LandingPage.razor.rz.scp.css */
/* =====================================================
   LandingPage — Page-specific styles
   ===================================================== */
.content-wrapper[b-o3n0jf7lro] {
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

    .content-wrapper.loaded[b-o3n0jf7lro] {
        opacity: 1;
    }

/* =====================================================
   Fluid design tokens — scoped to the landing page only.
   These override the fixed pixel values defined on :root
   in app.css so type/spacing/icons scale smoothly between
   mobile, laptop, and large-desktop viewports.

   Math: clamp(min, A * vw + B px, max)
   - min  = mobile target (~375px viewport)
   - max  = laptop-friendly desktop value (reached ~1600px)
   - Upper caps deliberately reduced from the original
     "huge desktop" values so 14–16" laptops and 4K
     monitors render at a professional, restrained scale
     instead of inflating to billboard sizes.
   ===================================================== */
.landing-page[b-o3n0jf7lro] {
    /* Typography */
    --text-xs: clamp(12px, 0.13vw + 11.5px, 13px);
    --text-s: clamp(14px, 0.20vw + 13.2px, 16px);
    --text-m: clamp(16px, 0.26vw + 15px, 18px);
    --text-l: clamp(18px, 0.26vw + 17px, 21px);
    --text-xl: clamp(20px, 0.65vw + 17.6px, 28px);
    --text-xxl: clamp(26px, 1.10vw + 21.9px, 40px);
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-s: clamp(8px, 0.13vw + 7.5px, 10px);
    --spacing-m: clamp(12px, 0.19vw + 11.3px, 14px);
    --spacing-l: clamp(14px, 0.26vw + 13px, 18px);
    --spacing-xl: clamp(20px, 0.45vw + 18.3px, 26px);
    --spacing-xxl: clamp(30px, 0.84vw + 26.9px, 42px);
    /* Icons */
    --icon-s: 20px;
    --icon-m: clamp(28px, 0.52vw + 26px, 36px);
    --icon-l: clamp(44px, 1.16vw + 39.6px, 62px);
    --icon-xl: clamp(60px, 1.42vw + 54.7px, 82px);
    --icon-xxl: clamp(110px, 2.45vw + 100.8px, 148px);
    /* Corners — slightly smaller on smaller viewports */
    --radius: clamp(22px, 0.65vw + 19.6px, 32px);
    width: 100%;
    /* Cap content width so 4K monitors stop stretching the
       layout into a billboard. Centered with auto margins. */
    margin-left: auto;
    margin-right: auto;
    font-size: var(--text-s);
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
}

.loading-page-overlay[b-o3n0jf7lro] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100lvh;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Desktop/Mobile visibility */
[b-o3n0jf7lro] .desktop-only {
    display: block;
}

[b-o3n0jf7lro] .mobile-only {
    display: block;
}

@media (min-width: 1024px) {
    [b-o3n0jf7lro] .mobile-only {
        display: none;
    }
}

@media (max-width: 1023px) {
    [b-o3n0jf7lro] .desktop-only {
        display: none;
    }
}

/* =====================================================
   Fluid sizing for hard-coded element dimensions
   Capped lower than before so laptops feel proportionate.
   ===================================================== */

/* Hero visual */
[b-o3n0jf7lro] .hero-visual {
    max-width: clamp(520px, 42vw + 100px, 760px) !important;
}

/* Hero section — extra breathing room below the fixed nav
   so the page no longer feels glued to the header. On
   phones (notch devices) we also add env(safe-area-inset-top)
   so content isn't hidden behind the bar. */
[b-o3n0jf7lro] .hero-section {
    padding-top: calc(clamp(110px, 4vw + 88px, 150px) + env(safe-area-inset-top, 0px)) !important;
}

/* Feature cards — height kept moderate on big screens */
[b-o3n0jf7lro] .feature-card,
[b-o3n0jf7lro] .features3-card {
    height: clamp(280px, 12vw + 130px, 320px);
}

[b-o3n0jf7lro] .feature-card {
    padding-top: clamp(24px, 1.4vw + 12px, 40px);
}

/* OrbitMap visualization & nodes */
[b-o3n0jf7lro] .orbitmap-satellite-node {
    min-width: clamp(170px, 7vw + 90px, 200px);
    padding: clamp(10px, 0.4vw + 7px, 13px) clamp(14px, 0.5vw + 10px, 18px);
}

[b-o3n0jf7lro] .orbitmap-visualization {
    max-width: clamp(580px, 42vw + 120px, 780px);
}

[b-o3n0jf7lro] .orbitmap-center {
    width: clamp(56px, 1.8vw + 42px, 72px);
    height: clamp(56px, 1.8vw + 42px, 72px);
}

[b-o3n0jf7lro] .orbitmap-center-logo {
    width: clamp(34px, 1.1vw + 25px, 44px);
    height: clamp(34px, 1.1vw + 25px, 44px);
}

/* Pricing — keep cards restrained on laptops */
[b-o3n0jf7lro] .pricing-card {
    padding: clamp(16px, 0.6vw + 12px, 22px);
}

[b-o3n0jf7lro] .pricing-amount,
[b-o3n0jf7lro] .pricing-discount-price {
    font-size: clamp(30px, 1.10vw + 25.9px, 44px);
}

[b-o3n0jf7lro] .pricing-original-price {
    font-size: clamp(20px, 0.65vw + 17.6px, 28px);
}

/* Section bottom CTA breathing room on laptops */
[b-o3n0jf7lro] .cta-section {
    padding-bottom: clamp(56px, 2.5vw + 36px, 88px) !important;
}

/* Mistakes section — video was 1280px max which dwarfs the
   surrounding content on laptops. Cap it well under 900px
   and bring the container in tighter so it reads like a
   highlight, not a hero. */
[b-o3n0jf7lro] .mistakes-container {
    max-width: clamp(480px, 60vw + 120px, 900px) !important;
}

[b-o3n0jf7lro] .mistakes-video {
    max-width: clamp(360px, 55vw + 120px, 860px) !important;
    min-height: 0 !important;
}

/* =====================================================
   Shared utilities (::deep → cascade into child components)
   ===================================================== */
[b-o3n0jf7lro] a {
    all: unset;
    color: var(--primary-dark);
    font-weight: 500;
    /* Color only: a bare `transition: 0.2s` also smooths GSAP's per-frame
       transform/opacity writes and makes every reveal lag behind */
    transition: color var(--transition-fast);
}

    @media (hover: hover) and (pointer: fine) {
        [b-o3n0jf7lro] a:hover {
            cursor: pointer;
            color: var(--text-light);
        }
    }

    [b-o3n0jf7lro] a img {
        transition: opacity var(--transition-fast);
    }

    @media (hover: hover) and (pointer: fine) {
        [b-o3n0jf7lro] a:hover img {
            opacity: 0.5;
        }
    }

/* Section base */
[b-o3n0jf7lro] .section {
    display: flex;
    align-items: center;
    padding: var(--spacing-xxl) var(--spacing-l);
    position: relative;
}

[b-o3n0jf7lro] .section-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
    align-items: center;
    width: 100%;
}

[b-o3n0jf7lro] .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-l);
    z-index: 2;
}

/* Title sizes */
[b-o3n0jf7lro] .title-xxl {
    font-size: var(--text-xxl);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    text-align: center;
}

[b-o3n0jf7lro] .title-xl {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    text-align: center;
}

[b-o3n0jf7lro] .title-lg {
    font-size: var(--text-l);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: center;
}

[b-o3n0jf7lro] .title-m {
    font-size: var(--text-m);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: center;
}

[b-o3n0jf7lro] .title-s {
    font-size: var(--text-s);
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: center;
}

/* Text utilities */
[b-o3n0jf7lro] .text-muted {
    color: var(--text-light);
}

[b-o3n0jf7lro] .text-bold {
    font-weight: 600;
}

[b-o3n0jf7lro] .text-italic {
    font-style: italic;
}

[b-o3n0jf7lro] .text-center {
    text-align: center;
}

[b-o3n0jf7lro] .text-xs {
    font-size: var(--text-xs);
}

[b-o3n0jf7lro] .text-centered-narrow {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Button utilities */
[b-o3n0jf7lro] .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-s);
    padding: var(--spacing-l) var(--spacing-xl);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    [b-o3n0jf7lro] .btn:active {
        transform: scale(0.97);
    }

[b-o3n0jf7lro] .btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

    @media (hover: hover) and (pointer: fine) {
        [b-o3n0jf7lro] .btn-primary:hover {
            opacity: 0.7 !important;
            color: var(--bg-white);
        }
    }

[b-o3n0jf7lro] .btn-secondary {
    background: var(--primary-dark);
    color: var(--bg-white);
}

    @media (hover: hover) and (pointer: fine) {
        [b-o3n0jf7lro] .btn-secondary:hover {
            opacity: 0.7 !important;
            color: var(--bg-white);
        }
    }

[b-o3n0jf7lro] .button-inline {
    display: flex;
    gap: var(--spacing-s);
    align-items: center;
}

/* Icon animation */
[b-o3n0jf7lro] .icon-float {
    animation: levitate-b-o3n0jf7lro 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    [b-o3n0jf7lro] .icon-float {
        animation: none;
    }
}

@keyframes levitate-b-o3n0jf7lro {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Shared slider */
[b-o3n0jf7lro] .slider-container {
    width: clamp(300px, calc(100vw - var(--spacing-l) * 2), 480px);
    cursor: grab;
}

    [b-o3n0jf7lro] .slider-container.dragging {
        cursor: grabbing;
    }

[b-o3n0jf7lro] .slider-track {
    display: flex;
    gap: var(--spacing-l);
    padding: var(--spacing-l) 0;
    width: max-content;
}

[b-o3n0jf7lro] .slider-card {
    flex-shrink: 0;
    width: clamp(300px, calc(100vw - var(--spacing-l) * 2), 480px);
}

/* Slider dots */
[b-o3n0jf7lro] .slider-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-s);
    padding: var(--spacing-l) 0;
}

[b-o3n0jf7lro] .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--border-color);
    cursor: pointer;
    transition: width 0.3s cubic-bezier(0.2, 0, 0, 1), background-color 0.2s ease;
}

    @media (hover: hover) and (pointer: fine) {
        [b-o3n0jf7lro] .slider-dot:hover {
            background: var(--text-light);
        }
    }

    [b-o3n0jf7lro] .slider-dot.active {
        background: var(--primary-color);
        width: 24px;
        border-radius: 4px;
    }

/* Shared video wrap */
[b-o3n0jf7lro] .video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-shadow: var(--shadow);
}

    [b-o3n0jf7lro] .video-wrap iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* Shared feature card base (used by Features + Features2) */
[b-o3n0jf7lro] .feature-card {
    position: relative;
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-s);
    overflow: hidden;
    transform-origin: top center;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

    @media (hover: hover) and (pointer: fine) {
        [b-o3n0jf7lro] .feature-card:hover .feature-icon {
            scale: 1.1;
        }
    }

[b-o3n0jf7lro] .feature-icon {
    position: absolute;
    bottom: 0;
    order: 1;
    flex: 1;
    display: flex;
    align-items: flex-end;
    transform-origin: bottom center;
    mix-blend-mode: darken;
    transition: scale var(--transition-normal);
    pointer-events: none;
    z-index: 0;
}

    [b-o3n0jf7lro] .feature-icon img {
        width: auto;
        height: var(--icon-xxl);
    }

/* Shared list styles (used by Features4 + OrbitMap) */
[b-o3n0jf7lro] .features4-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-s);
}

[b-o3n0jf7lro] .features4-list-summary {
    order: -1;
    font-weight: 600;
    padding-bottom: var(--spacing-m);
}

[b-o3n0jf7lro] .features4-list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-m);
}

[b-o3n0jf7lro] .features4-list-icon {
    width: var(--icon-s);
    height: var(--icon-s);
}

/* Shared legend (used by Features4 + OrbitMap) */
[b-o3n0jf7lro] .orbitmap-legend-items {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: var(--spacing-m);
}

[b-o3n0jf7lro] .orbitmap-legend-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-s);
    font-size: 0.9rem;
    color: var(--text-muted);
}

[b-o3n0jf7lro] .orbitmap-legend-icon {
    width: 20px;
    height: 20px;
}

[b-o3n0jf7lro] .orbitmap-legend-inline {
    margin-top: var(--spacing-m);
}

/* Cookie consent banner */
[b-o3n0jf7lro] .cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    z-index: 999;
    pointer-events: none;
    padding: var(--spacing-l);
}

[b-o3n0jf7lro] .cookie-inner {
    pointer-events: auto;
    max-width: 1100px;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    border-radius: var(--radius-s);
    padding: var(--spacing-l);
    display: flex;
    align-items: center;
    gap: var(--spacing-m);
    margin: 0 auto;
}

[b-o3n0jf7lro] .cookie-message {
    font-size: var(--text-xs);
    color: var(--text-dark);
    flex: 1 1 auto;
}

[b-o3n0jf7lro] .cookie-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-m);
}

[b-o3n0jf7lro] .cookie-btn {
    border: none;
    padding: var(--spacing-m) var(--spacing-l);
    border-radius: var(--radius-s);
    font-weight: 600;
    cursor: pointer;
}

[b-o3n0jf7lro] .cookie-accept {
    background: var(--primary-color);
    color: #fff;
}

[b-o3n0jf7lro] .cookie-decline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

[b-o3n0jf7lro] .cookie-link {
    color: var(--text-light);
    text-decoration: underline;
    font-size: var(--text-xs);
    margin-left: var(--spacing-s);
}

@media (max-width: 768px) {
    [b-o3n0jf7lro] .cookie-inner {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-m);
    }

    [b-o3n0jf7lro] .cookie-message {
        flex: 1 1 auto;
        margin-bottom: var(--spacing-s);
    }

    [b-o3n0jf7lro] .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    [b-o3n0jf7lro] .cookie-btn {
        width: 100%;
    }

    [b-o3n0jf7lro] .cookie-link {
        text-align: center;
        margin-left: 0;
        display: block;
        padding: var(--spacing-m) 0;
    }
}
/* /Pages/Legal/Cookies.razor.rz.scp.css */
/* ===== Page Shell ===== */
.cookies-page[b-txyksnm992] {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    padding: calc(10px + env(safe-area-inset-top, 0px) + 24px) 20px 80px;
    color: #333;
}

.cookies-container[b-txyksnm992] {
    max-width: 1400px;
    margin: 8px auto;
    line-height: 1.75;
}
/* ===== Title ===== */
.cookies-title[b-txyksnm992] {
    font-size: var(--text-xxl, 2.4rem);
    font-weight: 800;
    color: var(--primary-dark, #001e57);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

/* ===== Meta block ===== */
.cookies-meta[b-txyksnm992] {
    font-size: var(--text-xs, 13px);
    color: #6b7c9e;
    margin-bottom: 36px;
    border-left: 4px solid #92CD4D;
    padding: 12px 16px;
    background: #f7f9ff;
    border-radius: 0 12px 12px 0;
    line-height: 1.9;
}

    .cookies-meta strong[b-txyksnm992] {
        color: var(--primary-dark, #001e57);
    }

/* ===== Section blocks (accordion) ===== */
.section-block[b-txyksnm992] {
    border-bottom: 1px solid #eef2ff;
    margin-bottom: 4px;
}

/* Toggle button */
.section-toggle[b-txyksnm992] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 18px 4px 14px;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--text-l, 1.15rem);
    font-weight: 700;
    color: var(--primary-dark, #001e57);
    transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

    /* Chevron icon via pseudo-element */
    .section-toggle[b-txyksnm992]::after {
        content: '';
        display: block;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        border-right: 2.5px solid currentColor;
        border-bottom: 2.5px solid currentColor;
        border-radius: 2px;
        transform: rotate(45deg) translateY(-3px);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0.55;
    }

    @media (hover: hover) and (pointer: fine) {
        .section-toggle:hover[b-txyksnm992] {
            color: #4D7CFE;
        }
    }

        @media (hover: hover) and (pointer: fine) {
            .section-toggle:hover[b-txyksnm992]::after {
                opacity: 1;
            }
        }

    .section-toggle.expanded[b-txyksnm992] {
        color: #4D7CFE;
    }

        .section-toggle.expanded[b-txyksnm992]::after {
            transform: rotate(225deg) translateY(-3px);
            opacity: 1;
        }

    .section-toggle:focus-visible[b-txyksnm992] {
        outline: 2px solid #4D7CFE;
        outline-offset: 3px;
        border-radius: 4px;
    }

/* ===== Section content ===== */
.section-content[b-txyksnm992] {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 4px;
}

    .section-content.expanded[b-txyksnm992] {
        max-height: 4000px;
        opacity: 1;
        transform: translateY(0);
        padding: 4px 4px 24px;
    }

/* ===== Body text ===== */
.cookies-container p[b-txyksnm992] {
    font-size: var(--text-xs, 14px);
    color: #444;
    margin-bottom: 12px;
}

.cookies-container h3[b-txyksnm992] {
    font-size: calc(var(--text-xs, 14px) + 2px);
    font-weight: 700;
    color: var(--primary-dark, #001e57);
    margin-top: 32px;
    margin-bottom: 8px;
}

.cookies-container ul[b-txyksnm992],
.cookies-container ol[b-txyksnm992] {
    padding-left: 24px;
    margin-bottom: 14px;
}

.cookies-container li[b-txyksnm992] {
    font-size: var(--text-xs, 14px);
    color: #444;
    margin-bottom: 6px;
}

/* ===== Links ===== */
.cookies-container a[b-txyksnm992] {
    color: #4D7CFE;
    text-decoration: none;
    border-bottom: 1px solid rgba(77, 124, 254, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .cookies-container a:hover[b-txyksnm992] {
            color: #4D7CFE;
            border-bottom-color: #4D7CFE;
        }
    }

/* ===== Tables ===== */
.cookies-table-wrapper[b-txyksnm992] {
    overflow-x: auto;
    margin: 20px 0 28px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(77, 124, 254, 0.08);
    -webkit-overflow-scrolling: touch;
}

.cookies-table[b-txyksnm992] {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 480px;
}

    .cookies-table thead tr[b-txyksnm992] {
        background: linear-gradient(135deg, #4D7CFE, #3a6bec);
    }

    .cookies-table th[b-txyksnm992] {
        color: #fff;
        font-weight: 700;
        padding: 12px 16px;
        text-align: left;
        white-space: nowrap;
        letter-spacing: 0.3px;
    }

        .cookies-table th:first-child[b-txyksnm992] {
            border-radius: 16px 0 0 0;
        }

        .cookies-table th:last-child[b-txyksnm992] {
            border-radius: 0 16px 0 0;
        }

    .cookies-table td[b-txyksnm992] {
        padding: 10px 16px;
        border-bottom: 1px solid #eef2ff;
        vertical-align: top;
        color: #444;
        line-height: 1.55;
    }

    .cookies-table tbody tr:nth-child(even)[b-txyksnm992] {
        background: #f7f9ff;
    }

    @media (hover: hover) and (pointer: fine) {
        .cookies-table tbody tr:hover[b-txyksnm992] {
            background: #eef2ff;
            transition: background 0.2s ease;
        }
    }

    .cookies-table tbody tr:last-child td[b-txyksnm992] {
        border-bottom: none;
    }

        .cookies-table tbody tr:last-child td:first-child[b-txyksnm992] {
            border-radius: 0 0 0 16px;
        }

        .cookies-table tbody tr:last-child td:last-child[b-txyksnm992] {
            border-radius: 0 0 16px 0;
        }

    .cookies-table code[b-txyksnm992] {
        background: #eef2ff;
        color: #4D7CFE;
        border-radius: 6px;
        padding: 2px 7px;
        font-size: 0.85em;
        font-weight: 600;
        white-space: nowrap;
    }

/* ===== Inline code outside tables ===== */
.cookies-container > p code[b-txyksnm992],
.cookies-container li code[b-txyksnm992] {
    background: #eef2ff;
    color: #4D7CFE;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.85em;
    font-weight: 600;
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
    .cookies-page[b-txyksnm992] {
        padding: calc(10px + env(safe-area-inset-top, 0px) + 16px) 16px 60px;
    }

    .cookies-container[b-txyksnm992] {
        margin: 24px auto;
    }

    .cookies-title[b-txyksnm992] {
        font-size: 1.75rem;
    }

    .section-toggle[b-txyksnm992] {
        font-size: 1rem;
        padding: 15px 4px 10px;
    }

    .cookies-table-wrapper[b-txyksnm992] {
        border-radius: 12px;
    }

    .cookies-table th:first-child[b-txyksnm992] {
        border-radius: 12px 0 0 0;
    }

    .cookies-table th:last-child[b-txyksnm992] {
        border-radius: 0 12px 0 0;
    }

    .cookies-table tbody tr:last-child td:first-child[b-txyksnm992] {
        border-radius: 0 0 0 12px;
    }

    .cookies-table tbody tr:last-child td:last-child[b-txyksnm992] {
        border-radius: 0 0 12px 0;
    }
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
    .cookies-page[b-txyksnm992] {
        padding: calc(10px + env(safe-area-inset-top, 0px) + 12px) 12px 48px;
    }

    .cookies-container[b-txyksnm992] {
        margin: 16px auto;
    }

    .cookies-title[b-txyksnm992] {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .cookies-meta[b-txyksnm992] {
        font-size: 12px;
        padding: 10px 12px;
        margin-bottom: 20px;
    }

    .section-toggle[b-txyksnm992] {
        font-size: 0.9rem;
        padding: 14px 4px 10px;
    }

        .section-toggle[b-txyksnm992]::after {
            width: 14px;
            height: 14px;
        }

    .cookies-container p[b-txyksnm992],
    .cookies-container li[b-txyksnm992] {
        font-size: 13px;
    }

    .cookies-table[b-txyksnm992] {
        font-size: 12px;
    }

        .cookies-table th[b-txyksnm992],
        .cookies-table td[b-txyksnm992] {
            padding: 8px 10px;
        }

    .cookies-table-wrapper[b-txyksnm992] {
        border-radius: 10px;
    }
}
/* /Pages/Legal/PrivacyPolicy.razor.rz.scp.css */
/* ===== Page Shell ===== */
.privacy-page[b-634cyuqq5i] {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    padding: calc(10px + env(safe-area-inset-top, 0px) + 24px) 20px 80px;
    color: #333;
}

.privacy-container[b-634cyuqq5i] {
    max-width: 1400px;
    margin: 8px auto;
    line-height: 1.75;
}

/* ===== Title ===== */
.privacy-title[b-634cyuqq5i] {
    font-size: var(--text-xxl, 2.4rem);
    font-weight: 800;
    color: var(--primary-dark, #001e57);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

/* ===== Meta block ===== */
.privacy-meta[b-634cyuqq5i] {
    font-size: var(--text-xs, 13px);
    color: #6b7c9e;
    margin-bottom: 36px;
    border-left: 4px solid #92CD4D;
    padding: 12px 16px;
    background: #f7f9ff;
    border-radius: 0 12px 12px 0;
    line-height: 1.9;
}

    .privacy-meta strong[b-634cyuqq5i] {
        color: var(--primary-dark, #001e57);
    }

/* ===== Section blocks (accordion) ===== */
.section-block[b-634cyuqq5i] {
    border-bottom: 1px solid #eef2ff;
    margin-bottom: 4px;
}

/* Toggle button */
.section-toggle[b-634cyuqq5i] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 18px 4px 14px;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--text-l, 1.15rem);
    font-weight: 700;
    color: var(--primary-dark, #001e57);
    transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

    .section-toggle[b-634cyuqq5i]::after {
        content: '';
        display: block;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        border-right: 2.5px solid currentColor;
        border-bottom: 2.5px solid currentColor;
        border-radius: 2px;
        transform: rotate(45deg) translateY(-3px);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0.55;
    }

    @media (hover: hover) and (pointer: fine) {
        .section-toggle:hover[b-634cyuqq5i] {
            color: #4D7CFE;
        }
    }

        @media (hover: hover) and (pointer: fine) {
            .section-toggle:hover[b-634cyuqq5i]::after {
                opacity: 1;
            }
        }

    .section-toggle.expanded[b-634cyuqq5i] {
        color: #4D7CFE;
    }

        .section-toggle.expanded[b-634cyuqq5i]::after {
            transform: rotate(225deg) translateY(-3px);
            opacity: 1;
        }

    .section-toggle:focus-visible[b-634cyuqq5i] {
        outline: 2px solid #4D7CFE;
        outline-offset: 3px;
        border-radius: 4px;
    }

/* ===== Section content ===== */
.section-content[b-634cyuqq5i] {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 4px;
}

    .section-content.expanded[b-634cyuqq5i] {
        max-height: 4000px;
        opacity: 1;
        transform: translateY(0);
        padding: 4px 4px 24px;
    }

/* ===== Body text ===== */
.privacy-container p[b-634cyuqq5i] {
    font-size: var(--text-xs, 14px);
    color: #444;
    margin-bottom: 12px;
}

.privacy-container h3[b-634cyuqq5i] {
    font-size: calc(var(--text-xs, 14px) + 2px);
    font-weight: 700;
    color: var(--primary-dark, #001e57);
    margin-top: 32px;
    margin-bottom: 8px;
}

.privacy-container ul[b-634cyuqq5i],
.privacy-container ol[b-634cyuqq5i] {
    padding-left: 24px;
    margin-bottom: 14px;
}

.privacy-container li[b-634cyuqq5i] {
    font-size: var(--text-xs, 14px);
    color: #444;
    margin-bottom: 6px;
}

/* ===== Links ===== */
.privacy-container a[b-634cyuqq5i] {
    color: #4D7CFE;
    text-decoration: none;
    border-bottom: 1px solid rgba(77, 124, 254, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .privacy-container a:hover[b-634cyuqq5i] {
            color: #4D7CFE;
            border-bottom-color: #4D7CFE;
        }
    }

/* ===== Tablet ===== */
@media (max-width: 768px) {
    .privacy-page[b-634cyuqq5i] {
        padding: calc(10px + env(safe-area-inset-top, 0px) + 8px) 16px 60px;
    }

    .privacy-container[b-634cyuqq5i] {
        margin: 8px auto;
    }

    .privacy-title[b-634cyuqq5i] {
        font-size: 1.75rem;
    }

    .section-toggle[b-634cyuqq5i] {
        font-size: 1rem;
        padding: 15px 4px 10px;
    }
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
    .privacy-page[b-634cyuqq5i] {
        padding: calc(10px + env(safe-area-inset-top, 0px) + 4px) 12px 48px;
    }

    .privacy-container[b-634cyuqq5i] {
        margin: 4px auto;
    }

    .privacy-title[b-634cyuqq5i] {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .privacy-meta[b-634cyuqq5i] {
        font-size: 12px;
        padding: 10px 12px;
        margin-bottom: 20px;
    }

    .section-toggle[b-634cyuqq5i] {
        font-size: 0.9rem;
        padding: 14px 4px 10px;
    }

        .section-toggle[b-634cyuqq5i]::after {
            width: 14px;
            height: 14px;
        }

    .privacy-container p[b-634cyuqq5i],
    .privacy-container li[b-634cyuqq5i] {
        font-size: 13px;
    }
}
/* /Pages/Legal/Terms.razor.rz.scp.css */
/* ===== Page Shell ===== */
.terms-page[b-9uy4fb50ii] {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    padding: calc(10px + env(safe-area-inset-top, 0px) + 24px) 20px 80px;
    color: #333;
}

.terms-container[b-9uy4fb50ii] {
    max-width: 1400px;
    margin: 8px auto;
    line-height: 1.75;
}

/* ===== Title ===== */
.terms-title[b-9uy4fb50ii] {
    font-size: var(--text-xxl, 2.4rem);
    font-weight: 800;
    color: var(--primary-dark, #001e57);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

/* ===== Meta block ===== */
.terms-meta[b-9uy4fb50ii] {
    font-size: var(--text-xs, 13px);
    color: #6b7c9e;
    margin-bottom: 36px;
    border-left: 4px solid #92CD4D;
    padding: 12px 16px;
    background: #f7f9ff;
    border-radius: 0 12px 12px 0;
    line-height: 1.9;
}

    .terms-meta strong[b-9uy4fb50ii] {
        color: var(--primary-dark, #001e57);
    }

/* ===== Section blocks (accordion) ===== */
.section-block[b-9uy4fb50ii] {
    border-bottom: 1px solid #eef2ff;
    margin-bottom: 4px;
}

/* Toggle button */
.section-toggle[b-9uy4fb50ii] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 18px 4px 14px;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--text-l, 1.15rem);
    font-weight: 700;
    color: var(--primary-dark, #001e57);
    transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

    .section-toggle[b-9uy4fb50ii]::after {
        content: '';
        display: block;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        border-right: 2.5px solid currentColor;
        border-bottom: 2.5px solid currentColor;
        border-radius: 2px;
        transform: rotate(45deg) translateY(-3px);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0.55;
    }

    @media (hover: hover) and (pointer: fine) {
        .section-toggle:hover[b-9uy4fb50ii] {
            color: #4D7CFE;
        }
    }

        @media (hover: hover) and (pointer: fine) {
            .section-toggle:hover[b-9uy4fb50ii]::after {
                opacity: 1;
            }
        }

    .section-toggle.expanded[b-9uy4fb50ii] {
        color: #4D7CFE;
    }

        .section-toggle.expanded[b-9uy4fb50ii]::after {
            transform: rotate(225deg) translateY(-3px);
            opacity: 1;
        }

    .section-toggle:focus-visible[b-9uy4fb50ii] {
        outline: 2px solid #4D7CFE;
        outline-offset: 3px;
        border-radius: 4px;
    }

/* ===== Section content ===== */
.section-content[b-9uy4fb50ii] {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 4px;
}

    .section-content.expanded[b-9uy4fb50ii] {
        max-height: 4000px;
        opacity: 1;
        transform: translateY(0);
        padding: 4px 4px 24px;
    }

/* ===== Body text ===== */
.terms-container p[b-9uy4fb50ii] {
    font-size: var(--text-xs, 14px);
    color: #444;
    margin-bottom: 12px;
}

.terms-container h3[b-9uy4fb50ii] {
    font-size: calc(var(--text-xs, 14px) + 2px);
    font-weight: 700;
    color: var(--primary-dark, #001e57);
    margin-top: 32px;
    margin-bottom: 8px;
}

.terms-container ul[b-9uy4fb50ii],
.terms-container ol[b-9uy4fb50ii] {
    padding-left: 24px;
    margin-bottom: 14px;
}

.terms-container li[b-9uy4fb50ii] {
    font-size: var(--text-xs, 14px);
    color: #444;
    margin-bottom: 6px;
}

/* ===== Links ===== */
.terms-container a[b-9uy4fb50ii] {
    color: #4D7CFE;
    text-decoration: none;
    border-bottom: 1px solid rgba(77, 124, 254, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .terms-container a:hover[b-9uy4fb50ii] {
            color: #4D7CFE;
            border-bottom-color: #4D7CFE;
        }
    }

/* ===== Tablet ===== */
@media (max-width: 768px) {
    .terms-page[b-9uy4fb50ii] {
        padding: calc(10px + env(safe-area-inset-top, 0px) + 16px) 16px 60px;
    }

    .terms-container[b-9uy4fb50ii] {
        margin: 24px auto;
    }

    .terms-title[b-9uy4fb50ii] {
        font-size: 1.75rem;
    }

    .section-toggle[b-9uy4fb50ii] {
        font-size: 1rem;
        padding: 15px 4px 10px;
    }
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
    .terms-page[b-9uy4fb50ii] {
        padding: calc(10px + env(safe-area-inset-top, 0px) + 12px) 12px 48px;
    }

    .terms-container[b-9uy4fb50ii] {
        margin: 16px auto;
    }

    .terms-title[b-9uy4fb50ii] {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .terms-meta[b-9uy4fb50ii] {
        font-size: 12px;
        padding: 10px 12px;
        margin-bottom: 20px;
    }

    .section-toggle[b-9uy4fb50ii] {
        font-size: 0.9rem;
        padding: 14px 4px 10px;
    }

        .section-toggle[b-9uy4fb50ii]::after {
            width: 14px;
            height: 14px;
        }

    .terms-container p[b-9uy4fb50ii],
    .terms-container li[b-9uy4fb50ii] {
        font-size: 13px;
    }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .section-content[b-9uy4fb50ii],
    .section-toggle[b-9uy4fb50ii],
    .section-toggle[b-9uy4fb50ii]::after {
        transition: none;
    }
}
/* /Pages/Lessons/Completed-Essay-Correction.razor.rz.scp.css */
/* The completed essay or correction: the head (name, task), the work (the student's text on a soft grey
   sheet, the teacher's answer on a tinted panel), the navigation. From 1100px the two stand side by side,
   so a corrected text can be read against the original; narrower screens stack them. The teacher, reviewing
   a student, gets a field, the file chips and the save button on the panel instead of the answer. Nothing is
   boxed inside a box: the sheet and the panel are the only fills, the field is an input. Look and tokens
   follow the Progress page; buttons are the lesson pills (CLAUDE.md), 40px here, the navigation keeps 46.
   Hover: the pills' and the chip's hover is gated to mouse and trackpad; nothing else hovers. */
.completed-page[b-3c7726nogz] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --green: #92cd4d;
    --green-ink: #5d8f22;
    --red-ink: #d93639;
    --sheet-radius: 20px;
    --sheet-pad: clamp(16px, 2vw, 24px);
    --section-gap: clamp(20px, 2.5vw, 32px);
    --gutter: clamp(12px, 1.6vw + 8px, 40px);
    box-sizing: border-box;
    max-width: 1700px;
    margin: 0 auto;
    padding: calc(var(--lesson-pad-top, 40px) + env(safe-area-inset-top, 0px)) var(--gutter) clamp(24px, 3vw, 40px);
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    -webkit-text-size-adjust: 100%;
}

    .completed-page *[b-3c7726nogz],
    .completed-page *[b-3c7726nogz]::before,
    .completed-page *[b-3c7726nogz]::after {
        box-sizing: border-box;
    }

    .completed-page *[b-3c7726nogz] {
        -webkit-user-select: none;
        user-select: none;
    }

    /* The texts may be copied; the field is typed in */
    .completed-page .student-text[b-3c7726nogz],
    .completed-page .teacher-text[b-3c7726nogz],
    .completed-page .teacher-input[b-3c7726nogz] {
        -webkit-user-select: text;
        user-select: text;
    }

/* Laid out but not shown until the data is in (see the page's root): shown as the parts come, the page jumps.
   The spinner covers a slow load. */
.completed-page.is-loading[b-3c7726nogz] {
    visibility: hidden;
}

/* ===== Head ===== */
.lesson-head[b-3c7726nogz] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: var(--section-gap);
}

    /* The head spaces its lines itself */
    .lesson-head[b-3c7726nogz]  .module-header {
        margin-bottom: 0;
    }

/* The task as the admin typed it: line breaks kept, nothing when empty */
.task-instructions[b-3c7726nogz] {
    max-width: 960px;
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* The lesson's own text (a correction's text with its mistakes), folded under the task: open, it is the same prose
   as the task */
.task-source[b-3c7726nogz] {
    max-width: 960px;
}

.task-source-summary[b-3c7726nogz] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--brand);
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

    .task-source-summary[b-3c7726nogz]::-webkit-details-marker {
        display: none;
    }

    .task-source-summary[b-3c7726nogz]::before {
        content: "";
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 0.2s ease;
    }

    .task-source[open] .task-source-summary[b-3c7726nogz]::before {
        transform: translateY(2px) rotate(-135deg);
    }

    .task-source-summary:focus-visible[b-3c7726nogz] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
        border-radius: 6px;
    }

.task-source-text[b-3c7726nogz] {
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* ===== The work: the student's text and the teacher's answer ===== */
.work[b-3c7726nogz] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--section-gap);
    min-width: 0;
}

/* Each side is one panel with its label inside: the student's on the soft grey sheet, the teacher's on
   the tinted one, so the two read as a pair */
.student-side[b-3c7726nogz],
.teacher-side[b-3c7726nogz] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: var(--sheet-pad);
    border-radius: var(--sheet-radius);
}

.student-side[b-3c7726nogz] {
    background: var(--surface);
}

.side-label[b-3c7726nogz] {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.2px;
    color: var(--ink);
    overflow-wrap: break-word;
}

.teacher-label[b-3c7726nogz] {
    color: var(--brand);
}

/* The label with its small line under it: the word count, the dates */
.side-head[b-3c7726nogz] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-meta[b-3c7726nogz] {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-muted);
}

/* A small link in the meta line (the student's chat) */
.side-link[b-3c7726nogz] {
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

    @media (hover: hover) and (pointer: fine) {
        .side-link:hover[b-3c7726nogz] {
            text-decoration: underline;
        }
    }

    .side-link:active[b-3c7726nogz] {
        text-decoration: underline;
    }

    .side-link:focus-visible[b-3c7726nogz] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
        border-radius: 4px;
    }

/* The label with the state of the work beside it (the teacher's view) */
.side-title-row[b-3c7726nogz] {
    display: flex;
    align-items: center;
    gap: 6px 12px;
    flex-wrap: wrap;
}

/* The state: ink on the yellow while it waits (yellow text does not read), green once checked */
.state-chip[b-3c7726nogz] {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border-radius: 12px;
}

    .state-chip.is-pending[b-3c7726nogz] {
        color: var(--ink);
        background: #fef9e7;
        border: 1px solid #f9dc74;
    }

    .state-chip.is-answered[b-3c7726nogz] {
        color: var(--green-ink);
        background: #f4faec;
        border: 1px solid #cfe7b3;
    }

/* The teacher's changes, in red on both sides like a pen on paper: what the teacher dropped is struck out on the
   student's side, what the teacher wrote instead or added is red on the teacher's. ::deep: the marks are built by
   the page's RenderFragments, which carry no scope attribute; their text container does. */
[b-3c7726nogz] mark.diff-del {
    padding: 0;
    color: var(--red-ink);
    background: none;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

[b-3c7726nogz] mark.diff-add {
    padding: 0;
    color: var(--red-ink);
    font-weight: 600;
    background: none;
}

/* The teacher's text as the student will get it, under the field; folds away */
.teacher-preview[b-3c7726nogz] {
    padding: 12px 16px 14px;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
}

.teacher-preview-summary[b-3c7726nogz] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--brand);
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

    .teacher-preview-summary[b-3c7726nogz]::-webkit-details-marker {
        display: none;
    }

    .teacher-preview-summary[b-3c7726nogz]::before {
        content: "";
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 0.2s ease;
    }

    .teacher-preview[open] .teacher-preview-summary[b-3c7726nogz]::before {
        transform: translateY(2px) rotate(-135deg);
    }

    .teacher-preview-summary:focus-visible[b-3c7726nogz] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
        border-radius: 6px;
    }

.teacher-preview-text[b-3c7726nogz] {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.65;
}

.diff-legend[b-3c7726nogz] {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-muted);
}

/* The teacher's photo on the panel, at a readable height; a tap opens it at full size */
.feedback-image-button[b-3c7726nogz] {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 12px;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}

    .feedback-image-button:focus-visible[b-3c7726nogz] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

.feedback-image[b-3c7726nogz] {
    display: block;
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    border-radius: 12px;
    background: #fff;
}

/* The student's text at a reading size */
.student-text[b-3c7726nogz] {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* The teacher's side holds whatever the teacher has for the student */
.teacher-panel[b-3c7726nogz] {
    background: var(--brand-soft);
}

.teacher-text[b-3c7726nogz] {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* Nothing from the teacher yet */
.teacher-pending[b-3c7726nogz] {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* The teacher's field: the essay page's white sheet, the brand line and a soft ring on focus, growing with
   the text where the browser has field-sizing and scrolling inside elsewhere */
.teacher-input[b-3c7726nogz] {
    display: block;
    width: 100%;
    min-height: clamp(220px, 35vh, 400px);
    field-sizing: content;
    margin: 0;
    padding: clamp(14px, 1.6vw, 20px);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--brand-line);
    border-radius: 16px;
    outline: none;
    resize: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .teacher-input[b-3c7726nogz]::placeholder {
        color: var(--ink-muted);
        opacity: 1;
    }

    .teacher-input:focus[b-3c7726nogz] {
        border-color: var(--brand);
        box-shadow: 0 0 0 4px #e8eeff;
    }

/* Above the field: the letters on the left, the "take the student's text" pill on the right */
.field-tools[b-3c7726nogz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    flex-wrap: wrap;
}

/* The German letters: small white chips in a row above the field, 36px for a thumb, the brand on press */
.letters[b-3c7726nogz] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.letter[b-3c7726nogz] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--brand-line);
    border-radius: 18px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .letter:hover[b-3c7726nogz] {
            border-color: var(--brand);
            color: var(--brand);
        }
    }

    .letter:active[b-3c7726nogz] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
        transform: scale(0.95);
        transition-duration: 0s;
    }

    .letter:focus-visible[b-3c7726nogz] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

/* The text came back from the browser's draft; goes at the next keystroke */
.draft-note[b-3c7726nogz] {
    margin: -6px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--green-ink);
}

/* ===== The file and the buttons ===== */
.file-row[b-3c7726nogz],
.save-row[b-3c7726nogz] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    min-width: 0;
}

/* The file by name, with its icon: a white chip on the panel */
.file-chip[b-3c7726nogz] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 40px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 20px;
}

.file-icon[b-3c7726nogz] {
    flex: none;
    width: 18px;
    height: 18px;
}

.file-name[b-3c7726nogz] {
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The small round "×" that drops a picked file before it is sent */
.chip-remove[b-3c7726nogz] {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: -6px;
    padding: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink-muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .chip-remove:hover[b-3c7726nogz] {
            color: var(--red-ink);
            background: #ffecec;
        }
    }

    .chip-remove:active[b-3c7726nogz] {
        color: var(--red-ink);
        background: #ffecec;
        transform: scale(0.92);
        transition-duration: 0s;
    }

    .chip-remove:focus-visible[b-3c7726nogz] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 1px;
    }

/* The picker itself is a hidden input; its label is the pill. ::deep: InputFile renders the input, so the
   scope attribute is not on it. */
[b-3c7726nogz] .file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

    [b-3c7726nogz] .file-input:focus-visible + label {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

/* The lesson pill at 40px: white, a 2px line and the label in the button's colour; pressed (and the gated
   hover) fills with that colour; busy fills and shows a spinner in place of the label */
.pill[b-3c7726nogz] {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-decoration: none;
    background: #fff;
    border: 2px solid currentColor;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pill-blue[b-3c7726nogz] {
    color: var(--brand);
}

.pill-green[b-3c7726nogz] {
    color: var(--green);
}

    @media (hover: hover) and (pointer: fine) {
        .pill:hover[b-3c7726nogz] {
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }

        .pill-blue:hover[b-3c7726nogz] {
            color: #fff;
            background: var(--brand);
            border-color: var(--brand);
        }

        .pill-green:hover[b-3c7726nogz] {
            color: #fff;
            background: var(--green);
            border-color: var(--green);
        }
    }

    .pill:active[b-3c7726nogz] {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .pill-blue:active[b-3c7726nogz],
    .pill-blue.is-busy[b-3c7726nogz] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }

    .pill-green:active[b-3c7726nogz],
    .pill-green.is-busy[b-3c7726nogz] {
        color: #fff;
        background: var(--green);
        border-color: var(--green);
    }

    .pill:focus-visible[b-3c7726nogz] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    .pill:disabled[b-3c7726nogz] {
        cursor: not-allowed;
        pointer-events: none;
    }

    .pill.is-busy[b-3c7726nogz] {
        cursor: progress;
    }

        .pill.is-busy .pill-label[b-3c7726nogz] {
            visibility: hidden;
        }

        .pill.is-busy[b-3c7726nogz]::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 16px;
            height: 16px;
            margin: -8px 0 0 -8px;
            border: 2px solid currentColor;
            border-right-color: transparent;
            border-radius: 50%;
            animation: pill-spin-b-3c7726nogz 0.7s linear infinite;
        }

@keyframes pill-spin-b-3c7726nogz {
    to {
        transform: rotate(360deg);
    }
}

/* The next waiting work, at the end of the save row */
.next-work[b-3c7726nogz] {
    margin-left: auto;
}

.save-status[b-3c7726nogz] {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink-muted);
}

    .save-status.is-saved[b-3c7726nogz] {
        color: var(--green-ink);
    }

    .save-status.is-error[b-3c7726nogz] {
        color: var(--red-ink);
    }

/* ===== The teacher's image at full size ===== */
.image-modal[b-3c7726nogz] {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 40px);
    background: rgba(26, 26, 26, 0.78);
    font-family: 'Montserrat', sans-serif;
}

.image-modal-content[b-3c7726nogz] {
    position: relative;
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    max-height: 90dvh;
}

.image-modal-image[b-3c7726nogz] {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
}

/* The close button: a white circle on the image's corner, 44px for a thumb */
.image-modal-close[b-3c7726nogz] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-family: inherit;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

    .image-modal-close:active[b-3c7726nogz] {
        background: var(--line);
        transform: scale(0.95);
    }

    .image-modal-close:focus-visible[b-3c7726nogz] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

/* ===== Wide screens: the two sides next to each other ===== */
@media (min-width: 1100px) {
    .work.two-sided[b-3c7726nogz] {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        column-gap: clamp(32px, 4vw, 64px);
    }
}

/* ===== Phones ===== */
@media (max-width: 480px) {
    .completed-page[b-3c7726nogz] {
        --sheet-radius: 16px;
        --sheet-pad: 14px;
    }

    .lesson-head[b-3c7726nogz] {
        gap: 12px;
    }

    .task-instructions[b-3c7726nogz] {
        font-size: 15px;
    }

    .side-label[b-3c7726nogz] {
        font-size: 14px;
    }

    .student-text[b-3c7726nogz],
    .teacher-text[b-3c7726nogz] {
        font-size: 16px;
        line-height: 1.65;
    }

    .teacher-input[b-3c7726nogz] {
        min-height: clamp(180px, 30vh, 320px);
        border-radius: 14px;
    }

    .file-name[b-3c7726nogz] {
        max-width: 180px;
    }

    /* The next-work pill on its own full row under the save button */
    .next-work[b-3c7726nogz] {
        width: 100%;
    }

    .feedback-image[b-3c7726nogz] {
        max-height: 280px;
    }

    .image-modal[b-3c7726nogz] {
        padding: 10px;
    }

    .image-modal-image[b-3c7726nogz] {
        border-radius: 12px;
    }
}

/* ===== Phones and small tablets: the letters as one keyboard row ===== */
/* Seven loose chips crowd a narrow screen; here they are the keys of one tray on the panel's deeper tint, equal
   cells that fill the field's width, white with a thin shadow like a phone keyboard, 44px for a thumb. */
@media (max-width: 600px) {
    .field-tools[b-3c7726nogz] {
        flex-direction: column;
        align-items: stretch;
    }

    .letters[b-3c7726nogz] {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 5px;
        padding: 5px;
        background: #e8eeff;
        border-radius: 14px;
    }

    .letter[b-3c7726nogz] {
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0;
        font-size: 20px;
        border: 0;
        border-radius: 10px;
        box-shadow: 0 1px 1.5px rgba(20, 30, 60, 0.18);
    }

        .letter:active[b-3c7726nogz] {
            box-shadow: none;
            transform: none;
        }
}
/* /Pages/Lessons/Completion.razor.rz.scp.css */
.completion-summary-page[b-piwl1mvqe5] {
    --completion-color-text: #1a1a1a;
    --completion-color-muted: #666;
    --completion-color-border: #e0e0e0;
    --completion-color-primary: #4D7CFE;
    --completion-color-success: #92CD4D;
    --completion-color-error: #FF4245;
    --completion-color-accent: #FF6243;
    --completion-radius: 12px;
    --completion-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --completion-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --completion-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
    --completion-gap: 28px;
    --completion-vh: 1640px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--completion-color-text);
    max-width: 1700px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    padding-top: var(--lesson-pad-top, 60px);
    position: relative;
    user-select: none;
    min-height: 100vh;
}

    .completion-summary-page *[b-piwl1mvqe5] {
        user-select: none;
    }

    .completion-summary-page textarea[b-piwl1mvqe5],
    .completion-summary-page input[b-piwl1mvqe5],
    .completion-summary-page button[b-piwl1mvqe5] {
        font-family: inherit;
    }

/* Inputs */
.completion-comment-wrapper[b-piwl1mvqe5] {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.completion-comment-footer[b-piwl1mvqe5] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.completion-comment-input[b-piwl1mvqe5] {
    user-select: text;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 16px 40px 16px;
    font-size: 15px;
    line-height: 1.6;
    border: 2px solid transparent;
    border-radius: calc(var(--completion-radius) - 2px);
    background: rgba(0, 0, 0, 0.02);
    resize: none;
    transition: all 0.3s ease;
    min-height: 120px;
}

    @media (hover: hover) and (pointer: fine) {
        .completion-comment-input:hover[b-piwl1mvqe5] {
            background: rgba(0, 0, 0, 0.03);
        }
    }

    .completion-comment-input:focus[b-piwl1mvqe5] {
        outline: none;
        border: 2px solid var(--completion-color-primary);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(77, 124, 254, 0.1);
    }

    .completion-comment-input[b-piwl1mvqe5]::placeholder {
        color: var(--completion-color-muted);
        opacity: 0.6;
    }

    .completion-comment-input:disabled[b-piwl1mvqe5] {
        opacity: 0.6;
        cursor: not-allowed;
        background: #f5f5f5;
    }

.completion-char-counter[b-piwl1mvqe5] {
    font-size: 12px;
    color: var(--completion-color-muted);
    font-weight: 500;
}

.completion-save-comment-btn[b-piwl1mvqe5] {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid var(--completion-color-primary);
    border-radius: 18px;
    background: #fff;
    color: var(--completion-color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

    @media (hover: hover) and (pointer: fine) {
        .completion-save-comment-btn:hover:not(:disabled)[b-piwl1mvqe5] {
            background: var(--completion-color-primary);
            color: #fff;
            transform: translateY(-1px);
            box-shadow: var(--completion-shadow-sm);
        }
    }

    .completion-save-comment-btn:active:not(:disabled)[b-piwl1mvqe5] {
        transform: translateY(0);
    }

    .completion-save-comment-btn:disabled[b-piwl1mvqe5] {
        opacity: 0.4;
        cursor: not-allowed;
    }

.completion-comment-saved-badge[b-piwl1mvqe5] {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    background: var(--completion-color-success);
    color: #fff;
    border-radius: 18px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

/* =============================================
   Elements OUTSIDE .completion-summary-page
   Use hardcoded values — CSS vars won't cascade
   ============================================= */

/* Save Success Toast */
.completion-save-toast[b-piwl1mvqe5] {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #92CD4D;
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-weight: 600;
    z-index: 10001;
    animation: completion-toast-slide-in-b-piwl1mvqe5 0.3s ease, completion-toast-slide-out-b-piwl1mvqe5 0.3s ease 2.7s;
}

@keyframes completion-toast-slide-in-b-piwl1mvqe5 {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes completion-toast-slide-out-b-piwl1mvqe5 {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Confirmation Modal */
.completion-confirmation-overlay[b-piwl1mvqe5] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    user-select: auto;
}

.completion-confirmation-modal[b-piwl1mvqe5] {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: completion-modal-appear-b-piwl1mvqe5 0.3s ease;
    user-select: auto;
    position: relative;
    z-index: 10001;
}

@keyframes completion-modal-appear-b-piwl1mvqe5 {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.completion-confirmation-title[b-piwl1mvqe5] {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    text-align: center;
    user-select: auto;
}

.completion-confirmation-text[b-piwl1mvqe5] {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 32px 0;
    color: #1a1a1a;
    text-align: center;
    user-select: auto;
}

.completion-confirmation-buttons[b-piwl1mvqe5] {
    display: flex;
    gap: 16px;
    justify-content: center;
    user-select: none;
}

.completion-confirmation-btn[b-piwl1mvqe5] {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    min-width: 120px;
    border: 2px solid;
    user-select: none;
    position: relative;
    z-index: 10002;
}

    .completion-confirmation-btn.completion-btn-no[b-piwl1mvqe5] {
        border-color: #666;
        background: #fff;
        color: #666;
    }

        @media (hover: hover) and (pointer: fine) {
            .completion-confirmation-btn.completion-btn-no:hover[b-piwl1mvqe5] {
                background: #666;
                color: #fff;
                transform: translateY(-2px);
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            }
        }

        .completion-confirmation-btn.completion-btn-no:active[b-piwl1mvqe5] {
            transform: translateY(0);
        }

    .completion-confirmation-btn.completion-btn-yes[b-piwl1mvqe5] {
        border-color: #92CD4D;
        background: #92CD4D;
        color: #fff;
    }

        @media (hover: hover) and (pointer: fine) {
            .completion-confirmation-btn.completion-btn-yes:hover[b-piwl1mvqe5] {
                background: #7ab93d;
                border-color: #7ab93d;
                transform: translateY(-2px);
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            }
        }

        .completion-confirmation-btn.completion-btn-yes:active[b-piwl1mvqe5] {
            transform: translateY(0);
        }

/* Loading Overlay */
.completion-loading-page-overlay[b-piwl1mvqe5] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.completion-loading-page-container[b-piwl1mvqe5] {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto;
}

.completion-loading-page-progress[b-piwl1mvqe5] {
    position: absolute;
    width: 130px;
    height: 130px;
    animation: completion-spin-loader-b-piwl1mvqe5 1.5s linear infinite;
}

    .completion-loading-page-progress circle[b-piwl1mvqe5] {
        fill: none;
        stroke: #000;
        stroke-width: 3;
        stroke-dasharray: 150;
        stroke-dashoffset: 0;
    }

.completion-loading-page-logo[b-piwl1mvqe5] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
}

@keyframes completion-spin-loader-b-piwl1mvqe5 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   Elements INSIDE .completion-summary-page
   CSS vars are available here
   ============================================= */

/* Header */
.completion-header-row[b-piwl1mvqe5] {
    width: var(--completion-vh);
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.completion-module-label[b-piwl1mvqe5] {
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 12px;
    color: var(--completion-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.completion-page-title[b-piwl1mvqe5] {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--completion-color-text);
    letter-spacing: -0.5px;
}

/* Layout */
.completion-content-sections[b-piwl1mvqe5] {
    display: flex;
    flex-direction: column;
    gap: var(--completion-gap);
}

.completion-grid-container[b-piwl1mvqe5] {
    width: var(--completion-vh);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 790px 830px;
    grid-auto-rows: minmax(200px, auto);
    gap: var(--completion-gap);
    grid-template-areas:
        "topic teacher-comment"
        "vocab self-comment";
}

.completion-section-box[b-piwl1mvqe5] {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 28px;
    background: #fff;
    border: 2px solid var(--completion-color-border);
    border-radius: var(--completion-radius);
    box-shadow: var(--completion-shadow-sm);
    transition: all 0.3s ease;
}

.completion-topic-box[b-piwl1mvqe5] {
    grid-area: topic;
}

.completion-vocab-box[b-piwl1mvqe5] {
    grid-area: vocab;
}

.completion-comment-box[b-piwl1mvqe5] {
    grid-area: teacher-comment;
}

.completion-self-comment-box[b-piwl1mvqe5] {
    grid-area: self-comment;
}

.completion-topic-box[b-piwl1mvqe5],
.completion-vocab-box[b-piwl1mvqe5] {
    border-color: var(--completion-color-success);
    border-left-width: 6px;
}

.completion-comment-box[b-piwl1mvqe5],
.completion-self-comment-box[b-piwl1mvqe5] {
    border-color: var(--completion-color-primary);
    border-left-width: 6px;
}

.completion-mistakes-box[b-piwl1mvqe5] {
    border-color: var(--completion-color-accent);
    border-left-width: 6px;
}

.completion-topic-box[b-piwl1mvqe5],
.completion-vocab-box[b-piwl1mvqe5],
.completion-comment-box[b-piwl1mvqe5],
.completion-self-comment-box[b-piwl1mvqe5] {
    min-height: 200px;
}

.completion-wide-box[b-piwl1mvqe5] {
    width: var(--completion-vh);
    margin: 0 auto;
    min-height: 300px;
}

.completion-section-title[b-piwl1mvqe5] {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--completion-color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.completion-section-content[b-piwl1mvqe5] {
    flex: 1;
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    overflow: auto;
    color: var(--completion-color-text);
}

/* Save button spinner */
.completion-btn-spinner[b-piwl1mvqe5] {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top-color: var(--completion-color-primary);
    border-left-color: var(--completion-color-primary);
    border-radius: 50%;
    animation: completion-btn-spin-b-piwl1mvqe5 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes completion-btn-spin-b-piwl1mvqe5 {
    to {
        transform: rotate(360deg);
    }
}

/* Module result: average score of the module's exercises */
.completion-rating-box[b-piwl1mvqe5] {
    padding: 24px 28px;
    border: 2px solid var(--completion-color-border);
    background: #fff;
    box-shadow: var(--completion-shadow-sm);
    width: min(100%, 440px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .completion-rating-box .completion-section-title[b-piwl1mvqe5] {
        margin: 0;
    }

.completion-char-counter[b-piwl1mvqe5] {
    font-size: 12px;
    color: var(--completion-color-muted);
    font-weight: 500;
}

/* Mistakes grid */
.completion-mistakes-box .completion-modules-grid[b-piwl1mvqe5] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.completion-module-card[b-piwl1mvqe5] {
    background: rgba(0, 0, 0, 0.02);
    border: 2px solid var(--completion-color-border);
    border-radius: calc(var(--completion-radius) - 2px);
    padding: 20px;
    transition: all 0.3s ease;
}

.completion-module-header[b-piwl1mvqe5] {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--completion-color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.completion-mistake-list[b-piwl1mvqe5] {
    list-style: none;
    padding: 0;
    margin: 0;
}

.completion-mistake-item[b-piwl1mvqe5] {
    margin-bottom: 20px;
    padding-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
    border-bottom: 1px solid var(--completion-color-border);
}

    .completion-mistake-item:last-child[b-piwl1mvqe5] {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.completion-question-prompt[b-piwl1mvqe5] {
    margin-bottom: 12px;
    font-weight: 500;
}

    .completion-question-prompt strong[b-piwl1mvqe5] {
        font-weight: 600;
        color: var(--completion-color-text);
    }

.completion-blank-item p[b-piwl1mvqe5] {
    margin: 8px 0;
    padding: 0;
}

.completion-template-line[b-piwl1mvqe5] {
    font-weight: 500;
    margin-bottom: 10px !important;
}

.completion-mistake-item strong[b-piwl1mvqe5] {
    color: var(--completion-color-text);
    font-weight: 600;
}

.completion-mistake-item .completion-user-answer[b-piwl1mvqe5],
.completion-mistake-item .completion-user-answer .completion-answer[b-piwl1mvqe5] {
    color: var(--completion-color-error);
    font-weight: 600;
}

.completion-mistake-item .completion-correct-answer[b-piwl1mvqe5],
.completion-mistake-item .completion-correct-answer .completion-answer[b-piwl1mvqe5] {
    color: var(--completion-color-success);
    font-weight: 600;
}

.completion-mistake-item p[b-piwl1mvqe5] {
    margin: 6px 0;
}

.completion-no-errors[b-piwl1mvqe5] {
    font-style: italic;
    color: var(--completion-color-muted);
    text-align: center;
    padding: 40px;
    font-size: 16px;
}

/* Load More Button */
.completion-load-more-container[b-piwl1mvqe5] {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px dashed var(--completion-color-border);
}

.completion-load-more-btn[b-piwl1mvqe5] {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--completion-color-primary);
    border-radius: 24px;
    background: #fff;
    color: var(--completion-color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--completion-shadow-sm);
    letter-spacing: 0.3px;
}

    @media (hover: hover) and (pointer: fine) {
        .completion-load-more-btn:hover[b-piwl1mvqe5] {
            background: var(--completion-color-primary);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: var(--completion-shadow-hover);
        }
    }

    .completion-load-more-btn:active[b-piwl1mvqe5] {
        transform: translateY(0);
    }

.completion-mistakes-counter[b-piwl1mvqe5] {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--completion-color-muted);
    font-weight: 500;
}

/* Mistakes load-failure state */
.completion-load-error[b-piwl1mvqe5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 40px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--completion-color-error);
    background: rgba(255, 66, 69, 0.06);
    border: 1px dashed rgba(255, 66, 69, 0.35);
    border-radius: calc(var(--completion-radius) - 2px);
}

    /* Retry button — brand blue, matches .completion-load-more-btn styling */
    .completion-load-error .completion-load-more-btn[b-piwl1mvqe5] {
        margin-top: 4px;
        border-color: var(--completion-color-primary);
        color: var(--completion-color-primary);
        background: #fff;
    }

        @media (hover: hover) and (pointer: fine) {
            .completion-load-error .completion-load-more-btn:hover[b-piwl1mvqe5] {
                background: var(--completion-color-primary);
                color: #fff;
                transform: translateY(-2px);
                box-shadow: var(--completion-shadow-hover);
            }
        }
/* Stage 2: Fluid two-column layout for medium screens */
@media (max-width: 1700px) {
    .completion-summary-page[b-piwl1mvqe5] {
        padding: 40px 20px 60px;
        padding-top: var(--lesson-pad-top, 40px);
    }

    .completion-header-row[b-piwl1mvqe5],
    .completion-grid-container[b-piwl1mvqe5],
    .completion-wide-box[b-piwl1mvqe5] {
        width: 100%;
        --completion-vh: 100%;
    }

    .completion-header-row[b-piwl1mvqe5] {
        gap: 20px;
    }

    .completion-grid-container[b-piwl1mvqe5] {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "topic teacher-comment"
            "vocab self-comment";
    }
}

/* Switch header to column at smaller breakpoint */
@media (max-width: 1200px) {
    .completion-header-row[b-piwl1mvqe5] {
        flex-direction: column;
        align-items: stretch;
    }

    .completion-rating-box[b-piwl1mvqe5] {
        width: 100%;
    }
}

/* Stage 3: Stacked single-column layout for narrow screens */
@media (max-width: 992px) {
    .completion-summary-page[b-piwl1mvqe5] {
        padding: 30px 16px 50px;
    }

    .completion-page-title[b-piwl1mvqe5] {
        font-size: 36px;
    }

    .completion-grid-container[b-piwl1mvqe5] {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topic"
            "vocab"
            "teacher-comment"
            "self-comment";
    }
    /* Mistakes grid adjustments */
    .completion-mistakes-box .completion-modules-grid[b-piwl1mvqe5] {
        grid-template-columns: 1fr;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .completion-summary-page[b-piwl1mvqe5] {
        padding: 20px 12px 40px;
    }

    .completion-page-title[b-piwl1mvqe5] {
        font-size: 28px;
    }

    .completion-section-box[b-piwl1mvqe5] {
        padding: 20px;
    }

    .completion-rating-box[b-piwl1mvqe5] {
        padding: 20px;
    }

    .completion-load-more-btn[b-piwl1mvqe5] {
        width: 100%;
        padding: 16px;
    }

    .completion-confirmation-modal[b-piwl1mvqe5] {
        padding: 24px;
    }

    .completion-confirmation-title[b-piwl1mvqe5] {
        font-size: 20px;
    }

    .completion-confirmation-text[b-piwl1mvqe5] {
        font-size: 14px;
    }

    .completion-confirmation-buttons[b-piwl1mvqe5] {
        flex-direction: column;
    }

    .completion-confirmation-btn[b-piwl1mvqe5] {
        width: 100%;
    }

    .completion-save-toast[b-piwl1mvqe5] {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Disabled state */
.completion-disabled[b-piwl1mvqe5] {
    opacity: 0.5;
    pointer-events: none;
}

    @media (hover: hover) and (pointer: fine) {
        .completion-disabled:hover[b-piwl1mvqe5] {
            transform: none !important;
            box-shadow: var(--completion-shadow-sm) !important;
        }
    }

.completion-premium-badge[b-piwl1mvqe5] {
    display: inline-block;
    background: var(--completion-color-primary);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    text-align: center;
    line-height: 1;
}
/* /Pages/Lessons/Correction.razor.rz.scp.css */
/* Correction lesson: the head (name), the writing (the task as the admin typed it, the field for the text with its
   word count), the navigation. The field is the one box on the page: a white sheet with a light line that turns
   brand on focus. The task is prose beside the field on wide screens and above it on narrow ones; without a
   task the field stands alone at the reading width. Look and tokens follow the Progress page.
   Hover: nothing on this page hovers; the navigation buttons gate their own (CLAUDE.md). */
.essay-page[b-aj74qcg8r6] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --field-radius: 20px;
    --field-pad: clamp(16px, 2vw, 24px);
    --section-gap: clamp(20px, 2.5vw, 32px);
    --gutter: clamp(12px, 1.6vw + 8px, 40px);
    --measure: 960px;
    box-sizing: border-box;
    max-width: 1700px;
    margin: 0 auto;
    padding: calc(var(--lesson-pad-top, 40px) + env(safe-area-inset-top, 0px)) var(--gutter) clamp(24px, 3vw, 40px);
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    -webkit-text-size-adjust: 100%;
}

    .essay-page *[b-aj74qcg8r6],
    .essay-page *[b-aj74qcg8r6]::before,
    .essay-page *[b-aj74qcg8r6]::after {
        box-sizing: border-box;
    }

    .essay-page *[b-aj74qcg8r6] {
        -webkit-user-select: none;
        user-select: none;
    }

    /* The one thing on the page the student edits */
    .essay-page .essay-input[b-aj74qcg8r6] {
        -webkit-user-select: text;
        user-select: text;
    }

/* Laid out but not shown until the data is in (see the page's root): shown as the parts come, the page jumps.
   The spinner covers a slow load. */
.essay-page.is-loading[b-aj74qcg8r6] {
    visibility: hidden;
}

/* ===== Head ===== */
.lesson-head[b-aj74qcg8r6] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: var(--section-gap);
}

    /* The head spaces its lines itself */
    .lesson-head[b-aj74qcg8r6]  .module-header {
        margin-bottom: 0;
    }

/* ===== Writing: the task and the field ===== */
.writing[b-aj74qcg8r6] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--section-gap);
    min-width: 0;
}

/* The task as the admin typed it: line breaks kept, nothing when empty */
.task[b-aj74qcg8r6] {
    max-width: var(--measure);
    min-width: 0;
}

.task[b-aj74qcg8r6] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-instructions[b-aj74qcg8r6] {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* The lesson's text (a correction's text with its mistakes) on the soft grey sheet under the task, with the
   button that puts it into the field */
.source[b-aj74qcg8r6] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: var(--field-pad);
    background: var(--surface);
    border-radius: var(--field-radius);
}

.source-label[b-aj74qcg8r6] {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.2px;
    color: var(--ink-soft);
}

.source-text[b-aj74qcg8r6] {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.editor[b-aj74qcg8r6] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: var(--measure);
    min-width: 0;
}

/* The German letters: small white chips in a row above the field, 36px for a thumb, the brand on press */
.letters[b-aj74qcg8r6] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 2px;
}

.letter[b-aj74qcg8r6] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid #dfe3ea;
    border-radius: 18px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .letter:hover[b-aj74qcg8r6] {
            border-color: var(--brand);
            color: var(--brand);
        }
    }

    .letter:active[b-aj74qcg8r6] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
        transform: scale(0.95);
        transition-duration: 0s;
    }

    .letter:focus-visible[b-aj74qcg8r6] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

/* The lesson pill at 40px (the completed view has the same): white, a 2px line and the label in the button's
   colour; pressed (and the gated hover) fills with that colour */
.pill[b-aj74qcg8r6] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    background: #fff;
    border: 2px solid currentColor;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pill-blue[b-aj74qcg8r6] {
    color: var(--brand);
}

    @media (hover: hover) and (pointer: fine) {
        .pill:hover[b-aj74qcg8r6] {
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }

        .pill-blue:hover[b-aj74qcg8r6] {
            color: #fff;
            background: var(--brand);
            border-color: var(--brand);
        }
    }

    .pill:active[b-aj74qcg8r6] {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .pill-blue:active[b-aj74qcg8r6] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }

    .pill:focus-visible[b-aj74qcg8r6] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

/* The field: a white sheet at a reading size that grows with the text (field-sizing where the browser has it;
   elsewhere it scrolls inside), no resize handle, the brand line and a soft ring on focus */
.essay-input[b-aj74qcg8r6] {
    display: block;
    width: 100%;
    min-height: clamp(280px, 45vh, 460px);
    field-sizing: content;
    margin: 0;
    padding: var(--field-pad);
    font-family: inherit;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid #dfe3ea;
    border-radius: var(--field-radius);
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04);
    outline: none;
    resize: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .essay-input[b-aj74qcg8r6]::placeholder {
        color: var(--ink-muted);
        opacity: 1;
    }

    .essay-input:focus[b-aj74qcg8r6] {
        border-color: var(--brand);
        box-shadow: 0 0 0 4px #e8eeff;
    }

/* Under the field: the count, bold, in the state's colour, and the rule beside it */
.editor-status[b-aj74qcg8r6] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    padding: 0 4px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink-muted);
}

.word-count[b-aj74qcg8r6] {
    font-weight: 700;
    color: var(--ink-soft);
}

    .word-count.is-enough[b-aj74qcg8r6] {
        color: #5d8f22;
    }

    .word-count.is-over[b-aj74qcg8r6] {
        color: #d93639;
    }

/* Past the limit the rule turns into the instruction, in the same red */
.word-rule.is-over[b-aj74qcg8r6] {
    font-weight: 600;
    color: #d93639;
}

/* The text came back from the browser's draft; goes at the next keystroke */
.draft-note[b-aj74qcg8r6] {
    color: #5d8f22;
}

.send-error[b-aj74qcg8r6] {
    margin: 0;
    padding: 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #d93639;
}

/* Wide screens with a task: the task in a column on the left, the field beside it at the reading width, both
   starting at the gutter (sized columns, so at 1700px the space is left at the end of the row rather than
   opened between them). The task stays in view while a long text scrolls the page. */
@media (min-width: 1100px) {
    .writing.has-task[b-aj74qcg8r6] {
        grid-template-columns: minmax(300px, 520px) minmax(0, var(--measure));
        justify-content: start;
        align-items: start;
        column-gap: clamp(32px, 4vw, 64px);
    }

        /* Taller than the screen (a long text to correct): it scrolls inside, so its end stays reachable */
        .writing.has-task .task[b-aj74qcg8r6] {
            position: sticky;
            top: calc(var(--lesson-pad-top, 40px) + env(safe-area-inset-top, 0px) + 8px);
            max-width: none;
            max-height: calc(100vh - var(--lesson-pad-top, 40px) - env(safe-area-inset-top, 0px) - 24px);
            max-height: calc(100dvh - var(--lesson-pad-top, 40px) - env(safe-area-inset-top, 0px) - 24px);
            overflow-y: auto;
            overscroll-behavior: contain;
        }

        .writing.has-task .task-instructions[b-aj74qcg8r6] {
            font-size: 17px;
        }
}

/* ===== Phones ===== */
@media (max-width: 480px) {
    .essay-page[b-aj74qcg8r6] {
        --field-radius: 16px;
        --field-pad: 14px;
    }

    .lesson-head[b-aj74qcg8r6] {
        gap: 12px;
    }

    .task-instructions[b-aj74qcg8r6] {
        font-size: 15px;
    }

    /* 16px: below it iOS zooms the page in on focus */
    .essay-input[b-aj74qcg8r6] {
        min-height: clamp(240px, 40vh, 360px);
        font-size: 16px;
        line-height: 1.6;
    }

    .editor-status[b-aj74qcg8r6],
    .send-error[b-aj74qcg8r6] {
        font-size: 13px;
    }
}

/* ===== Phones and small tablets: the letters as one keyboard row ===== */
/* Seven loose chips crowd a narrow screen; here they are the keys of one tray on the soft grey, equal cells that
   fill the field's width, white with a thin shadow like a phone keyboard, 44px for a thumb, the brand on press. */
@media (max-width: 600px) {
    .letters[b-aj74qcg8r6] {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 5px;
        padding: 5px;
        background: var(--surface);
        border-radius: 14px;
    }

    .letter[b-aj74qcg8r6] {
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0;
        font-size: 20px;
        border: 0;
        border-radius: 10px;
        box-shadow: 0 1px 1.5px rgba(20, 30, 60, 0.18);
    }

        .letter:active[b-aj74qcg8r6] {
            box-shadow: none;
            transform: none;
        }
}
/* /Pages/Lessons/Eigensinn.razor.rz.scp.css */
.eigensinn-page[b-oo4xamn345] {
    max-width: 1700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    padding-top: var(--lesson-pad-top, 40px);
    position: relative;
    font-family: 'Montserrat', sans-serif;
    -webkit-user-select: none;
    user-select: none;
    color: #000;
}

.upper-section-minimal[b-oo4xamn345] {
    margin-bottom: 40px;
}

.task-label[b-oo4xamn345] {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.page-title[b-oo4xamn345] {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 60px;
}

/* Tablet */
@media (max-width: 1024px) {
    .eigensinn-page[b-oo4xamn345] {
        padding: 30px 20px;
    }

    .page-title[b-oo4xamn345] {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .eigensinn-page[b-oo4xamn345] {
        padding: 20px 15px;
    }

    .task-label[b-oo4xamn345] {
        font-size: 14px;
    }

    .page-title[b-oo4xamn345] {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .eigensinn-page[b-oo4xamn345] {
        padding: 15px 10px;
    }

    .page-title[b-oo4xamn345] {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .task-label[b-oo4xamn345] {
        font-size: 13px;
    }
}
/* /Pages/Lessons/Essay.razor.rz.scp.css */
/* Essay lesson: the head (name), the writing (the task as the admin typed it, the field for the text with its
   word count), the navigation. The field is the one box on the page: a white sheet with a light line that turns
   brand on focus. The task is prose beside the field on wide screens and above it on narrow ones; without a
   task the field stands alone at the reading width. Look and tokens follow the Progress page.
   Hover: nothing on this page hovers; the navigation buttons gate their own (CLAUDE.md). */
.essay-page[b-susaw812r6] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --field-radius: 20px;
    --field-pad: clamp(16px, 2vw, 24px);
    --section-gap: clamp(20px, 2.5vw, 32px);
    --gutter: clamp(12px, 1.6vw + 8px, 40px);
    --measure: 960px;
    box-sizing: border-box;
    max-width: 1700px;
    margin: 0 auto;
    padding: calc(var(--lesson-pad-top, 40px) + env(safe-area-inset-top, 0px)) var(--gutter) clamp(24px, 3vw, 40px);
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    -webkit-text-size-adjust: 100%;
}

    .essay-page *[b-susaw812r6],
    .essay-page *[b-susaw812r6]::before,
    .essay-page *[b-susaw812r6]::after {
        box-sizing: border-box;
    }

    .essay-page *[b-susaw812r6] {
        -webkit-user-select: none;
        user-select: none;
    }

    /* The one thing on the page the student edits */
    .essay-page .essay-input[b-susaw812r6] {
        -webkit-user-select: text;
        user-select: text;
    }

/* Laid out but not shown until the data is in (see the page's root): shown as the parts come, the page jumps.
   The spinner covers a slow load. */
.essay-page.is-loading[b-susaw812r6] {
    visibility: hidden;
}

/* ===== Head ===== */
.lesson-head[b-susaw812r6] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: var(--section-gap);
}

    /* The head spaces its lines itself */
    .lesson-head[b-susaw812r6]  .module-header {
        margin-bottom: 0;
    }

/* ===== Writing: the task and the field ===== */
.writing[b-susaw812r6] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--section-gap);
    min-width: 0;
}

/* The task as the admin typed it: line breaks kept, nothing when empty */
.task[b-susaw812r6] {
    max-width: var(--measure);
    min-width: 0;
}

.task[b-susaw812r6] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-instructions[b-susaw812r6] {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* The lesson's text (a correction's text with its mistakes) on the soft grey sheet under the task, with the
   button that puts it into the field */
.source[b-susaw812r6] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: var(--field-pad);
    background: var(--surface);
    border-radius: var(--field-radius);
}

.source-label[b-susaw812r6] {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.2px;
    color: var(--ink-soft);
}

.source-text[b-susaw812r6] {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.editor[b-susaw812r6] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: var(--measure);
    min-width: 0;
}

/* The German letters: small white chips in a row above the field, 36px for a thumb, the brand on press */
.letters[b-susaw812r6] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 2px;
}

.letter[b-susaw812r6] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid #dfe3ea;
    border-radius: 18px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .letter:hover[b-susaw812r6] {
            border-color: var(--brand);
            color: var(--brand);
        }
    }

    .letter:active[b-susaw812r6] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
        transform: scale(0.95);
        transition-duration: 0s;
    }

    .letter:focus-visible[b-susaw812r6] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

/* The lesson pill at 40px (the completed view has the same): white, a 2px line and the label in the button's
   colour; pressed (and the gated hover) fills with that colour */
.pill[b-susaw812r6] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    background: #fff;
    border: 2px solid currentColor;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pill-blue[b-susaw812r6] {
    color: var(--brand);
}

    @media (hover: hover) and (pointer: fine) {
        .pill:hover[b-susaw812r6] {
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }

        .pill-blue:hover[b-susaw812r6] {
            color: #fff;
            background: var(--brand);
            border-color: var(--brand);
        }
    }

    .pill:active[b-susaw812r6] {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .pill-blue:active[b-susaw812r6] {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }

    .pill:focus-visible[b-susaw812r6] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

/* The field: a white sheet at a reading size that grows with the text (field-sizing where the browser has it;
   elsewhere it scrolls inside), no resize handle, the brand line and a soft ring on focus */
.essay-input[b-susaw812r6] {
    display: block;
    width: 100%;
    min-height: clamp(280px, 45vh, 460px);
    field-sizing: content;
    margin: 0;
    padding: var(--field-pad);
    font-family: inherit;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid #dfe3ea;
    border-radius: var(--field-radius);
    box-shadow: 0 1px 2px rgba(20, 30, 60, 0.04);
    outline: none;
    resize: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .essay-input[b-susaw812r6]::placeholder {
        color: var(--ink-muted);
        opacity: 1;
    }

    .essay-input:focus[b-susaw812r6] {
        border-color: var(--brand);
        box-shadow: 0 0 0 4px #e8eeff;
    }

/* Under the field: the count, bold, in the state's colour, and the rule beside it */
.editor-status[b-susaw812r6] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    padding: 0 4px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink-muted);
}

.word-count[b-susaw812r6] {
    font-weight: 700;
    color: var(--ink-soft);
}

    .word-count.is-enough[b-susaw812r6] {
        color: #5d8f22;
    }

    .word-count.is-over[b-susaw812r6] {
        color: #d93639;
    }

/* Past the limit the rule turns into the instruction, in the same red */
.word-rule.is-over[b-susaw812r6] {
    font-weight: 600;
    color: #d93639;
}

/* The text came back from the browser's draft; goes at the next keystroke */
.draft-note[b-susaw812r6] {
    color: #5d8f22;
}

.send-error[b-susaw812r6] {
    margin: 0;
    padding: 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #d93639;
}

/* Wide screens with a task: the task in a column on the left, the field beside it at the reading width, both
   starting at the gutter (sized columns, so at 1700px the space is left at the end of the row rather than
   opened between them). The task stays in view while a long text scrolls the page. */
@media (min-width: 1100px) {
    .writing.has-task[b-susaw812r6] {
        grid-template-columns: minmax(300px, 520px) minmax(0, var(--measure));
        justify-content: start;
        align-items: start;
        column-gap: clamp(32px, 4vw, 64px);
    }

        /* Taller than the screen (a long text to correct): it scrolls inside, so its end stays reachable */
        .writing.has-task .task[b-susaw812r6] {
            position: sticky;
            top: calc(var(--lesson-pad-top, 40px) + env(safe-area-inset-top, 0px) + 8px);
            max-width: none;
            max-height: calc(100vh - var(--lesson-pad-top, 40px) - env(safe-area-inset-top, 0px) - 24px);
            max-height: calc(100dvh - var(--lesson-pad-top, 40px) - env(safe-area-inset-top, 0px) - 24px);
            overflow-y: auto;
            overscroll-behavior: contain;
        }

        .writing.has-task .task-instructions[b-susaw812r6] {
            font-size: 17px;
        }
}

/* ===== Phones ===== */
@media (max-width: 480px) {
    .essay-page[b-susaw812r6] {
        --field-radius: 16px;
        --field-pad: 14px;
    }

    .lesson-head[b-susaw812r6] {
        gap: 12px;
    }

    .task-instructions[b-susaw812r6] {
        font-size: 15px;
    }

    /* 16px: below it iOS zooms the page in on focus */
    .essay-input[b-susaw812r6] {
        min-height: clamp(240px, 40vh, 360px);
        font-size: 16px;
        line-height: 1.6;
    }

    .editor-status[b-susaw812r6],
    .send-error[b-susaw812r6] {
        font-size: 13px;
    }
}

/* ===== Phones and small tablets: the letters as one keyboard row ===== */
/* Seven loose chips crowd a narrow screen; here they are the keys of one tray on the soft grey, equal cells that
   fill the field's width, white with a thin shadow like a phone keyboard, 44px for a thumb, the brand on press. */
@media (max-width: 600px) {
    .letters[b-susaw812r6] {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 5px;
        padding: 5px;
        background: var(--surface);
        border-radius: 14px;
    }

    .letter[b-susaw812r6] {
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0;
        font-size: 20px;
        border: 0;
        border-radius: 10px;
        box-shadow: 0 1px 1.5px rgba(20, 30, 60, 0.18);
    }

        .letter:active[b-susaw812r6] {
            box-shadow: none;
            transform: none;
        }
}
/* /Pages/Lessons/Es_Test.razor.rz.scp.css */
.es-test-page[b-cgbgdhksju] {
    max-width: 1700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    padding-top: var(--lesson-pad-top, 40px);
    position: relative;
    font-family: 'Montserrat', sans-serif;
    -webkit-user-select: none;
    user-select: none;
    color: #000;
}

.upper-section-minimal[b-cgbgdhksju] {
    margin-bottom: 40px;
}

/* Nothing to show (no questions in the chosen themes, or no open mistakes): one centred message
   with the lesson's own buttons under it (blue goes back, green starts the full test). */
.es-test-empty-wide[b-cgbgdhksju] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(24px, 9vh, 110px) 0 24px;
    text-align: center;
}

    /* Full width of the block, so the stacked buttons of a narrow screen stay full-width pills */
    .es-test-empty-wide[b-cgbgdhksju]  .navigation-buttons {
        align-self: stretch;
        justify-content: center;
        margin-top: 28px;
    }

@media (min-width: 993px) {
    /* A pair: the same width for both, not the lesson row's wide back button. */
    .es-test-empty-wide[b-cgbgdhksju]  .navigation-buttons button {
        min-width: 230px;
    }
}

.es-test-empty-icon[b-cgbgdhksju] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #f3f6ff;
}

    .es-test-empty-icon svg[b-cgbgdhksju] {
        width: 28px;
        height: 28px;
        fill: #4d7cfe;
    }

.is-done .es-test-empty-icon[b-cgbgdhksju] {
    background: #f4faec;
}

    .is-done .es-test-empty-icon svg[b-cgbgdhksju] {
        fill: #5d8f22;
    }

.es-test-empty-title[b-cgbgdhksju] {
    margin: 0 0 8px;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.es-test-empty-text[b-cgbgdhksju] {
    margin: 0;
    color: #4a4f57;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.module-header[b-cgbgdhksju] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.module-header-icon[b-cgbgdhksju] {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    filter: brightness(0);
}

.module-header-title[b-cgbgdhksju] {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.module-type-name[b-cgbgdhksju] {
    color: #92CD4D;
    font-weight: 600;
}

/* Tablet */
@media (max-width: 1024px) {
    .es-test-page[b-cgbgdhksju] {
        padding: 30px 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .es-test-page[b-cgbgdhksju] {
        padding: 20px 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .es-test-page[b-cgbgdhksju] {
        padding: 15px 10px;
    }
}
/* /Pages/Lessons/ImageQuestions.razor.rz.scp.css */
.iq-container[b-6x3ixweqca] {
    max-width: 1700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    padding-top: var(--lesson-pad-top, 40px);
    position: relative;
    font-family: 'Montserrat', sans-serif;
    -webkit-user-select: none;
    user-select: none;
    color: #000;
}

/* Page Header */
.page-header[b-6x3ixweqca] {
    text-align: left;
    margin-bottom: 30px;
}

.task-label[b-6x3ixweqca] {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.page-title[b-6x3ixweqca] {
    font-weight: 600;
    font-size: 36px;
    margin: 5px 0 20px 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .iq-container[b-6x3ixweqca] {
        padding: 30px 20px;
    }

    .page-title[b-6x3ixweqca] {
        font-size: 28px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .iq-container[b-6x3ixweqca] {
        padding: 20px 15px;
    }

    .task-label[b-6x3ixweqca] {
        font-size: 14px;
    }

    .page-title[b-6x3ixweqca] {
        font-size: 24px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .iq-container[b-6x3ixweqca] {
        padding: 15px 10px;
    }

    .page-title[b-6x3ixweqca] {
        font-size: 20px;
    }

    .task-label[b-6x3ixweqca] {
        font-size: 13px;
    }
}
/* /Pages/Lessons/ListenRead.razor.rz.scp.css */
/* Listen-and-read lesson: the head (name, task, the Basic plan's note), the practice (the lesson's audio, the
   text to read, the recorder and the teacher's feedback), the questions, the navigation. Nothing on the page
   is boxed inside another box: the text lies on one soft grey sheet, the audio components draw their own
   pills and waveforms on the white page, and the teacher's feedback is one tinted panel. Every admin field is
   optional - the text, the task, the lesson's audio, the questions - and so is the viewer's side: a Basic
   plan (text only), a student (recorder), a student with the teacher's feedback (recorder and the feedback
   panel), the teacher (the student's recording and the teacher's recorder). Each part exists only with
   something in it, and the grid takes its shape from what is there. Look and tokens follow the Progress
   page. Hover: nothing on this page hovers; the components gate their own (CLAUDE.md). */
.listen-read-page[b-52so1lxacy] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --sheet-radius: 20px;
    --panel-pad: clamp(14px, 2vw, 20px);
    --section-gap: clamp(20px, 2.5vw, 32px);
    --gutter: clamp(12px, 1.6vw + 8px, 40px);
    --measure: 900px;
    box-sizing: border-box;
    max-width: 1700px;
    margin: 0 auto;
    padding: var(--lesson-pad-top, 40px) var(--gutter) clamp(24px, 3vw, 40px);
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    -webkit-text-size-adjust: 100%;
}

    .listen-read-page *[b-52so1lxacy],
    .listen-read-page *[b-52so1lxacy]::before,
    .listen-read-page *[b-52so1lxacy]::after {
        box-sizing: border-box;
    }

    .listen-read-page *[b-52so1lxacy] {
        -webkit-user-select: none;
        user-select: none;
    }

/* Laid out but not shown until every part has reported (see the page's root): the parts arrive at
   different moments, and a page shown as they come jumps. The spinner covers a slow load. */
.listen-read-page.is-loading[b-52so1lxacy] {
    visibility: hidden;
}

/* ===== Head ===== */
.lesson-head[b-52so1lxacy] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: var(--section-gap);
}

    /* The head spaces its lines itself */
    .lesson-head[b-52so1lxacy]  .module-header {
        margin-bottom: 0;
    }

/* The task as the admin typed it: line breaks kept, nothing when empty */
.task-instructions[b-52so1lxacy] {
    max-width: 960px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* ===== Practice: listen, read, record ===== */
/* One column: the reading (audio, then the text) above the recorder. Wide screens with both put them side
   by side (below). Each column keeps a reading measure: a text at 1700px wide is not readable. */
.practice[b-52so1lxacy] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--section-gap);
    min-width: 0;
}

.reading[b-52so1lxacy] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: var(--measure);
    min-width: 0;
}

/* The lesson's audio under its small label. Takes no room until the player knows whether there is audio,
   and none at all when there is none. The player draws its waveform after the render that shows the row. */
.audio-row[b-52so1lxacy] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

    .audio-row.is-pending[b-52so1lxacy],
    .audio-row.is-absent[b-52so1lxacy] {
        display: none;
    }

    .audio-row[b-52so1lxacy]  .module-audio-player {
        min-width: 0;
        margin: 0;
    }

.audio-label[b-52so1lxacy] {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* The text to read: prose at a reading size on its own soft grey sheet - the one box in the practice */
.lesson-text[b-52so1lxacy] {
    margin: 0;
    padding: clamp(18px, 2.5vw, 32px) clamp(18px, 2.5vw, 36px);
    font-size: clamp(16px, 0.4vw + 14px, 19px);
    font-weight: 500;
    line-height: 1.75;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
    background: var(--surface);
    border-radius: var(--sheet-radius);
}

/* The recorder (and the teacher's card under it) on the white page: the components draw their own pills
   and waveforms, so nothing wraps them */
.recording[b-52so1lxacy] {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: var(--measure);
    min-width: 0;
}

.user-recording[b-52so1lxacy] {
    min-width: 0;
}

    /* With the teacher's audio in its panel under it, the student's recording is inset by that panel's
       padding, so the two waveforms and their labels line up. */
    .recording.has-teacher-audio .user-recording[b-52so1lxacy] {
        padding: 0 var(--panel-pad);
    }

.recording-label[b-52so1lxacy] {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

/* AdminAudioRecorder brings its own panel */
.admin-recording[b-52so1lxacy] {
    min-width: 0;
}

/* The teacher's feedback as the student sees it: the brand-soft panel, tint only */
.admin-feedback[b-52so1lxacy] {
    min-width: 0;
    padding: var(--panel-pad);
    background: var(--brand-soft);
    border-radius: 16px;
}

.admin-feedback-header[b-52so1lxacy] {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--brand);
}

/* The one thing on the page a student may copy */
.admin-text-feedback-display[b-52so1lxacy] {
    max-height: 200px;
    overflow-y: auto;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
    background: #fff;
    border-radius: 12px;
    -webkit-user-select: text;
    user-select: text;
}

/* Wide screens with text and a recorder: the reading on the left at its measure, the recorder in a column
   of its own beside it, both starting at the gutter. The columns are sized, not stretched: at 1700px the
   space is left at the end of the row rather than opened between the text and its recorder. */
@media (min-width: 1200px) {
    .practice.has-text.has-recorder[b-52so1lxacy] {
        grid-template-columns: minmax(0, var(--measure)) minmax(360px, 440px);
        justify-content: start;
        align-items: start;
        column-gap: clamp(32px, 4vw, 64px);
    }

        .practice.has-text.has-recorder .recording[b-52so1lxacy] {
            max-width: none;
        }
}

@media (max-width: 480px) {
    .listen-read-page[b-52so1lxacy] {
        --sheet-radius: 16px;
        --panel-pad: 14px;
    }

    .lesson-head[b-52so1lxacy] {
        gap: 12px;
    }

    .task-instructions[b-52so1lxacy] {
        font-size: 15px;
    }

    .lesson-text[b-52so1lxacy] {
        padding: 16px;
        font-size: 16px;
    }
}
/* /Pages/Lessons/Picture.razor.rz.scp.css */
.picture-page *[b-rv5paey3e2] {
    user-select: none;
}

.picture-page[b-rv5paey3e2] {
    font-family: 'Montserrat', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    padding-top: var(--lesson-pad-top, 40px);
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-wrapper[b-rv5paey3e2] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

    /* The buttons span the content like on every other lesson (right-aligned on wide
       screens, full width when stacked), not shrunk to their labels in the middle. */
    .content-wrapper[b-rv5paey3e2]  .navigation-buttons {
        align-self: stretch;
    }

/* Phones and small tablets: the side padding of the other lesson pages. */
@media (max-width: 768px) {
    .picture-page[b-rv5paey3e2] {
        padding: 16px 12px;
        padding-top: var(--lesson-pad-top, 16px);
    }
}

.picture-title[b-rv5paey3e2] {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
}

/* The lesson's task, as the admin typed it: line breaks kept, nothing when empty. */
.task-instructions[b-rv5paey3e2] {
    align-self: stretch;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0 0 20px;
}

.image-container[b-rv5paey3e2] {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    max-width: 900px;
    display: inline-block;
}

.picture-image[b-rv5paey3e2] {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    display: block;
    border-radius: 8px;
}

@keyframes spin-loader-b-rv5paey3e2 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
/* /Pages/Lessons/Pronunciation.razor.rz.scp.css */
/* Pronunciation lesson: the head (name, task, the Basic plan's note), the material (video
   and memo cards), one practice card (the lesson's audio, the text to read, the recorder
   and the teacher's feedback), the navigation. Every admin field is optional: a section
   exists only with something in it and its grid takes its shape from what is there.
   Look and tokens follow the Progress page; the audio components bring their own.
   Hover: nothing on this page hovers; the components gate their own (see CLAUDE.md). */
.pronunciation-page[b-1nfkt9dhb5] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --wrong-ink: #d93639;
    --wrong-soft: #fff4f4;
    --card-radius: 20px;
    --card-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
    --card-pad: clamp(16px, 2.5vw, 28px);
    --section-gap: clamp(20px, 2.5vw, 32px);
    --gutter: clamp(12px, 1.6vw + 8px, 40px);
    box-sizing: border-box;
    max-width: 1700px;
    margin: 0 auto;
    padding: var(--lesson-pad-top, 40px) var(--gutter) clamp(24px, 3vw, 40px);
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    -webkit-text-size-adjust: 100%;
}

    .pronunciation-page *[b-1nfkt9dhb5],
    .pronunciation-page *[b-1nfkt9dhb5]::before,
    .pronunciation-page *[b-1nfkt9dhb5]::after {
        box-sizing: border-box;
    }

    .pronunciation-page *[b-1nfkt9dhb5] {
        -webkit-user-select: none;
        user-select: none;
    }

/* Laid out but not shown until every part has reported (see the page's root): the parts arrive at
   different moments, and a page shown as they come jumps. The spinner covers a slow load. */
.pronunciation-page.is-loading[b-1nfkt9dhb5] {
    visibility: hidden;
}

/* ===== Head ===== */
.lesson-head[b-1nfkt9dhb5] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: var(--section-gap);
}

    /* The head spaces its lines itself */
    .lesson-head[b-1nfkt9dhb5]  .module-header {
        margin-bottom: 0;
    }

/* The task as the admin typed it: line breaks kept, nothing when empty */
.task-instructions[b-1nfkt9dhb5] {
    max-width: 960px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* ===== Material: the video and the memo cards ===== */
.lesson-intro[b-1nfkt9dhb5] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: var(--section-gap);
}

/* A video on its own: the reading width, centred */
.lesson-intro.has-video:not(.has-memo) .video-card[b-1nfkt9dhb5] {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

/* VideoPlayer draws the 16:9 box and inherits the rounding; the card rounds and shades it, with no fill
   behind the player (a fill showed through at the corners) */
.video-card[b-1nfkt9dhb5] {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

/* Two memo cards side by side where they fit, one under the other where they don't */
.memo-grid[b-1nfkt9dhb5] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    align-content: start;
    gap: 20px;
    min-width: 0;
}

.memo-card[b-1nfkt9dhb5] {
    min-width: 0;
    padding: clamp(16px, 2vw, 24px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.memo-title[b-1nfkt9dhb5] {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.2px;
    color: var(--ink);
    overflow-wrap: break-word;
}

.memo-list[b-1nfkt9dhb5] {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .memo-list li[b-1nfkt9dhb5] {
        padding: 8px 0;
        font-size: 15px;
        line-height: 1.55;
        color: var(--ink);
        border-top: 1px solid var(--line);
        overflow-wrap: break-word;
    }

        .memo-list li:first-child[b-1nfkt9dhb5] {
            padding-top: 0;
            border-top: 0;
        }

        .memo-list li:last-child[b-1nfkt9dhb5] {
            padding-bottom: 0;
        }

/* Wide screens: the video takes three fifths, the memo cards stack beside it */
@media (min-width: 1100px) {
    .lesson-intro.has-video.has-memo[b-1nfkt9dhb5] {
        grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr);
        align-items: start;
    }

    .lesson-intro.has-video.has-memo .memo-grid[b-1nfkt9dhb5] {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== Practice: listen, read, record ===== */
.practice-card[b-1nfkt9dhb5] {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: var(--card-pad);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

/* The lesson's audio with its label. Takes no room until the player knows whether there is
   audio, and none at all when there is none: most lessons have none, and a row that first held
   a place and then went would move the footer at the moment the page appears. The player draws
   its waveform after the render that shows the row, so the hidden canvas is never measured. */
.audio-row[b-1nfkt9dhb5] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    min-width: 0;
}

    .audio-row.is-pending[b-1nfkt9dhb5],
    .audio-row.is-absent[b-1nfkt9dhb5] {
        display: none;
    }

    .audio-row[b-1nfkt9dhb5]  .module-audio-player {
        flex: 1 1 320px;
        min-width: 0;
        margin: 0;
    }

.audio-label[b-1nfkt9dhb5] {
    flex: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* The text to read, each piece on a panel of its own: the alphabet on the soft grey panel
   in the page's reading type, the word list on a white outlined panel under it. */
.reading[b-1nfkt9dhb5] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.alphabet-text[b-1nfkt9dhb5],
.word-list-text[b-1nfkt9dhb5] {
    margin: 0;
    padding: clamp(14px, 2vw, 22px) clamp(16px, 2.2vw, 26px);
    line-height: 1.7;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
    border-radius: 16px;
}

.alphabet-text[b-1nfkt9dhb5] {
    font-size: clamp(20px, 1.2vw + 14px, 26px);
    font-weight: 600;
    letter-spacing: 0.4px;
    background: var(--surface);
}

.word-list-text[b-1nfkt9dhb5] {
    font-size: clamp(17px, 0.8vw + 13px, 22px);
    font-weight: 500;
    background: #fff;
    border: 1px solid var(--line);
}

/* The recorder (and, beside it, the teacher's card) under a hairline */
.recording-section[b-1nfkt9dhb5] {
    min-width: 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

    /* Nothing visible above it (no text, and the audio row gone): no hairline */
    .recording-section:first-child[b-1nfkt9dhb5],
    .audio-row.is-absent + .recording-section[b-1nfkt9dhb5] {
        padding-top: 0;
        border-top: 0;
    }

/* One card fills the row; two stand side by side where they fit */
.recording-grid[b-1nfkt9dhb5] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    align-items: start;
    gap: 20px;
}

.user-recording[b-1nfkt9dhb5] {
    min-width: 0;
}

    /* With the teacher's audio in its card under or beside it, the student's recording is inset by
       that card's padding and border, so the two waveforms and their labels line up. */
    .recording-grid.has-teacher-audio .user-recording[b-1nfkt9dhb5] {
        padding: 0 calc(clamp(14px, 2vw, 20px) + 1px);
    }

.recording-label[b-1nfkt9dhb5] {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

/* Display and margins are set here because a global .error-message
   (custom-content-shared.css) would otherwise leak in. */
.error-message[b-1nfkt9dhb5] {
    display: block;
    margin: 0 0 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--wrong-ink);
    background: var(--wrong-soft);
    border: 1px solid #f6c9ca;
    border-radius: 12px;
}

/* AdminAudioRecorder brings its own card */
.admin-recording[b-1nfkt9dhb5] {
    min-width: 0;
}

/* The teacher's feedback as the student sees it: the brand-soft card */
.admin-feedback[b-1nfkt9dhb5] {
    min-width: 0;
    padding: clamp(14px, 2vw, 20px);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: 16px;
}

.admin-feedback-header[b-1nfkt9dhb5] {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--brand);
}

/* The one thing on the page a student may copy */
.admin-text-feedback-display[b-1nfkt9dhb5] {
    max-height: 200px;
    overflow-y: auto;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    -webkit-user-select: text;
    user-select: text;
}

/* Wide screens with text and a recorder: the text on the left, the recorder in a column
   of its own on the right, the audio row across the top */
@media (min-width: 1200px) {
    /* Placed by column, not by named rows: a lesson without audio has no audio row at all,
       and a named empty row would still carry its gap. */
    .practice-card.has-text.has-recorder[b-1nfkt9dhb5] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
        align-items: start;
        column-gap: clamp(24px, 2.5vw, 40px);
        row-gap: 20px;
    }

        .practice-card.has-text.has-recorder .audio-row[b-1nfkt9dhb5] {
            grid-column: 1 / -1;
        }

        .practice-card.has-text.has-recorder .reading[b-1nfkt9dhb5] {
            grid-column: 1;
        }

        .practice-card.has-text.has-recorder .recording-section[b-1nfkt9dhb5] {
            grid-column: 2;
            align-self: stretch;
            padding-top: 0;
            padding-left: clamp(24px, 2.5vw, 40px);
            border-top: 0;
            border-left: 1px solid var(--line);
        }

        .practice-card.has-text.has-recorder .recording-grid[b-1nfkt9dhb5] {
            grid-template-columns: minmax(0, 1fr);
        }
}

/* Phones: tighter cards, the audio label above the player */
@media (max-width: 600px) {
    .audio-row[b-1nfkt9dhb5] {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

        .audio-row[b-1nfkt9dhb5]  .module-audio-player {
            flex-basis: auto;
        }
}

@media (max-width: 480px) {
    .pronunciation-page[b-1nfkt9dhb5] {
        --card-radius: 16px;
        --card-pad: 14px;
    }

    .lesson-head[b-1nfkt9dhb5] {
        gap: 12px;
    }

    .task-instructions[b-1nfkt9dhb5] {
        font-size: 15px;
    }

    .memo-card[b-1nfkt9dhb5] {
        padding: 14px;
    }

    .alphabet-text[b-1nfkt9dhb5],
    .word-list-text[b-1nfkt9dhb5] {
        padding: 14px;
        border-radius: 14px;
    }

    .alphabet-text[b-1nfkt9dhb5] {
        font-size: 20px;
        letter-spacing: 0.3px;
    }

    .word-list-text[b-1nfkt9dhb5] {
        font-size: 17px;
    }

    .admin-feedback[b-1nfkt9dhb5] {
        padding: 14px;
    }
}
/* /Pages/Lessons/PyramidGame.razor.rz.scp.css */
.pyramid-game-container[b-fhetcqiaet] {
    max-width: 1700px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    padding-top: var(--lesson-pad-top, 20px);
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.instructions-container[b-fhetcqiaet] {
    margin-bottom: 20px;
}

/* Opens the rules, which are closed until asked for on every screen size. An ordinary
   action, so the blue pill of NavigationButtons.razor.css, at the 40px of the other
   in-lesson buttons (the recorder's), with the chevron after the label. */
.instructions-toggle[b-fhetcqiaet] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px 0 20px;
    background: #fff;
    color: #4D7CFE;
    border: 2px solid #4D7CFE;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

    .instructions-toggle:active[b-fhetcqiaet] {
        background: #4D7CFE;
        color: #fff;
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .instructions-toggle:focus-visible[b-fhetcqiaet] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    @media (hover: hover) and (pointer: fine) {
        .instructions-toggle:hover[b-fhetcqiaet] {
            background: #4D7CFE;
            color: #fff;
        }
    }

.toggle-icon[b-fhetcqiaet] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.instructions-toggle.is-open .toggle-icon[b-fhetcqiaet] {
    transform: rotate(180deg);
}

/* The lesson's task, as the admin typed it: line breaks kept, nothing when empty. */
.task-instructions[b-fhetcqiaet] {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0 0 16px 0;
}

/* The rules: three numbered steps, what each answer does, and how the game ends. */
.instructions[b-fhetcqiaet] {
    text-align: left;
    /* As wide as the row of three cards it sits above, and centred with it. */
    max-width: 820px;
    margin: 0 auto 16px;
    padding: 16px;
    background: #f7f8fa;
    border: 1px solid #eceef3;
    border-radius: 16px;
    animation: howto-in-b-fhetcqiaet 0.2s ease both;
}

@keyframes howto-in-b-fhetcqiaet {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.howto-steps[b-fhetcqiaet] {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.howto-step[b-fhetcqiaet] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #eceef3;
    border-radius: 12px;
}

.howto-num[b-fhetcqiaet] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8eeff;
    color: #4d7cfe;
    font-size: 14px;
    font-weight: 600;
}

.howto-step strong[b-fhetcqiaet] {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.instructions .howto-step p[b-fhetcqiaet] {
    margin: 0;
    color: #4a4f57;
}

.howto-outcomes[b-fhetcqiaet] {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.howto-outcome[b-fhetcqiaet] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #4a4f57;
}

.howto-tag[b-fhetcqiaet] {
    flex-shrink: 0;
    min-width: 96px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.howto-tag--yes[b-fhetcqiaet] {
    background: #f4faec;
    color: #5d8f22;
}

.howto-tag--no[b-fhetcqiaet] {
    background: #fff4f4;
    color: #d93639;
}

.instructions .howto-note[b-fhetcqiaet] {
    margin: 0;
    color: #4a4f57;
}

.task-label[b-fhetcqiaet] {
    font-size: 16px;
    font-weight: 500;
}

.instructions h1[b-fhetcqiaet] {
    font-weight: 600;
    font-size: 36px;
    margin: 5px 0;
}

.instructions p[b-fhetcqiaet] {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.game-area[b-fhetcqiaet] {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 450px;
}

.card-stack[b-fhetcqiaet] {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.scroll-arrow-notification[b-fhetcqiaet] {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: fit-content;
    background-color: #92CD4D;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    animation: pulse-b-fhetcqiaet 2s ease-in-out infinite;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .scroll-arrow-notification:hover[b-fhetcqiaet] {
            background-color: #7fb83d;
            transform: scale(1.05);
        }
    }

.arrow-content[b-fhetcqiaet] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arrow-icon[b-fhetcqiaet] {
    width: 20px;
    height: 20px;
    animation: bounceLeft-b-fhetcqiaet 1s ease-in-out infinite;
}

@keyframes bounceLeft-b-fhetcqiaet {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-5px);
    }
}

@keyframes slideDown-b-fhetcqiaet {
    from {
        top: 30px;
        opacity: 0;
    }

    to {
        top: 80px;
        opacity: 1;
    }
}

@keyframes pulse-b-fhetcqiaet {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    50% {
        box-shadow: 0 4px 20px rgba(146, 205, 77, 0.4);
    }
}

@keyframes bounce-b-fhetcqiaet {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Score bar: cards mastered and the current "Помню!" streak */
.game-hud[b-fhetcqiaet] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 820px;
    margin: 0 auto 16px;
}

    .game-hud .instructions-toggle[b-fhetcqiaet] {
        flex-shrink: 0;
    }

.hud-progress[b-fhetcqiaet] {
    flex: 1;
    min-width: 0;
}

.hud-progress-label[b-fhetcqiaet] {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.hud-progress-track[b-fhetcqiaet] {
    height: 10px;
    border-radius: 5px;
    background-color: #EEEEEE;
    overflow: hidden;
}

.hud-progress-fill[b-fhetcqiaet] {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #92CD4D, #B6E07E);
    transition: width 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.hud-streak[b-fhetcqiaet] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: #FFF4CC;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    /* @key on the streak value remounts this pill, replaying the pop on every change */
    animation: streak-pop-b-fhetcqiaet 0.35s cubic-bezier(0.2, 0.9, 0.35, 1.5);
}

    .hud-streak.cold[b-fhetcqiaet] {
        background-color: #F3F3F3;
        color: #999;
    }

        .hud-streak.cold .hud-streak-icon[b-fhetcqiaet] {
            filter: grayscale(1);
            opacity: 0.6;
        }

    .hud-streak.hot[b-fhetcqiaet] {
        background: linear-gradient(135deg, #FFC700, #FF8A00);
        color: white;
        box-shadow: 0 4px 14px rgba(255, 138, 0, 0.35);
    }

.hud-streak-label[b-fhetcqiaet] {
    font-size: 12px;
    font-weight: 500;
}

.streak-toast[b-fhetcqiaet] {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 30;
    margin-top: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    background-color: #333;
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
    animation: toast-in-out-b-fhetcqiaet 1.8s ease both;
}

@keyframes streak-pop-b-fhetcqiaet {
    from {
        transform: scale(0.7);
    }

    to {
        transform: scale(1);
    }
}

@keyframes toast-in-out-b-fhetcqiaet {
    0% {
        opacity: 0;
        transform: translate(-50%, 8px) scale(0.9);
    }

    12%, 80% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -6px) scale(1);
    }
}

.final-card[b-fhetcqiaet] {
    position: relative;
    overflow: hidden;
    width: 350px;
    height: 391px;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    animation: final-card-in-b-fhetcqiaet 0.5s cubic-bezier(0.2, 0.9, 0.35, 1.2) both;
}

    .final-card.celebrate[b-fhetcqiaet] {
        border-color: #92CD4D;
        box-shadow: 0 8px 30px rgba(146, 205, 77, 0.3);
    }

    .final-card > :not(.confetti)[b-fhetcqiaet] {
        position: relative;
        z-index: 1;
    }

.final-trophy[b-fhetcqiaet] {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 10px;
    animation: trophy-bounce-b-fhetcqiaet 0.8s cubic-bezier(0.2, 0.9, 0.35, 1.5) 0.2s both;
}

.final-best-streak[b-fhetcqiaet] {
    color: #555;
}

/* 18 pieces, spread and coloured by position so there is no per-piece markup */
.confetti[b-fhetcqiaet] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

    .confetti span[b-fhetcqiaet] {
        position: absolute;
        top: -12px;
        width: 8px;
        height: 12px;
        border-radius: 2px;
        opacity: 0;
        animation: confetti-fall-b-fhetcqiaet 2.2s ease-in both;
    }

        .confetti span:nth-child(3n+1)[b-fhetcqiaet] { background-color: #92CD4D; }
        .confetti span:nth-child(3n+2)[b-fhetcqiaet] { background-color: #FFC700; }
        .confetti span:nth-child(3n)[b-fhetcqiaet] { background-color: #FF5555; }
        .confetti span:nth-child(4n)[b-fhetcqiaet] { width: 6px; height: 6px; border-radius: 50%; }
        .confetti span:nth-child(1)[b-fhetcqiaet] { left: 4%; animation-delay: 0.05s; }
        .confetti span:nth-child(2)[b-fhetcqiaet] { left: 10%; animation-delay: 0.35s; }
        .confetti span:nth-child(3)[b-fhetcqiaet] { left: 16%; animation-delay: 0.15s; }
        .confetti span:nth-child(4)[b-fhetcqiaet] { left: 22%; animation-delay: 0.5s; }
        .confetti span:nth-child(5)[b-fhetcqiaet] { left: 28%; animation-delay: 0.1s; }
        .confetti span:nth-child(6)[b-fhetcqiaet] { left: 34%; animation-delay: 0.4s; }
        .confetti span:nth-child(7)[b-fhetcqiaet] { left: 40%; animation-delay: 0.2s; }
        .confetti span:nth-child(8)[b-fhetcqiaet] { left: 46%; animation-delay: 0.6s; }
        .confetti span:nth-child(9)[b-fhetcqiaet] { left: 52%; animation-delay: 0s; }
        .confetti span:nth-child(10)[b-fhetcqiaet] { left: 58%; animation-delay: 0.3s; }
        .confetti span:nth-child(11)[b-fhetcqiaet] { left: 64%; animation-delay: 0.55s; }
        .confetti span:nth-child(12)[b-fhetcqiaet] { left: 70%; animation-delay: 0.12s; }
        .confetti span:nth-child(13)[b-fhetcqiaet] { left: 76%; animation-delay: 0.45s; }
        .confetti span:nth-child(14)[b-fhetcqiaet] { left: 82%; animation-delay: 0.25s; }
        .confetti span:nth-child(15)[b-fhetcqiaet] { left: 88%; animation-delay: 0.65s; }
        .confetti span:nth-child(16)[b-fhetcqiaet] { left: 94%; animation-delay: 0.08s; }
        .confetti span:nth-child(17)[b-fhetcqiaet] { left: 30%; animation-delay: 0.75s; }
        .confetti span:nth-child(18)[b-fhetcqiaet] { left: 66%; animation-delay: 0.85s; }
        .confetti span:nth-child(odd)[b-fhetcqiaet] { animation-duration: 2.6s; }

@keyframes confetti-fall-b-fhetcqiaet {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(420px) translateX(24px) rotate(540deg);
    }
}

@keyframes final-card-in-b-fhetcqiaet {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes trophy-bounce-b-fhetcqiaet {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

    .final-card h2[b-fhetcqiaet] {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .final-card p[b-fhetcqiaet] {
        font-size: 16px;
        margin-bottom: 30px;
    }

/* The retry button lives outside PyramidCard, whose global styles only load while a card is rendered.
   "Играть снова" is a repeat: the yellow pill of "Повторить" in NavigationButtons.razor.css. */
.final-card-retry[b-fhetcqiaet] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 28px;
    min-width: 160px;
    background: #fff;
    color: #EDC829;
    border: 2px solid #EDC829;
    border-radius: 23px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

    .final-card-retry:active[b-fhetcqiaet] {
        background: #EDC829;
        color: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .final-card-retry:disabled[b-fhetcqiaet] {
        opacity: 0.5;
        cursor: default;
        pointer-events: none;
    }

    .final-card-retry:focus-visible[b-fhetcqiaet] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

    @media (hover: hover) and (pointer: fine) {
        .final-card-retry:hover[b-fhetcqiaet] {
            background: #EDC829;
            color: #fff;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }
    }

@media (prefers-reduced-motion: reduce) {
    .instructions[b-fhetcqiaet],
    .hud-streak[b-fhetcqiaet],
    .streak-toast[b-fhetcqiaet],
    .final-card[b-fhetcqiaet],
    .final-trophy[b-fhetcqiaet] {
        animation: none;
    }

    .confetti[b-fhetcqiaet] {
        display: none;
    }
}

/* Image Modal */
.image-modal[b-fhetcqiaet] {
    display: none;
}

/* iPad and Tablet styles (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .pyramid-game-container[b-fhetcqiaet] {
        padding: 25px 20px;
    }

    .instructions-container[b-fhetcqiaet] {
        margin-bottom: 20px;
    }

    .task-label[b-fhetcqiaet] {
        font-size: 15px;
    }

    .instructions h1[b-fhetcqiaet] {
        font-size: 28px;
    }

    .instructions p[b-fhetcqiaet] {
        font-size: 13px;
    }

    .game-area[b-fhetcqiaet] {
        min-height: auto;
        padding: 0;
        margin-bottom: 15px;
        /* Prevent horizontal overflow from bleeding into page */
        overflow: hidden;
    }

    .card-stack[b-fhetcqiaet] {
        flex-direction: row;
        gap: 15px;
        width: 100%;
        height: auto;
        overflow-x: auto;
        overflow-y: visible;
        /* Contain horizontal swipe so it doesn't scroll the page */
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto;
        /* Side padding so first and last cards can fully center */
        padding: 15px calc(50% - 150px);
        justify-content: flex-start;
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

        .card-stack[b-fhetcqiaet]::-webkit-scrollbar {
            display: none;
        }

        .card-stack[b-fhetcqiaet] >  * {
            scroll-snap-align: center;
            flex-shrink: 0;
        }

    .final-card[b-fhetcqiaet] {
        scroll-snap-align: center;
        flex-shrink: 0;
        width: 300px;
        height: 360px;
        padding: 20px;
    }

        .final-card h2[b-fhetcqiaet] {
            font-size: 22px;
            margin-bottom: 16px;
        }

        .final-card p[b-fhetcqiaet] {
            font-size: 15px;
            margin-bottom: 25px;
        }

    .scroll-arrow-notification[b-fhetcqiaet] {
        margin: 18px auto;
        font-size: 13px;
        padding: 10px 18px;
    }

    .arrow-icon[b-fhetcqiaet] {
        width: 18px;
        height: 18px;
    }

    /* Image Modal for Tablets */
    .image-modal[b-fhetcqiaet] {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 10000;
        justify-content: center;
        align-items: center;
        padding: 30px;
        box-sizing: border-box;
    }

    .modal-content[b-fhetcqiaet] {
        position: relative;
        max-width: 80%;
        max-height: 80%;
        background: white;
        border-radius: 20px;
        padding: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .close-button[b-fhetcqiaet] {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: #FF5555;
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 26px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        line-height: 1;
    }

    .modal-content img[b-fhetcqiaet] {
        max-width: 100%;
        max-height: 65vh;
        object-fit: contain;
        border-radius: 15px;
    }

    .expanded-text-image[b-fhetcqiaet] {
        width: 320px;
        height: 320px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 25px;
        border-radius: 15px;
        border: 2px solid #ccc;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 22px;
        line-height: 1.3;
        color: #4a4a4a;
    }
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    .game-hud[b-fhetcqiaet] {
        gap: 10px;
        margin-bottom: 10px;
    }

    .hud-progress-label[b-fhetcqiaet] {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .hud-progress-track[b-fhetcqiaet] {
        height: 8px;
    }

    .hud-streak[b-fhetcqiaet] {
        padding: 5px 10px;
        font-size: 14px;
    }

    .hud-streak-label[b-fhetcqiaet] {
        display: none;
    }

    .game-hud .instructions-toggle[b-fhetcqiaet] {
        height: 36px;
        padding: 0 10px 0 14px;
        gap: 4px;
        border-radius: 18px;
        font-size: 13px;
    }

    .streak-toast[b-fhetcqiaet] {
        font-size: 13px;
        padding: 6px 14px;
    }

    .final-trophy[b-fhetcqiaet] {
        font-size: 44px;
    }
    .pyramid-game-container[b-fhetcqiaet] {
        padding: 15px;
    }

    .instructions-container[b-fhetcqiaet] {
        margin-bottom: 10px;
    }

    .instructions[b-fhetcqiaet] {
        padding: 12px;
    }

    .howto-steps[b-fhetcqiaet] {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .howto-outcome[b-fhetcqiaet] {
        align-items: flex-start;
        font-size: 13px;
    }

    .task-label[b-fhetcqiaet] {
        font-size: 14px;
    }

    .instructions h1[b-fhetcqiaet] {
        font-size: 24px;
    }

    .instructions p[b-fhetcqiaet] {
        font-size: 12px;
    }

    .game-area[b-fhetcqiaet] {
        min-height: auto;
        padding: 0;
        margin-bottom: 10px;
        height: auto;
        max-height: none;
        /* Prevent horizontal overflow from bleeding into page */
        overflow: hidden;
    }

    .card-stack[b-fhetcqiaet] {
        flex-direction: row;
        gap: 12px;
        width: 100%;
        height: auto;
        overflow-x: auto;
        overflow-y: visible;
        /* Contain horizontal swipe so it doesn't scroll the page */
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto;
        /* Side padding so first and last cards can fully center */
        padding: 10px calc(50% - min(170px, 50vw - 28px));
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

        .card-stack[b-fhetcqiaet]::-webkit-scrollbar {
            display: none;
        }

        .card-stack[b-fhetcqiaet] >  * {
            scroll-snap-align: center;
            flex-shrink: 0;
        }

    .final-card[b-fhetcqiaet] {
        scroll-snap-align: center;
        flex-shrink: 0;
        width: min(340px, calc(100vw - 56px));
        height: auto;
        min-height: 380px;
        padding: 20px 15px;
    }

        .final-card h2[b-fhetcqiaet] {
            font-size: 18px;
            margin-bottom: 12px;
        }

        .final-card p[b-fhetcqiaet] {
            font-size: 13px;
            margin-bottom: 20px;
        }

    .scroll-arrow-notification[b-fhetcqiaet] {
        margin: 15px auto;
        font-size: 12px;
        padding: 8px 16px;
    }

    .arrow-icon[b-fhetcqiaet] {
        width: 16px;
        height: 16px;
    }

    @keyframes bounceDown-b-fhetcqiaet {
        0%, 100% {
            transform: rotate(180deg) translateY(0);
        }

        50% {
            transform: rotate(180deg) translateY(5px);
        }
    }

    /* Image Modal for Mobile */
    .image-modal[b-fhetcqiaet] {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 10000;
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-sizing: border-box;
    }

    .modal-content[b-fhetcqiaet] {
        position: relative;
        max-width: 90%;
        max-height: 90%;
        background: white;
        border-radius: 20px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .close-button[b-fhetcqiaet] {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        background: #FF5555;
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        line-height: 1;
    }

    .modal-content img[b-fhetcqiaet] {
        max-width: 100%;
        max-height: 70vh;
        object-fit: contain;
        border-radius: 15px;
    }

    .expanded-text-image[b-fhetcqiaet] {
        width: 280px;
        height: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px;
        border-radius: 15px;
        border: 2px solid #ccc;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 20px;
        line-height: 1.3;
        color: #4a4a4a;
    }
}

@media (max-width: 400px) {
    .pyramid-game-container[b-fhetcqiaet] {
        padding: 10px;
    }

    .instructions-container[b-fhetcqiaet] {
        margin-bottom: 8px;
    }

    .instructions h1[b-fhetcqiaet] {
        font-size: 20px;
    }

    .instructions p[b-fhetcqiaet] {
        font-size: 11px;
    }

    .card-stack[b-fhetcqiaet] {
        gap: 10px;
    }

    .scroll-arrow-notification[b-fhetcqiaet] {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 12px;
    }

    .arrow-icon[b-fhetcqiaet] {
        width: 14px;
        height: 14px;
    }

    .expanded-text-image[b-fhetcqiaet] {
        width: 240px;
        height: 240px;
        font-size: 18px;
    }

    .final-card[b-fhetcqiaet] {
        padding: 15px 12px;
    }

        .final-card h2[b-fhetcqiaet] {
            font-size: 16px;
            margin-bottom: 10px;
        }

        .final-card p[b-fhetcqiaet] {
            font-size: 12px;
            margin-bottom: 16px;
        }
}
/* /Pages/Lessons/Questionnaire.razor.rz.scp.css */
.questionnaire-page[b-rpkxx06ddz] {
    font-family: 'Montserrat', sans-serif;
    max-width: 1700px;
    margin: 0 auto;
    padding: 40px;
    padding-top: var(--lesson-pad-top, 40px);
    color: #000;
    user-select: none;
}

/* Upper Section */
.upper-section-minimal[b-rpkxx06ddz] {
    margin-bottom: 40px;
}

.task-label[b-rpkxx06ddz] {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.page-title[b-rpkxx06ddz] {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* The lesson's task, as the admin typed it: line breaks kept, nothing when empty. */
.task-instructions[b-rpkxx06ddz] {
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0 0 20px;
}

@keyframes spin-loader-b-rpkxx06ddz {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .questionnaire-page[b-rpkxx06ddz] {
        padding: 30px 20px;
    }

    .page-title[b-rpkxx06ddz] {
        font-size: 28px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .questionnaire-page[b-rpkxx06ddz] {
        padding: 20px 15px;
    }

    .task-label[b-rpkxx06ddz] {
        font-size: 14px;
    }

    .page-title[b-rpkxx06ddz] {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .task-instructions[b-rpkxx06ddz] {
        font-size: 13px;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .questionnaire-page[b-rpkxx06ddz] {
        padding: 15px 10px;
    }

    .page-title[b-rpkxx06ddz] {
        font-size: 20px;
    }

    .task-label[b-rpkxx06ddz] {
        font-size: 13px;
    }

    .task-instructions[b-rpkxx06ddz] {
        font-size: 12px;
    }
}
/* /Pages/Lessons/Rules.razor.rz.scp.css */
/* Rules lesson: the head (name, the rule as the admin typed it, the one-line memo), the material (the video
   and the table), the questions, the navigation. Nothing on the page is boxed: the video is its own black
   rounded block, the table is the image itself on the white page with its title and the enlarge button
   above it, the memo is a bold line. Every admin field is optional (the task, the memo, the video, the
   table, the questions, in any combination): a section exists only with something in it and its grid takes
   its shape from what is there. Look and tokens follow the Progress page.
   Hover: the enlarge button's hover is gated to mouse and trackpad (see CLAUDE.md); nothing else hovers. */
.rules-page[b-mwii5v5pef] {
    --ink: #1a1a1a;
    --ink-soft: #4a4f57;
    --ink-muted: #8a8f98;
    --line: #eceef3;
    --surface: #f7f8fa;
    --brand: #4d7cfe;
    --brand-soft: #f3f6ff;
    --brand-line: #c9d6ff;
    --media-radius: 20px;
    --card-radius: 20px;
    --card-pad: clamp(16px, 2.5vw, 28px);
    --card-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 4px 14px rgba(20, 30, 60, 0.05);
    --section-gap: clamp(20px, 2.5vw, 32px);
    --gutter: clamp(12px, 1.6vw + 8px, 40px);
    box-sizing: border-box;
    max-width: 1700px;
    margin: 0 auto;
    padding: calc(var(--lesson-pad-top, 40px) + env(safe-area-inset-top, 0px)) var(--gutter) clamp(24px, 3vw, 40px);
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    -webkit-text-size-adjust: 100%;
}

    .rules-page *[b-mwii5v5pef],
    .rules-page *[b-mwii5v5pef]::before,
    .rules-page *[b-mwii5v5pef]::after {
        box-sizing: border-box;
    }

/* Laid out but not shown until every part has reported (see the page's root): the parts arrive at
   different moments, and a page shown as they come jumps. The spinner covers a slow load. */
.rules-page.is-loading[b-mwii5v5pef] {
    visibility: hidden;
}

/* ===== Head ===== */
.lesson-head[b-mwii5v5pef] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: var(--section-gap);
}

    /* The head spaces its lines itself */
    .lesson-head[b-mwii5v5pef]  .module-header {
        margin-bottom: 0;
    }

/* The rule or task as the admin typed it: line breaks kept, nothing when empty. On the lessons without
   a video or a table this is the lesson's text, so it reads in ink at a reading measure. */
.task-instructions[b-mwii5v5pef] {
    max-width: 960px;
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* The memo line when there is no table for it to title: one bold line under the rule, no box */
.memo-note[b-mwii5v5pef] {
    max-width: 960px;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* ===== Material: the video and the table, with the text when there is one =====
   Without text: the media alone, centred at the reading width. With text: one card (the Progress card)
   holds the text and the media together, so a short rule and its video read as one thing. Inside the
   card everything starts at the left; the grid below decides whether the text stands beside the media
   or above it. */
.lesson-material[b-mwii5v5pef] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: var(--section-gap);
    min-width: 0;
}

    .lesson-material.has-text[b-mwii5v5pef] {
        justify-items: stretch;
        gap: clamp(18px, 2vw, 28px);
        padding: var(--card-pad);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--card-radius);
        box-shadow: var(--card-shadow);
    }

/* The text in the card: the memo as its bold first line, the rule under it, at a reading measure */
.lesson-text[b-mwii5v5pef] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    max-width: 960px;
}

    .lesson-text .task-instructions[b-mwii5v5pef] {
        font-size: 17px;
        line-height: 1.65;
    }

    .lesson-text .memo-note[b-mwii5v5pef] {
        font-size: 18px;
    }

/* The media: one of them at the reading width, both side by side where they fit (below) */
.media[b-mwii5v5pef] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: var(--section-gap);
    width: 100%;
    min-width: 0;
}

    .lesson-material.has-text .media[b-mwii5v5pef] {
        justify-items: start;
    }

/* The card only rounds the player (VideoPlayer inherits the radius); no fill behind it, so nothing shows
   through at the corners or before the player has loaded */
.video-card[b-mwii5v5pef] {
    width: 100%;
    max-width: 960px;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--media-radius);
}

/* The table: its title and the enlarge button in a row above the image itself */
.chart[b-mwii5v5pef] {
    width: 100%;
    max-width: 760px;
    min-width: 0;
    margin: 0;
}

.chart-head[b-mwii5v5pef] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
}

.chart-title[b-mwii5v5pef] {
    flex: 1 1 200px;
    min-width: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.2px;
    color: var(--ink);
    overflow-wrap: break-word;
}

/* The compact member of the lesson pill family: 36px, the ordinary blue */
.chart-enlarge[b-mwii5v5pef] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    height: 36px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: var(--brand);
    background: #fff;
    border: 2px solid var(--brand);
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

    @media (hover: hover) and (pointer: fine) {
        .chart-enlarge:hover[b-mwii5v5pef] {
            color: #fff;
            background: var(--brand);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }
    }

    /* Pressed: fills at once (no transition, so a quick tap shows it) and sinks. */
    .chart-enlarge:active[b-mwii5v5pef] {
        color: #fff;
        background: var(--brand);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transform: scale(0.97);
        transition-duration: 0s;
    }

    .chart-enlarge:focus-visible[b-mwii5v5pef] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

/* The table image at the width it is given; a tap on it opens it at full size too */
.chart-image[b-mwii5v5pef] {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}

    /* Inside the card the video's corners are tighter than the card's */
    .lesson-material.has-text .video-card[b-mwii5v5pef] {
        border-radius: 14px;
    }

/* Wide screens. Both media: the video takes three fifths, the table stands beside it (with text, the
   text spans the card above them). One medium with a text that is not long (the page's text-beside):
   the medium on the left at three fifths, the text beside it. A long text stays above the medium, which
   then takes the reading width under it. */
@media (min-width: 1100px) {
    .lesson-material.has-video.has-image .media[b-mwii5v5pef] {
        grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
        justify-items: stretch;
        align-items: start;
        column-gap: clamp(28px, 3vw, 48px);
    }

        .lesson-material.has-video.has-image .video-card[b-mwii5v5pef],
        .lesson-material.has-video.has-image .chart[b-mwii5v5pef] {
            max-width: none;
        }

    .lesson-material.text-beside[b-mwii5v5pef] {
        grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
        align-items: start;
        column-gap: clamp(28px, 3vw, 48px);
    }

        .lesson-material.text-beside .media[b-mwii5v5pef] {
            grid-column: 1;
            grid-row: 1;
        }

        .lesson-material.text-beside .lesson-text[b-mwii5v5pef] {
            grid-column: 2;
            grid-row: 1;
            max-width: none;
        }

        /* A line or two: at the video's middle, a little larger */
        .lesson-material.text-short .lesson-text[b-mwii5v5pef] {
            align-self: center;
            gap: 12px;
        }

            .lesson-material.text-short .task-instructions[b-mwii5v5pef] {
                font-size: 18px;
            }

            .lesson-material.text-short .memo-note[b-mwii5v5pef] {
                font-size: 20px;
            }

        /* The video fills its column; the table keeps its reading width (a table at 960px is a wall) */
        .lesson-material.text-beside .video-card[b-mwii5v5pef] {
            max-width: none;
        }
}

/* ===== The table at full size ===== */
.chart-modal[b-mwii5v5pef] {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 40px);
    background: rgba(26, 26, 26, 0.78);
    font-family: 'Montserrat', sans-serif;
}

.chart-modal-content[b-mwii5v5pef] {
    position: relative;
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    max-height: 90dvh;
}

.chart-modal-image[b-mwii5v5pef] {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
}

/* The close button: a white circle on the image's corner, 44px for a thumb */
.chart-modal-close[b-mwii5v5pef] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-family: inherit;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink, #1a1a1a);
    background: #fff;
    border: 1px solid #eceef3;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

    .chart-modal-close:active[b-mwii5v5pef] {
        background: #eceef3;
        transform: scale(0.95);
    }

    .chart-modal-close:focus-visible[b-mwii5v5pef] {
        outline: 3px solid rgba(77, 124, 254, 0.35);
        outline-offset: 2px;
    }

/* ===== Phones ===== */
@media (max-width: 480px) {
    .rules-page[b-mwii5v5pef] {
        --media-radius: 14px;
        --card-radius: 16px;
        --card-pad: 14px;
    }

    .lesson-head[b-mwii5v5pef] {
        gap: 12px;
    }

    .task-instructions[b-mwii5v5pef],
    .lesson-text .task-instructions[b-mwii5v5pef] {
        font-size: 15px;
    }

    .memo-note[b-mwii5v5pef],
    .lesson-text .memo-note[b-mwii5v5pef] {
        font-size: 16px;
    }

    .chart-head[b-mwii5v5pef] {
        margin-bottom: 10px;
    }

    .chart-title[b-mwii5v5pef] {
        font-size: 16px;
    }

    .chart-image[b-mwii5v5pef] {
        border-radius: 10px;
    }

    .chart-modal[b-mwii5v5pef] {
        padding: 10px;
    }

    .chart-modal-image[b-mwii5v5pef] {
        border-radius: 12px;
    }
}
/* /Pages/Lessons/Tasks.razor.rz.scp.css */
.tasks-page[b-sry140lf87] {
    max-width: 1700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    padding-top: var(--lesson-pad-top, 40px);
    position: relative;
    font-family: 'Montserrat', sans-serif;
    -webkit-user-select: none;
    user-select: none;
    color: #000;
}

/* Page Header */
.page-header[b-sry140lf87] {
    text-align: left;
    margin-bottom: 30px;
}

.task-label[b-sry140lf87] {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.page-title[b-sry140lf87] {
    font-weight: 600;
    font-size: 36px;
    margin: 5px 0 20px 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .tasks-page[b-sry140lf87] {
        padding: 30px 20px;
    }

    .page-title[b-sry140lf87] {
        font-size: 28px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .tasks-page[b-sry140lf87] {
        padding: 20px 15px;
    }

    .task-label[b-sry140lf87] {
        font-size: 14px;
    }

    .page-title[b-sry140lf87] {
        font-size: 24px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .tasks-page[b-sry140lf87] {
        padding: 15px 10px;
    }

    .page-title[b-sry140lf87] {
        font-size: 20px;
    }

    .task-label[b-sry140lf87] {
        font-size: 13px;
    }
}
/* /Pages/Lessons/Words.razor.rz.scp.css */
.matching-container[b-p4gontx1z6] {
    max-width: 1700px;
    margin: 0 auto;
    background: #fff;
    padding: 16px 12px;
    font-family: 'Montserrat', sans-serif;
    -webkit-user-select: none;
    user-select: none;
    overflow-x: hidden;
    overflow-x: clip;
}

/* --- Images grid (mobile-first) --- */
.images-container[b-p4gontx1z6] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    justify-content: center;
    gap: 16px 8px;
    margin: 24px 0 16px;
}

/* --- Image target card --- */
.image-target[b-p4gontx1z6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 170px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    z-index: 1;
}

/* --- Image circle --- */
.image-circle[b-p4gontx1z6] {
    width: 76px;
    height: 76px;
    border: 2px solid #ddd;
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: border-color 0.2s ease;
    background-color: #fff;
    flex-shrink: 0;
}

    .image-circle img[b-p4gontx1z6] {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        pointer-events: none;
        display: block;
    }

.text-image[b-p4gontx1z6] {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 10px;
    line-height: 1.2;
    color: #4a4a4a;
    word-break: break-word;
    overflow: hidden;
}

/* --- Labels stack --- */
.labels-stack[b-p4gontx1z6] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin-top: 6px;
    width: 100%;
}

.label.static[b-p4gontx1z6] {
    width: 100%;
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background: #92CD4D;
    color: #fff;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
}

    .label.static div:last-child[b-p4gontx1z6] {
        font-size: 9px;
        opacity: 0.9;
    }

.no-image-translation[b-p4gontx1z6] {
    font-size: 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* --- Modal (tap-to-expand on mobile/tablet) --- */
.image-modal[b-p4gontx1z6] {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content[b-p4gontx1z6] {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    overflow-y: auto;
}

.close-button[b-p4gontx1z6] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #FF4245;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    -webkit-tap-highlight-color: transparent;
}

.modal-content img[b-p4gontx1z6] {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 12px;
}

.expanded-text-image[b-p4gontx1z6] {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #ddd;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: #4a4a4a;
}

.expanded-labels[b-p4gontx1z6] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

    .expanded-labels .label.static[b-p4gontx1z6] {
        min-width: 140px;
        max-width: 250px;
        font-size: 14px;
        padding: 10px 16px;
        min-height: auto;
        border-radius: 20px;
    }

        .expanded-labels .label.static div:last-child[b-p4gontx1z6] {
            font-size: 12px;
        }

@keyframes spin-loader-b-p4gontx1z6 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   Larger phones — 480px+
   ============================================================ */
@media (min-width: 480px) {
    .images-container[b-p4gontx1z6] {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px 12px;
    }

    .image-circle[b-p4gontx1z6] {
        width: 88px;
        height: 88px;
    }

    .text-image[b-p4gontx1z6] {
        font-size: 11px;
    }

    .labels-stack[b-p4gontx1z6] {
        max-width: 110px;
    }

    .label.static[b-p4gontx1z6] {
        font-size: 11px;
        min-height: 30px;
        padding: 5px 10px;
    }

        .label.static div:last-child[b-p4gontx1z6] {
            font-size: 10px;
        }

    .no-image-translation[b-p4gontx1z6] {
        font-size: 11px;
    }
}

/* ============================================================
   Tablets — 768px+
   ============================================================ */
@media (min-width: 768px) {
    .matching-container[b-p4gontx1z6] {
        padding: 20px 16px;
    }

    .images-container[b-p4gontx1z6] {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 24px 16px;
        margin: 32px 0 20px;
    }

    .image-circle[b-p4gontx1z6] {
        width: 110px;
        height: 110px;
    }

    .text-image[b-p4gontx1z6] {
        font-size: clamp(11px, 1.8vw, 14px);
        padding: 10px;
    }

    .labels-stack[b-p4gontx1z6] {
        max-width: 130px;
        margin-top: 8px;
    }

    .label.static[b-p4gontx1z6] {
        font-size: 12px;
        min-height: 32px;
        padding: 6px 12px;
        border-radius: 16px;
    }

        .label.static div:last-child[b-p4gontx1z6] {
            font-size: 11px;
        }

    .no-image-translation[b-p4gontx1z6] {
        font-size: 12px;
    }

}

/* ============================================================
   Desktop — 1024px+
   ============================================================ */
@media (min-width: 1024px) {
    .matching-container[b-p4gontx1z6] {
        padding: 24px 20px;
        padding-top: var(--lesson-pad-top, 24px);
    }

    /* Hide tap modal — images are large enough to hover-enlarge */
    .image-modal[b-p4gontx1z6] {
        display: none;
    }

    .images-container[b-p4gontx1z6] {
        grid-template-columns: repeat(auto-fill, 170px);
        gap: 30px;
        margin: 40px 0 20px;
        overflow: visible;
        padding-top: 50px;
    }

    .image-target[b-p4gontx1z6] {
        position: relative;
        z-index: 1;
        transition: z-index 0s 0.3s;
    }

        @media (hover: hover) and (pointer: fine) {
            .image-target:hover[b-p4gontx1z6] {
                z-index: 10;
                transition: z-index 0s;
            }
        }

    .image-circle[b-p4gontx1z6] {
        width: 166px;
        height: 166px;
        overflow: visible;
        transition: border-color 0.3s ease;
    }

        .image-circle img[b-p4gontx1z6] {
            transition: transform 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
            background-color: #fff;
        }

    @media (hover: hover) and (pointer: fine) {
        .image-target:hover .image-circle[b-p4gontx1z6] {
            border-color: transparent;
        }
    }

        @media (hover: hover) and (pointer: fine) {
            .image-target:hover .image-circle img[b-p4gontx1z6],
            .image-target:hover .text-image[b-p4gontx1z6] {
                transform: scale(1.5);
                border-radius: 20%;
                z-index: 10;
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
                background-color: #fff;
            }
        }

    .text-image[b-p4gontx1z6] {
        font-size: clamp(13px, 2vw, 17px);
        padding: 14px;
        line-height: 1.25;
        transition: transform 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
    }

    .labels-stack[b-p4gontx1z6] {
        max-width: 190px;
        margin-top: 10px;
        gap: 6px;
        transition: transform 0.3s ease;
    }

    @media (hover: hover) and (pointer: fine) {
        .image-target:hover .labels-stack[b-p4gontx1z6] {
            transform: translateY(50px);
        }
    }

    .label.static[b-p4gontx1z6] {
        min-width: 140px;
        min-height: 38px;
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 20px;
    }

        .label.static div:last-child[b-p4gontx1z6] {
            font-size: 13px;
        }

    .no-image-translation[b-p4gontx1z6] {
        font-size: 20px;
    }

}

/* ============================================================
   Large screens — 1400px+
   ============================================================ */
@media (min-width: 1400px) {
    .images-container[b-p4gontx1z6] {
        gap: 36px;
    }
}
