/* Bali Eka Soghi — design system
   Layout: navy masthead + paper body; gold "prada" ornament as the signature divider. */
:root {
  --navy-950: #061224;
  --navy-900: #0a1b35;
  --navy-800: #102a4d;
  --navy-700: #1a3c6b;
  --navy-500: #3b5f92;
  --navy-200: #c6d3e6;
  --navy-100: #e3eaf4;
  --paper: #f3f6fa;
  --white: #ffffff;
  --ink: #0d1b2e;
  --ink-2: #44546b;
  --ink-3: #6f7f96;
  --line: #d9e1ec;
  --teal: #178a90;       /* dari logo Be-S */
  --teal-600: #0f7177;
  --teal-50: #e3f4f4;
  --gold: #c69a3d;       /* prada */
  --gold-50: #faf3e2;
  --ok: #1e8a52;  --ok-50: #e4f5eb;
  --warn: #b7791f; --warn-50: #fdf3e1;
  --bad: #c0392b;  --bad-50: #fbe9e7;
  --info: #2a6fdb; --info-50: #e6efff;

  --f-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 6px; --r: 10px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(10,27,53,.06), 0 8px 24px -12px rgba(10,27,53,.18);
  --shadow-lg: 0 24px 60px -24px rgba(6,18,36,.45);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--f-body); font-size: 15.5px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--navy-700); }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; color: var(--navy-900); }
h1, h2, .display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); margin-bottom: .6rem; display: inline-flex; gap: .5rem; align-items: center; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold); }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Prada ornament: deretan belah ketupat emas, motif tepi kain prada Bali */
.prada { height: 10px; background:
  linear-gradient(135deg, transparent 37%, var(--gold) 37% 63%, transparent 63%) 0 0 / 14px 10px,
  linear-gradient(45deg, transparent 37%, var(--gold) 37% 63%, transparent 63%) 0 0 / 14px 10px; opacity: .85; }
