@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --yellow: #ffde59;
  --yellow-600: #f2c82f;
  --yellow-100: #fff6d4;
  --yellow-50: #fffbeb;
  --ink: #111214;
  --ink-700: #33373c;
  --ink-500: #5b6169;
  --ink-400: #7c838c;
  --sand: #f6f4f3;
  --sand-200: #ece8e5;
  --line: #e2ded9;
  --mint: #8fdbd4;
  --mint-700: #12796f;
  --danger: #c8452f;
  --ok: #197a52;
  --paper: #ffffff;
  --shadow: 0 18px 40px -24px rgba(17, 18, 20, 0.28);
  --shadow-soft: 0 10px 30px -24px rgba(17, 18, 20, 0.45);
  --shadow-lift: 0 18px 36px -20px rgba(17, 18, 20, 0.22);
  --radius: 1.25rem;
  --tap: 48px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "DM Sans", "Segoe UI", sans-serif;
  --display: "Montserrat", "Segoe UI", sans-serif;
  --header-h: 4rem;
  --ocean: #111214;
  --ocean-deep: #111214;
  --lagoon: #12796f;
  --lagoon-soft: #e7f7f5;
  --gold: #ffde59;
  --gold-bright: #ffe98a;
  --gold-soft: #fff6d4;
  --muted: #5b6169;
  --coral: #c8452f;
  --serif: "Montserrat", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: #f3efe9;
  background-image:
    radial-gradient(1100px 480px at 0 -8%, #ffde5961, transparent 58%),
    radial-gradient(900px 420px at 100% 0, #8fdbd447, transparent 55%);
}
::selection { background: var(--yellow); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.top {
  position: relative;
  z-index: 8;
  overflow: visible;
  padding: calc(12px + env(safe-area-inset-top)) 16px 14px;
  color: var(--ink);
  background: #ffffffe6;
  border-bottom: 1px solid #ffde59b3;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -24px #11121473;
}
.top::before,
.top::after { display: none; }
.top-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.top-row form { flex: 0 0 auto; padding-top: 4px; }
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 8px 18px -10px #11121480;
}
.brand-mark-lg {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
}
.eyebrow {
  margin: 0 0 4px;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  position: relative;
  padding-bottom: 8px;
}
.brand::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 8px;
  background: var(--yellow);
  border-radius: 99px;
}
.brand span { display: block; letter-spacing: -0.04em; font-size: 22px; }
.brand span + span { margin-top: 0; letter-spacing: -0.03em; font-size: 18px; color: var(--ink-700); }
.brand-sub { margin: 6px 0 0; color: var(--ink-500); font-size: 14px; }
.contract-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--yellow);
  box-shadow: var(--shadow-soft);
}
.contract-chip strong { color: var(--ink); letter-spacing: 0.04em; }

.btn-logout, .btn, .btn-ghost, .btn-coral, .btn-small {
  min-height: 3rem;
  border-radius: 999px;
  border: 0;
  padding: 12px 1.15rem;
  font-size: 0.9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s var(--ease), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-logout:active, .btn:active, .btn-ghost:active, .btn-coral:active, .choice:active, .chip:active, .price:active {
  transform: scale(0.98);
}
.btn-logout {
  min-height: 36px;
  height: 36px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink);
  background: var(--yellow);
}
.btn-logout:hover { background: var(--yellow-600); }
.btn {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 18px rgba(17, 18, 20, 0.16);
}
.btn:hover { background: #2a2c31; }
.btn-coral {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 10px 18px rgba(255, 222, 89, 0.35);
}
.btn-coral:hover { background: var(--yellow-600); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--yellow); background: var(--yellow-50); }
.btn-small { min-height: 48px; padding: 10px 14px; font-size: 15px; }
.btn[disabled], .btn-ghost[disabled], .btn-coral[disabled] { opacity: 0.55; }

