/* Capital North Brand Color Guide v1.0. Gold is for CTAs and highlights only, never body text. */
:root {
  --forest-50: #eef8f3; --forest-100: #d6eee2; --forest-200: #aad8be; --forest-300: #77bf9c;
  --forest-400: #4da678; --forest-500: #318a5c; --forest-600: #286e4a; --forest-700: #1f5438;
  --forest-800: #163a27; --forest-900: #0d2218;
  --gold-50: #fdf6e3; --gold-100: #f9e8b6; --gold-200: #f0cc74; --gold-300: #e3ae30;
  --gold-400: #c99300; --gold-500: #aa7b00; --gold-600: #8a6300; --gold-900: #2b1e00;
  --good: #1a8c4e; --warn: #c98500; --crit: #c42b2b;

  --page: #fafbf8; --card: #ffffff; --sunken: #f2f4ef; --line: #e3e6de; --line-strong: #c8ccbf;
  --text: #131510; --text-2: #525849; --text-3: #6b7160;
  --brand: var(--forest-500); --brand-text: var(--forest-700); --brand-soft: var(--forest-50);
  --good-soft: #e6f4ec; --warn-soft: #fdf3dc; --crit-soft: #fbe9e9;
  --good-text: #14713e; --warn-text: #7f5400; --crit-text: #a32020;
  --shadow: 0 1px 2px rgba(13, 34, 24, .05), 0 8px 24px -16px rgba(13, 34, 24, .25);
  --radius: 14px;
  --heading: 'Outfit', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --page: #0a0c0b; --card: #16201a; --sunken: #111813; --line: #26332b; --line-strong: #3a4035;
  --text: #f2f4ef; --text-2: #c8ccbf; --text-3: #a8ad9e;
  --brand: var(--forest-400); --brand-text: var(--forest-300); --brand-soft: #14291e;
  --good-soft: #12301f; --warn-soft: #33270b; --crit-soft: #3a1717;
  --good-text: #6fd19c; --warn-text: #f0cc74; --crit-text: #f19a9a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--heading); margin: 0; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spacer { flex: 1; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 10px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--card);
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--brand); }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold-300); border-color: var(--gold-300); color: var(--gold-900); }
.btn-gold:hover { background: var(--gold-200); border-color: var(--gold-200); }
.btn-danger { background: var(--crit); border-color: var(--crit); color: #fff; }
.btn-danger:hover { border-color: var(--crit); filter: brightness(1.08); }
.btn-ghost-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; color: inherit; transition: background .15s ease;
}
.icon-btn:hover { background: rgba(127, 140, 130, .16); }

/* Forms */
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: 16px;
  background: var(--card); border: 1px solid var(--line-strong); transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
textarea.input { resize: vertical; min-height: 72px; display: block; }

