

:root {
    color-scheme: light;

    
    --biru-tua:      #123a63;
    --biru:          #1c67ac;
    --biru-terang:   #2f8ae0;
    --biru-aksi:      #1c67ac;
    --biru-aksi-hover:#154f85;
    --biru-pucat:    #eaf2fb;
    --biru-pucat-tepi: #cfe0f3;
    --biru-latar:    #f3f7fb;
    
    --biru-cahaya: 47, 138, 224;

    --hijau-stempel:       #1f7a49;
    --hijau-stempel-latar: #e9f6ee;
    --hijau-stempel-tepi:  #b8ddc4;
    --hijau-jam:     #1f7a49;
    --jingga:        #c06a1e;
    --jingga-latar:  #fdf3e9;
    --merah:         #c23a4a;
    --merah-latar:   #fbecee;
    --merah-latar-hover: #f6dde1;
    --merah-tepi:    #e5b7bf;
    --merah-teks:    #9c2c3a;
    --kuning:        #bd8a26;

    --teks:          #1e2731;
    --teks-lembut:   #57646f;
    --teks-samar:    #8996a3;
    --garis:         #dfe6ee;
    --putih:         #ffffff;

    
    --permukaan-2:        #f6f8fb;
    --permukaan-2-tepi:   #d3dce5;
    --permukaan-2-terisi: #c1d2e2;

    --panel-latar: #ffffff;
    
    --panel-kaca: rgba(255, 255, 255, .78);
    --panel-kaca-tepi: rgba(255, 255, 255, .55);
    --modal-latar: rgba(13, 26, 43, .44);
    --peta-latar:  #dfe8f0;
    --switch-latar: #d3dae2;

    --peringatan-latar: #fbf5e9;
    --peringatan-tepi:  #e8d3a0;
    --peringatan-teks:  #7a5a17;

    --info-latar: #e9f6ee;
    --info-tepi:  #b8ddc4;
    --info-teks:  #1f7a49;

    --gulir:       #cbd5e0;
    --gulir-hover: #a9b8c7;

    
    --bayang-1: 0 1px 2px rgba(18, 58, 99, .05), 0 3px 10px rgba(18, 58, 99, .05);
    --bayang-2: 0 3px 8px rgba(18, 58, 99, .08), 0 10px 24px rgba(18, 58, 99, .09);
    --bayang-3: 0 10px 20px rgba(18, 58, 99, .10), 0 24px 48px rgba(18, 58, 99, .14);

    
    --lengkung:   12px;
    --lengkung-s: 8px;

    
    --pegas-keluar: cubic-bezier(.23, 1, .32, 1);
    --pegas-gerak:  cubic-bezier(.77, 0, .175, 1);

    --bilah-tinggi:  36px;
    --kepala-tinggi: 60px;
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --biru-tua:      #cfe1f8;
    --biru:          #6fb4f0;
    --biru-terang:   #55aaf5;
    
    --biru-aksi:      #2870a8;
    --biru-aksi-hover:#1e5d8f;
    --biru-pucat:    #16324c;
    --biru-pucat-tepi: #1f3f5c;
    --biru-latar:    #0a121c;
    --biru-cahaya: 85, 170, 245;

    --hijau-stempel:       #5fc98a;
    --hijau-stempel-latar: #12291d;
    --hijau-stempel-tepi:  #234a34;
    --hijau-jam:     #5fc98a;
    --jingga:        #d99a52;
    --jingga-latar:  #2e2013;
    --merah:         #d9767c;
    --merah-latar:   #341f22;
    --merah-latar-hover: #442a2e;
    --merah-tepi:    #5c343a;
    --merah-teks:    #ecaab0;
    --kuning:        #e0b95e;

    --teks:          #e6edf5;
    --teks-lembut:   #9fb0c2;
    --teks-samar:    #6c7f93;
    --garis:         #26394c;
    --putih:         #141e2a;

    --permukaan-2:        #0e1620;
    --permukaan-2-tepi:   #26394c;
    --permukaan-2-terisi: #2c4258;

    --panel-latar: #141e2a;
    --panel-kaca: rgba(20, 30, 42, .72);
    --panel-kaca-tepi: rgba(255, 255, 255, .10);
    --modal-latar: rgba(0, 0, 0, .6);
    --peta-latar:  #0d141c;
    --switch-latar: #2c3b4a;

    --peringatan-latar: #2c2211;
    --peringatan-tepi:  #4a3a18;
    --peringatan-teks:  #dcb96e;

    --info-latar: #12291d;
    --info-tepi:  #234a34;
    --info-teks:  #5fc98a;

    --gulir:       #29384a;
    --gulir-hover: #384d64;

    
    --bayang-1: 0 1px 2px rgba(0, 0, 0, .35), 0 3px 10px rgba(0, 0, 0, .3);
    --bayang-2: 0 3px 10px rgba(0, 0, 0, .4), 0 10px 26px rgba(0, 0, 0, .4);
    --bayang-3: 0 10px 24px rgba(0, 0, 0, .45), 0 24px 52px rgba(0, 0, 0, .5);
}

:root[data-theme="dark"] .info-tip-bubble,
:root[data-theme="dark"] .chart-tooltip,
:root[data-theme="dark"] .archive-tooltip,
:root[data-theme="dark"] .report-header-tooltip,
:root[data-theme="dark"] .leaflet-tooltip {
    background: #172633;
    border: 1px solid #38516a;
    color: #edf4fb;
}
:root[data-theme="dark"] .info-tip-bubble::before { border-bottom-color: #172633; }
:root[data-theme="dark"] .info-tip-bubble.flip-up::before {
    border-bottom-color: transparent; border-top-color: #172633;
}
:root[data-theme="dark"] .chart-tooltip::after { border-top-color: #172633; }
:root[data-theme="dark"] .archive-tooltip-title { border-bottom-color: rgba(237, 244, 251, .18); }
:root[data-theme="dark"] .archive-tooltip-row { color: #b6c7d7; }
:root[data-theme="dark"] .archive-tooltip-row span:last-child { color: #edf4fb; }
:root[data-theme="dark"] .leaflet-tooltip::before { border-right-color: #172633; }

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html, body {
    height: 100%;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    color: var(--teks);
    background: var(--biru-latar);
    -webkit-font-smoothing: antialiased;
}

body, .panel, .modal, .header, .time-bar, input, select, textarea,
button.btn, .settings-tab, .tl-tab, .rain-source button {
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.time-bar {
    height: var(--bilah-tinggi);
    background: var(--permukaan-2);
    border-bottom: 1px solid var(--garis);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    color: var(--teks-lembut); font-size: 11px; font-weight: 650;
}
.time-date, .time-block { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.time-date-label, .time-bar .label {
    color: var(--teks-samar); font-size: 9.5px; font-weight: 800;
    letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.time-bar .date { color: var(--teks-lembut); text-transform: uppercase; letter-spacing: .035em; white-space: nowrap; }
.time-bar .time-right { display: flex; align-items: center; gap: 10px; }
.time-divider { width: 1px; height: 16px; background: var(--garis); }
.time-bar .clock {
    font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
    color: var(--biru-tua); font-size: 12.5px;
    letter-spacing: .08em;
    font-weight: 700;
}
.time-bar .clock-utc { color: var(--teks-lembut); }

.header {
    height: var(--kepala-tinggi);
    background: var(--putih);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    box-shadow: var(--bayang-1);
    position: relative;
    z-index: 400;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }

.brand .logo {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    position: relative;
}

.logo-img {
    grid-area: 1 / 1;
    width: 100%; height: 100%; object-fit: contain; border-radius: 50%;
    filter: drop-shadow(0 1px 2px rgba(20, 57, 94, .18));
}
.logo-img-dark { display: none; }
:root[data-theme="dark"] .logo-img-light { display: none; }
:root[data-theme="dark"] .logo-img-dark { display: block; }

.brand .name {
    font-size: 12px; font-weight: 800; line-height: 1.2;
    text-transform: uppercase; letter-spacing: .02em; color: var(--biru-tua);
    border-left: 1px solid var(--garis); padding-left: 13px;
}
.brand .name span { display: block; }
.brand .name .sub {
    font-weight: 600; color: var(--teks-lembut);
    text-transform: none; letter-spacing: 0; font-size: 10.5px;
}

.ic {
    width: 16px; height: 16px; flex: none; display: block;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}

.conn {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 14px 7px 11px;
    border: 1px solid var(--garis); border-radius: 999px;
    font-size: 12.5px; font-weight: 600; color: var(--teks-lembut);
    background: var(--putih);
}
.conn .led {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--teks-samar); flex: none;
}

.conn.connected .led { background: var(--hijau-jam); animation: napas 2.6s ease-in-out infinite; }
@keyframes napas {
    0%, 100% { box-shadow: 0 0 0 3px rgba(31, 122, 73, .16); }
    50%      { box-shadow: 0 0 0 6px rgba(31, 122, 73, .08); }
}
@media (prefers-reduced-motion: reduce) { .conn.connected .led { animation: none; box-shadow: 0 0 0 3px rgba(31, 122, 73, .16); } }
.conn.connecting .led { background: var(--kuning); animation: pulse 1.1s infinite; }
.conn.offline .led { background: var(--merah); }

button.conn.profile-trigger {
    appearance: none; -webkit-appearance: none; font: inherit; cursor: pointer;
    transition: border-color .14s, color .14s;
}
button.conn.profile-trigger:hover { border-color: var(--biru); color: var(--biru); }
button.conn.profile-trigger .ic { width: 15px; height: 15px; }
@media (max-width: 640px) {
    .profile-trigger span:not(.ic) { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.profile-identity {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
    padding-bottom: 14px; border-bottom: 1px solid var(--garis);
}
.profile-identity strong { font-size: 15px; color: var(--teks); }
.profile-role-badge {
    padding: 3px 10px; border-radius: 999px; background: var(--biru-pucat); color: var(--biru);
    font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
.profile-password-form { display: grid; gap: 12px; }
.profile-password-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--teks-lembut); }

.header-actions { display: flex; align-items: center; gap: 7px; }

.icon-btn {
    display: grid; place-items: center;
    width: 32px; height: 32px; flex: none;
    border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    background: var(--putih); color: var(--teks-lembut);
    cursor: pointer;
    transition: background .14s, color .14s, border-color .14s, transform .16s var(--pegas-keluar);
}
.icon-btn:hover { background: var(--biru-pucat); color: var(--biru); border-color: var(--biru-pucat-tepi); }
.icon-btn.active { background: var(--biru-pucat); color: var(--biru); border-color: var(--biru-pucat-tepi); }
.icon-btn:active { transform: scale(.94); }

@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

.body-area {
    position: relative;
    height: calc(100vh - var(--bilah-tinggi) - var(--kepala-tinggi));
    height: calc(100dvh - var(--bilah-tinggi) - var(--kepala-tinggi));
    display: flex;
}

#panel-data.sidebar {
    position: relative;
    flex: none;
    width: 366px;
    max-width: 46vw;
    height: 100%;
    border: 0;
    border-right: 1px solid var(--garis);
    border-radius: 0;
    box-shadow: var(--bayang-1);
    background: var(--putih);
    z-index: 450;
    transition: width .22s ease;
}
#panel-data.sidebar[hidden] { display: none !important; }

#panel-data.sidebar { background: var(--permukaan-2); }
#panel-data .panel-head {
    padding: 12px 12px 12px 15px;
    background: var(--putih);
}
#panel-data .panel-title { font-size: 12px; letter-spacing: .07em; }
#panel-data .panel-body {
    display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0;
    align-content: start; gap: 12px;
    padding: 13px 12px 20px; overflow-y: auto; overflow-x: hidden;
    background: var(--permukaan-2);
}

#panel-data .panel-body > .section {
    margin: 0; padding: 13px;
    min-width: 0; max-width: 100%;
    border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    background: var(--panel-latar); box-shadow: var(--bayang-1);
}
#panel-data .panel-body > .section + .section {
    margin-top: 0; padding-top: 13px; border-top: 1px solid var(--garis);
}
#panel-data .panel-body > .btn-row {
    margin: 0; padding: 10px;
    border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    background: var(--panel-latar); box-shadow: var(--bayang-1);
}
#panel-data .section-title {
    display: flex; align-items: center; gap: 6px;
    color: var(--biru-tua); margin-bottom: 11px;
}
#panel-data .section-title:has(.info-tip) {
    
    display: inline-flex; width: fit-content;
}
#panel-data .section-title .info-tip { flex: none; }
#panel-data .switch { min-width: 0; }
#panel-data .switch > span:last-child { min-width: 0; line-height: 1.4; }
#panel-data label.field:last-child { margin-bottom: 0; }
#panel-data .field-with-btn { align-items: stretch; }
#panel-data .field-with-btn .btn { padding-inline: 11px; }
#panel-data .drop-row {
    margin-top: 8px; padding: 10px 10px 10px 12px;
    border-style: solid; border-color: var(--garis);
    background: var(--permukaan-2);
}
#panel-data .drop-row:hover { border-color: var(--biru-pucat-tepi); background: var(--biru-latar); }
#panel-data .drop-row .btn { flex: none; padding-inline: 10px; }
#panel-data .drop-files:not(:empty) { margin: 5px 2px 1px; }
#panel-data .drop-files .file-row {
    width: 100%; max-width: 100%; min-width: 0; overflow: hidden;
    column-gap: 7px;
}
#panel-data .shp-picker { gap: 7px; }
#panel-data .shp-picker-searchrow { align-items: stretch; }
#panel-data .shp-picker-searchrow .btn { padding-inline: 9px; white-space: normal; line-height: 1.2; }
#panel-data .shp-picker-results { background: var(--permukaan-2); }
#panel-data .shp-picker-summary { padding: 1px 1px 0; }
#panel-data .btn-row > .btn { min-height: 38px; }

.accumulation-link {
    margin-top: 10px; padding: 9px 10px; border: 1px solid var(--garis);
    border-radius: 9px; background: var(--permukaan-2);
}
.accumulation-link-head { display: flex; align-items: center; gap: 9px; }
.accumulation-link-head > div { flex: 1; min-width: 0; }
.accumulation-link .name { display: block; font-size: 11.5px; font-weight: 750; color: var(--teks); }
.accumulation-link p { margin: 2px 0 0; color: var(--teks-lembut); font-size: 10.5px; line-height: 1.35; }
.accumulation-link-head .btn { flex: none; white-space: nowrap; }
.accumulation-link-recommendations {
    margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--garis);
    color: var(--teks-lembut); font-size: 10.5px; line-height: 1.35;
}
.accumulation-link-selected {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--biru-pucat-tepi);
    color: var(--teks-lembut); font-size: 11px; line-height: 1.35;
}
.accumulation-link-selected > span { min-width: 0; overflow-wrap: anywhere; }

#panel-data.sidebar.collapsed {
    width: 0; overflow: visible; border-right: 0;
}

#panel-data.sidebar.collapsed .panel-body,
#panel-data.sidebar.collapsed .panel-head { display: none; }

.map-wrap { position: relative; flex: 1; min-width: 0; height: 100%; }
#map, #map2 { position: absolute; inset: 0; background: var(--peta-latar); }
#map2 { display: none; }

.map-wrap.compare { display: flex; }
.map-wrap.compare #map, .map-wrap.compare #map2 {
    position: relative; inset: auto; flex: 1; min-width: 0; display: block;
}

.map-wrap.compare #map {
    border-right: 2px solid var(--biru-tua);
    box-shadow: 2px 0 5px rgba(0, 0, 0, .22);
    z-index: 1;
}

.map-split-label {
    display: none;
    position: absolute; top: 12px; z-index: 456;
    background: var(--panel-kaca); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--panel-kaca-tepi); border-radius: 999px;
    padding: 5px 13px; font-size: 11.5px; font-weight: 800;
    letter-spacing: .04em; text-transform: uppercase; color: var(--biru-tua);
    box-shadow: var(--bayang-1); pointer-events: none;
}
.map-split-label-left { left: 12px; }
.map-split-label-right { right: 12px; }

.map-toolbar {
    position: absolute; top: 12px; right: 12px; z-index: 456;
    display: flex; align-items: center; gap: 6px; overflow: visible;
}
.map-basemap-switcher { position: relative; min-width: 122px; }
.map-basemap-trigger {
    display: flex; align-items: center; width: 100%; height: 34px; padding: 0 10px;
    border: 1px solid var(--panel-kaca-tepi); border-radius: var(--lengkung-s);
    background: var(--panel-kaca); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--bayang-1); color: var(--teks); cursor: pointer;
    font: inherit; transition: border-color .14s, box-shadow .14s, background .14s, transform .16s var(--pegas-keluar);
}
.map-basemap-trigger:active { transform: scale(.97); }
.map-basemap-icon {
    flex: 0 0 auto; width: 15px; height: 15px; margin-right: 7px; color: var(--biru);
}
.map-basemap-label {
    flex: 1; min-width: 0; overflow: hidden; text-align: left; text-overflow: ellipsis;
    white-space: nowrap; font-size: 11.5px; font-weight: 700; line-height: 1.2;
}
.map-basemap-chevron {
    flex: 0 0 auto; width: 11px; height: 11px; margin-left: 7px; color: var(--teks-samar);
    transition: transform .15s ease;
}

.map-basemap-switcher select {
    
    width: 100%; height: 34px; padding: 0 28px 0 32px;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    border: 1px solid var(--panel-kaca-tepi); border-radius: var(--lengkung-s);
    background: var(--panel-kaca); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--bayang-1); font-size: 11.5px; font-weight: 700;
    color: var(--teks); cursor: pointer; line-height: 1.2;
    transition: border-color .14s, box-shadow .14s, background .14s;
}
.map-basemap-switcher:hover select,
.map-basemap-switcher:focus-within select {
    border-color: var(--biru-terang); box-shadow: var(--bayang-2);
}
.map-basemap-switcher:focus-within .map-basemap-chevron { transform: translateY(-50%) rotate(180deg); }
.map-toolbar-divider { display: none; }

.map-basemap-trigger:hover,
.map-basemap-switcher.open .map-basemap-trigger,
.map-basemap-switcher:focus-within .map-basemap-trigger {
    border-color: var(--biru-terang); box-shadow: var(--bayang-2);
}
.map-basemap-switcher.open .map-basemap-chevron { transform: rotate(180deg); }
.map-basemap-menu {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 2;
    width: 100%; padding: 6px; border: 1px solid var(--panel-kaca-tepi); border-radius: var(--lengkung);
    background: var(--panel-kaca); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--bayang-2);
    animation: pop-in .14s var(--pegas-keluar);
}
.map-basemap-menu[hidden] { display: none; }
.map-basemap-option {
    display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 34px;
    padding: 0 9px; border: 0; border-radius: 9px; background: transparent; color: var(--teks);
    cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 650; text-align: left;
    transition: background .14s ease, color .14s ease;
}
.map-basemap-option:hover,
.map-basemap-option:focus-visible { background: var(--biru-pucat); color: var(--biru-tua); outline: 0; }
.map-basemap-option[aria-selected="true"] { color: var(--biru); font-weight: 800; }
.map-basemap-check { width: 14px; height: 14px; opacity: 0; }
.map-basemap-option[aria-selected="true"] .map-basemap-check { opacity: 1; }

.map-zoomstep { position: relative; }
.map-zoomstep-btn {
    display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
    border: 1px solid var(--panel-kaca-tepi); border-radius: var(--lengkung-s);
    background: var(--panel-kaca); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--bayang-1); color: var(--teks); cursor: pointer;
    transition: border-color .14s, box-shadow .14s, background .14s, color .14s, transform .16s var(--pegas-keluar);
}
.map-zoomstep-btn:active { transform: scale(.94); }
.map-zoomstep-btn .ic { width: 15px; height: 15px; }
.map-zoomstep-btn span { display: none; }
.map-zoomstep-btn:hover, .map-zoomstep-btn.active {
    border-color: var(--biru-terang); box-shadow: var(--bayang-2);
    background: var(--panel-latar); color: var(--biru);
}
.map-zoomstep-panel {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 218px; padding: 14px 16px; border-radius: var(--lengkung);
    background: var(--panel-kaca); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--panel-kaca-tepi); box-shadow: var(--bayang-2);
    animation: pop-in .14s var(--pegas-keluar);
}
.map-zoomstep-panel[hidden] { display: none; }
.map-zoomstep-panel label {
    display: block; font-size: 11.5px; font-weight: 700; color: var(--teks);
    margin-bottom: 9px;
}
.map-zoomstep-row { display: flex; align-items: center; gap: 8px; }
.map-zoomstep-tag { font-size: 10px; color: var(--teks-samar); white-space: nowrap; }
.map-zoomstep-row input[type=range] { flex: 1; accent-color: var(--biru); cursor: pointer; }
.map-zoomstep-value {
    margin-top: 8px; text-align: center; font-size: 11px; font-weight: 700;
    color: var(--biru); font-variant-numeric: tabular-nums;
}
.map-wrap.compare .map-split-label { display: block; }

.map-wrap.compare .map-split-label-right { top: 64px; }
body.dock-collapsed .map-toolbar { right: 54px; }

@media (max-width: 560px) {
    .map-toolbar { top: 10px; right: 10px; }
    .map-basemap-switcher { min-width: 112px; }
    .map-basemap-icon { width: 14px; height: 14px; }
    .map-wrap.compare .map-split-label-right { top: 58px; }
}

body.sidebar-collapsed .map-wrap.compare .map-split-label-left { left: 54px; }
body.dock-collapsed .map-wrap.compare .map-split-label-right { right: 54px; }

.edge-toggle {
    position: absolute; top: 12px; z-index: 460;
    display: none; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border: 1px solid var(--panel-kaca-tepi); background: var(--panel-kaca);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: var(--lengkung-s); cursor: pointer;
    color: var(--biru); box-shadow: var(--bayang-1);
    transition: background .14s, border-color .14s, transform .12s;
}
.edge-toggle:hover { background: var(--biru-pucat); border-color: var(--biru-pucat-tepi); }
.edge-toggle:active { transform: scale(.94); }
.edge-toggle-left { left: 12px; }
.edge-toggle-right { right: 12px; }
body.sidebar-collapsed .edge-toggle-left { display: flex; }
body.dock-collapsed .edge-toggle-right { display: flex; }

