:root,
:root[data-theme="light"] {
  color-scheme: light;
  --atp-brand-primary: #172033;
  --atp-brand-accent: #5d72f3;
  --atp-brand-highlight: #31a7c0;
  --atp-brand-link: #4057d3;
  --atp-brand-on-primary: #ffffff;
  --atp-brand-on-accent: #ffffff;
  --atp-brand-on-highlight: #102a33;
  --atp-surface-page: #f3f5fa;
  --atp-surface-card: #ffffff;
  --atp-surface-elevated: #ffffff;
  --atp-surface-subdued: #f7f9fd;
  --atp-surface-canvas: #f8faff;
  --atp-surface-header: #fafcff;
  --atp-surface-navigation: #ffffff;
  --atp-surface-input: #ffffff;
  --atp-surface-overlay: #172033;
  --atp-text-primary: #172033;
  --atp-text-secondary: #3c475d;
  --atp-text-muted: #667085;
  --atp-text-inverse: #ffffff;
  --atp-text-on-header: #172033;
  --atp-text-on-navigation: #172033;
  --atp-text-disabled: #8a94a6;
  --atp-border-subtle: #d9dee8;
  --atp-border-strong: #bcc4d2;
  --atp-border-input: #aeb7c7;
  --atp-border-disabled: #dde1e8;
  --atp-focus-ring: #4057d3;
  --atp-action-primary-background: #4057d3;
  --atp-action-primary-foreground: #ffffff;
  --atp-action-primary-hover: #3046ba;
  --atp-action-primary-active: #25389c;
  --atp-action-secondary-background: #ffffff;
  --atp-action-secondary-foreground: #172033;
  --atp-action-secondary-hover: #edf0ff;
  --atp-action-destructive-background: #b42318;
  --atp-action-destructive-foreground: #ffffff;
  --atp-selection-background: #edf0ff;
  --atp-selection-foreground: #25389c;
  --atp-selection-border: #4057d3;
  --atp-status-success-background: #e7f7ef;
  --atp-status-success-foreground: #176b4d;
  --atp-status-success-border: #61b995;
  --atp-status-warning-background: #fff5df;
  --atp-status-warning-foreground: #72510f;
  --atp-status-warning-border: #d89a2d;
  --atp-status-error-background: #fff0f3;
  --atp-status-error-foreground: #9f263d;
  --atp-status-error-border: #d05064;
  --atp-status-information-background: #edf3ff;
  --atp-status-information-foreground: #214e9a;
  --atp-status-information-border: #4d82ff;
  --atp-status-connected: #2f8f6b;
  --atp-status-disconnected: #d05064;
  --atp-status-unavailable: #667085;
  --atp-status-draft: #8b68f7;
  --atp-status-ready: #2f8f6b;
  --atp-status-published: #4057d3;
  --atp-status-superseded: #667085;
  --atp-status-withdrawn: #9f263d;
  --atp-canvas-object-time-condition: #4d82ff;
  --atp-canvas-object-route-menu: #8b68f7;
  --atp-canvas-object-announcement: #d89a2d;
  --atp-canvas-object-answer-group: #b66ad7;
  --atp-canvas-object-work-queue: #31a7c0;
  --atp-canvas-object-voicemail: #667085;
  --atp-canvas-object-external-number: #2f8f6b;
  --atp-canvas-object-ai-assistant: #d05064;
  --atp-canvas-object-dynamic-route: #5d72f3;
  --atp-journey-category-call-entry-surface: #ddf6f2;
  --atp-journey-category-call-entry-accent: #147a70;
  --atp-journey-category-routing-decisions-surface: #e7ebff;
  --atp-journey-category-routing-decisions-accent: #5064c9;
  --atp-journey-category-time-schedules-surface: #fff0d1;
  --atp-journey-category-time-schedules-accent: #8b5d11;
  --atp-journey-category-announcements-audio-surface: #ffe5df;
  --atp-journey-category-announcements-audio-accent: #b7473d;
  --atp-journey-category-people-groups-surface: #f1e5fa;
  --atp-journey-category-people-groups-accent: #7f49a2;
  --atp-journey-category-extensions-destinations-surface: #e4f3e8;
  --atp-journey-category-extensions-destinations-accent: #3f7950;
  --atp-journey-category-external-integrations-surface: #e2f2f8;
  --atp-journey-category-external-integrations-accent: #286f8a;
  --atp-journey-category-voicemail-capture-surface: #f8e4ec;
  --atp-journey-category-voicemail-capture-accent: #a44264;
  --atp-journey-category-end-failure-surface: #fbe3e6;
  --atp-journey-category-end-failure-accent: #b53a48;
  --atp-journey-path-active: #5d72f3;
  --atp-journey-path-completed: #2f8f6b;
  --atp-journey-path-failed: #d05064;
  --atp-journey-path-unvisited: #a0a8b8;
  --atp-typography-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --atp-typography-heading: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: var(--atp-typography-body);
  --page: var(--atp-surface-page);
  --page-ambient-a: color-mix(in srgb, var(--atp-brand-accent) 14%, transparent);
  --page-ambient-b: color-mix(in srgb, var(--atp-brand-highlight) 10%, transparent);
  --sidebar: color-mix(in srgb, var(--atp-surface-navigation) 88%, transparent);
  --header: color-mix(in srgb, var(--atp-surface-header) 82%, transparent);
  --surface: color-mix(in srgb, var(--atp-surface-card) 92%, transparent);
  --surface-solid: var(--atp-surface-card);
  --surface-soft: color-mix(in srgb, var(--atp-surface-subdued) 92%, transparent);
  --node-surface: color-mix(in srgb, var(--atp-surface-elevated) 94%, transparent);
  --node-surface-solid: var(--atp-surface-elevated);
  --canvas: var(--atp-surface-canvas);
  --canvas-grid: color-mix(in srgb, var(--atp-border-strong) 24%, transparent);
  --canvas-glow: color-mix(in srgb, var(--atp-brand-highlight) 11%, transparent);
  --text-strong: var(--atp-text-primary);
  --text: var(--atp-text-secondary);
  --text-muted: var(--atp-text-muted);
  --text-quiet: var(--atp-text-disabled);
  --border: color-mix(in srgb, var(--atp-border-subtle) 82%, transparent);
  --border-strong: color-mix(in srgb, var(--atp-border-strong) 88%, transparent);
  --accent: var(--atp-brand-accent);
  --accent-strong: var(--atp-action-primary-hover);
  --accent-soft: var(--atp-selection-background);
  --accent-ring: color-mix(in srgb, var(--atp-brand-highlight) 24%, transparent);
  --focus: var(--atp-focus-ring);
  --start: var(--atp-journey-category-call-entry-accent);
  --start-soft: var(--atp-journey-category-call-entry-surface);
  --routing: var(--atp-journey-category-time-schedules-accent);
  --routing-soft: var(--atp-journey-category-time-schedules-surface);
  --menu: var(--atp-journey-category-routing-decisions-accent);
  --menu-soft: var(--atp-journey-category-routing-decisions-surface);
  --queue: var(--atp-journey-category-people-groups-accent);
  --queue-soft: var(--atp-journey-category-people-groups-surface);
  --extension: var(--atp-journey-category-extensions-destinations-accent);
  --extension-soft: var(--atp-journey-category-extensions-destinations-surface);
  --ring-group: var(--atp-journey-category-people-groups-accent);
  --ring-group-soft: var(--atp-journey-category-people-groups-surface);
  --announcement: var(--atp-journey-category-announcements-audio-accent);
  --announcement-soft: var(--atp-journey-category-announcements-audio-surface);
  --danger: var(--atp-status-error-border);
  --danger-soft: var(--atp-status-error-background);
  --shadow-shell: 0 24px 70px color-mix(in srgb, var(--atp-surface-overlay) 13%, transparent);
  --shadow-float: 0 26px 82px color-mix(in srgb, var(--atp-surface-overlay) 20%, transparent);
  --shadow-card: 0 10px 28px color-mix(in srgb, var(--atp-surface-overlay) 8%, transparent);
  --shadow-node: 0 18px 44px color-mix(in srgb, var(--atp-surface-overlay) 16%, transparent);
  --shadow-tool: 0 30px 90px color-mix(in srgb, var(--atp-surface-overlay) 24%, transparent);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --node-width: 276px;
  --node-height: 136px;
  font-family: var(--font);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --atp-brand-primary: #f2f5fb;
  --atp-brand-accent: #8798ff;
  --atp-brand-highlight: #42c5d9;
  --atp-brand-link: #b6c0ff;
  --atp-brand-on-primary: #0b1019;
  --atp-brand-on-accent: #0b1019;
  --atp-brand-on-highlight: #081519;
  --atp-surface-page: #0b1019;
  --atp-surface-card: #1b2535;
  --atp-surface-elevated: #26334a;
  --atp-surface-subdued: #141d2b;
  --atp-surface-canvas: #101827;
  --atp-surface-header: #0d131d;
  --atp-surface-navigation: #0f1622;
  --atp-surface-input: #1b2535;
  --atp-surface-overlay: #000000;
  --atp-text-primary: #f2f5fb;
  --atp-text-secondary: #d5dbea;
  --atp-text-muted: #aab3c3;
  --atp-text-inverse: #0b1019;
  --atp-text-on-header: #f2f5fb;
  --atp-text-on-navigation: #f2f5fb;
  --atp-text-disabled: #7d889b;
  --atp-border-subtle: #364154;
  --atp-border-strong: #68758d;
  --atp-border-input: #68758d;
  --atp-border-disabled: #3b4659;
  --atp-focus-ring: #c7cfff;
  --atp-action-primary-background: #b6c0ff;
  --atp-action-primary-foreground: #101827;
  --atp-action-primary-hover: #cad1ff;
  --atp-action-primary-active: #dce0ff;
  --atp-action-secondary-background: #1b2535;
  --atp-action-secondary-foreground: #f2f5fb;
  --atp-action-secondary-hover: #26334a;
  --atp-action-destructive-background: #f97066;
  --atp-action-destructive-foreground: #170806;
  --atp-selection-background: #2b3658;
  --atp-selection-foreground: #f2f5fb;
  --atp-selection-border: #b6c0ff;
  --atp-status-success-background: #15382b;
  --atp-status-success-foreground: #b9f0d8;
  --atp-status-success-border: #3c8a6c;
  --atp-status-warning-background: #3b2c12;
  --atp-status-warning-foreground: #f7d990;
  --atp-status-warning-border: #a87822;
  --atp-status-error-background: #421b23;
  --atp-status-error-foreground: #ffc2ce;
  --atp-status-error-border: #b8485a;
  --atp-status-information-background: #172a4d;
  --atp-status-information-foreground: #c5d9ff;
  --atp-status-information-border: #527fd9;
  --atp-status-connected: #62c69d;
  --atp-status-disconnected: #f28a9a;
  --atp-status-unavailable: #aab3c3;
  --atp-status-draft: #b9a3ff;
  --atp-status-ready: #62c69d;
  --atp-status-published: #b6c0ff;
  --atp-status-superseded: #aab3c3;
  --atp-status-withdrawn: #ffc2ce;
  --atp-canvas-object-time-condition: #77a2ff;
  --atp-canvas-object-route-menu: #ac91ff;
  --atp-canvas-object-announcement: #e9b653;
  --atp-canvas-object-answer-group: #ce91e8;
  --atp-canvas-object-work-queue: #58c7dd;
  --atp-canvas-object-voicemail: #aab3c3;
  --atp-canvas-object-external-number: #62c69d;
  --atp-canvas-object-ai-assistant: #f28a9a;
  --atp-canvas-object-dynamic-route: #8798ff;
  --atp-journey-category-call-entry-surface: #173a37;
  --atp-journey-category-call-entry-accent: #6ed8cd;
  --atp-journey-category-routing-decisions-surface: #272e4d;
  --atp-journey-category-routing-decisions-accent: #a8b4ff;
  --atp-journey-category-time-schedules-surface: #3e3420;
  --atp-journey-category-time-schedules-accent: #f0c66d;
  --atp-journey-category-announcements-audio-surface: #442a2c;
  --atp-journey-category-announcements-audio-accent: #ff998f;
  --atp-journey-category-people-groups-surface: #382a44;
  --atp-journey-category-people-groups-accent: #d2a9ec;
  --atp-journey-category-extensions-destinations-surface: #263b2d;
  --atp-journey-category-extensions-destinations-accent: #98d2a5;
  --atp-journey-category-external-integrations-surface: #203847;
  --atp-journey-category-external-integrations-accent: #8dd0e9;
  --atp-journey-category-voicemail-capture-surface: #422a35;
  --atp-journey-category-voicemail-capture-accent: #f0a3bc;
  --atp-journey-category-end-failure-surface: #46282e;
  --atp-journey-category-end-failure-accent: #ff9aa5;
  --atp-journey-path-active: #8798ff;
  --atp-journey-path-completed: #62c69d;
  --atp-journey-path-failed: #f28a9a;
  --atp-journey-path-unvisited: #717d92;
  --page-ambient-a: color-mix(in srgb, var(--atp-brand-accent) 12%, transparent);
  --page-ambient-b: color-mix(in srgb, var(--atp-brand-highlight) 8%, transparent);
  --canvas-grid: color-mix(in srgb, var(--atp-border-strong) 24%, transparent);
  --canvas-glow: color-mix(in srgb, var(--atp-brand-highlight) 12%, transparent);
  --text-quiet: var(--atp-text-disabled);
  --accent-ring: color-mix(in srgb, var(--atp-brand-highlight) 30%, transparent);
  --start-soft: var(--atp-journey-category-call-entry-surface);
  --routing-soft: var(--atp-journey-category-time-schedules-surface);
  --menu-soft: var(--atp-journey-category-routing-decisions-surface);
  --queue-soft: var(--atp-journey-category-people-groups-surface);
  --extension-soft: var(--atp-journey-category-extensions-destinations-surface);
  --ring-group-soft: var(--atp-journey-category-people-groups-surface);
  --announcement-soft: var(--atp-journey-category-announcements-audio-surface);
  --danger-soft: var(--atp-status-error-background);
  --shadow-shell: 0 24px 70px color-mix(in srgb, var(--atp-surface-overlay) 34%, transparent);
  --shadow-float: 0 28px 84px color-mix(in srgb, var(--atp-surface-overlay) 50%, transparent);
  --shadow-card: 0 12px 32px color-mix(in srgb, var(--atp-surface-overlay) 28%, transparent);
  --shadow-node: 0 22px 54px color-mix(in srgb, var(--atp-surface-overlay) 48%, transparent);
  --shadow-tool: 0 34px 92px color-mix(in srgb, var(--atp-surface-overlay) 56%, transparent);
}

