/* Settings & admin screens (views/settings-*.js, views/help.js).
   Everything is scoped under .st so the rest of the Agent OS is untouched.
   Phone first: one column at 390px, every target at least 44px. */

.st { max-width: 1120px; }
.st-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 4px; margin: -8px 0 4px -4px; color: var(--muted); border-radius: 10px; font-size: 14px; }
.st-back:hover { color: var(--text); background: rgba(155, 107, 255, .08); }
.st-head { align-items: flex-start; }
.st-head h1 { margin: 0; overflow-wrap: anywhere; }
.st-lede { margin: 6px 0 0; color: var(--soft); max-width: 68ch; }
.st-actions { flex-wrap: wrap; }
.st-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.st-section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-h2 { margin: 8px 0 0; font: 600 13px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-h3 { margin: 8px 0 0; font-size: 15px; font-weight: 600; }
.st-note { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(62, 230, 255, .06); border: 1px solid rgba(62, 230, 255, .2); color: var(--soft); font-size: 14px; }
.st-note code, .st code { font-family: var(--mono); font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.st-wrap { overflow-wrap: anywhere; word-break: break-word; }
.st-prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.st-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--soft); }

/* touch targets: the shell's small buttons and chips are below 44px */
.st .btn, .st .btn-sm { min-height: 44px; }
.st .chip { min-height: 44px; min-width: 44px; justify-content: center; }
.st .btn-bad:hover { background: rgba(255, 92, 122, .1); color: var(--red); }

/* ---- truth states ---- */
.st-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--soft); }
.st-state b { color: var(--text); }
.st-loading { flex-direction: row; align-items: center; color: var(--muted); border-style: solid; border-color: var(--line); }
.st-error { border: 1px solid rgba(255, 143, 163, .45); background: rgba(255, 92, 122, .06); }
.st-refused { border: 1px solid rgba(255, 194, 77, .45); background: rgba(255, 194, 77, .05); }
.st-ok { border: 1px solid rgba(61, 255, 168, .4); background: rgba(61, 255, 168, .05); }
.st-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--cyan); animation: st-spin .8s linear infinite; flex: none; }
@keyframes st-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .st-spin { animation: none; } }
.st-status { margin: 0; color: var(--muted); min-height: 0; overflow-wrap: anywhere; }
.st-status:empty { display: none; }
.st-status.error { color: var(--red); }

/* ---- controls ---- */
.st-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-field > label { font-size: 13px; font-weight: 600; color: var(--soft); }
.st-input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 16px; line-height: 1.4; }
.st-input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.st-input[readonly] { color: var(--soft); font-family: var(--mono); font-size: 13px; }
.st-textarea { resize: vertical; min-height: 88px; }
select.st-input { padding: 0 10px; }
.st-searchwrap { position: relative; display: flex; align-items: center; flex: none; min-width: 0; }
.st-toolbar > .st-searchwrap { flex: 1 1 260px; }
.st-searchwrap .ico { position: absolute; left: 12px; color: var(--faint); pointer-events: none; }
.st-search { padding-left: 38px; }
.st-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; min-width: 0; }
.st-toolbar .st-field { flex: 0 1 220px; }
.st-chips { flex-wrap: wrap; }
.st-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: end; }
@media (min-width: 900px) { .st-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- cards and grids ---- */
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 761px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .st-grid:not(.st-grid-wide) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-grid-wide { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .st-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.st-card.is-ok { border-color: rgba(61, 255, 168, .3); }
.st-card.is-warn { border-color: rgba(255, 194, 77, .4); }
.st-card p { margin: 0; }
.st-card-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 10px; min-width: 0; }
.st-card-top h3 { margin: 0; flex: 1 1 10em; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.st-card-top .pill { flex: none; margin-top: 2px; }
.st-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.st-mini { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-3); border: 1px solid var(--line); min-width: 0; }
.st-pill-gold { color: var(--gold); border-color: rgba(255, 210, 122, .5); }
.st-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--soft); max-width: 100%; overflow-wrap: anywhere; }
.st-tag-on, .st-tag-allow { color: var(--green); border-color: rgba(61, 255, 168, .35); }
.st-tag-approve { color: var(--amber); border-color: rgba(255, 194, 77, .4); }
.st-tag-block { color: var(--muted); border-style: dashed; }
.st-details { border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-3); padding: 0 12px; }
.st-details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: 14px; list-style-position: inside; }
.st-details[open] { padding-bottom: 12px; }
.st-details[open] > summary { margin-bottom: 6px; }
.st-pre { margin: 8px 0 0; padding: 12px; max-height: 60dvh; overflow: auto; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); font: 13px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--soft); }
.st-steps { margin: 6px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--soft); }

