:root {
  --ink: #141414; --muted: #6b6b6b; --line: #dcdcd8; --bg: #f1f1ee; --card: #fff;
  --black: #0b0b0b; --yellow: #ffc20e; --yellow-dark: #b08200; --yellow-hover: #e6ad00; --yellow-soft: #fff4cc;
  --good: #137a3a; --good-bg: #e3f4e9; --warn: #8a5a00; --warn-bg: #fff2d6; --bad: #b81a12; --bad-bg: #fde6e4;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: #0b57d0; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 1.2rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.pre { white-space: pre-wrap; } .mono { font-family: var(--mono); font-size: .85rem; }
.warn-text { color: var(--warn); font-weight: 600; }
[hidden] { display: none !important; }

/* Header */
.demo-banner { background: #ffd400; color: #000; text-align: center; font-weight: 700; font-size: .85rem; padding: 6px 12px; }
.site-header { background: var(--black); border-top: 5px solid var(--yellow); border-bottom: 5px solid var(--yellow); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand img { display: block; height: 56px; width: auto; background: #fff; padding: 4px 8px; }
.header-call { color: #fff; text-decoration: none; font-weight: 700; border: 1px solid #444; border-radius: 6px; padding: 8px 12px; white-space: nowrap; font-size: .9rem; }
.menu-btn { background: none; border: 1px solid #444; border-radius: 6px; padding: 10px 9px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: #fff; }
.main-nav { display: none; flex-direction: column; padding: 4px 16px 12px; max-width: 1180px; margin: 0 auto; }
.main-nav.open { display: flex; }
.main-nav a, .main-nav .linklike { color: #ddd; text-decoration: none; padding: 9px 0; font-size: 1rem; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.main-nav a.active { color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--yellow); padding-left: 10px; }
.nav-spacer { height: 6px; border-bottom: 1px solid #333; margin-bottom: 6px; }
form.inline { display: inline; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .main-nav { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 18px; padding: 0 16px 10px; }
  .main-nav a, .main-nav .linklike { padding: 4px 0; font-size: .92rem; }
  .main-nav a.active { box-shadow: inset 0 -2px 0 var(--yellow); padding-left: 0; }
  .nav-spacer { flex: 1; height: auto; border: 0; margin: 0; }
}

/* Layout */
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; flex: 1; }
.wrap.wide { max-width: 1180px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.narrow-left { max-width: 620px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head h1, .card-head h2 { margin: 0; }
details.card summary { cursor: pointer; }
details.card[open] summary { margin-bottom: 12px; }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .wrap:not(.wide) .grid-3 { grid-template-columns: 1fr; } }
.site-footer { background: var(--black); color: #aaa; text-align: center; font-size: .82rem; padding: 18px 16px; border-top: 4px solid var(--yellow); }
.site-footer a { color: #ddd; }
.site-footer div { margin: 2px 0; }

/* Hero / public */
.hero { padding: 12px 0 18px; }
.hero h1 { font-size: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--yellow-dark); margin: 0 0 4px; }
.lead { font-size: 1.1rem; color: #333; }
.pick h2 { margin-top: 0; }
.pick-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pick-form input { flex: 1 1 220px; }
.prop-head { margin-bottom: 14px; }
.actions { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 600px) { .actions { grid-template-columns: 1fr 1fr; } }
.action { display: block; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--black); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); }
.action strong { display: block; font-size: 1.15rem; }
.action span { color: var(--muted); font-size: .9rem; }
.action:hover { border-color: var(--black); }
.action-alert { border-left-color: var(--yellow); }
.list { list-style: none; padding: 0; margin: 0; }
.list li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }

/* Forms */
.form fieldset { border: 0; border-top: 1px solid var(--line); margin: 14px 0 0; padding: 12px 0 0; }
.form legend { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-right: 8px; }
.field { display: block; margin-bottom: 12px; flex: 1 1 0; min-width: 0; }
.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.field small { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #c4c4bf; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--black); outline-offset: 1px; border-color: var(--black); }
input[type="checkbox"] { width: auto; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .field { flex: 1 1 160px; }
.row-3 > .field { flex: 1 1 120px; } .row-4 > .field { flex: 1 1 90px; }
.row-btn { align-items: flex-end; } .row-btn .btn { margin-bottom: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 12px 0; }
.check input { margin-top: 4px; }
.plate { text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); font-weight: 700; }
.plate-input { font-size: 2rem; text-align: center; padding: 14px; margin-bottom: 12px; }
.prefix-input { display: flex; align-items: center; } .prefix-input span { padding: 0 8px; color: var(--muted); font-family: var(--mono); }
.num-input { width: 70px; display: inline-block; padding: 6px 8px; }
.inline-search { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.inline-search input { flex: 1 1 180px; padding: 8px 10px; } .inline-search select { width: auto; padding: 8px 10px; }
.check-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; }
.check-list .check { margin: 6px 0; }
.filter-input { margin-bottom: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--black); background: #fff; color: var(--black); text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { background: #f4f4f2; }
.btn-primary { background: var(--black); color: #fff; } .btn-primary:hover { background: #2a2a2a; }
.btn-alert { background: var(--yellow); border-color: var(--yellow); color: var(--black); } .btn-alert:hover { background: var(--yellow-hover); }
.btn-ghost { border-color: #c4c4bf; color: #333; }
.btn-danger { background: #b3261e; border-color: #b3261e; color: #fff; } .btn-danger:hover { background: #8f1d17; }
.btn-sm { padding: 6px 10px; min-height: 34px; font-size: .85rem; }
.btn-block { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.btn-row form { margin: 0; }
.or { text-align: center; color: var(--muted); margin: 12px 0; font-size: .9rem; }
#paypal-buttons { min-height: 50px; }
.linklike { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; }

/* Messages & status */
.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .95rem; }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.flash-ok { background: var(--good-bg); color: var(--good); }
.flash-err { background: var(--bad-bg); color: var(--bad); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; vertical-align: middle; }
.badge-good { background: var(--good-bg); color: var(--good); } .badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); } .badge-muted { background: #ececea; color: #555; }
.big-status { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 6px 14px; border-radius: 8px; margin: 6px 0 12px; }
.big-status.good { background: var(--good-bg); color: var(--good); } .big-status.warn { background: var(--warn-bg); color: var(--warn); }
.big-status.bad { background: var(--bad-bg); color: var(--bad); } .big-status.muted { background: #ececea; color: #555; }
.plate-big { font-family: var(--mono); font-weight: 800; font-size: 2.2rem; letter-spacing: .08em; margin: 6px 0; }
.plate-text { font-family: var(--mono); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.plate-text.big { font-size: 1.3rem; }
.price-line { font-size: 1.1rem; } .fee-line { font-size: 1rem; }
dl.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; text-align: left; margin: 14px 0; }
dl.summary dt { color: var(--muted); font-size: .9rem; } dl.summary dd { margin: 0; }
.pass-card dl.summary { max-width: 360px; margin: 14px auto; }

/* Driver */
.lookup-result { border-radius: var(--radius); padding: 16px; margin-top: 16px; text-align: center; }
.lookup-result.ok { background: var(--good-bg); border: 2px solid var(--good); }
.lookup-result.no { background: var(--bad-bg); border: 2px solid var(--bad); }
.verdict { font-weight: 900; font-size: 1.4rem; letter-spacing: .06em; }
.lookup-result.ok .verdict { color: var(--good); } .lookup-result.no .verdict { color: var(--bad); }
.call-alert { display: block; background: var(--yellow); color: var(--black); font-weight: 700; text-decoration: none; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 14px; }
.call { border-left: 6px solid var(--yellow); } .call.enroute { border-left-color: var(--yellow-dark); }
.call h2 { margin: 6px 0 2px; }
.call-head { display: flex; justify-content: space-between; align-items: center; }
.sig-wrap { border: 1px dashed #999; border-radius: 8px; padding: 6px; background: #fafaf8; }
.sig-pad { display: block; width: 100%; height: 150px; background: #fff; border-radius: 6px; touch-action: none; cursor: crosshair; }
.sig-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.legal { font-size: .78rem; line-height: 1.4; color: #333; }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px 8px; white-space: nowrap; }
.table td { border-bottom: 1px solid var(--line); padding: 9px 8px; vertical-align: top; }
.table .num { text-align: right; }
.table tr.dim td { color: #999; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; font-size: .88rem; color: var(--muted); }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px; border-bottom: 2px solid var(--line); -webkit-overflow-scrolling: touch; }
.tabs a { padding: 10px 12px; text-decoration: none; color: #444; white-space: nowrap; font-weight: 600; font-size: .92rem; margin-bottom: -2px; border-bottom: 3px solid transparent; }
.tabs a.active { color: var(--black); border-bottom-color: var(--yellow); }
.approval { border-left: 6px solid #e0a100; }

/* Admin stats */
.stat-group h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--black); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--ink); }
.stat span { display: block; font-size: .8rem; color: var(--muted); }
.stat strong { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }

/* Impound invoice (matches the current Alpha Wrecker ticket) */
.invoice { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 22px; max-width: 900px; margin: 0 auto; font-size: .82rem; line-height: 1.35; color: #111; }
.inv-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.inv-company { font-weight: 800; font-size: 1.05rem; }
.inv-title { font-size: 1.4rem; color: #777; text-align: right; }
.inv-sub { margin-top: 4px; }
.inv-cols { display: grid; gap: 0 28px; }
@media (min-width: 700px) { .inv-cols { grid-template-columns: 1fr 1fr; } }
.inv-cols dl { margin: 0; }
.inv-row { display: grid; grid-template-columns: 150px 1fr; gap: 8px; padding: 2px 0; }
.inv-row dt { font-weight: 700; } .inv-row dd { margin: 0; }
.inv-notes { margin: 10px 0; }
.inv-charges { width: 100%; border-collapse: collapse; border: 1px solid #bbb; margin: 10px 0 14px; }
.inv-charges th { text-align: left; font-weight: 700; padding: 8px 10px; border-top: 3px solid #bbb; border-bottom: 1px solid #bbb; }
.inv-charges td { padding: 6px 10px; }
.inv-charges th:nth-child(n+2), .inv-charges td:nth-child(n+2), .inv-charges tfoot td { text-align: right; }
.inv-charges tfoot td { padding: 1px 10px; font-weight: 700; }
.inv-charges tfoot tr:first-child td { border-top: 2px solid #111; padding-top: 6px; }
.inv-charges tr.due td { font-size: 1.15rem; padding-bottom: 8px; }
.inv-sig { display: flex; align-items: flex-end; gap: 14px; margin: 16px 0; }
.inv-sig > span { font-weight: 700; }
.sig-img { display: block; height: 70px; width: auto; border-bottom: 2px solid #111; }
.sig-none { color: #999; border-bottom: 2px solid #111; width: 200px; padding: 20px 0 4px; }
.sig-date { font-size: .7rem; text-align: center; }
.inv-tdlr { text-align: center; margin: 14px 0; }
.legal-lg { font-size: .85rem; }
.legal-title { text-align: center; font-size: .8rem; margin: 10px 0 4px; }
.legal-sm { font-size: .68rem; line-height: 1.3; text-align: justify; }
.lookup-msg { color: var(--muted); }
.lookup-msg.good { color: var(--good); font-weight: 600; }
.lookup-msg.bad { color: var(--bad); font-weight: 600; }

/* QR on pass + verification page */
.qr-box { display: flex; gap: 14px; align-items: center; text-align: left; background: #fafaf8; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 12px 0; }
.qr-box svg { width: 128px; height: 128px; flex: none; }
.qr-box p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.verify { border-top: 10px solid var(--muted); padding-top: 14px; }
.verify-good { border-top-color: var(--good); } .verify-bad { border-top-color: var(--bad); } .verify-warn { border-top-color: #e0a100; }
.verify-official { text-align: center; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.verify-head { text-align: center; font-size: 2rem; font-weight: 900; letter-spacing: .04em; margin: 6px 0; }
.verify-good .verify-head { color: var(--good); } .verify-bad .verify-head { color: var(--bad); } .verify-warn .verify-head { color: var(--warn); }
.verify-clock { text-align: center; font-family: var(--mono); font-size: .85rem; background: #111; color: #fff; border-radius: 6px; padding: 6px; margin-top: 10px; }
.delivery { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; background: var(--good-bg); color: var(--good); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.delivery .linklike { color: #0b57d0; text-decoration: underline; font-size: inherit; }

/* App mode + scanner */
.scan-video { width: 100%; max-height: 60vh; border-radius: 8px; background: #000; margin-top: 10px; }
.prose h2 { font-size: 1rem; margin: 16px 0 4px; }
body.in-app .site-footer .site-footer-login { display: none; }

/* Front page: who are you? */
.welcome { text-align: center; padding: 8px 0 18px; }
.welcome h1 { font-size: 1.9rem; }
.role-cards { display: grid; gap: 14px; max-width: 520px; margin: 0 auto 28px; }
.role-card { display: block; border: 2px solid var(--yellow); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; text-align: center; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.role-card:hover, .role-card:focus-visible { border-color: var(--yellow-hover); box-shadow: 0 0 0 3px var(--yellow-soft); outline: none; }
.role-top { display: block; background: var(--black); color: #fff; font-size: 1.25rem; font-weight: 600; padding: 14px 16px; }
.role-mid { display: block; font-size: 1.55rem; font-weight: 500; line-height: 1.25; padding: 26px 16px; }
.role-bottom { display: block; background: var(--black); color: #ddd; font-size: .9rem; padding: 12px 16px; min-height: 44px; }
.home-help { max-width: 520px; margin: 0 auto; }
.home-help .card { padding: 14px 18px; }
.home-help h3 { margin-bottom: 2px; }

/* Resident dashboard + settings */
.vehicle { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vehicle-main { min-width: 0; }
.color-input { height: 44px; padding: 4px; width: 80px; }

/* Space-call photos, driver quick actions */
.call-photo { display: block; max-width: 100%; max-height: 360px; border-radius: 8px; border: 1px solid var(--line); margin: 8px auto; }
.call-thumb { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); margin-top: 4px; }
.driver-actions { margin-bottom: 14px; }
.driver-actions .btn { flex: 1 1 140px; }

/* Enforcements page */
.new-ticket { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; width: max-content; margin: 6px auto 16px; }
.new-ticket .plus { width: 76px; height: 76px; border-radius: 18px; background: var(--yellow); color: var(--black); font-size: 3.2rem; font-weight: 900; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 0 var(--yellow-dark); }
.new-ticket .label { font-weight: 700; font-size: 1.15rem; color: var(--black); }
.new-ticket:hover .plus { background: var(--yellow-hover); }
.enf-head { text-align: center; }
.enf-head h1 { margin-bottom: 4px; }
.enf-search { align-items: flex-end; gap: 10px; }
.enf-search .field { margin-bottom: 0; flex: 1 1 220px; min-width: 180px; }
.enf-search .field.size { flex: 0 0 110px; min-width: 110px; }
.enf-search .check { margin: 0 0 10px; flex: 0 0 auto; }
.enf-search .btn { flex: 0 0 auto; }
.enf-table td:first-child a { font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.field.locked .locked-value { background: #f4f4f2; border: 1px dashed #c4c4bf; border-radius: 8px; padding: 10px 12px; color: #333; }
.inline-details summary { list-style: none; display: inline-flex; } .inline-details summary::-webkit-details-marker { display: none; }
.inline-form { display: flex; gap: 6px; margin-top: 6px; } .inline-form input { padding: 6px 8px; }
.duty { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid #999; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.duty.on { border-left-color: var(--good); } .duty .small { color: var(--muted); }
.void-banner { background: var(--bad-bg); color: var(--bad); font-weight: 800; letter-spacing: .04em; text-align: center; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.void-banner a { color: var(--bad); }
.invoice.is-void { opacity: .75; position: relative; }
.invoice.is-void::after { content: "VOID"; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-22deg); font-size: 7rem; font-weight: 900; color: rgba(184,26,18,.18); letter-spacing: .1em; pointer-events: none; }
.void-tools { margin-top: 14px; }
.backup-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.twofa-setup ol { padding-left: 20px; } .twofa-setup .qr-box { flex-wrap: wrap; } .twofa-setup .qr-box svg { width: 160px; height: 160px; }
.totp-key { font-family: var(--mono); font-weight: 700; letter-spacing: .04em; overflow-wrap: anywhere; display: block; margin-top: 4px; }
.codes { font-family: var(--mono); font-size: 1.05rem; letter-spacing: .05em; background: #fff; border: 1px dashed #999; padding: 10px 14px; border-radius: 8px; margin: 8px 0 0; }
.inline-pw { width: 170px; display: inline-block; padding: 6px 10px; margin-right: 6px; }
.twofa-nag { background: var(--warn-bg); color: var(--warn); }

/* Photos on tows and warnings */
.photo-fields input[type=file] { padding: 8px; }
.ticket-photos { margin: 12px 0; }
.ticket-photo-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ticket-photo { width: 150px; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #f4f4f2; }
.prop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.prop-head .warn-btn { flex: none; }
.photo-pick { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.photo-pick .photo-btn { min-height: 48px; }
.photo-pick .photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; left: 0; bottom: 0; pointer-events: none; }
.photo-preview { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
/* Segmented filter (All / Tows / Warnings) */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.seg a { padding: 8px 14px; text-decoration: none; color: var(--black); font-weight: 600; font-size: .9rem; border-right: 1px solid var(--line); }
.seg a:last-child { border-right: 0; }
.seg a.active { background: var(--black); color: #fff; }
.enf-list td { vertical-align: top; }
.photo-multi { display: flex; flex-direction: column; gap: 8px; position: relative; }
.photo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.photo-grid:empty { display: none; }
.photo-cell { position: relative; aspect-ratio: 1; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.photo-x { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: var(--black); color: #fff; font: 700 16px/1 sans-serif; cursor: pointer; }
.photo-multi .photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; left: 0; bottom: 0; pointer-events: none; }
.ticket-photo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ticket-photo { width: 100%; height: 110px; }
/* Rent roll status */
.rentroll-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-weight: 600; border: 1px solid var(--line); background: #fff; }
.rentroll-line.rr-bad, .rr-pill.rr-bad { background: #fdecea; border-color: #e5a6a0; color: #8f1d17; }
.rentroll-line.rr-warn, .rr-pill.rr-warn { background: #fff8e1; border-color: #f1d27a; color: #6b4e00; }
.rentroll-line.rr-good, .rr-pill.rr-good { background: #eaf7ee; border-color: #a9d8b7; color: #1e6b3a; }
.rr-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid var(--line); }
.good-text { color: #1e6b3a; } .warn-text { color: #8f1d17; }
.code-box, .code-card { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; border: 2px dashed var(--yellow); border-radius: 10px; padding: 12px; margin: 12px 0; background: #fffbea; }
.code-card { flex-direction: row; justify-content: space-between; text-align: left; align-items: center; gap: 12px; }
.code-card p { margin: 0; max-width: 380px; }
.header-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { color: var(--yellow); text-decoration: none; font-weight: 700; font-size: .9rem; padding: 6px 4px; }
.addendum-box { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fafaf8; font-size: .92rem; margin-bottom: 10px; }
.addendum-box p, .addendum-page p { margin: 6px 0; } .addendum-box ul, .addendum-page ul { padding-left: 20px; margin: 6px 0; }
.addendum-head { font-weight: 700; margin: 2px 0 !important; }
.addendum-page .addendum-box { max-height: none; }
/* "You are 100% responsible for your plate" */
.plate-warning { background: #3a3a2a; color: #f4f4f2; border-left: 8px solid var(--yellow); border-radius: 10px; padding: 14px 18px; margin: 12px 0 14px; }
.plate-warning-head { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; margin-bottom: 4px; }
.plate-warning p { margin: 0; font-size: .98rem; line-height: 1.4; color: #e8e8e2; }
.two-strikes { background: #b3261e; color: #fff; font-weight: 800; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.one-strike { background: #fff8e1; border: 1px solid #f1d27a; color: #6b4e00; font-weight: 600; padding: 8px 12px; border-radius: 8px; margin: 10px 0; }
.move-card summary { cursor: pointer; list-style: none; } .move-card summary::-webkit-details-marker { display: none; }
.move-card summary::after { content: ' ▾'; color: var(--muted); } .move-card[open] summary::after { content: ' ▴'; }
.undo-card { background: #fff8e1; border: 1px solid #f1d27a; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.undo-card h2 { margin-top: 0; font-size: 1.05rem; }
.resident-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.resident-row:last-child { border-bottom: 0; } .resident-row form { margin: 0; flex: none; } .resident-main { min-width: 0; line-height: 1.45; }
/* Pitch video page (/video) */
.video-page h1 { font-size: 1.5rem; margin: 0 0 14px; }
.video-page .video-wrap { position: relative; margin-bottom: 16px; }
.video-page video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
/* At the top of the picture, so the captions along the bottom stay readable */
.video-page .sound-btn { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap; padding: 0.6em 1.25em; border: 0; border-radius: 999px; background: var(--yellow); color: #111; font: inherit; font-size: clamp(1rem, 3.6vw, 1.25rem); font-weight: 700; line-height: 1.2; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.video-page .sound-btn svg { width: 1.3em; height: 1.3em; flex: none; fill: #111; stroke: #111; stroke-width: 2; stroke-linecap: round; }
.video-page .sound-btn:hover { filter: brightness(1.05); }
.video-page .sound-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.video-page .sound-btn[hidden] { display: none; }
.video-page .checks { list-style: none; padding: 0; margin: 0 0 18px; }
.video-page .checks li { position: relative; padding: 6px 0 6px 28px; line-height: 1.4; }
.video-page .checks li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 12px; height: 12px; border-radius: 3px; background: var(--yellow); }
