:root {
  --bg: #0A0908;
  --panel: #0E0C0A;
  --glass: rgba(10, 9, 8, .72);
  --line: rgba(237, 232, 224, .08);
  --line-strong: rgba(237, 232, 224, .16);
  --text: #EDE8E0;
  --muted: #9E978D;
  --gold: #C8963E;
  --gold-hover: #d8a74f;
  --gold-rgb: 200, 150, 62;
  --gold-tint: rgba(200, 150, 62, .08);
  --gold-line: rgba(200, 150, 62, .35);
  --danger: #C4694F;
  --danger-text: #e0937d;
  --danger-line: rgba(196, 105, 79, .5);
  --hover-bg: rgba(237, 232, 224, .025);
  --input-bg: rgba(237, 232, 224, .03);
  --placeholder: rgba(158, 151, 141, .6);
  --grid-line: rgba(237, 232, 224, .06);
  --ref-ask: rgba(237, 232, 224, .5);
  --ref-sale: rgba(237, 232, 224, .28);
  --guide: rgba(237, 232, 224, .25);
  --flash: rgba(200, 150, 62, .22);
  --shadow: 0 10px 40px rgba(0, 0, 0, .5);
  --scrim: rgba(5, 4, 3, .78);
  --amb1: rgba(200, 150, 62, .22);
  --amb2: rgba(150, 80, 40, .16);
  --amb-opacity: .5;
  color-scheme: dark;
  --serif: "Instrument Serif", "Fraunces", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --rail-w: 360px;
  --header-h: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1); --bnav-h: calc(60px + env(safe-area-inset-bottom)); }
/* light theme: explicit choice, or system preference when no explicit choice */
:root[data-theme="light"] {
  --bg: #F5F0E8;
  --panel: #FBF8F3;
  --glass: rgba(251, 248, 243, .78);
  --line: rgba(26, 23, 20, .10);
  --line-strong: rgba(26, 23, 20, .18);
  --text: #1A1714;
  --muted: #6B645B;
  --gold: #8F6118;
  --gold-hover: #7A5212;
  --gold-rgb: 143, 97, 24;
  --gold-tint: rgba(154, 106, 31, .10);
  --gold-line: rgba(143, 97, 24, .4);
  --danger: #A8452C;
  --danger-text: #9A3B24;
  --danger-line: rgba(168, 69, 44, .45);
  --hover-bg: rgba(26, 23, 20, .035);
  --input-bg: rgba(26, 23, 20, .03);
  --placeholder: rgba(107, 100, 91, .7);
  --grid-line: rgba(26, 23, 20, .07);
  --ref-ask: rgba(26, 23, 20, .5);
  --ref-sale: rgba(26, 23, 20, .3);
  --guide: rgba(26, 23, 20, .25);
  --flash: rgba(154, 106, 31, .2);
  --shadow: 0 10px 30px rgba(60, 40, 10, .15);
  --scrim: rgba(245, 240, 232, .8);
  --amb1: rgba(214, 170, 90, .22);
  --amb2: rgba(220, 150, 100, .14);
  --amb-opacity: .45;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #F5F0E8;
    --panel: #FBF8F3;
    --glass: rgba(251, 248, 243, .78);
    --line: rgba(26, 23, 20, .10);
    --line-strong: rgba(26, 23, 20, .18);
    --text: #1A1714;
    --muted: #6B645B;
    --gold: #8F6118;
    --gold-hover: #7A5212;
    --gold-rgb: 143, 97, 24;
    --gold-tint: rgba(154, 106, 31, .10);
    --gold-line: rgba(143, 97, 24, .4);
    --danger: #A8452C;
    --danger-text: #9A3B24;
    --danger-line: rgba(168, 69, 44, .45);
    --hover-bg: rgba(26, 23, 20, .035);
    --input-bg: rgba(26, 23, 20, .03);
    --placeholder: rgba(107, 100, 91, .7);
    --grid-line: rgba(26, 23, 20, .07);
    --ref-ask: rgba(26, 23, 20, .5);
    --ref-sale: rgba(26, 23, 20, .3);
    --guide: rgba(26, 23, 20, .25);
    --flash: rgba(154, 106, 31, .2);
    --shadow: 0 10px 30px rgba(60, 40, 10, .15);
    --scrim: rgba(245, 240, 232, .8);
    --amb1: rgba(214, 170, 90, .22);
    --amb2: rgba(220, 150, 100, .14);
    --amb-opacity: .45;
    color-scheme: light;
  }
}

* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--bg); }

/* ambient warm gradient, CSS only */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; border-radius: 50%;
  filter: blur(120px); opacity: var(--amb-opacity); will-change: transform;
}
.ambient::before { top: -30vw; right: -15vw; background: radial-gradient(circle, var(--amb1), transparent 65%); animation: drift 40s ease-in-out infinite alternate; }
.ambient::after { bottom: -35vw; left: 10vw; background: radial-gradient(circle, var(--amb2), transparent 65%); animation: drift 55s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(-8vw, 6vw, 0) scale(1.15); } }

#root { position: relative; z-index: 1; min-height: 100vh; }