/* health stages (providers, vault, memory receipts) */
.st-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
@media (min-width: 1100px) { .st-card .st-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-stage { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; min-width: 0; }
.st-stage-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); color: var(--faint); font-size: 12px; font-weight: 700; }
.st-stage.is-pass .st-stage-mark { color: #07261a; background: var(--green); border-color: transparent; }
.st-stage.is-fail .st-stage-mark { color: var(--red); border-color: rgba(255, 143, 163, .6); }

/* ---- vault key forms ---- */
.st-keyform { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.st-keyform .st-status { grid-column: 1 / -1; }
@media (max-width: 420px) { .st-keyform { grid-template-columns: minmax(0, 1fr); } }

/* ---- rows ---- */
.st-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-3); }
.st-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.st-row:last-child { border-bottom: 0; }
.st-rows > li.muted { padding: 12px; }
.st-subrow { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); align-items: flex-start; }

/* ---- clean up ---- */
.st-cleanup-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.st-cleanup-bar > p { margin: 0; }
.st-cleanup-row { align-items: flex-start; }
.st-cleanup-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-cleanup-name, .st-cleanup-detail { overflow-wrap: anywhere; }
.st-cleanup-detail { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-kind { flex: none; min-width: 84px; text-align: center; margin-top: 2px; }
.st-cleanup-report { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-3); }
.st-cleanup-report p { margin: 0; overflow-wrap: anywhere; }
.st-cleanup-plan { margin: 0; padding-left: 18px; max-height: 40dvh; overflow-y: auto; overflow-wrap: anywhere; }
.st-cleanup-plan li { padding: 2px 0; }
@media (max-width: 760px) {
  .st-cleanup-bar > .btn { width: 100%; }
  .st-cleanup-main { flex: 1 1 calc(100% - 110px); }
}

/* ---- access ---- */
.st-person { padding: 0; }
.st-person-head { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; cursor: pointer; list-style: none; min-width: 0; }
.st-person-head::-webkit-details-marker { display: none; }
.st-person[open] .st-person-head { border-bottom: 1px solid var(--line); }
.st-initials { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: rgba(155, 107, 255, .18); color: var(--text); font-weight: 700; font-size: 13px; }
.st-count { flex: none; font-variant-numeric: tabular-nums; }
.st-grants { list-style: none; margin: 0; padding: 4px 14px 8px; }
.st-grant { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 14px; }
.st-grant:last-child { border-bottom: 0; }
.st-switch { display: inline-grid; place-items: center; min-width: 52px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; flex: none; border-radius: 12px; }
.st-switch:disabled { cursor: default; }
.st-switch-track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); transition: background-color .15s, border-color .15s; }
.st-switch-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--faint); transition: transform .15s, background-color .15s; }
.st-switch[aria-checked="true"] .st-switch-track { background: rgba(61, 255, 168, .22); border-color: rgba(61, 255, 168, .55); }
.st-switch[aria-checked="true"] .st-switch-knob { transform: translateX(18px); background: var(--green); }
.st-switch:disabled .st-switch-track { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .st-switch-track, .st-switch-knob { transition: none; } }
.st-policy { display: flex; flex-direction: column; gap: 6px; }
.st-policy-label { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.st-policy-allow { color: var(--green); } .st-policy-approve { color: var(--amber); } .st-policy-block { color: var(--muted); }

/* ---- activity log ---- */
.st-log { display: flex; flex-direction: column; gap: 16px; }
.st-day { display: flex; flex-direction: column; gap: 6px; }
.st-day-head { margin: 0; position: sticky; top: env(safe-area-inset-top); z-index: 1; padding: 6px 0; background: var(--bg); font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.st-log-list { list-style: none; margin: 0; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); }
.st-log-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.st-log-row:last-child { border-bottom: 0; }
.st-ev-approvals { border-left-color: var(--amber); }
.st-ev-access { border-left-color: var(--violet); }
.st-ev-work { border-left-color: var(--cyan); }
.st-log-time { color: var(--faint); padding-top: 2px; }
.st-log-main { min-width: 0; }
.st-log-detail { color: var(--soft); overflow-wrap: anywhere; margin-top: 2px; }

/* ---- usage ---- */
.st-stats { margin-bottom: 0; }
.st-usage-rows { margin-top: 16px; }
.st-usage-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; justify-content: flex-start; min-height: 44px; }
.st-usage-money { align-self: center; flex-shrink: 0; }
.st-usage-call { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.st-stat-money { font-size: 24px; overflow-wrap: anywhere; }
.st-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.st-bar-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-bar-top { display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.st-bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.st-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--cyan)); }

