/* Paper Trail Ohio. 8px grid, type scale 12/14/15/18/24/32, square-ish corners. */
:root {
  color-scheme: light;
  --paper: #F6F3EA; --ink: #1D1C18; --muted: #5F5B50; --rule: #DAD4C4; --edge: #A9A290; --card: #FFFFFF;
  --accent: #2F5D50; --accent-ink: #FFFFFF; --accent-soft: #E3EEE9;
  --warn: #A8503A; --warn-bg: #FBEDE8; --chip: #EAE5D7; --hit: #FFF1B8; --shadow: 0 8px 30px rgba(20,19,15,.16);
  --t-deed: #2F5D50; --b-deed: #E3EEE9; --t-mtg: #3A5A8C; --b-mtg: #E6ECF6; --t-lien: #A8503A; --b-lien: #FBEDE8;
  --t-lease: #7A5A1E; --b-lease: #F5EDD9; --t-rel: #4F6B3A; --b-rel: #EAF1E1; --t-other: #5F5B50; --b-other: #EEEAE0;
  --tab-h: 64px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); font-size: 15px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--paper); }
body { display: flex; flex-direction: column; overscroll-behavior-y: contain; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; }
.muted { color: var(--muted); font-size: 14px; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* header + tabs */
.top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 6; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand .mark { width: 26px; height: 26px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 14px; }
.brand span { color: var(--accent); }
.tabs { display: flex; gap: 4px; }
.tabs button { display: flex; align-items: center; gap: 6px; border: 0; background: none; min-height: 44px; padding: 0 12px; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--chip); color: var(--ink); }
.acct-btn { margin-left: auto; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--edge); background: var(--card); cursor: pointer; font-weight: 600; white-space: nowrap; }
.acct-btn .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; }

main { flex: 1; position: relative; min-height: 0; overflow: auto; }
.view { max-width: 920px; margin: 0 auto; padding: 16px 16px 32px; }
#view-map { max-width: none; padding: 0; position: absolute; inset: 0; }

/* controls */
input, select { min-height: 44px; border: 1px solid var(--edge); border-radius: 8px; padding: 10px 12px; background: var(--card); }
input::placeholder { color: var(--muted); }
.row1 { display: flex; gap: 8px; flex-wrap: wrap; }
.row1 input { flex: 1 1 220px; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--edge);
       background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pro { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; background: var(--b-lease); color: var(--t-lease); }

