/* Grantee · the property record (rendered into the floating panel by property.js).
   Type: 11 mono labels · 12.5 secondary · 13.5 body · 15 lead; record H1 22 (21 on phone). Radii: 10 card · 8 button · 3 chip. */

.rec .photo { position: relative; margin: 0; flex: none; height: 260px; background: var(--canvas); order: 0; }
.rec .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.rec .photo .cap, .rec .plate .cap { position: absolute; left: 12px; bottom: 10px; padding: 3px 6px; border-radius: 3px; background: var(--ink); color: var(--on-ink); font: 500 11px/1.2 var(--mono); letter-spacing: .01em; }
.rec-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.rec-close:hover { background: var(--hover); }
.rec-close svg { width: 14px; height: 14px; }
/* on the plate the caption sits top left, clear of the scale bar and north arrow */
.rec .plate .cap { top: 10px; bottom: auto; }
/* phone only: the state label rides on the photo or plate */
.ph-st { display: none; }

/* the tax-map plate stands in for a photo on records without one (80 m across) */
.rec .plate { position: relative; margin: 0; flex: none; height: 200px; background: var(--canvas); border-bottom: 1px solid var(--rule); order: 0; overflow: hidden; }
.rec .plate > svg.plate-map { display: block; width: 100%; height: 100%; }
.plate-map .pl-n { fill: color-mix(in srgb, var(--ink) 4%, transparent); stroke: var(--rule-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plate-map .pl-s { fill: var(--stamp-wash); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.plate-map .pl-st { fill: none; stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plate-map .pl-stn { font-family: var(--mono); font-weight: 400; fill: var(--quiet); letter-spacing: .06em; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--canvas); stroke-linejoin: round; }
.plate-map .pl-bar { fill: none; stroke: var(--graphite); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plate-map .pl-n-ar { fill: var(--graphite); stroke: none; }
.plate-map .pl-kt { font-family: var(--mono); fill: var(--graphite); text-anchor: middle; }
:root[data-theme="dark"] .plate-map .pl-n { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plate-map .pl-n { fill: color-mix(in srgb, var(--ink) 6%, transparent); } }

.rec .head { padding: 16px 20px 16px; order: 1; }
.rec .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--graphite); flex-wrap: wrap; }
.rec h1 { margin: 8px 0 0; font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.rec .city { color: var(--graphite); font-size: 13.5px; margin-top: 2px; }
.rec .facts { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: var(--graphite); }
.rec .facts b { color: var(--ink); font-weight: 500; }
.rec .people { margin-left: auto; font-size: 12.5px; color: var(--graphite); }
.rec .people b { color: var(--ink); font-weight: 600; }

/* ── Who holds title ── */
.who-card { margin: 0 16px; order: 2; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); position: relative; }
.wc-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px 0; }
.wc-hd h2 { margin: 0; font-size: 13.5px; font-weight: 600; }
.wc-hd span { font-size: 12.5px; color: var(--graphite); }
.wc-row { padding: 10px 14px 12px; }
.row-lbl { font-size: 12.5px; color: var(--graphite); }
.row-main { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 3px; flex-wrap: wrap; }
.occ .name { color: var(--graphite); font-size: 15px; font-weight: 500; text-decoration-thickness: 1.5px; text-decoration-color: var(--graphite); }
.occ .phone { color: var(--graphite); font-size: 13.5px; }
.occ .src { margin-top: 4px; font-size: 12.5px; color: var(--quiet); }
.occ.struck .name, .occ.struck .phone { text-decoration: line-through; }
.occ.agrees .name { color: var(--ink); font-weight: 600; }

.slot { margin: 0 14px; border-top: 1px dashed var(--rule-strong); padding: 12px 0 14px; }
.slot .frame-dash { margin-top: 8px; }
.slot-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.slot-note { font-size: 12.5px; color: var(--graphite); line-height: 1.9; flex: 1 1 180px; min-width: 0; }
.slot-note .prov { margin: 0 1px; }

.verdict { margin: 0 14px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 13.5px; }
.verdict small { display: block; font-weight: 400; font-size: 12.5px; color: var(--graphite); margin-top: 2px; }
.gr .name { font-size: 15px; font-weight: 600; }
.gr .lines { margin-top: 8px; display: grid; gap: 7px; font-size: 12.5px; color: var(--graphite); }
.gr .ln { display: block; line-height: 1.6; }
.gr .ln .prov { margin-left: 4px; }
.gr .ln .prov:first-child { margin-left: 0; }
.gr .ln b { color: var(--ink); font-weight: 500; }
.gr .ln .tcpa { display: block; color: var(--graphite); }
.gr-status { display: flex; padding: 10px 14px 12px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--graphite); align-items: center; gap: 8px; }
.gr-status i { width: 8px; height: 8px; border-radius: 2px; background: var(--amber); flex: none; }
.gr-status.needs i { background: var(--needs); border-radius: 50%; }
.gr-status.rel i { background: var(--green); border-radius: 1px; }

