/* Domselect design system — expert-comparison-desk v1.0.0
   Tokens from DESIGN.md; fonts: IBM Plex Sans, PT Root UI, IBM Plex Mono */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700;800&family=PT+Root+UI:wght@400;500;700&display=swap');

:root {
    --canvas: #F5F7FA;
    --surface: #FFFFFF;
    --ink: #1B2A3D;
    --muted: #6B7A8D;
    --line: #D3DBE5;
    --primary: #224B7A;
    --signal: #3CB371;
    --accent: #3CB371;

    --primary-strong: #1A3A5E;
    --sky: #4A76A8;
    --mint: #D7E7F3;
    --clay: #3CB371;
    --clay-soft: #E4F5EC;

    --paper: #FFFFFF;
    --paper-2: #F5F7FA;
    --surface-2: #F5F7FA;
    --bg: #F5F7FA;
    --bg-2: #F5F7FA;
    --header-bg: #224B7A;
    --ink-2: #33455C;
    --ink-3: #6B7A8D;
    --ink-4: #8D9AAB;
    --line-2: #D3DBE5;
    --brand: #224B7A;
    --brand-ink: #1A3A5E;
    --brand-soft: #E3EDF6;
    --accent-ink: #1F7A4D;
    --accent-soft: #E4F5EC;
    --ok: #3CB371;
    --ok-soft: #E4F5EC;
    --ok-line: rgba(60,179,113,.35);
    --warn: #956214;
    --danger: #B6344D;
    --on-dark: rgba(255,255,255,.78);
    --on-dark-2: rgba(255,255,255,.58);

    --radius: 10px;
    --radius-lg: 14px;
    --radius-card: 14px;
    --space-compact: 6px;
    --space-content: 14px;
    --space-section: clamp(48px, 6vw, 82px);
    --shadow-sm: 0 1px 2px rgba(27,42,61,.07);
    --shadow: 0 4px 14px rgba(27,42,61,.09);
    --shadow-lg: 0 10px 28px rgba(27,42,61,.12);

    --font-sans: 'IBM Plex Sans', Arial, sans-serif;
    --font-display: 'PT Root UI', 'IBM Plex Sans', Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --target: 44px;

    scrollbar-color: var(--brand) #E4E0D2;
    scrollbar-width: thin;
    font-family: var(--font-sans);
}

