/* Same theme tokens as the workspaces; comfortable controls on a folded phone. */
body[data-view="setup"] { overflow:auto; background:var(--bg); }
.setup-wizard { width:min(1120px,100%); margin:auto; padding:24px 32px 48px; color:var(--ink); font-size:16px; }
.setup-wizard h1 { font-size:32px; line-height:1.15; margin:28px 0 12px; letter-spacing:-.6px; }
.setup-wizard h2 { font-size:20px; margin:0 0 12px; }
.setup-wizard p { line-height:1.5; margin:8px 0 20px; }
.setup-top,.setup-footer,.setup-steps,.setup-top>div:last-child { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.setup-top .brand { width:190px; }
.setup-top .brand img { width:100%; }
.setup-steps { justify-content:flex-start; gap:32px; border-bottom:1px solid var(--line); padding:24px 0; }
.setup-steps span { display:flex; align-items:center; gap:10px; color:var(--muted); }
.setup-steps b { display:grid; place-items:center; border:1px solid var(--line); width:32px; height:32px; border-radius:50%; }
.setup-steps [aria-current] { color:var(--ink); font-weight:650; }
.setup-steps [aria-current] b { background:var(--primary); color:var(--on-primary); }
.setup-two { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin:24px 0; }
.setup-wizard label,.setup-launch label { display:flex; flex-direction:column; gap:8px; margin:0 0 16px; font-size:16px; }
.setup-wizard input,.setup-wizard select,.setup-launch input,.setup-launch select { min-height:44px; width:100%; font-size:16px; }
.setup-wizard .check,.setup-launch .check,.setup-launch .software-switch { flex-direction:row; align-items:center; gap:12px; }
.setup-wizard input[type="checkbox"],.setup-launch input[type="checkbox"] { width:22px; height:22px; min-height:22px; flex:none; }
.setup-hours { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; border:0; margin:16px 0; padding:0; }
.setup-hours legend { margin-bottom:12px; font-weight:600; }
.setup-hours label { margin:0; }
.setup-signers,.setup-person { border-top:1px solid var(--line); padding:24px 0; }
.setup-signers>label { max-width:380px; }
.setup-person { display:grid; grid-template-columns:1fr 340px; gap:28px; }
.setup-person-controls { display:grid; gap:0; }
.setup-person .setup-result { font-weight:600; margin:12px 0; }
.setup-footer { position:sticky; bottom:0; padding:18px 0; background:var(--bg); border-top:1px solid var(--line); flex-wrap:wrap; }
.setup-footer>div { display:flex; gap:10px; flex-wrap:wrap; }
.setup-wizard button,.setup-launch button { min-height:44px; font-size:16px; }
.setup-logo-preview { max-width:180px; max-height:90px; object-fit:contain; margin-bottom:16px; }
.setup-launch { width:min(760px,100%); font-size:16px; }
.setup-launch .software-config { border:0; padding:0; }
.setup-launch h5 { font-size:18px; }
.setup-launch .software-links { margin-bottom:20px; }
@media(max-width:760px) {
  .setup-wizard { padding:16px 18px 32px; }
  .setup-top { align-items:flex-start; }
  .setup-top .brand { width:145px; }
  .setup-top>div:last-child { flex-direction:column; align-items:stretch; gap:6px; }
  .setup-wizard h1 { font-size:28px; }
  .setup-steps { gap:18px; justify-content:space-between; }
  .setup-steps span { gap:6px; }
  .setup-two,.setup-person { grid-template-columns:1fr; gap:16px; }
  .setup-footer { position:static; gap:16px; }
  .setup-footer>div,.setup-footer button { width:100%; }
}

#setup-form { display:block; }
.setup-wizard h1:focus { outline:none; }
.setup-launch p { font-size:16px; }

.setup-launch form { display:block; }
.setup-config-fields { display:grid; grid-template-columns:1fr 1fr; gap:0 20px; }
.setup-launch .btns { position:sticky; bottom:0; background:var(--panel); padding:16px 0 0; }
.setup-launch details { margin:16px 0; }
#tour-review { margin:0 0 24px; padding:20px; border:1px solid var(--line); border-radius:12px; }
#tour-review dd { margin:4px 0 14px; white-space:pre-wrap; overflow-wrap:anywhere; }
#tour-review dt { font-weight:600; }
#tour-review button { margin:4px 0; }
@media(max-width:600px) { .setup-config-fields { grid-template-columns:1fr; } }

/* CL-12: compact business setup, AI staff selection and support levels. */
@media(max-width:600px) {
  .setup-wizard { display:flex; flex-direction:column; padding:12px; overflow-wrap:anywhere; }
  .setup-wizard .setup-top { order:2; flex-wrap:wrap; margin-top:16px; }
  .setup-wizard .setup-top .brand { display:none; }
  .setup-wizard .setup-top>div:last-child { flex-direction:row; flex-wrap:wrap; }
  .setup-wizard .setup-steps { gap:6px; padding:8px 0; }
  .setup-wizard .setup-steps span { font-size:14px; gap:4px; }
  .setup-wizard .setup-steps b { width:24px; height:24px; flex:none; }
  .setup-wizard #setup-form { display:flex; flex-direction:column; gap:0; }
  .setup-wizard #setup-form>.support-plans { order:1; }
  .setup-wizard .setup-footer { order:2; }
  .setup-wizard .setup-footer>div { flex-wrap:wrap; }
  .setup-wizard :is(input,select,button),.setup-launch :is(input,select,button) { min-width:0; max-width:100%; white-space:normal; }
  .setup-wizard .check,.setup-launch .check { min-height:44px; }
  .setup-wizard .setup-top a { display:flex; align-items:center; min-height:44px; }
  .setup-launch .btns button { min-height:44px; }
  .dialog:has(.setup-resume) { font-size:16px; overflow-wrap:anywhere; }
  .dialog:has(.setup-resume) button { min-height:44px; }
  .staff-page { overflow-wrap:anywhere; }
  .staff-page .staff-grid { grid-template-columns:minmax(0,1fr); }
  .staff-page .staff-open { display:grid; grid-template-columns:56px minmax(0,1fr); align-items:start; }
  .staff-page [data-kind="ai"] .staff-open { grid-template-columns:minmax(0,1fr); }
  .staff-page [data-kind] :is(.staff-name,.staff-role,.staff-strength,.staff-support,.staff-activity) { overflow-wrap:normal; }
  .staff-page .portrait-wrap { width:56px; height:72px; margin-top:12px; }
  .staff-page .staff-name { padding-right:36px; }
  .staff-page :is(.staff-role,.staff-strength,.staff-activity,.staff-summary,.team-panel,.badge,.tab-chip,.staff-talk,.card-menu-list button),.staff-page .page-intro p { font-size:14px; line-height:1.5; }
  .staff-page :is(.page-intro,.staff-summary,.toolbar) { margin-bottom:12px; }
  .staff-page :is(button,input,.staff-talk) { min-height:44px; }
  .staff-page .card-menu summary { width:44px; height:44px; }
  .staff-page .card-menu-list { top:48px; }
  .dialog:has(:is(.hiring-role-choice,.hiring-candidates,.hiring-levels,.look-grid)) { font-size:16px; overflow-wrap:anywhere; }
  .dialog:has(:is(.hiring-role-choice,.hiring-candidates,.hiring-levels,.look-grid)) :is(.hint,.small,button) { font-size:14px; }
  .dialog:has(:is(.hiring-role-choice,.hiring-candidates,.hiring-levels,.look-grid)) button { min-height:44px; white-space:normal; }
  .hiring-candidates .hiring-personality { grid-template-columns:20px minmax(0,1fr); }
  .hiring-candidates .hiring-personality>span { grid-column:1/-1; }
  .look-grid { grid-template-columns:minmax(0,1fr); min-height:0; max-height:none; }
  .look-grid .look-who,.look-grid .look-who small { font-size:14px; line-height:1.5; }
}
