/* ==========================================================================
   VMOD — design system (§8.3). Minimalis elegan: putih/abu, tinta gelap untuk aksi utama, indigo hanya aksen.
   ========================================================================== */

@font-face {
    font-family: "Inter";
    src: url("../fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #F6F7F9; --surface: #FFFFFF; --surface-2: #F8F9FB; --surface-3: #F1F3F6; --border: #E7E9EE; --border-strong: #D4D8DF;
    --text: #0C111D; --muted: #5D6679; --subtle: #98A1B0;
    --ink: #0C111D; --ink-hover: #262C3B;
    --accent: #4F46E5; --accent-hover: #4338CA; --accent-soft: #EEF0FE; --accent-ring: rgba(79, 70, 229, .18); --accent-text: #3730A3; --accent-border: #DCDDFB;
    --success: #16A34A; --success-soft: #ECFDF3;
    --warning: #D97706; --warning-soft: #FFF7E6;
    --danger: #DC2626; --danger-soft: #FEF2F2;
    --critical: #7F1D1D;
    --radius-xl: 20px; --radius-lg: 14px; --radius: 10px; --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(12, 17, 29, .04);
    --shadow-md: 0 1px 2px rgba(12, 17, 29, .04), 0 6px 20px -8px rgba(12, 17, 29, .08);
    --shadow-pop: 0 16px 40px -12px rgba(12, 17, 29, .18), 0 2px 6px rgba(12, 17, 29, .05);
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
    --sidebar-w: 248px; --topbar-h: 60px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --ease: 160ms cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text);
    background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; letter-spacing: -.011em; }
p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }
code, pre { font-family: var(--mono); font-size: 12.5px; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-5) 0; }
img { max-width: 100%; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.small { font-size: 12px; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack > * + * { margin-top: var(--space-4); }
.row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- layout */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w); flex: none; background: var(--surface); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
}
.sidebar-head { padding: 20px 18px 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.wordmark:hover { color: var(--text); text-decoration: none; }
.wordmark-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.wordmark-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nav { padding: 4px 12px 16px; flex: 1; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle); padding: 18px 10px 6px; }
.nav-item {
    position: relative; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; margin: 1px 0;
    color: var(--muted); border-radius: var(--radius-sm); font-weight: 500; transition: background var(--ease), color var(--ease);
}
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item.is-active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.nav-item.is-active .icon { color: var(--accent); }
.nav-count { margin-left: auto; font-size: 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; color: var(--muted); }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin: 12px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }
.sidebar-user { color: var(--text); }
.sidebar-user:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.sidebar-user .who { min-width: 0; }
.sidebar-user .name { font-weight: 600; font-size: 13px; }
.sidebar-user .role { font-size: 12px; color: var(--muted); }
.avatar {
    width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
    background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px;
}
.avatar-sm { width: 24px; height: 24px; font-size: 10px; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); margin-left: -6px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: var(--topbar-h); display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-6);
    background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30;
}
.breadcrumb { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--subtle); }
.breadcrumb .current { color: var(--text); font-weight: 500; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.worker-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; }
.worker-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); }
.worker-dot.is-up::before { background: var(--success); }
.worker-dot.is-down::before { background: var(--danger); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: var(--radius-sm); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--surface-2); }
.menu-pop {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 6px; z-index: 50;
}
.menu-pop a, .menu-pop button {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; font: inherit;
    color: var(--text); border-radius: 6px; cursor: pointer; text-align: left;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); text-decoration: none; }
.menu-pop .menu-head { padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.btn.hamburger { display: none; }
.content { width: 100%; max-width: 1280px; margin: 0 auto; padding: var(--space-6); flex: 1; }
.sidebar-backdrop { display: none; }

/* ---------------------------------------------------------------- banners */
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px var(--space-6); font-size: 13px; border-bottom: 1px solid transparent; }
.banner .icon { margin-top: 1px; }
.banner-danger { background: var(--danger-soft); color: #991B1B; border-color: #FBD5D5; }
.banner-critical { background: var(--critical); color: #fff; }
.banner-warning { background: var(--warning-soft); color: #92400E; border-color: #FCE3B5; }
.banner-info { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-border); }
.banner a { color: inherit; text-decoration: underline; font-weight: 500; }

/* ---------------------------------------------------------------- page */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 650; letter-spacing: -.022em; }
.page-subtitle { color: var(--muted); margin: 4px 0 0; }
.page-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 24px; }
.card + .card { margin-top: var(--space-4); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.card-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.card-sub { font-size: 12px; color: var(--muted); }
.card-flush { padding: 0; }
.card-flush > .card-header { padding: 16px 24px 0; }
.card-section { padding: 16px 24px; border-top: 1px solid var(--border); }
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-kpi { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid-kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-kpi-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-4); align-items: start; }