:root[data-brand="talklayr"][data-theme="light"] {
  --atp-brand-primary: #14233b;
  --atp-brand-accent: #ff6b5e;
  --atp-brand-highlight: #21bfae;
  --atp-action-primary-background: #c94239;
  --atp-action-primary-foreground: #ffffff;
  --atp-action-primary-hover: #b83a32;
  --atp-action-primary-active: #aa352f;
  --atp-surface-page: #f5f7fb;
  --atp-surface-card: #ffffff;
  --atp-text-primary: #14233b;
  --atp-text-secondary: #526172;
  --atp-selection-background: #d9f5f1;
  --atp-selection-foreground: #14233b;
  --atp-selection-border: #14233b;
  --atp-journey-path-active: #21bfae;
}

:root[data-brand="talklayr"][data-theme="dark"] {
  --atp-brand-primary: #f5f7fb;
  --atp-brand-accent: #ff6b5e;
  --atp-brand-highlight: #21bfae;
  --atp-action-primary-background: #c94239;
  --atp-action-primary-foreground: #ffffff;
  --atp-action-primary-hover: #b83a32;
  --atp-action-primary-active: #aa352f;
  --atp-selection-background: #173b3b;
  --atp-selection-foreground: #f5f7fb;
  --atp-selection-border: #f5f7fb;
  --atp-journey-path-active: #21bfae;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 5%, var(--page-ambient-a), transparent 30rem),
    radial-gradient(circle at 22% 14%, var(--page-ambient-b), transparent 28rem),
    var(--page);
  color: var(--text);
  font: 16px/1.5 var(--font);
}

html.atp-appearance-ready body {
  transition: background-color 160ms ease, color 160ms ease;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
.journey-canvas:focus-visible {
  outline: 3px solid var(--atp-focus-ring);
  outline-offset: 3px;
}

a {
  color: var(--atp-brand-link);
}

input,
select,
textarea {
  border-color: var(--atp-border-input);
  background: var(--atp-surface-input);
  color: var(--atp-text-primary);
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  border-color: var(--atp-border-disabled);
  color: var(--atp-text-disabled);
}

table {
  color: var(--atp-text-secondary);
}

th {
  color: var(--atp-text-primary);
}

dialog,
[role="dialog"] {
  border-color: var(--atp-border-strong);
  background: var(--atp-surface-elevated);
  color: var(--atp-text-secondary);
}

.background-page-action,
.workspace-button--primary {
  border-color: var(--atp-action-primary-background);
  background: var(--atp-action-primary-background);
  color: var(--atp-action-primary-foreground);
}

.background-page-action:hover,
.workspace-button--primary:hover {
  border-color: var(--atp-action-primary-hover);
  background: var(--atp-action-primary-hover);
}

.background-page-action:active,
.workspace-button--primary:active {
  border-color: var(--atp-action-primary-active);
  background: var(--atp-action-primary-active);
}

.background-page-action--secondary {
  border-color: var(--atp-border-strong);
  background: var(--atp-action-secondary-background);
  color: var(--atp-action-secondary-foreground);
}

.background-page-action--secondary:hover {
  background: var(--atp-action-secondary-hover);
}

.background-page-action--danger,
.pbx-danger-button {
  border-color: var(--atp-action-destructive-background);
  background: var(--atp-action-destructive-background);
  color: var(--atp-action-destructive-foreground);
}

.form-error,
.pbx-form-error,
[role="alert"] {
  color: var(--atp-status-error-foreground);
}

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

.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
}

.app-nav {
  min-height: 0;
  overflow-y: auto;
  padding: 28px 22px;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
  backdrop-filter: blur(22px);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.app-nav-toggle,
.app-nav-backdrop {
  display: none;
}

.app-shell:has(.studio-shell) .app-nav,
.app-shell:has(.studio-shell) .app-background-page {
  opacity: 0.68;
  filter: saturate(0.78);
}

.brand {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 34px;
}

.brand-glyph {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--atp-brand-on-accent);
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  box-shadow: var(--shadow-card);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-self: flex-start;
  object-fit: contain;
  object-position: center top;
}

[data-theme="light"] .brand-logo--on-dark,
[data-theme="light"] .brand-managed-fallback--on-dark,
[data-theme="dark"] .brand-logo--on-light,
[data-theme="dark"] .brand-managed-fallback--on-light {
  display: none;
}