*, *::before, *::after { box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.icon { display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }

.site-header { position: sticky; top: 0; z-index: 30; background: var(--canvas); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.site-header .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: var(--canvas); display: grid; place-items: center; font-weight: 800; font-family: var(--font-sans); font-size: 1.05rem; box-shadow: none; flex-shrink: 0; }
.brand-logo { width: 44px; height: 34px; flex-shrink: 0; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.site-header .brand-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.site-header .city-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid #C6D9CC; border-radius: 999px; background: #EEF4EC; color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.site-header .city-chip .icon { color: var(--primary); font-size: 1em; }
.main-nav { display: flex; align-items: center; gap: 0; margin-left: 14px; min-height: 64px; }
.site-header .main-nav a { position: relative; padding: 0 12px; min-height: var(--target); display: inline-flex; align-items: center; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; transition: color .15s; }
.site-header .main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.site-header .main-nav a:hover { color: var(--brand-ink); }
.site-header .main-nav a:hover::after { transform: scaleX(1); }
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-icon-link { display: inline-grid; place-items: center; width: var(--target); height: var(--target); border-radius: 10px; color: var(--ink-2); text-decoration: none; transition: background .15s, color .15s; font-size: 1.15rem; }
.header-icon-link:hover { background: var(--surface-2); color: var(--brand-ink); }
.menu-btn { display: none; border: 1px solid var(--line-2); background: var(--canvas); color: var(--ink); border-radius: 10px; width: var(--target); height: var(--target); cursor: pointer; place-items: center; font-size: 1.15rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--target); padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--canvas); color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; transition: background .15s, border-color .15s, transform .12s, box-shadow .15s; }
.btn .icon { font-size: 1.18em; }
.btn:hover { background: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--canvas); }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.cta { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.cta:hover { background: #B9D94F; border-color: #B9D94F; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { min-height: var(--target); padding: 0 12px; font-size: .86rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }

.section { padding: var(--space-section) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
.section-sub { color: var(--muted); margin-top: 5px; font-size: .95rem; }
.section-link { color: var(--brand-ink); text-decoration: none; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; min-height: var(--target); }
.section-link:hover { color: var(--brand); }
.section-link .icon { font-size: 1em; }

.grid { display: grid; gap: var(--space-content); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.building-card { display: flex; flex-direction: column; overflow: hidden; position: relative; text-decoration: none; color: inherit; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.building-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.building-card-media { position: relative; aspect-ratio: 16/11; background: linear-gradient(135deg, var(--paper-2), var(--line)); }
.building-card-media:focus-visible { outline-offset: -3px; }
.building-card-media img { width: 100%; height: 100%; object-fit: cover; }
.building-card-media .no-photo { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; color: var(--ink-4); font-size: .82rem; font-weight: 600; }
.building-card-class { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--clay); color: var(--ink); font-size: .72rem; font-weight: 700; box-shadow: none; text-transform: none; }
.building-card-fav { position: absolute; top: 8px; right: 8px; }
.building-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; }
.building-card-title { font-family: var(--font-sans); font-weight: 700; font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; }
.building-card-dev { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.building-card-dev a { color: var(--muted); text-decoration: none; }
.building-card-dev a:hover { color: var(--brand-ink); }
.building-card-loc { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.building-card-loc .icon { color: var(--muted); font-size: 1.05em; }
.building-card-loc .metro-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); flex-shrink: 0; }
.metro-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); flex-shrink: 0; display: inline-block; vertical-align: middle; }
.building-card-loc.is-empty { color: var(--ink-4); }
.building-card-prices { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-cell span { color: var(--ink-4); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.price-cell strong { font-size: 1.02rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.building-card-prices .price-cell:first-child strong { color: var(--primary); }

.dossier-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact-wide { grid-column: 1 / -1; }
.fact-label { color: var(--ink-4); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fact-value { color: var(--ink); font-size: 1.02rem; font-weight: 800; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fact-value.brand { color: var(--brand); }
.fact-none { color: var(--ink-4); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.fav-btn { width: var(--target); height: var(--target); display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: rgba(23,35,29,.72); color: var(--canvas); cursor: pointer; font-size: 1.05rem; transition: background .15s, color .15s; }
.fav-btn:hover { background: rgba(23,35,29,.88); color: var(--accent); }
.fav-btn.active { background: var(--accent); color: var(--ink); }
.fav-btn.active:hover { background: #B9D94F; }
.fav-btn.compact { width: var(--target); height: var(--target); font-size: .92rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .76rem; font-weight: 600; }
.badge .icon { font-size: 1.05em; }
.badge.ok { border-color: rgba(23,107,77,.35); background: var(--ok-soft); color: var(--ok); }
.badge.brand { border-color: rgba(23,107,77,.35); background: var(--brand-soft); color: var(--brand-ink); }
.badge.warn { border-color: rgba(149,98,20,.35); background: #FDF3DD; color: var(--warn); }

.pill-group { display: flex; flex-wrap: wrap; gap: var(--space-compact); }
.pill { display: inline-flex; align-items: center; min-height: var(--target); padding: 0 13px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--canvas); color: var(--ink-2); font-size: .86rem; font-weight: 600; cursor: pointer; user-select: none; transition: border-color .15s, background .15s, color .15s; }
.pill:hover { border-color: var(--primary); }
.pill input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pill.is-active { background: var(--primary); border-color: var(--primary); color: var(--canvas); }
.pill:has(input:checked) { background: var(--primary); border-color: var(--primary); color: var(--canvas); }
.pill:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 13px; background: var(--canvas); font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px rgba(23,107,77,.14); }

.filter-panel { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: end; }
.filter-bar .field { min-width: 180px; }
.filter-bar .btn { min-height: var(--target); }
.filter-sort { display: flex; flex-direction: column; gap: 3px; }
.filter-sort label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.filter-sort .sort-select { min-width: 220px; }

.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.results-count { color: var(--muted); font-size: .92rem; }
.results-count strong { color: var(--ink); font-weight: 800; }
.sort-select { min-width: 230px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.pager a, .pager span { min-width: var(--target); min-height: var(--target); display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .9rem; transition: border-color .15s, background .15s; }
.pager a:hover { border-color: var(--primary); background: var(--brand-soft); color: var(--brand-ink); }
.pager .active { background: var(--primary); border-color: var(--primary); color: var(--canvas); }
.pager .disabled { opacity: .4; pointer-events: none; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: .84rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs .sep { color: var(--ink-4); }
.crumbs .here { color: var(--ink); font-weight: 600; }

.hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.14); background: linear-gradient(150deg, var(--primary-strong) 0%, var(--primary) 70%, #2E8B63 100%); padding: 32px; box-shadow: var(--shadow); color: var(--canvas); }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; color: var(--canvas); }
.hero p { margin-top: 12px; max-width: 640px; color: var(--on-dark); font-size: 1.05rem; line-height: 1.55; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: rgba(200,230,106,.13); border: 1px solid rgba(200,230,106,.42); color: #EFF7CE; font-size: .76rem; font-weight: 700; margin-bottom: 14px; }
.hero-eyebrow .icon { color: var(--mint); }
.hero .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hero .btn.primary:hover { background: #B9D94F; border-color: #B9D94F; }
.hero .btn:not(.primary) { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: var(--canvas); }
.hero .btn:not(.primary):hover { background: rgba(255,255,255,.2); }

.hero-search { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 12px; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 760px; }
.hero-search .pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: var(--canvas); border-radius: 999px; }
.hero-search .pill:hover { border-color: rgba(255,255,255,.55); }
.hero-search .pill:has(input:checked) { background: var(--primary); border-color: var(--primary); }
.hero-search .hero-search-go { margin-left: auto; }

.range-field { display: flex; flex-direction: column; gap: 10px; }
.range-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.range-val { font-weight: 800; font-size: 1.12rem; color: var(--ink); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.range-val .unit { color: var(--muted); font-size: .85rem; font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--line); padding: 0; border: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid var(--canvas); box-shadow: 0 2px 8px rgba(23,35,29,.35); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid var(--canvas); box-shadow: 0 2px 8px rgba(23,35,29,.35); cursor: pointer; }
input[type="range"]:focus { outline: 0; }
input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(23,107,77,.18); }

.calc-result { background: linear-gradient(150deg, var(--header-bg) 0%, var(--primary) 100%); border-radius: var(--radius-lg); padding: 24px; color: var(--canvas); position: relative; overflow: hidden; }
.calc-result::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 86% 16%, rgba(200,230,106,.22), transparent 52%); pointer-events: none; }
.calc-result > * { position: relative; }
.calc-result-label { color: var(--on-dark-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.calc-result-num { font-family: var(--font-mono); font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; margin-top: 8px; color: var(--canvas); font-variant-numeric: tabular-nums; }
.calc-result-sub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.calc-result-sub .calc-result-label { color: var(--on-dark-2); }
.calc-result-sub strong { display: block; font-size: 1.25rem; font-weight: 800; margin-top: 4px; color: var(--canvas); font-variant-numeric: tabular-nums; }

.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.bank-logo { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); font-weight: 800; color: var(--ink); font-size: 1.02rem; transition: border-color .15s, box-shadow .15s; }
.bank-logo:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.bank-logo .bank-dot { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; flex-shrink: 0; }

.scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.scenario-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.scenario-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.scenario-ico { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.4rem; }
.scenario-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.scenario-rate { color: var(--brand-ink); font-weight: 800; font-size: 1.25rem; font-family: var(--font-mono); margin-top: auto; font-variant-numeric: tabular-nums; }
.scenario-rate .small { color: var(--muted); font-size: .82rem; font-weight: 600; }
.scenario-card p { color: var(--muted); font-size: .9rem; line-height: 1.5; }

.panel { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.panel h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 14px; font-weight: 700; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 18px; }
.kv-row { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv-row span { color: var(--ink-4); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kv-row strong { font-weight: 700; font-variant-numeric: tabular-nums; }

.alert { border: 1px solid rgba(182,52,77,.4); background: #FBEDEF; color: var(--danger); border-radius: 8px; padding: 13px 16px; margin-bottom: 16px; }
.alert.ok { border-color: rgba(23,107,77,.35); background: var(--ok-soft); color: var(--ok); }

.empty { padding: 44px; text-align: center; color: var(--muted); }
.empty h3 { margin-bottom: 8px; }

.footer { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); background: var(--header-bg); color: var(--on-dark); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 26px; padding: 38px 0 24px; }
.footer .brand { color: var(--canvas); }
.footer .brand-mark { background: var(--primary); box-shadow: none; }
.footer h4 { font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; font-weight: 700; }
.footer a { display: flex; align-items: center; min-height: var(--target); width: fit-content; color: var(--on-dark); text-decoration: none; font-size: .92rem; padding: 6px 0; transition: color .15s; }
.footer a:hover { color: var(--canvas); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding: 16px 0; color: var(--on-dark-2); font-size: .84rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.icon-item { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-size: .9rem; }
.icon-item .dot { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }
.icon-item .dot .icon { font-size: 1.05em; }

.alpha-index { columns: 3; column-gap: 26px; }
.alpha-index a { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0; font-size: .92rem; break-inside: avoid; transition: color .15s; }
.alpha-index a:hover { color: var(--brand-ink); }
.alpha-letter { font-weight: 700; color: var(--primary); font-family: var(--font-display); margin: 12px 0 4px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 168px; gap: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.gallery .g-main { grid-row: span 2; }
.gallery a { display: block; height: 100%; border-radius: 8px; overflow: hidden; }
.gallery a img { cursor: pointer; }
.gallery a:focus-visible { outline-offset: -3px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .93rem; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--primary); border-color: var(--primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two-col { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 22px; align-items: start; }
.sticky-side { position: sticky; top: 80px; }

.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline-flex; }

.cover { position: relative; overflow: hidden; border-radius: var(--radius-card); background: linear-gradient(135deg, var(--paper-2), var(--line)); }
.cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cover-media-zoom:hover > img { transform: scale(1.05); }
.cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,35,29,.05) 0%, rgba(23,35,29,0) 38%, rgba(23,35,29,.62) 100%); }
.cover-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cover-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; color: var(--canvas); }
.cover-bottom h1, .cover-bottom h2 { color: var(--canvas); }
.cover-bottom .crumbs a, .cover-bottom .crumbs .here { color: rgba(255,255,255,.9); }
.cover-bottom .crumbs .sep { color: rgba(255,255,255,.5); }
.cover-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cover-badges .badge { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: var(--canvas); }
.cover-badges .badge.brand { background: var(--primary); border-color: var(--primary); }
.cover-badges .badge.ok { background: var(--ok); border-color: var(--ok); color: #fff; }

.page-hero { background: linear-gradient(135deg, var(--primary-strong), var(--primary)); color: var(--canvas); border-radius: var(--radius-card); padding: 28px; margin-bottom: 22px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 88% 18%, rgba(200,230,106,.16), transparent 48%); pointer-events: none; }
.page-hero > * { position: relative; }
.page-hero h1 { color: var(--canvas); font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.page-hero p { color: var(--on-dark); margin-top: 10px; max-width: 640px; line-height: 1.55; }
.page-hero .crumbs { margin-bottom: 14px; color: var(--on-dark-2); }
.page-hero .crumbs a, .page-hero .crumbs .here { color: rgba(255,255,255,.85); }
.page-hero .crumbs .sep { color: rgba(255,255,255,.45); }

.stat-card { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.stat-label { color: var(--ink-4); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-num.brand { color: var(--primary); }
.stat-num.accent { color: var(--accent-ink); }

.quick-link { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); min-height: 104px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; box-shadow: var(--shadow-sm); }
.quick-link:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.quick-link:nth-child(3n+1) { background: #EFF3E7; }
.quick-link:nth-child(3n+2) { background: #F1F5E9; }
.quick-link:nth-child(3n) { background: #F6EFE8; }
.quick-link-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--canvas); color: var(--primary); font-size: 1.4rem; flex-shrink: 0; }
.quick-link strong { font-size: .98rem; font-weight: 700; }

.doc-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.doc-link:hover { border-color: var(--primary); background: var(--brand-soft); }
.doc-link .icon { color: var(--primary); font-size: 1.3em; }

.layout-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--canvas); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.layout-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.layout-card-media { aspect-ratio: 4/3; background: var(--surface-2); display: grid; place-items: center; }
.layout-card-media img { width: 100%; height: 100%; object-fit: contain; }
.layout-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.layout-card-body strong { font-size: 1.02rem; }
.layout-card-body .price { color: var(--primary); font-weight: 800; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.layout-card-body .meta { color: var(--muted); font-size: .84rem; }

.progress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.progress-grid figure { margin: 0; }
.progress-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.progress-grid figcaption { color: var(--muted); font-size: .84rem; margin-top: 8px; }
.progress-grid a { display: block; border-radius: 8px; overflow: hidden; }
.progress-grid a img { cursor: pointer; }
.progress-grid a:focus-visible { outline-offset: -3px; }

.article-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--canvas); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.article-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card-media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--paper-2), var(--line)); overflow: hidden; }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .article-card-media img { transform: scale(1.04); }
.article-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.article-card-date { color: var(--ink-4); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.article-card-title { font-size: 1.08rem; line-height: 1.25; font-weight: 700; }
.article-card-summary { color: var(--muted); font-size: .9rem; line-height: 1.5; }

.developer-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.developer-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.developer-card-head { display: flex; align-items: center; gap: 14px; }
.developer-logo { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: var(--primary); color: var(--canvas); font-weight: 800; font-family: var(--font-sans); font-size: 1.5rem; flex-shrink: 0; overflow: hidden; }
.developer-logo.has-image { background: var(--canvas); border: 1px solid var(--line); padding: 7px; }
.developer-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.developer-card strong { font-size: 1.08rem; display: block; }
.developer-card .dev-meta { color: var(--ink-4); font-size: .84rem; }
.developer-card .dev-count { margin-top: auto; color: var(--brand-ink); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }

/* ── Developer registry table ── */
.dev-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.dev-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dev-table th,
.dev-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dev-table thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; }
.dev-table th.num,
.dev-table td.num { text-align: right; }
.dev-table tbody tr:last-child td { border-bottom: 0; }
.dev-table tbody tr:hover td { background: var(--surface-2); }
.dev-table tbody tr:focus-within td { background: var(--brand-soft); }
.dev-table-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 600; }
.dev-table-link:hover .dev-table-name { color: var(--brand-ink); }
.dev-table-name { transition: color .15s; }
.dev-table .fact-value.brand { font-size: .95rem; font-weight: 700; color: var(--brand-ink); }
.dev-table .fact-none { color: var(--ink-4); }

@media (max-width: 600px) {
    .dev-table th,
    .dev-table td { padding: 10px 12px; font-size: .88rem; }
}

.auth-card { max-width: 460px; margin: 0 auto; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.7rem; }
.auth-divider { height: 1px; background: var(--line); margin: 20px 0; }

.prose { color: var(--ink-2); line-height: 1.7; font-size: 1rem; }
.prose p { margin-top: 14px; }
.prose p:first-child { margin-top: 0; }
.prose h2, .prose h3 { color: var(--ink); line-height: 1.25; margin-top: 28px; margin-bottom: 12px; }
.prose h2 { font-family: var(--font-display); font-size: 1.45rem; }
.prose h3 { font-family: var(--font-display); font-size: 1.22rem; }
.prose ul, .prose ol { margin: 14px 0 0 22px; padding: 0; }
.prose li { margin-top: 8px; }
.prose a { color: var(--brand-ink); font-weight: 700; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; margin-top: 16px; }
.prose blockquote { margin: 18px 0 0; padding: 14px 18px; border-left: 4px solid var(--primary); background: var(--brand-soft); border-radius: 0 8px 8px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

/* ── SEO landings ── */
.landing-related { padding: 24px 0; }
.landing-related-list { display: flex; flex-wrap: wrap; gap: 8px; }
.landing-related-link { display: inline-flex; align-items: center; min-height: var(--target); padding: 0 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; transition: border-color .15s, color .15s; }
.landing-related-link:hover { border-color: var(--primary); color: var(--brand-ink); }

/* ── Flat search table ── */
.flat-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); }
.flat-table { width: 100%; border-collapse: collapse; min-width: 720px; font-variant-numeric: tabular-nums; }
.flat-th { text-align: left; padding: 11px 14px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.flat-th-action { text-align: right; }
.flat-td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; vertical-align: middle; }
.flat-td-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.flat-td-action { text-align: right; white-space: nowrap; }
.flat-building-link { font-weight: 700; color: var(--ink); text-decoration: none; display: block; line-height: 1.25; }
.flat-building-link:hover { color: var(--brand-ink); }
.flat-dev { display: block; color: var(--ink-4); font-size: .82rem; margin-top: 2px; }
.flat-price { font-weight: 700; color: var(--primary); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.flat-table tbody tr:last-child td { border-bottom: 0; }
.flat-table tbody tr:hover td { background: var(--surface-2); }

@media (max-width: 600px) {
    .flat-th, .flat-td { padding: 10px 12px; font-size: .86rem; }
    .flat-table { min-width: 600px; }
}

/* admin */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 24px; align-items: start; padding-top: 24px; }
.admin-side { position: sticky; top: 80px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-sm); }
.admin-side-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); font-weight: 700; padding: 6px 10px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; transition: background .15s, color .15s; }
.admin-nav a .icon { font-size: 1.15em; color: var(--ink-4); }
.admin-nav a:hover { background: var(--surface-2); color: var(--ink); }
.admin-nav a.is-active { background: var(--brand-soft); color: var(--brand-ink); }
.admin-nav a.is-active .icon { color: var(--primary); }
.admin-main { min-width: 0; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.5rem; font-weight: 700; }
.admin-head .sub { color: var(--muted); font-size: .94rem; margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); font-variant-numeric: tabular-nums; }
.admin-table thead th { text-align: left; padding: 11px 14px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: var(--surface-2); }
.admin-table .col-actions { white-space: nowrap; text-align: right; }
.admin-table .col-actions a, .admin-table .col-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 8px; text-decoration: none; font-size: .84rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); background: var(--canvas); transition: border-color .15s, color .15s; cursor: pointer; }
.admin-table .col-actions a:hover, .admin-table .col-actions button:hover { border-color: var(--primary); color: var(--brand-ink); }
.admin-table .col-actions .del { color: var(--danger); }
.admin-table .col-actions .del:hover { border-color: var(--danger); }
.row-title { font-weight: 700; color: var(--ink); }
.row-sub { color: var(--ink-4); font-size: .82rem; margin-top: 2px; }

