/* Catatan Servis Kendaraan — tampilan. Charcoal · metallic silver · aksen merah. */
:root {
  --red: #d7263d; --red-strong: #b3132a; --red-soft: #fde8eb;
  --charcoal: #1d2026; --charcoal-2: #272b33; --charcoal-3: #323843;
  --silver-1: #f3f5f8; --silver-2: #e3e7ec; --silver-3: #c6ccd4; --silver-4: #8d949e;
  --bg: #eef0f3; --surface: #ffffff; --surface-2: #f6f7f9; --border: #d9dde3; --border-strong: #b9c0c9;
  --text: #1b1e24; --text-2: #4a515c; --text-3: #6b727d; --on-accent: #fff;
  --ok: #1f7a4d; --ok-bg: #e3f4ea; --warn: #9a5b00; --warn-bg: #fff2d9; --danger: #b3132a; --danger-bg: #fde8eb; --info: #1d5fa8; --info-bg: #e5effa; --muted: #5b616b; --muted-bg: #eceff2;
  --side-bg: linear-gradient(180deg, #23272e 0%, #17191e 100%);
  --chrome: linear-gradient(180deg, #ffffff 0%, #eef0f3 100%);
  --metal: linear-gradient(135deg, #f4f6f8 0%, #d3d8de 48%, #eef1f4 100%);
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(16,18,22,.06), 0 6px 18px rgba(16,18,22,.06);
  --pad: clamp(14px, 2.6vw, 36px); --gap: clamp(12px, 1.6vw, 20px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 64px; --top-h: 60px; --side-w: 248px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121418; --surface: #1c1f25; --surface-2: #23272e; --border: #313741; --border-strong: #454c58;
  --text: #eef0f3; --text-2: #c3c8d0; --text-3: #959ca7; --red-soft: #3a1a20;
  --ok: #5fd197; --ok-bg: #17342a; --warn: #f3b85a; --warn-bg: #3a2c14; --danger: #ff7a8a; --danger-bg: #3a1a20; --info: #8cbcf3; --info-bg: #182b40; --muted: #aab1bb; --muted-bg: #2a2f37;
  --chrome: linear-gradient(180deg, #23272e 0%, #1c1f25 100%);
  --metal: linear-gradient(135deg, #2e333b 0%, #22262d 50%, #2b3038 100%);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
/* ukuran dasar semua ikon (spesifisitas 0: aturan khusus di bawah tetap menang) */
:where(svg[viewBox="0 0 24 24"]) { width: 1.25em; height: 1.25em; flex: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 70%, white); outline-offset: 2px; border-radius: 6px; }
.num, .money, td.r, .kpi-val { font-variant-numeric: tabular-nums; }

/* ---------------- shell ---------------- */
.shell { min-height: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; }
.side { display: none; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--pad) 0; background: var(--charcoal); color: #fff; border-bottom: 2px solid var(--red); }
.top-title { font-size: 18px; margin: 0; font-weight: 700; letter-spacing: .2px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.main { padding: var(--pad); padding-bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); min-width: 0; outline: none; }
.banner-area:empty { display: none; }
.banner-area { padding: 10px var(--pad) 0; display: grid; gap: 8px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, 1fr); background: var(--charcoal); border-top: 1px solid #000; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tabbar-h); color: #aeb4bd; text-decoration: none; font-size: 10.5px; font-weight: 600; letter-spacing: .1px; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: #fff; box-shadow: inset 0 3px 0 var(--red); }
@media (orientation: landscape) and (max-height: 500px) {
  :root { --tabbar-h: 48px; --top-h: 48px; }
  .tabbar a { flex-direction: row; gap: 6px; font-size: 12px; }
  .tabbar a svg { width: 18px; height: 18px; }
  .fab { min-height: 44px; padding: 0 14px; bottom: calc(var(--tabbar-h) + 10px); right: 10px; opacity: .92; }
  .fab:focus, .fab:hover { opacity: 1; }
}

@media (min-width: 1024px) {
  .shell { grid-template-columns: var(--side-w) 1fr; grid-template-rows: auto auto 1fr; }
  .side { display: flex; flex-direction: column; grid-row: 1 / span 3; position: sticky; top: 0; height: 100vh; background: var(--side-bg); color: #e9ecf0; padding: 18px 14px; border-right: 1px solid #0c0d10; }
  .top, .banner-area, .main { grid-column: 2; }
  .top { background: var(--chrome); color: var(--text); border-bottom: 1px solid var(--border); }
  .main { padding-bottom: 40px; }
  .only-mobile { display: none !important; }
  .fab { display: none !important; }
}
.brand { padding: 6px 6px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.brand-logo { width: 100%; height: auto; display: block; }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: #c9ced6; font-weight: 600; }
.nav a svg { width: 20px; height: 20px; flex: none; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(215,38,61,.22), rgba(215,38,61,.04)); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.side-foot { margin-top: auto; font-size: 12px; color: #8d949e; padding: 12px 8px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot b { color: #c9ced6; font-weight: 600; }

/* ---------------- status & pills ---------------- */
.sync-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: inherit; border-radius: 999px; padding: 6px 12px 6px 9px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 36px; }
@media (min-width: 1024px) { .sync-pill { border-color: var(--border); background: var(--surface); } }
.sync-pill svg { width: 16px; height: 16px; flex: none; }
.sync-pill[data-state="ok"] svg { color: var(--ok); }
.sync-pill[data-state="busy"] svg { animation: spin 1s linear infinite; color: var(--info); }
.sync-pill[data-state="wait"] svg, .sync-pill[data-state="local"] svg { color: var(--warn); }
.sync-pill[data-state="fail"] svg, .sync-pill[data-state="conflict"] svg { color: var(--danger); }
.top .sync-pill[data-state] svg { filter: drop-shadow(0 0 0 transparent); }
.net { font-size: 12px; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.net svg { width: 15px; height: 15px; }
.net[data-off="1"] { color: #ffcf7a; }
@media (min-width: 1024px) { .net[data-off="1"] { color: var(--warn); } }
@media (max-width: 420px) { .sync-pill .lbl-long { display: none; } .net .lbl { display: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px 3px 7px; border-radius: 999px; line-height: 1.3; white-space: nowrap; border: 1px solid transparent; }
.badge svg { width: 14px; height: 14px; flex: none; }
.tone-ok { color: var(--ok); background: var(--ok-bg); }
.tone-warn { color: var(--warn); background: var(--warn-bg); }
.tone-danger, .tone-over { color: var(--danger); background: var(--danger-bg); }
.tone-due { color: #fff; background: var(--red); }
.tone-near { color: var(--warn); background: var(--warn-bg); }
.tone-info { color: var(--info); background: var(--info-bg); }
.tone-muted, .tone-na { color: var(--muted); background: var(--muted-bg); }
.badge.pending { color: var(--warn); background: transparent; border-color: currentColor; font-weight: 600; }

/* ---------------- surfaces ---------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; justify-content: space-between; margin-bottom: var(--gap); }
.page-head h2 { margin: 0; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.2px; }
.page-head p { margin: 4px 0 0; color: var(--text-3); font-size: 13.5px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(14px, 1.6vw, 20px); min-width: 0; }
.card h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
/* ikon di judul & teks selalu berukuran ikon (tanpa ini SVG melebar penuh) */
h1 svg, h2 svg, h3 svg, h4 svg, p svg, li svg, label svg, summary svg, td svg, th svg { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.card h3 svg { color: var(--red); }
.card h3 small { font-weight: 500; color: var(--text-3); font-size: 12.5px; }
.metal { background: var(--metal); }
.grid { display: grid; gap: var(--gap); }
.g-kpi { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.g-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.stack { display: grid; gap: var(--gap); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }

.kpi { position: relative; overflow: hidden; }
.kpi .kpi-lbl { font-size: 12.5px; color: var(--text-3); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.kpi .kpi-lbl svg { width: 16px; height: 16px; }
.kpi .kpi-val { font-size: clamp(19px, 1.7vw, 26px); font-weight: 800; letter-spacing: -.5px; margin-top: 4px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .kpi-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.kpi.accent::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--red); }
.kpi.k-over .kpi-val { color: var(--danger); } .kpi.k-near .kpi-val { color: var(--warn); }

.period svg { width: 16px; height: 16px; flex: none; }
.period { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px dashed var(--border-strong); padding: 5px 10px; border-radius: 8px; }

/* vehicle cards */
.vcard { display: grid; gap: 10px; text-decoration: none; color: inherit; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.vcard:hover { transform: translateY(-1px); }
.vcard .vh { display: flex; gap: 12px; align-items: center; }
.vcard .vphoto { width: 56px; height: 56px; border-radius: 12px; flex: none; background: var(--metal); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.vcard .vphoto img { width: 100%; height: 100%; object-fit: cover; }
.vcard .vphoto svg { width: 30px; height: 30px; color: var(--text-3); }
.vcard .vname { font-weight: 800; font-size: 16px; line-height: 1.25; }
.vcard .plate { display: inline-block; font-weight: 800; letter-spacing: 1px; font-size: 12.5px; padding: 2px 8px; border-radius: 6px; background: #1d2026; color: #f3f5f8; border: 1px solid #000; margin-top: 3px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.kv dt { color: var(--text-3); } .kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.archived { opacity: .7; }

/* lists */
.list { display: grid; gap: 8px; }
.li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; cursor: pointer; }
.li:hover { border-color: var(--border-strong); }
.li .t { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.li .s { font-size: 12.5px; color: var(--text-3); grid-column: 1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.li .v { font-weight: 800; text-align: right; }
.li .b { grid-column: 2; grid-row: 2; justify-self: end; }
.prio { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.prio:last-child { border-bottom: 0; }

/* table */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.tbl th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-2); position: sticky; top: 0; white-space: nowrap; }
.tbl th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; } .tbl tbody tr:hover { background: var(--surface-2); }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl tfoot td { font-weight: 800; background: var(--surface-2); }

/* forms */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar > * { flex: 1 1 160px; }
.toolbar .grow { flex: 3 1 240px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.field .req { color: var(--red); }
.field .help { font-size: 12px; color: var(--text-3); }
.field .err { font-size: 12.5px; color: var(--danger); font-weight: 600; display: flex; gap: 5px; align-items: center; }
.field .err svg { width: 14px; height: 14px; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; outline: none; }
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 20%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[readonly] { background: var(--surface-2); color: var(--text-2); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
fieldset.group { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin: 0; display: grid; gap: 14px; min-width: 0; }
fieldset.group legend { font-weight: 800; padding: 0 6px; font-size: 13.5px; }
.combo { display: flex; gap: 6px; } .combo .input { flex: 1; min-width: 0; }
.parts { display: grid; gap: 8px; }
.part-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(64px, .8fr) minmax(0, 1.6fr) minmax(0, 1.4fr) auto; gap: 6px; align-items: center; }
.part-row .sub { text-align: right; font-weight: 700; font-size: 13px; }
@media (max-width: 640px) { .part-row { grid-template-columns: 1fr 70px 1fr auto; } .part-row .sub { grid-column: 1 / span 3; text-align: left; } }
.totals { display: grid; gap: 4px; justify-items: end; font-size: 14px; }
.totals .grand { font-size: 20px; font-weight: 800; color: var(--text); }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { border-color: var(--text-3); }
.btn.primary { background: linear-gradient(180deg, #e1354b, var(--red-strong)); border-color: var(--red-strong); color: #fff; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.dark { background: var(--charcoal); color: #fff; border-color: #000; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.icon-btn svg { width: 22px; height: 22px; }
.fab { position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 25; border-radius: 999px; box-shadow: 0 8px 24px rgba(179,19,42,.35); min-height: 54px; padding: 0 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* states */
.empty { text-align: center; padding: 34px 16px; color: var(--text-3); display: grid; gap: 10px; justify-items: center; }
.empty svg { width: 46px; height: 46px; color: var(--silver-4); }
.empty b { color: var(--text); font-size: 16px; }
.loading-screen { min-height: 50vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--text-3); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--red); animation: spin .8s linear infinite; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; border: 1px solid transparent; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice .grow { flex: 1; min-width: 0; }
.notice.ok { background: var(--ok-bg); color: var(--ok); } .notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.danger { background: var(--danger-bg); color: var(--danger); } .notice.info { background: var(--info-bg); color: var(--info); }
.notice.demo { background: repeating-linear-gradient(45deg, #ffe08a, #ffe08a 12px, #ffd25e 12px, #ffd25e 24px); color: #3b2c00; font-weight: 700; }
.notice .btn { min-height: 34px; padding: 5px 12px; font-size: 13px; }

/* modal */
.modal-root[aria-hidden="true"] { display: none; }
.modal-root { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; background: rgba(12,13,16,.55); }
@media (min-width: 720px) { .modal-root { place-items: center; padding: 24px; } }
.modal { width: 100%; max-width: 760px; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: 0 20px 60px rgba(0,0,0,.4); display: flex; flex-direction: column; }
.modal.wide { max-width: 1040px; }
@media (min-width: 720px) { .modal { border-radius: 18px; } }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--surface); border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 17px; flex: 1; }
.modal-body { padding: 18px; display: grid; gap: 16px; }
.modal-foot { position: sticky; bottom: 0; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }

.toast-root { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); z-index: 80; display: grid; gap: 8px; width: min(92vw, 460px); }
@media (min-width: 1024px) { .toast-root { bottom: 24px; } }
.toast { display: flex; gap: 10px; align-items: center; background: var(--charcoal); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 14px; animation: tin .2s ease; }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast.ok svg { color: #6ee7a8; } .toast.err svg { color: #ff8a98; } .toast.warn svg { color: #ffcf7a; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .bar { fill: var(--charcoal-3); } :root[data-theme="dark"] .chart .bar { fill: #aeb4bd; }
.chart .bar.hl { fill: var(--red); }
.chart .grid-l { stroke: var(--border); stroke-width: 1; }
.hbar { display: grid; gap: 8px; }
.hbar .hr { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hbar .track { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.hbar .fill { height: 100%; background: linear-gradient(90deg, var(--charcoal-3), var(--red)); border-radius: 6px; }
:root[data-theme="dark"] .hbar .fill { background: linear-gradient(90deg, #7d8591, var(--red)); }
.hbar .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.diff { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.diff th, .diff td { border: 1px solid var(--border); padding: 8px; text-align: left; vertical-align: top; }
.diff td label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.attach { display: flex; flex-wrap: wrap; gap: 8px; }
.att { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; background: var(--surface-2); font-size: 13px; max-width: 100%; }
.att img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.att span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.footer-credit { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); display: flex; gap: 6px 16px; flex-wrap: wrap; justify-content: center; text-align: center; }
.about-logo { width: min(100%, 420px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media print { .side, .top, .tabbar, .fab, .banner-area { display: none !important; } }
