:root {
  --rail: 64px;
  --titlebar: 34px;
  --settings-nav-width: clamp(248px, 17.8vw, 328px);
  --ink: #202124;
  --ink-2: #3f4145;
  --muted: #5f6268;
  --faint: #6f7278;
  --canvas: #f7f7f8;
  --page: #f1f2f3;
  --surface: #fff;
  --surface-2: #f6f6f4;
  --surface-3: #eceeed;
  --line: #e2e3e5;
  --line-strong: #cfd1d4;
  --action: #245ce5;
  --action-soft: #eaf1ff;
  --success: #117553;
  --success-soft: #e9f8f1;
  --warning: #8c4d08;
  --warning-soft: #fff4df;
  --risk: #a53646;
  --risk-soft: #f8e9eb;
  --primary-fill: #202124;
  --primary-hover: #35373b;
  --primary-active: #111214;
  --on-primary: #fff;
  --action-fill: #245ce5;
  --on-action: #fff;
  --rail-surface: #f2f2f3;
  --topbar-surface: #f7f7f8;
  --chrome-line: #dedfe1;
  --welcome-surface: #f6f9ff;
  --login-heading: #16223a;
  --login-copy: #53627a;
  --login-surface: rgb(255 255 255 / 88%);
  --login-field: rgb(250 252 255 / 80%);
  --login-border: rgb(153 177 210 / 37%);
  --login-placeholder: #758198;
  --brand: #e8353f;
  --brand-soft: rgb(232 53 63 / 10%);
  --shadow: 0 1px 3px rgb(27 34 42 / 5%);
  --shadow-lg: 0 34px 80px -48px rgb(27 34 42 / 38%);
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: var(--body);
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

orb-status {
  --orb-neutral: var(--ink-2);
  --orb-info: var(--action);
  --orb-success: var(--success);
  --orb-warning: var(--warning);
  --orb-danger: var(--risk);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; height: 100%; margin: 0; }
body { overflow: hidden; color: var(--ink); background: var(--canvas); font: 13px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgb(36 92 229 / 12%); }
button:focus-visible { outline: 3px solid rgb(36 92 229 / 24%); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 50; top: 8px; left: 8px; padding: 9px 12px; border-radius: 8px; color: var(--on-primary); background: var(--primary-fill); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.app-shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: var(--titlebar) minmax(0, 1fr); width: 100%; height: 100dvh; overflow: hidden; }
/* Keep the loading shell stable during preflight; confirmed onboarding supplies its own brand bar. */
body:is(.tenant-onboarding, .onboarding-preflight:not(:has(.loading-view:not([hidden])))) .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
body:is(.tenant-onboarding, .onboarding-preflight:not(:has(.loading-view:not([hidden])))) .command-rail,
body:is(.tenant-onboarding, .onboarding-preflight:not(:has(.loading-view:not([hidden])))) .topbar,
body:is(.tenant-onboarding, .onboarding-preflight:not(:has(.loading-view:not([hidden])))) .rail-tooltip,
body:is(.tenant-onboarding, .onboarding-preflight:not(:has(.loading-view:not([hidden])))) .system-notification-banner { display: none; }
body:is(.tenant-onboarding, .onboarding-preflight:not(:has(.loading-view:not([hidden])))) .workspace { grid-column: 1; grid-row: 1; grid-template-rows: minmax(0, 1fr); }
body:is(.tenant-onboarding, .onboarding-preflight:not(:has(.loading-view:not([hidden])))) .stage { grid-row: 1; }
.command-rail { position: relative; z-index: 3; display: flex; min-height: 0; grid-row: 2; flex-direction: column; align-items: center; padding: 14px 8px 12px; background: var(--rail-surface); box-shadow: inset -1px 0 var(--chrome-line); }
.brand { position: relative; display: grid; width: 40px; height: 40px; place-items: center; overflow: visible; margin-bottom: 18px; padding: 0; border: 0; border-radius: 14px; background: transparent; }
.brand img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand:hover { opacity: .88; }
.brand:active { opacity: .72; }
.rail-nav { display: grid; width: 100%; min-height: 0; gap: 6px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.rail-nav::-webkit-scrollbar { display: none; }
.rail-spacer { min-height: 8px; flex: 1; }
.rail-button { position: relative; display: grid; width: 44px; min-width: 44px; height: 44px; min-height: 44px; place-items: center; margin: 0 auto; padding: 0; border: 0; border-radius: 11px; color: var(--muted); background: transparent; }
.rail-button:hover, .account-entry:hover { color: var(--ink); }
.rail-button.active, .account-entry.active { color: var(--action); background: transparent; }
.rail-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rail-tooltip { position: fixed; z-index: 20; max-width: min(320px, calc(100vw - 92px)); padding: 7px 10px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 8px; color: var(--surface); background: var(--ink); box-shadow: 0 8px 24px rgb(27 34 42 / 24%); font-size: 12px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; pointer-events: none; white-space: normal; }
.rail-icon { display: grid; width: 26px; height: 26px; place-items: center; font: 600 24px/1 var(--display); }
.rail-icon svg { width: 26px; height: 26px; fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.rail-button.active .rail-glyph-body, .account-entry.active .rail-glyph-body { fill: currentcolor; }
.rail-button.active .rail-glyph-detail, .account-entry.active .rail-glyph-detail { stroke: var(--surface); }
.rail-button.active .rail-glyph-hole, .account-entry.active .rail-glyph-hole { fill: var(--surface); stroke: var(--surface); }
.account-entry { position: relative; display: grid; width: 44px; height: 44px; min-height: 44px; place-items: center; padding: 0; border: 0; border-radius: 11px; color: var(--muted); background: transparent; }
.rail-button:active .rail-icon, .account-entry:active .rail-icon { opacity: .65; }
.avatar { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: #fff; background: #5f6268; font-size: 10px; }

.workspace { display: grid; grid-column: 2; grid-row: 1 / span 2; grid-template-rows: var(--titlebar) minmax(0, 1fr); min-width: 0; min-height: 0; overflow: hidden; }
.workspace.system-notifications-enabled { grid-template-rows: var(--titlebar) max-content minmax(0, 1fr); }
.system-notifications-enabled .topbar { grid-row: 1; }
.system-notifications-enabled .stage { grid-row: 3; }
.system-notification-entry { margin-bottom: 8px; }
.system-notification-count { position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid var(--rail-surface); border-radius: 10px; color: #fff; background: #ef4858; font-size: 10px; font-weight: 600; line-height: 13px; }
.system-notification-banner { display: flex; grid-row: 2; align-items: center; gap: 10px; min-width: 0; min-height: 40px; padding: 0 20px; border-bottom: 1px solid var(--line); color: var(--warning); background: var(--warning-soft); font-size: 12px; }
.system-notification-banner[data-tone="danger"] { color: var(--risk); background: var(--risk-soft); }
.system-notification-banner[data-tone="info"] { color: var(--action); background: var(--action-soft); }
.system-notification-banner button { border: 0; color: inherit; background: transparent; font-size: 12px; }
.system-notification-banner-copy { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; padding: 4px 0; text-align: left; line-height: 1.7; }
.system-notification-banner-copy strong { flex: none; max-width: 50%; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.system-notification-banner-copy span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .88; }
.system-notification-banner-action, .system-notification-banner-more { flex: none; min-height: 30px; padding: 4px 7px; }
.system-notification-banner-more { border-left: 1px solid currentcolor !important; }
.system-notification-banner-dismiss { display: grid; flex: none; width: 28px; height: 28px; place-items: center; padding: 0; font-size: 20px !important; line-height: 1; }
.system-notification-center { position: fixed; inset: 0 0 0 auto; width: 438px; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; overflow: hidden; border: 0; border-left: 1px solid var(--line); color: var(--ink); background: var(--surface); box-shadow: -12px 0 40px rgb(31 43 60 / 10%); font: 13px/1.55 var(--body); }
.system-notification-center[open] { display: flex; flex-direction: column; }
.system-notification-center::backdrop { background: rgb(24 37 55 / 12%); }
.system-notification-header { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 23px 24px 18px; }
.system-notification-header h2 { margin: 0; font-size: 19px; font-weight: 650; line-height: 28px; }
.system-notification-header p { margin: 6px 0 0; color: var(--faint); font-size: 12px; }
.system-notification-close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 22px; line-height: 1; }
.system-notification-close:hover { background: var(--surface-2); }
.system-notification-toolbar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px 14px; color: var(--faint); font-size: 12px; }
.system-notification-link { padding: 3px 0; border: 0; color: var(--action); background: transparent; font-size: 12px; }
.system-notification-link:disabled { color: var(--faint); cursor: default; }
.system-notification-tabs { display: flex; flex: none; gap: 17px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.system-notification-tab { min-width: 0; padding: 11px 4px 12px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; white-space: normal; }
.system-notification-tab[aria-selected="true"] { border-bottom-color: var(--action); color: var(--action); font-weight: 600; }
.system-notification-tab:first-child { flex-shrink: 0; white-space: nowrap; }
.system-notification-list { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px 24px; background: var(--canvas); }
.system-notification-card { position: relative; margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); transition: border-color .15s, background .15s; }
.system-notification-card:hover { border-color: var(--line-strong); }
.system-notification-hit:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.system-notification-hit { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 9px; background: transparent; }
.system-notification-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.system-notification-title { min-width: 0; margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.system-notification-title.tone-info { color: var(--muted); }
.system-notification-title.tone-danger { color: var(--muted); }
.system-notification-meta time { flex: none; color: var(--faint); font-size: 11px; }
.system-notification-copy { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-line; }
.system-notification-card-footer { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-top: 14px; }
.system-notification-read-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.system-notification-card:not(.is-read) .system-notification-title::before { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--action); content: ""; vertical-align: middle; }
.system-notification-read-state::before { width: 6px; height: 6px; border-radius: 50%; background: #ef4858; content: ""; }
.system-notification-card.is-read .system-notification-read-state::before { background: transparent; }
.system-notification-card.is-read .system-notification-title { font-weight: 500; }
.system-notification-action { position: relative; z-index: 2; min-height: 28px; padding: 3px 0; border: 0; border-radius: 4px; color: var(--action); background: transparent; font-size: 12px; text-align: left; }
.system-notification-action:hover { border-color: var(--action); }
.system-notification-action:disabled, .system-notification-hit:disabled { cursor: wait; }
.system-notification-empty { padding: 64px 20px; color: var(--faint); text-align: center; }
.system-notification-empty strong { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.system-notification-empty p { margin: 10px 0 0; font-size: 12px; }
.system-notification-error, .system-notification-status { flex: none; margin: 0; padding: 10px 24px; color: var(--warning); background: var(--warning-soft); font-size: 12px; }
.system-notification-error { color: var(--risk); background: var(--risk-soft); }
.web-update-notice {
  position: fixed;
  z-index: 30;
  inset: 48px 12px auto auto;
  width: min(320px, calc(100% - 24px));
  box-sizing: border-box;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.web-update-notice p { margin: 0; }
.web-update-notice-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.web-update-notice-actions button { min-height: 32px; padding: 0 12px; }
.web-update-notice-actions button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.system-notification-toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--risk); background: var(--surface); box-shadow: var(--shadow-lg); }
@media (max-width: 520px) {
  .system-notification-tabs { gap: 8px; padding: 0 16px; }
  .system-notification-tab { flex: 1; font-size: 12px; }
  .system-notification-list { padding: 14px 16px 20px; }
  .system-notification-banner-more { display: none; }
}
.topbar { position: relative; z-index: 6; display: flex; min-width: 0; align-items: center; gap: 10px; padding: 0 12px 0 14px; color: var(--muted); background: var(--topbar-surface); box-shadow: inset 0 -1px var(--chrome-line); font-size: 11px; -webkit-app-region: drag; }
.window-title { min-width: 0; overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.topbar-projection { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; clip-path: inset(50%); white-space: nowrap; pointer-events: none; }
.page-identity { min-width: 210px; }
.page-identity h1 { margin: 0; font: 700 20px/1.2 var(--display); letter-spacing: -.025em; }
.page-identity p { margin: 3px 0 0; color: var(--faint); font-size: 12px; }
.scope-summary { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.scope-summary > span:last-child { display: grid; min-width: 0; }
.scope-summary strong { max-width: 170px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.scope-summary small { color: var(--faint); font-size: 11px; }
.scope-mark { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: var(--on-primary); background: var(--primary-fill); font-weight: 760; }
.acceptance-badge { display: flex; min-width: 0; max-width: 320px; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--warning); border-radius: 10px; color: var(--warning); background: var(--warning-soft); }
.acceptance-badge span { flex: none; font-size: 10px; font-weight: 760; letter-spacing: .05em; }
.acceptance-badge strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.topbar-spacer { flex: 1; }
.conversation-force-refresh { display: inline-flex; height: 28px; flex: none; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-2); background: var(--surface); font-size: 11px; font-weight: 680; white-space: nowrap; -webkit-app-region: no-drag; }
.conversation-force-refresh:hover { border-color: var(--action); color: var(--action); }
.conversation-force-refresh:disabled { cursor: wait; opacity: .68; }
.conversation-force-refresh[hidden] { display: none; }
.connection-control { display: inline-flex; width: 180px; height: 26px; flex: none; align-items: center; justify-content: flex-start; gap: 8px; padding: 0 4px; border: 0; border-radius: 0; color: var(--muted); background: transparent; font-size: 11px; line-height: 1; -webkit-app-region: no-drag; }
.connection-control:hover { opacity: .8; }
.connection-control:active { opacity: .65; }
.connection-control:disabled { cursor: wait; opacity: .72; }
.connection-control[data-state="online"] { color: var(--success); }
.connection-control[data-state="unstable"] { color: var(--warning); }
.connection-control[data-state="offline"] { color: var(--risk); }
.connection-control orb-status { display: none; flex: none; }
.connection-control[data-state="checking"] orb-status { display: inline-flex; }
.connection-control[data-state="checking"] .network-icon { display: none; }
.connection-copy { display: flex; min-width: 0; align-items: baseline; gap: 7px; }
.connection-copy strong { font-size: 11px; font-weight: 680; white-space: nowrap; }
.connection-copy small { min-width: 45px; color: currentcolor; font: 600 10px/1 var(--mono); opacity: .72; text-align: right; white-space: nowrap; }
.network-icon, .network-icon svg { display: block; width: 17px; height: 17px; flex: none; }
.network-icon svg { overflow: visible; fill: currentcolor; }
.network-wave, .network-slash { fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; }
.network-slash { display: none; stroke-width: 2.2; }
.connection-control[data-state="unstable"] .network-wave--outer { opacity: .18; }
.connection-control[data-state="unstable"] .network-wave--middle { opacity: .45; }
.connection-control[data-state="offline"] .network-wave, .connection-control[data-state="offline"] circle { opacity: .16; }
.connection-control[data-state="offline"] .network-slash { display: block; opacity: 1; }
.status-pill { display: inline-flex; min-height: 30px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 680; white-space: nowrap; }
button.status-pill { background: var(--surface); }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentcolor; }
.status-pill.neutral { color: var(--muted); background: var(--surface-2); }
.status-pill.success { color: var(--success); border-color: color-mix(in srgb, var(--success) 24%, var(--line)); background: var(--success-soft); }
.status-pill.warning { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 24%, var(--line)); background: var(--warning-soft); }
.status-pill.error { color: var(--risk); border-color: color-mix(in srgb, var(--risk) 24%, var(--line)); background: var(--risk-soft); }
.navigation-status-slot { display: flex; width: 150px; height: 26px; flex: none; align-items: center; justify-content: flex-end; }
.status-pill.navigation-status { width: 100%; min-width: 0; min-height: 26px; justify-content: flex-end; overflow: hidden; padding: 0 4px; border: 0; background: transparent; }
.status-pill.navigation-status orb-status { flex: none; }
.status-pill.navigation-status > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.stage { position: relative; display: grid; grid-row: 2; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; overflow: hidden; }
.local-view { min-width: 0; height: 100%; grid-row: 2; overflow: auto; }
.home-wordmark { display: flex; align-items: center; gap: 10px; font-weight: 740; }
.home-wordmark small { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.plain-button, .soft-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 680; }
.plain-button { border: 0; color: var(--muted); background: transparent; }
.plain-button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.soft-button { border: 1px solid transparent; background: var(--surface-3); }
.soft-button:hover { border-color: var(--line-strong); }
.home-setup__story .home-wordmark small, .home-setup__story p, .home-setup__assurance { color: #cfd1d4; }
.text-link { display: flex; min-height: 44px; align-items: center; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 11px; font-weight: 750; }
.primary-button, .outline-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 680; }
.primary-button { border: 1px solid var(--primary-fill); color: var(--on-primary); background: var(--primary-fill); }
.outline-button { border: 1px solid var(--line-strong); background: var(--surface); }
.primary-button:not(:disabled):hover { background: var(--primary-hover); }
.primary-button:not(:disabled):active { background: var(--primary-active); }
.outline-button:not(:disabled):hover { border-color: var(--line-strong); background: var(--surface-2); }
.outline-button:not(:disabled):active { background: var(--surface-3); }
.state-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.state-tag.neutral { color: var(--muted); background: var(--surface-3); }
.state-tag.success { color: var(--success); background: var(--success-soft); }
.state-tag.warning { color: var(--warning); background: var(--warning-soft); }
.state-tag.danger { color: var(--risk); background: var(--risk-soft); }

.settings-view { overflow: hidden; }
.settings-shell {
  --settings-content-max: 924px;
  --settings-content-padding-x: 32px;
  --settings-page-title-size: 28px;
  --settings-page-copy-size: 14px;
  display: grid;
  grid-template-columns: var(--settings-nav-width) minmax(0, 1fr);
  height: 100%;
  font-family: var(--body);
}
.settings-nav { display: flex; min-height: 0; flex-direction: column; overflow: hidden; padding: 18px 10px 20px; border-right: 1px solid var(--line); background: var(--surface-2); }
.settings-nav__back { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 9px; padding: 0 8px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font: 500 15px/20px var(--body); text-align: left; }
.settings-nav__back:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.settings-nav__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.settings-nav__search { display: flex; min-height: 44px; align-items: center; gap: 9px; margin: 12px 0 8px; padding: 0 13px; border: 1px solid transparent; border-radius: 12px; color: var(--faint); background: color-mix(in srgb, var(--ink) 5%, var(--surface-2)); transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease; }
.settings-nav__search:focus-within { border-color: color-mix(in srgb, var(--ink) 26%, transparent); background: var(--canvas); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 7%, transparent); }
.settings-nav__search svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; }
.settings-nav__search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: 400 14px/20px var(--body); }
.settings-nav__search input::placeholder { color: var(--faint); opacity: 1; }
.settings-nav__search input::-webkit-search-cancel-button { opacity: .55; }
.settings-nav__scroll { min-height: 0; flex: 1; overflow: auto; padding-right: 2px; scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent; scrollbar-width: thin; }
.settings-nav__group { display: block; }
.settings-nav__group + .settings-nav__group { margin-top: 10px; }
.settings-nav__group--diagnostics { padding-bottom: 12px; }
.settings-nav__group:not(:has(button:not([hidden]))) { display: none; }
.settings-nav__group h2 { margin: 10px 10px 6px; color: var(--faint); font: 400 15px/20px var(--body); letter-spacing: 0; }
.settings-nav__group button { position: relative; display: flex; width: 100%; min-height: 38px; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 10px; color: var(--ink-2); background: transparent; text-align: left; font: 400 15px/20px var(--body); }
.settings-nav__icon { width: 20px; height: 20px; flex: 0 0 auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.settings-nav__group button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.settings-nav__group button.active { color: var(--ink); background: color-mix(in srgb, var(--ink) 9%, transparent); font-weight: 500; }
.settings-nav__empty { margin: 24px 10px; color: var(--faint); font: 400 14px/20px var(--body); text-align: center; }
.settings-content { min-width: 0; overflow: auto; padding: 34px var(--settings-content-padding-x) 96px; background: var(--surface); }
.settings-panel { width: 100%; max-width: var(--settings-content-max); margin: 0 auto; }
.settings-heading { margin-bottom: 44px; }
.settings-heading h1 { margin: 0; font: 500 var(--settings-page-title-size)/36px var(--body); letter-spacing: -.02em; text-wrap: balance; }
.settings-heading p { max-width: 760px; margin: 8px 0 0; color: var(--muted); font: 400 var(--settings-page-copy-size)/20px var(--body); }
body[data-settings="cloud-connectors"] .settings-content { overflow: hidden; padding: 0; }
.connector-entry-card__identity { display: flex; align-items: center; gap: 14px; }
.connector-entry-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connector-entry-card__actions > button { margin-left: auto; }
.connector-entry-card__actions b { color: var(--muted); font: 500 13px/18px var(--body); }
.connector-install-row { align-items: start; }
.runtime-logo.cloud { font-size: 10px; letter-spacing: .04em; }
.connector-detail-host { width: 100%; max-width: none; min-height: 100%; }
.connector-detail-fallback { max-width: 520px; margin: 64px auto; padding: 0 24px; color: var(--muted); text-align: center; line-height: 1.7; }
.settings-section + .settings-section { margin-top: 44px; }
.settings-section__heading { margin-bottom: 16px; }
.settings-section__heading h2 { margin: 0; font: 500 16px/22px var(--body); }
.settings-section__heading p { max-width: 760px; margin: 5px 0 0; color: var(--muted); font: 400 14px/20px var(--body); }
.settings-group { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.settings-group:has(.settings-dropdown) { overflow: visible; }
.settings-row:has(.settings-dropdown[data-open]) { position: relative; z-index: 2; }
.settings-row { display: grid; min-height: 72px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 14px 18px; }
.settings-row + .settings-row { border-top: 1px solid var(--line); }
.settings-row__copy { display: grid; min-width: 0; gap: 4px; }
.settings-row__copy .state-tag { justify-self: start; }
.settings-row__copy strong { color: var(--ink); font: 500 15px/20px var(--body); }
.settings-row__copy small { color: var(--muted); font: 400 14px/20px var(--body); }
.settings-row .primary-button, .settings-row .outline-button { flex: none; font: 500 14px/20px var(--body); }
.account-password-field { display: grid; grid-template-columns: minmax(130px, 160px) minmax(0, 1fr); align-items: start; gap: 24px; padding: 22px 24px; }
.account-password-field + .account-password-field, .account-password-actions { border-top: 1px solid var(--line); }
.account-password-field > label { display: inline-flex; align-items: baseline; gap: 6px; padding-top: 12px; color: var(--ink); font: 500 15px/20px var(--body); }
.account-password-required { color: var(--risk); }
.account-password-field__body { min-width: 0; }
.account-password-input { position: relative; }
.account-password-input input { width: 100%; min-width: 0; min-height: 46px; padding: 11px 54px 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: var(--surface); font: 400 14px/20px var(--body); }
.account-password-input input::placeholder { color: var(--faint); opacity: 1; }
.account-password-input input:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.account-password-input input[aria-invalid="true"] { border-color: var(--risk); }
.account-password-input .password-visibility { position: absolute; top: 5px; right: 5px; border-radius: 10px; }
.account-password-strength { display: flex; gap: 7px; margin-top: 12px; }
.account-password-strength span { height: 6px; min-width: 0; flex: 1; border-radius: 999px; background: var(--surface-3); transition: background-color 140ms ease; }
.account-password-strength[data-score="1"] span:nth-child(-n+1) { background: var(--risk); }
.account-password-strength[data-score="2"] span:nth-child(-n+2) { background: var(--warning); }
.account-password-strength[data-score="3"] span:nth-child(-n+3) { background: var(--action); }
.account-password-strength[data-score="4"] span:nth-child(-n+4), .account-password-strength[data-score="5"] span { background: var(--success); }
.account-password-help { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.account-password-help small { color: var(--muted); font: 400 13px/18px var(--body); }
.account-password-help small:last-child { flex: none; text-align: right; }
.account-password-field__error { margin: 8px 0 0; color: var(--risk); font: 400 13px/18px var(--body); }
.account-password-actions { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; }
.account-password-actions .primary-button { flex: none; }
.account-password-feedback { display: grid; gap: 4px; min-width: 0; font: 400 14px/20px var(--body); }
#account-password-result { color: var(--success); }
#account-password-error { color: var(--risk); }
.settings-code { color: var(--muted); font: 500 13px/20px var(--mono); white-space: nowrap; }
.settings-inline-back { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; margin: 0 0 24px; padding: 0 10px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font: 500 14px/20px var(--body); }
.settings-inline-back:hover { background: var(--surface-2); }
.settings-inline-back:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.account-summary-identity { display: flex; min-width: 0; align-items: center; gap: 14px; }
#account-tenant { overflow-wrap: anywhere; white-space: normal; }
.profile-mark { width: 42px; height: 42px; flex: none; padding: 0; border: 0; border-radius: 50%; cursor: default; background: var(--surface-2) url("data:image/jpeg;base64,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") center / cover; }
.account-text-action { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--surface); font-weight: 550; cursor: pointer; }
.account-text-action:hover { border-color: var(--muted); }
.account-text-action:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.account-text-action:disabled { cursor: wait; }
.account-text-action:hover, .account-password-link:hover { background-color: var(--surface-2); }
.account-password-link { padding: 7px; border: 0; border-radius: 6px; background: transparent; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.account-password-link::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
#tenant-copy-feedback { position: fixed; z-index: 80; bottom: 26px; left: 50%; transform: translateX(-50%); border-radius: 8px; padding: 7px 14px; color: var(--on-primary); background: var(--primary-fill); }
.login-error { margin: 2px 0 0; padding: 9px 11px; border-radius: 8px; color: var(--risk); background: var(--risk-soft); font-size: 12px; }
.account-logout-error { grid-column: 1 / -1; width: 100%; margin: 0; }
.empty-state { display: grid; max-width: 660px; justify-items: center; margin: 36px auto 0; padding: 44px 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; }
.empty-state > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; color: var(--muted); background: var(--surface-3); font: 700 20px/1 var(--mono); }
.empty-state h2, .empty-state h3 { margin: 18px 0 0; font: 690 18px/1.25 var(--display); }
.empty-state p { max-width: 480px; margin: 9px 0 0; color: var(--muted); line-height: 1.7; }
.empty-state button { margin-top: 20px; }
.runtime-logo { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; color: var(--on-primary); background: var(--primary-fill); font-weight: 760; }
.unavailable-view { display: grid; place-items: center; padding: 30px; }
.loading-view { padding: 28px; background: var(--topbar-surface); }
.loading-frame, .loading-panel { min-height: 100%; padding: clamp(24px, 4vw, 52px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.loading-frame p, .loading-panel p { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.loading-phase { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--muted); }
.loading-phase strong { font-size: 13px; }
.content-skeleton { display: grid; max-width: 960px; gap: 18px; }
.content-skeleton span { display: block; height: 22px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-3) 25%, var(--canvas) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s ease-in-out infinite; }
.content-skeleton span:first-child { width: 34%; height: 34px; }
.content-skeleton span:nth-child(2) { width: 72%; }
.content-skeleton span:nth-child(3) { height: 180px; }
.content-skeleton span:nth-child(4) { width: 58%; }
@keyframes skeleton-loading { to { background-position: -200% 0; } }
.mail-loading-view { display: grid; align-content: safe center; gap: 18px; padding: 28px; }
.mail-loading-view > p { margin: 0; color: var(--muted); text-align: center; }
.mail-loading-shell { display: grid; overflow: hidden; grid-template-columns: minmax(180px, 26%) minmax(0, 1fr); width: min(1080px, 100%); min-height: 520px; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 22px 60px rgb(25 26 28 / 8%); }
.mail-loading-shell aside { display: grid; align-content: start; gap: 16px; padding: 26px 20px; border-right: 1px solid var(--line); background: var(--surface-2); }
.mail-loading-shell aside span, .mail-loading-shell header span, .mail-loading-shell main i { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface-3) 25%, var(--canvas) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s ease-in-out infinite; }
.mail-loading-shell aside span { width: 78%; height: 18px; }
.mail-loading-shell aside span:first-child { width: 100%; height: 42px; }
.mail-loading-shell > div { min-width: 0; }
.mail-loading-shell header { display: flex; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.mail-loading-shell header span { width: 110px; height: 34px; }
.mail-loading-shell header span:first-child { width: 44px; }
.mail-loading-shell main { display: grid; gap: 18px; padding: 28px 24px; }
.mail-loading-shell main i { width: 88%; height: 68px; }
.mail-loading-shell main i:nth-child(2) { width: 72%; }
.mail-loading-shell main i:nth-child(3) { width: 94%; }
.auth-shell-view { padding: 28px; background: var(--page); }
.auth-shell-card { width: min(880px, 100%); min-height: 100%; margin: 0 auto; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.auth-shell-card h2 { margin: 18px 0 0; font: 690 clamp(28px, 4vw, 44px)/1.05 var(--display); letter-spacing: -.04em; }
.auth-shell-card > p { max-width: 620px; margin: 12px 0 32px; color: var(--muted); font-size: 14px; }

@media (max-width: 920px) {
  .status-pill { display: none; }
  .status-pill.navigation-status:not([hidden]) { display: inline-flex; }
  .settings-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .settings-row > button { justify-self: start; }
  .connector-entry-grid { grid-template-columns: 1fr; }
  .account-password-field { grid-template-columns: 1fr; gap: 10px; }
  .account-password-field > label { padding-top: 0; }
}

@media (max-width: 620px) {
  .app-shell { grid-template-columns: 1fr; grid-template-rows: var(--titlebar) minmax(0, 1fr) 66px; }
  .workspace { grid-column: 1; grid-row: 1 / span 2; }
  .command-rail { grid-row: 3; flex-direction: row; padding: 6px 8px; overflow: hidden; box-shadow: inset 0 1px var(--chrome-line); }
  .window-title { display: none; }
  .connection-control { width: 190px; margin-left: auto; }
  .brand, .rail-spacer { display: none; }
  .rail-nav { display: flex; min-width: 0; flex: 1; gap: 2px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
  .rail-nav::-webkit-scrollbar { display: none; }
  .rail-button { min-width: 56px; min-height: 53px; flex: 0 0 56px; }
  .account-entry { width: 56px; min-width: 56px; min-height: 53px; flex: 0 0 56px; gap: 3px; padding: 5px 2px; border: 0; border-radius: 14px; color: var(--muted); background: transparent; font-size: 10px; }
  .account-entry i { display: none; }
  .account-entry .avatar { width: 24px; height: 24px; font-size: 9px; }
  .page-identity { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; clip-path: inset(50%); white-space: nowrap; }
  .scope-summary { max-width: 100%; }
  body[data-acceptance-label="true"] .scope-summary { display: none; }
  .acceptance-badge { max-width: calc(100vw - 116px); }
  .mail-loading-view { padding: 14px 12px 78px; }
  .mail-loading-shell { grid-template-columns: 92px minmax(0, 1fr); min-height: 430px; }
  .mail-loading-shell aside { padding-inline: 12px; }
  .settings-shell { grid-template-columns: 1fr; grid-template-rows: 64px minmax(0, 1fr); }
  .settings-nav { display: block; overflow: hidden; padding: 12px 12px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-nav__back, .settings-nav__search { display: none; }
  .settings-nav__scroll { display: flex; gap: 5px; overflow-x: auto; padding: 0; scrollbar-color: #aeb0b5 transparent; scrollbar-width: thin; }
  .settings-nav__scroll::-webkit-scrollbar { height: 4px; }
  .settings-nav__scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: #aeb0b5; }
  .settings-nav__group { display: flex; flex: 0 0 auto; }
  .settings-nav__group + .settings-nav__group { margin-top: 0; }
  .settings-nav__group--diagnostics { padding-bottom: 0; }
  .settings-nav__group h2 { display: none; }
  .settings-nav__group button { width: auto; flex: 0 0 auto; padding: 0 12px; }
  .settings-nav__group button.active::before { display: none; }
  .settings-nav__empty { display: none; }
  .settings-content { padding: 20px 13px 78px; }
  body[data-settings="cloud-connectors"] .settings-content { padding: 0; }
  .connector-entry-card__actions { align-items: stretch; flex-direction: column; }
  .connector-entry-card__actions > button { margin-left: 0; }
  .account-password-field { padding: 18px; }
  .account-password-help { flex-wrap: wrap; }
  .account-password-actions { align-items: stretch; flex-direction: column; padding: 18px; }
  .account-password-actions .primary-button { align-self: flex-start; }
}

@media (max-height: 600px) {
  .mail-loading-view { gap: 10px; padding: 12px; }
  .mail-loading-shell { min-height: 240px; }
  .mail-loading-shell aside { gap: 10px; padding-block: 14px; }
  .mail-loading-shell header { padding-block: 12px; }
  .mail-loading-shell main { gap: 10px; padding-block: 12px; }
  .mail-loading-shell main i { height: clamp(24px, 6vh, 48px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Homepage: product introduction beside the trusted CRM authentication surface. */
.home-view { height: 100%; overflow-y: auto; background: var(--welcome-surface); }
.employee-welcome { display: grid; grid-template-columns: 52% 48%; min-height: 100%; }
.employee-story { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: 40px clamp(32px, 4.5vw, 80px); background: transparent; }
.employee-story__intro { padding: 24px 0; }
.employee-story h1 { margin: 0; font: 650 clamp(36px, 4vw, 56px)/1.25 var(--display); letter-spacing: -.035em; }
.employee-story__intro > p { max-width: 440px; margin: 24px 0 36px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.employee-journey { display: grid; gap: 24px; list-style: none; padding: 0; margin: 0; }
.employee-journey li { display: flex; align-items: flex-start; gap: 16px; }
.employee-journey li > span { display: grid; flex: 0 0 32px; height: 32px; place-items: center; color: var(--action); border-radius: 50%; background: var(--action-soft); font-weight: 650; }
.employee-journey strong { font-size: 15px; }
.employee-journey p { margin: 5px 0 0; color: var(--muted); line-height: 1.65; }
.employee-story__foot { margin: 0; color: var(--muted); font-size: 12px; }
.employee-login-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 40px; text-align: center; gap: 16px; }
.employee-login-placeholder h2 { margin: 0; }
.employee-login-placeholder p { color: var(--muted); }
.desktop-login-layout { width: min(100%, 442px); }
.desktop-login-brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.desktop-login-brand img { display: block; width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 14px 30px rgb(32 81 153 / 8%), 0 4px 16px rgb(229 63 76 / 7%); object-fit: cover; }
.desktop-login-brand h2 { margin: 18px 0 0; color: var(--login-heading); font: 760 34px/1 var(--display); letter-spacing: -.045em; }
.desktop-login-brand h2 span { color: var(--action); }
.desktop-login-brand p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.desktop-login-form { display: grid; width: 100%; gap: 0; overflow: hidden; border: 1px solid var(--login-border); border-radius: 18px; background: var(--login-surface); box-shadow: 0 24px 60px rgb(47 89 151 / 8%), 0 4px 18px rgb(46 88 150 / 4%); text-align: left; backdrop-filter: blur(16px); }
.desktop-login-form[data-auth-mode="iam"] { padding-top: 24px; }
.desktop-login-form[data-auth-mode="iam"] > [data-login-agreement] { justify-self: end; margin: 0 32px 12px; padding: 0; color: var(--action); font: inherit; font-size: 13px; border: 0; background: transparent; cursor: pointer; }
.desktop-login-form[data-auth-mode="iam"] > [data-login-agreement]:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }

.login-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 22px 32px 0; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.login-mode-tabs button { min-height: 38px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 620; }
.login-mode-tabs button:hover, .login-mode-tabs button:focus-visible { color: var(--action); }
.login-mode-tabs button[aria-selected="true"] { color: var(--action); background: var(--surface); box-shadow: 0 2px 8px rgb(47 89 151 / 9%); }
.login-panel { display: grid; min-height: 274px; gap: 22px; padding: 26px 32px 18px; }
#login-panel-sms { min-height: 0; padding-bottom: 24px; }
.desktop-login-field { display: grid; gap: 8px; color: var(--login-copy); font-size: 12px; font-weight: 610; }
.account-picker > input, .mobile-code-row, .password-input, .login-input-shell { width: 100%; min-height: 57px; border: 1px solid var(--login-border); border-radius: 11px; color: var(--ink-2); background: var(--login-field); outline: none; }
.account-picker > input, .mobile-code-row input, .password-input input, .login-input-shell input { font-size: 17px; line-height: 1.5; }
.desktop-login-field input::placeholder { color: var(--login-placeholder); font-size: inherit; }
.account-picker > input:hover, .mobile-code-row:hover, .password-input:hover, .login-input-shell:hover { border-color: var(--line-strong); }
.account-picker > input:focus, .mobile-code-row:focus-within, .password-input:focus-within, .login-input-shell:focus-within { border-color: var(--action); background: var(--surface); box-shadow: 0 0 0 3px rgb(35 103 221 / 8%); }
.desktop-login-field input:disabled { cursor: wait; color: var(--faint); background: var(--surface-3); }
.login-field-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.login-input-shell { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 16px; }
.login-input-shell input { min-width: 0; height: 55px; padding: 0; border: 0; outline: 0; color: var(--ink-2); background: transparent; }
.password-input { display: grid; grid-template-columns: 20px minmax(0, 1fr) 32px; align-items: center; gap: 12px; padding: 0 10px 0 16px; }
.password-input:has(input:disabled) { background: var(--surface-3); }
.password-input input { min-width: 0; min-height: 55px; padding: 0; border: 0; outline: none; color: var(--ink-2); background: transparent; }
.password-visibility { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.password-visibility:hover { color: var(--ink); background: var(--surface-2); }
.password-visibility:disabled { cursor: wait; opacity: .55; }
.password-visibility svg { width: 20px; height: 20px; fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.password-visibility__hide { display: none; }
.password-visibility[aria-pressed="true"] .password-visibility__show { display: none; }
.password-visibility[aria-pressed="true"] .password-visibility__hide { display: block; }
.mobile-code-row { display: grid; grid-template-columns: 20px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 12px 0 16px; }
.mobile-prefix { padding-right: 11px; border-right: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 620; }
.mobile-code-row input { min-width: 0; min-height: 55px; padding: 0; border: 0; outline: none; color: var(--ink-2); background: transparent; }
.send-code-button { min-width: 82px; min-height: 34px; padding: 0 4px; border: 0; border-radius: 7px; color: var(--action); background: transparent; font-size: 12px; font-weight: 650; }
.send-code-button:hover { background: rgb(28 96 213 / 7%); }
.send-code-button:disabled { cursor: wait; color: var(--faint); }
.dropdown-chevron { display: block; width: 22px; height: 22px; fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.account-picker { position: relative; display: block; }
.account-picker > input { padding: 0 46px 0 48px; }
.account-picker__icon { position: absolute; z-index: 1; top: 18px; left: 16px; }
.account-picker__toggle { position: absolute; top: 50%; right: 9px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 8px; color: var(--muted); background: transparent; transform: translateY(-50%); }
.account-picker__toggle:hover { color: var(--ink); background: var(--surface-2); }
.account-history { position: absolute; z-index: 12; top: calc(100% + 7px); right: 0; left: 0; display: grid; max-height: 224px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 38px rgba(20, 31, 50, .16); }
.account-history__empty { padding: 16px 12px; color: var(--faint); text-align: center; font-size: 12px; font-weight: 500; }
.account-history__list { display: grid; }
.account-history__item { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; border-radius: 8px; }
.account-history__item:hover { background: var(--surface-2); }
.account-history__select, .account-history__delete { min-height: 38px; border: 0; color: var(--ink); background: transparent; }
.account-history__select { overflow: hidden; padding: 0 10px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.account-history__delete { display: grid; place-items: center; border-radius: 7px; color: var(--faint); font-size: 18px; }
.account-history__delete:hover { color: var(--risk); background: var(--risk-soft); }
.remember-login { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; cursor: pointer; }
.remember-login input, .login-agreement > input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.login-checkmark { position: relative; width: 16px; height: 16px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); }
.remember-login input:focus-visible + .login-checkmark, .login-agreement > input:focus-visible + .login-checkmark { box-shadow: 0 0 0 3px rgb(35 103 221 / 10%); }
.remember-login input:checked + .login-checkmark, .login-agreement > input:checked + .login-checkmark { border-color: var(--action-fill); background: var(--action-fill); }
.remember-login input:checked + .login-checkmark::after, .login-agreement > input:checked + .login-checkmark::after { position: absolute; top: 2px; left: 5px; width: 4px; height: 7px; border-right: 2px solid var(--on-action); border-bottom: 2px solid var(--on-action); transform: rotate(45deg); content: ""; }
.password-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.password-options > button { padding: 0; border: 0; color: var(--action); background: transparent; font-size: 12px; font-weight: 600; }
.password-options > button:hover { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.login-agreement { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 8px; margin: 0 32px; padding: 0; border: 1px solid transparent; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.8; cursor: pointer; }
.login-agreement > .login-checkmark { margin-top: 3px; border-radius: 50%; }
.login-agreement[data-invalid="true"] { padding: 6px 8px; border-color: var(--risk); background: var(--risk-soft); }
.login-agreement button { padding: 0; border: 0; color: var(--ink-2); background: transparent; font: inherit; font-weight: 600; }
.login-agreement button:hover { color: var(--action); text-decoration: underline; }
.desktop-login-submit { width: calc(100% - 64px); min-height: 56px; margin: 20px 32px 24px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(101deg, #256be5, #0d53cf); box-shadow: 0 12px 24px rgb(24 91 209 / 18%); font-size: 15px; font-weight: 670; }
.desktop-login-submit:hover { box-shadow: 0 15px 28px rgb(24 91 209 / 24%); filter: saturate(1.05); transform: translateY(-1px); }
.desktop-login-iam { display: grid; gap: 9px; margin: 0 32px 24px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.desktop-login-iam button { min-height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--action); background: var(--welcome-surface); font-size: 14px; font-weight: 650; }
.desktop-login-iam button:hover, .desktop-login-iam button:focus-visible { border-color: var(--action); background: var(--action-soft); }
.desktop-login-iam button:disabled { cursor: wait; opacity: .6; }
.desktop-login-iam p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.desktop-login-iam p[data-kind="error"] { color: var(--risk); }
.desktop-login-submit:active { transform: translateY(0); }
.desktop-login-submit:disabled { cursor: wait; opacity: .68; }
.desktop-login-form > .login-error { margin: -10px 32px 24px; }
.captcha-dialog { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(14, 25, 42, .48); backdrop-filter: blur(3px); }
.captcha-card { display: grid; width: min(100%, 376px); gap: 16px; padding: 22px; border-radius: 18px; background: var(--surface); box-shadow: 0 28px 80px rgba(13, 28, 52, .25); text-align: left; }
.captcha-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.captcha-heading h3, .captcha-heading p { margin: 0; }
.captcha-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.captcha-heading button { width: 30px; height: 30px; border: 0; border-radius: 8px; color: var(--muted); background: var(--surface-2); font-size: 20px; }
.captcha-word-prompt { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.captcha-word-prompt img { display: block; width: 143px; max-width: 100%; height: auto; }
.captcha-stage { position: relative; width: 320px; max-width: 100%; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.captcha-stage img:first-child { display: block; width: 100%; height: auto; user-select: none; }
.captcha-stage > #login-captcha-template { position: absolute; top: 0; left: 0; width: auto; height: auto; pointer-events: none; user-select: none; }
.captcha-stage[data-mode="word"] { cursor: crosshair; }
.captcha-stage:focus-visible { outline: 3px solid rgba(38, 97, 187, .28); outline-offset: 3px; }
.captcha-word-markers { position: absolute; inset: 0; pointer-events: none; }
.captcha-word-marker { position: absolute; display: grid; width: 28px; height: 28px; place-items: center; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; color: #fff; background: rgba(38, 97, 187, .92); box-shadow: 0 3px 10px rgba(13, 28, 52, .28); font-size: 12px; font-weight: 750; }
.captcha-slider { position: relative; display: grid; height: 42px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface-2); font-size: 12px; }
.captcha-slider > span:first-child { position: absolute; z-index: 2; top: 0; left: 0; display: grid; width: 42px; height: 40px; place-items: center; border-radius: 8px; color: var(--on-action); background: var(--action-fill); cursor: grab; font-size: 17px; touch-action: none; }
.captcha-slider > span:first-child:active { cursor: grabbing; }
.captcha-word-actions { display: flex; justify-content: space-between; gap: 12px; }
.captcha-word-actions button { min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 650; }
.captcha-word-actions button:last-child { margin-left: auto; border-color: var(--action); color: var(--on-action); background: var(--action-fill); }
.captcha-word-actions button:disabled { cursor: default; opacity: .45; }
.captcha-status { min-height: 18px; margin: -6px 0 0; color: var(--muted); font-size: 12px; }
.captcha-status[data-error="true"] { color: var(--risk); }
.captcha-refresh { justify-self: end; padding: 0; border: 0; color: var(--action); background: transparent; font-size: 12px; }

body[data-module="home"]:has(#home-welcome:not([hidden])) .command-rail { background: var(--welcome-surface); }
.employee-story h1 { color: var(--login-heading); }
.employee-story .home-wordmark { color: var(--action); }
.employee-story .home-wordmark small { color: var(--muted); }

/* Keep the existing login form legible at the desktop's minimum window width. */
@media (max-width: 1160px) {
  .employee-welcome { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .employee-story { display: none; }
  .employee-login-placeholder { justify-content: flex-start; }
}

.rail-button { position: relative; }
.notification-dot { position: absolute; z-index: 2; top: 4px; right: 4px; display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 5px; border: 2px solid var(--rail-surface); border-radius: 999px; color: #fff; background: var(--brand); font: 750 10px/1 var(--body); font-variant-numeric: tabular-nums; box-shadow: 0 1px 2px rgb(27 34 42 / 18%); }
.notification-dot[hidden] { display: none; }
.brand .notification-dot { top: -5px; right: -5px; }
.notification-badge-menu { position: fixed; z-index: 80; min-width: 136px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 12px 32px rgb(25 30 38 / 18%); }
.notification-badge-menu[hidden] { display: none; }
.notification-badge-menu button { width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.notification-badge-menu button:hover, .notification-badge-menu button:focus-visible { outline: 0; background: var(--surface-2); }
/* Notification preferences use the same full-width settings groups as every other page. */
.notification-settings > .notification-hint { margin: -16px 0 28px; }
.settings-switch { position: relative; display: inline-grid; width: 38px; height: 22px; flex: 0 0 auto; cursor: pointer; }
.settings-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.settings-switch > span { position: relative; border-radius: 999px; background: var(--line-strong); transition: background 140ms ease; }
.settings-switch > span::after { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgb(25 30 38 / 24%); content: ''; transition: transform 140ms ease; }
.settings-switch input:checked + span { background: var(--action); }
.settings-switch input:checked + span::after { transform: translateX(16px); }
.settings-switch input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 3px; }
.settings-switch:has(input:disabled) { cursor: default; opacity: .45; }
.settings-switch input:disabled { cursor: default; }
.general-setting-copy { display: grid; min-width: 0; gap: 5px; }
.general-setting-copy strong { color: var(--ink); font: 500 15px/20px var(--body); }
.general-setting-copy small { max-width: 760px; color: var(--muted); font: 400 14px/20px var(--body); }
.general-setting-control { width: auto; min-width: 148px; margin-top: 0; text-align: right; }
.settings-dropdown { position: relative; width: max-content; min-width: 208px; max-width: 100%; justify-self: end; }
.settings-dropdown-trigger { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font: 500 14px/20px var(--body); cursor: pointer; }
.settings-dropdown-trigger:hover, .settings-dropdown[data-open] .settings-dropdown-trigger { border-color: var(--line); background: var(--surface-2); }
.settings-dropdown-trigger:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.settings-dropdown-trigger svg { flex: 0 0 auto; transition: transform 140ms ease; }
.settings-dropdown[data-open] .settings-dropdown-trigger svg { transform: rotate(180deg); }
.settings-dropdown-menu { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; display: grid; box-sizing: border-box; width: 100%; min-width: 100%; max-height: min(360px, calc(100vh - 120px)); overflow-y: auto; padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 32px rgb(25 30 38 / 18%); text-align: left; }
.settings-dropdown-menu[hidden] { display: none; }
.settings-dropdown-option { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 12px; border: 0; border-radius: 11px; color: var(--ink); background: transparent; font: 500 14px/20px var(--body); text-align: left; cursor: pointer; }
.settings-dropdown-option::after { content: '✓'; color: var(--action); font-weight: 750; opacity: 0; }
.settings-dropdown-option[aria-selected="true"]::after { opacity: 1; }
.settings-dropdown-option:hover { background: var(--surface-2); }
.settings-dropdown-option[aria-selected="true"] { background: var(--surface-3); }
.settings-dropdown-option:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.general-setting-button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-weight: 620; }
.general-setting-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.general-setting-button:not(:disabled):hover { border-color: var(--line-strong); background: var(--surface-2); }
.general-setting-button:disabled { cursor: wait; opacity: .58; }
.general-setting-value { min-width: 148px; color: var(--ink); font-size: 14px; text-align: right; }
.notification-dependent-row { padding-left: 34px; }
.notification-source-status:empty { display: none; }
.notification-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.notification-setting-controls { display: flex; align-items: center; gap: 14px; }
.notification-sound-preview { display: flex; min-height: 38px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 500 14px/20px var(--body); cursor: pointer; }
.notification-sound-preview svg { color: var(--action); }
.notification-sound-preview:hover { background: var(--surface-2); }
.notification-sound-preview:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.notification-sound-preview:disabled { opacity: .5; cursor: default; }
.notification-pause-row button { flex-shrink: 0; }

html[data-color-scheme="dark"] {
  color-scheme: dark;
  --primary-fill: #f1f3f5;
  --primary-hover: #dfe3e8;
  --primary-active: #cbd1d9;
  --on-primary: #181a1e;
  --action-fill: #336ad8;
  --rail-surface: #15171a;
  --topbar-surface: #15171a;
  --chrome-line: #373c44;
  --welcome-surface: #181a1e;
  --login-heading: #f1f3f5;
  --login-copy: #dfe3e8;
  --login-surface: #23262b;
  --login-field: #1e2125;
  --login-border: #505761;
  --login-placeholder: #aeb4bd;
  --ink: #f1f3f5;
  --ink-2: #dfe3e8;
  --muted: #aeb4bd;
  --faint: #9299a3;
  --canvas: #181a1e;
  --page: #15171a;
  --surface: #23262b;
  --surface-2: #1e2125;
  --surface-3: #2d3137;
  --line: #373c44;
  --line-strong: #505761;
  --action: #7ca5ff;
  --action-soft: #202d49;
  --success: #66d2aa;
  --success-soft: #19362d;
  --warning: #f3bd6d;
  --warning-soft: #3a2d1b;
  --risk: #ff9aaa;
  --risk-soft: #43252b;
}
html[data-color-scheme="dark"] .command-rail,
html[data-color-scheme="dark"] .topbar,
html[data-color-scheme="dark"] .settings-nav { background: var(--page); box-shadow: inset -1px 0 var(--line); }
html[data-color-scheme="dark"] .topbar { box-shadow: inset 0 -1px var(--line); }
html[data-color-scheme="dark"] .rail-tooltip { color: var(--ink); background: var(--surface-3); border-color: var(--line-strong); }
html[data-color-scheme="dark"] .scope-summary,
html[data-color-scheme="dark"] .outline-button,
html[data-color-scheme="dark"] .connector-entry-card,
html[data-color-scheme="dark"] .settings-group,
html[data-color-scheme="dark"] .captcha-word-actions button:not(:last-child) { background: var(--surface); }
html[data-color-scheme="dark"] .settings-nav button:hover,
html[data-color-scheme="dark"] .outline-button:not(:disabled):hover { background: var(--surface-3); }
html[data-color-scheme="dark"] .settings-nav button.active { background: #343941; }
html[data-color-scheme="dark"] .rail-button.active .rail-glyph-detail,
html[data-color-scheme="dark"] .account-entry.active .rail-glyph-detail,
html[data-color-scheme="dark"] .rail-button.active .rail-glyph-hole,
html[data-color-scheme="dark"] .account-entry.active .rail-glyph-hole { fill: var(--page); stroke: var(--page); }

@media (max-width: 760px) {
  .general-setting-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 0; }
  .general-setting-control, .general-setting-value { width: 100%; text-align: left; }
  .settings-dropdown { justify-self: stretch; }
  .settings-dropdown-trigger { width: 100%; justify-content: space-between; }
  .settings-dropdown-menu { right: auto; left: 0; width: 100%; }
  .general-setting-button { justify-self: start; }
}

/* Legal reading stays on the shared settings track; original terms wrap without horizontal scrolling. */
.legal-search { margin: 0 0 44px; }
.legal-search input { width: 100%; }
.legal-row { border: 0; width: 100%; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.legal-row:hover { background: var(--surface-2); }
.legal-row:focus-visible { outline: 2px solid var(--action); outline-offset: -3px; }
.legal-row .settings-row__copy { min-width: 0; overflow-wrap: anywhere; }
.legal-row__action { max-width: 350px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.legal-row .settings-code { white-space: normal; overflow-wrap: anywhere; text-align: right; }
.legal-text { margin: 0; padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/20px var(--mono); color: var(--ink); }

.desktop-operation-feedback { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 8px; min-width: 0; max-width: min(520px, calc(100vw - 32px)); color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; font-size: 12px; -webkit-app-region: no-drag; }
.desktop-operation-feedback[hidden] { display: none; }
.desktop-operation-feedback > span { min-width: 0; overflow-wrap: anywhere; max-height: 44px; overflow: auto; }
.desktop-operation-feedback > button { flex: none; min-height: 28px; padding: 3px 7px; }

/* Resource reads follow the compact conversation-list indicator. */
.read-indicator { position: relative; display: inline-block; flex: none; width: 14px; height: 14px; margin-inline-start: 12px; vertical-align: middle; color: var(--accent, #006be6); transform: rotate(45deg); animation: read-indicator-rotate 1.2s linear infinite; }
.read-indicator i { position: absolute; display: block; width: 6px; height: 6px; border-radius: 100%; background: currentColor; opacity: .3; transform: scale(.75); animation: read-indicator-pulse 1s linear infinite alternate; }
.read-indicator i:nth-child(1) { top: 0; left: 0; }
.read-indicator i:nth-child(2) { top: 0; right: 0; animation-delay: .4s; }
.read-indicator i:nth-child(3) { bottom: 0; right: 0; animation-delay: .8s; }
.read-indicator i:nth-child(4) { bottom: 0; left: 0; animation-delay: 1.2s; }
.read-status-copy { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; }
.loading-phase:has(.read-indicator) { justify-content: flex-start; gap: 0; }
.navigation-status:has(.read-indicator) { padding: 0; border: 0; background: transparent; }
@keyframes read-indicator-rotate { to { transform: rotate(405deg); } }
@keyframes read-indicator-pulse { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .read-indicator, .read-indicator i { animation: none; } }

/* Module placeholders share the content regions; authentication visibility stays unchanged. */
[data-view="loading"].loading-view { padding: 0; background: var(--surface); }
[data-view="loading"][data-initial-presentation] { position: absolute; inset: 0; z-index: 25; overflow: hidden; }
[data-view="loading"][data-initial-presentation="failed"] .read-indicator,
[data-startup-loading]:has(.initial-presentation-error) .read-indicator { display: none; }
.initial-presentation-error { position: absolute; z-index: 2; top: 16px; right: 16px; display: flex; align-items: center; gap: 12px; max-width: min(360px, calc(100% - 32px)); padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 4px 16px rgb(0 0 0 / 12%); font: 400 13px/20px var(--body); }
.initial-presentation-error p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.initial-presentation-error .outline-button { flex: none; min-height: 32px; padding: 0 12px; border-radius: 6px; font-size: 12px; line-height: 20px; font-weight: 500; white-space: nowrap; }
@media (max-width: 620px) { .initial-presentation-error { top: 12px; right: 12px; max-width: calc(100% - 24px); gap: 8px; } }
:is([data-view="loading"], [data-startup-loading]) .loading-frame {
  --module-loading-bone: #e7e9ed;
  --module-loading-canvas: #f8fafc;
  --module-loading-well: #f4f4f5;
  --module-loading-border: #e4e7ec;
  --module-loading-track: #e8effb;
  --module-loading-highlight: var(--action);
  --module-loading-reduced: #87b8ff;
  position: relative;
  container-type: inline-size;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--surface);
}
:is([data-view="loading"], [data-startup-loading]) .loading-phase { position: absolute; z-index: 1; inset: 0 0 auto; height: 2px; margin: 0; }
:is([data-view="loading"], [data-startup-loading]) .loading-phase strong,
:is([data-view="loading"], [data-startup-loading]) .read-status-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:is([data-view="loading"], [data-startup-loading]) .read-indicator {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--module-loading-track);
  transform: none;
  animation: none;
}
:is([data-view="loading"], [data-startup-loading]) .read-indicator i { display: none; animation: none; }
:is([data-view="loading"], [data-startup-loading]) .read-indicator i:first-child {
  display: block;
  inset: 0 auto 0 -35%;
  width: 35%;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent 0%, var(--action) 30%, var(--module-loading-highlight) 50%, var(--action) 70%, transparent 100%);
  opacity: 1;
  transform: none;
  animation: module-loading-progress 1.35s linear infinite;
}
.module-loading-layouts { display: block; max-width: none; height: 100%; gap: 0; }
.module-loading-layouts > div { display: none; min-width: 0; height: 100%; overflow: hidden; }
.module-loading-layouts span { width: auto; height: auto; border-radius: 0; background: none; animation: none; }
.module-loading-layouts span:is(:first-child, :nth-child(2), :nth-child(3), :nth-child(4)) { width: auto; height: auto; }
.module-loading-layouts h2 { margin: 0; color: var(--ink); font: 650 18px/28px var(--body); }
.module-loading-layouts .module-loading-bone {
  display: block;
  flex: none;
  width: 100%;
  height: 10px;
  border-radius: 4px;
  background: var(--module-loading-bone);
}
:is(body[data-module="conversations"] [data-view="loading"], [data-startup-loading][data-module="conversations"]) .module-loading-split {
  display: grid;
  grid-template-columns: 354px minmax(0, 1fr) 320px;
}
.module-loading-list, .module-loading-main, .module-loading-profile { min-width: 0; min-height: 0; overflow: hidden; background: var(--surface); }
.module-loading-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.module-loading-heading { display: flex; flex: none; height: 60px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; }
.module-loading-heading [data-loading-label] { display: none; }
:is(body[data-module="conversations"] [data-view="loading"], [data-startup-loading][data-module="conversations"]) [data-loading-label="conversations"],
:is(body[data-module="tasks"] [data-view="loading"], [data-startup-loading][data-module="tasks"]) [data-loading-label="tasks"],
:is(body[data-module="feedback"] [data-view="loading"], [data-startup-loading][data-module="feedback"]) [data-loading-label="feedback"] { display: block; }
.module-loading-layouts .module-loading-action { width: 30px; height: 30px; border-radius: 8px; }
.module-loading-layouts span.module-loading-search {
  display: flex;
  flex: none;
  width: auto;
  height: 34px;
  align-items: center;
  margin: 0 16px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.module-loading-search .module-loading-bone { width: 64%; }
.module-loading-filters { display: flex; flex: none; height: 44px; align-items: center; justify-content: space-between; padding: 0 16px; }
.module-loading-filters .module-loading-bone { width: 48px; }
.module-loading-layouts span.module-loading-tabs { display: flex; flex: none; width: 100%; height: 44px; align-items: center; justify-content: space-around; margin: 0; border-block: 1px solid var(--line); }
.module-loading-tabs .module-loading-bone { width: 45px; }
.module-loading-cards { min-height: 0; flex: 1; overflow: hidden; padding: 10px 9px; background: var(--module-loading-canvas); }
.module-loading-card { min-width: 0; min-height: 125px; margin-bottom: 8px; padding: 14px; border: 1px solid var(--module-loading-border); border-radius: 9px; background: var(--surface); }
.module-loading-card > .module-loading-bone + .module-loading-bone { margin-top: 14px; }
.module-loading-person { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.module-loading-person > div { min-width: 0; flex: 1; }
.module-loading-person > div .module-loading-bone { width: 80%; }
.module-loading-person > div .module-loading-bone:first-child { width: 58%; margin-bottom: 10px; }
.module-loading-layouts .module-loading-avatar { width: 36px; height: 36px; border-radius: 50%; }
.module-loading-layouts .module-loading-tag { width: 40%; height: 19px; margin-top: 14px; }
.module-loading-main { display: flex; flex-direction: column; background: var(--module-loading-well); }
.module-loading-detail-heading { display: flex; flex: none; min-height: 70px; flex-direction: column; justify-content: center; gap: 10px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.module-loading-detail-heading > .module-loading-bone { width: min(55%, 180px); }
.module-loading-detail-heading > .module-loading-bone + .module-loading-bone { width: min(70%, 240px); }
.module-loading-messages { min-height: 0; flex: 1; overflow: hidden; padding: 24px; }
.module-loading-layouts span.module-loading-message-group { display: flex; width: 100%; height: 180px; flex-direction: column; justify-content: space-between; margin: 0 0 32px; }
.module-loading-bubble { display: block; width: min(75%, 350px); padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.module-loading-bubble > .module-loading-bone + .module-loading-bone { width: 67%; margin-top: 10px; }
.module-loading-bubble--right { align-self: flex-end; }
.module-loading-composer { display: flex; flex: none; min-height: 120px; flex-direction: column; gap: 16px; padding: 20px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.module-loading-composer .module-loading-bone:first-child { width: 38%; }
.module-loading-composer .module-loading-bone + .module-loading-bone { height: 40px; border: 1px solid var(--line); background: var(--surface-2); }
.module-loading-profile { border-left: 1px solid var(--line); }
.module-loading-layouts span.module-loading-profile-title { width: 55%; height: 16px; margin: 0; border-radius: 4px; background: var(--module-loading-bone); }
.module-loading-layouts span.module-loading-profile-title[data-i18n] { width: auto; height: auto; background: transparent; color: var(--ink); font-size: 14px; font-weight: 650; }
.module-loading-search-copy { gap: 10px; color: var(--muted); font-size: 13px; }
.module-loading-search-copy [data-loading-label] { display: none; }
.module-loading-layouts .module-loading-search-copy .module-loading-search-icon { display: inline-block; flex: none; position: relative; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; }
.module-loading-search-icon::after { content: ''; position: absolute; width: 5px; height: 1.5px; bottom: -2px; right: -4px; background: currentColor; transform: rotate(45deg); }
.module-loading-filters > span { color: var(--muted); font-size: 12px; }
.module-loading-tabs > span, .module-loading-task-tabs > span { display: flex; align-items: center; justify-content: center; align-self: stretch; flex: 1; color: var(--muted); font-size: 12px; }
.module-loading-tab-active { color: var(--action) !important; box-shadow: inset 0 -2px var(--action); }
.module-loading-profile .module-loading-detail-heading, .module-loading-task-context .module-loading-detail-heading { min-height: 56px; padding: 16px; }
.module-loading-section h3 { margin: 0 0 24px; color: var(--ink); font-size: 15px; font-weight: 650; }
.module-loading-profile-tabs { display: flex; flex: none; height: 39px; align-items: stretch; justify-content: space-around; border-bottom: 1px solid var(--line); }
.module-loading-profile-tabs > span { display: flex; align-items: center; padding: 0 8px; color: var(--muted); font-size: 12px; }
.module-loading-command-strip { display: flex; flex: none; height: 50px; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.module-loading-command-strip > span { display: flex; gap: 12px; }
.module-loading-command-strip .module-loading-bone { width: 90px; height: 27px; border: 1px solid var(--line); background: var(--surface-2); }
.module-loading-command-strip > .module-loading-bone { width: 108px; }
.module-loading-split .module-loading-composer { min-height: 240px; }
.module-loading-split .module-loading-composer .module-loading-bone + .module-loading-bone { flex: 1; }
.module-loading-task-reference-card { display: grid; flex: none; gap: 14px; margin-bottom: 16px; padding: 22px; border: 1px solid var(--module-loading-border); border-radius: 9px; background: var(--surface); }
.module-loading-task-reference-card .module-loading-bone:first-child { height: 16px; }
.module-loading-profile-card { margin: 16px 14px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; }
.module-loading-profile-card > .module-loading-bone { width: 38%; height: 16px; margin-bottom: 26px; }
.module-loading-pair { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0; }
.module-loading-pair .module-loading-bone:first-child { width: 27%; }
.module-loading-pair .module-loading-bone + .module-loading-bone { width: 50%; }
:is(body[data-module="leads"] [data-view="loading"], [data-startup-loading][data-module="leads"]) .module-loading-board { display: block; overflow-y: auto; padding: 24px; background: var(--module-loading-canvas); }
:is(body[data-module="cockpit"] [data-view="loading"], [data-startup-loading][data-module="cockpit"]) .module-loading-cockpit { display: flex; flex-direction: column; padding: 0; background: var(--module-loading-canvas); }
.module-loading-cockpit > h2 { margin-bottom: 24px; }
.module-loading-section { min-width: 0; margin-bottom: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.module-loading-layouts .module-loading-title { width: min(45%, 160px); height: 16px; margin-bottom: 24px; }
.module-loading-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 10px; }
.module-loading-summary .module-loading-bone { width: 75%; }
.module-loading-board-heading { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.module-loading-board-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 180px)); gap: 16px; margin-bottom: 24px; }
.module-loading-board-filters .module-loading-bone { height: 34px; }
.module-loading-table { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.module-loading-table-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr .6fr; gap: 24px; min-height: 60px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.module-loading-table-row:last-child { border-bottom: 0; }
.module-loading-table-head { min-height: 48px; background: var(--surface-2); }
.module-loading-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.module-loading-kpis .module-loading-card { min-height: 112px; margin: 0; padding: 20px; }
.module-loading-kpis .module-loading-title { width: 60%; margin: 24px 0 0; }
.module-loading-layouts > .module-loading-default { display: block; padding: 24px; }
.module-loading-default .module-loading-section > .module-loading-bone { margin: 16px 0; }
:is(body:is([data-module="conversations"], [data-module="tasks"], [data-module="feedback"], [data-module="mail"], [data-module="home"], [data-module="leads"], [data-module="cockpit"]) [data-view="loading"], [data-startup-loading]:is([data-module="conversations"], [data-module="tasks"], [data-module="feedback"], [data-module="mail"], [data-module="home"], [data-module="leads"], [data-module="cockpit"])) .module-loading-default { display: none; }
@keyframes module-loading-progress { to { transform: translateX(390%); } }
@container (max-width: 1135px) {
  :is(body:is([data-module="conversations"]) [data-view="loading"], [data-startup-loading]:is([data-module="conversations"])) .module-loading-split { grid-template-columns: 354px minmax(0, 1fr); }
  .module-loading-profile { display: none; }
}
@container (max-width: 760px) {
  :is(body[data-module="conversations"] [data-view="loading"], [data-startup-loading][data-module="conversations"]) .module-loading-split { grid-template-columns: 300px minmax(0, 1fr); }
  .module-loading-messages { padding: 16px; }
  .module-loading-bubble { width: 92%; }
  .module-loading-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-loading-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .module-loading-table-row { grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
  .module-loading-table-row .module-loading-bone:nth-child(n+4) { display: none; }
}
@container (max-width: 540px) {
  :is(body[data-module="conversations"] [data-view="loading"], [data-startup-loading][data-module="conversations"]) .module-loading-split { grid-template-columns: minmax(0, 1fr); }
  .module-loading-main { display: none; }
  :is(body[data-module="leads"] [data-view="loading"], [data-startup-loading][data-module="leads"]) .module-loading-board { padding: 16px; }
  .module-loading-section { padding: 16px; }
  .module-loading-board-filters { gap: 10px; }
}
/* AI workspace and tickets follow their own page structure. */
:is(body[data-module="home"] [data-view="loading"], [data-startup-loading][data-module="home"]) .module-loading-home { display: block; overflow-y: auto; padding: 24px; background: var(--module-loading-canvas); }
.module-loading-home > h2 { margin-bottom: 18px; }
.module-loading-home h3 { margin: 0; color: var(--ink); font: 600 14px/22px var(--body); }
.module-loading-home .module-loading-bone { background: var(--module-loading-bone); border-radius: 6px; opacity: .82; }
.module-loading-home-company, .module-loading-home-knowledge { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.module-loading-home-company { min-height: 116px; padding: 16px 20px; }
.module-loading-home-section-heading { display: flex; min-height: 28px; align-items: center; gap: 12px; margin-bottom: 16px; }
.module-loading-home-section-heading h3 { flex: none; }
.module-loading-home .module-loading-home-edit { width: 64px; height: 28px; margin-left: auto; border-radius: 8px; }
.module-loading-home-company-fields { display: grid; grid-template-columns: 1.2fr 1fr 1fr .9fr; gap: 24px; }
.module-loading-home-company-fields > div { min-width: 0; }
.module-loading-home .module-loading-home-caption { width: 60px; height: 8px; margin-bottom: 10px; opacity: .65; }
.module-loading-home-company-fields > div > .module-loading-bone:last-child { width: 78%; height: 12px; }
.module-loading-home-company-fields > div:nth-child(2) > .module-loading-bone:last-child { width: 64%; }
.module-loading-home-company-fields > div:nth-child(4) > .module-loading-bone:last-child { width: 58%; }
.module-loading-home-employees { margin-top: 24px; }
.module-loading-home-employees-heading { display: grid; gap: 8px; margin-bottom: 16px; }
.module-loading-home-employees-heading > .module-loading-bone { width: min(72%, 300px); height: 8px; margin: 0; opacity: .65; }
.module-loading-home-employee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.module-loading-home-employee { display: flex; min-width: 0; min-height: 208px; flex-direction: column; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.module-loading-home-employee:first-child { min-height: 320px; }
.module-loading-home-employee-header { display: flex; min-height: 32px; align-items: center; gap: 12px; }
.module-loading-home .module-loading-home-icon { flex: none; width: 32px; height: 32px; border-radius: 8px; }
.module-loading-home-employee-header > .module-loading-bone:nth-child(2) { width: 38%; height: 12px; }
.module-loading-home .module-loading-home-status { width: 64px; height: 20px; margin-left: auto; border-radius: 10px; opacity: .65; }
.module-loading-home-employee-form { display: grid; align-content: center; gap: 12px; flex: 1; min-height: 0; }
.module-loading-home-employee-form .module-loading-home-caption { margin: 0; }
.module-loading-home-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.module-loading-home-options > .module-loading-bone { position: relative; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.module-loading-home-options > .module-loading-bone::before { position: absolute; top: 50%; left: 10px; width: 12px; height: 12px; border: 1px solid var(--line); border-radius: 50%; background: var(--module-loading-canvas); content: ""; transform: translateY(-50%); }
.module-loading-home-options > .module-loading-bone::after { position: absolute; top: 50%; left: 32px; width: 40%; max-width: 110px; height: 8px; border-radius: 4px; background: var(--module-loading-bone); content: ""; transform: translateY(-50%); }
.module-loading-home .module-loading-home-input { position: relative; height: 56px; border: 1px solid var(--line); border-radius: 8px; background: var(--module-loading-canvas); }
.module-loading-home-input::before, .module-loading-home-input::after { position: absolute; left: 12px; height: 7px; border-radius: 4px; background: var(--module-loading-bone); content: ""; opacity: .65; }
.module-loading-home-input::before { top: 16px; width: 68%; }
.module-loading-home-input::after { top: 32px; width: 42%; }
.module-loading-home-employee-summary { display: flex; min-height: 100px; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; border-radius: 8px; background: var(--module-loading-canvas); }
.module-loading-home-employee-summary > .module-loading-bone:nth-child(2) { width: 40%; height: 10px; }
.module-loading-home-employee-summary > .module-loading-bone:nth-child(3) { width: 60%; height: 8px; opacity: .65; }
.module-loading-home-employee > footer { display: flex; justify-content: center; margin-top: auto; }
.module-loading-home .module-loading-home-cta { width: 104px; height: 32px; border-radius: 8px; }
.module-loading-home-knowledge { margin-top: 24px; padding: 20px; }
.module-loading-home .module-loading-home-knowledge-intro { min-width: 0; height: 8px; flex: 1; max-width: 280px; opacity: .65; }
.module-loading-home .module-loading-home-refresh { width: 28px; height: 28px; margin-left: auto; border-radius: 8px; }
.module-loading-home .module-loading-home-create { width: 104px; height: 30px; border-radius: 8px; }
.module-loading-home-knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.module-loading-home-knowledge-card { display: grid; min-width: 0; min-height: 112px; grid-template-columns: 24px minmax(0, 1fr); align-content: start; gap: 12px 10px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.module-loading-home-knowledge-card .module-loading-home-icon { width: 24px; height: 24px; border-radius: 6px; }
.module-loading-home .module-loading-home-knowledge-name { width: 58%; height: 10px; align-self: center; }
.module-loading-home .module-loading-home-knowledge-copy { grid-column: 1 / -1; width: 84%; height: 8px; opacity: .65; }
.module-loading-home .module-loading-home-knowledge-count { grid-column: 1 / -1; width: 56px; height: 8px; }
.module-loading-home-capacity { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.module-loading-home-capacity > .module-loading-bone:first-child { width: 64px; height: 4px; }
.module-loading-home-capacity > .module-loading-bone:last-child { width: 160px; height: 8px; opacity: .65; }
:is(body[data-module="feedback"] [data-view="loading"], [data-startup-loading][data-module="feedback"]) .module-loading-feedback { display: flex; border: 1px solid var(--line); background: var(--module-loading-canvas); }
.module-loading-feedback-list-panel { display: flex; min-width: 0; min-height: 0; flex: 0 0 354px; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); }
.module-loading-feedback-heading { display: flex; min-height: 85px; flex: none; align-items: flex-start; gap: 12px; padding: 16px; }
.module-loading-feedback-heading > div { min-width: 0; flex: 1; }
.module-loading-feedback-heading > div > .module-loading-bone { width: 82%; height: 9px; margin-top: 8px; }
.module-loading-feedback .module-loading-feedback-create { width: 88px; height: 32px; border-radius: 6px; }
.module-loading-feedback-search { display: flex; min-width: 0; flex: none; gap: 8px; margin: 4px 16px 12px; }
.module-loading-feedback-search > .module-loading-bone:first-child { min-width: 0; flex: 1; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--module-loading-canvas); }
.module-loading-feedback .module-loading-feedback-refresh { width: 34px; height: 34px; }
.module-loading-feedback-creator { display: flex; flex: none; align-items: center; gap: 8px; margin: 0 16px 12px; }
.module-loading-feedback-creator > .module-loading-bone:first-child { width: 40px; height: 9px; }
.module-loading-feedback-creator > .module-loading-bone:last-child { min-width: 0; flex: 1; height: 34px; border-radius: 6px; }
.module-loading-feedback-tabs { display: flex; height: 44px; flex: none; align-items: center; justify-content: space-around; gap: 12px; padding: 0 12px; border-block: 1px solid var(--line); }
.module-loading-feedback-tabs > .module-loading-bone { min-width: 0; flex: 1; max-width: 44px; }
.module-loading-feedback-cards { min-height: 0; flex: 1; overflow: hidden; padding: 10px 8px; background: var(--module-loading-canvas); }
.module-loading-ticket-card { padding: 14px; margin-bottom: 8px; border: 1px solid var(--module-loading-border); border-radius: 8px; background: var(--surface); }
.module-loading-ticket-card > header, .module-loading-ticket-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.module-loading-ticket-card > header > .module-loading-bone:first-child { width: 64px; height: 8px; }
.module-loading-ticket-card > header > .module-loading-bone:last-child { width: 44px; height: 18px; }
.module-loading-ticket-card > .module-loading-bone { width: 94%; height: 10px; margin-top: 12px; }
.module-loading-ticket-card > .module-loading-bone + .module-loading-bone { width: 76%; margin-top: 8px; }
.module-loading-ticket-card > footer { margin-top: 14px; }
.module-loading-ticket-card > footer > .module-loading-bone { width: 68px; height: 8px; }
.module-loading-feedback-pagination { display: flex; flex: none; justify-content: center; padding: 12px; background: var(--surface); }
.module-loading-feedback-pagination > .module-loading-bone { width: 156px; height: 24px; }
.module-loading-feedback-detail { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; }
.module-loading-feedback-detail-heading { display: flex; min-height: 93px; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.module-loading-feedback-detail-heading > div { min-width: 0; flex: 1; }
.module-loading-feedback-detail-heading > div > .module-loading-bone:first-child { width: min(64%, 240px); height: 18px; }
.module-loading-feedback-detail-heading > div > .module-loading-bone + .module-loading-bone { width: min(40%, 140px); height: 9px; margin-top: 12px; }
.module-loading-feedback .module-loading-feedback-detail-action { width: 116px; height: 30px; }
.module-loading-feedback-detail-body { display: grid; min-height: 0; align-content: start; gap: 16px; overflow: hidden; padding: 14px 18px; }
.module-loading-ticket-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.module-loading-ticket-section { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.module-loading-ticket-summary > .module-loading-ticket-section { min-height: 99px; }
.module-loading-feedback .module-loading-ticket-caption { width: 100px; height: 10px; }
.module-loading-ticket-summary .module-loading-bone:nth-child(2) { width: 60%; height: 14px; margin-top: 14px; }
.module-loading-ticket-summary .module-loading-bone:nth-child(3) { width: 80%; height: 8px; margin-top: 10px; }
.module-loading-ticket-evidence { display: flex; min-height: 60px; align-items: center; gap: 10px; }
.module-loading-feedback .module-loading-ticket-icon { width: 18px; height: 18px; }
.module-loading-feedback .module-loading-ticket-chevron { width: 12px; height: 8px; margin-left: auto; }
.module-loading-ticket-section > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.module-loading-feedback .module-loading-ticket-chip { width: 58px; height: 22px; }
.module-loading-ticket-task { display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.module-loading-ticket-task > div { display: grid; min-width: 0; flex: 1; gap: 8px; }
.module-loading-ticket-task > div > .module-loading-bone:first-child { width: 64%; }
.module-loading-ticket-task > div > .module-loading-bone:last-child { width: 38%; height: 8px; }
.module-loading-ticket-comment > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.module-loading-ticket-comment > div > .module-loading-bone { width: 80px; height: 8px; }
.module-loading-ticket-comment > .module-loading-bone { width: 88%; margin-bottom: 10px; }
.module-loading-ticket-comment > .module-loading-bone:last-child { width: 64%; }
.module-loading-feedback .module-loading-ticket-composer { height: 62px; margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--module-loading-canvas); }
.module-loading-ticket-discussion > footer { display: flex; justify-content: space-between; margin-top: 12px; }
.module-loading-feedback .module-loading-ticket-send { width: 80px; height: 28px; }
.module-loading-ticket-history > .module-loading-bone + .module-loading-bone { width: 70%; height: 9px; margin-top: 16px; }
@media (max-width: 900px) {
  :is(body[data-module="feedback"] [data-view="loading"], [data-startup-loading][data-module="feedback"]) .module-loading-feedback { flex-direction: column; overflow-y: auto; }
  .module-loading-feedback-list-panel { width: 100%; flex: none; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .module-loading-feedback-cards { max-height: 360px; flex: none; }
  .module-loading-feedback-detail { min-height: 640px; flex: none; }
  .module-loading-feedback-detail-body { overflow: visible; }
  .module-loading-ticket-summary { grid-template-columns: 1fr; }
}
@media (max-width: 700px) { .module-loading-home-knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) {
  :is(body[data-module="home"] [data-view="loading"], [data-startup-loading][data-module="home"]) .module-loading-home { padding: 20px 16px; }
  .module-loading-home-company-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .module-loading-home-employee-grid { grid-template-columns: 1fr; }
  .module-loading-home .module-loading-home-knowledge-intro { display: none; }
}
@media (max-width: 640px) {
  .module-loading-feedback-list-panel { padding-inline: 12px; }
  .module-loading-feedback-detail-heading { padding: 14px 12px; align-items: flex-start; flex-direction: column; }
  .module-loading-feedback-detail-body { padding-inline: 12px; }
}
@media (max-width: 480px) { .module-loading-home-knowledge-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .module-loading-home-company-fields { grid-template-columns: 1fr; } }
html[data-color-scheme="dark"] :is([data-view="loading"], [data-startup-loading]) .loading-frame {
  --module-loading-bone: var(--surface-3);
  --module-loading-canvas: var(--surface-2);
  --module-loading-well: var(--canvas);
  --module-loading-border: var(--line);
  --module-loading-track: var(--action-soft);
  --module-loading-highlight: #edf4ff;
  --module-loading-reduced: var(--action);
}
@media (prefers-reduced-motion: reduce) {
  :is([data-view="loading"], [data-startup-loading]) .read-indicator i:first-child { inset: 0; width: 100%; background: var(--module-loading-reduced); animation: none; }
}

/* Mail regions mirror the account folders, message list and reading pane. */
:is(body[data-module="mail"] [data-view="loading"], [data-startup-loading][data-module="mail"]) .module-loading-mail { display: grid; grid-template-columns: 224px minmax(0, 1fr); background: var(--module-loading-canvas); }
.module-loading-mail-sidebar { display: flex; min-width: 0; min-height: 0; flex-direction: column; padding: 20px 16px; background: var(--surface-2); }
.module-loading-mail-account { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.module-loading-mail-account > div { display: grid; min-width: 0; flex: 1; gap: 8px; }
.module-loading-mail-account > div > .module-loading-bone + .module-loading-bone { width: 80%; height: 8px; }
.module-loading-mail .module-loading-mail-avatar { width: 32px; height: 32px; border-radius: 50%; }
.module-loading-mail .module-loading-mail-icon { width: 16px; height: 16px; }
.module-loading-mail .module-loading-mail-compose { height: 34px; margin: 18px 0 22px; border-radius: 8px; }
.module-loading-mail-folders { min-height: 0; overflow: hidden; }
.module-loading-mail-folder-group + .module-loading-mail-folder-group { margin-top: 24px; }
.module-loading-mail .module-loading-mail-group-label { width: 48px; height: 8px; margin: 0 8px 10px; }
.module-loading-mail-folder { display: flex; min-height: 36px; align-items: center; gap: 12px; padding: 0 8px; border-radius: 7px; }
.module-loading-mail-folder--active { background: var(--module-loading-bone); }
.module-loading-mail-folder--active > .module-loading-bone { background: var(--surface-3); }
.module-loading-mail-folder > .module-loading-bone:nth-child(2) { width: 55%; }
.module-loading-mail .module-loading-mail-count { width: 18px; margin-left: auto; }
.module-loading-mail-panels { display: grid; min-width: 0; min-height: 0; grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); gap: 4px; padding: 4px 4px 4px 0; }
.module-loading-mail-list, .module-loading-mail-reader { min-width: 0; min-height: 0; overflow: hidden; border-radius: 16px; background: var(--surface); }
.module-loading-mail-searchbar { display: flex; align-items: center; gap: 8px; padding: 16px 16px 8px; }
.module-loading-mail .module-loading-mail-toggle { width: 24px; height: 24px; }
.module-loading-mail-search { display: flex; min-width: 0; height: 40px; flex: 1; align-items: center; padding: 0 12px; border: 1px solid var(--module-loading-border); border-radius: 8px; }
.module-loading-mail-search > .module-loading-bone { width: 72%; }
.module-loading-mail-list-tools { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 8px; border-bottom: 1px solid var(--module-loading-border); }
.module-loading-mail-list-tools > .module-loading-bone { width: 90px; }
.module-loading-mail-list-tools > div, .module-loading-mail-reader-tools > div { display: flex; gap: 16px; }
.module-loading-mail-rows { height: calc(100% - 106px); overflow: hidden; padding: 4px 8px; }
.module-loading-mail-row { display: flex; gap: 12px; padding: 18px 8px; border-bottom: 1px solid var(--module-loading-border); }
.module-loading-mail-row > div { display: grid; min-width: 0; flex: 1; gap: 10px; }
.module-loading-mail-row-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.module-loading-mail-row-meta > .module-loading-bone:first-child { width: 48%; }
.module-loading-mail-row-meta > .module-loading-bone + .module-loading-bone { width: 36px; height: 8px; }
.module-loading-mail .module-loading-mail-subject { width: 92%; }
.module-loading-mail .module-loading-mail-snippet { width: 78%; height: 8px; }
.module-loading-mail .module-loading-mail-label { width: 52px; height: 16px; }
.module-loading-mail-row:nth-child(even) .module-loading-mail-subject { width: 76%; }
.module-loading-mail-reader-tools { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--module-loading-border); }
.module-loading-mail-document { height: calc(100% - 60px); overflow: hidden; padding: 26px 28px; }
.module-loading-mail .module-loading-mail-reader-subject { width: 64%; height: 20px; }
.module-loading-mail-sender { display: flex; align-items: center; gap: 12px; margin: 28px 0; padding-bottom: 24px; border-bottom: 1px solid var(--module-loading-border); }
.module-loading-mail-sender > div { display: grid; min-width: 0; flex: 1; gap: 10px; }
.module-loading-mail-sender > div > .module-loading-bone:first-child { width: 58%; }
.module-loading-mail-sender > div > .module-loading-bone + .module-loading-bone { width: 76%; height: 8px; }
.module-loading-mail .module-loading-mail-date { width: 52px; height: 8px; }
.module-loading-mail-body { display: grid; gap: 28px; }
.module-loading-mail-body > .module-loading-bone { width: 24%; }
.module-loading-mail-body > div { display: grid; gap: 14px; }
.module-loading-mail-body > div > .module-loading-bone:nth-child(even) { width: 94%; }
.module-loading-mail-body > div > .module-loading-bone:last-child { width: 68%; }
.module-loading-mail-attachments { display: flex; gap: 12px; margin-top: 32px; }
.module-loading-mail-attachments > div { display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--module-loading-border); border-radius: 8px; }
.module-loading-mail .module-loading-mail-file { width: 24px; height: 30px; }
.module-loading-mail-attachments > div > div { display: grid; min-width: 0; flex: 1; gap: 8px; }
.module-loading-mail-attachments > div > div > .module-loading-bone + .module-loading-bone { width: 60%; height: 8px; }
.module-loading-mail-reply { display: flex; gap: 12px; margin-top: 32px; }
.module-loading-mail-reply > .module-loading-bone { width: 88px; height: 32px; }
@container (max-width: 960px) {
  .module-loading-mail-panels { grid-template-columns: minmax(0, 1fr); }
  .module-loading-mail-reader { display: none; }
}
@container (max-width: 700px) {
  :is(body[data-module="mail"] [data-view="loading"], [data-startup-loading][data-module="mail"]) .module-loading-mail { grid-template-columns: minmax(0, 1fr); }
  .module-loading-mail-sidebar { display: none; }
  .module-loading-mail-panels { padding-left: 4px; }
}

/* Task regions mirror the customer queue, stage workflow, task list and copilot. */
:is(body[data-module="tasks"] [data-view="loading"], [data-startup-loading][data-module="tasks"]) .module-loading-tasks { display: grid; grid-template-columns: 354px minmax(0, 1fr) 320px; }
.module-loading-task-queue, .module-loading-task-context { min-width: 0; min-height: 0; overflow: hidden; background: var(--surface); }
.module-loading-task-queue { display: flex; flex-direction: column; border-right: 1px solid var(--module-loading-border); }
.module-loading-task-search { display: flex; min-height: 34px; align-items: center; margin: 0 18px; padding: 0 12px; border: 1px solid var(--module-loading-border); border-radius: 6px; }
.module-loading-task-search .module-loading-bone { width: 75%; }
.module-loading-task-tabs { display: grid; flex: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; min-height: 44px; align-items: center; padding: 0 16px; border-block: 1px solid var(--module-loading-border); }
.module-loading-task-customers { min-height: 0; flex: 1; overflow: hidden; padding: 10px; background: var(--module-loading-canvas); }
.module-loading-task-customer { margin-bottom: 10px; padding: 14px; border: 1px solid var(--module-loading-border); border-radius: 9px; background: var(--surface); }
.module-loading-task-customer .module-loading-person { margin-bottom: 12px; }
.module-loading-layouts .module-loading-task-badge { width: 42px; height: 18px; border-radius: 4px; }
.module-loading-task-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.module-loading-task-meta > .module-loading-bone { width: 36%; }
.module-loading-task-meta > .module-loading-tag { width: 60px; margin: 0; }
.module-loading-task-detail { display: flex; min-width: 0; min-height: 0; flex-direction: column; background: var(--module-loading-well); }
.module-loading-task-header { display: flex; flex: none; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; border-bottom: 1px solid var(--module-loading-border); background: var(--surface); }
.module-loading-task-header > div { min-width: 0; flex: 1; }
.module-loading-task-header .module-loading-title { width: 65%; margin-bottom: 10px; }
.module-loading-task-header > div > .module-loading-bone:last-child { width: 45%; }
.module-loading-layouts .module-loading-task-contact { width: 90px; height: 34px; border-radius: 6px; }
.module-loading-task-scroll { min-height: 0; flex: 1; overflow: hidden; padding: 14px 18px 24px; }
.module-loading-task-stage { padding: 18px; border: 1px solid var(--module-loading-border); border-radius: 10px; background: var(--surface); }
.module-loading-task-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.module-loading-task-steps > div { display: flex; min-height: 58px; align-items: center; justify-content: center; gap: 8px; padding: 8px; border: 1px solid var(--module-loading-border); border-radius: 8px; }
.module-loading-layouts .module-loading-step-dot { width: 28px; height: 28px; border-radius: 50%; }
.module-loading-task-steps > div > .module-loading-bone:last-child { width: 42%; }
.module-loading-task-goal { margin: 18px 0; padding: 16px; border-radius: 7px; background: var(--module-loading-canvas); }
.module-loading-task-goal .module-loading-title { width: 30%; height: 12px; margin-bottom: 12px; }
.module-loading-task-goal > .module-loading-bone:last-child { width: 85%; }
.module-loading-task-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 6px 0; }
.module-loading-task-facts > div > .module-loading-bone:first-child { width: 50%; margin-bottom: 12px; }
.module-loading-task-section-heading { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 24px; }
.module-loading-task-section-heading > .module-loading-title { width: 90px; margin: 0; }
.module-loading-task-section-heading > div { display: flex; align-items: center; gap: 16px; }
.module-loading-task-section-heading > div > .module-loading-bone:first-child { width: 55px; }
.module-loading-task-item { display: flex; gap: 12px; margin-bottom: 12px; padding: 18px; border: 1px solid var(--module-loading-border); border-radius: 10px; background: var(--surface); }
.module-loading-layouts .module-loading-task-check { width: 20px; height: 20px; border: 1px solid var(--module-loading-border); border-radius: 5px; background: var(--surface); }
.module-loading-task-item > div { min-width: 0; flex: 1; }
.module-loading-task-item .module-loading-task-name { width: 65%; height: 14px; margin: 3px 0 16px; }
.module-loading-task-item > div > .module-loading-bone:nth-child(2) { width: 90%; }
.module-loading-task-item .module-loading-task-meta > .module-loading-bone { min-width: 0; width: auto; flex: 1; }
.module-loading-task-item .module-loading-task-meta > .module-loading-task-badge { width: 42px; flex: 0 0 42px; }
.module-loading-task-context { border-left: 1px solid var(--module-loading-border); }
.module-loading-task-context .module-loading-detail-heading { min-height: 70px; }
.module-loading-task-context .module-loading-title { width: 58%; margin: 0; }
.module-loading-task-context-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: center; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--module-loading-border); }

/* Published cockpit layout: six KPIs and three analysis columns (3 / 2 / 3). */
.module-loading-cockpit-nav { display: flex; flex: none; min-height: 64px; align-items: center; gap: 32px; padding: 0 28px; border-bottom: 1px solid var(--module-loading-border); background: var(--surface); }
.module-loading-cockpit-nav > .module-loading-bone { width: 68px; height: 14px; }
.module-loading-cockpit-canvas { min-height: 0; flex: 1; overflow: auto; padding: 24px 28px 28px; }
.module-loading-cockpit-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.module-loading-cockpit-heading > div:first-child { min-width: 0; flex: 1; }
.module-loading-cockpit-heading h2 { margin-bottom: 10px; }
.module-loading-cockpit-heading > div:first-child > .module-loading-bone { width: min(65%, 210px); }
.module-loading-cockpit-heading > div:last-child { display: flex; align-items: center; gap: 16px; }
.module-loading-layouts .module-loading-cockpit-date { width: 174px; height: 12px; }
.module-loading-kpis .module-loading-card { min-height: 122px; padding: 18px; }
.module-loading-kpis .module-loading-card > .module-loading-bone:first-child { width: 65%; }
.module-loading-layouts .module-loading-kpi-value { width: 42%; height: 26px; margin-top: 18px; }
.module-loading-layouts .module-loading-kpi-meta { width: 72%; height: 8px; margin-top: 14px; }
.module-loading-cockpit-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr); gap: 12px; min-height: 590px; }
.module-loading-cockpit-column { display: grid; min-width: 0; gap: 12px; }
.module-loading-cockpit-column--left, .module-loading-cockpit-column--right { grid-template-rows: repeat(3, minmax(0, 1fr)); }
.module-loading-cockpit-column--center { grid-template-rows: minmax(0, 2fr) minmax(0, 1fr); }
.module-loading-cockpit-panel { min-width: 0; padding: 18px; overflow: hidden; border: 1px solid var(--module-loading-border); border-radius: 10px; background: var(--surface); }
.module-loading-cockpit-panel > .module-loading-title { width: 65%; height: 12px; margin-bottom: 20px; }
.module-loading-heatmap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.module-loading-heatmap .module-loading-bone { height: 16px; border-radius: 3px; }
.module-loading-distribution > div { display: flex; gap: 14px; margin-top: 12px; }
.module-loading-distribution > div > .module-loading-bone:first-child { width: 25%; }
.module-loading-distribution > div > .module-loading-bone:last-child { width: 65%; }
.module-loading-distribution > div:nth-child(2) > .module-loading-bone:last-child { width: 47%; }
.module-loading-distribution > div:nth-child(3) > .module-loading-bone:last-child { width: 56%; }
.module-loading-collaboration { display: flex; justify-content: space-around; gap: 16px; }
.module-loading-layouts .module-loading-ring { width: 72px; height: 72px; border: 12px solid var(--module-loading-bone); border-radius: 50%; background: var(--surface); }
.module-loading-funnel { display: flex; min-height: 260px; flex-direction: column; align-items: center; gap: 12px; padding: 6px 0; }
.module-loading-funnel .module-loading-bone { width: 100%; height: 48px; border-radius: 0; clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%); }
.module-loading-funnel .module-loading-bone:nth-child(2) { width: 80%; }
.module-loading-funnel .module-loading-bone:nth-child(3) { width: 60%; }
.module-loading-funnel .module-loading-bone:nth-child(4) { width: 40%; }
.module-loading-cockpit-email { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 14px; }
.module-loading-cockpit-email > div > .module-loading-bone:nth-child(2) { width: 70%; height: 22px; margin: 16px 0; }
.module-loading-cockpit-email > div > .module-loading-bone:last-child { width: 55%; height: 8px; }
.module-loading-efficiency { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.module-loading-efficiency > div > .module-loading-bone:last-child { width: 55%; height: 20px; margin-top: 14px; }
.module-loading-faq > div { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.module-loading-faq > div > .module-loading-bone:first-child { width: 12px; height: 12px; }
.module-loading-faq > div > .module-loading-bone:last-child { width: 80%; }
.module-loading-faq > div:nth-child(even) > .module-loading-bone:last-child { width: 65%; }
.module-loading-cockpit-night > .module-loading-bone { width: 80%; margin-top: 16px; }
.module-loading-cockpit-night > .module-loading-bone:nth-child(2) { width: 55%; height: 20px; }
@container (max-width: 1320px) {
  :is(body[data-module="tasks"] [data-view="loading"], [data-startup-loading][data-module="tasks"]) .module-loading-tasks { grid-template-columns: 330px minmax(0, 1fr); }
  .module-loading-task-context { display: none; }
}
@container (max-width: 960px) {
  .module-loading-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .module-loading-cockpit-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-loading-cockpit-column--center { grid-column: 2; grid-row: 1; }
  .module-loading-cockpit-column--right { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
}
@container (max-width: 900px) {
  :is(body[data-module="tasks"] [data-view="loading"], [data-startup-loading][data-module="tasks"]) .module-loading-tasks { grid-template-columns: 300px minmax(500px, 1fr); overflow-x: auto; }
}
@container (max-width: 540px) {
  .module-loading-cockpit-nav { gap: 24px; padding-inline: 16px; }
  .module-loading-cockpit-nav > .module-loading-bone { width: 52px; }
  .module-loading-cockpit-canvas { padding: 18px 16px; }
  .module-loading-cockpit-heading { align-items: flex-start; gap: 16px; }
  .module-loading-cockpit-heading > div:last-child { flex-direction: column; align-items: flex-end; }
  .module-loading-layouts .module-loading-cockpit-date { width: 90px; }
  .module-loading-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-loading-cockpit-columns { grid-template-columns: minmax(0, 1fr); }
  .module-loading-cockpit-column--center, .module-loading-cockpit-column--right { grid-column: auto; grid-row: auto; }
  .module-loading-cockpit-column--right { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); }
}
