/* Themable through custom properties; defaults work on a dark background. */
.psb { --psb-line: var(--line, #26465f); --psb-panel: var(--panel, #0f2436); --psb-ink: var(--ink, #eaf4fb); --psb-muted: var(--muted, #9db6c9); --psb-focus: var(--scan, #55e6ff); --psb-cta: var(--signal, #e8261c); color: var(--psb-ink); text-align: left; }
.psb [hidden] { display: none !important; }
.psb fieldset { border: 0; border-top: 1px solid var(--psb-line); margin: 0; padding: 2rem 0; min-width: 0; }
.psb legend { float: left; width: 100%; font-size: 1.5rem; font-weight: 600; margin-bottom: 1.25rem; padding: 0; }
.psb legend + * { clear: both; }
.psb-services { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.psb-service { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; background: var(--psb-panel); border: 1px solid var(--psb-line); border-radius: 10px; cursor: pointer; }
.psb-service input { position: absolute; opacity: 0; pointer-events: none; }
.psb-service:has(input:checked) { border-color: var(--psb-focus); box-shadow: inset 0 0 0 1px var(--psb-focus); }
.psb-service:has(input:focus-visible) { outline: 3px solid var(--psb-focus); outline-offset: 2px; }
.psb-service-name { font-weight: 600; font-size: 1.1rem; }
.psb-service-desc, .psb-service-meta, .psb-urgent { color: var(--psb-muted); font-size: .95rem; }
.psb-service-meta { margin-top: auto; padding-top: .5rem; }
.psb-urgent { border-left: 3px solid var(--beacon, #ffb020); padding-left: .9rem; margin: 1.25rem 0 0; }
.psb-urgent a, .psb-check a, .psb-done a { color: var(--psb-focus); }
.psb-days { display: flex; gap: .5rem; overflow-x: auto; padding: 3px 3px .75rem; }
.psb-day, .psb-time { font: inherit; color: inherit; background: var(--psb-panel); border: 1px solid var(--psb-line); border-radius: 8px; cursor: pointer; }
.psb-day { flex: 0 0 4.5rem; display: flex; flex-direction: column; align-items: center; padding: .6rem 0; font-size: .85rem; }
.psb-day strong { font-size: 1.5rem; }
.psb-day[aria-pressed="true"], .psb-time[aria-pressed="true"] { background: var(--psb-focus); border-color: var(--psb-focus); color: #05121d; }
.psb-times { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; min-height: 3rem; }
.psb-times p, .psb-times > .psb-error { flex-basis: 100%; margin: 0; }
.psb-time { min-width: 5.5rem; padding: .65rem .9rem; font-variant-numeric: tabular-nums; }
.psb-fields { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.psb-fields label { display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; }
.psb-fields input:not([type="checkbox"]), .psb-fields select, .psb-fields textarea { font: inherit; font-size: 1rem; width: 100%; box-sizing: border-box; padding: .75rem; color: var(--psb-ink); background: var(--psb-panel); border: 1px solid var(--psb-line); border-radius: 8px; }
.psb-wide { grid-column: 1 / -1; }
.psb-fields .psb-check { flex-direction: row; align-items: flex-start; gap: .65rem; }
.psb-check input { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .15rem; }
.psb-hp { position: absolute !important; left: -9999px; }
.psb :focus-visible { outline: 3px solid var(--psb-focus); outline-offset: 2px; }
.psb-summary { font-weight: 600; margin: 1.5rem 0 .75rem; }
.psb-error { color: #ff9d97; display: block; }
.psb-submit { font: inherit; font-weight: 600; font-size: 1.1rem; color: #fff; background: var(--psb-cta); border: 0; border-radius: 8px; padding: 1rem 1.75rem; cursor: pointer; }
.psb-submit:disabled { opacity: .6; cursor: wait; }
.psb-done { background: var(--psb-panel); border: 1px solid var(--psb-focus); border-radius: 12px; padding: 2rem; }
@media (max-width: 600px) { .psb-fields { grid-template-columns: 1fr; } .psb-submit { width: 100%; } }
