/* The training simulator's own pages (login, cases, talk), in the B+ design Qais chose on 23 Nov 2026: calm and
   light by day, deep navy by night. The theme follows the phone's own setting unless the visitor picks one
   (theme.js sets data-theme). --acT is the text on an accent fill; --acS a soft accent ground. */
:root {
  --bg: #F6F7F9; --panel: #FFFFFF; --panel2: #F1F5F9; --line: #E2E8F0; --text: #0F172A;
  --dim: #475569; --faint: #64748B; --accent: #0F766E; --acT: #FFFFFF; --acS: #DDF3EF; --chip: #F1F5F9;
  --good: #15803D; --warn: #B45309; --warnS: #FFF7ED; --crit: #BE123C; --on: #DDF3EF;
  --shadow: 0 12px 40px rgba(15, 23, 42, .07); --amber: #B45309; --amberS: #FEF3C7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220; --panel: #121B2E; --panel2: #0F182A; --line: #24324F; --text: #E6EDF7;
    --dim: #A9B6CB; --faint: #8796AE; --accent: #2DD4BF; --acT: #04221E; --acS: rgba(45, 212, 191, .14); --chip: #0F182A;
    --good: #4ADE80; --warn: #FBBF24; --warnS: rgba(251, 191, 36, .10); --crit: #FB7185; --on: rgba(45, 212, 191, .14);
    --shadow: 0 24px 60px rgba(0, 0, 0, .45); --amber: #FBBF24; --amberS: rgba(251, 191, 36, .12);
  }
}
:root[data-theme="dark"] {
  --bg: #0B1220; --panel: #121B2E; --panel2: #0F182A; --line: #24324F; --text: #E6EDF7;
  --dim: #A9B6CB; --faint: #8796AE; --accent: #2DD4BF; --acT: #04221E; --acS: rgba(45, 212, 191, .14); --chip: #0F182A;
  --good: #4ADE80; --warn: #FBBF24; --warnS: rgba(251, 191, 36, .10); --crit: #FB7185; --on: rgba(45, 212, 191, .14);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45); --amber: #FBBF24; --amberS: rgba(251, 191, 36, .12);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 'Plus Jakarta Sans', 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
.btn { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  cursor: pointer; min-height: 40px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--acT); }
.btn:disabled { opacity: .5; cursor: default; }
.muted { color: var(--dim); }
.small { font-size: 12.5px; }
header.top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 3; flex-wrap: wrap; }
header.top h1 { font-size: 17px; margin: 0; font-weight: 600; }
header.top .sp { flex: 1; }
.pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--chip); color: var(--dim);
  text-transform: uppercase; letter-spacing: .04em; }
main { max-width: 1100px; margin: 0 auto; padding: 18px 16px 48px; }

/* The intro and disclaimer. */
dialog.intro { border: 1px solid var(--line); border-radius: 12px; padding: 0; max-width: 680px; width: calc(100% - 32px);
  background: var(--panel); color: var(--text); }
dialog.intro::backdrop { background: rgba(8, 12, 18, .6); }
.intro .ib { padding: 22px 24px 8px; max-height: calc(100vh - 140px); overflow: auto; }
.intro h2 { margin: 0 0 6px; font-size: 20px; }
.intro h3 { margin: 18px 0 4px; font-size: 14px; }
.intro p, .intro li { margin: 4px 0; }
.intro ul, .intro ol { padding-left: 20px; margin: 4px 0; }
.intro .credits li { font-size: 12.5px; color: var(--dim); overflow-wrap: anywhere; }
.intro .warn { background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--warn);
  border-radius: 8px; padding: 10px 12px; margin-top: 14px; }
.intro .ifoot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px 18px; border-top: 1px solid var(--line); }

/* The first-visit welcome (intro.js): short, large, one button. */
dialog.welcome { max-width: 440px; }
.welcome .ib { padding: 24px 24px 6px; }
.welcome h2 { font-size: 24px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 0 0 6px; font-weight: 700; }
.welcome .wlead { font-size: 16px; line-height: 1.5; margin: 6px 0 14px; }
.welcome .wsteps { font-size: 15px; padding-left: 22px; margin: 0 0 14px; }
.welcome .wsteps li { margin: 8px 0; }
.welcome .ifoot { border-top: 0; padding-top: 4px; }
.welcome .wgo { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; font-weight: 600; }
