/* Studio page: settings (features/studio/settings.js). Page-specific styles only; shared ones are in kit.css. */
.st-settings { display: flex; flex-direction: column; gap: 20px; max-width: 720px; padding-bottom: 40px; }

.st-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.st-card-head { padding: 18px 20px 0; }
.st-card-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.st-card-head p { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.st-rows { padding: 6px 0 4px; }

.st-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 20px; min-height: 56px; }
.st-row + .st-row { border-top: 1px solid var(--border); }
.st-row-text { min-width: 0; flex: 1 1 auto; }
.st-label { font-size: 13.5px; font-weight: 500; }
.st-help { font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.45; }
.st-row-control { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; flex: 0 1 auto; min-width: 0; text-align: right; }
.st-value { font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }
.st-missing { color: var(--text-3); }

.st-who { justify-content: flex-start; gap: 14px; padding-block: 14px; }
.st-who-text { min-width: 0; }
.st-who-name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.st-who .st-help { overflow-wrap: anywhere; }

/* Connection status */
.st-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.st-status.on { color: var(--text); }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--zinc-200); flex: none; }
.st-status.on .st-dot { background: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-50); }
.st-status.wait .st-dot { background: var(--amber); }
.st-wait { font-size: 13px; color: var(--text-2); }
.st-wait b { color: var(--text); font-family: var(--mono); font-weight: 600; letter-spacing: .04em; }
.st-confirm { display: flex; align-items: center; justify-content: flex-end; gap: 10px 12px; flex-wrap: wrap; }
.st-confirm-q { font-size: 13px; color: var(--text); text-align: right; max-width: 300px; }
.st-confirm-btns { display: flex; gap: 8px; }
.st-danger { background: var(--rose-50); color: var(--rose-700); }
.st-danger:hover { background: light-dark(#ffe4e8, #42131a); }
.st-signout { height: 32px; padding: 0 14px; font-size: 12.5px; }

.st-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 20px 16px; padding: 10px 12px; border-radius: 10px; background: var(--subtle); font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.st-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--text-3); }

/* Switch (role="switch") */
.st-switch { position: relative; width: 42px; height: 26px; flex: none; border-radius: 999px; background: var(--zinc-200); transition: background .18s; }
.st-switch-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform .18s cubic-bezier(.2, .8, .2, 1); }
.st-switch[aria-checked="true"] { background: var(--blue); }
.st-switch[aria-checked="true"] .st-switch-thumb { transform: translateX(16px); }
.st-switch:hover { filter: brightness(0.97); }
.st-switch:focus-visible { outline: 2px solid rgba(0, 113, 227, 0.5); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .st-switch, .st-switch-thumb { transition: none; } }
@media (pointer: coarse) { .st-switch { width: 50px; height: 30px; } .st-switch-thumb { width: 24px; height: 24px; } .st-switch[aria-checked="true"] .st-switch-thumb { transform: translateX(20px); } }

/* Phone: rows whose controls are wide (Curbstomp) stack; simple value rows stay side by side. */
@media (max-width: 640px) {
  .st-card-head { padding: 16px 16px 0; }
  .st-row { padding: 12px 16px; }
  .st-note { margin-inline: 16px; }
  .st-row.st-row-wrap, .st-row:has(.btn-ghost[href]) { flex-direction: column; align-items: stretch; gap: 10px; }
  .st-row-wrap .st-row-control, .st-row:has(.btn-ghost[href]) .st-row-control { justify-content: flex-start; text-align: left; }
  .st-row-wrap .st-confirm { justify-content: flex-start; }
  .st-row-wrap .st-confirm-q { text-align: left; max-width: none; }
}

/* Settings › Studio: the studio icon preview */
/* The icon and its buttons stay on one line; the help text gives way instead of the controls wrapping. */
.st-studio-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.st-row-control:has(.st-studio-icon) { flex: none; flex-wrap: nowrap; }
@media (max-width: 640px) {
  .st-row:has(.st-studio-icon) { flex-direction: column; align-items: stretch; gap: 10px; }
  .st-row-control:has(.st-studio-icon) { justify-content: flex-start; }
}
