/* Steam Value Checker dashboard. Colors are variables so they are easy to retheme. */
:root {
  --bg: #0f1724;
  --bg-glow: #17304d;
  --nav: rgba(15, 23, 36, .82);
  --panel: #162134;
  --panel-2: #1b2a40;
  --line: rgba(148, 176, 214, .14);
  --text: #cdd9e8;
  --muted: #8396ad;
  --white: #f4f8fd;
  --accent: #4da3ff;
  --accent-2: #7c6cff;
  --good: #3ddc97;
  --good-bg: rgba(61, 220, 151, .14);
  --warn: #f2b84b;
  --bad: #ff6b6b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(3, 8, 18, .35);
  --input-bg: #0d1522;
  --on-accent: #06121f;
  --accent-hover: #75b8ff;
  --glow-2: rgba(124, 108, 255, .12);
  --hover-row: rgba(77, 163, 255, .06);
  --soft: rgba(255, 255, 255, .06);
  --soft-2: rgba(255, 255, 255, .1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #e4eaf3;
  --bg-glow: #cbd9ec;
  --nav: rgba(228, 234, 243, .88);
  --panel: #f4f7fb;
  --panel-2: #e6edf6;
  --line: rgba(20, 40, 80, .2);
  --text: #1f2d44;
  --muted: #4a5c75;
  --white: #0a1424;
  --accent: #165fc0;
  --accent-2: #6a55ec;
  --good: #0b6b49;
  --good-bg: rgba(15, 127, 88, .12);
  --warn: #8a5608;
  --bad: #b42b2b;
  --shadow: 0 8px 24px rgba(30, 55, 100, .10);
  --input-bg: #fbfcfe;
  --on-accent: #ffffff;
  --accent-hover: #3b8cf0;
  --glow-2: rgba(106, 85, 236, .08);
  --hover-row: rgba(22, 95, 192, .08);
  --soft: rgba(20, 40, 80, .08);
  --soft-2: rgba(20, 40, 80, .13);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text);
  background:
    radial-gradient(900px 420px at 85% -80px, var(--bg-glow), transparent 70%),
    radial-gradient(700px 360px at -10% 0, var(--glow-2), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--white); }