.brand-managed-fallback {
  min-width: 0;
  color: var(--atp-text-primary);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.brand--compact .brand-logo {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.brand-mark {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--atp-brand-primary);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-wordmark__accent {
  color: var(--atp-brand-accent);
}

.brand-tagline {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.identity-login-card .brand {
  margin-bottom: 0;
}

.tenant-switcher {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.tenant-switcher span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tenant-switcher a {
  display: grid;
  gap: 2px;
  color: var(--text-strong);
  text-decoration: none;
}

.tenant-switcher strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-switcher small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-switcher a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.identity-panel {
  align-self: end;
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.identity-panel strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-panel form {
  margin: 0;
}

.appearance-preference {
  display: grid;
  gap: 7px;
  margin: 4px 0;
  padding: 0;
  border: 0;
}

.appearance-preference legend {
  padding: 0;
  color: var(--atp-text-muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.appearance-preference__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.appearance-preference label {
  position: relative;
  display: grid;
  min-width: 0;
  cursor: pointer;
}

.appearance-preference input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.appearance-preference label span {
  display: grid;
  min-height: 32px;
  place-items: center;
  padding: 5px 4px;
  border: 1px solid var(--atp-border-subtle);
  border-radius: 8px;
  background: var(--atp-action-secondary-background);
  color: var(--atp-text-muted);
  font-size: 11px;
  font-weight: 720;
  text-align: center;
}

.appearance-preference input:checked + span {
  border-color: var(--atp-brand-accent);
  background: var(--atp-selection-background);
  color: var(--atp-selection-foreground);
}

.appearance-preference input:focus-visible + span {
  outline: 3px solid var(--atp-focus-ring);
  outline-offset: 2px;
}

.appearance-preference-form--compact {
  flex: 0 0 auto;
  margin: 0;
}

.appearance-preference--compact {
  display: block;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--atp-border-subtle);
  border-radius: 999px;
  background: var(--atp-action-secondary-background);
  box-shadow: var(--shadow-card);
}

.appearance-preference--compact .appearance-preference__options {
  display: flex;
  gap: 3px;
}

.appearance-preference--compact label span {
  width: 38px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--atp-text-muted);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.appearance-preference--compact label:hover span {
  background: var(--atp-action-secondary-hover);
  color: var(--atp-action-secondary-foreground);
}

.appearance-preference--compact input:checked + span {
  border-color: var(--atp-brand-highlight);
  background: var(--atp-selection-background);
  color: var(--atp-selection-foreground);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--atp-brand-highlight) 24%, transparent);
}

.appearance-preference--compact .appearance-preference__system-result,
.appearance-preference--compact .appearance-preference__status,
.appearance-preference--compact .appearance-preference__save {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.appearance-preference__system-result,
.appearance-preference__status {
  min-height: 1.25em;
  margin: 0;
  color: var(--atp-text-muted);
  font-size: 11px;
}

.appearance-preference__status[role="alert"] {
  color: var(--atp-status-error-foreground);
}

.atp-js .appearance-preference__save {
  display: none;
}

.identity-panel__logout button {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html.atp-appearance-ready body {
    transition: none;
  }
}

.identity-panel button {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.identity-panel button:hover,
.identity-panel button:focus-visible {
  color: var(--text-strong);
  outline: none;
  border-color: var(--border-strong);
}

.app-nav nav {
  display: grid;
  gap: 5px;
}

.nav-section-label {
  margin: 13px 8px 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.nav-link:hover,
.nav-link--active {
  color: var(--text-strong);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.studio-shell {
  position: fixed;
  z-index: 40;
  inset: 14px;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border-strong) 78%, transparent);
  border-radius: 32px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-shell);
  opacity: 1;
}

.app-background-page {
  min-width: 0;
  min-height: 0;
  padding: 34px 42px;
  overflow: auto;
  /* Grid pages should keep their content at the top; the default stretch
     alignment distributes spare viewport height between implicit rows. */
  align-content: start;
}

.background-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.background-page-head h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: 30px;
  line-height: 1.1;
}

.settings-page {
  display: grid;
  gap: 24px;
}

.settings-group {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.client-home-page {
  display: grid;
  gap: 22px;
}

body:not(:has(.studio-shell)):has(.client-home-page) {
  min-width: 0;
  overflow: auto;
}

.client-home-head {
  align-items: flex-end;
}

.client-home-head p {
  max-width: 760px;
  margin: 0;
  color: var(--text);
}

.client-home-primary-action {
  white-space: nowrap;
}

.client-home-intro {
  max-width: 960px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 80%, transparent);
  box-shadow: var(--shadow-card);
}

.client-home-intro p {
  margin: 0;
  color: var(--text);
}

.client-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "system attention"
    "journeys live"
    "working quick"
    "recent recent";
  gap: 18px;
  align-items: stretch;
  min-width: 0;
}

.client-home-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  min-width: 0;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  box-shadow: var(--shadow-card);
}

.client-home-panel--system-status {
  grid-area: system;
}

.client-home-panel--needs-attention {
  grid-area: attention;
}

.client-home-panel--customer-journeys {
  grid-area: journeys;
}

.client-home-panel--live-activity {
  grid-area: live;
}

.client-home-panel--continue-working {
  grid-area: working;
}

.client-home-panel--quick-actions {
  grid-area: quick;
}

.client-home-panel--recent-activity {
  grid-area: recent;
}

.client-home-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.client-home-panel__head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
}

.client-home-panel__icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--accent);
  background: var(--accent-soft);
}

.client-home-icon {
  width: 18px;
  height: 18px;
}

.client-home-panel__body,
.client-home-panel__footer {
  min-width: 0;
}

.client-home-status-summary,
.client-home-empty {
  display: grid;
  gap: 6px;
}

.client-home-status-summary strong,
.client-home-empty strong {
  color: var(--text-strong);
  font-size: 19px;
  line-height: 1.25;
}

.client-home-status-summary p,
.client-home-empty p {
  margin: 0;
  color: var(--text-muted);
}

.client-home-status-list,
.client-home-attention-list,
.client-home-activity-list,
.client-home-recent-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.client-home-status-list li,
.client-home-attention-list li,
.client-home-activity-list li,
.client-home-recent-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 14px;
  background: var(--surface-soft);
}

.client-home-status-list span,
.client-home-recent-list li {
  min-width: 0;
}

.client-home-status-list strong,
.client-home-attention-list strong,
.client-home-activity-list strong,
.client-home-recent-list strong {
  display: block;
  color: var(--text-strong);
  font-size: 14px;
}

.client-home-status-list small,
.client-home-attention-list span,
.client-home-activity-list span,
.client-home-recent-list span,
.client-home-recent-list time {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
}

.client-home-status-list em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--atp-status-success-foreground);
  background: var(--atp-status-success-background);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.client-home-journey-list,
.client-home-work-list,
.client-home-quick-actions {
  display: grid;
  gap: 8px;
}

.client-home-journey-list article,
.client-home-work-list a,
.client-home-quick-actions a {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  border-radius: 15px;
  color: inherit;
  background: var(--surface-soft);
  text-decoration: none;
}

.client-home-work-list a:hover,
.client-home-quick-actions a:hover {
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--surface-solid) 96%, var(--accent-soft));
}

.client-home-journey-list strong,
.client-home-work-list strong,
.client-home-quick-actions strong {
  color: var(--text-strong);
  font-size: 14px;
}

.client-home-journey-list span,
.client-home-work-list span,
.client-home-quick-actions span {
  color: var(--text-muted);
  font-size: 13px;
}

.client-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.client-home-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-strong);
  background: var(--surface-solid);
  text-decoration: none;
  font-size: 13px;
  font-weight: 720;
}

.client-home-action--primary {
  border-color: transparent;
  color: var(--atp-action-primary-foreground);
  background: var(--atp-action-primary-background);
}

.settings-group__head {
  display: grid;
  gap: 6px;
}

.settings-group__head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 20px;
}

.settings-group__head p {
  margin: 0;
  color: var(--text-muted);
}

.settings-option-list {
  display: grid;
  gap: 12px;
}

.settings-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.settings-option:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  transform: translateY(-1px);
}

.settings-option strong,
.settings-option span {
  display: block;
}

.settings-option span {
  color: var(--text-muted);
}

.settings-option--disabled {
  opacity: 0.58;
  pointer-events: none;
}

.settings-option__chevron {
  color: var(--text-muted);
  font-size: 24px;
}

.settings-reset-card {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.settings-reset-card p {
  margin: 0;
  color: var(--text-muted);
}

.settings-reset-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-reset-warning {
  color: var(--atp-status-error-foreground);
}

.background-page-action,
.journey-list-card a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.background-page-head a.background-page-action {
  min-height: 44px;
  padding: 0 20px;
  border-color: color-mix(in srgb, var(--atp-action-primary-background) 60%, var(--border));
  background: var(--atp-action-primary-background);
  color: var(--atp-action-primary-foreground);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.background-page-head a.background-page-action:hover {
  background: var(--atp-action-primary-hover);
  color: var(--atp-action-primary-foreground);
}

.background-page-head a.background-page-action:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.tenant-selection-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--surface) 92%, transparent), transparent 32%),
    var(--background);
}

.tenant-selection-card {
  width: min(720px, 100%);
  display: grid;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.tenant-selection-card h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.tenant-selection-card p {
  max-width: 58ch;
  margin: 0;
  color: var(--text-muted);
}

.tenant-option-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.tenant-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, var(--background));
  cursor: pointer;
}

.tenant-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.tenant-option strong,
.tenant-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-option strong {
  color: var(--text-strong);
  font-size: 15px;
}

.tenant-option small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 13px;
}

.tenant-option em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  text-transform: uppercase;
}

.tenant-selection-actions {
  display: flex;
  justify-content: flex-end;
}

.tenant-selection-card .tenant-selection-actions .background-page-action {
  min-height: 46px;
  padding: 0 22px;
  border-color: color-mix(in srgb, var(--atp-action-primary-background) 60%, var(--border));
  background: var(--atp-action-primary-background);
  color: var(--atp-action-primary-foreground);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.tenant-selection-card .tenant-selection-actions .background-page-action:hover:not(:disabled) {
  background: var(--atp-action-primary-hover);
}

.tenant-selection-card .tenant-selection-actions .background-page-action:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.identity-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--surface) 94%, transparent), transparent 34%),
    var(--background);
}

.identity-login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 17px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.identity-login-card h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.identity-login-card p {
  margin: 0;
  color: var(--text-muted);
}

.identity-login-card a {
  color: var(--accent);
  font-weight: 720;
  text-decoration: none;
}

.identity-login-card a:focus-visible,
.identity-login-card a:hover {
  text-decoration: underline;
}

