/* The console's look (ys.xebra.tech: the sign-in, the Missions, Players and Market tabs), one file every page loads
   first; each tab's own sheet (admin.css, accounts.css, market.css) builds on these tokens and parts and adds only what is
   its own. Light and calm for reading: white cards on a pale sea-grey page, the game's navy for the bar and the map, the
   game's green (Look.AccentFill) for the one thing to press, the kinds of job in their colours. 15 px type, a label over
   each field and a short hint under it. Text is never cut short: it wraps (no ellipsis anywhere).

   Parts: .top.console (the bar) / .btn (.primary .ghost .danger .small .big .tiny) .icon-btn / .card .card-head /
   .field label + input, .hint, .num (a number with its unit), .money / .switch / .seg (segmented choice) / .chips
   (choice chips) / .pill (.ok .warn .err .new .draft) / .kind (.hire .charter .independent) / .vtabs (a page's views) /
   .table / .flash / .notice / .savebar / .toasts .toast / .modal / dialog.dlg / .empty / .count */

:root {
  /* the page */
  --bg: #edf1f4;
  --bg-2: #e3e9ee;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --surface-3: #eef2f5;
  --line: #dbe2e8;
  --line-2: #c5d0d9;
  --ink: #0e2230;
  --ink-2: #44586a;
  --ink-3: #6f8291;
  /* the game's own (src/UI/Look.cs) */
  --navy: #08202e;
  --navy-2: #0d2c40;
  --navy-3: #133a52;
  --sea: #062233;
  --land: #1a3240;
  --green: #006400;
  --green-hi: #0b7d16;
  --green-soft: #e4f4e7;
  --green-ink: #0b5a14;
  --mint: #46d678;
  --amber: #ffb84d;
  --amber-ink: #7a4b00;
  --amber-soft: #fff3df;
  --red: #c4302b;
  --red-soft: #fdecea;
  --blue: #1f6feb;
  /* the kinds of job */
  --hire: #2563eb;
  --hire-soft: #e6eefd;
  --charter: #c26a00;
  --charter-soft: #fff1de;
  --independent: #7c3aed;
  --independent-soft: #f0e9fe;
  /* shapes */
  --r: 12px;
  --r-sm: 8px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(14, 34, 48, 0.06), 0 2px 10px rgba(14, 34, 48, 0.05);
  --shadow-lg: 0 4px 12px rgba(14, 34, 48, 0.08), 0 16px 40px rgba(14, 34, 48, 0.12);
  --focus: 0 0 0 3px rgba(0, 100, 0, 0.22);
  --bar-h: 60px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.25; font-weight: 750; letter-spacing: -0.01em; }
h2 { font-size: 19px; line-height: 1.3; font-weight: 700; }
h3 { font-size: 16px; line-height: 1.35; font-weight: 700; }
a { color: var(--green); }
a:hover { color: var(--green-hi); }
[hidden] { display: none !important; }
img { max-width: 100%; }
.ic { width: 18px; height: 18px; flex: none; }
::selection { background: rgba(0, 100, 0, 0.18); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* thin, quiet scroll bars */
* { scrollbar-width: thin; scrollbar-color: #b9c5cf transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c3ced7; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #a9b7c3; }
::-webkit-scrollbar-track { background: transparent; }

/* ---- the console's side menu and bar. index.php console_head(): the side menu, fixed at the left (the name, every tab
   in its group, who is signed in and the way out); console_bar(): the bar over the page (where the page is, the tab's
   own tools). Under 1200 px the menu shows only its icons; under 860 px it folds into the bar. */
:root { --side-w: 236px; }
body:has(.cside) { padding-left: var(--side-w); }
.top.console { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px 22px; min-height: var(--bar-h); padding: 0 22px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 12px rgba(4, 18, 28, 0.25); flex-wrap: wrap; }
.cside { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: var(--side-w); display: flex; flex-direction: column; padding: 0 12px 14px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy) var(--bar-h)); color: #fff; box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06), 2px 0 14px rgba(4, 18, 28, 0.2);
  overflow-y: auto; overscroll-behavior: contain; }
