/* The setup flow's own form and step-list layout. Tokens, the reset and the shared base elements come from /atfs.css (linked in src/app.html). Every selector sits under .setup deliberately: this is a bundled stylesheet and SvelteKit keeps it loaded once the route has been visited, so the bare button/label/main rules below would otherwise follow the visitor onto every other page of the site. */ .setup main { max-width: 42rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; } .setup h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 0.5rem; } .setup .lede { color: var(--text-dim); margin: 0 0 1rem; } .setup .hint { color: var(--text-dim); font-size: 0.9rem; margin: 0.25rem 0 0.75rem; } .setup ol.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; } .setup .step { border-top: 1px solid var(--border); padding: 1.5rem 0; opacity: 0.45; } .setup .step[data-state="active"], .setup .step[data-state="done"] { opacity: 1; } /* A step nobody can act on yet must not accept input either — the opacity above is a hint, not a guard. */ .setup .step:not([data-state="active"]):not([data-state="done"]) :is(input, .setup button, .setup textarea, .setup select) { pointer-events: none; } .setup .step h2 { font-size: 1.15rem; margin: 0 0 0.5rem; } .setup .step h3 { font-size: 1rem; margin: 0 0 0.5rem; } .setup .step[data-state="done"] > h2::after { content: " ✓"; color: var(--good); } .setup label { display: block; font-weight: 600; margin: 0.75rem 0 0.25rem; } .setup label.check { font-weight: 400; display: flex; gap: 0.5rem; align-items: center; } .setup input[type="text"], .setup input[type="file"], .setup textarea, .setup select { width: 100%; font: inherit; padding: 0.5rem; border: 1px solid var(--border); border-radius: 0.35rem; background: var(--bg); color: inherit; } .setup textarea { font-family: var(--mono); font-size: 0.85rem; resize: vertical; } .setup fieldset { border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem 1rem 1rem; margin: 1.25rem 0; } .setup legend { font-weight: 600; padding: 0 0.35rem; } .setup button { font: inherit; font-weight: 600; padding: 0.5rem 1rem; margin-top: 1rem; border: 1px solid transparent; border-radius: 0.35rem; background: var(--accent-strong); color: var(--on-accent); cursor: pointer; } .setup button:hover { background: var(--accent); } .setup button.secondary { background: transparent; border-color: var(--border); color: inherit; } .setup button.secondary:hover { background: transparent; border-color: var(--accent-strong); color: var(--accent-strong); } .setup button.link { background: none; border: none; padding: 0; margin: 0; text-decoration: underline; color: inherit; font-weight: 400; } .setup button.link:hover { background: none; } .setup button[disabled] { cursor: not-allowed; opacity: 0.5; } .setup .choices { display: flex; flex-wrap: wrap; gap: 0.75rem; } .setup .status { margin: 0.75rem 0 0; min-height: 1.6em; } .setup .status[data-tone="bad"] { color: var(--danger); } .setup .status[data-tone="good"] { color: var(--good); } .setup .keybox { border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem; margin-top: 1.5rem; background: var(--bg-raised); } /* Long DIDs and base64 keys need to break mid-word, not just at the overflow-wrap boundaries /atfs.css's shared `code` allows. */ .setup code { word-break: break-all; } .setup .key { display: block; padding: 0.75rem; border-radius: 0.35rem; font-family: var(--mono); font-size: 0.8rem; word-break: break-all; background: var(--bg); border: 1px solid var(--border); user-select: all; } .setup ul.written { margin: 1rem 0 0; padding-left: 1.25rem; } .setup progress { width: 100%; margin-top: 0.75rem; } .setup footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.9rem; }