:root {
    --background: #f3f6fa;
    --surface: #ffffff;
    --surface-muted: #f7f9fc;
    --text: #172033;
    --text-muted: #667085;
    --border: #dfe5ee;
    --primary: #184f78;
    --primary-dark: #113b5b;
    --primary-soft: #e9f2f8;
    --success: #287a50;
    --shadow: 0 14px 40px rgba(27, 49, 77, 0.10);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top right, #e8f2f9 0, transparent 28rem),
        var(--background);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(223, 229, 238, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
}

.brand-mark,
.login-logo {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    margin-top: 2px;
    color: var(--text-muted);
}

.page-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 60px;
}

.login-container {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    width: min(100%, 460px);
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-heading {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 30px;
}

.login-logo {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 20px;
}

.login-heading h1 {
    margin: 0;
    font-size: 25px;
}

.login-heading p,
.login-footer {
    margin: 4px 0 0;
    color: var(--text-muted);
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
}

.form {
    display: grid;
    gap: 19px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cbd4df;
    border-radius: 10px;
    color: var(--text);
    background: #fff;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(24, 79, 120, 0.12);
}

.form-error {
    margin: 0;
    color: #b42318;
    font-size: 13px;
}

.checkbox-row {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    padding: 10px 17px;
    border: 0;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 750;
    text-decoration: none;
}

.button-primary {
    color: #fff;
    background: var(--primary);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    color: var(--primary);
    background: var(--primary-soft);
}

.button-full {
    width: 100%;
    min-height: 50px;
}

.page-heading {
    display: flex;
    gap: 28px;
    align-items: stretch;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-heading > div:first-child {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.025em;
}

.page-heading > div > p:last-child {
    color: var(--text-muted);
    line-height: 1.6;
}

.countdown-card {
    display: grid;
    min-width: 230px;
    padding: 22px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(145deg, var(--primary), #2477a7);
    align-content: center;
    box-shadow: var(--shadow);
}

.countdown-card strong {
    font-size: 42px;
    line-height: 1;
}

.countdown-card span {
    margin-top: 7px;
    font-weight: 700;
}

.countdown-card small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.75);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card,
.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 7px 24px rgba(27, 49, 77, 0.06);
}

.stat-card {
    display: grid;
    gap: 5px;
    padding: 21px;
}

.stat-card span,
.stat-card small {
    color: var(--text-muted);
}

.stat-card strong {
    font-size: 24px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 20px;
}

.panel {
    padding: 24px;
}

.panel-primary {
    border-color: #bfd5e5;
}

.panel-heading {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    justify-content: space-between;
}

.panel-heading h2 {
    margin: 0;
    font-size: 21px;
}

.panel > p {
    color: var(--text-muted);
    line-height: 1.6;
}

.status-badge {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--success);
    background: #e7f4ec;
    font-size: 12px;
    font-weight: 800;
}

.empty-action {
    display: grid;
    gap: 4px;
    margin-top: 24px;
    padding: 18px;
    border-radius: 12px;
    background: var(--surface-muted);
}

.empty-action span {
    color: var(--text-muted);
    font-size: 13px;
}

.subject-list {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.subject-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 45px;
    gap: 12px;
    align-items: center;
}

.subject-row > span,
.subject-row > strong {
    font-size: 14px;
}

.progress-track {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: #e8edf3;
}