/* shared bits */
.eyebrow { font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.italic { font-family: var(--serif); font-style: italic; letter-spacing: -.01em; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: border-color .2s, background .2s, color .2s; min-height: 44px; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn.primary { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 600; }
.btn.primary:hover { background: var(--gold-hover); color: var(--bg); }
.btn.big { padding: 15px 30px; font-size: 16px; }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-btn { font-size: 14px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.link-btn:hover { color: var(--gold); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise > * { animation: rise .8s var(--ease) both; }
.rise > *:nth-child(2) { animation-delay: .08s; }
.rise > *:nth-child(3) { animation-delay: .16s; }
.rise > *:nth-child(4) { animation-delay: .24s; }
.rise > *:nth-child(5) { animation-delay: .32s; }

/* login / landing (before sign-in). Photos are only referenced by the login view, never after sign-in. */
.login { position: relative; isolation: isolate; min-height: 100dvh; display: grid; place-items: start center; text-align: center; padding: 72px 18px calc(24px + env(safe-area-inset-bottom)); }
.login .logo { position: absolute; top: 28px; left: 48px; }
.login h1 { font-size: clamp(36px, 10vw, 56px); line-height: .98; margin: 18px 0 22px; }
.login p.lead { font-size: 17px; line-height: 1.5; color: var(--text); opacity: .86; max-width: 640px; margin: 0 auto 40px; margin-bottom: 28px; }
.login-inner { max-width: 1040px; width: 100%; }
.login-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.hero-layer { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-layer.l1 { background-image: url("data:image/webp;base64,UklGRm4AAABXRUJQVlA4IGIAAAAQBACdASoYAA8APu1iqU2ppaOiMAgBMB2JYgCdAB9Ef5fd2r4CpWkOAAD8tJyeupgp4OiUJLsXqlqlJZxUN6HWTvOQVd4vWwruGYQzTtL4q5Ki6FUVUQmo1HDsKlxIObdAAA=="); }
.hero-layer.l2 { background-image: url("data:image/webp;base64,UklGRoQAAABXRUJQVlA4IHgAAACQBACdASoYAA8APu1iqk2ppaQiMAgBMB2JYgCdMoRwACIfp0aM9POuXhjZBwAA/nTqXG8zFlh9VAZyXCNoL61+PcNN1mobqWi1ZB3ZO2K/G8rHIy5wusrUYHXJ+Q4P39GBEHnQWpKvN+ZmPntOnOHryJjiagA0QAA="); opacity: 0; }
.hero-layer picture, .hero-layer img { display: block; width: 100%; height: 100%; }
.hero-layer img { object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.hero-layer.loaded img { opacity: 1; }
.login-bg.fade .l1 { animation: heroA 24s ease-in-out infinite; will-change: opacity; }
.login-bg.fade .l2 { animation: heroB 24s ease-in-out infinite; will-change: opacity; }
@keyframes heroA { 0%, 38% { opacity: 1; } 50%, 88% { opacity: 0; } 100% { opacity: 1; } }
@keyframes heroB { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
.login-scrim { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 46%, rgba(10, 9, 8, .55), rgba(10, 9, 8, .86) 100%), linear-gradient(180deg, rgba(10, 9, 8, .45), rgba(10, 9, 8, .7)); }
:root[data-theme="light"] .login-scrim { background: radial-gradient(ellipse 70% 60% at 50% 46%, rgba(245, 240, 232, .74), rgba(245, 240, 232, .92) 100%), linear-gradient(180deg, rgba(245, 240, 232, .5), rgba(245, 240, 232, .78)); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .login-scrim { background: radial-gradient(ellipse 70% 60% at 50% 46%, rgba(245, 240, 232, .74), rgba(245, 240, 232, .92) 100%), linear-gradient(180deg, rgba(245, 240, 232, .5), rgba(245, 240, 232, .78)); }
}
.login .login-live { margin: 0 auto 24px; font-size: 14px; color: var(--muted); }
.login-feats { list-style: none; padding: 0; margin: 0 auto 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1040px; flex-direction: column; margin-bottom: 28px; }
.login-feats li { padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: left; font-size: 14px; line-height: 1.4; color: var(--muted); flex: 1 1 0; min-width: 0; }
.login-feats b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.login .login-note { margin: 18px auto 0; font-size: 13px; color: var(--muted); opacity: 1; max-width: none; }
.login-foot { margin-top: 36px; font-size: 12.5px; color: var(--muted); }
.login-foot a { color: var(--muted); }
.gate h1 { font-size: clamp(44px, 5vw, 64px); }
.gate .lead { margin-bottom: 28px; }

/* header */
.logo { font-family: var(--serif); font-size: 28px; letter-spacing: -.02em; line-height: 1; }
.logo span { color: var(--gold); }
.app-header {
  position: sticky; top: 0; z-index: 20; height: calc(var(--header-h) + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: flex-start; padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); gap: 8px; transition: height .2s var(--ease); }
.header-right { display: none; align-items: center; gap: 22px; }
.who { font-size: 14px; color: var(--muted); }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.rail {
  position: sticky; top: auto; height: 62dvh;
  display: flex; flex-direction: column; background: var(--panel);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-right: 1px solid var(--line);
}
.rail-head { padding: 4px 20px 8px; }
.rail-filter { width: 100%; margin-top: 12px; }
.tree-head { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; color: var(--text); border-bottom: 1px solid var(--line); border-left: 2px solid transparent; transition: background .2s; cursor: pointer; user-select: none; min-height: 48px; }
.tree-head:hover { background: var(--hover-bg); }
.tree-head.sel { background: var(--gold-tint); border-left-color: var(--gold); }
.tree-head:focus-visible, .prop-row:focus-visible { outline: 1px solid var(--gold); outline-offset: -2px; }
.lvl0 > .tree-head { padding: 14px 24px 14px 22px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding-right: 20px; }
.lvl1 > .tree-head { padding: 14px 24px 14px 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding-right: 20px; }
.lvl2 > .tree-head { padding: 10px 24px 10px 26px; font-size: 13px; font-weight: 500; color: var(--muted); }
.lvl2 > .tree-head.sel { color: var(--text); }
.tree-label { flex: none; }
.tree-count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.tree-head .dot { flex: none; }
.chev { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -8px 0; border-radius: 6px; color: var(--muted); transition: transform .2s var(--ease), background .2s, color .2s; }
.chev:hover { background: var(--line); color: var(--text); }
.tree-group.open > .tree-head > .chev { transform: rotate(90deg); }
.tree-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .22s var(--ease), opacity .22s var(--ease); }
.tree-group.open > .tree-body { grid-template-rows: 1fr; opacity: 1; }
.tree-inner { overflow: hidden; min-height: 0; }
.lvl2 .prop-row { padding-left: 44px; }
.lvl2 .prop-addr { font-size: 20px; }
.tree-body .rail-empty { padding: 14px 24px 18px; font-size: 14px; }
.rail-list { flex: none; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; overflow: visible; }
.prop-row {
  display: block; width: 100%; text-align: left; padding: 16px 20px;
  border-bottom: 1px solid var(--line); border-left: 2px solid transparent;
  transition: background .2s;
}
.prop-row:hover { background: var(--hover-bg); }
.prop-row.sel { background: var(--gold-tint); border-left-color: var(--gold); }
.prop-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.prop-addr { font-family: var(--serif); font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.prop-meta { margin-top: 6px; font-size: 11px; }
.prop-nums { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); }
.prop-nums .top { color: var(--gold); font-weight: 600; }
.prop-nums .top small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.rail-empty { padding: 32px 24px; color: var(--muted); font-size: 15px; }
.rail-add { padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.rail-add form { display: flex; gap: 8px; margin-top: 10px; }
.rail-add form input { flex: 1; min-width: 0; }
.rail-add form .btn { flex: none; white-space: nowrap; border-radius: 999px; padding: 10px 16px; }

.pill {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.pill.bidding { color: var(--gold); border-color: var(--gold-line); background: var(--gold-tint); }
.pill.active { color: var(--text); }
.pill.sold { opacity: .7; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb),.6); } 100% { box-shadow: 0 0 0 9px rgba(var(--gold-rgb),0); } }

input[type=text], input[type=search], input[type=datetime-local], textarea {
  width: 100%; background: var(--input-bg); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 9px 12px; font-size: 14px; transition: border-color .2s;
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, textarea:focus { outline: none; border-color: var(--gold); }

/* main */
.main { padding: 18px max(16px, env(safe-area-inset-right)) calc(var(--bnav-h) + 24px) max(16px, env(safe-area-inset-left)); max-width: 1180px; width: 100%; }
.hero h1 { font-size: clamp(32px, 9vw, 42px); line-height: 1.05; margin: 12px 0 16px; }
.hero-facts { display: grid; gap: 20px 16px; margin-top: 22px; grid-template-columns: 1fr 1fr; }
.fact .k { font-size: 11px; }
.fact .v { font-family: var(--serif); font-size: 24px; letter-spacing: -.02em; line-height: 1.2; margin-top: 4px; }
.hero-links { display: flex; gap: 10px 18px; align-items: center; margin-top: 28px; font-size: 14px; flex-wrap: wrap; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 640px; line-height: 1.4; }
.confirm { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; }

section.block { margin-top: 48px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 12px; flex-direction: column; }
.block-head h2 { font-size: 28px; line-height: 1.05; margin-top: 6px; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.chart-wrap { position: relative; padding: 8px 0 4px; margin-inline: -8px; }
.chart-wrap svg { display: block; width: 100%; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; padding-bottom: 20px; }
.chart-empty .italic { font-size: 28px; color: var(--text); }
.chart-empty .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 180px; padding: 12px 14px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13px; line-height: 1.5;
  opacity: 0; transition: opacity .12s;
}
.tip.on { opacity: 1; }
.tip .amt { font-family: var(--serif); font-size: 26px; color: var(--gold); line-height: 1.1; letter-spacing: -.02em; }
.tip .row { color: var(--muted); }
.grid-line { stroke: var(--grid-line); }
.ref-ask { stroke: var(--ref-ask); }
.ref-sale { stroke: var(--ref-sale); }
.guide { stroke: var(--guide); }
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); transition: border-color .2s, color .2s; }
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.login .theme-toggle { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 14px; }
.ax text { fill: var(--muted); font: 400 12px var(--sans); }
.ref-label { fill: var(--muted); font: 500 12px var(--sans); paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }

table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th { text-align: left; padding: 0 16px 12px 0; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.t td { padding: 3px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; display: block; width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border: 0; text-align: right; }
.t th.r, .t td.r { text-align: right; padding-right: 0; }
.t td.amt { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; }
.t tr.latest td.amt { color: var(--gold); }
.t .inc { color: var(--gold); }
.t td.del { width: auto; text-align: right; padding-right: 0; justify-content: flex-end; }
.bids-table { margin-top: 36px; }
tr.flash td { animation: flash 3.2s ease-out; }
@keyframes flash { 0%, 30% { background: var(--flash); } 100% { background: transparent; } }
.empty-line { padding: 28px 0; color: var(--muted); }

.bid-form-wrap { margin-top: 32px; }
.bid-form { margin-top: 18px; padding: 18px; display: grid; grid-template-columns: 1fr; gap: 18px 20px; animation: rise .5s var(--ease) both; }
.bid-form label { display: block; font-size: 11px; margin-bottom: 6px; }
.bid-form .span2 { grid-column: auto; }
.bid-form .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 5px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.seg input:checked + span { background: var(--gold-tint); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.hint { font-size: 13px; color: var(--muted); }

/* timeline */
.tl { position: relative; margin-left: 6px; }
.tl-group { position: relative; padding: 0 0 36px 40px; padding-left: 32px; }
.tl-group::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: -4px; width: 1px; background: var(--line-strong); }
.tl-group:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); }
.tl-group.latest .tl-dot { border: 2px solid var(--gold); box-shadow: 0 0 0 5px var(--gold-tint); width: 13px; height: 13px; left: -1px; top: 8px; }
.tl-date { font-family: var(--serif); font-size: 22px; letter-spacing: -.02em; line-height: 1.3; }
.tl-item { color: var(--muted); font-size: 15px; }
.tl-item b { color: var(--text); font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 36px; }
.stat { background: var(--panel); padding: 22px 24px; }
.stat .v { font-family: var(--serif); font-size: 30px; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.stat .s { font-size: 13px; color: var(--muted); }

.empty-main { display: grid; place-items: center; text-align: center; min-height: 50vh; padding: 24px 8px; }
.empty-main h2 { font-size: 32px; line-height: 1.05; margin-bottom: 14px; }

/* toasts + modal */
.toasts { position: fixed; bottom: calc(var(--bnav-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: center; max-width: calc(100vw - 24px); }
.toast {
  padding: 12px 20px; border-radius: 999px; font-size: 14px; background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-strong);
  animation: rise .35s var(--ease) both; box-shadow: var(--shadow);
}
.toast.ok { border-color: var(--gold-line); color: var(--gold); }
.toast.err { border-color: var(--danger-line); color: var(--danger-text); }
.modal-bg { position: fixed; inset: 0; z-index: 85; background: var(--scrim); backdrop-filter: blur(6px); display: grid; place-items: stretch; }
.modal { width: 100vw; max-width: 100vw; height: 100dvh; display: flex; flex-direction: column; background: var(--panel); border: 0; border-radius: 0; overflow: hidden; animation: rise .4s var(--ease) both; max-height: 100dvh; padding-top: env(safe-area-inset-top); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); gap: 24px; }
.modal-head h3 { font-size: 24px; line-height: 1.1; }
.modal iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); }
.skeleton { color: var(--muted); font-style: italic; font-family: var(--serif); }

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

.quota { margin-top: 14px; font-size: 11.5px; letter-spacing: .02em; color: var(--muted); min-height: 1em; }
.quota.warn { color: var(--gold); }

/* breadcrumb */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.crumb a { text-decoration: none; color: var(--muted); transition: color .2s; }
.crumb a:hover { color: var(--gold); }
.crumb [aria-current] { color: var(--text); }

/* group card view */
.main.wide { max-width: none; padding: 18px max(16px, env(safe-area-inset-right)) calc(var(--bnav-h) + 24px) max(16px, env(safe-area-inset-left)); }
.gv-head .gv-title { display: flex; align-items: baseline; gap: 8px 14px; margin-top: 8px; flex-wrap: wrap; }
.gv-head h1 { font-size: clamp(30px, 8.5vw, 40px); line-height: 1.02; }
.gv-count { font-size: 14px; color: var(--muted); }
.gv-stats { display: flex; gap: 14px 28px; margin-top: 22px; flex-wrap: wrap; }
.gv-stats .v { font-size: 24px; }
.gv-bar { display: flex; align-items: center; gap: 10px; margin: 22px -16px 14px; padding: 0 16px; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.seg-sort { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.seg-sort button { padding: 4px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); transition: background .2s, color .2s; min-height: 40px; }
.seg-sort button:hover { color: var(--text); }
.seg-sort button[aria-pressed="true"] { background: var(--gold-tint); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.gv-empty { padding: 48px 0; font-size: 18px; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.card {
  display: flex; flex-direction: column; padding: 20px 18px 16px; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover { transform: none; border-color: var(--gold-line); box-shadow: var(--shadow); }
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 14px; }
.card.bidding { border-color: var(--gold-line); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-addr { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 400; }
.card-meta { margin-top: 8px; font-size: 11px; }
.card-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.card-figs .k { font-size: 10px; }
.card-figs .v { font-family: var(--serif); font-size: 22px; letter-spacing: -.02em; line-height: 1.25; margin-top: 2px; white-space: nowrap; }
.card-figs .v.none { font-family: var(--sans); font-size: 14px; letter-spacing: 0; line-height: 1.9; }
.card-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* bevakningar */
.tree-head.leaf .tree-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nya { flex: none; padding: 1px 8px; border: 1px solid var(--gold-line); border-radius: 999px; background: var(--gold-tint); color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.pill.new { color: var(--gold); border-color: var(--gold-line); background: var(--gold-tint); font-weight: 600; }
.card-pills { display: inline-flex; gap: 8px; align-items: center; }
.gv-summary { margin-top: 14px; max-width: 70ch; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---- Fråga din LLM: settings modal + slide-over chat ---- */
input[type=password] {
  width: 100%; padding: 11px 14px; background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: 10px; font-size: 16px; min-height: 44px; }
input[type=password]:focus { outline: none; border-color: var(--gold); }
.llm-body select, .llm-body input[type=text] { width: 100%; padding: 11px 14px; background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: 10px; font-size: 15px; }
.llm-body select:focus, .llm-body input:focus { outline: none; border-color: var(--gold); }
.llm-body select option { background: var(--panel); color: var(--text); }
.modal.sm { width: 100vw; height: 100dvh; max-height: 100dvh; overflow-y: auto; max-width: 100vw; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); }
.llm-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; line-height: 1.55; }
.llm-body form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.llm-body form .eyebrow { margin-top: 8px; }
.llm-body a { color: var(--gold); }
.llm-body .hint, .chat-panel .hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.llm-status { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.llm-model-row { display: flex; gap: 10px; align-items: center; }
.llm-model-row .btn { white-space: nowrap; flex: none; }
.llm-err { min-height: 1.2em; color: var(--danger-text); font-size: 13px; }
.llm-actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.ask-llm { border-color: var(--gold-line); color: var(--gold); }
.gv-title .ask-llm { margin-left: 0; align-self: center; }

.chat-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 100%; z-index: 80; display: flex; flex-direction: column;
  background: var(--panel); border-left: 0; box-shadow: var(--shadow); animation: sheet-up .3s var(--ease) both; left: 0; height: 100dvh; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
@keyframes chat-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.chat-head > div:first-child { min-width: 0; }
.chat-chip { margin-top: 6px; display: inline-block; max-width: 100%; padding: 3px 12px; border: 1px solid var(--gold-line); background: var(--gold-tint); color: var(--gold); border-radius: 999px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-model { margin-top: 6px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head-actions { display: flex; gap: 4px; align-items: center; flex: none; }
.chat-x { font-size: 28px; line-height: 1; color: var(--muted); padding: 0 4px; min-width: 44px; min-height: 44px; }
.chat-x:hover { color: var(--gold); }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-setup { padding: 32px 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.chat-setup h3 { font-size: 30px; color: var(--text); line-height: 1.1; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.bubble { max-width: 92%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.msg.user .bubble { background: var(--gold-tint); border: 1px solid var(--gold-line); }
.msg.assistant .bubble { background: var(--input-bg); border: 1px solid var(--line); max-width: 100%; }
.bubble.md > *:first-child { margin-top: 0; } .bubble.md > *:last-child { margin-bottom: 0; }
.bubble.md p { margin: 0 0 8px; } .bubble.md h4 { font-size: 14px; margin: 10px 0 4px; }
.bubble.md ul, .bubble.md ol { margin: 0 0 8px; padding-left: 20px; }
.bubble.md code { font-size: 12.5px; background: var(--hover-bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.bubble.md pre { margin: 0 0 8px; padding: 10px; overflow-x: auto; background: var(--hover-bg); border-radius: 8px; font-size: 12.5px; line-height: 1.5; }
.bubble.md pre code { border: 0; background: none; padding: 0; }
.md-table { overflow-x: auto; margin: 0 0 8px; }
.md-table table { border-collapse: collapse; font-size: 12.5px; width: 100%; }
.md-table th, .md-table td { border-bottom: 1px solid var(--line); padding: 5px 8px; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.md-table th { color: var(--muted); font-weight: 600; }
.msg-note { margin-top: 6px; font-size: 12px; color: var(--muted); font-style: italic; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-error { border: 1px solid var(--danger-line); color: var(--danger-text); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.chat-error-actions { margin-top: 4px; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-suggest:empty { display: none; }
.chip { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; text-align: left; color: var(--text); transition: border-color .2s, color .2s; min-height: 40px; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chat-compose { display: flex; gap: 10px; align-items: flex-end; padding: 12px 18px 18px; border-top: 1px solid var(--line); padding-bottom: 14px; }
.chat-compose textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; font-size: 16px; }
.chat-compose[hidden], .chat-compose [hidden] { display: none !important; }


.hit { outline: none; cursor: pointer; }
.ax-note { fill: var(--muted); font-size: 11.5px; font-style: italic; }
.tip .row.muted { color: var(--muted); font-size: 12px; }

/* BRF flags */
.flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.card .flags { margin: 12px 0 0; gap: 6px; }
.flag { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.flag.good { color: var(--gold); border-color: var(--gold-line); background: var(--gold-tint); }
.flag.warn { color: var(--danger-text); border-color: var(--danger-line); }

/* brand logo */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { display: block; height: 30px; width: auto; transition: height .2s var(--ease); }
.login .logo { position: absolute; top: 28px; left: 48px; }
.login-inner .logo-login { display: block; width: 170px; height: auto; margin: 0 auto 22px; }
.sso { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; margin: 0 auto; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 20px; border-radius: 999px; font: 600 16px var(--sans); text-decoration: none; border: 1px solid transparent; transition: transform .15s var(--ease), box-shadow .2s; }
.sso-btn:active { transform: scale(.985); }
.sso-btn svg { width: 20px; height: 20px; flex: none; }
.sso-btn.google { background: light-dark(#fff, #131314); color: light-dark(#1f1f1f, #e3e3e3); border-color: light-dark(#747775, #8e918f); }
.sso-btn.microsoft { background: light-dark(#fff, #2f2f2f); color: light-dark(#5e5e5e, #fff); border-color: light-dark(#8c8c8c, #2f2f2f); }
.sso-btn.apple { background: light-dark(#000, #fff); color: light-dark(#fff, #000); border-color: light-dark(#000, #fff); }
.sso-btn:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.skeleton.lg { font-size: 28px; }
.v.status-v { display: flex; align-items: center; height: 43px; }
#rm-slot { margin-left: 0; }
.mt18 { margin-top: 18px; }
.cards.mt36 { margin-top: 36px; }

/* previous sales in the bid chart */
.sale-diamond { fill: var(--panel); stroke: var(--ref-ask); stroke-width: 1.5; }
.sale-hit:hover .sale-diamond, .sale-hit:focus .sale-diamond { fill: var(--gold); stroke: var(--gold); }
.sale-chip { fill: var(--panel); stroke: var(--line-strong); }
.sale-hit:hover .sale-chip, .sale-hit:focus .sale-chip { stroke: var(--gold); }
.sale-chip-text { fill: var(--muted); font: 500 11.5px var(--sans); }
.tip .up { color: var(--gold); } .tip .down { color: var(--danger-text); }
.chart-summary { margin-top: 10px; font-size: 14px; color: var(--muted); }
.chart-summary b { color: var(--text); font-weight: 600; }
.up-text { color: var(--gold); } .down-text { color: var(--danger-text); }

/* Slutpriser */
.card.sold .sold-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.card.sold .sold-meta b { color: var(--text); font-weight: 600; display: block; }

/* subscription prompts */
.chat-setup { overflow-y: auto; }
.setup-path p { margin: 4px 0 8px; font-size: 14px; }
.sub-prompts { margin: 0 18px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--input-bg); width: calc(100% - 36px); }
.chat-setup .sub-prompts { margin: 0; width: 100%; }
.sub-prompts summary { cursor: pointer; padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--gold); list-style: none; }
.sub-prompts summary::-webkit-details-marker { display: none; }
.sub-prompts summary::before { content: "▸ "; }
.sub-prompts[open] summary::before { content: "▾ "; }
.sub-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.sub-body .chat-suggest { padding: 0; }
.sub-body textarea { width: 100%; resize: vertical; min-height: 64px; font-size: 14px; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-actions .btn { padding: 7px 14px; font-size: 13px; }

/* remove / hide actions, notes */
.tree-leaf { position: relative; }
.card-wrap { position: relative; display: flex; }
.card-wrap > .card { flex: 1; min-width: 0; }
.row-x { position: absolute; top: 10px; right: 10px; z-index: 3; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--muted); font-size: 16px; line-height: 1; opacity: 0; transition: opacity .15s, color .15s, border-color .15s; }
.row-x.txt { font-size: 12px; font-weight: 600; }
.tree-leaf:hover .row-x, .tree-leaf:focus-within .row-x, .card-wrap:hover .row-x, .card-wrap:focus-within .row-x, .row-x:focus-visible { opacity: 1; }
.row-x:hover { color: var(--danger-text); border-color: var(--danger-line); }
.row-x.txt:hover { color: var(--gold); border-color: var(--gold-line); }
.row-confirm { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--panel); border-top: 1px solid var(--danger-line); font-size: 13px; }
.card-wrap .row-confirm { border: 1px solid var(--danger-line); border-radius: 0 0 14px 14px; }
.row-confirm small { display: block; color: var(--muted); font-size: 11.5px; }
.row-confirm-btns { display: flex; gap: 14px; flex: none; }
.is-hidden { opacity: .55; }
.hidden-slot { margin-top: 10px; }
.prop-flags { display: inline-flex; align-items: center; gap: 8px; }
.note-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); }
.card-top .note-badge { margin-left: auto; }
.note-form { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.note-form textarea, .notes-list textarea { width: 100%; resize: vertical; }
.note-form .actions { display: flex; align-items: center; gap: 14px; }
.note-form .hint, .notes-list .hint { font-size: 12.5px; color: var(--muted); }
.notes-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.note { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.note-text { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-actions { margin-top: 10px; display: flex; gap: 16px; align-items: center; }

.chart-ph { height: 260px; }
.gate-actions { display: flex; gap: 22px; align-items: center; justify-content: center; }


/* privacy page */
  .policy { max-width: 720px; margin: 0 auto; padding: 96px 24px 120px; }
  .policy h1 { font-size: 64px; margin: 12px 0 32px; }
  .policy h2 { font-family: var(--serif, 'Instrument Serif', serif); font-weight: 400; font-size: 28px; margin: 40px 0 8px; }
  .policy p, .policy li { color: var(--muted); }
  .policy ul { padding-left: 20px; }
  .policy a { color: var(--gold); }
.policy-logo { height: 36px; width: auto; display: block; }
.policy-updated { margin-top: 48px; }

/* admin */
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 8px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--bg); font-size: 11px; font-weight: 700; line-height: 1; }
.badge[hidden] { display: none; }
#admin-link { text-decoration: none; display: inline-flex; align-items: center; }
.admin-table { margin-top: 32px; }
.uacts { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
.ustatus { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.ustatus.pending { color: var(--gold); border-color: var(--gold-line); background: var(--gold-tint); }
.ustatus.rejected { color: var(--danger-text); border-color: var(--danger-line); }
.ref-final { stroke: var(--gold); }
.sold-note { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.psqm { margin-top: 2px; font-size: 12px; color: var(--muted); }
.psqm.gold { color: var(--gold); }
.hero-facts .fact .sold-note { max-width: 200px; }
.bq-form { margin-top: 24px; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: end; }
.bq-form .span2 { grid-column: auto; }
.bq-form input[type=number], .bq-form select { width: 100%; }
.bq-form .actions { grid-column: auto; display: flex; align-items: center; gap: 14px; }
.bq-form .hint, .bq-pause .hint { font-size: 12.5px; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.gv-stats small { font-size: 14px; color: var(--muted); }

/* app is a fixed desktop layout; the landing, gate and privacy pages are responsive */
html.signed-in .login[data-static], html.signed-in .seo-faq { display: none; }
.login-feats h2 { display: block; margin: 0; color: var(--text); font: 600 14px/1.4 var(--sans); letter-spacing: 0; }
.seo-faq { position: relative; z-index: 1; background: var(--bg); padding: 56px 20px 72px; border-top: 1px solid var(--line); }
.seo-faq-in { max-width: 760px; margin: 0 auto; }
.seo-faq h2.serif { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin-bottom: 28px; }
.seo-faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.seo-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 20px; line-height: 1; }
.seo-faq details[open] summary::after { content: "\2212"; }
.seo-faq details p { padding: 0 0 18px; color: var(--muted); }
.seo-faq-foot { margin-top: 36px; font-size: 13px; color: var(--muted); }
.seo-faq-foot a { color: var(--muted); }

.bq-form .span3 { grid-column: auto; }

/* global search */
.gsearch { position: relative; flex: 1 1 auto; max-width: none; margin: 0; min-width: 0; }
.gsearch input { width: 100%; padding-right: 14px; border-radius: 999px; height: 44px; font-size: 16px; }
.gs-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 11px var(--sans); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; pointer-events: none; display: none; }
.gsearch:focus-within .gs-kbd { opacity: 0; }
.gs-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; width: 600px; max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.gs-list[hidden] { display: none; }
.gs-opt { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.gs-opt:hover, .gs-opt.act { background: var(--gold-tint); }
.gs-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.gs-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-main .muted { font-size: 12.5px; }
.gs-side { display: flex; align-items: center; gap: 8px; flex: none; font-size: 13px; }
.gs-all, .gs-none { padding: 10px 12px; font-size: 13px; color: var(--gold); cursor: pointer; border-top: 1px solid var(--line); margin-top: 4px; }
.gs-none { color: var(--muted); cursor: default; border: 0; }
.gs-all[aria-selected="true"] { background: var(--gold-tint); border-radius: 10px; }
/* origin tags */
.otags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.otags.sm { margin: 3px 0 0; }
.otag { font-size: 11px; font-weight: 600; line-height: 1.5; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.otag.fav { color: var(--gold); border-color: var(--gold-line); }
.otag.search { color: var(--text); }
.sold-chips button .num { margin-left: 4px; opacity: .7; }
/* resizable rail */
.rail { position: fixed; z-index: 60; bottom: 0; left: 0; width: min(380px, 88vw); padding-top: env(safe-area-inset-top); overscroll-behavior: contain; transform: translateX(-102%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s .28s; left: 0; right: 0; bottom: 0; width: 100%; max-height: calc(100dvh - env(safe-area-inset-top) - 12px); padding-top: 0; border: 0; border-radius: 20px 20px 0 0; box-shadow: var(--shadow); overflow-y: auto; transform: translateY(105%); transition: transform .3s var(--ease), height .25s var(--ease), visibility 0s .3s; }
.rail-handle { position: absolute; top: 0; right: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 30; touch-action: none; display: none; }
.rail-handle::after { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
.rail-handle .grip { position: absolute; z-index: 1; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgba(0,0,0,.16); color: var(--muted); transition: color .15s, border-color .15s, transform .15s; pointer-events: none; }
.rail-handle:hover::after, .rail-handle:focus-visible::after, .rail-handle.drag::after { background: var(--gold-line); }
.rail-handle:hover .grip, .rail-handle:focus-visible .grip, .rail-handle.drag .grip { color: var(--gold); border-color: var(--gold); transform: scale(1.08); }
.rail-handle:focus-visible { outline: none; }
body.rail-dragging { user-select: none; cursor: col-resize; }
body.rail-dragging * { cursor: col-resize !important; }
.main { max-width: none; }
.gs-side .otags { margin: 0; flex-wrap: nowrap; } .gs-side .otag { max-width: 150px; }

.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: bl-spin .8s linear infinite; }
@keyframes bl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } }

.upd { margin-left: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--gold); animation: bl-pulse 1.4s ease-in-out infinite; }
.upd[hidden] { display: none; }
@keyframes bl-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .upd { animation: none; } }

/* address priority: never truncated, wraps instead; pills shrink first */
.gs-opt { align-items: flex-start; }
.gs-main { flex: 1 1 auto; min-width: 150px; }
.gs-main b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.gs-side { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
.gs-side .otags { min-width: 0; flex: 0 1 auto; }
.gs-side .otag { max-width: 150px; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.prop-addr, .card-addr { overflow-wrap: anywhere; }
.prop-top .prop-addr { flex: 1 1 auto; min-width: 0; }
.prop-top .prop-flags { flex: none; }
.otag { cursor: help; }

/* viewings */
.viewing { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 10px; border-radius: 999px; background: var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600; width: fit-content; max-width: 100%; }
.viewing.soon { background: var(--gold-tint); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.v-day { padding: 10px 24px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vtime { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.vtime.soon { color: var(--gold); }
.vtime svg { margin-top: -1px; }
.card-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.flag.link { cursor: pointer; color: var(--gold); border-color: var(--gold-line); }
.flag.link:hover { background: var(--gold-tint); }

.gs-sec { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gs-sec .link-btn { font-size: 12px; text-transform: none; letter-spacing: 0; }

.phase-label { display: block; width: 100%; margin-bottom: 4px; color: var(--gold); }
.hint .phase-label { display: inline; width: auto; margin: 0; }

/* ================= mobile-first: phone styles above; enhancements below ================= */
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: 6px; border-radius: 50%; color: var(--text); flex: none; }
.menu-btn:hover { color: var(--gold); }
body.rail-open .rail { transform: none; visibility: visible; transition: transform .28s var(--ease), visibility 0s; }
.rail-bd { display: block; position: fixed; inset: 0; z-index: 55; background: var(--scrim); }
.rail-bd[hidden] { display: none; }
body.rail-open { overflow: hidden; }
html.scrolled { --header-h: 48px; }
.menu-btn { display: none; }
html.scrolled .logo-img { height: 26px; }
body.gs-open .app-header { z-index: 90; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.gs-open .gsearch { position: fixed; inset: 0; z-index: 90; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; background: var(--bg); padding: calc(env(safe-area-inset-top) + 10px) 12px 12px; }
body.gs-open .gsearch input { flex: 1 1 0; width: auto; }
body.gs-open .gs-cancel { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--gold); font-weight: 600; }
body.gs-open .gs-list { position: static; flex: 1 1 100%; width: 100%; max-height: calc(100dvh - 90px - env(safe-area-inset-top)); border: 0; box-shadow: none; background: transparent; padding: 0; overflow-y: auto; overscroll-behavior: contain; }
body.gs-open .gs-opt { padding: 12px 6px; min-height: 48px; }
body.gs-open { overflow: hidden; }
.gv-bar::-webkit-scrollbar { display: none; }
.gv-bar > * { flex: none; scroll-snap-align: start; }
.t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.t { display: block; width: 100%; }
.t tbody { display: block; width: 100%; }
.t tr { display: block; width: 100%; }
.t tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
.t td::before { content: attr(data-label); font-family: var(--sans); flex: none; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; text-align: left; }
.t td[data-label=""]::before { content: none; }
.bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--bnav-h); padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.bnav a { flex: 1 1 0; min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
.bnav button { flex: 1 1 0; min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
.bnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bnav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.bnav [aria-current="page"] { color: var(--gold); }
body.rail-open .bnav #bnav-more { color: var(--gold); }
.rail[data-snap="full"] { height: calc(100dvh - env(safe-area-inset-top) - 12px); }
body.rail-open .rail { transform: translateY(var(--drag, 0px)); transition: transform .3s var(--ease), height .25s var(--ease), visibility 0s; }
.rail.dragging { transition: none; }
body.rail-open .rail.dragging { transition: none; }
.rail-grab { display: grid; place-items: center; position: sticky; top: 0; z-index: 3; height: 30px; flex: none; background: var(--panel); border-radius: 20px 20px 0 0; touch-action: none; cursor: grab; }
.rail-grab i { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.rail-more { display: block; padding: 18px 20px 8px; border-top: 1px solid var(--line); }
.rail-more-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
input[type=text] { font-size: 16px; min-height: 44px; }
input[type=search] { font-size: 16px; min-height: 44px; }
input[type=number] { font-size: 16px; min-height: 44px; }
input[type=datetime-local] { font-size: 16px; min-height: 44px; }
textarea { font-size: 16px; min-height: 44px; }
select { font-size: 16px; min-height: 44px; }
.login .sso-wrap { position: sticky; bottom: 0; z-index: 2; padding: 16px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--bg) 38%); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.card-wrap { container-type: inline-size; }
@container (max-width: 300px) { .card-addr { font-size: 22px; } .card-figs .v { font-size: 19px; } .card { padding: 18px 16px 14px; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (hover: none) { .row-x { opacity: 1; } }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.seg-sort .sdir { margin-left: 5px; font-weight: 700; }
.gs-cancel { display: none; }

/* viewings by day */
.day-h { font-size: 24px; margin: 26px 0 12px; }
.day-h:first-of-type { margin-top: 8px; }

/* ===== information architecture (mobile-first): bottom tabs, segmented Bostäder tabs, Hem dashboard, sheets ===== */
.rail-head, .rail-list { display: none; }
.segtabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--line); border-radius: 999px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.segtabs::-webkit-scrollbar { display: none; }
.segtabs a { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 9px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; scroll-snap-align: center; }
.segtabs a[aria-current="page"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.segtabs .num { font-size: 12px; opacity: .7; font-weight: 500; }
.add-btn { margin-left: auto; }
.add-row { padding: 16px; margin: 18px 0 8px; }
.add-line { display: flex; gap: 8px; margin-top: 8px; }
.add-line input { flex: 1; min-width: 0; }
.mrow { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); text-decoration: none; text-align: left; }
.mrow:active { background: var(--hover-bg); }
.rail-more-btns { display: block; margin-top: 0; }
.rail-more { order: 2; }
.rail-add { order: 3; }
.home-sec { margin-top: 28px; }
.home-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.home-head h2 { font-size: 24px; line-height: 1.15; display: flex; gap: 10px; align-items: baseline; }
.home-head .num { font: 500 14px var(--sans); color: var(--muted); }
.seeall { font-size: 14px; color: var(--gold); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding-left: 12px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 2px 16px 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hscroll::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 min(78%, 300px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; }
.hcard:active { border-color: var(--gold-line); }
.hcard.bidding { border-color: var(--gold-line); }
.hc-top { display: flex; gap: 6px; margin-bottom: 10px; }
.hc-addr { font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.hc-meta { margin-top: 4px; font-size: 11px; }
.hc-k { margin-top: 14px; font-size: 10px; }
.hc-price { font-family: var(--serif); font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.hc-sub { font-size: 12.5px; color: var(--muted); min-height: 1.2em; }
.hcard.sk { min-height: 190px; background: linear-gradient(100deg, var(--panel) 30%, var(--line) 50%, var(--panel) 70%); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.vlist { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vrow { display: flex; gap: 14px; align-items: center; min-height: 64px; padding: 10px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.vrow:last-child { border-bottom: 0; }
.vwhen { display: flex; flex-direction: column; min-width: 72px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.vwhen b { font-size: 17px; color: var(--text); }
.vrow.soon .vwhen b { color: var(--gold); }
.vaddr { display: flex; flex-direction: column; min-width: 0; }
.vaddr .serif { font-size: 19px; line-height: 1.2; }
.sheet-wrap { position: fixed; inset: 0; z-index: 95; }
.sheet-bd { position: absolute; inset: 0; background: var(--scrim); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90dvh; overflow-y: auto; background: var(--panel); border-radius: 20px 20px 0 0; box-shadow: var(--shadow); padding: 0 20px calc(20px + env(safe-area-inset-bottom)); overscroll-behavior: contain; animation: sheet-up .3s var(--ease) both; }
.sheet.dragging { animation: none; transition: none; }
.sheet-grab { display: grid; place-items: center; height: 28px; touch-action: none; position: sticky; top: 0; background: var(--panel); }
.sheet-grab i { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { font-size: 28px; line-height: 1.15; }
.sheet-x { font-size: 28px; min-width: 44px; min-height: 44px; color: var(--muted); }
.sheet-body { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
body.sheet-open { overflow: hidden; }

/* bid chart: compact layout (note above, legend + details card below) */
.chart-note { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 16px 6px; text-align: center; color: var(--muted); }
.chart-note b { font: 500 15px var(--sans); color: var(--text); }
.chart-note span { font-size: 13px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 12px 12px; }
.lg { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--muted); }
.lg::before { content: ""; width: 14px; border-top: 2px dashed var(--ref-ask); }
.lg.final::before { border-top-color: var(--gold); }
.lg.sale::before { border-top-style: dotted; }
button.lg { min-height: 44px; color: var(--text); }
.chart-detail { margin: 6px 12px 12px; padding: 12px 14px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.chart-detail .amt { font: 400 26px var(--serif); color: var(--gold); line-height: 1.15; }
.chart-detail .row { color: var(--muted); }
.chart-detail .row.gold { color: var(--gold); }
.chart-wrap.compact .ax text, .chart-wrap.compact .ax-note { font-size: 11px; }

.auth-err { margin: 0 auto 12px; max-width: 420px; padding: 10px 14px; border: 1px solid var(--danger-line); border-radius: 12px; color: var(--danger-text); background: var(--panel); font-size: 14px; text-align: left; }

.crumb { display: none; }
/* detail (mobile-first): sticky bar with back + anchors, FAB, skeletons, facts grid */
.dsticky { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 15; margin: -18px -16px 14px; padding: 0 16px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.dbar { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.dback { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 50%; color: var(--text); flex: none; }
.dback:active { background: var(--hover-bg); }
.dtitle { flex: 1; min-width: 0; font: 400 19px/1.15 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.anchors { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 0 0 10px; }
.anchors::-webkit-scrollbar { display: none; }
.anchors a { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.anchors a.on { color: var(--gold); border-color: var(--gold-line); background: var(--gold-tint); }
section.block { scroll-margin-top: 130px; }
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--bnav-h) + 16px); z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--gold); color: var(--bg); font-weight: 700; box-shadow: var(--shadow); }
.fab:active { transform: scale(.97); }
body.chat-open .fab, body.rail-open .fab, body.gs-open .fab, body.sheet-open .fab { display: none; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.facts-grid dt { font-size: 11px; }
.facts-grid dd { margin: 2px 0 0; font-family: var(--serif); font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
.facts-grid + .flags { margin-top: 14px; }
.sk-detail { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.sk-line, .sk-box, .sk-chart { display: block; border-radius: 10px; background: linear-gradient(100deg, var(--panel) 30%, var(--line) 50%, var(--panel) 70%); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
.sk-line { height: 14px; } .sk-line.h40 { height: 40px; } .sk-line.w40 { width: 40%; } .sk-line.w80 { width: 80%; }
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .sk-box { height: 64px; }
.sk-chart { height: 220px; }

/* sort & filter sheet button (phones) */
.sort-inline { display: none; }
.sortbtn { width: 100%; justify-content: space-between; margin: 18px 0 14px; min-height: 48px; border-color: var(--line-strong); }
.sortbtn .sortsum { margin-left: auto; color: var(--gold); font-weight: 600; }
.srows { display: flex; flex-direction: column; }
.srow { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 17px; text-align: left; }
.srow.on { color: var(--gold); font-weight: 600; }
.srow .sdir { font-size: 14px; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; }
.fchip[aria-pressed="true"] { color: var(--gold); border-color: var(--gold-line); background: var(--gold-tint); }
.fchip .num { opacity: .7; margin-left: 4px; }

.resume { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; padding: 0 14px; border: 1px solid var(--gold-line); border-radius: 999px; background: var(--gold-tint); color: var(--gold); font-size: 14px; font-weight: 600; text-decoration: none; }

@media (min-width: 768px) {
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: 6px; border-radius: 50%; color: var(--text); flex: none; }
  .menu-btn:hover { color: var(--gold); }
  .layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .rail { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; height: 100dvh; width: min(380px, 88vw); background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: env(safe-area-inset-top); overscroll-behavior: contain; transform: translateX(-102%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s .28s; right: unset; max-height: unset; border: unset; border-right: 1px solid var(--line); border-radius: unset; box-shadow: unset; overflow-y: unset; }
  body.rail-open .rail { transform: none; visibility: visible; transition: transform .28s var(--ease), visibility 0s; }
  .rail-bd { display: block; position: fixed; inset: 0; z-index: 55; background: var(--scrim); }
  .rail-bd[hidden] { display: none; }
  .rail-handle { display: none; }
  body.rail-open { overflow: hidden; }
  .main { max-width: none; padding: 40px 32px 120px; }
  .main.wide { padding: 36px 32px 120px; }
  .chat-panel { z-index: 70; width: 420px; top: var(--header-h); left: unset; right: 0; bottom: 0; height: unset; padding-top: unset; padding-bottom: unset; border-left: 1px solid var(--line-strong); animation: chat-in .35s var(--ease) both; }
  .login { padding: 96px 48px 72px; place-items: center; min-height: 100vh; }
  .login .theme-toggle { right: 48px; top: 24px; }
  .login h1 { font-size: clamp(56px, 6.2vw, 84px); }
  .login p.lead { font-size: 21px; margin: 0 auto 40px; }
  .login-feats { flex-direction: unset; flex-wrap: nowrap; margin: 0 auto 40px; }
  .login .login-live { margin: -22px auto 36px; }
  .login-inner .logo-login { width: 220px; height: auto; }
  .seo-faq { padding: 80px 24px 96px; }
  :root { --header-h: 68px; --bnav-h: unset; }
  .app-header { height: var(--header-h); padding: 0 32px; gap: unset; justify-content: space-between; transition: unset; }
  .header-right { display: flex; }
  .gs-kbd { display: unset; }
  .logo-img { height: 38px; transition: unset; }
  .gsearch { flex: 1 1 360px; max-width: 360px; min-width: unset; margin: 0 24px 0 32px; }
  .gsearch input { height: unset; font-size: unset; padding-right: 58px; }
  .gs-side { flex-wrap: wrap; }
  .crumb { margin-bottom: 28px; gap: 10px; }
  .hero h1 { font-size: clamp(40px, 3.6vw, 56px); }
  .hero-facts { display: flex; grid-template-columns: unset; gap: 56px; margin-top: 30px; }
  .fact .v { font-size: 28px; }
  .hero-links { gap: 24px; }
  #rm-slot { margin-left: auto; }
  .gv-head h1 { font-size: clamp(36px, 3.2vw, 48px); }
  .gv-head .gv-title { gap: 22px; }
  .gv-title .ask-llm { margin-left: auto; }
  .gv-stats { gap: 56px; }
  .gv-stats .v { font-size: 30px; }
  .gv-bar { margin: 36px 0 20px; padding: unset; gap: 16px; flex-wrap: unset; overflow-x: unset; scroll-snap-type: unset; scrollbar-width: unset; overscroll-behavior-x: unset; }
  .seg-sort button { min-height: unset; padding: 4px 14px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
  .card { padding: 24px 24px 20px; }
  .card:hover { transform: translateY(-3px); }
  section.block { margin-top: 88px; }
  .block-head { flex-direction: unset; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
  .block-head h2 { font-size: 34px; }
  .chart-wrap { margin-inline: unset; padding: 12px 8px 4px; }
  .bid-form { grid-template-columns: repeat(3, 1fr); padding: 28px; }
  .bid-form .span2 { grid-column: span 2; }
  .bq-form { grid-template-columns: repeat(4, 1fr); }
  .bq-form .span2 { grid-column: span 4; }
  .bq-form .actions { grid-column: span 4; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .stat .v { font-size: 38px; }
  .tl-group { padding: 0 0 36px 40px; }
  .tl-date { font-size: 26px; }
  .empty-main { min-height: 60vh; padding: 48px; }
  .empty-main h2 { font-size: 40px; }
  .t td { width: auto; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: start; }
  .t td.del { width: 80px; justify-content: unset; }
  .toasts { bottom: 28px; max-width: unset; }
  .rail-head { padding: 24px 24px 12px; }
  .rail-list { flex: 1; overflow: unset; overflow-y: auto; }
  .rail-add { padding: 18px 24px 24px; }
  .prop-row { padding: 18px 24px 18px 22px; }
  .tree-head { min-height: unset; }
  .lvl0 > .tree-head { padding: 14px 24px 14px 22px; }
  .lvl1 > .tree-head { padding: 14px 24px 14px 12px; }
  .chev { width: 24px; height: 24px; margin: -6px 0; }
  .chat-compose { padding: 12px 18px 18px; }
  .chat-compose textarea { font-size: unset; }
  .modal-bg { z-index: 50; place-items: center; }
  .modal { width: 1000px; max-width: 92vw; height: 80vh; max-height: unset; border-radius: 16px; border: 1px solid var(--line-strong); padding-top: unset; }
  .modal.sm { width: 520px; height: auto; max-height: 92vh; overflow-y: auto; }
  .modal-head { padding: 18px 24px; }
  .modal-head h3 { font-size: 30px; }
  .btn { min-height: unset; }
  .link-btn { min-height: unset; display: inline-block; align-items: unset; }
  .chip { min-height: unset; }
  .chat-x { min-width: unset; min-height: unset; font-size: 24px; }
  .chat-head-actions { gap: 14px; }
  .theme-toggle { width: 36px; height: 36px; }
  input[type=text] { font-size: 14px; min-height: unset; }
  input[type=search] { font-size: 14px; min-height: unset; }
  input[type=password] { font-size: 15px; min-height: unset; }
  input[type=datetime-local] { font-size: 14px; min-height: unset; }
  textarea { font-size: 14px; min-height: unset; }
  .row-x { min-width: 26px; height: 26px; }
  .login-feats li { font-size: 13px; }
  .t { display: table; }
  .t tbody { display: table-row-group; width: auto; }
  .t tr { display: table-row; width: auto; padding: unset; border-bottom: unset; }
  .t td:not(.uacts) { display: table-cell; gap: normal; align-items: normal; justify-content: normal; }
  .t td.uacts { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
  input[type=number], select, input[type=password] { min-height: unset; }
  select { font-size: revert; min-height: unset; }
  .t td::before { content: none; }
  .bq-form .span3 { grid-column: span 3; }
  .t thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .bnav, .rail-grab, .rail-more { display: none; }
  .rail-head, .rail-list { display: block; }
  .rail-list { display: block; flex: 1; overflow-y: auto; }
  .hscroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); overflow: visible; margin-inline: 0; padding: 2px 0 6px; }
  .hcard { flex: none; }
  .sheet { left: 0; right: 0; bottom: auto; top: 50%; margin: 0 auto; width: min(520px, 92vw); border-radius: 16px; max-height: 86dvh; transform: translateY(-50%); animation: none; }
  .sheet-grab { display: none; }
  .home-head h2 { font-size: 28px; }
  .login .sso-wrap { position: static; padding: 0; background: none; }
  .dsticky, .fab { display: none; }
  .crumb { display: flex; }
  .facts-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  section.block { scroll-margin-top: 24px; }
  .sort-inline { display: flex; }
  .sortbtn { display: none; }
}

@media (min-width: 1200px) {
  .layout { grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
  .rail { position: sticky; z-index: unset; top: var(--header-h); bottom: unset; left: unset; height: calc(100vh - var(--header-h)); width: unset; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-top: unset; overscroll-behavior: unset; transform: unset; visibility: unset; transition: unset; }
  .rail-handle { display: unset; }
  .main { max-width: min(100%, 1280px); padding: 56px 64px 120px; }
  .main.wide { padding: 48px 48px 120px; }
  .chat-panel { z-index: 40; }
  .menu-btn { display: none; }
  .rail-bd { display: none; }
  .segtabs, .add-btn { display: none; }
}

.pill.likely { color: var(--gold); border-color: var(--gold-line); background: var(--gold-tint); font-weight: 600; cursor: help; }
.pill.edate { font-weight: 500; }
.card-date { margin-top: 12px; }
.row-date { margin-top: 6px; }
.row-date .pill, .card-date .pill { font-size: 11.5px; padding: 1px 9px; }

.policy-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; display: block; overflow-x: auto; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.policy-table th { color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.policy-table code { font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
