/* Tandem Agent: "Lumen Soft". Warm paper, frosted glass, a slow brass and lavender glow,
   friendly type. Light by default, warm dark when the phone is in dark mode. */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap");

:root {
  --bg: #f6f1e8;
  --glow-1: #f0bf74; --glow-2: #cfbfff; --glow-3: #ffc6b0; --glow-op: .85;
  --ink: #17140f; --ink-2: rgba(23, 20, 15, .6); --ink-3: rgba(23, 20, 15, .38);
  --glass: rgba(255, 253, 249, .74); --glass-strong: rgba(255, 253, 249, .88);
  --stroke: rgba(23, 20, 15, .08); --hairline: rgba(23, 20, 15, .08);
  --field: rgba(255, 253, 249, .8); --in-bubble: rgba(23, 20, 15, .05);
  --accent: #17140f; --on-accent: #fffaf0;
  --brass: #b8792a; --lavender: #8a6cf0;
  --chip: rgba(23, 20, 15, .06); --chip-ink: #4d463c;
  --red: #a3401b; --red-bg: #fde4d8;
  --amber: #8a5a12; --amber-bg: #f8e8c9;
  --green: #23855a; --green-dot: #2fa36b; --green-bg: rgba(47, 163, 107, .12);
  --shadow: 0 1px 1px rgba(23, 20, 15, .03), 0 16px 32px -20px rgba(23, 20, 15, .28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13100c;
    --glow-1: #7a5422; --glow-2: #3d3266; --glow-3: #5a3428; --glow-op: .55;
    --ink: #f4ede2; --ink-2: rgba(244, 237, 226, .62); --ink-3: rgba(244, 237, 226, .38);
    --glass: rgba(34, 29, 23, .66); --glass-strong: rgba(38, 33, 26, .88);
    --stroke: rgba(255, 240, 220, .09); --hairline: rgba(255, 240, 220, .09);
    --field: rgba(255, 245, 230, .06); --in-bubble: rgba(255, 245, 230, .07);
    --accent: #f4ede2; --on-accent: #17140f;
    --brass: #e3ae64; --lavender: #b4a2ff;
    --chip: rgba(255, 245, 230, .08); --chip-ink: #d9cfc0;
    --red: #ffab90; --red-bg: rgba(255, 120, 90, .14);
    --amber: #f2c47c; --amber-bg: rgba(242, 196, 124, .13);
    --green: #6fd9a3; --green-dot: #4fc98a; --green-bg: rgba(79, 201, 138, .13);
    --shadow: 0 1px 0 rgba(255, 245, 230, .04) inset, 0 18px 40px -20px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --bg: #13100c;
  --glow-1: #7a5422; --glow-2: #3d3266; --glow-3: #5a3428; --glow-op: .55;
  --ink: #f4ede2; --ink-2: rgba(244, 237, 226, .62); --ink-3: rgba(244, 237, 226, .38);
  --glass: rgba(34, 29, 23, .66); --glass-strong: rgba(38, 33, 26, .88);
  --stroke: rgba(255, 240, 220, .09); --hairline: rgba(255, 240, 220, .09);
  --field: rgba(255, 245, 230, .06); --in-bubble: rgba(255, 245, 230, .07);
  --accent: #f4ede2; --on-accent: #17140f;
  --brass: #e3ae64; --lavender: #b4a2ff;
  --chip: rgba(255, 245, 230, .08); --chip-ink: #d9cfc0;
  --red: #ffab90; --red-bg: rgba(255, 120, 90, .14);
  --amber: #f2c47c; --amber-bg: rgba(242, 196, 124, .13);
  --green: #6fd9a3; --green-dot: #4fc98a; --green-bg: rgba(79, 201, 138, .13);
  --shadow: 0 1px 0 rgba(255, 245, 230, .04) inset, 0 18px 40px -20px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); background: var(--bg);
  font: 16px/1.45 "Inter Tight", -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* The slow-moving glow behind everything. */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: var(--glow-op);
}
body::before {
  width: 80vmax; height: 60vmax; right: -25vmax; top: -22vmax;
  background: radial-gradient(closest-side, var(--glow-1), transparent);
  animation: drift-a 16s ease-in-out infinite alternate;
}
body::after {
  width: 65vmax; height: 50vmax; left: -25vmax; top: 30vh;
  background: radial-gradient(closest-side, var(--glow-2), transparent 70%), radial-gradient(closest-side, var(--glow-3), transparent);
  animation: drift-b 20s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-8vmax, 6vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(10vmax, -5vmax) scale(1.12); } }

