/* Settings, opened from your avatar: a list of tabs on the left, one panel on the right.
   Uses the tokens in site/base.css, the panel from space.css and the drawer from resources.css. */

/* Settings are yours, not a space's: the space's nav (switcher, Artifacts, Resources) and its sky
   header go, and the page gets the detail page's bar, with Back to where you came from. */
body.on-set #nav, body.on-set #sp-head { display: none; } /* by id: the header preview reuses .sp-head */
body.on-set .sp-body { padding-top: 0; }
.set-skeleton .set-l { display: grid; gap: 8px; }
.set-skeleton .set-l > .sk { width: 74%; height: 10px; }
.set-skeleton .set-l > .sk:first-child { width: 40%; height: 12px; }
.set-skeleton .set-c > .sk { width: 65%; height: 34px; }
/* 用量页沿用设置页的行：左侧分组名，右侧读数。易读值在上，服务端精确计量留在旁注。 */
.account-usage-content { min-width: 0; }
.account-usage-status { margin: 0; padding: 14px 24px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); overflow-wrap: anywhere; }
.account-usage-group { border-top: 1px solid var(--line); }
.account-usage-group .set-c { justify-items: stretch; }
.account-usage-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin: 0; }
.usage-metric { display: grid; align-content: start; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.usage-metric :is(dt, dd) { min-width: 0; margin: 0; }
.usage-metric dt { font-size: 13px; font-weight: 550; line-height: 1.4; color: var(--ink-2); }
.usage-value { font-size: 15px; font-weight: 620; line-height: 1.45; font-variant-numeric: tabular-nums; }
.usage-note { font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
/* 额度：标题字排已用量，上限跟在后面，填充条沿用站点的 .meter。 */
.usage-limit .usage-value { margin-top: 2px; font: 550 23px/1.25 var(--head); letter-spacing: -.03em; }
.usage-limit .usage-value span { font-weight: 450; color: var(--ink-muted); }
.usage-limit .usage-meter { margin: 9px 0 7px; }
.usage-limit[data-level="full"] .usage-meter i { background: var(--need); }
.usage-limit[data-level="full"] .usage-note { color: var(--warning-text); }
.set-inline-skeleton { width: 10rem; max-width: 100%; height: 12px; }
/* Some tabs are longer than the window and some aren't: always keep the scrollbar, so switching
   tabs doesn't shift the page sideways. (scrollbar-gutter: stable isn't honoured on the root
   everywhere; overflow-y: scroll is. With overlay scrollbars, as on a Mac trackpad, nothing shows.) */
html:has(body.on-set:not(.signed-out)) { overflow-y: scroll; }
.set-bar { grid-template-columns: auto minmax(0, 1fr); margin-bottom: 28px; }
.set-bar .ad-meta { display: block; overflow: hidden; text-overflow: ellipsis; }
/* signed out on Settings: the sign-in page's nav comes back, as on an artifact's address */
body.on-set.signed-out #nav { display: block; }

/* your avatar in the nav is the way in */
.nav-av { transition: background .15s, box-shadow .15s; }
.nav-av:hover { background: rgba(255, 255, 255, .14); }
.nav[data-tone="light"] .nav-av:hover { background: var(--surface-3); }
/* a face with a photo */
.av.account-avatar-default { --c: var(--blue); }
.av.img { background-size: cover; background-position: center; }
.av.img > img, .sw > img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.sw[data-icon-preset="Dawn"] { --g: linear-gradient(160deg, #0d1a55 10%, #1f5fe5 45%, #ec8eaa 72%, #f6a53c); }
.sw[data-icon-preset="Noon"] { --g: linear-gradient(160deg, #5f86ee 10%, #a3baf5 55%, #f7f9fd); }
.sw[data-icon-preset="Dusk"] { --g: linear-gradient(160deg, #3b2a86 10%, #e0587f 55%, #f8ab3e); }
.sw[data-icon-preset="Night"] { --g: linear-gradient(160deg, #060b29 10%, #16308f 60%, #5f86ee); }
.sw[data-icon-preset="Morning"] { --g: linear-gradient(160deg, #a9bdf0 10%, #dae1f5 55%, #f6e4e0); }
.sw[data-icon-preset="Gold"] { --g: linear-gradient(160deg, #ddb3b8 10%, #f5d1b1 55%, #fcefd9); }
.sw[data-icon-preset="Coral"] { --g: linear-gradient(160deg, #fb655a 10%, #f8ab3e 65%, #f5d36e); }
.sw[data-icon-preset="Sea"] { --g: linear-gradient(160deg, #0d3b66 10%, #1695a8 55%, #9fe0d6); }
.sw[data-icon-preset="Meadow"] { --g: linear-gradient(160deg, #1f5a43 10%, #2f9e5b 55%, #d9f0a3); }
.sw[data-icon-preset="Plum"] { --g: linear-gradient(160deg, #2a1650 10%, #7a6ad8 55%, #f0b8e0); }

.set { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }

/* ------------------------------------------------------------ tabs */
.set-nav { position: sticky; top: 88px; display: grid; gap: 12px; } /* under the 64px bar */
.set-nav ul { display: grid; gap: 2px; }
.set-tab { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 12px; text-align: left; color: var(--ink-2); transition: background .15s, color .15s, box-shadow .15s; }
.set-tab:hover { background: var(--surface-2); color: var(--ink); }
.set-tab[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -20px rgba(12, 20, 64, .45); }
.set-tab > span:last-child { display: grid; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.set-tab small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 450; color: var(--ink-3); }
/* 每个设置页签使用固定的 26px 图标。 */
.set-tab .sw { width: 26px; height: 26px; }
.set-ico { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); color: var(--ink-2); rotate: -7deg; }
.set-ico .ic { width: 15px; height: 15px; rotate: 7deg; }

/* the Space tab's space: a button at the panel's top right, and the menu it opens */
.set-spbtn { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 100%; height: 50px; padding: 0 10px 0 12px; border-radius: 12px; text-align: left; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .15s; }
.set-spbtn:hover, .set-spbtn[aria-expanded="true"] { background: var(--surface-2); }
.set-spbtn .set-n { flex: 1; }
.set-spbtn > .ic { width: 15px; height: 15px; color: var(--ink-3); transition: transform .25s var(--ease); }
.set-spbtn[aria-expanded="true"] > .ic { transform: rotate(180deg); }
.artifact-menu.set-space-menu { width: 260px; }
.set-menu-l { padding: 6px 11px 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.set-space-menu button { display: flex; align-items: center; gap: 10px; min-height: 50px; }
.set-space-menu .set-n { flex: 1; }
.set-space-menu .ic { width: 15px; height: 15px; color: var(--ink-2); visibility: hidden; }
.set-space-menu [aria-current="true"] { background: var(--surface-3); }
.set-space-menu [aria-current="true"] .ic { visibility: visible; }

/* ------------------------------------------------------------ panel */
.set-panel { min-width: 0; }
.set-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 22px 24px 18px; }
.set-h > div { flex: 1 1 320px; min-width: 0; }
.set-t { font: 550 23px/1.2 var(--head); letter-spacing: -.03em; }
.set-h p { display: flex; align-items: flex-start; gap: 7px; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.set-h p .ic { width: 14px; height: 14px; margin-top: 3px; color: var(--ink-3); }

/* one setting per row: what it is on the left, the control on the right */
.set-sec { border-top: 1px solid var(--line); }
.set-row { display: grid; grid-template-columns: minmax(170px, 250px) minmax(0, 1fr); gap: 12px 32px; padding: 20px 24px; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-l h3 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.set-l p { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); text-wrap: pretty; }
.set-c { display: grid; align-content: start; justify-items: start; gap: 14px; min-width: 0; }
.set-hint { font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); overflow-wrap: anywhere; }
.set-ro { padding-top: 7px; font-size: 14px; overflow-wrap: anywhere; }
.set-account-id { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.set-account-id .set-ro { min-width: 0; padding-top: 0; }
.set-btns { display: flex; flex-wrap: wrap; gap: 8px; }
[data-live-models] { display: grid; gap: 14px; padding: 20px 24px; }
[data-live-models][aria-busy="true"] { padding: 0; }
.live-agent-setting-head, .live-agent-setting-actions, .live-agent-setting-spaces li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.live-agent-setting-head, .live-agent-setting-spaces li { justify-content: space-between; }
.live-agent-setting-head p, .live-agent-advanced p { color: var(--ink-muted); font-size: 13px; }
.live-agent-setting-list { display: grid; gap: 12px; list-style: none; }
.live-agent-setting-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.live-agent-setting-summary { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 14px; }
.live-agent-setting-summary .rs-t b, .live-agent-setting-spaces span:first-child { overflow-wrap: anywhere; }
.live-agent-setting-spaces { display: grid; list-style: none; padding-inline: 14px; }
.live-agent-setting-spaces li { border-top: 1px solid var(--line); padding-block: 9px; }
.live-agent-setting-actions { padding: 10px 14px; background: var(--surface-2); }
.live-agent-advanced { border-top: 1px solid var(--line); padding-top: 12px; }
.live-agent-advanced summary { cursor: pointer; }
.live-agent-advanced form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 8px; margin-top: 10px; align-items: end; }
.live-agent-advanced label { display: grid; min-width: 0; gap: 5px; font-size: 13px; }
.live-agent-advanced input { width: 100%; min-width: 0; min-height: 38px; padding: 0 12px; border-radius: var(--r-ctl); background: var(--surface-2); }
[data-live-members] { padding: 20px 24px; }
[data-live-members] ul { list-style: none; display: grid; gap: 10px; margin: 12px 0; padding: 0; }
[data-live-members] li, [data-member-role], [data-member-invite] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
[data-live-members] li b, [data-member-feedback], .member-operation-account { min-width: 0; overflow-wrap: anywhere; }
[data-live-members] li p { flex-basis: 100%; }
.member-av { --s: 26px; font-size: 12px; flex-shrink: 0; }
.member-av.is-deleted { opacity: .6; }
.member-selected-chips, .member-candidate-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.member-candidate-list { margin-top: 8px; }
.member-directory-note, .member-candidate-status { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
/* the delete rows: red title, so it reads as the end of the page */
.set-danger .set-l h3 { color: var(--error-text); }
.a-btn.ghost.danger:hover { background: var(--error-surface); color: var(--error-text); }
.a-btn.ghost.danger.is-sure { background: var(--error-text); box-shadow: none; color: #fff; }

/* a name, with its own Save */
.set-field { display: flex; gap: 8px; width: min(440px, 100%); }
.set-field input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 0; border-radius: var(--r-ctl); background: var(--surface-2); font-size: 14px; }
.set-field input:disabled { color: var(--ink-2); cursor: not-allowed; }
.set-field .a-btn { height: 38px; }

/* your photo, or a space's icon: the big one on the left, its buttons and a note beside it */
.set-photo, .set-icon { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 16px; }
.set-photo > :first-child, .set-icon > :first-child { grid-row: span 2; }
.set-photo-error { grid-column: 2; }
.set-photo-error p { margin: 0 0 6px; color: var(--ink-2); }
.av.set-av { --s: 64px; font-size: 24px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.sw.set-sw-lg { width: 60px; height: 60px; margin: 2px; border-radius: 17px; }
.set-pres { display: flex; flex-wrap: wrap; gap: 6px; }
.set-pre { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; transition: background .15s, box-shadow .15s; }
.set-pre:hover { background: var(--surface-2); }
.set-pre:has(:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.set-pre:has(:focus-visible) { outline: 2px solid var(--focus-color); outline-offset: 2px; }
.set-pre .sw { width: 28px; height: 28px; border-radius: 8px; }

/* the header: the Artifacts page's header at the window's width, scaled down to the panel by
   space.js (fitCovers), so it shows exactly what members will see. Then the skies to pick from. */
.set-cover { position: relative; width: 100%; height: 200px; overflow: hidden; border-radius: 14px; background: var(--paper); }
/* the edge goes over the scaled header, so it shows on every side */
:is(.set-cover, .set-hd-sky)::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.set-cover-in, .set-hd-in { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.set-cover-in .nav { position: absolute; }
.set-cover-q { flex: 1; font-size: 15.5px; color: var(--ink-3); }
.set-btns .set-hint { align-self: center; }
.set-hds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.set-hd { display: grid; gap: 5px; padding: 4px; border-radius: 12px; cursor: pointer; transition: background .15s, box-shadow .15s; }
.set-hd:hover { background: var(--surface-2); }
.set-hd:has(:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.set-hd:has(:focus-visible) { outline: 2px solid var(--focus-color); outline-offset: 2px; }
.set-hd-sky { position: relative; display: block; height: 64px; overflow: hidden; border-radius: 8px; background: var(--paper); }
.set-hd-n { padding-left: 2px; font-size: 12px; font-weight: 560; color: var(--ink-2); }
/* until the skies are drawn: the header fallbacks below, and these for the ones only Settings offers */
.dz[data-scene="h-morning"] { background: linear-gradient(180deg, #a9bdf0, #dae1f5 55%, var(--paper)); }
.dz[data-scene="h-gold"] { background: linear-gradient(180deg, #ddb3b8, #f5d1b1 58%, var(--paper)); }
.dz[data-scene="h-night"] { background: linear-gradient(180deg, #050a1f, #101f4e 45%, #3b5cb4 75%, var(--paper)); }
/* a header photo on the Artifacts page: the photo in place of the sky, fading into the paper like it */
.sp-head.has-cover > .dz { display: none; }
.sp-head > .space-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 140px), transparent); mask-image: linear-gradient(#000 calc(100% - 140px), transparent); }
.sp-head.has-cover::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--cover) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 140px), transparent); mask-image: linear-gradient(#000 calc(100% - 140px), transparent); }
.sp-head.has-cover[data-tone="dark"]::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(6, 11, 41, .45), rgba(6, 11, 41, .08) 70%);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 140px), transparent); mask-image: linear-gradient(#000 calc(100% - 140px), transparent); }

/* ------------------------------------------------------------ resources: your connectors */
.set-cns { display: grid; gap: 12px; padding: 0 24px; }
.set-cn { overflow: hidden; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
[data-live-connectors] .set-cns { list-style: none; padding-bottom: 20px; }
[data-live-connectors] .set-cn { align-items: center; border-top: 0; }
[data-live-connectors] .set-cn .set-l { display: grid; justify-items: start; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
[data-live-connectors] .set-foot { display: grid; justify-items: start; gap: 8px; }
@media (min-width: 721px) {
  [data-live-connectors] .set-cn { grid-template-columns: minmax(0, 1fr) auto; }
  [data-live-connectors] .set-cn .set-btns { justify-content: flex-end; }
}
.set-cn.fresh { animation: rs-fresh 1.6s var(--ease); }
.set-cn-h { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; }
.set-cn-b { padding: 2px 16px 12px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 45%, white); }
.set-cn-b h4 { padding: 10px 0 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.set-cn-b h4 span { margin-left: 4px; font-weight: 500; }
.set-sps li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; }
.set-sps li + li { border-top: 1px solid var(--line); }
.set-sps .sw { width: 22px; height: 22px; border-radius: 6px; }
.set-n { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.set-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.set-n small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ink-3); }
.set-none { display: flex; align-items: center; gap: 8px; padding: 10px 0 4px; font-size: 13px; color: var(--need); }
.set-none .ic { width: 15px; height: 15px; }
.set-away { padding: 8px 0 2px; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.set-add { display: inline-flex; align-items: center; gap: 6px; height: 30px; margin: 6px 0 0 -8px; padding: 0 10px 0 8px; border-radius: 8px; font-size: 13px; font-weight: 560; color: var(--ink-2); transition: background .15s, color .15s; }
.set-add:hover, .set-add[aria-expanded="true"] { background: var(--surface-3); color: var(--ink); }
.set-add .ic { width: 14px; height: 14px; }
.set-foot { padding: 16px 24px 22px; font-size: 12.5px; color: var(--ink-3); }

/* the menu under "Add to a space": each space with its icon */
.artifact-menu.set-sp-menu { width: 220px; }
.set-sp-menu button { display: flex; align-items: center; gap: 10px; }
.set-sp-menu .sw { width: 18px; height: 18px; border-radius: 5px; }

/* ------------------------------------------------------------ add a connector (the side drawer) */
.set-dw-q { padding: 14px 22px 0; }
.set-dw-q .rs-search { width: 100%; margin: 0; }
.set-pick li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; }
.set-pick li + li { border-top: 1px solid var(--line); }
.set-pick li:first-child { margin-top: -8px; }
.set-pick-none { display: block !important; padding: 10px 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.set-fs { display: grid; gap: 2px; margin: 0; padding: 0; border: 0; }
.set-fs legend { padding: 0; font-size: 14px; font-weight: 600; }
.set-fs > p { margin: 3px 0 10px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.set-sp { display: grid; grid-template-columns: auto 24px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 54px; margin: 0 -10px; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.set-sp:hover { background: var(--surface-2); }
.set-sp .ad-check { margin: 0; }
.set-sp .sw { width: 22px; height: 22px; border-radius: 6px; }
.set-dw-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.set-dw-note .ic { width: 14px; height: 14px; margin-top: 1px; }
.set-dw-f { gap: 8px; }
.set-dw-f .a-btn.ghost { flex: none; }

/* ------------------------------------------------------------ new space (a dialog) */
/* The header preview is a copy of .sp-head; Resources hides .sp-head by class, so show it here. */
body .set-cover > .sp-head.set-cover-in { display: block; }
.ns { width: min(720px, 100% - 32px); max-height: min(860px, 100% - 32px); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 30px 70px -20px rgba(6, 11, 41, .5); overflow: hidden; }
.ns[open] { display: flex; animation: grow .2s var(--ease); }
.ns::backdrop { background: rgba(6, 11, 41, .32); }
.ns-f { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.ns-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 20px 16px 14px 24px; }
.ns-h h2 { font: 550 22px/1.2 var(--head); letter-spacing: -.03em; }
.ns-h p { margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }
.ns-b { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 6px; }
.ns-rows { min-width: 0; margin: 0; padding: 0; border: 0; }
/* one setting per block: what it is, then the control under it (the dialog is narrower than the tab) */
.ns-rows .set-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 0; }
.ns-rows .set-row:first-child { padding-top: 20px; }
.ns-rows .set-row + .set-row { border-top: 1px solid var(--line); }
.ns-rows .set-l { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.ns-rows .set-l p { margin: 0; }
.ns-rows .set-field { width: 100%; }
.ns-a { display: flex; align-items: center; gap: 8px; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.ns-msg { flex: 1; min-width: 0; font-size: 13px; color: var(--error-text); overflow-wrap: anywhere; }
.ns-msg p { margin: 0; }
.ns-a .a-btn { height: 38px; }
.ns-a .a-btn .spin { --spin-size: 13px; }
.ns-b::-webkit-scrollbar { width: 10px; }
.ns-b::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 99px; background: rgba(12, 17, 48, .2) padding-box; }
/* creating: the settings fold away under the preview, the steps tick off, nothing can be left */
.ns.is-busy [data-ns="close"] { visibility: hidden; }
.ns-wait { padding: 22px 0 14px; }
.ns-steps { display: grid; gap: 12px; }
.ns-steps li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--ink-muted); transition: color .2s; }
.ns-steps li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.ns-steps li.now { color: var(--ink); font-weight: 560; }
.ns-steps li.now::before { --spin-size: 18px; box-shadow: none; }
.ns-steps li.done { color: var(--ink-2); }
.ns-steps li.done::before { box-shadow: none; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 560px) {
  .ns { width: 100%; max-width: none; max-height: 100%; height: 100%; border-radius: 0; }
  .ns-h, .ns-a { padding-inline: 16px; }
  .ns-b { padding-inline: 16px; }
  .ns-a { flex-wrap: wrap; }
  .ns-msg:not(:empty) { flex-basis: 100%; }
  .ns-a .a-btn { min-height: var(--touch-target); }
}

/* ------------------------------------------------------------ confirm */
.set-dlg-c { display: grid; gap: 7px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.set-dlg-c b { font-weight: 650; color: var(--ink); }
.set-dlg-c input { min-width: 0; height: 38px; padding: 0 12px; border: 0; border-radius: var(--r-ctl); background: var(--surface-2); font-size: 14px; }
#set-dlg-impact { padding-inline-start: 20px; color: var(--ink-2); overflow-wrap: anywhere; }
#set-dlg-impact li + li { margin-top: 6px; }

/* ------------------------------------------------------------ narrower screens */
@media (max-width: 900px) {
  .set { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .set-nav { position: static; }
  .set-bar { margin-bottom: 16px; }
  .set-spbtn { width: 100%; }
  .set-nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .set-nav-live ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .set-tab { justify-content: center; gap: 8px; min-height: var(--touch-target); padding: 6px 8px; text-align: center; overflow-wrap: anywhere; }
  .set-tab > span:last-child { font-size: 13.5px; }
  .set-tab small { display: none; }
}
@media (max-width: 560px) {
  .set-hds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-nav-live ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-usage-metrics { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 440px) {
  /* a linked space: its name gets the row, Disconnect goes under it */
  .set-sps li { grid-template-columns: 22px minmax(0, 1fr); row-gap: 6px; }
  .set-sps li > .a-btn { grid-column: 2; justify-self: start; }
  .set-tab > :first-child { display: none; } /* three names fit across, without their marks */
}
@media (max-width: 720px) {
  .set-h, .set-row, .account-usage-status { padding-inline: 16px; }
  .set-row { grid-template-columns: minmax(0, 1fr); }
  .set-cns { padding-inline: 16px; }
  .set-foot { padding-inline: 16px; }
  .set-cn-h { grid-template-columns: 44px minmax(0, 1fr); }
  .set-cn-h > .a-btn { grid-column: 1 / -1; justify-self: start; }
  .set-field > :is(input, .a-btn), .set-btns .a-btn, .set-dlg-c input { min-height: var(--touch-target); }
  [data-live-connectors] .a-btn { min-height: var(--touch-target); }
}
