/* Debug Derby shared theme: bright, readable on a projector and on a Chromebook. */
:root {
  --bg: #0b1024;
  --panel: #151c3b;
  --panel-2: #1b2450;
  --line: #2a3470;
  --ink: #eef1ff;
  --muted: #9aa3c7;
  --yellow: #ffd43b;
  --pink: #ff6b6b;
  --blue: #4dabf7;
  --green: #51cf66;
  --purple: #b197fc;
  --orange: #ff922b;
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--blue); }
header.top {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 16px; background: linear-gradient(90deg, #ff6b6b, #b197fc 50%, #4dabf7); color: #111;
}
header.top h1 { margin: 0; font-size: 22px; letter-spacing: .5px; }
header.top .sub { font-size: 13px; font-weight: 600; opacity: .8; }
header.top .spacer { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.25); color: #fff; font-size: 13px; font-weight: 600; }
.chip.ok { background: #2b8a3e; } .chip.warn { background: #e67700; } .chip.bad { background: #c92a2a; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.panel h2 { margin: 0 0 8px; font-size: 15px; color: var(--yellow); }
button { font: inherit; font-weight: 700; padding: 9px 14px; border: 0; border-radius: 10px; cursor: pointer; background: var(--panel-2); color: var(--ink); }
button.go { background: var(--yellow); color: #111; font-size: 16px; }
button.blue { background: var(--blue); color: #111; }
button:disabled { opacity: .5; cursor: not-allowed; }
select, input[type=text], input[type=number], textarea {
  font: inherit; padding: 7px 8px; background: #0e1430; color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
}
label { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.log { font: 13px/1.45 ui-monospace, Menlo, Consolas, monospace; background: #0e1430; border-radius: 8px; padding: 8px; overflow: auto; }
.log .err { color: var(--pink); cursor: pointer; }
.log .err:hover { text-decoration: underline; }
.log .say { color: var(--yellow); }
.log .sys { color: var(--muted); }
.log .good { color: var(--green); }
.meter { height: 10px; background: #0e1430; border-radius: 6px; overflow: hidden; }
.meter > div { height: 100%; width: 0; background: var(--green); transition: width .1s; }
.boot { display: flex; align-items: center; gap: 10px; }
.boot .bar { width: 160px; height: 8px; background: rgba(0,0,0,.3); border-radius: 6px; overflow: hidden; }
.boot .bar > div { height: 100%; width: 30%; background: #fff; animation: slide 1.2s infinite ease-in-out; }
@keyframes slide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
table.score { width: 100%; border-collapse: collapse; font-size: 14px; }
table.score th, table.score td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); }
table.score th { color: var(--muted); font-weight: 600; }

/* Hover tooltips (src/shared/tooltip.ts) */
.dd-tip {
  position: fixed; z-index: 1000; display: none; max-width: 320px; pointer-events: none;
  background: #fff8db; color: #1b1f3b; border: 2px solid var(--yellow); border-radius: 10px;
  padding: 8px 10px; font-size: 14px; line-height: 1.35; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
