/* WALKED field capture — phone first, attic-readable, print-honest */

:root {
  --navy: #0B1F3A;
  --navy-2: #143154;
  --ink: #0B1F3A;
  --muted: #4A5B70;
  --line: #D5D0C6;
  --paper: #F4EFE6;
  --card: #FFFdf8;
  --orange: #E85D04;
  --orange-dark: #C24B00;
  --gold: #E8B923;
  --gold-dark: #B8890C;
  --noted: #3D5A73;
  --danger: #9B1D1D;
  --ok: #1F6B4A;
  --white: #ffffff;
  --shadow: 0 1px 2px rgba(11, 31, 58, 0.08), 0 8px 24px rgba(11, 31, 58, 0.06);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --tap: 56px;
  --radius: 14px;
  --header-h: 56px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.4;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  padding: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  touch-action: manipulation;
}

img { max-width: 100%; display: block; }

a { color: var(--orange-dark); }

#photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.boot {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  background: var(--navy);
  color: var(--paper);
}

.boot .brand-mark,
.brand-mark {
  font-family: var(--font-display);
  font-weight: 720;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.screen {
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + var(--safe-t));
  padding-bottom: calc(88px + var(--safe-b));
}

.screen.preview-screen {
  padding-bottom: calc(72px + var(--safe-b));
  background: var(--white);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: calc(var(--header-h) + var(--safe-t));
  padding: var(--safe-t) 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--navy);
  color: var(--paper);
}

.topbar h1 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0;
  flex: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .icon-btn,
.topbar .text-btn {
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-weight: 600;
  border-radius: 10px;
}

.topbar .icon-btn:active,
.topbar .text-btn:active { background: rgba(255,255,255,0.08); }

.wrap {
  padding: 16px 16px 0;
  max-width: 720px;
  margin: 0 auto;
}

.lede {
  margin: 0 0 16px;
  color: var(--muted);
}

.lede strong { color: var(--ink); }

.brand-hero {
  background: var(--navy);
  color: var(--paper);
  margin: 0 0 16px;
  padding: 20px 16px 24px;
}

.brand-hero h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 720;
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}

.brand-hero p { margin: 0; color: #d7deea; }

.job-card,
.system-row,
.comment-row,
.finding-row,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.job-list, .system-list, .comment-list, .finding-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-card, .system-row, .comment-row, .finding-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  min-height: var(--tap);
  text-decoration: none;
  color: inherit;
}

.job-card { cursor: pointer; }

.job-card .addr {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.job-card .meta, .muted, .sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.job-card .meta { margin: 0; }

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  background: rgba(255,255,255,0.4);
}

.empty h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.empty p { margin: 0; color: var(--muted); }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: linear-gradient(to top, var(--paper) 70%, rgba(244,239,230,0));
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  flex: 1;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange-dark);
}

