/* UrusMobil — gaya dasar. Ramah usia 50+: huruf besar, kontras tinggi, target sentuh >= 48px. */
:root {
  --blue: #1463e8;
  --blue-600: #0f52c7;
  --blue-50: #eaf2ff;
  --navy: #0d2a57;
  --orange: #f5841f;
  --orange-600: #dc6e0c;
  --orange-50: #fff3e6;
  --green: #17914f;
  --green-50: #e7f7ee;
  --red: #c9302c;
  --red-50: #fdecec;
  --purple: #7449db;
  --purple-50: #f1ebff;
  --amber-50: #fff8e1;
  --amber: #8a5a00;
  --bg: #f3f6fb;
  --card: #ffffff;
  --line: #dfe6f0;
  --text: #13233f;
  --muted: #55657d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 42, 87, .06), 0 4px 14px rgba(13, 42, 87, .05);
  --sidebar: 256px;
  --font: "Segoe UI", system-ui, -apple-system, "Roboto", "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.ic { flex: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- kerangka aplikasi ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); background: #fff; border-right: 1px solid var(--line);
  position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; color: var(--navy); }
.brand img { width: 46px; height: auto; }
.wordmark { font-weight: 800; font-style: italic; font-size: 1.45rem; letter-spacing: -.5px; line-height: 1; }
.wordmark .u { color: var(--navy); }
.wordmark .m { color: var(--orange); }
.brand small { display: block; font-size: .72rem; font-style: normal; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 3px; }
.ws-switch {
  margin: 4px 14px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; gap: 10px; color: var(--text); background: var(--bg); min-height: 52px;
}
.ws-switch:hover { text-decoration: none; border-color: var(--blue); }
.ws-switch .name { font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-switch small { display: block; font-size: .78rem; }
.ws-switch .grow { min-width: 0; flex: 1; }
.nav { overflow-y: auto; padding: 4px 12px 16px; flex: 1; }
.nav-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 10px 6px; font-weight: 600; }
.nav a, .nav .soon {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--text); font-weight: 500; min-height: 48px;
}
.nav a:hover { background: var(--blue-50); text-decoration: none; }
.nav a.active { background: var(--blue); color: #fff; }
.nav .soon { color: #8a97ab; cursor: default; }
.nav .soon .tag { margin-left: auto; }
.side-foot { border-top: 1px solid var(--line); padding: 12px 16px; font-size: .8rem; color: var(--muted); }

.main { flex: 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 68px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 30;
}
.topbar .title { font-weight: 700; color: var(--navy); font-size: 1.1rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.menu-btn { display: none; }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--text); padding: 6px 8px; border-radius: 12px; }
.user-chip:hover { background: var(--bg); text-decoration: none; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: grid;
  place-items: center; font-weight: 700; flex: none;
}
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; border-radius: 16px; }
.user-chip .who { line-height: 1.2; }
.user-chip .who small { display: block; font-size: .8rem; }
.content { padding: 26px 28px 40px; max-width: 1180px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.sandbox-bar { background: repeating-linear-gradient(45deg, #fff1d6, #fff1d6 12px, #ffe7b8 12px, #ffe7b8 24px); color: #6b4300; padding: 8px 24px; font-weight: 600; text-align: center; }
.app-foot { margin-top: auto; padding: 18px 28px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); background: #fff; }

.bottom-nav { display: none; }
.scrim { display: none; }

/* ---------- komponen ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card, .stack > * + * { margin-top: 18px; }
.grid > .card, .grid > * + * { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.stat { display: flex; gap: 14px; align-items: flex-start; }
.tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.tile.blue { background: var(--blue); } .tile.green { background: var(--green); } .tile.orange { background: var(--orange); } .tile.purple { background: var(--purple); }
.tile.soft { background: var(--blue-50); color: var(--blue); }
.stat .label { color: var(--muted); font-weight: 600; font-size: .92rem; }
.stat .value { font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.15; }
.stat .sub { color: var(--muted); font-size: .88rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-weight: 650; cursor: pointer;
  background: var(--blue); color: #fff; text-align: center; line-height: 1.2;
}
.btn:hover { background: var(--blue-600); text-decoration: none; }
.btn.secondary { background: #fff; color: var(--blue); border-color: #b9cdf3; }
.btn.secondary:hover { background: var(--blue-50); }
.btn.orange { background: var(--orange); }
.btn.orange:hover { background: var(--orange-600); }
.btn.danger { background: #fff; color: var(--red); border-color: #efb5b3; }
.btn.danger:hover { background: var(--red-50); }
.btn.ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn.ghost:hover { background: var(--bg); }
.btn.sm { min-height: 40px; padding: 6px 14px; font-size: .92rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.field { margin-bottom: 16px; }
.field label, .label-strong { display: block; font-weight: 650; margin-bottom: 6px; color: var(--navy); }
.field .hint { font-size: .88rem; color: var(--muted); margin-top: 5px; }
.req { color: var(--red); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid #c9d4e3; border-radius: 12px;
  font: inherit; color: var(--text); background: #fff;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(20, 99, 232, .18); outline-offset: 0; }
.code-input { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; min-height: 44px; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; min-height: 56px; }
.radio-card input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; }
.radio-card:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; }
.alert.success { background: var(--green-50); border-color: #b7e3c9; color: #0d5a31; }
.alert.error { background: var(--red-50); border-color: #f2c0be; color: #8a1f1c; }
.alert.warning { background: var(--amber-50); border-color: #f1d995; color: var(--amber); }
.alert.info { background: var(--blue-50); border-color: #c4d8fb; color: #0b3f9e; }
.alert .grow { flex: 1; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: .82rem; font-weight: 650; white-space: nowrap; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge.blue { background: var(--blue-50); color: var(--blue-600); border-color: #c8dafa; }
.badge.green { background: var(--green-50); color: var(--green); border-color: #bfe5cf; }
.badge.orange { background: var(--orange-50); color: var(--orange-600); border-color: #f7d2ad; }
.badge.red { background: var(--red-50); color: var(--red); border-color: #f2c0be; }
.badge.purple { background: var(--purple-50); color: var(--purple); border-color: #dacdfa; }
.tag { font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-weight: 650; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f7f9fc; font-size: .86rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .muted { font-size: .88rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid #c9d4e3; color: transparent; }
.dot.done { background: var(--green); border-color: var(--green); color: #fff; }

.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

meter, progress { width: 100%; height: 12px; }
progress { appearance: none; border: 0; border-radius: 99px; background: #e6ecf5; overflow: hidden; }
progress::-webkit-progress-bar { background: #e6ecf5; border-radius: 99px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 99px; }

.empty { text-align: center; padding: 26px 16px; color: var(--muted); }
.empty .tile { margin: 0 auto 10px; }

.logo-box { width: 132px; height: 132px; border-radius: 18px; border: 1.5px dashed #b8c6da; display: grid; place-items: center; background: #f8fafd; overflow: hidden; flex: none; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font-weight: 800; font-size: 2.4rem; }
.ws-logo { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex: none; }
.ws-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ws-logo .logo-ph { font-size: 1rem; }

.plan-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; display: flex; flex-direction: column; }
.plan-card.current { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 99, 232, .12); }
.plan-card.featured { border-color: var(--orange); }
.plan-card .price { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.plan-card ul { list-style: none; padding: 0; margin: 12px 0; flex: 1; }
.plan-card li { display: flex; gap: 8px; padding: 4px 0; font-size: .95rem; }
.plan-card li.off { color: #9aa6b8; }
.plan-card li .ic { margin-top: 3px; }
.yes { color: var(--green); } .no { color: #b5bfcd; }

.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font: 600 1.15rem/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.codes span { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; letter-spacing: .05em; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; word-break: break-all; }
.secret-box { background: var(--bg); border: 1px dashed #b8c6da; border-radius: 12px; padding: 12px 14px; font: 600 1.05rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; word-break: break-all; }
.qr { width: 220px; height: 220px; background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.qr svg { width: 100%; height: 100%; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.temp-pw { font: 700 1.4rem ui-monospace, Menlo, Consolas, monospace; background: #fff; border: 2px dashed var(--orange); border-radius: 12px; padding: 10px 14px; display: inline-block; letter-spacing: .04em; }
.perm-box { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; background: #fbfcfe; }
details.card > summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); }
details.card[open] > summary::after { content: "−"; }
details.card[open] > summary { margin-bottom: 14px; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt { margin-top: 16px; }
.big { font-size: 1.15rem; }

/* ---------- halaman masuk ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: linear-gradient(160deg, #0d2a57 0%, #1252c2 70%, #1463e8 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-side .logo-white { background: #fff; border-radius: 22px; padding: 18px 22px; width: max-content; max-width: 100%; display: flex; gap: 14px; align-items: center; }
.auth-side .logo-white img { width: 76px; }
.auth-side .logo-white .wordmark { font-size: 2.1rem; }
.auth-side h2 { color: #fff; font-size: 1.7rem; margin-top: 34px; }
.auth-side ul { list-style: none; padding: 0; margin: 18px 0 0; }
.auth-side li { display: flex; gap: 12px; padding: 9px 0; font-size: 1.05rem; }
.auth-side li .ic { color: #ffb36b; margin-top: 2px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card .card { padding: 28px; }
.auth-mobile-logo { display: none; }
.auth-foot { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 18px; }

/* ---------- error ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 30px; }
.error-page .code { font-size: 4rem; font-weight: 800; color: var(--orange); line-height: 1; }

/* ---------- responsif ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .2); width: min(86vw, 320px); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(13, 42, 87, .45); z-index: 35; }
  .main { margin-left: 0; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 0 12px; height: 62px; }
  .user-chip .who { display: none; }
  .content { padding: 18px 14px 110px; }
  .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 .74rem var(--font); color: var(--muted);
    background: none; border: 0; padding: 6px 2px; min-height: 56px; justify-content: center; cursor: pointer;
  }
  .bottom-nav a.active { color: var(--blue); }
  .bottom-nav .fab { color: var(--orange-600); }
  .bottom-nav .fab span { width: 50px; height: 50px; margin-top: -24px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(245,132,31,.45); border: 3px solid #fff; }
  .bottom-nav a:hover { text-decoration: none; }
  .app-foot { padding-bottom: 90px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-mobile-logo { display: flex; justify-content: center; margin-bottom: 18px; }
  .auth-mobile-logo img { width: 210px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .g4 .stat { flex-direction: column; gap: 8px; padding: 14px; }
  .g4 .stat .tile { width: 42px; height: 42px; }
  .g4 .stat .value { font-size: 1.35rem; }
  .g4 .stat .sub { font-size: .8rem; }
  .codes { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 auto; }
  h1 { font-size: 1.4rem; }
  table.stack-sm thead { display: none; }
  table.stack-sm, table.stack-sm tbody, table.stack-sm tr, table.stack-sm td { display: block; width: 100%; }
  table.stack-sm tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.stack-sm td { border: 0; padding: 4px 14px; }
  table.stack-sm td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-weight: 600; }
}
@media print {
  .sidebar, .topbar, .bottom-nav, .app-foot, .no-print { display: none !important; }
  .main { margin: 0; }
  body { background: #fff; }
}

/* ---------- Fase 2: pelanggan, check-in, foto, diagram ---------- */
.stepper { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; list-style: none; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .92rem; }
.stepper li .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font-size: .85rem; }
.stepper li.done { color: var(--green); } .stepper li.done .n { background: var(--green); color: #fff; border-color: var(--green); }
.stepper li.now { color: var(--blue); border-color: var(--blue); background: var(--blue-50); } .stepper li.now .n { background: var(--blue); color: #fff; border-color: var(--blue); }
.stepper li.off { opacity: .55; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e6ecf5; }
.photo .meta { padding: 8px 10px; font-size: .85rem; display: flex; flex-direction: column; gap: 6px; }
.photo .meta .actions { gap: 6px; }
.photo .meta .btn.sm { min-height: 36px; padding: 4px 10px; font-size: .82rem; }
.photo.gone { opacity: .6; }
.photo.gone .ph { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--bg); color: var(--muted); font-size: .85rem; text-align: center; padding: 8px; }
.drop { border: 2px dashed #b8c6da; border-radius: 14px; padding: 18px; text-align: center; background: #f8fafd; }
.drop input[type=file] { margin-top: 8px; }
.veh-card { display: flex; gap: 14px; align-items: center; }
.veh-thumb { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--bg); display: grid; place-items: center; color: var(--muted); flex: none; }
.veh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plate { display: inline-block; font: 700 1rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; background: #13233f; color: #fff; border-radius: 6px; padding: 2px 8px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-left: 3px solid var(--line); padding: 0 0 14px 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); }
.timeline li.k-insiden::before { background: var(--red); } .timeline li.k-serah_terima::before { background: var(--green); } .timeline li.k-rekomendasi::before { background: var(--orange); }
.timeline .when { font-size: .82rem; color: var(--muted); }
.views { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.diagram-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.car-svg { width: 100%; height: auto; display: block; max-height: 62vh; touch-action: manipulation; }
.diagram-box.tap .car-svg { cursor: crosshair; }
.car-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.car-mini figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.car-mini figcaption { font-size: .82rem; color: var(--muted); text-align: center; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.c-baik { background: #17914f; } .c-baret { background: #f5841f; } .c-penyok { background: #c9302c; } .c-retak { background: #7449db; } .c-cat { background: #d4a106; } .c-lainnya { background: #55657d; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 14px; cursor: pointer; min-height: 44px; background: #fff; }
.chip input { width: 20px; height: 20px; accent-color: var(--blue); }
.chip:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, transparent); padding: 14px 0 4px; margin-top: 14px; z-index: 5; }
@media (max-width: 900px) { .sticky-actions { bottom: 68px; } }
.result-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.result-card + .result-card { margin-top: 12px; }
.portal-head { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 16px; }
.portal-head .inner, .portal-main { max-width: 760px; margin: 0 auto; }
.portal-main { padding: 18px 14px 40px; }
.dotc { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
a.card { color: inherit; } a.card:hover { text-decoration: none; border-color: var(--blue); }
