/* DiscVerse web client. The map is the whole screen; the panels float around it. Accent colour #0090FE. */
:root {
  --bg: #050b16; --panel: rgba(9, 18, 34, .86); --panel2: rgba(16, 30, 54, .9); --line: rgba(120, 165, 230, .18); --line2: rgba(120, 165, 230, .32);
  --text: #dbe6f5; --muted: #7f93b0; --accent: #0090fe; --accent2: #36adff; --good: #3ddc84; --warn: #f5b942; --bad: #ff5d6c;
  --hull: #3ddc84; --shield: #0090fe; --fuel: #f5b942; --power: #b58cff; --cargo: #8aa4c8;
  --radius: 10px; --logh: 232px; --topH: 48px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); font: 14px/1.4 var(--font); -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body.game { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12px; } .grow { flex: 1; } .spacer { flex: 1; }
b { font-weight: 650; }
a { color: var(--accent2); }
h2 { margin: 0 0 8px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
h2 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
code { font-family: var(--mono); background: rgba(0, 144, 254, .14); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
pre { font-family: var(--mono); font-size: 12px; background: rgba(0, 0, 0, .35); padding: 8px 10px; border-radius: 8px; overflow-x: auto; margin: 6px 0; white-space: pre; }
.pix { image-rendering: pixelated; image-rendering: crisp-edges; border-radius: 8px; background: rgba(0, 0, 0, .3); }

/* ---------- buttons and inputs ---------- */
button { font: inherit; color: inherit; cursor: pointer; }
.btn { background: var(--panel2); border: 1px solid var(--line2); color: var(--text); border-radius: 8px; padding: 7px 12px; min-height: 34px; transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { border-color: var(--accent2); background: rgba(0, 144, 254, .16); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--accent2); }
.btn.danger { border-color: rgba(255, 93, 108, .55); color: #ffb3ba; } .btn.danger:hover { background: rgba(255, 93, 108, .2); }
.btn.small { padding: 4px 9px; min-height: 28px; font-size: 12.5px; }
.btn.big { padding: 12px 22px; font-size: 16px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.mini { background: rgba(0, 144, 254, .2); border: 1px solid rgba(0, 144, 254, .5); color: #cfe8ff; border-radius: 6px; padding: 2px 8px; font-size: 12px; min-height: 24px; }
.mini.alt { background: rgba(61, 220, 132, .16); border-color: rgba(61, 220, 132, .5); color: #c9f7dd; }
.mini:hover { filter: brightness(1.25); }
.link { background: none; border: 0; color: var(--muted); padding: 0 4px; text-decoration: underline; }
input[type=text], input[type=search], input:not([type]), input[inputmode] { font: inherit; color: var(--text); background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; min-height: 34px; min-width: 0; }
input:focus { outline: 2px solid rgba(0, 144, 254, .55); outline-offset: 0; border-color: var(--accent); }
form.inline { display: flex; gap: 6px; margin-top: 8px; align-items: center; } form.inline input { flex: 1; width: 0; }
.btnrow { display: flex; gap: 6px; margin-top: 8px; } .btnrow.wrap { flex-wrap: wrap; }
.badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 99px; background: rgba(127, 147, 176, .22); border: 1px solid var(--line2); }
.badge.fly { background: rgba(0, 144, 254, .22); border-color: rgba(0, 144, 254, .6); } .badge.bad { background: rgba(255, 93, 108, .2); border-color: rgba(255, 93, 108, .6); }

/* ---------- landing page ---------- */
body.landing { min-height: 100dvh; display: grid; place-items: center; background: radial-gradient(1200px 700px at 70% -10%, rgba(0, 144, 254, .22), transparent 60%), radial-gradient(900px 600px at 0% 110%, rgba(120, 80, 255, .16), transparent 60%), var(--bg); padding: 24px; }
.hero { max-width: 640px; text-align: left; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 12px 0; letter-spacing: -.02em; }
.hero .lead { color: #b8c8de; font-size: 16px; }
.brand { font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.brand .logo { color: var(--accent); }
.brand.big { font-size: 20px; }

/* ---------- header ---------- */
#top { height: var(--topH); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: linear-gradient(#0a1426, #07101f); border-bottom: 1px solid var(--line); z-index: 30; }
#chips { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; min-width: 0; }
#chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 3px 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 99px; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip.money { color: #ffe08a; }
.conn { flex: none; font-size: 11.5px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line2); }
.conn::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.conn.on::before { background: var(--good); box-shadow: 0 0 6px var(--good); } .conn.mid::before { background: var(--warn); } .conn.off::before { background: var(--bad); }
#user { display: flex; align-items: center; gap: 8px; flex: none; } #user img { border-radius: 50%; } #user form { margin: 0; }
.uname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- stage: the map and everything floating on it ---------- */
#stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; background: #02060d; cursor: crosshair; outline: none; }
#map:active { cursor: grabbing; }
.dock { position: absolute; z-index: 10; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.dock > * { pointer-events: auto; flex: none; }
#left { left: 12px; top: 12px; width: 300px; max-height: calc(100% - 24px); overflow-y: auto; scrollbar-width: thin; }
#right { right: 12px; top: 12px; width: 330px; max-height: calc(100% - 24px); overflow-y: auto; scrollbar-width: thin; }
.panel, .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.panel:empty, .panel.empty { display: none; }

#maptools { position: absolute; z-index: 11; left: 324px; top: 56px; display: flex; flex-direction: column; gap: 6px; }
#maptools button { width: 36px; height: 36px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line2); font-size: 17px; line-height: 1; backdrop-filter: blur(8px); }
#maptools button:hover { border-color: var(--accent2); } #maptools button.on { background: rgba(0, 144, 254, .35); border-color: var(--accent); }
#search { position: absolute; z-index: 12; left: 324px; top: 12px; width: 270px; margin: 0; }
#search input { width: 100%; background: var(--panel); backdrop-filter: blur(8px); }
#qlist { margin-top: 4px; background: var(--panel2); border-radius: 8px; overflow: hidden; border: 1px solid transparent; }
#qlist:not(:empty) { border-color: var(--line2); }
#qlist a { display: block; padding: 7px 10px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 13px; }
#qlist a:hover { background: rgba(0, 144, 254, .25); }
#coords { position: absolute; z-index: 9; left: 324px; bottom: calc(var(--logh) + 20px); font-size: 12px; color: var(--muted); text-shadow: 0 1px 3px #000; pointer-events: none; font-variant-numeric: tabular-nums; }
#sel { position: absolute; z-index: 12; left: 372px; top: 62px; width: 330px; max-width: calc(100% - 400px); }
.selhead, .placehead, .shiphead { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }

/* ---------- ship panel ---------- */
.shipimg { image-rendering: pixelated; border-radius: 8px; background: rgba(0, 0, 0, .3); flex: none; }
.shipname { font-size: 16px; display: block; }
.bar { margin: 7px 0; }
.bar .bl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.bar .bt { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar .bt i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--accent)); transition: width .4s ease; }
.bar.hull { --c: var(--hull); } .bar.shield { --c: var(--shield); } .bar.fuel { --c: var(--fuel); } .bar.power { --c: var(--power); } .bar.cargo { --c: var(--cargo); } .bar.nav { --c: var(--accent2); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tag { background: rgba(138, 164, 200, .14); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 12px; }
.stats { display: flex; gap: 12px; margin-top: 8px; font-size: 12.5px; color: #b8c8de; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.alert { margin-top: 8px; padding: 6px 9px; border-radius: 8px; font-size: 12.5px; border: 1px solid var(--line2); background: rgba(0, 144, 254, .12); }
.alert.bad { background: rgba(255, 93, 108, .15); border-color: rgba(255, 93, 108, .5); } .alert.warn { background: rgba(245, 185, 66, .13); border-color: rgba(245, 185, 66, .5); }
.navline { font-size: 14px; margin-bottom: 4px; }
.targetline { margin-top: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(0, 144, 254, .12); font-size: 12.5px; }

/* ---------- place, market, nearby ---------- */
.hereitem { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); } .hereitem > span { flex: 1; min-width: 0; } .hereitem small { margin-left: 4px; }
.tablewrap { max-height: 300px; overflow: auto; margin: 0 -4px; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; position: sticky; top: 0; background: #0b1627; padding: 4px; }
td { padding: 4px; border-top: 1px solid var(--line); }
.num { text-align: right; } td.act { text-align: right; white-space: nowrap; } td.act .mini { margin-left: 3px; }
.qty { display: flex; gap: 4px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.qty input { width: 64px; min-height: 28px; padding: 2px 6px; }
.fuelrow { margin-top: 8px; font-size: 12.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nearlist { list-style: none; padding: 0; margin: 8px 0 0; max-height: 240px; overflow: auto; scrollbar-width: thin; }
.nearlist li { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 6px; }
.nearlist li:hover { background: rgba(0, 144, 254, .16); } .nearlist li > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nearlist li em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.dotship, .dotpoi { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #ff8f5a; box-shadow: 0 0 6px #ff8f5a; }
.dotpoi { background: var(--cargo); box-shadow: none; } .dotpoi.t-planet { background: #6fc2ff; } .dotpoi.t-starbase { background: #ffe08a; } .dotpoi.t-moon { background: #aab; } .dotpoi.t-merchant { background: #7df0b6; }

/* ---------- log and console ---------- */
#bottom { position: absolute; z-index: 10; left: 324px; right: 354px; bottom: 12px; height: var(--logh); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); pointer-events: auto; }
#logtabs { display: flex; gap: 2px; padding: 4px 6px 0; align-items: center; border-bottom: 1px solid var(--line); }
#logtabs button { background: none; border: 0; padding: 6px 10px; color: var(--muted); border-bottom: 2px solid transparent; font-size: 12.5px; }
#logtabs button.on { color: var(--text); border-color: var(--accent); }
#evcount { background: var(--bad); color: #fff; border-radius: 99px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.logbody { flex: 1; overflow-y: auto; padding: 8px 12px; min-height: 0; scrollbar-width: thin; }
.entry { margin-bottom: 10px; } .entry .echo { color: var(--accent2); font-family: var(--mono); font-size: 12px; margin-bottom: 2px; } .entry .body { font-size: 13px; overflow-wrap: anywhere; }
.entry .pic { display: block; max-width: 100%; border-radius: 8px; margin-top: 6px; border: 1px solid var(--line); }
.reacts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; } .reacts button { background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 3px 9px; font-size: 16px; }
.ev { padding: 3px 0; font-size: 13px; display: flex; gap: 6px; } .ev .time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; flex: none; } .ev.loud { color: #ffc9ce; }
#cmd { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-top: 1px solid var(--line); margin: 0; }
#cmd .prompt { color: var(--accent2); font-family: var(--mono); padding-left: 4px; } #cmd input { flex: 1; font-family: var(--mono); font-size: 13px; }
#quick { display: flex; gap: 5px; padding: 0 8px 7px; overflow-x: auto; scrollbar-width: none; }
.chipbtn { flex: none; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: 12px; color: #b8c8de; } .chipbtn:hover { border-color: var(--accent2); color: #fff; }
body.busy #cmd .btn.primary { opacity: .6; }
body.busy #map { cursor: progress; }


/* ---------- chat panel ---------- */
body.chat-open { --logh: min(476px, 64dvh); }
#bottom { transition: height .18s ease; }
#logtabs .spacer { flex: 1; }
#logtabs button { position: relative; }
#logtabs .cnt { display: inline-block; background: var(--accent); color: #fff; border-radius: 99px; padding: 0 6px; font-size: 10.5px; line-height: 16px; margin-left: 5px; font-weight: 600; vertical-align: 1px; }
#logtabs [data-ch="system"] .cnt { background: var(--warn); color: #1a1200; }
#logmin { font-size: 15px; padding: 4px 10px; }
.chlist { display: block; }
.msg { padding: 1px 0; font-size: 13px; line-height: 17px; overflow-wrap: anywhere; }
.msg .time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.msg .who { color: var(--accent2); font-weight: 600; } .msg .who.clk { cursor: pointer; text-decoration: underline dotted; }
.msg.mine .who { color: var(--good); } .msg .sep { color: var(--muted); }
.msg.sys .txt { color: #c9d6ea; } .msg.sys.loud .txt { color: #ffc9ce; } .msg .ico { display: inline-block; width: 1.3em; text-align: center; }
.msg .muted { color: var(--muted); } .muted { color: var(--muted); }
#cmd input:disabled { opacity: .6; cursor: not-allowed; }
#cmd .prompt { font-family: var(--font, inherit); font-size: 12px; min-width: 52px; text-align: right; }
#cmd input { font-family: inherit; }
.modmenu { position: fixed; z-index: 80; background: #0b1627; border: 1px solid var(--line2); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; width: 180px; box-shadow: 0 10px 34px rgba(0, 0, 0, .6); }
.modmenu b { padding: 2px 4px 4px; } .modmenu button { text-align: left; background: var(--panel2); border: 1px solid var(--line2); color: var(--text); border-radius: 6px; padding: 5px 8px; font-size: 12.5px; } .modmenu button:hover { border-color: var(--accent2); }

/* ---------- menu, forms and result dialogs ---------- */
#menubtn { margin-left: 8px; }
.dialog.wide { max-width: min(720px, 100%); width: 100%; }
.dialog { max-height: calc(100dvh - 32px); display: flex; flex-direction: column; min-width: min(340px, 100%); }
.dlghead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .dlghead h2 { margin: 0; flex: 1; }
.dlghead input[type=search] { flex: 0 1 180px; min-width: 0; }
.dlghead .x { background: none; border: 0; color: var(--muted); font-size: 18px; padding: 4px 8px; } .dlghead .x:hover { color: var(--text); }
.resbody, .menubody { overflow-y: auto; min-height: 0; font-size: 13.5px; overflow-wrap: anywhere; scrollbar-width: thin; }
.resbody .pic { display: block; max-width: 100%; border-radius: 8px; margin-top: 8px; border: 1px solid var(--line); }
.dialog .btnrow { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.mgroup { margin-bottom: 12px; } .mgroup h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.mitems { display: flex; flex-wrap: wrap; gap: 6px; }
.fld { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; } .fld label { font-size: 12px; color: var(--muted); }
.fld input, .fld select { width: 100%; }
.fld .amt { display: flex; gap: 5px; align-items: center; } .fld .amt input { flex: 1; min-width: 0; }
.dialog form { overflow-y: auto; min-height: 0; }



/* ---------- warnings block (top right, above the other panels) ---------- */
#p-warn h2 { display: flex; align-items: center; justify-content: space-between; } #p-warn h2 .mini { font-weight: 400; text-transform: none; letter-spacing: 0; }
#p-warn .allquiet { margin: 4px 0 0; color: var(--good); font-size: 13px; }
#p-warn.quiet { border-color: rgba(61, 220, 132, .28); } #p-warn.warm { border-color: rgba(245, 185, 66, .55); } #p-warn.hot { border-color: rgba(255, 93, 108, .65); }
#p-warn .alert:first-of-type { margin-top: 4px; } #p-warn .alert .x { float: right; background: none; border: 0; color: var(--muted); padding: 0 2px; } #p-warn .alert .x:hover { color: var(--text); }

/* ---------- tutorial card ---------- */
#tut { position: absolute; z-index: 13; left: 372px; bottom: calc(var(--logh) + 36px); width: min(560px, calc(100% - 372px - 354px)); max-height: 55dvh; overflow-y: auto; padding: 10px 14px; border-color: rgba(0, 144, 254, .6); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); scrollbar-width: thin; }
#tut .tuthead { display: flex; align-items: center; gap: 8px; } #tut .spacer { flex: 1; }
#tut .tutbar { height: 4px; background: rgba(255, 255, 255, .08); border-radius: 3px; margin: 6px 0 8px; overflow: hidden; } #tut .tutbar i { display: block; height: 100%; background: var(--accent); }
#tut .tutask { font-size: 14.5px; margin-bottom: 8px; }
#tut .tutdo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.tutships { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.tutship { background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- toasts and overlays ---------- */
#toasts { position: absolute; z-index: 40; top: 58px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: min(420px, calc(100% - 24px)); }
.toast { background: rgba(10, 22, 42, .95); border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: 8px; padding: 7px 12px; font-size: 13px; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); animation: tin .2s ease; width: 100%; }
.toast.bad { border-left-color: var(--bad); } .toast.good { border-left-color: var(--good); } .toast.warn { border-left-color: var(--warn); } .toast.out { opacity: 0; transition: opacity .5s; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.overlay { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(3, 8, 16, .72); backdrop-filter: blur(4px); padding: 16px; }
#blocker { z-index: 60; }
.dialog { background: #0b1627; border: 1px solid var(--line2); border-radius: 14px; padding: 22px 26px; max-width: 460px; box-shadow: 0 16px 60px rgba(0, 0, 0, .6); }
.dialog h2 { font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--text); margin-bottom: 10px; }

#tabbar { display: none; }

/* ---------- narrow screens (phones): the map fills the screen, one panel at a time as a sheet above the tab bar ---------- */
@media (max-width: 1100px) {
  #search { width: 220px; } #bottom { right: 12px; } #sel { max-width: calc(100% - 400px); }
  #right { width: 300px; }
}
@media (max-width: 860px) {
  :root { --topH: 44px; }
  .uname, #user form, .brand span:not(.logo) { display: none; }
  #left, #right { left: 0; right: 0; top: auto; bottom: 56px; width: auto; max-height: none; overflow: visible; padding: 0 8px; }
  #right { display: block; } #left { display: block; }
  .dock > .panel { display: none; }
  body[data-tab="ship"] .panel[data-tab="ship"], body[data-tab="nav"] .panel[data-tab="nav"], body[data-tab="place"] .panel[data-tab="place"], body[data-tab="market"] .panel[data-tab="market"], body[data-tab="near"] .panel[data-tab="near"] { display: block; max-height: 44dvh; overflow-y: auto; border-radius: 14px; }
  .panel:empty, .panel.empty { display: none !important; }
  #bottom { display: none; left: 8px; right: 8px; bottom: 56px; height: 44dvh; }
  body.chat-open #bottom { height: 70dvh; }
  .dialog { padding: 16px; } .dlghead input[type=search] { flex-basis: 120px; }
  #menubtn { margin-left: 4px; }
  body[data-tab="log"] #bottom { display: flex; } body[data-tab="log"] #maptools { display: none; }
  #tabbar { display: flex; position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: 52px; padding-bottom: env(safe-area-inset-bottom); background: #07101f; border-top: 1px solid var(--line); }
  #tabbar button { flex: 1; background: none; border: 0; color: var(--muted); font-size: 12px; } #tabbar button.on { color: var(--accent2); box-shadow: inset 0 2px 0 var(--accent); }
  #search { left: 8px; top: 8px; width: calc(100% - 64px); max-width: 300px; }
  #maptools { left: auto; right: 8px; top: 8px; } #maptools button { width: 38px; height: 38px; }
  #coords { display: none; }
  #sel { left: 8px; right: 8px; top: 54px; width: auto; max-width: none; }
  #toasts { top: 8px; }
  .btn { min-height: 38px; } .btn.small { min-height: 34px; } .mini { min-height: 30px; padding: 3px 10px; }
  #cmd input { font-size: 16px; } input { font-size: 16px; }
  #right > #p-warn { display: none !important; } #right > #p-warn.warm, #right > #p-warn.hot { display: block !important; position: fixed; z-index: 14; top: 52px; left: 8px; right: 8px; max-height: 32dvh; overflow-y: auto; }
  #tut { left: 8px; right: 8px; width: auto; bottom: 62px; max-height: 50dvh; } body.chat-open #tut, body[data-tab="log"] #tut { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.sigline { margin-top: 8px; font-size: 12px; color: #ffd28a; }