/* ---- tabs (modules) ---- */
.st-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); font-size: 14px; font-weight: 600; }
.st-tab:hover { color: var(--text); background: rgba(155, 107, 255, .08); }
.st-tab[aria-current="page"] { background: rgba(155, 107, 255, .18); border-color: rgba(155, 107, 255, .55); color: var(--text); }

/* ---- master / detail (skills, memory library) ---- */
.st-master { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 1000px) { .st-master { grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); } }
.st-master-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-skill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 70dvh; overflow-y: auto; }
.st-skill { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.st-skill:hover { border-color: var(--line-2); background: rgba(155, 107, 255, .06); }
.st-skill[aria-current="true"] { border-color: rgba(155, 107, 255, .55); background: rgba(155, 107, 255, .12); }
.st-pane { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.st-pane p { margin: 0; }
.st-detail-title { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.st-inject { background: var(--bg-3); }
.st-inject-list { margin: 0; padding-left: 22px; font-size: 14px; }
.st-only-phone { display: none; align-self: flex-start; }
@media (max-width: 999px) {
  .st-master.is-detail .st-master-list { display: none; }
  .st-master:not(.is-detail) .st-pane { display: none; }
  .st-only-phone { display: inline-flex; }
}

/* ---- help ---- */
.st-topic { padding: 0; }
.st-topic > summary { display: block; padding: 14px 16px; min-height: 44px; cursor: pointer; list-style: none; }
.st-topic > summary::-webkit-details-marker { display: none; }
.st-topic > summary b { display: block; font-size: 16px; }
.st-topic[open] > summary { border-bottom: 1px solid var(--line); }
.st-topic > .st-steps, .st-topic > .st-card-actions { margin: 12px 16px; }

/* ---- phone ---- */
@media (max-width: 760px) {
  .st-head { flex-direction: column; align-items: stretch; }
  .st-actions { justify-content: flex-start; }
  .st-toolbar { flex-direction: column; align-items: stretch; }
  .st-toolbar .st-field, .st-searchwrap { flex: 1 1 auto; width: 100%; }
  .st-row { flex-wrap: wrap; }
  .st-row > .btn { margin-left: auto; }
  .st-card-top { flex-wrap: wrap; }
}
.st.st-home { max-width: 1320px; }
.st .stack-sm > .btn, .st .stack > .btn, .st-section > .btn { align-self: flex-start; }
.st-detail-title:focus, .st-detail-title:focus-visible { outline: none; }
.st-section > p, .st-body > p { margin: 0; }

/* ---- connect your accounts (settings-connections.js) ---- */
.cn-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0; }
@media (min-width: 761px) { .cn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .cn-grid:not(.cn-grid-2) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cn-card { gap: 12px; padding: 20px; }
.cn-card h3 { font-size: 18px; }
.cn-wide { grid-column: 1 / -1; }
.cn-wide h3 { font-size: 21px; }
.cn-card[data-state="ok"] { border-color: rgba(61, 255, 168, .4); }
.cn-card[data-state="ready"] { border-color: rgba(155, 107, 255, .5); }
.cn-card[data-state="setup"], .cn-card[data-state="warn"] { border-color: rgba(255, 194, 77, .45); }
.cn-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); font-size: 13px; font-weight: 700; white-space: nowrap; flex: none; }
.cn-badge-ok { color: var(--green); border-color: rgba(61, 255, 168, .5); background: rgba(61, 255, 168, .08); }
.cn-badge-ready { color: var(--violet-2); border-color: rgba(155, 107, 255, .55); background: rgba(155, 107, 255, .1); }
.cn-badge-setup, .cn-badge-warn { color: var(--amber); border-color: rgba(255, 194, 77, .5); background: rgba(255, 194, 77, .08); }
.cn-tagline { color: var(--soft); font-size: 15px; overflow-wrap: anywhere; }
.cn-say { font-size: 14.5px; overflow-wrap: anywhere; }
.cn-say-soft { color: var(--muted); font-size: 13.5px; }
.cn-say-warn { color: var(--amber); }
.cn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-3); }
.cn-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.cn-list > li:last-child { border-bottom: 0; }
.cn-list > li > b { flex: 1 1 100%; }
.cn-account > .grow { flex: 1 1 14em; }
.cn-account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.cn-ticks { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; color: var(--soft); }
.cn-steps { counter-reset: cn; list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.cn-steps > li { counter-increment: cn; position: relative; padding-left: 40px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--soft); }
.cn-steps > li > * { max-width: 100%; }
.cn-steps > li > .stack, .cn-steps > li > .stack-sm, .cn-steps > li > form, .cn-steps > li > .cn-perms { align-self: stretch; }
.cn-steps > li::before { content: counter(cn); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(155, 107, 255, .22); color: var(--text); font-weight: 700; font-size: 13px; }
.cn-step-text { overflow-wrap: anywhere; }
.cn-step-text b { color: var(--text); }
.cn-copy { display: flex; gap: 8px; align-items: center; min-width: 0; }
.cn-copy .st-input { flex: 1 1 auto; min-width: 0; }
.cn-copy .btn { flex: none; }
.cn-perms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cn-codes { display: flex; flex-wrap: wrap; gap: 4px; }
.cn-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cn-fieldset legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--soft); }
.cn-choice { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); cursor: pointer; font-size: 14.5px; min-width: 0; }
.cn-choice > span { min-width: 0; overflow-wrap: anywhere; }
.cn-choice input { width: 20px; height: 44px; margin: 0; flex: none; accent-color: var(--violet); cursor: pointer; }
.cn-choice:has(input:checked) { border-color: rgba(155, 107, 255, .6); background: rgba(155, 107, 255, .12); }
.cn-choice-all { font-weight: 600; }
.st .cn-connect, .st .stack > .cn-connect { align-self: stretch; }
@media (min-width: 761px) { .st .cn-connect, .st .stack > .cn-connect { align-self: flex-start; } }
.cn-advanced { padding: 0 16px; }
.cn-advanced > summary { font-size: 15px; }
.cn-advanced[open] { padding-bottom: 16px; }
.cn-picker { border-color: rgba(61, 255, 168, .4); }
.cn-picker h3 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .cn-copy { flex-wrap: wrap; }
  .cn-copy .btn { flex: 1 1 100%; }
  .cn-steps > li { padding-left: 36px; }
}

