:root {
  --ink: #102a33;
  --muted: #5b6f77;
  --brand: #05303f;
  --brand-2: #0b4a5e;
  --line: #d8e1e4;
  --bg: #f3f6f7;
  --card: #fff;
  --ok: #1d7a46;
  --bad: #b3261e;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.45 system-ui, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.card .description { margin: 0 0 6px; }
button, .button {
  font: inherit; border: 0; border-radius: 6px; padding: 9px 16px; cursor: pointer;
  background: var(--brand); color: #fff; text-decoration: none; display: inline-block;
}
button:hover, .button:hover { background: var(--brand-2); }
button.secondary, .button.secondary { background: #fff; color: var(--brand); border: 1px solid var(--line); }
button:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=password] { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.topbar { background: var(--brand); color: #fff; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #cfe3ea; }
.page { max-width: 820px; margin: 32px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #e8eef0; color: var(--muted); }
.badge.pass { background: #dcf1e4; color: var(--ok); }
.badge.fail, .badge.abandoned { background: #f8dedc; color: var(--bad); }

/* Task page: Prism on the left, training panel on the right */
.task { display: flex; height: 100vh; }
.task iframe { flex: 1; border: 0; background: #fff; min-width: 0; }
.panel { width: 380px; flex: none; background: var(--card); border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }
.panel header { background: var(--brand); color: #fff; padding: 14px 18px; }
.panel header .muted { color: #b9d2da; }
.panel section { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.goal { white-space: pre-line; }
.timer { font-size: 28px; font-variant-numeric: tabular-nums; font-weight: 600; }
.timer.low { color: var(--bad); }
.result { font-size: 22px; font-weight: 700; }
.result.pass, .result.complete { color: var(--ok); }
.result.fail { color: var(--bad); }
.cover { position: relative; flex: 1; display: flex; }
.cover .shade { position: absolute; inset: 0; background: rgba(243,246,247,.85); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
[hidden] { display: none !important; }