.progress-value {
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

@media (max-width: 900px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 650px) {
    .topbar-inner,
    .page-container {
        width: min(100% - 24px, 1180px);
    }

    .topbar-inner {
        min-height: 64px;
    }

    .brand small {
        display: none;
    }

    .page-container {
        padding-top: 24px;
    }

    .page-heading {
        display: grid;
    }

    .countdown-card {
        min-width: 0;
    }

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

    .login-card {
        padding: 24px;
    }
}


.topbar-actions {
    display: flex;
    gap: 18px;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-link {
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.alert {
    margin-bottom: 22px;
    padding: 14px 17px;
    border: 1px solid;
    border-radius: 12px;
}

.alert-success {
    border-color: #afd5bd;
    color: #17613b;
    background: #e9f6ee;
}

.alert-error {
    border-color: #efb5b0;
    color: #912018;
    background: #fff0ef;
}

.alert-error ul {
    margin-bottom: 0;
}

.empty-state {
    display: grid;
    gap: 6px;
    margin-top: 20px;
    padding: 22px;
    border-radius: 12px;
    color: var(--text-muted);
    background: var(--surface-muted);
}

.empty-state strong {
    color: var(--text);
}

.dashboard-session-list {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.dashboard-session-row {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
}

.dashboard-session-row > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    align-items: center;
}

.dashboard-session-row strong,
.dashboard-session-row small {
    grid-column: 2;
}

.dashboard-session-row small {
    color: var(--text-muted);
}

.subject-code {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 7px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 12px;
    font-weight: 850;
}

.session-status {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-open {
    color: #5c6675;
    background: #edf0f4;
}

.status-in_progress {
    color: #15527a;
    background: #e0f0fa;
}

.status-completed {
    color: #17613b;
    background: #e2f3e8;
}

.status-rework {
    color: #875c08;
    background: #fff2cb;
}

.status-missed {
    color: #9a251d;
    background: #fee7e5;
}

.compact-countdown strong {
    font-size: 34px;
}

.learning-session-grid {
    display: grid;
    gap: 22px;
}

.learning-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 7px 24px rgba(27, 49, 77, 0.06);
}

.learning-card-heading {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.learning-card-heading h2 {
    margin: 9px 0 0;
    font-size: 23px;
}

.learning-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
}

.learning-description {
    margin-top: 22px;
    padding: 18px;
    border-radius: 12px;
    background: var(--surface-muted);
}

.learning-description h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.learning-description p {
    margin: 0;
    line-height: 1.65;
}

.learning-info {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.learning-info span {
    color: var(--text-muted);
    font-size: 13px;
}

.learning-info strong {
    font-size: 14px;
    line-height: 1.5;
}

.learning-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cbd4df;
    border-radius: 10px;
    color: var(--text);
    background: #fff;
    outline: none;
}

.form-group select {
    min-height: 48px;
}

.form-group textarea {
    resize: vertical;
}

.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(24, 79, 120, 0.12);
}

@media (max-width: 760px) {
    .topbar-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 0;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .main-nav {
        overflow-x: auto;
    }

    .learning-card {
        padding: 18px;
    }

    .learning-card-heading {
        display: grid;
    }

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

    .learning-info {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .dashboard-session-row {
        align-items: flex-start;
    }
}


/* MBV_WEEKS_START */

.weeks-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.summary-card {
    display: grid;
    gap: 6px;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 7px 24px rgba(27, 49, 77, 0.05);
}

.summary-card span {
    color: var(--text-muted);
    font-size: 14px;
}

.summary-card strong {
    font-size: 22px;
}

.week-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.week-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 7px 24px rgba(27, 49, 77, 0.06);
    text-decoration: none;
    transition:
        transform 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.week-card:hover {
    transform: translateY(-3px);
    border-color: #a8c8df;
    box-shadow: 0 14px 32px rgba(27, 49, 77, 0.11);
}

.week-card-current {
    border: 2px solid var(--primary);
}

.week-card-topline {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.week-number {
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.week-calendar-status {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.calendar-current {
    color: #17613b;
    background: #e2f3e8;
}

.calendar-past {
    color: #5c6675;
    background: #edf0f4;
}

.calendar-future {
    color: #15527a;
    background: #e0f0fa;
}

.week-card h2 {
    margin: 19px 0 8px;
    font-size: 21px;
}

.week-card > p {
    flex: 1;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.week-date {
    margin-top: 17px;
    color: var(--text-muted);
    font-size: 13px;
}

.week-progress-heading {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 13px;
}

.week-progress-track {
    margin-top: 8px;
}

.week-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 12px;
}

.week-warning {
    color: #875c08;
    font-weight: 750;
}

.week-navigation {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.week-navigation-buttons {
    display: flex;
    gap: 10px;
}

.back-link {
    color: var(--primary);
    font-weight: 750;
    text-decoration: none;
}

.week-detail-date {
    margin-top: 12px;
    color: var(--text-muted);
    font-weight: 700;
}

.week-days {
    display: grid;
    gap: 24px;
}

.week-day-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 7px 24px rgba(27, 49, 77, 0.06);
}

.week-day-header {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-muted);
}

.week-day-header h2 {
    margin: 0;
    font-size: 22px;
}

.day-statistics {
    display: grid;
    text-align: right;
}

.day-statistics strong {
    font-size: 22px;
}

.day-statistics span {
    color: var(--text-muted);
    font-size: 12px;
}

.week-session-list {
    display: grid;
}

.week-session-card {
    padding: 22px;
    border-bottom: 1px solid var(--border);
}

.week-session-card:last-child {
    border-bottom: 0;
}

.week-session-heading {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.week-session-heading h3 {
    margin: 9px 0 0;
    font-size: 19px;
}

.week-session-detail {
    margin: 16px 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.session-details {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
}

.session-details summary {
    padding: 13px 15px;
    cursor: pointer;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.session-details-content {
    display: grid;
    gap: 12px;
    padding: 0 15px 15px;
}

.session-details-content > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
}

.session-details-content span {
    color: var(--text-muted);
    font-size: 12px;
}

.session-details-content strong {
    font-size: 13px;
    line-height: 1.45;
}

.week-session-form {
    display: grid;
    gap: 17px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

@media (max-width: 1000px) {
    .week-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .weeks-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .week-card-grid {
        grid-template-columns: 1fr;
    }

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

    .week-navigation {
        display: grid;
    }

    .week-navigation-buttons {
        justify-content: space-between;
    }

    .week-day-header,
    .week-session-heading {
        align-items: flex-start;
    }
}

@media (max-width: 500px) {
    .weeks-summary-grid {
        grid-template-columns: 1fr;
    }

    .week-navigation-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .week-day-header {
        align-items: flex-start;
    }

    .session-details-content > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* MBV_WEEKS_END */

/* MBV_TESTSYSTEM_STAGE2_START */

.test-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.test-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 7px 24px rgba(27, 49, 77, 0.06);
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease;
}

.test-card:hover {
    transform: translateY(-2px);
    border-color: #a8c8df;
}

.test-card-topline,
.test-question-heading,
.test-result-preview {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.test-code {
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
}

.test-card h2 {
    flex: 1;
    margin: 20px 0 10px;
    font-size: 21px;
}

.test-date {
    color: var(--text-muted);
    font-size: 13px;
}

.test-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.test-metrics span {
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 10px;
    color: var(--text-muted);
    background: var(--surface-muted);
    font-size: 12px;
}

.test-metrics strong {
    color: var(--text);
    font-size: 16px;
}

.test-result-preview {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.test-start-grid {
    align-items: start;
}

.test-rules {
    margin: 18px 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.panel-primary form + .button,
.panel-primary .button + .button,
.panel-primary form + a {
    margin-top: 10px;
}

.question-preview-list,
.test-history-list {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.question-preview-row,
.test-history-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface-muted);
    text-decoration: none;
}

.question-preview-row span,
.question-preview-row small,
.test-history-row span {
    color: var(--text-muted);
    font-size: 12px;
}

.test-history-panel {
    margin-top: 22px;
}

.test-attempt-toolbar {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.test-attempt-toolbar h1 {
    margin: 5px 0 0;
}

.test-timer {
    display: grid;
    min-width: 250px;
    padding: 16px 20px;
    border: 1px solid #a8c8df;
    border-radius: 14px;
    text-align: center;
    background: #eef7fc;
}

.test-timer span,
.test-timer small {
    color: var(--text-muted);
    font-size: 12px;
}

.test-timer strong {
    margin: 4px 0;
    color: var(--primary);
    font-size: 29px;
    font-variant-numeric: tabular-nums;
}

.test-timer.expired {
    border-color: #efb5b0;
    background: #fff0ef;
}

.test-question-stack {
    display: grid;
    gap: 22px;
}

.test-question-card,
.review-question-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 7px 24px rgba(27, 49, 77, 0.06);
}

.test-question-heading {
    align-items: flex-start;
}

.test-question-heading h2 {
    margin: 9px 0 0;
    font-size: 22px;
}

.question-points {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 12px;
    font-weight: 800;
}

.question-prompt {
    margin: 20px 0;
    padding: 18px;
    border-radius: 12px;
    background: var(--surface-muted);
    line-height: 1.7;
}

.test-form-actions {
    position: sticky;
    z-index: 10;
    bottom: 12px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 22px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(27, 49, 77, 0.14);
}

.review-block {
    margin-top: 17px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.review-block h3 {
    margin: 0 0 9px;
    font-size: 14px;
}

.own-answer {
    background: #f7f9fb;
}

.model-answer {
    border-color: #afd5bd;
    background: #eef8f1;
}

.scoring-guide {
    border-color: #c6d5e2;
    background: #f2f7fa;
}

.formatted-text {
    line-height: 1.68;
    overflow-wrap: anywhere;
}

.review-input-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.review-input-grid input {
    width: 100%;
}

.review-input-grid small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

@media (max-width: 1000px) {
    .test-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .test-card-grid {
        grid-template-columns: 1fr;
    }

    .test-attempt-toolbar {
        display: grid;
    }

    .test-timer {
        width: 100%;
        min-width: 0;
    }

    .test-question-card,
    .review-question-card {
        padding: 18px;
    }

    .test-form-actions {
        display: grid;
    }

    .review-input-grid,
    .question-preview-row,
    .test-history-row {
        grid-template-columns: 1fr;
    }
}

/* MBV_TESTSYSTEM_STAGE2_END */


/* MBV_BOOK_REFERENCES_STAGE3A_START */

.book-reference-box {
    display: grid;
    gap: 16px;
    margin-top: 20px;
    padding: 19px;
    border: 1px solid #b9cfdf;
    border-radius: 13px;
    background: #f3f8fb;
}

.book-reference-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.book-reference-heading h3 {
    margin: 0;
    font-size: 18px;
}

.book-reference-mode {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    color: #184f78;
    background: #dcecf6;
    font-size: 11px;
    font-weight: 800;
}

.book-section-list {
    display: grid;
    gap: 9px;
}

.book-section-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 13px;
    border: 1px solid #d4e1ea;
    border-radius: 10px;
    background: #fff;
}

.book-section-main {
    display: grid;
    gap: 4px;
}

.book-section-main strong {
    font-size: 14px;
    line-height: 1.45;
}

.book-section-main small {
    color: var(--text-muted);
    line-height: 1.45;
}

.book-section-code {
    color: #184f78;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.book-page-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 9px;
    color: #fff;
    background: #184f78;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.book-work-order {
    padding: 14px;
    border-left: 4px solid #184f78;
    border-radius: 0 9px 9px 0;
    background: #fff;
}

.book-work-order span {
    color: #184f78;
    font-size: 12px;
    font-weight: 850;
}

.book-work-order p {
    margin: 6px 0 0;
    line-height: 1.6;
}

.book-reference-note {
    padding: 12px 14px;
    border-radius: 9px;
    color: #73530b;
    background: #fff2cc;
    font-size: 13px;
    line-height: 1.5;
}

.book-review-block {
    border-color: #b9cfdf;
    background: #f3f8fb;
}

.book-review-intro {
    margin: 0 0 12px;
    color: var(--text-muted);
    line-height: 1.55;
}

.book-question-section-list {
    display: grid;
    gap: 9px;
}

.book-question-section {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 13px;
    border: 1px solid #d4e1ea;
    border-radius: 10px;
    background: #fff;
}

.book-question-section > div {
    display: grid;
    gap: 4px;
}

.book-question-section span {
    color: #184f78;
    font-size: 11px;
    font-weight: 800;
}

.book-question-section strong {
    font-size: 14px;
}

.book-question-section small {
    color: var(--text-muted);
    line-height: 1.45;
}

.book-question-section b {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 8px;
    color: #fff;
    background: #184f78;
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 650px) {
    .book-reference-heading,
    .book-section-row,
    .book-question-section {
        display: grid;
    }

    .book-reference-mode,
    .book-page-badge,
    .book-question-section b {
        justify-self: start;
    }
}

/* MBV_BOOK_REFERENCES_STAGE3A_END */

/* MBV_QUICK_LEARNING_STAGE3B_START */
.quick-resume-panel,.quick-start-form{margin-top:22px}.quick-resume-panel{display:flex;align-items:center;justify-content:space-between;gap:20px}.quick-resume-panel h2{margin:4px 0}.quick-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.quick-choice{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-muted);cursor:pointer}.quick-choice input{grid-row:1/3;align-self:start;margin-top:4px}.quick-choice span{color:var(--text-muted);font-size:13px}.quick-settings{max-width:620px;margin-bottom:18px}.quick-mobile-shell{max-width:760px;margin:0 auto}.quick-progress-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.quick-progress-header h1{margin:2px 0 0;font-size:24px}.quick-question-card,.quick-feedback-card{margin-top:18px;padding:24px;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:0 10px 30px rgba(27,49,77,.08)}.quick-question-card h2{margin:18px 0 22px;font-size:25px;line-height:1.4}.quick-answer-form{display:grid;gap:20px}.quick-option-list{display:grid;gap:12px}.quick-option{display:grid;grid-template-columns:auto auto 1fr;gap:12px;align-items:center;padding:16px;border:1px solid #cbd8e3;border-radius:13px;background:#fff;cursor:pointer;line-height:1.45}.quick-option:has(input:checked){border-color:#184f78;background:#eef6fb;box-shadow:0 0 0 3px rgba(24,79,120,.10)}.quick-option input{width:20px;height:20px}.quick-option-key{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#184f78;background:#e1eef6;font-weight:850}.quick-confidence{max-width:280px}.quick-submit{width:100%;min-height:52px;font-size:16px}.quick-feedback-card.is-correct{border-top:6px solid #238552}.quick-feedback-card.is-wrong{border-top:6px solid #c13c32}.quick-feedback-card h1{margin:4px 0 12px}.quick-feedback-question{font-size:18px;font-weight:750;line-height:1.5}.quick-feedback-options{display:grid;gap:9px;margin:20px 0}.quick-feedback-option{display:grid;grid-template-columns:30px 1fr;gap:10px;padding:13px;border:1px solid var(--border);border-radius:10px}.quick-feedback-option.correct{border-color:#7ec49b;background:#eaf7ef}.quick-feedback-option.wrong-selected{border-color:#e2a39d;background:#fff0ef}.quick-feedback-option.selected:not(.correct){font-weight:700}.quick-explanation,.quick-book-reference{margin-top:18px;padding:17px;border-radius:12px;background:var(--surface-muted)}.quick-explanation h2,.quick-book-reference h2{margin:0 0 8px;font-size:17px}.quick-explanation p{margin:0;line-height:1.65}.quick-book-reference{display:grid;gap:10px;background:#f1f7fb}.quick-book-reference>div{display:grid;grid-template-columns:1fr auto;gap:4px 14px;padding:12px;border:1px solid #d4e1ea;border-radius:9px;background:#fff}.quick-book-reference span{grid-column:1;color:#184f78;font-size:11px;font-weight:800}.quick-book-reference strong{grid-column:1;font-size:14px}.quick-book-reference b{grid-column:2;grid-row:1/3;align-self:center;padding:6px 8px;border-radius:8px;color:#fff;background:#184f78;font-size:11px}.quick-feedback-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.quick-feedback-actions form{margin:0}.quick-result-panel{margin-top:22px}
@media(max-width:700px){.quick-choice-grid{grid-template-columns:1fr}.quick-resume-panel{display:grid}.quick-question-card,.quick-feedback-card{padding:18px}.quick-question-card h2{font-size:21px}.quick-progress-header{align-items:flex-start}.quick-feedback-actions{display:grid}.quick-feedback-actions .button,.quick-feedback-actions form,.quick-feedback-actions form button{width:100%}.quick-book-reference>div{grid-template-columns:1fr}.quick-book-reference b{grid-column:1;grid-row:auto;justify-self:start}}
/* MBV_QUICK_LEARNING_STAGE3B_END */

/* MBV_IHK_ARCHIVE_STAGE4C_START */
.ihk-filter .form-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:1rem}.ihk-filter-actions{display:flex;gap:.75rem;margin-top:1rem}.ihk-topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.ihk-topic-grid article{border:1px solid #d8e3eb;border-radius:14px;padding:1rem;background:#f8fbfd}.ihk-topic-grid span{display:block;color:#165f8c;font-weight:800;font-size:.78rem;text-transform:uppercase}.ihk-topic-grid strong{display:block;margin:.35rem 0}.ihk-topic-grid small{color:#64748b}.ihk-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1rem}.ihk-task-card{display:flex;flex-direction:column}.ihk-task-card p{flex:1}.ihk-book-line{border-top:1px solid #e2e8f0;padding-top:.8rem;margin:.8rem 0;display:flex;flex-direction:column;gap:.2rem}.ihk-book-line span{color:#64748b}.ihk-exam-task-list{display:grid;gap:.55rem}.ihk-exam-task-list a{display:grid;grid-template-columns:120px 1fr 65px;gap:1rem;align-items:center;padding:.8rem 1rem;border:1px solid #dce6ed;border-radius:12px;text-decoration:none;color:inherit}.ihk-exam-task-list a:hover{border-color:#165f8c;background:#f2f8fb}.ihk-exam-task-list b{text-align:right}.ihk-detail-grid{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(260px,1fr);gap:1rem}.ihk-page-image{display:block;width:100%;height:auto;border:1px solid #d8e3eb;border-radius:10px;background:#fff}.ihk-reference-card{align-self:start;position:sticky;top:1rem}.ihk-reference-card>strong{display:block;color:#165f8c;margin-bottom:1rem}.ihk-text{white-space:pre-wrap;font:inherit;line-height:1.6;background:#f8fafc;padding:1rem;border-radius:10px}.ihk-parts{display:grid;gap:.8rem}.ihk-parts article{display:grid;grid-template-columns:45px 110px 1fr;gap:1rem;align-items:start;border-bottom:1px solid #e2e8f0;padding:.8rem 0}.ihk-parts article>span{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#165f8c;color:white;font-weight:800}.ihk-parts p{margin:0}.ihk-solution{margin-top:1rem}.ihk-solution summary{cursor:pointer;font-size:1.15rem;font-weight:800;color:#0f2740}.ihk-solution[open] summary{margin-bottom:1rem}@media(max-width:900px){.ihk-filter .form-row,.ihk-task-grid,.ihk-topic-grid,.ihk-detail-grid{grid-template-columns:1fr}.ihk-reference-card{position:static}.ihk-exam-task-list a{grid-template-columns:90px 1fr 50px}.ihk-parts article{grid-template-columns:40px 90px 1fr}}@media(max-width:560px){.ihk-exam-task-list a{grid-template-columns:1fr auto}.ihk-exam-task-list a strong{grid-column:1/-1}.ihk-parts article{grid-template-columns:40px 1fr}.ihk-parts article p{grid-column:1/-1}.ihk-filter-actions{flex-direction:column}}
/* MBV_IHK_ARCHIVE_STAGE4C_END */

/* MBV_IHK_EXAM_LAYOUT_V2_START */

.ihk-exam-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.4rem;
    padding: 1.5rem 1.65rem;
    border: 1px solid #d7e3eb;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f5f9fc 62%,
            #e8f2f8 100%
        );
    box-shadow: 0 10px 28px rgba(15, 39, 64, 0.06);
}

.ihk-exam-hero-content {
    min-width: 0;
}

.ihk-exam-hero .eyebrow {
    margin: 1rem 0 0.25rem;
}

.ihk-exam-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.ihk-exam-intro {
    margin: 0.65rem 0 0;
    color: #64748b;
}

.ihk-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #165f8c;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
}

.ihk-back-link:hover {
    text-decoration: underline;
}

.ihk-exam-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 0.7rem;
    flex: 0 0 auto;
}

.ihk-exam-facts article {
    min-width: 105px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(22, 95, 140, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.ihk-exam-facts strong {
    display: block;
    color: #0f2740;
    font-size: 1.45rem;
    line-height: 1.1;
}

.ihk-exam-facts span {
    display: block;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ihk-exam-sections {
    display: grid;
    gap: 1rem;
}

.ihk-exam-group {
    padding: 0;
    overflow: hidden;
}

.ihk-exam-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e1e9ef;
    background: #f8fbfd;
}

.ihk-exam-group-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.ihk-subject-badge {
    display: grid;
    place-items: center;
    min-width: 54px;
    height: 38px;
    padding: 0 0.7rem;
    border-radius: 10px;
    background: #165f8c;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.ihk-exam-group-title h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.25;
}

.ihk-exam-group-title p {
    margin: 0.18rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
}

.ihk-subject-points {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    white-space: nowrap;
}

.ihk-subject-points strong {
    color: #0f2740;
    font-size: 1.25rem;
}

.ihk-subject-points span {
    color: #64748b;
    font-size: 0.8rem;
}

.ihk-exam-group .ihk-exam-task-list {
    display: block;
}

.ihk-exam-group .ihk-exam-task-list a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 68px 20px;
    gap: 0.9rem;
    align-items: center;
    padding: 0.78rem 1.25rem;
    border: 0;
    border-bottom: 1px solid #e7edf2;
    border-radius: 0;
    color: inherit;
    text-decoration: none;
    transition:
        background 0.15s ease,
        padding-left 0.15s ease;
}

.ihk-exam-group .ihk-exam-task-list a:last-child {
    border-bottom: 0;
}

.ihk-exam-group .ihk-exam-task-list a:hover {
    padding-left: 1.4rem;
    background: #f2f8fb;
}

.ihk-task-number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #cbdbe5;
    border-radius: 10px;
    background: #ffffff;
    color: #165f8c;
    font-weight: 850;
}

.ihk-task-content {
    min-width: 0;
}

.ihk-task-content strong {
    display: block;
    overflow: hidden;
    color: #0f2740;
    font-size: 0.93rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ihk-task-content small {
    display: block;
    margin-top: 0.22rem;
    color: #718096;
    font-size: 0.76rem;
}

.ihk-task-points {
    justify-self: end;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    background: #edf5f9;
    color: #0f4f76;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.ihk-task-arrow {
    color: #7c94a5;
    font-size: 1.15rem;
    transition: transform 0.15s ease;
}

.ihk-exam-task-list a:hover .ihk-task-arrow {
    transform: translateX(3px);
}

@media (max-width: 850px) {
    .ihk-exam-hero {
        align-items: stretch;
        flex-direction: column;
        gap: 1.25rem;
    }

    .ihk-exam-facts {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .ihk-exam-hero {
        padding: 1.15rem;
        border-radius: 14px;
    }

    .ihk-exam-facts {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.45rem;
    }

    .ihk-exam-facts article {
        min-width: 0;
        padding: 0.7rem 0.35rem;
    }

    .ihk-exam-facts strong {
        font-size: 1.15rem;
    }

    .ihk-exam-facts span {
        font-size: 0.62rem;
    }

    .ihk-exam-group-header {
        align-items: flex-start;
        padding: 0.9rem 1rem;
    }

    .ihk-subject-badge {
        min-width: 48px;
        height: 34px;
    }

    .ihk-exam-group-title h2 {
        font-size: 0.96rem;
    }

    .ihk-subject-points {
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
    }

    .ihk-exam-group .ihk-exam-task-list a {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 0.7rem;
        padding: 0.75rem 1rem;
    }

    .ihk-exam-group .ihk-exam-task-list a:hover {
        padding-left: 1rem;
    }

    .ihk-task-number {
        width: 34px;
        height: 34px;
    }

    .ihk-task-content strong {
        white-space: normal;
    }

    .ihk-task-arrow {
        display: none;
    }

    .ihk-task-points {
        padding: 0.3rem 0.45rem;
    }
}

/* MBV_IHK_EXAM_LAYOUT_V2_END */

/* MBV_IHK_INDEX_LAYOUT_V2_START */

.ihk-index-page {
    width: 100%;
}

.ihk-index-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.5rem 1.65rem;
    border: 1px solid #d7e3eb;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f5f9fc 65%,
            #e6f1f7 100%
        );
    box-shadow: 0 10px 28px rgba(15, 39, 64, 0.06);
}

.ihk-index-hero h1 {
    margin: 0.2rem 0 0.55rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.ihk-index-hero p:last-child {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.ihk-index-main-stat {
    padding: 1.15rem;
    border-radius: 15px;
    background: #165f8c;
    color: #ffffff;
}

.ihk-index-main-stat strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.ihk-index-main-stat span {
    display: block;
    margin-top: 0.35rem;
    font-weight: 800;
}

.ihk-index-main-stat small {
    display: block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.35;
}

.ihk-index-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.ihk-index-stats article {
    padding: 0.9rem 1rem;
    border: 1px solid #dce6ed;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(15, 39, 64, 0.04);
}

.ihk-index-stats span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.ihk-index-stats strong {
    display: block;
    margin-top: 0.25rem;
    color: #0f2740;
    font-size: 1.25rem;
}

.ihk-index-filter {
    margin-bottom: 1rem;
}

.ihk-index-filter-grid {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) minmax(220px, 1.2fr) 150px;
    gap: 1rem;
    align-items: end;
}

.ihk-index-filter .form-group {
    margin: 0;
}

.ihk-index-filter input,
.ihk-index-filter select {
    width: 100%;
}

.ihk-index-filter-actions {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
}

.ihk-section-heading,
.ihk-results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.ihk-section-heading h2,
.ihk-results-heading h2 {
    margin: 0.15rem 0 0;
}

.ihk-section-heading > p {
    max-width: 420px;
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
    text-align: right;
}

.ihk-index-topics {
    margin-bottom: 1rem;
}

.ihk-index-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.ihk-index-topic-grid article {
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid #dbe6ed;
    border-radius: 12px;
    background: #f8fbfd;
}

.ihk-index-topic-code {
    color: #165f8c;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ihk-index-topic-grid strong {
    display: block;
    margin: 0.4rem 0 0.7rem;
    color: #0f2740;
    font-size: 0.88rem;
    line-height: 1.35;
}

.ihk-index-topic-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ihk-index-topic-facts span {
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    background: #eaf3f8;
    color: #365a70;
    font-size: 0.7rem;
    font-weight: 700;
}

.ihk-index-results {
    padding: 0;
    overflow: hidden;
}

.ihk-results-heading {
    padding: 1.15rem 1.3rem;
    border-bottom: 1px solid #e1e9ef;
    background: #f8fbfd;
}

.ihk-results-count {
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    background: #e9f2f7;
    color: #165f8c;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.ihk-result-list {
    display: block;
}

.ihk-result-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 66px 22px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.3rem;
    border-bottom: 1px solid #e6edf2;
    color: inherit;
    text-decoration: none;
    transition:
        background 0.15s ease,
        padding-left 0.15s ease;
}

.ihk-result-row:last-child {
    border-bottom: 0;
}

.ihk-result-row:hover {
    padding-left: 1.45rem;
    background: #f3f8fb;
}

.ihk-result-subject {
    display: grid;
    place-items: center;
    min-width: 54px;
    height: 38px;
    border-radius: 9px;
    background: #165f8c;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.ihk-result-main {
    min-width: 0;
}

.ihk-result-meta {
    display: block;
    margin-bottom: 0.18rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.ihk-result-main > strong {
    display: block;
    color: #0f2740;
    font-size: 0.98rem;
    line-height: 1.3;
}

.ihk-result-excerpt {
    display: block;
    margin-top: 0.35rem;
    overflow: hidden;
    color: #607080;
    font-size: 0.82rem;
    line-height: 1.45;
}

.ihk-result-book {
    display: block;
    margin-top: 0.35rem;
    color: #165f8c;
    font-size: 0.74rem;
    font-weight: 750;
}

.ihk-result-points {
    justify-self: end;
    text-align: center;
}

.ihk-result-points strong {
    display: block;
    color: #0f2740;
    font-size: 1.15rem;
}

.ihk-result-points small {
    display: block;
    color: #64748b;
    font-size: 0.68rem;
}

.ihk-result-arrow {
    color: #71889a;
    font-size: 1.2rem;
    transition: transform 0.15s ease;
}

.ihk-result-row:hover .ihk-result-arrow {
    transform: translateX(3px);
}

.ihk-empty-result {
    padding: 2rem 1.3rem;
    text-align: center;
}

.ihk-empty-result h3 {
    margin: 0;
}

.ihk-empty-result p {
    color: #64748b;
}

.ihk-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.3rem;
    border-top: 1px solid #dfe8ee;
    background: #f8fbfd;
}

.ihk-pagination-side {
    min-width: 0;
}

.ihk-pagination-next {
    text-align: right;
}

.ihk-pagination a,
.ihk-pagination-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    border: 1px solid #cfdde6;
    border-radius: 9px;
    background: #ffffff;
    color: #165f8c;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.ihk-pagination a:hover {
    border-color: #165f8c;
    background: #edf5f9;
}

.ihk-pagination-disabled {
    color: #9aa9b5;
    cursor: default;
}

.ihk-pagination-status {
    min-width: 110px;
    text-align: center;
}

.ihk-pagination-status strong,
.ihk-pagination-status span {
    display: block;
}

.ihk-pagination-status strong {
    color: #0f2740;
    font-size: 0.86rem;
}

.ihk-pagination-status span {
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.72rem;
}

.ihk-index-page nav svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

@media (max-width: 950px) {
    .ihk-index-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ihk-index-search {
        grid-column: 1 / -1;
    }

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

@media (max-width: 720px) {
    .ihk-index-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ihk-index-main-stat {
        max-width: none;
    }

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

    .ihk-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }

    .ihk-section-heading > p {
        max-width: none;
        text-align: left;
    }

    .ihk-result-row {
        grid-template-columns: 52px minmax(0, 1fr) 58px;
        gap: 0.7rem;
        padding: 0.9rem 1rem;
    }

    .ihk-result-row:hover {
        padding-left: 1rem;
    }

    .ihk-result-subject {
        min-width: 48px;
        height: 36px;
    }

    .ihk-result-arrow {
        display: none;
    }

    .ihk-result-excerpt {
        display: none;
    }
}

@media (max-width: 560px) {
    .ihk-index-hero {
        padding: 1.15rem;
        border-radius: 14px;
    }

    .ihk-index-filter-grid {
        grid-template-columns: 1fr;
    }

    .ihk-index-search {
        grid-column: auto;
    }

    .ihk-index-filter-actions {
        flex-direction: column;
    }

    .ihk-index-filter-actions .button {
        width: 100%;
    }

    .ihk-index-topic-grid {
        grid-template-columns: 1fr;
    }

    .ihk-results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .ihk-result-row {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .ihk-result-points {
        grid-column: 2;
        justify-self: start;
        display: flex;
        align-items: baseline;
        gap: 0.25rem;
        margin-top: 0.2rem;
        text-align: left;
    }

    .ihk-result-points strong,
    .ihk-result-points small {
        display: inline;
    }

    .ihk-result-book {
        display: none;
    }

    .ihk-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .ihk-pagination-status {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .ihk-pagination-side {
        grid-row: 2;
    }

    .ihk-pagination a,
    .ihk-pagination-disabled {
        width: 100%;
    }
}

/* MBV_IHK_INDEX_LAYOUT_V2_END */

/* MBV_IHK_PRACTICE_STAGE4D_START */

.practice-hero,
.practice-work-header,
.practice-review-hero,
.practice-result-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1.5rem 1.65rem;
    border: 1px solid #d7e3eb;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f5f9fc 65%, #e6f1f7 100%);
    box-shadow: 0 10px 28px rgba(15, 39, 64, .06);
}

.practice-hero h1,
.practice-work-header h1,
.practice-review-hero h1,
.practice-result-hero h1 {
    margin: .15rem 0 .45rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.practice-hero p:last-child,
.practice-work-header p:last-child,
.practice-review-hero p:last-child,
.practice-result-hero p:last-child {
    margin: 0;
    color: #64748b;
}

.practice-hero-score,
.practice-review-time,
.practice-result-score {
    min-width: 190px;
    padding: 1.1rem 1.25rem;
    border-radius: 15px;
    background: #165f8c;
    color: #fff;
}

.practice-hero-score strong,
.practice-review-time strong,
.practice-result-score strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.practice-hero-score span,
.practice-review-time span,
.practice-result-score span,
.practice-hero-score small,
.practice-result-score small {
    display: block;
    margin-top: .35rem;
}

.practice-hero-score small,
.practice-result-score small {
    color: rgba(255, 255, 255, .78);
}

.practice-result-score.passed {
    background: #146c55;
}

.practice-stats,
.practice-result-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-bottom: 1rem;
}

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

.practice-stats article,
.practice-result-stats article {
    padding: .9rem 1rem;
    border: 1px solid #dce6ed;
    border-radius: 13px;
    background: #fff;
}

.practice-stats span,
.practice-result-stats span {
    display: block;
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
}

.practice-stats strong,
.practice-result-stats strong {
    display: block;
    margin-top: .25rem;
    color: #0f2740;
    font-size: 1.25rem;
}

.practice-open-attempts,
.practice-simulations,
.practice-history,
.practice-result-breakdown {
    margin-bottom: 1rem;
}

.practice-attempt-list,
.practice-history-list,
.practice-result-list {
    display: grid;
    gap: .7rem;
}

.practice-attempt-list article,
.practice-history-list article,
.practice-result-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #dfe8ee;
    border-radius: 12px;
    background: #f8fbfd;
}

.practice-attempt-list h3 {
    margin: .25rem 0 .15rem;
}

.practice-attempt-list p {
    margin: 0;
    color: #64748b;
}

.practice-status {
    display: inline-flex;
    padding: .25rem .45rem;
    border-radius: 999px;
    background: #e7eef3;
    color: #435d70;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.practice-status.active { background: #e6f3fb; color: #0f5c87; }
.practice-status.paused { background: #fff2cc; color: #7a5700; }
.practice-status.submitted { background: #efe8fb; color: #64449a; }
.practice-status.reviewed { background: #e2f4e9; color: #146c55; }

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

.practice-exam-card {
    padding: 1rem;
    border: 1px solid #dce6ed;
    border-radius: 13px;
    background: #f8fbfd;
}

.practice-exam-card header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem;
}

.practice-exam-card header span {
    color: #64748b;
    font-size: .72rem;
}

.practice-exam-card h3 {
    margin: .15rem 0 0;
}

.practice-exam-card header > strong {
    color: #165f8c;
    white-space: nowrap;
}

.practice-subject-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
}

.practice-subject-buttons form,
.practice-subject-buttons button {
    width: 100%;
}

.practice-subject-buttons button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: .65rem;
    border: 1px solid #cfdde6;
    border-radius: 9px;
    background: #fff;
    color: #0f2740;
    cursor: pointer;
}

.practice-subject-buttons button:hover {
    border-color: #165f8c;
    background: #edf5f9;
}

.practice-subject-buttons button span {
    margin-top: .15rem;
    color: #64748b;
    font-size: .68rem;
}

.practice-history-main {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.practice-history-main small {
    color: #64748b;
}

.practice-history-result {
    text-align: right;
}

.practice-history-result strong,
.practice-history-result a {
    display: block;
}

.practice-history-result button {
    border: 0;
    background: none;
    color: #165f8c;
    font-weight: 800;
    cursor: pointer;
}

.practice-timer {
    min-width: 205px;
    padding: 1rem 1.2rem;
    border: 1px solid #cfe0ea;
    border-radius: 14px;
    background: #fff;
}

.practice-timer span,
.practice-timer small,
.practice-timer strong {
    display: block;
}

.practice-timer span,
.practice-timer small {
    color: #64748b;
}

.practice-timer strong {
    margin: .25rem 0;
    color: #0f2740;
    font-size: 1.8rem;
}

.practice-timer.overtime {
    border-color: #d05050;
    background: #fff3f3;
}

.practice-timer.overtime strong { color: #b42323; }

.practice-progress {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}

.practice-progress a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #cfdde6;
    border-radius: 9px;
    background: #fff;
    color: #165f8c;
    font-weight: 800;
    text-decoration: none;
}

.practice-progress a.answered { background: #e8f4ed; color: #146c55; }
.practice-progress a.current { border-color: #165f8c; box-shadow: 0 0 0 2px rgba(22, 95, 140, .15); }

.practice-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr);
    gap: 1rem;
}

.practice-task-panel > header,
.practice-answer-panel > header,
.practice-review-item > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.practice-task-panel > header > div,
.practice-review-item > header > div {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.practice-task-panel h2,
.practice-answer-panel h2,
.practice-review-item h2 {
    margin: 0;
}

.practice-subject-badge {
    display: grid;
    place-items: center;
    min-width: 52px;
    height: 36px;
    padding: 0 .55rem;
    border-radius: 9px;
    background: #165f8c;
    color: #fff;
    font-size: .75rem;
    font-weight: 850;
}

.practice-task-image,
.practice-solution-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #dce5eb;
    border-radius: 10px;
    background: #fff;
}

.practice-part-overview {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .8rem;
}

.practice-part-overview span {
    padding: .3rem .45rem;
    border-radius: 7px;
    background: #edf5f9;
    color: #365a70;
    font-size: .72rem;
    font-weight: 700;
}

.practice-answer-panel textarea {
    width: 100%;
    min-height: 430px;
    resize: vertical;
    font: inherit;
    line-height: 1.55;
}

.practice-answer-panel > header > span {
    color: #64748b;
    font-size: .75rem;
}

.practice-answer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .75rem;
}

.practice-answer-footer span { color: #64748b; font-size: .75rem; }

.practice-reference-note {
    margin-top: 1rem;
    padding: .8rem;
    border-radius: 10px;
    background: #f1f6f9;
    color: #526a7a;
    font-size: .8rem;
}

.practice-work-actions,
.practice-result-actions,
.practice-assess-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #dce6ed;
    border-radius: 13px;
    background: #fff;
}

.practice-work-actions > div {
    display: flex;
    gap: .6rem;
}

.practice-work-actions form { margin: 0; }

.button-danger {
    border-color: #b42323 !important;
    background: #b42323 !important;
    color: #fff !important;
}

.practice-review-list {
    display: grid;
    gap: 1rem;
}

.practice-review-item > header p {
    margin: 0 0 .15rem;
    color: #64748b;
    font-size: .78rem;
}

.practice-review-columns {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 1rem;
}

.practice-review-columns article {
    min-width: 0;
}

.practice-own-answer {
    min-height: 140px;
    padding: 1rem;
    border: 1px solid #dfe8ee;
    border-radius: 10px;
    background: #f8fbfd;
    line-height: 1.55;
}

.practice-score-box {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #dbe6ed;
    border-radius: 12px;
    background: #f8fbfd;
}

.practice-score-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem;
}

.practice-score-heading h3,
.practice-score-heading p { margin: 0; }
.practice-score-heading p { color: #64748b; font-size: .8rem; }
.practice-score-heading label { min-width: 180px; }
.practice-score-heading select { width: 100%; }

.practice-score-rows {
    display: grid;
    gap: .55rem;
}

.practice-score-row {
    display: grid;
    grid-template-columns: minmax(130px, .6fr) 150px minmax(220px, 1fr);
    gap: .8rem;
    align-items: end;
    padding: .7rem;
    border: 1px solid #e0e8ee;
    border-radius: 9px;
    background: #fff;
}

.practice-score-row > div span,
.practice-score-row label {
    display: block;
    color: #64748b;
    font-size: .72rem;
}

.practice-score-row input {
    width: 100%;
    margin-top: .25rem;
}

.practice-assess-submit p { margin: .2rem 0 0; color: #64748b; }

.practice-result-list article.gap {
    border-color: #e4bd67;
    background: #fff9e9;
}

.practice-result-task {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.practice-result-task > span {
    display: grid;
    place-items: center;
    min-width: 52px;
    height: 36px;
    border-radius: 9px;
    background: #165f8c;
    color: #fff;
    font-weight: 850;
}

.practice-result-task small { display: block; margin-top: .2rem; color: #64748b; }
.practice-result-points { text-align: right; }
.practice-result-points strong,
.practice-result-points span { display: block; }
.practice-result-points span { color: #64748b; font-size: .75rem; }

.ihk-practice-entry {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    margin: -.4rem 0 1rem;
}

.ihk-practice-entry form { margin: 0; }

@media (max-width: 1050px) {
    .practice-exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .practice-work-grid { grid-template-columns: 1fr; }
    .practice-answer-panel textarea { min-height: 300px; }
}

@media (max-width: 780px) {
    .practice-hero,
    .practice-work-header,
    .practice-review-hero,
    .practice-result-hero {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .practice-stats,
    .practice-result-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .practice-review-columns { grid-template-columns: 1fr; }
    .practice-score-row { grid-template-columns: 1fr 140px; }
    .practice-score-note { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .practice-hero,
    .practice-work-header,
    .practice-review-hero,
    .practice-result-hero { padding: 1.15rem; border-radius: 14px; }
    .practice-exam-grid { grid-template-columns: 1fr; }
    .practice-attempt-list article,
    .practice-history-list article,
    .practice-result-list article,
    .practice-work-actions,
    .practice-assess-submit {
        align-items: stretch;
        flex-direction: column;
    }
    .practice-history-result { text-align: left; }
    .practice-work-actions > div { flex-direction: column; }
    .practice-work-actions .button,
    .practice-work-actions button,
    .practice-result-actions .button { width: 100%; }
    .practice-result-actions { flex-direction: column; }
    .practice-score-heading { flex-direction: column; }
    .practice-score-heading label { min-width: 0; }
    .practice-score-row { grid-template-columns: 1fr; }
    .practice-score-note { grid-column: auto; }
    .ihk-practice-entry { flex-direction: column; }
    .ihk-practice-entry .button { width: 100%; }
}

/* MBV_IHK_PRACTICE_STAGE4D_END */

/* MBV_IHK_TUTOR_STAGE4E_START */

.tutor-mode-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.tutor-mode-info h2,
.tutor-mode-info p {
    margin-top: 0.25rem;
}

.tutor-mode-state {
    flex: 0 0 auto;
    min-width: 170px;
    padding: 0.8rem 1rem;
    border: 1px solid #d8e4eb;
    border-radius: 12px;
    background: #f8fbfd;
    text-align: center;
}

.tutor-mode-state span,
.tutor-mode-state small {
    display: block;
}

.tutor-mode-state span {
    font-weight: 850;
}

.tutor-mode-state .ready {
    color: #13734f;
}

.tutor-mode-state .not-ready {
    color: #9a5b14;
}

.tutor-mode-state small {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.72rem;
}

.tutor-alert-error,
.tutor-inline-error {
    color: #9f2f2f;
}

.tutor-alert-error {
    border-color: #efcaca;
    background: #fff5f5;
}

.tutor-inline-panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #cfe0ea;
    border-radius: 13px;
    background: linear-gradient(135deg, #f8fbfd, #edf6fa);
}

.tutor-inline-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.tutor-inline-heading h3 {
    margin: 0.15rem 0 0;
}

.tutor-inline-score {
    padding: 0.45rem 0.7rem;
    border-radius: 9px;
    background: #165f8c;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 850;
    white-space: nowrap;
}

.tutor-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.tutor-ajax-message {
    min-height: 1.2rem;
    margin-top: 0.6rem;
    color: #4f6778;
    font-size: 0.8rem;
}

.tutor-ajax-message.error {
    color: #a52f2f;
}

.tutor-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1.4rem 1.55rem;
    border: 1px solid #d7e3eb;
    border-radius: 17px;
    background: linear-gradient(135deg, #fff, #eef6fa);
}

.tutor-detail-hero h1 {
    margin: 0.25rem 0;
}

.tutor-score-card {
    min-width: 180px;
    padding: 1rem;
    border-radius: 14px;
    background: #165f8c;
    color: #fff;
    text-align: center;
}

.tutor-score-card strong,
.tutor-score-card span,
.tutor-score-card small {
    display: block;
}

.tutor-score-card strong {
    font-size: 1.35rem;
}

.tutor-score-card span {
    margin-top: 0.2rem;
    font-size: 1rem;
    font-weight: 800;
}

.tutor-score-card small {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.78);
}

.tutor-summary-panel {
    margin-bottom: 1rem;
}

.tutor-summary-panel h2 {
    margin: 0.2rem 0 0.7rem;
}

.tutor-feedback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.tutor-list-card h2,
.tutor-operator-card h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.tutor-list-card ul,
.tutor-next-steps ol {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.tutor-list-card.positive {
    border-top: 4px solid #2f8f68;
}

.tutor-list-card.warning {
    border-top: 4px solid #d39232;
}

.tutor-list-card.danger {
    border-top: 4px solid #c65353;
}

.tutor-operator-card {
    border-top: 4px solid #497b9a;
}

.tutor-breakdown-panel,
.tutor-improved-answer,
.tutor-next-steps {
    margin-bottom: 1rem;
}

.tutor-breakdown-list {
    display: grid;
    gap: 0.8rem;
}

.tutor-breakdown-list > article {
    padding: 1rem;
    border: 1px solid #dce6ed;
    border-radius: 12px;
    background: #f9fbfc;
}

.tutor-breakdown-list header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.tutor-breakdown-list header span,
.tutor-breakdown-list header strong {
    display: block;
}

.tutor-breakdown-list header span {
    color: #165f8c;
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.tutor-breakdown-list header strong {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tutor-row-score {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: #e8f2f7;
    color: #164f70;
    font-weight: 850;
    white-space: nowrap;
}

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

.tutor-row-columns h3 {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
}

.tutor-row-columns ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #596b78;
    font-size: 0.82rem;
}

.tutor-improved-answer > div {
    padding: 1rem;
    border-left: 4px solid #165f8c;
    border-radius: 0 9px 9px 0;
    background: #f5f9fb;
    line-height: 1.6;
}

.tutor-book-reference {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 9px;
    background: #eef5f8;
}

.tutor-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.tutor-detail-actions form {
    margin: 0;
}

.tutor-advisory-note {
    margin-top: 1rem;
    color: #697b88;
    font-size: 0.78rem;
}

.tutor-result-link {
    display: inline-block;
    margin-top: 0.3rem;
    color: #165f8c;
    font-size: 0.75rem;
    font-weight: 800;
}

@media (max-width: 800px) {
    .tutor-mode-info,
    .tutor-detail-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .tutor-mode-state,
    .tutor-score-card {
        min-width: 0;
    }

    .tutor-feedback-grid,
    .tutor-row-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .tutor-inline-heading,
    .tutor-breakdown-list header {
        flex-direction: column;
    }

    .tutor-inline-actions,
    .tutor-detail-actions {
        flex-direction: column;
    }

    .tutor-inline-actions .button,
    .tutor-detail-actions .button,
    .tutor-detail-actions form {
        width: 100%;
    }
}

/* MBV_IHK_TUTOR_STAGE4E_END */

/* MBV_FORMULA_STAGE4F_START */
.formula-hero,.formula-entry-hero,.formula-training-hero,.formula-result-hero{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin-bottom:1rem;padding:1.5rem 1.65rem;border:1px solid #d7e3eb;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f5f9fc 65%,#e6f1f7 100%);box-shadow:0 10px 28px rgba(15,39,64,.06)}
.formula-hero h1,.formula-entry-hero h1,.formula-training-hero h1,.formula-result-hero h1{margin:.15rem 0 .5rem;font-size:clamp(2rem,4vw,3rem);line-height:1.05}.formula-hero p:last-child,.formula-training-hero p:last-child,.formula-result-hero p:last-child{max-width:760px;margin:0;color:#64748b}.formula-hero-actions,.formula-entry-actions{display:flex;align-items:stretch;gap:.7rem;flex-direction:column}.formula-main-stat,.formula-result-score{padding:1rem 1.15rem;border-radius:14px;background:#165f8c;color:#fff}.formula-main-stat strong,.formula-result-score strong{display:block;font-size:1.9rem}.formula-main-stat span,.formula-result-score span{display:block;font-weight:800}.formula-main-stat small{display:block;margin-top:.3rem;color:rgba(255,255,255,.76)}
.formula-filter{margin-bottom:1rem}.formula-filter-grid{display:grid;grid-template-columns:minmax(300px,2fr) minmax(240px,1fr);gap:1rem}.formula-filter-actions{display:flex;gap:.7rem;margin-top:1rem}.formula-results{padding:0;overflow:hidden}.formula-results-head{display:flex;align-items:end;justify-content:space-between;padding:1.1rem 1.25rem;border-bottom:1px solid #e1e9ef;background:#f8fbfd}.formula-results-head h2{margin:.1rem 0 0}.formula-results-head>span{padding:.4rem .65rem;border-radius:8px;background:#e9f2f7;color:#165f8c;font-size:.8rem;font-weight:800}.formula-entry-row{display:grid;grid-template-columns:64px minmax(0,1fr) 42px 22px;align-items:center;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid #e6edf2;color:inherit;text-decoration:none}.formula-entry-row:hover{background:#f3f8fb}.formula-entry-code{display:grid;place-items:center;height:38px;border-radius:9px;background:#165f8c;color:#fff;font-size:.72rem;font-weight:850}.formula-entry-main{min-width:0}.formula-entry-main strong{display:block;color:#0f2740}.formula-entry-main code{display:block;margin:.25rem 0;color:#165f8c;white-space:normal}.formula-entry-main small{color:#718096}.formula-entry-priority{justify-self:end;padding:.25rem .4rem;border-radius:6px;background:#edf5f9;color:#0f4f76;font-size:.75rem;font-weight:800}.formula-empty{padding:2rem;text-align:center}
.formula-page-grid,.formula-detail-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:1rem;margin-bottom:1rem}.formula-original-page img{display:block;width:100%;height:auto;border:1px solid #dbe4ea;border-radius:10px}.formula-page-register a{display:block;padding:.8rem 0;border-bottom:1px solid #e4ebf0;color:inherit;text-decoration:none}.formula-page-register a:last-child{border-bottom:0}.formula-page-register code{display:block;margin-top:.25rem;color:#165f8c;white-space:normal}.formula-source-text summary{cursor:pointer;font-weight:800}.formula-source-text pre{margin-top:1rem;white-space:pre-wrap;font-family:inherit;font-size:.85rem;line-height:1.5}.formula-display{margin-top:1rem;padding:1rem 1.15rem;border:1px solid #cfe0ea;border-radius:12px;background:#f7fbfd;color:#0f4f76;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:1.05rem;font-weight:750}.formula-display.compact{font-size:.9rem}.formula-variable-list{display:grid;gap:.55rem}.formula-variable-list article{display:grid;grid-template-columns:90px minmax(0,1fr) 110px;gap:.7rem;padding:.65rem .75rem;border:1px solid #e1e9ef;border-radius:9px}.formula-variable-list small{text-align:right;color:#64748b}.formula-warning-card{background:#fffaf0}.formula-ihk-list{display:grid;gap:.5rem}.formula-ihk-list a{display:grid;grid-template-columns:55px minmax(0,1fr) auto;align-items:center;gap:.7rem;padding:.7rem .8rem;border:1px solid #dce6ed;border-radius:10px;color:inherit;text-decoration:none}.formula-ihk-list a:hover{background:#f3f8fb}.formula-ihk-list span{font-weight:850;color:#165f8c}.formula-ihk-list small{color:#64748b}
.formula-training-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-bottom:1rem}.formula-training-stats article{padding:1rem;border:1px solid #dce6ed;border-radius:12px;background:#fff}.formula-training-stats span{display:block;color:#64748b;font-size:.78rem;font-weight:700}.formula-training-stats strong{display:block;margin-top:.2rem;font-size:1.35rem}.formula-open-sessions,.formula-start-card,.formula-history{margin-bottom:1rem}.formula-open-sessions article{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 0;border-bottom:1px solid #e4ebf0}.formula-open-sessions article:last-child{border-bottom:0}.formula-open-sessions span{display:block;margin-top:.2rem;color:#64748b;font-size:.82rem}.formula-start-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.formula-history a{display:grid;grid-template-columns:160px minmax(0,1fr) auto;gap:1rem;padding:.7rem 0;border-bottom:1px solid #e4ebf0;color:inherit;text-decoration:none}.formula-history a:last-child{border-bottom:0}.formula-history small{color:#64748b}.formula-play-head{margin-bottom:1rem}.formula-play-head h1{margin:.15rem 0 .7rem}.formula-progress{height:8px;border-radius:99px;background:#e1eaf0;overflow:hidden}.formula-progress span{display:block;height:100%;background:#165f8c}.formula-question-card h2{font-size:1.25rem;line-height:1.45}.formula-question-meta{display:flex;justify-content:space-between;color:#64748b;font-size:.78rem;font-weight:750}.formula-numeric-answer{display:flex;align-items:center;gap:.6rem;margin:1.2rem 0}.formula-numeric-answer input{width:min(340px,100%);font-size:1.15rem}.formula-numeric-answer span{font-weight:800;color:#165f8c}.formula-choice-list{display:grid;gap:.65rem;margin:1rem 0}.formula-choice-list label{cursor:pointer}.formula-choice-list label>span{display:grid;grid-template-columns:34px minmax(0,1fr);gap:.6rem;padding:.75rem;border:1px solid #dbe5ec;border-radius:10px}.formula-choice-list input{position:absolute;opacity:0}.formula-choice-list input:checked+span{border-color:#165f8c;background:#edf6fb}.formula-feedback{margin-top:1rem;padding:1rem;border-radius:12px}.formula-feedback.correct{border:1px solid #acd6b8;background:#f0fbf3}.formula-feedback.wrong{border:1px solid #e9c1b8;background:#fff6f3}.formula-feedback>strong{font-size:1.2rem}.formula-play-actions,.formula-session-controls,.formula-result-actions{display:flex;align-items:center;justify-content:space-between;gap:.7rem}.formula-session-controls,.formula-result-actions{justify-content:flex-end}.formula-result-score{text-align:center}.formula-result-list article{display:grid;grid-template-columns:42px minmax(0,1fr);gap:.8rem;padding:.9rem 0;border-bottom:1px solid #e4ebf0}.formula-result-list article>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-weight:850}.formula-result-list article.correct>span{background:#def3e4;color:#24663a}.formula-result-list article.wrong>span{background:#fae4df;color:#9b3a27}.formula-result-list article.open>span{background:#edf1f4;color:#687985}.formula-result-list p{margin:.25rem 0;color:#526373}.formula-result-list small{color:#64748b}
.formula-task-links{margin-top:1rem}.formula-task-links-grid{display:flex;flex-wrap:wrap;gap:.55rem}.formula-task-links-grid a{padding:.55rem .7rem;border:1px solid #cfe0ea;border-radius:9px;background:#f5fafc;color:#165f8c;font-size:.82rem;font-weight:800;text-decoration:none}
@media(max-width:850px){.formula-hero,.formula-entry-hero,.formula-training-hero,.formula-result-hero{align-items:stretch;flex-direction:column}.formula-page-grid,.formula-detail-grid{grid-template-columns:1fr}.formula-start-grid{grid-template-columns:1fr}.formula-variable-list article{grid-template-columns:70px minmax(0,1fr)}.formula-variable-list small{grid-column:2;text-align:left}.formula-ihk-list a{grid-template-columns:50px minmax(0,1fr)}.formula-ihk-list small{grid-column:2}}
@media(max-width:600px){.formula-filter-grid{grid-template-columns:1fr}.formula-filter-actions,.formula-result-actions{flex-direction:column}.formula-filter-actions .button,.formula-result-actions .button{width:100%}.formula-entry-row{grid-template-columns:50px minmax(0,1fr) auto;gap:.65rem;padding:.85rem 1rem}.formula-entry-priority{display:none}.formula-entry-row>span:last-child{display:none}.formula-entry-main code{font-size:.78rem}.formula-training-stats{grid-template-columns:repeat(3,1fr)}.formula-open-sessions article{align-items:flex-start;flex-direction:column}.formula-history a{grid-template-columns:1fr;gap:.2rem}.formula-play-actions{align-items:stretch;flex-direction:column}.formula-session-controls{width:100%;justify-content:space-between}.formula-session-controls>*{flex:1}.formula-session-controls .button{width:100%}}
/* MBV_FORMULA_STAGE4F_END */

/* MBV_STAGE4E2_START */
.syn-hero{display:grid;grid-template-columns:minmax(0,1fr)220px;gap:2rem;align-items:center;margin-bottom:1rem;padding:1.5rem 1.65rem;border:1px solid #d7e3eb;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f5f9fc 65%,#e6f1f7 100%)}.syn-hero h1{margin:.2rem 0 .55rem}.syn-hero p:last-child{margin:0;color:#64748b;line-height:1.55}.syn-hero-stat{padding:1.15rem;border-radius:15px;background:#165f8c;color:#fff}.syn-hero-stat strong{display:block;font-size:2rem}.syn-hero-stat span,.syn-hero-stat small{display:block;margin-top:.3rem}.syn-hero-stat small{opacity:.8}.syn-set-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.syn-set-card{display:flex;flex-direction:column}.syn-set-card h2{margin:.7rem 0 .4rem}.syn-set-card p{color:#64748b;flex:1}.syn-set-head,.syn-set-facts{display:flex;justify-content:space-between;gap:.5rem}.syn-set-head span{padding:.3rem .55rem;border-radius:7px;background:#165f8c;color:#fff;font-weight:800}.syn-set-facts{flex-wrap:wrap;margin:0 0 1rem;color:#496779;font-size:.78rem}.syn-task-list,.syn-attempt-list{display:block}.syn-task-list article,.syn-attempt-list article{display:grid;grid-template-columns:55px minmax(0,1fr) auto;gap:1rem;align-items:center;padding:.85rem 0;border-bottom:1px solid #e4ebf0}.syn-task-list article:last-child,.syn-attempt-list article:last-child{border-bottom:0}.syn-task-list small,.syn-attempt-list span{display:block;margin-top:.2rem;color:#64748b}.syn-code{display:grid;place-items:center;height:36px;border-radius:8px;background:#eaf3f8;color:#165f8c;font-weight:850}.syn-work-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1rem}.syn-work-head h1{margin:.2rem 0}.syn-timer{min-width:110px;padding:.8rem;border-radius:12px;background:#165f8c;color:#fff;text-align:center}.syn-timer strong,.syn-timer span{display:block}.syn-timer strong{font-size:1.35rem}.syn-timer.expired{background:#9b2c2c}.syn-work-grid{display:grid;grid-template-columns:minmax(0,1fr)260px;gap:1rem}.syn-task-panel>p{font-size:1.02rem;line-height:1.55}.syn-parts article{padding:.9rem 0;border-top:1px solid #e4ebf0}.syn-parts article>div{display:flex;justify-content:space-between}.syn-parts p{margin:.35rem 0 0}.syn-save-row{display:flex;justify-content:space-between;margin-top:.55rem;color:#64748b;font-size:.8rem}.syn-nav a{display:flex;gap:.6rem;align-items:center;padding:.55rem;border-radius:8px;text-decoration:none;color:inherit}.syn-nav a.current{background:#eaf3f8;color:#165f8c}.syn-nav span{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#165f8c;color:#fff}.syn-actions form+form{margin-top:.7rem}.syn-actions .button{width:100%}.syn-review-list{display:grid;gap:1rem}.syn-review-list article>header{display:flex;justify-content:space-between;gap:1rem}.syn-review-list h2{margin:.2rem 0}.syn-answer-preview,.syn-improved{white-space:pre-wrap;font-family:inherit;line-height:1.55;background:#f7fafc;padding:1rem;border-radius:10px}.syn-eval-summary{display:flex;align-items:center;gap:1rem;margin-top:1rem}.syn-eval-summary span{color:#64748b}.syn-eval-summary .button{margin-left:auto}.syn-score-hero{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-bottom:1rem}.syn-score-hero>div,.syn-result-score{padding:1.1rem;border-radius:14px;background:#165f8c;color:#fff}.syn-score-hero strong,.syn-score-hero span,.syn-result-score strong,.syn-result-score span{display:block}.syn-score-hero strong,.syn-result-score strong{font-size:1.65rem}.syn-feedback-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.syn-feedback-grid article{padding:1rem;border-radius:12px;background:#f7fafc}.syn-part-scores{display:grid;gap:.8rem}.syn-part-scores article{padding:1rem;border:1px solid #dce6ed;border-radius:12px}.syn-part-scores header{display:flex;justify-content:space-between}.syn-result-list article{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:1rem;padding:.9rem 0;border-bottom:1px solid #e4ebf0}.syn-result-list small{display:block;margin-top:.2rem;color:#64748b}.syn-result-list article>div:last-child{text-align:right}.syn-result-list a{display:block;margin-top:.2rem}.syn-final-link{margin-top:1rem;text-align:right}@media(max-width:850px){.syn-hero,.syn-work-grid{grid-template-columns:1fr}.syn-set-grid{grid-template-columns:1fr}.syn-feedback-grid{grid-template-columns:1fr}.syn-work-grid aside{order:-1}.syn-nav{display:none}}@media(max-width:600px){.syn-task-list article,.syn-attempt-list article{grid-template-columns:48px minmax(0,1fr)}.syn-task-list form,.syn-attempt-list form,.syn-attempt-list a{grid-column:2}.syn-work-head{align-items:flex-start;flex-direction:column}.syn-timer{width:100%}.syn-eval-summary{align-items:flex-start;flex-direction:column}.syn-eval-summary .button{margin-left:0;width:100%}.syn-result-list article{grid-template-columns:42px minmax(0,1fr)}.syn-result-list article>div:last-child{grid-column:2;text-align:left}.syn-score-hero{grid-template-columns:1fr}}
/* MBV_STAGE4E2_END */

/* MBV_SYNTHETIC_WORK_LAYOUT_V2_START */

.syn-work-head {
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.syn-work-head > div:first-child {
    min-width: 0;
}

.syn-work-head h1 {
    margin: 0.3rem 0 0.55rem;
    font-size: clamp(1.85rem, 3vw, 2.65rem);
    line-height: 1.08;
}

.syn-work-head > div:first-child > p:last-child {
    margin: 0;
    color: #5f7181;
}

.syn-timer {
    flex: 0 0 auto;
    min-width: 118px;
    padding: 0.9rem 1rem;
    box-shadow: 0 8px 20px rgba(22, 95, 140, 0.14);
}

.syn-work-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 1.2rem;
    align-items: start;
}

.syn-work-grid > main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.syn-work-grid > aside {
    display: grid;
    gap: 1rem;
    min-width: 0;
    position: sticky;
    top: 92px;
}

.syn-task-panel {
    padding: 1.35rem 1.45rem;
}

.syn-task-panel > p {
    margin: 0;
    color: #526879;
    font-size: 1rem;
    line-height: 1.65;
}

.syn-parts {
    margin-top: 1rem;
}

.syn-parts article {
    padding: 1rem 0;
}

.syn-parts article:first-child {
    border-top: 1px solid #e4ebf0;
}

.syn-parts article > div {
    align-items: center;
    gap: 1rem;
}

.syn-parts article > div strong {
    color: #0f2740;
    font-size: 0.95rem;
}

.syn-parts article > div span {
    flex: 0 0 auto;
    color: #526879;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.syn-parts article > p {
    color: #172c3d;
    line-height: 1.55;
}

#syn-answer-form {
    width: 100%;
}

#answer_text {
    display: block;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 420px;
    padding: 1rem 1.05rem;
    border: 1px solid #cbd9e3;
    border-radius: 11px;
    background: #ffffff;
    color: #102638;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.55;
    box-sizing: border-box;
    resize: vertical;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

#answer_text:hover {
    border-color: #9eb7c8;
}

#answer_text:focus {
    border-color: #165f8c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 95, 140, 0.13);
}

.syn-save-row {
    align-items: center;
    min-height: 24px;
    margin-top: 0.65rem;
    padding: 0 0.1rem;
}

#syn-save-state {
    font-weight: 650;
}

#syn-word-count {
    white-space: nowrap;
}

.syn-actions {
    padding: 1rem;
}

.syn-actions form {
    width: 100%;
}

.syn-actions .button {
    min-height: 44px;
    padding: 0.7rem 0.85rem;
}

.syn-nav {
    padding: 1rem;
}

.syn-nav h2 {
    margin: 0 0 0.7rem;
    font-size: 1rem;
}

.syn-nav a {
    min-height: 42px;
}

@media (max-width: 1050px) {
    .syn-work-grid {
        grid-template-columns: minmax(0, 1fr) 215px;
    }
}

@media (max-width: 850px) {
    .syn-work-grid {
        grid-template-columns: 1fr;
    }

    .syn-work-grid > aside {
        position: static;
        order: -1;
    }

    .syn-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }

    .syn-actions form + form {
        margin-top: 0;
    }

    #answer_text {
        min-height: 360px;
    }
}

@media (max-width: 600px) {
    .syn-work-head {
        align-items: stretch;
    }

    .syn-timer {
        width: auto;
    }

    .syn-task-panel {
        padding: 1.05rem;
    }

    .syn-parts article > div {
        align-items: flex-start;
    }

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

    #answer_text {
        min-height: 330px;
        padding: 0.9rem;
        font-size: 16px;
    }

    .syn-save-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* MBV_SYNTHETIC_WORK_LAYOUT_V2_END */

/* MBV_STAGE4E3_AUDIO_START */
.tutor-audio-card { margin-top: 1rem; }
.tutor-audio-heading { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.tutor-audio-heading h2 { margin:.15rem 0 .35rem; }
.tutor-audio-heading p:last-child { margin:0; color:#64748b; }
.tutor-audio-badge { flex:0 0 auto; padding:.42rem .62rem; border-radius:8px; background:#e9f3f8; color:#165f8c; font-size:.76rem; font-weight:800; }
.tutor-audio-player { width:100%; margin-top:1rem; }
.tutor-audio-meta { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.65rem; color:#64748b; font-size:.76rem; }
.tutor-audio-meta span { padding:.25rem .45rem; border-radius:6px; background:#f1f6f9; }
.tutor-audio-actions { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:1rem; }
.tutor-audio-error { margin:1rem 0; padding:.9rem; border:1px solid #efc5c5; border-radius:10px; background:#fff5f5; color:#7f1d1d; }
.tutor-audio-error p { margin:.35rem 0 0; }
@media (max-width:600px) { .tutor-audio-heading { flex-direction:column; } .tutor-audio-actions, .tutor-audio-actions form, .tutor-audio-actions .button { width:100%; } }
/* MBV_STAGE4E3_AUDIO_END */

/* MBV_STAGE5A_START */

.apl-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.apl-hero h1 {
    margin: 0.25rem 0 0.6rem;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.04;
}

.apl-hero p:last-child {
    max-width: 850px;
    margin: 0;
    color: #5f7181;
    line-height: 1.6;
}

.apl-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.apl-stat {
    display: grid;
    gap: 0.25rem;
    min-height: 110px;
    align-content: center;
}

.apl-stat strong {
    color: #0f2740;
    font-size: 2rem;
    line-height: 1;
}

.apl-stat span {
    color: #647786;
    font-size: 0.9rem;
}

.apl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

.apl-generator h2,
.apl-side h2,
.apl-topic-panel h2,
.apl-method-box h2,
.apl-schedule h2 {
    margin-top: 0;
}

.apl-generator > p {
    color: #607483;
    line-height: 1.55;
}

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

.apl-form-grid label {
    display: grid;
    gap: 0.45rem;
    color: #243b4d;
    font-weight: 700;
}

.apl-form-grid input {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #cbd9e3;
    border-radius: 9px;
    box-sizing: border-box;
    font: inherit;
}

.apl-input-suffix {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid #cbd9e3;
    border-radius: 9px;
    overflow: hidden;
}

.apl-input-suffix input {
    border: 0;
    border-radius: 0;
}

.apl-input-suffix span {
    padding: 0 0.8rem;
    color: #657a89;
    font-size: 0.85rem;
    font-weight: 600;
}

.apl-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0.25rem 0 1rem;
    color: #31495b;
}

.apl-check input {
    width: 18px;
    height: 18px;
    margin-top: 0.1rem;
}

.apl-formula {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0 1.2rem;
    padding: 1rem;
    border: 1px solid #dce7ee;
    border-radius: 11px;
    background: #f7fafc;
}

.apl-formula strong {
    width: 100%;
    color: #102b42;
}

.apl-formula span {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: #e7f1f7;
    color: #195677;
    font-size: 0.84rem;
    font-weight: 700;
}

.apl-formula small {
    width: 100%;
    color: #607483;
    line-height: 1.45;
}

.apl-side {
    display: grid;
    gap: 1rem;
}

.apl-version-card.active {
    border-color: #9bc7ad;
    box-shadow: 0 10px 28px rgba(44, 120, 74, 0.1);
}

.apl-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #edf2f5;
    color: #526777;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apl-badge.active,
.apl-version-card .apl-badge {
    background: #e0f2e6;
    color: #27663f;
}

.apl-version-card h2 {
    margin: 0.7rem 0 0.4rem;
    font-size: 1.15rem;
}

.apl-version-card p {
    color: #647786;
}

.apl-draft-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-top: 1px solid #e4ebf0;
}

.apl-draft-row div {
    display: grid;
    gap: 0.2rem;
}

.apl-draft-row span {
    color: #718391;
    font-size: 0.8rem;
}

.apl-head-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.apl-method-box {
    margin-bottom: 1rem;
}

.apl-method-box > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.apl-method-box > div span {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
    border-radius: 10px;
    background: #f4f8fa;
    color: #425b6c;
}

.apl-method-box > div strong {
    color: #165f8c;
    font-size: 1.4rem;
}

.apl-method-box p {
    margin-bottom: 0;
    color: #617483;
    line-height: 1.55;
}

.apl-topic-panel {
    margin-bottom: 1rem;
}

.apl-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.apl-section-head h2 {
    margin-bottom: 0;
}

.apl-table-wrap {
    overflow-x: auto;
}

.apl-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.apl-table th,
.apl-table td {
    padding: 0.8rem 0.7rem;
    border-top: 1px solid #e3ebf0;
    text-align: left;
    vertical-align: top;
}

.apl-table th {
    color: #617483;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.apl-table td strong,
.apl-table td small {
    display: block;
}

.apl-table td small {
    margin-top: 0.2rem;
    color: #788a97;
}

.apl-priority {
    display: inline-flex;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    background: #fff0d9;
    color: #8c5610;
    font-weight: 800;
}

.apl-schedule {
    display: grid;
    gap: 1rem;
}

.apl-week {
    padding: 0;
    overflow: hidden;
}

.apl-week > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #f1f6f9;
    border-bottom: 1px solid #dce7ed;
}

.apl-week > header div {
    display: grid;
    gap: 0.15rem;
}

.apl-week > header span {
    color: #637786;
    font-size: 0.84rem;
}

.apl-day {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    border-top: 1px solid #e7edf1;
}

.apl-day:first-of-type {
    border-top: 0;
}

.apl-day-label {
    display: grid;
    align-content: start;
    gap: 0.2rem;
    padding: 1rem 1.15rem;
    background: #fbfcfd;
}

.apl-day-label span {
    color: #758795;
    font-size: 0.82rem;
}

.apl-day-items {
    display: grid;
    gap: 0.7rem;
    padding: 0.85rem;
}

.apl-item {
    padding: 0.85rem 0.95rem;
    border: 1px solid #dce6ec;
    border-radius: 10px;
    background: #ffffff;
}

.apl-item.completed,
.apl-today-card.completed {
    border-color: #b9d9c4;
    background: #f3faf5;
}

.apl-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.apl-item-meta span {
    padding: 0.22rem 0.45rem;
    border-radius: 6px;
    background: #edf3f6;
    color: #4b6677;
    font-size: 0.75rem;
    font-weight: 700;
}

.apl-item h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.apl-item p,
.apl-today-card p {
    margin: 0;
    color: #536a7a;
    line-height: 1.5;
}

.apl-item details,
.apl-today-card details {
    margin-top: 0.65rem;
}

.apl-item summary,
.apl-today-card summary {
    cursor: pointer;
    color: #165f8c;
    font-size: 0.85rem;
    font-weight: 700;
}

.apl-item details p,
.apl-today-card details p {
    margin-top: 0.55rem;
    padding: 0.7rem;
    border-radius: 8px;
    background: #f6f9fb;
    font-size: 0.86rem;
}

.apl-danger-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

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

.apl-today-card h2 {
    margin: 0.2rem 0 0.7rem;
}

.apl-empty {
    max-width: 720px;
}

@media (max-width: 1050px) {
    .apl-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 800px) {
    .apl-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .apl-method-box > div,
    .apl-today-list {
        grid-template-columns: 1fr;
    }

    .apl-day {
        grid-template-columns: 1fr;
    }

    .apl-day-label {
        grid-template-columns: auto 1fr;
        align-items: baseline;
        gap: 0.6rem;
    }
}

@media (max-width: 600px) {
    .apl-hero,
    .apl-plan-head,
    .apl-head-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .apl-stat-grid,
    .apl-form-grid,
    .apl-side {
        grid-template-columns: 1fr;
    }

    .apl-week > header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* MBV_STAGE5A_END */
