/* Mobile-first. Large targets and high contrast, for use in a cab in sunlight or at night. */
:root {
  color-scheme: light dark;
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --text: #101828;
  --muted: #5d6778;
  --line: #e0e5ec;
  --brand: #0f1b2d;
  --brand-text: #ffffff;
  --primary: #1456c4;
  --primary-text: #ffffff;
  --go: #0a7d55;
  --go-text: #ffffff;
  --stop: #c43d12;
  --stop-text: #ffffff;
  --ok: #0a7d55;
  --warn: #a95f00;
  --danger: #c0271d;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .05);
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a111d;
    --surface: #151f30;
    --surface-2: #1c2839;
    --text: #f1f4f9;
    --muted: #9eaabc;
    --line: #27344a;
    --brand: #0f1b2d;
    --primary: #3a7bea;
    --go: #12a06f;
    --stop: #e2562a;
    --ok: #37c692;
    --warn: #f0a93b;
    --danger: #ff6b5e;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--brand);
}

body {
  font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

h1, h2, p, dl, dd, ol, figure { margin: 0; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 18px; line-height: 1.3; }
button, input { font: inherit; color: inherit; }
button { -webkit-user-select: none; user-select: none; cursor: pointer; }
a { color: var(--primary); }
svg { display: block; }
img, canvas, video { max-width: 100%; }
.muted { color: var(--muted); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* ---------- layout ---------- */

.app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  max-width: 560px;
  margin: 0 auto;
}

/* Above everything, including the camera, because an update or a failed start has to be seen wherever it happens. */
.boot {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  background: var(--brand);
  color: var(--brand-text);
  text-align: center;
  transition: opacity .2s ease-out;
}
.boot[data-state="lifting"] { opacity: 0; pointer-events: none; }
.boot-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.boot-mark { width: 92px; height: 92px; }
.boot-name { font-size: 20px; font-weight: 650; letter-spacing: .01em; }

.boot-activity { display: flex; flex-direction: column; align-items: center; gap: 12px; }
/* A normal start is over before this appears, so it only ever shows when there is really something to wait for. */
.boot[data-state="starting"] .boot-activity, .boot[data-state="updating"] .boot-activity { animation: boot-late .25s ease-out .7s both; }
@keyframes boot-late { from { opacity: 0; } to { opacity: 1; } }
.boot-bar, .nav-progress { overflow: hidden; background: rgba(82, 214, 165, .18); }
.boot-bar { width: 148px; height: 3px; border-radius: 2px; }
.boot-bar span, .nav-progress::before {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: #52d6a5;
  animation: progress-slide 1.2s ease-in-out infinite;
}
@keyframes progress-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.boot-status { font-size: 14px; color: rgba(255, 255, 255, .72); }

.boot-problem { display: none; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 340px; }
.boot[data-state="problem"] .boot-problem { display: flex; }
.boot[data-state="problem"] .boot-activity { display: none; }
.boot-problem h1 { font-size: 21px; font-weight: 700; }
.boot-problem p { color: rgba(255, 255, 255, .78); }
.boot-problem .btn { margin-top: 12px; }
.boot-problem .boot-detail { margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .5); overflow-wrap: anywhere; }

/* Only appears if a screen is slow to prepare, while the previous one stays up. */
.nav-progress { position: absolute; top: var(--safe-top); left: 0; right: 0; z-index: 4; height: 3px; }

@media (prefers-reduced-motion: reduce) {
  .boot { transition: none; }
  .boot[data-state="starting"] .boot-activity, .boot[data-state="updating"] .boot-activity { animation: none; }
  .boot-bar span, .nav-progress::before { width: 100%; animation: none; opacity: .6; }
}

.screen { display: none; flex: 1; flex-direction: column; min-height: 0; }
.screen.active { display: flex; }
.screen.enter { animation: screen-in .16s ease-out; }
@keyframes screen-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen.enter { animation: none; } }

.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.action-bar {
  flex: none;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
#screen-home .action-bar { padding-bottom: 12px; }
.action-bar .btn { width: 100%; }

.appbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: calc(56px + var(--safe-top));
  padding: var(--safe-top) 12px 0 4px;
  background: var(--brand);
  color: var(--brand-text);
}
.appbar h1 { font-size: 19px; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.appbar-root, #screen-summary .appbar { padding-left: 16px; }

.icon-btn {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  color: inherit;
}
.icon-btn svg { width: 26px; height: 26px; }
.icon-btn:active { background: rgba(255, 255, 255, .15); }

.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 7px;
  min-height: 56px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--primary); }