.btn-navy {
  background: var(--navy);
  color: var(--paper);
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn[disabled] { opacity: 0.45; pointer-events: none; }

.field {
  margin: 0 0 14px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  appearance: none;
}

.field textarea {
  min-height: 140px;
  line-height: 1.45;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(232, 93, 4, 0.35);
  border-color: var(--orange);
}

.locked {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 16px;
}

.locked .k {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9eb0c6;
  margin: 0 0 4px;
}

.locked p { margin: 0; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.chip {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
}

.chip.active {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

.chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 10px;
  margin: 0 0 10px;
}

.chip-scroll .chip { flex: 0 0 auto; }

.search {
  position: relative;
  margin: 0 0 12px;
}

.search input {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.search .mag {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 1.1rem;
}

.system-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.system-row .num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--muted);
  width: 1.6rem;
}

.system-row .name {
  flex: 1;
  font-weight: 700;
}

.system-row .stat {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 8px;
  background: #ece8df;
  color: var(--muted);
}

.system-row .stat.yes { background: #d9efe4; color: var(--ok); }
.system-row .stat.no { background: #fde3d4; color: var(--orange-dark); }
.system-row .count {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}

.seg.three { grid-template-columns: 1fr 1fr 1fr; }
.seg.four { grid-template-columns: 1fr 1fr; }
@media (min-width: 420px) { .seg.four { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.seg button {
  min-height: var(--tap);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 700;
}

.seg button.active-yes {
  background: var(--ok);
  color: var(--white);
  border-color: var(--ok);
}

.seg button.active-no {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange-dark);
}

.seg button.cat-no.active { background: var(--orange); color: #fff; border-color: var(--orange-dark); }
.seg button.cat-diy.active { background: var(--gold); color: var(--navy); border-color: var(--gold-dark); }
.seg button.cat-diy_maybe.active { background: #e8f5ee; color: var(--navy); border-color: #1F6B4A; }
.seg button.cat-info.active { background: var(--navy); color: var(--paper); border-color: var(--navy); }

.cat-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  vertical-align: middle;
}

.cat-pill.no { background: #fde3d4; color: var(--orange-dark); }
.cat-pill.diy { background: #f8e7b0; color: #7a5a00; }
.cat-pill.info { background: #dce6f0; color: var(--navy); }

.comment-row .finding {
  font-weight: 700;
  margin: 0 0 4px;
}

.comment-row .snip {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bracket-warn {
  background: #fde8e8;
  color: var(--danger);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  font-weight: 600;
}

.bracket-warn[hidden] { display: none; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ddd;
  padding: 0;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb .x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(11,31,58,0.8);
  color: #fff;
  font-weight: 700;
}

.progress {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.55);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal {
  background: var(--card);
  width: 100%;
  max-width: 720px;
  border-radius: 18px 18px 0 0;
  padding: 20px 16px calc(16px + var(--safe-b));
}

.modal h2 {
  font-family: var(--font-display);
  margin: 0 0 8px;
}

.modal p { margin: 0 0 16px; color: var(--muted); }

.modal .row { display: flex; gap: 8px; }

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(96px + var(--safe-b));
  z-index: 90;
  background: var(--navy);
  color: var(--paper);
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.toast.bad { background: var(--danger); }

/* Buyer report */
.report {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 32px;
  background: #fff;
  color: var(--navy);
}

.report-mast {
  border-bottom: 4px solid var(--orange);
  padding: 8px 0 16px;
  margin-bottom: 20px;
}

.report-mast .wordmark {
  font-family: var(--font-display);
  font-weight: 720;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.report-mast h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.report-mast .cover-meta { margin: 0; color: var(--muted); }

.report-intro {
  margin: 0 0 24px;
}

.report-group {
  margin: 0 0 28px;
  break-inside: avoid;
}

.report-group h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 4px;
  padding-bottom: 6px;
}

.report-group.g-no h2 { border-bottom: 3px solid var(--orange); color: var(--orange-dark); }
.report-group.g-diy h2 { border-bottom: 3px solid var(--gold); }
.report-group.g-info h2 { border-bottom: 3px solid var(--navy); }

.report-group .hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 600;
}

.rf {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  break-inside: avoid;
}

.rf .sys {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 4px;
}

.rf h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.rf p { margin: 0 0 8px; }

.rf .rec { font-style: italic; }

.rf .trade { font-size: 0.9rem; color: var(--muted); margin: 0; }

.rf-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.rf-photos img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 6px;
}

.sys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sys-table th, .sys-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.sys-table th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.report-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.lightbox img {
  flex: 1;
  width: 100%;
  object-fit: contain;
}

.lightbox .dock { background: #000; }

@media print {
  .topbar, .dock, .toast, .modal-back, .no-print, #photo-input, .lightbox { display: none !important; }
  .screen { padding: 0 !important; background: #fff; }
  .report { max-width: none; padding: 0; }
  .rf-photos img { height: 180px; }
  a { text-decoration: none; color: inherit; }
  body { background: #fff; }
  .report-group h2, .cat-pill, .report-mast { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (min-width: 720px) {
  .wrap, .report { padding-left: 24px; padding-right: 24px; }
}

.buyer-stamp { display:inline-flex; flex-direction:column; margin:.4rem 0 .6rem; padding:.35rem .55rem; border-radius:10px; width:max-content; }
.buyer-stamp .tiny { font-size:.65rem; text-transform:uppercase; letter-spacing:.04em; opacity:.85; }
.buyer-stamp .big { font-size:1.05rem; font-weight:800; line-height:1.1; }
.buyer-stamp.no { background:#FCEDED; color:#8B1E1E; }
.buyer-stamp.yes { background:#E8F5EE; color:#1F6B4A; }
.buyer-stamp.maybe { background:#E8F5EE; color:#1F6B4A; }
.buyer-stamp.info { background:#EAF3FB; color:#2F5F8A; }
.buyer-card { display:grid; gap:.5rem; }
.buyer-card .rf-body { min-width:0; }
.report-group.g-diy_maybe h2 { border-bottom: 3px solid #1F6B4A; }
.dock a.btn { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }

.stamp-gate { max-width: 26rem; }
.stamp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .75rem 0 1rem; }
.stamp-pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: .25rem;
  text-align: left; padding: .7rem .75rem; border-radius: 12px; border: 2px solid var(--line);
  background: #fff; color: var(--ink); width: 100%;
}
.stamp-pick strong { font-size: .95rem; }
.stamp-pick span { font-size: .72rem; font-weight: 500; color: var(--muted); line-height: 1.25; }
.stamp-pick.cat-no:active, .stamp-pick.cat-no:focus { border-color: var(--orange); }
.stamp-pick.cat-diy:active, .stamp-pick.cat-diy:focus { border-color: var(--gold); }
.stamp-pick.cat-diy_maybe:active, .stamp-pick.cat-diy_maybe:focus { border-color: #1F6B4A; }
.stamp-pick.cat-info:active, .stamp-pick.cat-info:focus { border-color: var(--navy); }

.sec-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange); margin: 1.1rem 0 .45rem;
}
.note-line { opacity: .85; font-style: italic; }

.crm-nav {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 0.25rem;
}
.btn-soft {
  flex: 1;
  background: var(--panel, #1e293b);
  border: 1px solid var(--border, #334155);
  color: var(--text, #e2e8f0);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-weight: 600;
}
.btn-soft:active { opacity: 0.85; }


/* --- Capture-first redesign --- */
.capture-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.75rem 0 1rem;
}
.capture-hero.compact { margin-top: 0.35rem; }
.btn-capture {
  min-height: 72px;
  border-radius: 16px;
  border: none;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
}
.btn-capture.alt {
  background: var(--navy);
}
.btn-capture:active { opacity: 0.9; transform: scale(0.99); }

.mode-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #143154;
  color: #F4EFE6;
  font-size: 0.92rem;
  margin: 0.5rem 0 0.75rem;
}
.mode-banner .text-btn {
  color: var(--gold);
  font-weight: 700;
  background: transparent;
  border: none;
  padding: 0.25rem 0.4rem;
}

.caption-sheet { max-width: 26rem; }
.caption-sheet #caption-input {
  font-size: 1.15rem;
  min-height: 52px;
  padding: 0.85rem 0.9rem;
}
.caption-actions { margin-top: 0.75rem; gap: 0.5rem; }
.btn-save-big {
  flex: 1;
  min-height: 56px;
  font-size: 1.1rem;
  font-weight: 800;
}
.stamp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0.25rem;
}
.stamp-chip {
  min-height: 40px;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
}
.stamp-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.stamp-suggest {
  margin: 0.55rem 0 0.35rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.35;
  background: #fff7ed;
  border: 1.5px solid var(--orange);
  border-radius: 10px;
}
.stamp-suggest strong { color: var(--navy); font-weight: 800; }
.stamp-suggest.muted {
  background: #f1f5f9;
  border-color: var(--line);
  color: var(--muted);
  opacity: 1;
}
.stamp-chip.suggested {
  border-color: var(--orange);
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.28);
}

.always-list { display: flex; flex-direction: column; gap: 0.75rem; }
.always-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 0.65rem;
  padding: 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.always-row.off { opacity: 0.55; }
.always-toggle {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}
.always-toggle input {
  width: 22px;
  height: 22px;
}
.always-body { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.always-title {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font-weight: 700;
  background: #fff;
}
.always-text {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  resize: vertical;
  min-height: 72px;
}
.always-del {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
}

.crm-nav .btn-soft {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}


/* --- Agreements + shutter + quick captions polish --- */
.btn-shutter,
.btn-capture.btn-shutter {
  min-height: 72px;
  min-width: 72px;
  font-size: 1.12rem;
  font-weight: 800;
  border-radius: 18px;
  touch-action: manipulation;
}
.dock-shutter {
  flex: 1.15;
  min-height: 68px;
}
.always-one-tap {
  width: 100%;
  min-height: 64px;
  margin: 0.35rem 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.always-quick-row {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}
.always-quick-row .btn { min-height: 48px; }

.agreement-rail {
  margin: 0.65rem 0 0.85rem;
  padding: 0.85rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.agreement-rail select {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  background: #fff;
}
.agreement-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.55rem 0 0.35rem;
}
.agreement-status-row .btn {
  flex: 1;
  min-height: 48px;
  min-width: 5.5rem;
}
.btn-soft.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.agreement-body {
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.45;
  margin: 0.5rem 0 0.75rem;
}
.agreement-html-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 0.5rem 0 0.75rem;
}
.inline-toggle {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0.75rem;
  text-transform: none;
  font-size: 0.95rem;
}
.crm-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.5rem 0 0.85rem;
}
@media (min-width: 420px) {
  .crm-nav { grid-template-columns: repeat(4, 1fr); }
}

.quick-caption-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0 0.55rem;
  margin: 0.15rem 0 0.25rem;
  scrollbar-width: thin;
}
.quick-cap-chip {
  flex: 0 0 auto;
  max-width: 14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 40px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.quick-cap-chip:active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.caption-sheet #caption-input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.voice-pill {
  display: block;
  width: 100%;
  margin: 0.35rem 0 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 2px solid #38bdf8;
  background: #0c4a6e;
  color: #e0f2fe;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}
.voice-pill.listening {
  border-color: #f87171;
  background: #7f1d1d;
  color: #fecaca;
  animation: voice-pulse 1.1s ease-in-out infinite;
}
@keyframes voice-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.9; }
}


/* --- Field UX: multi-photo caption + More strip --- */
.more-wrap {
  margin: 0.65rem 0 0.85rem;
}
.more-toggle {
  width: 100%;
  min-height: 44px;
  font-weight: 700;
}
.more-panel {
  margin-top: 0.55rem;
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.more-actions {
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}
.more-actions .btn,
.more-actions a.btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
}
.caption-thumb-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0 0.55rem;
  margin: 0.15rem 0 0.35rem;
}
.caption-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  position: relative;
}
.caption-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.caption-add-photo {
  flex: 0 0 auto;
  min-height: 56px;
  min-width: 5.5rem;
  font-weight: 800;
}
.caption-photo-count {
  flex: 0 0 auto;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  padding: 0 0.25rem;
}
.caption-sheet .stamp-chips {
  margin-top: 0.4rem;
}
.caption-sheet .stamp-chip {
  min-height: 36px;
  padding: 0.3rem 0.55rem;
  font-size: 0.88rem;
}
.caption-sheet .stamp-suggest {
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
}
.always-quick-row {
  margin: 0.35rem 0 0.55rem;
  gap: 0.45rem;
  flex-wrap: wrap;
}


/* EOJ wrap-up checklist */
.eoj-sheet { max-width: 28rem; }
.eoj-sheet .eoj-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.eoj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--paper, #f6f3ec);
  border-radius: 12px;
  border: 1px solid rgba(11,31,58,0.08);
}
.eoj-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eoj-meta strong { font-size: 0.95rem; color: var(--navy); }
.eoj-id { font-size: 0.72rem; color: var(--muted); font-family: ui-monospace, monospace; }
.eoj-shoot { flex-shrink: 0; white-space: nowrap; }
.eoj-actions { flex-wrap: wrap; }
.eoj-actions .btn { flex: 1 1 auto; }
