/* Portal OPD — CSS murni tanpa build step (aman untuk deployment cPanel). */
:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --border: #dde3ea;
    --border-strong: #c4ccd6;
    --text: #1b2430;
    --text-muted: #5b6776;
    --accent: #06508c;
    --accent-hover: #043c69;
    --accent-soft: #e6eff8;
    --warning: #b45309;
    --warning-bg: #fff4e5;
    --warning-border: #f5a524;
    --success: #15803d;
    --success-bg: #eaf7ef;
    --neutral-bg: #eef1f4;
    --error: #b42318;
    --error-bg: #fdecea;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; }
a { color: var(--accent); }
abbr { text-decoration: none; cursor: help; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 20px; padding-bottom: 32px; }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.15em; }

/* Topbar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__logo { display: block; height: 40px; width: auto; flex-shrink: 0; }
.brand__title { display: block; font-weight: 800; letter-spacing: .06em; color: var(--accent); }
.brand__subtitle { display: block; font-size: .8rem; color: var(--text-muted); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Elemen pemicu permintaan diberi atribut data-loading oleh Livewire 4 (dan script form di layout). */
.btn[data-loading], .link-button[data-loading], .user-chip[data-loading] { cursor: progress; opacity: .75; }
.btn[data-loading]::before, .ind-item[data-loading]::after {
    content: ''; width: 1em; height: 1em; flex-shrink: 0; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.ind-item[data-loading] { cursor: progress; }
.ind-item[data-loading]::after { margin-left: auto; align-self: center; color: var(--accent); }
input[data-loading], textarea[data-loading], select[data-loading] {
    background-image: linear-gradient(90deg, transparent, rgba(6, 80, 140, .12), transparent);
    background-size: 40% 100%; background-repeat: no-repeat; animation: busy-slide 1s ease-in-out infinite;
}
.is-loading { opacity: .5; pointer-events: none; transition: opacity .15s .15s; }

.topbar__right { display: flex; align-items: center; gap: 10px; }
.help-link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 99px;
    color: var(--accent); font-weight: 600; font-size: .92rem; text-decoration: none;
}
.help-link:hover { background: var(--accent-soft); }
.help-link .icon { width: 1.25em; height: 1.25em; }

/* Popup Bantuan */
.help-intro { margin: 0 0 14px; color: var(--text-muted); font-size: .92rem; }
.help-contact { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.help-contact__avatar {
    display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.help-contact__body { min-width: 0; flex: 1; }
.help-contact__name { font-weight: 700; }
.help-contact__role { font-size: .85rem; color: var(--accent); font-weight: 600; }
.help-contact__note { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.help-contact__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.help-contact__actions .btn { white-space: normal; text-align: left; }
.btn--wa { background: #1f9d55; color: #fff; }
.btn--wa:hover { background: #17824a; }
.help-empty { padding: 24px 16px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }

/* Menu instansi di navbar */
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-chip {
    display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; min-height: 44px; max-width: 360px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 99px; font: inherit; color: var(--text);
    cursor: pointer; text-align: left;
}
.user-chip:hover { border-color: var(--accent); }
.user-chip__avatar {
    display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem;
}
.user-chip__text { min-width: 0; }
.user-chip__name, .user-chip__sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip__name { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.user-chip__sub { font-size: .75rem; color: var(--text-muted); }
.user-chip__icon { color: var(--text-muted); }

/* Popup */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); }
.modal__dialog {
    position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--surface); border-radius: 14px; box-shadow: 0 20px 50px rgba(16, 24, 40, .25); padding: 20px 22px;
}
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal__head h2 { margin: 0; }
.modal__close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text-muted); width: 40px; height: 40px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.profile-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.field__label { font-size: .85rem; font-weight: 600; }
.field input {
    min-height: var(--tap); padding: 8px 10px; font: inherit; border-radius: 6px; border: 1px solid var(--border-strong);
}
.field__help { display: flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--text-muted); }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 200px; }
.field--readonly { padding: 12px; background: var(--neutral-bg); border-radius: 8px; }
.token-readonly { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }

.site-footer { color: var(--text-muted); font-size: .875rem; padding-bottom: 120px; }