.dock {
    position: relative;
    flex: none;
    width: 384px;
    max-width: 50vw;
    height: 100%;
    display: flex; flex-direction: column;
    background: var(--putih);
    border-left: 1px solid var(--garis);
    box-shadow: var(--bayang-1);
    z-index: 450;
    transition: width .22s ease;
}
.dock.collapsed { width: 0; overflow: visible; border-left: 0; }
.dock.collapsed .dock-tabs, .dock.collapsed .dock-body { display: none; }

.dock-tabs {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 32px; align-items: stretch; flex: none;
    border-bottom: 1px solid var(--garis);
    background: var(--putih);
    overflow: hidden;
}
.dock-tabs button {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    
    min-width: 0;
    border: 0; background: transparent; cursor: pointer;
    padding: 9px 3px 7px;
    font: inherit; font-size: 10px; font-weight: 700; color: var(--teks-samar);
    white-space: nowrap; overflow: hidden;
    transition: background .14s, color .14s, transform .16s var(--pegas-keluar);
}
.dock-tabs button .ic { width: 15px; height: 15px; }
.dock-tabs button > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dock-tabs button:hover { color: var(--biru); background: var(--biru-pucat); }
.dock-tabs button:active { transform: scale(.96); }
.dock-tabs button.active { color: var(--biru); }
.dock-tabs button.active::after {
    content: ''; position: absolute; left: 14%; right: 14%; bottom: 0;
    height: 2.5px; border-radius: 2px 2px 0 0;
    background: var(--biru);
}
.dock-tab-dot {
    position: absolute; top: 9px; right: 22%;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--jingga);
    box-shadow: 0 0 0 2px var(--putih);
    animation: pulse 1.4s ease-in-out infinite;
}

.dock-collapse {
    flex: none; min-width: 0; width: auto;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-left: 1px solid var(--garis); background: transparent;
    color: var(--teks-samar); cursor: pointer;
    transition: background .14s, color .14s, transform .22s ease;
}
.dock-collapse:hover { background: var(--biru-pucat); color: var(--biru); }

.dock-collapse[aria-expanded="false"] { transform: rotate(180deg); }

.dock-body {
    flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px 15px 22px;
    background: var(--permukaan-2);
}
.dock-panel { display: none; animation: rise-fade .22s ease; }
.dock-panel.active { display: grid; gap: 12px; }
.dock-panel, .dock-panel > *,
#hasil-stats, #hasil-tanggal, #hasil-charts, #hasil-table, #hasil-ingest, #hasil-export {
    min-width: 0;
}

.dock-panel > .section,
.dock-panel[data-tab-panel="proses"] > .row,
.dock-panel[data-tab-panel="hasil"] > .empty,
.dock-panel[data-tab-panel="antrian"] > #queue-body,
.dock-panel[data-tab-panel="arsip"] > #archive-body {
    margin: 0; padding: 13px;
    border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    background: var(--panel-latar); box-shadow: var(--bayang-1);
}
.dock-panel > .section + .section { margin-top: 0; padding-top: 13px; border-top: 1px solid var(--garis); }
.dock-panel[data-tab-panel="proses"] > .progress-bar { margin: 1px 2px 0; }
.dock-panel[data-tab-panel="proses"] > .row { align-items: center; padding-block: 10px; }
.dock-panel[data-tab-panel="proses"] > .row .label { font-size: 12px; font-weight: 700; }
.dock-panel[data-tab-panel="proses"] > .row .label { flex: none; }
.dock-panel[data-tab-panel="proses"] > .row #job-state {
    flex: 1;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dock-panel[data-tab-panel="hasil"] > .empty { padding: 20px 14px; }
.dock-panel[data-tab-panel="arsip"] > #archive-body,
.dock-panel[data-tab-panel="antrian"] > #queue-body { display: grid; gap: 9px; }
.dock-panel .section-title { margin-bottom: 11px; }

@keyframes rise-fade {
    from { opacity: 0; transform: translateY(6px); }
}

.panel {
    background: var(--panel-latar);
    border: 1px solid var(--garis);
    border-radius: var(--lengkung);
    box-shadow: var(--bayang-2);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.panel.collapsed .panel-body { display: none; }
.panel[hidden] { display: none !important; }

.panel-head {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 12px 11px 15px;
    border-bottom: 1px solid var(--garis);
    background: var(--putih);
    flex: none;
}
.panel-title {
    font-size: 12.5px; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: var(--biru-tua); flex: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.panel-btn {
    border: 0; background: transparent; cursor: pointer;
    width: 26px; height: 26px; border-radius: 6px;
    display: grid; place-items: center;
    color: var(--teks-samar); font-size: 15px; line-height: 1;
    transition: background .14s, color .14s;
}
.panel-btn:hover { background: var(--biru-pucat); color: var(--biru); }

.panel-body { padding: 14px 15px 16px; overflow-y: auto; overflow-x: hidden; }

.section + .section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--garis); }

.section + .btn-row { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--garis); }
.section-title {
    font-size: 11px; font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; color: var(--teks-samar); margin-bottom: 10px;
}

.row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13.5px; }
.row .label { color: var(--teks-lembut); min-width: 0; overflow-wrap: anywhere; }
.row .value {
    font-weight: 700; text-align: right; font-variant-numeric: tabular-nums;
    min-width: 0; overflow-wrap: anywhere;
}

.headline {
    background: linear-gradient(135deg, var(--biru-pucat), var(--putih) 130%);
    border: 1px solid var(--biru-pucat-tepi);
    border-radius: var(--lengkung-s); padding: 13px 15px; margin: 12px 0 4px;
    min-width: 0;
}
.headline .caption { font-size: 11px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: var(--biru); margin-bottom: 4px; }
.headline .val {
    font-size: 26px; font-weight: 800; color: var(--biru-tua);
    line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.headline .unit-sm { font-size: 13px; font-weight: 600; color: var(--teks-lembut); }

label.field { display: block; margin-bottom: 13px; }

label.field > .name {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 700; color: var(--teks); margin-bottom: 5px;
}
label.field .unit { font-weight: 600; color: var(--teks-samar); font-size: 11.5px; }
label.field .hint { font-size: 11.5px; color: var(--teks-lembut); line-height: 1.45; margin-top: 4px; }

.info-tip {
    position: relative; display: inline-flex; flex: none;
    border: 0; background: none; padding: 0; margin: 0; cursor: help;
}
.info-tip-icon {
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--biru-pucat); border: 1px solid var(--biru-pucat-tepi);
    color: var(--biru); font-size: 10px; font-weight: 800; font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    display: grid; place-items: center; line-height: 1;
    transition: background .14s, color .14s;
}

.info-tip:hover .info-tip-icon,
.info-tip:focus-visible .info-tip-icon,
label.field > .name:hover .info-tip-icon,
.section-title:hover .info-tip-icon {
    background: var(--biru-aksi); border-color: var(--biru-aksi); color: #fff;
}

