/* Shared by the configurator and the planner. Widgets carry their own styles for OBS.
   Modelled on the PS5 system UI: deep blue home backdrop, charcoal glass, white focus. */
:root {
  --deep: #01050f;
  --blue: #0b2a66;
  --panel: rgb(22 22 28 / 0.62);
  --panel-hi: rgb(40 40 48 / 0.72);
  --line: rgb(255 255 255 / 0.1);
  --text: #fff;
  --dim: #b4b4bc;
  --track: rgb(255 255 255 / 0.2);
  --focus: 0 0 0 2px #fff, 0 0 18px rgb(255 255 255 / 0.35);
  --gold: #f2c94c;
  --platinum: #2d8cff;
  color-scheme: dark;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 16px/1.45 "SST", "SST W55 Regular", "Segoe UI", system-ui, sans-serif;
  /* The PS5 home backdrop: light falling from the top right into near-black blue. */
  background:
    radial-gradient(ellipse 60% 50% at 85% -5%, rgb(60 120 255 / 0.45), transparent 70%),
    radial-gradient(ellipse 80% 60% at 10% 110%, rgb(20 60 160 / 0.35), transparent 70%),
    linear-gradient(180deg, var(--blue) 0%, var(--deep) 75%) var(--deep);
  background-attachment: fixed;
}
a { color: inherit; }
.top {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 16px 8px;
}
.top strong { font-size: 30px; font-weight: 300; margin-right: auto; }
.top a { color: var(--dim); text-decoration: none; padding: 6px 2px; font-size: 18px; border-bottom: 2px solid transparent; }
.top a[aria-current] { color: var(--text); border-color: var(--text); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 16px; }
h2 { font-size: 15px; font-weight: 500; color: var(--dim); margin: 24px 0 8px; }
form > h2:first-child { margin-top: 0; }
.dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 8px; }
input, select {
  width: 100%;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  padding: 11px 14px;
}
/* Radios and checkboxes keep their native look; the glass field styling above is for text. */
input:is([type="radio"], [type="checkbox"]) { width: auto; padding: 0; border: 0; background: none; backdrop-filter: none; accent-color: #fff; }
select option { background: #16161c; }
input::placeholder { color: var(--dim); }
/* PS5 buttons: white pills with dark text. */
button {
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  background: var(--text);
  color: #111;
  transition: transform 0.15s, box-shadow 0.15s;
}
button.ghost { background: var(--panel-hi); color: var(--text); }
button:disabled { opacity: 0.45; cursor: default; }
/* The PS5 cursor: a white ring and glow on whatever has focus. */
:is(a, input, select, button, label):focus-visible { outline: none; box-shadow: var(--focus); }
button:focus-visible, button:hover:not(:disabled) { transform: scale(1.04); }
.error { color: #ffb4b4; margin: 8px 0 0; }
.bar { position: relative; height: 4px; border-radius: 2px; background: var(--track); }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--text); }
.cup { width: 20px; height: 20px; object-fit: contain; flex: none; vertical-align: -4px; }
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
  button:focus-visible, button:hover:not(:disabled) { transform: none; }
}