.identity-login-card label {
  display: grid;
  gap: 7px;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 760;
}

.identity-login-card input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-strong);
  font: inherit;
  font-weight: 500;
}

.identity-login-card input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.identity-login-card > button[type="submit"] {
  width: 100%;
  min-height: 50px;
  margin-top: 3px;
  border: 1px solid color-mix(in srgb, var(--atp-action-primary-background) 60%, var(--border));
  border-radius: 12px;
  background: var(--atp-action-primary-background);
  color: var(--atp-action-primary-foreground);
  font: inherit;
  font-weight: 780;
  cursor: pointer;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.identity-login-card > button[type="submit"]:hover {
  background: var(--atp-action-primary-hover);
}

.identity-login-card > button[type="submit"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.journey-list-card {
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.journey-list-card div {
  display: grid;
  gap: 3px;
}

.journey-list-card strong {
  color: var(--text-strong);
  font-size: 17px;
}

.journey-list-card span {
  color: var(--text-muted);
  font-size: 13px;
}

.studio-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: start;
  gap: 18px;
  min-width: 0;
  padding: 11px 16px 12px 22px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--header) 92%, transparent);
  backdrop-filter: blur(22px);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.studio-header-identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.studio-header-brand {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
}

.studio-header-brand .brand-logo {
  width: 30px;
  height: 30px;
  flex-basis: 40px;
}

.header-title {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.header-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.header-summary {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.3;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--text-muted);
  font-size: 13px;
}

.studio-header h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.layout-selector button,
.workspace-button,
.close-workspace-button,
.zoom-controls button {
  min-height: 34px;
  border: 1px solid var(--atp-border-subtle);
  border-radius: 999px;
  background: var(--atp-action-secondary-background);
  color: var(--atp-action-secondary-foreground);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--atp-text-primary) 16%, transparent);
}

.zoom-controls button {
  padding: 0 13px;
}

.workspace-button {
  padding: 0 13px;
  font-size: 12px;
  font-weight: 760;
}

.workspace-button--primary {
  border-color: color-mix(in srgb, var(--atp-action-primary-background) 52%, var(--border));
  background: var(--atp-action-primary-background);
  color: var(--atp-action-primary-foreground);
}

.workspace-button:not(.workspace-button--primary):hover {
  border-color: var(--border-strong);
  background: var(--atp-action-secondary-hover);
}

.workspace-button--primary:hover {
  background: var(--atp-action-primary-hover);
  color: var(--atp-action-primary-foreground);
}

.workspace-button--primary:active {
  background: var(--atp-action-primary-active);
  color: var(--atp-action-primary-foreground);
}

.close-workspace-button {
  width: 38px;
  display: grid;
  place-items: center;
  padding: 0;
}

.close-workspace-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.close-workspace-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-solid);
}

.layout-selector {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--atp-action-secondary-background);
  box-shadow: var(--shadow-card);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.layout-selector button {
  width: 38px;
  min-width: 0;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.layout-selector button {
  width: 36px;
  padding: 0;
}

.theme-icon,
.layout-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.layout-selector button:hover,
.layout-selector button[aria-pressed="true"] {
  color: var(--atp-action-secondary-foreground);
  background: var(--atp-action-secondary-hover);
  box-shadow: var(--shadow-card);
}

.layout-selector button[aria-pressed="true"] {
  border-color: var(--atp-brand-highlight);
  color: var(--atp-selection-foreground);
  background: var(--atp-selection-background);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--atp-brand-highlight) 24%, transparent);
}

.layout-selector button:hover {
  transform: translateY(-1px);
}

.zoom-controls button:hover {
  border-color: var(--border-strong);
  background: var(--surface-solid);
}

.studio-workspace {
  min-height: 0;
  padding: 0;
}

.journey-studio {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 46%, var(--canvas-glow), transparent 25rem),
    linear-gradient(var(--canvas-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--canvas-grid) 1px, transparent 1px),
    var(--canvas);
  background-size: auto, 30px 30px, 30px 30px, auto;
  box-shadow: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.journey-studio::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--atp-text-primary) 20%, transparent),
    inset 0 0 90px color-mix(in srgb, var(--atp-surface-overlay) 6%, transparent);
}

.journey-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.canvas-surface {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  transform-origin: 0 0;
  will-change: transform;
}

.connector-layer,
.member-layer,
.node-layer {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}

.connector-layer {
  z-index: 0;
}

.member-layer {
  z-index: 1;
  pointer-events: none;
}

.node-layer {
  z-index: 2;
}

.connector {
  color: color-mix(in srgb, var(--accent) 50%, var(--text-muted));
}

.connector-layer marker path {
  fill: currentColor;
}

.connector-hit-area {
  fill: none;
  stroke: transparent;
  stroke-width: 18;
  stroke-linecap: round;
  pointer-events: stroke;
}

.connector-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  marker-end: url(#journey-connector-arrow);
  opacity: 0.68;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--atp-surface-overlay) 8%, transparent));
  transition: opacity 160ms ease, stroke 160ms ease, stroke-width 160ms ease, color 160ms ease;
}

.connector-path--draft {
  stroke: var(--atp-journey-path-active);
  stroke-dasharray: 7 8;
  opacity: 1;
  marker-end: none;
}

.connector-label rect {
  fill: var(--surface);
  stroke: var(--border);
  filter: drop-shadow(0 7px 14px color-mix(in srgb, var(--atp-surface-overlay) 10%, transparent));
}

.connector-label text {
  fill: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
  text-anchor: middle;
}

.journey-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--node-width);
  height: var(--node-height);
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 17px;
  padding: 20px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 23px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--node-surface-solid) 96%, transparent), var(--node-surface));
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-node);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
  will-change: left, top, transform;
}

.journey-node:hover {
  border-color: color-mix(in srgb, var(--node-accent, var(--accent)) 58%, var(--border-strong));
  box-shadow: 0 30px 70px color-mix(in srgb, var(--atp-surface-overlay) 30%, var(--node-accent, var(--accent)) 8%);
  transform: translateY(-4px);
}

.toolbox-drag-ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--node-width);
  height: var(--node-height);
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 17px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--node-accent, var(--accent)) 52%, var(--border-strong));
  border-radius: 23px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--node-surface-solid) 96%, transparent), var(--node-surface));
  color: var(--text);
  pointer-events: none;
  opacity: 0.96;
  box-shadow: 0 22px 46px color-mix(in srgb, var(--atp-surface-overlay) 22%, var(--node-accent, var(--accent)) 10%);
  transform: scale(var(--toolbox-drag-scale, 0.96));
  transform-origin: top left;
  z-index: 24;
}

.toolbox-drag-ghost[hidden] {
  display: none;
}

.toolbox-drag-ghost__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--node-soft, var(--accent-soft));
  color: var(--node-accent, var(--accent-strong));
  font-size: 24px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--atp-text-primary) 28%, transparent);
}

.toolbox-drag-ghost__copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.toolbox-drag-ghost__copy small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.toolbox-drag-ghost__copy strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 19.5px;
  font-weight: 760;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbox-drag-ghost__copy em {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13.8px;
  font-style: normal;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-node.is-selected {
  border-color: var(--node-accent, var(--accent));
  box-shadow: 0 0 0 6px var(--node-soft, var(--accent-ring)), var(--shadow-node);
}

.journey-node.is-selected::after {
  content: "Selected";
  position: absolute;
  top: -12px;
  right: 14px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--atp-brand-highlight);
  color: var(--atp-selection-foreground);
  background: var(--atp-selection-background);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.journey-category--call-entry,
[data-tool-category="call-entry"] {
  --node-accent: var(--atp-journey-category-call-entry-accent);
  --node-soft: var(--atp-journey-category-call-entry-surface);
}

.journey-category--routing-decisions,
[data-tool-category="routing-decisions"] {
  --node-accent: var(--atp-journey-category-routing-decisions-accent);
  --node-soft: var(--atp-journey-category-routing-decisions-surface);
}

.journey-category--time-schedules,
[data-tool-category="time-schedules"] {
  --node-accent: var(--atp-journey-category-time-schedules-accent);
  --node-soft: var(--atp-journey-category-time-schedules-surface);
}

.journey-category--announcements-audio,
[data-tool-category="announcements-audio"] {
  --node-accent: var(--atp-journey-category-announcements-audio-accent);
  --node-soft: var(--atp-journey-category-announcements-audio-surface);
}

.journey-category--people-groups,
[data-tool-category="people-groups"] {
  --node-accent: var(--atp-journey-category-people-groups-accent);
  --node-soft: var(--atp-journey-category-people-groups-surface);
}

.journey-category--extensions-destinations,
[data-tool-category="extensions-destinations"] {
  --node-accent: var(--atp-journey-category-extensions-destinations-accent);
  --node-soft: var(--atp-journey-category-extensions-destinations-surface);
}

.journey-category--external-integrations,
[data-tool-category="external-integrations"] {
  --node-accent: var(--atp-journey-category-external-integrations-accent);
  --node-soft: var(--atp-journey-category-external-integrations-surface);
}

.journey-category--voicemail-capture,
[data-tool-category="voicemail-capture"] {
  --node-accent: var(--atp-journey-category-voicemail-capture-accent);
  --node-soft: var(--atp-journey-category-voicemail-capture-surface);
}

.journey-category--end-failure,
[data-tool-category="end-failure"] {
  --node-accent: var(--atp-journey-category-end-failure-accent);
  --node-soft: var(--atp-journey-category-end-failure-surface);
}

.node-icon,
.tool-icon,
.journey-trace__icon {
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--node-soft, var(--accent-soft));
  color: var(--node-accent, var(--accent-strong));
}

.pbx-object-icon {
  display: block;
  width: 1em;
  height: 1em;
}

.node-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  font-size: 24px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--atp-text-primary) 28%, transparent);
}

.node-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 1px;
}

