/*
 * Element defaults and the small set of utility classes (.eyebrow, .section, .pill,
 * .details, .actions, .empty, .panel, .table-scroll, .compact and the .primary /
 * .secondary / .quiet / .danger variants) that CRM, Field and Events markup still
 * relies on. Loaded first, so the shared UI (platform-ui.css) and shell (shell.css)
 * refine it. Colours come only from platform tokens.
 */
:root {
  /* Colours and fonts come from src/ui/platform-tokens.css. */
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input {
  min-height: 44px;
}

button {
  cursor: pointer;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--platform-highlight);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--platform-surface);
  color: var(--platform-text);
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  display: block;
}

.eyebrow {
  margin-bottom: 0.35rem;
  color: var(--platform-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0.65rem;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* Parked-app legacy (Field/Events), remove in their rebuild: class-based button variants for
   their <button>, <a> and <label> "buttons". The CRM uses Button variants (lint-enforced). */
.primary,
.secondary,
.quiet,
.danger {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.primary {
  border: 1px solid var(--platform-header);
  color: var(--platform-header-text);
  background: var(--platform-header);
}

.secondary {
  border: 1px solid var(--platform-border-strong);
  color: var(--platform-text);
  background: var(--platform-surface);
}

.quiet {
  border: 0;
  color: var(--platform-accent);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.danger {
  border: 1px solid var(--platform-danger);
  color: var(--platform-danger);
  background: var(--platform-error-surface);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.section {
  margin: 2.5rem 0;
}

.pill {
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--platform-border);
  border-radius: 999px;
  color: var(--platform-text-muted);
  background: var(--platform-surface-subtle);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.details {
  display: flex;
  gap: 1.5rem;
  margin: 1.2rem 0;
}

.details dt {
  color: var(--platform-text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.details dd {
  margin: 0.2rem 0 0;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.empty {
  padding: 4rem 1rem;
  border: 1px dashed var(--platform-border);
  border-radius: 12px;
  background: var(--platform-surface);
  text-align: center;
}

.empty > span {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

.empty p {
  color: var(--platform-text-muted);
}

.panel {
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid var(--platform-border);
  border-radius: 12px;
  background: var(--platform-surface);
}

.table-scroll {
  overflow-x: auto;
}

th,
td {
  border-bottom: 1px solid var(--platform-border);
  text-align: left;
  white-space: nowrap;
}

th {
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--platform-highlight);
  outline-offset: 2px;
}

summary {
  border-radius: 6px;
}

@media (max-width: 780px) {

  details > summary {
    scroll-margin-top: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.compact {
  min-height: 40px;
  padding: 0.45rem 0.65rem;
}

.app-shell[data-palette] :where(h1, h2, h3, h4) {
  color: var(--platform-text);
  font-family: inherit;
}

.app-shell[data-palette] :where(p, small) {
  color: var(--platform-text-muted);
}

.app-shell[data-palette] :where(button, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: var(--platform-border-strong);
  color: var(--platform-text);
  background-color: var(--platform-surface);
}

.app-shell[data-palette] :where(button, input, select, textarea, summary, a):focus-visible {
  outline-color: var(--platform-highlight);
}

/* Parked-app legacy (Field/Events), remove in their rebuild. */
.app-shell[data-palette] :where(.primary, .primary-action) {
  border-color: var(--platform-accent);
  color: var(--platform-accent-ink);
  background: var(--platform-accent);
}

.app-shell[data-palette] :where(.secondary, .secondary-action, .quiet) {
  border-color: var(--platform-border-strong);
  color: var(--platform-text);
  background: var(--platform-surface);
}

/* A notice is often a <p>: this rule must match the muted paragraph rule above in specificity,
   or notices turn muted (tests/e2e/platform-notice-colour.spec.ts). */
.app-shell[data-palette] :where(.notice, .workspace-tools > button) {
  border-color: var(--platform-border);
  color: var(--platform-text);
  background: var(--platform-surface-subtle);
  box-shadow: var(--platform-shadow-card);
}

@media (prefers-reduced-motion: reduce) {
  .app-shell[data-palette] *,
  .app-shell[data-palette] *::before,
  .app-shell[data-palette] *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.field-auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; color: var(--platform-text); background: var(--platform-canvas); font-family: var(--platform-font); }
.field-auth-card { width: min(100%, 24rem); padding: 32px; border: 1px solid var(--platform-border); border-radius: var(--platform-radius-panel); background: var(--platform-surface); box-shadow: var(--platform-shadow-raised); }
.field-auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-weight: 600; }
.field-auth-brand > span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--platform-radius-control); color: var(--platform-accent-ink); background: var(--platform-accent); font-weight: 600; }
.field-auth-eyebrow { margin: 0 0 6px; color: var(--platform-text-faint); font-size: 12.5px; font-weight: 500; }
.field-auth-card h1 { margin: 0 0 8px; font-size: 22px; font-weight: 600; line-height: 1.25; }
.field-auth-card p { color: var(--platform-text-muted); }
.field-auth-form { display: grid; gap: 14px; margin-top: 20px; }
.field-auth-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.field-auth-form input { min-height: 40px; padding: 0 12px; border: 1px solid var(--platform-border-strong); border-radius: var(--platform-radius-control); background: var(--platform-canvas); color: var(--platform-text); font: inherit; font-size: 14px; }
.field-auth-form button { min-height: 40px; border: 0; border-radius: var(--platform-radius-control); background: var(--platform-accent); color: var(--platform-accent-ink); font: inherit; font-weight: 600; cursor: pointer; }
.field-auth-form button:disabled, .field-auth-link:disabled { opacity: .55; cursor: wait; }
.field-auth-form [role="status"], .field-auth-form [role="alert"] { margin: 0; color: var(--platform-danger); font-size: 13px; }
.field-auth-link { margin-top: 12px; padding: 6px 0; border: 0; background: transparent; color: var(--platform-text-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.field-auth-status { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--platform-canvas); color: var(--platform-text); text-align: center; }

@media (pointer: coarse), (max-width: 600px) {
  .field-auth-form input { min-height: 44px; font-size: 16px; }
  .field-auth-form button, .field-auth-link { min-height: 44px; min-width: 44px; }
  .field-auth-card { padding: 24px; }
}
/* Shared controls and compositions. Domain CSS owns placement, not appearance. */
:root { color: var(--platform-text); background: var(--platform-canvas); font-family: var(--platform-font); }
.app-shell { min-height: 100dvh; color: var(--platform-text); background: var(--platform-canvas); font-family: var(--platform-font); }
:where(.app-shell, .platform-overlay, .field-auth-shell, .platform-public-event) { font-family: var(--platform-font); }
.app-shell :where(h1,h2,h3,h4), .platform-overlay :where(h1,h2,h3,h4) { font-family: var(--platform-font); font-weight: 600; letter-spacing: -.01em; }
.tc-button.tc-button, .tc-input.tc-input {
  min-width: 0; min-height: var(--platform-control-height); border: 1px solid var(--platform-border-strong);
  border-radius: var(--platform-radius-control); color: var(--platform-text); background: var(--platform-surface);
  font-family: var(--platform-font); font-size: 13.5px; line-height: 1.3;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.tc-button.tc-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; font-weight: 500; cursor: pointer; }
.tc-button.tc-button:disabled { cursor: not-allowed; opacity: .55; }
.tc-button.tc-button:not(:disabled):hover { background-color: var(--platform-surface-subtle); }
.tc-button.tc-button:is([data-variant="primary"],.primary,.primary-action) {
  color: var(--platform-accent-ink); background: var(--platform-accent); border-color: var(--platform-accent);
}
.tc-button.tc-button:is([data-variant="primary"],.primary,.primary-action):not(:disabled):hover { background: var(--platform-accent-strong); }
.tc-button.tc-button[data-variant="quiet"] { color: var(--platform-text-muted); background: transparent; border-color: transparent; }
.tc-button.tc-button[data-variant="quiet"]:not(:disabled):hover { color: var(--platform-text); }
.tc-button.tc-button[data-variant="danger"] { color: var(--platform-danger); border-color: var(--platform-danger); background: var(--platform-error-surface); }
.tc-button.tc-button:is([aria-pressed="true"],[aria-selected="true"]) { color: var(--platform-text); background: var(--platform-surface-selected); border-color: var(--platform-accent); box-shadow: none; }
.tc-input.tc-input { padding: 0 10px; }
.tc-input.tc-input::placeholder { color: var(--platform-text-muted); opacity: 1; }
.tc-input.tc-input:disabled { cursor: not-allowed; opacity: .6; }
.tc-input.tc-input[aria-invalid="true"] { border-color: var(--platform-danger); }
/* WebKit sizes a native select from its font and ignores min-height, and lets a long option
   label widen the page; a single-line select gets an explicit height and clips its label. */
select.tc-input.tc-input:not([multiple]):not([size]) { height: var(--platform-control-height); overflow: hidden; text-overflow: ellipsis; }
textarea.tc-input.tc-input { min-height: 104px; padding: 8px 10px; resize: vertical; }
input.tc-input.tc-input:is([type="checkbox"],[type="radio"]) { width: 20px; height: 20px; min-height: 20px; padding: 0; accent-color: var(--platform-accent); flex: 0 0 auto; }
input.tc-input[type="color"] { padding: 4px; }
.app-shell :where(label):has(> input:is([type="checkbox"],[type="radio"])), .platform-overlay :where(label):has(> input:is([type="checkbox"],[type="radio"])) { min-height: 44px; align-content: center; }
:where(.app-shell,.platform-overlay,.field-auth-shell,.platform-public-event) :is(button,input,select,textarea,summary,a,[tabindex]):focus-visible {
  outline: 2px solid var(--platform-focus); outline-offset: 2px;
}
/* Disclosure summaries are dense controls: at least 28px on pointer devices and a full
   control height on touch. :where keeps the pointer size below any domain summary rule;
   align-content centres the label of a list-item summary without dropping its marker. */
:where(.tc-disclosure) > .tc-disclosure-summary { min-height: 28px; align-content: center; cursor: pointer; }
@media (pointer: coarse) { .tc-disclosure > .tc-disclosure-summary { min-height: var(--platform-control-height); } }
.tc-field { display: grid; gap: 8px; min-width: 0; }
.tc-field label { color: var(--platform-text); font-weight: 500; }
.tc-field small { color: var(--platform-text-muted); }
.tc-field-error, .tc-field .tc-field-error { color: var(--platform-danger); }
.tc-page-header { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.tc-page-heading { display: grid; gap: 4px; }
.tc-page-heading { min-width: 0; }
.tc-page-heading h1 { margin: 0; font-size: 22px; line-height: 1.25; }
.tc-page-heading p { margin: 0; max-width: 72ch; color: var(--platform-text-muted); line-height: 1.5; }
.tc-eyebrow { color: var(--platform-text-faint); font-size: 12px; font-weight: 500; }
.tc-card { padding: 16px; border: 1px solid var(--platform-border); border-radius: var(--platform-radius-card); background: var(--platform-surface); min-width: 0; }
.tc-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.tc-table-region { max-width: 100%; overflow: auto; }
.tc-table.tc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; color: var(--platform-text); background: var(--platform-surface); }
.tc-table.tc-table th { color: var(--platform-text-muted); background: var(--platform-surface-subtle); font-size: 12.5px; font-weight: 500; text-align: left; }
.tc-table.tc-table :is(th,td) { border-color: var(--platform-border); padding: 9px 12px; }
.tc-table.tc-table tbody tr:hover { background: var(--platform-surface-subtle); }
.tc-tabs { display: flex; gap: 2px; overflow-x: auto; max-width: 100%; padding: 0; border-bottom: 1px solid var(--platform-border); }
.tc-tabs > .tc-button.tc-button { min-height: 38px; border: 0; border-radius: 0; color: var(--platform-text-muted); background: transparent; box-shadow: inset 0 -2px transparent; }
.tc-tabs > .tc-button.tc-button:not(:disabled):hover { color: var(--platform-text); background: transparent; }
.tc-tabs > .tc-button.tc-button[aria-selected="true"] { color: var(--platform-text); background: transparent; box-shadow: inset 0 -2px var(--platform-accent); }
.tc-tabs > button { flex-shrink: 0; }
.tc-status, .tc-loading { display: flex; align-items: start; gap: 8px; line-height: 1.5; }
.tc-status { padding: 10px 14px; border: 1px solid currentColor; border-radius: var(--platform-radius-control); color: var(--platform-info); background: var(--platform-info-surface); }
.tc-status > svg, .tc-loading > svg { flex: 0 0 auto; margin-top: 3px; }
.tc-status[data-tone="success"] { color: var(--platform-success); background: var(--platform-success-surface); }
.tc-status[data-tone="warning"] { color: var(--platform-warning); background: var(--platform-warning-surface); }
.tc-status[data-tone="error"] { color: var(--platform-danger); background: var(--platform-error-surface); }
.tc-empty { padding: 32px; text-align: center; border: 1px dashed var(--platform-border-strong); border-radius: var(--platform-radius-card); background: var(--platform-surface); }
.tc-empty h2 { margin: 0 0 8px; font-size: 16px; }
.tc-empty p { color: var(--platform-text-muted); }
.tc-spinner { animation: tc-spin 1.2s linear infinite; vertical-align: middle; }
@keyframes tc-spin { to { transform: rotate(360deg); } }
/* A true viewport portal; dialogs inherit the selected palette through React context. */
.platform-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: var(--platform-scrim); color: var(--platform-text); }
.platform-overlay .tc-dialog {
  position: relative; inset: auto; display: flex; flex-direction: column; width: min(860px, 100%); max-width: 100%;
  max-height: calc(100dvh - 48px); min-height: 0; margin: 0; padding: 0; overflow: hidden;
  border: 1px solid var(--platform-border); border-radius: var(--platform-radius-panel); background: var(--platform-surface); box-shadow: var(--platform-shadow-raised);
}
.platform-overlay .tc-dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--platform-border); flex-shrink: 0; }
.platform-overlay .tc-dialog-header h2 { margin: 0; font-family: var(--platform-font); font-size: 17px; line-height: 1.2; color: var(--platform-text); }
.tc-dialog-header p { margin: 8px 0 0; color: var(--platform-text-muted); }
.tc-dialog-header > button { flex: 0 0 auto; padding: 0 8px; }
.platform-overlay .tc-dialog-body { min-height: 0; overflow: auto; padding: 20px; overscroll-behavior: contain; }
.platform-overlay .tc-dialog :is(h1,h2,h3,h4) { font-family: var(--platform-font); font-weight: 600; }
.platform-overlay .tc-tabs { display: flex; }
.platform-overlay .tc-tabs > .tc-button { flex: 0 0 auto; white-space: nowrap; }
.tc-dialog-body > form { display: grid; gap: 16px; }
.tc-dialog-body label { display: grid; gap: 8px; min-width: 0; }
.tc-dialog-body :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { width: 100%; }
.tc-dialog-body > form > footer, .tc-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding-top: 16px; border-top: 1px solid var(--platform-border); background: var(--platform-surface); }
.tc-dialog-body > form > footer { position: sticky; bottom: -20px; padding-block: 16px; }
.tc-dialog-actions { padding: 14px 20px; flex-shrink: 0; }
.platform-overlay[data-placement="sheet"] { justify-items: end; padding: 0; }
.platform-overlay[data-placement="sheet"] .tc-dialog { width: min(520px,100%); height: 100dvh; max-height: 100dvh; border-radius: var(--platform-radius-panel) 0 0 var(--platform-radius-panel); }
/* The planner retains its accepted grid and page-owned scrolling. */
.sf-planner-app .tc-button.tc-button { min-height: var(--platform-control-height); padding: 6px 10px; border-radius: 8px; }
.sf-planner-app .tc-input.tc-input { padding: 6px 8px; border-radius: 8px; }
.sf-planner-app .tc-table :is(th,td) { padding: 8px 10px; }
.app-shell .tc-brand-symbol { display: block; width: 32px; height: 32px; object-fit: contain; }
.field-auth-shell { color: var(--platform-text); background: var(--platform-canvas); }
.field-auth-shell .field-auth-card { border-color: var(--platform-border); background: var(--platform-surface); box-shadow: var(--platform-shadow-raised); }
.field-auth-brand img { width: 72px; height: 72px; object-fit: contain; }
.field-auth-shell :is(h1,p,label) { color: var(--platform-text); }
.field-auth-shell .field-auth-eyebrow { color: var(--platform-accent); }
/* Shared primitive appearance also applies to older compositions while they retain semantic classes. */
.app-shell :where(.panel-card,.section,.studio-panel) { border-radius: var(--platform-radius-card); border-color: var(--platform-border); background-color: var(--platform-surface); }
.app-shell :where(.error,.crm-alert,.event-alert) { color: var(--platform-danger); background: var(--platform-error-surface); }
.app-shell :where(.status-pill,.notice) { color: var(--platform-text); background: var(--platform-surface-subtle); border-color: var(--platform-border); }
@media (max-width: 640px) {
  .tc-button.tc-button, .tc-input.tc-input { font-size: 16px; }
  .tc-page-header { flex-direction: column; gap: 16px; }
  .tc-card { padding: 16px; }
  .platform-overlay { padding: 8px; }
  .platform-overlay .tc-dialog { max-height: calc(100dvh - 16px); border-radius: 16px; }
  .platform-overlay :is(.tc-dialog-header,.tc-dialog-body) { padding: 16px; }
  .tc-dialog-header h2 { font-size: 22px; }
  .tc-dialog-body > form > footer { bottom: -16px; }
  .platform-overlay[data-placement="sheet"] .tc-dialog { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .tc-spinner { animation: none; } .tc-button,.tc-input { transition: none; } }
@media (forced-colors: active) { .tc-button[aria-selected="true"], .tc-button[aria-pressed="true"] { outline: 2px solid Highlight; } }
.platform-overlay .stakeholder-composer > header { background: var(--platform-surface-subtle); color: var(--platform-text); }
.platform-overlay .crm-icon-dialog .tc-dialog-body > nav { display: flex; gap: 8px; overflow-x: auto; }
.platform-overlay .crm-icon-dialog .tc-dialog-body > nav button { flex-shrink: 0; }
.platform-overlay .tc-dialog-body > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.app-shell .tc-button.tc-button, .platform-overlay .tc-button.tc-button { min-height: var(--platform-control-height); }
.app-shell .tc-input.tc-input:not([type="checkbox"]):not([type="radio"]), .platform-overlay .tc-input.tc-input:not([type="checkbox"]):not([type="radio"]) { min-height: var(--platform-control-height); }
.app-shell .form-panel, .app-shell .form-panel label { min-width: 0; }
.app-shell .form-panel label { color: var(--platform-text); }
.app-shell .form-panel .tc-input { max-width: 100%; }
.app-shell .details { flex-wrap: wrap; }
.app-shell .govern-grid > * { min-width: 0; }
.app-shell .version-list > article, .app-shell .version-list > article > div { min-width: 0; overflow-wrap: anywhere; }
.app-shell .version-actions { flex-wrap: wrap; }
.app-shell .presentation-bar, .app-shell .presentation-controls { background: var(--platform-header); color: var(--platform-header-text); }
.app-shell .presentation-bar small, .app-shell .presentation-controls small { color: var(--platform-header-text); }
@media (max-width: 640px) {
  .app-shell .govern-grid { grid-template-columns: minmax(0, 1fr); }
  .app-shell .form-panel { grid-template-columns: minmax(0, 1fr); }
  .app-shell .presentation-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .app-shell .presentation-bar > div { max-width: none; }
  .app-shell .presentation-bar > .tc-button { justify-self: start; white-space: nowrap; }
}

/* Button variants and sizes for dense compositions (docs/brand/platform-react-ui.md, "Type and
   geometry"). They follow the app-shell control height above so they win its ties. */
.tc-button.tc-button[data-size="small"] { min-height: 28px; padding: 0 8px; font-size: 12.5px; }
/* Link-style: reaches the 28px floor through 4px of block padding that the negative margin gives
   back, so a rail item, card or table row keeps its text height. */
.tc-button.tc-button[data-variant="link"] { justify-content: flex-start; min-height: 28px; margin-block: -4px; padding: 4px 0; border-color: transparent; border-radius: 0; color: var(--platform-text); background: transparent; text-align: left; }
.tc-button.tc-button[data-variant="link"]:not(:disabled):hover { color: var(--platform-accent); background: transparent; text-decoration: underline; }
/* Tile: a selectable card; the shared pressed state marks the selected one. */
.tc-button.tc-button[data-variant="tile"] { display: grid; justify-content: stretch; justify-items: start; align-content: start; gap: 2px; min-height: 0; padding: 10px 12px; border-color: var(--platform-border); border-radius: var(--platform-radius-card); text-align: left; white-space: normal; }
.tc-button.tc-button[data-variant="tile"][aria-pressed="true"] { border-color: var(--platform-accent); background: var(--platform-surface-selected); }
/* The current page in a Navigation list of buttons reads as selected. Parked Field and Events
   screens keep their own current-page styles until they are rebuilt on the core. */
.crm-experience .tc-navigation > .tc-button.tc-button[aria-current="page"] { color: var(--platform-text); background: var(--platform-surface-selected); }
/* Segmented switch: a group of alternatives, the pressed one selected. */
.tc-segmented { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--platform-border); border-radius: var(--platform-radius-control); background: var(--platform-canvas); }
.tc-segmented > .tc-button.tc-button { min-height: 30px; border-color: transparent; }
.tc-segmented > .tc-button.tc-button[aria-pressed="true"] { background: var(--platform-accent-soft); }
@media (pointer: coarse) {
  .tc-button.tc-button:is([data-size="small"], [data-variant="link"]), .tc-segmented > .tc-button.tc-button { min-height: var(--platform-control-height); }
  .tc-button.tc-button:is([data-size="small"], [data-variant="link"]) { min-width: var(--platform-control-height); }
  .tc-button.tc-button[data-variant="link"] { margin-block: 0; padding-block: 0; }
}
/*
 * Control Room shell: one sidebar (brand, experience switcher, navigation), a slim
 * top bar and a full-width work area. Shared by CRM, Field and Events. The first part
 * is the shell's base structure (what remains in effect of the 2.0 shell); the
 * `.app-shell[data-palette]` rules after it own the Control Room geometry.
 */
.topbar {
  justify-content: space-between;
}

.brand-mark {
  place-items: center;
  color: var(--platform-header);
  font-size: 1.5rem;
  font-weight: 600;
}

.brand small,
.persona-picker span {
  color: var(--platform-text-muted);
  font-size: 0.75rem;
}

.persona-picker {
  gap: 0.25rem;
}

.persona-picker select {
  padding: 0.4rem 2rem 0.4rem 0.7rem;
  border: 1px solid var(--platform-accent);
  border-radius: 8px;
  color: var(--platform-header-text);
  background: var(--platform-surface-subtle);
}

.authenticated-profile .profile-menu button {
  min-height: 2.75rem;
  border: 0;
  border-radius: .65rem;
  background: var(--platform-surface-subtle);
  color: var(--platform-header-text);
  font: inherit;
  font-weight: 600;
}

.main {
  min-width: 0;
}

.context-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--platform-border);
}

.context-strip strong {
  display: block;
}

.brand-mark {
  box-shadow: inset 0 1px color-mix(in srgb, var(--platform-data-ink) 45%, transparent);
}

.crm-global-actions button.active { color: var(--platform-text); background: var(--platform-surface); }

.experience-switcher {
  align-items: center;
}

.experience-switcher button span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.experience-switcher button:disabled { cursor: not-allowed; opacity: .42; }

@media (max-width: 1400px) {
  .crm-global-actions button span { font-size: .95rem; }
}

.connection-state {
  font-weight: 600;
}

.connection-state.offline > span {
  background: var(--platform-highlight);
}

.persona-picker {
  display: block;
}

.persona-picker > summary::-webkit-details-marker {
  display: none;
}

.profile-copy {
  flex-direction: column;
  align-items: flex-end;
}

.profile-menu label,
.profile-menu label > span {
  display: grid;
  gap: 0.35rem;
}

.profile-menu label > span {
  color: var(--platform-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-menu select {
  width: 100%;
  color: var(--platform-text);
  background: var(--platform-surface);
}

.profile-menu > small {
  line-height: 1.45;
}

.stakeholder-immersive-main {
  min-height: calc(100dvh - var(--shell-topbar-height, 52px));
}

.side-nav {
  top: 72px;
}

.side-nav[hidden] {
  display: none;
}

.side-nav button span {
  border-radius: 7px;
}

.context-strip {
  min-height: 44px;
  padding-bottom: 0.85rem;
}

.workspace-tools {
  position: relative;
}

.workspace-tools > summary {
  cursor: pointer;
  color: var(--platform-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.workspace-tools > button {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 10;
  width: 210px;
  border: 1px solid var(--platform-border);
  border-radius: 10px;
  background: var(--platform-surface);
  box-shadow: var(--platform-shadow-raised);
}

.notice {
  display: inline-flex;
  margin: 1rem 0 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--platform-border);
  border-left-width: 1px;
  border-radius: 999px;
  color: var(--platform-text);
  background: var(--platform-surface-subtle);
  font-size: 0.78rem;
}

@media (max-width: 780px) {

  .topbar {
    flex-wrap: wrap;
  }

  .experience-switcher {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .experience-switcher button { flex: 1 0 auto; }

  .brand small {
    display: none;
  }

  .persona-picker select {
    width: 100%;
  }

  .side-nav {
    top: 0;
    z-index: 15;
    width: 100%;
    max-width: 100vw;
  }

  .side-nav button {
    flex: 0 0 auto;
  }

  .nav-section-label {
    flex: 0 0 auto;
    align-self: center;
    white-space: nowrap;
  }

  .context-strip {
    align-items: flex-start;
  }

  .context-strip .quiet {
    max-width: 130px;
  }
}

@media (max-width: 480px) {
  .experience-switcher button span { display: none; }
}

.appearance-settings {
  display: grid;
  gap: .65rem;
  padding-block: .75rem;
  border-block: 1px solid var(--platform-border);
}

.appearance-settings > div:first-child {
  display: grid;
  gap: .2rem;
}

.appearance-settings > div:first-child small,
.palette-message {
  line-height: 1.35;
}

.palette-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.app-shell[data-palette] .profile-menu .palette-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .55rem;
  text-align: left;
}

.app-shell[data-palette] .profile-menu .palette-option[aria-pressed="true"] {
  border-color: var(--platform-accent);
  background: var(--platform-accent-soft);
  box-shadow: inset 0 0 0 1px var(--platform-accent);
}

.app-shell[data-palette] .profile-menu .palette-option strong {
  color: var(--platform-text);
}

.palette-option > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: .15rem;
}

.palette-option small {
  font-size: .68rem;
  line-height: 1.25;
}

.palette-check {
  font-weight: 600;
}

.palette-swatch {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--platform-border-strong);
  background: var(--platform-canvas);
  border-radius: 50%;
}

.palette-swatch i {
  background: var(--platform-accent);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

@media (max-width: 780px) {
  .palette-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

.app-shell[data-palette] {
  --shell-sidebar-width: 240px;
  --shell-topbar-height: 52px;
  --shell-sidebar-muted: color-mix(in srgb, var(--platform-header-text) 64%, transparent);
  --shell-sidebar-hover: color-mix(in srgb, var(--platform-header-text) 7%, transparent);
  --shell-sidebar-active: color-mix(in srgb, var(--platform-header-text) 12%, transparent);
  min-height: 100dvh;
  color: var(--platform-text);
  background: var(--platform-canvas);
  font-size: 14px;
}

.app-shell[data-palette] .layout {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: var(--shell-sidebar-width) minmax(0, 1fr);
  padding: 0;
  color: var(--platform-text);
  background: var(--platform-canvas);
}

.app-shell[data-palette] .layout:has(> .shell-sidebar[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

/* Sidebar */
.app-shell[data-palette] .shell-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100dvh;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  padding: 14px 10px 16px;
  overflow-y: auto;
  box-sizing: border-box;
  border-right: 1px solid var(--platform-border);
  color: var(--platform-header-text);
  background: var(--platform-header);
  scrollbar-width: thin;
}

.app-shell[data-palette] .shell-sidebar[hidden] {
  display: none;
}

.app-shell[data-palette] .shell-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px 6px;
  color: inherit;
  text-decoration: none;
}

.app-shell[data-palette] .shell-sidebar .brand > span {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.app-shell[data-palette] .shell-sidebar .brand strong {
  font-size: 15px;
  font-weight: 600;
}

.app-shell[data-palette] .shell-sidebar .brand small {
  overflow: hidden;
  color: var(--shell-sidebar-muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell[data-palette] .shell-sidebar .tc-brand-symbol {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  background: none;
}

.app-shell[data-palette] .shell-sidebar .experience-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--platform-header-text) 10%, transparent);
  border-radius: var(--platform-radius-control);
  background: color-mix(in srgb, var(--platform-header-text) 4%, transparent);
}

.app-shell[data-palette] .shell-sidebar .experience-switcher .tc-button {
  display: flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  color: var(--shell-sidebar-muted);
  background: transparent;
  box-shadow: none;
  font-size: 12.5px;
}

.app-shell[data-palette] .shell-sidebar .experience-switcher .tc-button strong {
  font-weight: 500;
}

.app-shell[data-palette] .shell-sidebar .experience-switcher .tc-button:not(:disabled):hover {
  color: var(--platform-header-text);
  background: var(--shell-sidebar-hover);
}

.app-shell[data-palette] .shell-sidebar .experience-switcher .tc-button.active {
  color: var(--platform-header-text);
  background: var(--shell-sidebar-active);
}

.app-shell[data-palette] .shell-sidebar .experience-switcher .tc-button .crm-icon {
  width: auto;
  height: auto;
  color: inherit;
  background: transparent;
}

.app-shell[data-palette] .shell-sidebar .experience-switcher .tc-button.active .crm-icon {
  color: var(--platform-accent);
}

.app-shell[data-palette] .side-nav {
  position: static;
  display: flex;
  min-width: 0;
  max-height: none;
  flex-direction: column;
  align-self: stretch;
  overflow: visible;
  gap: 14px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

.app-shell[data-palette] .side-nav .nav-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
}

.app-shell[data-palette] .side-nav .nav-section-label {
  display: block;
  margin: 0;
  padding: 2px 10px 4px;
  color: var(--shell-sidebar-muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.app-shell[data-palette] .side-nav .tc-button {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--shell-sidebar-muted);
  background: transparent;
  box-shadow: none;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
}

.app-shell[data-palette] .side-nav .tc-button:not(:disabled):hover {
  color: var(--platform-header-text);
  background: var(--shell-sidebar-hover);
}

.app-shell[data-palette] .side-nav .tc-button.active {
  color: var(--platform-header-text);
  background: var(--shell-sidebar-active);
  box-shadow: none;
}

.app-shell[data-palette] .side-nav .tc-button .crm-icon {
  display: inline-grid;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  place-items: center;
  background: transparent;
}

.app-shell[data-palette] .side-nav .tc-button.active .crm-icon:not([style]) {
  color: var(--platform-accent);
}

/* Work area and top bar */
.app-shell[data-palette] .shell-workarea {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.app-shell[data-palette] .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: var(--shell-topbar-height);
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--platform-border);
  color: var(--platform-text);
  background: var(--platform-surface);
  box-shadow: none;
}

.app-shell[data-palette] .topbar-actions {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
}

.app-shell[data-palette] .topbar .crm-global-actions {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.app-shell[data-palette] .topbar .tc-button {
  min-height: var(--platform-control-height);
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--platform-radius-control);
  color: var(--platform-text-muted);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
}

.app-shell[data-palette] .topbar .tc-button:not(:disabled):hover,
.app-shell[data-palette] .topbar .tc-button.active {
  color: var(--platform-text);
  background: var(--platform-surface-subtle);
}

.app-shell[data-palette] .topbar .command-search {
  display: flex;
  width: min(440px, 100%);
  justify-content: flex-start;
  gap: 8px;
  border-color: var(--platform-border);
  color: var(--platform-text-faint);
  background: var(--platform-canvas);
  font-weight: 400;
}

.app-shell[data-palette] .topbar .command-search-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell[data-palette] .topbar .connection-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  color: var(--platform-text-muted);
  background: transparent;
  font-size: 12.5px;
  white-space: nowrap;
}

.app-shell[data-palette] .topbar .connection-state > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--platform-success);
  box-shadow: none;
}

.app-shell[data-palette] .topbar .connection-state.offline > span {
  background: var(--platform-warning);
}

.app-shell[data-palette] .topbar .persona-picker {
  position: relative;
}

.app-shell[data-palette] .topbar .persona-picker > summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  padding: 0 4px 0 10px;
  border-radius: var(--platform-radius-control);
  color: var(--platform-text);
  cursor: pointer;
  list-style: none;
}

.app-shell[data-palette] .topbar .persona-picker > summary::-webkit-details-marker {
  display: none;
}

.app-shell[data-palette] .topbar .persona-picker > summary:hover {
  background: var(--platform-surface-subtle);
}

.app-shell[data-palette] .topbar .profile-copy {
  display: grid;
  line-height: 1.2;
  text-align: right;
}

.app-shell[data-palette] .topbar .profile-copy strong {
  color: var(--platform-text);
  font-size: 13px;
  font-weight: 500;
}

.app-shell[data-palette] .topbar .profile-copy small {
  color: var(--platform-text-faint);
  font-size: 11.5px;
}

.app-shell[data-palette] .topbar .avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--platform-accent);
  background: var(--platform-accent-soft);
  font-size: 11px;
  font-weight: 600;
}