.info-tip-bubble {
    
    position: fixed; left: 0; top: 0;
    transform: translateY(-4px);
    width: max-content; max-width: 240px;
    
    background: var(--biru-tua); color: #fff;
    padding: 8px 10px; border-radius: 7px;
    font-size: 11.5px; font-weight: 400; line-height: 1.5; text-align: left;
    box-shadow: var(--bayang-2);
    opacity: 0; visibility: hidden; pointer-events: none;
    
    z-index: 1200;
    transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.info-tip-bubble::before {
    content: ''; position: absolute; left: 10px; bottom: 100%;
    border: 5px solid transparent; border-bottom-color: var(--biru-tua);
}

.info-tip-bubble.flip-up::before {
    bottom: auto; top: 100%;
    border-bottom-color: transparent; border-top-color: var(--biru-tua);
}
.info-tip-bubble.flip-up { transform: translateY(4px); }

#panel-data .info-tip-bubble { max-width: 190px; }

.info-tip-bubble.is-shown {
    opacity: 1; visibility: visible; transform: translateY(0);
}

label.field > .name:has(.info-tip),
.section-title:has(.info-tip) { cursor: help; }
label.field:has(> input:hover, > select:hover, > textarea:hover, > .field-with-btn:hover) .info-tip-bubble {
    opacity: 0 !important; visibility: hidden !important;
}

.field-with-btn { display: flex; gap: 6px; }
.field-with-btn select { flex: 1; min-width: 0; }
.field-with-btn .settings-custom-select { flex: 1; min-width: 0; }
.field-with-btn .btn.tiny { flex: none; }

.hint {
    display: block; margin-top: 8px;
    font-size: 11.5px; color: var(--teks-lembut); line-height: 1.5;
}
.hint:first-child { margin-top: 0; }

.hint:empty { display: none; margin-top: 0; }

input[type=text], input[type=password], input[type=number], input[type=date], select, textarea {
    width: 100%; padding: 8px 11px; font: inherit; font-size: 13.5px;
    border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    background: var(--putih); color: var(--teks);
    transition: border-color .14s, box-shadow .14s;
}

input::placeholder,
textarea::placeholder {
    color: var(--teks-samar);
    opacity: 1;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    letter-spacing: normal;
}

input[placeholder] {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
input[placeholder]::placeholder { text-overflow: ellipsis; }
input:focus, select:focus, textarea:focus {
    outline: 0; border-color: var(--biru-terang);
    box-shadow: 0 0 0 3px rgba(43,127,212,.14);
}
input.changed, select.changed { border-color: var(--jingga); background: var(--jingga-latar); }

.switch { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.switch input { display: none; }
.switch .track {
    width: 36px; height: 20px; border-radius: 999px; background: var(--switch-latar);
    position: relative; transition: background .16s; flex: none;
}
.switch .track::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform .16s;
}
.switch input:checked + .track { background: var(--biru-terang); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch:has(input:disabled) { opacity: .55; cursor: default; }

.plot-mask-switch { margin: 8px 0 2px; }

.shp-style-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px;
    margin: 6px 0 8px; padding: 10px;
    background: var(--permukaan-2); border: 1px solid var(--garis);
    border-radius: 10px;
}
.shp-style-label {
    font-size: 11.5px; font-weight: 700; color: var(--teks-samar);
    grid-column: 1 / -1;
}
.shp-style-field {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    min-width: 0; font-size: 10.5px; font-weight: 700; color: var(--teks-samar);
}
.shp-style-field input[type="color"] {
    width: 100%; height: 29px; padding: 2px;
    border: 1px solid var(--garis); border-radius: 7px;
    background: var(--putih); cursor: pointer;
}
.shp-style-field input[type="number"] {
    width: 100%; height: 29px; padding: 4px 7px;
    border: 1px solid var(--garis); border-radius: 7px;
    background: var(--putih); color: var(--teks); font: inherit; font-size: 11.5px;
}
.shp-line-dropdown { position: relative; min-width: 0; }
.shp-line-trigger {
    display: flex; align-items: center; gap: 6px; width: 100%; height: 29px; padding: 0 8px;
    border: 1px solid var(--garis); border-radius: 7px; background: var(--putih);
    color: var(--teks); cursor: pointer; font: inherit; font-size: 11.5px; text-align: left;
    transition: border-color .14s ease, box-shadow .14s ease;
}
.shp-line-trigger:hover,
.shp-line-dropdown.open .shp-line-trigger { border-color: var(--biru-terang); box-shadow: var(--bayang-1); }
.shp-line-trigger:focus { outline: 0; box-shadow: none; }
.shp-line-trigger-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shp-line-sample { flex: none; width: 18px; border-top: 2px solid currentColor; color: var(--biru); }
.shp-line-sample.is-dashed { border-top-style: dashed; }
.shp-line-sample.is-dotted { border-top-style: dotted; border-top-width: 3px; }
.shp-line-sample.is-dashdot { border-top: 0; height: 2px; background: repeating-linear-gradient(90deg, currentColor 0 7px, transparent 7px 10px, currentColor 10px 12px, transparent 12px 16px); }
.shp-line-chevron { flex: none; width: 12px; height: 12px; color: var(--teks-samar); transition: transform .14s ease; }
.shp-line-dropdown.open .shp-line-chevron { transform: rotate(180deg); }
.shp-line-menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 8; width: 100%; min-width: 142px;
    padding: 5px; border: 1px solid var(--garis); border-radius: 10px; background: var(--panel-latar);
    box-shadow: var(--bayang-2); animation: pop-in .14s var(--pegas-keluar);
}
.shp-line-menu[hidden] { display: none; }
.shp-line-option {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 29px; padding: 0 7px;
    border: 0; border-radius: 6px; background: transparent; color: var(--teks); cursor: pointer;
    font: inherit; font-size: 11.5px; font-weight: 650; text-align: left;
}
.shp-line-option:hover,
.shp-line-option[aria-selected="true"] { background: var(--biru-pucat); color: var(--biru); }
.shp-line-option:focus { outline: 0; background: var(--biru-pucat); }

button.btn {
    padding: 9px 17px; border-radius: var(--lengkung-s); border: 1px solid transparent;
    font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
    transition: background .14s, border-color .14s, color .14s, transform .16s var(--pegas-keluar);
}

button.btn:active { transform: scale(.97); }
button.btn.primary { background: var(--biru-aksi); color: #fff; }
button.btn.primary:hover { background: var(--biru-aksi-hover); }
button.btn.secondary { background: var(--putih); border-color: var(--garis); color: var(--teks-lembut); }
button.btn.secondary:hover { border-color: var(--biru-terang); color: var(--biru); }

button.btn.danger { background: var(--merah-latar); border-color: var(--merah-tepi); color: var(--merah-teks); }
button.btn.danger:hover { background: var(--merah-latar-hover); border-color: var(--merah); }
button.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 9px; flex-wrap: wrap; }

.btn-row > .btn { flex: 1; min-width: 0; }

.settings-tab {
    display: flex; align-items: center; gap: 10px;
    width: 100%; border: 1px solid transparent; background: transparent; cursor: pointer;
    padding: 9px 12px; border-radius: var(--lengkung-s); font: inherit;
    font-size: 12.5px; font-weight: 600; color: var(--teks-lembut);
    text-align: left; transition: background .12s, color .12s;
}
.settings-tab .ic { flex: none; color: var(--teks-samar); transition: color .12s; }
.settings-tab:hover { background: var(--putih); color: var(--teks); }
.settings-tab.active {
    background: var(--biru-aksi); border-color: var(--biru-aksi); color: #fff;
    box-shadow: var(--bayang-1);
}
.settings-tab.active .ic { color: #fff; }

#stage-list {
    box-sizing: border-box;
    height: 190px;
    min-height: 190px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}
.stage { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.stage .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--garis); flex: none; }
.stage.running  .dot { background: var(--biru-terang); animation: pulse 1.1s infinite; }
.stage.done   .dot { background: var(--hijau-jam); }
.stage.skipped  .dot { background: #b9cbdc; }
.stage.failed     .dot { background: var(--merah); }
.stage.cancelled  .dot { background: var(--teks-samar); }
.stage .name { flex: 1; color: var(--teks-lembut); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
.stage.running .name, .stage.done .name { color: var(--teks); font-weight: 600; }
.stage .ticks { font-size: 11.5px; color: var(--teks-samar); font-variant-numeric: tabular-nums; }

.progress-bar { height: 6px; border-radius: 999px; background: var(--garis); overflow: hidden; margin: 4px 0 12px; }
.progress-bar > i { display: block; height: 100%; border-radius: 999px;
    background: var(--biru);
    transition: width .3s ease; }

.log {
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px;
    background: #0f1c29; color: #b9d4ec; border-radius: var(--lengkung-s);
    padding: 11px 13px; max-height: 190px; overflow: auto; line-height: 1.65;
}
.log .error { color: #ff9b9b; }
.log .ok  { color: #8fe3b4; }
.log .ts { color: #5d7a94; }

.layer-list { display: flex; flex-direction: column; gap: 3px; }
.layer {
    display: flex; align-items: center; gap: 10px; padding: 7px 9px;
    border-radius: var(--lengkung-s); cursor: pointer; font-size: 13.5px;
    transition: background .12s;
}
.layer:hover { background: var(--biru-pucat); }
.layer .swatch { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.layer .name { flex: 1; }
.layer .count { font-size: 11.5px; color: var(--teks-samar); font-variant-numeric: tabular-nums; }

.colorbar .gradient { height: 11px; border-radius: 3px; margin-bottom: 5px; }

.colorbar .ticks {
    display: flex; justify-content: space-between;
    font-size: 9px; color: var(--teks-lembut); font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

.seed-point {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--merah); border: 1.6px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
    transition: transform .1s, outline-color .1s;
}

.seed-point-selected .seed-point {
    outline: 3px solid var(--biru-terang); outline-offset: 1.5px;
    transform: scale(1.25);
}
:root[data-theme="dark"] .seed-point {
    background: #df817a;
    border-color: #d8e4ee;
    box-shadow: 0 1px 3px rgba(0,0,0,.58);
}
:root[data-theme="dark"] .seed-point-selected .seed-point { outline-color: #78aede; }

.seed-point-actions { display: flex; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.seed-point-actions .btn { flex: 1; min-width: 0; }

.toast-area {
    position: fixed; right: 20px; bottom: 20px; z-index: 1300;
    display: flex; flex-direction: column-reverse; gap: 9px;
    width: min(380px, calc(100vw - 40px));
}
.toast {
    display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px;
    background: var(--panel-latar); border: 1px solid var(--biru-pucat-tepi);
    border-radius: var(--lengkung-s); box-shadow: var(--bayang-2);
    padding: 11px 13px 11px 11px; font-size: 12.5px; line-height: 1.5;
    animation: slide-in .22s ease;
}
.toast::before {
    content: 'i'; grid-row: 1 / span 2; align-self: start;
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--lengkung-s);
    background: var(--biru-pucat); color: var(--biru); font-family: Georgia, serif;
    font-size: 16px; font-weight: 800; font-style: italic;
}
.toast.ok  { border-color: var(--hijau-stempel-tepi); }
.toast.error { border-color: var(--merah-tepi); }
.toast.warn { border-color: var(--peringatan-tepi); }

.toast.ok::before {
    content: '✓'; background: var(--hijau-stempel-latar); color: var(--hijau-stempel);
    font-family: inherit; font-style: normal; border-radius: 50%;
    border: 1.5px solid var(--hijau-stempel-tepi);
    animation: glow-settle .42s cubic-bezier(.16, 1, .3, 1) both;
}
.toast.warn::before { content: '!'; background: var(--peringatan-latar); color: var(--peringatan-teks); font-family: inherit; font-style: normal; }
.toast.error::before { content: '×'; background: var(--merah-latar); color: var(--merah-teks); font-family: inherit; font-style: normal; }
@keyframes glow-settle {
    from { opacity: 0; transform: scale(.7); box-shadow: 0 0 0 8px rgba(31, 122, 73, .16); }
    to   { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(31, 122, 73, 0); }
}
@media (prefers-reduced-motion: reduce) { .toast.ok::before { animation: none; } }
.toast .title { font-weight: 800; margin-bottom: 1px; }
.toast .body { color: var(--teks-lembut); }
@keyframes slide-in { from { opacity: 0; transform: translateY(10px) } }

.dropzone {
    border: 2px dashed var(--permukaan-2-tepi); border-radius: var(--lengkung);
    padding: 26px 18px; text-align: center; cursor: pointer;
    background: var(--permukaan-2); transition: border-color .14s, background .14s;
}
.dropzone:hover, .dropzone.over { border-color: var(--biru-terang); background: var(--biru-pucat); }
.dropzone .icon { font-size: 26px; margin-bottom: 7px; opacity: .55; }
.dropzone .primary { font-weight: 700; font-size: 13.5px; margin-bottom: 3px; }
.dropzone .sub { font-size: 12px; color: var(--teks-lembut); line-height: 1.5; }

.file-row {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 76px) auto;
    align-items: center; column-gap: 10px; width: 100%; overflow: hidden;
    padding: 8px 10px;
    border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    box-sizing: border-box; min-width: 0; max-width: 100%;
    font-size: 12.5px; margin-top: 7px; background: var(--putih);
}
.drop-files { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }

.file-row .name {
    min-width: 0; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.file-row .size {
    min-width: 0; max-width: 76px; overflow: hidden;
    text-overflow: ellipsis; color: var(--teks-samar);
    font-variant-numeric: tabular-nums; white-space: nowrap;
}

.file-row.is-error { border-color: var(--merah-tepi); background: var(--merah-latar); }
.file-row.is-error .size { color: var(--merah-teks); font-weight: 700; }

.warning {
    background: var(--peringatan-latar); border: 1px solid var(--peringatan-tepi);
    border-radius: var(--lengkung-s);
    padding: 10px 12px; font-size: 12.5px; color: var(--peringatan-teks); line-height: 1.55;
    margin-top: 9px;
}

.info-note {
    background: var(--info-latar); border: 1px solid var(--info-tepi);
    border-radius: var(--lengkung-s);
    padding: 10px 12px; font-size: 12.5px; color: var(--info-teks); line-height: 1.55;
    margin-top: 9px;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gulir); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gulir-hover); }

.leaflet-container { font-family: inherit; }
.empty { text-align: center; padding: 22px 12px; color: var(--teks-samar); font-size: 13px; line-height: 1.6; }

:root[data-theme="dark"] .leaflet-popup-content-wrapper,
:root[data-theme="dark"] .leaflet-popup-tip {
    background: var(--putih);
    color: var(--teks);
    box-shadow: var(--bayang-2);
}
:root[data-theme="dark"] .leaflet-popup-close-button {
    color: var(--teks-samar) !important;
}
:root[data-theme="dark"] .leaflet-popup-close-button:hover {
    color: var(--teks) !important;
}

.pos-hujan-popup .leaflet-popup-content-wrapper {
    border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    box-shadow: var(--bayang-2); background: var(--putih); color: var(--teks);
}
.pos-hujan-popup .leaflet-popup-tip {
    background: var(--putih); border-color: var(--garis);
    box-shadow: 1px 1px 0 var(--garis);
}
.pos-hujan-popup .leaflet-popup-content { margin: 0; width: 286px !important; }
.pos-hujan-popup .leaflet-popup-close-button {
    width: 28px !important; height: 28px !important; line-height: 26px !important;
    top: 7px !important; right: 7px !important; border: 1px solid transparent;
    border-radius: 7px; color: var(--teks-samar) !important; font-size: 20px !important;
    transition: background .15s, border-color .15s, color .15s;
}
.pos-hujan-popup .leaflet-popup-close-button:hover {
    background: var(--permukaan-2); border-color: var(--garis); color: var(--teks) !important;
}
.pos-hujan-popup-card { overflow: hidden; border-radius: calc(var(--lengkung-s) - 1px); }
.pos-hujan-popup-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 14px 48px 12px 14px; border-bottom: 1px solid var(--garis);
    background: linear-gradient(135deg, var(--putih), var(--biru-latar));
}
.pos-hujan-popup-title { min-width: 0; display: grid; gap: 3px; }
.pos-hujan-popup-eyebrow,
.pos-hujan-popup-label {
    color: var(--teks-samar); font-size: 9.5px; font-weight: 800;
    letter-spacing: .065em; line-height: 1.2; text-transform: uppercase;
}
.pos-hujan-popup-title strong {
    overflow: hidden; color: var(--biru-tua); font-size: 14px; font-weight: 800;
    line-height: 1.35; text-overflow: ellipsis; white-space: nowrap;
}
.pos-hujan-popup-id { color: var(--teks-samar); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.pos-hujan-popup-status {
    display: inline-flex; flex: none; align-items: center; gap: 5px;
    padding: 4px 7px; border: 1px solid transparent; border-radius: 6px;
    font-size: 9.5px; font-weight: 800; letter-spacing: .025em; line-height: 1; text-transform: uppercase;
    white-space: nowrap;
}
.pos-hujan-popup-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pos-hujan-popup-status.is-active { background: var(--hijau-stempel-latar); border-color: var(--hijau-stempel-tepi); color: var(--hijau-stempel); }
.pos-hujan-popup-status.is-inactive { background: var(--permukaan-2); border-color: var(--permukaan-2-tepi); color: var(--teks-samar); }
.pos-hujan-popup-location {
    display: flex; align-items: center; gap: 10px; margin: 12px 14px 8px;
    padding: 10px; border: 1px solid var(--biru-pucat-tepi); border-radius: 7px; background: var(--biru-pucat);
}
.pos-hujan-popup-pin {
    display: grid; flex: none; width: 30px; height: 30px; place-items: center;
    border: 1px solid var(--biru-pucat-tepi); border-radius: 7px; background: var(--putih); color: var(--biru);
}
.pos-hujan-popup-pin svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.pos-hujan-popup-location > div { min-width: 0; display: grid; gap: 2px; }
.pos-hujan-popup-location strong { color: var(--teks); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pos-hujan-popup-coordinate-note { color: var(--teks-samar); font-size: 10px; }
.pos-hujan-popup-metrics {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    margin: 0 14px; padding: 8px 10px; border-bottom: 1px solid var(--garis);
    color: var(--teks-lembut); font-size: 11.5px;
}
.pos-hujan-popup-metrics strong { color: var(--teks); font-size: 12px; font-variant-numeric: tabular-nums; }
.pos-hujan-popup-details { display: grid; gap: 0; margin: 0; padding: 5px 14px 12px; }
.pos-hujan-popup-detail {
    display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 9px; padding: 6px 0;
    border-bottom: 1px solid var(--garis); font-size: 11px; line-height: 1.35;
}
.pos-hujan-popup-detail:last-child { border-bottom: 0; }
.pos-hujan-popup-detail dt { color: var(--teks-samar); }
.pos-hujan-popup-detail dd { min-width: 0; margin: 0; color: var(--teks); font-weight: 700; overflow-wrap: anywhere; text-align: right; }

@media (max-width: 480px) {
    .pos-hujan-popup .leaflet-popup-content { width: min(276px, calc(100vw - 52px)) !important; }
    .pos-hujan-popup-detail { grid-template-columns: 82px minmax(0, 1fr); }
}

:root[data-theme="dark"] .leaflet-control-attribution {
    background: rgba(20, 30, 42, .8) !important;
    color: var(--teks-samar) !important;
}
:root[data-theme="dark"] .leaflet-control-attribution a { color: var(--biru) !important; }

.modal-backdrop {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center;
    padding: 24px;
    background: var(--modal-latar);
    backdrop-filter: blur(2px);
    animation: fade-in .16s ease;
}
.modal-backdrop[hidden] { display: none !important; }
@keyframes fade-in { from { opacity: 0 } }

@keyframes pop-in { from { opacity: 0; transform: scale(.97) } }

.splash {
    position: fixed; inset: 0; z-index: 4000;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--biru) 15%, transparent), transparent 42%),
        var(--modal-latar);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: opacity .35s ease, visibility .35s ease;
}
.splash.splash-hide { opacity: 0; visibility: hidden; pointer-events: none; }

.splash.splash-restore-prepared {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
}
.splash-card {
    width: min(390px, calc(100vw - 40px)); height: 282px;
    box-sizing: border-box; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 14px;
    padding: 28px 36px 26px; border: 1px solid var(--permukaan-2-tepi);
    border-radius: calc(var(--lengkung) + 4px);
    background: var(--putih);
    box-shadow: var(--bayang-3); position: relative; overflow: hidden;
}
.splash-logo {
    width: 68px; height: 68px; display: grid; place-items: center;
    position: relative;
    animation: splash-logo-enter .42s cubic-bezier(.2, .8, .3, 1) both;
}
.splash-logo::after {
    content: ''; position: absolute; z-index: 0; left: 15px; right: 15px; bottom: 1px;
    height: 7px; border-radius: 50%; background: rgba(20, 57, 94, .22);
    filter: blur(5px); transform: translateY(6px);
}
.splash-logo .logo-img {
    width: 58px; height: 58px; z-index: 1; animation: none;
    filter: drop-shadow(0 2px 2px rgba(20, 57, 94, .14));
}
@keyframes splash-logo-enter {
    from { opacity: 0; transform: translateY(5px) scale(.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.splash-identity { display: grid; gap: 3px; text-align: center; }
.splash-title {
    color: var(--biru-tua); font-size: 14px; line-height: 1.2;
    font-weight: 800; letter-spacing: .015em;
}
.splash-subtitle { color: var(--teks-samar); font-size: 11.5px; line-height: 1.25; }
.splash-spinner {
    width: 116px; height: 4px; overflow: hidden; border-radius: 99px;
    background: color-mix(in srgb, var(--biru) 12%, var(--garis));
}
.splash-spinner::after {
    content: ''; display: block; width: 42%; height: 100%; border-radius: inherit;
    background: var(--biru); animation: splash-progress 1.35s ease-in-out infinite;
}
@keyframes splash-progress {
    from { transform: translateX(-115%); }
    to { transform: translateX(280%); }
}
.splash-status {
    width: 100%; height: 38px; overflow: hidden; box-sizing: border-box;
    display: grid; place-items: center; padding: 0 8px;
    font-size: 13px; line-height: 1.45; color: var(--teks-samar); text-align: center;
}
@media (prefers-reduced-motion: reduce) {
    .splash-logo, .splash-spinner::after { animation: none; }
}

.modal {
    width: min(760px, 100%);
    max-height: min(78vh, 720px);
    display: flex; flex-direction: column;
    background: var(--putih);
    border-radius: var(--lengkung);
    box-shadow: var(--bayang-3);
    overflow: hidden;
    animation: modal-rise .18s cubic-bezier(.2, .8, .3, 1);
}

@keyframes modal-rise { from { opacity: 0; margin-top: 12px } }

.modal.modal-sm { width: min(420px, 100%); max-height: none; }

.modal-body.modal-body-center { display: block; text-align: center; padding: 24px 22px; }
.modal-body-center .headline { text-align: left; }

.modal.modal-lg { width: min(1100px, 96vw); max-height: min(92vh, 940px); }
.modal.modal-admin-dashboard { width: min(980px, 96vw); }
.admin-dashboard-tabs { display:flex; gap:6px; padding:10px 18px; border-bottom:1px solid var(--garis); background:var(--putih); }
.admin-dashboard-tabs button { border:1px solid transparent; background:transparent; color:var(--teks-lembut); border-radius:7px; padding:7px 12px; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.admin-dashboard-tabs button.active { background:var(--biru-pucat); color:var(--biru-tua); border-color:var(--biru-pucat-tepi); }
.admin-dashboard-body { min-height:420px; max-height:min(66vh,650px); overflow:auto; padding:18px; background:var(--latar); }
.admin-activity-list, .admin-account-list { background:var(--putih); border:1px solid var(--garis); border-radius:10px; overflow:auto; }
.admin-activity-row, .admin-account-row { display:grid; grid-template-columns:135px 130px minmax(130px,1fr) minmax(150px,1.2fr); gap:10px; align-items:center; padding:10px 12px; border-bottom:1px solid var(--garis); font-size:12px; }
.admin-activity-row:last-child, .admin-account-row:last-child { border-bottom:0; }
.admin-activity-row .muted { overflow-wrap:anywhere; }
.admin-account-form { display:grid; grid-template-columns:minmax(150px,1fr) 130px minmax(180px,1fr) auto; gap:10px; margin-bottom:14px; }
.admin-account-form input, .admin-account-form select, .admin-config-fields input, .admin-config-fields select { min-width:0; width:100%; }
.admin-account-actions { display:flex; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.admin-config-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-bottom:16px; }
.admin-config-field { display:flex; flex-direction:column; gap:5px; padding:10px; border:1px solid var(--garis); border-radius:9px; background:var(--putih); }
.admin-config-field label { font-size:12px; font-weight:700; color:var(--teks); }
.admin-config-field small { color:var(--teks-lembut); font-size:11px; line-height:1.35; }
@media (max-width:700px) { .admin-dashboard-body { padding:12px; } .admin-account-form { grid-template-columns:1fr; } .admin-activity-row, .admin-account-row { grid-template-columns:1fr; gap:4px; } .admin-account-actions { justify-content:flex-start; } }
.modal.modal-accumulation { width: min(650px, 100%); max-height: min(78vh, 720px); }
.modal-subtitle { display: block; margin-top: 3px; color: var(--teks-lembut); font-size: 11.5px; line-height: 1.35; }
.accumulation-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.accumulation-list-label { color: var(--teks-lembut); font-size: 11px; font-weight: 700; }
.accumulation-sort { position: relative; flex: 0 1 205px; min-width: 0; }
.accumulation-sort-trigger {
    display: flex; align-items: center; justify-content: space-between; width: 100%; height: 32px;
    padding: 0 9px; border: 1px solid var(--garis); border-radius: 8px; background: var(--putih);
    color: var(--teks); cursor: pointer; font: inherit; font-size: 11.5px; text-align: left;
}
.accumulation-sort-trigger .ic { width: 12px; height: 12px; color: var(--teks-samar); transition: transform .14s ease; }
.accumulation-sort.open .accumulation-sort-trigger .ic { transform: rotate(180deg); }
.accumulation-sort-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 4; width: 100%; padding: 5px;
    border: 1px solid var(--garis); border-radius: var(--lengkung); background: var(--panel-latar);
    box-shadow: var(--bayang-2); animation: pop-in .14s var(--pegas-keluar);
}
.accumulation-sort-menu[hidden] { display: none; }
.accumulation-sort-menu button {
    display: block; width: 100%; min-height: 31px; padding: 0 8px; border: 0; border-radius: 7px;
    background: transparent; color: var(--teks); cursor: pointer; font: inherit; font-size: 11.5px;
    font-weight: 650; text-align: left;
}
.accumulation-sort-menu button:hover,
.accumulation-sort-menu button[aria-selected="true"] { background: var(--biru-pucat); color: var(--biru); }
.accumulation-sort-trigger:focus,
.accumulation-sort-menu button:focus { outline: 0; border-color: var(--garis); box-shadow: none; }
.accumulation-modal-body {
    display: flex; flex-direction: column; gap: 12px; min-height: 0;
    overflow: hidden; background: var(--permukaan-2);
}
.accumulation-intro { margin: 0; color: var(--teks-lembut); font-size: 12px; line-height: 1.5; }
.accumulation-candidate-list {
    display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; min-height: 60px;
    overflow: auto; padding: 1px 2px 2px;
}
.accumulation-candidate {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
    padding: 11px; border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    background: color-mix(in srgb, var(--accumulation-group-color, var(--biru)) 6%, var(--putih));
    cursor: pointer; transition: border-color .14s ease, background .14s ease;
}
.accumulation-candidate:hover { border-color: var(--accumulation-group-color, var(--biru)); background: color-mix(in srgb, var(--accumulation-group-color, var(--biru)) 10%, var(--putih)); }
.accumulation-candidate input { width: 15px; height: 15px; accent-color: var(--biru); }
.accumulation-candidate-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.accumulation-candidate-body strong { color: var(--teks); font-size: 12.5px; }
.accumulation-candidate-body span { color: var(--teks-lembut); font-size: 11.5px; overflow-wrap: anywhere; }
.accumulation-candidate-state { max-width: 150px; color: var(--hijau-teks, #18794e); font-size: 10.5px; line-height: 1.35; text-align: right; }
.accumulation-candidate.is-unavailable { cursor: not-allowed; opacity: .68; background: var(--permukaan-2); }
.accumulation-candidate.is-unavailable:hover { border-color: var(--garis); background: var(--permukaan-2); }
.accumulation-candidate.is-unavailable .accumulation-candidate-state { color: var(--peringatan-teks); }
#plot-viewer-body { padding: 12px; background: var(--permukaan-2); }
#plot-viewer-img {
    display: block; margin: 0 auto;
    max-width: 100%; max-height: min(82vh, 860px);
    width: auto; height: auto;
    border-radius: 8px; box-shadow: var(--bayang-2);
}
#plot-viewer-img[hidden] { display: none; }

.plot-viewer-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; min-height: 320px;
    color: var(--teks-samar); font-size: 13px; font-weight: 600;
}
.plot-viewer-loading.is-error { color: var(--merah-teks); }
.spinner-ring-lg {
    width: 36px; height: 36px; flex: none; box-sizing: border-box;
    border: 3px solid var(--biru-pucat-tepi); border-top-color: var(--biru);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.plot-viewer-loading.is-error .spinner-ring-lg { display: none; }

.modal-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--garis);
    background: var(--putih);
    flex: none;
}
.modal-title {
    flex: 1; font-size: 13px; font-weight: 800;
    letter-spacing: .05em; text-transform: uppercase; color: var(--biru-tua);
}

.modal-title-group { flex: 1; min-width: 0; display: grid; gap: 2px; }
.modal-title-group .modal-title { flex: none; }
.modal-subtitle {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 10.5px; font-weight: 700; color: var(--biru);
}
.modal-btn {
    border: 0; background: transparent; cursor: pointer;
    width: 30px; height: 30px; border-radius: 7px;
    display: grid; place-items: center;
    color: var(--teks-samar); font-size: 19px; line-height: 1;
    transition: background .14s, color .14s;
}
.modal-head > .modal-btn[data-modal-close] { margin-left: auto; flex: none; }
.modal-btn:hover { background: var(--biru-pucat); color: var(--biru); }

.modal-head-danger {
    background: var(--merah-latar);
    border-bottom-color: var(--merah-tepi);
}
.modal-head-danger .modal-title { color: var(--merah-teks); }
.modal-head-warn {
    background: var(--peringatan-latar);
    border-bottom-color: var(--peringatan-tepi);
}
.modal-head-warn .modal-title { color: var(--peringatan-teks); }
.modal-head-info {
    background: var(--biru-latar);
    border-bottom-color: var(--biru-pucat-tepi);
}
.modal-head-info .modal-title { color: var(--biru-tua); }

.warning-icon {
    width: 48px; height: 48px; margin: 2px auto 14px;
    border: 1px solid currentColor; border-radius: 14px;
    display: grid; place-items: center;
}
.warning-icon .ic { width: 24px; height: 24px; }
.warning-icon.tone-danger { background: var(--merah-latar); color: var(--merah-teks); }
.warning-icon.tone-warn   { background: var(--peringatan-latar); color: var(--peringatan-teks); }
.warning-icon.tone-info   { background: var(--biru-pucat); color: var(--biru-tua); }
.warning-headline {
    font-size: 15px; font-weight: 800; color: var(--teks);
    margin-bottom: 10px;
}
.warning-text {
    max-width: 350px; font-size: 12.5px; line-height: 1.65; color: var(--teks-lembut);
    text-align: left; margin: 0 auto;
}

.confirm-gap-context {
    max-width: 350px;
    margin: 12px auto 0;
    text-align: left;
}

.modal-body {
    padding: 16px;
    overflow: auto;
    flex: 1;
}
.modal-body > .empty { grid-column: 1 / -1; }

.modal.modal-reprocess {
    width: min(1060px, 94vw); max-height: min(90dvh, 860px);
}

.modal.modal-batch-group-config {
    width: min(520px, 92vw); max-height: min(88dvh, 760px);
}
.modal-batch-group-config .field + .drop-row { margin-top: 4px; }
.modal-batch-group-config .drop-row + .field { margin-top: 14px; }
.reprocess-head {
    padding: 16px 20px; border-bottom-color: var(--biru-pucat-tepi);
    background: var(--biru-latar);
}
.reprocess-head-icon {
    display: grid; place-items: center; width: 34px; height: 34px; flex: none;
    border-radius: 10px; background: var(--biru-aksi); color: #fff;
}
.reprocess-head-icon .ic { width: 18px; height: 18px; }
.reprocess-heading { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.reprocess-heading .modal-title { flex: none; }
.reprocess-heading > span:last-child { color: var(--teks-lembut); font-size: 11.5px; }
.reprocess-body {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start;
    gap: 14px; padding: 20px; background: var(--permukaan-2);
}
.reprocess-intro {
    grid-column: 1 / -1; margin: 0; padding: 11px 13px; border: 1px solid var(--biru-pucat-tepi);
    border-radius: 10px; background: var(--biru-latar); color: var(--teks-lembut); font-size: 12px; line-height: 1.55;
}
.reprocess-intro b { color: var(--biru-tua); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; }
.reprocess-body > .section {
    margin: 0; padding: 15px; border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    background: var(--putih);
}
.reprocess-body > .section + .section { margin-top: 0; padding-top: 15px; border-top: 1px solid var(--garis); }
.reprocess-body > .section:nth-of-type(3) { grid-column: 1 / -1; }
.reprocess-body .section-title { margin-bottom: 12px; color: var(--biru); }
.reprocess-body .field:last-child { margin-bottom: 0; }
.reprocess-body .drop-row { background: var(--permukaan-2); }
.reprocess-body input:focus,
.reprocess-body select:focus { border-color: var(--garis); box-shadow: none; }
#modal-reprocess .modal-foot { background: var(--putih); }
#modal-reprocess .modal-foot .hint { font-size: 11.5px; }
#modal-reprocess .modal-foot { justify-content: flex-end; gap: 12px; }
#modal-reprocess .modal-foot .hint { margin-right: auto; }
#modal-reprocess .modal-foot .btn-row { flex: none; width: auto; }
#modal-reprocess .modal-foot .btn-row > .btn {
    flex: none; min-width: 0; padding: 8px 13px; font-size: 12.5px;
}

.modal.modal-settings {
    width: min(1020px, 96vw); height: min(86vh, 780px); overflow: hidden;
    border: 1px solid var(--permukaan-2-tepi); box-shadow: var(--bayang-3);
}
.modal.modal-settings .settings-head {
    min-height: 0; padding: 14px 16px;
    background: var(--putih); border-bottom: 1px solid var(--garis); color: var(--teks);
}
.settings-head-title { flex: 1; min-width: 0; }
.settings-head .modal-title { color: var(--biru-tua); font-size: 13px; letter-spacing: .05em; }
.settings-head-eyebrow { display: none; }
.settings-head .modal-btn {
    flex: none; margin-left: auto; width: 30px; height: 30px;
    color: var(--teks-samar); border: 0; background: transparent; font-size: 19px;
}
.settings-head .modal-btn:hover { background: var(--biru-pucat); color: var(--biru); }

.settings-shell {
    display: flex;
    padding: 0;
    overflow: hidden;
}

.settings-sidebar {
    flex: none; width: 218px;
    display: flex; flex-direction: column; gap: 4px;
    padding: 13px 10px;
    background: var(--permukaan-2);
    border-right: 1px solid var(--garis);
    overflow-y: auto;
}
.settings-sidebar::before {
    content: 'Menu pengaturan'; padding: 2px 8px 7px;
    font-size: 10px; font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; color: var(--teks-samar);
}

.settings-content {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
}

.settings-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 13px 20px 12px;
    border-bottom: 1px solid var(--garis);
    background: var(--putih); flex: none;
}
.settings-context { display: grid; gap: 2px; min-width: 0; }
.settings-context-label {
    font-size: 10px; font-weight: 800; letter-spacing: .085em;
    text-transform: uppercase; color: var(--teks-samar);
}
.settings-context strong { font-size: 14px; color: var(--biru-tua); line-height: 1.2; }
.settings-context-description { color: var(--teks-lembut); font-size: 11.5px; line-height: 1.35; }
.settings-toolbar > .switch { flex: none; padding: 7px 9px; border: 1px solid var(--garis); border-radius: var(--lengkung-s); background: var(--permukaan-2); }
.settings-advanced-label { font-size: 12px; font-weight: 700; color: var(--teks-lembut); }

.settings-fields {
    padding: 16px 20px 20px;
    overflow: auto;
    flex: 1;
    
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    align-content: start;
    background: var(--permukaan-2);
}
.settings-fields > .empty { grid-column: 1 / -1; }

.settings-fields .settings-field {
    margin: 0; min-width: 0; padding: 12px;
    border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    background: var(--putih);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.settings-fields .settings-field:hover { border-color: var(--permukaan-2-tepi); }
.settings-fields .settings-field:focus-within {
    border-color: var(--permukaan-2-tepi); box-shadow: none;
}
.settings-fields .settings-field > .name { margin-bottom: 8px; font-size: 12.5px; }
.settings-fields .settings-field > input,
.settings-fields .settings-field > select { width: 100%; min-width: 0; }
.settings-fields .settings-field > input:focus,
.settings-fields .settings-field > select:focus,
.settings-fields .settings-field .field-with-btn select:focus { border-color: var(--garis); box-shadow: none; }
.settings-native-select { display: none; }
.settings-custom-select { position: relative; width: 100%; min-width: 0; }
.settings-fields .field-with-btn .settings-custom-select { flex: 1; }
.settings-select-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; min-width: 0; height: 36px; padding: 0 10px;
    border: 1px solid var(--garis); border-radius: 8px; background: var(--permukaan-2);
    color: var(--teks); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 650;
    text-align: left; box-shadow: none;
}
.settings-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-select-trigger .ic { flex: none; width: 13px; height: 13px; color: var(--teks-samar); transition: transform .14s ease; }
.settings-custom-select.open .settings-select-trigger .ic { transform: rotate(180deg); }
.settings-select-trigger:focus { outline: 0; border-color: var(--garis); box-shadow: none; }
.settings-custom-select.changed .settings-select-trigger { border-color: var(--jingga); background: var(--jingga-latar); }
.settings-select-menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 12;
    width: 100%; max-height: 210px; overflow: auto; padding: 5px;
    border: 1px solid var(--garis); border-radius: 10px; background: var(--putih);
    box-shadow: var(--bayang-2); animation: pop-in .14s var(--pegas-keluar);
}
.settings-select-menu[hidden] { display: none; }
.settings-select-menu button {
    display: block; width: 100%; min-height: 33px; padding: 0 8px;
    border: 0; border-radius: 7px; background: transparent; color: var(--teks);
    cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; text-align: left;
}
.settings-select-menu button:hover,
.settings-select-menu button[aria-selected="true"] { background: var(--biru-pucat); color: var(--biru); }
.settings-select-menu button:focus { outline: 0; box-shadow: none; }
.settings-fields .settings-field .field-with-btn { align-items: stretch; }
.settings-fields .settings-field .field-with-btn .btn { padding-inline: 10px; }
.settings-switch-field { display: flex; align-items: center; min-height: 58px; }
.settings-switch-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.settings-switch-control .switch { min-width: 0; }
.settings-switch-label { min-width: 0; font-size: 12.5px; font-weight: 750; line-height: 1.35; }
.settings-fields .settings-switch-field:has(input:checked) {
    background: var(--biru-pucat); border-color: var(--biru-pucat-tepi);
}
.settings-fields .settings-field input.changed,
.settings-fields .settings-field select.changed { border-color: var(--jingga); background: var(--jingga-latar); }
.modal.modal-settings .modal-foot { background: var(--putih); padding: 12px 20px; }
.modal.modal-settings .modal-foot .hint { font-size: 11.5px; color: var(--teks-lembut); }

.modal-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding: 13px 16px;
    border-top: 1px solid var(--garis);
    background: var(--permukaan-2);
    flex: none;
}
.modal-foot .hint { margin: 0; flex: 1; min-width: 180px; }

.modal-foot .btn-row {
    flex: 0 1 auto; width: auto; justify-content: flex-end; margin-left: auto;
}
.modal-foot .btn-row > .btn {
    flex: 0 0 auto; min-width: 82px; padding: 8px 14px; font-size: 12.5px;
}

.accumulation-overview-card { border-left: 1px solid var(--garis); }
.accumulation-section-title {
    margin: 12px 0 8px; color: var(--teks-samar); font-size: 11.5px;
    font-weight: 750; letter-spacing: .01em;
}
.card-title + .accumulation-section-title { margin-top: 2px; }
.accumulation-product-section {
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--garis);
}
.accumulation-product-section .accumulation-section-title { margin-top: 0; }
.accumulation-product-description { margin: 0 0 10px; color: var(--teks-lembut); font-size: 12px; line-height: 1.45; }
.accumulation-product-actions {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 8px;
}
.accumulation-product-actions .accumulation-product-group { margin: 0; min-width: 0; }
.accumulation-product-actions .plot-variant-btn { min-width: 0; }
.accumulation-product-actions .accumulation-product-map {
    grid-column: 1 / -1; flex-direction: row; justify-content: center; min-height: 34px;
    padding: 7px 11px; border-color: var(--biru-pucat-tepi); background: var(--biru-pucat);
    font-size: 11.5px;
}
@media (max-width: 560px) {
    .accumulation-product-actions { grid-template-columns: 1fr; }
}
.modal.modal-sm .modal-foot {
    padding: 12px 16px; background: var(--permukaan-2);
}
.modal.modal-sm .modal-foot .btn-row > .btn { min-width: 88px; }

.drop-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px 9px 12px;
    border: 1px dashed var(--permukaan-2-tepi); border-radius: var(--lengkung-s);
    background: var(--permukaan-2); margin-top: 7px;
    transition: border-color .14s, background .14s;
}
.drop-row.over { border-color: var(--biru-terang); background: var(--biru-pucat); }
.drop-row.filled { border-style: solid; border-color: var(--permukaan-2-terisi); background: var(--putih); }