/* Home */
.hero {
  background: radial-gradient(900px 420px at 85% -20%, var(--forest-700), transparent 70%), var(--forest-900);
  color: #fff; padding: calc(20px + env(safe-area-inset-top)) 20px 72px;
}
.hero-inner, .home-body { max-width: 960px; margin: 0 auto; }
.hero-top { display: flex; align-items: center; margin-bottom: 44px; }
.hero-logo { height: 58px; width: auto; display: block; }
.hero h1 { font-size: clamp(32px, 6vw, 46px); font-weight: 600; }
.hero p { color: var(--forest-200); margin: 10px 0 26px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.home-body { max-width: 1000px; padding: 0 20px 56px; margin-top: -40px; position: relative; }
.home-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.search-wrap { position: relative; flex: 1; }
.search-wrap svg { position: absolute; left: 12px; top: 13px; color: var(--text-3); }
.search-wrap .input { padding-left: 38px; box-shadow: var(--shadow); }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.insp-card {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; text-align: left; position: relative;
  transition: transform .15s ease, border-color .15s ease;
}
.insp-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.insp-open { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-align: left; }
.insp-open::after { content: ''; position: absolute; inset: 0; }
.insp-text { min-width: 0; flex: 1; }
.insp-text h3 { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp-meta { font-size: 13px; color: var(--text-3); margin: 2px 0 8px; }
.insp-delete { position: relative; color: var(--text-3); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px;
  font-size: 12px; font-weight: 600; background: var(--sunken); color: var(--text-2);
}
.pill svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
.pill-pass { background: var(--good-soft); color: var(--good-text); }
.pill-watch { background: var(--warn-soft); color: var(--warn-text); }
.pill-fix { background: var(--crit-soft); color: var(--crit-text); }
.ring { position: relative; flex: none; display: grid; place-items: center; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .track { stroke: var(--line); }
.ring .fill { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.ring b { position: absolute; font: 600 13px var(--heading); }
.empty { text-align: center; padding: 56px 24px; }
.empty h2 { font-size: 21px; margin-bottom: 6px; }
.empty p { color: var(--text-2); margin-bottom: 18px; }
.home-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 28px; font-size: 13px; color: var(--text-3); }
.link-btn { font-weight: 600; color: var(--brand-text); }
.link-btn:hover { text-decoration: underline; }

/* Inspection shell */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--forest-900); color: #fff;
  padding-top: env(safe-area-inset-top);
}
.topbar-row { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 12px; max-width: 1240px; margin: 0 auto; }
.top-logo { height: 34px; width: auto; display: block; }
.top-title { min-width: 0; flex: 1; margin-left: 10px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .16); }
.top-title strong { display: block; font: 600 15px/1.25 var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-state { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--forest-200); }
.save-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--forest-300); }
.save-state.saving .save-dot { background: var(--gold-300); }
.save-state.failed { color: #f6b3b3; }
.save-state.failed .save-dot { background: #f06a6a; }
.top-progress { height: 3px; background: rgba(255, 255, 255, .1); }
.top-progress i { display: block; height: 100%; background: var(--gold-300); transition: width .4s ease; }
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; max-width: 1240px; margin: 0 auto; padding: 24px 20px 64px; }

.rail { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
.rail-tab {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px;
  font-weight: 600; text-align: left; color: var(--text-2); transition: background .15s ease;
}
.rail-tab:hover { background: var(--sunken); }
.rail-tab.on { background: var(--brand-soft); color: var(--brand-text); }
.rail-tab .count { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-3); }
.rail-subs { margin: 2px 0 8px 20px; padding-left: 10px; border-left: 2px solid var(--line); }
.rail-sub {
  display: flex; gap: 8px; align-items: center; width: 100%; padding: 6px 8px; border-radius: 8px;
  font-size: 13px; text-align: left; color: var(--text-2);
}
.rail-sub:hover { background: var(--sunken); }
.rail-sub span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-sub .tick { color: var(--good-text); }
.rail-sub .flag { color: var(--crit-text); font-weight: 600; }

.bottom-nav { display: none; }
.view-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.view-head h1 { font-size: 28px; font-weight: 600; }
.view-head p { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.filters { display: flex; gap: 2px; padding: 3px; background: var(--sunken); border-radius: 10px; margin-left: auto; }
.filters button { padding: 6px 12px; min-height: 34px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.filters button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(13, 34, 24, .12); }

/* Checklist */
.sub { margin-bottom: 12px; overflow: hidden; scroll-margin-top: 84px; }
.sub-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; }
.sub-head h2 { font-size: 17px; font-weight: 600; }
.sub-title { flex: 1; min-width: 0; }
.sub-bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; max-width: 220px; }
.sub-bar i { display: block; height: 100%; background: var(--brand); transition: width .3s ease; }
.sub-head .chev { color: var(--text-3); transition: transform .2s ease; }
.sub.open .chev { transform: rotate(180deg); }
.sub-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.done-check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--good); color: #fff; flex: none; }
.done-check svg.i { width: 13px; height: 13px; stroke-width: 3; }

.selects { padding: 14px 0 4px; display: grid; gap: 12px; }
.sel-label { font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 38px; padding: 0 12px; border-radius: 99px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line-strong); background: var(--card); transition: all .15s ease;
}
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }

.item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-of-type { border-bottom: 0; }
.item-main { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 12px; }
.item-label { font-weight: 500; }
.seg { display: inline-flex; gap: 4px; }
.seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 62px; height: 40px; padding: 0 8px;
  border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--sunken);
  border: 1px solid transparent; transition: all .14s ease;
}
.seg button svg.i { width: 15px; height: 15px; stroke-width: 2.5; }
.seg button:hover { border-color: var(--line-strong); }
.seg button:active { transform: scale(.95); }
.seg .b-pass[aria-pressed="true"] { background: var(--good); color: #fff; }
.seg .b-watch[aria-pressed="true"] { background: var(--gold-300); color: var(--gold-900); }
.seg .b-fix[aria-pressed="true"] { background: var(--crit); color: #fff; }
.seg .b-na[aria-pressed="true"] { background: var(--text-2); color: var(--page); }
.more {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px;
  color: var(--text-3); border: 1px solid var(--line);
}
.more:hover, .more.on { color: var(--brand-text); border-color: var(--brand); }
.more em {
  position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  font: 600 11px/17px var(--body); background: var(--forest-700); color: #fff;
}
.seen-tag { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); }
.item-detail {
  margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--sunken);
  display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 10px; animation: rise .18s ease;
}
.item-detail .full { grid-column: 1 / -1; }
.item-detail.no-cost { grid-template-columns: minmax(0, 1fr); }
.cost-wrap { position: relative; }
.cost-wrap span { position: absolute; left: 11px; top: 11px; color: var(--text-3); }
.cost-wrap .input { padding-left: 24px; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 9px; overflow: hidden; background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x {
  position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 12, 11, .7); color: #fff;
}
.thumb .x svg.i { width: 13px; height: 13px; }
.thumb > button:first-child { width: 100%; height: 100%; }
.add-photo {
  width: 72px; height: 72px; border-radius: 9px; border: 1.5px dashed var(--line-strong); color: var(--text-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; font-weight: 600; cursor: pointer;
}
.add-photo:hover { border-color: var(--brand); color: var(--brand-text); }
.add-photo:focus-within { outline: 2px solid var(--gold-300); outline-offset: 2px; }
.add-photo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sub-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.sub-foot .field { flex: 1 1 100%; }
.filter-empty { padding: 44px 20px; text-align: center; color: var(--text-2); }

/* Property */
.panel { padding: 20px; margin-bottom: 14px; }
.panel h2 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.span-3 { grid-column: 1 / -1; }
.span-2 { grid-column: span 2; }
.floor-img { width: 100%; border-radius: 10px; display: block; border: 1px solid var(--line); margin-bottom: 12px; }
.upload-btn { position: relative; cursor: pointer; }
.upload-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-btn:focus-within { outline: 2px solid var(--gold-300); outline-offset: 2px; }

/* Report */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { padding: 16px; }
.stat strong { display: block; font: 600 30px/1.1 var(--heading); }
.stat span { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.stat span svg.i { width: 14px; height: 14px; }
.stat.cost strong { color: var(--brand-text); }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.finding { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: start; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.finding:first-of-type { border-top: 0; padding-top: 0; }
.finding .where { font-size: 12px; color: var(--text-3); }
.finding .note { font-size: 14px; color: var(--text-2); }
.finding .amount { font-weight: 600; white-space: nowrap; }
.finding .thumbs { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.finding .thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; }
.facts dt { font-size: 12px; color: var(--text-3); }
.facts dd { margin: 0; font-weight: 500; }

/* Dialog and toast */
dialog {
  border: 0; border-radius: 16px; padding: 22px; width: min(420px, calc(100vw - 32px));
  background: var(--card); color: var(--text); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .5);
}
dialog::backdrop { background: rgba(10, 12, 11, .6); }
dialog h2 { font-size: 19px; margin-bottom: 6px; }
dialog p { color: var(--text-2); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
dialog.lightbox { width: auto; max-width: calc(100vw - 24px); padding: 0; background: #000; overflow: hidden; }
dialog.lightbox img { display: block; max-width: 100%; max-height: 86vh; }
dialog.lightbox .icon-btn { position: absolute; top: 8px; right: 8px; color: #fff; background: rgba(0, 0, 0, .55); }
#toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); z-index: 50;
  background: var(--forest-800); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all .2s ease; max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--crit); }
#print-doc { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Phone */
@media (max-width: 860px) {
  .shell { display: block; padding: 16px 14px calc(92px + env(safe-area-inset-bottom)); }
  .rail { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--forest-900); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 10px;
    font-size: 11px; font-weight: 600; color: var(--forest-200); min-width: 0;
  }
  .bottom-nav button.on { color: var(--gold-300); background: rgba(255, 255, 255, .07); }
  .top-logo { height: 28px; }
  .top-title { margin-left: 4px; padding-left: 10px; }
  .btn-label { display: none; }
  .view-head h1 { font-size: 24px; }
  .filters { margin-left: 0; width: 100%; }
  .filters button { flex: 1; }
  .sub-head { flex-wrap: wrap; }
  .sub-title { flex: 1 1 60%; }
  .sub-head .pills { order: 5; width: 100%; }
  .sub-head .pills:empty { display: none; }
  .item-main { grid-template-columns: minmax(0, 1fr) 40px; }
  .seg { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(4, 1fr); }
  .seg button { min-width: 0; padding: 0 2px; }
  .more { grid-column: 2; grid-row: 2; }
  .item-label { grid-column: 1 / -1; }
  .item-detail { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 .sm { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-actions .btn { flex: 1 1 40%; white-space: nowrap; }
  .report-actions .btn-gold { flex-basis: 100%; }
  .finding { grid-template-columns: 70px minmax(0, 1fr); }
  .finding .amount { grid-column: 2; }
  .finding .thumbs { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Printed report: always light, whatever theme is on screen */
@media print {
  @page { margin: .55in; }
  body { background: #fff; color: #131510; font-size: 11pt; }
  #app, #toast, dialog { display: none !important; }
  #print-doc { display: block; }
  .p-cover {
    background: #0d2218; color: #fff; border-radius: 10px; padding: 22pt 24pt; margin-bottom: 16pt;
    display: flex; align-items: center; justify-content: space-between; gap: 20pt;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .p-cover img { height: 62pt; }
  .p-cover h1 { font-size: 20pt; font-weight: 600; text-align: right; }
  .p-cover p { color: #aad8be; text-align: right; font-size: 10pt; margin-top: 3pt; }
  .p-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(84pt, 1fr)); gap: 6pt 12pt; margin-bottom: 14pt; font-size: 10pt; }
  .p-facts dt { color: #6b7160; font-size: 8.5pt; }
  .p-facts dd { margin: 0; font-weight: 600; }
  .p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8pt; margin-bottom: 18pt; }
  .p-stats div { border: 1px solid #e3e6de; border-radius: 8px; padding: 8pt 10pt; font-size: 9pt; color: #525849; }
  .p-stats strong { display: block; font: 600 17pt var(--heading); color: #131510; }
  #print-doc h2 {
    font-size: 14pt; color: #1f5438; margin: 16pt 0 6pt; padding-bottom: 3pt; border-bottom: 1.5pt solid #e3ae30;
    break-after: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  #print-doc h3 { font-size: 11pt; margin: 10pt 0 3pt; break-after: avoid; }
  .p-finding { break-inside: avoid; padding: 6pt 0; border-bottom: 1px solid #e3e6de; }
  .p-finding b { font-weight: 600; }
  .p-tag { display: inline-block; min-width: 40pt; font-weight: 700; font-size: 9pt; }
  .p-tag.fix { color: #a32020; }
  .p-tag.watch { color: #7f5400; }
  .p-tag.pass { color: #14713e; }
  .p-tag.seen, .p-tag.na, .p-tag.open { color: #6b7160; }
  .p-where, .p-note { font-size: 9.5pt; color: #525849; }
  .p-photos { display: flex; flex-wrap: wrap; gap: 5pt; margin-top: 4pt; }
  .p-photos img { width: 118pt; height: 88pt; object-fit: cover; border-radius: 4pt; }
  .p-row { display: flex; gap: 6pt; font-size: 9.5pt; padding: 1.5pt 0; break-inside: avoid; }
  .p-floor { break-before: page; }
  .p-floor img { width: 100%; max-height: 8.6in; object-fit: contain; }
  .p-foot { margin-top: 16pt; font-size: 8.5pt; color: #6b7160; }
}