.wrap {
  max-width: 520px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) 16px calc(env(safe-area-inset-bottom) + 116px);
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.pill { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--amber-bg); color: var(--amber); }
.live {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  padding: 5px 11px 5px 9px; border-radius: 99px; background: var(--glass); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap;
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.live.on i { background: var(--green-dot); animation: breathe 2.4s ease-in-out infinite; }
.live.warn i { background: var(--brass); }
@keyframes breathe { 50% { transform: scale(.7); opacity: .6; } }

h1 { font: 700 40px/1.02 "Inter Tight", sans-serif; letter-spacing: -.03em; margin: 22px 0 6px; text-wrap: balance; }
h1 em {
  font-style: normal; padding-right: .04em;
  background: linear-gradient(100deg, var(--brass), var(--lavender)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { font-size: 15px; color: var(--ink-2); margin: 0 0 22px; }
h2 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 28px 4px 10px; }

.glass {
  background: var(--glass); border: 1px solid var(--stroke); border-radius: 22px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
}
.card { padding: 16px; margin-bottom: 12px; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.meta .ch {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 99px;
  background: var(--chip); color: var(--chip-ink); font-weight: 600; font-size: 12px;
}
.meta .ch svg { width: 13px; height: 13px; }
.meta .t { margin-left: auto; }
.name { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 10px 0 2px; overflow-wrap: anywhere; }
.asked { color: var(--ink-2); font-size: 14.5px; margin: 0 0 12px; }
.tag { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 16px; margin-bottom: 10px; }
.card > .tag { display: inline-flex; border-radius: 99px; margin-right: 6px; }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.amber { background: var(--amber-bg); color: var(--amber); }
.tag.green { background: var(--green-bg); color: var(--green); }
.note { font-size: 14px; color: var(--ink-2); margin: 2px 2px 12px; }
.bubble { background: var(--in-bubble); border-radius: 18px 18px 18px 6px; padding: 10px 14px; margin: 0 28px 12px 0; font-size: 14.5px; overflow-wrap: anywhere; }
.to { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin: 4px 2px 6px; overflow-wrap: anywhere; }
.to b { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 600; white-space: nowrap; }
.to b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-dot); }
textarea {
  display: block; width: 100%; resize: none; overflow: hidden; color: var(--ink); background: var(--field);
  border: 1px solid var(--hairline); border-radius: 16px; padding: 12px 13px; font: inherit; font-size: 15px; line-height: 1.5;
}
textarea:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.actions { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px;
  border-radius: 99px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  color: var(--ink); background: var(--field); border: 1px solid var(--hairline); transition: transform .12s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; }
.btn.primary { flex: 2.2; background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.quiet { flex: none; background: transparent; border-color: transparent; color: var(--ink-2); font-weight: 500; }
.btn.danger { color: var(--red); }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--hairline); }
.row:first-child { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .small { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.row button { background: none; border: 0; color: var(--brass); font: inherit; font-weight: 600; min-height: 44px; padding: 0 4px; cursor: pointer; }
.ok { color: var(--green); font-weight: 600; }
.off { color: var(--ink-3); font-weight: 600; }
.empty { padding: 44px 24px; text-align: center; color: var(--ink-2); }
.empty b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -.02em; margin-bottom: 4px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { padding: 16px 18px; }
.stat .num { font: 700 40px/1 "Inter Tight", sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .label { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.bars { padding: 16px 18px; }
.bar { display: grid; grid-template-columns: 84px 1fr 28px; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.bar .track { height: 8px; border-radius: 99px; background: var(--in-bubble); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brass), var(--lavender)); width: 0; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.bar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px; }
.chip { font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 99px; background: var(--chip); color: var(--chip-ink); }
.panel { padding: 18px; }
.panel p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.saved { font-size: 14px; color: var(--green); font-weight: 600; margin-left: 4px; }

nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 14px);
  display: flex; gap: 4px; padding: 6px; border-radius: 24px; background: var(--glass-strong); z-index: 5;
  border: 1px solid var(--stroke); box-shadow: 0 10px 30px -14px rgba(23, 20, 15, .35);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
}
nav button {
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 72px; min-height: 52px; padding: 6px 10px;
  border: 0; border-radius: 18px; background: none; color: var(--ink-2); font: 600 11.5px/1 "Inter Tight", sans-serif; cursor: pointer;
}
nav button svg { width: 21px; height: 21px; }
nav button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }

/* Sign-up */
.steps { display: flex; gap: 6px; margin: 14px 0 0; }
.steps span { height: 4px; flex: 1; border-radius: 99px; background: var(--in-bubble); transition: background .3s; }
.steps span.on { background: var(--brass); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin: 0 2px 6px; }
.field small { display: block; font-size: 13px; color: var(--ink-2); margin: -2px 2px 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="time"] {
  display: block; width: 100%; min-height: 48px; color: var(--ink); background: var(--field);
  border: 1px solid var(--hairline); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px;
}
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.error { color: var(--red); font-size: 14px; font-weight: 600; margin: 10px 2px 0; }
.fine { margin: 0; padding-left: 20px; color: var(--ink-2); }
.fine li { margin-bottom: 8px; }
.counter { font-size: 13px; color: var(--ink-2); margin: 8px 2px 0; }

/* Profile and settings */
.profile-card { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.profile-card .grow { flex: 1; min-width: 0; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brass), var(--lavender)); color: #fff; font-size: 22px; font-weight: 700; }
.profile-card .title { font-size: 18px; font-weight: 700; }
.profile-card .small { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.list .row.link, .profile-card.link { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.profile-card.link { background: var(--glass); border: 1px solid var(--stroke); }
.list .row.link { border-top: 1px solid var(--hairline); border-radius: 0; }
.list .row.link:first-child { border-top: 0; }
.row .value { color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.chev { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.back { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; color: var(--brass);
  font: inherit; font-weight: 600; padding: 8px 0; margin: 8px 0 -14px -4px; cursor: pointer; min-height: 44px; }
.back .chev { transform: rotate(180deg); color: var(--brass); }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--in-bubble); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + span { background: var(--green-dot); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.seg { display: flex; padding: 3px; gap: 3px; border-radius: 99px; background: var(--in-bubble); }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 99px; background: none; color: var(--ink-2);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--glass-strong); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }


/* Deals */
.deal-row { margin-bottom: 12px; }
.dot-red { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.row.line { align-items: flex-start; }
.row .val { font-weight: 600; margin: 1px 0 3px; overflow-wrap: anywhere; }
.src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.badge { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.check { background: var(--amber-bg); color: var(--amber); }
.tick { position: relative; width: 26px; height: 26px; flex: none; margin-top: 2px; }
.tick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.tick span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ink-3); transition: background .15s, border-color .15s; }
.tick input:checked + span { background: var(--green-dot); border-color: var(--green-dot); }
.tick input:checked + span::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tick input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.flag { display: block; border-radius: 18px; padding: 12px 14px; }
.flag b { display: block; margin-bottom: 3px; }
.flag-details { font-weight: 500; font-size: 13px; line-height: 1.45; opacity: .9; }
.doc-link { color: inherit; text-decoration: none; min-width: 0; }
.doc-link .title { color: var(--ink); }
.src a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 2px; }

/* Document viewer */
.viewer { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--bg); }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
  background: var(--glass-strong); border-bottom: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.viewer-bar .grow { flex: 1; min-width: 0; }
.viewer-bar .title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-bar .small { font-size: 13px; color: var(--ink-2); }
.viewer-pages { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 16px 12px calc(env(safe-area-inset-bottom) + 24px);
  display: flex; flex-direction: column; align-items: center; gap: 16px; }