.node-copy small,
.tool-group > span,
.toolbox-helper,
.floating-inspector small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.node-copy strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 19.5px;
  font-weight: 760;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-copy em {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13.8px;
  font-style: normal;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-status {
  position: absolute;
  right: 12px;
  top: 9px;
  color: var(--text-quiet);
  font-size: 12px;
}

.node-port {
  position: absolute;
  top: calc(var(--node-height) / 2 - 9px);
  width: 18px;
  height: 18px;
  border: 2px solid var(--surface-solid);
  border-radius: 999px;
  background: var(--node-accent, var(--accent));
  box-shadow: 0 0 0 2px var(--node-soft, var(--accent-ring));
}

.node-port--input {
  left: -9px;
}

.node-port--output {
  right: -9px;
}

.node-port-label {
  position: absolute;
  min-width: 54px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  color: var(--text-muted);
  box-shadow: var(--shadow-card);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

.journey-studio[data-layout-profile="portrait"] .node-port--input {
  left: calc(50% - 9px);
  top: -9px;
}

.journey-studio[data-layout-profile="portrait"] .node-port--output {
  left: calc(50% - 9px);
  right: auto;
  top: auto;
  bottom: -9px;
}

.journey-node.is-compatible .node-port--input {
  box-shadow: 0 0 0 8px var(--node-soft, var(--accent-ring));
}

.journey-node.is-destination-compatible {
  border-color: color-mix(in srgb, var(--node-accent, var(--accent)) 68%, var(--border-strong));
  box-shadow: 0 0 0 6px var(--node-soft, var(--accent-ring)), var(--shadow-node);
  cursor: crosshair;
}

.journey-node.is-destination-compatible::before {
  content: "Choose";
  position: absolute;
  left: 14px;
  top: -12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--node-accent, var(--accent));
  box-shadow: var(--shadow-card);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.journey-node.is-toolbox-drop-target {
  border-color: var(--atp-brand-highlight);
  box-shadow: 0 0 0 6px var(--atp-selection-background), var(--shadow-node);
}

.journey-node.is-destination-incompatible {
  opacity: 0.34;
  cursor: not-allowed;
}

.journey-node.is-newly-placed { animation: journey-node-place .24s ease-out; }
@keyframes journey-node-place { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

.visual-member-group {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  --member-branch-gap: 12px;
  --member-bar-height: 18px;
  gap: var(--member-branch-gap);
  justify-items: center;
  pointer-events: none;
}

.visual-member-group--queue {
  --node-accent: var(--queue);
  --node-soft: var(--queue-soft);
}

.visual-member-group--ring_group {
  --node-accent: var(--ring-group);
  --node-soft: var(--ring-group-soft);
}

.visual-member-connector {
  position: relative;
  width: max(1px, calc((var(--member-columns) - 1) * (var(--member-card-width) + 12px)));
  min-width: 1px;
  height: var(--member-bar-height);
  border-top: 2.8px solid color-mix(in srgb, var(--accent) 50%, var(--text-muted));
}

.visual-member-connector::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -19px;
  width: 2.8px;
  height: 19px;
  background: color-mix(in srgb, var(--accent) 50%, var(--text-muted));
  transform: translateX(-50%);
}

.visual-member-grid {
  display: grid;
  grid-template-columns: repeat(var(--member-columns), var(--member-card-width));
  gap: 12px;
}

.visual-member-node,
.visual-member-empty {
  position: relative;
  min-height: 76px;
  display: grid;
  align-content: center;
  border: 1px solid color-mix(in srgb, var(--node-accent, var(--accent)) 14%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  color: var(--text);
  box-shadow: var(--shadow-card);
  pointer-events: auto;
}

.visual-member-node::before,
.visual-member-empty::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc((var(--member-bar-height) + var(--member-branch-gap)) * -1);
  width: 2.8px;
  height: calc(var(--member-bar-height) + var(--member-branch-gap));
  background: color-mix(in srgb, var(--accent) 50%, var(--text-muted));
  transform: translateX(-50%);
}

.visual-member-node {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  padding: 12px 13px;
}

.visual-member-node__icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--extension-soft);
  color: var(--extension);
  font-size: 13px;
}

.visual-member-node__copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.visual-member-node strong,
.visual-member-node small,
.visual-member-empty {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-member-node strong {
  color: var(--text-strong);
  font-size: 15.5px;
  font-weight: 760;
  line-height: 1.15;
}

.visual-member-node small,
.visual-member-empty {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.2;
}

.visual-member-node.is-disabled {
  opacity: 0.68;
  background: color-mix(in srgb, var(--surface-solid) 86%, var(--danger) 3%);
}

.visual-member-node--summary {
  grid-template-columns: 1fr;
  justify-items: start;
  background: color-mix(in srgb, var(--node-soft, var(--accent-soft)) 42%, var(--surface-solid));
}

.visual-member-empty {
  min-height: 55px;
  place-items: center;
  padding: 10px 16px;
  color: color-mix(in srgb, var(--danger) 72%, var(--text-muted));
  text-align: center;
  background: color-mix(in srgb, var(--danger) 4%, var(--surface-solid));
}

.visual-member-group.is-parent-selected .visual-member-node,
.visual-member-group.is-parent-selected .visual-member-empty {
  border-color: color-mix(in srgb, var(--node-accent, var(--accent)) 32%, var(--border));
}
.connector-path--preview { stroke: var(--atp-journey-path-active); stroke-width: 3; stroke-dasharray: 7 5; }
.catalogue-action { width: 100%; margin: 12px 0 4px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-solid); color: var(--text); text-align: left; cursor: pointer; }
.chooser-helper { margin: 2px 0 12px; color: var(--text-muted); font-size: 12px; }
.object-choice-list { display: grid; gap: 7px; max-height: 250px; overflow: auto; }
.object-choice { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.object-choice:hover { border-color: var(--accent); }
.object-choice.is-disabled { opacity: .45; cursor: not-allowed; }
.object-choice__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--surface-soft); color: var(--accent); font-weight: 700; }
.object-choice strong, .object-choice small { display: block; }
.object-choice small { margin-top: 2px; color: var(--text-muted); font-size: 11px; text-transform: capitalize; }

.extension-choice {
  min-height: 58px;
  display: grid;
  grid-template-columns: 20px 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 54%, transparent);
  cursor: pointer;
}

.extension-choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.extension-choice strong,
.extension-choice small {
  display: block;
}

.extension-choice strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extension-choice small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.extension-choice.is-selected {
  border-color: color-mix(in srgb, var(--queue) 48%, var(--border));
  background: var(--queue-soft);
}

.is-selecting-destination .journey-node:hover {
  transform: none;
}

.floating-toolbox,
.floating-inspector,
.canvas-chrome {
  position: absolute;
  z-index: 20;
}

.floating-toolbox {
  left: 28px;
  top: 28px;
  width: 248px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-tool);
  touch-action: none;
  overscroll-behavior: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, left 160ms ease, right 160ms ease, top 160ms ease, width 160ms ease;
}

.floating-toolbox[data-toolbox-state="docked-right"] {
  left: auto;
  right: 28px;
}

.floating-toolbox[data-toolbox-state="floating"] {
  cursor: default;
}

.floating-toolbox.is-dragging,
.floating-toolbox[data-toolbox-state="floating"] .toolbox-head {
  cursor: grab;
}

.floating-toolbox.is-dragging .toolbox-head {
  cursor: grabbing;
}

.floating-toolbox.is-dragging {
  border-color: var(--atp-brand-highlight);
  box-shadow: 0 0 0 3px var(--atp-selection-background), var(--shadow-tool);
}

.floating-toolbox.is-collapsed {
  width: 112px;
  padding: 12px;
}

.floating-toolbox[data-toolbox-density="compact"] {
  width: 232px;
}

.floating-toolbox[data-toolbox-density="icon"] {
  width: 198px;
}

html[data-theme="dark"] .floating-toolbox {
  background: color-mix(in srgb, var(--node-surface-solid) 78%, var(--node-surface));
}

.generated-preview-panel {
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 20;
  width: 300px;
  max-height: calc(100% - 56px);
  display: grid;
  gap: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: color-mix(in srgb, var(--node-surface-solid) 94%, transparent);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-tool);
}

.preview-panel-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.2;
}

.preview-panel-head p {
  margin: 9px 0 0;
  color: var(--text);
  font-size: 13px;
}

.preview-journey-switcher,
.preview-object-summary {
  display: grid;
  gap: 10px;
}

.preview-journey-link {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.preview-journey-link.is-selected {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.preview-journey-link strong,
.preview-object-summary h3 {
  color: var(--text-strong);
}

.preview-journey-link span {
  color: var(--text-muted);
  font-size: 12px;
}

.preview-object-summary section {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.preview-object-summary h3 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-object-summary ul {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.preview-object-summary li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  color: var(--text);
  font-size: 13px;
}

.preview-object-summary small {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: capitalize;
}

.preview-build-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-solid) 88%, var(--accent-ring));
}

.preview-build-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 14px;
}

.preview-build-card p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.preview-build-card form {
  margin: 0;
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-journeys-page {
  display: grid;
  gap: 26px;
}

body:not(:has(.studio-shell)):has(.customer-journeys-page) {
  min-width: 0;
  overflow: auto;
}

.customer-journeys-head {
  align-items: flex-end;
}

.customer-journeys-head p {
  max-width: 680px;
  margin: 0;
  color: var(--text);
}

.customer-journeys-create {
  white-space: nowrap;
}

.customer-journeys-page .background-page-action {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 8px;
}

.customer-journeys-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.customer-journeys-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-journeys-section__head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
  letter-spacing: 0;
}

.customer-journeys-draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.customer-journey-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-width: 0;
  overflow: visible;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-solid) 96%, var(--atp-surface-elevated));
  box-shadow: var(--shadow-card);
}

.customer-journey-card > * {
  min-width: 0;
}

.customer-journey-card--live {
  padding: 26px;
}

.customer-journey-card__accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--atp-status-success-border);
}

