:root {
  --ink: #14181f; --ink2: #2a303b; --muted: #6b7280; --paper: #f6f4ef; --card: #ffffff; --line: #e5e1d8;
  --brass: #b08a55; --brass-d: #8a6a3d;
  --av: #e9868a; --av-bg: #fdecec; --av-ink: #a3353b;
  --rs: #6fa5ea; --rs-bg: #e8f1fd; --rs-ink: #1f5fae;
  --ls: #63bd88; --ls-bg: #e5f6ec; --ls-ink: #1f7a45;
  --top: 60px; --r: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 31, .06), 0 8px 24px rgba(20, 24, 31, .07);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 24px; }
h3 { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-d); margin-bottom: 4px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto 0; height: calc(var(--top) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px) !important; z-index: 20; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 20px; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.brand span { display: block; font-size: 11.5px; color: #a9afba; letter-spacing: .04em; white-space: nowrap; }
.tabs { display: flex; gap: 4px; margin: 0 auto; }
.tabs button { padding: 8px 16px; border-radius: 999px; color: #c5cad3; font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.tabs button i { display: none; font-style: normal; }
.tabs button:hover { color: #fff; }
.tabs button.on { background: #fff; color: var(--ink); }
.ghost { border: 1px solid rgba(255, 255, 255, .25); color: #d9dde4; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ghost:hover { border-color: #fff; color: #fff; }
.ghost[data-armed] { background: #a3353b; border-color: #a3353b; color: #fff; }

main { padding-top: var(--top); height: 100%; }
.tab { display: none; }
.tab.on { display: block; }

/* ---------- building tab ---------- */
#tab-building.on { display: grid; grid-template-columns: minmax(0, 1fr) 430px; height: 100%; }
.stage { position: relative; overflow: hidden; background: linear-gradient(#bfd6ea 0%, #dde9f2 42%, #e9eef0 68%, #e6e9e0 100%); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
.stage-top { position: absolute; top: 14px; left: 78px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.stage-top > * { pointer-events: auto; }
.counter { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }
.chip i, .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.available { --c: var(--av); --cb: var(--av-bg); --ci: var(--av-ink); }
.reserved { --c: var(--rs); --cb: var(--rs-bg); --ci: var(--rs-ink); }
.leased { --c: var(--ls); --cb: var(--ls-bg); --ci: var(--ls-ink); }
.chip i, .dot { background: var(--c); }
.seg { display: flex; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
.seg button { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }

.rail { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 3px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); }
.railrow { display: flex; align-items: center; gap: 7px; height: 32px; min-width: 56px; padding: 0 8px; border-radius: 9px; font-size: 13px; }
.railrow b { width: 20px; text-align: left; font-weight: 700; }
.railrow .dots { display: grid; grid-template-columns: 8px 8px; gap: 3px; }
.railrow .dot { width: 8px; height: 8px; border-radius: 2.5px; }
.railrow small { font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.railrow:hover { background: #f1eee7; }
.railrow.on { background: var(--ink); color: #fff; }
.railrow.on small { color: #c5cad3; }
.railrow.parking, .railrow.lobby { height: 26px; }
.rail hr { border: 0; border-top: 1px solid var(--line); margin: 2px 4px; width: auto; }

.back { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(20, 24, 31, .3); }
.stage-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 12.5px; color: #4b5563; pointer-events: none; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.tip { position: fixed; z-index: 15; pointer-events: none; background: var(--ink); color: #fff; padding: 7px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow); transform: translate(14px, 14px); white-space: nowrap; }
.tip b { font-weight: 700; }
.stage-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px 30px 30px 90px; color: var(--ink2); font-weight: 500; }

.panel { background: var(--card); border-left: 1px solid var(--line); overflow-y: auto; padding: 24px 22px 40px; -webkit-overflow-scrolling: touch; }
.p-head { margin-bottom: 18px; }
.p-head p { color: var(--muted); margin-top: 6px; }
.p-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.link { color: var(--brass-d); font-weight: 600; font-size: 13.5px; margin-bottom: 14px; display: inline-block; }
.link:hover { text-decoration: underline; }
.updown { display: flex; gap: 6px; }
.updown button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.updown button:hover:not(:disabled) { background: var(--paper); }
.updown button:disabled { opacity: .3; cursor: default; }

.occ { background: var(--paper); border-radius: var(--r); padding: 16px; margin-bottom: 20px; }
.occ-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.occ-top b { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; }
.occ-top span { color: var(--muted); font-size: 13px; text-align: right; }
.bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 12px 0 10px; background: var(--line); }
.bar i { display: block; background: var(--c); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pair div { background: #fff; border-radius: 10px; padding: 10px 12px; }
.pair small { display: block; color: var(--muted); font-size: 12px; }
.pair b { font-size: 17px; }

.flist { display: flex; flex-direction: column; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.frow { display: flex; align-items: center; gap: 12px; padding: 9px 12px; text-align: left; border-top: 1px solid var(--line); width: 100%; }
.frow:first-child { border-top: 0; }
.frow:hover { background: var(--paper); }
.fkey { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.frow.parking .fkey, .frow.lobby .fkey { background: #e9e5dc; color: var(--ink2); }
.fname { flex: 1; min-width: 0; font-weight: 600; }
.fname small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.fcells { display: flex; gap: 4px; }
.fcells span { width: 38px; padding: 5px 0; border-radius: 7px; background: var(--cb); color: var(--ci); font-size: 11.5px; font-weight: 700; text-align: center; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.hint { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* floor plan */
.plan { width: 100%; height: auto; display: block; background: var(--paper); border-radius: var(--r); margin-bottom: 14px; }
.plan .plate { fill: #fff; stroke: #2a303b; stroke-width: .7; }
.plan .balc { fill: #ece8df; stroke: #2a303b; stroke-width: .4; }
.plan .pu polygon { fill: var(--cb); stroke: #2a303b; stroke-width: .6; transition: fill .15s; cursor: pointer; }
.plan .pu:hover polygon, .plan .pu.on polygon { fill: color-mix(in srgb, var(--c) 55%, #fff); }
.plan .pu.on polygon { stroke: var(--brass-d); stroke-width: 1.2; }
.plan .rm { fill: none; stroke: #2a303b; stroke-opacity: .16; stroke-width: .3; pointer-events: none; }
.plan text { font-family: var(--sans); text-anchor: middle; pointer-events: none; fill: var(--ink); }
.plan .pn { font-size: 7px; font-weight: 700; }
.plan .pt { font-size: 3px; font-weight: 500; fill: #3d4553; }
.plan .ps { font-size: 3px; font-weight: 700; fill: var(--ci); }
.plan .core { fill: #d9d5cc; stroke: #2a303b; stroke-width: .5; }
.plan .ct { font-size: 2.3px; fill: #4b5563; font-weight: 600; }
.plan .slot { fill: #fff; stroke: #2a303b; stroke-width: .5; }
.plan .ramp { fill: #ece8df; stroke: #2a303b; stroke-width: .5; }
.plan .compass { font-size: 3px; font-weight: 700; fill: var(--muted); }

.ucards { display: flex; flex-direction: column; gap: 8px; }
.ucard { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-align: left; width: 100%; transition: border-color .15s, box-shadow .15s; }
.ucard:hover { border-color: var(--brass); box-shadow: var(--shadow); }
.uno { width: 52px; height: 44px; border-radius: 10px; background: var(--cb); color: var(--ci); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.uinfo { flex: 1; min-width: 0; }
.uinfo b { display: block; font-weight: 600; font-size: 14px; }
.uinfo small { color: var(--muted); font-size: 12.5px; }
.uright { text-align: right; flex: none; }
.uright b { display: block; font-size: 15px; }
.uright b small { font-weight: 500; color: var(--muted); font-size: 12px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--cb); color: var(--ci); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.amen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.amen div { background: var(--paper); border-radius: 10px; padding: 11px 12px; font-size: 13.5px; font-weight: 500; }
.amen small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }

/* ---------- pages ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 60px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { color: var(--muted); margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--ink); color: #fff; }
.btn:hover { background: var(--ink2); }
.btn.sec { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.sec:hover { background: var(--paper); }
.btn.warn { background: #fff; color: var(--av-ink); border: 1px solid #f0c9cb; }
.btn.warn:hover { background: var(--av-bg); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.tile small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.tile b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.2; margin-top: 4px; }
.tile span { font-size: 12.5px; color: var(--muted); }
.tile.hl { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile.hl small, .tile.hl span { color: #b7bdc8; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; min-width: 0; }
.card h3 { margin-bottom: 14px; }
.stack { display: grid; grid-template-columns: 44px repeat(4, 1fr); gap: 5px; align-items: center; }
.stack .sk { font-weight: 700; font-size: 13px; color: var(--muted); }
.stack button { padding: 9px 4px; border-radius: 8px; background: var(--cb); color: var(--ci); font-weight: 700; font-size: 13px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.stack button small { display: block; font-weight: 500; font-size: 11px; opacity: .85; }
.stack button:hover { background: color-mix(in srgb, var(--c) 45%, #fff); }
.stack .wide { grid-column: 2 / -1; padding: 6px; border-radius: 8px; background: #efece5; color: var(--muted); font-size: 12px; text-align: center; font-weight: 600; }
.months { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 8px; }
.months div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.months i { display: block; width: 100%; max-width: 46px; background: var(--ink); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.months i.zero { background: var(--line); }
.months b { font-size: 13px; }
.months small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.rows { display: flex; flex-direction: column; }
.rows > div, .rows > button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); text-align: left; width: 100%; font-size: 14px; }
.rows > :first-child { border-top: 0; padding-top: 0; }
.rows small { display: block; color: var(--muted); font-size: 12.5px; }
.rows .r { text-align: right; flex: none; }
.rows button:hover b { text-decoration: underline; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
.warnpill { background: #fdf3df; color: #8a5a00; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin-bottom: 22px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 11px 14px; background: #faf8f4; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: #faf8f4; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
td b { font-weight: 600; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sub { margin: 4px 0 12px; }

/* ---------- apartment sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet-bg { position: absolute; inset: 0; background: rgba(20, 24, 31, .38); animation: fade .2s; }
.sheet-card { position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: var(--card); overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: -12px 0 40px rgba(20, 24, 31, .2); animation: slide .26s cubic-bezier(.2, .8, .2, 1); padding: 0 22px 34px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.s-head { position: sticky; top: 0; z-index: 2; background: var(--card); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.s-head .badge { margin-top: 6px; }
.x { width: 36px; height: 36px; border-radius: 50%; background: var(--paper); font-size: 15px; flex: none; }
.x:hover { background: var(--line); }
.rentline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.rentline b { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; }
.rentline span { color: var(--muted); font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.facts div { background: #fff; padding: 10px 12px; }
.facts small { display: block; color: var(--muted); font-size: 11.5px; }
.facts b { font-size: 14px; font-weight: 600; }
.uplan { width: 100%; height: auto; display: block; background: var(--paper); border-radius: 12px; margin-bottom: 6px; }
.uplan rect.room { fill: #fff; stroke: #2a303b; stroke-width: .5; }
.uplan rect.balc { fill: url(#hatch); stroke: #2a303b; stroke-width: .4; }
.uplan text { font-family: var(--sans); text-anchor: middle; fill: var(--ink); }
.uplan .rn { font-size: 1.9px; font-weight: 600; }
.uplan .rd { font-size: 1.5px; fill: #6b7280; }
.cap { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.block { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.block h3 { margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.kv small { display: block; color: var(--muted); font-size: 12px; }
.kv b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.kv .full { grid-column: 1 / -1; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.feat { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; font-size: 13.5px; }
.feat li::before { content: '✓'; color: var(--brass-d); font-weight: 700; margin-right: 7px; }
form .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
form label.full { grid-column: 1 / -1; }
form input, form select, form textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 11px; border: 1px solid #cfcabe; border-radius: 9px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
form textarea { min-height: 64px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
form .bad { border-color: #d9535a; background: #fff7f7; }
.err { color: var(--av-ink); font-size: 13px; font-weight: 600; margin-top: 10px; }
.calc { background: var(--paper); border-radius: 9px; padding: 9px 11px; font-size: 13px; margin-top: 12px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(20, 24, 31, .35); display: flex; align-items: center; gap: 9px; }
.toast.ok { background: #1f7a45; }
.toast.bad { background: #a3353b; }
.spin { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- phone and small screens ---------- */
@media (max-width: 1100px) { #tab-building.on { grid-template-columns: minmax(0, 1fr) 380px; } .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  :root { --top: 52px; }
  html, body { height: auto; }
  .top { padding: 0 14px; gap: 10px; }
  .brand b { font-size: 16px; }
  .ghost { margin-left: auto; padding: 6px 11px; font-size: 12.5px; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; margin: 0; background: var(--ink); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; gap: 0; }
  .tabs button { flex: 1; padding: 6px 2px; border-radius: 10px; font-size: 11.5px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .tabs button i { display: block; font-size: 15px; line-height: 1; }
  .tabs button.on { background: rgba(255, 255, 255, .13); color: #fff; }
  main { height: auto; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  #tab-building.on { display: block; height: auto; }
  .stage { height: 56svh; min-height: 380px; }
  .stage-top { left: 12px; right: 12px; top: 10px; }
  .chip { padding: 5px 10px; font-size: 12px; }
  .seg { display: none; }
  .rail { left: 8px; top: auto; bottom: 10px; transform: none; padding: 4px; gap: 2px; }
  .railrow { height: 27px; min-width: 50px; font-size: 12px; }
  .railrow.parking, .railrow.lobby { height: 22px; }
  .stage-hint { left: 104px; right: 10px; bottom: 12px; font-size: 11.5px; text-align: left; }
  .back { bottom: 12px; left: auto; right: 12px; transform: none; padding: 9px 14px; font-size: 13px; }
  .panel { border-left: 0; overflow: visible; padding: 20px 16px 30px; }
  .page { padding: 20px 16px 40px; }
  h1 { font-size: 25px; }
  .grid2 { grid-template-columns: 1fr; }
  .tile b { font-size: 24px; }
  .sheet-card { width: 100%; top: 34px; border-radius: 20px 20px 0 0; padding: 0 16px calc(30px + env(safe-area-inset-bottom)); animation-name: rise; }
  @keyframes rise { from { transform: translateY(60px); opacity: 0; } }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); white-space: nowrap; }
  .tip { display: none; }
}
@media (max-width: 420px) { form .fgrid { grid-template-columns: 1fr; } .feat { grid-template-columns: 1fr; } .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
