:root {
    --blue-950: #08234d;
    --blue-900: #0b356f;
    --blue-800: #0f4c9b;
    --blue-700: #1264c7;
    --blue-600: #1976e8;
    --blue-100: #e8f2ff;
    --blue-50: #f3f8ff;
    --white: #ffffff;
    --text: #16324f;
    --muted: #657890;
    --line: #d9e7f7;
    --shadow: 0 20px 50px rgba(8, 35, 77, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 46%, #f3f8ff 100%);
    color: var(--text);
}

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

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, #2fa9ff 0%, #1976e8 34%, #0b356f 100%);
    color: var(--white);
    padding: 34px 0 72px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.hero::before {
    width: 360px;
    height: 360px;
    right: -120px;
    top: -120px;
}

.hero::after {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -90px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.12) 75%, transparent 75%, transparent);
    background-size: 26px 26px;
    opacity: 0.08;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: center;
    z-index: 1;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-logo-wrap {
    width: 178px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(8, 35, 77, 0.25);
    padding: 14px;
}

.main-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tooth-logo {
    width: 74px;
    height: 74px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tooth-logo svg {
    width: 52px;
    height: 52px;
}

.eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eyebrow.dark {
    background: var(--blue-100);
    color: var(--blue-800);
    border-color: var(--line);
}

.hero-text h1 {
    margin: 16px 0 12px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.04;
}

.hero-text p {
    max-width: 820px;
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.main-layout {
    margin-top: -38px;
    position: relative;
    z-index: 2;
}

.intro-card,
.form-card,
.result-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.intro-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    padding: 28px;
    margin-bottom: 24px;
}

.intro-card h2,
.form-card h2,
.result-card h2 {
    margin: 0 0 8px;
    color: var(--blue-950);
}

.intro-card p,
.form-card p,
.result-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--blue-50);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    font-weight: 700;
    color: var(--blue-900);
}

.step-item span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    color: var(--white);
    border-radius: 50%;
}

.survey-form {
    display: grid;
    gap: 22px;
}

.form-card {
    padding: 26px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.section-heading > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
    color: var(--white);
    font-weight: 800;
}

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

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

.form-group.wide {
    grid-column: 1 / -1;
}

label {
    font-weight: 800;
    color: var(--blue-950);
    font-size: 14px;
}

input,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 15px;
    font-size: 15px;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(25, 118, 232, 0.12);
}

small {
    color: var(--muted);
    line-height: 1.5;
}

.button-row,
.print-row {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
    margin: 4px 0 30px;
}

.primary-btn,
.secondary-btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
    box-shadow: 0 14px 28px rgba(25, 118, 232, 0.25);
}

.secondary-btn {
    color: var(--blue-900);
    background: var(--blue-100);
    border: 1px solid var(--line);
}

.result-card {
    padding: 30px;
    margin: 0 0 34px;
    border-top: 8px solid var(--blue-600);
}

.result-card.low {
    border-top-color: #1f9d72;
}

.result-card.medium {
    border-top-color: #f0a000;
}

.result-card.high {
    border-top-color: #dc3545;
}

.result-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.risk-badge {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.risk-badge.low {
    background: #e8f8f1;
    color: #12674d;
}

.risk-badge.medium {
    background: #fff4d8;
    color: #8a5a00;
}

.risk-badge.high {
    background: #ffe6ea;
    color: #9b1c2c;
}

.score-box {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
    background: var(--blue-50);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 22px;
}

.score-box div {
    display: grid;
    place-items: center;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--line);
    padding: 14px;
}

.score-box span {
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

.score-box strong {
    color: var(--blue-900);
    font-size: 34px;
    line-height: 1.1;
}

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

.summary-section,
.factor-box,
.recommendation-box {
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
}

.summary-section h3,
.factor-box h3,
.recommendation-box h3 {
    margin: 0 0 14px;
    color: var(--blue-950);
}

.summary-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.summary-section li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 10px;
}

.summary-section li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.summary-section span {
    color: var(--muted);
}

.summary-section strong {
    text-align: right;
    color: var(--blue-950);
}

.factor-box,
.recommendation-box {
    margin-top: 18px;
}

.factor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.factor-list span {
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-900);
    font-weight: 800;
    font-size: 13px;
}

