/* Windows concept accents for /deck. Status and platform colors keep their roles.
   Light fills: HSL saturation >= 55%, lightness <= 42%, as in applyAccent().
   Text shades and foregrounds retain readable contrast on panel surfaces. */
:root[data-panel-theme='dark'][data-panel-accent='blue'] {
  --accent:#60cdff; --accent-strong:#67dbff; --on-accent:#101418; --selection:#60cdff29;
  --accent-fill:#60cdff; --accent-fill-hover:#67dbff;
}
:root[data-panel-theme='light'][data-panel-accent='blue'] {
  --accent:#0073a8; --accent-strong:#006b9c; --on-accent:#101418; --selection:#0093d629;
  --accent-fill:#0093d6; --accent-fill-hover:#009de5;
}
:root[data-panel-theme='dark'][data-panel-accent='violet'] {
  --accent:#a970ff; --accent-strong:#b578ff; --on-accent:#101418; --selection:#a970ff29;
  --accent-fill:#a970ff; --accent-fill-hover:#b578ff;
}
:root[data-panel-theme='light'][data-panel-accent='violet'] {
  --accent:#5500d6; --accent-strong:#4f00c7; --on-accent:#ffffff; --selection:#5500d629;
  --accent-fill:#5500d6; --accent-fill-hover:#5b00e5;
}
:root[data-panel-theme='dark'][data-panel-accent='rose'] {
  --accent:#f472b6; --accent-strong:#ff7ac3; --on-accent:#101418; --selection:#f472b629;
  --accent-fill:#f472b6; --accent-fill-hover:#ff7ac3;
}
:root[data-panel-theme='light'][data-panel-accent='rose'] {
  --accent:#c7106f; --accent-strong:#b90f67; --on-accent:#ffffff; --selection:#c7106f29;
  --accent-fill:#c7106f; --accent-fill-hover:#b90f67;
}
:root[data-panel-theme='dark'][data-panel-accent='green'] {
  --accent:#6ccb5f; --accent-strong:#74d966; --on-accent:#101418; --selection:#6ccb5f29;
  --accent-fill:#6ccb5f; --accent-fill-hover:#74d966;
}
:root[data-panel-theme='light'][data-panel-accent='green'] {
  --accent:#2e7b24; --accent-strong:#2b7221; --on-accent:#101418; --selection:#3ea63029;
  --accent-fill:#3ea630; --accent-fill-hover:#42b233;
}
:root[data-panel-theme='dark'][data-panel-accent='amber'] {
  --accent:#ffc83d; --accent-strong:#ffd641; --on-accent:#101418; --selection:#ffc83d29;
  --accent-fill:#ffc83d; --accent-fill-hover:#ffd641;
}
:root[data-panel-theme='light'][data-panel-accent='amber'] {
  --accent:#8c6400; --accent-strong:#825d00; --on-accent:#101418; --selection:#d6990029;
  --accent-fill:#d69900; --accent-fill-hover:#e5a400;
}
:root[data-panel-theme='dark'][data-panel-accent='coral'] {
  --accent:#ff8a65; --accent-strong:#ff946c; --on-accent:#101418; --selection:#ff8a6529;
  --accent-fill:#ff8a65; --accent-fill-hover:#ff946c;
}
:root[data-panel-theme='light'][data-panel-accent='coral'] {
  --accent:#cc3100; --accent-strong:#be2d00; --on-accent:#ffffff; --selection:#d6330029;
  --accent-fill:#d63300; --accent-fill-hover:#c72f00;
}
:root[data-panel-theme='dark'][data-panel-accent='teal'] {
  --accent:#4de0c2; --accent-strong:#52f0d0; --on-accent:#101418; --selection:#4de0c229;
  --accent-fill:#4de0c2; --accent-fill-hover:#52f0d0;
}
:root[data-panel-theme='light'][data-panel-accent='teal'] {
  --accent:#157a65; --accent-strong:#13715e; --on-accent:#101418; --selection:#20b69829;
  --accent-fill:#20b698; --accent-fill-hover:#22c3a3;
}
:root[data-panel-theme='dark'][data-panel-accent='red'] {
  --accent:#ff6b6b; --accent-strong:#ff7272; --on-accent:#101418; --selection:#ff6b6b29;
  --accent-fill:#ff6b6b; --accent-fill-hover:#ff7272;
}
:root[data-panel-theme='light'][data-panel-accent='red'] {
  --accent:#d60000; --accent-strong:#c70000; --on-accent:#ffffff; --selection:#d6000029;
  --accent-fill:#d60000; --accent-fill-hover:#c70000;
}

/* Native radio choices use the same surfaces, focus and sizes as panel fields. */
.panel-appearance-group { display:grid; gap:8px; min-width:0; }
.panel-appearance-group > h3 { margin:0; }
.panel-accent-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); gap:8px; margin:0; padding:0; min-width:0; border:0; }
.panel-theme-options { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:360px; }
.panel-accent-choice { min-height:44px; padding:10px 12px; border:1px solid var(--line-strong); border-radius:var(--r-btn); background:var(--bg); }
.panel-accent-choice:hover { background:var(--hover); }
.panel-accent-choice:has(input:checked) { border-color:var(--accent); background:var(--selection); }
.panel-accent-choice:has(input:focus-visible) { outline:2px solid var(--focus); outline-offset:2px; }
.panel-accent-swatch { width:16px; height:16px; flex:none; border-radius:4px; background:var(--swatch); }
.panel-accent-choice input { flex:none; }

/* Keep the reference swatches unchanged when switching the surface theme. */
.panel-accent-choice[data-accent='blue'] { --swatch:#60cdff; }
.panel-accent-choice[data-accent='violet'] { --swatch:#a970ff; }
.panel-accent-choice[data-accent='rose'] { --swatch:#f472b6; }
.panel-accent-choice[data-accent='green'] { --swatch:#6ccb5f; }
.panel-accent-choice[data-accent='amber'] { --swatch:#ffc83d; }
.panel-accent-choice[data-accent='coral'] { --swatch:#ff8a65; }
.panel-accent-choice[data-accent='teal'] { --swatch:#4de0c2; }
.panel-accent-choice[data-accent='red'] { --swatch:#ff6b6b; }
