/*
 * Product screens (sign-up, invites, onboarding, settings, people) and data-driven company colors.
 * Kept apart from app.css so visual polish there and product work here don't collide. Same tokens, same language.
 */

/* Company identity: slot n = the organization's nth company (fixed by creation order). Slots 1–3 are the polished
   palette in app.css (--co1..--co3); 4–8 continue the validated categorical order (dataviz palette slots 4–8); always shown beside the company's name, so color is never the only cue. Past eight: gray. */
:root { --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948; }
@media (prefers-color-scheme: dark) { :root { --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767; } }
.dot.c1 { background: var(--co1); } .dot.c2 { background: var(--co2); } .dot.c3 { background: var(--co3); } .dot.c4 { background: var(--s4); }
.dot.c5 { background: var(--s5); } .dot.c6 { background: var(--s6); } .dot.c7 { background: var(--s7); } .dot.c8 { background: var(--s8); }
.dot.c0 { background: var(--ink-3); }

/* auth extras */
.switch-auth { text-align: center; margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.switch-auth a { font-weight: 650; }
.money { position: relative; display: block; }
.money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; }
.money input { padding-left: 28px; }
select.select { width: 100%; min-height: 48px; font-size: 16px; }
.opt.role input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* onboarding stepper */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 18px; padding: 0; counter-reset: s; }
.stepper li { display: grid; justify-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--ink-3); text-align: center; position: relative; }
.stepper li::after { content: ""; position: absolute; top: 13px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: var(--line); }
.stepper li:last-child::after { display: none; }
.stepper .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); background: var(--card); font-size: 13px; }
.stepper .n svg { width: 16px; height: 16px; }
.stepper li.done { color: var(--ink-2); }
.stepper li.done .n { background: var(--good); border-color: var(--good); color: #fff; }
.stepper li.done::after { background: var(--good); }
.stepper li.now { color: var(--accent-ink); }
.stepper li.now .n { border-color: var(--accent); background: var(--accent); color: #fff; }

/* settings */
.settings h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.set-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.set-head.pad { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.set-v { font-size: 18px; font-weight: 650; }
.set-row { display: flex; align-items: center; gap: 12px; }
.set-row .grow { flex: 1; min-width: 0; }
.set-row .dot { width: 12px; height: 12px; }
.set-foot { padding: 8px 8px 10px; border-top: 1px solid var(--line); }
.secret.link code { font-size: 12px; font-weight: 600; letter-spacing: 0; word-break: break-all; }

/* Signed in, the account menu (initials) also opens Settings, so phones drop the separate gear to keep the bar on one line. */
@media (max-width: 959px) { .topbar:has(.me-btn:not([hidden])) .gear { display: none; } }

/* Sign in with Google (only shown when the server has it set up) */
.or-line { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--ink-2); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line, rgba(0,0,0,.12)); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #747775; text-decoration: none; font-weight: 600; }
.google-btn:hover { background: #f8f9fa; }
.google-g { flex: none; }