.admin-form { display: grid; gap: 16px; }
.admin-form-section { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.admin-form-section h2 { font-size: 1.1rem; margin-bottom: 14px; font-weight: 800; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.admin-form-grid .span-2 { grid-column: 1 / -1; }
.admin-form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-form-actions .spacer { flex: 1; }
.admin-checkbox-row { display: flex; align-items: center; gap: 10px; }
.admin-checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.toggle-published { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.toggle-published.on { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }
.toggle-published.off { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.inquiry-card { display: grid; gap: 18px; }
.inquiry-card-section { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.inquiry-card-section h2 { font-size: 1.05rem; margin-bottom: 12px; font-weight: 700; }
.inquiry-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.inquiry-dl dt { color: var(--ink-4); font-size: .86rem; font-weight: 600; }
.inquiry-dl dd { color: var(--ink); font-size: .92rem; margin: 0; }
.inquiry-dl dd a { color: var(--primary); text-decoration: none; }
.inquiry-dl dd a:hover { text-decoration: underline; }
/* end admin */

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4/3; }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-item .media-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; background: rgba(23,35,29,.7); color: var(--canvas); border: 0; cursor: pointer; display: grid; place-items: center; }
.media-item .media-del:hover { background: var(--danger); }
.media-item .media-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 8px; background: rgba(23,35,29,.66); color: var(--canvas); font-size: .76rem; }
.media-empty { grid-column: 1/-1; padding: 22px; text-align: center; color: var(--ink-4); border: 1px dashed var(--line-2); border-radius: 8px; font-size: .9rem; }

.upload-box { border: 1px dashed var(--line-2); border-radius: 8px; padding: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.upload-box input[type="file"] { font-size: .86rem; }
.upload-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.upload-row .field { flex: 1; min-width: 160px; }

.dossier-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dossier-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--canvas); color: var(--ink-2); font-size: .84rem; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s; }
.dossier-nav a:hover { border-color: var(--brand); color: var(--brand-ink); }
.dossier-facts-page { padding-top: 14px; gap: 12px 20px; }
.dossier-facts-page .fact-value { font-size: 1.12rem; }
.dossier-facts-page .fact-value.brand { font-size: 1.3rem; }
.plan-empty { display: grid; place-items: center; min-height: 220px; padding: 28px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--surface-2); color: var(--ink-2); text-align: center; }
.plan-empty p { max-width: 440px; }
.plan-empty-slim { min-height: 0; padding: 20px 22px; }
.dossier-actions { display: none; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

/* ── Dossier layout (due diligence desk) ── */
.dossier-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; align-items: start; }
.dossier-scale { position: sticky; top: 80px; }
.dossier-scale-title { font-family: var(--font-display); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); font-weight: 700; margin-bottom: 14px; }
.dossier-scale-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: dossier; }
.dossier-scale-step { counter-increment: dossier; }
.dossier-scale-step a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-left: 3px solid var(--line); text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.dossier-scale-step a:hover { border-left-color: var(--primary); background: var(--brand-soft); border-radius: 0 8px 8px 0; }
.dossier-scale-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--ink-4); font-weight: 700; font-size: .78rem; font-family: var(--font-mono); flex-shrink: 0; }
.dossier-scale-step a:hover .dossier-scale-num { background: var(--primary); color: var(--canvas); }
.dossier-scale-label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.dossier-scale-step a:hover .dossier-scale-label { color: var(--brand-ink); font-weight: 700; }
.dossier-scale-stat { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); text-align: center; }
.dossier-scale-stat-num { display: block; font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.dossier-scale-stat-label { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }

.dossier-main { display: flex; flex-direction: column; gap: 20px; }
.dossier-section { scroll-margin-top: 80px; }
.dossier-section h2 { display: flex; align-items: center; gap: 10px; }
.dossier-section-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--canvas); font-weight: 700; font-size: .78rem; font-family: var(--font-mono); flex-shrink: 0; }