.drop-info { flex: 1; min-width: 0; }
.drop-name { display: block; font-size: 12.5px; font-weight: 700; color: var(--teks); }
.drop-ext  { display: block; font-size: 11px; color: var(--teks-samar); margin-top: 1px; }

.btn.tiny { padding: 5px 12px; font-size: 12px; border-radius: 7px; }

.drop-files:not(:empty) { margin-top: 4px; }
.drop-files .file-row { margin-top: 4px; padding: 5px 9px; font-size: 11.5px; }
.drop-files .file-row .drop-x {
    border: 0; background: transparent; cursor: pointer;
    color: var(--teks-samar); font-size: 14px; line-height: 1;
    padding: 0 2px; border-radius: 4px;
}
.drop-files .file-row .drop-x:hover { color: var(--merah); background: var(--merah-latar); }

.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.field-pair .field { margin-bottom: 0; }

.shp-picker { display: flex; flex-direction: column; gap: 6px; }

.shp-picker-summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; font-size: 11.5px; color: var(--teks-lembut);
}
.shp-picker-summary-count { font-weight: 700; }

.shp-picker-clear.btn.tiny { padding: 3px 9px; font-size: 10.5px; flex: none; }

.shp-picker-chips {
    max-height: 96px; overflow-y: auto;
    border: 1px solid var(--permukaan-2-tepi); border-radius: var(--lengkung-s);
    background: var(--permukaan-2);
}
.shp-picker-chips:empty { display: none; border: none; }
.shp-chip {
    padding: 4px 4px 4px 9px; font-size: 11.5px;
    border-bottom: 1px solid var(--permukaan-2-tepi);
}
.shp-chip:last-child { border-bottom: none; }
.shp-chip:nth-child(even) { background: rgba(127, 127, 127, .05); }
.shp-chip-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.shp-chip-name {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shp-chip button {
    flex: none; width: 18px; height: 18px; line-height: 1; border: none;
    border-radius: 50%; background: transparent; color: var(--teks-samar); cursor: pointer;
    font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.shp-chip button:hover { background: var(--merah-latar); color: var(--merah-teks); }

.shp-chip .shp-chip-swatch {
    flex: none; width: 15px; height: 15px; padding: 0; margin: 0 1px;
    border: 1.5px solid var(--permukaan-2-tepi); border-radius: 50%;
    background: var(--warna, #999); cursor: pointer;
}
.shp-chip-swatch:hover { border-color: var(--teks-samar); }

.shp-chip-popover {
    position: fixed; z-index: 1300;
    display: flex; align-items: flex-end; gap: 7px; flex-wrap: wrap;
    width: max-content; max-width: 240px;
    padding: 9px; border: 1px solid var(--garis); border-radius: 9px;
    background: var(--putih); box-shadow: var(--bayang-2); animation: pop-in .12s var(--pegas-keluar);
}
.shp-chip-popover .shp-style-field {
    display: flex; flex-direction: column; gap: 3px;
    font-size: 10px; font-weight: 700; color: var(--teks-samar);
}
.shp-chip-popover input[type="color"] {
    width: 40px; height: 28px; padding: 2px; border: 1px solid var(--garis);
    border-radius: 6px; background: var(--putih); cursor: pointer;
}
.shp-chip-popover input[type="number"] {
    width: 52px; height: 28px; padding: 0 6px; border: 1px solid var(--garis);
    border-radius: 6px; background: var(--putih); color: var(--teks); font: inherit; font-size: 11.5px;
}
.shp-chip-popover select {
    height: 28px; padding: 0 6px; border: 1px solid var(--garis);
    border-radius: 6px; background: var(--putih); color: var(--teks); font: inherit; font-size: 11.5px;
}
.shp-chip-popover-applyall {
    flex: 1 0 100%; margin-top: 2px;
}

.shp-picker-searchrow { display: flex; gap: 6px; align-items: center; }
.shp-picker-search-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.shp-picker-search { flex: 1; min-width: 0; padding-right: 38px; }
.shp-picker-chevron {
    position: absolute; top: 0; right: 0; bottom: 0; width: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--garis); border-radius: 0 var(--lengkung-s) var(--lengkung-s) 0;
    background: var(--permukaan-2); color: var(--teks-lembut); cursor: pointer;
    z-index: 1;
}
.shp-picker-chevron .ic { width: 14px; height: 14px; transition: transform .14s ease; }
.shp-picker-chevron.is-open .ic { transform: rotate(180deg); }
.shp-picker-chevron:hover,
.shp-picker-chevron.is-open { background: var(--biru-pucat); border-color: var(--biru-pucat-tepi); color: var(--biru); }
.shp-picker-chevron:focus-visible { outline: 2px solid var(--biru-terang); outline-offset: 1px; }
.shp-picker-searchrow .btn { flex: none; }

.shp-picker { position: relative; }
.shp-picker-results {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
    max-height: 260px; overflow-y: auto;
    border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    background: var(--putih); padding: 3px; box-shadow: var(--bayang-2);
    animation: pop-in .12s var(--pegas-keluar);
}
.shp-result-empty, .shp-result-hint {
    display: block; padding: 7px 9px; font-size: 11.5px; color: var(--teks-samar);
}
.shp-result-hint { font-style: italic; }
.shp-result-group-label {
    padding: 5px 9px 2px; font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em; color: var(--teks-samar);
}
.shp-result-item, .shp-tree-row, .shp-tree-leaf {
    display: flex; align-items: center; gap: 8px; padding: 5px 9px;
    border-radius: var(--lengkung-s); cursor: pointer; font-size: 12.5px;
}
.shp-result-item:hover, .shp-tree-row:hover, .shp-tree-leaf:hover { background: var(--biru-pucat); }
.shp-result-item.is-selected, .shp-tree-row.is-selected, .shp-tree-leaf.is-selected { background: var(--biru-pucat); font-weight: 600; }
.shp-result-item input[type="checkbox"], .shp-tree-row input[type="checkbox"], .shp-tree-leaf input[type="checkbox"] { flex: none; }
.shp-result-item .name, .shp-tree-row .name, .shp-tree-leaf .name {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shp-result-item.incomplete { color: var(--teks-samar); }
.shp-result-item.is-unmaskable, .shp-tree-row.is-unmaskable, .shp-tree-leaf.is-unmaskable { color: var(--teks-samar); }
.shp-result-item.is-unmaskable input[type="checkbox"],
.shp-tree-row.is-unmaskable input[type="checkbox"],
.shp-tree-leaf.is-unmaskable input[type="checkbox"] { cursor: not-allowed; }

.shp-tree-warn {
    flex: none; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
    color: var(--peringatan-teks); cursor: help;
}
.shp-tree-warn .ic { width: 14px; height: 14px; }

.shp-tree-group + .shp-tree-group { margin-top: 2px; }
.shp-tree-group-head {
    display: flex; align-items: center; gap: 7px; width: 100%; padding: 6px 9px;
    border: none; background: transparent; color: var(--teks); cursor: pointer;
    font: inherit; font-size: 11.5px; font-weight: 700; text-align: left;
    text-transform: uppercase; letter-spacing: .03em;
}
.shp-tree-group-head:hover { background: var(--biru-pucat); border-radius: var(--lengkung-s); }
.shp-tree-group-head span:first-of-type { flex: 1; }
.shp-tree-arrow { flex: none; width: 12px; height: 12px; color: var(--teks-samar); transition: transform .14s ease; }
.shp-tree-arrow.is-open { transform: rotate(90deg); }
.shp-tree-childcount {
    flex: none; font-size: 10px; font-weight: 700; color: var(--teks-samar);
    background: var(--permukaan-2); border-radius: 999px; padding: 1px 6px;
}
.shp-tree-group-body { padding-left: 8px; }
.shp-tree-node { position: relative; }
.shp-tree-row { padding-right: 6px; }
.shp-tree-arrow-btn {
    flex: none; width: 18px; height: 18px; border: none; background: transparent;
    color: var(--teks-samar); cursor: pointer; display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.shp-tree-arrow-btn:hover { background: rgba(127, 127, 127, .15); }
.shp-tree-arrow-spacer { flex: none; width: 18px; }
.shp-tree-delete {
    flex: none; width: 18px; height: 18px; line-height: 1; border: none; border-radius: 50%;
    background: transparent; color: var(--teks-samar); cursor: pointer;
    font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.shp-tree-delete:hover { background: var(--merah-latar); color: var(--merah-teks); }
.shp-tree-children { padding-left: 22px; border-left: 1px dashed var(--permukaan-2-tepi); margin-left: 15px; }

.modal.modal-shp-map { display: flex; flex-direction: column; }
.shp-map-body {
    padding: 0; display: flex; flex-direction: column; flex: 1; min-height: 0;
}
.shp-map-toolbar {
    display: grid; grid-template-columns: minmax(210px, 270px) minmax(0, 1fr) max-content;
    align-items: center; gap: 10px;
    padding: 10px 16px; border-bottom: 1px solid var(--permukaan-2-tepi);
}
.shp-map-source-label {
    display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
}
.shp-map-source-label { min-width: 0; }
.shp-map-toolbar-context {
    display: flex; align-items: center; gap: 10px; min-width: 0;
}
.shp-map-native-select { display: none; }
.shp-map-custom-select { position: relative; width: min(270px, 100%); min-width: 0; }
.shp-map-select-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; min-width: 0; height: 34px; padding: 0 10px;
    border: 1px solid var(--garis); border-radius: 8px; background: var(--putih);
    color: var(--teks); cursor: pointer; font: inherit; font-size: 12px; font-weight: 650;
    text-align: left; box-shadow: none;
}
.shp-map-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shp-map-select-trigger .ic { flex: none; width: 13px; height: 13px; color: var(--teks-samar); transition: transform .14s ease; }
.shp-map-custom-select.open .shp-map-select-trigger .ic { transform: rotate(180deg); }
.shp-map-select-trigger:focus { outline: 0; border-color: var(--garis); box-shadow: none; }
.shp-map-custom-select.is-disabled .shp-map-select-trigger { cursor: default; color: var(--teks-samar); background: var(--permukaan-2); }
.shp-map-select-menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 1200;
    width: 100%; max-height: 220px; overflow: auto; padding: 5px;
    border: 1px solid var(--garis); border-radius: 10px; background: var(--putih);
    box-shadow: var(--bayang-2); animation: pop-in .14s var(--pegas-keluar);
}
.shp-map-select-menu[hidden] { display: none; }
.shp-map-select-group {
    display: block; margin: 5px 7px 3px; color: var(--teks-samar);
    font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.shp-map-select-menu button {
    display: block; width: 100%; min-height: 32px; padding: 0 8px;
    border: 0; border-radius: 7px; background: transparent; color: var(--teks);
    cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; text-align: left;
}
.shp-map-select-menu button:hover,
.shp-map-select-menu button[aria-selected="true"] { background: var(--biru-pucat); color: var(--biru); }
.shp-map-select-menu button:focus { outline: 0; box-shadow: none; }

.shp-map-recommend-toggle { flex: none; font-size: 12px; font-weight: 600; }
.shp-map-recommend-pending {
    display: flex; align-items: center; gap: 6px; flex: none;
    font-size: 11.5px; font-weight: 700; color: var(--biru);
}
.shp-map-recommend-pending .spinner-ring { width: 12px; height: 12px; border-width: 2px; }
.shp-map-hint {
    min-width: 0; overflow: hidden; color: var(--teks-samar);
    font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap;
}
.shp-map-hint kbd {
    font-family: inherit; font-size: 10.5px; padding: 1px 5px;
    border: 1px solid var(--permukaan-2-tepi); border-radius: 4px;
    background: var(--permukaan-2);
}
.shp-map-count-group { display: flex; align-items: center; gap: 8px; flex: none; }
.shp-map-count {
    font-size: 11.5px; font-weight: 700; color: var(--biru);
    white-space: nowrap;
}
.shp-map-count-group .btn.tiny { padding: 3px 9px; font-size: 10.5px; }
#shp-map-select-recommended {
    flex: 0 0 182px; width: 182px; white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.shp-map-mapwrap { position: relative; flex: 1; min-height: 420px; }
#shp-map-container { position: absolute; inset: 0; background: var(--permukaan-2); }
.shp-map-loading {
    position: absolute; top: 12px; right: 12px; z-index: 1000;
    display: flex; align-items: center; gap: 7px; min-height: 30px;
    padding: 0 10px; border: 1px solid var(--panel-kaca-tepi); border-radius: 999px;
    background: var(--panel-kaca); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--bayang-1);
    font-size: 11px; font-weight: 700; color: var(--teks-lembut);
    pointer-events: none;
}
.shp-map-loading .spinner-ring { width: 13px; height: 13px; border-width: 2px; }
.shp-map-loading #shp-map-loading-label { font-style: italic; }

.shp-map-mapwrap .leaflet-interactive { cursor: pointer; }

.shp-map-mapwrap .leaflet-interactive:focus { outline: none; }
.shp-map-line-settings {
    display: flex; align-items: center; gap: 9px; flex: 0 1 auto; min-width: 0;
}
.shp-map-line-title { color: var(--teks-samar); font-size: 11px; font-weight: 800; white-space: nowrap; }
.shp-map-line-color,
.shp-map-line-type {
    display: flex; align-items: center; gap: 6px; color: var(--teks-samar);
    font-size: 11px; font-weight: 700; white-space: nowrap;
}
.shp-map-line-color input[type="color"] {
    width: 30px; height: 30px; padding: 3px; border: 1px solid var(--garis);
    border-radius: 8px; background: var(--putih); cursor: pointer;
}
.shp-map-line-color input[type="color"]:focus { outline: 0; box-shadow: none; border-color: var(--garis); }
.shp-map-line-type { min-width: 182px; }
.shp-map-line-type .shp-map-custom-select { width: 132px; }
.shp-map-line-settings .shp-map-select-trigger { height: 30px; font-size: 11.5px; }
.shp-map-line-settings .shp-map-select-menu {
    top: auto; bottom: calc(100% + 6px); z-index: 1201;
}
@media (max-width: 680px) {
    .shp-map-toolbar { grid-template-columns: minmax(0, 1fr) max-content; }
    .shp-map-source-label { grid-column: 1 / -1; }
    .shp-map-toolbar-context { min-width: 0; }
    .shp-map-hint { display: none; }
    #shp-map-select-recommended { flex-basis: auto; width: auto; }
    .modal.modal-shp-map .modal-foot { align-items: flex-start; }
    .shp-map-line-settings { width: 100%; flex-wrap: wrap; }
    .shp-map-line-type { flex: 1; min-width: 0; }
    .shp-map-line-type .shp-map-custom-select { flex: 1; width: auto; }
}

.box-handle {
    box-sizing: border-box;
    width: 12px; height: 12px;
    background: #fff;
    border: 2px solid var(--merah, #d94141);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    cursor: grab;
}
.box-handle:active { cursor: grabbing; }
:root[data-theme="dark"] .box-handle { background: #182431; border-color: #df817a; }

.box-selected { cursor: move !important; }

.box-popup { font-size: 12.5px; line-height: 1.5; }
.box-popup b { color: var(--biru-tua, #14395e); }
.box-popup .hint { display: block; margin-top: 4px; font-size: 11px; }
.box-popup .box-del {
    margin-top: 8px; width: 100%;
    border: 1px solid var(--merah-tepi); background: var(--merah-latar);
    color: var(--merah-teks); border-radius: 6px;
    padding: 5px 8px; font: inherit; font-size: 12px; cursor: pointer;
}
.box-popup .box-del:hover { background: var(--merah-latar-hover); }

#btn-draw-box.active {
    background: var(--biru-aksi); border-color: var(--biru-aksi); color: #fff;
}

#box-totals:not(:empty) { margin-top: 10px; }

.plotview-handle {
    box-sizing: border-box;
    width: 12px; height: 12px;
    background: #fff;
    border: 2px solid #2b7fd4;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    cursor: grab;
}
.plotview-handle:active { cursor: grabbing; }
.plotview-selected { cursor: move !important; }

.hint .link-btn {
    background: none; border: none; padding: 0; margin: 0;
    font: inherit; font-size: inherit; color: var(--biru);
    text-decoration: underline; cursor: pointer;
}
.hint .link-btn:hover { color: var(--biru-terang); }

.map-bottom-overlay {
    position: absolute; left: 12px; right: 12px; bottom: 12px;
    z-index: 455;
    display: flex; flex-direction: column-reverse; gap: 8px;
    pointer-events: none;   
}
.map-bottom-overlay > * { pointer-events: auto; }

.timeline {
    background: var(--putih);
    border: 1px solid var(--garis);
    border-radius: var(--lengkung-s);
    box-shadow: var(--bayang-1);
    padding: 8px 10px;
    display: flex; align-items: center; gap: 10px;
}

.map-legend { display: none; }
#timeline:not([hidden]) ~ .map-legend {
    display: block;
    background: var(--putih);
    border: 1px solid var(--garis);
    border-radius: var(--lengkung-s);
    box-shadow: var(--bayang-1);
    padding: 9px 12px;
    max-width: 320px;
}
.map-legend-title {
    font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: var(--teks-samar); margin-bottom: 6px;
}
.timeline-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--teks-samar);
    white-space: nowrap; flex: none;
}
.timeline-tabs {
    display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1;
    overflow: hidden;
}
.timeline-date-tabs {
    display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1;
    overflow-x: auto; overflow-y: hidden; padding: 2px 1px 4px;
    scrollbar-width: thin; scroll-snap-type: x proximity;
}
.timeline-date-tabs .tl-tab { scroll-snap-align: start; }
.timeline-tabs > .tl-tab-accumulation {
    flex: none; margin-left: auto;
}
.tl-tab {
    flex: none; cursor: pointer;
    border: 1px solid var(--garis); background: var(--putih);
    border-radius: 7px; padding: 5px 11px 5px 9px;
    font: inherit; font-size: 12px; font-weight: 600; color: var(--teks);
    display: flex; align-items: center; gap: 6px;
    transition: background .12s, border-color .12s, transform .12s;
    white-space: nowrap;
    animation: rise-fade .26s ease backwards;
    animation-delay: calc(var(--i, 0) * 30ms);
}
.tl-tab:hover:not(:disabled) { background: var(--biru-pucat); transform: translateY(-1px); }
.tl-tab.active { background: var(--biru-pucat); border-color: var(--biru); color: var(--biru); }

.tl-tab:disabled { cursor: default; opacity: .85; }
.tl-lbl { line-height: 1; }

.tl-dot {
    width: 9px; height: 9px; border-radius: 50%;
    flex: none; background: var(--garis);
}
.tl-tab[data-state="waiting"]  .tl-dot { background: #c4ccd4; }
.tl-tab[data-state="running"]  .tl-dot { background: #f0a03c;
    animation: tl-pulse 1s ease-in-out infinite; }
.tl-tab[data-state="done"]     .tl-dot { background: #3fae6a; }
.tl-tab[data-state="failed"]   .tl-dot { background: var(--merah); }

@keyframes tl-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.tl-note {
    font-size: 11px; color: var(--teks-samar); white-space: nowrap;
    flex: none; padding-left: 4px;
}

.rain-source {
    display: flex; gap: 6px; margin-top: 6px;
}
.rain-source button {
    flex: 1; cursor: pointer;
    border: 1px solid var(--garis); background: var(--putih);
    border-radius: 7px; padding: 7px 8px;
    font: inherit; font-size: 12.5px; font-weight: 700; color: var(--teks);
    transition: background .12s, border-color .12s, color .12s;
}
.rain-source button:hover:not(:disabled) { background: var(--biru-pucat); }
.rain-source button.active {
    background: var(--biru-pucat); border-color: var(--biru); color: var(--biru);
}
.rain-source button:disabled {
    opacity: .4; cursor: default;
}
.rain-opacity-controls { display: grid; gap: 9px; margin-top: 13px; }

.pos-hujan-mode { margin-top: 12px; }
.pos-hujan-mode-label {
    display: block; margin-bottom: 6px;
    font-size: 11px; font-weight: 700; color: var(--teks-lembut);
}
.pos-hujan-mode-buttons { display: flex; gap: 6px; }
.pos-hujan-mode-buttons button {
    flex: 1; cursor: pointer;
    border: 1px solid var(--garis); background: var(--putih);
    border-radius: 7px; padding: 7px 8px;
    font: inherit; font-size: 12.5px; font-weight: 700; color: var(--teks);
    transition: background .12s, border-color .12s, color .12s;
}
.pos-hujan-mode-buttons button:hover:not(:disabled) { background: var(--biru-pucat); }
.pos-hujan-mode-buttons button.active {
    background: var(--biru-pucat); border-color: var(--biru); color: var(--biru);
}
.pos-hujan-mode-buttons button:disabled { opacity: .5; cursor: default; }
.pos-hujan-progress {
    display: block; margin-top: 6px; min-height: 14px;
    font-size: 10.5px; color: var(--teks-samar); font-variant-numeric: tabular-nums;
}

.pos-hujan-select-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; margin-top: 10px; cursor: pointer;
    border: 1px solid var(--garis); background: var(--putih);
    border-radius: var(--lengkung-s); padding: 8px 10px;
    font: inherit; font-size: 12.5px; font-weight: 700; color: var(--teks);
    transition: background .12s, border-color .12s, color .12s, transform .16s var(--pegas-keluar);
}
.pos-hujan-select-btn .ic { width: 15px; height: 15px; }
.pos-hujan-select-btn:hover { background: var(--hijau-stempel-latar); border-color: var(--hijau-stempel-tepi); color: var(--hijau-stempel); }
.pos-hujan-select-btn.active {
    background: var(--hijau-stempel-latar); border-color: var(--hijau-stempel-tepi); color: var(--hijau-stempel);
}
.pos-hujan-select-btn:active { transform: scale(.98); }

.modal-pos-hujan-select { width: min(960px, calc(100vw - 30px)); }
.modal-pos-hujan-select-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
    padding: 18px 20px 16px; background: var(--putih); border-bottom: 1px solid var(--garis);
}
.modal-pos-hujan-select-heading { display: grid; gap: 3px; min-width: 0; }
.modal-pos-hujan-select-eyebrow {
    color: var(--biru); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase;
}
.modal-pos-hujan-select-head .modal-title { font-size: 18px; line-height: 1.2; }
.modal-pos-hujan-select-subtitle { color: var(--teks-samar); font-size: 12px; line-height: 1.45; }
.modal-pos-hujan-select-body { display: grid; gap: 14px; padding: 16px 20px 18px; }
.pos-hujan-select-overview {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 12px 14px; background: var(--biru-latar); border: 1px solid var(--biru-pucat-tepi);
    border-radius: var(--lengkung-s);
}
.pos-hujan-select-overview-icon {
    display: grid; width: 34px; height: 34px; place-items: center; color: var(--biru);
    background: var(--putih); border: 1px solid var(--biru-pucat-tepi); border-radius: 8px;
}
.pos-hujan-select-overview-icon .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pos-hujan-select-overview > div { display: grid; gap: 2px; min-width: 0; }
.pos-hujan-select-overview-label {
    color: var(--teks-samar); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.pos-hujan-select-overview p { margin: 0; color: var(--teks); font-size: 13px; font-weight: 700; line-height: 1.35; }
.pos-hujan-select-overview-note { color: var(--teks-samar); font-size: 11px; line-height: 1.35; }
.pos-hujan-select-count {
    padding: 7px 10px; color: var(--biru); background: var(--putih); border: 1px solid var(--biru-pucat-tepi);
    border-radius: 7px; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pos-hujan-select-table-wrap {
    max-height: min(46vh, 390px); overflow: auto; border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    background: var(--putih);
}
.pos-hujan-select-table { width: max-content; min-width: 100%; white-space: nowrap; }
.pos-hujan-select-table thead th { position: sticky; top: 0; z-index: 1; background: var(--permukaan-2); }
.pos-hujan-select-table tbody tr { cursor: default; }
.pos-hujan-select-table tbody tr:hover { background: transparent; }
.pos-hujan-select-status {
    display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid transparent;
    border-radius: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .01em; white-space: nowrap;
}
.pos-hujan-select-status.is-active { background: var(--hijau-stempel-latar); border-color: var(--hijau-stempel-tepi); color: var(--hijau-stempel); }
.pos-hujan-select-status.is-inactive { background: var(--permukaan-2); border-color: var(--permukaan-2-tepi); color: var(--teks-samar); }
.modal-pos-hujan-select-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 13px 20px; background: var(--putih); border-top: 1px solid var(--garis);
}
.pos-hujan-select-download-status {
    min-height: 17px; margin: 0; color: var(--teks-samar); font-size: 11.5px; line-height: 1.4;
}
.pos-hujan-select-download-status[data-state="preparing"],
.pos-hujan-select-download-status[data-state="opening"] { color: var(--biru); font-weight: 650; }
.modal-pos-hujan-select-actions { flex: 0 0 auto; justify-content: flex-end; }
#btn-pos-hujan-select-download {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-width: 156px; min-height: 36px; padding: 8px 13px; line-height: 1;
}
#btn-pos-hujan-select-download .ic { width: 15px; height: 15px; }
#btn-pos-hujan-select-download .pos-hujan-select-download-loader { display: none; }
#btn-pos-hujan-select-download.is-loading .ic { display: none; }
#btn-pos-hujan-select-download.is-loading .pos-hujan-select-download-loader {
    display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%; animation: pos-hujan-download-spin .72s linear infinite;
}
@keyframes pos-hujan-download-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
    .modal-pos-hujan-select { width: min(100vw - 16px, 960px); }
    .modal-pos-hujan-select-head, .modal-pos-hujan-select-body { padding-left: 14px; padding-right: 14px; }
    .modal-pos-hujan-select-foot { align-items: stretch; flex-direction: column; padding: 12px 14px; }
    .modal-pos-hujan-select-actions { width: 100%; }
    .modal-pos-hujan-select-actions .btn { flex: 1; }
    .pos-hujan-select-overview { grid-template-columns: auto minmax(0, 1fr); }
    .pos-hujan-select-count { grid-column: 2; justify-self: start; }
    .pos-hujan-select-table-wrap { max-height: 42vh; }
}
.rain-opacity-control {
    display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; align-items: center;
    color: var(--teks); font-size: 11.5px; font-weight: 650;
}
.rain-opacity-control output {
    color: var(--biru); font-size: 11px; font-variant-numeric: tabular-nums;
}
.rain-opacity-control input[type="range"] {
    grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--biru); cursor: pointer;
}
.rain-opacity-control input[type="range"]:focus { outline: 0; box-shadow: none; }
.rain-opacity-control:has(input:disabled) { color: var(--teks-samar); opacity: .6; }
.rain-opacity-control input:disabled { cursor: default; }

