:root {
  --paper: #F2EEE5;
  --paper-2: #E8E3D8;
  --card: #FFFDF8;
  --ink: #121212;
  --ink-2: #2A2A28;
  --muted: #5E5A52;
  --line: rgba(18, 18, 18, 0.16);
  --hivis: #FF5B14;
  --hivis-ink: #121212;
  --ok: #1F7A3A;
  --warn: #B3261E;
  --display: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 4px;
  --pad: 20px;
  --tap: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.noscript { padding: 40px 20px; font-size: 18px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink); color: var(--paper);
  padding-top: var(--safe-t);
}
.topbar-in {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 var(--pad);
}
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; color: inherit; min-height: 48px; }
.brand-mark {
  width: 22px; height: 22px; border: 3px solid var(--hivis); position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 4px; background: var(--hivis); }
.brand-name { font: italic 800 24px/1 var(--display); letter-spacing: -0.01em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.net { font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; background: var(--hivis); color: var(--ink); padding: 6px 8px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 10px;
  background: transparent; border: 1px solid rgba(242, 238, 229, 0.25); border-radius: var(--r);
  color: inherit; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-btn span { display: none; }

/* ---------- Layout ---------- */
main { outline: none; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font: 600 12px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.9; margin: 0; }
.display em { font-weight: 200; font-style: italic; letter-spacing: -0.02em; }
.thin { font-family: var(--display); font-weight: 200; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 22px;
  border-radius: var(--r); border: 2px solid var(--ink);
  background: var(--card); color: var(--ink);
  font: 600 14px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.08s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.btn-hivis { background: var(--hivis); border-color: var(--hivis); color: var(--hivis-ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: var(--warn); color: var(--warn); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 12px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; font: 500 13px/1.4 var(--mono); min-height: 44px; }

/* ---------- Home ---------- */
.home { padding-top: 28px; padding-bottom: calc(110px + var(--safe-b)); }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.home-title { font-size: 92px; }
.home-count { font: 300 14px/1.3 var(--mono); color: var(--muted); text-align: right; padding-bottom: 10px; }
.home-count b { display: block; font: 800 44px/1 var(--display); color: var(--ink); }
.home-sub { margin: 14px 0 22px; max-width: 34ch; color: var(--ink-2); }
.home-sub em { display: block; font: italic 200 26px/1.15 var(--display); color: var(--ink); margin-top: 6px; letter-spacing: -0.01em; }
.home-grid { display: grid; gap: 28px; }
.home-actions { display: none; }
.search { position: relative; margin-bottom: 16px; }
.search input {
  width: 100%; min-height: 52px; padding: 0 16px 0 46px;
  border: 2px solid var(--line); border-radius: var(--r); background: var(--card);
  font: 400 15px/1 var(--mono);
}
.search input:focus { border-color: var(--ink); outline: none; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.jobs { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.job-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 0;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden;
  text-align: left; padding: 0; width: 100%; min-height: 112px;
}
.job-card:hover { background: #fff; }
.job-cover { background: var(--paper-2); position: relative; aspect-ratio: 1; }
.job-cover img { width: 100%; height: 100%; object-fit: cover; }
.job-cover.empty { background: repeating-linear-gradient(-45deg, var(--paper-2) 0 10px, #ddd7ca 10px 20px); }
.job-cover .count {
  position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--paper);
  font: 600 12px/1 var(--mono); padding: 6px 8px;
}
.job-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.job-name { font: 800 24px/1.02 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.job-meta { font: 400 12.5px/1.4 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.job-when { margin-top: auto; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }

.empty-state {
  border: 2px dashed var(--ink); border-radius: var(--r); padding: 32px 22px; text-align: left; background: var(--card);
}
.empty-state h2 { font: 800 40px/0.95 var(--display); letter-spacing: -0.03em; margin: 8px 0 10px; }
.empty-state h2 em { font-weight: 200; }
.empty-state p { margin: 0 0 20px; color: var(--ink-2); max-width: 38ch; }

.side { display: grid; gap: 14px; align-content: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.panel h3 { margin: 6px 0 8px; font: 800 26px/1 var(--display); letter-spacing: -0.02em; }
.panel p { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; }
.panel p:last-child { margin-bottom: 0; }
.panel-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel-ink p { color: rgba(242, 238, 229, 0.82); }
.panel-ink .eyebrow { color: var(--hivis); }
.soon { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid currentColor; padding: 5px 7px; }
.brand-preview { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); margin: 6px 0 12px; }
.brand-preview .logo { width: 48px; height: 48px; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.brand-preview .logo img { max-width: 86%; max-height: 86%; object-fit: contain; }
.brand-preview .bp-name { font: 800 22px/1 var(--display); letter-spacing: -0.02em; }
.brand-preview .bp-phone { font: 500 13px/1.4 var(--mono); opacity: 0.9; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 12px var(--pad) calc(12px + var(--safe-b));
  background: linear-gradient(to top, var(--paper) 70%, rgba(242, 238, 229, 0));
  display: flex; gap: 10px;
}
.dock .btn { flex: 1; min-height: 60px; font-size: 15px; }
.dock .btn-cam { flex: 1.6; }

/* ---------- Job ---------- */
.job { padding-top: 18px; padding-bottom: calc(120px + var(--safe-b)); }
.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; min-height: 44px; font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.job-head { display: grid; gap: 14px; margin: 6px 0 18px; }
.job-title { font-size: 52px; overflow-wrap: anywhere; }
.job-facts { display: grid; gap: 4px; font: 400 13.5px/1.45 var(--mono); color: var(--ink-2); }
.job-facts span { display: flex; gap: 10px; }
.job-facts b { font-weight: 600; min-width: 84px; color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 2px; }
.status-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 12px/1 var(--mono); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--ink); border-radius: 999px; font: 600 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; background: var(--card); }
.chip.warn { border-color: var(--warn); color: var(--warn); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.job-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 18px; }
.job-tools .btn { padding: 8px 10px; white-space: normal; min-width: 0; text-align: center; line-height: 1.15; font-size: 13px; letter-spacing: 0.05em; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: transparent;
  font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter small { font-weight: 300; margin-left: 6px; }
.day { margin: 18px 0 10px; display: flex; align-items: baseline; gap: 12px; }
.day h3 { margin: 0; font: italic 200 30px/1 var(--display); letter-spacing: -0.01em; }
.day span { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; list-style: none; padding: 0; margin: 0; }
.tile { position: relative; aspect-ratio: 1; background: var(--paper-2); border: 0; padding: 0; overflow: hidden; width: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .lbl { position: absolute; left: 0; top: 0; font: 700 10px/1 var(--mono); letter-spacing: 0.1em; padding: 5px 6px; background: var(--ink); color: #fff; text-transform: uppercase; }
.tile .lbl.after { background: var(--hivis); color: var(--ink); }
.tile .lbl.progress { background: #fff; color: var(--ink); }
.tile .time { position: absolute; right: 0; bottom: 0; font: 500 10px/1 var(--mono); padding: 4px 5px; background: rgba(18, 18, 18, 0.72); color: #fff; }
.tile .has-note { position: absolute; left: 6px; bottom: 6px; width: 18px; height: 18px; background: #fff; border-radius: 2px; display: grid; place-items: center; }
.tile .has-note svg { width: 12px; height: 12px; fill: none; stroke: var(--ink); stroke-width: 2.4; }
.tile.pick { outline: 4px solid var(--hivis); outline-offset: -4px; }
.tile .pick-tag { position: absolute; inset: auto 0 0 0; background: var(--hivis); color: var(--ink); font: 700 11px/1 var(--mono); letter-spacing: 0.1em; padding: 6px; text-align: center; }

/* ---------- Sheets and dialogs ---------- */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 40; background: rgba(18, 18, 18, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade 0.15s ease;
}
.sheet {
  background: var(--paper); width: 100%; max-height: 94vh; max-height: 94dvh; overflow: auto;
  border-radius: 14px 14px 0 0; padding: 18px var(--pad) calc(22px + var(--safe-b));
  animation: rise 0.2s ease;
}
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet-head h2 { margin: 4px 0 0; font: 800 38px/0.95 var(--display); letter-spacing: -0.03em; }
.sheet-head h2 em { font-weight: 200; }
.close { min-width: 48px; min-height: 48px; border: 2px solid var(--ink); background: var(--card); border-radius: var(--r); display: grid; place-items: center; flex: none; }
.close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.4; fill: none; }
@keyframes rise { from { transform: translateY(30px); opacity: 0.5; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input[type=text], .field input[type=tel], .field textarea, .field select {
  width: 100%; min-height: 54px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r);
  background: var(--card); font: 400 16px/1.35 var(--mono);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1; }
.hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 14px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg button { min-height: 50px; border: 0; background: var(--card); font: 600 12px/1.1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0 6px; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button small { display: block; font-weight: 300; letter-spacing: 0; text-transform: none; font-size: 10.5px; margin-top: 3px; opacity: 0.8; }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.swatch { width: 48px; height: 48px; border-radius: var(--r); border: 2px solid var(--ink); padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.swatches input[type=color] { width: 56px; height: 48px; border: 2px solid var(--ink); border-radius: var(--r); padding: 2px; background: var(--card); }
.logo-row { display: flex; gap: 12px; align-items: center; }
.logo-box { width: 72px; height: 72px; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-box img { max-width: 88%; max-height: 88%; object-fit: contain; }
.logo-box span { font: 500 10px/1.2 var(--mono); color: var(--muted); text-align: center; padding: 4px; }
.settings-sec { border-top: 2px solid var(--ink); padding-top: 16px; margin-top: 20px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 13.5px; margin: 8px 0 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* Photo viewer */
.viewer { display: grid; gap: 16px; }
.viewer-img { background: #0d0d0d; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; }
.viewer-img img { max-height: 56vh; max-height: 56dvh; width: auto; margin: 0 auto; object-fit: contain; }
.meta-list { display: grid; gap: 8px; font-size: 13.5px; margin: 0; }
.meta-list div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.meta-list dt { font: 600 11px/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.meta-list dd { margin: 0; overflow-wrap: anywhere; }
.meta-list a { color: inherit; }
.viewer-nav { display: flex; justify-content: space-between; gap: 10px; }

/* Before / after builder */
.ba { display: grid; gap: 16px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot { border: 2px dashed var(--ink); border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--card); position: relative; overflow: hidden; padding: 0; text-align: left; }
.slot.active { border-style: solid; border-color: var(--hivis); box-shadow: 0 0 0 3px var(--hivis); }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot .slot-lbl { position: absolute; left: 0; top: 0; background: var(--ink); color: #fff; font: 700 11px/1 var(--mono); letter-spacing: 0.12em; padding: 6px 8px; }
.slot.after-slot .slot-lbl { background: var(--hivis); color: var(--ink); }
.slot .slot-empty { position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px/1.3 var(--mono); color: var(--muted); padding: 30px 10px 10px; text-align: center; }
.pick-grid { grid-template-columns: repeat(4, 1fr); max-height: 260px; overflow: auto; }
.preview-box { background: var(--paper-2); border-radius: var(--r); padding: 12px; display: grid; place-items: center; }
.preview-box canvas { max-width: 100%; max-height: 62vh; height: auto; width: auto; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); }
.nudge { background: #fff3cf; border: 1px solid #c99a00; padding: 10px 12px; border-radius: var(--r); font-size: 13px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Camera */
.camera { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; display: flex; flex-direction: column; }
.camera video { flex: 1; width: 100%; min-height: 0; object-fit: cover; background: #000; }
.cam-top { position: absolute; top: 0; left: 0; right: 0; padding: calc(12px + var(--safe-t)) 16px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: linear-gradient(rgba(0, 0, 0, 0.6), transparent); }
.cam-job { font: italic 800 20px/1 var(--display); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-gps { font: 600 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, 0.5); }
.cam-gps.on { background: var(--hivis); color: #000; border-color: var(--hivis); }
.cam-bottom { padding: 14px 16px calc(18px + var(--safe-b)); background: #000; display: grid; gap: 14px; }
.cam-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cam-labels button { min-height: 46px; border: 2px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; border-radius: 999px; font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.cam-labels button[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.cam-labels button.after[aria-pressed="true"] { background: var(--hivis); border-color: var(--hivis); }
.cam-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.cam-thumb { width: 60px; height: 60px; border-radius: var(--r); border: 2px solid #fff; overflow: hidden; background: #222; position: relative; padding: 0; }
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cam-thumb b { position: absolute; right: -2px; top: -2px; background: var(--hivis); color: #000; font: 700 11px/1 var(--mono); padding: 3px 5px; }
.shutter { width: 84px; height: 84px; border-radius: 50%; border: 5px solid #fff; background: transparent; padding: 6px; }
.shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform 0.08s; }
.shutter:active span { transform: scale(0.9); }
.cam-done { justify-self: end; min-height: 52px; padding: 0 18px; border: 2px solid #fff; background: transparent; color: #fff; border-radius: var(--r); font: 700 13px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.cam-flip { min-height: 44px; min-width: 44px; border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; color: #fff; border-radius: var(--r); font: 600 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 0 10px; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash 0.25s ease; }
@keyframes flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; font-size: 15px; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--r);
  font: 500 13.5px/1.35 var(--mono); max-width: calc(100vw - 40px); z-index: 80;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.menu { display: grid; gap: 10px; }
.menu .btn { justify-content: flex-start; }
.menu .btn span { font-weight: 300; text-transform: none; letter-spacing: 0; margin-left: auto; font-size: 12px; }
.busy { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.spin { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  :root { --pad: 28px; }
  .icon-btn span { display: inline; }
  .home-title { font-size: 128px; }
  .jobs { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .job-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .job-title { font-size: 72px; }
}

@media (min-width: 1024px) {
  :root { --pad: 48px; }
  .topbar-in { height: 68px; }
  .home { padding-top: 56px; padding-bottom: 72px; }
  .home-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
  .home-title { font-size: 168px; }
  .home-count b { font-size: 64px; }
  .home-sub { font-size: 16px; margin: 18px 0 32px; max-width: none; }
  .home-sub em { font-size: 40px; }
  .home-actions { display: flex; gap: 12px; margin-bottom: 26px; }
  .home-actions[hidden] { display: none; }
  .jobs { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
  .job-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .job-cover { aspect-ratio: 4 / 3; }
  .job-info { padding: 16px 18px 18px; min-height: 150px; }
  .job-name { font-size: 30px; }
  .side { position: sticky; top: 92px; }
  .dock { display: none; }
  .job { padding-top: 32px; padding-bottom: 72px; }
  .job-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
  .job-title { font-size: 104px; }
  .job-tools { display: flex; justify-content: flex-start; flex-wrap: wrap; }
  .job-tools .btn { padding: 0 20px; white-space: nowrap; font-size: 14px; letter-spacing: 0.08em; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
  .sheet-wrap { align-items: center; padding: 40px; }
  .sheet { max-width: 760px; border-radius: 10px; padding: 28px 32px 32px; }
  .sheet.wide { max-width: 1180px; }
  .sheet-head h2 { font-size: 52px; }
  .viewer.split { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; }
  .viewer-img img { max-height: 76vh; }
  .ba.split { grid-template-columns: 380px minmax(0, 1fr); align-items: start; }
  .ba .preview-box { position: sticky; top: 0; min-height: 520px; }
  .pick-grid { grid-template-columns: repeat(3, 1fr); max-height: 300px; }
  .toast { bottom: 32px; }
  .cam-bottom { max-width: 720px; width: 100%; margin: 0 auto; }
}
@media (min-width: 1700px) {
  .home-title { font-size: 200px; }
  .home-grid { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- v0.2: customer links and the before / after slider ---------- */
.compare { margin: 6px 0 26px; }
.compare-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compare-item { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.compare-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 2px 2px; font-size: 12.5px; color: var(--muted); }
.muted-note { font-size: 11.5px; color: var(--muted); }
.chip.ok { border-color: var(--ok); color: var(--ok); }
.share-opt { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 16px; }
.share-opt + .share-opt { margin-top: 4px; }
.share-h { margin: 6px 0 0; font: 800 30px/1 var(--display); letter-spacing: -0.02em; }
.btn-block { width: 100%; justify-content: center; }
.menu .btn-block { justify-content: center; }
.link-card { border: 2px solid var(--ink); border-radius: var(--r); padding: 12px; background: #fff; }
.link-url { font: 500 13px/1.4 var(--mono); overflow-wrap: anywhere; background: var(--paper); padding: 10px 12px; border-radius: var(--r); user-select: all; -webkit-user-select: all; }
.link-actions { margin-top: 10px; }
.link-actions .btn { flex: 1 1 auto; justify-content: center; }
.ba-slide { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ba-slide .bas { max-height: 62vh; }