.footer {
    padding: 28px 0;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 860px) {
    .hero-content,
    .intro-card,
    .form-grid,
    .summary-grid,
    .score-box {
        grid-template-columns: 1fr;
    }

    .brand-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto;
    }

    .result-header {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .hero {
        padding-bottom: 58px;
    }

    .main-logo-wrap {
        width: 140px;
        height: 120px;
    }

    .tooth-logo {
        width: 62px;
        height: 62px;
    }

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

    .form-card,
    .result-card,
    .intro-card {
        padding: 20px;
    }

    .button-row,
    .print-row {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .summary-section li {
        flex-direction: column;
        gap: 4px;
    }

    .summary-section strong {
        text-align: left;
    }
}

@media print {
    body {
        background: #ffffff;
    }

    .hero,
    .intro-card,
    .survey-form,
    .footer,
    .print-row {
        display: none !important;
    }

    .main-layout {
        margin-top: 0;
    }

    .result-card {
        box-shadow: none;
        border: 1px solid #cccccc;
        margin: 0;
    }
}

/* Revisi login, export Excel, dan tampilan responsif */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-inner strong {
    color: var(--blue-950);
    font-size: 18px;
}

.topbar-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 22px;
}

.user-chip,
.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.user-chip {
    color: var(--blue-900);
    background: var(--blue-100);
    border: 1px solid var(--line);
    padding: 9px 12px;
}

.status-pill {
    color: #12674d;
    background: #e8f8f1;
    border: 1px solid #bfe9d8;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.logout-btn,
.success-btn {
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 1px solid transparent;
}

.logout-btn {
    padding: 9px 13px;
    color: #9b1c2c;
    background: #ffe6ea;
    border-color: #ffc9d2;
}

.success-btn {
    cursor: pointer;
    padding: 14px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #1f9d72, #12674d);
    box-shadow: 0 14px 28px rgba(31, 157, 114, 0.22);
    font-size: 15px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    background:
        radial-gradient(circle at top left, rgba(47, 169, 255, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(25, 118, 232, 0.22), transparent 34%),
        linear-gradient(135deg, #f3f8ff, #ffffff 48%, #e8f2ff);
}

.login-card {
    width: min(460px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(8, 35, 77, 0.16);
    padding: 34px;
}

.login-logo-wrap {
    width: 128px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(8, 35, 77, 0.10);
    margin-bottom: 18px;
    padding: 12px;
}

.login-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.login-card h1 {
    margin: 14px 0 10px;
    color: var(--blue-950);
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.08;
}

.login-card p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-btn {
    width: 100%;
    margin-top: 4px;
}

.login-note {
    margin: 18px 0 0 !important;
    font-size: 13px;
    background: var(--blue-50);
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 12px;
}

.alert-error {
    background: #ffe6ea;
    color: #9b1c2c;
    border: 1px solid #ffc9d2;
    border-radius: 16px;
    padding: 13px 15px;
    font-weight: 800;
    margin-bottom: 16px;
}

.table-card {
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    margin-top: 18px;
}

.table-card h3 {
    margin: 0 0 14px;
    color: var(--blue-950);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.coding-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.coding-table th,
.coding-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

.coding-table th {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
    font-size: 13px;
    letter-spacing: 0.02em;
}

.coding-table td:first-child {
    font-weight: 900;
    color: var(--blue-900);
}

.coding-table tr:last-child td {
    border-bottom: 0;
}

.sticky-actions {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(217, 231, 247, 0.8);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 18px 45px rgba(8, 35, 77, 0.12);
}

@media (max-width: 860px) {
    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
    }

    .topbar-actions,
    .hero-actions {
        width: 100%;
    }

    .hero-actions .primary-btn,
    .hero-actions .success-btn {
        flex: 1;
    }
}

@media (max-width: 560px) {
    .login-card {
        padding: 24px;
        border-radius: 22px;
    }

    .login-logo-wrap {
        width: 112px;
        height: 92px;
    }

    .topbar-actions,
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .user-chip,
    .logout-btn,
    .success-btn,
    .hero-actions .primary-btn,
    .hero-actions .success-btn {
        width: 100%;
    }

    .sticky-actions {
        position: static;
        padding: 0;
        box-shadow: none;
        border: 0;
        background: transparent;
        backdrop-filter: none;
    }
}

@media print {
    .topbar,
    .success-btn,
    .sticky-actions {
        display: none !important;
    }
}

/* Revisi 2: login lebih cantik, logo tetap proporsional, dan survey dibuat bertahap */
.login-page {
    place-items: center;
    padding: 32px 16px;
    background:
        radial-gradient(circle at 15% 12%, rgba(47, 169, 255, 0.30), transparent 28%),
        radial-gradient(circle at 88% 80%, rgba(31, 157, 114, 0.20), transparent 32%),
        linear-gradient(135deg, #eef7ff 0%, #ffffff 48%, #e8f2ff 100%);
}

.login-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(217, 231, 247, 0.92);
    box-shadow: 0 34px 90px rgba(8, 35, 77, 0.18);
}

.login-visual {
    min-height: 560px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 42px;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(8, 35, 77, 0.92), rgba(18, 100, 199, 0.86)),
        radial-gradient(circle at top right, #2fa9ff, transparent 36%),
        linear-gradient(135deg, var(--blue-900), var(--blue-600));
}

.login-visual::before,
.login-visual::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.login-visual::before {
    width: 250px;
    height: 250px;
    top: -72px;
    right: -62px;
}

.login-visual::after {
    width: 140px;
    height: 140px;
    left: 36px;
    top: 62px;
}

.login-visual-content {
    position: relative;
    z-index: 1;
}

.eyebrow.light {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
}

.login-visual h1 {
    margin: 18px 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.04;
    max-width: 560px;
}

.login-visual p {
    margin: 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.7;
}

.login-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.login-feature-grid div {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.login-feature-grid strong {
    font-size: 24px;
    line-height: 1;
}

.login-feature-grid span {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
}

.login-card {
    width: 100%;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 44px;
    background: rgba(255, 255, 255, 0.98);
}

.login-logo-wrap.compact-logo {
    width: 86px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 18px;
    padding: 9px;
}

.login-logo {
    width: auto;
    height: auto;
    max-width: 68px;
    max-height: 54px;
}

.login-card h2 {
    margin: 14px 0 8px;
    color: var(--blue-950);
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.12;
}

.login-subtitle {
    margin-bottom: 22px !important;
}

.login-form input {
    min-height: 50px;
}

.login-btn {
    min-height: 52px;
}

.wizard-progress {
    position: sticky;
    top: 76px;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(217, 231, 247, 0.92);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(8, 35, 77, 0.10);
    backdrop-filter: blur(12px);
}

.wizard-step {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--blue-900);
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.wizard-step:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(8, 35, 77, 0.08);
}

.wizard-step span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--blue-100);
    color: var(--blue-900);
}

.wizard-step.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
    box-shadow: 0 14px 28px rgba(25, 118, 232, 0.20);
}

.wizard-step.active span {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.wizard-step.done {
    border-color: #bfe9d8;
    background: #e8f8f1;
    color: #12674d;
}

.wizard-step.done span {
    background: #12674d;
    color: #ffffff;
}

.survey-step[hidden] {
    display: none !important;
}

.survey-step.active {
    animation: stepFade 0.22s ease;
}

@keyframes stepFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-actions {
    justify-content: space-between;
}

.wizard-actions .primary-btn,
.wizard-actions .secondary-btn {
    min-width: 150px;
}

.wizard-actions button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .login-visual {
        min-height: auto;
        padding: 34px;
    }

    .login-card {
        min-height: auto;
        padding: 34px;
    }

    .login-feature-grid {
        grid-template-columns: 1fr;
    }

    .wizard-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        top: 98px;
    }
}