.eyebrow { margin: 0 0 4px; color: var(--text-muted); font-weight: 600; font-size: .9rem; }
.lead { color: var(--text-muted); font-size: 1.02rem; margin: 0 0 20px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.period-switch select {
    min-height: 32px; padding: 2px 30px 2px 12px; border-radius: 99px; border: 1px solid var(--border-strong);
    background: var(--surface); font: inherit; font-size: .85rem; font-weight: 600; color: var(--text); cursor: pointer;
}

/* Chips, tag, banner */
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
    font-size: .85rem; font-weight: 500; border: 1px solid transparent; white-space: nowrap;
}
.chip--sm { font-size: .75rem; padding: 2px 8px; }
.chip--info { background: var(--accent-soft); color: var(--accent); }
.chip--neutral { background: var(--neutral-bg); color: var(--text-muted); }
.chip--attention { background: var(--warning-bg); color: var(--warning); border-color: #fcd9a6; }
.chip--success { background: var(--success-bg); color: var(--success); }
.tag { background: var(--neutral-bg); border-radius: 4px; padding: 0 6px; font-size: .75rem; font-weight: 600; color: var(--text-muted); }

.banner {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius);
    margin-bottom: 14px; border: 1px solid; text-align: left;
}
.banner .icon { width: 1.4em; height: 1.4em; }
.banner--dismissible { position: relative; overflow: hidden; padding-right: 8px; }
.banner__close {
    flex: none; align-self: flex-start; width: 36px; height: 36px; margin: -6px 0 -6px 4px; border: 0; border-radius: 8px;
    background: none; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .7;
}
.banner__close:hover, .banner__close:focus-visible { opacity: 1; background: rgba(0, 0, 0, .06); }
/* Bilah tipis di bawah banner yang menyusut sampai banner hilang; berhenti saat kursor di atas banner. */
.banner__timer {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: currentColor; opacity: .25;
    transform-origin: left; animation: banner-timer linear forwards;
}
.banner--dismissible:hover .banner__timer, .banner--dismissible:focus-within .banner__timer { animation-play-state: paused; }
@keyframes banner-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .banner__timer { display: none; } }
.banner__body { flex: 1; }
.banner--attention { background: var(--warning-bg); border-color: #fcd9a6; color: #7a3a06; }
.banner--success { background: var(--success-bg); border-color: #b7e4c7; color: #125c2e; }
.banner--neutral { background: var(--neutral-bg); border-color: var(--border); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap);
    padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600;
    cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { min-height: 48px; padding: 0 24px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link-button {
    background: none; border: 0; padding: 4px 0; font: inherit; font-size: .9rem; color: var(--accent);
    text-decoration: underline; cursor: pointer; min-height: 32px;
}
.btn:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
    outline: 3px solid rgba(6, 80, 140, .35); outline-offset: 2px;
}

/* Halaman token */
.token-page { display: flex; justify-content: center; padding: 24px 0 48px; }
.token-card {
    width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow); padding: 32px 28px; text-align: center;
}
.token-card__logo { display: block; height: 120px; width: auto; margin: 0 auto 8px; }
.token-card__brand { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.token-card__tagline { margin: 0 0 20px; font-size: .9rem; color: var(--text-muted); }
.token-card h1 { font-size: 1.25rem; }
.token-form { text-align: left; }
.token-form__label { display: block; font-weight: 600; margin-bottom: 6px; }
.token-input {
    width: 100%; min-height: 56px; padding: 0 16px; font: inherit; font-size: 1.3rem; font-weight: 600;
    letter-spacing: .12em; text-align: center; text-transform: uppercase; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    border: 2px solid var(--border-strong); border-radius: 10px; margin-bottom: 12px; color: var(--text);
}
.token-input::placeholder { color: #b3bcc6; letter-spacing: .08em; }
.token-input:focus { border-color: var(--accent); outline: none; }
.token-error {
    display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 12px; color: var(--error);
    font-size: .9rem; font-weight: 500;
}
.token-error .icon { margin-top: 2px; }
.token-help { text-align: left; margin: 20px 0 0; padding: 16px 0 0 18px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .88rem; }
.token-help li { margin-bottom: 6px; }
.token-continue {
    display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 10px;
    background: var(--accent-soft); text-align: left;
}
.token-continue__opd { font-weight: 700; }
.token-continue__meta { font-size: .88rem; color: var(--text-muted); }
.token-switch { margin-top: 12px; }

/* Workspace */
.ws-header {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px;
}
.ws-header__side { display: flex; align-items: flex-end; gap: 16px; }
/* Kendali utama halaman isian: ganti periode & unggah Excel, tepat di bawah judul. */
.ws-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 12px; }
.ws-period { display: flex; flex-direction: column; gap: 4px; }
.ws-period__label { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.ws-period select {
    min-height: var(--tap); min-width: 210px; padding: 0 36px 0 14px; border-radius: 8px; border: 1px solid var(--border-strong);
    background-color: var(--surface); font: inherit; font-weight: 700; color: var(--text); cursor: pointer; box-shadow: var(--shadow);
}
.ws-period select:hover { border-color: var(--accent); }
.ws-period select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ws-actions .btn--excel { min-height: var(--tap); padding: 0 18px; font-size: .95rem; font-weight: 700; }
/* Keadaan periode: tenggat + progres dalam satu baris tipis. */
.ws-status {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 16px; padding: 10px 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.ws-status__progress { display: flex; flex: 1 1 320px; align-items: center; gap: 12px; min-width: 0; }
.ws-status__progress .progress { flex: 1 1 120px; margin-top: 0; }
.ws-status__numbers { white-space: nowrap; }
.ws-status__numbers strong { font-size: 1.15rem; }
.ws-status__sub { font-size: .85rem; color: var(--text-muted); white-space: nowrap; }
.progress-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px 16px; min-width: 260px; box-shadow: var(--shadow);
}
.progress-card__numbers strong { font-size: 1.3rem; }
.progress-card__sub { font-size: .82rem; color: var(--text-muted); margin-top: 6px; }
.progress { height: 8px; background: var(--neutral-bg); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.progress__bar { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.saved { color: var(--success); }

.ws-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }

.ws-sidebar {
    position: sticky; top: 12px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); max-height: calc(100vh - 140px); display: flex; flex-direction: column;
}
.ws-sidebar__head {
    display: flex; justify-content: space-between; align-items: center; padding: 12px 14px;
    border-bottom: 1px solid var(--border); font-weight: 700; font-size: .85rem; text-transform: uppercase;
    letter-spacing: .03em; color: var(--text-muted);
}
.ws-sidebar__count { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--accent); }
.ind-list { overflow-y: auto; padding: 6px; }
.ind-item {
    display: flex; width: 100%; gap: 10px; align-items: flex-start; padding: 10px; margin-bottom: 2px;
    background: none; border: 1px solid transparent; border-radius: 8px; font: inherit; text-align: left;
    color: var(--text); cursor: pointer; min-height: var(--tap);
}
.ind-item:hover { background: #f6f8fb; }
.ind-item.is-active { background: var(--accent-soft); border-color: #bcd6f2; }
.ind-item__status { margin-top: 2px; }
.ind-item__status .icon { width: 1.15em; height: 1.15em; }
.ind-item__body { min-width: 0; }
.ind-item__name { display: block; font-weight: 600; font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; }
.ind-item__meta { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.st--attention { color: var(--warning); }
.st--success { color: var(--success); }
.st--info { color: var(--accent); }
.st--neutral { color: #9aa4af; }

.ws-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.card__head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.card__head h2 { margin-bottom: 2px; }
.card__sub { margin: 4px 0 0; font-size: .86rem; color: var(--text-muted); }

/* Series */
.series-summary { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.series-summary__item { display: flex; flex-direction: column; min-width: 110px; }
.series-summary__label { font-size: .75rem; color: var(--text-muted); }
.series-summary__item strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.series-summary__change { font-size: .78rem; font-weight: 600; }
.series-range { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.series-chart { display: block; width: 100%; height: auto; }
.series-grid { stroke: #e7ebf0; stroke-width: 1; }
.series-axis { fill: #6b7683; font-size: 12.5px; }
.series-axis--current { fill: var(--accent); font-weight: 700; }
.series-band { fill: #f2f7fd; }
.series-band__label { fill: var(--accent); font-size: 12.5px; font-weight: 700; }
.series-line { fill: none; stroke: #7b8fa6; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.series-line--current { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 4; }
.series-dot { fill: #fff; stroke: #7b8fa6; stroke-width: 2; }
.series-dot--current { fill: var(--accent); stroke: #fff; }
.series-dot--warning { fill: var(--warning-border); stroke: var(--warning); stroke-width: 2.5; }
.series-empty { padding: 36px 12px; text-align: center; color: var(--text-muted); background: #fafbfc; border-radius: 8px; }
.series-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.lg--history { background: #fff; border: 2px solid #7b8fa6; }
.lg--current { background: var(--accent); }
.lg--warning { background: var(--warning-border); border: 2px solid var(--warning); }
/* Pembanding: setahun lalu (ungu) & periode sebelumnya (hijau toska), sama dengan kolom pembanding di tabel. */
.lg--year { background: transparent; border: 2px solid #7c3aed; box-shadow: inset 0 0 0 2px #fff; }
.lg--prev { background: transparent; border: 2px solid #0e7490; box-shadow: inset 0 0 0 2px #fff; }
.cmp-ring { fill: none; stroke-width: 2; }
.cmp-ring--year { stroke: #7c3aed; }
.cmp-ring--prev { stroke: #0e7490; }
.cmp-mark { font-size: 12px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.cmp-mark--year { fill: #6d28d9; }
.cmp-mark--prev { fill: #0e7490; }
.chart-tip__role { font-size: .78rem; font-weight: 700; color: #6d28d9; }

/* Tabel isian */
.entry-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.entry-table th, .entry-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.entry-table thead th {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted);
    background: #f9fafb; border-bottom: 1px solid var(--border);
}
.entry-table tbody th { font-weight: 600; white-space: nowrap; }
/* Baris isian rata atas: ketiga kotak angka selalu sejajar, keterangan (naik/turun, tanda koreksi) mengalir di bawahnya. */
.entry-table tbody th, .entry-table tbody td { vertical-align: top; }
.entry-table tbody .ind-cell { padding-top: 14px; }
.entry-table tbody .cmp-value { display: flex; align-items: center; justify-content: flex-end; min-height: var(--tap); }
.entry-table .num { text-align: right; }
.entry-table__input { width: 28%; min-width: 170px; }
.entry-table tr.is-total th, .entry-table tr.is-total td { border-bottom: 0; background: #fbfcfe; }
.cmp-value { display: block; }
.cmp-change { display: block; margin-top: 2px; }
/* Kolom pembanding: angka periode lalu yang langsung bisa dikoreksi. Tampil lebih tenang dari kotak isian
   triwulan berjalan, dan tidak pernah ikut berwarna peringatan (peringatan milik angka triwulan berjalan). */
.entry-table tr .num-input.num-input--cmp {
    min-width: 120px; background: #f8fafc; border: 1px solid var(--border); color: #374151; font-size: 1rem;
}
.entry-table tr .num-input.num-input--cmp:hover { border-color: var(--border-strong); }
.entry-table tr .num-input.num-input--cmp:focus { background: #fff; border-color: var(--accent); }
.entry-table tr .num-input.num-input--cmp.is-changed { background: var(--accent-soft); border-color: var(--accent); color: var(--text); font-weight: 600; }
.entry-table tr .num-input.num-input--cmp[aria-invalid="true"] { border: 2px solid var(--error); background: var(--error-bg); }
.cmp-fix__bar { display: flex; flex-wrap: wrap; gap: 2px 8px; justify-content: flex-end; align-items: center; margin-top: 4px; }
.cmp-fix__bar .cmp-label { display: inline; }
.cmp-fix__btn {
    display: inline-flex; align-items: center; min-height: 28px; padding: 0 4px; background: none; border: 0;
    font: inherit; font-size: .78rem; font-weight: 600; color: var(--accent); cursor: pointer; border-radius: 4px;
}
.cmp-fix__btn:hover { text-decoration: underline; }
.cmp-fix__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Naik/turun angka triwulan berjalan, tepat di bawah kotak isiannya */
.cur-change { margin-top: 4px; }
.cur-change__list { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.cur-change .hint { font-size: .8rem; white-space: nowrap; }
.th-current { color: var(--accent) !important; }
.ind-cell { white-space: normal !important; min-width: 180px; }
.ind-cell__name { display: block; font-weight: 700; line-height: 1.3; }
.th-sub { display: block; font-size: .68rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.grid-card { scroll-margin-top: 12px; }
.entry-head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.entry-head h2 { margin-bottom: 4px; }
.cell-status { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
.cell-status .icon { width: .9em; height: .9em; }
.howto { margin-top: 12px; font-size: .88rem; color: var(--text-muted); }
.howto summary {
    cursor: pointer; font-weight: 600; color: var(--accent); min-height: 36px; display: inline-flex; align-items: center; gap: 8px;
    padding: 0 14px; border: 1px solid var(--accent); border-radius: 99px; background: var(--accent-soft); list-style: none; user-select: none;
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary:hover { background: var(--surface); }
.howto summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.howto summary .icon { width: 1.05em; height: 1.05em; }
.howto__chevron { font-size: .8rem; transition: transform .15s; }
.howto[open] .howto__chevron { transform: rotate(180deg); }
.howto__open, .howto[open] .howto__closed { display: none; }
.howto[open] .howto__open { display: inline; }
.howto[open] ul { padding: 10px 14px 10px 32px; background: var(--neutral-bg); border-radius: 8px; color: var(--text); }
.howto ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.autosave { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-muted); }
.autosave .icon { color: var(--success); width: 1em; height: 1em; }
.series-summary__item--current strong { color: var(--accent); }
.cmp-label { display: block; font-size: .75rem; color: var(--text-muted); font-weight: 400; }

.num-input {
    width: 100%; min-height: var(--tap); padding: 8px 12px; text-align: right;
    font: inherit; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--text);
    background: #fff; border: 1px solid var(--border-strong); border-radius: 6px;
}
.num-input::placeholder { color: #a0a9b4; font-size: .85rem; }
.num-readonly {
    min-height: var(--tap); padding: 10px 12px; text-align: right; font-variant-numeric: tabular-nums;
    background: #f3f4f6; border-radius: 6px; color: #374151;
}
/* Isian teks baca-saja (mis. Instansi di form surat): tampilannya seperti kotak terkunci, tetapi rata kiri. */
.num-readonly.field__readonly { text-align: left; font-variant-numeric: normal; }
.num-readonly--total { background: var(--accent-soft); color: var(--text); font-weight: 700; }
[x-cloak] { display: none !important; }
tr.is-warning .num-input { background: var(--warning-bg); border: 2px solid var(--warning-border); }
tr.is-warning { background: #fffaf2; }
tr.is-warning.live-normal { background: transparent; }
tr.is-warning.live-normal .num-input { background: #fff; border: 1px solid var(--border-strong); }
tr.is-new .num-input { background: #fafbfc; }
tr.is-error .num-input { border: 2px solid var(--error); background: var(--error-bg); }

.hint { color: var(--text-muted); display: inline-flex; gap: 4px; align-items: center; font-size: .85rem; }
.hint--warning { color: var(--warning); font-weight: 700; }
.hint--error { display: flex; color: var(--error); font-weight: 600; font-size: .8rem; margin-top: 4px; justify-content: flex-end; }

.row-note { margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: #fafbfc; border: 1px solid var(--border); }
.row-note--warning { background: var(--warning-bg); border-color: #fcd9a6; }
.row-note--clarify { display: flex; gap: 10px; align-items: flex-start; background: var(--warning-bg); border-color: #fcd9a6; color: #7a3a06; margin: 0 0 12px; }
.row-note__label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; }
.row-note__help { margin: 4px 0 8px; font-size: .85rem; color: var(--text-muted); }
.row-note__text { margin: 4px 0 0; white-space: pre-line; }
.row-note textarea {
    width: 100%; font: inherit; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border-strong);
    resize: vertical; min-height: 64px; background: #fff;
}
.needed { font-size: .75rem; font-weight: 700; color: var(--warning); background: #fff; border-radius: 99px; padding: 1px 8px; border: 1px solid #fcd9a6; }
.grid-card__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.grid-card__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.btn--save { background: var(--accent-soft); color: var(--accent); border-color: #bcd6f2; }
.btn--save:hover:not(:disabled) { background: #d8e8f8; }
.saved-notice { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--success); }

/* Bilah kirim */
.submit-bar {
    position: sticky; bottom: 0; z-index: 5; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px;
    align-items: flex-end; justify-content: space-between; padding: 14px 16px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 -4px 16px rgba(16, 24, 40, .08);
}
.submit-bar__summary { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; font-size: .9rem; color: var(--text-muted); }
.submit-bar__summary strong { color: var(--text); font-size: 1rem; }
.submit-bar__target { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--accent); }

/* Pengajuan perubahan data (periode ditutup) */
.row-note--request { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.row-note--request > .icon { flex: none; width: 1.3em; height: 1.3em; margin-top: 1px; }
.row-note--info { background: var(--accent-soft); border-color: #bcd6f2; color: #0b3a63; }
.row-note--open { background: var(--warning-bg); border-color: #fcd9a6; color: #7a3a06; }
.row-note--done { background: var(--success-bg); border-color: #b7e4c7; color: #125c2e; }
.row-note__meta { display: block; margin-top: 4px; font-size: .88rem; }
.row-note__action { margin-top: 8px; }
.check-list { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; padding: 4px; border: 1px solid var(--border); border-radius: 8px; }
/* flex-shrink: 0 — tanpa ini baris-baris menyusut (daftar dibatasi max-height) dan teksnya saling tumpang tindih. */
.check-item { display: flex; flex-shrink: 0; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 6px; cursor: pointer; min-height: var(--tap); line-height: 1.35; }
.check-item > span { min-width: 0; overflow-wrap: anywhere; }
.check-item:hover { background: var(--neutral-bg); }
.check-item input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.check-item .cmp-label { display: block; margin-top: 2px; }
.check-item.is-disabled { cursor: not-allowed; color: var(--text-muted); }
.field textarea { padding: 8px 10px; font: inherit; border-radius: 6px; border: 1px solid var(--border-strong); resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.text-warning { color: var(--warning) !important; }
.text-error { color: var(--error); font-size: .85rem; font-weight: 600; }
[aria-invalid="true"] { border-color: var(--error) !important; }

/* Perjalanan periode: langkah 1 (isi & kirim data) → langkah 2 (surat pimpinan), dihubungkan garis. */
.ws-steps { display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; }
.ws-steps__line { flex: 1 1 24px; min-width: 16px; max-width: 120px; height: 3px; border-radius: 2px; background: var(--border); }
.ws-steps__line.is-done { background: var(--success); }
.ws-step {
    display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; min-height: var(--tap); min-width: 0;
    border: 1px solid transparent; border-radius: 999px; text-decoration: none; color: var(--text);
}
.ws-step:hover { background: var(--neutral-bg); }
.ws-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Halaman yang sedang dibuka */
.ws-step.is-active { background: var(--surface); border-color: var(--border-strong); box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.ws-step__dot {
    display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    font-size: .9rem; font-weight: 700; background: var(--neutral-bg); color: var(--text-muted);
}
.ws-step__dot .icon { width: 1em; height: 1em; }
.ws-step__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; line-height: 1.3; }
.ws-step__title { font-weight: 700; white-space: nowrap; }
.ws-step__status { font-size: .78rem; color: var(--text-muted); }
.ws-step--now .ws-step__dot { background: var(--accent); color: #fff; }
.ws-step--now .ws-step__status { color: var(--accent); font-weight: 600; }
.ws-step--wait .ws-step__dot { background: var(--accent-soft); color: var(--accent); }
.ws-step--done .ws-step__dot { background: var(--success); color: #fff; }
.ws-step--done .ws-step__status { color: var(--success); font-weight: 600; }
.ws-step--next .ws-step__title { color: var(--text-muted); font-weight: 600; }

/* Identitas pengisi (ditanya sekali, tampil ringkas sesudahnya) */
.identity { display: flex; flex-direction: column; gap: 6px; }
.identity__summary {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px;
    background: var(--neutral-bg); font-size: .92rem;
}
.identity__summary > .icon { color: var(--text-muted); }
.identity__summary .link-button { margin-left: auto; }

/* Layar konfirmasi kirim */
.modal__dialog > .field, .modal__dialog > .identity, .modal__dialog > .not-ready { margin-bottom: 14px; }
.not-ready { display: flex; flex-direction: column; gap: 6px; }
.not-ready .field__label { margin: 0; }
.not-ready__item {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
    background: var(--warning-bg); border: 1px solid #fcd9a6; color: #7a3a06;
}
.not-ready__item > span { flex: 1; min-width: 0; }
/* Rincian berisi beberapa variabel (mis. Produksi & Harga) */
.ind-list__section {
    margin: 14px 4px 6px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted);
}
.ind-list__section:first-child { margin-top: 2px; }
.ind-item__vars { display: block; font-size: .75rem; color: var(--text-muted); margin-top: 1px; }
.entry-table tr.is-group-start > * { border-top: 2px solid var(--border-strong); }
.trend-section { display: flex; flex-direction: column; gap: 10px; }
.trend-section.is-loading { opacity: .55; }
.trend-section__head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.trend-section__head h2 { margin: 0; font-size: 1.05rem; }
.trend-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.trend-grid--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trend-grid--multi .series-summary { flex-wrap: wrap; }
.series-card h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.series-card__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Perbesar grafik */
.series-card { position: relative; }
.series-card > .card__head { padding-right: 40px; }
/* Tombol ikon di pojok kanan atas kartu grafik. */
.chart-zoom__btn {
    position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
    border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-muted); cursor: pointer;
}
.chart-zoom__btn:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chart-zoom__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chart-zoom__btn .icon { width: 16px; height: 16px; }
.series-chart--clickable { cursor: zoom-in; }
.chart-modal__dialog { max-width: 1040px; }
.chart-modal__dialog .modal__head { align-items: flex-start; }
.chart-modal__dialog .modal__head .card__sub { margin: 2px 0 0; }
.chart-modal__bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.chart-modal__toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--neutral-bg); }
.chart-modal__toggle button { border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 16px; border-radius: 99px; color: var(--text-muted); cursor: pointer; min-height: 32px; }
.chart-modal__toggle button.is-active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.chart-modal__body { position: relative; }
.chart-modal__table { max-height: 60vh; overflow: auto; }
.series-chart--zoom { min-height: 320px; }
.chart-hit { fill: transparent; cursor: crosshair; outline: none; }
.chart-hit:focus-visible { fill: var(--accent-soft); }
.chart-crosshair { stroke: #9aa4af; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.chart-tip {
    position: absolute; top: 8px; z-index: 2; min-width: 190px; max-width: 280px; padding: 10px 12px; pointer-events: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, .16); font-size: .85rem;
}
.chart-tip__label { font-weight: 700; margin-bottom: 2px; }
.chart-tip__value { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.chart-tip__delta { color: var(--text-muted); }
.chart-tip__warn { margin-top: 4px; color: var(--warning); font-weight: 600; }
@media (max-width: 1100px) {
    .trend-grid--multi { grid-template-columns: minmax(0, 1fr); }
}

/* Unggah dari Excel */
.excel-import { display: contents; }
/* Sejajar dengan pil triwulan & tenggat di header; hijau agar menonjol sebagai jalan pintas isian. */
.btn--excel {
    min-height: 32px; padding: 2px 14px; border-radius: 99px; font-size: .85rem; gap: 6px;
    background: var(--success); color: #fff; border-color: var(--success);
}
.btn--excel:hover { background: #116632; border-color: #116632; }
.btn--excel:focus-visible { outline: 2px solid var(--success); outline-offset: 2px; }
.btn--excel .icon { width: 1.05em; height: 1.05em; }
.modal__dialog--wide { max-width: 720px; }
.steps--compact { gap: 18px; }
.steps--compact li.is-done::before { content: "✓"; background: var(--success-bg); color: var(--success); }
.steps--compact .dropzone { width: 100%; }
.import-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.import-list { width: 100%; font-size: .88rem; }
.import-list summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 32px; display: inline-flex; align-items: center; }
.import-list ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.import-list--error { padding: 10px 12px; border-radius: 8px; background: var(--warning-bg); border: 1px solid #fcd9a6; color: #7a3a06; }
.import-list--error .field__label { margin: 0; }
.import-cell { font-family: ui-monospace, Consolas, monospace; font-weight: 700; margin-right: 4px; }
.import-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.import-table th, .import-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; font-weight: 400; }
.import-table thead th { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.import-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Tanda catatan fenomena kosong di sidebar */
.note-alert {
    display: flex; align-items: center; gap: 8px; width: calc(100% - 16px); margin: 0 8px 8px; padding: 8px 10px; min-height: var(--tap);
    border-radius: 8px; border: 1px solid #fcd9a6; background: var(--warning-bg); color: #7a3a06; font: inherit; font-size: .85rem; text-align: left; cursor: pointer;
}
.note-alert:hover { border-color: var(--warning); }
.note-alert > span:nth-child(2) { flex: 1; }
.ind-item__flag { margin-top: 4px; }

.letter-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; font-size: .9rem; border: 1px solid transparent; }
.letter-check > span { flex: 1; min-width: 0; }
.letter-check .cmp-label { display: block; }
.letter-check > .icon { flex: none; }
.letter-check--todo { background: var(--warning-bg); border-color: #fcd9a6; color: #7a3a06; }
.letter-check--info { background: var(--accent-soft); border-color: #bcd6f2; color: #0b3a63; }
.letter-check--done { background: var(--success-bg); border-color: #b7e4c7; color: #125c2e; }
.not-ready__item .cmp-label { display: block; }

/* Surat pimpinan */
.letter-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.letter-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.letter-layout.is-loading { opacity: .55; }
.letter-status { display: flex; gap: 14px; align-items: flex-start; }
.letter-status > .icon { flex: none; width: 2rem; height: 2rem; }
.letter-status h2 { margin: 0 0 4px; }
.letter-status p { margin: 0; color: var(--text-muted); }
.letter-status__action { margin-top: 10px; }
.letter-status--terkunci > .icon { color: var(--text-muted); }
.letter-status--basi { background: var(--warning-bg); border-color: #fcd9a6; }
.letter-status--basi > .icon { color: var(--warning); }
.letter-status--diperiksa { background: var(--accent-soft); border-color: #bcd6f2; }
.letter-status--diperiksa > .icon { color: var(--accent); }
.letter-status--unggah > .icon, .letter-status--buat > .icon { color: var(--accent); }
.letter-doc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.steps li.is-done::before { content: "✓"; background: var(--success-bg); color: var(--success); }
.letter-status--diterima { background: var(--success-bg); border-color: #b7e4c7; }
.letter-status--diterima > .icon { color: var(--success); }
.letter-status--menunggu { background: var(--accent-soft); border-color: #bcd6f2; }
.letter-status--menunggu > .icon { color: var(--accent); }
.letter-status--ditolak { background: var(--warning-bg); border-color: #fcd9a6; }
.letter-status--ditolak > .icon { color: var(--warning); }
.letter-status--kosong > .icon { color: var(--text-muted); }
.dropzone {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 16px; cursor: pointer;
    border: 2px dashed var(--border-strong); border-radius: 10px; background: #fafbfc; color: var(--text-muted);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone.has-file { border-style: solid; border-color: var(--accent); color: var(--text); }
.dropzone > .icon { width: 1.6rem; height: 1.6rem; transform: rotate(-45deg); flex: none; }
.dropzone__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .cmp-label { display: block; }
.field input[type="date"] { font: inherit; }
.letter-history { list-style: none; margin: 0; padding: 0; }
.letter-history li { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); }
.letter-history li:first-child { border-top: 0; padding-top: 0; }
.letter-history__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.letter-history__main a { font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.letter-guide h2 { margin-bottom: 8px; }
.steps { margin: 0 0 12px; padding-left: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps li { position: relative; padding-left: 38px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; counter-increment: step; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem;
}
.steps li > span { font-size: .88rem; color: var(--text-muted); }

.empty {
    text-align: center; padding: 48px 16px; background: var(--surface); border: 1px dashed var(--border-strong);
    border-radius: var(--radius); color: var(--text-muted);
}

/* Tablet: sidebar menjadi daftar geser horizontal di atas */
@media (max-width: 960px) {
    .letter-layout { grid-template-columns: minmax(0, 1fr); }
    .letter-guide { order: -1; }
    .ws-body { grid-template-columns: minmax(0, 1fr); }
    .ws-sidebar { position: static; max-height: none; }
    .ind-list { display: flex; overflow-x: auto; gap: 6px; padding: 8px; scroll-snap-type: x proximity; }
    .ind-item { flex: 0 0 240px; margin: 0; border-color: var(--border); scroll-snap-align: start; }
}

/* HP: tabel isian menjadi kartu per periode */
@media (max-width: 640px) {
    h1 { font-size: 1.3rem; }
    .brand__subtitle, .user-chip__sub { display: none; }
    .help-link { padding: 0 8px; }
    .help-link span { display: none; }
    .brand__title { font-size: .9rem; }
    .user-chip { max-width: 150px; }
    .ws-header__side { width: 100%; flex-direction: column; align-items: stretch; }
    .ws-actions { width: 100%; }
    .ws-period { flex: 1 1 160px; }
    .ws-period select { min-width: 0; width: 100%; }
    .ws-status__progress { flex-wrap: wrap; gap: 6px 12px; }
    .ws-status__progress .progress { flex-basis: 100%; order: 3; }
    .progress-card { min-width: 0; }
    .card { padding: 14px; }
    .entry-table thead { display: none; }
    .entry-table, .entry-table tbody, .entry-table tr, .entry-table th, .entry-table td { display: block; width: 100%; }
    .entry-table tr { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; padding: 6px 10px; }
    .entry-table th, .entry-table td { border: 0; padding: 6px 0; text-align: left !important; }
    .entry-table td[data-label]::before {
        content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: .03em; color: var(--text-muted); margin-bottom: 2px;
    }
    .entry-table td:empty { display: none; }
    .entry-table__input { min-width: 0; }
    .hint--error { justify-content: flex-start; }
    .ws-steps { gap: 6px; }
    .ws-step { padding: 6px 10px 6px 6px; gap: 8px; }
    .ws-step__title { white-space: normal; font-size: .9rem; }
    .cur-change__list { align-items: flex-start; }
    .entry-table tbody .ind-cell { padding-top: 6px; }
    .entry-table tbody .cmp-value { justify-content: flex-start; min-height: 0; }
    .cur-change .hint { white-space: normal; }
    .cmp-fix__bar { justify-content: flex-start; }
    .grid-card__nav .btn, .grid-card__actions { flex: 1; }
    .saved-notice { flex-basis: 100%; }
    .submit-bar { border-radius: var(--radius) var(--radius) 0 0; margin-left: -16px; margin-right: -16px; }
    .submit-bar .btn { width: 100%; }
}

/* Tur panduan (public/js/tour.js): bagian yang disorot jernih, sisanya gelap + buram; tombol "Panduan" di bilah atas */
.tour-launch { background: none; border: 0; font: inherit; cursor: pointer; }
.tour-launch .icon { width: 1.25em; height: 1.25em; }
.tour-shade {
    position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .35);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.tour-ring {
    position: fixed; z-index: 61; border-radius: 14px; pointer-events: none;
    transition: all .2s ease; /* tanpa bingkai: kejernihan bagian yang disorot sudah cukup sebagai penanda */
}
.tour-card {
    position: fixed; z-index: 62; padding: 14px 16px; background: var(--surface); color: var(--text);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .3);
}
.tour-card__count { margin: 0 0 2px; font-size: .75rem; font-weight: 700; color: var(--accent); }
.tour-card__title { margin: 0 0 4px; font-size: 1rem; }
.tour-card__text { margin: 0 0 12px; font-size: .9rem; line-height: 1.45; color: var(--text-muted); }
.tour-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tour-card__nav { display: flex; gap: 8px; margin-left: auto; }
.tour-card__skip { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .85rem; color: var(--text-muted); text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .tour-ring { transition: none; } }
