:root {
  --bg: #0f1720;
  --bg2: #16212c;
  --card: #1b2836;
  --card2: #223244;
  --line: #2c3e52;
  --text: #e6edf3;
  --muted: #93a4b5;
  --green: #2f8f5b;
  --green2: #1f5f3a;
  --gold: #f2c230;
  --red: #ef4444;
  --orange: #f59e0b;
  --blue: #60a5fa;
  --ok: #4ade80;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; }
b, strong { font-weight: 650; }
.hidden { display: none !important; }

#app { display: flex; flex-direction: column; height: 100%; }

/* ---------- top bar */
#top { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: linear-gradient(180deg, #17283a, #122030); border-bottom: 1px solid var(--line); flex-wrap: nowrap; min-height: 54px; }
.brand { display: flex; align-items: center; gap: 9px; margin-right: 6px; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #2f8f5b, #1f5f3a); display: grid; place-items: center; font: 800 20px Georgia, serif; color: var(--gold); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.35); }
.logo.has-img, .title-screen .logo-big.has-img { background: none; box-shadow: none; border-radius: 50%; overflow: hidden; }
.logo.has-img img, .logo-big.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 15px; letter-spacing: .2px; }
.brand-text small { color: var(--muted); font-size: 10.5px; }
.stat { display: flex; flex-direction: column; padding: 3px 10px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); min-width: 84px; }
.stat .lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat .val { font-weight: 650; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat.grow { flex: 1; min-width: 150px; max-width: 320px; }
.stat .bar { height: 4px; border-radius: 3px; background: #2a3a4c; margin-top: 3px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .4s; }
#st-cash .val.neg { color: var(--red); }
.speed { display: flex; background: rgba(0,0,0,.25); border-radius: 9px; padding: 3px; gap: 2px; margin-left: auto; }
.speed button { background: none; border: 0; padding: 5px 9px; border-radius: 7px; font-size: 12px; color: var(--muted); }
.speed button.on { background: var(--green); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.speed button:hover:not(.on) { background: rgba(255,255,255,.08); color: var(--text); }
.icon-btn { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 6px 9px; font-size: 15px; }
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn.off { opacity: .4; }
.icon-btn.off::after { content: ''; }

main { flex: 1; display: flex; min-height: 0; }
#mapwrap { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #6c7f47; cursor: grab; }
#mapwrap.dragging { cursor: grabbing; }
#map { display: block; position: absolute; inset: 0; touch-action: none; } /* drags & pinches go to the game, not page scroll */

/* ---------- map overlays */
.card { background: rgba(20,30,42,.92); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0,0,0,.35); backdrop-filter: blur(6px); }
#goals { position: absolute; top: 10px; left: 10px; width: 290px; padding: 10px 12px; cursor: default; }
#goals h3 { margin: 0 0 2px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
#goals h3 .lvl { color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
#goals .toggle { background: none; border: 0; color: var(--muted); padding: 0 2px; }
#goals ul { list-style: none; margin: 6px 0 0; padding: 0; }
#goals li { display: flex; gap: 7px; align-items: flex-start; padding: 3px 0; color: var(--text); font-size: 12px; }
#goals li .ck { width: 15px; height: 15px; flex: none; border-radius: 50%; border: 1.5px solid var(--muted); margin-top: 1px; display: grid; place-items: center; font-size: 9px; }
#goals li.done { color: var(--muted); text-decoration: line-through; }
#goals li.done .ck { background: var(--green); border-color: var(--green); color: #fff; }
#goals li .n { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11px; }
#goals .hint { margin-top: 8px; padding: 7px 9px; border-radius: 8px; background: rgba(242,194,48,.12); border: 1px solid rgba(242,194,48,.3); font-size: 12px; color: #fbe7a1; }
#goals .hint b { color: #fff; }
#goals.collapsed ul, #goals.collapsed .hint { display: none; }

#mapctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
#mapctl button { width: 32px; height: 32px; border-radius: 8px; background: rgba(20,30,42,.9); border: 1px solid rgba(255,255,255,.1); font-size: 16px; }
#mapctl button:hover { background: rgba(40,60,80,.95); }
#minimap { position: absolute; right: 10px; bottom: 34px; border-radius: 8px; border: 2px solid rgba(20,30,42,.9); box-shadow: 0 4px 14px rgba(0,0,0,.4); cursor: pointer; width: 200px; height: 143px; }
#inspector { position: absolute; left: 10px; bottom: 34px; width: 300px; padding: 10px 12px; cursor: default; }
#inspector h4 { margin: 0 0 4px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#inspector .x { background: none; border: 0; color: var(--muted); font-size: 16px; }
#tooltip { position: absolute; pointer-events: none; background: rgba(15,23,32,.95); border: 1px solid rgba(255,255,255,.1); padding: 6px 8px; border-radius: 7px; font-size: 12px; max-width: 240px; z-index: 5; }
#toasts { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; z-index: 6; width: min(520px, 70%); }
.toast { background: rgba(15,23,32,.95); border: 1px solid rgba(255,255,255,.1); border-left: 4px solid var(--blue); padding: 7px 12px; border-radius: 8px; font-size: 12.5px; box-shadow: 0 6px 18px rgba(0,0,0,.4); animation: tin .25s ease-out; max-width: 100%; }
.toast.good { border-left-color: var(--ok); }
.toast.bad { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--orange); }
.toast.order { border-left-color: var(--gold); }
.toast.out { opacity: 0; transform: translateY(-6px); transition: all .4s; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
#ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: rgba(12,18,26,.82); border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; color: #c9d4de; display: flex; align-items: center; padding: 0 12px; gap: 10px; white-space: nowrap; overflow: hidden; }
#ticker .t { color: var(--muted); font-variant-numeric: tabular-nums; }
#update-banner { position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%); z-index: 7; width: max-content; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: rgba(20,30,42,.96); border: 1px solid rgba(242,194,48,.5); border-radius: 12px; padding: 9px 12px; box-shadow: 0 8px 28px rgba(0,0,0,.45); font-size: 13px; max-width: calc(100% - 32px); animation: tin .3s ease-out; }
#skip-night { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 5; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(20,32,52,.88); color: #f3ead2; font: 700 14px system-ui; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.4); white-space: nowrap; }
#skip-night:hover { background: rgba(34,52,82,.95); }
#skip-night.busy { opacity: .75; cursor: default; }
#paused-banner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font: 800 28px system-ui; letter-spacing: .3em; color: rgba(255,255,255,.85); text-shadow: 0 2px 12px rgba(0,0,0,.6); pointer-events: none; }

/* ---------- side panel */
#side { width: 440px; flex: none; display: flex; flex-direction: column; background: var(--bg2); border-left: 1px solid var(--line); min-height: 0; }
#tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 6px 0; background: #122030; border-bottom: 1px solid var(--line); }
#tabs button { position: relative; background: none; border: 0; border-radius: 8px 8px 0 0; padding: 6px 7px 7px; color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
#tabs button:hover { color: var(--text); background: rgba(255,255,255,.04); }
#tabs button.on { color: var(--text); background: var(--bg2); box-shadow: inset 0 2px 0 var(--gold); }
#tabs button.locked { opacity: .45; }
#tabs button .badge { background: var(--orange); color: #111; border-radius: 9px; padding: 0 5px; font-size: 10px; font-weight: 800; line-height: 15px; min-width: 15px; text-align: center; }
#tabs button .badge.red { background: var(--red); color: #fff; }
#tabs button.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: inset 0 0 0 0 rgba(242,194,48,0); } 50% { box-shadow: inset 0 0 0 2px rgba(242,194,48,.8); background: rgba(242,194,48,.12); color: #fff; } }
#panel { flex: 1; overflow-y: auto; padding: 10px 12px 30px; scrollbar-width: thin; scrollbar-color: #334 transparent; }
#panel h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 14px 0 7px; display: flex; justify-content: space-between; align-items: center; }
#panel h2:first-child { margin-top: 2px; }
#panel h2 .sub { text-transform: none; letter-spacing: 0; font-weight: 500; }
.empty { color: var(--muted); font-style: italic; padding: 10px; text-align: center; background: rgba(255,255,255,.02); border-radius: 8px; border: 1px dashed var(--line); }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; margin-bottom: 8px; }
.item.hl { border-color: rgba(242,194,48,.55); box-shadow: 0 0 0 1px rgba(242,194,48,.2); }
.item.late { border-color: rgba(239,68,68,.6); }
.item .row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.item .title { font-weight: 650; font-size: 13px; }
.item .sub { color: var(--muted); font-size: 11.5px; }
.item .grade { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; color: #fde68a; font-size: 12.5px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 12px; margin-top: 6px; }
.kv span:nth-child(odd) { color: var(--muted); }
.kv span:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tag { font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.07); color: #cbd5e1; font-weight: 600; }
.tag.field { background: rgba(217,131,43,.2); color: #fdba74; }
.tag.custom { background: rgba(167,139,250,.18); color: #c4b5fd; }
.tag.rush { background: rgba(239,68,68,.2); color: #fca5a5; }
.tag.good { background: rgba(74,222,128,.15); color: #86efac; }
.tag.bad { background: rgba(239,68,68,.18); color: #fca5a5; }
.tag.warn { background: rgba(245,158,11,.18); color: #fcd34d; }
.tag.money { font-variant-numeric: tabular-nums; }
.tag.money:not(.good):not(.warn):not(.bad) { background: rgba(96,165,250,.16); color: #bfdbfe; }
.btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.btn { background: var(--card2); border: 1px solid #36506a; border-radius: 7px; padding: 5px 11px; font-weight: 600; font-size: 12px; }
.btn:hover:not(:disabled) { background: #2b4058; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--green); border-color: #3aa56b; color: #fff; }
.btn.primary:hover:not(:disabled) { background: #36a066; }
.btn.gold { background: #b8901c; border-color: #d9aa2a; color: #fff; }
.btn.danger { background: #7a2a2a; border-color: #a33; }
.btn.small { padding: 3px 8px; font-size: 11px; }
.btn.ghost { background: transparent; }
select.sel, input.inp { background: #0f1822; border: 1px solid #36506a; color: var(--text); border-radius: 7px; padding: 4px 6px; font-size: 12px; }
input.inp { width: 90px; }
.meter { height: 7px; background: #0f1822; border-radius: 4px; overflow: hidden; display: flex; margin-top: 5px; }
.meter i { display: block; height: 100%; }
.meter .d { background: var(--ok); }
.meter .t { background: var(--blue); }
.meter .r { background: var(--gold); }
.meter .b { background: #a78bfa; }
.meter .inc { background: repeating-linear-gradient(45deg, #4b6b8a 0 3px, #2d4760 3px 6px); }
.cond { height: 6px; background: #0f1822; border-radius: 3px; overflow: hidden; margin-top: 3px; }
.cond i { display: block; height: 100%; }
.note { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.warnline { font-size: 11.5px; color: #fcd34d; margin-top: 4px; }
.badline { font-size: 11.5px; color: #fca5a5; margin-top: 4px; }
.goodline { font-size: 11.5px; color: #86efac; margin-top: 4px; }
.recipe { margin-top: 6px; display: flex; height: 16px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(0,0,0,.4); }
.recipe i { display: block; height: 100%; position: relative; }
.recipe-legend { display: flex; flex-wrap: wrap; gap: 3px 9px; margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.recipe-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 3px; background: var(--c); vertical-align: -1px; }
.locked-panel { text-align: center; padding: 40px 20px; color: var(--muted); }
.locked-panel .big { font-size: 42px; margin-bottom: 10px; }
.locked-panel h3 { color: var(--text); margin: 0 0 6px; }
table.mat { width: 100%; border-collapse: collapse; font-size: 12px; }
table.mat td, table.mat th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.mat th { color: var(--muted); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: -2px; margin-right: 5px; border: 1px solid rgba(0,0,0,.4); }
.up { color: #fca5a5; } .down { color: #86efac; }
.seg { display: inline-flex; background: #0f1822; border: 1px solid #36506a; border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { background: none; border: 0; border-radius: 6px; padding: 4px 9px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px #4a6a8a; }
.seg button:disabled { opacity: .35; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 22px; height: 22px; border-radius: 6px; background: var(--card2); border: 1px solid #36506a; padding: 0; font-weight: 700; }
.chart { width: 100%; height: 150px; display: block; background: #121c26; border-radius: 8px; border: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bigstat { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.bigstat .lbl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bigstat .val { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.log { font-size: 11.5px; }
.log div { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.04); display: flex; gap: 8px; }
.log .t { color: var(--muted); flex: none; width: 88px; font-variant-numeric: tabular-nums; }
.log .bad { color: #fca5a5; } .log .good { color: #86efac; } .log .warn { color: #fcd34d; }
.alert { background: linear-gradient(90deg, rgba(239,68,68,.22), rgba(239,68,68,.08)); border: 1px solid rgba(239,68,68,.5); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; }
.chance { display: inline-block; font-weight: 700; padding: 1px 7px; border-radius: 5px; font-size: 11px; }

/* ---------- modal */
#modal { position: fixed; inset: 0; background: rgba(5,10,16,.72); display: grid; place-items: center; z-index: 50; backdrop-filter: blur(3px); animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.modal-box { background: linear-gradient(180deg, #1c2a3a, #16212c); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; width: min(560px, 92vw); max-height: 88vh; overflow-y: auto; padding: 22px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: pop .25s cubic-bezier(.2,1.4,.5,1); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.modal-box h1 { margin: 0 0 4px; font-size: 22px; }
.modal-box h1 .star { color: var(--gold); }
.modal-box .kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.modal-box p { color: #cfd9e2; font-size: 13.5px; line-height: 1.55; }
.modal-box ul { padding-left: 18px; color: #cfd9e2; }
.modal-box li { margin: 4px 0; }
.modal-box .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.modal-box .btn { padding: 8px 16px; font-size: 13px; }
.mentor { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.04); border-radius: 12px; padding: 12px; margin: 10px 0; }
.mentor .face { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #3b7a55, #1f5f3a); display: grid; place-items: center; font-size: 24px; flex: none; }
.mentor p { margin: 0; }
.mentor .who { font-size: 11px; color: var(--muted); margin-top: 4px; }
.unlocks { display: grid; gap: 6px; margin: 10px 0; }
.unlocks div { background: rgba(47,143,91,.14); border: 1px solid rgba(47,143,91,.4); border-radius: 9px; padding: 7px 10px; font-size: 12.5px; }
.title-screen { text-align: center; }
.title-screen .logo-big { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 10px; background: linear-gradient(135deg, #2f8f5b, #1f5f3a); display: grid; place-items: center; font: 800 48px Georgia, serif; color: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.title-screen h1 { font-size: 30px; }
.title-screen .actions { justify-content: center; }
.range { width: 100%; }
.modal-box.wide { width: min(720px, 94vw); }
.settings details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: rgba(255,255,255,.02); }
.settings summary { cursor: pointer; padding: 10px 12px; font-weight: 650; display: flex; gap: 8px; align-items: center; }
.settings details[open] summary { border-bottom: 1px solid var(--line); }
.set-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 7px 12px; border-bottom: 1px solid rgba(255,255,255,.04); }
.set-row:last-child { border-bottom: 0; }
.set-row label { font-size: 13px; color: #cfd9e2; }
.set-row.changed { background: rgba(242,194,48,.07); }
.set-row.changed label { color: #fff; }
.set-ctl { display: flex; align-items: center; gap: 6px; }
.set-ctl .inp { width: 104px; text-align: right; font-variant-numeric: tabular-nums; }
.set-ctl .unit { color: var(--muted); font-size: 11.5px; min-width: 64px; }
.set-ctl .reset { background: none; border: 1px solid #4a6a8a; border-radius: 6px; color: var(--gold); width: 26px; height: 26px; padding: 0; }
.set-row .def { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }
@media (max-width: 520px) { .set-row { grid-template-columns: 1fr; } .set-ctl .inp { width: 120px; } }
.music-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.music-pick button { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; display: flex; flex-direction: column; gap: 1px; }
.music-pick button small { color: var(--muted); font-size: 11px; }
.music-pick button:hover { border-color: #4a6a8a; }
.music-pick button.on { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(242,194,48,.35); background: rgba(242,194,48,.08); }
@media (max-width: 480px) { .music-pick { grid-template-columns: 1fr; } }
.help h3 { margin: 14px 0 4px; font-size: 14px; color: var(--gold); }
.help p { margin: 4px 0; font-size: 13px; }

@media (max-width: 1100px) {
  .brand-text small, #st-weather { display: none; }
  #side { width: 380px; }
}
@media (max-width: 860px) {
  html, body { overflow: auto; }
  #app { height: auto; min-height: 100vh; }
  #top { flex-wrap: wrap; }
  .brand-text, #st-rep { display: none; }
  .stat.grow { order: 10; max-width: none; flex-basis: 100%; }
  main { flex-direction: column; }
  #mapwrap { height: 56vh; flex: none; }
  #side { width: 100%; border-left: 0; border-top: 1px solid var(--line); min-height: 60vh; }
  #goals { width: 210px; padding: 7px 9px; }
  #goals li { font-size: 11px; padding: 2px 0; }
  #goals .hint { font-size: 11px; margin-top: 4px; }
  #toasts { top: auto; bottom: 34px; width: 92%; }
  #toasts .toast { font-size: 12px; padding: 6px 10px; }
  #toasts .toast:nth-last-child(n+3) { display: none; } /* two at a time on a phone */
  .stat.grow { padding: 2px 10px 4px; }
  .stat.grow .lbl { display: none; }
  .stat.grow .val { font-size: 13px; }
  #skip-night { bottom: 40px; font-size: 13px; padding: 8px 14px; }
  .info-btn { width: 20px; height: 20px; font-size: 12px; }
  #mapctl button { width: 28px; height: 28px; }
  #minimap, #inspector { display: none; }
}

/* ⓘ info buttons: secondary detail folded away until tapped */
.info-btn { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; padding: 0; margin-left: 4px; border-radius: 50%; border: 1px solid rgba(148,163,184,.55); background: transparent; color: var(--muted); font: italic 700 11px Georgia, serif; line-height: 1; cursor: pointer; vertical-align: middle; text-transform: none; letter-spacing: 0; flex: none; position: relative; }
.info-btn::after { content: ''; position: absolute; inset: -8px; } /* bigger tap target */
.info-btn:hover, .info-btn.on { color: #0f172a; background: #cbd5e1; border-color: #cbd5e1; }
.info-pop { margin: 6px 0 8px; padding: 8px 10px; border-radius: 8px; background: rgba(148,163,184,.1); border-left: 3px solid rgba(148,163,184,.5); font-size: 12px; line-height: 1.45; color: var(--text, #e5e7eb); text-transform: none; letter-spacing: 0; font-weight: 400; }
.info-pop .kv { margin-top: 4px; }
.tag.drop { background: rgba(167,139,250,.2); color: #ddd6fe; }