@media (max-width: 560px) {
    .login-page {
        padding: 18px 12px;
    }

    .login-shell {
        border-radius: 24px;
    }

    .login-visual {
        padding: 26px;
    }

    .login-card {
        padding: 26px;
    }

    .login-logo-wrap.compact-logo {
        width: 78px;
        height: 64px;
    }

    .login-logo {
        max-width: 58px;
        max-height: 46px;
    }

    .wizard-progress {
        position: static;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
        border-radius: 20px;
    }

    .wizard-step {
        justify-content: flex-start;
        min-height: 52px;
        padding: 0 12px;
    }

    .wizard-actions {
        gap: 10px;
    }

    .wizard-actions .primary-btn,
    .wizard-actions .secondary-btn {
        min-width: 100%;
    }
}

/* Revisi 3: paksa tampilan login tetap rapi dan logo tidak membesar */
.login-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid #d9e7f7;
    box-shadow: 0 30px 85px rgba(8, 35, 77, 0.18);
}

.login-card {
    width: 100%;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px;
    background: #ffffff;
}

.login-logo-wrap.compact-logo {
    width: 82px !important;
    height: 70px !important;
    max-width: 82px !important;
    max-height: 70px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-logo-wrap.compact-logo .login-logo,
img.login-logo {
    width: auto !important;
    height: auto !important;
    max-width: 62px !important;
    max-height: 50px !important;
    object-fit: contain !important;
    display: block !important;
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .login-card {
        min-height: auto;
        padding: 34px;
    }
}

@media (max-width: 560px) {
    .login-logo-wrap.compact-logo {
        width: 74px !important;
        height: 62px !important;
    }

    .login-logo-wrap.compact-logo .login-logo,
    img.login-logo {
        max-width: 54px !important;
        max-height: 44px !important;
    }
}

/* Revisi 4: rekomendasi risiko dan tombol PDF */
.recommendation-list {
    margin: 14px 0 16px;
    padding-left: 22px;
    display: grid;
    gap: 8px;
    color: var(--text);
    line-height: 1.65;
}

.recommendation-list li::marker {
    color: var(--blue-800);
    font-weight: 900;
}