.prada.thin { height: 6px; background-size: 9px 6px, 9px 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .95rem/1 var(--f-body); padding: .85rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-600); color: #fff; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: #b38931; color: var(--navy-950); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-500); color: var(--navy-900); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #178a45; color: #fff; }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: var(--ok-50); color: var(--ok); }
.pill-warn { background: var(--warn-50); color: var(--warn); }
.pill-bad { background: var(--bad-50); color: var(--bad); }
.pill-info { background: var(--info-50); color: var(--info); }
.pill-muted { background: var(--navy-100); color: var(--ink-2); }
.pill-gold { background: var(--gold-50); color: #8a6519; }

/* ---------- Public header ---------- */
.topbar { background: var(--navy-950); color: var(--navy-200); font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; flex-wrap: wrap; }
.topbar a { color: var(--navy-200); text-decoration: none; }
.topbar a:hover { color: #fff; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy-900); color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--f-display); font-size: 1.2rem; line-height: 1; }
.brand small { display: block; font-family: var(--f-body); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a { color: var(--navy-200); text-decoration: none; font-size: .9rem; font-weight: 500; padding: .5rem .7rem; border-radius: 8px; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.07); }
.nav .btn { margin-left: .5rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: .5rem; cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--navy-900); padding: .5rem var(--gutter) 1rem; display: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav.open { display: flex; }
  .nav .btn { margin: .5rem 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, #1d4a80 0%, transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -6%; bottom: -10%; width: min(640px, 70vw); aspect-ratio: 640/364; background: url("../img/logo-white.png") no-repeat center/contain; opacity: .05; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { font-size: 1.1rem; color: var(--navy-200); max-width: 34em; }
.hero-stats { display: flex; gap: 2rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--f-display); font-size: 1.8rem; font-weight: 400; color: #fff; }
.hero-stats span { font-size: .8rem; color: var(--navy-200); }
.hero-card { background: var(--white); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 1.4rem; }
.hero-card h3 { margin-bottom: .2rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head p { max-width: 38em; color: var(--ink-2); margin: 0; }
.section-dark { background: var(--navy-900); color: var(--navy-200); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-white { background: var(--white); }

/* Category tabs */
.tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.tab { flex-shrink: 0; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-2); font: 600 .88rem var(--f-body); padding: .55rem 1rem; border-radius: 999px; cursor: pointer; text-decoration: none; }
.tab:hover { border-color: var(--navy-500); color: var(--navy-900); }
.tab.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.tour-card { text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.tour-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.tour-card .media { position: relative; aspect-ratio: 16/10; background: var(--navy-800); overflow: hidden; }
.tour-card .media img { width: 100%; height: 100%; object-fit: cover; }
.tour-card .badge { position: absolute; left: 12px; top: 12px; background: var(--gold); color: var(--navy-950); font-size: .72rem; font-weight: 800; letter-spacing: .03em; padding: .25rem .6rem; border-radius: 999px; }
.tour-card .area { position: absolute; left: 12px; bottom: 10px; color: #fff; font-size: .78rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.tour-card .body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.tour-card h3 { margin: 0; font-size: 1.05rem; }
.tour-card .sub { color: var(--ink-2); font-size: .88rem; margin: 0; }
.tour-card .meta { display: flex; gap: .9rem; color: var(--ink-3); font-size: .8rem; margin-top: auto; padding-top: .5rem; flex-wrap: wrap; }
.tour-card .price-row { display: flex; justify-content: space-between; align-items: end; border-top: 1px dashed var(--line); padding-top: .7rem; margin-top: .4rem; }
.price { font-weight: 800; color: var(--navy-900); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.price small { font-weight: 500; color: var(--ink-3); font-size: .78rem; }
.from { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

/* Car cards */
.car-card .media { aspect-ratio: 16/9; background: linear-gradient(180deg, var(--navy-100), var(--white)); }
.car-card .media img { object-fit: contain; padding: 1rem 1.5rem 0; }
.spec { display: flex; gap: .4rem; flex-wrap: wrap; }
.spec span { font-size: .75rem; background: var(--navy-100); color: var(--navy-800); padding: .2rem .55rem; border-radius: 6px; font-weight: 600; }
.rate-table { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .4rem; }
.rate-table div { background: var(--paper); border-radius: 8px; padding: .5rem .6rem; }
.rate-table small { display: block; color: var(--ink-3); font-size: .72rem; }
.rate-table b { font-variant-numeric: tabular-nums; }

/* Feature list */
.features { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.feature h3 { color: #fff; margin-bottom: .3rem; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(23,138,144,.18); color: #6fd0d4; margin-bottom: .8rem; }
.feature p { font-size: .92rem; margin: 0; }

/* Culture teaser */
.culture-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.culture-strip > div { background: var(--white); padding: 1.4rem; }
.culture-strip .term { font-family: var(--f-display); font-size: 1.5rem; color: var(--navy-900); }
.culture-strip .gloss { font-size: .78rem; color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }

/* ---------- Item detail ---------- */
.item-hero { background: var(--navy-900); color: #fff; }
.item-hero .wrap { padding-block: 2rem 2.5rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.item-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.item-hero .sub { color: var(--navy-200); font-size: 1.05rem; }
.item-hero .cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--navy-800); }
.item-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .82rem; color: var(--navy-200); margin-bottom: .8rem; }
.crumbs a { color: var(--navy-200); }
@media (max-width: 860px) { .item-hero .wrap { grid-template-columns: 1fr; } }
.item-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2rem; align-items: start; padding-block: 2rem 4rem; }
@media (max-width: 980px) { .item-layout { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .45rem; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.checklist.x li::before { border: 0; width: .8rem; height: 2.5px; background: var(--ink-3); transform: none; top: .7em; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--navy-100); }
.timeline li { position: relative; padding: 0 0 1rem 1.2rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .35em; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2.5px solid var(--teal); }
.timeline time { font-family: var(--f-mono); font-size: .8rem; color: var(--teal-600); font-weight: 600; display: block; }
.info-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; }

/* Booking panel */
.book-panel { position: sticky; top: 88px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.25rem; }
.book-panel .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.summary-lines { list-style: none; padding: 0; margin: .75rem 0; display: grid; gap: .3rem; font-size: .9rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.summary-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .7rem; font-weight: 800; font-size: 1.15rem; color: var(--navy-900); font-variant-numeric: tabular-nums; }

/* ---------- Calendar (booking engine) ---------- */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.cal-head b { font-size: .95rem; }
.cal-nav { background: var(--paper); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 1rem; color: var(--navy-800); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { font-size: .68rem; text-align: center; color: var(--ink-3); font-weight: 700; padding: .2rem 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; border: 1px solid transparent; border-radius: 8px; background: var(--paper); font: 600 .85rem var(--f-body); color: var(--ink); cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; font-variant-numeric: tabular-nums; }
.cal-day:hover:not(:disabled) { border-color: var(--teal); }
.cal-day.blank { background: transparent; cursor: default; }
.cal-day.closed, .cal-day.full { background: transparent; color: #b7c2d2; text-decoration: line-through; cursor: not-allowed; }
.cal-day.limited::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
.cal-day.peak { box-shadow: inset 0 -3px 0 var(--gold); }
.cal-day.selected { background: var(--navy-900); color: #fff; }
.cal-day.in-range { background: var(--navy-200); }
.cal-day.today { border-color: var(--navy-500); }
.cal-legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .72rem; color: var(--ink-3); margin-top: .5rem; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.cal-note { font-size: .82rem; margin-top: .4rem; min-height: 1.2em; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .3rem; margin-bottom: .85rem; min-width: 0; }
.field label, .label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.input, .field input, .field select, .field textarea { width: 100%; font: 500 .95rem var(--f-body); color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); padding: .7rem .85rem; transition: border-color .15s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.field .hint { font-size: .75rem; color: var(--ink-3); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 560px) { .row-3 { grid-template-columns: 1fr 1fr; } }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.stepper button { width: 40px; height: 42px; border: 0; background: var(--paper); font-size: 1.1rem; cursor: pointer; color: var(--navy-800); }
.stepper input { border: 0 !important; text-align: center; padding: .5rem 0 !important; box-shadow: none !important; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper); border-radius: var(--r); padding: 3px; gap: 3px; }
.seg label { text-align: center; padding: .55rem .4rem; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg label { position: relative; }
.seg input, .field .seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; padding: 0; border: 0; left: 0; top: 0; }
.seg input:checked + span { color: var(--navy-900); }
.seg label:has(input:checked) { background: var(--white); box-shadow: var(--shadow); color: var(--navy-900); }
.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; }
.alert { padding: .8rem 1rem; border-radius: var(--r); font-size: .9rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-ok { background: var(--ok-50); color: #155c38; border-color: #bfe5cf; }
.alert-bad { background: var(--bad-50); color: #8e2a1f; border-color: #f2c7c1; }
.alert-warn { background: var(--warn-50); color: #7c5214; border-color: #f0d9ad; }
.alert-info { background: var(--info-50); color: #1d4f9e; border-color: #c7d9fb; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--navy-200); font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: 3.5rem 2rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--f-body); }
.site-footer a { color: var(--navy-200); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; flex-wrap: wrap; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.wa-float:hover { color: #fff; background: #178a45; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
table.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: .75rem .9rem; border-bottom: 1px solid var(--line); background: #fafcfe; white-space: nowrap; }
.table td { padding: .7rem .9rem; border-bottom: 1px solid var(--navy-100); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafcfe; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--navy-100); }

/* ---------- App shell (admin) ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy-950); color: var(--navy-200); padding: 1.1rem .8rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: .3rem .5rem 1.2rem; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar .group { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-500); margin: 1rem .6rem .35rem; font-weight: 700; }
.sidebar a { display: flex; align-items: center; gap: .65rem; color: var(--navy-200); text-decoration: none; padding: .55rem .65rem; border-radius: 8px; font-size: .9rem; font-weight: 500; }
.sidebar a:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar a.active { background: var(--navy-800); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.sidebar .count { margin-left: auto; background: var(--gold); color: var(--navy-950); font-size: .7rem; font-weight: 800; padding: 0 .45rem; border-radius: 999px; }
.main { min-width: 0; }
.main-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter); display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 20; }
.main-head h1 { font-size: 1.45rem; margin: 0; }
.main-head .actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.main-body { padding: 1.5rem var(--gutter) 3rem; }
.menu-btn { display: none; background: none; border: 0; padding: .3rem; cursor: pointer; color: var(--navy-900); }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 80; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: block; }
}
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem; min-width: 0; }
.panel h2 { font-family: var(--f-body); font-size: 1rem; font-weight: 700; margin-bottom: .9rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; }
.stat small { color: var(--ink-3); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat b { display: block; font-size: 1.6rem; color: var(--navy-900); font-variant-numeric: tabular-nums; margin-top: .2rem; }
.stat .trend { font-size: .78rem; color: var(--ink-3); }
.stat.alert-stat { border-color: #f0d9ad; background: var(--warn-50); }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.toolbar .field { margin: 0; }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 1100px) { .cols-2 { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .9rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* Admin month calendar */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); gap: 1px; }
.month .dow { background: #fafcfe; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: .5rem; font-weight: 700; }
.month .d { background: var(--white); min-height: 118px; padding: .4rem; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.month .d.other { background: #fbfcfe; color: var(--ink-3); }
.month .d.today { box-shadow: inset 0 0 0 2px var(--teal); }
.month .d.black { background: repeating-linear-gradient(45deg, #fff, #fff 6px, #f7eded 6px, #f7eded 12px); }
.month .dn { font-size: .8rem; font-weight: 700; display: flex; justify-content: space-between; }
.month .ev { font-size: .72rem; line-height: 1.25; padding: 2px 5px; border-radius: 4px; background: var(--navy-100); color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; display: block; }
.month .ev.paid, .month .ev.confirmed { background: var(--teal-50); color: var(--teal-600); }
.month .ev.pending { background: var(--warn-50); color: var(--warn); }
.month .ev.ongoing { background: var(--info-50); color: var(--info); }
.month .ev.completed { background: #eef1f5; color: var(--ink-3); }
.month .ev.leave { background: var(--bad-50); color: var(--bad); }
.month .more { font-size: .7rem; color: var(--ink-3); }
@media (max-width: 720px) { .month .d { min-height: 64px; } .month .ev { font-size: 0; height: 6px; padding: 0; } }

/* ---------- Driver app (mobile-first) ---------- */
.mobile { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--paper); padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.m-head { background: var(--navy-900); color: #fff; padding: 1rem var(--gutter) 1.2rem; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.m-head .row { display: flex; align-items: center; gap: .75rem; }
.m-head h1 { color: #fff; font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; margin: 0; }
.m-head small { color: var(--navy-200); }
.m-body { padding: 1rem var(--gutter); display: grid; gap: 1rem; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom, 0px); }
.bottom-nav .inner { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; max-width: 560px; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .55rem 0 .6rem; color: var(--ink-3); text-decoration: none; font-size: .68rem; font-weight: 600; position: relative; }
.bottom-nav a.active { color: var(--navy-900); }
.bottom-nav a.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px; }
.bottom-nav .dot { position: absolute; top: 6px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.big-action { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; border-radius: var(--r-lg); background: var(--navy-900); color: #fff; text-decoration: none; border: 0; width: 100%; font: inherit; cursor: pointer; text-align: left; }
.big-action:hover { color: #fff; background: var(--navy-800); }
.big-action .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex-shrink: 0; }
.big-action b { display: block; font-size: 1rem; }
.big-action small { color: var(--navy-200); }
.big-action.teal { background: var(--teal); }
.big-action.live { background: #12633f; }
.job { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; display: grid; gap: .45rem; }
.job .t { display: flex; justify-content: space-between; gap: .5rem; align-items: start; }
.job .t b { color: var(--navy-900); }
.steps { display: flex; gap: .3rem; flex-wrap: wrap; }
.steps button { font: 600 .75rem var(--f-body); padding: .45rem .6rem; border-radius: 8px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer; }
.steps button.done { background: var(--teal-50); border-color: var(--teal); color: var(--teal-600); }

/* Camera / face */
.cam { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-950); aspect-ratio: 3/4; max-height: 62vh; margin-inline: auto; width: 100%; }
.cam video, .cam canvas.snap { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam canvas.overlay { position: absolute; inset: 0; width: 100%; height: 100%; transform: scaleX(-1); }
.cam .oval { position: absolute; inset: 12% 18% 18%; border: 3px dashed rgba(255,255,255,.55); border-radius: 50%; pointer-events: none; transition: border-color .2s; }
.cam .oval.good { border-color: #4be39a; border-style: solid; }
.cam .status { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .88rem; text-align: center; }

/* Chat */
.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: #f6f8fb; min-height: 0; }
.bubble { max-width: 78%; padding: .55rem .8rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.bubble.me { align-self: flex-end; background: var(--navy-900); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble time { display: block; font-size: .68rem; opacity: .65; margin-top: 2px; }
.bubble img { border-radius: 8px; margin-top: .3rem; max-height: 240px; }
.bubble a { color: inherit; }
.chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: var(--white); align-items: end; }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; border: 1.5px solid var(--line); border-radius: 22px; padding: .65rem 1rem; font: 500 .95rem var(--f-body); }
.chat-form .icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; background: var(--paper); color: var(--navy-800); }
.chat-form .send { background: var(--teal); color: #fff; }
.quick { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem .7rem 0; background: var(--white); }
.quick button { flex-shrink: 0; font: 600 .78rem var(--f-body); border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: .35rem .7rem; cursor: pointer; color: var(--ink-2); }
.chat-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); height: calc(100vh - 140px); min-height: 480px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.threads { border-right: 1px solid var(--line); overflow-y: auto; }
.threads a { display: flex; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--navy-100); text-decoration: none; color: var(--ink); align-items: center; }
.threads a.active { background: var(--navy-100); }
.threads .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-200); object-fit: cover; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: var(--navy-900); }
.threads .meta { min-width: 0; flex: 1; }
.threads .meta b { display: block; font-size: .9rem; }
.threads .meta small { color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .chat-shell { grid-template-columns: 1fr; height: auto; } .threads { max-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); } .chat-shell .chat { height: 70vh; } }

/* Map */
.map-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; }
.map-box { height: calc(100vh - 170px); min-height: 460px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.driver-list { display: grid; gap: .5rem; align-content: start; max-height: calc(100vh - 170px); overflow-y: auto; }
.driver-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .8rem; cursor: pointer; display: grid; gap: .15rem; text-align: left; font: inherit; width: 100%; }
.driver-item:hover { border-color: var(--teal); }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-right: 5px; box-shadow: 0 0 0 3px var(--ok-50); }
.live-dot.stale { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-50); }
.live-dot.off { background: #b7c2d2; box-shadow: none; }
.car-marker { background: var(--navy-900); color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 2px 8px; font: 700 11px var(--f-body); white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.car-marker.stale { background: var(--warn); }
@media (max-width: 960px) { .map-shell { grid-template-columns: 1fr; } .map-box { height: 60vh; } }

/* Loyalty card */
.loyalty { position: relative; border-radius: var(--r-lg); padding: 1.4rem; color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); }
.loyalty::after { content: ""; position: absolute; right: -40px; top: -20px; width: 260px; height: 150px; background: url("../img/mark-white.png") no-repeat center/contain; opacity: .08; }
.loyalty.hopper { background: linear-gradient(135deg, #136e74, #0a3a52); }
.loyalty.dewata { background: linear-gradient(135deg, #2a2210, #6b4f17 60%, #a07a2c); }
.loyalty .pts { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; }
.loyalty .tier { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.progress { height: 8px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; margin: .8rem 0 .3rem; }
.progress span { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.copy-box { display: flex; gap: .5rem; align-items: center; background: var(--paper); border: 1px dashed var(--navy-200); border-radius: var(--r); padding: .5rem .5rem .5rem .8rem; }
.copy-box code { font-family: var(--f-mono); font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .85rem; }

/* Stars */
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 1.7rem; color: #cfd8e5; cursor: pointer; line-height: 1; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--gold); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--navy-900); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-size: .9rem; z-index: 200; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.toast.bad { background: var(--bad); }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--gutter); background: radial-gradient(900px 400px at 50% -10%, #1d4a80, transparent 60%), var(--navy-950); }
.auth-card { width: 100%; max-width: 420px; background: var(--white); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-lg); }
.auth-card .logo { display: block; width: 150px; margin: 0 auto 1rem; }
.auth-card h1 { font-size: 1.6rem; text-align: center; }

/* Voucher */
.voucher { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.voucher .top { background: var(--navy-900); color: #fff; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.voucher .top img { height: 42px; }
.voucher .code { font-family: var(--f-mono); font-size: 1.3rem; letter-spacing: .08em; color: var(--gold); }
.voucher .body { padding: 1.4rem; }

/* Culture page */
.cult-hero { background: var(--navy-900); color: #fff; }
.cult-hero .wrap { padding-block: clamp(48px, 7vw, 88px); }
.cult-hero h1 { color: #fff; max-width: 16em; }
.cult-hero p { color: var(--navy-200); max-width: 40em; font-size: 1.1rem; }
.chapter { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.chapter .k { font-family: var(--f-display); font-size: 1.6rem; color: var(--navy-900); line-height: 1.1; }
.chapter .k small { display: block; font-family: var(--f-body); font-size: .75rem; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; margin-top: .4rem; }
@media (max-width: 760px) { .chapter { grid-template-columns: 1fr; gap: .5rem; } }
.calendar-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.calendar-strip .c { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }
.calendar-strip .c b { color: var(--navy-900); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .dos { grid-template-columns: 1fr; } }

/* Utility */
.flex { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 1rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-3); }
.empty b { display: block; color: var(--ink-2); margin-bottom: .3rem; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
.qr-box { background: var(--white); padding: 1rem; border-radius: var(--r); border: 1px solid var(--line); display: inline-block; }

/* SIM & eSIM */
.sim-card .sim-top { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.1rem .2rem; }
.sim-card h3 { margin: 0; font-size: 1.02rem; }
.sim-chip { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; color: var(--navy-950);
  background: linear-gradient(135deg, #e9cf8f, var(--gold) 55%, #a57e2c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.sim-card .pill { margin-left: auto; }
.sim-compare .sim-why { max-width: 760px; }
.sim-compare .checklist { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.rewards-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.6rem; background: linear-gradient(120deg, var(--white) 55%, var(--gold-50)); }
.rewards-cta > div:first-child { max-width: 640px; }
details summary { cursor: pointer; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .75rem; }
.tag-sim { background: var(--gold-50); color: #8a6519; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.ktp-card { background: linear-gradient(135deg, #2f6fb5, #6aa6dd); color: #fff; border-radius: 14px; padding: 1rem 1.2rem; font-size: .82rem; display: grid; grid-template-columns: 1fr 90px; gap: .8rem; }
.ktp-card b { color: #fff; }
.ktp-card .ph { width: 90px; height: 112px; border-radius: 6px; background: rgba(255,255,255,.25); object-fit: cover; }
.gal-strip { display: flex; gap: .4rem; margin-top: .5rem; overflow-x: auto; }
.gal-strip button { flex: 0 0 72px; height: 50px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--navy-800); }
.gal-strip button.on { border-color: var(--gold); }
.gal-strip img { width: 100%; height: 100%; object-fit: cover; }
.face-steps { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.face-steps span { font-size: .78rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; background: var(--navy-100); color: var(--ink-2); }
.face-steps span.now { background: var(--navy-900); color: #fff; }
.face-steps span.ok { background: var(--ok-50); color: var(--ok); }
.wizard-steps { display: flex; gap: .3rem; margin-bottom: 1.2rem; }
.wizard-steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--navy-100); }
.wizard-steps span.on { background: var(--teal); }
/* Editor gambar */
.img-editor { display: grid; gap: .75rem; }
.img-editor .stage { position: relative; width: 100%; aspect-ratio: 16/10; background: #0b1424 repeating-conic-gradient(#132036 0 25%, #0b1424 0 50%) 0 0/24px 24px; border-radius: var(--r); overflow: hidden; touch-action: none; cursor: grab; }
.img-editor .stage canvas { width: 100%; height: 100%; display: block; }
.img-editor .tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.img-editor .tools label { font-size: .78rem; font-weight: 700; color: var(--ink-2); display: flex; gap: .4rem; align-items: center; }
.img-editor input[type=range] { width: 130px; }
.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.gallery-admin figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.gallery-admin figure.cover { border: 2px solid var(--gold); }
.gallery-admin img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-admin figcaption { display: flex; gap: .25rem; padding: .35rem; flex-wrap: wrap; }
.gallery-admin figcaption button { font: 600 .72rem var(--f-body); border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: .25rem .45rem; cursor: pointer; }
/* Tanda tangan & perjanjian */
.sig-pad { position: relative; height: 190px; border: 1.5px dashed var(--navy-200); border-radius: var(--r); background: #fff; touch-action: none; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.sig-pad .sig-line { position: absolute; left: 8%; right: 8%; bottom: 42px; border-bottom: 1.5px solid var(--navy-200); pointer-events: none; }
.sig-pad .sig-hint { position: absolute; left: 8%; bottom: 18px; font-size: .75rem; color: var(--ink-3); pointer-events: none; }
.sig-pad.signed .sig-hint { display: none; }
.sig-pad .sig-clear { position: absolute; right: 8px; top: 8px; }
.doc-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.4rem; max-height: 55vh; overflow-y: auto; font-size: .9rem; line-height: 1.65; }
.doc-body h4 { font-family: var(--f-body); font-size: .95rem; margin: 1.1rem 0 .4rem; color: var(--navy-900); }
.doc-body p { margin: 0 0 .6rem; white-space: pre-line; }
.sig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sig-row .box { border: 1px solid var(--line); border-radius: var(--r); padding: .8rem; text-align: center; min-height: 120px; background: #fff; }
.sig-row img { max-height: 70px; margin: .3rem auto; }
@media (max-width: 560px) { .sig-row { grid-template-columns: 1fr; } }
.stack { align-content: start; }
.input, .field input, .field select { line-height: 1.35; min-height: 44px; }
.field select { padding-block: .6rem; }
.img-editor { max-width: 760px; }
@media (max-width: 640px) { .topbar .wrap > span:first-child { display: none; } .topbar .wrap { justify-content: center; } .topbar a[href^="mailto"] { display: none; } }
.sig-wrap { display: grid; gap: .5rem; }
.sig-tools { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.sig-tools .sig-sens { font-size: .78rem; font-weight: 700; color: var(--ink-2); display: flex; gap: .4rem; align-items: center; }
.sig-tools .sig-sens input { width: 120px; }
.sig-tools .sig-note { flex-basis: 100%; }