.app-shell[data-palette] .topbar .profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  width: min(380px, calc(100vw - 32px));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--platform-border);
  border-radius: var(--platform-radius-panel);
  color: var(--platform-text);
  background: var(--platform-surface);
  box-shadow: var(--platform-shadow-raised);
}

.app-shell[data-palette] .topbar .profile-menu > strong {
  text-transform: capitalize;
}

.app-shell[data-palette] .topbar .profile-menu > .tc-button {
  justify-content: center;
  border-color: var(--platform-border-strong);
  color: var(--platform-text);
}

.app-shell[data-palette] .topbar .profile-menu .palette-option {
  min-height: 56px;
  border-radius: var(--platform-radius-control);
  font-size: 13px;
}

.app-shell[data-palette] .topbar .experience-switcher {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--platform-border);
  border-radius: var(--platform-radius-control);
  background: var(--platform-canvas);
}

.app-shell[data-palette] .topbar .experience-switcher .tc-button {
  min-height: 28px;
  gap: 6px;
  padding: 0 10px;
}

.app-shell[data-palette] .topbar .experience-switcher .tc-button .crm-icon {
  background: transparent;
}

.app-shell[data-palette] .topbar .experience-switcher .tc-button.active .crm-icon {
  color: var(--platform-accent);
}

