/* Command Center tool framework (header eyebrow, placeholder). Tool files add their own CSS scoped under .s1t-<id>. */
.s1t-page { gap: calc(16px * var(--s1-scale, 1)); }
/* A Manage page is the mock-up's page: its head and sections run edge to edge, and the mock-up's narrow-width rules (@container f) read this page's width. */
.mxp { container: f / inline-size; }
/* The mock-up sets its page gutter on its .main (16px when the page is narrow); here the page is the container, so its children carry it. On a phone the page runs edge to edge: it takes back the padding the shell gives Manage. */
@container f (max-width: 600px) { .s1t-page > * { --gut: 16px; } }
@media (max-width: 640px) { .s1t > .mxp { margin: -12px -16px 0; } }
.s1t-body { display: block; min-width: 0; }
.s1t-body:not(.s1t-mock) { padding: calc(16px * var(--s1-scale, 1)) var(--gut, calc(28px * var(--s1-scale, 1))) calc(24px * var(--s1-scale, 1)); } /* the same page gutter as the head above it */
.s1t-soon { display: flex; align-items: center; gap: calc(14px * var(--s1-scale, 1)); flex-wrap: wrap; padding: calc(18px * var(--s1-scale, 1)) calc(20px * var(--s1-scale, 1)); background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: var(--s1-radius-panel); }
.s1t-soon > div { flex: 1 1 260px; min-width: 0; }
.s1t-soon p { margin: 2px 0 0; color: var(--s1-mute); font-size: var(--s1-text-small); }
.s1t-soon-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--s1-column); flex: none; }



/* A callout with an action button wraps on a phone: the text keeps its width and the button drops under it instead of being cut off. */
@media (max-width: 640px) { .s1t-page .k-callout { flex-wrap: wrap; } .s1t-page .k-callout > .k-grow { flex: 1 1 200px; min-width: 0; } }
/* The waiting line under a request wraps on a phone instead of running past the edge. */
@media (max-width: 640px) { .s1t-page .lenr > i { white-space: normal; flex-wrap: wrap; } }

.s1t-err { padding-inline: var(--gut, calc(16px * var(--s1-scale, 1))); }
/* The wait line under a request: the bar never takes more than half the row, and the words wrap instead of running out of it. */
.s1t-page .lenr > i { white-space: normal; flex-wrap: nowrap; align-items: baseline; }
.s1t-page .lenr > i::before { flex: 0 0 calc(var(--d) * 1%); max-width: 45%; min-width: 24px; align-self: center; }