h1, h2, h3 { color: var(--white); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 650; }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* top bar */
.topbar { background: var(--nav); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand:hover { color: var(--white); }
.brand img { border-radius: 9px; }
#nav { display: flex; gap: 2px; flex: 1 1 auto; flex-wrap: wrap; }
#nav a { color: var(--muted); font-weight: 550; font-size: 14px; padding: 7px 9px; border-radius: 999px; white-space: nowrap; }
#nav a:hover { color: var(--white); background: var(--soft); }
#nav a.active { color: var(--white); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.account { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; margin-left: auto; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 4px 4px 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); white-space: nowrap; }
.user-chip .who { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.account .avatar { width: 30px; height: 30px; border-radius: 50%; }
.account .who { color: var(--white); font-weight: 550; font-size: 14px; }

/* page */
.page { width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px 20px 56px; flex: 1; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head p { margin: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 14px; margin-bottom: 14px; }
.grid .panel { margin-bottom: 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* forms */
label { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin: 12px 0 6px; }
input[type=text], input[type=url], input[type=number], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; background: var(--input-bg); color: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 12px; font: inherit; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13.5px; }
select option, select optgroup { background: var(--panel); color: var(--text); }
select option:checked { background: var(--accent); color: var(--on-accent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 163, 255, .2); }
input[type=file] { color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 150px; }
.row > .shrink { flex: 0 0 auto; }
.check { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 14.5px; font-weight: 400; margin: 10px 0; }
.check input { width: auto; accent-color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 0 20px; height: 34px; font: inherit; font-weight: 600; cursor: pointer; color: #fff; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.blue { background: var(--accent); color: var(--on-accent); }
.btn.blue:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn.green { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 18px rgba(77, 140, 255, .3); }
.btn.green:hover { box-shadow: 0 8px 22px rgba(77, 140, 255, .45); color: #fff; }
.btn.gray { background: var(--soft-2); color: var(--text); }
.btn.gray:hover { background: color-mix(in srgb, var(--soft-2) 70%, var(--accent) 20%); color: var(--white); }
.btn.red { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.btn.red:hover { background: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--white); }
.btn.small { height: 30px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }

/* stat tiles */
.tile { background: var(--panel-2); border: 1px solid var(--line); padding: 14px 16px; border-radius: 12px; }
.tile .k { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tile .v { color: var(--white); font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0; }
.tile .s { color: var(--muted); font-size: 12.5px; }

/* prices */
.badge { display: inline-block; background: var(--good-bg); color: var(--good); font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.badge.none { background: var(--soft); color: var(--muted); }
.was { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.now { color: var(--white); font-weight: 650; }
.price-box { display: inline-flex; align-items: center; gap: 10px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 6px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--hover-row); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.missing td { color: var(--muted); font-style: italic; }
.title-cell { color: var(--white); font-weight: 550; }
td.now { color: var(--accent); }

/* wishlist rows */
.wish { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.wish .name { color: var(--white); font-size: 17px; font-weight: 650; }
.wish .meta { color: var(--muted); font-size: 12.5px; }
.wish .rule { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wish .rule select { width: auto; padding: 7px 10px; }
.wish .rule input, .rule.inline input { width: 90px; padding: 7px 10px; }
.rule.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rule.inline select { width: auto; }
.wish.sale { border-color: color-mix(in srgb, var(--good) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--good) 14%, transparent), var(--shadow); }

/* servers */
.server { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.server:first-child { padding-top: 0; }
.server:last-child { border-bottom: 0; padding-bottom: 0; }
.server img, .server .noicon { width: 48px; height: 48px; border-radius: 14px; background: var(--panel-2); flex: 0 0 48px; }
.server .body { flex: 1; min-width: 0; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); margin-left: 6px; }

/* misc */
.hero { padding: 48px 36px; background: linear-gradient(135deg, rgba(77, 163, 255, .16), rgba(124, 108, 255, .12)); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.hero h1 { font-size: 38px; max-width: 640px; line-height: 1.15; }
.hero p { max-width: 600px; font-size: 17px; color: var(--text); }
.notice { border: 1px solid rgba(77, 163, 255, .3); background: rgba(77, 163, 255, .08); padding: 10px 14px; margin: 10px 0; border-radius: 10px; }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.card-link { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); margin-bottom: 18px; transition: border-color .15s, transform .12s; }
.card-link:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.card-link strong { color: var(--white); display: block; }
.card-link .icon { font-size: 28px; }
.help p { margin: .45em 0; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--panel-2); border: 1px solid var(--line); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); color: var(--white); }
.toast.error { border-color: var(--bad); }
.toast.ok { border-color: var(--good); }
.empty { text-align: center; padding: 36px 12px; color: var(--muted); }
@media (max-width: 640px) {
  .hero { padding: 32px 22px; }
  .hero h1 { font-size: 30px; }
  .wish { grid-template-columns: 1fr; }
  .topbar-inner { gap: 8px 12px; }
}

/* theme switch */
.theme-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--soft); color: var(--text); font-size: 16px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.next-art { width: 100%; max-width: 460px; border-radius: 10px; display: block; margin-bottom: 10px; }
/* The creator logo, large and faint, centered behind everything. It never takes clicks. */
body::before { content: ""; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(92vmin, 920px); aspect-ratio: 1; background: url(/creator-bg.webp) center / contain no-repeat; opacity: var(--logo-opacity, .07); pointer-events: none; z-index: 0; }
:root[data-theme="light"] { --logo-opacity: .1; }
:root[data-contrast] { --logo-opacity: 0; }
header, main, footer { position: relative; z-index: 1; }
@media print { body::before { display: none; } }
/* Library table: room to breathe, a status menu wide enough to read, buttons side by side */
.library-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.library-controls input[type=search] { flex: 1 1 260px; min-width: 0; }
.library-controls select { flex: 0 1 220px; }
.library-table td { padding: 14px 14px; }
.library-table th { padding: 10px 14px; }
.game-cell { display: flex; align-items: center; gap: 14px; min-width: 240px; }
.game-thumb { width: 92px; height: 43px; border-radius: 5px; object-fit: cover; flex: none; background: var(--soft); }
.art-missing { background: var(--soft); border: 1px solid var(--line); }
.game-title { color: var(--white); font-weight: 550; }
.status-select { min-width: 130px; }
.row-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; white-space: nowrap; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); }
.library-table td.tick { width: 28px; padding-right: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.visits { color: var(--muted); font-size: 13px; }
.visits .live-dot { color: var(--good); }
.theme-btn:hover { background: var(--soft-2); color: var(--white); }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* charts */
.chart-box { margin: 8px 0 0; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 9px; }
.chart .line { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.s0, .swatch.s0 { stroke: var(--accent); background: var(--accent); }
.chart .line.s1 { stroke: var(--muted); stroke-dasharray: 6 4; }
.chart .dot { stroke: var(--panel); stroke-width: 2; }
.chart .dot.s0 { fill: var(--accent); }
.chart .dot.s1 { fill: var(--muted); }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.tip { position: absolute; top: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--white); pointer-events: none; box-shadow: var(--shadow); }
.tip.right { right: 10px; }
.tip.left { left: 60px; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--text); margin-bottom: 4px; }
.swatch { display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.swatch.s1 { background: repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 10px); }
.chart-table { margin-top: 6px; font-size: 13px; color: var(--muted); }
.chart-table summary { cursor: pointer; }
/* verdicts, selection, sub-panels */
.verdict { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 1px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle; background: var(--soft); color: var(--muted); }
.verdict.great { background: var(--good-bg); color: var(--good); }
.verdict.good { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.verdict.wait { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.wish .wide { grid-column: 1 / -1; }
.wish .name .pick { width: auto; margin-right: 6px; vertical-align: middle; }
.subpanel { margin-top: 10px; padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; }
.subpanel h4 { margin: 0 0 8px; color: var(--white); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.board { margin: 0; padding-left: 22px; line-height: 1.9; }
.chart-row td { padding: 8px 4px; }
.chart-row[hidden], .tip[hidden] { display: none; }

.rule.inline .check input, .wish .rule .check input { width: auto; margin: 0 6px 0 0; }
input[type="time"] { width: 100%; font: inherit; }
.freelist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.more { margin: 8px 0; } .more summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
textarea[autocomplete="off"] { font-family: ui-monospace, Menlo, Consolas, monospace; min-height: 120px; }

.logbox { max-height: 420px; overflow: auto; margin: 10px 0 0; padding: 12px; border: 1px solid var(--line, rgba(128,128,128,.3)); border-radius: 10px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; background: rgba(128,128,128,.08); }

.about-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.about-head h3 { margin: 0 0 6px; font-size: 1.4rem; }
.about-logo { border-radius: 16px; }
.creator { display: flex; align-items: center; gap: 8px; color: var(--muted, #8b95a5); font-size: .95rem; }
.creator-logo { border-radius: 50%; background: #111; }
.about-stats { margin-top: 14px; }
.panel.about .about-head h3 { text-transform: none; letter-spacing: 0; color: var(--text, inherit); font-size: 1.5rem; }

.about-banner { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; margin: 0 0 16px; }
.copyright { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.copyright img { border-radius: 50%; background: #111; }
.copyright:hover { color: var(--text, inherit); }

/* ---------- homepage ---------- */
.btn.big { padding: 13px 24px; font-size: 16px; border-radius: 12px; }
.lp-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 40px 32px; border: 1px solid var(--line); border-radius: 24px; margin-bottom: 22px; box-shadow: var(--shadow);
  background: radial-gradient(700px 360px at 10% 0%, rgba(255, 152, 0, .16), transparent 60%), radial-gradient(700px 400px at 100% 100%, var(--glow-2), transparent 60%), linear-gradient(135deg, rgba(77, 163, 255, .14), rgba(124, 108, 255, .08)); }
.lp-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); background: rgba(242, 184, 75, .12); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.lp-hero h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; color: var(--white); }
.lp-sub { font-size: 18px; line-height: 1.5; color: var(--text); max-width: 620px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 12px; }
.lp-cta.center { justify-content: center; }
.dc-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); transform: rotate(1.2deg); max-width: 430px; margin-left: auto; }
.dc-bot { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--white); }
.dc-bot img { border-radius: 50%; }
.dc-tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 4px; }
.dc-embed { border-left: 4px solid #fee75c; background: var(--panel-2); border-radius: 6px; padding: 12px 14px; }
.dc-title { font-weight: 700; color: var(--accent); margin-bottom: 6px; font-size: 16px; }
.dc-line { font-size: 14px; margin-bottom: 4px; color: var(--text); }
.dc-fields { display: flex; gap: 18px; margin: 8px 0; font-size: 13px; }
.dc-fields b { display: block; color: var(--white); font-size: 12px; }
.dc-art { height: 96px; border-radius: 8px; margin-top: 8px; display: grid; place-items: center; color: var(--muted); font-size: 12px; background: linear-gradient(135deg, rgba(77, 163, 255, .3), rgba(124, 108, 255, .3)); }
.dc-buttons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.dc-btn { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 6px; background: var(--soft-2); color: var(--white); }
.dc-btn.link { background: #4e5058; color: #fff; }
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 30px; }
.lp-stat { text-align: center; padding: 16px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.lp-stat .v { font-size: 30px; font-weight: 800; color: var(--white); }
.lp-stat .k { font-size: 13px; color: var(--muted); }
.lp-section { margin: 30px 0; }
.lp-section h2, .lp-final h2 { font-size: 26px; letter-spacing: -.01em; color: var(--white); margin: 0 0 18px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-grid.three { grid-template-columns: repeat(3, 1fr); }
.lp-feature, .lp-step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.lp-feature h3, .lp-step h3 { margin: 10px 0 6px; font-size: 17px; color: var(--white); text-transform: none; letter-spacing: 0; }
.lp-feature p, .lp-step p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; }
.lp-icon { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: var(--soft); }
.lp-num { width: 36px; height: 36px; display: grid; place-items: center; font-weight: 800; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.lp-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.lp-list { padding-left: 20px; line-height: 1.7; color: var(--text); }
.lp-flow { display: flex; flex-direction: column; gap: 10px; }
.lp-flow-step { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.lp-flow-icon { font-size: 24px; }
.lp-final { text-align: center; padding: 48px 20px; margin: 44px 0 10px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(77, 163, 255, .14), rgba(124, 108, 255, .1)); }
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; padding: 34px 22px; }
  .lp-hero h1 { font-size: 34px; }
  .dc-card { margin: 0 auto; transform: none; }
  .lp-grid, .lp-grid.three, .lp-split { grid-template-columns: 1fr; }
}

/* ---------- servers ---------- */
.sv-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 6px 0 22px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.sv-toolbar .tabs { margin: 0; }
.tab { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.tab:hover { border-color: var(--accent); }
.tab.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.sv-search { min-width: 240px; max-width: 100%; }
.sv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sv-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.sv-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.sv-card.off { opacity: .88; }
.sv-top { display: flex; align-items: center; gap: 16px; }
.sv-icon { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; flex: none; }
.sv-icon.big { width: 88px; height: 88px; border-radius: 24px; }
.sv-icon.noicon { display: grid; place-items: center; background: var(--panel-2); color: var(--white); font-weight: 800; font-size: 26px; }
.sv-name strong { font-size: 18px; color: var(--white); display: block; margin-bottom: 8px; overflow-wrap: anywhere; }
.sv-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.chip.ok { background: var(--good-bg); color: var(--good); }
.chip.warn { background: rgba(242, 184, 75, .16); color: var(--warn); }
.chip.dim { background: var(--soft); color: var(--muted); }
.sv-stats { display: grid; gap: 10px; padding: 16px; background: var(--panel-2); border-radius: 12px; }
.sv-stat { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sv-stat b { margin-left: auto; color: var(--white); }
.sv-ico { font-size: 16px; }
.sv-ico.big { font-size: 26px; }
.sv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.back { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--white); }
.sv-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.sv-hero h1 { margin: 0 0 10px; }
.sv-body { display: grid; gap: 22px; }
.sv-body .panel { padding: 24px; }
.sv-status { font-size: 16px; color: var(--white); margin: 0 0 14px; }
.sv-actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sv-action { display: flex; align-items: center; gap: 16px; text-align: left; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; color: var(--text); font: inherit; cursor: pointer; }
.sv-action:hover { border-color: var(--accent); }
.sv-action b { display: block; color: var(--white); font-size: 16px; margin-bottom: 2px; }
@media (max-width: 760px) { .sv-grid, .sv-actions-grid { grid-template-columns: 1fr; } .sv-hero { flex-direction: column; align-items: flex-start; } }

.gw-preview { min-height: 64px; display: grid; place-items: center; background: var(--panel-2); border-radius: 12px; margin: 12px 0 18px; padding: 10px; }
.gw-preview img { max-width: 100%; max-height: 200px; border-radius: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.tab.small { padding: 5px 12px; font-size: 13px; }

.free-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.free-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.free-card img, .free-noart { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; background: var(--panel); display: grid; place-items: center; font-size: 34px; }
.free-info { padding: 14px; display: grid; gap: 8px; justify-items: start; }
.tab.small.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- status page ---------- */
.status-page { display: grid; gap: 20px; }
.st-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.st-banner strong { font-size: 24px; color: var(--white); margin-left: 12px; }
.st-banner.operational { border-color: color-mix(in srgb, var(--good) 55%, var(--line)); background: color-mix(in srgb, var(--good) 9%, var(--panel)); }
.st-banner.degraded { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.st-banner.down { border-color: #ed4245; }
.st-meta { display: flex; align-items: center; gap: 14px; }
.st-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.st-dot.operational { background: var(--good); box-shadow: 0 0 0 6px color-mix(in srgb, var(--good) 25%, transparent); }
.st-dot.degraded { background: var(--warn); } .st-dot.down { background: #ed4245; }
.st-list { display: grid; }
.st-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.st-row:first-child { border-top: 0; }
.st-when { display: grid; justify-items: end; gap: 4px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.st-bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 44px; }
.st-bar { border-radius: 3px; background: var(--line); }
.st-bar.good { background: var(--good); } .st-bar.warn { background: var(--warn); } .st-bar.bad { background: #ed4245; }
.st-axis { display: flex; justify-content: space-between; margin-top: 8px; }

/* support */
.thread { display: grid; gap: 10px; }
.msg { padding: 10px 14px; border-radius: 12px; background: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.staff { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.msg.system { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.cards { display: grid; gap: 10px; }
pre.logs { max-height: 220px; overflow: auto; font-size: 12px; white-space: pre-wrap; }

/* notifications, news, search, contrast */
.badge-count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.card-link.unread { border-color: var(--accent); }
.notice.news { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.notice.news .btn { margin-left: auto; }
.check { display: block; padding: 4px 0; }
.progress { height: 8px; border-radius: 999px; background: var(--soft-2); margin: 6px 0 12px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.step-row { display: block; padding: 6px 0; color: var(--text); }
.step-row.done { color: var(--muted); text-decoration: line-through; }
.lp-setup { max-width: 760px; margin: 0 auto 18px; }
.search-overlay { position: fixed; inset: 0; background: rgba(3, 8, 18, .6); z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.search-box { width: min(560px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.search-results { margin-top: 10px; display: grid; gap: 2px; max-height: 50vh; overflow: auto; }
.search-results a { padding: 8px 10px; border-radius: 8px; color: var(--text); }
.search-results a:hover, .search-results a:focus { background: var(--hover-row); outline: none; }
:root[data-contrast] { --text: #ffffff; --muted: #d6e2f2; --line: rgba(255, 255, 255, .55); --accent: #7dc0ff; --panel: #000000; --panel-2: #0b0b0b; --bg: #000000; --bg-glow: #000000; --input-bg: #000000; --good: #5dffb0; --warn: #ffd166; --bad: #ff8a8a; }
:root[data-contrast][data-theme="light"] { --text: #000000; --muted: #1b2a40; --line: rgba(0, 0, 0, .65); --accent: #0047b3; --panel: #ffffff; --panel-2: #ffffff; --bg: #ffffff; --bg-glow: #ffffff; --input-bg: #ffffff; --white: #000000; --good: #00573a; --warn: #7a4a00; --bad: #a40000; }
:root[data-contrast] a { text-decoration: underline; }
:root[data-contrast] :focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; }

/* grouped menu */
.nav-btn { background: none; border: 0; font: inherit; color: var(--muted); font-weight: 550; font-size: 14px; padding: 7px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.nav-btn:hover, .nav-btn[aria-expanded="true"] { color: var(--white); background: var(--soft); }
.nav-btn.active { color: var(--white); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.nav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-group { position: relative; }
.cur-btn { border: 1px solid var(--line); background: var(--soft); font-variant-numeric: tabular-nums; }
.menu.right { left: auto; right: 0; }
.menu.scroll { max-height: min(70vh, 420px); overflow-y: auto; min-width: 230px; }
.menu button { display: flex; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 14px; color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.menu button:hover { background: var(--hover-row); color: var(--white); }
.menu button.active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--white); }
.menu button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; z-index: 30; display: grid; gap: 2px; }
.menu[hidden] { display: none; }
.menu a { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.menu a:hover { background: var(--hover-row); color: var(--white); }
#nav .menu a { color: var(--text); border-radius: 8px; padding: 8px 12px; }
#nav .menu a.active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--white); }
.setup-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.setup-row:first-of-type { border-top: 0; }
@media (max-width: 640px) {
  .nav-group { position: static; }
  .menu { left: 16px; right: 16px; min-width: 0; }
  .account { flex-wrap: wrap; margin-left: 0; width: 100%; }
}

.server-pills { margin: 0 0 12px; }
.pill-icon { border-radius: 50%; margin-right: 8px; vertical-align: -4px; }
.server-pills .tab { padding: 6px 14px; }
@media (min-width: 641px) and (max-width: 1220px) {
  .brand span { display: none; }
  .topbar-inner { flex-wrap: nowrap; }
  #nav { flex-wrap: nowrap; }
}
[hidden] { display: none !important; }

/* Calendar */
.cal-toolbar { margin-bottom: 8px; }
.cal-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.cal-row:first-of-type { border-top: 0; }
.cal-row > div { flex: 1; min-width: 0; }
.cal-ico { font-size: 20px; width: 28px; text-align: center; }
.cal-title { font-weight: 600; color: var(--white); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cal-nav h3 { margin: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-cell { min-height: 92px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); overflow: hidden; }
.cal-cell.other { opacity: .5; }
.cal-cell.today { border-color: var(--accent); }
.cal-day { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.cal-chip { font-size: 12px; line-height: 1.3; padding: 2px 6px; margin-bottom: 3px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--white); }
.cal-chip.sale { background: color-mix(in srgb, var(--warn) 22%, transparent); }
.cal-chip.event { background: color-mix(in srgb, var(--accent-2) 24%, transparent); }
.cal-chip.lfg { background: var(--good-bg); }
@media (max-width: 640px) { .cal-cell { min-height: 64px; padding: 3px; } .cal-chip { font-size: 10px; padding: 1px 3px; } }
textarea.short { min-height: 64px; font-family: inherit; font-size: 14px; }

.recap-card { width: 100%; height: auto; border-radius: 10px; display: block; margin: 10px 0; }
input.short-num { width: 6em; }

.spend-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: 12px 0 4px; }
.spend-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.spend-col i { display: block; width: 100%; background: var(--accent, #ff9800); border-radius: 3px 3px 0 0; min-height: 1px; }
.spend-col span { font-size: 11px; color: var(--muted, #888); }

.taste-row { display: grid; grid-template-columns: 9em 1fr 3em; gap: 8px; align-items: center; margin: 4px 0; font-size: 13px; }
.taste-track { background: rgba(127,127,127,.2); border-radius: 3px; height: 10px; overflow: hidden; }
.taste-track i { display: block; height: 100%; background: var(--accent, #4da3ff); }

.game-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted, #888); }
.game-link:hover { color: var(--accent, #4da3ff); }

.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.trophy { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.trophy:not(.earned) .trophy-icon { filter: grayscale(1); opacity: .6; }
.trophy.earned { border-color: var(--accent); }
.trophy-icon { font-size: 1.5rem; }

.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.mp-card { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.mp-hidden { opacity: .55; }
.mp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-icon { font-size: 1.4rem; }
.mp-tools { display: flex; gap: 4px; margin-top: auto; padding-top: 6px; }

.mp-banner { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }

.tour { position: fixed; right: 18px; bottom: 18px; z-index: 60; max-width: min(360px, calc(100vw - 36px)); }
.tour-card { background: var(--panel); border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.tour-card h3 { text-transform: none; letter-spacing: 0; font-size: 17px; color: var(--white); margin: 4px 0 6px; }
.tour-card p { margin: 0 0 12px; }
.tour-card .row > * { flex: 0 0 auto; }
.tour-ring { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.mp-actions, .mp-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mp-bar { margin: 8px 0; }
.mp-actions .btn { flex: 0 0 auto; }
details.panel > summary { cursor: pointer; font-weight: 600; color: var(--white); }
details.panel[open] > summary { margin-bottom: 10px; }

.war-slider { width: 100%; margin: 8px 0; }
.war-tools { margin-bottom: 12px; }
.war-tools > div:not(.war-quick) { flex: 0 1 220px; }
.war-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.war-list { padding: 4px 16px; }
.war-list .empty { margin: 8px 0; }
.war-row:last-child { border-bottom: 0; }
.war-row { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.fr-actions { margin-top: 10px; }

/* Steam profile card */
.sc-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sc-avatar { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.sc-none { display: grid; place-items: center; font-size: 30px; background: var(--panel2, rgba(255,255,255,.05)); }
.sc-info { flex: 1 1 200px; min-width: 0; }
.sc-info h3 { margin: 0 0 2px; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; font-size: 20px; color: var(--text); }
.sc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-playing { color: var(--good, #3ddc97); font-weight: 600; font-size: 14px; margin: 2px 0; }
.free-bar { justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.free-bar .tabs { margin: 0; }
.free-bar select { min-width: 160px; }
.free-info .chip { align-self: flex-start; }

/* Game page spacing */
.next-art { margin: 6px 0 18px; }
.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; }
.game-actions > * { flex: 0 0 auto; }
.game-actions + .grid { margin-bottom: 20px; }
.grid.four + .notice { margin: 0 0 20px; }
.grid.four + .panel, .notice + .panel { margin-top: 0; }
.panel { margin-bottom: 20px; }
.panel > h3:first-child { margin-bottom: 14px; }
.game-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.game-line:first-of-type { border-top: 0; padding-top: 0; }
.game-line:last-child { padding-bottom: 2px; }

/* Gaming names on the profile card */
.plat-row { align-items: flex-end; }
.plat-row .btn { align-self: flex-end; }
.plat-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.chip-x { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 12px; padding: 0 2px; opacity: .7; }
.chip-x:hover, .chip-x:focus-visible { opacity: 1; }

.bar { height: 10px; border-radius: 999px; background: var(--line, #2a3a4a); overflow: hidden; margin: 6px 0; }
.bar .fill { height: 100%; background: #66c0f4; border-radius: 999px; }

/* section tabs under the top bar */
.hubbar { max-width: 1100px; margin: 0 auto; padding: 12px 20px 0; display: flex; justify-content: flex-start; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hubbar[hidden] { display: none; }
.hubbar::-webkit-scrollbar { display: none; }
.hubtab { color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.hubtab:hover { color: var(--white); background: var(--soft); }
.hubtab.active { color: var(--white); background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.hubtab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hubbar:not([hidden]) + .page { padding-top: 20px; }
.bundle-form input[type=text] { min-width: min(320px, 100%); }
.bundle-form textarea { min-height: 70px; height: 70px; }

.bug-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 10px; display: grid; gap: 6px; }
.bug-card.new { border-color: var(--warn, #f2b84b); }
.bug-card .row { align-items: center; }
.bug-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Scrollbars that match the rest of the site */
* { scrollbar-width: thin; scrollbar-color: rgba(120, 150, 190, .45) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(120, 150, 190, .35); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; border: 2px solid transparent; }
/* Long lists scroll inside their panel instead of stretching the page */
.scroll-y { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.scroll-y.tall { max-height: 520px; }
.scroll-y table { margin: 0; }
.scroll-y th { position: sticky; top: 0; background: var(--panel-2); z-index: 1; }
.scroll-y .bug-card:last-child { margin-bottom: 0; }
/* A compact name and count list, several per row */
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 10px; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.kv > div b { font-variant-numeric: tabular-nums; color: var(--white); }
.kv > div.zero { opacity: .55; }
.kv > div.zero b { color: var(--muted); }
.lookup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lookup-row input { flex: 1 1 260px; min-width: 0; width: auto; }

/* Panel title with its action seated on the right */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.panel-head h3 { margin: 0; }
/* Text boxes beside a button get real room; number boxes stay compact but fit their hint */
.rule.inline input:not([type=checkbox]):not([type=number]) { width: auto; flex: 1 1 240px; min-width: 0; }
.rule.inline input[type=number] { width: 150px; }
.wish .rule input[type=number] { width: 110px; }
.rule.inline .field, .bundle-form .rule.inline > * { flex: 1 1 200px; }
.rule.inline .field input { width: 100%; }
textarea { min-height: 110px; }
.rule.inline > div { flex: 1 1 200px; min-width: 0; }
.rule.inline > div input:not([type=checkbox]), .rule.inline > div select { width: 100%; flex: none; }

/* "Gifted" tooltip next to a price */
.gift-tip { position: relative; margin-left: 6px; cursor: help; font-size: 12px; }
.gift-tip::after { content: attr(data-tip); position: absolute; bottom: 130%; right: 0; background: var(--panel-2); color: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .12s, transform .12s; box-shadow: var(--shadow); }
.gift-tip:hover::after, .gift-tip:focus-visible::after { opacity: 1; transform: none; }