/* search form */
.search-card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px; }
.more { margin-top: 8px; }
.more summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 6px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; border: 1px solid var(--edge); background: var(--card); border-radius: 999px; padding: 0 14px; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* results */
.results-head { position: sticky; top: 0; z-index: 2; background: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0 8px; flex-wrap: wrap; }
.results-head .count { font-weight: 700; }
.results-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.list { display: flex; flex-direction: column; gap: 12px; }
.card { text-align: left; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; cursor: pointer; width: 100%; display: block; color: inherit; font: inherit; }
.card:hover { border-color: var(--edge); } .card:active { transform: scale(.995); }
.card .r1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; }
.g-deed { color: var(--t-deed); background: var(--b-deed); } .g-mtg { color: var(--t-mtg); background: var(--b-mtg); }
.g-lien { color: var(--t-lien); background: var(--b-lien); } .g-lease { color: var(--t-lease); background: var(--b-lease); }
.g-rel { color: var(--t-rel); background: var(--b-rel); } .g-other { color: var(--t-other); background: var(--b-other); }
.who { font-weight: 600; font-size: 15px; line-height: 1.35; }
.who .arrow { color: var(--muted); font-weight: 400; margin: 0 4px; }
.who .more-n { color: var(--muted); font-weight: 500; font-size: 13px; }
mark { background: var(--hit); color: inherit; border-radius: 3px; padding: 0 1px; }
.card .r3 { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.skel { height: 96px; border-radius: 12px; background: linear-gradient(90deg, var(--chip) 0%, var(--card) 50%, var(--chip) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* empty state */
.hero { padding: 28px 4px 8px; }
.hero h1 { font-size: clamp(26px, 6vw, 36px); letter-spacing: -.02em; line-height: 1.12; margin: 0 0 10px; }
.hero p { margin: 0 0 16px; max-width: 620px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.stat { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.try { display: flex; flex-wrap: wrap; gap: 8px; }

/* map */
.map-search { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; max-width: 520px; }
.map-search form { display: flex; gap: 8px; }
.map-search input { flex: 1; box-shadow: var(--shadow); }
.map-results { margin-top: 6px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); max-height: 50vh; overflow: auto; }
.map-results button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--rule); background: none; padding: 10px 14px; min-height: 48px; cursor: pointer; }
#map { position: absolute; inset: 0; }
.map-tools { position: absolute; z-index: 3; right: 12px; top: 72px; display: flex; flex-direction: column; gap: 8px; }
.map-tools .btn { width: 44px; padding: 0; box-shadow: var(--shadow); }
.layers { position: absolute; z-index: 4; right: 64px; top: 72px; width: 260px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; }
.layers h4 { margin: 4px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.layers label { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.layers .swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.seg button { min-height: 40px; border: 0; background: var(--card); cursor: pointer; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.legend { position: absolute; z-index: 2; left: 12px; bottom: 28px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 8px 10px; font-size: 13px; box-shadow: var(--shadow); }
.legend div { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.maplibregl-ctrl-group button { width: 40px !important; height: 40px !important; }

/* sheet */
.backdrop { position: fixed; inset: 0; z-index: 19; background: rgba(20,19,15,.45); opacity: 0; transition: opacity .2s; }
.backdrop.on { opacity: 1; }
.sheet { position: fixed; z-index: 20; right: 0; top: 0; bottom: 0; width: min(560px, 100%); background: var(--card); overflow: auto; overscroll-behavior: contain;
         padding: 0 20px 32px; box-shadow: var(--shadow); transform: translateX(0); transition: transform .25s cubic-bezier(.2,.8,.2,1); outline: none; }
.sheet.closing { transform: translateX(105%); }
.sheet-bar { position: sticky; top: 0; background: var(--card); display: flex; justify-content: space-between; align-items: center; padding: 8px 0; z-index: 1; touch-action: none; }
.grip { display: none; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--chip); }
.sheet h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; }
.sheet h3 { margin: 24px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.fact { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.fact span { display: block; font-size: 13px; color: var(--muted); } .fact b { font-size: 17px; font-variant-numeric: tabular-nums; }
.fact.wide { grid-column: 1 / -1; }
.banner { display: flex; gap: 10px; background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.timeline { position: relative; margin-left: 6px; padding-left: 18px; border-left: 2px solid var(--rule); }
.tl { position: relative; padding: 4px 0 14px; }
.tl::before { content: ""; position: absolute; left: -25px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--card); }
.tl .t1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.tl.clickable { cursor: pointer; } .tl.clickable:hover .t1 { color: var(--accent); }
.pages img { width: 100%; display: block; border: 1px solid var(--rule); border-radius: 6px; margin: 8px 0; background: #fff; }
.progress { height: 6px; background: var(--chip); border-radius: 3px; overflow: hidden; margin: 10px 0; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 18px 4px; }
.spin { width: 18px; height: 18px; border: 2px solid var(--rule); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.minimap { height: 180px; border-radius: 10px; border: 1px solid var(--rule); overflow: hidden; margin: 12px 0; }
.inline-signin { background: var(--accent-soft); border-radius: 10px; padding: 12px; margin: 10px 0; }

/* account */
.saved { display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule); background: var(--card); border-radius: 12px; padding: 6px 6px 6px 14px; }
.saved .what { flex: 1; min-width: 0; cursor: pointer; padding: 6px 0; }
.saved .what b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; min-height: 44px; }
#view-account h3, #view-historic h3 { margin: 24px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

.toast { position: fixed; bottom: calc(var(--tab-h) + 16px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; z-index: 40; max-width: 90vw; }
.note { font-size: 13px; color: var(--muted); padding: 16px; max-width: 920px; margin: 0 auto; }
body.on-map .note { display: none; }

@media (min-width: 701px) { .toast { bottom: 24px; } }
@media (max-width: 700px) {
  .top { padding: 8px 12px; }
  .tabs { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
          background: var(--card); border-top: 1px solid var(--rule); gap: 0; }
  .tabs button { flex: 1; flex-direction: column; justify-content: center; gap: 2px; font-size: 12px; border-radius: 0; min-height: var(--tab-h); }
  .tabs button[aria-selected="true"] { background: none; color: var(--accent); }
  .tabs .ico { width: 22px; height: 22px; }
  main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  #view-map { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .acct-btn .lbl { display: none; } .acct-btn { padding: 0 8px; }
  .sheet { top: auto; left: 0; width: 100%; height: 88%; border-radius: 16px 16px 0 0; transform: translateY(0); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .sheet.peek { height: 42%; }
  .sheet.closing { transform: translateY(105%); }
  .grip { display: block; width: 44px; height: 5px; background: var(--edge); border-radius: 3px; }
  .sheet-bar { justify-content: space-between; padding-top: 10px; cursor: grab; }
  .stats b { font-size: 20px; }
  .layers { right: 12px; left: 12px; width: auto; top: 128px; }
  .map-tools { top: 128px; }
}
@media (prefers-reduced-motion: reduce) { *, .sheet { transition: none !important; animation-duration: 2.4s !important; } }
@media print {
  .top, .note, .tabs, .view, .btns, .sheet-bar, .toast, .backdrop { display: none !important; }
  main { overflow: visible; } .sheet { position: static; width: 100%; height: auto; box-shadow: none; transform: none; }
}

.layers { max-height: calc(100% - 140px); overflow: auto; }
.hz { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rule); }
.hz:first-child { border-top: 0; }
.hz .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.hz.high .dot { background: var(--warn); } .hz.warn .dot { background: #D08A2E; } .hz.info .dot { background: var(--t-mtg); }
.hz.ok .dot { background: var(--accent); } .hz.unk .dot { background: var(--edge); }
.hz b { display: block; } .hz .src { font-size: 12px; color: var(--muted); }
.hz-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 4px 14px; }

.chooser { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 12px; }
.chooser .muted { margin-right: 4px; }
.chooser .chip { min-height: 40px; font-size: 13px; padding: 0 12px; }
.chooser .chip[aria-pressed="true"]::before { content: "✓ "; }
[data-sec][hidden] { display: none !important; }

.here-bar { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 16px; max-width: 520px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; }
.here-card { display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer; padding: 0; }
.here-card b { display: block; font-size: 17px; }
#m-follow[aria-pressed="true"] { background: #1A73E8; color: #fff; border-color: #1A73E8; }
.pin-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.pin-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
body.on-map .legend { bottom: 90px; }

/* UX pass 2 */
body.here-on .maplibregl-ctrl-bottom-right, body.here-on .maplibregl-ctrl-bottom-left { bottom: calc(var(--here-h, 64px) + 24px); }
body.here-on .legend { bottom: calc(var(--here-h, 64px) + 40px); }
.crosshair { position: absolute; z-index: 2; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none;
  background: linear-gradient(var(--ink), var(--ink)) center/2px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) center/100% 2px no-repeat; opacity: .55; }
.chooser.oneline { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chooser.oneline::-webkit-scrollbar { display: none; }
.cardopts { margin: 0 0 8px; }
.cardopts summary, .customize summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; list-style: none; color: var(--accent); font-weight: 600; font-size: 14px; }
.cardopts summary::-webkit-details-marker, .customize summary::-webkit-details-marker, .more-menu summary::-webkit-details-marker { display: none; }
.more-menu { position: relative; }
.btns.fact.wide { position: relative; }
.more-menu summary { list-style: none; }
.more-menu .menu { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow);
  padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.more-menu .menu .btn { justify-content: flex-start; border: 0; }
@media (max-width: 700px) {
  .layers { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: calc(100% - 140px); overflow: auto; }
  .more-menu { position: static; }
  .more-menu .menu { left: 0; right: 0; min-width: 0; }
}

@media (max-width: 700px) {
  .results-head { flex-wrap: wrap; row-gap: 6px; }
  .results-head .count { width: 100%; }
  .results-head .actions { flex-wrap: nowrap; width: 100%; }
  #r-follow { flex: 1; }
  #r-save .lbl, #r-csv .lbl { display: none; }
  #r-save, #r-csv, #r-share { width: 44px; padding: 0; }
  #r-follow .lbl, #r-follow span { font-size: 14px; }
  .search-card { padding: 10px; }
}

.chooser .chip { white-space: nowrap; flex: none; }
.chooser .chip .muted { font-size: 12px; margin-left: 4px; color: inherit; opacity: .75; }

/* sign in */
.auth-card { max-width: 420px; margin: 8px auto 0; padding: 18px; }
.auth-card label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
.auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=text] { width: 100%; min-height: 48px; font-size: 16px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 8px; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth-tabs button.on { background: var(--accent); color: var(--accent-ink); }
.google-btn { width: 100%; justify-content: center; gap: 10px; min-height: 48px; background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 600; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0 2px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.pass-row { position: relative; }
.pass-row input { padding-right: 64px; }
.pass-row .link-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.link-btn { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; padding: 0 6px; }
.btn.wide { width: 100%; justify-content: center; margin-top: 16px; min-height: 48px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; margin-top: 6px; font-size: 14px; }
.auth-links [hidden] { display: none; }
.auth-msg { min-height: 1.2em; margin: 8px 0 0; font-size: 14px; color: var(--ink); }
.auth-msg.bad { color: #A8503A; }
.small { font-size: 13px; margin: 4px 0 0; }

.terms-box { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; margin-top: 12px; }
.terms-box p { margin: 6px 0; }
.terms-box summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.terms-text { font-size: 13px; color: var(--muted); max-height: 220px; overflow: auto; border-top: 1px solid var(--rule); padding-top: 8px; }

.gsi-btn { display: flex; justify-content: center; min-height: 44px; }
.gsi-btn[hidden] { display: none; }
.google-btn[hidden] { display: none; }

.plan-box { margin: 12px 0 18px; }
.price-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; }
.price-head h3 { margin: 0; font-size: 22px; }
.bill-toggle { display: inline-flex; background: var(--chip); border-radius: 999px; padding: 4px; }
.bill-toggle button { border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer; }
.bill-toggle button.on { background: var(--card); box-shadow: 0 1px 4px rgba(20,19,15,.18); font-weight: 600; }
.bill-toggle em { font-style: normal; font-size: 12px; color: var(--accent); font-weight: 600; margin-left: 4px; }
.plan-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); align-items: stretch; margin: 0 0 14px; }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 18px 16px; }
.plan-card.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-flag { position: absolute; top: -12px; left: 18px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; }
.plan-card h4 { margin: 0; font-size: 18px; }
.plan-for { margin: 2px 0 12px; color: var(--muted); font-size: 14px; min-height: 2.6em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price b { font-size: 36px; line-height: 1; letter-spacing: -.02em; }
.plan-price span { font-size: 14px; color: var(--muted); }
.plan-save { margin: 6px 0 14px; font-size: 13px; color: var(--accent); font-weight: 600; min-height: 1.4em; }
.plan-list { list-style: none; padding: 14px 0 0; margin: 0 0 16px; border-top: 1px solid var(--rule); display: grid; gap: 9px; font-size: 14px; }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-list svg { flex: none; margin-top: 2px; color: var(--accent); }
.plan-list li.no { color: var(--muted); }
.plan-list li.no svg { color: var(--edge); }
.plan-foot { margin-top: auto; }
.plan-foot .btn.wide { margin-top: 0; min-height: 50px; font-size: 16px; font-weight: 600; }
.plan-fine { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.plan-err { margin: 6px 0 0; font-size: 13px; color: var(--warn); }
.plan-err:empty { display: none; }
.seats { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.seats .step { width: 40px; height: 40px; border: 1px solid var(--edge); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 18px; cursor: pointer; }
.seats output { min-width: 2ch; text-align: center; font-weight: 700; }
.seat-total { margin-left: auto; color: var(--muted); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.trust li::before { content: "\2713  "; color: var(--accent); font-weight: 700; }
.plan-faq { border-top: 1px solid var(--rule); padding: 4px 0; }
.plan-faq summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.plan-faq p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.team-list { list-style: none; padding: 0; margin: 8px 0; }
.team-list li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--rule); min-height: 44px; }


.mail-pop { border: 0; border-radius: 16px; padding: 24px 22px 18px; width: min(400px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: var(--shadow); text-align: center; }
.mail-pop::backdrop { background: rgba(20, 19, 15, .55); }
.mail-pop h2 { margin: 8px 0 6px; }
.mail-pop p { margin: 8px 0; }
.mail-pop .btn.wide { margin-top: 10px; }
.mail-icon { color: var(--accent); }
.mail-row { display: flex; justify-content: space-between; margin-top: 8px; }
@media (max-width: 760px) { .plan-card.best { order: -1; } }

/* ---------- homepage (light only) ---------- */
.plans-link { margin-left: auto; font-weight: 600; color: var(--ink); text-decoration: none; min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; }
.plans-link:hover { background: var(--chip); }
.plans-link + .acct-btn { margin-left: 0; }
body.has-search .home-only { display: none; }
.home-hero { padding: 28px 0 18px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.home-hero h1 { font-size: clamp(30px, 6.4vw, 48px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; max-width: 760px; }
.lede { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.5; color: var(--muted); margin: 0; max-width: 640px; }
body:not(.has-search) #rec-form { box-shadow: 0 10px 34px rgba(29,28,24,.10); border-color: var(--edge); padding: 14px; }
body:not(.has-search) #rec-form #r-q { font-size: 17px; min-height: 52px; }
body:not(.has-search) #rec-form .btn.primary { min-height: 52px; padding: 0 22px; }
.home .try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 6px; }
.chip-btn { border: 1px solid var(--rule); background: var(--card); color: var(--ink); border-radius: 999px; min-height: 40px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.home .stats { margin: 22px 0 8px; }
.home .stat { background: transparent; border: 0; border-left: 3px solid var(--accent); border-radius: 0; padding: 4px 0 4px 14px; }
.home .stat b { font-size: clamp(22px, 4vw, 30px); }
.home-sec { margin: 56px 0 0; }
.home-sec > h2, .cta-band h2 { font-size: clamp(22px, 4vw, 30px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 16px; }
.sec-sub { margin: -6px 0 18px; max-width: 640px; }
.feat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.feat { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; }
.feat h3 { margin: 16px 0 6px; font-size: 17px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.mock { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 10px 8px; display: grid; gap: 6px; min-height: 150px; align-content: start; }
.mock-tag { position: absolute; top: -9px; right: 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--card); border: 1px solid var(--rule); color: var(--muted); padding: 1px 7px; border-radius: 999px; }
.mrow { display: flex; align-items: center; gap: 8px; font-size: 13px; background: var(--card); border-radius: 7px; padding: 7px 8px; min-width: 0; }
.mrow { flex-wrap: wrap; }
.mrow b { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.pill { flex: none; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.p-deed { background: var(--b-deed); color: var(--t-deed); } .p-mtg { background: var(--b-mtg); color: var(--t-mtg); } .p-lien { background: var(--b-lien); color: var(--t-lien); }
.p-lease { background: var(--b-lease); color: var(--t-lease); } .p-rel { background: var(--b-rel); color: var(--t-rel); }
.mrow .flag, .mrow .ok { margin-left: auto; flex: none; font-style: normal; font-size: 11px; font-weight: 700; }
.mrow .flag { color: var(--warn); } .mrow .ok { color: var(--t-rel); }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.d-mine { background: #C8735C; } .d-slip { background: #A8503A; } .d-flood { background: #3A5A8C; }
.who-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.who { border-top: 2px solid var(--ink); padding-top: 10px; display: grid; gap: 4px; }
.who span { color: var(--muted); font-size: 14px; line-height: 1.45; }
#home-plans { margin-top: 18px; }
.cta-band { margin: 56px 0 8px; background: var(--accent-soft); border-radius: 16px; padding: 28px 20px; text-align: center; }
.cta-band p { margin: 0 auto 18px; max-width: 520px; color: var(--muted); }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-row .btn { min-height: 50px; padding: 0 22px; }
@media (max-width: 700px) {
  .home-hero { padding: 16px 0 14px; }
  .plans-link { padding: 0 8px; }
  .home .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .home .stat { padding-left: 10px; }
  .home .stat span { font-size: 12px; }
  .home-sec { margin-top: 44px; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- checkout on our own page ---------- */
.pay-pop { border: 0; padding: 0; width: min(980px, 100vw); max-width: 100vw; height: min(760px, 100dvh); max-height: 100dvh; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.pay-pop::backdrop { background: rgba(20, 19, 15, .55); }
.pay-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 2; }
.pay-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; min-height: calc(100% - 60px); }
.pay-sum { padding: 22px 20px; border-right: 1px solid var(--rule); }
.pay-sum h2 { margin: 4px 0 4px; font-size: 26px; letter-spacing: -.02em; }
.pay-price { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.pay-form { padding: 16px; background: #fff; }
@media (max-width: 760px) { .pay-pop { border-radius: 0; height: 100dvh; } .pay-grid { grid-template-columns: 1fr; } .pay-sum { border-right: 0; border-bottom: 1px solid var(--rule); padding: 16px; } }

/* ---------- membership and invoices ---------- */
.bill-box { margin: 16px 0; }
.bill-card { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; }
.bill-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.bill-row h4 { margin: 0; font-size: 18px; }
.bill-when { margin: 0; font-weight: 700; }
.bill-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bill-h { margin: 18px 0 8px; }
.inv-list { list-style: none; padding: 0; margin: 0; }
.inv-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); padding: 10px 0; }
.inv-r { display: flex; align-items: center; gap: 10px; flex: none; }
.ask-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.bad { color: var(--warn); }

/* ---------- account page: a compact dashboard ---------- */
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 14px; }
.acct-head h2 { margin: 0; }
.acct-head p { margin: 2px 0 0; }
.acct-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .acct-grid { grid-template-columns: 1.15fr 1fr; } .acct-grid .plan-box.wide { grid-column: 1 / -1; } }
.acct-card { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; margin: 0; }
.acct-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
#view-account .acct-card h3 { margin: 0; }
.incl-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); font-size: 14px; }
.incl-list li::before { content: "\2713  "; color: var(--accent); font-weight: 800; }
.plan-box .bill-box { margin: 8px 0 0; }
.plan-box .bill-card { border: 0; padding: 0; border-top: 1px solid var(--rule); padding-top: 12px; border-radius: 0; }
.plan-box .bill-h { margin: 16px 0 4px; }
.plan-box .auth-msg:empty { display: none; }
.acct-card .switch { margin: 0 0 8px; }
.acct-card #my-pins { margin-top: 10px; }
.empty-note { background: var(--paper); border-radius: 10px; padding: 12px; }
.empty-note p { margin: 4px 0 10px; }
.acct-grid > * { min-width: 0; }
.incl-list { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.inv-list li > span:first-child { min-width: 0; }
.acct-card .switch { white-space: normal; align-items: flex-start; line-height: 1.4; }
.acct-card .switch input { margin-top: 2px; flex: none; }

/* alerts by type, watch my name (2026-10-21) */
.freq { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; font-size: 14px; }
.freq select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); font: inherit; max-width: 100%; }
.myname { border: 1px dashed var(--rule); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: var(--card); }
.myname p { margin: 4px 0 8px; } .myname .row1 { display: flex; gap: 8px; flex-wrap: wrap; } .myname input { flex: 1 1 200px; min-width: 0; min-height: 44px; }
.saved-wrap { display: grid; gap: 4px; }
.alert-what { margin: 0 6px 4px 14px; font-size: 13px; } .alert-what summary { cursor: pointer; color: var(--muted, #6B675C); padding: 6px 0; min-height: 32px; }
.aw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 2px 12px; padding: 4px 0 8px; }
.aw-grid label { display: flex; gap: 8px; align-items: center; min-height: 36px; } .aw-grid .aw-ev { grid-column: 1 / -1; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* what this owner holds (2026-10-21) */
.hold-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; }
.hold-h { margin: 16px 0 4px; font-size: 15px; }

/* notes, tags, team list (2026-10-21) */
.item-notes { margin: 0 6px 6px 14px; font-size: 13px; } .item-notes summary { cursor: pointer; color: var(--muted, #6B675C); padding: 6px 0; min-height: 32px; }
.item-notes textarea, .item-notes input:not([type=checkbox]) { width: 100%; box-sizing: border-box; margin: 4px 0; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; font: inherit; background: var(--card); }
.item-notes input:not([type=checkbox]) { min-height: 40px; } .item-notes .row1 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--b-other, #EEEAE0); color: var(--ink); margin-left: 2px; }
.tag.shared { background: var(--b-rel, #E3EFE7); }
.tag-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.saved.team .what span.small { display: block; white-space: normal; }
.acct-card .saved .switch, .acct-card .item-notes .switch { align-items: center; margin: 0; }
.acct-card .saved .switch input, .acct-card .item-notes .switch input { margin-top: 0; }

/* sale calendar (2026-10-21) */
.sale-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px; margin: 12px 0; }
.sale-day { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.sale-day.next { border-color: var(--accent, #2F5D50); box-shadow: inset 3px 0 0 var(--accent, #2F5D50); }

/* audit 2026-10-21 */
.paywall { border: 1px solid var(--rule); background: var(--card); border-radius: 12px; padding: 14px 16px; }
.paywall p { margin: 6px 0 10px; } .pw-acts { display: flex; flex-wrap: wrap; gap: 8px; } .pw-acts .btn { flex: 1 1 200px; }
@media (min-width: 701px) and (max-width: 820px) { .acct-btn .lbl { display: none; } .acct-btn { padding: 0 8px; } }
.legend div[hidden] { display: none; }

.alert-limit { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; }

.site-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; max-width: 960px; margin: 0 auto; padding: 18px 16px 28px; font-size: 13px; }
#my-pins[hidden], #my-pins-out[hidden] { display: none !important; }
.h-row .h-text { font-size: 13px; white-space: normal; overflow-wrap: anywhere; margin-top: 4px; }
.plans-link + .plans-link { margin-left: 0; }
#store-link .sm { display: none; }
@media (max-width: 900px) { #store-link .lg { display: none; } #store-link .sm { display: inline; } .plans-link { padding: 0 8px; } }
@media (max-width: 820px) { .plans-link { padding: 0 6px; } }
@media (max-width: 480px) { #plans-link { display: none; } }
/* weather bar (weather.js) */
.wx { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; font-size: 12.5px; color: var(--muted); background: var(--chip, #EFEBE1); border-bottom: 1px solid var(--rule); padding: 4px 16px; min-height: 28px; box-sizing: border-box; }
.wx b { color: var(--ink); } .wx-place { font-weight: 600; color: var(--ink); }
.wx-loc { margin-left: auto; background: none; border: 0; padding: 0 0 0 8px; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; min-height: 28px; }
.wx-short { display: none; }
@media (max-width: 560px) { .wx { gap: 10px; padding: 4px 12px; } .wx-long { display: none; } .wx-short { display: inline; } }
@media (max-width: 380px) { .wx-hl { display: none; } }
@media print { .wx { display: none; } }
.wx-loc { min-height: 40px; margin-block: -6px; }

/* feedback polish (design-brain 6b) */
@media (hover: hover) { .btn:hover { background: var(--chip); border-color: var(--accent); } .btn.primary:hover { filter: brightness(1.08); } }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn.did { background: var(--b-rel, #E3EFE7); color: var(--t-rel, #2F5D50); border-color: var(--t-rel, #2F5D50); }
input.ok { border-color: #2F7D4F !important; background-image: linear-gradient(transparent, transparent); box-shadow: inset -28px 0 0 -26px #2F7D4F; }
input.bad { border-color: var(--warn) !important; }
.field-msg { color: var(--warn); font-size: 13px; margin: 4px 0 8px; }
.copied-tip { position: absolute; transform: translate(-50%, -100%); background: var(--ink); color: var(--card); font-size: 12px; padding: 4px 8px; border-radius: 6px; pointer-events: none; z-index: 60; }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }
