/* Layout: full-width bands with a 1180px inner column; type-led, photo-forward, one accent. */
:root {
  --bg: #F2EEE6;        /* warm stone */
  --surface: #FBF9F4;
  --surface-2: #E9E3D8;
  --fg: #1E1C19;
  --muted: #6A645B;
  --line: #D8D1C4;
  --accent: #EC7A1C;    /* sharp orange (option D, warmer) */
  --accent-text: #A8540D; /* same hue, 4.6:1 on the page for small text */
  --accent-ink: #FFF7EE;
  --deep: #2E473C;      /* live-oak green, used for the header band and badges */
  --deep-ink: #EEF3EF;
  --ok: #2F7A4E; --warn: #A06A14; --crit: #B23A3A; --info: #3C6E9E;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(30,28,25,.06), 0 8px 24px rgba(30,28,25,.08);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1816; --surface: #242120; --surface-2: #2E2A27; --fg: #F0EBE2; --muted: #A69E92;
    --line: #3A3531; --accent: #F28A33; --accent-text: #F6A861; --accent-ink: #1A1410; --deep: #223A30; --deep-ink: #E6EEE8;
    --ok: #6FBF8A; --warn: #E0A64A; --crit: #E07070; --info: #7FB0DD;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1816; --surface: #242120; --surface-2: #2E2A27; --fg: #F0EBE2; --muted: #A69E92;
  --line: #3A3531; --accent: #F28A33; --accent-text: #F6A861; --accent-ink: #1A1410; --deep: #223A30; --deep-ink: #E6EEE8;
  --ok: #6FBF8A; --warn: #E0A64A; --crit: #E07070; --info: #7FB0DD;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--deep); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); font-weight: 600; }   /* 4.7:1 on the page */
.num, .tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(2.5rem, 6vw, 5rem); }
.band + .band { border-top: 1px solid var(--line); }
.band.deep { background: var(--deep); color: var(--deep-ink); border: 0; }
.band.deep .eyebrow { color: var(--accent); }
.band.deep .lede { color: color-mix(in oklab, var(--deep-ink) 80%, transparent); }
.band.surface { background: var(--surface); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 2rem; }
.row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.status-group .grid-3, #homeCards.grid-3, #comingCards.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid > * { min-width: 0; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--deep); color: var(--deep-ink); border-bottom: 1px solid color-mix(in oklab, var(--deep-ink) 15%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .01em; white-space: nowrap; }
.brand .logo { width: 48px; height: auto; }
.brand small { display: block; font-family: var(--font-body); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--deep-ink) 70%, transparent); }
.nav { display: flex; gap: 0; margin-left: auto; flex-wrap: nowrap; }
.nav a { text-decoration: none; padding: .4rem .55rem; border-radius: 4px; font-size: .9rem; white-space: nowrap; color: var(--deep-ink); opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; background: color-mix(in oklab, var(--deep-ink) 12%, transparent); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid color-mix(in oklab, var(--deep-ink) 30%, transparent); color: var(--deep-ink); border-radius: 4px; padding: .4rem .7rem; font: inherit; cursor: pointer; }
.header-cta { white-space: nowrap; }
@media (max-width: 1240px) { .header-cta { display: none; } }
@media (max-width: 1040px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: .75rem; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .nav.open { display: flex; }
  .header-cta { display: none; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 4px; border: 1px solid transparent; font: 600 .95rem var(--font-body); text-decoration: none; cursor: pointer; letter-spacing: .01em; transition: transform .12s ease, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #1B1B1B; }   /* dark text on the brand orange: 6:1 */
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 90%, black); color: #1B1B1B; }
.btn-ghost { background: transparent; color: inherit; border-color: color-mix(in oklab, currentColor 35%, transparent); }
.btn-ghost:hover { background: color-mix(in oklab, currentColor 8%, transparent); }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }

/* Hero */
.hero { position: relative; isolation: isolate; color: #F4F1EA; min-height: min(92vh, 880px); display: grid; align-items: end; background: #2a2622; }
.hero { isolation: isolate; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; z-index: -3; }
.hero .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero .hero-video { z-index: -2; opacity: 0; transition: opacity 1.2s ease; background: #141210; }
.hero .hero-video.ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero .hero-video { display: none; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,18,16,.10) 0%, rgba(20,18,16,.18) 40%, rgba(20,18,16,.86) 100%); }
.hero img { animation: heroZoom 18s ease-out both; transform-origin: 50% 42%; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero img, .hero .motto span, .hero .lede, .hero .row, .hero-strip { animation: none !important; } }
.hero .wrap { padding-block: 3rem 2.5rem; display: grid; gap: 1.1rem; }
.hero .eyebrow { color: #F5A85C; }
.hero h1.motto { max-width: none; color: #FBF8F2; text-transform: uppercase; font-weight: 600; letter-spacing: .06em; line-height: .98; font-size: clamp(2.3rem, 7.2vw, 5.6rem); text-shadow: 0 2px 4px rgba(0,0,0,.35), 0 12px 40px rgba(0,0,0,.45); display: grid; gap: .1em; }
.hero h1.motto span { display: block; opacity: 0; transform: translateY(.35em); animation: riseIn 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero h1.motto .l1 { color: #FBF8F2; animation-delay: .15s; }
.hero h1.motto .l2 { background: linear-gradient(92deg, #FFB46A 0%, #EC7A1C 45%, #FFC98F 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)) drop-shadow(0 10px 30px rgba(0,0,0,.35)); animation-delay: .45s; position: relative; }
.hero h1.motto .l2::after { content: ""; display: block; height: 3px; width: 0; margin-top: .22em; background: linear-gradient(90deg, #EC7A1C, rgba(236,122,28,0)); animation: ruleIn 1s ease-out 1.1s forwards; }
.hero .lede, .hero .row, .hero-strip { opacity: 0; animation: riseIn 1s ease-out forwards; }
.hero .lede { animation-delay: .8s; } .hero .row { animation-delay: 1s; } .hero-strip { animation-delay: 1.2s; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }
@keyframes ruleIn { to { width: 9rem; } }
.hero .lede { color: rgba(250,247,240,.85); }
.hero-strip { display: flex; flex-wrap: wrap; gap: 2rem 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.2); }
.hero-strip div { display: grid; gap: .1rem; }
.hero-strip b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; line-height: 1; }
.hero-strip span { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }

/* Cards (homes) */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .photo { aspect-ratio: 3 / 2; max-width: 100%; background: var(--surface-2); position: relative; }
.card .photo { overflow: hidden; }
.card .photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .55rem; align-content: start; }
.card .price { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; line-height: 1; }
.card .addr { font-weight: 600; }
.card .sub { color: var(--muted); font-size: .92rem; }
.card .facts { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .9rem; color: var(--muted); }
.card .facts b { color: var(--fg); font-weight: 600; }
.card.dim .photo img { filter: none; }
.card .mo { font-size: .85rem; color: var(--muted); }
.card .lease, .lease-line { font-size: .9rem; color: var(--accent-text); margin-top: -.3rem; }
.card .lease b, .lease-line b { font-weight: 600; }

.badge { position: absolute; top: .7rem; left: .7rem; padding: .3rem .6rem; border-radius: 3px; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff; background: var(--info); }
.badge.for-sale { background: var(--ok); }
.badge.coming-soon { background: var(--warn); }
.badge.under-contract { background: var(--info); }
.badge.off-market { background: var(--deep); }
.badge.sold { background: #5A5550; }
.badge.for-lease, .pill.for-lease { background: var(--accent); color: var(--accent-ink); }
.card .price small { font-size: .6em; font-weight: 500; color: var(--muted); }
.pill { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--info); }
.pill.for-sale { background: var(--ok); } .pill.coming-soon { background: var(--warn); } .pill.under-contract { background: var(--info); } .pill.off-market { background: var(--deep); } .pill.sold { background: #5A5550; }

/* Tabs & filters */
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: .7rem .9rem; font: 600 .95rem var(--font-body); color: var(--muted); cursor: pointer; }
.tabs button .n { display: inline-block; min-width: 1.5em; margin-left: .35rem; padding: 0 .4em; border-radius: 999px; background: var(--surface-2); color: var(--fg); font-size: .78rem; text-align: center; }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.filters label { display: grid; gap: .25rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
select, input[type=text], input[type=date], input[type=number], input[type=email], input[type=tel], textarea { font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--fg); min-width: 0; }
textarea { min-height: 7rem; resize: vertical; }
.empty { padding: 2.5rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* Detail view */
.detail { display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto 1fr; grid-template-areas: "head side" "main side"; align-items: start; }
.detail > * { min-width: 0; }
.d-head { grid-area: head; } .d-main { grid-area: main; } .d-side { grid-area: side; } .detail .d-cta { display: none; }
.gallery { display: grid; gap: .5rem; grid-template-columns: repeat(3, 1fr); }
.gallery img { aspect-ratio: 3 / 2; max-width: 100%; width: 100%; object-fit: contain; background: color-mix(in oklab, var(--deep) 18%, var(--bg)); border-radius: 4px; }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.specbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 1rem; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .95rem; align-items: center; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
@media (max-width: 800px) {
  /* phone: address, then price + Contact, then photos, then the full fact box */
  .detail { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "head" "cta" "main" "side"; }
  .detail .d-cta { display: grid; grid-area: cta; gap: .6rem; } .d-side > .price, .d-side > .tour { display: none; }
  .specbox { position: static; }
}

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; background: var(--surface-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }

/* Feature lists */
.feature { display: grid; gap: .4rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature h3 { font-size: 1.15rem; }
.feature ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.feature li { margin: .2rem 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .8rem; height: .45rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Process */
.steps { counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps > div { counter-increment: s; padding: 1.1rem 1.1rem 1.1rem 3.4rem; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps > div::before { content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--deep); color: var(--deep-ink); font: 600 .9rem var(--font-display); }
.steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Forms */
.form { display: grid; gap: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.form label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
.form .two { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form .help { font-size: .85rem; color: var(--muted); font-weight: 400; }
.notice { padding: .9rem 1rem; border-radius: 4px; background: color-mix(in oklab, var(--ok) 14%, var(--surface)); border: 1px solid color-mix(in oklab, var(--ok) 40%, transparent); }
.notice.err { background: color-mix(in oklab, var(--crit) 12%, var(--surface)); border-color: color-mix(in oklab, var(--crit) 40%, transparent); }
.notice.info { background: color-mix(in oklab, var(--info) 12%, var(--surface)); border-color: color-mix(in oklab, var(--info) 40%, transparent); }

/* Spec sheet rendering (mirrors the printed Specifications Schedule) */
.spec { display: grid; gap: 1.6rem; background: #fff; color: #1b1b1b; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 2.4rem); font-family: var(--font-display); }
.spec-head { display: flex; gap: 1.5rem; align-items: flex-start; justify-content: space-between; padding-bottom: 1rem; }
.spec-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-style: italic; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 1rem; }
.spec-addr { font-style: italic; font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.35; }
.spec-logo { width: 150px; height: auto; flex: none; }
.spec-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 2.2rem; align-items: start; }
.spec-grid > * { min-width: 0; }
.spec-main { display: grid; gap: 1.5rem; }
.spec section { display: grid; gap: .3rem; }
.spec section h3 { font-size: 1.05rem; color: #1b1b1b; text-transform: uppercase; letter-spacing: .3em; font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: .2rem; margin: 0; }
.sched { font-size: .92rem; width: 100%; border-collapse: collapse; table-layout: fixed; }
.sched .c-item { width: 21%; } .sched .c-spec { width: 27%; } .sched .c-fin { width: 24%; } .sched .c-brand { width: 28%; }
.sched th { font-style: italic; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; color: var(--accent-text); background: transparent; position: static; padding: .25rem .5rem .3rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 700; }
.sched td { padding: .42rem .5rem .42rem 0; border-bottom: 1px solid #e6e2da; vertical-align: top; line-height: 1.3; overflow-wrap: anywhere; }
.sched td.it { font-weight: 700; }
.sched .ref { display: block; font-style: italic; color: var(--muted); font-size: .8em; }
.sched .dash { color: #b7b2a8; }
.spec-side { border-left: 1px solid var(--line); padding-left: 1.5rem; display: grid; gap: .55rem; font-size: .95rem; align-content: start; }
.spec-side h4 { text-transform: uppercase; letter-spacing: .3em; font-size: .95rem; border-bottom: 2px solid var(--accent); padding-bottom: .2rem; margin: .4rem 0 .3rem; font-weight: 700; }
.spec-side .dl { display: block; font-style: italic; text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; color: var(--accent-text); font-weight: 700; }
.spec-side b { font-weight: 400; font-size: 1.05rem; }
.spec-side p { font-style: italic; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.spec-prep { text-align: center; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); border-top: 2px solid var(--accent); padding-top: .6rem; font-weight: 700; font-style: italic; }
.spec-disc { font-size: .7rem; font-style: italic; color: var(--muted); line-height: 1.45; text-align: justify; }
@media (max-width: 860px) { .spec-grid { grid-template-columns: 1fr; } .spec-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; } .sched { font-size: .85rem; } .spec-logo { width: 110px; } }
@media (max-width: 560px) { .sched, .sched thead, .sched tbody, .sched tr, .sched td { display: block; width: 100%; } .sched thead { display: none; } .sched tr { border-bottom: 1px solid var(--line); padding: .4rem 0; } .sched td { border: 0; padding: .1rem 0; } .sched td.it { font-size: 1rem; } .sched colgroup { display: none; } }
@media print { .site-header, .site-footer, .portal-bar, .ptabs, #signin, .cmpbar, .spec .btn, .spec .row { display: none !important; } .spec { border: 0; padding: 0; box-shadow: none; } body { background: #fff; } }
/* Portal chrome */
.portal-bar { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.ptabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); }
.ptabs [role=tab] { font: inherit; font-weight: 700; padding: .7rem 1.1rem; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.ptabs [role=tab][aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.svc-grid > * { min-width: 0; }
.svc-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .5rem; font-size: .92rem; }
.svc-side h4 { margin: .4rem 0 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); }
.svc-side ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.svc-side p { margin: 0; }
.choices.prio label { flex-direction: column; align-items: flex-start; gap: .1rem; border-radius: 12px; padding: .55rem .9rem; }
.choices.prio label .sub { font-weight: 400; font-size: .78rem; }
.choices.prio label:has(input:checked) .sub { color: #1b1b1b; opacity: .8; }
.choices.prio input { position: absolute; opacity: 0; pointer-events: none; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .spec-grid { grid-template-columns: 1fr; } .spec-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; } }

/* Portfolio gallery */
.pf-gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.pf-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: color-mix(in oklab, var(--deep) 14%, var(--bg)); border-radius: 4px; max-width: 100%; }
.pf-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.pf-gallery img.portrait { aspect-ratio: 3 / 2; object-fit: contain; }

/* Footer */
.site-footer { background: var(--deep); color: var(--deep-ink); padding-block: 2.5rem 2rem; margin-top: 2rem; font-size: .93rem; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer h4 { font-family: var(--font-body); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: .6rem; }
.site-footer a { color: inherit; text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid color-mix(in oklab, var(--deep-ink) 15%, transparent); padding-top: 1rem; font-size: .82rem; opacity: .75; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.copy { font-family: ui-monospace, Menlo, monospace; font-size: .92em; user-select: all; }

.demo-flag { position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 8; background: var(--warn); color: #1a1410; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 3px; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.card .photo .noimg { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:.85rem; letter-spacing:.08em; text-transform:uppercase; color: color-mix(in oklab, var(--fg) 45%, transparent); background: color-mix(in oklab, var(--deep) 10%, var(--bg)); }
.site-footer .tagline { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .6rem; }

/* About */
.about-photo { margin: 0; max-width: 420px; justify-self: end; }
.about-photo img { height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.about-photo figcaption { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; }
.about-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem 2rem; padding-top: 1rem; border-top: 1px solid color-mix(in oklab, var(--fg) 15%, transparent); }
.about-stats b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.about-stats span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.about-text { max-width: 72ch; display: grid; gap: 1rem; }
.about-text p { font-size: 1.05rem; line-height: 1.65; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.timeline li { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; align-items: start; }
.timeline .when { font-family: var(--font-display); color: var(--accent-text); font-size: 1.1rem; white-space: nowrap; }
.timeline b { display: block; margin-bottom: .2rem; }
.timeline p { margin: 0; color: var(--muted); }
.certs { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.certs li { padding-left: 1.1rem; position: relative; }
.certs li::before { content: ""; position: absolute; left: 0; top: .55em; width: .45rem; height: .45rem; background: var(--accent); border-radius: 50%; }
.quote { margin: 0; padding: 1.5rem; border-left: 3px solid var(--accent); background: color-mix(in oklab, var(--deep) 8%, var(--bg)); border-radius: 0 6px 6px 0; }
.quote p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; margin: 0 0 .8rem; }
.quote footer { font-size: .85rem; color: var(--muted); }
@media (max-width: 700px) { .about-photo { justify-self: start; } .timeline li { grid-template-columns: 1fr; gap: .2rem; } }
.field-strip { display: flex; gap: 1rem; align-items: flex-start; }
.field-strip figure { margin: 0; min-width: 0; flex: var(--ar, 1) 1 0; }
.field-strip img { width: 100%; aspect-ratio: var(--ar, 4/3); object-fit: cover; border-radius: 6px; }
.field-strip figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
@media (max-width: 760px) { .field-strip { flex-direction: column; } .field-strip figure { flex: none; width: 100%; } }
.paytable { margin-bottom: 1.5rem; }
.tablewrap { overflow-x: auto; border: 1px solid color-mix(in oklab, var(--fg) 12%, transparent); border-radius: 6px; }
.paytable table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 760px; }
.paytable th, .paytable td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid color-mix(in oklab, var(--fg) 10%, transparent); white-space: nowrap; }
.paytable th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: color-mix(in oklab, var(--deep) 8%, var(--bg)); }
.paytable th.num, .paytable td.num { text-align: right; font-variant-numeric: tabular-nums; }
.paytable tr:last-child td { border-bottom: 0; }
.showing { padding: 1.25rem; border: 1px solid color-mix(in oklab, var(--fg) 12%, transparent); border-radius: 6px; display: grid; gap: .75rem; background: color-mix(in oklab, var(--deep) 6%, var(--bg)); }
.showing h3 { margin: 0; }
.showing p { margin: 0; color: var(--muted); }
.field-strip .credit { display: block; font-size: .72rem; opacity: .7; margin-top: .15rem; }
.field-strip .credit a { color: inherit; }
.copybtn { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; margin-left: .35rem; vertical-align: middle; border: 1px solid color-mix(in oklab, var(--fg) 20%, transparent); border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.copybtn:hover { color: var(--accent-text); border-color: var(--accent-text); }
.copybtn.done { color: #2E7D32; border-color: #2E7D32; }
.addr-line { display: flex; gap: .5rem; align-items: flex-start; }
.addr-line .pin { flex: none; color: var(--accent-text); margin-top: .15rem; }
.rowbtn { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border: 1px solid color-mix(in oklab, var(--fg) 18%, transparent); border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; margin-right: .25rem; font-size: 1rem; line-height: 1; }
.rowbtn:hover, .rowbtn.ok { color: var(--accent-text); border-color: var(--accent-text); }
.paytable tr.custom td { background: color-mix(in oklab, var(--accent) 7%, transparent); }
.paytable tr.editing td { background: color-mix(in oklab, var(--deep) 8%, var(--bg)); vertical-align: top; }
.paytable tr.editing label { display: grid; gap: .15rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .35rem; }
.paytable tr.editing input { width: 6.5rem; padding: .3rem .4rem; font: inherit; font-size: .9rem; border: 1px solid color-mix(in oklab, var(--fg) 25%, transparent); border-radius: 4px; background: var(--bg); color: var(--fg); text-align: right; }
.paytable .tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); border: 1px solid var(--accent-text); border-radius: 3px; padding: .05rem .3rem; margin-left: .3rem; vertical-align: middle; }
.paytable td small { color: var(--muted); }
.allprops { display: grid; gap: .9rem; padding: 1.1rem 1.2rem; border: 1px solid color-mix(in oklab, var(--fg) 12%, transparent); border-radius: 8px; background: color-mix(in oklab, var(--deep) 5%, var(--bg)); }
.table-wrap.compact table { font-size: .9rem; }
.table-wrap.compact td, .table-wrap.compact th { padding: .4rem .6rem; white-space: nowrap; }

/* --- accessibility & review fixes --- */
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: .5rem .8rem; border-radius: 4px; font-weight: 600; }
.skip:focus { left: 12px; }
.site-footer .legal { font-size: max(.8rem, 10pt); }
.badge.example { left: .7rem; right: auto; top: calc(.7rem + 2.1rem); background: rgba(27,27,27,.72); color: #fff; }
.tag-example { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.video-toggle { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: 12px; z-index: 2; background: rgba(20,18,16,.55); color: #F4F1EA; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .35rem .8rem; font: 600 .8rem var(--font-body); cursor: pointer; }
.video-toggle:hover { background: rgba(20,18,16,.8); }
@media (prefers-reduced-motion: reduce) { .video-toggle { display: none; } }
/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(12,10,9,.94); display: grid; grid-template-columns: 3.5rem 1fr 3.5rem; align-items: center; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; gap: .6rem; justify-items: center; max-height: 100dvh; padding: 3.5rem 0 1rem; }
.lb img { max-width: 100%; max-height: calc(100dvh - 6rem); object-fit: contain; border-radius: 4px; }
.lb figcaption { color: #E8E2D8; font-size: .9rem; text-align: center; padding: 0 1rem; }
.lb button { background: none; border: 0; color: #F4F1EA; font-size: 2.4rem; line-height: 1; cursor: pointer; padding: .5rem; }
.lb button:focus-visible { outline: 2px solid var(--accent); border-radius: 6px; }
.lb .lb-close { position: absolute; top: max(8px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); font-size: 2rem; }
.lb .lb-prev { grid-column: 1; } .lb .lb-next { grid-column: 3; }
/* payment table: never widen the page; stack into cards on phones */
.paytable, .tablewrap { min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
  .paytable table { min-width: 0; width: 100%; }
  .paytable thead { display: none; }
  .paytable tr { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .75rem; padding: .75rem .9rem; border-bottom: 1px solid color-mix(in oklab, var(--fg) 10%, transparent); }
  .paytable td { display: flex; justify-content: space-between; gap: .5rem; padding: .15rem 0; border: 0; white-space: normal; }
  .paytable td::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .paytable td.full, .paytable td:first-child, .paytable td:nth-child(2) { grid-column: 1 / -1; }
  .paytable td.num { text-align: right; }
  .paytable tr.editing td { flex-direction: column; align-items: stretch; }
}
.filter-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.tour { display: grid; gap: .5rem; }
.tour .row { gap: .5rem; flex-wrap: wrap; }
.tour .btn { flex: 1 1 auto; text-align: center; }
.est-note { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* big section title (For Realtors on the Homes page) */
.section-title { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; margin: 0 0 .4rem; }

/* stacked status groups on the Homes page */
.status-group { scroll-margin-top: 84px; display: grid; gap: 1rem; }
.status-group + .status-group { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.group-head h2 { margin: 0; display: flex; align-items: center; gap: .6rem; font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.group-head h2 .n { font-family: inherit; font-size: .9rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: .15em .7em; }
.group-head .sub { margin: .2rem 0 0; }
.status-group h3.subgroup { margin: .6rem 0 0; display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; letter-spacing: .01em; }
.status-group h3.subgroup .n { font-family: inherit; font-size: .8rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: .1em .6em; }
.status-group h3.subgroup + .sub { margin: -.4rem 0 0; }

/* phone gate: press-and-hold human check (bar fills while held) */
.telgate { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; vertical-align: middle; }
.telgate .hold { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-width: 13.5em; padding: .6rem 1rem; border: 1.5px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none; }
.telgate.inline .hold { min-width: 0; padding: .2rem .7rem; font-size: .86rem; border-radius: 999px; }
.telgate .hold .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--accent); opacity: .9; transition: none; pointer-events: none; }
.telgate .hold .lbl { position: relative; white-space: nowrap; }
.telgate .hold.holding .lbl { color: #fff; mix-blend-mode: difference; }
.telgate .hold:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.telgate .telnum { font-weight: 600; white-space: nowrap; }
.telgate.buttons .btn { white-space: nowrap; padding: .4rem .8rem; font-size: .86rem; }
.telgate.buttons .hold { min-width: 0; padding: .4rem .9rem; font-size: .86rem; }
.telgate.buttons .copybtn { padding: .3rem; }

.telgate .hold.busy { opacity: .75; cursor: progress; }
.telgate .hold.busy .bar { width: 100% !important; animation: telpulse 1s ease-in-out infinite; }
.telgate .hold.failed { border-color: var(--err, #b23a2a); }
@keyframes telpulse { 0%,100% { opacity: .55 } 50% { opacity: .9 } }

/* Compare homes */
.card .cmp { position: absolute; top: .6rem; right: .6rem; display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.7); background: rgba(20,20,20,.55); color: #fff; font: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; backdrop-filter: blur(4px); }
.card .cmp .box { width: .9em; height: .9em; border: 1.5px solid #fff; border-radius: 3px; display: inline-block; }
.card .cmp[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1B1B1B; }
.card .cmp[aria-pressed="true"] .box { background: #1B1B1B; border-color: #1B1B1B; box-shadow: inset 0 0 0 2px var(--accent); }
.card .cmp.shake { animation: cmpshake .4s; }
@keyframes cmpshake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-4px) } 75% { transform: translateX(4px) } }
.cmpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--deep); color: var(--deep-ink); border-top: 1px solid rgba(255,255,255,.12); padding: .7rem 0 calc(.7rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
.cmpbar .wrap { gap: .75rem; flex-wrap: wrap; }
.cmpbar .picks { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; min-width: 0; }
.cmpbar .picks b { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.cmpbar .pick { display: inline-flex; align-items: center; gap: .3rem; background: rgba(255,255,255,.1); border-radius: 999px; padding: .25rem .4rem .25rem .7rem; font-size: .9rem; }
.cmpbar .pick button { background: transparent; border: 0; color: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }
.cmpbar .sub { color: var(--deep-ink); opacity: .8; font-size: .85rem; }
.cmpbar .btn.disabled { opacity: .5; pointer-events: none; }
.cmpbar .btn-ghost { color: var(--deep-ink); border-color: rgba(255,255,255,.4); }
body.has-cmpbar { padding-bottom: 5rem; }
.cmp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; table-layout: fixed; }
.cmp-table th { text-transform: none; letter-spacing: 0; font-size: inherit; color: inherit; }
.cmp-table thead th a { color: inherit; } .cmp-table thead th .sub { font-weight: 400; }
.cmp-table th, .cmp-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.cmp-table .lblcol { width: 11rem; }
.cmp-table th:first-child, .cmp-table td:first-child { position: sticky; left: 0; background: var(--surface); color: var(--muted); font-weight: 600; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.cmp-table thead th { background: var(--surface-2); vertical-align: bottom; }
.cmp-table thead th:first-child { background: var(--surface-2); }
.cmp-table .photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; display: block; }
.cmp-table .best { color: var(--ok); font-weight: 700; }
.cmp-table .price { font-family: var(--font-display); font-size: 1.4rem; }
.cmp-table td .pill { font-size: .68rem; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.cmp-pick button { font: inherit; font-size: .9rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.cmp-pick button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1B1B1B; font-weight: 700; }
.cmp-pick button:disabled { opacity: .45; cursor: not-allowed; }

/* Tour request */
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices label { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--surface); font-weight: 600; }
.choices label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #1B1B1B; }
.choices input { margin: 0; accent-color: #1B1B1B; }
.tour-done { display: grid; gap: .8rem; }
.tour-done .ref { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .04em; }
.tour-done dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.tour-done dt { color: var(--muted); } .tour-done dd { margin: 0; font-weight: 600; }
@media (max-width: 800px) { .cmp-table { min-width: 560px; font-size: .9rem; } .cmp-table .lblcol { width: 6.5rem; } .cmp-table th, .cmp-table td { padding: .6rem .6rem; } }

/* Legal pages */
.legal-doc h2 { font-size: 1.1rem; margin: 1.6rem 0 .35rem; }
.legal-doc p { margin: 0 0 .8rem; }
.legal-doc h1 + .lede, .legal-doc .lede { margin-bottom: .5rem; }

/* Address suggest box (Homeowner Portal) */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% - 1.4rem); z-index: 30; margin: 0; padding: .3rem 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.14); max-height: 15rem; overflow-y: auto; }
.suggest li { padding: .5rem .8rem; cursor: pointer; font-weight: 500; }
.suggest li b { color: var(--accent-text); }
.suggest li:hover, .suggest li[aria-selected="true"] { background: color-mix(in oklab, var(--accent) 14%, var(--surface)); }

/* ---- owner portal ---- */
.owner .otabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: 1rem 0; overflow-x: auto; }
.owner .otabs [role=tab] { font: inherit; font-weight: 600; padding: .6rem .9rem; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; }
.owner .otabs [role=tab][aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.owner .otabs .cnt { display: inline-block; min-width: 1.3em; padding: 0 .35em; border-radius: 999px; background: var(--accent); color: #1B1B1B; font-size: .75rem; text-align: center; }
.owner .otabs .cnt:empty { display: none; }
.owner .ogroup { margin: .6rem 0 0; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.owner summary.ogroup { cursor: pointer; }
.owner details.ogroup-sold { display: grid; gap: .6rem; }
.owner * { box-sizing: border-box; }
.owner .wrap > *, .owner #oApp, .owner .otab, .owner .otab > * { min-width: 0; max-width: 100%; }
.owner .info .sub, .owner .info b { overflow-wrap: anywhere; }
.owner .ohome { grid-template-columns: auto minmax(0, 1fr) auto; }
.owner .ohome, .owner .oreq { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; }
.owner .oreq { grid-template-columns: 1fr auto; }
.owner .oreq .msgbox { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.owner .oreq .msgbox input { flex: 1; min-width: 200px; }
.owner .oreq .desc { margin: .3rem 0 0; font-size: .92rem; }
.owner .ohome .thumb { width: 84px; height: 56px; border-radius: 6px; overflow: hidden; background: #ddd8cf; display: grid; place-items: center; font-size: .7rem; color: var(--muted); }
.owner .ohome .thumb img { width: 100%; height: 100%; object-fit: cover; }
.owner .info { display: grid; gap: .15rem; min-width: 0; }
.owner .info .sub { font-size: .85rem; color: var(--muted); }
.owner .acts { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.owner .form-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.owner input, .owner select, .owner textarea { font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #1B1B1B; caret-color: #1B1B1B; width: 100%; }
.owner input::placeholder, .owner textarea::placeholder { color: #8a8580; }
.owner .qstatus { width: auto; padding: .35rem .5rem; font-size: .85rem; }
.owner .pgrid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.owner .pgrid figure { margin: 0; position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.owner .pgrid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.owner .pgrid figcaption { font-size: .75rem; padding: .25rem .4rem; color: var(--muted); }
.owner .pgrid .pbtns { display: flex; gap: .2rem; padding: 0 .3rem .3rem; }
.owner .pgrid .pbtns button { flex: 1; font: inherit; font-size: .8rem; padding: .25rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #1B1B1B; cursor: pointer; }
.owner .pgrid .pbtns button:disabled { opacity: .35; cursor: default; }
.owner .btn.danger { color: var(--crit); border-color: color-mix(in oklab, var(--crit) 40%, transparent); }
.owner .codeout { font: 700 1.1rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; }
.owner td.code { font: 700 1rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; }
.owner details.import summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.site-footer .owner-link { font-size: .72rem; opacity: .55; text-decoration: none; }
.site-footer .owner-link:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 640px) { .owner .ohome { grid-template-columns: auto 1fr; } .owner .ohome > .row { grid-column: 1 / -1; } .owner .oreq { grid-template-columns: 1fr; } }