.customer-journey-card--draft .customer-journey-card__accent {
  background: var(--atp-status-warning-border);
}

.customer-journey-card__header,
.customer-journey-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.customer-journey-card__header {
  align-items: flex-start;
}

.customer-journey-card__footer {
  align-items: flex-end;
}

.customer-journey-card h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 25px;
  line-height: 1.08;
}

.customer-journey-card--live h2 {
  font-size: 31px;
}

.customer-journey-card__header p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--text);
}

.customer-journey-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 850;
}

.customer-journey-status--live {
  border-color: var(--atp-status-success-border);
  background: var(--atp-status-success-background);
}

.customer-route-trace {
  display: block;
  width: 100%;
  inline-size: 100%;
  min-width: 0;
  max-width: 100%;
  max-inline-size: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  color: var(--text-strong);
}

.customer-journey-trace-link {
  display: block;
  min-width: 0;
  text-decoration: none;
  border-radius: 18px;
}

.customer-journey-trace-link:hover .customer-route-trace__grid rect,
.customer-journey-trace-link:focus-visible .customer-route-trace__grid rect {
  stroke: color-mix(in srgb, var(--accent) 34%, var(--border));
}

.customer-route-trace--feature {
  min-height: 0;
}

.customer-route-trace--compact {
  min-height: 0;
}

.customer-route-trace__grid rect {
  fill: color-mix(in srgb, var(--surface-soft) 92%, var(--atp-surface-elevated));
  stroke: color-mix(in srgb, var(--border) 82%, transparent);
}

.customer-route-link,
.customer-route-arrow {
  fill: none;
  stroke: color-mix(in srgb, var(--text-muted) 46%, transparent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.customer-route-node__shape {
  fill: var(--surface-solid);
  stroke: var(--border);
  filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--atp-surface-overlay) 8%, transparent));
}

.customer-route-node__icon {
  color: var(--accent);
}

.customer-route-node__label {
  fill: var(--text-strong);
  font-size: 12px;
  font-weight: 780;
  dominant-baseline: middle;
}

.customer-route-node--incoming_call .customer-route-node__icon { color: var(--atp-journey-category-call-entry-accent); }
.customer-route-node--announcement .customer-route-node__icon { color: var(--atp-journey-category-announcements-audio-accent); }
.customer-route-node--route_menu .customer-route-node__icon { color: var(--atp-journey-category-routing-decisions-accent); }
.customer-route-node--team .customer-route-node__icon,
.customer-route-node--ring_group .customer-route-node__icon,
.customer-route-node--queue .customer-route-node__icon { color: var(--atp-journey-category-people-groups-accent); }
.customer-route-node--voicemail .customer-route-node__icon { color: var(--atp-journey-category-voicemail-capture-accent); }
.customer-route-node--closing_message .customer-route-node__icon { color: var(--atp-journey-category-announcements-audio-accent); }

.customer-journey-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0;
}

.customer-journey-meta div {
  display: grid;
  gap: 2px;
}

.customer-journey-meta dt {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-journey-meta dd {
  margin: 0;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 760;
}

.customer-journey-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.customer-journey-action,
.customer-journey-overflow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
}

.customer-journey-action--primary {
  border-color: transparent;
  background: var(--atp-action-primary-background);
  color: var(--atp-action-primary-foreground);
}

.customer-journey-overflow {
  width: 34px;
  padding: 0;
}

.customer-journey-overflow-menu {
  position: relative;
}

.customer-journey-overflow-menu summary {
  list-style: none;
}

.customer-journey-overflow-menu summary::-webkit-details-marker {
  display: none;
}

.customer-journey-menu-panel {
  position: absolute;
  z-index: 5;
  right: 0;
  top: calc(100% + 7px);
  min-width: 154px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-float);
}

.customer-journey-menu-item {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 740;
  text-align: left;
}

.customer-journey-menu-item:hover,
.customer-journey-menu-item:focus-visible {
  background: var(--danger-soft);
  color: var(--danger);
}

.customer-journey-menu-item--danger {
  color: var(--danger);
}

.customer-journey-action:focus-visible,
.customer-journey-overflow:focus-visible,
.customer-journeys-history summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 46%, transparent);
  outline-offset: 3px;
}

.customer-journeys-history {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-card);
}

.customer-journeys-history[open] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 18px;
}

.customer-journeys-history summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--text-strong);
  font-weight: 850;
  cursor: pointer;
}

.customer-journeys-history[open] summary,
.customer-journeys-history[open] > p {
  grid-column: 1 / -1;
}

.customer-journeys-history[open] > .customer-journey-card {
  margin: 0 18px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.customer-journeys-history summary small {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}

.customer-journeys-history p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--text-muted);
}

.customer-journeys-empty,
.customer-journey-create-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-solid) 96%, var(--atp-surface-elevated));
  box-shadow: var(--shadow-card);
}

.customer-journeys-empty h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 24px;
}

.customer-journeys-empty p {
  max-width: 620px;
  margin: 0;
  color: var(--text);
}

.customer-journey-create-form {
  max-width: 680px;
}

.customer-journey-create-form .field-label {
  gap: 5px;
  font-size: 12px;
}

.customer-journey-create-form .field-label input {
  height: 34px;
  min-height: 0;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
}

.customer-journey-create-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 86px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-solid);
  color: var(--text-strong);
  font: 14px/1.35 var(--font);
}

.customer-journey-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-journey-create-form .customer-journey-action {
  height: 32px;
  min-height: 0;
  padding: 0 12px;
  line-height: 1;
}

.published-warning {
  display: grid;
  gap: 5px;
  max-width: 760px;
  padding: 16px 18px;
  border: 1px solid var(--atp-status-warning-border);
  border-radius: 16px;
  background: var(--atp-status-warning-background);
  color: var(--atp-status-warning-foreground);
}

.published-warning strong {
  color: var(--text-strong);
}

.created-journeys-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
  gap: 16px;
}

.created-journey-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-card);
}

.created-journey-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.created-journey-card h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 22px;
}

.journey-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--atp-status-warning-border);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--atp-status-warning-border) 24%, transparent);
}

.created-journey-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.created-journey-card dl div {
  display: grid;
  gap: 4px;
}

.created-journey-card dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.created-journey-card dd {
  margin: 0;
  color: var(--text);
}

.journey-status-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--atp-status-warning-background);
  color: var(--atp-status-warning-foreground);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .customer-journeys-draft-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .customer-route-node__label {
    font-size: 11px;
  }

  .customer-route-node__icon {
    font-size: 12px;
  }

  .customer-route-link,
  .customer-route-arrow {
    stroke-width: 1.75;
  }
}

@media (max-width: 760px) {
  body:not(:has(.studio-shell)):has(.customer-journeys-page) .app-background-page {
    padding: 22px 18px;
  }

  .customer-journey-card__header,
  .customer-journey-card__footer,
  .background-page-head {
    display: grid;
  }

  .customer-journey-actions {
    justify-content: flex-start;
  }

}

@media (max-width: 480px) {
  .menu-replay-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .menu-replay-row span {
    text-align: left;
  }
}

@media (max-width: 520px) {
  body:not(:has(.studio-shell)):has(.customer-journeys-page) .app-background-page {
    padding: 18px 12px;
  }

  .customer-journey-card,
  .customer-journey-card--live {
    gap: 14px;
    padding: 16px;
  }

  .customer-route-node__label {
    display: none;
  }

  .customer-route-node__icon {
    font-size: 14px;
  }

  .customer-route-node__shape {
    filter: none;
  }

  .customer-journeys-history[open] {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .customer-route-row--2 {
    display: none;
  }
}

.journey-studio--preview .node-port--output {
  cursor: default;
}

.journey-studio--preview .journey-node:hover {
  transform: translateY(-2px);
}

.toolbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
}

.toolbox-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbox-head button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-solid) 74%, transparent);
  color: var(--text-muted);
}

.toolbox-head button:hover {
  border-color: var(--atp-brand-highlight);
  background: var(--atp-action-secondary-hover);
  color: var(--atp-action-secondary-foreground);
}

.toolbox-title {
  display: block;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.toolbox-body {
  display: grid;
  gap: 0;
}

.toolbox-search {
  position: relative;
  display: grid;
  align-items: center;
  margin-top: 8px;
}

.toolbox-search__icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.toolbox-search input {
  width: 100%;
  min-height: 34px;
  padding: 0 11px 0 30px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  color: var(--text-strong);
  font-size: 12px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tool-grid--continuous {
  margin-top: 10px;
}

.tool-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  gap: 0;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-solid) 94%, transparent), color-mix(in srgb, var(--surface-solid) 68%, transparent));
  color: var(--text);
  text-align: center;
  cursor: grab;
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
  box-shadow: var(--shadow-card);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.tool-item:hover {
  border-color: color-mix(in srgb, var(--node-accent, var(--atp-brand-highlight)) 54%, var(--border));
  background: color-mix(in srgb, var(--surface-solid) 90%, var(--node-soft, var(--atp-selection-background)));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--node-accent, var(--atp-brand-highlight)) 12%, transparent);
  transform: translateY(-1px);
}

.tool-item:focus-visible {
  border-color: var(--atp-brand-highlight);
  outline: 3px solid var(--atp-focus-ring);
  outline-offset: 2px;
}

.tool-item:active {
  border-color: var(--node-accent, var(--atp-brand-highlight));
  background: color-mix(in srgb, var(--surface-solid) 78%, var(--node-soft, var(--atp-selection-background)));
  cursor: grabbing;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  font-size: 22px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--atp-text-primary) 32%, transparent);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.tool-item:hover .tool-icon {
  transform: scale(1.03);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--atp-text-primary) 32%, transparent),
    0 6px 18px color-mix(in srgb, var(--node-accent, var(--atp-brand-highlight)) 18%, transparent);
}

.tool-item--disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.tool-item--disabled:hover {
  border-color: var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-solid) 94%, transparent), color-mix(in srgb, var(--surface-solid) 68%, transparent));
  box-shadow: var(--shadow-card);
  transform: none;
}

