/* Control Room — the standalone app: first-run screens, the four-step wizard, the mailbox list. Uses the tokens from app.css. */

.sa-wrap.sa-wide { max-width: 580px; }
.sa-steps { display: flex; gap: 6px; margin: 4px 0 14px; }
.sa-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line-strong); }
.sa-steps i.done { background: var(--moss); }
.sa-steps i.cur { background: var(--cobalt); }
.sa-kicker { margin: 0 0 2px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.sa-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.sa-nav-r { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-width: 0; }
.sa-nav .btn { white-space: nowrap; }
.sa-nav .btn.primary { min-height: 50px; padding: 0 26px; font-size: 16.5px; width: auto; }   /* (not the full-width button of the sign-in form: .auth-form .btn.primary) */

.sa-switch { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--surface); cursor: pointer; }
.sa-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sa-switch .sa-sw { flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line-strong); position: relative; margin-top: 2px; transition: background-color .15s; }
.sa-switch .sa-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.sa-switch input:checked + .sa-sw { background: var(--moss); }
.sa-switch input:checked + .sa-sw::after { transform: translateX(18px); }
.sa-switch input:focus-visible + .sa-sw { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.sa-switch b { display: block; font-size: 16.5px; }
.sa-switch small { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }

.sa-sum { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.sa-sum li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 15.5px; }
.sa-sum li svg { flex: none; margin-top: 2px; }
.sa-sum li.ok svg { color: var(--moss); }
.sa-sum li.no svg { color: var(--ink-3); }
.sa-sum.small { margin: 8px 0 4px; gap: 4px; }
.sa-sum.small li { padding: 6px 10px; font-size: 14px; background: var(--surface-2); }
.sa-sum.small li.no { color: var(--brick); }
.sa-sum.small li.no svg { color: var(--brick); }

.sa-boxes { display: grid; gap: 12px; }
.sa-boxes-list { display: grid; gap: 12px; }
.sa-box { padding: 14px; border-radius: 14px; background: var(--surface); display: grid; gap: 8px; }
.sa-box.bad { box-shadow: inset 0 0 0 1.5px var(--brick); }
.sa-box-h { display: flex; align-items: center; gap: 12px; }
.sa-box-h .body { flex: 1; min-width: 0; }
.sa-box-h .t { font-weight: 600; word-break: break-all; }
.sa-box .actions { margin-top: 2px; }
.sa-box small.muted { color: var(--ink-3); }
.sa-add { margin-top: 12px; display: grid; gap: 10px; }
.sa-kinds { display: grid; gap: 8px; }
@media (min-width: 520px) { .sa-kinds { grid-template-columns: 1fr 1fr; } }
.sa-sub { padding: 14px; border-radius: 14px; background: var(--surface); }
.sa-sub details.adv { margin-top: 4px; }
.sa-sub details.adv > summary { padding: 0; min-height: 40px; }
.sa-device { text-align: center; }
.sa-code { margin: 14px 0; font: 700 38px/1 var(--display); letter-spacing: .18em; padding-left: .18em; font-variant-numeric: tabular-nums; user-select: all; }
.sa-path { word-break: break-all; font-size: 13.5px; }
.sa-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.sa-check small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.form-row .val { max-width: 60%; text-align: right; color: var(--ink-2); font-size: 14.5px; word-break: break-word; }

.sa-sub details.adv .fld { margin-top: 12px; }

/* ---- what the standalone app does not have: other people, reports by mail, the demo's supervision, money spent on a model, agents that are not connected */
body.standalone #s4-today, body.standalone .sb-sub[href="#/handover"], body.standalone .sb-clients[href="#/people"], body.standalone .clients .actions a[href="#/people"],
body.standalone .s4-who, body.standalone .s4-money, body.standalone .tiles-cl, body.standalone .cl-line, body.standalone .clients .sec-h .aside,
body.standalone .cl-actions [data-to="#/handover"], body.standalone .cl-actions [data-to="#/reports"], body.standalone .cl-actions [data-s4="raise"],
body.standalone a[href="#/access"], body.standalone a[href="#/people"], body.standalone a[href="#/brand"], body.standalone a[href="#/crm/connect"], body.standalone a[href="#/handover"],
body.standalone a[href="#/reports"], body.standalone .pr-panel:has([data-pr="send"]), body.standalone [data-pr="send"],
body.standalone #t-spend, body.standalone #limits,
body.standalone #view .group a.row[href="#/health"], body.standalone #view .group a.row[href="#/mailboxes"], body.standalone #view .group a.row[href="#/experiments"],
body.standalone #view .group a.row[href="#/meetings"], body.standalone .sm-alert[href="#/health"] { display: none !important; }
body.standalone.no-agents [data-act="new-task"], body.standalone.no-agents [data-act="team-start"], body.standalone.no-agents [data-act="stop-all"],
body.standalone.no-agents [data-act="start"], body.standalone.no-agents #working, body.standalone.no-agents #ready, body.standalone.no-agents #t-actions { display: none !important; }
.form-row.stack > label { flex: none; }
.sa-start { margin-bottom: 8px; }
.sa-start .row .btn { margin-left: auto; flex: none; min-width: 132px; }          /* the three buttons of the first-run list share one width, so their right edges and shapes match */
@media (max-width: 520px) { .sa-start .row { flex-wrap: wrap; row-gap: 8px; } .sa-start .row .body { flex: 1 1 180px; } .sa-start .row .btn { margin-left: 52px; } }          /* a phone: the button goes under the text, in line with it (icon 40 + gap 12) */
.sa-agents-note { margin-top: 12px; }
.sa-start .sa-done { flex: none; margin-left: auto; min-width: 0; }
.sa-start-fold { margin-bottom: 12px; border-radius: 14px; background: var(--surface); }
.sa-start-fold > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; }
.sa-start-fold > summary::-webkit-details-marker { display: none; }
.sa-start-fold > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.sa-start-fold[open] > summary::after { transform: rotate(-135deg); }
.sa-start-fold > summary .muted { font-weight: 500; font-size: 14px; color: var(--ink-3); }
.sa-start-fold .group { margin: 0 6px 8px; }

/* Claude Code: how to install it, in Settings and in Help */
.sa-howto { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.sa-howto > summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 6px; list-style: none; }
.sa-howto > summary::-webkit-details-marker { display: none; }
.sa-howto > summary svg { transition: transform .15s; }
.sa-howto[open] > summary svg { transform: rotate(90deg); }
.sa-howto > :not(summary) { margin-top: 10px; }
.sa-ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; }
.sa-cmd { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.sa-cmd code { flex: 1 1 220px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; overflow-wrap: anywhere; user-select: all; }
.sa-cmd .btn { flex: none; }

/* Help */
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.help-sec { scroll-margin-top: 12px; }
.help-body { padding: 16px; line-height: 1.55; font-size: 15.5px; overflow: visible; }
.help-body > :first-child { margin-top: 0; }
.help-body p { margin: 0 0 12px; }
.help-body h3 { margin: 18px 0 8px; font-size: 16px; }
.help-body .actions { margin-top: 14px; }
.help-body code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-size: 13.5px; overflow-wrap: anywhere; }
.help-body .sa-cmd code { padding: 8px 10px; border-radius: 10px; }
.help-list { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; }
.help-letter { margin: 0 0 12px; border-radius: 12px; background: var(--surface-2); padding: 12px 14px; }
.help-letter-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.help-letter blockquote { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); user-select: text; }
