.account-card{max-width:650px;border-top:4px solid #167d8d;box-shadow:0 14px 36px #123b4910}.account-eyebrow{font-size:.75rem;letter-spacing:.12em;color:var(--teal,#0f4c5c);font-weight:700}.account-modes{padding-bottom:1rem;border-bottom:1px solid #dbe5e9}.account-modes [aria-pressed=true]{background:#0f4c5c;color:white}.account-card form:not([hidden]),#profile-form,#set-password{display:grid;gap:14px;max-width:500px;margin:20px 0}.account-card label,#profile-form label,#set-password label{display:grid;gap:6px;font-weight:600}.account-card input,#profile-form input,#set-password input,.account-card select,#profile-form select{width:100%;min-height:44px;box-sizing:border-box}#password-settings{margin:22px 0;padding:16px;background:#f3f8f9;border-radius:12px}#password-settings summary,#magic-option summary{cursor:pointer;font-weight:600}

/* Account and team → Your company */
#company .company-card { border-top: 1px solid var(--line, #d8dee6); padding-top: 12px; margin-top: 12px; }
#company h4 { margin: 16px 0 6px; }
#company .chip-check { display: inline-flex; align-items: center; gap: 4px; margin: 0 10px 4px 0; white-space: nowrap; }
#company textarea { width: 100%; }

/* First sign-in setup (welcome.html) and Register your company (register-company.html). */
.setup-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px}
.setup-choice{border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px;min-width:0}
.setup-choice h3{margin:0;font-size:1rem}
.setup-choice .row{flex-wrap:wrap}
.setup-choice input{min-width:0;flex:1 1 160px}
.setup-roles-group{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:6px 14px}
.setup-roles-group legend{font-weight:650;padding:0 4px}
.reg-steps{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:8px 0}
.reg-step{border:1px solid var(--line);border-radius:999px;padding:4px 12px;font-size:.9rem;color:var(--muted)}
.reg-step.done{background:var(--brand-soft);color:var(--ink)}
.reg-step.done::before{content:"✓ "}
.reg-step.current{border-color:var(--brand);color:var(--ink);font-weight:650}
.reg-terms ol{padding-left:1.2em}
.reg-terms li{margin:4px 0}
label.check{display:flex;gap:8px;align-items:flex-start}
.account-card .setup-roles-group label,.account-card label.check{display:inline-flex;align-items:flex-start;gap:6px;font-weight:400}
.account-card .setup-roles-group input,.account-card label.check input{width:auto;min-height:0;margin-top:3px}
.account-card .setup-roles-form{max-width:none}
#setup-company,#setup-roles{max-width:900px}
/* Onboarding on the first sign-in page (welcome-onboarding.js), shown only while role access is on. */
.onb{display:grid;gap:12px;margin:12px 0}
.onb-step h2{margin:0 0 4px}
.onb-intro{margin:0}
.onb-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.onb-row select,.onb-row input{min-height:32px;min-width:0;flex:1 1 14rem;max-width:28rem}
.onb-label{font-weight:600}
.onb-pilot{border:0;padding:0;margin:8px 0;display:flex;flex-wrap:wrap;gap:4px 12px}
.onb-pilot legend{font-weight:600;margin-bottom:4px;padding:0}
.onb-pilot .chip-check,.onb-step>.chip-check{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.onb-chosen{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.onb-chip{display:inline-flex;align-items:center;gap:2px;padding:0 4px 0 8px;border:1px solid var(--line);border-radius:999px;font-size:12px;line-height:20px}
.onb-x{border:0;background:none;cursor:pointer;font-size:16px;line-height:1;min-width:24px;min-height:24px;color:inherit}
.onb-details,.onb-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:4px 8px;align-items:end;margin-top:8px}
.onb-details label,.onb-products label{font-size:12px;font-weight:600}
.onb-details input,.onb-products input,.onb-products select{min-height:32px;min-width:0}
.onb-details button,.onb-products button{justify-self:start}
.onb-list,.onb-summary{margin:8px 0;padding-left:20px}
.onb-message:empty{display:none}
@media(max-width:700px){.onb-row select,.onb-row input,.onb-details input,.onb-products input,.onb-products select{min-height:44px}.onb-products,.onb-details{grid-template-columns:1fr}}
.onb-field{display:grid;gap:2px;min-width:0}
.onb-step button.primary:disabled{opacity:.55;cursor:not-allowed}
.onb-chip .onb-x,.onb-list .onb-x{min-height:20px;min-width:20px;padding:0;border:0;background:none;border-radius:999px;font-size:14px;line-height:1}
.onb-row>.onb-label{flex:1 1 100%}
.onb-row>button{flex:0 0 auto;width:auto}
.onb-message{margin:0;padding:8px 12px;border-left:4px solid var(--brand,#0f4c5c);background:var(--panel);border-radius:8px;font-weight:600}
.onb-pilot{display:grid;grid-template-columns:repeat(auto-fill,minmax(9rem,1fr));gap:0 16px}
.onb-pilot legend{grid-column:1/-1}
.onb-pilot .chip-check{min-height:32px}
#signin-guest{margin:8px 0 12px}
#signin-guest a{background:none;border:0;padding:0;min-height:0;color:var(--brand,#0f4c5c);text-decoration:underline;font-weight:600}
@media(max-width:700px){.onb-chip .onb-x,.onb-list .onb-x{min-width:32px;min-height:32px}.onb-chip{line-height:32px}.onb-pilot .chip-check{min-height:44px}}
#onb-host .onb-pilot .chip-check{display:flex;justify-content:flex-start;align-items:center;gap:6px}
#onb-host .onb-step input[type=checkbox]{width:16px;height:16px;min-height:0;min-width:0;flex:none;margin:0;padding:0}
#onb-host .onb-row>button{width:auto!important;flex:0 0 auto}
#onb-host .onb-details{align-items:end}
.my-access-list{display:grid;grid-template-columns:max-content 1fr;gap:4px 16px;margin:8px 0 0}.my-access-list dt{font-weight:600}.my-access-list dd{margin:0}
