/* The complete Settings route stays bounded; native dialogs and device controls retain their owners. */
body.aurora-hub .sws-host{min-width:0}
body.aurora-hub .sws-root{max-width:1040px;margin:0 auto;min-width:0;color:var(--ink)}
body.aurora-hub .sws-root *{box-sizing:border-box}
body.aurora-hub .sws-head{margin-bottom:18px}
body.aurora-hub .sws-head h1{margin:4px 0 8px}
body.aurora-hub .sws-copy{font-size:14px;line-height:1.55;color:var(--muted);margin:8px 0;overflow-wrap:anywhere}
body.aurora-hub .sws-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 20px;padding:5px;background:var(--cc-soft);border:1px solid var(--border);border-radius:12px}
body.aurora-hub .sws-root button{min-height:44px;padding:10px 14px;border-radius:8px;border:1px solid var(--border);color:var(--ink);background:var(--panel);font-size:14px;white-space:normal;overflow-wrap:anywhere;cursor:pointer;touch-action:manipulation}
body.aurora-hub .sws-root button:disabled{opacity:.55;cursor:default}
body.aurora-hub .sws-root :is(button,input,select):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body.aurora-hub .sws-root .sws-tab{background:transparent;border-color:transparent}
body.aurora-hub .sws-root .sws-tab[aria-selected="true"]{background:var(--panel);border-color:var(--border);font-weight:650;color:var(--accent)}
body.aurora-hub .sws-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
body.aurora-hub .sws-panel[hidden]{display:none!important}
body.aurora-hub .sws-card{min-width:0;padding:20px;border:1px solid var(--border);border-radius:14px;background:var(--panel)}
body.aurora-hub .sws-card h2{font-size:18px;margin:0 0 8px}
body.aurora-hub .sws-card>button{margin:8px 6px 0 0}
body.aurora-hub .sws-panel .sws-card:first-child{grid-column:1/-1}
body.aurora-hub .sws-schemes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
body.aurora-hub .sws-root .sws-scheme{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:7px;padding:12px;min-height:130px}
body.aurora-hub .sws-scheme[aria-pressed="true"]{outline:2px solid var(--accent);outline-offset:1px}
body.aurora-hub .sws-scheme small{font-size:12px;color:var(--muted);line-height:1.4}
body.aurora-hub .sws-swatch{display:block;width:100%;height:38px;border:1px solid #ffffff20;border-radius:6px;background:linear-gradient(125deg,var(--nt-preview-surface),var(--nt-preview-accent))}
body.aurora-hub .sws-choices{padding:0;border:0;margin:16px 0;min-width:0}
body.aurora-hub .sws-label{font-size:14px;font-weight:650;padding:0 0 8px}
body.aurora-hub .sws-choice{display:flex;align-items:center;gap:10px;min-height:52px;padding:9px 0;cursor:pointer}
body.aurora-hub .sws-choice input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--accent)}
body.aurora-hub .sws-choice span{display:grid;gap:3px;min-width:0}
body.aurora-hub .sws-choice small{font-size:12px;color:var(--muted);line-height:1.4}
body.aurora-hub .sws-field{display:grid;gap:8px;margin:16px 0 0;font-size:14px;font-weight:600;min-width:0}
body.aurora-hub .sws-root :is(select,input:not([type="radio"])){width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 12px;font:inherit;font-size:16px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--ink)}
body.aurora-hub .sws-root .sws-primary{margin:16px 0 0;background:var(--accent);color:var(--pw-accent-ink,var(--bg));font-weight:650}
body.aurora-hub .sws-root .sws-link{background:transparent;color:var(--accent)}
body.aurora-hub .sws-service-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
body.aurora-hub .sws-service{display:grid;gap:6px;padding:12px;background:var(--bg);border:1px solid var(--border);border-radius:8px}
body.aurora-hub .sws-service strong{font-size:14px}
body.aurora-hub :is(.sws-saved,.sws-unknown){font-size:12px;color:var(--muted)}
body.aurora-hub .sws-saved{color:var(--accent)}
body.aurora-hub :is(.sws-status,.sws-save-status){font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin:16px 0 0;min-height:20px}
body.aurora-hub .sws-error{color:var(--danger,#ffb3aa)}
body.aurora-hub .sws-account{font-size:16px;overflow-wrap:anywhere}
@media(max-width:650px){body.aurora-hub .sws-head{margin-bottom:14px}body.aurora-hub .sws-tabs{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px;gap:3px;padding:4px}body.aurora-hub .sws-panel{grid-template-columns:minmax(0,1fr);gap:12px}body.aurora-hub .sws-card{padding:16px}body.aurora-hub .sws-schemes{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.aurora-hub .sws-root .sws-scheme{padding:10px;min-height:125px}body.aurora-hub .sws-service-list{grid-template-columns:repeat(2,minmax(0,1fr))}body.aurora-hub .sws-root .sws-tab{font-size:12px;padding:8px 4px}}
@media(prefers-reduced-motion:reduce){body.aurora-hub .sws-root *{scroll-behavior:auto}}

/* The preview is decorative sample content: selecting a palette starts no conversation. */
body.aurora-hub .sws-preview{margin:20px 0 0;padding:18px;border:1px solid var(--border);border-radius:20px;background:linear-gradient(155deg,var(--bg) 45%,var(--pw-soft));overflow:hidden}
body.aurora-hub .sws-preview-heading{display:flex;align-items:center;gap:9px;font-size:14px}
body.aurora-hub .sws-preview-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--accent);color:var(--pw-accent-ink);font-weight:700}
body.aurora-hub .sws-preview-ready{margin-left:auto;font-size:12px;color:var(--muted)}
body.aurora-hub .sws-preview-messages{display:flex;flex-direction:column;gap:9px;margin:18px 0}
body.aurora-hub .sws-preview-messages p{width:fit-content;max-width:90%;margin:0;padding:10px 14px;font-size:14px;line-height:1.5;border-radius:18px}
body.aurora-hub .sws-preview-user{align-self:flex-end;background:var(--nt-bubble);color:var(--nt-bubble-ink)}
body.aurora-hub .sws-preview-assistant{background:var(--panel);color:var(--ink)}
body.aurora-hub .sws-preview-composer{display:flex;align-items:center;gap:12px;min-height:44px;padding:6px 7px 6px 14px;border:1px solid var(--nt-control-border);border-radius:24px;background:var(--panel);color:var(--muted);font-size:13px}
body.aurora-hub .sws-preview-send{display:grid;place-items:center;margin-left:auto;flex:none;width:30px;height:30px;border-radius:50%;background:var(--accent);color:var(--pw-accent-ink);font-size:22px}
body.aurora-hub .sws-preview-caption{font-size:12px;color:var(--muted);margin-top:12px;text-align:center}
body.aurora-hub .sws-root :is(.sws-tab,.sws-scheme,.sws-secondary,.sws-link){transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 160ms cubic-bezier(.2,.8,.2,1)}
body.aurora-hub .sws-root :is(.sws-secondary,.sws-link,.sws-scheme):active{transform:scale(.985)}
@media(hover:hover){body.aurora-hub .sws-root :is(.sws-secondary,.sws-link,.sws-scheme):hover{border-color:var(--accent);background:var(--pw-elevated)}}
:root[data-reduced-motion="true"] body.aurora-hub .sws-root *, :root[data-motion="reduced"] body.aurora-hub .sws-root *{transition:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce){:root:not([data-motion="full"]) body.aurora-hub .sws-root *{transition:none!important;animation:none!important}}

body.aurora-hub .sws-tabs:has(>.sws-tab:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
body.aurora-hub .sws-account-list{display:grid;gap:10px}
body.aurora-hub .sws-account-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--bg)}
body.aurora-hub .sws-account-row strong{overflow-wrap:anywhere}.sws-account-row small{color:var(--muted);margin-right:auto}
body.aurora-hub .sws-account-reset{display:grid;width:100%;gap:8px}.sws-account-form{margin-top:12px}