.rain-overlay-img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.chart-block { margin-top: 14px; }
.chart-block svg { margin-top: 4px; }

.card.result-chart-card { padding: 0; overflow: hidden; }
.result-chart-head { padding: 12px 14px; border-bottom: 1px solid var(--garis); background: var(--putih); }
.result-chart-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.result-chart-title {
    display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0;
    color: var(--biru-tua); font-size: 13px; font-weight: 800; line-height: 1.3;
}
.result-chart-title .ic { width: 17px; height: 17px; flex: none; color: var(--biru); margin-top: 0; }
.result-chart-period {
    flex: none; padding: 3px 8px; border: 1px solid var(--biru-pucat-tepi);
    border-radius: 999px; background: var(--putih); color: var(--biru);
    font-size: 10.5px; font-weight: 800; white-space: nowrap;
}
.result-chart-description { margin: 7px 0 0; color: var(--teks-lembut); font-size: 11.5px; line-height: 1.5; }
.result-chart-range { margin-top: 7px; color: var(--teks-samar); font-size: 10.5px; font-weight: 700; }
.result-chart-body { padding: 10px 12px 12px; }
.result-chart-body .chart-legend { margin: 8px 2px 0; }
.result-chart-body .accumulation-product-section { margin-bottom: 0; }

.chart-summary-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px;
    margin-top: 12px;
}
.chart-summary-item {
    min-width: 0; padding: 8px 9px; border: 1px solid var(--garis);
    border-radius: 8px; background: var(--permukaan-2);
}
.chart-summary-item span {
    display: block; overflow: hidden; color: var(--teks-samar); font-size: 9.5px;
    font-weight: 800; letter-spacing: .035em; text-overflow: ellipsis;
    text-transform: uppercase; white-space: nowrap;
}
.chart-summary-item strong {
    display: block; margin-top: 4px; overflow-wrap: anywhere; color: var(--teks);
    font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.35;
}
.chart-reading-note {
    display: grid; gap: 3px; margin-top: 10px; padding: 9px 10px;
    border: 1px solid var(--biru-pucat-tepi); border-radius: var(--lengkung-s);
    background: var(--permukaan-2); color: var(--teks-lembut); font-size: 11px; line-height: 1.5;
}
.chart-reading-note strong { color: var(--biru-tua); font-size: 10.5px; }

.chart-wrap {
    position: relative; margin-top: 2px; padding: 5px 5px 2px;
    border: 1px solid var(--garis); border-radius: 10px; background: var(--putih);
}
.chart-expand-trigger { cursor: zoom-in; }
.chart-expand-trigger:focus { outline: 2px solid var(--biru-pucat-tepi); outline-offset: 3px; }
.chart-detail-body { display: block; overflow: auto; padding: 18px 20px 22px; background: var(--permukaan-2); }
.chart-detail-body .chart-wrap { background: var(--putih); }
.chart-detail-body .chart-legend { margin: 9px 2px 0; }
.chart-detail-description { margin: 0 0 12px; color: var(--teks-lembut); font-size: 12px; line-height: 1.5; }

.chart-download {
    position: absolute; top: 9px; right: 9px; z-index: 2;
    width: 26px; height: 26px; display: grid; place-items: center;
    border: 1px solid var(--garis); background: var(--putih); border-radius: var(--lengkung-s);
    color: var(--teks-samar); cursor: pointer; transition: color .14s, border-color .14s, background .14s;
}
.chart-download .ic { width: 14px; height: 14px; }
.chart-download:hover { color: var(--biru); border-color: var(--biru-pucat-tepi); background: var(--biru-pucat); }

.chart-tooltip {
    position: absolute; z-index: 3; pointer-events: none;
    transform: translate(-50%, calc(-100% - 10px));
    background: var(--biru-tua); color: #fff;
    padding: 6px 10px; border-radius: 7px; font-size: 11px; line-height: 1.6;
    white-space: nowrap; box-shadow: var(--bayang-2);
    opacity: 0; transition: opacity .12s ease;
}
.chart-tooltip.show { opacity: 1; }
.chart-tooltip::after {
    content: ''; position: absolute; left: 50%; top: 100%;
    transform: translateX(-50%); border: 5px solid transparent;
    border-top-color: var(--biru-tua);
}
.chart-tooltip-title { font-weight: 700; margin-bottom: 2px; opacity: .85; }
.chart-tooltip-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    margin-right: 5px;
}

.chart-legend {
    display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap;
    font-size: 11px; color: var(--teks-samar);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i {
    width: 11px; height: 11px; border-radius: 3px; display: inline-block;
}

#hasil-stats, #hasil-tanggal, #hasil-charts,
#hasil-table, #hasil-ingest, #hasil-export {
    margin-top: 18px;
}
#hasil-stats:empty, #hasil-tanggal:empty, #hasil-charts:empty,
#hasil-table:empty, #hasil-ingest:empty, #hasil-export:empty {
    display: none;
}

.card {
    background: var(--putih); border: 1px solid var(--garis);
    border-radius: var(--lengkung); box-shadow: var(--bayang-1);
    padding: 15px 16px; margin-top: 14px;
    animation: rise-fade .28s ease;
}
.card:first-child { margin-top: 0; }
.card-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: var(--biru-tua); margin-bottom: 10px;
}
.card-title .ic { color: var(--biru); }

.card-title-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 10px;
}
.card-title-row .card-title { margin-bottom: 0; }
.btn-add-box {
    display: flex; align-items: center; gap: 5px; flex: none;
    border: 1px solid var(--biru-pucat-tepi); background: var(--biru-pucat);
    color: var(--biru); border-radius: 999px; cursor: pointer;
    padding: 5px 12px 5px 9px; font: inherit; font-size: 11.5px; font-weight: 700;
    transition: background .14s, border-color .14s, transform .12s;
}
.btn-add-box .ic { width: 13px; height: 13px; }
.btn-add-box:hover { background: var(--biru-aksi-hover); border-color: var(--biru-aksi-hover); color: #fff; }
.btn-add-box:active { transform: scale(.96); }
.btn-add-box.active {
    background: var(--biru-aksi); border-color: var(--biru-aksi); color: #fff;
}
.btn-add-box:disabled { opacity: .5; cursor: default; pointer-events: none; }
.hint .link-btn:disabled { opacity: .5; cursor: default; pointer-events: none; text-decoration: none; }

.empty-inline {
    padding: 10px 0; font-size: 12px; color: var(--teks-samar);
    line-height: 1.5;
}

.accumulation-loading {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 30px 0;
}
.accumulation-loading .spinner-ring { width: 16px; height: 16px; border-width: 2.5px; }

.card-subtitle {
    font-size: 11px; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: var(--teks-samar);
    margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--garis);
}

.card-accent {
    border-color: color-mix(in srgb, var(--biru-terang) 34%, var(--garis));
    background-color: var(--putih);
    background-image: linear-gradient(135deg,
        color-mix(in srgb, var(--biru-pucat) 12%, var(--putih)) 0%,
        var(--putih) 100%);
    box-shadow:
        0 1px 2px color-mix(in srgb, var(--biru) 8%, transparent),
        0 4px 10px color-mix(in srgb, var(--biru) 7%, transparent);
}

.row-total { border-top: 1px dashed var(--garis); margin-top: 4px; padding-top: 8px; font-weight: 700; }
.hint-inline { font-size: 10.5px; color: var(--teks-samar); font-weight: 500; margin-left: 4px; }

.plot-group { margin-top: 12px; }
.plot-group:first-of-type { margin-top: 0; }
.plot-group-label {
    font-size: 11.5px; font-weight: 700; color: var(--teks-samar);
    margin-bottom: 6px;
}
.plot-variant-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.plot-variant-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 8px; border: 1px solid var(--garis); border-radius: 10px;
    background: var(--permukaan-2); cursor: pointer; text-align: center;
    font-size: 12px; font-weight: 700; color: var(--teks);
    transition: background .14s, border-color .14s, transform .14s;
}
.plot-variant-btn:hover { background: var(--biru-pucat); border-color: var(--biru-terang); transform: translateY(-1px); }
.plot-variant-btn:disabled {
    opacity: .5; cursor: default; pointer-events: none; transform: none;
}
.plot-variant-icon { color: var(--biru); }
.plot-variant-btn .hint-inline {
    display: block; margin-left: 0; font-weight: 500; font-size: 10px;
    white-space: normal; line-height: 1.3;
}

.plot-card-busy {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px; padding: 7px 10px;
    background: var(--biru-pucat); border-radius: 7px;
    font-size: 11.5px; color: var(--biru); font-weight: 600;
}
.spinner-ring {
    width: 13px; height: 13px; flex: none; box-sizing: border-box;
    border: 2px solid var(--biru-pucat-tepi); border-top-color: var(--biru);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#shp-map-select-recommended.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
#shp-map-select-recommended.is-loading::before {
    content: '';
    width: 11px;
    height: 11px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .72s linear infinite;
}

.delta { font-weight: 800; }
.delta.up   { color: #3fae6a; }
.delta.down { color: var(--merah); }

.stat-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.stat-card {
    display: flex; align-items: center; gap: 11px;
    background: var(--putih); border: 1px solid var(--garis);
    border-radius: var(--lengkung-s); padding: 10px 12px;
    animation: rise-fade .3s ease backwards;
    animation-delay: calc(var(--i, 0) * 45ms);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.stat-grid .stat-card:nth-child(1) { --i: 0; } .stat-grid .stat-card:nth-child(2) { --i: 1; }
.stat-grid .stat-card:nth-child(3) { --i: 2; } .stat-grid .stat-card:nth-child(4) { --i: 3; }
.stat-grid .stat-card:nth-child(5) { --i: 4; } .stat-grid .stat-card:nth-child(6) { --i: 5; }
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bayang-1); border-color: var(--biru-pucat-tepi);
}
.stat-card.hero {
    grid-column: 1 / -1;
    background-color: var(--putih);
    background-image: linear-gradient(135deg,
        color-mix(in srgb, var(--biru-pucat) 12%, var(--putih)) 0%,
        var(--putih) 100%);
    border-color: color-mix(in srgb, var(--biru-terang) 34%, var(--garis));
    box-shadow:
        0 1px 2px color-mix(in srgb, var(--biru) 8%, transparent),
        0 4px 10px color-mix(in srgb, var(--biru) 7%, transparent);
}
.stat-icon {
    display: grid; place-items: center; flex: none;
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--biru-pucat); color: var(--biru);
}
.stat-card.hero .stat-icon { width: 42px; height: 42px; background: var(--putih); }
.stat-body { min-width: 0; }
.stat-label {
    font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--teks-samar);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.stat-value {
    font-size: 13.5px; font-weight: 800; color: var(--teks);
    font-variant-numeric: tabular-nums; line-height: 1.3;
    overflow-wrap: anywhere;
}
.stat-card.hero .stat-value { font-size: 20px; color: var(--biru-tua); }
.stat-value small { font-size: 11px; font-weight: 600; color: var(--teks-lembut); }