.floating-toolbox[data-toolbox-density="compact"] .tool-item {
  min-height: 52px;
}

.floating-toolbox[data-toolbox-density="compact"] .tool-icon {
  width: 40px;
  height: 40px;
}

.floating-toolbox[data-toolbox-density="icon"] .tool-grid {
  gap: 5px;
}

.floating-toolbox[data-toolbox-density="icon"] .tool-item {
  min-height: 48px;
  padding: 6px 4px;
  border-radius: 13px;
}

.floating-toolbox[data-toolbox-density="icon"] .tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 13px;
}

.toolbox-info-card {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: min(280px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 97%, transparent);
  box-shadow: var(--shadow-float);
  animation: inspector-in 120ms ease-out;
  pointer-events: none;
}

.toolbox-info-card[hidden] {
  display: none !important;
}

.toolbox-info-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--node-soft, color-mix(in srgb, var(--accent) 10%, var(--surface-solid)));
  color: var(--node-accent, var(--accent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--atp-text-primary) 32%, transparent);
}

.toolbox-info-card__copy {
  display: grid;
  gap: 4px;
}

.toolbox-info-card__copy strong {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 700;
}

.toolbox-info-card__copy p,
.toolbox-info-card__copy small {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.toolbox-info-card__copy small {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.canvas-chrome {
  left: 325px;
  right: 24px;
  top: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  pointer-events: none;
}

.canvas-chrome > * {
  pointer-events: auto;
}

.zoom-controls,
.floating-inspector {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-card);
}

.zoom-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  padding: 6px;
  border-radius: 999px;
}

.zoom-controls button {
  min-width: 38px;
  box-shadow: none;
}

.zoom-controls [data-zoom="fit"] {
  min-width: 86px;
}

.floating-inspector {
  min-width: 218px;
  max-width: 390px;
  padding: 12px;
  max-height: var(--inspector-max-height, calc(100dvh - 120px));
  display: grid;
  min-height: 0;
  overflow: hidden;
  border-radius: 19px;
  background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
  box-shadow: var(--shadow-float);
  animation: inspector-in 140ms ease-out;
  z-index: 40;
}

.floating-inspector.floating-inspector--announcement {
  width: min(292px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
}

.floating-inspector.floating-inspector--compact {
  width: min(308px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
}

.floating-inspector[hidden] {
  display: none;
}

.journey-welcome-panel {
  position: absolute;
  right: 28px;
  top: 104px;
  z-index: 35;
  display: grid;
  gap: 18px;
  width: min(380px, calc(100% - 56px));
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-float);
}

.journey-welcome-panel h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 26px;
  line-height: 1.1;
}

.journey-welcome-panel p {
  margin: 8px 0 0;
}

@media (max-width: 760px) {
  .journey-welcome-panel {
    inset: auto 16px 18px 16px;
    width: auto;
  }
}

.floating-inspector::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 31px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.floating-inspector[data-inspector-placement="left"]::before {
  left: auto;
  right: -7px;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.floating-inspector[data-inspector-placement="top"]::before,
.floating-inspector[data-inspector-placement="bottom"]::before,
.floating-inspector[data-inspector-placement="manual"]::before {
  display: none;
}

.floating-inspector__panel {
  min-height: 0;
  max-height: calc(var(--inspector-max-height, calc(100dvh - 120px)) - 24px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.floating-inspector__header,
.floating-inspector__footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.floating-inspector__body {
  min-height: 0;
  display: grid;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1px 2px 2px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--text-muted) 38%, transparent) transparent;
}

.floating-inspector__body::-webkit-scrollbar {
  width: 8px;
}

.floating-inspector__body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-muted) 34%, transparent);
}

.inspector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
  cursor: grab;
}

.inspector-head h2 {
  margin: 2px 0 2px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.inspector-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.inspector-head button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
}

.inspector-head button:hover {
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  color: var(--text-strong);
}

.inspector-actions {
  display: grid;
  gap: 5px;
  padding-top: 6px;
}

.inspector-actions button {
  min-height: 38px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.inspector-actions button:hover {
  background: var(--accent-soft);
  color: var(--text-strong);
}

.inspector-actions button.is-primary {
  background: var(--atp-action-primary-background);
  color: var(--atp-action-primary-foreground);
  font-weight: 720;
}

.inspector-actions button.is-primary:hover {
  background: var(--atp-action-primary-hover);
}

.inspector-actions button.is-primary:active {
  background: var(--atp-action-primary-active);
}

.inspector-actions button.is-danger {
  color: var(--danger);
}

.inspector-actions button.is-danger:hover {
  background: var(--danger-soft);
}

.inspector-summary {
  padding: 4px 2px 10px;
}

.inspector-summary dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.inspector-summary dl > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-solid) 54%, transparent);
}

.inspector-summary dt {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 760;
}

.inspector-summary dd {
  overflow: hidden;
  margin: 0;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-menu-summary h3 {
  margin: 10px 4px 7px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.route-menu-summary dt span {
  margin-left: 4px;
  color: var(--text-quiet);
  font-weight: 620;
}

.holiday-preview-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 0;
  list-style: none;
}

.holiday-preview-list li {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 62%, transparent);
}

.holiday-preview-list strong {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 720;
}

.holiday-preview-list span,
.holiday-preview-list small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.business-hours-editor,
.route-menu-editor,
.announcement-editor,
.extension-editor,
.ring-group-editor,
.queue-editor,
.destination-selection,
.object-chooser,
.unsaved-confirmation,
.create-object-editor {
  display: grid;
  gap: 0;
  min-width: 0;
  min-height: 0;
}

.announcement-editor {
  min-width: 0;
}

.ring-group-editor,
.queue-editor {
  min-width: 0;
}

.route-menu-quick-create {
  min-width: 0;
}

.route-menu-editor {
  min-width: 350px;
}

.menu-replay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
}

.menu-replay-row strong {
  min-width: 0;
  color: var(--text-strong);
  font-size: 12px;
  line-height: 1.35;
}

.menu-replay-row span {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.floating-toolbox.is-collapsed .toolbox-search,
.floating-toolbox.is-collapsed .tool-grid,
.floating-toolbox.is-collapsed .toolbox-info-card {
  display: none;
}

.floating-toolbox.is-collapsed .toolbox-head {
  justify-content: space-between;
}

.field-label,
.day-fieldset {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 760;
}

.field-label input {
  min-height: 26px;
  width: 100%;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  color: var(--text-strong);
}

.field-label input[type="checkbox"] {
  width: 16px;
  min-height: 26px;
  margin: 0;
  padding: 0;
  justify-self: start;
  accent-color: var(--accent);
}

.field-label input:not([type="checkbox"]) {
  min-height: 38px;
}

.business-hours-editor > .field-label > span:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.business-hours-editor > .field-label > span input[type="checkbox"] {
  width: 16px;
  min-height: 26px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  flex: 0 0 16px;
}

.business-hours-editor .checkbox-field {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.business-hours-editor .field-label--checkbox {
  display: block;
  min-height: 26px;
  width: fit-content;
}

.business-hours-editor .checkbox-field > span {
  display: inline;
}

.field-label textarea {
  width: 100%;
  min-height: 122px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  color: var(--text-strong);
  resize: vertical;
}

.field-label select {
  min-height: 38px;
  width: 100%;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  color: var(--text-strong);
}

.announcement-template-field {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.announcement-template-toolbar {
  display: flex;
  justify-content: flex-start;
}

.announcement-template-toolbar .workspace-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
}

.announcement-template-editor {
  width: 100%;
  min-height: 122px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  color: var(--text-strong);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.announcement-template-field textarea[data-announcement-template-source] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.announcement-template-editor:focus {
  outline: 2px solid color-mix(in srgb, var(--announcement) 42%, transparent);
  outline-offset: 2px;
}

.announcement-template-token {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 1px 2px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--announcement) 24%, var(--border));
  background: var(--announcement-soft);
  color: var(--announcement);
  font-size: 12px;
  font-weight: 760;
  vertical-align: baseline;
}

.announcement-template-token:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--announcement) 52%, transparent);
  outline-offset: 2px;
}

.announcement-template-token--unavailable,
.announcement-template-token--unknown {
  border-color: var(--atp-status-warning-border);
  background: var(--atp-status-warning-background);
  color: var(--atp-status-warning-foreground);
}

.announcement-variable-picker {
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
  box-shadow: var(--shadow-float);
}

.announcement-variable-picker[hidden] {
  display: none;
}

.announcement-variable-group {
  display: grid;
  gap: 8px;
}

.announcement-variable-group h4 {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 760;
}

.announcement-variable-list {
  display: grid;
  gap: 8px;
}

.announcement-variable-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  color: var(--text-strong);
  text-align: left;
}

.announcement-variable-option strong {
  font-size: 12px;
}

.announcement-variable-option small {
  color: var(--text-muted);
  font-size: 11px;
}

.announcement-variable-option:focus-visible,
.announcement-variable-option:hover {
  border-color: color-mix(in srgb, var(--announcement) 32%, var(--border));
  background: color-mix(in srgb, var(--announcement-soft) 44%, var(--surface-solid));
}

.announcement-template-preview {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
}

.announcement-template-preview__body {
  display: grid;
  gap: 8px;
}

.announcement-template-preview__body strong {
  font-size: 12px;
  color: var(--text-strong);
}

.announcement-template-preview__body p {
  margin: 0;
  color: var(--text-strong);
  line-height: 1.45;
}

.announcement-template-preview__meta {
  color: var(--text-muted);
  font-size: 11px;
}

.announcement-template-preview__warnings {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 17px;
  color: var(--atp-status-warning-foreground);
  font-size: 11px;
}

