/* SOLUS — Martian Exploration Mission Map */
:root {
  --bg: #0a0f17;
  --panel: #0e1520;
  --panel-2: #121b28;
  --line: #1f2a3a;
  --line-2: #2b3a50;
  --text: #e7edf5;
  --muted: #8d9bb0;
  --faint: #5d6b80;
  --accent: #6cc4ee;
  --accent-dim: rgba(108, 196, 238, .14);
  --ok: #46b98a;
  --caution: #f0a43a;
  --nogo: #e5484d;
  --unknown: #8a93a3;
  --suspect: #d65db1;
  --crater: #c9a0ff;
  --route: #ffffff;
  --mars: #c56b45;
  --radius: 8px;
  --font: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-cond: 'Barlow Condensed', 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --sidebar: 360px;
  --bottombar: 58px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; }
body { overflow: hidden; }
button { font: inherit; color: inherit; }
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; grid-template-rows: 1fr var(--bottombar); height: 100vh; }

/* ---------- sidebar ---------- */
.sidebar { grid-row: 1 / 2; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.brand { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); position: relative; }
.brand .arc { position: absolute; left: 22px; top: 10px; width: 92px; height: 14px; border-top: 2px solid var(--nogo); border-radius: 50% 50% 0 0; opacity: .9; }
.brand h1 { margin: 6px 0 0; font-family: var(--font); font-weight: 700; font-size: 40px; letter-spacing: 1px; line-height: 1; }
.brand .ver { position: absolute; right: 18px; top: 22px; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.brand .sub { color: var(--muted); margin-top: 6px; font-size: 15px; }

.scroll { overflow-y: auto; flex: 1; min-height: 0; }
.scroll::-webkit-scrollbar { width: 8px; } .scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.section { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.section h2 { margin: 0 0 10px; font-family: var(--font-cond); font-weight: 600; font-size: 15px; letter-spacing: 2.2px; text-transform: uppercase; color: #c9d3e1; display: flex; align-items: center; justify-content: space-between; }
.section h2 small { font-family: var(--font); letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); font-size: 12px; }

.seg { display: grid; gap: 8px; }
.seg.cols-2 { grid-template-columns: 1fr 1fr; } .seg.cols-3 { grid-template-columns: repeat(3, 1fr); }
.seg button { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; transition: .15s; }
.seg button small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.seg button:hover { border-color: #3d5270; }
.seg button.active { border-color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent); }
.seg.regions button { flex-direction: column; gap: 2px; padding: 8px 4px; font-size: 13px; }
.seg svg { width: 22px; height: 22px; }
.mode-note { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.mode-note b { color: var(--text); font-weight: 600; }

/* layers */
.layer { display: grid; grid-template-columns: 22px 40px 1fr auto; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(31, 42, 58, .6); cursor: pointer; user-select: none; }
.layer:last-child { border-bottom: 0; }
.layer.disabled { opacity: .4; cursor: not-allowed; }
.check { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.layer.on .check { background: var(--accent); border-color: var(--accent); }
.layer.on .check::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #06121c; border-bottom: 2px solid #06121c; transform: rotate(-45deg) translate(1px, -1px); }
.swatch { width: 40px; height: 28px; border-radius: 4px; border: 1px solid var(--line-2); background-size: cover; }
.layer .lbl { line-height: 1.2; } .layer .lbl b { font-weight: 600; display: block; } .layer .lbl span { color: var(--muted); font-size: 12px; }
.layer .more { color: var(--faint); font-size: 12px; font-family: var(--mono); }
.moretoggle { color: var(--accent); font-size: 12.5px; cursor: pointer; padding: 8px 0 2px 32px; user-select: none; }
.moretoggle:hover { color: #a9e0fb; }
.subtypes { display: none; padding: 4px 0 6px 32px; gap: 6px; flex-wrap: wrap; }
.subtypes.open { display: flex; }
.chip { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--muted); }
.chip.on { color: var(--text); border-color: var(--accent); background: var(--accent-dim); }
.chip i { font-style: normal; color: var(--faint); margin-left: 4px; }

/* risk panel */
.risk-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin: -4px 0 10px; }
.summary { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; }
.summary .row { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; }
.summary .row span { color: var(--muted); }
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 8px 0 4px; background: #1a2333; }
.bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--c); vertical-align: 0; }
.verdict { margin-top: 8px; font-size: 12px; color: #ffd9a8; background: rgba(240, 164, 58, .08); border: 1px solid rgba(240, 164, 58, .25); border-radius: 6px; padding: 6px 8px; line-height: 1.35; }
.warn { margin-top: 8px; font-size: 12px; color: #ffc1c3; background: rgba(229, 72, 77, .1); border: 1px solid rgba(229, 72, 77, .35); border-radius: 6px; padding: 6px 8px; }
canvas.profile { width: 100%; height: 96px; display: block; margin-top: 8px; border-radius: 6px; background: #0b111a; border: 1px solid var(--line); }

.card { display: grid; grid-template-columns: 40px 1fr; gap: 12px; background: #0f1724; border: 1px solid var(--line-2); border-left: 3px solid var(--c, var(--nogo)); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; transition: .15s; }
.card:hover { background: #132033; }
.card.sel { box-shadow: 0 0 0 1px var(--accent); background: #12233a; }
.card .ico { width: 40px; height: 40px; display: grid; place-items: center; color: #dfe7f2; }
.card .ico svg { width: 30px; height: 30px; }
.card h3 { margin: 0 0 3px; font-size: 14px; font-weight: 600; }
.card .coords { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.card .coords b { color: var(--faint); font-weight: 400; margin-right: 4px; }
.card .sev { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }
.pips { display: flex; gap: 3px; } .pips i { width: 14px; height: 9px; border-radius: 2px; background: #2a3546; } .pips i.on { background: var(--c, var(--nogo)); }
.card .ev { grid-column: 1 / -1; display: none; font-size: 12px; color: #c8d2df; line-height: 1.45; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.card.sel .ev { display: block; }
.tag { display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); margin-right: 4px; margin-top: 4px; }
.tag.suspect { border-color: var(--suspect); color: #f2b5df; }
.empty { color: var(--muted); font-size: 13px; line-height: 1.5; padding: 8px 2px; }
.empty b { color: var(--text); }

.foot { padding: 10px 18px; border-top: 1px solid var(--line); display: flex; gap: 14px; font-size: 12px; }
.foot a { color: var(--muted); cursor: pointer; text-decoration: none; } .foot a:hover { color: var(--text); }

/* ---------- map ---------- */
.mapwrap { position: relative; grid-row: 1 / 2; grid-column: 2; min-width: 0; min-height: 0; overflow: hidden; }
.map-canvas { position: absolute; inset: 0; cursor: grab; outline: none; touch-action: none; }
.map-canvas.dragging { cursor: grabbing; }
.mapwrap.routing .map-canvas { cursor: crosshair; }
.tools { position: absolute; right: 14px; top: 46px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.tool { background: rgba(14, 21, 32, .92); border: 1px solid var(--line-2); border-radius: var(--radius); min-width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; padding: 0 10px; font-weight: 600; font-size: 13px; backdrop-filter: blur(6px); }
.tool:hover { border-color: #4a6283; } .tool.active { border-color: var(--accent); background: rgba(22, 52, 74, .95); color: #dff4ff; }
.tool svg { width: 20px; height: 20px; }
.tool-group { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; }
.tool-group .tool { border-radius: 0; } .tool-group .tool + .tool { border-top: 0; }
.status { position: absolute; left: 60px; top: 46px; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 140px); }
.pill { background: rgba(14, 21, 32, .9); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: var(--muted); backdrop-filter: blur(6px); }
.pill b { color: var(--text); font-weight: 600; } .pill.warn-pill { border-color: rgba(240, 164, 58, .5); color: #ffd9a8; }
.hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(10, 16, 25, .92); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: 13px; z-index: 5; display: none; }
.hint.show { display: block; }
.toast { position: absolute; left: 50%; top: 46px; transform: translateX(-50%); background: rgba(10, 16, 25, .95); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 14px; font-size: 13px; z-index: 6; display: none; }
.toast.show { display: block; }
.attrib { position: absolute; right: 8px; bottom: 6px; font-size: 10.5px; color: rgba(231, 237, 245, .55); z-index: 4; text-shadow: 0 1px 2px #000; pointer-events: none; }

/* ---------- bottom bar ---------- */
.bottombar { grid-column: 1 / -1; grid-row: 2; background: var(--panel); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.search { display: flex; align-items: center; gap: 10px; background: #0b1220; border: 1px solid var(--line-2); border-radius: var(--radius); height: 40px; padding: 0 12px; width: 420px; max-width: 34vw; }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; width: 100%; }
.search input::placeholder { color: var(--faint); }
.readout { display: flex; align-items: center; gap: 12px; background: #0b1220; border: 1px solid var(--line-2); border-radius: var(--radius); height: 40px; padding: 0 14px; min-width: 175px; }
.readout span { color: var(--muted); font-size: 13px; } .readout b { font-family: var(--mono); font-weight: 500; font-size: 15px; margin-left: auto; }
.readout.wide { min-width: 210px; }
.sep { width: 1px; height: 28px; background: var(--line-2); }
select.fmt { background: #0b1220; color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); height: 36px; padding: 0 10px; font: inherit; font-size: 13px; }
.scalebar { display: flex; flex-direction: column; align-items: stretch; width: 200px; min-width: 70px; font-size: 11px; color: var(--muted); margin-left: auto; }
.scalebar .ticks { display: flex; justify-content: space-between; font-family: var(--mono); white-space: nowrap; gap: 6px; }
.scalebar .line { height: 7px; border: 2px solid #dbe3ee; border-top: 0; margin-top: 2px; position: relative; }
.scalebar .line::after { content: ''; position: absolute; left: 50%; bottom: 0; height: 5px; border-left: 2px solid #dbe3ee; }
.north { display: flex; flex-direction: column; align-items: center; font-weight: 700; font-size: 13px; line-height: 1; width: 30px; }
.north svg { width: 18px; height: 18px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(3, 6, 10, .65); display: none; place-items: center; z-index: 50; }
.modal.show { display: grid; }
.modal .box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; width: min(760px, 92vw); max-height: 84vh; overflow: auto; padding: 22px 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.modal h2 { margin: 0 0 4px; font-family: var(--font-cond); letter-spacing: 1.5px; text-transform: uppercase; font-size: 20px; }
.modal .lead { color: var(--muted); margin: 0 0 14px; }
.modal ol, .modal ul { padding-left: 20px; line-height: 1.55; color: #d5dde8; }
.modal li { margin-bottom: 5px; }
.modal table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0 14px; }
.modal td, .modal th { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
.modal th { color: var(--muted); font-weight: 500; }
.modal .close { float: right; background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.modal h3 { margin: 18px 0 6px; font-size: 14px; color: #c9d3e1; }
.modal p { line-height: 1.5; color: #d5dde8; }
.modal .muted { color: var(--muted); font-size: 12.5px; }

.loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 20; background: rgba(10, 15, 23, .55); font-size: 14px; color: var(--muted); pointer-events: none; }
.loading.hide { display: none; }
.filewarn { position: fixed; inset: 0; background: var(--bg); color: var(--text); z-index: 100; display: none; place-items: center; padding: 40px; text-align: center; }
.filewarn.show { display: grid; }
.filewarn code { background: #111a28; padding: 2px 6px; border-radius: 4px; }

@media (max-width: 980px) {
  :root { --sidebar: 300px; }
  .search { width: 220px; } .readout { min-width: 130px; } .scalebar { width: 140px; }
}

/* ---------- v0.9 additions ---------- */
.foot { flex-direction: column; gap: 6px; }
.foot .links { display: flex; gap: 14px; }
.foot .credit { color: var(--faint); font-size: 10.5px; line-height: 1.35; }
.lnk { color: var(--accent); cursor: pointer; }
.warnc { color: #ffd9a8; font-weight: 600; }
.swatch.haz { display: grid; place-items: center; background: #2a1416; }
.slope-legend { padding: 2px 0 8px 32px; }
.slope-legend .lg-note { flex-basis: 100%; color: var(--faint); }
.slope-legend .lg-note::before { display: none; }
.empty.small { font-size: 12px; }
.summary .right { text-align: right; max-width: 62%; }
.summary .mono, .mono { font-family: var(--mono); font-weight: 500; font-size: 12px; }
.summary.inspect { border-color: var(--accent); }
.summary .x { cursor: pointer; color: var(--muted); }
.foot-note { font-size: 11px; color: var(--faint); margin-top: 6px; line-height: 1.4; }
.btnrow { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btn { background: var(--accent-dim); border: 1px solid var(--accent); color: #dff4ff; border-radius: 6px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; font-weight: 600; }
.btn:hover { background: rgba(108, 196, 238, .25); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--muted); font-weight: 500; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.tag.near { border-color: rgba(108, 196, 238, .6); color: #bfe6f8; }
button.gt { display: block; width: 100%; text-align: left; background: linear-gradient(135deg, rgba(127, 214, 255, .12), rgba(127, 214, 255, .04)); border: 1px solid rgba(127, 214, 255, .45); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; cursor: pointer; }
button.gt:hover { border-color: #7fd6ff; }
button.gt b { display: block; font-size: 13.5px; color: #dff4ff; }
button.gt span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.gt-result { border: 1px solid rgba(127, 214, 255, .45); background: rgba(127, 214, 255, .06); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; }
.gt-result h4 { margin: 0 0 4px; font-family: var(--font-cond); letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; color: #9fe0ff; font-weight: 600; }
.gt-result .big { font-size: 30px; font-weight: 700; line-height: 1.1; color: #e7f7ff; }
.gt-result .sub { font-size: 12.5px; color: #c8d2df; }
.gt-result ul { margin: 8px 0 4px; padding-left: 18px; font-size: 12px; color: #c8d2df; line-height: 1.45; }
.gt-result .muted { font-size: 11.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.4; }
.pill { font: inherit; font-size: 12px; cursor: default; }
button.pill { cursor: pointer; }
button.pill:hover { color: var(--text); }

/* popover near the selected marker */
.pop { position: absolute; left: 0; top: 0; z-index: 7; display: none; width: 280px; background: rgba(10, 16, 25, .96); border: 1px solid var(--accent); border-radius: 8px; padding: 9px 30px 9px 12px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 8px 26px rgba(0, 0, 0, .45); pointer-events: auto; }
.pop.show { display: block; }
.pop b { font-weight: 600; }
.pop .mono { color: var(--muted); font-size: 11.5px; }
.pop .muted { color: var(--muted); }
.pop .tag { margin-top: 3px; }
.pop-x { position: absolute; right: 6px; top: 5px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.tip { position: absolute; left: 0; top: 0; z-index: 8; display: none; pointer-events: none; background: rgba(10, 16, 25, .95); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 9px; font-size: 12px; line-height: 1.4; }
.tip.show { display: block; }

/* modal content */
.modal .callout { border-left: 3px solid var(--caution); background: rgba(240, 164, 58, .07); padding: 8px 12px; border-radius: 4px; }
.modal ul.src li { font-size: 12.5px; color: #c8d2df; }
.modal tr.cmp td { color: var(--muted); font-style: italic; }
.modal tr.truth td { color: #9fe0ff; font-weight: 600; border-top: 1px solid var(--line-2); }
.modal td i { color: var(--faint); }
.modal .figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.modal figure { margin: 0; background: #fff; border-radius: 6px; overflow: hidden; }
.modal figure img { width: 100%; display: block; }
.modal figcaption { background: var(--panel-2); color: var(--muted); font-size: 11.5px; padding: 5px 8px; }
.modal .box { width: min(900px, 94vw); }
.btn.wide { width: 100%; margin: 2px 0 10px; }
.risk-head .info { cursor: help; color: var(--faint); }

.modal ol.steps li { margin-bottom: 8px; }

/* print: the risk panel only, light and readable */
@media print {
  html, body { background: #fff; color: #000; overflow: visible; height: auto; }
  .app { display: block; height: auto; }
  .mapwrap, .bottombar, .brand, .foot, .modal, .filewarn, .section:not(#riskSection), .btnrow, .card .ico { display: none !important; }
  .sidebar { border: 0; background: #fff; }
  .scroll { overflow: visible; }
  #riskSection h2 { color: #000; }
  .summary, .card, .gt-result { background: #fff !important; border-color: #999 !important; color: #000; break-inside: avoid; }
  .summary .row span, .card .coords, .card .sev, .tag, .foot-note, .legend, .muted { color: #333 !important; }
  .card { grid-template-columns: 1fr; }
  .card .ev { display: block !important; color: #000; }
  .verdict, .warn { color: #000; background: #fff; border-color: #999; }
  canvas.profile { background: #fff; }
}

.sugg { border: 1px dashed rgba(127, 214, 255, .7); background: rgba(127, 214, 255, .06); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; }
.sugg h4 { margin: 0 0 6px; font-family: var(--font-cond); letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; color: #9fe0ff; font-weight: 600; }
.sugg p { margin: 0 0 6px; font-size: 12px; color: #c8d2df; line-height: 1.45; }
.sugg p.muted { color: var(--muted); font-size: 11.5px; margin: 0; }

table.choice { width: 100%; border-collapse: collapse; font-size: 12px; margin: 2px 0 8px; }
table.choice th, table.choice td { padding: 3px 6px; text-align: right; border-bottom: 1px solid rgba(43, 58, 80, .6); }
table.choice th:first-child, table.choice td:first-child { text-align: left; color: var(--muted); }
table.choice th { color: var(--muted); font-weight: 600; }
table.choice th.on { color: #dff4ff; border-bottom: 2px solid var(--accent); }
table.choice td.win { color: #7be0b4; font-weight: 600; }
.sugg .btnrow { margin: 0 0 8px; }
.sugg p.left { color: #ffc1c3; }

/* brand: the team logo (its black background blends into the panel) */
.brand { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 12px; }
.brand .logo { width: 132px; height: 132px; object-fit: contain; mix-blend-mode: lighten; flex: none; margin: -6px -4px -6px -6px; }
.brand .brand-text { display: flex; flex-direction: column; gap: 6px; }
.brand .ver { position: static; }
.brand .sub { margin-top: 0; font-size: 16px; line-height: 1.25; color: #c9d3e1; }
/* brand v2: larger logo banner, cropped to the lettering and the top of the planet */
.brand { flex-direction: column; align-items: center; gap: 2px; padding: 6px 18px 10px; position: relative; }
.brand .logo { width: 250px; height: 140px; object-fit: cover; object-position: 50% 22%; margin: 0; }
.brand .brand-text { align-items: center; text-align: center; gap: 2px; }
.brand .sub { font-size: 15px; }
.brand .ver { position: absolute; right: 14px; top: 10px; }

.navrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.btn.nav { background: rgba(226, 85, 43, .16); border-color: rgba(226, 85, 43, .75); color: #ffe1d6; padding: 8px 10px; }
.btn.nav:hover { background: rgba(226, 85, 43, .28); }
.navinfo { font-size: 12px; color: #c8d2df; margin-top: 8px; line-height: 1.45; background: rgba(226, 85, 43, .07); border: 1px solid rgba(226, 85, 43, .35); border-radius: 6px; padding: 6px 8px; }

.linkrow { display: flex; gap: 6px; margin-top: 6px; }
.linkrow input { flex: 1; min-width: 0; background: #0b1220; border: 1px solid var(--line-2); color: var(--text); border-radius: 6px; padding: 5px 8px; font: 11px var(--mono); }