.table-wrap { overflow: visible; margin: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.data-table th {
    text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; color: var(--teks-samar);
    padding: 6px 10px; border-bottom: 1px solid var(--garis);
}
.data-table th.num, .data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td { padding: 8px 10px; border-bottom: 1px solid var(--garis); }
.data-table tbody tr { cursor: pointer; transition: background .12s; }
.data-table tbody tr:hover { background: var(--biru-pucat); }
.data-table tbody tr:focus-visible { outline: 2px solid var(--biru-terang); outline-offset: -2px; }
.data-table tbody tr:last-child td { border-bottom: 0; }

.report-table tbody tr { cursor: default; }
.report-table tbody tr:hover { background: none; }

.modal.modal-report { width: min(1020px, 96vw); max-height: min(88dvh, 860px); }
.report-modal-head { align-items: flex-start; padding: 15px 18px; background: var(--putih); }
.report-modal-title-group { min-width: 0; display: grid; gap: 2px; }
.report-modal-eyebrow,
.report-overview-kicker {
    color: var(--biru); font-size: 9.5px; font-weight: 800; letter-spacing: .09em;
}
.report-modal-head .modal-title { font-size: 17px; color: var(--biru-tua); }
.report-modal-subtitle { color: var(--teks-lembut); font-size: 11.5px; line-height: 1.4; }
#report-viewer-body { display: grid; gap: 14px; padding: 16px 18px 18px; background: var(--latar); }
.report-overview {
    display: grid; grid-template-columns: minmax(210px, .78fr) minmax(0, 1.22fr); gap: 16px;
    padding: 15px 16px; border: 1px solid var(--biru-pucat-tepi); border-radius: var(--lengkung-s);
    background: var(--putih);
}
.report-overview-copy { min-width: 0; }
.report-overview h3 { margin: 4px 0 5px; color: var(--teks); font-size: 16px; line-height: 1.25; }
.report-overview p { color: var(--teks-lembut); font-size: 11.5px; line-height: 1.5; }
.report-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: center; }
.report-metric {
    min-width: 0; display: grid; gap: 3px; padding: 9px 10px;
    border: 1px solid var(--garis); border-radius: var(--lengkung-s); background: var(--putih);
    transition: border-color .14s ease, background .14s ease;
}
.report-metric span { color: var(--teks-samar); font-size: 9.5px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.report-metric strong { overflow-wrap: anywhere; color: var(--biru-tua); font-size: 12.5px; line-height: 1.3; }

.report-metric--headline {
    border-color: var(--biru-pucat-tepi);
    background: linear-gradient(135deg, var(--biru-pucat), var(--putih) 130%);
}
.report-metric--headline span { color: var(--biru); }
.report-metric--headline strong { font-size: 18px; font-weight: 800; }
.report-data-card { min-width: 0; border: 1px solid var(--garis); border-radius: var(--lengkung-s); background: var(--putih); overflow: hidden; }
.report-data-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--garis); }
.report-data-head > div { min-width: 0; display: grid; gap: 2px; }
.report-data-head span:first-child { color: var(--teks); font-size: 12.5px; font-weight: 800; }
.report-data-head small { color: var(--teks-lembut); font-size: 10.5px; }
.report-data-badge { flex: none; padding: 3px 7px; border: 1px solid var(--biru-pucat-tepi); border-radius: 6px; background: var(--biru-pucat); color: var(--biru); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.modal-report #report-viewer-body { min-height: 0; }
.modal-report .report-data-card { min-height: 0; }

.modal-report .report-table-wrap {
    max-height: min(47dvh, 440px); overflow-x: auto; overflow-y: auto;
    overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.modal-report .report-table-wrap.is-scrollable { height: min(38dvh, 300px); }
.report-table { min-width: max-content; font-size: 12px; }

.report-table th {
    position: sticky; top: 0; z-index: 1; padding: 10px 12px;
    background: var(--permukaan-2); color: var(--teks-lembut);
    box-shadow: 0 1px 0 var(--garis), var(--bayang-1);
}
.report-table th.num, .report-table td.num {
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums;
}
.report-th-label { display: inline-flex; align-items: center; gap: 4px; }
.report-header-info {
    display: inline-grid; place-items: center; width: 15px; height: 15px; padding: 0;
    border: 1px solid var(--biru-pucat-tepi); border-radius: 50%; background: var(--biru-pucat);
    color: var(--biru); font: 800 italic 10px/1 Georgia, 'Times New Roman', serif; cursor: help;
}
.report-header-info:hover,
.report-header-info:focus-visible { border-color: var(--biru-aksi); background: var(--biru-aksi); color: #fff; outline: 0; }

.report-header-tooltip {
    position: fixed; z-index: 1400; width: max-content; max-width: min(300px, calc(100vw - 20px));
    padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--biru-pucat-tepi) 75%, var(--biru));
    border-radius: 7px; background: var(--biru-tua); color: #fff;
    font-size: 11.5px; font-weight: 400; line-height: 1.48; text-align: left; text-transform: none;
    box-shadow: var(--bayang-2); opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-3px); transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.report-header-tooltip.show { opacity: 1; visibility: visible; transform: translateY(0); }
.report-header-tooltip::before {
    content: ''; position: absolute; left: 10px; bottom: 100%; border: 5px solid transparent;
    border-bottom-color: var(--biru-tua);
}
.report-header-tooltip.flip-up { transform: translateY(3px); }
.report-header-tooltip.flip-up::before { top: 100%; bottom: auto; border-bottom-color: transparent; border-top-color: var(--biru-tua); }
:root[data-theme="dark"] .report-header-tooltip { background: #172633; border-color: #38516a; color: #edf4fb; }
:root[data-theme="dark"] .report-header-tooltip::before { border-bottom-color: #172633; }
:root[data-theme="dark"] .report-header-tooltip.flip-up::before { border-bottom-color: transparent; border-top-color: #172633; }
.report-table td { padding: 9px 12px; vertical-align: top; color: var(--teks-lembut); }
.report-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--permukaan-2) 58%, transparent); }

.report-table tbody tr:last-child { background: var(--biru-latar); box-shadow: inset 0 1px var(--biru-pucat-tepi); }
.report-table tbody tr:last-child td { color: var(--biru-tua); font-weight: 700; }
.modal-report .modal-btn {
    width: 30px; height: 30px; border-radius: 7px; font-size: 19px;
}
.report-modal-foot {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    gap: 14px; padding: 11px 18px; background: var(--putih);
}
.report-modal-status { margin: 0; min-width: 0; color: var(--teks-lembut); font-size: 11px; line-height: 1.4; }
.report-modal-foot .btn-row { flex: none; gap: 8px; margin: 0; }
.report-modal-foot .btn-row > .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px; min-width: 76px; padding: 0 12px; border-radius: 7px; font-size: 12px;
}
.report-modal-foot .btn-row > .btn.secondary { min-width: 70px; }
.report-modal-foot #report-download-btn { min-width: 126px; }
.report-modal-foot #report-download-btn .ic { width: 15px; height: 15px; }
.report-error-state { display: grid; gap: 5px; padding: 18px; border: 1px solid var(--merah-tepi); border-radius: var(--lengkung-s); background: var(--merah-latar); color: var(--merah-teks); }
.report-error-state strong { font-size: 13px; }
.report-error-state span { font-size: 11.5px; line-height: 1.5; }
@media (max-width: 760px) {
    .report-overview { grid-template-columns: 1fr; gap: 12px; }
    .report-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .report-modal-head, #report-viewer-body, .report-modal-foot { padding-left: 14px; padding-right: 14px; }
    .report-metric-grid { grid-template-columns: 1fr 1fr; }
    .report-data-head { align-items: flex-start; }
    .modal-report .report-table-wrap { max-height: min(46dvh, 360px); }
    .modal-report .report-table-wrap.is-scrollable { height: min(38dvh, 300px); }
    .report-modal-foot { grid-template-columns: 1fr; gap: 9px; }
    .report-modal-foot .btn-row { width: 100%; }
    .report-modal-foot .btn-row > .btn { flex: 1; min-width: 0; height: 38px; }
    .report-modal-foot #report-download-btn { flex: 1.25; min-width: 0; }
}

#hasil-table .data-table { display: block; white-space: normal; }
#hasil-table .data-table thead { display: none; }
#hasil-table .data-table tbody { display: grid; gap: 8px; }
#hasil-table .data-table tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px;
    padding: 8px 10px; border: 1px solid var(--garis); border-radius: 9px;
    background: var(--permukaan-2);
}
#hasil-table .data-table td,
#hasil-table .data-table th.num,
#hasil-table .data-table td.num {
    display: flex; align-items: baseline; justify-content: space-between; gap: 7px;
    min-width: 0; padding: 5px 0; border: 0; text-align: right;
}
#hasil-table .data-table td::before {
    flex: 1 1 auto; min-width: 0; color: var(--teks-samar); font-size: 9.5px;
    font-weight: 800; letter-spacing: .035em; text-align: left; text-transform: uppercase;
}
#hasil-table .data-table td:nth-child(1),
#hasil-table .data-table td:nth-child(2),
#hasil-table .data-table td:nth-child(7) { grid-column: 1 / -1; }
#hasil-table .data-table td:nth-child(1) { font-weight: 800; color: var(--biru-tua); }
#hasil-table .data-table td:nth-child(1)::before { content: 'Tanggal'; }
#hasil-table .data-table td:nth-child(2)::before { content: 'Sumber'; }
#hasil-table .data-table td:nth-child(3)::before { content: 'CH GSMaP'; }
#hasil-table .data-table td:nth-child(4)::before { content: 'CH Model'; }
#hasil-table .data-table td:nth-child(5)::before { content: 'Selisih'; }
#hasil-table .data-table td:nth-child(6)::before { content: 'Volume'; }
#hasil-table .data-table td:nth-child(7)::before { content: 'Luas hujan'; }

.result-table-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 3px;
}
.result-table-head .card-title { margin-bottom: 0; }
.result-table-count {
    flex: none; padding: 3px 8px; border-radius: 999px; background: var(--biru-pucat);
    color: var(--biru); font-size: 10.5px; font-weight: 800; white-space: nowrap;
}
.result-table-description {
    margin: 0 0 10px; color: var(--teks-lembut); font-size: 11.5px; line-height: 1.45;
}
#hasil-table .table-wrap.table-scroll { margin: 0; }
#hasil-table .table-scroll.is-scrollable {
    max-height: min(330px, 48vh); overflow-y: auto; overscroll-behavior: contain;
    padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--biru-pucat-tepi) transparent;
}
#hasil-table .table-scroll.is-scrollable::-webkit-scrollbar { width: 7px; }
#hasil-table .table-scroll.is-scrollable::-webkit-scrollbar-thumb {
    border-radius: 999px; background: var(--biru-pucat-tepi); border: 2px solid transparent;
    background-clip: padding-box;
}
#hasil-table .table-scroll.is-scrollable:focus-visible {
    outline: 2px solid var(--biru-terang); outline-offset: 3px; border-radius: 8px;
}
.result-table-scroll-hint {
    margin-top: 8px; color: var(--teks-samar); font-size: 10.5px; font-style: italic;
}
.result-table-actions { margin-top: 10px; }

@media (max-width: 560px) {
    .result-chart-head { padding: 13px 14px 11px; }
    .result-chart-body { padding: 10px 12px 12px; }
    .chart-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #hasil-table .table-scroll.is-scrollable { max-height: min(310px, 46vh); }
}

.btn-block {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; text-align: center;
}

.btn-export { position: relative; overflow: hidden; }
.btn-export-bar {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 0%;
    background: var(--biru);
    transition: width .25s ease; pointer-events: none;
}

.archive-tools {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(84px, .55fr) auto; gap: 7px;
    margin-bottom: 8px;
}
.archive-merge-tools { display: flex; align-items: stretch; gap: 5px; min-width: 0; }
.archive-merge-icon {
    position: relative; display: grid; place-items: center; width: 34px; height: 34px;
    padding: 0; border: 1px solid var(--garis); border-radius: 8px;
    background: var(--putih); color: var(--biru); cursor: pointer;
}
.archive-merge-icon .ic { width: 16px; height: 16px; }
.archive-merge-icon:hover { border-color: var(--biru-pucat-tepi); background: var(--biru-latar); }
.archive-merge-icon.is-ready { border-color: var(--biru-aksi); background: var(--biru-aksi); color: #fff; }
.archive-merge-icon:disabled { cursor: not-allowed; opacity: .48; }
.archive-merge-count {
    position: absolute; top: -5px; right: -5px; min-width: 15px; height: 15px; padding: 0 3px;
    border: 2px solid var(--putih); border-radius: 10px; background: var(--jingga); color: #fff;
    font-size: 9px; font-weight: 800; line-height: 11px;
}
.archive-search { position: relative; display: block; }
.archive-search .ic {
    position: absolute; top: 50%; left: 9px; width: 14px; height: 14px;
    transform: translateY(-50%); color: var(--teks-samar); pointer-events: none;
}
.archive-search input,
.archive-sort-trigger {
    height: 34px; margin: 0; border: 1px solid var(--garis); border-radius: 8px;
    background: var(--putih); color: var(--teks); font: inherit; font-size: 11.5px;
}
.archive-search input { width: 100%; padding: 0 9px 0 30px; }
.archive-sort { position: relative; }
.archive-sort-trigger {
    display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 9px;
    cursor: pointer; text-align: left;
}
.archive-sort-trigger .ic { width: 12px; height: 12px; color: var(--teks-samar); transition: transform .14s ease; }
.archive-sort.open .archive-sort-trigger .ic { transform: rotate(180deg); }
.archive-sort-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 3; width: 100%; padding: 5px;
    border: 1px solid var(--garis); border-radius: var(--lengkung); background: var(--panel-latar);
    box-shadow: var(--bayang-2); animation: pop-in .14s var(--pegas-keluar);
}
.archive-sort-menu[hidden] { display: none; }
.archive-sort-menu button {
    display: block; width: 100%; min-height: 31px; padding: 0 8px; border: 0; border-radius: 7px;
    background: transparent; color: var(--teks); cursor: pointer; font: inherit; font-size: 11.5px;
    font-weight: 650; text-align: left;
}
.archive-sort-menu button:hover,
.archive-sort-menu button[aria-selected="true"] { background: var(--biru-pucat); color: var(--biru); }

.archive-search input:focus,
.archive-sort-trigger:focus,
.archive-sort-menu button:focus { outline: 0; border-color: var(--garis); box-shadow: none; }
.archive-result-status { min-height: 16px; margin: 0 1px 6px; color: var(--teks-samar); font-size: 10.5px; }
.archive-result-status:empty { display: none; }
.archive-card {
    display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 7px 11px;
    padding: 11px 12px; margin-top: 8px;
    border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    background: var(--putih); cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.archive-card.archive-card-new {
    animation: rise-fade .3s ease backwards;
    animation-delay: calc(var(--i, 0) * 40ms);
}
.archive-card:first-child { margin-top: 0; }
.archive-card:hover, .archive-card:focus-visible {
    transform: translateX(2px);
    border-color: var(--biru-pucat-tepi); box-shadow: var(--bayang-1);
    outline: none;
}
.archive-card.merge-mode { cursor: pointer; }
.archive-card.merge-mode .archive-actions { justify-content: flex-start; }
.archive-card.merge-mode.is-merge-candidate {
    background: color-mix(in srgb, var(--archive-merge-group-color, var(--biru)) 6%, var(--putih));
}
.archive-card.merge-mode.is-merge-candidate:hover,
.archive-card.merge-mode.is-merge-candidate:focus-visible {
    border-color: var(--archive-merge-group-color, var(--biru));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--archive-merge-group-color, var(--biru)) 38%, transparent), var(--bayang-1);
}
.archive-card.is-merge-selected {
    border-color: var(--archive-merge-group-color, var(--biru));
    background: color-mix(in srgb, var(--archive-merge-group-color, var(--biru)) 11%, var(--putih));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--archive-merge-group-color, var(--biru)) 42%, transparent);
}
.archive-merge-select {
    border: 1px solid var(--biru-pucat-tepi); border-radius: 7px; background: var(--putih);
    color: var(--biru); cursor: pointer; padding: 5px 9px; font: inherit; font-size: 11px; font-weight: 700;
}
.archive-card.is-merge-selected .archive-merge-select { background: var(--archive-merge-group-color, var(--biru)); border-color: var(--archive-merge-group-color, var(--biru)); color: #fff; }
.archive-merge-select:disabled { cursor: not-allowed; opacity: .5; }
.archive-icon {
    display: grid; place-items: center; flex: none;
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--biru-pucat); color: var(--biru);
}
.archive-body { flex: 1; min-width: 0; }
.archive-name {
    font-size: 13px; font-weight: 700; color: var(--teks);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.archive-meta { font-size: 11px; color: var(--teks-samar); margin-top: 1px; }

.duplicate-archive-context { width: 100%; max-width: 390px; margin: 0 auto; text-align: left; }

.duplicate-archive-list { display: grid; gap: 7px; margin-top: 12px; min-width: 0; }
.duplicate-archive-list.is-scrollable {
    max-height: 218px; overflow-x: hidden; overflow-y: auto;
    padding-right: 4px; scrollbar-gutter: stable;
}
.duplicate-archive-option {
    box-sizing: border-box; width: 100%; min-width: 0; display: grid; gap: 3px; padding: 10px 11px;
    border: 1px solid var(--garis); border-radius: var(--lengkung-s); background: var(--putih);
    color: var(--teks); text-align: left; cursor: pointer; font: inherit;
    transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}
.duplicate-archive-option:hover, .duplicate-archive-option:focus-visible {
    border-color: var(--biru-pucat-tepi); background: var(--biru-pucat);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--biru) 8%, transparent); outline: none;
}
.duplicate-archive-option:active { background: color-mix(in srgb, var(--biru-pucat) 82%, var(--putih)); }
.duplicate-archive-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.duplicate-archive-option span { color: var(--teks-samar); font-size: 10.5px; }
.duplicate-archive-option em { color: var(--biru); font-size: 10px; font-style: normal; font-weight: 700; }

.archive-tooltip {
    position: fixed; z-index: 1000;
    background: var(--biru-tua); color: #fff;
    padding: 10px 12px; border-radius: 8px;
    font-size: 11.5px; line-height: 1.6;
    box-shadow: var(--bayang-2);
    max-width: min(340px, calc(100vw - 24px));
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.archive-tooltip.show { opacity: 1; visibility: visible; transform: translateY(0); }
.archive-tooltip-title {
    font-weight: 700; font-size: 12.5px; margin-bottom: 6px;
    padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.archive-tooltip-row {
    display: grid; grid-template-columns: minmax(82px, .8fr) minmax(0, 1.2fr); gap: 12px;
    color: rgba(255, 255, 255, .6);
}
.archive-tooltip-row span:last-child {
    min-width: 0; font-weight: 600; color: #fff; text-align: right;
    overflow-wrap: anywhere;
}

.badge {
    flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .03em;
    padding: 4px 9px; border-radius: 999px; text-transform: uppercase;
    background: var(--biru-pucat); color: var(--biru);
}
.badge-done    { background: #e3f5ea; color: #2f8f5b; }
.badge-failed    { background: var(--merah-latar); color: var(--merah-teks); }
.badge-running   { background: var(--biru-pucat); color: var(--biru); }
.badge-cancelled,
.badge-skipped   { background: var(--garis); color: var(--teks-samar); }
:root[data-theme="dark"] .badge-done { background: #163829; color: #6fe0a0; }

.badge-queued, .badge-waiting_turn, .badge-waiting_batch { background: var(--garis); color: var(--teks-samar); }
.badge-preparing, .badge-downloading, .badge-computing, .badge-summarising {
    background: var(--biru-pucat); color: var(--biru);
}

.archive-actions {
    display: flex; grid-column: 2 / -1; justify-content: flex-end; gap: 4px;
    min-width: 0; flex: none; flex-wrap: wrap;
}
.archive-action-btn {
    position: relative; overflow: hidden;
    display: grid; place-items: center; flex: none;
    width: 28px; height: 28px; border-radius: 7px;
    border: 1px solid transparent; background: transparent; cursor: pointer;
    color: var(--teks-samar);
    transition: background .14s, color .14s, border-color .14s;
}
.archive-action-btn .ic { width: 15px; height: 15px; }
.archive-action-btn:hover { background: var(--biru-pucat); color: var(--biru); border-color: var(--biru-pucat-tepi); }
.archive-action-btn.danger:hover { background: var(--merah-latar); color: var(--merah-teks); border-color: var(--merah-teks); }
.archive-action-btn:disabled { opacity: .5; cursor: default; pointer-events: none; }

.archive-action-btn-bar {
    position: absolute; left: 0; bottom: 0; height: 2px; width: 0%;
    background: var(--biru);
    transition: width .25s ease; pointer-events: none;
}
.archive-download-inline {
    grid-column: 1 / -1; margin-top: 2px; padding: 10px;
    border: 1px solid var(--biru-pucat-tepi); border-radius: 9px; background: var(--biru-latar);
}
.archive-download-inline-title { display: block; margin: 0 0 8px; color: var(--teks); font-size: 11px; font-weight: 750; }
.archive-download-inline-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.archive-download-inline-actions button {
    min-width: 0; padding: 7px 8px; border: 1px solid var(--garis); border-radius: 7px;
    background: var(--putih); color: var(--biru); font: inherit; font-size: 10.5px; font-weight: 750;
    cursor: pointer; text-align: left;
}
.archive-download-inline-actions button:hover { border-color: var(--biru); background: var(--biru-pucat); }
.archive-download-inline-actions button:focus { outline: 0; border-color: var(--biru); box-shadow: none; }
.archive-download-inline-actions button:disabled { cursor: wait; opacity: .6; }
.archive-download-inline-actions button span { display: block; margin-top: 2px; color: var(--teks-samar); font-size: 9.5px; font-weight: 500; line-height: 1.3; }
.archive-download-inline-progress > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: var(--teks); font-size: 11px; }
.archive-download-inline-percent { color: var(--biru); font-weight: 800; font-variant-numeric: tabular-nums; }
.archive-download-inline-track { display: block; height: 6px; overflow: hidden; margin: 8px 0 6px; border-radius: 99px; background: var(--putih); }
.archive-download-inline-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--biru); transition: width .22s ease; }
.archive-download-inline-detail { display: block; min-height: 27px; color: var(--teks-samar); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 520px) {
    .archive-download-inline-actions { grid-template-columns: 1fr; }
}

.modal-archive-download { width: min(500px, calc(100vw - 28px)); }
.archive-download-body { padding: 18px 20px 16px; }
.archive-download-choices { display: grid; gap: 9px; }
.archive-download-choice {
    display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center;
    width: 100%; padding: 13px; border: 1px solid var(--garis); border-radius: 10px;
    background: var(--putih); color: var(--teks); font: inherit; text-align: left; cursor: pointer;
    transition: border-color .14s ease, background .14s ease, transform .14s ease, box-shadow .14s ease;
}
.archive-download-choice:hover { border-color: var(--biru-pucat-tepi); background: var(--biru-latar); transform: translateY(-1px); box-shadow: var(--bayang-1); }
.archive-download-choice:focus { outline: 0; border-color: var(--biru); box-shadow: 0 0 0 1px var(--biru-pucat-tepi); }
.archive-download-choice:disabled { opacity: .58; cursor: wait; transform: none; }
.archive-download-choice-icon {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
    background: var(--biru-pucat); color: var(--biru);
}
.archive-download-choice-icon .ic { width: 19px; height: 19px; }
.archive-download-choice strong { display: block; margin-bottom: 3px; font-size: 12.5px; }
.archive-download-choice small { display: block; color: var(--teks-samar); font-size: 11px; line-height: 1.45; }
.archive-download-progress { padding: 6px 2px 2px; }
.archive-download-progress-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 12px; color: var(--teks); }
.archive-download-progress-head span { color: var(--biru); font-weight: 800; font-variant-numeric: tabular-nums; }
.archive-download-progress-track { height: 7px; overflow: hidden; margin: 11px 0 9px; border-radius: 99px; background: var(--biru-pucat); }
.archive-download-progress-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--biru); transition: width .22s ease; }
.archive-download-progress p { min-height: 32px; margin: 0; color: var(--teks-samar); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }

.queue-card {
    display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px 11px;
    min-width: 0; max-width: 100%; padding: 11px 12px; margin-top: 8px;
    border: 1px solid var(--garis); border-radius: var(--lengkung-s);
    background: var(--putih);
    animation: rise-fade .3s ease backwards; animation-delay: calc(var(--i, 0) * 40ms);
}
.queue-card:first-child { margin-top: 0; }
.queue-card .queue-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--garis);
    flex: none;
}
.queue-card.is-active .queue-dot {
    background: var(--biru-terang); animation: pulse 1.1s infinite;
}
.queue-body { flex: 1; min-width: 0; }
.queue-name {
    font-size: 13px; font-weight: 700; color: var(--teks);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.queue-meta {
    min-width: 0; font-size: 11px; color: var(--teks-samar); margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.queue-eta { font-size: 11px; color: var(--teks-samar); margin-top: 1px; }
.queue-card .badge {
    align-self: start; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.queue-card .archive-actions {
    grid-column: 3; grid-row: 2; justify-self: end; align-self: end; margin-top: 1px; padding: 3px;
    border: 1px solid var(--garis); border-radius: 8px; background: var(--permukaan-2);
}

.queue-card .queue-progress {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 2px;
}
.queue-progress-track {
    flex: 1; min-width: 0; height: 4px; border-radius: 999px;
    background: var(--garis); overflow: hidden;
}
.queue-progress-fill {
    display: block; height: 100%; border-radius: 999px; width: 0%;
    background: var(--biru);
    transition: width .4s ease;
}
.queue-progress-fill.is-done { background: var(--hijau-stempel); }
.queue-progress-fill.is-failed { background: var(--merah-teks); }
.queue-progress-fill.is-cancelled { background: var(--teks-samar); }
.queue-progress-pct {
    flex: none; min-width: 30px; text-align: right;
    font-size: 10.5px; font-weight: 700; color: var(--teks-samar);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
    .brand .name .sub { display: none; }
    .dock { width: 340px; }
}

@media (max-width: 980px) {
    
    .header { z-index: 750; }

    
    .edge-toggle { z-index: 720; }

    
    body:not(.sidebar-collapsed) .edge-toggle-right { display: none !important; }
    body:not(.dock-collapsed) .edge-toggle-left { display: none !important; }

    
    #panel-data.sidebar {
        position: fixed;
        top: calc(var(--bilah-tinggi) + var(--kepala-tinggi));
        left: 0; right: 0; bottom: 0;
        width: 100% !important; max-width: 100%;
        z-index: 700;
        transform: translateX(0);
        transition: transform .22s ease;
    }
    #panel-data.sidebar.collapsed {
        width: 100% !important;      
        transform: translateX(-100%);
        border-right: 0;
    }
    #panel-data.sidebar.collapsed .panel-body,
    #panel-data.sidebar.collapsed .panel-head .panel-title {
        display: block;              
    }

    
    .dock {
        position: fixed;
        top: calc(var(--bilah-tinggi) + var(--kepala-tinggi));
        left: 0; right: 0; bottom: 0;
        width: 100% !important; max-width: 100%;
        z-index: 700;
        transform: translateX(0);
        transition: transform .22s ease;
        border-left: 0;
    }
    .dock.collapsed {
        width: 100% !important;
        transform: translateX(100%);
    }
    .dock.collapsed .dock-tabs { display: flex; }   
    .dock.collapsed .dock-body { display: block; }

    .settings-fields { grid-template-columns: 1fr; }

    
    .settings-shell { flex-direction: column; }
    .settings-sidebar {
        width: auto; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 5px; overflow: visible;
        border-right: 0; border-bottom: 1px solid var(--garis);
        padding: 8px;
    }
    .settings-sidebar::before { display: none; }
    .settings-tab { width: 100%; justify-content: center; padding: 9px 4px; }
    .settings-tab span { display: none; }   
}

@media (max-width: 640px) {
    .header { padding: 0 14px; }
    .time-bar { padding: 0 14px; font-size: 11.5px; }
    .time-bar .label { display: none; }   
    .brand .name { font-size: 11.5px; }
    .header-actions { gap: 6px; }
    .timeline { gap: 7px; padding: 7px 8px; }
    .timeline-label { display: block; font-size: 9px; letter-spacing: .03em; }
    .timeline-tabs { gap: 6px; }
    .timeline-date-tabs { gap: 5px; }
    .tl-tab { padding: 5px 8px 5px 7px; font-size: 11px; }

    .modal.modal-reprocess { width: 100%; max-height: 100%; border-radius: 0; }
    .modal.modal-accumulation { width: 100%; max-height: 100%; border-radius: 0; }
    .reprocess-head { padding: 14px 16px; }
    .reprocess-body { grid-template-columns: 1fr; padding: 14px; gap: 10px; }
    .reprocess-body > .section:nth-of-type(3), .reprocess-intro { grid-column: auto; }
    .reprocess-body > .section { padding: 13px; }
    .accumulation-candidate { grid-template-columns: auto minmax(0, 1fr); }
    .accumulation-candidate-state { grid-column: 2; max-width: none; text-align: left; }
    .accumulation-list-toolbar { align-items: flex-start; flex-direction: column; }
    .accumulation-sort { width: 100%; flex-basis: auto; }

    .settings-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 14px; }
    .settings-toolbar > .switch { width: 100%; justify-content: space-between; }
    .settings-fields { padding: 12px 14px 16px; gap: 9px; }
    .modal.modal-settings .modal-foot { padding: 12px 14px; }
}

@media (max-width: 560px) {
    .header { padding: 0 10px; }
    .brand { gap: 0; }
    .brand .logo { width: 38px; height: 38px; }
    .brand .name { display: none; }
    .header-actions { gap: 5px; }
    .icon-btn { width: 32px; height: 32px; }
    .conn { width: 26px; height: 26px; padding: 0; justify-content: center; }
    
    .conn span:not(.led):not(.connection-symbol) { display: none; }
    .time-bar .time-right { gap: 8px; }
}

@media (max-width: 480px) {
    .toast-area { left: 12px; right: 12px; max-width: none; }

    .time-bar { justify-content: flex-end; padding: 0 10px; }
    .time-bar .date { display: none; }

    .modal-backdrop { padding: 0; }
    .modal {
        width: 100%; height: 100%; max-height: 100%;
        border-radius: 0;
    }

    .field-pair, .plot-variant-row { grid-template-columns: 1fr; }
    .shp-map-mapwrap { min-height: 300px; }
}

@media (min-width: 1600px) {
    :root {
        --bilah-tinggi: clamp(38px, 1.5vw, 42px);
        --kepala-tinggi: clamp(62px, 2.3vw, 70px);
    }
    body { font-size: clamp(16px, .75vw, 19px); }

    .header { padding-inline: clamp(30px, 2vw, 48px); }
    .time-bar { padding-inline: clamp(30px, 2vw, 48px); font-size: 14px; }
    .time-bar .clock { font-size: 15px; }
    .brand { gap: 15px; }
    .brand .logo { width: clamp(46px, 2.3vw, 56px); height: clamp(46px, 2.3vw, 56px); }
    .brand .name { font-size: clamp(13px, .72vw, 17px); }
    .brand .name .sub { font-size: clamp(12px, .62vw, 14px); }
    .header-actions { gap: 12px; }
    .icon-btn { width: 40px; height: 40px; }
    .icon-btn .ic { width: 18px; height: 18px; }
    .conn { padding: 8px 16px 8px 13px; font-size: 14px; }

    #panel-data.sidebar { width: clamp(400px, 17vw, 470px); }
    .dock { width: clamp(420px, 17.5vw, 490px); }
    .panel-head { padding: 14px 16px 14px 19px; }
    .panel-body { padding: 18px 19px 21px; }
    .dock-body { padding: 19px 20px 25px; }
    .dock-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)) 38px; }
    .dock-tabs button { min-width: 0; padding-block: 11px 9px; font-size: 11px; }
    .dock-tabs button .ic { width: 17px; height: 17px; }
    .dock-collapse { width: auto; }
    .section + .section { margin-top: 22px; padding-top: 19px; }
    .section-title { font-size: 12px; margin-bottom: 12px; }

    input[type=text], input[type=password], input[type=number], input[type=date], select, textarea {
        padding: 10px 13px; font-size: 15px;
    }
    button.btn { padding: 10px 19px; font-size: 15px; }
    .drop-name { font-size: 14px; }
    .drop-ext, .hint { font-size: 12px; }

    .map-toolbar { top: 16px; right: 16px; gap: 8px; }
    .map-basemap-switcher { min-width: 140px; }
    .map-basemap-trigger { height: 40px; padding-inline: 12px; }
    .map-basemap-label { font-size: 12.5px; }
    .map-basemap-icon { width: 17px; height: 17px; }
    .map-zoomstep-btn { width: 40px; height: 40px; }
    .map-zoomstep-btn .ic { width: 17px; height: 17px; }
    .map-zoomstep-panel { width: 244px; padding: 16px 18px; }
    .map-split-label { top: 16px; padding: 6px 15px; font-size: 12.5px; }
    .map-split-label-left { left: 16px; }
    .map-wrap.compare .map-split-label-right { top: 72px; }
    .edge-toggle { top: 16px; width: 40px; height: 40px; }
    .edge-toggle-left { left: 16px; }
    .edge-toggle-right { right: 16px; }
    body.dock-collapsed .map-toolbar { right: 64px; }
    body.sidebar-collapsed .map-wrap.compare .map-split-label-left { left: 64px; }
    body.dock-collapsed .map-wrap.compare .map-split-label-right { right: 64px; }

    .card { padding: 18px 20px; margin-top: 17px; }
    .archive-card { padding: 13px 15px; }
    .archive-name { font-size: 14px; }
    .archive-meta { font-size: 12px; }
}

.header-actions { gap: 9px; margin-left: auto; min-width: 0; }
.profile-trigger {
    display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 9px 4px 5px;
    appearance: none; border: 1px solid var(--garis); border-radius: var(--lengkung-s); background: var(--putih);
    color: var(--teks); cursor: pointer; font: inherit; text-align: left;
    transition: background .14s, border-color .14s, color .14s, transform .16s var(--pegas-keluar);
}
.profile-trigger:hover { border-color: var(--biru-pucat-tepi); background: var(--biru-pucat); color: var(--biru); }
.profile-trigger:active { transform: scale(.98); }
.profile-avatar, .profile-modal-avatar {
    display: grid; flex: none; place-items: center; border-radius: 50%; color: var(--biru); background: var(--biru-pucat);
}
.profile-avatar { width: 27px; height: 27px; }
.profile-avatar .ic { width: 15px; height: 15px; }
.profile-copy { display: grid; min-width: 0; gap: 1px; line-height: 1.1; }
.profile-copy strong { overflow: hidden; max-width: 116px; font-size: 11.5px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { color: var(--teks-samar); font-size: 9.5px; font-weight: 600; }
.profile-chevron { width: 13px; height: 13px; color: var(--teks-samar); }
.header-action-tools { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--garis); border-radius: var(--lengkung-s); background: var(--permukaan-2); }
.header-action-tools .icon-btn { border-color: transparent; background: transparent; }
.header-action-tools .icon-btn:hover { background: var(--putih); }
.header-action-tools .header-logout { border-left-color: var(--garis); }
.header-action-tools .header-logout:hover { border-color: var(--merah-tepi); background: var(--merah-latar); color: var(--merah-teks); }
.header-connection { flex: none; }

.server-status-badge {
    display: flex; align-items: center; justify-content: center; gap: 6px; flex: none;
    width: 116px; height: 32px; padding: 0 8px;
    border: 1px solid var(--garis); border-radius: 8px;
    background: var(--putih); color: var(--teks-lembut);
    font: inherit; font-size: 11.5px; font-weight: 700;
    font-variant-numeric: tabular-nums; letter-spacing: .01em;
    cursor: pointer; transition: background-color .14s, color .14s, border-color .14s;
}
.server-status-badge:hover, .server-status-badge[aria-expanded="true"] { background: var(--biru-pucat); border-color: var(--biru-pucat-tepi); color: var(--biru); }
.server-status-badge:focus-visible { outline: 3px solid rgba(43,127,212,.18); outline-offset: 2px; }
.server-status-badge .ic { width: 15px; height: 15px; flex: none; }
.server-status-badge.is-warn { color: var(--merah-teks); }
.server-status-badge.is-warn:hover { background: var(--merah-latar); }
.server-status-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.server-status-popover {
    position: fixed; z-index: 1300; width: 368px; overflow: hidden;
    border: 1px solid var(--garis); border-radius: var(--lengkung);
    background: var(--panel-latar); box-shadow: var(--bayang-3);
    animation: server-status-popover-in .15s ease both;
}
.server-status-popover-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    padding: 12px 13px 11px; border-bottom: 1px solid var(--garis); background: var(--permukaan-2);
}
.server-status-popover-kicker { display: block; margin-bottom: 3px; color: var(--biru); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.server-status-popover-head strong { display: block; color: var(--teks); font-size: 13px; }
.server-status-popover-live { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid var(--info-tepi); border-radius: 7px; background: var(--info-latar); color: var(--info-teks); font-size: 9.5px; font-weight: 750; white-space: nowrap; }
.server-status-popover-live::before { width: 6px; height: 6px; border-radius: 50%; background: var(--hijau-jam); content: ''; }
.server-status-popover-body { display: grid; gap: 10px; padding: 11px 13px 12px; }
.server-status-popover-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.server-status-meter { min-width: 0; padding: 10px 11px; border: 1px solid var(--garis); border-radius: 8px; background: var(--permukaan-2); }
.server-status-meter > div, .server-ram-usage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.server-status-meter span, .server-ram-usage-head span, .server-status-popover-summary span { color: var(--teks-samar); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.server-status-meter strong, .server-ram-usage-head strong, .server-status-popover-summary strong { color: var(--teks); font-size: 11.5px; font-variant-numeric: tabular-nums; line-height: 1.35; white-space: nowrap; }
.server-status-meter i { display: block; height: 5px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: var(--garis); }
.server-status-meter b { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--biru); transition: width .3s ease; }
.server-ram-usage { padding: 10px 11px 9px; border: 1px solid var(--garis); border-radius: 8px; background: var(--permukaan-2); }
.server-ram-usage-head { margin-bottom: 6px; }
.server-ram-chart { display: block; width: 100%; height: 72px; overflow: visible; border-radius: 4px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, var(--garis) 23px); }
.server-ram-chart-area { fill: color-mix(in srgb, var(--biru) 16%, transparent); }
.server-ram-chart-line { fill: none; stroke: var(--biru); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; vector-effect: non-scaling-stroke; }
.server-status-popover-summary { display: grid; grid-template-columns: 1.65fr 1fr .8fr; gap: 8px; }
.server-status-popover-summary > div { min-width: 0; padding: 8px 9px; border: 1px solid var(--garis); border-radius: 7px; background: var(--permukaan-2); }
.server-status-popover-summary span, .server-status-popover-summary strong { display: block; }
.server-status-popover-summary span { margin-bottom: 3px; font-size: 8px; }
.server-status-popover-summary small {
    display: block; margin-top: 4px; color: var(--teks-samar);
    font-size: 8px; font-weight: 600; line-height: 1.35;
}
.server-status-popover-empty { margin: 0; padding: 16px; color: var(--teks-lembut); font-size: 12px; line-height: 1.5; }
.server-status-popover-note {
    margin: 0; padding: 8px 13px; border-top: 1px solid var(--garis);
    background: var(--permukaan-2); color: var(--teks-samar); font-size: 10px; line-height: 1.35; text-align: center;
}
@keyframes server-status-popover-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
    .server-status-text { display: none; }
    
    .server-status-popover { width: min(368px, calc(100vw - 16px)); }
}

