/* =====================================================================
   Pegasus Visa Service — Monitoring TKA
   Bahasa desain: bingkai aplikasi putih di atas latar sage, kartu bento
   membulat, menu pill, aksen hijau Pegasus. Mode terang & gelap.
   ===================================================================== */
:root {
  --page: #e4ece8;
  --frame: #ffffff;
  --surface: #f3f6f4;
  --surface-2: #ffffff;
  --line: #e3e9e6;
  --line-2: #d5ddd9;
  --text: #1d2321;
  --muted: #7b8380;
  --ink: #1d2321;          /* tombol/ikon gelap seperti referensi */
  --ink-text: #ffffff;
  --brand: #057e50;
  --brand-2: #12a36c;
  --brand-soft: #dcf0e6;
  --brand-ink: #035e3b;
  --hijau: #2f6b3a;   --hijau-bg: #e5f2e3;
  --merah: #a3322f;   --merah-bg: #fbe7e6;
  --oranye: #a8501c;  --oranye-bg: #fcecdf;
  --kuning: #8a6200;  --kuning-bg: #f9f0d4;
  --biru: #1f6c9f;    --biru-bg: #e1f0fb;
  --ungu: #5b3fa3;    --ungu-bg: #ece7f8;
  --teal: #146b66;    --teal-bg: #dcf2ef;
  --gelap: #3a4340;   --gelap-bg: #e6eae8;
  --abu: #737b78;     --abu-bg: #edf0ee;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-frame: 0 40px 80px -48px rgba(20, 45, 35, .35);
  --shadow-pop: 0 18px 40px -16px rgba(20, 45, 35, .28);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #0b100e;
  --frame: #131a17;
  --surface: #1a2320;
  --surface-2: #202b27;
  --line: #27322e;
  --line-2: #33403b;
  --text: #e7eeea;
  --muted: #8f9b96;
  --ink: #e7eeea;
  --ink-text: #131a17;
  --brand: #1fae78;
  --brand-2: #39c58e;
  --brand-soft: #163b2c;
  --brand-ink: #7fe0b5;
  --hijau: #8fd49a;   --hijau-bg: rgba(80, 180, 100, .14);
  --merah: #f19a96;   --merah-bg: rgba(220, 80, 75, .15);
  --oranye: #f2b07f;  --oranye-bg: rgba(230, 130, 60, .15);
  --kuning: #e9c66c;  --kuning-bg: rgba(220, 175, 50, .14);
  --biru: #8cc4ef;    --biru-bg: rgba(70, 150, 220, .15);
  --ungu: #b9a5f0;    --ungu-bg: rgba(140, 110, 230, .16);
  --teal: #7fd8cf;    --teal-bg: rgba(60, 190, 175, .14);
  --gelap: #c3ccc8;   --gelap-bg: rgba(200, 210, 205, .12);
  --abu: #9aa5a1;     --abu-bg: rgba(200, 210, 205, .08);
  --shadow-frame: 0 40px 80px -40px rgba(0, 0, 0, .7);
  --shadow-pop: 0 18px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--page);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 16px; margin: 0 0 12px; letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: 14px; margin: 0 0 8px; }