.wrap { width: min(860px, calc(100% - 24px)); margin: 0 auto; }
.stepper {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 12px 0 8px;
  background: rgba(243, 239, 233, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.stepper button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-400);
  padding: 6px 2px;
  font-family: var(--display);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.stepper button span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stepper button strong { display: block; font-size: 12px; font-weight: 700; }
.stepper button.is-current {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  border: 1px solid #ffde59b3;
  transform: translateY(-1px);
}
.stepper button.is-done { color: var(--mint-700); }
.progress {
  height: 5px;
  border-radius: 99px;
  background: var(--sand-200);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0.2);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--yellow), var(--mint));
  transition: transform 0.45s var(--ease);
}
.progress i.step-1 { transform: scaleX(0.2); }
.progress i.step-2 { transform: scaleX(0.4); }
.progress i.step-3 { transform: scaleX(0.6); }
.progress i.step-4 { transform: scaleX(0.8); }
.progress i.step-5 { transform: scaleX(1); }

.card, .summary-card, .pin-card, .sheet {
  background: var(--paper);
  border: 1px solid #e2ded9e6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card, .summary-card {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 18px;
  margin: 14px 0;
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease, border-color 0.22s ease;
}
.card::before, .summary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--yellow), var(--mint));
}
.summary-card {
  background:
    linear-gradient(180deg, #fff6d4aa, transparent 52%),
    #fff;
}
.kicker {
  margin: 0;
  color: var(--mint-700);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
}
h2 { margin: 4px 0 4px; font-size: 27px; line-height: 1.12; }
.section-es { margin: 0 0 16px; color: var(--ink-500); }
.summary-card p { margin: 5px 0; }
.summary-card .total {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.field { display: block; margin: 0 0 12px; }
.field span, .check span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 650; }
.field input, .field select, .field textarea, .text-input {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus, .text-input:focus {
  border-color: var(--yellow-600);
  box-shadow: 0 0 0 4px #ffde5980;
  background: #fff;
  outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input.missing, .field select.missing, .field textarea.missing, .choice-grid.missing {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(200, 69, 47, 0.18);
}
.grid-2 { display: grid; gap: 10px; }
.hint { margin: 0 0 12px; color: var(--ink-500); font-size: 14px; }
.warn {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--yellow-50);
  color: #7a4b12;
  border: 1px solid #f2c82f66;
}
.sensitive {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdf2ef;
  color: var(--danger);
  font-size: 14px;
}

.step { display: none; }
.step.is-active {
  display: block;
  animation: rise 0.42s var(--ease-out);
}
.choice-grid, .chip-row, .price-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.choice-grid.missing { outline: 3px solid rgba(200, 69, 47, 0.45); border-radius: 14px; }
.choice, .chip, .price {
  min-height: var(--tap);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.16s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.choice { flex: 1 1 calc(50% - 8px); text-align: left; font-weight: 650; }
.choice small { display: block; color: var(--ink-500); font-size: 12px; }
.choice[aria-pressed="true"], .chip[aria-pressed="true"], .price[aria-pressed="true"] {
  border-color: var(--yellow);
  background: linear-gradient(180deg, #fff, var(--yellow-100));
  color: var(--ink);
  box-shadow: 0 0 0 2px #ffde5980, var(--shadow-soft);
}
.choice svg { width: 26px; height: 26px; display: block; margin-bottom: 4px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot, .damage-card, .extra-card {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(#fff, #fbf8f3);
  transition: border-color 0.22s ease, box-shadow 0.25s ease, transform 0.22s var(--ease);
}
.slot.has-file, .extra-card {
  border-style: solid;
  border-color: var(--mint);
  box-shadow: var(--shadow-soft);
}
.slot.has-file { animation: pop 0.32s var(--ease-out); }
.slot h3, .damage-card h3, .extra-card h3 { margin: 0 0 8px; font-size: 15px; }
.slot-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-actions { flex-direction: column; }
.slot-actions .file-btn,
.slot-actions .btn,
.slot-actions .btn-ghost { width: 100%; }
.card-hold-grid { margin-top: 12px; }
.file-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--sand);
}
.fname, .ftime { margin: 6px 0; font-size: 13px; color: var(--ink-500); word-break: break-word; }
.pdf-mark {
  display: grid;
  place-items: center;
  height: 110px;
  border-radius: 12px;
  background: var(--sand);
  color: var(--ink);
  font-weight: 700;
}
.photo-progress { margin: 0 0 10px; font-weight: 700; color: var(--ink); }
.next-photo {
  margin: 12px 0;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eef8f6, #e4f4f1);
  border: 1px solid #b9e4df;
}

.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--mint-700); }
.check span { font-weight: 500; }
.check small { display: block; color: var(--ink-500); }

.pad-wrap { margin: 8px 0 16px; }
.pad-wrap canvas {
  width: 100%;
  height: 180px;
  touch-action: none;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: linear-gradient(#fff, #fffdf8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.terms-clause {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.terms-clause p { margin: 0; }
.terms-clause small { display: block; margin-top: 4px; color: var(--ink-500); }

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  gap: 7px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #ffde59b3;
  box-shadow: 0 -16px 32px rgba(17, 18, 20, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.action-bar > * { max-width: 860px; width: 100%; justify-self: center; }
.action-bar .btn, .action-bar .btn-ghost, .action-bar .btn-coral { width: 100%; }
.action-bar .row { display: flex; gap: 8px; }
.action-bar .row > button { flex: 1; }
.action-bar .row-3 button {
  font-size: 12px;
  padding: 8px 8px;
  min-height: 48px;
  border-radius: 16px;
  line-height: 1.2;
  text-align: center;
}
.page { padding-bottom: calc(248px + env(safe-area-inset-bottom)); }
body.is-preview .stepper, body.is-preview .progress { display: none; }

.pin-screen {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background-color: #f3efe9;
  background-image:
    radial-gradient(920px 420px at 0 -10%, #ffde598c, transparent 62%),
    radial-gradient(720px 380px at 100% 0, #8fdbd46b, transparent 58%),
    linear-gradient(180deg, #fff 0, var(--sand) 100%);
}
.pin-screen::before,
.pin-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.pin-screen::before {
  width: 260px;
  height: 260px;
  right: -70px;
  top: -50px;
  border: 22px solid #ffde5940;
  border-radius: 50%;
  animation: drift 8s ease-in-out infinite;
}
.pin-screen::after {
  left: -40px;
  bottom: 8%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #8fdbd433;
  animation: drift 10s ease-in-out infinite reverse;
}
.pin-screen .pin-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 32px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #ffde59b3;
  box-shadow: 0 24px 50px rgba(17, 18, 20, 0.12);
  animation: rise 0.55s var(--ease-out);
}
.pin-card h1 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  color: var(--ink);
}
.pin-card h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 10px auto 0;
  background: var(--yellow);
  border-radius: 99px;
}
.pin-card h2 { font-size: 22px; }
.pin-card .inline-actions { justify-content: center; }
.pin-card .btn { min-width: 140px; }

.toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(256px + env(safe-area-inset-bottom));
  z-index: 20;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s var(--ease);
}
.toast.is-on {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(17, 18, 20, 0.94);
  color: white;
  padding: calc(10px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
  animation: fade 0.22s ease;
}
.modal img { width: 100%; height: 100%; object-fit: contain; }
.modal .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.modal .btn-ghost { background: transparent; color: #fff; border-color: #ffffff55; }
.modal .btn { background: var(--yellow); color: var(--ink); }
body.modal-open { overflow: hidden; }

.preview-toolbar { display: grid; gap: 8px; margin: 12px 0; }
.sheet {
  padding: 26px 20px 32px;
  margin: 0 auto 24px;
  animation: rise 0.4s var(--ease-out);
}
.sheet-brand {
  font-family: var(--display);
  letter-spacing: -0.04em;
  margin: 0;
  font-size: 28px;
  line-height: 0.95;
  font-weight: 800;
}
.sheet-brand span { display: block; }
.sheet h2 { letter-spacing: -0.03em; font-size: 18px; margin: 8px 0; }
.sheet-grid { display: grid; gap: 12px; }
.block { break-inside: avoid; margin: 0 0 14px; }
.block h3 {
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--yellow);
  font-size: 13px;
  letter-spacing: 0.14em;
}
.kv { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 14px; }
.kv .k { color: var(--ink-500); }
.kv .v { text-align: right; font-weight: 650; }
.sign-img { width: 100%; height: 90px; object-fit: contain; background: white; }
.evidence-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.evidence-grid figure { width: 120px; margin: 0; }
.evidence-grid img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.evidence-grid figcaption { font-size: 11px; color: var(--ink-500); }
.sheet-foot { margin-top: 16px; color: var(--ink-500); font-size: 13px; }
.attach-list { display: grid; gap: 8px; }
.attach-list button {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 6px;
}
.clause { margin: 0 0 8px; font-size: 13px; }
.clause small { display: block; color: var(--ink-500); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pop {
  0% { transform: scale(0.98); }
  60% { transform: scale(1.01); }
  100% { transform: none; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

.slot-grid, .card-hold-grid { grid-template-columns: 1fr; }

@media (max-width: 389px) {
  .wrap { width: calc(100% - 16px); }
  .brand span { font-size: 22px; }
  .brand span + span { font-size: 18px; }
  h2 { font-size: 22px; }
  .stepper button span { display: none; }
  .stepper button strong { font-size: 11px; }
  .choice { flex: 1 1 100%; }
  .brand-mark { width: 44px; height: 44px; }
  .eyebrow { letter-spacing: 0.12em; }
  .action-bar .row-3 { flex-wrap: wrap; }
  .action-bar .row-3 button { flex: 1 1 calc(50% - 8px); }
}
.top-actions { display: flex; gap: 8px; align-items: center; }
.top-actions .btn-ghost {
  min-height: 36px;
  height: 36px;
  padding: 6px 12px;
  font-size: 13px;
  background: #fff;
}
body.is-desk .page { padding-bottom: 28px; }
body.is-desk #contract-chip,
body.is-desk #btn-home { display: none; }
.desk-list { display: grid; gap: 10px; margin-top: 16px; }
.desk-card {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.desk-card strong { font-family: var(--display); font-size: 18px; letter-spacing: -0.03em; }
.desk-card span { color: var(--ink-500); font-size: 14px; }
.fold {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0 12px 4px;
}
.fold summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
.fold[open] { padding-bottom: 12px; }
.accept-all {
  margin: 8px 0 16px;
  padding: 12px;
  border-radius: 16px;
  background: var(--yellow-50);
  border: 1px solid #ffde59b3;
}
.bar-more { margin: 0; background: transparent; border: 0; padding: 0; }
.bar-more summary { min-height: 36px; justify-content: center; color: var(--ink-500); }
.action-bar .bar-more .row { margin-top: 8px; }

@media (max-width: 640px) {
  .top-row { flex-wrap: wrap; }
  .top-actions {
    position: static;
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }
  .brand-lockup,
  body:not(.is-desk) .brand-lockup { padding-right: 0; }
  .top-row form { position: static; }
}
@media (min-width: 390px) {
  .wrap { width: min(980px, calc(100% - 28px)); }
  .stepper button span { display: none; }
  .stepper button strong { font-size: 11px; }
}
@media (min-width: 430px) {
  .wrap { width: min(980px, calc(100% - 36px)); }
  .brand span { font-size: 26px; }
  .stepper button span { display: block; }
  .stepper button strong { font-size: 12px; }
  .slot-grid, .card-hold-grid { grid-template-columns: 1fr 1fr; }
  .slot-actions { flex-direction: row; }
  .slot-actions .file-btn { width: auto; flex: 1 1 auto; }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .card-hold-grid { grid-template-columns: 1fr 1fr; }
  .choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .sheet-grid { grid-template-columns: 1fr 1fr; }
  .brand span { font-size: 30px; }
  .page { padding-bottom: calc(220px + env(safe-area-inset-bottom)); }
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .slot-grid { grid-template-columns: repeat(4, 1fr); }
  .card-hold-grid { grid-template-columns: 1fr 1fr; }
  .sheet-grid { grid-template-columns: 1fr 1fr; }
  .brand span { font-size: 28px; }
  .wrap { width: min(980px, calc(100% - 40px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body { background: white; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; }
  .no-print { display: none !important; }
  #preview { display: block !important; }
  .sheet {
    box-shadow: none;
    border: 0;
    width: auto;
    margin: 0;
    padding: 0;
  }
  .sheet-grid { grid-template-columns: 1fr 1fr; }
  .sensitive-media { display: none !important; }
  body:not(.include-evidence) .evidence-block,
  body:not(.include-evidence) .evidence-photo { display: none !important; }
  .evidence-photos.include { break-before: page; }
  a { color: inherit; text-decoration: none; }
  @page { size: A4; margin: 12mm; }
}