.modal.modal-profile { width: min(500px, calc(100vw - 28px)); max-height: min(82vh, 680px); }
.profile-modal-head { padding: 17px 18px 15px; }
.profile-modal-head > div { min-width: 0; }
.profile-modal-kicker { display: block; margin-bottom: 4px; color: var(--biru); font-size: 9.5px; font-weight: 800; letter-spacing: .09em; }
.profile-modal-head .modal-title { display: block; font-size: 16px; }
.profile-modal-body { padding: 16px 18px 18px; background: var(--permukaan-2); }
.profile-overview { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--biru-pucat-tepi); border-radius: 11px; background: var(--putih); }
.profile-modal-avatar { width: 42px; height: 42px; box-shadow: inset 0 0 0 1px rgba(43,127,212,.08); }
.profile-modal-avatar .ic { width: 21px; height: 21px; }
.profile-identity { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-overview-label { flex: 0 0 100%; color: var(--teks-samar); font-size: 10px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.profile-identity strong { overflow: hidden; color: var(--teks); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.profile-security { margin-top: 12px; padding: 15px; border: 1px solid var(--garis); border-radius: 11px; background: var(--putih); }
.profile-section-head { margin-bottom: 13px; }
.profile-section-head h3 { margin: 0; color: var(--biru-tua); font-size: 13px; }
.profile-section-head p { margin: 4px 0 0; color: var(--teks-lembut); font-size: 11px; line-height: 1.45; }
.profile-password-form { display: grid; gap: 11px; }
.profile-password-form label { display: grid; gap: 6px; color: var(--teks-lembut); font-size: 11px; font-weight: 750; }
.profile-password-form input { width: 100%; min-width: 0; }
.profile-password-hint { margin: 0; padding: 8px 10px; border-left: 2px solid var(--biru-pucat-tepi); background: var(--permukaan-2); color: var(--teks-lembut); font-size: 10.5px; line-height: 1.45; }
.profile-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 3px; }
.profile-modal-actions .btn { flex: none; min-width: 0; padding-inline: 13px; }

@media (max-width: 760px) {
    .profile-copy { display: none; }
    .profile-trigger { padding-right: 5px; }
    .profile-chevron { display: none; }
}
@media (max-width: 560px) {
    .header-actions { gap: 5px; }
    .header-action-tools { gap: 0; padding: 2px; }
    .header-action-tools .icon-btn { width: 30px; height: 30px; }
    .profile-avatar { width: 30px; height: 30px; }
    .profile-modal-body { padding: 13px; }
    .profile-modal-head { padding: 15px 14px 13px; }
    .profile-security { padding: 13px; }
}
@media (min-width: 1600px) {
    .header-actions { gap: 12px; }
    .profile-avatar { width: 34px; height: 34px; }
    .profile-avatar .ic { width: 18px; height: 18px; }
    .profile-copy strong { max-width: 145px; font-size: 14px; }
    .profile-copy small { font-size: 11px; }
}

.header-action-tools .header-logout { border-left-color: var(--garis); }
.header-actions > .header-logout { margin-left: 2px; }
.header-actions > .header-logout:hover { border-color: var(--merah-tepi); background: var(--merah-latar); color: var(--merah-teks); }
.header-connection {
    position: relative; display: grid; width: 34px; height: 34px; place-items: center; padding: 0;
    border-radius: var(--lengkung-s); color: var(--teks-samar); background: var(--permukaan-2); cursor: default;
}
.header-connection .connection-symbol { display: grid; place-items: center; color: inherit; line-height: 0; }
.header-connection .connection-symbol .ic { display: block; width: 16px; height: 16px; color: inherit; stroke: currentColor; }
.header-connection.connected { border-color: var(--info-tepi); color: var(--info-teks); background: var(--info-latar); }
.header-connection.connecting { border-color: var(--biru-pucat-tepi); color: var(--biru); background: var(--biru-pucat); }
.header-connection.offline { border-color: var(--merah-tepi); color: var(--merah-teks); background: var(--merah-latar); }
:root[data-theme="dark"] .header-connection.connected .connection-symbol { color: var(--hijau-stempel); }
:root[data-theme="dark"] .header-connection.connecting .connection-symbol { color: var(--biru-terang); }
:root[data-theme="dark"] .header-connection.offline .connection-symbol { color: var(--merah); }
.connection-symbol.is-retrying .ic { animation: connection-retry-spin 1.2s linear infinite; }
.connection-retry {
    position: absolute; right: -4px; bottom: -4px; display: grid; min-width: 15px; height: 15px; place-items: center;
    padding: 0 3px; border: 1px solid var(--putih); border-radius: 999px; background: var(--biru); color: var(--putih);
    font: 800 8px/1 'JetBrains Mono', ui-monospace, monospace;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes connection-retry-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
    .header-actions > .header-logout { margin-left: 0; }
    .header-connection { width: 30px; height: 30px; }
}

.header-actions { --header-control-size: 36px; }
.profile-trigger { height: var(--header-control-size); padding-block: 3px; }
.profile-avatar { width: 28px; height: 28px; }
.header-action-tools { height: var(--header-control-size); padding: 2px; }
.header-action-tools .icon-btn { width: calc(var(--header-control-size) - 4px); height: calc(var(--header-control-size) - 4px); }
.header-actions > .header-logout { width: var(--header-control-size); height: var(--header-control-size); }
.header-connection { width: var(--header-control-size); height: var(--header-control-size); }

.header-action-tools .server-status-badge {
    width: 116px; height: calc(var(--header-control-size) - 4px);
    border-color: transparent; border-radius: 8px; background: transparent;
}
.header-action-tools .server-status-badge:hover,
.header-action-tools .server-status-badge[aria-expanded="true"] {
    background: var(--putih); border-color: transparent; color: var(--biru);
}
.header-action-tools .server-status-badge.is-warn:hover,
.header-action-tools .server-status-badge.is-warn[aria-expanded="true"] {
    background: var(--merah-latar); color: var(--merah-teks);
}

@media (max-width: 640px) {
    .header-action-tools .server-status-badge { padding: 0; width: 32px; justify-content: center; }
}
@media (max-width: 560px) {
    .header-actions { --header-control-size: 32px; }
    .profile-avatar { width: 26px; height: 26px; }
    .header-action-tools .icon-btn { width: calc(var(--header-control-size) - 4px); height: calc(var(--header-control-size) - 4px); }
    .header-action-tools .server-status-badge { width: calc(var(--header-control-size) - 4px); }
    .header-connection { width: var(--header-control-size); height: var(--header-control-size); }
}
@media (min-width: 1600px) {
    .header-actions { --header-control-size: 44px; }
    .profile-avatar { width: 34px; height: 34px; }
}

#modal-profile.modal { width: min(560px, calc(100vw - 28px)); max-height: min(86dvh, 720px); border-radius: var(--lengkung); box-shadow: var(--bayang-3); }
#modal-profile .profile-modal-head { padding: 18px 20px 16px; background: var(--putih); }
#modal-profile .profile-modal-kicker { margin-bottom: 4px; font-size: 10px; letter-spacing: .08em; }
#modal-profile .profile-modal-head .modal-title { font-size: 17px; }
#modal-profile .profile-modal-body { padding: 16px 20px 20px; background: var(--biru-latar); }
#modal-profile .profile-overview { padding: 13px 14px; border-color: var(--biru-pucat-tepi); border-radius: var(--lengkung-s); background: var(--biru-pucat); }
#modal-profile .profile-modal-avatar { width: 44px; height: 44px; }
#modal-profile .profile-identity { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px; }
#modal-profile .profile-overview-label { grid-column: 1 / -1; font-size: 10px; letter-spacing: .04em; }
#modal-profile .profile-identity strong { color: var(--biru-tua); font-size: 15px; }
#modal-profile .profile-role-badge { grid-column: 2; grid-row: 2; align-self: center; }
#modal-profile .profile-section-card { margin-top: 12px; padding: 15px; border: 1px solid var(--garis); border-radius: var(--lengkung-s); background: var(--putih); box-shadow: var(--bayang-1); }
#modal-profile .profile-section-head { margin-bottom: 13px; padding-bottom: 11px; border-bottom: 1px solid var(--garis); }
#modal-profile .profile-section-head h3 { font-size: 13px; }
#modal-profile .profile-password-form { gap: 12px; }
#modal-profile .profile-password-form label { margin: 0; }
#modal-profile .profile-password-form input { min-height: 40px; padding: 8px 10px; background: var(--permukaan-2); }
#modal-profile .profile-password-form input:hover { border-color: var(--permukaan-2-tepi); background: var(--putih); }
#modal-profile .profile-password-form input:focus { border-color: var(--biru-terang); box-shadow: 0 0 0 3px rgba(43,127,212,.13); outline: 0; }
#modal-profile .profile-password-hint { padding: 9px 10px; border-left-color: var(--biru-terang); }
#modal-profile .profile-modal-actions { margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--garis); }
#modal-profile .profile-modal-actions .btn { min-width: 124px; }
@media (max-width: 560px) {
    #modal-profile.modal { max-height: calc(100dvh - 20px); }
    #modal-profile .profile-modal-head, #modal-profile .profile-modal-body { padding-left: 14px; padding-right: 14px; }
    #modal-profile .profile-section-card { padding: 13px; }
    #modal-profile .profile-modal-actions .btn { flex: 1; min-width: 0; }
}

@media (max-width: 640px) {
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    input[type=text], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea { font-size: 16px; }
    #panel-data.sidebar, .dock { padding-bottom: env(safe-area-inset-bottom); }
    .panel-body, .dock-body, .modal-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .dock-tabs button, .edge-toggle, .dock-collapse { min-height: 38px; }
    .map-toolbar { top: max(10px, env(safe-area-inset-top)); right: 10px; gap: 5px; }
    .map-basemap-trigger, .map-zoomstep-btn { min-height: 38px; }
}
@media (max-width: 480px) {
    .panel-head { padding: 12px 14px; }
    .panel-body, .dock-body { padding-inline: 12px; }
    .dock-tabs { gap: 2px; padding-inline: 4px; }
    .dock-tabs button { min-width: 0; padding-inline: 5px; font-size: 10px; }
    .timeline { padding-inline: 7px; }
    .modal-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

#modal-profile.modal { width: min(510px, calc(100vw - 28px)); overflow: hidden; }
#modal-profile .profile-modal-head { align-items: flex-start; padding: 16px 18px 14px; }
#modal-profile .profile-modal-kicker { margin-bottom: 3px; color: var(--biru); font-size: 9px; letter-spacing: .1em; }
#modal-profile .profile-modal-head .modal-title { color: var(--biru-tua); font-size: 16px; letter-spacing: .02em; text-transform: none; }
#modal-profile .profile-modal-body { display: grid; gap: 10px; padding: 14px 18px 18px; background: var(--biru-latar); }
#modal-profile .profile-overview { margin: 0; padding: 11px 12px; border-radius: var(--lengkung-s); background: var(--putih); box-shadow: var(--bayang-1); }
#modal-profile .profile-modal-avatar { width: 40px; height: 40px; background: var(--biru-pucat); }
#modal-profile .profile-identity { gap: 2px 8px; }
#modal-profile .profile-overview-label { color: var(--teks-samar); font-size: 9px; }
#modal-profile .profile-identity strong { font-size: 14px; }
#modal-profile .profile-role-badge { justify-self: end; padding: 3px 8px; font-size: 9.5px; }
#modal-profile .profile-section-card { margin: 0; padding: 13px; border-radius: var(--lengkung-s); box-shadow: var(--bayang-1); }
#modal-profile .profile-section-head { margin-bottom: 10px; padding-bottom: 9px; }
#modal-profile .profile-section-head h3 { font-size: 12.5px; }
#modal-profile .profile-section-head p { font-size: 10.5px; line-height: 1.4; }
#modal-profile .profile-password-form { gap: 10px; }
#modal-profile .profile-password-form label { font-size: 10.5px; }
#modal-profile .profile-password-form input { min-height: 38px; }
#modal-profile .profile-modal-actions { margin-top: 0; padding-top: 10px; }
#modal-profile .profile-modal-actions .btn { min-width: 116px; }
@media (max-width: 560px) {
    #modal-profile .profile-modal-head, #modal-profile .profile-modal-body { padding-left: 14px; padding-right: 14px; }
    #modal-profile .profile-section-card { padding: 12px; }
}

#modal-profile .profile-section-card { border-color: var(--garis); box-shadow: none; }
#modal-profile .profile-password-form input {
    border: 1px solid var(--garis); border-radius: 7px; background: var(--permukaan-2); color: var(--teks);
}
#modal-profile .profile-password-form input::placeholder { color: var(--teks-samar); opacity: 1; }
#modal-profile .profile-password-form input:hover { border-color: var(--permukaan-2-tepi); }
#modal-profile .profile-password-form input:focus { border-color: var(--biru-terang); background: var(--putih); }
#modal-profile .profile-overview { border-color: var(--biru-pucat-tepi); box-shadow: none; }
#modal-profile .profile-modal-body { scrollbar-color: var(--gulir) transparent; }
#modal-profile .profile-modal-body::-webkit-scrollbar { width: 8px; }
#modal-profile .profile-modal-body::-webkit-scrollbar-thumb { border: 2px solid var(--biru-latar); border-radius: 999px; background: var(--gulir); }
@media (max-width: 560px) {
    #modal-profile .profile-modal-body { gap: 9px; padding-top: 12px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
    #modal-profile .profile-overview { padding: 10px 11px; }
    #modal-profile .profile-section-card { padding: 11px; }
    #modal-profile .profile-password-form { gap: 8px; }
    #modal-profile .profile-modal-actions { gap: 7px; }
    #modal-profile .profile-modal-actions .btn { flex: 1 1 0; min-height: 38px; }
}

#modal-profile.profile-modal-admin-style {
    width: min(580px, calc(100vw - 36px)); height: auto; max-height: min(80dvh, 680px);
    display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--garis);
    border-radius: var(--lengkung); background: var(--putih); box-shadow: var(--bayang-3);
}
#modal-profile.profile-modal-admin-style .profile-modal-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 16px 18px 14px; border-bottom: 1px solid var(--garis); background: var(--putih);
}
#modal-profile.profile-modal-admin-style .profile-modal-title { display: flex; min-width: 0; align-items: flex-start; gap: 11px; }
#modal-profile.profile-modal-admin-style .profile-modal-icon { display: grid; flex: none; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--biru); background: var(--biru-pucat); }
#modal-profile.profile-modal-admin-style .profile-modal-icon .ic { width: 16px; height: 16px; }
#modal-profile.profile-modal-admin-style .profile-modal-kicker { display: block; margin-bottom: 3px; color: var(--biru); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
#modal-profile.profile-modal-admin-style .profile-modal-head .modal-title { display: block; color: var(--teks); font-size: 16px; line-height: 1.25; letter-spacing: 0; text-transform: none; }
#modal-profile.profile-modal-admin-style .profile-modal-head p { margin: 3px 0 0; color: var(--teks-lembut); font-size: 11px; line-height: 1.45; }
#modal-profile.profile-modal-admin-style .profile-modal-head .modal-btn { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid var(--garis); border-radius: 50%; background: var(--putih); color: var(--teks-samar); font: 400 22px/1 Arial, sans-serif; box-shadow: none; }
#modal-profile.profile-modal-admin-style .profile-modal-head .modal-btn:hover { color: var(--biru); border-color: var(--biru-pucat-tepi); background: var(--biru-pucat); }
#modal-profile.profile-modal-admin-style .profile-modal-body { display: block; min-height: 0; overflow-y: auto; padding: 12px 18px 16px; background: var(--biru-latar); }
#modal-profile.profile-modal-admin-style .profile-overview { display: none; }
#modal-profile.profile-modal-admin-style .profile-identity-card { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--biru-pucat-tepi); border-radius: var(--lengkung-s); background: var(--biru-pucat); color: var(--biru-tua); }
#modal-profile.profile-modal-admin-style .profile-identity-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
#modal-profile.profile-modal-admin-style .profile-identity-card span { color: inherit; font-size: 11px; }
#modal-profile.profile-modal-admin-style .profile-section { margin: 10px 0 0; padding: 12px; border: 1px solid var(--garis); border-radius: var(--lengkung-s); background: var(--putih); box-shadow: var(--bayang-1); }
#modal-profile.profile-modal-admin-style .profile-section-head { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--garis); }
#modal-profile.profile-modal-admin-style .profile-section-head h3 { margin: 0; color: var(--biru-tua); font-size: 13px; }
#modal-profile.profile-modal-admin-style .profile-section-head p { margin: 3px 0 0; color: var(--teks-samar); font-size: 10.5px; line-height: 1.45; }
#modal-profile.profile-modal-admin-style .profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
#modal-profile.profile-modal-admin-style .profile-field-wide { grid-column: 1 / -1; }
#modal-profile.profile-modal-admin-style .profile-password-form { display: grid; gap: 9px; padding: 1px 0 0; }
#modal-profile.profile-modal-admin-style .reauth-field { display: grid; min-width: 0; gap: 6px; margin: 0; color: var(--teks-lembut); font-size: 11px; font-weight: 700; }
#modal-profile.profile-modal-admin-style .reauth-field input { width: 100%; min-width: 0; min-height: 36px; padding: 7px 9px; border: 1px solid var(--garis); border-radius: var(--lengkung-s); background: var(--permukaan-2); color: var(--teks); font-size: 12px; }
#modal-profile.profile-modal-admin-style .reauth-field input:hover { border-color: var(--permukaan-2-tepi); background: var(--putih); }
#modal-profile.profile-modal-admin-style .reauth-field input:focus { border-color: var(--biru-terang); box-shadow: 0 0 0 3px rgba(43,127,212,.13); outline: 0; }
#modal-profile.profile-modal-admin-style .profile-password-hint { display: none; }
#modal-profile.profile-modal-admin-style .profile-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; padding-top: 9px; border-top: 1px solid var(--garis); }
#modal-profile.profile-modal-admin-style .profile-form-actions .btn { min-width: 112px; padding: 8px 11px; font-size: 12px; }
@media (max-width: 560px) {
    #modal-profile.profile-modal-admin-style { width: min(100%, calc(100vw - 20px)); max-height: calc(100dvh - 20px); border-radius: 14px; }
    #modal-profile.profile-modal-admin-style .profile-modal-head, #modal-profile.profile-modal-admin-style .profile-modal-body { padding-left: 14px; padding-right: 14px; }
    #modal-profile.profile-modal-admin-style .profile-form-grid { grid-template-columns: 1fr; gap: 9px; }
    #modal-profile.profile-modal-admin-style .profile-field-wide { grid-column: auto; }
    #modal-profile.profile-modal-admin-style .profile-form-actions { flex-wrap: wrap; }
    #modal-profile.profile-modal-admin-style .profile-form-actions .btn { flex: 1; min-width: 0; }
}

#modal-profile.modal { width: min(500px, calc(100vw - 28px)); max-height: min(82dvh, 650px); }
#modal-profile .profile-modal-head { padding: 15px 17px 13px; }
#modal-profile .profile-modal-head .modal-title { font-size: 16px; }
#modal-profile .profile-modal-body { padding: 12px 17px 16px; }
#modal-profile .profile-overview { gap: 10px; padding: 10px 11px; }
#modal-profile .profile-modal-avatar { width: 38px; height: 38px; }
#modal-profile .profile-modal-avatar .ic { width: 18px; height: 18px; }
#modal-profile .profile-section-card { margin-top: 10px; padding: 12px; }
#modal-profile .profile-section-head { margin-bottom: 10px; padding-bottom: 8px; }
#modal-profile .profile-section-head p { margin-top: 3px; font-size: 10.5px; }
#modal-profile .profile-password-form { gap: 9px; }
#modal-profile .profile-password-form input { min-height: 36px; padding: 7px 9px; font-size: 12px; }
#modal-profile .profile-password-hint { padding: 7px 9px; }
#modal-profile .profile-modal-actions { padding-top: 9px; }
#modal-profile .profile-modal-actions .btn { min-width: 112px; padding: 8px 11px; font-size: 12px; }

#modal-profile > .profile-modal-admin-style { width: min(580px, 100%); max-height: min(80dvh, 680px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--garis); border-radius: var(--lengkung); background: var(--putih); box-shadow: var(--bayang-3); }
#modal-profile > .profile-modal-admin-style .profile-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--garis); background: var(--putih); }
#modal-profile > .profile-modal-admin-style .profile-modal-title { display: flex; min-width: 0; align-items: flex-start; gap: 11px; }
#modal-profile > .profile-modal-admin-style .profile-modal-icon { display: grid; flex: none; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--biru); background: var(--biru-pucat); }
#modal-profile > .profile-modal-admin-style .profile-modal-icon .ic { width: 16px; height: 16px; }
#modal-profile > .profile-modal-admin-style .profile-modal-kicker { display: block; margin-bottom: 3px; color: var(--biru); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
#modal-profile > .profile-modal-admin-style .profile-modal-head .modal-title { display: block; color: var(--teks); font-size: 16px; line-height: 1.25; letter-spacing: 0; text-transform: none; }
#modal-profile > .profile-modal-admin-style .profile-modal-head p { margin: 3px 0 0; color: var(--teks-lembut); font-size: 11px; line-height: 1.45; }
#modal-profile > .profile-modal-admin-style .profile-modal-head .modal-btn { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid var(--garis); border-radius: 50%; background: var(--putih); color: var(--teks-samar); font: 400 22px/1 Arial, sans-serif; box-shadow: none; }
#modal-profile > .profile-modal-admin-style .profile-modal-head .modal-btn:hover { color: var(--biru); border-color: var(--biru-pucat-tepi); background: var(--biru-pucat); }
#modal-profile > .profile-modal-admin-style .profile-modal-body { display: block; min-height: 0; overflow-y: auto; padding: 12px 18px 16px; background: var(--biru-latar); }
#modal-profile > .profile-modal-admin-style .profile-overview { display: none; }
#modal-profile > .profile-modal-admin-style .profile-identity-card { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--biru-pucat-tepi); border-radius: var(--lengkung-s); background: var(--biru-pucat); color: var(--biru-tua); }
#modal-profile > .profile-modal-admin-style .profile-identity-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
#modal-profile > .profile-modal-admin-style .profile-identity-card span { color: inherit; font-size: 11px; }
#modal-profile > .profile-modal-admin-style .profile-section { margin: 10px 0 0; padding: 12px; border: 1px solid var(--garis); border-radius: var(--lengkung-s); background: var(--putih); box-shadow: var(--bayang-1); }
#modal-profile > .profile-modal-admin-style .profile-section-head { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--garis); }
#modal-profile > .profile-modal-admin-style .profile-section-head h3 { margin: 0; color: var(--biru-tua); font-size: 13px; }
#modal-profile > .profile-modal-admin-style .profile-section-head p { margin: 3px 0 0; color: var(--teks-samar); font-size: 10.5px; line-height: 1.45; }
#modal-profile > .profile-modal-admin-style .profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
#modal-profile > .profile-modal-admin-style .profile-field-wide { grid-column: 1 / -1; }
#modal-profile > .profile-modal-admin-style .profile-password-form { display: grid; gap: 9px; padding-top: 1px; }
#modal-profile > .profile-modal-admin-style .reauth-field { display: grid; min-width: 0; gap: 6px; margin: 0; color: var(--teks-lembut); font-size: 11px; font-weight: 700; }
#modal-profile > .profile-modal-admin-style .reauth-field input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 36px; padding: 7px 9px; border: 1px solid var(--garis); border-radius: var(--lengkung-s); background: var(--permukaan-2); color: var(--teks); font-size: 12px; }
#modal-profile > .profile-modal-admin-style .profile-password-hint { display: none; }
#modal-profile > .profile-modal-admin-style .profile-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; padding-top: 9px; border-top: 1px solid var(--garis); }
#modal-profile > .profile-modal-admin-style .profile-form-actions .btn { min-width: 112px; padding: 8px 11px; font-size: 12px; }
@media (max-width: 560px) {
    #modal-profile > .profile-modal-admin-style { width: min(100%, calc(100vw - 20px)); max-height: calc(100dvh - 20px); border-radius: 14px; }
    #modal-profile > .profile-modal-admin-style .profile-modal-head, #modal-profile > .profile-modal-admin-style .profile-modal-body { padding-left: 14px; padding-right: 14px; }
    #modal-profile > .profile-modal-admin-style .profile-form-grid { grid-template-columns: 1fr; }
    #modal-profile > .profile-modal-admin-style .profile-field-wide { grid-column: auto; }
    #modal-profile > .profile-modal-admin-style .profile-form-actions { flex-wrap: wrap; }
    #modal-profile > .profile-modal-admin-style .profile-form-actions .btn { flex: 1; min-width: 0; }
}

.icon-btn { border-radius: var(--lengkung-s); }
.profile-trigger { border-radius: var(--lengkung-s); }
.header-action-tools { border-radius: var(--lengkung-s); }
.map-basemap-trigger,
.map-basemap-switcher select { border-radius: var(--lengkung-s); }
.map-zoomstep-btn,
.edge-toggle { border-radius: var(--lengkung-s); }
.btn-add-box { border-radius: 8px; }
.shp-chip button { border-radius: 5px; }
.batch-manager {
  display:grid;
  gap:9px;
  margin-top:12px;
  padding:11px;
  border:1px solid color-mix(in srgb, var(--biru-terang) 34%, var(--garis));
  border-radius:var(--lengkung-s);
  background-color:var(--putih);
  background-image:linear-gradient(135deg,
    color-mix(in srgb, var(--biru-pucat) 12%, var(--putih)) 0%,
    var(--putih) 100%);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--biru) 8%, transparent),
    0 4px 10px color-mix(in srgb, var(--biru) 7%, transparent);
}
.input-mode-detection {
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  align-items:center;
  gap:10px;
  margin-top:12px;
  padding:13px;
  border:1px solid var(--biru-pucat-tepi);
  border-radius:var(--lengkung-s);
  background:var(--biru-pucat);
  color:var(--teks);
}
.input-mode-detection[hidden] { display:none; }
.input-mode-detection.is-error {
  border-color:color-mix(in srgb, var(--merah) 35%, var(--garis));
  background:color-mix(in srgb, var(--merah) 8%, var(--permukaan));
}
.input-mode-spinner {
  width:20px;
  height:20px;
  border:2px solid color-mix(in srgb, var(--biru) 20%, transparent);
  border-top-color:var(--biru);
  border-radius:50%;
  animation:spin .8s linear infinite;
}
.input-mode-detection.is-error .input-mode-spinner { display:none; }
.input-mode-copy { min-width:0; }
.input-mode-copy strong,
.input-mode-copy span { display:block; }
.input-mode-copy strong { color:var(--biru-tua); font-size:12px; }
.input-mode-copy span { margin-top:2px; color:var(--teks-samar); font-size:10.5px; line-height:1.45; }
.batch-manager-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.batch-manager-head strong { display:block; color:var(--biru-tua); font-size:12px; }
.batch-manager-head span { display:block; margin-top:2px; color:var(--teks-samar); font-size:10.5px; }
.batch-manager-state { padding:3px 6px; border:1px solid var(--biru-pucat-tepi); border-radius:6px; background:var(--biru-pucat); color:var(--biru) !important; font-weight:700; text-transform:capitalize; }
.batch-manager-list { display:grid; gap:6px; max-height:220px; overflow:auto; }
.batch-group-card {
  display:grid;
  grid-template-columns:22px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding:8px;
  border:1px solid color-mix(in srgb, var(--biru-pucat-tepi) 78%, var(--garis));
  border-radius:var(--lengkung-s);
  background:var(--permukaan-2);
  box-shadow:0 1px 2px color-mix(in srgb, var(--biru) 5%, transparent);
}
.batch-group-card.state-done { border-color:var(--hijau-stempel-tepi); background:var(--hijau-stempel-latar); }
.batch-group-card.state-failed,.batch-group-card.state-cancelled { border-color:var(--merah-tepi); background:var(--merah-latar); }
.batch-group-card.is-incomplete { border-color:var(--peringatan-tepi); background:var(--peringatan-latar); }

.batch-group-card.is-excluded { border-color:var(--garis); background:var(--permukaan-2); opacity:.68; }
.batch-group-card.is-excluded .batch-group-info strong { color:var(--teks-samar); }
.batch-group-index { display:grid; width:20px; height:20px; place-items:center; border-radius:5px; background:var(--biru-pucat); color:var(--biru); font-size:10px; font-weight:800; }
.batch-group-info { display:grid; min-width:0; gap:1px; }
.batch-group-info strong,.batch-group-info span,.batch-group-info small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.batch-group-info strong { color:var(--teks); font-size:11px; }
.batch-group-info span,.batch-group-info small { color:var(--teks-samar); font-size:10px; }
.batch-group-info .error { color:var(--merah); }
.batch-group-actions { display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:5px; }

.batch-group-include { gap:5px; font-size:10px; color:var(--teks-samar); font-weight:700; white-space:nowrap; }
.batch-group-include .track { width:26px; height:15px; }
.batch-group-include .track::after { width:11px; height:11px; }
.batch-group-include input:checked + .track::after { transform:translateX(11px); }
.batch-manager-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top:2px; color:var(--teks-samar); font-size:10px; }
.batch-manager-footer > span { min-width:0; }
.batch-manager-footer-actions { display:flex; align-items:center; gap:6px; flex:none; }
@media (max-width:560px) { .batch-group-card { grid-template-columns:22px minmax(0,1fr); } .batch-group-card .btn { grid-column:2; justify-self:start; } .batch-group-actions { grid-column:2; flex-direction:row; align-items:center; justify-content:flex-start; } }

.info-tip-icon { border-radius: 50%; }
#modal-profile.profile-modal-admin-style .profile-modal-head .modal-btn,
#modal-profile > .profile-modal-admin-style .profile-modal-head .modal-btn { border-radius: 8px; }