/* Main content */
.app-shell[data-palette] .main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 24px 48px;
  box-sizing: border-box;
  color: var(--platform-text);
  background: transparent;
}

.app-shell[data-palette] .main.planner-immersive-main,
.app-shell[data-palette] .main.stakeholder-immersive-main {
  padding: 0;
}

/* Status messages read out through a steady live region and show as a short-lived toast. */
.app-shell[data-palette] .main > .notice {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-shell[data-palette] .shell-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 40px));
  padding: 10px 14px;
  border: 1px solid var(--platform-border);
  border-radius: var(--platform-radius-card);
  color: var(--platform-text);
  background: var(--platform-surface-raised);
  box-shadow: var(--platform-shadow-raised);
  font-size: 13.5px;
  line-height: 1.4;
  pointer-events: none;
  animation: shell-toast 5s ease forwards;
}

.app-shell[data-palette] .shell-toast::after {
  content: attr(data-message);
}

@keyframes shell-toast {
  0% { opacity: 0; transform: translateY(6px); }
  6%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; visibility: hidden; }
}

/* Headings, links and small labels across every experience. */
.app-shell[data-palette] .main h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.app-shell[data-palette] .main h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.3;
}

.app-shell[data-palette] .main h3 {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.app-shell[data-palette] :where(.tc-button, button) {
  text-decoration: none;
}

.app-shell[data-palette] :is(.tc-button.quiet, .tc-button[data-variant="quiet"], button.quiet) {
  border-color: transparent;
  color: var(--platform-accent);
  background: transparent;
  box-shadow: none;
}

.app-shell[data-palette] :is(.tc-button.quiet, .tc-button[data-variant="quiet"], button.quiet):not(:disabled):hover {
  background: var(--platform-surface-subtle);
}

/* Record names in tables read as text and reveal the link on hover, as in the list mockups. */
.app-shell[data-palette] table :is(td, tbody th) :is(a, .tc-button.quiet, .tc-button[data-variant="quiet"], button.quiet) {
  color: var(--platform-text);
  font-weight: 500;
  text-decoration: none;
}

.app-shell[data-palette] table :is(td, tbody th) :is(a, .tc-button.quiet, .tc-button[data-variant="quiet"], button.quiet):hover {
  color: var(--platform-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-shell[data-palette] table thead :is(th, th :is(button, a, .tc-button.quiet, .tc-button[data-variant="quiet"])) {
  color: var(--platform-text-muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

.app-shell[data-palette] :is(td, th) > :is(.tc-button.quiet, .tc-button[data-variant="quiet"], button.quiet) {
  min-height: 28px;
  padding: 0 6px;
  margin-left: -6px;
}

.app-shell[data-palette] :where(.tc-eyebrow, .eyebrow) {
  color: var(--platform-text-faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/*
 * Touch screens: the dense shell controls above grow to the 44px target that
 * --platform-control-height carries under a coarse pointer. Each selector repeats its
 * dense rule and wins by source order, so pointer devices keep the dense sizes.
 */
@media (pointer: coarse) {
  .app-shell[data-palette] .shell-sidebar .brand,
  .app-shell[data-palette] .shell-sidebar .experience-switcher .tc-button,
  .app-shell[data-palette] .side-nav .tc-button,
  .app-shell[data-palette] .topbar .tc-button,
  .app-shell[data-palette] .topbar .experience-switcher .tc-button,
  .app-shell[data-palette] .topbar .persona-picker > summary,
  .app-shell[data-palette] :is(td, th) > :is(.tc-button.quiet, .tc-button[data-variant="quiet"], button.quiet) {
    min-height: var(--platform-control-height);
  }

  /* Icon-only and one-word targets are 44px wide as well. */
  .app-shell[data-palette] .topbar .persona-picker > summary,
  .app-shell[data-palette] :is(td, th) > :is(.tc-button.quiet, .tc-button[data-variant="quiet"], button.quiet),
  .app-shell[data-palette] :is(td, th) a[href] {
    min-width: var(--platform-control-height);
  }
}

@media (max-width: 900px) {
  .app-shell[data-palette] .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-palette] .shell-sidebar {
    position: static;
    height: auto;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--platform-border);
  }

  .app-shell[data-palette] .shell-sidebar > .brand { order: 0; }
  .app-shell[data-palette] .shell-sidebar > .experience-switcher { order: 1; }

  .app-shell[data-palette] .side-nav {
    order: 2;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .app-shell[data-palette] .side-nav .nav-section {
    flex-direction: row;
    flex: 0 0 auto;
    align-items: center;
  }

  .app-shell[data-palette] .side-nav .nav-section-label {
    display: none;
  }

  .app-shell[data-palette] .side-nav .tc-button {
    width: auto;
    white-space: nowrap;
  }

  .app-shell[data-palette] .topbar {
    padding: 0 12px;
  }

  .app-shell[data-palette] .topbar .command-search-label,
  .app-shell[data-palette] .topbar .profile-copy,
  .app-shell[data-palette] .topbar .connection-state {
    display: none;
  }

  .app-shell[data-palette] .topbar .persona-picker {
    margin-left: auto;
  }

  .app-shell[data-palette] .main {
    padding: 16px 16px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell[data-palette] .shell-toast {
    animation: shell-toast 5s steps(1, end) forwards;
  }
}
