/* S1 Command Center: the Manage landing's shell and the access dialog (the landing itself is s1-manage-landing.css). Every selector starts with .s1cc; tokens come from s1-tokens.css.
 * Colour carries meaning only (late / soon / wait). Moving between tools is the landing and the top bar, not this file. */

.s1cc { display: block; width: 100%; box-sizing: border-box; padding: 0; background: var(--s1-canvas); color: var(--s1-ink); font: var(--s1-text-base)/1.45 var(--s1-font-ui); min-height: 100%; }
.s1cc-muted { color: var(--s1-mute); font-size: var(--s1-text-small); }
.s1cc-h2 { margin: 0; font: 700 var(--s1-fs-4)/1.3 var(--s1-font-ui); }
/* Apex panel (guided settings) mounts here; empty, it takes no space. */
.s1cc-agent-slot:empty { display: none; }
.s1t-page > .s1cc-agent-slot:not(:empty) { padding: calc(10px * var(--s1-scale, 1)) var(--gut, calc(22px * var(--s1-scale, 1))) 0; } /* the Guide me row sits on the page grid, not on the left edge */

/* The access dialog's list of people */
.s1cc-list { list-style: none; margin: 0; padding: 0; }
.s1cc-row { display: flex; align-items: center; gap: var(--s1-space-3); padding: calc(10px * var(--s1-scale, 1)) 0; border-top: 1px solid var(--s1-line-soft); }
.s1cc-list > .s1cc-row:first-child { border-top: 0; }
.s1cc-row-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.s1cc-row-title { font-weight: 700; overflow-wrap: anywhere; }
.s1cc-row-meta { color: var(--s1-mute); font-size: var(--s1-text-small); }
.s1cc-row-end { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: var(--s1-space-2); flex: none; }

/* Gate */
.s1cc-gate { max-width: 560px; margin: 40px 0 0; display: grid; gap: var(--s1-space-4); padding: 0 var(--gut, calc(16px * var(--s1-scale, 1))); background: none; border: 0; }
.s1cc-gate p { margin: 0; color: var(--s1-ink-2); }
.s1cc-gate-actions { display: flex; flex-wrap: wrap; gap: var(--s1-space-2); }

/* Access dialog: centered modal on every width above phone. */
.s1cc-dialog { width: min(640px, calc(100vw - 32px)); }
.s1cc-dialog:not([open]) { display: none; }
.s1cc-dialog[open] { animation: s1-pop-in var(--s1-dur-3) var(--s1-ease-emph); }
.s1cc-grant-form { display: grid; gap: var(--s1-space-3); border-top: 1px solid var(--s1-line-soft); padding-top: var(--s1-space-3); }
.s1cc-scope-pick { display: grid; gap: calc(6px * var(--s1-scale, 1)); border: 0; margin: 0; padding: 0; }
.s1cc-scope-pick label { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); }
.s1cc-grant-form .s1-dialog-foot { padding: 0; border: 0; }
@media (max-width: 640px) { .s1cc-dialog { margin: auto 16px 0; width: auto; } }

@media (prefers-reduced-motion: no-preference) {
  .s1cc-page > * { animation: s1-rise-in var(--s1-dur-3) var(--s1-ease-emph) both; }
  .s1cc-page > *:nth-child(2) { animation-delay: 40ms; } .s1cc-page > *:nth-child(3) { animation-delay: 80ms; } .s1cc-page > *:nth-child(4) { animation-delay: 120ms; }
}