.queue-members,
.queue-strategy {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.queue-members legend,
.queue-strategy legend {
  width: 100%;
  padding: 0 0 7px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 760;
}

.queue-members legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.queue-members legend span {
  min-width: 0;
}

.queue-members legend button {
  min-height: 30px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--queue) 42%, var(--border));
  border-radius: 999px;
  background: var(--queue-soft);
  color: var(--queue);
  font-size: 11px;
  font-weight: 760;
}

.queue-member-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.queue-member-card {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-solid) 54%, transparent);
}

.queue-member-card > span:nth-child(2) {
  min-width: 0;
}

.queue-member-card strong,
.queue-member-card small {
  display: block;
}

.queue-member-card strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-member-card small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.queue-member-card button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--danger) 38%, var(--border));
  border-radius: 999px;
  background: transparent;
  color: var(--danger);
  font-size: 11px;
  font-weight: 720;
}

.choice-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-chip span {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 62%, transparent);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 720;
  text-align: center;
}

.choice-chip input:checked + span {
  border-color: color-mix(in srgb, var(--queue) 48%, var(--border));
  background: var(--queue-soft);
  color: var(--queue);
}

.choice-chip input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.advanced-settings {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-solid) 42%, transparent);
}

.advanced-settings summary {
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 740;
  cursor: pointer;
}

.advanced-settings p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.menu-options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.menu-options legend {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 7px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 760;
}

.menu-options legend button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 760;
}

.menu-option-row,
.menu-special-outcomes {
  display: grid;
  gap: 8px;
}

.menu-option-row {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-solid) 54%, transparent);
}

.menu-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.menu-option-head strong {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-row-actions {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.choice-row-actions button {
  min-height: 28px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 720;
}

.choice-row-actions button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.choice-row-actions button.is-danger {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--border));
  color: var(--danger);
}

.menu-option-fields {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
}

.field-label--key input {
  text-align: center;
}

.destination-control {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 9px 8px 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-solid) 62%, transparent);
}

.destination-control > span {
  min-width: 0;
  display: grid;
}

.destination-control small {
  font-size: 9px;
}

.destination-control strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.destination-control button {
  min-height: 32px;
  flex: 0 0 auto;
  max-width: 100%;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 720;
}

.ring-group-editor .queue-member-card {
  grid-template-columns: 34px minmax(0, 1fr);
}

.ring-group-editor .queue-member-card .choice-row-actions {
  grid-column: 2;
  justify-content: flex-start;
}

.destination-selection {
  min-width: 300px;
}

.selection-guidance {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 2px 0 12px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  border-radius: 14px;
  background: var(--accent-soft);
}

.selection-guidance > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-solid);
  color: var(--accent);
  font-size: 18px;
}

.selection-guidance p {
  margin: 0;
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 680;
}

.selection-guidance p small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}

.day-fieldset {
  padding: 0;
  border: 0;
}

.day-fieldset legend {
  padding: 0 0 7px;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.day-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.day-chip span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 62%, transparent);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 720;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.day-chip input:checked + span {
  border-color: color-mix(in srgb, var(--routing) 48%, var(--border));
  background: var(--routing-soft);
  color: var(--routing);
}

.day-chip:hover span {
  transform: translateY(-1px);
}

.day-chip input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.schedule-week {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
}

.schedule-week legend {
  padding: 0 0 2px;
}

.schedule-day {
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 60%, transparent);
}

.schedule-day-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-day-head > strong {
  flex: 1 1 auto;
  color: var(--text-strong);
  font-size: 12px;
}

.schedule-day-head .field-label {
  flex: 1 1 auto;
}

.schedule-copy-target {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 10px;
}

.schedule-copy-target input {
  width: 14px;
  min-height: 14px;
  margin: 0;
}

.schedule-periods {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.schedule-period {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.schedule-period input {
  min-height: 32px;
  width: 100%;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-solid);
  color: var(--text-strong);
}

.schedule-closed {
  color: var(--text-muted);
  font-size: 11px;
  font-style: italic;
}

.form-error {
  margin: -2px 0 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  font-weight: 680;
}

.form-success {
  margin: -2px 0 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--success) 13%, var(--surface));
  color: var(--success);
  font-size: 12px;
  font-weight: 680;
}

.field-error {
  margin: -2px 0 0;
  color: var(--danger);
  font-size: 11px;
  font-weight: 680;
}

.unsaved-confirmation {
  min-width: 314px;
}

.unsaved-confirmation .inspector-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.unsaved-confirmation .inspector-head h2 span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
  font-weight: 860;
}

.unsaved-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  margin-top: 12px;
}

.unsaved-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 720;
}

.unsaved-actions button.is-primary {
  border-color: color-mix(in srgb, var(--atp-action-primary-background) 52%, var(--border));
  background: var(--atp-action-primary-background);
  color: var(--atp-action-primary-foreground);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--atp-action-primary-background) 22%, transparent);
}

.unsaved-actions button.is-primary:hover,
.editor-actions button[type="submit"]:hover {
  background: var(--atp-action-primary-hover);
}

.unsaved-actions button.is-primary:active,
.editor-actions button[type="submit"]:active {
  background: var(--atp-action-primary-active);
}

.unsaved-actions button.is-danger {
  border-color: color-mix(in srgb, var(--danger) 44%, var(--border));
  background: var(--danger-soft);
  color: var(--danger);
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.editor-actions button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}

.editor-actions button[type="submit"] {
  border-color: color-mix(in srgb, var(--atp-action-primary-background) 52%, var(--border));
  background: var(--atp-action-primary-background);
  color: var(--atp-action-primary-foreground);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--atp-action-primary-background) 22%, transparent);
}

.workspace-button--primary:disabled,
.inspector-actions button.is-primary:disabled,
.unsaved-actions button.is-primary:disabled,
.editor-actions button[type="submit"]:disabled {
  opacity: 1;
  border-color: var(--atp-border-disabled);
  background: var(--atp-surface-subdued);
  color: var(--atp-text-secondary);
  box-shadow: none;
}

.editor-actions button:hover {
  transform: translateY(-1px);
}

.journey-trace {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  white-space: nowrap;
}

.journey-trace--thumbnail {
  gap: 6px;
}

.journey-trace__step {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  padding: 6px 11px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.journey-trace--thumbnail .journey-trace__step {
  max-width: 96px;
  padding: 5px 9px 5px 5px;
  font-size: 13px;
}

.journey-trace__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 13px;
}

.journey-trace__icon .pbx-object-icon {
  width: 13px;
  height: 13px;
}

.journey-trace__step--business_hours .journey-trace__icon {
  background: var(--routing-soft);
  color: var(--routing);
}

.journey-trace__step--route_menu .journey-trace__icon {
  background: var(--menu-soft);
  color: var(--menu);
}

.journey-trace__step--queue .journey-trace__icon {
  background: var(--queue-soft);
  color: var(--queue);
}

.journey-trace__step--announcement .journey-trace__icon {
  background: var(--announcement-soft);
  color: var(--announcement);
}

.journey-trace__label {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
}

.journey-trace__arrow,
.journey-trace__ellipsis {
  color: var(--text-muted);
}

.alignment-guide {
  position: absolute;
  z-index: 15;
  width: 1px;
  height: 100%;
  background: var(--atp-brand-highlight);
  opacity: 0.55;
}

@keyframes inspector-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1280px) {
  .client-home-grid {
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .client-home-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "system"
      "attention"
      "journeys"
      "live"
      "working"
      "quick"
      "recent";
  }
}

@media (max-width: 1360px) {
  .studio-header {
    grid-template-columns: minmax(260px, 1fr) auto;
  }

  .studio-button {
    display: none;
  }
}

@media (max-width: 1100px) {
  body:not(:has(.studio-shell)) {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: 100vh;
  }

  .app-nav {
    position: fixed;
    z-index: 60;
    inset: 0 auto 0 0;
    width: min(84vw, 320px);
    overflow-y: auto;
    padding: 24px 22px;
    border-right: 1px solid var(--border-strong);
    border-bottom: 0;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow-float);
  }

  .app-background-page {
    padding-top: 72px;
  }

  .app-nav.is-open {
    transform: translateX(0);
  }

  .app-nav-toggle {
    position: fixed;
    z-index: 70;
    top: 14px;
    right: 14px;
    left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-solid);
    color: var(--text-strong);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    box-shadow: var(--shadow-card);
    cursor: pointer;
  }

  .app-nav-toggle:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }

  .app-nav-toggle__icon {
    font-size: 18px;
    line-height: 1;
  }

  .app-nav-backdrop:not([hidden]) {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: block;
    background: color-mix(in srgb, var(--atp-surface-overlay) 34%, transparent);
  }

  body.app-nav-open {
    overflow: hidden;
  }

  .brand {
    display: flex;
    justify-items: initial;
  }

  .brand-mark small,
  .nav-link,
  .tenant-switcher span,
  .tenant-switcher small {
    font-size: inherit;
  }

  .tenant-switcher {
    margin-top: 18px;
    padding: 10px;
  }

  .tenant-switcher strong {
    font-size: 13px;
  }

  .identity-panel {
    padding: 10px;
  }

  .identity-panel strong,
  .identity-panel button {
    font-size: 13px;
  }

  .studio-header {
    grid-template-columns: minmax(180px, 1fr) minmax(0, auto);
    align-items: start;
    gap: 12px;
    padding: 11px 12px 12px 18px;
  }

  .header-actions {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .workspace-button {
    padding: 0 10px;
  }

  .layout-selector button {
    width: 34px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .app-background-page {
    padding: 72px 18px 34px;
  }

  .studio-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-actions {
    justify-content: flex-start;
  }

  .appearance-preference--compact label span {
    width: 34px;
  }

  .client-home-head {
    display: grid;
  }

  .client-home-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "attention"
      "system"
      "live"
      "working"
      "journeys"
      "quick"
      "recent";
  }

  .client-home-panel {
    height: auto;
  }

  .client-home-status-list li,
  .client-home-attention-list li,
  .client-home-activity-list li,
  .client-home-recent-list li {
    align-items: flex-start;
    flex-direction: column;
  }
}