.tab:focus-visible { outline-offset: -5px; border-radius: 14px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 650;
  text-align: center;
  background: var(--surface-2);
  color: var(--text);
  transition: transform .06s ease, opacity .12s ease;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-xl { width: 100%; min-height: 60px; font-size: 19px; border-radius: 14px; }
.btn-small { min-height: 42px; padding: 8px 14px; font-size: 15px; border-radius: 10px; }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-go { background: var(--go); color: var(--go-text); }
.btn-stop { background: var(--stop); color: var(--stop-text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-quiet { background: var(--surface-2); color: var(--text); }
.btn-danger-quiet { background: var(--surface-2); color: var(--danger); }
.btn-on-dark { background: rgba(255, 255, 255, .16); color: #fff; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------- cards and facts ---------- */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.facts { display: flex; flex-direction: column; }
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts > div:first-child { padding-top: 0; }
.facts dt { color: var(--muted); flex: none; }
.facts dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 17px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; font-weight: 500; }
.hint { font-size: 14px; color: var(--muted); min-height: 20px; }
.hint[data-kind="found"] { color: var(--ok); font-weight: 500; }
.hint[data-kind="warn"] { color: var(--warn); font-weight: 500; }
.hint[data-kind="busy"]::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 7px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.reading-input.reading-input { font-size: 32px; font-weight: 700; letter-spacing: .06em; text-align: center; font-variant-numeric: tabular-nums; }
.reading-busy { opacity: .55; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-label { font-size: 14px; color: var(--muted); }
.chip {
  min-height: 40px;
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- photo tile ---------- */

.photo-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px dashed color-mix(in srgb, var(--muted) 55%, transparent);
  border-radius: var(--radius);
  color: var(--primary);
}
.photo-tile.has-photo { border-style: solid; border-color: transparent; }
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-tile-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 650; padding: 12px; }
.photo-tile-empty svg { width: 44px; height: 44px; }
.photo-tile-retake {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 14px;
  background: rgba(10, 17, 29, .78);
  color: #fff;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 650;
}
.photo-tile-compact { aspect-ratio: 16 / 9; }

/* ---------- wizard ---------- */

.wizard-head {
  flex: none;
  padding: calc(14px + var(--safe-top)) 16px 12px;
  background: var(--brand);
  color: var(--brand-text);
}
.progress { height: 6px; background: rgba(255, 255, 255, .18); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 20%; background: #52d6a5; border-radius: 3px; transition: width .2s ease; }
.step-count { margin-top: 8px; font-size: 13px; font-weight: 600; opacity: .8; }
.wizard-step { display: flex; flex-direction: column; gap: 14px; }
.lead { color: var(--muted); font-size: 16px; }
.notice { font-size: 13px; color: var(--muted); }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumbs-two { grid-template-columns: repeat(2, 1fr); }
.thumbs figure { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* The frame holds the space and shows a quiet icon, so a picture still loading or missing never leaves a gap or a broken image. */
.thumb, .avatar { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); color: var(--muted); }
.thumb { aspect-ratio: 1; border-radius: 12px; }
.thumb svg { width: 30%; height: 30%; opacity: .45; }
.thumb img, .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: photo-in .2s ease-out; }
@keyframes photo-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .thumb img, .avatar img { animation: none; } }
.thumbs figcaption { font-size: 13px; text-align: center; color: var(--muted); }

.screen-center .center-column { align-items: center; justify-content: center; text-align: center; gap: 16px; }
.app-mark { width: 84px; height: 84px; padding: 16px; border-radius: 22px; background: var(--brand); color: var(--brand-text); }
.success-mark { flex: none; width: 76px; height: 76px; padding: 16px; border-radius: 50%; background: var(--go); color: var(--go-text); }
.install-card { width: 100%; text-align: left; }
.install-steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; width: 100%; }
.install-steps li { display: flex; align-items: center; gap: 12px; background: var(--surface); padding: 12px; border-radius: 12px; }
.step-icon { flex: none; width: 40px; height: 40px; padding: 8px; background: var(--surface-2); border-radius: 10px; color: var(--primary); }

/* ---------- home ---------- */

.hero {
  flex: none;
  padding: calc(14px + var(--safe-top)) 16px 16px;
  background: var(--brand);
  color: var(--brand-text);
}
.hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-title { min-width: 0; }
.hero-label { font-size: 14px; opacity: .78; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero h1 { font-size: 25px; font-weight: 750; letter-spacing: .01em; overflow-wrap: anywhere; }

.sync-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, .13);
  border: 0;
  border-radius: 17px;
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa6b8; }
[data-state="ok"] > .sync-dot { background: #4bdda6; }
[data-state="busy"] > .sync-dot, [data-state="waiting"] > .sync-dot { background: #6db3ff; }
[data-state="offline"] > .sync-dot { background: #f7b84b; }
[data-state="error"] > .sync-dot { background: #ff7a6e; }

.home-body { padding-bottom: 20px; }
.state-card { align-items: center; text-align: center; padding: 26px 18px; }
.state-mark { width: 62px; height: 62px; padding: 13px; border-radius: 50%; background: var(--surface-2); color: var(--primary); }
.state-active { align-items: stretch; border: 2px solid var(--go); }
.state-active .facts { text-align: left; }
.live-label { display: inline-flex; align-self: center; align-items: center; gap: 8px; font-weight: 700; color: var(--ok); }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--go); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.elapsed { font-size: 44px; line-height: 1.1; font-weight: 750; font-variant-numeric: tabular-nums; }

.install-banner { flex-direction: column; gap: 10px; border: 1.5px solid color-mix(in srgb, var(--primary) 45%, transparent); }
.install-banner p { font-size: 14px; color: var(--muted); }
.install-banner-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- capture ---------- */

.gps-card { flex-direction: row; align-items: center; gap: 12px; }
.gps-icon { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.gps-text { flex: 1; min-width: 0; }
.gps-text p { font-size: 14px; color: var(--muted); }
.gps-card[data-state="ok"] .gps-icon { background: var(--go); color: var(--go-text); }
.gps-card[data-state="weak"] .gps-icon { background: var(--warn); color: #fff; }
.gps-card[data-state="error"] .gps-icon { background: var(--danger); color: #fff; }
.gps-card[data-state="locating"] .gps-icon { animation: pulse 1.4s ease-in-out infinite; color: var(--primary); }

/* ---------- trips ---------- */

.trip-list { display: flex; flex-direction: column; gap: 10px; }
.trip-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  border: 0;
}
.last-trip .trip-row { padding: 0; background: none; }
.trip-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trip-row-main .muted { font-size: 13px; }
.trip-row-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.trip-km { font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
.trip-live { font-weight: 700; color: var(--ok); }
.sync-tag { font-size: 12px; font-weight: 600; }
.sync-tag.synced { color: var(--ok); }
.sync-tag.waiting { color: var(--warn); }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding: 40px 0; }
.empty svg { width: 54px; height: 54px; opacity: .6; }

.detail-photo { width: 100%; border-radius: 12px; }
.detail-total, .summary-hero { align-items: center; text-align: center; }
.summary-hero { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.summary-distance { font-size: 42px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sync-note { text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- profile ---------- */

.profile-head { display: flex; align-items: center; gap: 14px; padding: 2px 2px 4px; }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; }
.avatar svg { width: 34px; height: 34px; opacity: .55; }
.profile-name { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.sync-summary { font-weight: 500; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.version { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 8px; }

/* ---------- camera ---------- */

.camera { position: fixed; inset: 0; z-index: 20; background: #000; color: #fff; display: flex; flex-direction: column; }
.camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera video.mirrored { transform: scaleX(-1); }
.camera-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(8px + var(--safe-top)) 10px 8px;
  background: linear-gradient(rgba(0, 0, 0, .65), transparent);
}
.camera-title { flex: 1; font-weight: 650; font-size: 17px; }
.camera-icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .42);
  border: 0;
  border-radius: 50%;
  color: #fff;
}
.camera-icon svg { width: 26px; height: 26px; }
.camera-icon[aria-pressed="true"] { background: #f7c948; color: #111; }
.camera-spacer { width: 48px; }
.camera-live { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.camera-guide {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 36%;
  height: 12%;
  border-radius: 10px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .52);
}
.camera-guide span { position: absolute; width: 26px; height: 26px; border: 3px solid #52d6a5; }
.camera-guide span:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.camera-guide span:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.camera-guide span:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.camera-guide span:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.camera-hint { position: relative; z-index: 1; text-align: center; padding: 10px 20px; font-weight: 550; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.camera-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px calc(24px + var(--safe-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
}
.shutter { width: 76px; height: 76px; padding: 0; background: #fff; border: 5px solid rgba(255, 255, 255, .45); background-clip: padding-box; border-radius: 50%; }
.shutter:active { transform: scale(.94); }
.camera-review { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; background: #000; }
.camera-review canvas { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.camera-review-actions { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px calc(18px + var(--safe-bottom)); }
.camera-review-actions .btn { min-height: 56px; font-size: 17px; }
.camera-fallback { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px; text-align: center; }
.camera-fallback svg { width: 60px; height: 60px; opacity: .8; }
.camera-file-btn { max-width: 340px; cursor: pointer; }
.camera-open .app { visibility: hidden; }

/* ---------- toast and sheets ---------- */

.toast {
  position: fixed;
  z-index: 30;
  left: 12px;
  right: 12px;
  bottom: calc(150px + var(--safe-bottom));
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: #1c2839;
  color: #fff;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.toast-action { flex: none; min-height: 36px; padding: 4px 8px; background: none; border: 0; color: #7fb6ff; font-weight: 700; }

.sheet {
  width: min(92vw, 440px);
  padding: 20px;
  background: var(--surface);
  color: var(--text);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}
.sheet::backdrop { background: rgba(4, 9, 16, .6); }
.sheet p { margin: 8px 0 18px; color: var(--muted); }
.sheet .install-steps { margin: 14px 0 18px; }
.sheet .install-steps li { background: var(--surface-2); }
.sheet-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* A wider screen is rare here, but it shouldn't look broken on a tablet. */
@media (min-width: 561px) {
  body { background: #070c15; }
}