small, .muted { color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* ---------- ikon (mask, mengikuti warna teks) */
.ic { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; background: currentColor; vertical-align: -3px;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic-dl { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }
.ic-up { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V9M7 14l5-5 5 5M5 4h14'/%3E%3C/svg%3E"); }
.ic-folder { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6.5A2.5 2.5 0 0 1 5.5 4h3.6c.6 0 1.2.3 1.6.7L12 6h6.5A2.5 2.5 0 0 1 21 8.5v9a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5z'/%3E%3C/svg%3E"); }
.ic-spark { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.2L20.5 10l-6.3 2L12 18l-2.2-6L3.5 10l6.3-1.8zM19 15l1 2.6 2.5 1-2.5.9-1 2.5-.9-2.5-2.6-.9 2.6-1z'/%3E%3C/svg%3E"); }
.ic-sync { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.3-4.9L4 8M4 4v4h4M4 13a8 8 0 0 0 14.3 4.9L20 16M20 20v-4h-4'/%3E%3C/svg%3E"); }
.ic-plus { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.ic-search { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E"); }
.ic-bell { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 1 1 12 0v5l1.5 2h-15zM10 21h4'/%3E%3C/svg%3E"); }
.ic-chat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 1 1 3.5 6.6L4 20l1.2-3.6A7.9 7.9 0 0 1 4 12z'/%3E%3C/svg%3E"); }
.ic-arrow { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.ic-chev { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.ic-up2 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E"); }
.ic-down { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.ic-passport { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3Cpath d='M9 16h6'/%3E%3C/svg%3E"); }
.ic-stamp { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M9 4h6l-1 7h4a2 2 0 0 1 2 2v3H4v-3a2 2 0 0 1 2-2h4zM5 20h14'/%3E%3C/svg%3E"); }
.ic-check { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E"); }
.ic-plane { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 15.5v-1.8l-8-5V3.5a1.5 1.5 0 0 0-3 0v5.2l-8 5v1.8l8-2.5v5.5L8 20v1.5l3.5-1 3.5 1V20l-2-1.5V13z'/%3E%3C/svg%3E"); }
.ic-phone { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h3l1.5 4-2 1.5a10 10 0 0 0 5 5l1.5-2 4 1.5v3a2 2 0 0 1-2 2A16 16 0 0 1 5 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.ic-sun { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
.ic-moon { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E"); }
.ic-out { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h3a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-3M10 16l4-4-4-4M14 12H4'/%3E%3C/svg%3E"); }

/* ---------- bingkai aplikasi */
.layout {
  display: flex; max-width: 1640px; margin: 16px auto; min-height: calc(100vh - 32px);
  background: var(--frame); border-radius: 30px; box-shadow: var(--shadow-frame);
}
.sidebar {
  width: 236px; flex-shrink: 0; position: sticky; top: 16px; height: calc(100vh - 32px); overflow-y: auto;
  display: flex; flex-direction: column; padding: 24px 16px 18px; color: var(--text);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; color: inherit; }
.brand:hover { text-decoration: none; }
.logo-tile {
  width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line); overflow: hidden;
}
.logo-tile img { width: 36px; height: 36px; object-fit: contain; }
.brand b { display: block; font-size: 16px; letter-spacing: -.02em; }
.brand span { display: block; font-size: 11.5px; color: var(--muted); }
.nav { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 99px; color: var(--muted);
  font-weight: 600; font-size: 13.5px; position: relative;
  transition: background-color 150ms ease, color 150ms ease, transform 140ms var(--ease-out);
}
.nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav a:active { transform: scale(0.97); }
.nav a.active { background: var(--brand); color: #fff; }
.nav a.active::after { content: ""; margin-left: auto; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); }
.nav a.active .count { display: none; }
.nav .sep { height: 1px; background: var(--line); margin: 8px 12px; }
.side-foot { padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
  color: var(--brand-ink); background: var(--brand-soft); border: 2px solid var(--frame); box-shadow: 0 0 0 1.5px var(--brand); }
.me b { display: block; font-size: 13.5px; }
.me small { display: block; font-size: 11.5px; }
.me a { margin-left: auto; color: var(--muted); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.me a:hover { background: var(--surface); color: var(--text); }
.theme-toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 99px; padding: 4px; }
.theme-toggle button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 12.5px; padding: 8px 0;
  border-radius: 99px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background-color 150ms ease, color 150ms ease;
}
.theme-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--ink-text); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 8px 0 4px; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 24px 22px 6px 16px; }
.topbar .hello b { display: block; font-size: 20px; letter-spacing: -.02em; }
.topbar .hello small { font-size: 12.5px; }
.topbar .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.round {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ink-text);
  position: relative; transition: transform 140ms var(--ease-out), opacity 150ms ease;
}
.round:hover { text-decoration: none; opacity: .88; }
.round:active { transform: scale(0.95); }
.round .ic { width: 18px; height: 18px; }
.round .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #e5534b; border: 2px solid var(--ink); }
.content { padding: 14px 22px 34px 16px; }
.menu-btn { display: none; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text); }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- kartu */
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px 22px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 6px 0 10px; }
.box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }

/* angka ringkas (dipakai di Histori, Sinkron) */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat {
  --tone: var(--brand); display: block; color: inherit; padding: 16px 18px; border-radius: 20px; background: var(--surface);
  position: relative; transform-style: preserve-3d; transition: transform 300ms var(--ease-out);
}
.stat::after { content: ""; position: absolute; right: 16px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 18%, transparent); }
a.stat:hover { text-decoration: none; }
.stat.tilting { transition: transform 80ms linear; }
.stat .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; padding-right: 22px; }
.stat .val { font-size: 28px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat.c-hijau { --tone: #2f9e5b; } .stat.c-merah { --tone: #d9534f; } .stat.c-ungu { --tone: #7c5cd6; }
.stat.c-gelap { --tone: var(--ink); } .stat.c-teal { --tone: #17a092; } .stat.c-biru { --tone: #2f86c9; }
.stat.c-oranye { --tone: #e07a32; } .stat.c-kuning { --tone: #d6a419; }

/* ---------- bento dashboard */
.bento {
  display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "k1 k2 k3" "det info map" "gauge info map" "gauge itas map";
  margin-bottom: 18px;
}
.bento > * { min-width: 0; }
.a-k1 { grid-area: k1; } .a-k2 { grid-area: k2; } .a-k3 { grid-area: k3; }
.a-det { grid-area: det; } .a-info { grid-area: info; } .a-map { grid-area: map; }
.a-gauge { grid-area: gauge; } .a-itas { grid-area: itas; }
.kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: end; align-content: start; }
.kpi h2 { grid-column: 1 / -1; margin: 0 0 4px; font-size: 15px; }
.kpi .figure { display: flex; align-items: center; gap: 12px; }
.kpi .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--ink-text); display: grid; place-items: center; flex-shrink: 0; }
.kpi .icon .ic { width: 20px; height: 20px; }
.kpi .big { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.kpi .delta b { color: var(--brand); }
.mini { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.mini .col { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.mini .col i { display: block; width: 14px; border-radius: 5px; background: color-mix(in srgb, var(--brand) 22%, var(--surface-2)); transform-origin: bottom; animation: grow-y 600ms var(--ease-out) 150ms backwards; }
.mini .col.hot i { background: var(--brand); }
.mini .col small { font-size: 9.5px; color: var(--muted); }
.mini.range .col i { width: 8px; background: var(--brand); }
.mini.range .col i.ghost { background: color-mix(in srgb, var(--brand) 18%, var(--surface-2)); border-radius: 4px; }
.mini.dots { position: relative; width: 128px; }
.mini.dots svg { width: 128px; height: 64px; overflow: visible; }
.focus-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 2px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.trio .box b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trio .box small { font-size: 11px; }
.person { display: flex; align-items: center; gap: 10px; }
.person b { display: block; font-size: 13.5px; }
.person small { display: block; font-size: 11.5px; }
.person .round { margin-left: auto; width: 38px; height: 38px; background: var(--brand-soft); color: var(--brand-ink); }
.route-card {
  border-radius: 20px; padding: 16px; color: #fff; background: linear-gradient(160deg, #0c9a62, #057e50 60%, #04673f);
  position: relative; overflow: hidden;
}
.route-card::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.route-card .ends { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.route-card .icons { display: flex; justify-content: center; gap: 6px; margin: 14px 0 10px; opacity: .95; }
.route-card .icons .ic { width: 26px; height: 26px; }
.route-card .track { height: 4px; border-radius: 99px; background: rgba(255,255,255,.25); position: relative; margin: 6px 4px 4px; }
.route-card .track span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: #fff; transform-origin: left; animation: grow 700ms var(--ease-out) 200ms backwards; }
.route-card .track b { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.route-card .meta { display: flex; justify-content: space-between; font-size: 11px; opacity: .85; margin-top: 10px; }
.route-card .meta b { display: block; font-size: 12.5px; opacity: 1; }
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.steps { background: var(--surface-2); border-radius: 20px; padding: 14px 16px; }
.steps .id { font-size: 15px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; display: block; color: var(--text); white-space: nowrap; }
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 6px 0; }
.steps li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; }
.steps li.done i { background: var(--brand); border-color: var(--brand); }
.steps li.now { color: var(--text); font-weight: 700; }
.steps li.now i { border-color: var(--brand); box-shadow: inset 0 0 0 2px var(--surface-2), inset 0 0 0 6px var(--brand); }
.steps li span:first-of-type { white-space: nowrap; }
.steps li span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.pct-row { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 99px; padding: 8px 10px 8px 8px; margin-top: 12px; }
.pct-row svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.pct-row b { font-size: 13.5px; }
.pct-row a { margin-left: auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.gauge { display: grid; place-items: center; position: relative; margin: 6px auto 0; width: 100%; max-width: 250px; }
.gauge svg { width: 100%; height: auto; }
.gauge .tick { transform-box: fill-box; }
.gauge .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .center b { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.gauge .center small { font-size: 12px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
/* kartu ITAS 3D */
.itas { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 10px; align-items: center; }
.itas .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.itas .specs .box { padding: 8px 10px; }
.itas .specs small { display: block; font-size: 10.5px; }
.itas .specs b { font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itas-stage { perspective: 700px; height: 130px; display: grid; place-items: center; }
.itas-card {
  width: 152px; height: 96px; border-radius: 12px; padding: 9px 10px; color: #fff; position: relative;
  background: linear-gradient(135deg, #12a36c 0%, #057e50 55%, #034d31 100%);
  transform: rotateY(-24deg) rotateX(12deg) rotateZ(-4deg); transform-style: preserve-3d;
  box-shadow: 0 24px 30px -14px rgba(3, 60, 38, .65), inset 0 1px 0 rgba(255,255,255,.35);
  animation: card-float 6s ease-in-out infinite; transition: opacity 200ms ease;
}
.itas-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.28), transparent 42%); }
.itas-card::after { content: ""; position: absolute; left: 6px; right: -6px; bottom: -6px; height: 8px; border-radius: 0 0 12px 12px; background: #023d26; transform: translateZ(-6px); }
.itas-card .chip { position: absolute; left: 11px; top: 36px; width: 22px; height: 17px; border-radius: 4px; background: linear-gradient(135deg, #f6dc8a, #c9a24a); }
.itas-card .t1 { font-size: 7.5px; letter-spacing: .12em; font-weight: 700; opacity: .9; }
.itas-card .t2 { font-size: 10px; font-weight: 800; margin-top: 1px; }
.itas-card .nm { position: absolute; left: 11px; right: 11px; bottom: 22px; font-size: 10.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateZ(12px); }
.itas-card .no { position: absolute; left: 11px; bottom: 9px; font-family: var(--mono); font-size: 8.5px; opacity: .9; }
.itas-card .ph { position: absolute; right: 11px; top: 30px; width: 30px; height: 36px; border-radius: 5px; background: rgba(255,255,255,.22); }
.itas-card.swap { opacity: 0; }
.itas-nav { display: flex; gap: 6px; }
.itas-nav button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: transform 140ms var(--ease-out); }
.itas-nav button:active { transform: scale(0.94); }
/* peta rute */
.map-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.map-card .card-head { padding: 20px 22px 0; }
.map { flex: 1; position: relative; min-height: 380px; margin: 8px 12px; border-radius: 18px; overflow: hidden; background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .land { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1; }
.map .grid-l { stroke: var(--line); stroke-width: 1; }
.map .road { fill: none; stroke: var(--line-2); stroke-width: .8; }
.map .route-bg { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.map .route { fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 6 6; animation: dash 1.6s linear infinite; }
.map .pin { fill: var(--frame); stroke: var(--ink); stroke-width: 2.5; }
.map .pin-b { fill: var(--brand); }
.map text { font-family: var(--font); font-weight: 800; font-size: 13px; fill: var(--text); }
.map text.sm { font-weight: 600; font-size: 9.5px; fill: var(--muted); }
.map .plane { offset-rotate: auto 90deg; animation: fly 9s linear infinite; }
.map-foot { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px 18px; gap: 8px; }
.map-foot .big { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.map-foot .big small { font-size: 15px; font-weight: 600; }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.status-row a { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 99px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 13px; transition: transform 140ms var(--ease-out); }
.status-row a:hover { text-decoration: none; background: var(--brand-soft); }
.status-row a:active { transform: scale(0.97); }
.status-row a b { font-variant-numeric: tabular-nums; }
.status-row a i { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- tahap proses */
.stage { display: grid; grid-template-columns: 170px 1fr 44px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.stage:last-child { border-bottom: 0; }
.stage .name { font-weight: 700; }
.stage .name small { display: block; font-weight: 500; }
.bar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; display: flex; transform-origin: left center; }
.stage .num { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- tabel */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
table.t { width: 100%; border-collapse: collapse; }
.t th, .t td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.t th { background: var(--surface); font-size: 11.5px; color: var(--muted); font-weight: 700; white-space: nowrap; position: sticky; top: 0; letter-spacing: .02em; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background-color 120ms ease; }
.t tbody tr:hover td { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t td.nowrap { white-space: nowrap; }
.t .nm { font-weight: 700; color: var(--text); }
.t a.nm:hover { color: var(--brand); }
.t input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); }
.empty { text-align: center; color: var(--muted); padding: 28px 10px !important; }
.compact td, .compact th { padding: 7px 9px; }

/* ---------- badge & chip */
.b { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 700; white-space: nowrap; line-height: 1.7; letter-spacing: .04em; text-transform: uppercase; }
.b-hijau { background: var(--hijau-bg); color: var(--hijau); }
.b-merah { background: var(--merah-bg); color: var(--merah); }
.b-oranye { background: var(--oranye-bg); color: var(--oranye); }
.b-kuning { background: var(--kuning-bg); color: var(--kuning); }
.b-biru { background: var(--biru-bg); color: var(--biru); }
.b-ungu { background: var(--ungu-bg); color: var(--ungu); }
.b-teal { background: var(--teal-bg); color: var(--teal); }
.b-gelap { background: var(--gelap-bg); color: var(--gelap); }
.b-abu { background: var(--abu-bg); color: var(--abu); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-size: 10.5px; font-weight: 700; margin: 1px 2px 1px 0; letter-spacing: .03em; }
.sisa-lewat, .sisa-merah { color: var(--merah); font-weight: 800; }
.sisa-oranye { color: var(--oranye); font-weight: 800; }
.sisa-kuning { color: var(--kuning); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 10.5px; padding: 2px 8px; border-radius: 99px; font-weight: 700; white-space: nowrap; }
.chip.done { background: var(--hijau-bg); color: var(--hijau); }
.chip.now { background: var(--brand); color: #fff; }
.chip.pend { background: var(--oranye-bg); color: var(--oranye); }
.chip.wait { background: var(--abu-bg); color: var(--abu); }
.progress { height: 6px; background: var(--surface); border-radius: 99px; overflow: hidden; margin-top: 6px; width: 120px; }
.progress span { display: block; height: 100%; background: var(--brand); transform-origin: left center; }

/* ---------- form */
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
label .req { color: var(--merah); }
input[type=text], input[type=password], input[type=date], input[type=month], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 12px; font: inherit; color: var(--text);
  background: var(--surface-2); transition: border-color 150ms ease, box-shadow 150ms ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
textarea { resize: vertical; min-height: 70px; }
.field { margin-bottom: 12px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 14px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 13.5px; margin: 0 14px 6px 0; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.check-box { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 4px; background: var(--surface-2); }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.filters > * { flex: 0 0 auto; }
.filters input[type=search], .filters input[type=text] { width: 250px; }
.filters select { width: auto; min-width: 140px; }

/* ---------- tombol (pill seperti referensi) */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; font-size: 13px;
  transition: transform 140ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:hover { text-decoration: none; border-color: var(--text); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); border-color: transparent; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.btn.danger { color: var(--merah); border-color: color-mix(in srgb, var(--merah) 35%, transparent); }
.btn.danger:hover { background: var(--merah-bg); border-color: var(--merah); }
.btn.sm { padding: 5px 11px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface); }
.btn .ic { width: 15px; height: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; }
.linkbtn.danger { color: var(--merah); }
.inline { display: inline; }

/* ---------- flash */
.flash { padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; font-weight: 600; animation: rise 260ms var(--ease-out) backwards; }
.flash.ok { background: var(--hijau-bg); color: var(--hijau); }
.flash.error { background: var(--merah-bg); color: var(--merah); }

/* ---------- combobox */
.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-pop); max-height: 280px; overflow-y: auto; min-width: 300px; padding: 4px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px) scale(0.98); transform-origin: top left;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s linear 150ms;
}
.combo-list.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.combo-item { padding: 8px 10px; cursor: pointer; border-radius: 10px; }
.combo-item:hover, .combo-item.hi { background: var(--brand-soft); }
.combo-item b { display: block; font-size: 13px; }
.combo-item small { font-size: 11.5px; }
.linked { font-size: 11.5px; color: var(--brand); font-weight: 600; margin-top: 3px; }
.rows-table td { padding: 6px; }
.rows-table input { padding: 7px 10px; }

/* ---------- penjelajah dokumen */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; margin-bottom: 14px; }
.crumbs a, .crumbs span { font-weight: 700; }
.crumbs .sl { color: var(--line-2); font-weight: 400; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.folder {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; border-radius: 18px; background: var(--surface);
  transition: transform 200ms var(--ease-out), background-color 150ms ease;
}
.folder:hover { text-decoration: none; background: var(--brand-soft); }
.folder svg { width: 34px; height: 34px; flex-shrink: 0; color: var(--brand); }
.folder b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder small { font-size: 11.5px; }
.folder .fx { min-width: 0; }
.dropzone {
  border: 2px dashed var(--line-2); border-radius: 18px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer;
  background: var(--surface-2); transition: border-color 150ms ease, background-color 150ms ease, transform 200ms var(--ease-out);
}
.dropzone.over { border-color: var(--brand); background: var(--brand-soft); transform: scale(1.01); }
.dropzone b { color: var(--text); }
.upload-log { margin-top: 10px; font-size: 13px; max-height: 320px; overflow-y: auto; }
.upload-log div { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.ok-text { color: var(--brand); font-weight: 600; }
.err-text { color: var(--merah); font-weight: 600; }
.upload-progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 10px; display: none; }
.upload-progress.show { display: block; }
.upload-progress span { display: block; height: 100%; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left center; transition: transform 300ms var(--ease-out); }

/* ---------- lain-lain */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 13px 20px; border-left: 2px solid var(--line-2); margin-left: 5px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--surface); }
.timeline li:last-child { border-left-color: transparent; }
.timeline .when { font-size: 11.5px; color: var(--muted); }
.lay-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lay-card { border-radius: 18px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.lay-card.done { border-color: color-mix(in srgb, var(--hijau) 30%, transparent); }
.lay-card.now { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.lay-card .top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lay-card .top b { font-size: 14px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 7px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.callout { background: var(--kuning-bg); border-radius: 20px; padding: 16px 18px; }
.callout.blue { background: var(--brand-soft); }
.callout h2 { margin-bottom: 8px; }
dialog { border: 0; border-radius: 22px; padding: 0; overflow: visible; width: min(560px, calc(100vw - 32px)); background: var(--frame); color: var(--text); box-shadow: var(--shadow-pop); }
dialog[open] { animation: pop 220ms var(--ease-out); }
dialog::backdrop { background: rgba(10, 20, 15, .45); }
dialog[open]::backdrop { animation: fade 220ms var(--ease-out); }
dialog .dlg-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
dialog .dlg-head h2 { margin: 0; }
dialog .dlg-head button { margin-left: auto; }
dialog .dlg-body { padding: 18px 20px; }
dialog .dlg-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.bulkbar {
  position: sticky; bottom: 14px; z-index: 20; margin-top: 12px; color: var(--ink-text); border-radius: 22px; padding: 12px 16px;
  background: var(--ink); display: flex; gap: 10px; align-items: end; flex-wrap: wrap; box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.bulkbar.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bulkbar label { color: inherit; opacity: .75; }
.bulkbar small { color: inherit !important; opacity: .7; }
.bulkbar select, .bulkbar input { min-width: 150px; }
.loading-overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--page) 75%, transparent); backdrop-filter: blur(3px); display: none; flex-direction: column; gap: 14px; align-items: center; justify-content: center; z-index: 100; font-weight: 700; }
.loading-overlay.show { display: flex; }
.loading-overlay::before { content: ""; width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--brand-soft); border-top-color: var(--brand); animation: spin 700ms linear infinite; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; font-weight: 600; color: var(--muted); border-radius: 99px; background: var(--surface); transition: background-color 150ms ease, color 150ms ease; }
.tabs a:hover { color: var(--text); text-decoration: none; background: var(--brand-soft); }
.pill-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill-nav a { padding: 7px 14px; border-radius: 99px; background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--text); transition: transform 140ms var(--ease-out), background-color 150ms ease; }
.pill-nav a:hover { text-decoration: none; background: var(--brand-soft); }
.pill-nav a:active { transform: scale(0.97); }
.pill-nav a.active { background: var(--ink); color: var(--ink-text); }
.pill-nav a .n { opacity: .6; margin-left: 5px; }
.mark-yes { color: var(--brand); font-weight: 800; }
.mark-no { color: var(--line-2); }
.big-num { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* hero (dipakai halaman Sinkron) */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 22px 26px; margin-bottom: 16px;
  background: var(--brand-soft); display: grid; grid-template-columns: minmax(0, 1fr) 170px; grid-template-areas: "txt scene" "act scene";
  column-gap: 16px; align-items: center;
}
.hero h1 { font-size: 24px; }
.hero small { color: var(--brand-ink); font-weight: 600; }
.hero .txt { grid-area: txt; position: relative; z-index: 2; }
.hero .actions { grid-area: act; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; position: relative; z-index: 2; }
.hero .chips-hero { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hero .chips-hero span { background: var(--surface-2); padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.scene { position: absolute; width: 150px; height: 150px; perspective: 600px; pointer-events: none; }
.hero .scene { grid-area: scene; position: relative; justify-self: center; }
.orbit { position: absolute; inset: 0; transform-style: preserve-3d; animation: orbit-spin 24s linear infinite; }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.orbit i:nth-child(1) { transform: rotateX(72deg); }
.orbit i:nth-child(2) { transform: rotateY(72deg); }
.orbit i:nth-child(3) { transform: rotateX(72deg) rotateY(60deg); opacity: .6; }
.orbit b { position: absolute; width: 10px; height: 10px; border-radius: 50%; top: -5px; left: 70px; background: var(--brand); transform: translateZ(40px); }
.sphere { position: absolute; inset: 42px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff 0%, #9be3bf 20%, #12a36c 50%, #034d31 85%); animation: float-y 6s ease-in-out infinite; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; position: relative; overflow: hidden; background: var(--page); }
.login-wrap .scene { left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; opacity: .5; }
.login-wrap .sphere { inset: 165px; }
.login-card { width: 100%; max-width: 400px; position: relative; z-index: 2; background: var(--frame); border-radius: 28px; padding: 30px; box-shadow: var(--shadow-frame); animation: card-in 500ms var(--ease-out) backwards; }
.login-card .logo { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.login-card .logo .logo-tile { width: 56px; height: 56px; }
.login-card .logo .logo-tile img { width: 46px; height: 46px; }
.login-card .logo small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* ---------- gerak */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes card-float { 0%, 100% { transform: rotateY(-24deg) rotateX(12deg) rotateZ(-4deg) translateY(-3px); } 50% { transform: rotateY(-18deg) rotateX(14deg) rotateZ(-3deg) translateY(4px); } }
@keyframes orbit-spin { from { transform: rotateX(14deg) rotateY(0deg); } to { transform: rotateX(14deg) rotateY(360deg); } }
@keyframes float-y { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }
/* fill-mode backwards: setelah selesai, transform kembali milik elemen (dibutuhkan efek tilt) */
.content > *, .bento > *, .stats > .stat, .folders > .folder { animation: rise 300ms var(--ease-out) backwards; }
.content > :nth-child(2), .bento > :nth-child(2), .stats > :nth-child(2), .folders > :nth-child(2) { animation-delay: 45ms; }
.content > :nth-child(3), .bento > :nth-child(3), .stats > :nth-child(3), .folders > :nth-child(3) { animation-delay: 90ms; }
.content > :nth-child(4), .bento > :nth-child(4), .stats > :nth-child(4), .folders > :nth-child(4) { animation-delay: 135ms; }
.content > :nth-child(5), .bento > :nth-child(5), .stats > :nth-child(5), .folders > :nth-child(5) { animation-delay: 180ms; }
.content > :nth-child(6), .bento > :nth-child(6), .stats > :nth-child(6), .folders > :nth-child(6) { animation-delay: 225ms; }
.content > :nth-child(n+7), .bento > :nth-child(n+7), .stats > :nth-child(n+7), .folders > :nth-child(n+7) { animation-delay: 270ms; }
.bar, .progress span { animation: grow 600ms var(--ease-out) 150ms backwards; }

@media (hover: hover) and (pointer: fine) {
  .folder:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .content > *, .bento > *, .stats > .stat, .folders > .folder, .flash, .login-card { animation: fade 200ms ease backwards; }
  .bar, .progress span, .mini .col i, .route-card .track span { animation: none; }
  .orbit, .sphere, .itas-card, .map .route, .map .plane { animation: none; }
  dialog[open] { animation: fade 150ms ease; }
  .stat, .folder, .btn, .nav a { transition: none; }
}

/* ---------- responsif */
@media (max-width: 1280px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "k1 k2" "k3 det" "info map" "gauge map" "itas map"; }
}
@media (max-width: 1100px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .layout { margin: 0; border-radius: 0; min-height: 100vh; }
  .sidebar { position: fixed; left: 0; top: 0; height: 100vh; z-index: 50; background: var(--frame); transform: translateX(-105%);
    transition: transform 280ms var(--ease-drawer); box-shadow: var(--shadow-pop); }
  body.nav-open .sidebar { transform: none; }
  .menu-btn { display: inline-flex; }
  .main { padding: 0; }
  .topbar { padding: 14px 16px 4px; }
  .topbar .hello b { font-size: 16px; }
  .topbar .round.opt { display: none; }
  .content { padding: 12px 16px 28px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k1" "k2" "k3" "det" "info" "gauge" "itas" "map"; }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { grid-template-columns: 120px 1fr 36px; }
  .filters input[type=search], .filters input[type=text] { width: 100%; }
  .filters > * { flex: 1 1 140px; }
  .kv { grid-template-columns: 120px 1fr; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "txt" "act"; padding: 18px; }
  .hero .scene, .login-wrap .scene { display: none; }
}
@media print {
  body { background: #fff; }
  .layout { box-shadow: none; margin: 0; }
  .sidebar, .topbar, .actions, .filters, .bulkbar, .scene { display: none !important; }
}
