/* Simple Modern Cloud kit 26.22 · production additions, loaded after the verbatim
   workspace.css, suite.css and support-access.css. Every rule here is a recorded parity
   exception (kit README, "Parity exceptions"). The two contrast fixes are deferred until
   after visual sign-off (PLAN.md Q23). */

/* Identity footer: Terms and Privacy link the published pages (SG-2), where the mockup has
   placeholder <button>s (suite.js:38). Buttons do not inherit the page's letter-spacing; the
   links take the buttons' spacing so the footer renders as the mockup's. */
.identity-footer a[data-kit-legal]{letter-spacing:normal}

/* First-use blank states (workspace.js emptyDayOne() :114 and delivery-extension.js's "No retained
   events"; the kit's blank() macro). suite.css gives .suite-blank only its padding and dashed outline,
   and every h2 and p has margin:0 (workspace.css), so the title, the line and the action touched.
   They take the rhythm of the mockup's own empty state (.empty in workspace.css): 8px under the
   title, the line at most 420px wide, 20px above the action, everything centred. */
.suite-blank{display:flex;flex-direction:column;align-items:center;gap:8px}
.suite-blank[hidden]{display:none}
.suite-blank>p{max-width:420px}
.suite-blank>p+*{margin-top:12px}

/* Audit F12: keep long forms' heading and actions outside the scrolling body. */
#form-dialog:has(.kit-form-body){padding:0;overflow:hidden}
#form-dialog:has(.kit-form-body)>form{display:flex;flex-direction:column;max-height:85dvh;min-height:0}
#form-dialog:has(.kit-form-body) header{flex:none;padding:24px 24px 18px;margin:0;border-bottom:1px solid var(--line)}
#form-dialog .kit-form-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px;scroll-padding:16px}
#form-dialog:has(.kit-form-body) footer{flex:none;margin:0;padding:16px 24px;border-top:1px solid var(--line);background:var(--bg)}
@media(max-width:760px){#form-dialog:has(.kit-form-body)>form{max-height:90dvh}#form-dialog:has(.kit-form-body) footer .button{min-height:44px}}

/* 26.22.4: native choice inputs must remain beside their labels. The generic
   .suite-form label grid previously overrode .suite-choice's flex layout. */
.suite-form label.suite-choice{display:flex;align-items:flex-start;gap:10px;min-height:0;padding:14px;text-align:left}
.suite-form label.suite-choice input{flex:0 0 auto;width:16px;height:16px;margin:2px 0 0}
.suite-choice-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0;padding:0;margin:0;min-width:0}
.suite-choice-group legend{font-size:12px;font-weight:600;margin-bottom:10px}
.suite-choice-group .suite-choice span{gap:3px}
/* 26.22.6: selections use straight edges across the suite (Brandon's design
   direction, 2026-10-31). Keep native radio controls, marks and action buttons
   independent of this treatment. Underlines must not inherit button curves.
   26.22.51: wizard choice cards (.suite-choice, .setup-choice) keep their card corners like the
   select above and the buttons below them (BD-11, TR-30); list choices stay square. */
.suite-tabs a,.suite-tabs button,.tab,.scope-option,.choice-option,.suite-choice-menu .choice-option,.access-permission,.access-app{border-radius:0}
/* Contextual DevOps management drawer uses the shared dialog lifecycle,
   focus trap, dirty guard, tabs and fixed action footer. */
#form-dialog.form-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(640px,100%);max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0;border-left:1px solid var(--line)}
/* CS-15: the drawer's form is the full-height frame; its header, body and footer carry the inset once. */
#form-dialog.form-drawer>form{height:100%;max-height:100%;display:flex;flex-direction:column;overflow:hidden;padding:0;gap:0}
#form-dialog.form-drawer .kit-form-body{flex:1;min-height:0;overflow:auto;padding-top:0}
.form-drawer .suite-tabs{display:flex;gap:4px;margin:20px 0 24px;border-bottom:1px solid var(--line)}
.form-drawer .suite-tabs button{min-height:44px;flex:1;padding:10px 8px;background:transparent;color:var(--muted);border:0;border-radius:0;border-bottom:2px solid transparent;font:inherit;font-size:13px}
.form-drawer .suite-tabs button[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}
.form-drawer [data-kit-panel][hidden]{display:none}
.form-drawer .setup-subsection{margin-top:0}
.form-drawer [data-kit-panel]>p{margin:8px 0 20px}
.form-drawer .machine-summary{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.form-drawer .machine-summary .status{margin-left:auto}
.form-drawer .machine-summary small{display:block;color:var(--muted);margin-top:3px}
.form-drawer .machine-danger{margin-top:32px;padding-top:20px;border-top:1px solid var(--line)}
.form-drawer .machine-danger p{font-size:12px;margin:8px 0 16px}
@media(max-width:420px){.suite-choice-group{gap:8px}.suite-form label.suite-choice{padding:12px;gap:8px}.form-drawer .suite-tabs button{font-size:12px;padding-inline:4px}}

/* Keep the field and keyboard focus stable while the authorized result region updates. */
[data-live-part][data-search-unavailable]{display:none!important}
[data-live-part][aria-busy=true]{opacity:.58}
[data-live-status]{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
[data-live-status]:not(:empty){margin-block:8px 12px}
.suite-filter form[data-live-search],.toolbar form[data-live-search]:not(.filters){display:flex;align-items:center;gap:8px;min-width:0}
[data-live-search] input[data-live-query]{min-width:0;max-width:100%}
[data-live-search][data-live-ready=true] button[type=submit][data-search-fallback]{display:none}
@media(max-width:680px){.suite-filter form[data-live-search]{flex:1 1 100%}.suite-filter input[data-live-query]{width:100%}}

[data-live-status][data-live-quiet]{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Record details overlay the same viewport as an Admin Center drawer. The page keeps its normal layout. */
.peek-overlay-open > .peek-shade{
 display:block;position:fixed;inset:0;z-index:70;margin:0;border:0;padding:0;
 background:#17202d44;backdrop-filter:blur(5px);touch-action:none
}
.peek-overlay-open > .peek-panel{
 position:fixed;inset:0 0 0 auto;z-index:71;width:min(620px,100%);
 max-width:100vw;height:100dvh;max-height:100dvh;overscroll-behavior:contain
}
@media(prefers-reduced-motion:reduce){.peek-overlay-open > .peek-panel{animation:none}}