@media (max-width: 900px) {
    .dossier-layout { grid-template-columns: 1fr; }
    .dossier-scale { position: static; }
    .dossier-scale-list { flex-direction: row; overflow-x: auto; gap: 0; }
    .dossier-scale-step a { border-left: none; border-bottom: 3px solid var(--line); border-radius: 0 0 8px 8px; padding: 10px 14px; min-width: 120px; flex-shrink: 0; }
    .dossier-scale-step a:hover { border-bottom-color: var(--primary); border-radius: 8px 8px 0 0; }
    .dossier-scale-stat { display: none; }
}

.focus-target:focus, .inquiry-done:focus { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--radius-lg); }
#plans, #location, #about, #advantages, #gallery, #progress, #video, #docs, #developer, #inquiry-form-wrap, #passport { scroll-margin-top: 80px; }

.video-embed { margin-top: 14px; }

.field-error { margin-top: 4px; color: var(--danger); font-size: .82rem; font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.inquiry-done { display: flex; align-items: flex-start; gap: 12px; background: var(--ok-soft); border-color: rgba(23,107,77,.35); color: var(--ok); }
.inquiry-done-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ok); color: #ffffff; flex-shrink: 0; font-size: 1.1rem; }
.inquiry-done p { margin-top: 4px; font-size: .92rem; }