/* Also owns + Flags: public-record context under the grantee */
.wc-extra { display: grid; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--graphite); }
.wc-extra .xr { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.wc-extra .xk { color: var(--graphite); }
.wc-extra .xv { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.wc-extra .xv small { font-size: 11px; font-family: var(--mono); color: var(--quiet); }
.own-chip {
  --c: 3px; position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 7px;
  color: var(--ink); background: color-mix(in srgb, var(--ink) 55%, transparent); font-size: 12.5px; font-weight: 500;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: color 160ms var(--ease);
}
.own-chip::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--surface); clip-path: polygon(2.6px 0, calc(100% - 2.6px) 0, 100% 2.6px, 100% calc(100% - 2.6px), calc(100% - 2.6px) 100%, 2.6px 100%, 0 calc(100% - 2.6px), 0 2.6px); transition: background-color 160ms var(--ease); }
.own-chip:hover::before { background: var(--hover); }
.own-chip b { font-weight: 600; }
.own-chip svg { color: var(--graphite); flex: none; }
.own-chip[aria-pressed="true"] { color: var(--on-ink); }
.own-chip[aria-pressed="true"]::before { background: var(--ink); }
.own-chip[aria-pressed="true"] svg { color: var(--on-ink); }
.own-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wc-extra .flags { gap: 2px 6px; }
.wc-extra .fl { white-space: nowrap; }
.wc-extra .fl span { color: var(--quiet); }
.wc-extra .fl.on { color: var(--ink); white-space: normal; }
.wc-extra .fl.on b { font-weight: 600; }
.wc-extra .fl.on i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--needs); margin-right: 5px; vertical-align: 1px; }
.wc-extra .dot { color: var(--quiet); }
/* while the signature moment stages the resolved card, this block arrives with the status line */
.gl-stage .wc-extra { animation: wcx 160ms var(--ease) 1560ms both; }
@keyframes wcx { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gl-stage .wc-extra { animation: wcx 150ms linear 1250ms both; } }

