/* Real Estate Tycoon. Ink, brownstone and money green. */
:root {
  --ink: #16202b; --ink2: #2b3744; --muted: #6a7684; --paper: #f6f3ee; --panel: #ffffff; --line: #e1ddd5;
  --green: #1d6b57; --green2: #2e9b6f; --green-soft: #dcede7; --brass: #a87a22; --brass-soft: #f4ead3;
  --red: #b4472e; --red-soft: #f6e0d9; --blue: #2a6f97;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1a222c; color: var(--ink); font: 15px/1.45 var(--body); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- HUD ---------- */
#hud { position: fixed; top: 0; left: 0; right: 0; padding: calc(8px + var(--safe-t)) max(10px, var(--safe-r)) 8px max(10px, var(--safe-l)); display: flex; align-items: center; gap: 10px; background: linear-gradient(#16202bf2, #16202bd9); color: #fff; z-index: 5; }
#hud .cash { display: flex; flex-direction: column; min-width: 0; }
#hud .cash b { font: 800 26px/1 var(--display); letter-spacing: .02em; }
#hud .cash small { font: 500 11px/1.3 var(--mono); color: #9fb0c0; white-space: nowrap; }
#hud .cash b.neg { color: #ff9a85; }
#hud .mid { margin-left: auto; display: flex; align-items: center; gap: 6px; }
#hud .date { font: 700 18px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; min-width: 74px; text-align: right; }
#hud .dayline { height: 3px; background: #ffffff22; border-radius: 2px; margin-top: 4px; overflow: hidden; }
#hud .dayline i { display: block; height: 100%; background: var(--green2); width: 0; }
.speed { display: flex; background: #ffffff14; border-radius: 8px; padding: 2px; }
.speed button { width: 34px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: #c8d3de; }
.speed button.on { background: #fff; color: var(--ink); }
.speed svg { width: 16px; height: 16px; fill: currentColor; }
#hud .right { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
#hud .right small { font: 500 11px/1.3 var(--mono); color: #9fb0c0; white-space: nowrap; }
.stars { color: #f2c94c; letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.stars .off { color: #ffffff33; }

#goal { position: fixed; top: calc(62px + var(--safe-t)); left: max(10px, var(--safe-l)); max-width: min(420px, calc(100% - 20px)); z-index: 4; display: flex; gap: 10px; align-items: center; background: #ffffffee; border-radius: 12px; padding: 8px 12px 8px 8px; box-shadow: 0 4px 16px #0003; text-align: left; }
#goal .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font: 800 16px var(--display); }
#goal .g { display: block; font-weight: 600; font-size: 14px; line-height: 1.2; }
#goal .c { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
#goal.flash { animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); background: var(--green-soft); } 100% { transform: scale(1); } }

#tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 6px max(8px, var(--safe-l)) calc(6px + var(--safe-b)); background: #16202bf0; z-index: 5; }
#tabs button { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; color: #c8d3de; font-size: 11.5px; font-weight: 500; position: relative; }
#tabs button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#tabs button.on { color: #fff; background: #ffffff14; }
#tabs .badge { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--body); padding: 0 5px; }
#bchip { position: fixed; top: calc(62px + var(--safe-t)); right: max(10px, var(--safe-r)); z-index: 4; display: flex; align-items: center; gap: 6px; background: #16202bee; color: #fff; border-radius: 20px; padding: 8px 12px 8px 14px; font: 600 13px var(--body); box-shadow: 0 4px 16px #0003; max-width: 46vw; }
#bchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bchip svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
#bchip .dot { width: 8px; height: 8px; border-radius: 50%; background: #e8775c; flex: none; }
.bldg { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1.5px solid var(--line); }
.bldg.on { border-color: var(--green); }
.bldg b { font-weight: 600; }
.bldg .v { font-family: var(--mono); text-align: right; }
.bldg .m { font-size: 12.5px; color: var(--muted); }
#mapback { width: min(320px, 100%); }
#paused { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + var(--safe-b)); background: #16202bcc; color: #fff; font: 600 12px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 20px; z-index: 4; pointer-events: none; }

/* ---------- toasts ---------- */
#toasts { position: fixed; top: calc(112px + var(--safe-t)); right: max(10px, var(--safe-r)); display: flex; flex-direction: column; gap: 6px; z-index: 6; pointer-events: none; align-items: flex-end; max-width: min(340px, calc(100% - 20px)); }
.toast { background: #16202bee; color: #fff; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 4px 14px #0004; animation: tin .25s ease; border-left: 4px solid var(--green2); }
.toast.bad { border-left-color: #e8775c; }
.toast.news { border-left-color: #f2c94c; }
.toast.fade { opacity: 0; transform: translateY(-6px); transition: .4s; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- sheets and cards ---------- */
#scrim { position: fixed; inset: 0; background: #0b111866; z-index: 11; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 100%); max-height: calc(100% - 70px - var(--safe-t)); overflow: auto; background: var(--paper); border-radius: 18px 18px 0 0; z-index: 12; padding: 18px max(18px, var(--safe-l)) calc(22px + var(--safe-b)) max(18px, var(--safe-r)); box-shadow: 0 -10px 40px #0005; animation: up .22s ease; overscroll-behavior: contain; }
@keyframes up { from { transform: translate(-50%, 30px); opacity: .4; } }
.sheet h2 { font: 800 28px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.sheet h3 { font: 700 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 0; color: var(--ink2); }
.eyebrow { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sheet .close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.sheet .close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.spread { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.kv span:nth-child(even) { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.kv .tot { font-weight: 600; border-top: 1px solid var(--line); padding-top: 6px; }
.bar { height: 8px; border-radius: 4px; background: #e8e3da; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: 12px; font-weight: 600; background: var(--green); color: #fff; }
.btn.alt { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.btn.warn { background: var(--red); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.wide { width: 100%; }
.choice { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1.5px solid var(--line); }
.choice:hover:not(:disabled) { border-color: var(--green); }
.choice b { font-weight: 600; }
.choice .cost { font-family: var(--mono); font-weight: 500; text-align: right; }
.choice .odds { font-size: 12.5px; color: var(--muted); }
.choice .pct { font: 500 12px var(--mono); color: var(--muted); text-align: right; }
.choice:disabled { opacity: .5; }

.card { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100% - 24px)); max-height: calc(100% - 40px); overflow: auto; background: var(--paper); border-radius: 18px; z-index: 13; padding: 18px; box-shadow: 0 20px 60px #0007; animation: cin .2s ease; }
@keyframes cin { from { transform: translate(-50%, -46%); opacity: 0; } }
.card .who { display: flex; gap: 12px; align-items: center; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 18px var(--display); color: #fff; letter-spacing: .03em; }
.avatar.icon { background: var(--red-soft); color: var(--red); }
.avatar.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.quote { font-size: 16px; line-height: 1.45; background: var(--panel); border-radius: 4px 14px 14px 14px; padding: 12px 14px; border: 1px solid var(--line); }
.tag { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 20px; background: var(--red-soft); color: var(--red); }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.brass { background: var(--brass-soft); color: var(--brass); }

/* ---------- inbox ---------- */
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.msg .avatar { width: 36px; height: 36px; font-size: 14px; }
.msg .t { font-size: 14px; }
.msg .meta { font: 500 11px var(--mono); color: var(--muted); }
.msg.problem .t { font-weight: 500; }
.open-prob { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1.5px solid var(--red-soft); }
.open-prob .avatar { width: 38px; height: 38px; }
.open-prob .x { flex: 1; min-width: 0; }
.open-prob .x b { display: block; font-weight: 600; }
.open-prob .x span { font-size: 12.5px; color: var(--muted); }

/* ---------- applicants ---------- */
.app { display: grid; grid-template-columns: 40px 1fr; gap: 4px 10px; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.app .avatar { width: 40px; height: 40px; font-size: 15px; }
.app .facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 500 12.5px var(--mono); color: var(--ink2); grid-column: 2; }
.app .acts { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 6px; }
.app .acts .btn { flex: 1; min-height: 40px; }
input[type=range] { width: 100%; accent-color: var(--green); height: 30px; }

/* ---------- ledger ---------- */
table.ledger { width: 100%; border-collapse: collapse; font: 13px var(--mono); font-variant-numeric: tabular-nums; }
table.ledger th, table.ledger td { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.ledger th:first-child, table.ledger td:first-child { text-align: left; font-family: var(--body); }
table.ledger th { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
table.ledger .pos { color: var(--green); } table.ledger .neg { color: var(--red); }
.tablewrap { overflow-x: auto; }

/* ---------- full screens: title, note, map ---------- */
.screen { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(20px + var(--safe-t)) max(18px, var(--safe-r)) calc(20px + var(--safe-b)) max(18px, var(--safe-l)); overflow: auto; }
#title { background: linear-gradient(#0e151dcc, #0e151d99 40%, #0e151d22 70%, transparent); justify-content: flex-start; padding-top: calc(10vh + var(--safe-t)); gap: 14px; text-align: center; color: #fff; }
#title h1 { margin: 0; font: 800 clamp(48px, 12vw, 92px)/.88 var(--display); text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 4px 30px #0008; }
#title h1 span { display: block; color: #8fe0bd; }
#title p { margin: 0; max-width: 34ch; color: #d5dee7; font-size: 16px; }
#title .btns { display: flex; flex-direction: column; gap: 10px; width: min(320px, 100%); margin-top: 8px; }
#title .btn { min-height: 52px; font-size: 16px; }
#title .fine { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #9fb0c0; }

#note { background: #0e151dd9; }
.paper { width: min(460px, 100%); background: #fbf7ee; border-radius: 4px; padding: 26px 24px 22px; box-shadow: 0 20px 60px #0008; transform: rotate(-1.2deg); display: flex; flex-direction: column; gap: 14px; position: relative; }
.paper::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 22px; transform: translateX(-50%) rotate(2deg); background: #e8dcc0cc; }
.paper .typed { font-size: 15.5px; color: #3a352d; }
.paper .hand { font: 600 30px/1.15 var(--hand); color: #1f3c6e; }
.paper .sig { font: 600 24px var(--hand); color: #1f3c6e; text-align: right; }
.paper .money { font: 800 40px/1 var(--display); color: var(--green); letter-spacing: .02em; }

#map { background: #cfe0ec; justify-content: flex-start; gap: 10px; }
#map header { width: min(720px, 100%); display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
#map header h2 { margin: 0; font: 800 34px/1 var(--display); text-transform: uppercase; color: var(--ink); }
#map header .cash { font: 600 14px var(--mono); color: var(--ink2); text-align: right; }
#map .mapwrap { width: min(720px, 100%); flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
#map svg { width: 100%; height: 100%; max-height: 72vh; }
#map .hint { font-size: 14px; color: var(--ink2); text-align: center; max-width: 46ch; }
.pin { cursor: pointer; }
.pin:focus-visible circle.ring { stroke: var(--brass); stroke-width: 4; }

.deal canvas { width: 100%; height: 150px; border-radius: 12px; display: block; }
.deal .notes { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink2); }
.offer-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.offer-row .btn { flex-direction: column; gap: 0; min-height: 58px; font-size: 14px; padding: 8px; }
.offer-row .btn small { font: 500 11px var(--mono); opacity: .8; }

#end .paper { transform: none; }
@media (max-width: 700px), (max-height: 500px) {
  #toasts { top: auto; bottom: calc(74px + var(--safe-b)); right: 50%; transform: translateX(50%); align-items: center; width: calc(100% - 24px); }
  .toast { font-size: 13px; padding: 7px 11px; }
}
@media (max-width: 520px) {
  #hud .cash b { font-size: 22px; }
  #hud .date { font-size: 15px; min-width: 62px; }
  .speed button { width: 30px; }
  #hud .right .val { display: none; }
  #goal .c { display: none; }
  #bchip { top: calc(124px + var(--safe-t)); max-width: calc(100% - 20px); }
}
@media (max-height: 500px) and (min-width: 640px) {
  #toasts { right: max(10px, var(--safe-r)); transform: none; width: auto; max-width: 300px; align-items: flex-end; bottom: calc(56px + var(--safe-b)); }
  .toast { font-size: 12.5px; }
}
@media (max-height: 460px) {
  #bchip { top: calc(56px + var(--safe-t)); max-width: 40vw; }
  #goal { top: calc(56px + var(--safe-t)); }
  #goal .c { display: none; }
  #tabs { padding-top: 3px; padding-bottom: calc(3px + var(--safe-b)); }
  #tabs button { flex-direction: row; gap: 6px; padding: 4px; }
  #tabs .badge { position: static; margin-left: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- "Brownstone at dusk" restyle ---------- */
:root { --ink: #1b2230; --paper: #f7f1e6; --line: #e5dccb; --amber: #d08a1e; --gold: #e9c77a; }
.eyebrow { letter-spacing: .1em; }
img.avatar.face { object-fit: cover; background: transparent; padding: 0; }
.avatar.big { width: 58px; height: 58px; }
.card { padding: 0 0 4px; overflow: auto; background: #fffaf1; }
.card > .stack { padding: 14px 18px 16px; }
.wo-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 18px; background: var(--ink); color: #f7f1e6; font: 700 11.5px/1.2 var(--body); letter-spacing: .08em; }
.wo-head.urgent { background: var(--red); }
.wo-clock { display: inline-flex; align-items: center; gap: 6px; }
.wo-clock svg { width: 16px; height: 16px; }
.wo-title { font: 800 34px/1 var(--display) !important; text-transform: none !important; letter-spacing: .01em; }
.wo-label { font: 700 11.5px var(--body); letter-spacing: .1em; color: var(--muted); margin-bottom: -4px; }
.quote { border-radius: 4px 14px 14px 14px; background: #fff; }
.choice { background: #fff; border-radius: 12px; }
.choice .odds { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; display: inline-block; }
.choice .pct.day { background: #f1ebe0; border-radius: 6px; padding: 2px 6px; justify-self: end; align-self: center; color: var(--ink); font-size: 11.5px; }
#hud { background: linear-gradient(#1b2230f5, #1b2230e6); border-bottom: 2px solid #b8862b; }
#hud .cash small, #hud .right small { color: #9aa3b0; }
#hud .date { color: #f7f1e6; }
#hud .dayline i { background: var(--gold); }
.speed { background: #2b3544; border-radius: 12px; padding: 3px; }
.speed button.on { background: #f7f1e6; color: var(--ink); }
.stars { color: var(--gold); }
#tabs { background: #1b2230f2; border-top: 1px solid #2b3544; }
#tabs button.on { background: #2b3544; box-shadow: inset 0 -3px 0 var(--gold); }
.toast { background: rgba(27,34,48,.94); border-radius: 12px; }
.sheet { background: var(--paper); }
.box { background: #fffaf1; border-color: var(--line); }
#goal { background: #fffaf1; border-radius: 16px 16px 16px 4px; }

/* title, note and map, "Brownstone at dusk" */
#title h1 { font-weight: 800; }
#title h1 span { color: var(--gold); }
#title .fine { color: var(--gold); letter-spacing: .22em; }
#title .tagline { font: 500 12px var(--mono); letter-spacing: .16em; color: #c4cad3; text-transform: uppercase; }
#title .btn { box-shadow: 0 5px 0 #134a3c; }
#title .btn.alt { background: rgba(247,241,230,.1); color: #f7f1e6; border: 1.5px solid rgba(247,241,230,.35); box-shadow: none; }
@media (min-width: 900px) and (min-height: 520px) {
  #title { align-items: flex-start; text-align: left; justify-content: center; padding-left: max(80px, var(--safe-l)); background: linear-gradient(90deg, rgba(14,18,36,.94) 0%, rgba(14,18,36,.82) 34%, rgba(14,18,36,0) 58%); }
  #title h1 { font-size: clamp(72px, 9vw, 124px); }
  #title h1 span { font-size: 1.4em; line-height: .86; }
  #title p { max-width: 30rem; }
}
#note { background: radial-gradient(ellipse at 50% 40%, #4a3a30 0%, #2a201a 60%, #17110d 100%); flex-direction: row; gap: 40px; flex-wrap: wrap; align-content: center; }
.paper { background-color: #fbf7ee; background-image: repeating-linear-gradient(transparent 0 33px, #dfe7ef 33px 34px); }
.photo { margin: 0; background: #fff; padding: 12px 12px 40px; box-shadow: 0 16px 34px rgba(0,0,0,.45); transform: rotate(6deg); position: relative; flex: none; }
.photo svg { display: block; width: 206px; height: 190px; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 600 22px var(--hand); color: #3a3330; }
@media (max-width: 760px) { .photo { display: none; } }
#map { background: #e9e1cf; }
#map .pin { cursor: pointer; }
#map .pin:focus-visible { outline: 2px solid #C6F432; }
#map svg { filter: drop-shadow(0 6px 10px rgba(27,34,48,.18)); }
#map header h2 { color: var(--ink); }

/* building arrows, credit, company books */
.bnav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 4; display: flex; align-items: center; gap: 6px; background: rgba(27,34,48,.82); color: #f7f1e6; border-radius: 24px; padding: 10px 12px; font: 600 12.5px var(--body); box-shadow: 0 4px 14px #0004; max-width: 34vw; }
.bnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bnav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bprev { left: max(8px, var(--safe-l)); }
#bnext { right: max(8px, var(--safe-r)); }
@media (max-width: 700px) { .bnav span { display: none; } .bnav { padding: 12px 8px; } }
#bchip .co { color: var(--gold); }
.credit-bar { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #b4472e 0%, #d08a1e 40%, #2e9b6f 75%, #1d6b57 100%); }
.credit-bar i { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.field { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.field:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
table.books td { vertical-align: middle; }
table.books td:first-child { white-space: normal; }
table.books .m { font: 12px var(--body); color: var(--muted); }
table.books tr.pick { cursor: pointer; }
table.books tr.pick:hover td, table.books tr.on td { background: #f4ead3; }
table.books tr.tot td { border-top: 2px solid var(--ink); }

/* paperwork sheets */
.sheet { padding-top: 0; }
.sheet > .wo-head.doc { margin: 0 calc(-1 * max(18px, var(--safe-r))) 14px calc(-1 * max(18px, var(--safe-l))); padding: 12px 56px 12px 18px; border-radius: 18px 18px 0 0; position: sticky; top: 0; z-index: 2; }
.sheet > .wo-head.bank { background: #1d4f42; }
.sheet .close { top: 4px; right: 6px; color: #f7f1e6; z-index: 3; }
.sheet h2 { text-transform: none; font-size: 30px; }
.cscale-bar { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #b4472e 0 25%, #d08a1e 25% 50%, #a3b56a 50% 75%, #2e9b6f 75% 100%); }
.cscale-bar i { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.cscale-l { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.cscale-l span { text-align: center; }
.cscale-l .on { color: var(--ink); font-weight: 700; }
.ba { display: grid; grid-template-columns: 1fr 22px 1fr; gap: 8px; align-items: end; }
.ba svg { width: 22px; height: 14px; color: var(--muted); margin-bottom: -2px; }
.pos-t { color: var(--green); font-family: var(--mono); }
.neg-t { color: var(--red); font-family: var(--mono); }
.eqbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #e8e3da; }
.eqbar .owe { background: #9aa3b0; }
.eqbar .mine { background: #2e9b6f; }
svg.bars { width: 100%; height: auto; display: block; }
.key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: -1px; }
.key.in { background: #2e9b6f; } .key.outk { background: #b4472e; }
.facts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts2 > div { background: #fffaf1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts2 b { font-size: 14px; }
.app { background: #fff; }
.open-prob { background: #fff; }

/* HUD money lines */
#hud .up { color: #7ef0b8; }
#hud .dn { color: #ff9a85; }
@media (max-width: 520px) {
  #hud .right .val { display: block; font-size: 10.5px; }
  #hud .cash small { font-size: 10.5px; }
}
#bchip .up { color: #7ef0b8; } #bchip .dn { color: #ff9a85; }
#hud .sub { display: none; }
@media (max-width: 560px) {
  #hud { flex-wrap: wrap; row-gap: 4px; }
  #hud .cash small, #hud .right .val { display: none !important; }
  #hud .sub { display: flex; justify-content: space-between; gap: 10px; width: 100%; font: 500 11px/1.2 var(--mono); color: #9aa3b0; white-space: nowrap; }
  #goal { top: calc(84px + var(--safe-t)); }
  #bchip { top: calc(146px + var(--safe-t)) !important; }
}

/* company board, managers, house rules */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.bcard { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.bcard.on { border-color: var(--ink); }
.bgo { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 12px; width: 100%; }
.bgo .light { width: 12px; height: 12px; border-radius: 50%; background: #2e9b6f; box-shadow: 0 0 0 3px #dcede7; }
.bcard.amber .light { background: #d08a1e; box-shadow: 0 0 0 3px #f6ead2; }
.bcard.red .light { background: #b4472e; box-shadow: 0 0 0 3px #f6e0d9; }
.bgo .bt { display: flex; flex-direction: column; min-width: 0; }
.bgo .m, .mgr .m { font-size: 12px; color: var(--muted); }
.bgo .need { color: var(--red); font-weight: 600; }
.bgo .bn { display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; }
.bgo .bn small { font: 500 10px var(--body); color: var(--muted); }
.runby { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); background: #fffaf1; font-size: 12px; color: var(--muted); }
.runby select, .rl select { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; flex: 1; min-width: 0; }
.mgr { display: grid; grid-template-columns: 58px 1fr; gap: 8px 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.mgr .mi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mgr .ma { grid-column: 1 / -1; display: flex; gap: 8px; }
.mgr .ma .btn { flex: 1; min-height: 40px; }
.rl { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.esc-note { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; background: var(--red-soft); border-radius: 12px; padding: 10px 12px; }
.esc-note.calm { background: var(--green-soft); }
.esc-note .avatar { width: 40px; height: 40px; }
.flat { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); }
.flat .fi { display: flex; flex-direction: column; min-width: 0; }
.flat .m { font-size: 12.5px; color: var(--muted); }

/* Etheria realm kit */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#realmSlot { flex: none; }
#realmSlot:empty { display: none; }
/* the Etheria bar sits in our top bar; on phones only the orb and the level ring */
#realmSlot .er-bar { padding: 2px 4px 2px 2px; }
#realmSlot .er-orb { width: 28px; height: 28px; }
@media (max-width: 560px) {
  #realmSlot .er-bar .er-pill, #realmSlot .er-bar .er-back, #realmSlot .er-bar > button:not(.er-orb) { display: none; }
}
@media (max-width: 560px) { #hud .right { display: none !important; } #hud .sub .stars { font-size: 11px; letter-spacing: 0; } }
#title .tagline:not(.sub) { font: 600 15px var(--body); letter-spacing: .02em; text-transform: none; color: #f7f1e6; }

/* Music and Sounds volumes, in the ledger */
.vols { gap: 4px; }
.vol { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; font-size: 14px; }

/* The first minute (launch board L5) */
#title { background: linear-gradient(rgba(14,18,36,.96) 0%, rgba(14,18,36,.86) 44%, rgba(14,18,36,.12) 72%, transparent); }
#title .fine2 { font-size: 12px; color: #aab3c0; }
@media (max-width: 760px) {
  /* Nana on her stoop, above her note */
  #note { flex-direction: column; gap: 0; justify-content: center; }
  #note .photo { display: block; order: -1; transform: rotate(5deg) scale(.5); margin: -60px 0 -78px 150px; z-index: 2; }
}
.firsttip { background: #f3f8e6; border: 1.5px solid #9fc25a; border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.firsttip .tag.lime { background: #C6F432; color: #1b2230; border: 1.5px solid #1b2230; font-weight: 700; }
#keys { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(20,28,58,.55); color: #fff; text-align: center; pointer-events: none; opacity: 0; transition: opacity .45s; padding: 24px; }
#keys.on { opacity: 1; }
#keys svg { width: 84px; height: 84px; animation: keyturn 1.6s ease-out; }
#keys b { font: 800 clamp(26px, 7vw, 44px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 3px 20px #0009; }
#keys span { font-size: 15px; color: #e4e8f4; }
@keyframes keyturn { 0% { transform: rotate(-70deg) scale(.6); } 60% { transform: rotate(8deg) scale(1.05); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { #keys svg { animation: none; } }
#sndbtn { position: fixed; left: max(10px, var(--safe-l)); bottom: calc(var(--tabs-h, 64px) + 12px + var(--safe-b)); z-index: 6; width: 36px; height: 36px; border-radius: 50%; background: #16202bd9; color: #f7f1e6; font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px #0005; }
#sndbtn.off { color: #8a94a0; }
#brokebar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--safe-t) + 62px); z-index: 7; width: min(560px, calc(100% - 20px)); background: #b4472e; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.35; padding: 9px 14px; border-radius: 10px; box-shadow: 0 6px 18px #0006; text-align: center; }
@media (max-width: 560px) { #brokebar { top: calc(var(--safe-t) + 92px); font-size: 13px; } }
#mgrchip { position: fixed; top: calc(104px + var(--safe-t)); right: max(10px, var(--safe-r)); z-index: 4; display: flex; align-items: center; gap: 8px; background: #fffaf1; color: #1b2230; border: 1.5px solid #1d6b57; border-radius: 20px; padding: 4px 12px 4px 4px; font: 500 13px var(--body); box-shadow: 0 4px 14px #0003; max-width: 60vw; }
#mgrchip u { color: #1d6b57; text-decoration: none; font-weight: 700; }
#mgrchip .avatar { width: 28px; height: 28px; }
@media (max-width: 560px) { #mgrchip { top: calc(166px + var(--safe-t)); right: auto; left: max(10px, var(--safe-l)); } }
.bubble { background: #f1ebe0; border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14.5px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipb { background: #fff; border: 1.5px solid #d6ccba; border-radius: 999px; padding: 5px 10px; font-size: 12.5px; }
#occchip { position: fixed; top: calc(104px + var(--safe-t)); left: max(10px, var(--safe-l)); z-index: 4; background: #16202bee; color: #fff; border-radius: 20px; padding: 7px 12px; font: 500 13px var(--body); box-shadow: 0 4px 14px #0003; }
#occchip.warn { border: 1.5px solid #e8553f; }
#occchip .dn { color: #ffb3a6; font-weight: 700; }
@media (max-width: 560px) { #occchip { top: calc(166px + var(--safe-t)); left: auto; right: max(10px, var(--safe-r)); } }
.vrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; text-align: left; background: #fff; border: 1.5px solid #e2d9c8; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.vrow span { color: var(--muted); font-size: 13px; text-align: right; }
.vrow.need { border-color: #e8553f; }
.amen { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid #e8e0d0; padding-top: 8px; }
.amen.on b::after { content: ' ✓'; color: var(--green); }
.amen .btn { flex: none; min-height: 38px; padding: 6px 12px; }
/* "Who lives here" on big buildings (board B1) */
#occbar { position: fixed; top: calc(104px + var(--safe-t)); left: max(10px, var(--safe-l)); z-index: 4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: min(640px, calc(100% - 240px)); }
#occbar .seg { display: flex; background: #1b2230ee; border-radius: 12px; padding: 3px; box-shadow: 0 4px 14px #0003; }
#occbar .seg button { border-radius: 9px; padding: 7px 11px; font: 700 13px var(--body); color: #f7f1e6; }
#occbar .seg button.on { background: #f7f1e6; color: #1b2230; }
#occN { font: 800 20px var(--display); color: #fff; text-shadow: 0 2px 8px #000a; cursor: pointer; }
#occF { display: flex; gap: 6px; flex-wrap: wrap; }
.fch { border-radius: 999px; padding: 6px 11px; font: 700 12.5px var(--body); box-shadow: 0 2px 8px #0004; }
.f-empty { background: #ff5a46; color: #fff; } .f-apps { background: #ffb12e; color: #1b2230; } .f-reno { background: #6fb4ff; color: #1b2230; } .f-probs { background: #f7f1e6; color: #1b2230; }
.fch.on { box-shadow: 0 0 0 2px #fff, 0 2px 8px #0004; }
#occNext { background: #1d6b57; color: #fff; border-radius: 999px; padding: 8px 14px; font: 700 13px var(--body); box-shadow: 0 0 0 2px #fff, 0 4px 14px #0005; }
@media (max-width: 560px) {
  #occbar { top: calc(166px + var(--safe-t)); max-width: calc(100% - 20px); }
  #occNext { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h, 64px) + 16px + var(--safe-b)); padding: 12px 20px; font-size: 15px; z-index: 5; }
}
@media (max-width: 560px) { body.bigb #mgrchip { top: calc(212px + var(--safe-t)); } }
#offchip { position: fixed; left: max(10px, var(--safe-l)); bottom: calc(var(--tabs-h, 64px) + 56px + var(--safe-b)); z-index: 6; background: #1d6b57; color: #fff; border-radius: 18px; padding: 8px 12px; font: 600 13px var(--body); box-shadow: 0 4px 14px #0004; }
#offchip .bad { background: #e8553f; color: #fff; border-radius: 9px; padding: 1px 7px; margin-left: 4px; font-weight: 700; }
.facts4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.facts4 div { background: #f1ebe0; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; }
.facts4 span { font-size: 11px; color: var(--muted); } .facts4 b { font-size: 14px; }
.ask { background: #fff4e0; border: 1.5px solid #e9a23b; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.linkb { color: var(--green); text-decoration: underline; font-size: 13px; text-align: left; }
.row.wrap { flex-wrap: wrap; }
/* ---------- the managers' office (boards M1, M2) ---------- */
.tab-office { display: none !important; }
@media (max-width: 560px) {
  body.hasmgr .tab-office { display: flex !important; }
  body.hasmgr .tab-map { display: none !important; }
  body.hasmgr #offchip { display: none !important; }
}
.ofhead { background: #1b2230; color: #f7f1e6; margin: -18px -18px 0; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 3px solid #b8862b; }
.ofhead .co { font: 600 11.5px var(--mono); letter-spacing: .12em; color: #e9c77a; }
.ofhead h2 { margin: 0; font: 800 30px/1 var(--display); color: #f7f1e6; }
.ofstats { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ofstats div { display: flex; flex-direction: column; }
.ofstats span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #9aa3b0; }
.ofstats b { font: 600 15px var(--mono); color: #fff; } .ofstats b.pos { color: #7ef0b8; } .ofstats b.neg { color: #ff9b86; }
.reqpill { background: #b4472e; color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; }
.ofbody { padding-top: 14px; }
.ofgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.mcard { background: #fffaf1; border: 2px solid var(--gc, #e5dccb); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 10px; }
.mcard.g-performing { --gc: #2e9b6f; } .mcard.g-watch { --gc: #d08a1e; } .mcard.g-under { --gc: #b4472e; } .mcard.g-new { --gc: #9aa3b0; border-style: dashed; }
.mtop { display: flex; gap: 10px; align-items: center; }
.mtop .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ring { border-radius: 50%; box-shadow: 0 0 0 3px var(--g); display: inline-flex; }
.mname { font-size: 17px; }
.gchip { color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.mstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mstats div { display: flex; flex-direction: column; } .mstats span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mstats b { font: 600 14.5px var(--mono); } .up { color: #1d6b57; font-size: 11px; } .dn { color: #b4472e; font-size: 11px; } .fl { color: #5d6470; font-size: 11px; }
.mfoc { display: flex; gap: 10px; align-items: center; } .mbud { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.fchip { background: #e3eaf0; color: #24506b; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mstrip { margin: 0 -12px; padding: 9px 12px; font-size: 13px; line-height: 1.4; display: flex; gap: 10px; align-items: center; }
.mstrip.req { background: #fff3d6; border-top: 1px solid #f0dca8; } .mstrip.req span { flex: 1; } .mstrip.req .btn { min-height: 36px; padding: 6px 14px; }
.mstrip.watch { background: #fbf3e6; border-top: 1px solid #efdcbc; } .mstrip.under { background: #fbe9e4; border-top: 1px solid #efc9bd; }
.mact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .mact.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mact .btn { min-height: 40px; padding: 6px 4px; font-size: 12.5px; }
.btn.red { color: #b4472e; }
.job { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: #fff; border: 1.5px solid #e2d9c8; border-radius: 10px; padding: 9px 12px; }
.job.urgent { border-color: #e8553f; } .job.in { background: #eef6f1; border-color: #2e9b6f; }
.fopt { display: flex; flex-direction: column; gap: 2px; text-align: left; background: #fff; border: 1.5px solid #e2d9c8; border-radius: 12px; padding: 10px 12px; }
.fopt span { font-size: 13px; color: var(--muted); } .fopt.on { border-color: #1d6b57; background: #eef6f1; }
.thread { display: flex; gap: 10px; align-items: center; text-align: left; background: #fff; border: 1.5px solid #e2d9c8; border-radius: 12px; padding: 8px 10px; width: 100%; }
.thread .x { display: flex; flex-direction: column; min-width: 0; } .thread .x span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#digest { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h, 64px) + 14px + var(--safe-b)); z-index: 8; width: min(520px, calc(100% - 20px)); background: #1b2230; color: #f7f1e6; border-radius: 16px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px #0007; }
#digest .faces { display: flex; } #digest .faces .avatar { width: 30px; height: 30px; margin-right: -8px; box-shadow: 0 0 0 2px #1b2230; font-size: 11px; }
#digest .dt { flex: 1; display: flex; flex-direction: column; margin-left: 10px; min-width: 0; } #digest .dt span { font-size: 12.5px; color: #c4cad3; }
#digest .btn { min-height: 38px; padding: 6px 12px; white-space: nowrap; } #digest .dx { color: #9aa3b0; font-size: 20px; padding: 0 4px; }
@media (max-width: 560px) { .mstats b { font-size: 13px; } .mact .btn { font-size: 11.5px; } .ofgrid { grid-template-columns: 1fr; } #digest .faces { display: none; } }
.mapregions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.rtab { background: #fffaf1; border: 1.5px solid #d6ccba; border-radius: 999px; padding: 6px 12px; font: 700 13px var(--body); color: #1b2230; }
.rtab span { font-weight: 500; font-size: 11.5px; color: #5d6470; } .rtab.on { background: #1b2230; color: #fff; border-color: #1b2230; } .rtab.on span { color: #c4cad3; }
.rtab.st-ready { border-color: #1d6b57; } .rtab.st-ready span { color: #1d6b57; font-weight: 700; }
.regcard { background: #fffaf1; border-radius: 16px; padding: 18px; max-width: 420px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px #0003; }
.regcard h2 { margin: 0; font: 800 26px/1.05 var(--display); }
.tag.stabt { background: #e3eaf0; color: #24506b; } .tag.pht { background: #f3e3b8; color: #6b4a12; }
.rs { display: inline-flex; align-items: center; justify-content: center; background: #2a6f97; color: #fff; border-radius: 6px; font-weight: 700; font-size: 11px; padding: 2px 6px; letter-spacing: .06em; box-shadow: inset 0 0 0 1px #e9c77a; flex: none; }
.rsbox { background: #e3eef5; border: 1.5px solid #2a6f97; border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.capbar { position: relative; height: 34px; }
.capbar .cb-track { position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 3px; background: #e5dccb; }
.capbar .cb-ok { position: absolute; left: 0; top: 14px; height: 6px; border-radius: 3px; background: #2a6f97; }
.capbar .cb-no { position: absolute; right: 0; top: 10px; height: 14px; border-radius: 4px; background: repeating-linear-gradient(45deg, #e9e2d4 0 6px, #ddd3c2 6px 12px); }
.capbar .cb-knob { position: absolute; top: 5px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid #2a6f97; box-sizing: border-box; }
.regcard.ready { border: 3px solid #b8862b; }
.regstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .regstats div { background: #f1ebe0; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; } .regstats span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .regstats b { font: 600 14px var(--mono); }
.ckrow { display: flex; justify-content: space-between; font-size: 14px; }
.fzoom { width: calc(100% + 36px); margin: 0 -18px 4px; display: block; cursor: pointer; }
.f-rs { background: #e3eef5; color: #1b2230; } .f-band { background: #1b2230; color: #e9c77a; border: 1px solid #e9c77a; }
.emis { position: relative; height: 12px; background: #e5dccb; border-radius: 6px; } .emis .em-bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #2e9b6f, #d08a1e 60%, #b4472e); } .emis .em-lim { position: absolute; left: 60%; top: -4px; bottom: -4px; width: 2px; background: #1b2230; }
.anc-logo { width: 48px; height: 48px; border-radius: 12px; background: #1b2230; color: #e9c77a; display: grid; place-items: center; font: 800 26px var(--display); }
#map .mapwrap { position: relative; }
.regover { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: min(440px, calc(100% - 16px)); }
.rtab.whole { background: transparent; }
