/* onboarding.phoenixhosting.co — light/dark, no external fonts (CSP: self only). */
:root {
  --bg: #F6F7F9; --card: #FFFFFF; --ink: #1A1D21; --ink-soft: #5A6270; --line: #D9DEE5;
  --accent: #1F6F78; --accent-ink: #FFFFFF; --warn-bg: #FFF4E0; --warn-ink: #6B4500;
  --err: #B42318; --ok: #1E7B4F; --focus: #2B6CDF;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --card: #1A1E24; --ink: #E7EAEE; --ink-soft: #A3ACB9; --line: #323944;
    --accent: #5FB7C0; --accent-ink: #0B1215; --warn-bg: #3A2C12; --warn-ink: #F5D9A6;
    --err: #F97066; --ok: #6CD3A0; --focus: #7AA7FF;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 16px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; gap: 12px; align-items: baseline; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; }
.sub { color: var(--ink-soft); }
main { padding-top: 24px; padding-bottom: 48px; }
.foot { color: var(--ink-soft); font-size: 14px; padding-bottom: 32px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card.narrow { max-width: 560px; margin: 40px auto; }
h1 { font-size: 1.6rem; margin: 0 0 8px; }
.intro, .help, .hint, .counter { color: var(--ink-soft); }
.help, .hint, .counter { font-size: 14px; margin: 4px 0; }
.counter.short { color: var(--warn-ink); }

.steps ol { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.steps a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-soft); text-decoration: none; font-size: 14px; background: var(--card); }
.steps .num { font-weight: 700; }
.steps .done a { border-color: var(--ok); color: var(--ink); }
.steps .current a { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.field, fieldset { margin: 0 0 22px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
legend, .field > label, .field .label { font-weight: 600; display: block; margin-bottom: 4px; }
.req { color: var(--err); }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--err); }
.error { color: var(--err); font-size: 14px; margin: 6px 0 0; }

.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { margin-top: 4px; width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 400; }
.hex-row { display: flex; gap: 10px; align-items: center; }
.hex-row input[type=text] { max-width: 140px; font-family: ui-monospace, monospace; }
.picker { width: 48px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; }
.presets { display: flex; gap: 8px; margin-top: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.contrast .warn, .flash.warn { background: var(--warn-bg); color: var(--warn-ink); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 4px 6px; }
.choice label { display: block; font-weight: 400; margin: 4px 0; }
.choice textarea { margin-top: 8px; }

.repeater .row { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; }
.repeater .row:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.repeater.fixed .row { border: 0; }
.row-title { font-weight: 600; margin: 0 0 8px; color: var(--ink-soft); }

.assets { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.assets li { display: flex; gap: 12px; align-items: center; }
.assets img, .assets .doc { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.assets .doc { display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.assets .name { flex: 1; overflow-wrap: anywhere; }
.upload-status { font-size: 14px; }

.actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 28px; flex-wrap: wrap; }
.saved { color: var(--ink-soft); font-size: 14px; margin-right: auto; }
button, .button { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary, .button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font-weight: 400; }

.stages { list-style: none; padding: 0; margin: 20px 0; }
.stages li { padding: 12px 0 12px 32px; position: relative; color: var(--ink-soft); border-left: 2px solid var(--line); margin-left: 10px; }
.stages li::before { content: ""; position: absolute; left: -9px; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); }
.stages li.done::before { background: var(--ok); border-color: var(--ok); }
.stages li.current { color: var(--ink); }
.stages li.current::before { background: var(--accent); border-color: var(--accent); }
.stages strong { display: block; }
.missing li { margin: 6px 0; }
/* An author display rule (button { display: inline-block }) beats the UA's [hidden] rule. */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .card { padding: 18px; } .hours input[type=time] { min-width: 0; } }
