/* CRATA workspace · clean white palette. Loaded after the Orbix layout CSS. */
body.mac-theme .next-shell {
  --white-bg: #ffffff;
  --white-surface: #ffffff;
  --white-soft: #f7f9f8;
  --white-line: #e1e7e4;
  --white-text: #1d2c30;
  --white-muted: #64767a;
  --white-accent: #2b675b;
  --white-accent-soft: #eaf3ef;
  --next-night: #ffffff;
  --next-navy: #ffffff;
  --next-navy-soft: #f7f9f8;
  --next-navy-raised: #ffffff;
  --next-teal: #2b675b;
  --next-lime: #2b675b;
  --next-light: #ffffff;
  --next-ink: #1d2c30;
  --next-muted: #64767a;
  --next-line: #e1e7e4;
  --next-light-line: #e1e7e4;
  --next-shadow: 0 5px 22px rgba(28, 49, 45, .045);
  background: #fff;
  color: var(--white-text);
}
body.mac-theme:has(.next-shell) { background: #fff; color: var(--white-text); }
body.mac-theme .next-shell ::selection { background: #dcece5; color: #153d35; }
body.mac-theme .next-shell :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: #478578; }

/* Navigation and shared controls. */
body.mac-theme .next-shell .next-sidebar {
  border-right: 1px solid var(--white-line);
  background: #fff;
  color: var(--white-text);
  box-shadow: none;
}
body.mac-theme .next-shell .next-sidebar-content { scrollbar-color: #cbd9d2 transparent; }
body.mac-theme .next-shell .next-brand,
body.mac-theme .next-shell .next-brand-copy strong { color: #1e3734; }
body.mac-theme .next-shell .next-brand-mark { border-color: #2b675b; background: #2b675b; color: #fff; box-shadow: none; }
body.mac-theme .next-shell .next-brand-copy small,
body.mac-theme .next-shell .next-nav-caption { color: #778a88; }
body.mac-theme .next-shell .next-sidebar .next-nav-item { color: #566a6b; }
body.mac-theme .next-shell .next-sidebar .next-nav-item:hover { border-color: #ecf0ed; background: #f5f8f6; color: #254a43; }
body.mac-theme .next-shell .next-sidebar .next-nav-item.is-active,
body.mac-theme .next-shell .next-sidebar .next-nav-item[aria-current="page"] {
  border-color: #d8e8df;
  background: #edf5f1;
  color: #245d50;
  box-shadow: inset 3px 0 #2b675b;
}
body.mac-theme .next-shell .next-nav-icon,
body.mac-theme .next-shell .next-nav-item.is-active .next-nav-icon { color: #65817b; }
body.mac-theme .next-shell .next-nav-count { background: #edf2ef; color: #456359; }
body.mac-theme .next-shell .next-sidebar .next-sidebar-bottom { border-top-color: var(--white-line); }
body.mac-theme .next-shell .next-sidebar-settings > summary { color: #667b78; }
body.mac-theme .next-shell .next-sidebar-settings > summary:hover { background: #f5f8f6; color: #245d50; }
body.mac-theme .next-shell .next-sidebar-close,
body.mac-theme .next-shell .next-menu-button { border-color: #d9e3de; background: #fff; color: #31534d; }
body.mac-theme .next-shell .next-sidebar-close:hover,
body.mac-theme .next-shell .next-menu-button:hover { border-color: #a8c8b9; background: #f1f7f3; color: #245d50; }
body.mac-theme .next-shell .next-sidebar .next-nav-item:focus-visible { outline-color: #478578; }

body.mac-theme .next-shell > .body,
body.mac-theme .next-shell .next-body,
body.mac-theme .next-shell #main { background: #fff; color: var(--white-text); }
body.mac-theme .next-shell #main { scrollbar-color: #cad7d0 transparent; }
body.mac-theme .next-shell .next-topbar {
  border-bottom: 1px solid var(--white-line);
  background: #fff;
  color: var(--white-text);
  box-shadow: none;
}
body.mac-theme .next-shell .next-topbar .breadcrumb,
body.mac-theme .next-shell .next-location > span { color: #849793; }
body.mac-theme .next-shell .next-topbar .breadcrumb strong,
body.mac-theme .next-shell .next-location > strong { color: #273e3b; }
body.mac-theme .next-shell .next-topbar .top-right,
body.mac-theme .next-shell .next-topbar .next-topbar-search,
body.mac-theme .next-shell .next-topbar .next-icon-button { color: #647a76; }
body.mac-theme .next-shell .next-topbar .next-topbar-search:hover,
body.mac-theme .next-shell .next-topbar .next-icon-button:hover { border-color: #e2e9e5; background: #f6f9f7; color: #255e52; }
body.mac-theme .next-shell .next-topbar .next-topbar-new { border-color: #2b675b; background: #2b675b; color: #fff; }
body.mac-theme .next-shell .next-topbar .next-topbar-new:hover { border-color: #215348; background: #215348; }
body.mac-theme .next-shell .next-topbar .acct-header-account { color: #465e59; }
body.mac-theme .next-shell .next-topbar .acct-header-account:hover { background: #f4f8f5; }
body.mac-theme .next-shell .next-topbar .acct-header-account .acct-avatar { background: #e5f0e9; color: #2b675b; }
body.mac-theme .next-shell .next-topbar .acct-header-account .acct-person strong { color: #2d4440; }
body.mac-theme .next-shell .next-topbar .acct-header-account .acct-person small,
body.mac-theme .next-shell .next-topbar .acct-header-account .acct-account-more { color: #7c918b; }
body.mac-theme .next-shell .next-topbar input[type="search"] { border-color: var(--white-line); background: #fff; color: var(--white-text); }
body.mac-theme .next-shell .next-topbar input[type="search"]::placeholder { color: #879792; }

body.mac-theme .next-shell :is(.primary, button.primary) { border-color: #2b675b; background: #2b675b; color: #fff; box-shadow: none; }
body.mac-theme .next-shell :is(.primary, button.primary):hover { border-color: #205347; background: #205347; }
body.mac-theme .next-shell :is(.secondary, button.secondary) { border-color: #d9e5de; background: #fff; color: #315b51; }
body.mac-theme .next-shell :is(.secondary, button.secondary):hover { background: #f1f7f3; }
body.mac-theme .next-shell .text-button { color: #2b675b; }
body.mac-theme .next-shell :is(input:not([type="checkbox"]), select, textarea) { border-color: #d9e3de; background: #fff; color: var(--white-text); }
body.mac-theme .next-shell :is(input, textarea)::placeholder { color: #84938f; }
body.mac-theme .next-shell :is(input, select, textarea):focus { border-color: #6ca08e; }
body.mac-theme .next-shell option { background: #fff; color: var(--white-text); }
body.mac-theme .next-shell .empty { border-color: #dfe8e3; background: #fafcfb; color: var(--white-muted); }
body.mac-theme .next-shell .empty h3 { color: var(--white-text); }
body.mac-theme .next-shell .empty p { color: var(--white-muted); }

/* Dashboard: white canvas with a restrained green cue. */
body.mac-theme .next-shell .next-home { background: #fff; color: var(--white-text); }
body.mac-theme .next-shell .next-home :is(h1, h2, h3),
body.mac-theme .next-shell .next-section-heading h2 { color: var(--white-text); }
body.mac-theme .next-shell .next-home .eyebrow,
body.mac-theme .next-shell .next-section-kicker,
body.mac-theme .next-shell .next-overline,
body.mac-theme .next-shell .next-hero .next-overline { color: #4c756b; }
body.mac-theme .next-shell .next-hero {
  border-color: #dee9e3;
  background: linear-gradient(110deg, #fff 0%, #fbfdfc 69%, #f1f7f3 100%);
  box-shadow: 0 7px 25px rgba(28, 49, 45, .045);
}
body.mac-theme .next-shell .next-hero::after { border-color: #dcebe2; box-shadow: 0 0 0 54px #edf5ef80, 0 0 0 108px #f4f8f5; }
body.mac-theme .next-shell .next-hero h1,
body.mac-theme .next-shell .next-hero h1 em { color: #1d3430; }
body.mac-theme .next-shell .next-hero h1 em { color: #2b675b; }
body.mac-theme .next-shell .next-hero p { color: #617571; }
body.mac-theme .next-shell .next-hero .next-overline span { color: #a2b0a9; }
body.mac-theme .next-shell .next-hero-orbit { border-color: #dbe9df; background: radial-gradient(circle at 44% 52%, #e5f2e9 0, transparent 40%); opacity: .8; }
body.mac-theme .next-shell .next-hero-orbit > span { border-color: #d9e9df; }
body.mac-theme .next-shell .next-hero-orbit > span:nth-child(3) { background: #b9d6c5; box-shadow: 0 0 28px #d7e8da; }
body.mac-theme .next-shell .next-hero .next-hero-primary { border-color: #2b675b; background: #2b675b; color: #fff; }
body.mac-theme .next-shell .next-hero .next-hero-primary:hover { background: #205347; }
body.mac-theme .next-shell .next-hero .next-hero-secondary { border-color: #cdded4; background: #fff; color: #315e52; }
body.mac-theme .next-shell .next-hero .next-hero-secondary:hover { background: #f0f7f2; }
body.mac-theme .next-shell .next-home .primary { border-color: #2b675b; background: #2b675b; color: #fff; box-shadow: none; }
body.mac-theme .next-shell .next-home .primary:hover { border-color: #205347; background: #205347; }
body.mac-theme .next-shell .next-home .secondary { border-color: #cdded4; background: #fff; color: #315e52; }
body.mac-theme .next-shell .next-home .secondary:hover { background: #f0f7f2; }

body.mac-theme .next-shell .next-stats > *,
body.mac-theme .next-shell .next-stats > :first-child { border-color: var(--white-line); background: #fff; box-shadow: 0 4px 15px rgba(28, 49, 45, .035); }
body.mac-theme .next-shell .next-stats > :first-child { border-left: 3px solid #2b675b; }
body.mac-theme .next-shell .next-stats :is(strong, b, .value),
body.mac-theme .next-shell .next-stats > :first-child :is(strong, b, .value) { color: #1d3430; }
body.mac-theme .next-shell .next-stats :is(small, .label),
body.mac-theme .next-shell .next-stat-top { color: #6c807a; }
body.mac-theme .next-shell .next-stat-top .icon { color: #76988b; }
body.mac-theme .next-shell .next-stats .next-stat:hover { border-color: #b9d5c4; background: #f9fcfa; }

body.mac-theme .next-shell :is(.next-chart, .next-queue, .next-request, .next-live, .next-recent) {
  border-color: var(--white-line);
  background: #fff;
  color: var(--white-text);
  box-shadow: 0 4px 18px rgba(28, 49, 45, .035);
}
body.mac-theme .next-shell .next-chart::before { background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), #e8edea 25%); }
body.mac-theme .next-shell .next-chart :is(small, .caption),
body.mac-theme .next-shell .next-chart-day strong,
body.mac-theme .next-shell .next-chart-empty,
body.mac-theme .next-shell .next-chart-key { color: #71817b; }
body.mac-theme .next-shell .next-chart-key i,
body.mac-theme .next-shell .next-chart-request { background: #447c6a; }
body.mac-theme .next-shell .next-chart-key .is-result,
body.mac-theme .next-shell .next-chart-result { background: #99bdb0; }
body.mac-theme .next-shell .next-section-heading p,
body.mac-theme .next-shell .next-request > p,
body.mac-theme .next-shell :is(.next-live, .next-recent) > p,
body.mac-theme .next-shell .next-live-list > p { color: var(--white-muted); }
body.mac-theme .next-shell .next-section-link { color: #2b675b; }
body.mac-theme .next-shell .next-section-link:hover { color: #194d43; }
body.mac-theme .next-shell .next-queue .next-queue-row { border-top-color: #edf1ee; color: var(--white-text); }
body.mac-theme .next-shell .next-queue .next-queue-row:hover { background: #f8fbf9; color: var(--white-text); }
body.mac-theme .next-shell .next-queue-copy strong,
body.mac-theme .next-shell .next-queue :is(a, button) { color: #233b35; }
body.mac-theme .next-shell .next-queue-copy small,
body.mac-theme .next-shell .next-queue-time,
body.mac-theme .next-shell .next-queue-row > .icon,
body.mac-theme .next-shell .next-queue-empty { color: #74867e; }
body.mac-theme .next-shell .next-queue-status { background: #eaf3ef; color: #31695a; }
body.mac-theme .next-shell .next-queue-status.is-urgent { background: #f9eee6; color: #985e3d; }
body.mac-theme .next-shell .next-queue-status.is-review { background: #f7f2e3; color: #846c32; }
body.mac-theme .next-shell .next-route-hint { color: #5d786c; }
body.mac-theme .next-shell .next-request :is(textarea, input[type="text"]) { border-color: #dce5df; background: #fff; color: var(--white-text); }
body.mac-theme .next-shell .next-request :is(textarea, input)::placeholder { color: #8b9991; }
body.mac-theme .next-shell .next-request :is(textarea, input):focus { border-color: #6d9f88; box-shadow: 0 0 0 3px #d9ebe0; }
body.mac-theme .next-shell .next-request .next-request-send { border-color: #2b675b; background: #2b675b; color: #fff; }
body.mac-theme .next-shell .next-request .next-request-send:hover { background: #205347; }
body.mac-theme .next-shell .next-live .next-section-heading > b { background: #eaf3ef; color: #2b675b; }
body.mac-theme .next-shell .next-live-list button,
body.mac-theme .next-shell .next-recent > button { border-top-color: #edf1ee; color: var(--white-text); }
body.mac-theme .next-shell .next-live-list button > i { background: #4a917b; box-shadow: none; }
body.mac-theme .next-shell .next-live-list button > .icon { color: #84978c; }
body.mac-theme .next-shell .next-recent > button span,
body.mac-theme .next-shell .next-recent > button small { color: #6c8178; }
body.mac-theme .next-shell .next-recent > button strong { color: #253d36; }
body.mac-theme .next-shell .next-recent > button:hover strong { color: #2b675b; }

/* Board, completed work and detail. */
body.mac-theme .next-shell .next-board,
body.mac-theme .next-shell .next-completed,
body.mac-theme .next-shell #main:has(.next-detail-header),
body.mac-theme .next-shell .next-workspace { background: #fff; color: var(--white-text); }
body.mac-theme .next-shell .next-board-toolbar { border-color: var(--white-line); background: #fff; box-shadow: 0 3px 14px rgba(28, 49, 45, .035); }
body.mac-theme .next-shell .next-board-column,
body.mac-theme .next-shell .next-board-column:nth-child(2),
body.mac-theme .next-shell .next-board-column:nth-child(3),
body.mac-theme .next-shell .next-board-column:nth-child(4) { border-color: var(--white-line); background: #f8faf9; }
body.mac-theme .next-shell .next-board-create { border-color: #2b675b; background: #2b675b; color: #fff; }
body.mac-theme .next-shell .next-board-create:hover { background: #205347; }
body.mac-theme .next-shell .next-board-toolbar .primary { border-color: #2b675b; background: #2b675b; color: #fff; }
body.mac-theme .next-shell .next-board-switch { border-color: var(--white-line); background: #f5f8f6; }
body.mac-theme .next-shell .next-board-toolbar .next-board-switch-item.is-active,
body.mac-theme .next-shell .next-board-toolbar .next-board-switch-item[aria-pressed="true"] { background: #2b675b; color: #fff; }
body.mac-theme .next-shell .next-task-card { border-color: #e0e8e2; background: #fff; box-shadow: 0 4px 15px rgba(28, 49, 45, .035); }
body.mac-theme .next-shell .next-task-card:hover { border-color: #b6d2c1; box-shadow: 0 8px 20px rgba(28, 49, 45, .07); }
body.mac-theme .next-shell .next-task-state,
body.mac-theme .next-shell .next-task-category { background: #edf4ef; color: #3d715f; }
body.mac-theme .next-shell .next-table-head { background: #f7f9f8; }
body.mac-theme .next-shell .next-completed-notice { border-color: #d9e6dc; background: #f3f8f4; color: #3d715f; }
body.mac-theme .next-shell .next-completed-icon { background: #eaf3ef; color: #2b675b; }
body.mac-theme .next-shell .next-completed-open { border-color: #d9e6dc; background: #f8fbf9; color: #2b675b; }

body.mac-theme .next-shell .next-detail-header {
  border-color: var(--white-line);
  background: linear-gradient(112deg, #fff, #fafcfb 70%, #f4f8f5);
  box-shadow: 0 5px 20px rgba(28, 49, 45, .04);
}
body.mac-theme .next-shell .next-detail-header::before { background: radial-gradient(circle, #e5f2e8, transparent 68%); }
body.mac-theme .next-shell .next-detail-header :is(h1, h2, h3),
body.mac-theme .next-shell .next-detail-header h1 { color: var(--white-text); }
body.mac-theme .next-shell .next-detail-header p,
body.mac-theme .next-shell .next-detail-header :is(small, time) { color: #667e75; }
body.mac-theme .next-shell .next-detail-breadcrumb { color: #5c7e70; }
body.mac-theme .next-shell .next-detail-breadcrumb i { color: #a4b6ad; }
body.mac-theme .next-shell .next-detail-status { border-color: #d5e7d9; background: #eaf3ed; color: #2b675b; }
body.mac-theme .next-shell .next-detail-top .next-detail-review { border-color: #2b675b; background: #2b675b; color: #fff; }
body.mac-theme .next-shell .next-detail-top .next-detail-review:hover { background: #205347; }
body.mac-theme .next-shell .next-detail-top .next-detail-complete,
body.mac-theme .next-shell .next-detail-more > summary { border-color: #d5e3da; background: #fff; color: #2b675b; }
body.mac-theme .next-shell .next-detail-top .next-detail-complete:hover,
body.mac-theme .next-shell .next-detail-more > summary:hover,
body.mac-theme .next-shell .next-detail-more[open] > summary { background: #f0f7f2; color: #205347; }
body.mac-theme .next-shell .next-detail-flow { border-top-color: #e2e9e4; }
body.mac-theme .next-shell .next-detail-flow > .next-flow-node { border-color: #e4ebe6; background: #f7f9f8; color: #708178; }
body.mac-theme .next-shell .next-detail-flow > .next-flow-node.has-record { border-color: #d6e5dc; background: #eff6f1; color: #3b6c58; }
body.mac-theme .next-shell .next-detail-flow > .next-flow-node.is-current { border-color: #9bc6ad; background: #e6f3ea; color: #245d50; }
body.mac-theme .next-shell .next-detail-flow > .next-flow-node.has-issue { border-color: #edc7b0; background: #fff2ea; color: #9c5935; }
body.mac-theme .next-shell .next-workspace > .app-work-grid { border-color: var(--white-line); background: #fff; box-shadow: 0 5px 18px rgba(28, 49, 45, .04); }
body.mac-theme .next-shell .next-workspace > .mobile-preview-tabs { border-color: var(--white-line); background: #f7f9f8; }

/* Signed-out entry uses the same white canvas. */
body.mac-theme:has(#main.acct-login-page),
body.mac-theme #main.acct-login-page { background: #fff; color: var(--white-text); }
body.mac-theme #main.acct-login-page { background: radial-gradient(circle at 82% 20%, #f2f8f4 0, transparent 38%), #fff; }
body.mac-theme #main.acct-login-page::before { border-color: #dce9df; box-shadow: 0 0 0 85px #f4f8f5, 0 0 0 170px #fafcfb; }
body.mac-theme #main.acct-login-page::after { color: #83978f; }
body.mac-theme .acct-login-card { border-color: #dfe9e2; background: #fff; color: var(--white-text); box-shadow: 0 20px 65px rgba(28, 49, 45, .08); }
body.mac-theme .acct-login-logo { filter: none; }
body.mac-theme .acct-login-kicker { color: #517d6a; }
body.mac-theme .acct-login-card h1 { color: var(--white-text); }
body.mac-theme .acct-login-description,
body.mac-theme .acct-login-footer { color: #697f76; }
body.mac-theme .acct-login-card .acct-form label { color: #405d53; }
body.mac-theme .acct-login-card .acct-form input { border-color: #d8e5db; background: #fff; color: var(--white-text); }
body.mac-theme .acct-login-card .acct-form input::placeholder { color: #8e9f96; }
body.mac-theme .acct-login-card .acct-form input:focus { outline-color: #6ea78b; border-color: #6ea78b; }
body.mac-theme .acct-login-card .acct-primary { border-color: #2b675b; background: #2b675b; color: #fff; box-shadow: none; }
body.mac-theme .acct-login-card .acct-primary:hover { border-color: #205347; background: #205347; }
body.mac-theme .acct-login-card .acct-help,
body.mac-theme .acct-login-footer .acct-text-button { color: #547668; }
body.mac-theme .acct-login-card .acct-error:not([hidden]) { border-color: #e8cabb; background: #fff3ec; color: #965737; }
body.mac-theme .acct-login-local-note { border-color: #dce9df; background: #f4f8f5; color: #476a59; }

@media (max-width: 800px) {
  body.mac-theme .next-shell .next-sidebar { box-shadow: 15px 0 40px rgba(28, 49, 45, .12); }
}