.crit-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.crit-chip { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 600; }

.search-status { margin-bottom: 16px; padding: 12px 16px; border: 1px solid rgba(149,98,20,.35); border-radius: 8px; background: #fdf3dd; color: var(--warn); font-size: .92rem; font-weight: 600; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.filter-row input[type="number"] { min-width: 0; }

.confirm-dialog { width: min(520px,calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.confirm-dialog::backdrop { background: rgba(23,35,29,.6); backdrop-filter: blur(4px); }
.confirm-dialog-card { padding: 24px; }
.confirm-dialog-card h2 { margin: 0 0 10px; font-size: 1.5rem; }
.confirm-dialog-card p { margin: 0 0 22px; color: var(--ink-3); }
.confirm-dialog-card .btn-row { display: flex; justify-content: flex-end; gap: 10px; }

/* ── Budget picker ── */
.budget-form { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.budget-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.budget-form-grid .field-hint { color: var(--muted); font-size: .78rem; font-weight: 600; margin-top: 2px; }
.budget-form-actions { display: flex; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.budget-form-actions .btn { min-height: var(--target); }

.budget-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.budget-summary-card { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px; }
.budget-summary-label { color: var(--ink-4); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.budget-summary-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--primary); font-variant-numeric: tabular-nums; }

.budget-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); }
.budget-table { width: 100%; border-collapse: collapse; min-width: 520px; font-variant-numeric: tabular-nums; }
.budget-table th,
.budget-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.budget-table thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; }
.budget-table tbody tr:last-child td { border-bottom: 0; }
.budget-table tbody tr:hover td { background: var(--surface-2); }
.budget-table .budget-link { color: var(--ink); text-decoration: none; font-weight: 700; transition: color .15s; }
.budget-table .budget-link:hover { color: var(--brand-ink); }
.budget-table .budget-price { font-weight: 700; }
.budget-table .budget-monthly { color: var(--primary); font-weight: 800; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
    .budget-form-grid { grid-template-columns: repeat(2, 1fr); }
    .budget-summary { grid-template-columns: 1fr; }
    .budget-table { min-width: 520px; }
}
@media (max-width: 480px) {
    .budget-form-grid { grid-template-columns: 1fr; }
    .budget-table th,
    .budget-table td { padding: 10px 12px; font-size: .88rem; }
}

.price-cell strong, .stat-num, .hero-stat-num, .calc-result-num, .calc-result-sub strong,
.kv-row strong, .range-val, .admin-table, .scenario-rate, .results-count strong,
.layout-card-body .price, .building-card-prices strong, .fact-value { font-variant-numeric: tabular-nums; }

.mobile-menu { display: flex; flex-direction: column; gap: 6px; padding-bottom: 16px; }
[x-cloak] { display: none !important; }

/* ── Responsive ── */
@media (max-width: 1080px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .filter-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .sticky-side { position: static; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .alpha-index { columns: 2; }
    .progress-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-result-sub { grid-template-columns: 1fr; }
    .calc-layout { grid-template-columns: 1fr !important; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .admin-nav a { padding: 8px 11px; font-size: .88rem; }
    .admin-form-grid { grid-template-columns: 1fr; }
    .dossier-actions { display: flex; }
}
@media (max-width: 760px) {
    .main-nav { display: none; }
    .grid-cards, .grid-3, .grid-4, .filter-grid, .form-row, .about-steps { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 132px; }
    .gallery .g-main { grid-row: span 1; }
    .alpha-index { columns: 1; }
    .footer-inner { grid-template-columns: 1fr; }
    .menu-btn { display: inline-grid; }
    .hero { padding: 24px; }
    .page-hero { padding: 24px; }
    .progress-grid { grid-template-columns: 1fr; }
    .cover-bottom { padding: 18px; }
    .hero-stats { flex-wrap: wrap; gap: 18px 22px; }
    .hero-stat { border-right: 0; margin-right: 0; padding-right: 0; }
    .site-header .city-chip { display: none; }
    .sort-select { min-width: 100%; }
    .wrap { padding: 0 18px; }
}
@media (max-width: 480px) {
    .wrap { padding: 0 16px; }
    .site-header-inner { gap: 10px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .header-actions { gap: 6px; flex-wrap: wrap; }
    .site-header .brand { gap: 8px; }
    .site-header .brand-name { font-size: 18px; }
    .hero { padding: 20px 16px; }
    .hero-search { padding: 12px; }
    .kv { grid-template-columns: 1fr; }
    .dossier-facts { gap: 8px 12px; }
    .dossier-facts-page { gap: 10px 12px; }
}
@media (max-width: 400px) {
    .filter-panel { padding: 16px 14px; }
    .about-steps { grid-template-columns: 1fr !important; }
}

/* ── Search comparison matrix ── */
.search-matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); }
.search-matrix { width: 100%; border-collapse: collapse; min-width: 320px; font-variant-numeric: tabular-nums; }
.search-matrix th,
.search-matrix td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.search-matrix thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.matrix-label-col { position: sticky; left: 0; z-index: 3; background: var(--surface-2); min-width: 120px; }
.matrix-building-col { min-width: 160px; text-align: center; }
.matrix-building-name { font-family: var(--font-sans); font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; line-height: 1.25; }
.matrix-building-name:hover { color: var(--brand-ink); }
.matrix-label { font-weight: 700; color: var(--ink-2); font-size: .86rem; white-space: nowrap; position: sticky; left: 0; background: var(--canvas); z-index: 1; border-right: 1px solid var(--line); }
.matrix-value { font-size: .92rem; color: var(--ink); text-align: center; }
.matrix-value .fact-none { color: var(--ink-4); font-weight: 600; }
.matrix-value .fact-value.brand { color: var(--brand); font-size: 1rem; }
.search-matrix tbody tr:last-child td { border-bottom: 0; }
.search-matrix tbody tr:hover td { background: var(--surface-2); }

.filter-disclosure-mobile { display: none; }

@media (max-width: 600px) {
    .matrix-label-col { min-width: 100px; }
    .matrix-building-col { min-width: 140px; }
    .search-matrix th,
    .search-matrix td { padding: 10px 12px; font-size: .86rem; }
    .filter-disclosure-mobile { display: flex; margin-bottom: 12px; }
    .filter-grid--collapsed { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
    :root { scrollbar-color: auto; }
}

/* ── Expert comparison desk ── */
.desk-intro { padding: var(--space-content) 0 var(--space-content); }
.desk-intro-head { margin-bottom: var(--space-content); }
.desk-intro .section-title { font-family: var(--font-display); }
.desk-intro .section-sub { color: var(--muted); margin-top: 6px; max-width: 640px; font-size: .95rem; }

.desk-intro .hero-eyebrow { background: var(--brand-soft); border-color: rgba(23,107,77,.3); color: var(--brand-ink); }
.desk-intro .hero-eyebrow .icon { color: var(--primary); }
.desk-intro .hero-search { background: var(--surface); border-color: var(--line); }
.desk-intro .hero-search .pill { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); }
.desk-intro .hero-search .pill:hover { border-color: var(--primary); }
.desk-intro .hero-search .pill:has(input:checked) { background: var(--primary); border-color: var(--primary); color: var(--canvas); }

.desk-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 0; }
.desk-scale { position: sticky; top: 80px; }
.desk-scale-title { font-family: var(--font-display); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); font-weight: 700; margin-bottom: 14px; }
.desk-scale-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.desk-scale-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-left: 3px solid var(--line); transition: border-color .15s, background .15s; }
.desk-scale-step.is-active { border-left-color: var(--primary); background: var(--brand-soft); border-radius: 0 8px 8px 0; }
.desk-scale-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--ink-4); font-weight: 700; font-size: .78rem; font-family: var(--font-mono); flex-shrink: 0; }
.desk-scale-step.is-active .desk-scale-num { background: var(--primary); color: var(--canvas); }
.desk-scale-label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.desk-scale-step.is-active .desk-scale-label { color: var(--brand-ink); font-weight: 700; }
.desk-scale-stat { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); text-align: center; }
.desk-scale-stat-num { display: block; font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.desk-scale-stat-label { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }

.desk-modules { display: flex; flex-direction: column; gap: var(--space-section); }
.desk-module { }

@media (max-width: 900px) {
    .desk-layout { grid-template-columns: 1fr; }
    .desk-scale { position: static; }
    .desk-scale-list { flex-direction: row; overflow-x: auto; gap: 0; }
    .desk-scale-step { border-left: none; border-bottom: 3px solid var(--line); border-radius: 0 0 8px 8px; padding: 10px 14px; min-width: 120px; flex-shrink: 0; }
    .desk-scale-step.is-active { border-bottom-color: var(--primary); background: var(--brand-soft); border-radius: 8px 8px 0 0; }
}

/* ── Comparison matrix ── */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 320px; font-variant-numeric: tabular-nums; }
.compare-table th,
.compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.compare-label-col { position: sticky; left: 0; z-index: 3; background: var(--surface-2); min-width: 140px; }
.compare-building-col { min-width: 180px; text-align: center; }
.compare-building-name { font-family: var(--font-sans); font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; line-height: 1.25; }
.compare-building-name:hover { color: var(--brand-ink); }
.compare-label { font-weight: 700; color: var(--ink-2); font-size: .88rem; white-space: nowrap; position: sticky; left: 0; background: var(--canvas); z-index: 1; border-right: 1px solid var(--line); }
.compare-value { font-size: .95rem; color: var(--ink); text-align: center; }
.compare-value--price .fact-value.brand { font-size: 1.08rem; }
.compare-value .fact-none { color: var(--ink-4); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover td { background: var(--surface-2); }

.building-card-compare { margin-top: 8px; }
.compare-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--target); padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--canvas); color: var(--ink-2); font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s; font: inherit; }
.compare-link:hover { border-color: var(--primary); color: var(--brand-ink); }
.compare-link .icon { font-size: 1.1em; }