/* ---- Quick actions (views/settings-quick.js) ---- */
.qa-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.qa-grid:empty { display: none; }
@media (min-width: 900px) { .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qa-card { gap: 10px; }
.qa-top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.qa-top .grow { flex: 1 1 auto; min-width: 0; }
.qa-icon { flex: none; width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line); }
.qa-name { margin: 2px 0 4px; font-size: 16px; overflow-wrap: anywhere; }
.qa-does { overflow-wrap: anywhere; }
.qa-wording { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.qa-wording .st-field { align-self: stretch; }
.qa-link { text-overflow: ellipsis; }
.qa-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.qa-actions .btn { flex: 0 1 auto; }
.qa-crm { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.qa-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.qa-siri { padding-bottom: 12px; }
.qa-siri[open] > * + * { margin-top: 10px; }
.qa-missing { gap: 6px; }
/* ---- notifications (settings-notifications.js) ---- */
.nt-install b { display: block; color: var(--text); }
.nt-install p { margin: 4px 0 0; }
.nt-toggle { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-sm); }
.nt-times { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 420px; }
@media (min-width: 480px) { .nt-times { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nt-devices .st-row > .btn { flex: none; }

/* Settings › Harnesses & models › Add a model */
.st-pick-list { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; min-width: 0; }
.st-pick { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); color: var(--text); font-family: var(--mono); font-size: 13px; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.st-pick[aria-selected="true"] { border-color: var(--cyan); background: var(--bg-3); }
.st-pick:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.st-actions { flex-wrap: wrap; align-items: center; }
.st-actions .btn { min-height: 44px; }

/* People & access: invitations, access resets and sign-out (staff-invites.mjs). */
.ac-h3 { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--soft); }
.ac-picks { border: 1px solid var(--line); border-radius: var(--r-sm); margin: 0; min-width: 0; }
.ac-picks-label { margin: 0; padding: 10px 14px 0; font-size: 13px; font-weight: 600; color: var(--soft); }
.ac-person-actions { display: flex; flex-wrap: wrap; align-items: center; padding: 10px 14px 12px; border-top: 1px solid var(--line); gap: 8px; }
.ac-person-actions .grow { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
/* On a phone the status reads as its own line and the actions wrap below it. */
@media (max-width: 760px) { .ac-person-actions .grow { flex-basis: 100%; } }
.ac-copy .btn { min-height: 44px; }
.ac-picks-hint { margin: 2px 0 0; padding: 0 14px; }
.ac-picks-hint:last-child { padding-bottom: 12px; }
.ac-warn { gap: 6px; }
.ac-warn .ac-h3 { margin: 0; color: var(--amber); }
.ac-ignored { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; overflow-wrap: anywhere; }