/* Deleted items: one line per record, the title takes the width, a small button sits at the right. */
.s1t-page .s1t-tr-row { display: flex; align-items: center; justify-content: space-between; gap: calc(12px * var(--s1-scale, 1)); padding: calc(8px * var(--s1-scale, 1)) 0; border-top: 1px solid var(--line-soft, var(--s1-line-soft)); font-size: var(--s1-fs-2); }
.s1t-page .s1t-tr-row:first-child { border-top: 0; }
.s1t-page .s1t-tr-row > span { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.s1t-page .s1t-tr-row small { display: block; color: var(--mute, var(--s1-mute)); font-size: var(--s1-fs-1); }
.s1t-page .s1t-tr-row > .btn { flex: none; width: auto; }
.s1t-page .s1t-tr-find { max-width: 360px; margin: 8px 0 6px; }

/* The Manage form (.mf): one aligned list of rows, the name and one line of help on the left, the control in a fixed column on the right, so every control starts at the same x.
 * A section is a small heading over its rows. Settings, Connected AI apps and Connections draw their rows this way. */
.s1t-page .mf { max-width: 920px; }
.s1t-page .mf-sec { padding: calc(14px * var(--s1-scale, 1)) 0 calc(6px * var(--s1-scale, 1)); }
.s1t-page .mf-sec + .mf-sec { border-top: 1px solid var(--line-soft); }
.s1t-page .mf-h { display: flex; align-items: baseline; gap: calc(8px * var(--s1-scale, 1)); margin: 0 0 calc(4px * var(--s1-scale, 1)); font: 700 var(--s1-fs-4)/1.3 var(--display, var(--ui)); }
.s1t-page .mf-h small { font: 500 var(--s1-fs-1) var(--ui); color: var(--mute); }
.s1t-page .mf-row { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: calc(20px * var(--s1-scale, 1)); align-items: center; min-height: 38px; padding: calc(7px * var(--s1-scale, 1)) 0; border-top: 1px solid var(--line-soft); }
.s1t-page .mf-h + .mf-row, .s1t-page .mf-h + .mf-rows > .mf-row:first-child, .s1t-page .mf-sec--first > .mf-row:first-child { border-top: 0; }
.s1t-page .mf-row[hidden] { display: none; }
.s1t-page .mf-row > span:first-child { min-width: 0; }
.s1t-page .mf-row b { display: block; font: 600 var(--s1-fs-3)/1.35 var(--ui); }
.s1t-page .mf-row small { display: block; color: var(--mute); font: var(--s1-fs-1)/1.4 var(--ui); }
.s1t-page .mf-row small a, .s1t-page .mf-note a { cursor: pointer; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.s1t-page .mf-row small a:hover { color: var(--ink); }
.s1t-page .mf-row .mf-chg { color: var(--wait); }
.s1t-page .mf-c { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); min-width: 0; }
.s1t-page .mf-c .dd, .s1t-page .mf-c .ddb, .s1t-page .mf-c .field { width: 100%; min-width: 0; height: 32px; box-sizing: border-box; }
.s1t-page .mf-c .btn { height: 30px; }
.s1t-page .mf-c .lock { display: inline-flex; gap: 6px; align-items: center; font: 600 var(--s1-fs-1) var(--ui); color: var(--mute); }
.s1t-page .mf-c .lock .ic { width: 13px; height: 13px; }
.s1t-page .mf-tag { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; background: var(--well, var(--s1-column)); color: var(--mute); font: 600 11px/17px var(--ui); vertical-align: 1px; }
.s1t-page .mf-note { margin: calc(4px * var(--s1-scale, 1)) 0 0; color: var(--mute); font: var(--s1-fs-1)/1.45 var(--ui); max-width: 70ch; }
.s1t-page .mf-list { list-style: none; margin: 0; padding: 0; }
.s1t-page .mf-list li { display: flex; justify-content: space-between; gap: 12px; padding: calc(6px * var(--s1-scale, 1)) 0; border-top: 1px solid var(--line-soft); font-size: var(--s1-fs-2); }
.s1t-page .mf-list li:first-child { border-top: 0; }
.s1t-page .mf-list li small { color: var(--mute); white-space: nowrap; }
@media (max-width: 640px) {
  .s1t-page .mf-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .s1t-page .mf-c .dd { height: auto; } /* the phone's taller menu button must not spill over the next row's line */
  .s1t-page .mf-c:has(.tog) { position: absolute; right: 0; top: 9px; }
  .s1t-page .mf-row:has(.tog) { position: relative; padding-right: 48px; }
}

/* Merged pages (RWTCCTools.compose): the Show chips over one section, or one row per section that opens in place. A section's own line and buttons sit in a bar above it. */
.s1t-page .cmp-chips { display: flex; flex-wrap: wrap; gap: calc(6px * var(--s1-scale, 1)); padding: 0 0 calc(10px * var(--s1-scale, 1)); }
.s1t-page .cmp-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 calc(12px * var(--s1-scale, 1)); border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--ink-2); font: 600 var(--s1-fs-1) var(--ui); text-decoration: none; cursor: pointer; }
.s1t-page .cmp-chip:hover { border-color: var(--mute); color: var(--ink); }
.s1t-page .cmp-chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.s1t-page .cmp-part + .cmp-part { margin-top: calc(24px * var(--s1-scale, 1)); padding-top: calc(16px * var(--s1-scale, 1)); border-top: 1px solid var(--line-soft); }
.s1t-page .cmp-h { margin: 0 0 calc(8px * var(--s1-scale, 1)); font: 700 var(--s1-fs-4)/1.3 var(--display, var(--ui)); }
.s1t-page .cmp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: calc(8px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); margin: 0 0 calc(10px * var(--s1-scale, 1)); }
.s1t-page .cmp-bar[hidden] { display: none; }
.s1t-page .cmp-sub { margin: 0; color: var(--mute); font: var(--s1-fs-2)/1.45 var(--ui); max-width: 70ch; }
.s1t-page .cmp-acts { display: flex; flex-wrap: wrap; gap: calc(8px * var(--s1-scale, 1)); align-items: center; }
.s1t-page .cmp-fold { max-width: 920px; border-top: 1px solid var(--line-soft); }
.s1t-page .cmp-fold:last-of-type { border-bottom: 1px solid var(--line-soft); }
.s1t-page .cmp-fold > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(4px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); padding: calc(12px * var(--s1-scale, 1)) 0; cursor: pointer; list-style: none; }
.s1t-page .cmp-fold > summary::-webkit-details-marker { display: none; }
.s1t-page .cmp-fold > summary::before { content: ''; flex: none; align-self: center; width: 7px; height: 7px; margin-right: 2px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(-45deg); }
.s1t-page .cmp-fold[open] > summary::before { transform: rotate(45deg); }
.s1t-page .cmp-fold-t { font: 700 var(--s1-fs-4)/1.3 var(--display, var(--ui)); }
.s1t-page .cmp-fold-s { color: var(--mute); font: var(--s1-fs-1)/1.4 var(--ui); }
.s1t-page .cmp-fold-b { padding: 0 0 calc(18px * var(--s1-scale, 1)) calc(19px * var(--s1-scale, 1)); }
@media (max-width: 640px) { .s1t-page .cmp-fold-b { padding-left: 0; } }
/* A merged page runs edge to edge like the mock-up; its chips and each section that is not itself a mock-up page take the page gutter. */
.s1t-page .cmp-chips, .s1t-page .cmp-bar, .s1t-page .cmp-fold, .s1t-page .cmp-h { padding-inline: var(--gut, calc(28px * var(--s1-scale, 1))); }
.s1t-page .cmp-fold { max-width: none; margin-inline: var(--gut, calc(28px * var(--s1-scale, 1))); padding-inline: 0; }
.s1t-page .cmp-host:not(.s1t-mock) { padding-inline: var(--gut, calc(28px * var(--s1-scale, 1))); }
.s1t-page .cmp-fold .cmp-host:not(.s1t-mock) { padding-inline: 0; }
.s1t-page .cmp-fold .cmp-bar { padding-inline: 0; }
.s1t-page .cmp-chips { padding-top: calc(4px * var(--s1-scale, 1)); }
.s1t-page [data-ws-embed] .cmp-host:not(.s1t-mock), .s1t-page [data-s1t-emails] .cmp-host:not(.s1t-mock) { padding-inline: 0; }
.s1t-page .cmp-plain { padding-bottom: calc(14px * var(--s1-scale, 1)); }