@media (max-width: 600px) {
    .compare-label-col { min-width: 110px; }
    .compare-building-col { min-width: 150px; }
    .compare-table th,
    .compare-table td { padding: 10px 12px; font-size: .88rem; }
}

/* ── Account cabinet table ── */
.acct-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--canvas); box-shadow: var(--shadow-sm); }
.acct-table { width: 100%; border-collapse: collapse; min-width: 320px; font-variant-numeric: tabular-nums; }
.acct-table th,
.acct-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.acct-table thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; position: sticky; top: 0; z-index: 2; }
.acct-label-col { position: sticky; left: 0; z-index: 3; background: var(--surface-2); min-width: 120px; }
.acct-building-col { min-width: 160px; text-align: center; }
.acct-building-name { font-family: var(--font-sans); font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; line-height: 1.25; }
.acct-building-name:hover { color: var(--brand-ink); }
.acct-label { font-weight: 700; color: var(--ink-2); font-size: .86rem; white-space: nowrap; position: sticky; left: 0; background: var(--canvas); z-index: 1; border-right: 1px solid var(--line); }
.acct-value { font-size: .92rem; color: var(--ink); text-align: center; }
.acct-value .fact-none { color: var(--ink-4); font-weight: 600; }
.acct-value .fact-value.brand { color: var(--brand); font-size: 1rem; }
.acct-table tbody tr:last-child td { border-bottom: 0; }
.acct-table tbody tr:hover td { background: var(--surface-2); }

