/* Site-wide neutral, open surfaces. Circles remain only for identity and state. */
html:root body, html:root[data-theme='light'] body.dashboard {
  --radius: 0px;
  --canvas: #f5f5f5; --surface: #fff; --surface-muted: #eaeaea;
  --ink: #242424; --ink-soft: #454545; --muted: #626262;
  --line: #d3d3d3; --line-strong: #929292;
  --accent: #383838; --accent-strong: #202020; --accent-soft: #e7e7e7;
  --glass-fill: rgb(250 250 250 / .7); --glass-raised: rgb(250 250 250 / .97);
  --glass-control: rgb(100 100 100 / .07); --glass-hover: rgb(80 80 80 / .12);
  --glass-edge: rgb(90 90 90 / .25); --glass-primary: #303030;
  --glass-primary-ink: #fff; --shadow: none;
}
html[data-theme='dark'] body, html body.frontpage {
  --canvas: #0c0c0c; --surface: #181818; --surface-muted: #242424;
  --ink: #f1f1f1; --ink-soft: #d0d0d0; --muted: #aaa;
  --line: #363636; --line-strong: #686868;
  --accent: #dedede; --accent-strong: #ededed; --accent-soft: #2c2c2c;
  --glass-fill: rgb(20 20 20 / .56); --glass-raised: rgb(22 22 22 / .97);
  --glass-control: rgb(150 150 150 / .1); --glass-hover: rgb(180 180 180 / .14);
  --glass-edge: rgb(220 220 220 / .19); --glass-primary: #e8e8e8;
  --glass-primary-ink: #181818;
}
html body { background-color: var(--canvas); color: var(--ink); }

/* Remove rounded containers, including nested cards in less frequently used views. */
body :is(section, article, aside, form, fieldset, dialog,
  [class*='card'], [class*='panel'], [class*='surface'],
  [class*='note'], [class*='notice'], [class*='banner'],
  .status-message, .auth-unavailable, .error-state, .empty-state,
  [class*='shell'], .trial-terms, .consent-box, .final-summary, .aside-assurance,
  .reminder-choice, .reminder-preference, .privacy-erasure-confirm,
  .manage-message, .pix-qr-frame, .pix-confirmation-status, .billing-history li,
  .team-person, .retention-table, .ownership-warning, .business-access li,
  .business-access li > a, .txid-box, .confirmation-check, .paid-state,
  .support-placeholder, .support-result, .support-priority li,
  .dead-letter-row, .support-table-wrap,
  .inbox-workspace, .conversation-message, .bubble, .experience, .conversation,
  .home-pulse, .identity-bar, .summary-strip, .plain-summary, .results-metrics,
  .agenda-toolbar, .date-switcher, .schedule-head, .onboarding-guide,
  .privacy-note, .reauth-note, .demo-note, .handoff-notice, .results-coverage,
  .toast, .workspace-menu, .account-menu, .mobile-nav, .workspace-mobile-tabs) {
  border-radius: 0 !important;
  box-shadow: none !important;
}
body :is(button, .button, .pill, .frontpage-login, .nav-cta, select, textarea,
  input:not([type='radio']):not([role='switch'])) {
  border-radius: 0 !important;
  box-shadow: none;
}

/* Content reads as sections and rows, without enclosing card frames. */
body :is(.login-shell, .setup-shell, .login-panel, .setup-content, .booking-surface, .booking-aside,
  .manage-card, .manage-panel, .identity-bar, .settings-surface, .billing-surface,
  .team-surface, .danger-zone, .account-aside, .access-panel, .queue-panel,
  .detail-panel, .summary-strip, .plain-summary, .deleted-state,
  .home-pulse, .manage-account, .agenda-toolbar, .date-switcher, .schedule-panel,
  .inbox-workspace, .list-surface, .editor-panel, .settings-section, .inline-form,
  .channels-list, .privacy-note, .bot-preview-panel, .publish-panel,
  .support-request, .support-context, .results-metrics, .results-panel,
  .activity-surface, .plan-change-panel, .experience, .conversation) {
  background: transparent !important;
  border-inline: 0 !important;
  border-bottom: 0 !important;
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body :is(.inbox-detail-heading, .inbox-list-heading, .conversation-composer,
  .conversation-timeline, .results-panel-heading, .schedule-head,
  .scenario-copy, .conversation-stage, .access-copy) { background: transparent !important; }
body :is(.conversation-message, .bubble.customer) { background: var(--glass-control) !important; }
body :is(.conversation-message.outbound, .bubble.assistant) { background: var(--glass-hover) !important; }

/* Navigation and overlays remain legible over the moving background. */
body :is(.sidebar, .mobile-bar, .workspace-mobile-tabs, .topbar, .login-header) {
  background: var(--glass-fill) !important;
  box-shadow: none !important;
}
body :is(dialog, .account-menu, .workspace-menu, .mobile-nav, .agenda-calendar, .toast) {
  background: var(--glass-raised) !important;
  border: 1px solid var(--line-strong);
}
body.frontpage :is(.hero-video, .manifesto video) { filter: grayscale(1); }
body.frontpage :is(.hero-shade, .manifesto-shade) { background: linear-gradient(0deg, var(--canvas), transparent 40%); }

@media (forced-colors: active) {
  html body, html[data-theme='dark'] body, html body.frontpage {
    --canvas: Canvas; --surface: Canvas; --surface-muted: Canvas;
    --ink: CanvasText; --ink-soft: CanvasText; --muted: CanvasText;
    --line: CanvasText; --line-strong: CanvasText;
    --glass-fill: Canvas; --glass-raised: Canvas;
  }
}