/* LLC: find the person behind the LLC */
.behind { margin: 4px 0 2px; padding: 10px 12px 4px; border: 1px solid var(--rule); border-radius: 8px; background: color-mix(in srgb, var(--canvas) 55%, var(--surface)); }
.behind h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.behind ol { list-style: none; margin: 0; padding: 0; position: relative; }
.behind li { position: relative; padding: 0 0 12px 22px; font-size: 12.5px; color: var(--graphite); line-height: 1.5; }
.behind li::before { content: ""; position: absolute; left: 5px; top: 13px; bottom: -1px; width: 1px; background: var(--rule-strong); }
.behind li:last-child::before { display: none; }
.behind li .nd { position: absolute; left: 0; top: 4px; width: 11px; height: 11px; }
.behind li .nd.rec { --c: 2.5px; background: var(--stamp); clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.behind li .nd.rec::after { content: ""; position: absolute; inset: 1.5px; background: var(--surface); clip-path: inherit; }
.behind li .nd.ink { background: var(--ink); }
.behind li .nd.skip { border: 1px dashed var(--quiet); border-radius: 50%; }
.behind li b { color: var(--ink); font-weight: 600; }
.behind li .t { display: block; color: var(--ink); font-weight: 500; }
.behind li.skipped .t { text-decoration: line-through; text-decoration-color: var(--graphite); color: var(--graphite); }
.behind li .prov { margin-top: 3px; }
.behind li .q { font-family: var(--mono); font-size: 11px; color: var(--ink); background: var(--stamp-wash); padding: 1px 4px; border-radius: 3px; }

/* documents rail */
.rec .docs { order: 3; padding: 16px 20px 4px; }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

/* evidence */
.rec .ev { order: 4; padding: 6px 20px 8px; }
.blk { padding: 16px 0; border-top: 1px solid var(--rule); }
.blk:first-child { border-top: 0; }
.blk-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.blk-hd h3 { margin: 0; font-size: 13.5px; font-weight: 600; }
.blk-hd .when { font-size: 12.5px; color: var(--graphite); }
.rec dl { margin: 0; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 6px 12px; font-size: 13.5px; }
.rec dt { color: var(--graphite); }
.rec dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rec dd .mono { font-size: 12.5px; }
.rec dd small { color: var(--graphite); font-size: 12.5px; }
.rec dd .tax-due { font-size: 12.5px; color: var(--ink); }
.rec dd .tax-due b { font-weight: 600; }
.flag { color: var(--ink); font-weight: 600; }
.note { margin-top: 8px; font-size: 12.5px; color: var(--graphite); }

.comps-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.minimap { position: relative; height: 132px; border: 1px solid var(--rule); border-radius: 10px; background: var(--canvas); overflow: hidden; }
.minimap svg { display: block; width: 100%; height: 100%; }
.minimap .mm-p { fill: none; stroke: var(--rule-strong); stroke-width: .6; vector-effect: non-scaling-stroke; }
.minimap .mm-s { fill: var(--ink); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.minimap .mm-r { fill: none; stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.minimap .mm-c rect { fill: var(--surface); stroke: var(--graphite); stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: fill 160ms var(--ease), stroke 160ms var(--ease); }
.minimap .mm-c text { font: 600 9px/1 var(--mono); fill: var(--graphite); text-anchor: middle; dominant-baseline: central; }
.minimap .mm-c.lit rect { fill: var(--ink); stroke: var(--ink); }
.minimap .mm-c.lit text { fill: var(--on-ink); }
.minimap .mm-k { position: absolute; left: 8px; bottom: 6px; font: 500 11px/1 var(--mono); color: var(--graphite); }
.comps { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.comps li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 76px; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--rule); align-items: baseline; border-radius: 3px; transition: background-color 160ms var(--ease); cursor: default; }
.comps li:last-child { border-bottom: 0; }
.comps li.lit { background: var(--hover); }
.comps .ix { font: 600 11px/1 var(--mono); color: var(--graphite); }
.comps .addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comps .when, .comps em { color: var(--graphite); font-size: 12.5px; font-style: normal; white-space: nowrap; }
.comps .mono { text-align: right; }
.median { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule-strong); font-size: 13.5px; }
.median span { color: var(--graphite); }

.hist { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.hist li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 5px 0; color: var(--graphite); }
.hist li .mono { font-size: 11px; color: var(--quiet); }
.hist li b { color: var(--ink); font-weight: 600; }

.honest { margin: 10px 14px 0; font-size: 11px; color: var(--quiet); line-height: 1.4; }

/* footer action */
.act { flex: none; display: flex; align-items: center; gap: 8px 14px; padding: 12px 16px; border-top: 1px solid var(--rule); background: var(--surface); flex-wrap: wrap; }
.act p { margin: 0; flex: 1 1 140px; font-size: 12.5px; line-height: 1.35; color: var(--graphite); min-width: 0; }
.act p b { color: var(--ink); font-weight: 600; }
.act .btns { display: flex; align-items: center; gap: 8px; flex: none; }
.act .btn { padding: 0 15px; font-size: 13.5px; }
.act .rej { height: 40px; padding: 0 10px; font-weight: 600; font-size: 13.5px; color: var(--graphite); border-radius: 8px; }
.act .rej:hover { background: var(--hover); color: var(--ink); }
.act .undo { font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); min-height: 40px; padding: 0 6px; }
/* released: the note takes its own line, then Undo · Withdraw, then the next item */
.act.is-released p { flex-basis: 100%; }
.act.is-released .btns { margin-left: -6px; }
/* after a release: the next item awaiting this reviewer */
.next-up { flex-basis: 100%; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; margin: 2px -4px -2px; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 13.5px; overflow: hidden; white-space: nowrap; transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.next-up span { font-weight: 600; }
.next-up svg { margin-left: auto; flex: none; color: var(--graphite); transition: transform 160ms var(--ease); }
.next-up:hover { border-color: var(--ink); background: var(--hover); }
.next-up:hover svg { transform: translateX(2px); color: var(--ink); }
.rej-form { flex-basis: 100%; display: grid; gap: 8px; padding-top: 2px; }
.rej-form .reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.rej-form .reasons button { height: 32px; padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: 8px; font-size: 12.5px; }
.rej-form .reasons button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.rej-form .row { display: flex; gap: 8px; align-items: center; }
.rej-form .row .input { flex: 1; min-width: 0; }
.short .rej-form { margin-top: 12px; }

/* short record for parcels without a detailed record */
.short { margin: 0 16px; order: 2; border: 1px solid var(--rule); border-radius: 10px; padding: 14px; }
.short h2 { margin: 0; font-size: 13.5px; font-weight: 600; }
.short p { margin: 4px 0 0; font-size: 12.5px; color: var(--graphite); }
.short .lines { margin-top: 10px; display: grid; gap: 7px; font-size: 12.5px; color: var(--graphite); }
.short .lines b { color: var(--ink); font-weight: 500; }
.short .acts { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.short .imp { margin-top: 12px; }

@media (max-width: 720px) {
  /* the photo or plate leads the sheet (16:9-ish, 180 px), with the state label on it; it folds away at the peek snap */
  .rec .photo, .rec .plate { order: 0; height: 180px; margin: 0 12px; border-radius: 10px; overflow: hidden; border: 0; transition: height 300ms var(--ease), margin 300ms var(--ease); }
  .panel[data-snap="peek"] .rec .photo, .panel[data-snap="peek"] .rec .plate { height: 0; }
  .ph-st { display: flex; position: absolute; left: 10px; bottom: 10px; z-index: 1; align-items: center; height: 26px; padding: 0 8px; border-radius: 3px; background: var(--surface); box-shadow: var(--shadow-sm); }
  .ph-st .st { font-size: 12.5px; }
  .rec .photo .cap { top: 10px; bottom: auto; }
  .rec .head { order: 1; padding: 10px 16px 12px; touch-action: none; }
  /* phone head: the state label is on the photo, so the eyebrow and the lot size step aside */
  .rec .eyebrow { display: none; }
  .rec .facts .f-lot, .rec .facts .f-sq { display: none; }
  .act.is-locked { display: none; }
  .rec .facts { margin-top: 8px; }
  .panel[data-snap="full"] .rec .head { touch-action: auto; }
  .rec h1 { font-size: 21px; margin-top: 4px; }
  .who-card, .short { order: 2; margin: 0 12px; }
  .rec-close { display: none; }
  .rec .docs { order: 3; padding: 18px 16px 4px; }
  .rec .ev { padding: 6px 16px 8px; }
  .rec dl { grid-template-columns: 112px minmax(0, 1fr); }
  .rail { gap: 8px; }
  .panel[data-snap="peek"] .act { display: none; }
  .act { padding: 10px 12px; gap: 8px 10px; }
  .act .btn { font-size: 13.5px; padding: 0 12px; height: 44px; }
  .act .rej { height: 44px; }
  .next-up { min-height: 44px; margin: 0; }
  .comps li { grid-template-columns: 16px minmax(0, 1fr) 76px; }
  .comps li .when { display: none; }
  .wc-extra .xr { grid-template-columns: 64px minmax(0, 1fr); }
}
@media (max-width: 380px) { .act p { flex-basis: 100%; } }