/* ── Account inquiry table ── */
.acct-inq-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.acct-inq-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.acct-inq-table th,
.acct-inq-table td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.acct-inq-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; }
.acct-inq-obj { min-width: 140px; }
.acct-inq-date { white-space: nowrap; }
.acct-inq-status { white-space: nowrap; }
.acct-inq-table tbody tr:last-child td { border-bottom: 0; }
.acct-inq-table tbody tr:hover td { background: var(--surface-2); }
.acct-inq-table a { color: var(--ink); text-decoration: none; font-weight: 600; }
.acct-inq-table a:hover { color: var(--brand-ink); }

@media (max-width: 600px) {
    .acct-label-col { min-width: 100px; }
    .acct-building-col { min-width: 140px; }
    .acct-table th,
    .acct-table td { padding: 10px 12px; font-size: .86rem; }
}

/* ── Journal registry ── */
.journal-registry-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.journal-registry { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.journal-registry th,
.journal-registry td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.journal-registry thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; white-space: nowrap; }
.journal-registry-date { width: 110px; white-space: nowrap; font-family: var(--font-mono); font-size: .88rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.journal-registry-title { font-weight: 700; }
.journal-registry-title a { color: var(--ink); text-decoration: none; transition: color .15s; }
.journal-registry-title a:hover { color: var(--brand-ink); }
.journal-registry-annotation { color: var(--muted); font-size: .92rem; line-height: 1.5; max-width: 520px; }
.journal-registry tbody tr:last-child td { border-bottom: 0; }
.journal-registry tbody tr:hover td { background: var(--surface-2); }
.journal-registry tbody tr:focus-within td { background: var(--brand-soft); }

.journal-article { max-width: 68ch; margin: 0 auto; }
.journal-article-body { margin-top: 18px; }

@media (max-width: 600px) {
    .journal-registry-date { width: 90px; padding: 10px 12px; font-size: .82rem; }
    .journal-registry-title,
    .journal-registry-annotation { padding: 10px 12px; font-size: .88rem; }
    .journal-registry-annotation { max-width: none; }
}

/* ── Promotions ── */
.promos-wrap { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.promo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.promo-card-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.promo-badge { display: inline-block; background: var(--signal); color: var(--ink); font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.promo-discount { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); font-size: .82rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; font-family: var(--font-mono); }
.promo-title { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.promo-text { margin: 4px 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.promo-period { margin-top: 6px; font-size: .82rem; color: var(--muted); font-family: var(--font-mono); }
.promo-mini { font-size: .86rem; color: var(--ink-2); margin-bottom: 2px; }

/* ── Selection print ── */
.selection-print { background: var(--canvas); color: var(--ink); font-family: var(--font-sans); }
.sel-wrap { max-width: 820px; margin: 0 auto; padding: 32px 24px 64px; }
.sel-header { margin-bottom: 28px; }
.sel-header h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.sel-count { margin: 0; color: var(--muted); font-size: .88rem; }

.sel-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.sel-empty p { margin: 0 0 12px; }
.sel-empty a { color: var(--brand); text-decoration: underline; }

.sel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.sel-card-head { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sel-card-head a { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.sel-card-head a:hover { color: var(--brand-ink); }

.sel-facts { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sel-facts th { text-align: left; padding: 7px 12px 7px 0; font-size: .82rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; vertical-align: top; width: 130px; }
.sel-facts td { padding: 7px 0; font-size: .94rem; color: var(--ink); vertical-align: top; }
.sel-facts tbody tr { border-bottom: 1px solid var(--line); }
.sel-facts tbody tr:last-child { border-bottom: 0; }
.fact-none { color: var(--ink-4); font-size: .88rem; }

.sel-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.sel-contact { margin: 0; color: var(--muted); font-size: .82rem; }

/* ── Building notes ── */
.note-wrap { margin-top: 14px; }
.note-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.note-textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 13px; background: var(--canvas); font: inherit; color: var(--ink); resize: vertical; min-height: 100px; transition: border-color .15s, box-shadow .15s; font-size: .94rem; line-height: 1.55; }
.note-textarea:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px rgba(23,107,77,.14); }
.note-hint { display: block; text-align: right; font-size: .76rem; color: var(--ink-4); margin-top: 4px; }
.note-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.note-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: .78rem; font-weight: 600; margin-bottom: 8px; }
.note-saved { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-line); }

/* ── User lists toggle ── */
.list-toggle-wrap { display: inline-flex; }
.list-btn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--target); padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--canvas); color: var(--ink-2); font: inherit; font-weight: 600; font-size: .84rem; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.list-btn:hover { border-color: var(--primary); }
.list-btn.active { background: var(--primary); border-color: var(--primary); color: var(--canvas); }
.list-icon { font-size: 1.1em; }
.list-label { font-size: .82rem; }

.sel-toolbar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 24px; display: flex; justify-content: center; z-index: 100; }

@media print {
    .no-print { display: none !important; }
    .selection-print { background: #fff; }
    .sel-wrap { max-width: none; padding: 0; }
    .sel-card { border: none; border-bottom: 2px solid #ccc; border-radius: 0; padding: 0 0 16px; margin-bottom: 0; page-break-inside: avoid; }
    .sel-card + .sel-card { margin-top: 24px; }
    .sel-card-head { border-bottom-color: #ccc; }
    .sel-facts th { color: #555; }
    .sel-facts tbody tr { border-bottom-color: #ddd; }
    .sel-footer { border-top-color: #ccc; }
    body::before { content: none; }
}