.kpi { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow); transition: border-color var(--ease), box-shadow var(--ease); }
.kpi-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; padding-right: 40px; }
.kpi-value { font-size: 30px; font-weight: 600; letter-spacing: -.035em; margin-top: 6px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-hint { font-size: 12px; color: var(--subtle); margin-top: 4px; }
.kpi-icon { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.kpi.is-alert .kpi-icon { background: var(--danger-soft); color: var(--danger); }
.kpi.is-accent .kpi-icon { background: var(--accent-soft); color: var(--accent); }
.kpi.is-alert .kpi-value { color: #B91C1C; }
a.kpi:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); text-decoration: none; }
a.kpi { color: inherit; display: block; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
    border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 500; font-size: 14px;
    cursor: pointer; white-space: nowrap; transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
    text-decoration: none; user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(12, 17, 29, .12), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn-primary:hover { background: var(--ink-hover); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: 0 1px 2px rgba(12, 17, 29, .04); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); color: var(--danger); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 6px; }
.btn-icon { width: 36px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid currentColor; border-color: rgba(255, 255, 255, .9) rgba(255, 255, 255, .9) rgba(255, 255, 255, .9) transparent;
    animation: spin .7s linear infinite;
}
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after { border-color: var(--muted) var(--muted) var(--muted) transparent; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.btn-seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.btn-seg button { border: 0; border-right: 1px solid var(--border); background: var(--surface); height: 32px; padding: 0 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted); }
.btn-seg button:last-child { border-right: 0; }
.btn-seg button.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.btn-seg button:hover:not(.is-active) { background: var(--surface-2); color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- forms */
.form { max-width: 640px; }
.form-row { margin-bottom: var(--space-4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
    width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text); font: inherit; font-size: 14px; transition: border-color var(--ease), box-shadow var(--ease);
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #C3C8D1; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input::placeholder, .textarea::placeholder { color: var(--subtle); }
.input-sm, .select-sm { height: 32px; font-size: 13px; }
.is-invalid { border-color: var(--danger) !important; }
.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .15) !important; }
.field-help { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.field-error { font-size: 12px; color: var(--danger); margin: 6px 0 0; }
.input-group { position: relative; display: flex; }
.input-group .input { padding-right: 44px; }
.input-group .input-addon { position: absolute; right: 4px; top: 4px; height: 32px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.form-actions { display: flex; gap: var(--space-2); margin-top: var(--space-5); flex-wrap: wrap; }
.filters { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--space-4); }
.filters .input, .filters .select { width: auto; min-width: 160px; height: 36px; }
.search-input { position: relative; }
.search-input .icon-sm { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.search-input .input { padding-left: 32px; }

/* multi-select anggota */
.picker { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.picker-search { border: 0; border-bottom: 1px solid var(--border); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.picker-list { max-height: 240px; overflow-y: auto; padding: 4px; }
.picker-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.picker-item:hover { background: var(--surface-2); }
.picker-item .meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.picker-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-top: 1px solid var(--border); min-height: 42px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 500; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.chip button:hover { background: rgba(79, 70, 229, .12); }

/* ---------------------------------------------------------------- tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
    text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle);
    padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface);
}
.table td { padding: 0 12px; height: 44px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table-compact td { height: auto; padding: 8px 12px; }
.table-sticky thead th { position: sticky; top: 0; z-index: 1; }
.card-flush .table th:first-child, .card-flush .table td:first-child { padding-left: 24px; }
.card-flush .table th:last-child, .card-flush .table td:last-child { padding-right: 24px; }
.table .cell-title { font-weight: 500; color: var(--text); }
.table .cell-sub { font-size: 12px; color: var(--muted); }
.table td.check-col, .table th.check-col { width: 36px; }
.table tr.is-selected td { background: var(--accent-soft); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 12px 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; }

/* ---------------------------------------------------------------- badges */
.badge {
    display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px;
    font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1;
}
.badge-neutral { background: #F1F3F6; color: #475569; }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-success { background: var(--success-soft); color: #15803D; }
.badge-warning { background: var(--warning-soft); color: #B45309; }
.badge-danger { background: var(--danger-soft); color: #B91C1C; }
.badge-critical { background: var(--critical); color: #fff; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.method { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600; font-family: var(--mono); letter-spacing: .02em; }
.method-get { background: var(--accent-soft); color: var(--accent); }
.method-post { background: var(--success-soft); color: #15803D; }
.method-patch, .method-put { background: var(--warning-soft); color: #B45309; }
.method-delete { background: var(--danger-soft); color: #B91C1C; }
.count-pills { display: inline-flex; gap: 4px; }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- alerts / toast / dialog */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); font-size: 13px; border: 1px solid; margin-bottom: var(--space-4); }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--success-soft); border-color: #C6F0D5; color: #166534; }
.alert-danger { background: var(--danger-soft); border-color: #FBD5D5; color: #991B1B; }
.alert-warning { background: var(--warning-soft); border-color: #FCE3B5; color: #92400E; }
.alert-info { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-text); }
.alert-critical { background: #FDF2F2; border-color: #E8B4B4; color: var(--critical); }
.alert strong { font-weight: 600; }

.toast-stack { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: min(380px, calc(100vw - 40px)); }
.toast {
    display: flex; gap: 10px; align-items: flex-start; background: var(--text); color: #fff; padding: 12px 14px; border-radius: var(--radius);
    box-shadow: var(--shadow-pop); font-size: 13px; animation: toast-in 150ms ease;
}
.toast-danger { background: #991B1B; }
.toast-success { background: #166534; }
.toast .toast-msg { flex: 1; }
.toast button { background: none; border: 0; color: rgba(255, 255, 255, .7); cursor: pointer; padding: 0; line-height: 1; font-size: 18px; }
.toast button:hover { color: #fff; }
@keyframes toast-in { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

dialog.dialog {
    border: 0; padding: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); width: min(480px, calc(100vw - 32px));
    color: var(--text); background: var(--surface);
}
dialog.dialog::backdrop { background: rgba(15, 23, 42, .35); }
.dialog-wide { width: min(720px, calc(100vw - 32px)) !important; }
.dialog-body { padding: 24px; }
.dialog-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: var(--space-4); overflow-x: auto; }
.tab {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; background: none; font: inherit; font-weight: 500;
    color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.is-active, .tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel[hidden] { display: none; }

/* ---------------------------------------------------------------- empty / skeleton / progress */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .icon-lg { color: var(--subtle); margin-bottom: 12px; }
.empty-title { color: var(--text); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.empty p { max-width: 420px; margin: 0 auto 16px; }
.skeleton { background: linear-gradient(90deg, #EEF0F3 25%, #F6F7F9 37%, #EEF0F3 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; min-height: 12px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.progress { height: 8px; background: #EEF0F3; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.progress-sm { height: 4px; }
.progress.is-success > span { background: var(--success); }
.progress.is-danger > span { background: var(--danger); }
.progress.is-warning > span { background: var(--warning); }
.progress.is-indeterminate > span { width: 40% !important; animation: indet 1.2s ease infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.mini-progress { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.mini-progress .progress { flex: 1; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .7s linear infinite; display: inline-block; flex: none; }

/* ---------------------------------------------------------------- stepper */
.stepper { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: flex-start; padding: 10px 0; position: relative; }
.step + .step::before { content: ""; position: absolute; left: 13px; top: -10px; height: 20px; border-left: 1px solid var(--border); }
.step-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface); color: var(--subtle); font-size: 13px; font-weight: 600; }
.step.is-done .step-icon { background: var(--success-soft); border-color: #C6F0D5; color: var(--success); }
.step.is-running .step-icon { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.step.is-failed .step-icon { background: var(--danger-soft); border-color: #FBD5D5; color: var(--danger); }
.step.is-skipped .step-icon { color: var(--subtle); background: var(--surface-2); }
.step-label { font-weight: 500; }
.step.is-pending .step-label { color: var(--muted); }
.step-msg { font-size: 12px; color: var(--muted); margin-top: 2px; }
.step.is-failed .step-msg { color: var(--danger); }
.step-time { font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; padding-top: 4px; }
.step .progress { margin-top: 6px; }
.stepper-compact .step { padding: 4px 0; grid-template-columns: 20px 1fr auto; gap: 8px; }
.stepper-compact .step-icon { width: 20px; height: 20px; font-size: 11px; }
.stepper-compact .step + .step::before { left: 9px; top: -4px; height: 8px; }
.run-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------------------------------------------------------------- upload */
.dropzone {
    display: block; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 28px; text-align: center; color: var(--muted);
    background: var(--surface-2); transition: border-color var(--ease), background var(--ease); cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dropzone .icon-lg { color: var(--accent); margin-bottom: 8px; }
.dropzone strong { color: var(--text); }
.upload-queue { margin-top: var(--space-3); display: grid; gap: 8px; }
.upload-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); }
.upload-item .row-between { margin-bottom: 8px; }
.upload-name { font-weight: 500; }
.upload-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.upload-item.is-failed { border-color: #FBD5D5; background: #FFFBFB; }
.upload-item.is-done { border-color: #C6F0D5; }

/* ---------------------------------------------------------------- video page */
.video-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-4); align-items: start; }
.player-wrap { position: relative; background: #0B1220; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.player-wrap video { width: 100%; height: 100%; display: block; background: #0B1220; transition: filter var(--ease); }
.player-wrap.is-blurred video { filter: blur(24px); }
.player-overlay {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #E2E8F0; padding: 24px; pointer-events: none;
}
.player-overlay .btn { pointer-events: auto; }
.player-locked { aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--border-strong); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }
.player-controls { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.player-controls .time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); margin-left: auto; }
.timeline { margin-top: 12px; position: relative; }
.timeline svg { width: 100%; height: 132px; display: block; cursor: pointer; }
.timeline .tl-tooltip {
    position: absolute; top: 0; transform: translateX(-50%); background: var(--text); color: #fff; font-size: 12px; padding: 6px 8px;
    border-radius: 6px; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow-pop); z-index: 5;
}
.tl-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.findings-list { display: grid; gap: 10px; max-height: calc(100vh - 220px); overflow-y: auto; padding-right: 2px; }
.finding { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: var(--surface); display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.finding.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.finding.is-decided { background: var(--surface-2); }
.finding-thumb { width: 96px; height: 54px; border-radius: 6px; object-fit: cover; background: #E2E8F0; display: block; }
.finding-thumb.placeholder { display: grid; place-items: center; color: var(--subtle); font-size: 11px; text-align: center; }
.finding-time { font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--text); background: none; border: 0; padding: 0; font: inherit; }
.finding-time:hover { color: var(--accent); }
.finding-reason { font-size: 13px; margin-top: 4px; }
.finding-quote { font-size: 12px; color: var(--muted); background: var(--surface-2); border-left: 2px solid var(--border-strong); padding: 6px 8px; border-radius: 0 6px 6px 0; margin-top: 6px; overflow-wrap: anywhere; }
.finding-actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.finding-actions .btn.is-selected { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.finding-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.finding-locked { grid-template-columns: 1fr; background: #FDF2F2; border-color: #E8B4B4; color: var(--critical); }
mark.hit { background: #FEF08A; color: inherit; border-radius: 3px; padding: 0 2px; }
.transcript { max-height: 420px; overflow-y: auto; }
.transcript-line { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.transcript-line:hover { background: var(--surface-2); }
.transcript-line .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.transcript-line.has-hit { background: #FFFBEB; }
.note { border-bottom: 1px solid var(--border); padding: 12px 0; }
.note:last-child { border-bottom: 0; }
.note-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.note-head .name { color: var(--text); font-weight: 500; }
.note-body { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.verdict-options { display: flex; gap: 8px; flex-wrap: wrap; }
.verdict-options label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; }
.verdict-options input { accent-color: var(--accent); }
.verdict-options label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.summary-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.summary-stat .v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-stat .l { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- charts */
.chart { width: 100%; }
.chart svg { width: 100%; height: 220px; display: block; }
.chart .axis text { font-size: 11px; fill: var(--subtle); }
.chart .grid-line { stroke: var(--border); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart .area { fill: var(--accent-soft); }
.chart .bar { fill: var(--accent); }
.chart .bar:hover { fill: var(--accent-hover); }

/* ---------------------------------------------------------------- auth / error */
.auth-body { background: var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; padding: 32px; }
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand .wordmark { font-size: 24px; }
.auth-brand .wordmark-sub { font-size: 13px; }
.error-card { text-align: center; }
.error-code { font-size: 48px; font-weight: 700; letter-spacing: -.03em; color: var(--subtle); line-height: 1; margin-bottom: 12px; }
.request-id { font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; display: inline-block; margin: 8px 0 16px; }

/* ---------------------------------------------------------------- guide / prose */
.prose { font-size: 14px; line-height: 1.65; }
.prose h1 { font-size: 22px; margin: 8px 0 12px; }
.prose h2 { font-size: 18px; margin: 32px 0 10px; padding-top: 8px; }
.prose h3 { font-size: 15px; margin: 24px 0 8px; }
.prose h4 { font-size: 14px; margin: 16px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 12px; }
.prose li { margin: 4px 0; }
.prose li.nested { margin-left: 18px; list-style-type: circle; }
.prose img { border: 1px solid var(--border); border-radius: var(--radius); margin: 8px 0 16px; box-shadow: var(--shadow); }
.prose blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose .table-wrap { margin: 8px 0 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.prose pre, .code-pre { background: #0F172A; color: #E2E8F0; padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.guide-toc { position: sticky; top: calc(var(--topbar-h) + 16px); max-height: calc(100vh - 120px); overflow-y: auto; font-size: 13px; }
.guide-toc a { display: block; padding: 4px 8px; border-radius: 6px; color: var(--muted); }
.guide-toc a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.guide-toc .lvl-3 { padding-left: 20px; font-size: 12px; }
.guide-toc .is-role { color: var(--accent); font-weight: 500; }
.role-highlight { border: 1px solid var(--accent-border); background: var(--accent-soft); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; font-size: 13px; color: var(--accent-text); }

/* ---------------------------------------------------------------- docs */
.docs-body { background: var(--bg); }
.docs-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100vh; }
.docs-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.docs-search { margin: 16px 0 8px; }
.docs-nav-link { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--text); font-size: 12.5px; }
.docs-nav-link:hover { background: var(--surface-2); text-decoration: none; }
.docs-nav-path { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-nav-link .method { min-width: 46px; height: 18px; font-size: 10px; }
.docs-main { padding: 32px; max-width: 1080px; }
.docs-tag { font-size: 18px; margin: 40px 0 4px; }
.docs-tag-desc { margin-bottom: 16px; }
.docs-endpoint { margin-bottom: 16px; }
.docs-endpoint-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.docs-path { font-size: 14px; font-weight: 600; background: none !important; border: 0 !important; padding: 0 !important; }
.docs-summary { color: var(--muted); }
.docs-h { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.docs-response { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; padding: 8px 12px; }
.docs-response summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.docs-response .code-block { margin-top: 8px; }
.code-block { position: relative; }
.code-block pre { background: #0F172A; color: #E2E8F0; padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; margin: 0; font-size: 12px; line-height: 1.55; }
.code-block .code-copy { position: absolute; top: 6px; right: 6px; color: #CBD5E1; background: rgba(255, 255, 255, .06); }
.code-block .code-copy:hover { color: #fff; background: rgba(255, 255, 255, .14); }

/* ---------------------------------------------------------------- style guide */
.ui-section { margin-bottom: var(--space-6); }
.ui-section > h2 { font-size: 16px; margin-bottom: var(--space-3); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.swatch { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 12px; background: var(--surface); }
.swatch i { display: block; height: 44px; }
.swatch div { padding: 8px 10px; }
.sg-bg { background: var(--bg); } .sg-surface { background: var(--surface); } .sg-surface-2 { background: var(--surface-2); }
.sg-border { background: var(--border); } .sg-text { background: var(--text); } .sg-muted { background: var(--muted); } .sg-ink { background: var(--ink); }
.sg-accent { background: var(--accent); } .sg-accent-soft { background: var(--accent-soft); } .sg-success { background: var(--success); }
.sg-warning { background: var(--warning); } .sg-danger { background: var(--danger); } .sg-critical { background: var(--critical); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.icon-grid div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 11px; color: var(--muted); background: var(--surface); }
.icon-grid .icon { width: 20px; height: 20px; color: var(--text); }

/* ---------------------------------------------------------------- misc components */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-plain > li:last-child { border-bottom: 0; }
.activity-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: flex-start; font-size: 13px; }
.activity-item .when { font-size: 12px; color: var(--subtle); white-space: nowrap; }
.kv-bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; font-size: 13px; }
.load-row { display: grid; grid-template-columns: 180px 1fr 140px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.load-row:last-child { border-bottom: 0; }
.bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 24px; background: var(--accent-soft); border-bottom: 1px solid var(--accent-border); font-size: 13px; }
.token-reveal { font-family: var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; overflow-wrap: anywhere; font-size: 13px; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.status-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); }
.status-item .l { font-size: 12px; color: var(--muted); }
.status-item .v { font-weight: 600; margin-top: 2px; }
.log-lines { font-family: var(--mono); font-size: 12px; background: #0F172A; color: #E2E8F0; padding: 12px; border-radius: var(--radius-sm); max-height: 360px; overflow: auto; white-space: pre-wrap; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .video-layout, .split { grid-template-columns: minmax(0, 1fr); }
    .findings-list { max-height: none; }
}
@media (max-width: 900px) {
    .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform var(--ease); box-shadow: var(--shadow-pop); }
    .layout.nav-open .sidebar { transform: none; }
    .layout.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .3); z-index: 35; }
    .btn.hamburger { display: inline-flex; }
    .topbar { padding: 0 var(--space-4); }
    .content { padding: var(--space-4); }
    .banner { padding: 10px var(--space-4); }
    .grid-2, .grid-3, .form-grid { grid-template-columns: minmax(0, 1fr); }
    .guide-layout, .docs-layout { grid-template-columns: minmax(0, 1fr); }
    .docs-main { max-width: 100vw; }
    .token-reveal { min-width: 0; }
    .guide-toc, .docs-sidebar { position: static; height: auto; max-height: none; }
    .docs-main { padding: 16px; }
    .card { padding: 16px; }
    .card-flush > .card-header { padding: 16px 16px 0; }
    .card-flush .table th:first-child, .card-flush .table td:first-child { padding-left: 16px; }
    .card-flush .table th:last-child, .card-flush .table td:last-child { padding-right: 16px; }
    .pagination, .bulkbar { padding: 10px 16px; }
    .btn, .nav-item, .tab { min-height: 40px; }
    .btn-sm, .btn-xs { min-height: 36px; }
    .worker-dot .label-text { display: none; }
    .breadcrumb .crumb-mid { display: none; }
    .load-row { grid-template-columns: 1fr; gap: 4px; }
    .finding { grid-template-columns: 1fr; }
    .filters .input, .filters .select { min-width: 0; flex: 1 1 140px; }
    .user-menu .user-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- print */
.print-body { background: #fff; }
.print-wrap { max-width: 920px; margin: 0 auto; padding: 24px; }
@media print {
    body { background: #fff; font-size: 12px; }
    .sidebar, .topbar, .banner, .no-print, .toast-stack { display: none !important; }
    .content, .print-wrap { padding: 0; max-width: none; }
    .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
    a { color: inherit; }
}
.row-center { justify-content: center; }
.text-center { text-align: center; }
.table .select-sm { min-width: 150px; width: auto; }
.table .actions > *, .table .actions details { display: inline-flex; vertical-align: middle; }
.table .actions details .menu-pop { text-align: left; }
.table .actions .user-menu summary { padding: 0; }
.player-controls .select { width: auto; }
.timeline svg { height: 132px; }
.timeline .tl-tooltip { white-space: normal; max-width: 360px; }
.inline { display: inline; }
.guide-toc a.is-active { background: var(--accent-soft); color: var(--accent); }
a.doc-card { display: block; color: inherit; margin: 0; transition: border-color var(--ease), box-shadow var(--ease); }
a.doc-card:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-pop); }
a.doc-card .row .icon { color: var(--accent); }
.prose pre code, .code-pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose a code { color: var(--accent); }
.prose :not(pre) > code { overflow-wrap: anywhere; }
.grid > .card + .card, .grid > .card { margin-top: 0; }

/* ==========================================================================
   Tampilan 2026-09: logo, login, dashboard informatif, landing page
   ========================================================================== */
.text-danger { color: var(--danger) !important; }
.input-lg { height: 44px; font-size: 15px; }
.input-group .input-lg ~ .input-addon { top: 6px; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 16px; color: #fff; }

/* ---------------------------------------------------------------- logo */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; display: block; }
.bm-bg { fill: var(--ink); }
.bm-v { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bm-dot { fill: #818CF8; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand-sub { font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .bm-bg { fill: #fff; }
.brand-light .bm-v { stroke: var(--ink); }
.brand-light .bm-dot { fill: var(--accent); }
.brand-light .brand-sub { color: rgba(255, 255, 255, .58); }
.docs-sidebar .brand { margin-bottom: 4px; }

/* ---------------------------------------------------------------- login */
.auth-wrap-login { display: block; padding: 0; place-items: normal; }
.login { width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.login-aside { position: relative; overflow: hidden; background: #0A0E19; color: rgba(255, 255, 255, .72); }
.login-aside::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(640px 420px at 12% 8%, rgba(99, 102, 241, .30), transparent 62%),
                radial-gradient(520px 380px at 95% 100%, rgba(129, 140, 248, .16), transparent 62%);
}
.login-aside::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 25% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 25% 20%, #000 20%, transparent 75%);
}
.login-aside-inner { position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; padding: 40px 56px 36px; max-width: 640px; }
.login-pitch { margin-top: auto; padding-top: 56px; }
.login-pitch h1 { color: #fff; font-size: 34px; line-height: 1.14; letter-spacing: -.032em; font-weight: 650; max-width: 470px; }
.login-pitch p { margin: 14px 0 0; font-size: 16px; color: rgba(255, 255, 255, .64); }
.login-flow { list-style: none; margin: 36px 0 0; padding: 0; }
.login-flow li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.login-flow-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); color: #C7D2FE; }
.login-flow li > div > strong { display: block; color: #fff; font-weight: 600; font-size: 14px; }
.login-flow li > div > span { display: block; font-size: 13px; color: rgba(255, 255, 255, .58); margin-top: 2px; }
.login-note { margin: auto 0 0; padding-top: 36px; display: flex; gap: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.login-note .icon-sm { color: #A5B4FC; margin-top: 2px; }
.login-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px 32px; background: var(--surface); }
.login-card { width: 100%; max-width: 380px; margin: auto 0; }
.login-brand-sm { display: none; margin-bottom: 32px; }
.login-title { font-size: 28px; font-weight: 650; letter-spacing: -.03em; }
.login-subtitle { color: var(--muted); margin: 6px 0 28px; }
.login-help { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 20px 0 0; }
.login-help .icon-sm { margin-top: 2px; color: var(--subtle); }
.login-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-size: 13px; font-weight: 500; color: var(--muted); }
.login-back:hover { color: var(--text); text-decoration: none; }
.login-legal { margin-top: 40px; font-size: 12px; color: var(--subtle); }

/* ---------------------------------------------------------------- dashboard */
.dash-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-date { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle); margin: 0 0 6px; }
.dash-hello .page-title { font-size: 26px; letter-spacing: -.03em; }
.dash-hello .page-subtitle { margin-top: 6px; }
.card-header .card-sub { margin: 2px 0 0; }
.flow-card .card-header { align-items: flex-start; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.flow-stage { position: relative; }
.flow-stage + .flow-stage::before { content: ""; position: absolute; left: -12px; top: 50%; width: 12px; border-top: 1px dashed var(--border-strong); }
.flow-box { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: inherit; transition: border-color var(--ease), background var(--ease); }
a.flow-box:hover { border-color: var(--border-strong); background: var(--surface); text-decoration: none; color: inherit; }
.flow-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); margin-bottom: 10px; }
.flow-value { font-size: 24px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.flow-label { font-weight: 600; font-size: 13px; margin-top: 2px; }
.flow-hint { font-size: 12px; color: var(--muted); }
.flow-stage.is-critical .flow-icon { color: var(--critical); background: #FDF2F2; border-color: #F3D0D0; }
.flow-stage.is-done .flow-icon { color: var(--success); background: var(--success-soft); border-color: #C6F0D5; }
.flow-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.flow-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.flow-panel-head strong { color: var(--text); font-size: 15px; }
.prio-bar { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.prio-bar > span { display: block; height: 100%; min-width: 4px; }
.prio-kritis { background: var(--critical); }
.prio-tinggi { background: var(--danger); }
.prio-sedang { background: var(--warning); }
.prio-rendah { background: #A7B0BE; }
.prio-legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.prio-legend li { display: inline-flex; align-items: center; gap: 6px; }
.prio-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.prio-legend strong { color: var(--text); font-weight: 600; }
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mini-stats > div { display: flex; flex-direction: column; min-width: 0; }
.mini-stats strong { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.mini-stats span { font-size: 12px; color: var(--muted); }

.howto { padding: 0; }
.howto-summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 24px; cursor: pointer; border-radius: var(--radius-lg); }
.howto-summary::-webkit-details-marker { display: none; }
.howto-summary:hover .howto-hint { color: var(--text); }
.howto-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.howto-title .icon-sm { color: var(--accent); }
.howto-hint { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.howto[open] .howto-toggle-text::after { content: "sembunyikan"; }
.howto:not([open]) .howto-toggle-text::after { content: "tampilkan"; }
.howto-chevron { color: var(--muted); transition: transform var(--ease); }
.howto[open] .howto-chevron { transform: rotate(180deg); }
.howto-steps { list-style: none; margin: 0; padding: 2px 24px 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.howto-step { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.howto-step.is-human { background: var(--accent-soft); border-color: var(--accent-border); }
.howto-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.howto-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--accent); }
.howto-no { font-size: 11px; font-weight: 600; color: var(--subtle); font-variant-numeric: tabular-nums; }
.howto-step-title { font-weight: 600; font-size: 13.5px; }
.howto-engine { font-size: 11.5px; color: var(--accent-text); font-weight: 500; margin-top: 2px; overflow-wrap: anywhere; }
.howto-step p { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.howto-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0 24px 20px; }
.howto-level { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.howto-level .badge { align-self: flex-start; }
.howto-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 14px 24px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.howto-foot > span { display: inline-flex; gap: 8px; align-items: center; }
.howto-foot > span .icon-sm { color: var(--success); flex: none; }
.howto-foot a { display: inline-flex; gap: 4px; align-items: center; font-weight: 500; }

.review-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.review-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.review-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.review-steps strong { font-size: 13.5px; font-weight: 600; }
.review-steps p { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.review-note { display: flex; gap: 8px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.review-note .icon-sm { color: var(--critical); margin-top: 2px; flex: none; }

@media (min-width: 1440px) { .howto-steps { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 1250px) { .grid-kpi-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
    .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .flow-stage + .flow-stage::before { display: none; }
    .flow-foot { grid-template-columns: minmax(0, 1fr); }
    .howto-steps, .review-steps, .howto-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .grid-kpi-3, .grid-kpi-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .howto-summary { padding: 16px; }
    .howto-steps { padding: 2px 16px 16px; }
    .howto-levels { padding: 0 16px 16px; }
    .howto-foot { padding: 12px 16px; }
    .howto-hint { display: none; }
    .dash-hello .page-title { font-size: 22px; }
    .login { grid-template-columns: minmax(0, 1fr); }
    .login-main { order: 1; min-height: auto; padding: 40px 20px 32px; }
    .login-aside { order: 2; }
    .login-aside-inner { padding: 36px 20px 32px; }
    .login-aside .brand { display: none; }
    .login-pitch { padding-top: 0; }
    .login-pitch h1 { font-size: 24px; }
    .login-brand-sm { display: block; }
    .login-legal { margin-top: 24px; }
}
@media (max-width: 560px) {
    .kpi { padding: 14px 14px; }
    .kpi-value { font-size: 24px; }
    .kpi-icon { top: 12px; right: 12px; width: 28px; height: 28px; }
    .kpi-label { padding-right: 30px; }
    .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .howto-steps, .review-steps, .howto-levels { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- landing */
.lp { background: #fff; font-size: 15px; }
.lp-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp-nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(231, 233, 238, .8); }
.lp-nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.lp-links { display: flex; gap: 2px; margin-left: auto; }
.lp-links a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 8px; }
.lp-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.lp-nav-cta { margin-left: 8px; }

.lp-hero { position: relative; overflow: hidden; padding: 80px 0 72px; }
.lp-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(700px 420px at 85% 10%, rgba(99, 102, 241, .12), transparent 65%), radial-gradient(520px 320px at 0% 100%, rgba(129, 140, 248, .08), transparent 60%);
}
.lp-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(12, 17, 29, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 17, 29, .045) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 75% 30%, #000 10%, transparent 70%);
}
.lp-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-border); padding: 5px 12px; border-radius: 999px; }
.lp-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); }
.lp-h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.04; letter-spacing: -.042em; font-weight: 650; margin: 22px 0 0; }
.lp-lead { font-size: 17px; line-height: 1.62; color: var(--muted); margin: 22px 0 0; max-width: 540px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.lp-proof { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.lp-proof li { display: inline-flex; align-items: center; gap: 6px; }
.lp-proof .icon-sm { color: var(--success); }

.mock { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 14px; box-shadow: 0 32px 64px -24px rgba(12, 17, 29, .28), 0 8px 20px -8px rgba(12, 17, 29, .10); transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); }
.mock-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; }
.mock-dots { display: inline-flex; gap: 5px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #E2E5EA; display: block; }
.mock-file { font-size: 12.5px; font-weight: 600; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-player { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111727; }
.mock-player-blur {
    position: absolute; inset: -24px; filter: blur(22px); opacity: .9;
    background: radial-gradient(circle at 30% 40%, #6D5BD0 0, transparent 42%), radial-gradient(circle at 72% 62%, #C98263 0, transparent 38%),
                radial-gradient(circle at 55% 22%, #3E6FD8 0, transparent 34%), #1A2033;
}
.mock-player-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .92); background: rgba(12, 17, 29, .45); border: 1px solid rgba(255, 255, 255, .16); padding: 6px 11px; border-radius: 999px; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mock-timeline { margin-top: 12px; padding: 0 2px; }
.mock-wave { display: block; width: 100%; height: 34px; }
.mock-wave path { fill: rgba(79, 70, 229, .14); stroke: #4F46E5; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.mock-track { position: relative; height: 8px; border-radius: 999px; background: var(--surface-3); margin-top: 4px; }
.mk { position: absolute; top: -3px; width: 14px; height: 14px; border-radius: 4px; transform: translateX(-50%); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(12, 17, 29, .22); }
.mk-kritis { background: var(--critical); }
.mk-tinggi { background: var(--danger); }
.mk-sedang { background: var(--warning); }
.mk-rendah { background: #A7B0BE; }
.mock-head-pos { position: absolute; top: -9px; bottom: -9px; width: 2px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); }
.at-14 { left: 14%; } .at-36 { left: 36%; } .at-70 { left: 70%; } .at-84 { left: 84%; }
.mock-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--subtle); margin-top: 8px; font-variant-numeric: tabular-nums; }
.mock-findings { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.mock-findings li { display: grid; grid-template-columns: 62px 42px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12.5px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.mock-findings li.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.mock-findings .badge { justify-self: start; }
.mf-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.mf-text { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lp-stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.lp-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-stat { padding: 30px 24px; border-left: 1px solid var(--border); }
.lp-stat:first-child { border-left: 0; padding-left: 0; }
.lp-stat .v { font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-stat .u { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.lp-stat .l { font-size: 13px; color: var(--muted); margin-top: 10px; max-width: 230px; }

.lp-section { padding: 96px 0; }
.lp-section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-section-head { max-width: 640px; margin-bottom: 48px; }
.lp-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lp-h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.035em; font-weight: 650; margin-top: 10px; }
.lp-sub { font-size: 16px; color: var(--muted); margin: 14px 0 0; line-height: 1.6; }
.lp-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }

.lp-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.lp-flow-step { position: relative; padding: 22px 20px 24px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.lp-flow-step:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -14px; width: 9px; height: 9px; border-top: 1.5px solid var(--border-strong); border-right: 1.5px solid var(--border-strong); transform: rotate(45deg); }
.lp-flow-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.lp-flow-num { font-size: 12px; font-weight: 600; color: var(--subtle); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.lp-flow-step h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.lp-flow-step p { font-size: 14px; color: var(--muted); margin: 8px 0 0; line-height: 1.55; }

.lp-pipeline { margin-top: 40px; border: 1px solid var(--border); border-radius: 18px; padding: 32px; background: linear-gradient(180deg, var(--surface-2), #fff 70%); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; }
.lp-pipeline-head h3 { font-size: 20px; letter-spacing: -.02em; }
.lp-pipeline-head p { color: var(--muted); font-size: 14px; margin: 10px 0 0; line-height: 1.6; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.lp-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.lp-step-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--text); }
.lp-step-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; flex-wrap: wrap; }
.lp-step-no { font-size: 11px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.lp-engine { font-size: 11.5px; font-weight: 500; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }
.lp-step-body p { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }

.lp-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-level { position: relative; overflow: hidden; padding: 24px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.lp-level::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; }
.lvl-kritis::before { background: var(--critical); }
.lvl-tinggi::before { background: var(--danger); }
.lvl-sedang::before { background: var(--warning); }
.lvl-rendah::before { background: #A7B0BE; }
.lp-level p { font-size: 14px; color: var(--muted); margin: 14px 0 0; line-height: 1.55; }

.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.lp-feature { padding: 28px; background: #fff; }
.lp-feature h3 { font-size: 16px; margin-top: 18px; letter-spacing: -.015em; }
.lp-feature p { font-size: 14px; color: var(--muted); margin: 8px 0 0; line-height: 1.55; }

.lp-section-dark { position: relative; overflow: hidden; background: #0A0E19; color: rgba(255, 255, 255, .72); }
.lp-section-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 360px at 10% 0%, rgba(99, 102, 241, .22), transparent 60%); }
.lp-section-dark .lp-h2 { color: #fff; }
.lp-section-dark .lp-kicker { color: #A5B4FC; }
.lp-security { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.lp-checks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.lp-checks li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; font-size: 15px; line-height: 1.55; align-items: start; }
.lp-checks li > .icon-sm { width: 34px; height: 34px; padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #C7D2FE; }
.lp-roles { display: grid; gap: 12px; }
.lp-role { padding: 20px 22px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.lp-role-name { color: #fff; font-weight: 600; font-size: 15px; }
.lp-role p { font-size: 14px; margin: 6px 0 0; color: rgba(255, 255, 255, .6); }

.lp-faq-wrap { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: start; }
.lp-faq-wrap .lp-section-head { margin-bottom: 0; }
.lp-faq { border-top: 1px solid var(--border); }
.lp-faq-item { border-bottom: 1px solid var(--border); }
.lp-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary .icon-sm { color: var(--muted); transition: transform var(--ease); flex: none; }
.lp-faq-item[open] summary .icon-sm { transform: rotate(180deg); }
.lp-faq-item p { color: var(--muted); margin: 0 0 20px; max-width: 640px; line-height: 1.6; }

.lp-final { padding: 96px 0; text-align: center; border-top: 1px solid var(--border); background: radial-gradient(640px 260px at 50% 0%, rgba(79, 70, 229, .08), transparent 70%); }
.lp-final .lp-sub { margin-bottom: 28px; }
.lp-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; background: #fff; }
.lp-footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.lp-footer-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.lp-footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.lp-footer-links a { color: var(--muted); }
.lp-footer-links a:hover { color: var(--text); text-decoration: none; }
.lp-copy { margin-top: 28px; font-size: 12.5px; color: var(--subtle); }

@media (max-width: 1100px) {
    .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .lp-hero-visual { max-width: 640px; }
    .mock { transform: none; }
    .lp-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-flow-step::after { display: none; }
    .lp-pipeline { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .lp-levels, .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-security, .lp-faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 900px) {
    .lp-links { display: none; }
    .lp-nav-cta { margin-left: auto; }
}
@media (max-width: 640px) {
    .lp-container { padding: 0 16px; }
    .lp-hero { padding: 44px 0 52px; }
    .lp-lead { font-size: 16px; }
    .lp-cta .btn { flex: 1 1 auto; }
    .lp-section, .lp-final { padding: 64px 0; }
    .lp-section-head { margin-bottom: 32px; }
    .lp-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-stat { padding: 20px 12px 20px 0; border-left: 0; }
    .lp-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
    .lp-stat .v { font-size: 28px; }
    .lp-flow, .lp-levels, .lp-features, .lp-steps { grid-template-columns: minmax(0, 1fr); }
    .lp-pipeline { padding: 20px; }
    .mock { padding: 10px; }
    .mock-findings li { grid-template-columns: 58px 40px minmax(0, 1fr); font-size: 12px; }
}
/* kolom grid sejajar: jangan terkena margin .card + .card */
.split > * + *, .split > .card + .card, .video-layout > * + *, .video-layout > .card + .card { margin-top: 0; }
.list-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
.list-grid-2 > li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
@media (max-width: 900px) {
    .list-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .list-grid-2 > li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--border); }
}

/* ---------------------------------------------------------------- login Google */
.btn-google { background: #fff; color: var(--text); border-color: var(--border-strong); gap: 12px; font-weight: 600; box-shadow: 0 1px 2px rgba(12, 17, 29, .06); }
.btn-google:hover { background: var(--surface-2); color: var(--text); border-color: #C3C8D1; }
.google-g { width: 20px; height: 20px; flex: none; }
.login-perks { list-style: none; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.login-perks li { display: flex; align-items: center; gap: 8px; }
.login-perks .icon-sm { color: var(--success); }

/* ---------------------------------------------------------------- undangan anggota */
.invite-contacts { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.invite-search { width: 200px; }
.invite-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-height: 160px; overflow-y: auto; }
.invite-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer; }
.invite-chip:hover { border-color: var(--accent); }
.invite-chip.is-selected { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-text); }
.invite-chip .avatar-sm { width: 22px; height: 22px; }
@media (max-width: 560px) { .invite-search { width: 100%; margin-top: 6px; } }

/* ---------------------------------------------------------------- anggota job */
.member-list > li { padding: 12px 0; }
.member-row { display: flex; align-items: flex-start; gap: 12px; }
.member-row.is-revoked { opacity: .7; }
.member-row .mini-progress { max-width: 320px; }
.revoke { position: relative; }
.revoke > summary { list-style: none; }
.revoke > summary::-webkit-details-marker { display: none; }
.revoke-pop { position: absolute; right: 0; top: calc(100% + 6px); width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 14px; z-index: 20; }
.revoke-pop .select { width: 100%; }
@media (max-width: 560px) { .member-row { flex-wrap: wrap; } .revoke-pop { width: min(260px, calc(100vw - 48px)); } }

/* ---------------------------------------------------------------- billing */
.kpi-unit { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.text-success { color: #15803D !important; }
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.package { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color var(--ease), box-shadow var(--ease), background var(--ease); }
.package:hover { border-color: #C3C8D1; }
.package input { position: absolute; opacity: 0; pointer-events: none; }
.package:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-ring); }
.package:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.package-min { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.package-min small { font-size: 12px; font-weight: 500; color: var(--muted); }
.package-price { font-size: 12.5px; color: var(--muted); }
.topup-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 16px 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.topup-total strong { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.topup-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topup-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 12.5px; }
.topup-steps li strong { display: block; color: var(--text); font-size: 13.5px; }
.topup-step-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); font-weight: 600; font-size: 12px; }
.topup-steps li.is-done .topup-step-no { background: var(--success-soft); color: var(--success); }
.topup-steps li.is-current { border-color: var(--accent-border); background: var(--accent-soft); }
.topup-steps li.is-current .topup-step-no { background: var(--accent); color: #fff; }
.pay-amount { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 14px; }
.pay-amount-value { font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.banks .bank { padding: 12px 0; }
.bank-name { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bank-number { font-size: 18px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.proof-img { max-width: 100%; max-height: 360px; border-radius: 10px; border: 1px solid var(--border); display: block; }
.dropzone.is-busy { opacity: .6; pointer-events: none; }
@media (max-width: 700px) { .topup-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- invoice */
.invoice { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 36px; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.invoice-title { text-align: right; }
.invoice-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.invoice-number { font-size: 20px; font-weight: 650; letter-spacing: -.01em; margin: 4px 0 8px; }
.invoice-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0; }
.invoice-meta span { display: block; font-size: 12px; color: var(--muted); }
.invoice-meta strong { display: block; font-size: 15px; margin-top: 4px; }
.invoice-meta em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.invoice-table tfoot td { border-top: 1px solid var(--border-strong); height: 48px; font-size: 15px; }
.invoice-foot { margin-top: 20px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); }
@media (max-width: 560px) { .invoice { padding: 20px; } .invoice-meta { grid-template-columns: 1fr; } .invoice-title { text-align: left; } }
@media print { .invoice { border: 0; padding: 0; } }
.kpi-value-sm { font-size: 22px; }
.seg-radio { position: relative; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; font-size: 13px; cursor: pointer; color: var(--muted); border-right: 1px solid var(--border); background: var(--surface); }
.seg-radio:last-child span { border-right: 0; }
.seg-radio input:checked + span { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.seg-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav-count.is-alert { background: var(--danger); border-color: var(--danger); color: #fff; }
.sidebar-credit { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; margin: 12px 12px 0; padding: 10px 12px; border-radius: var(--radius-lg); border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--text); }
.sidebar-credit:hover { text-decoration: none; color: var(--text); border-color: var(--accent); }
.sidebar-credit strong { grid-column: 1; font-size: 15px; letter-spacing: -.01em; }
.sidebar-credit .small { grid-column: 1; }
.sidebar-credit-cta { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; color: var(--accent); }
.sidebar-credit.is-low { border-color: #FCE3B5; background: var(--warning-soft); }
.sidebar-credit.is-low .sidebar-credit-cta { color: #B45309; }
.sidebar-credit + .sidebar-user { margin-top: 8px; }

/* ---------------------------------------------------------------- dashboard: admin & onboarding */
.admin-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13px; box-shadow: var(--shadow); }
.admin-strip:hover { text-decoration: none; color: var(--muted); border-color: var(--border-strong); }
.admin-strip span { display: inline-flex; align-items: center; gap: 6px; }
.admin-strip strong { color: var(--text); }
.admin-strip.has-waiting { border-color: var(--accent-border); background: var(--accent-soft); }
.admin-strip-cta { margin-left: auto; color: var(--accent); font-weight: 500; }
.onboarding-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.onboarding-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.onboarding-steps p { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.onb-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; }
@media (max-width: 1100px) { .onboarding-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .onboarding-steps { grid-template-columns: minmax(0, 1fr); } .admin-strip-cta { margin-left: 0; } }
.list-plain.card-section { padding: 4px 24px 14px; }
@media (max-width: 900px) { .list-plain.card-section { padding: 4px 16px 12px; } }
.grid-kpi-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-kpi-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- landing: harga */
.lp-pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; }
.lp-price-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.lp-price-points li { display: flex; gap: 10px; align-items: flex-start; }
.lp-price-points .icon-sm { color: var(--success); margin-top: 3px; flex: none; }
.lp-price-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-md); }
.lp-price { font-size: 52px; font-weight: 650; letter-spacing: -.045em; line-height: 1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.lp-price-cur { font-size: 22px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.lp-price-unit { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.lp-price-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 22px 0 14px; }
.lp-price-pkg { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.lp-price-pkg strong { font-size: 15px; }
.lp-price-pkg span { font-size: 13px; color: var(--muted); }
@media (max-width: 1100px) { .lp-pricing { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 640px) { .lp-price { font-size: 42px; } .lp-price-card { padding: 20px; } }
.mail-test-input { flex: 1 1 240px; max-width: 360px; }
/* persetujuan S&K di halaman masuk */
.login-google { display: grid; gap: 14px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.consent input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--ink); }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid { border-color: var(--danger); background: var(--danger-soft, #FEF3F2); }
.login-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* dokumen hukum (/app/syarat, /app/privasi) */
.legal { max-width: 820px; padding-top: 48px; padding-bottom: 72px; color: var(--text); line-height: 1.7; font-size: 15px; }
.legal-head h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -.02em; margin: 6px 0 8px; }
.legal-meta { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.legal h2 { font-size: 19px; letter-spacing: -.01em; margin: 40px 0 12px; scroll-margin-top: 80px; }
.legal h3 { font-size: 15px; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--text-2, #344054); overflow-wrap: anywhere; }
.legal ol, .legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); text-underline-offset: 2px; }
.legal section { scroll-margin-top: 80px; }
.legal-summary { border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius-lg); padding: 16px 20px; margin: 20px 0 8px; }
.legal-summary ul { margin: 8px 0 0; }
.legal-toc { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 20px; margin: 24px 0 8px; background: var(--surface); }
.legal-toc ol { columns: 2; column-gap: 32px; margin: 0; font-size: 14px; }
.legal-toc li { margin: 3px 0; break-inside: avoid; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
.legal-foot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
@media (max-width: 640px) {
    .legal { padding-top: 28px; font-size: 14.5px; }
    .legal-toc ol { columns: 1; }
    .legal-table th, .legal-table td { padding: 8px; }
}
.upload-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
.upload-note .icon-sm { flex: none; margin-top: 2px; color: var(--subtle); }
.upload-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lp-legal-links { margin: 18px 0 0; font-size: 13.5px; }
.lp-legal-links a { color: rgba(255, 255, 255, .78); text-decoration: underline; text-underline-offset: 2px; }
.legal .table-wrap { margin: 10px 0 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.legal .table-wrap .legal-table tr:last-child td { border-bottom: 0; }
/* kata kunci: ringkasan tingkat & select tingkat per baris */
.kw-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kw-level { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.kw-level strong { font-size: 20px; }
.kw-level:hover, .kw-level.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.kw-count { margin: 0; padding-top: 0; }
.kw-sev { min-width: 96px; }
.kw-sev-kritis { border-color: var(--danger); color: var(--danger); }
.kw-sev-tinggi { border-color: #F59E0B; }
@media (max-width: 900px) { .kw-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.finding-hits { color: var(--muted); }