.console .brand { display: flex; align-items: center; gap: 10px; flex: none; min-height: var(--bar-h); margin: 0 -12px; padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff; text-decoration: none; font-size: 17px; font-weight: 750; letter-spacing: -0.01em; white-space: nowrap; }
.console .brand:hover { color: #fff; }
.console .brand .logo { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.console .brand .logo svg { width: 16px; height: 16px; }
.console .brand small { font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-left: 8px; }
.cnav { display: grid; gap: 18px; padding: 16px 0 20px; }
.cmgroup { display: grid; gap: 2px; }
.cmlabel { padding: 0 12px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }
.ctab { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); color: rgba(255, 255, 255, 0.76); font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background-color 0.12s, color 0.12s; }
.ctab .ic { width: 20px; height: 20px; color: rgba(255, 255, 255, 0.58); transition: color 0.12s; }
.ctab:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.ctab:hover .ic { color: #fff; }
.ctab.on { background: rgba(70, 214, 120, 0.14); color: #fff; }
.ctab.on .ic { color: var(--mint); }
.ctab.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mint); }
.ctab:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
.cwhere { display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.cwhere b { color: #fff; font-weight: 700; }
.cws { color: rgba(255, 255, 255, 0.3); }
.ctools { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.ctools:empty { visibility: hidden; }
.ctools .status { color: rgba(255, 255, 255, 0.72); }
.ctools .status.err { color: #ffb3a8; }
.cuser { margin-top: auto; display: grid; justify-items: start; gap: 10px; padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cname { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.8); font-size: 14px; overflow-wrap: anywhere; }
.cname::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='9' r='3.5'/%3E%3Cpath d='M5.5 19a6.5 6.5 0 0 1 13 0'/%3E%3C/svg%3E") center / 18px no-repeat; }
.top.console .btn, .top.console .btn.ghost { padding: 6px 13px; font-size: 14px; border-radius: var(--r-sm); background: transparent; color: rgba(255, 255, 255, 0.9); border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: none; }
.top.console .btn:hover, .top.console .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.cname::before { flex: none; }
.cuser .btn .ic { width: 17px; height: 17px; }
@media (max-width: 1200px) and (min-width: 861px) {
  :root { --side-w: 72px; }
  .cside { padding: 0 10px 12px; }
  .console .brand { justify-content: center; margin: 0 -10px; padding: 0; }
  .console .brand .bname, .cmlabel, .ctab > span, .cuser .btn > span { display: none; }
  .cnav { gap: 0; padding-top: 12px; }
  .cmgroup + .cmgroup { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .ctab { justify-content: center; padding: 11px 0; }
  .ctab.on::before { left: -10px; }
  .cuser { justify-items: center; padding: 12px 0 0; }
  .cname { font-size: 0; gap: 0; }
  .cuser .btn { padding: 8px; }
}
@media (max-width: 860px) {
  body:has(.cside) { padding-left: 0; }
  .top.console { padding: 8px 14px; gap: 8px 14px; }
  .cside { display: contents; }
  .console .brand { order: 1; min-height: 44px; margin: 0; padding: 0; border: 0; }
  .console .brand small { display: none; }
  .cuser { order: 2; margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; gap: 12px; }
  .cwhere { display: none; }
  .cnav { order: 4; flex-basis: 100%; display: flex; gap: 2px; padding: 0; overflow-x: auto; scrollbar-width: none; }
  .cnav::-webkit-scrollbar { display: none; }
  .cmgroup { display: contents; }
  .cmlabel { display: none; }
  .ctab { padding: 8px 12px; }
  .ctab.on { order: -1; }   /* (the row scrolls sideways: the lit tab first, so it is always in sight; no script, the pages' CSP allows none inline) */
  .ctab.on::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .ctools { order: 5; flex-basis: 100%; justify-content: flex-start; }
  .ctools:empty { display: none; }
}

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 1px rgba(14, 34, 48, 0.04); transition: background-color 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s; }
.btn:hover { border-color: #9fb0bd; background: var(--surface-2); color: var(--ink); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn .ic { width: 17px; height: 17px; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-hi); border-color: var(--green-hi); color: #fff; }
.btn.primary.done:disabled { opacity: 1; background: var(--green-soft); border-color: #b9dfbf; color: var(--green-ink); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn.danger { color: var(--red); border-color: #efc2bf; background: var(--surface); }
.btn.danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.btn.danger.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger.solid:hover { background: #a92622; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.tiny { padding: 3px 9px; font-size: 13px; border-radius: 6px; gap: 5px; }
.btn.tiny .ic { width: 14px; height: 14px; }
.btn.big { padding: 12px 22px; font-size: 16px; border-radius: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn.outline { border-color: var(--line-2); background: var(--surface); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px 22px; }
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin-right: auto; }
.card.flat { box-shadow: none; }
.card.inset { background: var(--surface-2); box-shadow: none; }

/* ---- words */
.hint { color: var(--ink-3); font-size: 13.5px; font-weight: 400; line-height: 1.45; }
.sub { color: var(--ink-2); font-size: 14px; }
.lbl { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 8px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); font-size: 13px; font-weight: 700; vertical-align: middle; }
.num-big { font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }
.empty { color: var(--ink-3); padding: 28px; text-align: center; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92em; }

/* ---- fields: a label over each, its hint under it */
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); min-width: 0; }
.field > .hint { font-weight: 400; }
input[type="text"], input[type="search"], input[type="number"], input[type="password"], input[type="email"], input[type="date"], input:not([type]), select, textarea {
  width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 400; line-height: 1.4; transition: border-color 0.12s, box-shadow 0.12s; }
input::placeholder, textarea::placeholder { color: #93a2ae; }
input:hover, select:hover, textarea:hover { border-color: #9fb0bd; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: var(--focus); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-3); color: var(--ink-3); }
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344586a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 10px center / 18px no-repeat; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); width: 17px; height: 17px; }
input[type="range"] { width: 100%; accent-color: var(--green); }
.invalid, input.invalid, select.invalid { border-color: var(--red) !important; }

/* a number with its unit beside it: <label class="num"><input type="number"><em>m</em></label> */
.num { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; transition: border-color 0.12s, box-shadow 0.12s; }
.num:focus-within { border-color: var(--green); box-shadow: var(--focus); }
.num > span { padding: 0 0 0 12px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.num input { border: 0 !important; box-shadow: none !important; width: 90px; padding: 8px 10px; background: transparent; }
.num em { font-style: normal; padding: 0 12px 0 2px; color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.num.sm input { width: 70px; padding: 6px 8px; font-size: 14px; }
/* money: <label class="money"><i class="cur">€</i><input type="number"></label> */
.money { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.money:focus-within { border-color: var(--green); box-shadow: var(--focus); }
.money .cur { font-style: normal; padding-left: 12px; color: var(--ink-3); font-weight: 600; }
.money input { border: 0 !important; box-shadow: none !important; background: transparent; }

/* a switch: <label class="switch"><input type="checkbox"><span></span></label> */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #c6d0d8; transition: background-color 0.15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }
.switch.sm { width: 36px; height: 20px; }
.switch.sm span::after { width: 14px; height: 14px; }
.switch.sm input:checked + span::after { transform: translateX(16px); }
.switch-row { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink); cursor: pointer; }

/* a segmented choice: <div class="seg"><button class="on">A</button><button>B</button></div> */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line); }
.seg > button, .seg > a { border: 0; background: transparent; padding: 6px 14px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg > button:hover, .seg > a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.seg > button.on, .seg > a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 34, 48, 0.14); }
.seg.sm > button { padding: 4px 11px; font-size: 13.5px; }
.seg > button:focus-visible { outline: none; box-shadow: var(--focus); }

/* choice chips: <div class="chips"><button class="on">Family</button>...</div> */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips > button { border: 1px solid var(--line-2); background: var(--surface); padding: 6px 13px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chips > button:hover { border-color: #9fb0bd; color: var(--ink); }
.chips > button.on { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); }

/* ---- small labels */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.pill.plain::before { display: none; }
.pill.ok { background: var(--green-soft); color: var(--green-ink); }
.pill.warn { background: var(--amber-soft); color: var(--amber-ink); }
.pill.err { background: var(--red-soft); color: var(--red); }
.pill.new { background: #e6f0fb; color: #1452a8; }
.pill.draft { background: var(--surface-3); color: var(--ink-3); }
.kind { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.kind .ic { width: 14px; height: 14px; }
.kind.hire { background: var(--hire-soft); color: var(--hire); }
.kind.charter { background: var(--charter-soft); color: var(--charter); }
.kind.independent { background: var(--independent-soft); color: var(--independent); }

/* ---- a page's views: <nav class="vtabs"><a class="vtab on">Listings <span class="n">229</span></a>...</nav> */
.vtabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.vtab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 12px; color: var(--ink-2); font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; background: none; border: 0; }
.vtab:hover { color: var(--ink); }
.vtab.on, .vtab[aria-current="page"], .vtab[aria-selected="true"] { color: var(--ink); }
.vtab.on::after, .vtab[aria-current="page"]::after, .vtab[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); }
.vtab .n { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); font-size: 12.5px; font-weight: 700; }

/* ---- a table */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.table th { text-align: left; padding: 11px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #f8fafb; }
.table .r { text-align: right; }
.table a.rowlink { color: var(--ink); text-decoration: none; font-weight: 650; }
.table a.rowlink:hover { color: var(--green); }

/* ---- messages */
.flash { padding: 13px 16px; border-radius: var(--r); border: 1px solid; font-size: 15px; display: grid; gap: 4px; }
.flash ul { margin: 6px 0 0; padding-left: 22px; }
.flash.ok { background: var(--green-soft); border-color: #a8d8b0; color: var(--green-ink); }
.flash.warn { background: var(--amber-soft); border-color: #f2c983; color: var(--amber-ink); }
.flash.err { background: var(--red-soft); border-color: #efb4b0; color: #8f1f1b; }
.notice { padding: 12px 16px; border-radius: var(--r); background: #eaf4f8; border: 1px solid #cfe3ec; color: #1f4a5e; font-size: 14.5px; }

/* ---- the save bar along the foot of a page with changes to keep */
.savebar { position: sticky; bottom: 14px; z-index: 30; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px 12px 20px; border-radius: var(--r-lg);
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.savebar .sb-text { margin-right: auto; display: grid; gap: 2px; min-width: 0; }
.savebar .sb-text b { font-size: 15px; }
.savebar .hint { color: rgba(255, 255, 255, 0.7); }
.savebar .btn.ghost { color: rgba(255, 255, 255, 0.85); }
.savebar .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.savebar .btn:not(.primary):not(.ghost) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.savebar .btn.primary { background: var(--mint); border-color: var(--mint); color: #05240f; }
.savebar .btn.primary:hover { background: #6be292; border-color: #6be292; }

/* ---- toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100vw - 40px)); padding: 12px 16px; border-radius: var(--r); background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
  font-size: 14.5px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; pointer-events: auto; }
.toast.in { opacity: 1; transform: none; }
.toast .ic { color: var(--mint); }
.toast.err { background: #6b1512; }
.toast.err .ic { color: #ffb3a8; }

/* ---- a question: .modal > .modal-box (h3, .modal-text, .modal-actions), or a <dialog class="dlg"> */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(8, 32, 46, 0.45); backdrop-filter: blur(2px); }
.modal-box { width: min(480px, 100%); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 24px; display: grid; gap: 12px; }
.modal-box h3 { font-size: 19px; }
.modal-text { color: var(--ink-2); font-size: 15px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
dialog.dlg { border: 0; padding: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: var(--surface); color: var(--ink); width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
dialog.dlg::backdrop { background: rgba(8, 32, 46, 0.45); }

/* ---- a page's frame for the reading tabs (Players, Market): a head with the title and a line under it, then content */
.page { max-width: 1240px; margin: 0 auto; padding: 26px 24px 80px; display: grid; gap: 20px; align-content: start; }
.page.narrow { max-width: 980px; }
.page-head { display: flex; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; }
.page-head .ph-text { margin-right: auto; display: grid; gap: 4px; min-width: 0; }
.page-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head p { color: var(--ink-2); font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-2); font-size: 14.5px; }
.facts b { color: var(--ink); }
@media (max-width: 700px) { .page { padding: 18px 14px 70px; } h1 { font-size: 22px; } .card { padding: 16px; } }