.viewer-page { position: relative; background: #fff; border-radius: 6px; box-shadow: var(--shadow); flex: none; scroll-margin-top: 16px; }
.viewer-page canvas { display: block; border-radius: 6px; }
.viewer-num { position: absolute; right: 8px; bottom: 8px; font-size: 11px; font-weight: 600; color: #6b6458;
  background: rgba(255,255,255,.85); padding: 2px 7px; border-radius: 99px; }
.viewer-mark { position: absolute; border-radius: 4px; background: rgba(240, 191, 116, .45); box-shadow: 0 0 0 2px rgba(184, 121, 42, .6);
  mix-blend-mode: multiply; pointer-events: none; animation: mark-in .6s ease both; }
@keyframes mark-in { from { opacity: 0; transform: scale(1.06); } }

/* Taking photos of pages */
.scan { margin-top: 12px; }
.scan-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.scan-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--in-bubble); border: 1px solid var(--hairline); }
.scan-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-thumb span { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(23, 20, 15, .65); padding: 1px 7px; border-radius: 99px; }
.scan-thumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(23, 20, 15, .65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

/* Property search */
.lbl { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 10px 2px 4px; }
.mini-list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.mini-list li { margin-bottom: 2px; }
.mini-list.good li::marker { color: var(--green-dot); }
.mini-list.bad li::marker { color: var(--red); }
.badge.muted { background: var(--chip); color: var(--ink-2); }
.listing.dim { opacity: .72; }
.draft-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
input[type="email"] { display: block; width: 100%; min-height: 48px; color: var(--ink); background: var(--field);
  border: 1px solid var(--hairline); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px; }

.side-brand { display: none; }

/* Desktop: sidebar on the left, wider content, cards side by side. Phones keep the layout above. */
.top-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.me { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid var(--glass-strong); padding: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--brass), var(--lavender)); color: #fff; font: 700 16px/1 "Inter Tight", sans-serif;
  display: grid; place-items: center; box-shadow: 0 4px 14px -6px rgba(23, 20, 15, .45); transition: transform .12s ease; }
.me:active { transform: scale(.94); }
.me.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brass); }
@media (max-width: 420px) {
  .top .live { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .top .brand .pill { display: none; }
}

@media (min-width: 960px) {
  .wrap { max-width: 1120px; margin: 0 0 0 264px; padding: 40px 48px 64px; }
  .top .brand { display: none; }
  .top { justify-content: flex-end; }
  h1 { font-size: 52px; margin-top: 8px; }
  .sub { font-size: 16px; margin-bottom: 28px; }

  nav {
    left: 24px; top: 24px; bottom: 24px; transform: none; width: 216px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 20px 12px; border-radius: 26px;
  }
  .side-brand { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.01em; padding: 4px 14px 22px; color: var(--ink); }
  nav button { flex-direction: row; justify-content: flex-start; gap: 12px; min-width: 0; min-height: 46px; padding: 0 14px;
    border-radius: 14px; font-size: 15px; font-weight: 600; }
  nav button svg { width: 20px; height: 20px; }
  nav button:not([aria-selected="true"]):hover { background: var(--in-bubble); color: var(--ink); }

  /* Lists of cards become a grid; headings, notices and single panels span the full width. */
  #view { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; align-items: start; }
  #view > * { grid-column: 1 / -1; margin-top: 0; margin-bottom: 0; }
  #view > .card, #view > .deal-row { grid-column: auto; }
  #view > h2 { margin: 18px 4px -4px; }
  #view > .actions { margin-top: 0; }
  .card { margin-bottom: 0; }
  .stats { grid-template-columns: repeat(3, 1fr); }

  /* Settings and long forms read better at a comfortable width. */
  #view > .list, #view > .panel, #view > .profile-card, #view > .chips, #view > .bars, #view > .note { max-width: 760px; }
  .viewer-pages { padding: 24px; }
  .btn { cursor: pointer; }
  .btn:hover { filter: brightness(.97); }
}

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

/* Public website (tandemagent.ca) */
.site { max-width: 1040px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 20px) 20px 64px; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-nav a.btn { flex: none; min-height: 42px; padding: 0 18px; }
.hero { padding: 72px 0 40px; max-width: 760px; }
.hero h1 { font-size: clamp(42px, 8vw, 72px); line-height: 1; margin: 0 0 18px; }
.hero p { font-size: 19px; color: var(--ink-2); margin: 0 0 28px; max-width: 600px; }
.hero .actions { max-width: 460px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.feature { padding: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.steps-list li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--brass), var(--lavender)); }
.site h2.big { font-size: 28px; color: var(--ink); letter-spacing: -.02em; margin: 56px 0 16px; }
.site-foot { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 14px; color: var(--ink-2); }
.site-foot a, .legal a { color: var(--ink); }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 6vw, 52px); margin: 48px 0 8px; }
.legal h2 { font-size: 20px; color: var(--ink); margin: 32px 0 8px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.legal ul { padding-left: 22px; }

/* Past leads */
.past .row.link { align-items: center; }
.past .small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.past-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.past-meta .ch { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 99px; background: var(--chip); color: var(--chip-ink); font-weight: 600; }
.past-meta .ch svg { width: 12px; height: 12px; }
.draft-read { white-space: pre-wrap; font-size: 15px; line-height: 1.5; background: var(--field); border: 1px solid var(--hairline); border-radius: 16px; padding: 12px 14px; }
