/*
 * Regulus workspace theme.
 *
 * This file deliberately contains no unscoped selectors. The shared dashboard
 * owns layout and behavior; Regulus only supplies a visual skin when the server
 * marks the document with data-workspace="regulus".
 */

@font-face {
  font-family: "Regulus Manrope";
  src: url("/gtm-dashboard-pilot/assets/regulus-manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Regulus Inter";
  src: url("/gtm-dashboard-pilot/assets/regulus-inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

html[data-workspace="regulus"] {
  color-scheme: light;
  --regulus-display: "Regulus Manrope", "Manrope", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --regulus-body: "Regulus Inter", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --regulus-teal-900: #03564e;
  --regulus-teal-800: #0f766e;
  --regulus-teal-700: #0d9488;
  --regulus-teal-600: #14b8a6;
  --regulus-teal-500: #2dd4bf;
  --regulus-mint: #9fffba;
  --regulus-navy: #0f172a;
  --regulus-grid: rgba(13, 148, 136, 0.06);
  --ink: #0a0a0a;
  --paper: #ffffff;
  --field: #f5fbfa;
  --surface-raised: #fbfefd;
  --surface-muted: #e2f7f5;
  --surface-hover: #f1fdfa;
  --lane-surface: rgba(255, 255, 255, 0.88);
  --line: #dbe7e5;
  --soft-line: #e8f0ef;
  --cell-line: rgba(13, 148, 136, 0.10);
  --calculated-fill: rgba(13, 148, 136, 0.025);
  --muted: #475569;
  --faint: #64748b;
  --glass: rgba(248, 253, 252, 0.94);
  --footer-glass: rgba(255, 255, 255, 0.96);
  --overlay: rgba(15, 23, 42, 0.42);
  --scroll-thumb: rgba(13, 148, 136, 0.34);
  --shadow-soft: 0 10px 28px rgba(3, 86, 78, 0.08);
  --shadow-popover: 0 18px 46px rgba(15, 23, 42, 0.12);
  --shadow-modal: 0 34px 100px rgba(15, 23, 42, 0.22);
  --selection-ink: #0f172a;
  font-family: var(--regulus-body);
  background: var(--field);
}

html[data-workspace="regulus"][data-theme="dark"] {
  color-scheme: dark;
  --ink: #f1fdfa;
  --paper: #111d2f;
  --field: #0f172a;
  --surface-raised: #142338;
  --surface-muted: #193149;
  --surface-hover: #172b40;
  --lane-surface: rgba(17, 29, 47, 0.90);
  --line: rgba(148, 210, 202, 0.18);
  --soft-line: rgba(148, 210, 202, 0.11);
  --cell-line: rgba(148, 210, 202, 0.09);
  --calculated-fill: rgba(45, 212, 191, 0.028);
  --muted: #a4b8bb;
  --faint: #708b91;
  --glass: rgba(15, 23, 42, 0.90);
  --footer-glass: rgba(17, 29, 47, 0.96);
  --overlay: rgba(2, 9, 20, 0.72);
  --scroll-thumb: rgba(45, 212, 191, 0.34);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.26);
  --shadow-popover: 0 20px 50px rgba(0, 0, 0, 0.38);
  --shadow-modal: 0 38px 110px rgba(0, 0, 0, 0.50);
}

html[data-workspace="regulus"] body,
html[data-workspace="regulus"] button,
html[data-workspace="regulus"] input,
html[data-workspace="regulus"] select,
html[data-workspace="regulus"] textarea {
  font-family: var(--regulus-body);
}

html[data-workspace="regulus"] button:focus-visible,
html[data-workspace="regulus"] input:focus-visible,
html[data-workspace="regulus"] select:focus-visible,
html[data-workspace="regulus"] textarea:focus-visible {
  outline-color: var(--regulus-teal-700);
}

html[data-workspace="regulus"] ::selection {
  color: var(--selection-ink);
  background: rgba(159, 255, 186, 0.72);
}

html[data-workspace="regulus"] .mono,
html[data-workspace="regulus"] .eyebrow,
html[data-workspace="regulus"] .kbd,
html[data-workspace="regulus"] .column-label,
html[data-workspace="regulus"] .stage-label,
html[data-workspace="regulus"] .field-label,
html[data-workspace="regulus"] .status-mark,
html[data-workspace="regulus"] .meta,
html[data-workspace="regulus"] .variant-number,
html[data-workspace="regulus"] .hud,
html[data-workspace="regulus"] .view-control,
html[data-workspace="regulus"] .score-label,
html[data-workspace="regulus"] .score-delta {
  font-family: var(--regulus-body);
  font-weight: 600;
  letter-spacing: 0.065em;
}

html[data-workspace="regulus"] *,
html[data-workspace="regulus"] *::before,
html[data-workspace="regulus"] *::after {
  scrollbar-color: var(--scroll-thumb) transparent;
  scrollbar-width: thin;
}

html[data-workspace="regulus"] *::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html[data-workspace="regulus"] *::-webkit-scrollbar-track {
  background: transparent;
}

html[data-workspace="regulus"] *::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--scroll-thumb);
  background-clip: padding-box;
}

html[data-workspace="regulus"] *::-webkit-scrollbar-thumb:hover {
  background: var(--regulus-teal-700);
  background-clip: padding-box;
}

/* Ambient field */

html[data-workspace="regulus"] .prototype,
html[data-workspace="regulus"] .prototype-boot {
  background:
    radial-gradient(circle at 78% -14%, rgba(45, 232, 144, 0.12), transparent 31%),
    radial-gradient(circle at -6% 112%, rgba(16, 193, 177, 0.08), transparent 34%),
    var(--field);
}

html[data-workspace="regulus"] .prototype::before,
html[data-workspace="regulus"] .prototype-boot::before {
  width: auto;
  height: auto;
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 0;
  border-radius: 0;
  content: "";
  pointer-events: none;
  opacity: 0.75;
  transform: none;
  background-image:
    linear-gradient(var(--regulus-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--regulus-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 72%);
}

html[data-workspace="regulus"][data-theme="dark"] .prototype,
html[data-workspace="regulus"][data-theme="dark"] .prototype-boot {
  background:
    radial-gradient(circle at 82% -16%, rgba(45, 212, 191, 0.15), transparent 30%),
    radial-gradient(circle at -8% 112%, rgba(3, 86, 78, 0.26), transparent 34%),
    linear-gradient(150deg, #0f172a 0%, #0d1a2b 54%, #0b1423 100%);
}

html[data-workspace="regulus"][data-theme="dark"] .prototype::before,
html[data-workspace="regulus"][data-theme="dark"] .prototype-boot::before {
  opacity: 0.48;
}

/* Brand lockup and navigation */

html[data-workspace="regulus"] .brand-dots {
  display: none;
}

html[data-workspace="regulus"] .brand-lockup,
html[data-workspace="regulus"] .boot-lockup {
  gap: 0;
}

html[data-workspace="regulus"] .brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--regulus-navy);
  font-family: var(--regulus-display);
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: none;
}

html[data-workspace="regulus"] .brand-wordmark::before {
  width: 28px;
  height: 22px;
  flex: 0 0 28px;
  content: "";
  background: url("/gtm-dashboard-pilot/assets/regulus-logo-teal.svg") center / contain no-repeat;
}

html[data-workspace="regulus"][data-theme="dark"] .brand-wordmark {
  color: #effffc;
}

html[data-workspace="regulus"][data-theme="dark"] .brand-wordmark::before {
  filter: brightness(1.28) saturate(0.92);
}

html[data-workspace="regulus"] .app-header,
html[data-workspace="regulus"] .boot-brand {
  border-bottom-color: rgba(13, 148, 136, 0.15);
  background: var(--glass);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px) saturate(1.08);
}

html[data-workspace="regulus"] .top-nav button {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.015em;
}

html[data-workspace="regulus"] .top-nav button:hover,
html[data-workspace="regulus"] .top-nav button.active {
  color: var(--regulus-teal-900);
}

html[data-workspace="regulus"] .top-nav button.active {
  border-bottom-color: var(--regulus-teal-700);
}

html[data-workspace="regulus"][data-theme="dark"] .top-nav button:hover,
html[data-workspace="regulus"][data-theme="dark"] .top-nav button.active {
  color: var(--regulus-teal-500);
}

html[data-workspace="regulus"][data-theme="dark"] .app-header,
html[data-workspace="regulus"][data-theme="dark"] .boot-brand {
  box-shadow: 0 1px 0 rgba(45, 212, 191, 0.10);
}

html[data-workspace="regulus"] .period-select,
html[data-workspace="regulus"] .actor-chip,
html[data-workspace="regulus"] .sign-out-link,
html[data-workspace="regulus"] .metric-sync,
html[data-workspace="regulus"] .presence-overflow {
  font-family: var(--regulus-body);
  font-weight: 600;
  letter-spacing: 0.055em;
}

html[data-workspace="regulus"] .period-select:hover {
  color: var(--regulus-teal-900);
}

html[data-workspace="regulus"][data-theme="dark"] .period-select:hover {
  color: var(--regulus-teal-500);
}

html[data-workspace="regulus"] .presence-avatar.presence-accent-0 {
  --presence-ring: #0f766e;
}

html[data-workspace="regulus"] .presence-avatar.presence-accent-1 {
  --presence-ring: #0d9488;
}

html[data-workspace="regulus"] .presence-avatar.presence-accent-2 {
  --presence-ring: #14b8a6;
}

html[data-workspace="regulus"] .presence-avatar.presence-accent-3 {
  --presence-ring: #2dd4bf;
}

/* Login / boot */

html[data-workspace="regulus"] .boot-stage {
  border-color: rgba(13, 148, 136, 0.24);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 32px 90px rgba(3, 86, 78, 0.11);
}

html[data-workspace="regulus"] .boot-art {
  border-right-color: rgba(13, 148, 136, 0.18);
  background:
    radial-gradient(circle at 22% 18%, rgba(159, 255, 186, 0.42), transparent 34%),
    linear-gradient(145deg, #f1fdfa 0%, #e2f7f5 58%, #d4f4ef 100%);
}

html[data-workspace="regulus"] .boot-art::before {
  border-color: rgba(13, 148, 136, 0.20);
}

html[data-workspace="regulus"] .boot-art::after {
  border-color: var(--regulus-teal-700);
  opacity: 0.58;
}

html[data-workspace="regulus"] .boot-art strong,
html[data-workspace="regulus"] .boot-panel h1 {
  font-family: var(--regulus-display);
  font-weight: 700;
}

html[data-workspace="regulus"] .boot-art strong {
  color: var(--regulus-navy);
}

@media (min-width: 801px) {
  html[data-workspace="regulus"] .boot-art strong {
    font-size: clamp(68px, 7.2vw, 104px);
  }
}

html[data-workspace="regulus"] .boot-art strong span:last-child {
  color: var(--regulus-teal-700);
}

html[data-workspace="regulus"] .boot-product-name,
html[data-workspace="regulus"] .boot-art-kicker,
html[data-workspace="regulus"] .boot-art-index,
html[data-workspace="regulus"] .boot-footnote {
  font-family: var(--regulus-body);
  font-weight: 600;
  letter-spacing: 0.07em;
}

html[data-workspace="regulus"] .boot-panel {
  background: rgba(255, 255, 255, 0.90);
}

html[data-workspace="regulus"] .boot-panel p {
  color: var(--muted);
  font-family: var(--regulus-body);
}

html[data-workspace="regulus"] .boot-spectrum i:nth-child(1) {
  background: #0d9488;
}

html[data-workspace="regulus"] .boot-spectrum i:nth-child(2) {
  background: #10c1b1;
}

html[data-workspace="regulus"] .boot-spectrum i:nth-child(3) {
  background: #2fe890;
}

html[data-workspace="regulus"] .boot-spectrum i:nth-child(4) {
  background: #9fffba;
}

html[data-workspace="regulus"] .boot-sign-in,
html[data-workspace="regulus"] .primary-button {
  border-color: var(--regulus-teal-700);
  color: #ffffff;
  background: var(--regulus-teal-700);
}

html[data-workspace="regulus"] .boot-sign-in:hover,
html[data-workspace="regulus"] .primary-button:hover {
  filter: none;
  background: var(--regulus-teal-800);
}

html[data-workspace="regulus"] .button-signal {
  background: #2fe890;
  box-shadow: 9px 0 0 #9fffba;
}

html[data-workspace="regulus"] .boot-progress::after {
  background: linear-gradient(90deg, #10c1b1, #2fe890, #9fffba);
}

html[data-workspace="regulus"][data-theme="dark"] .boot-stage {
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.40);
}

html[data-workspace="regulus"][data-theme="dark"] .boot-art {
  border-right-color: rgba(45, 212, 191, 0.16);
  background:
    radial-gradient(circle at 22% 18%, rgba(45, 232, 144, 0.14), transparent 34%),
    linear-gradient(145deg, #102b32 0%, #0f2632 52%, #111d2f 100%);
}

html[data-workspace="regulus"][data-theme="dark"] .boot-art strong {
  color: #effffc;
}

html[data-workspace="regulus"][data-theme="dark"] .boot-art strong span:last-child {
  color: var(--regulus-teal-500);
}

html[data-workspace="regulus"][data-theme="dark"] .boot-panel {
  background: rgba(17, 29, 47, 0.94);
}

/* Scoreboard */

html[data-workspace="regulus"] .score-rail {
  border-color: rgba(13, 148, 136, 0.17);
  background:
    linear-gradient(110deg, rgba(241, 253, 250, 0.82), rgba(255, 255, 255, 0.96) 38%),
    var(--paper);
  box-shadow: 0 12px 32px rgba(3, 86, 78, 0.045);
}

html[data-workspace="regulus"] .score-item {
  border-right-color: rgba(13, 148, 136, 0.12);
}

html[data-workspace="regulus"] .score-item:hover {
  background: linear-gradient(135deg, rgba(226, 247, 245, 0.74), rgba(241, 253, 250, 0.42));
}

html[data-workspace="regulus"] .score-value {
  font-family: var(--regulus-display);
  font-weight: 700;
  letter-spacing: -0.055em;
}

html[data-workspace="regulus"] .score-accent-0 {
  --item-color: #0f766e;
}

html[data-workspace="regulus"] .score-accent-1 {
  --item-color: #0d9488;
}

html[data-workspace="regulus"] .score-accent-2 {
  --item-color: #14b8a6;
}

html[data-workspace="regulus"] .score-accent-3 {
  --item-color: #2dd4bf;
}

html[data-workspace="regulus"] .score-toggle:hover {
  color: var(--regulus-teal-700);
}

html[data-workspace="regulus"] .score-rail.is-collapsed .score-collapsed-summary::after {
  width: 34px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #0d9488, #2fe890, #9fffba);
}

html[data-workspace="regulus"][data-theme="dark"] .score-rail {
  background:
    linear-gradient(110deg, rgba(3, 86, 78, 0.14), rgba(17, 29, 47, 0.94) 42%),
    var(--paper);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
}

html[data-workspace="regulus"][data-theme="dark"] .score-item:hover {
  background: linear-gradient(135deg, rgba(3, 86, 78, 0.24), rgba(20, 35, 56, 0.42));
}

/* Metrics */

html[data-workspace="regulus"] .family-financial {
  --row-color: #0f766e;
  --row-wash: rgba(15, 118, 110, 0.105);
  --group-color: #0f766e;
  --group-wash: rgba(15, 118, 110, 0.12);
}

html[data-workspace="regulus"] .family-north-star {
  --row-color: #0d9488;
  --row-wash: rgba(13, 148, 136, 0.105);
  --group-color: #0d9488;
  --group-wash: rgba(13, 148, 136, 0.12);
}

html[data-workspace="regulus"] .family-acquisition {
  --row-color: #14b8a6;
  --row-wash: rgba(20, 184, 166, 0.105);
  --group-color: #14b8a6;
  --group-wash: rgba(20, 184, 166, 0.12);
}

html[data-workspace="regulus"] .family-creation {
  --row-color: #2dd4bf;
  --row-wash: rgba(45, 212, 191, 0.105);
  --group-color: #2dd4bf;
  --group-wash: rgba(45, 212, 191, 0.12);
}

html[data-workspace="regulus"] .family-financial .category-dot {
  background: #0f766e;
}

html[data-workspace="regulus"] .family-north-star .category-dot {
  background: #0d9488;
}

html[data-workspace="regulus"] .family-acquisition .category-dot {
  background: #14b8a6;
}

html[data-workspace="regulus"] .family-creation .category-dot {
  background: #2dd4bf;
}

html[data-workspace="regulus"] .metric-header {
  border-color: rgba(13, 148, 136, 0.18);
  background: rgba(248, 253, 252, 0.92);
  box-shadow: 0 8px 24px rgba(3, 86, 78, 0.045);
}

html[data-workspace="regulus"] .metric-family {
  border-color: rgba(13, 148, 136, 0.15);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 34px rgba(3, 86, 78, 0.035);
}

html[data-workspace="regulus"] .metric-family::before {
  height: 2px;
}

html[data-workspace="regulus"] .metric-group-label {
  border-bottom-color: rgba(13, 148, 136, 0.10);
  background: linear-gradient(90deg, var(--group-wash), transparent 42%);
}

html[data-workspace="regulus"] .metric-group-name,
html[data-workspace="regulus"] .metric-name strong {
  font-family: var(--regulus-display);
  font-weight: 600;
}

html[data-workspace="regulus"] .metric-group-note,
html[data-workspace="regulus"] .metric-group-count,
html[data-workspace="regulus"] .person-avatar,
html[data-workspace="regulus"] .source-icon,
html[data-workspace="regulus"] .current-task .task-meta {
  font-family: var(--regulus-body);
}

html[data-workspace="regulus"] .metric-cell {
  font-family: var(--regulus-display);
  font-weight: 600;
}

html[data-workspace="regulus"] .metric-cell.owner-source {
  font-family: var(--regulus-body);
}

html[data-workspace="regulus"] .metric-row.active {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--row-color) 13%, transparent);
}

html[data-workspace="regulus"] .metric-cell.cursor::after {
  border-color: var(--regulus-teal-700);
  opacity: 0.38;
}

html[data-workspace="regulus"] .metric-cell.editable button:hover,
html[data-workspace="regulus"] .metric-cell.cursor button,
html[data-workspace="regulus"] .cell-editor {
  border-bottom-color: var(--regulus-teal-700);
}

html[data-workspace="regulus"] .set-target {
  color: var(--regulus-teal-800);
  font-weight: 600;
}

html[data-workspace="regulus"][data-theme="dark"] .metric-header {
  background: rgba(15, 23, 42, 0.91);
}

html[data-workspace="regulus"][data-theme="dark"] .metric-family {
  background: rgba(17, 29, 47, 0.92);
}

html[data-workspace="regulus"][data-theme="dark"] .set-target {
  color: var(--regulus-teal-500);
}

/* Deliverables */

html[data-workspace="regulus"] .board-wrap {
  border-color: rgba(13, 148, 136, 0.18);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 38px rgba(3, 86, 78, 0.04);
}

html[data-workspace="regulus"] .lane {
  border-right-color: rgba(13, 148, 136, 0.12);
  background: var(--lane-surface);
}

html[data-workspace="regulus"] .lane-header {
  border-bottom-color: rgba(13, 148, 136, 0.12);
  background:
    linear-gradient(var(--regulus-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--regulus-grid) 1px, transparent 1px),
    rgba(248, 253, 252, 0.88);
  background-size: 20px 20px;
}

html[data-workspace="regulus"] .lane.empty:hover,
html[data-workspace="regulus"] .lane.empty.drag-target {
  background: rgba(241, 253, 250, 0.82);
}

html[data-workspace="regulus"] .deliverable-card {
  border-color: rgba(13, 148, 136, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 22px rgba(3, 86, 78, 0.035);
}

html[data-workspace="regulus"] .deliverable-card:hover {
  border-color: rgba(13, 148, 136, 0.38);
}

html[data-workspace="regulus"] .deliverable-card.active {
  border-color: var(--regulus-teal-700);
  box-shadow: 0 16px 36px rgba(3, 86, 78, 0.13), inset 3px 0 0 var(--regulus-teal-700);
}

html[data-workspace="regulus"] .card-title,
html[data-workspace="regulus"] .current-task strong,
html[data-workspace="regulus"] .task-person {
  font-family: var(--regulus-display);
  font-weight: 600;
}

html[data-workspace="regulus"] .current-task {
  border-color: rgba(13, 148, 136, 0.10);
  background: rgba(226, 247, 245, 0.48);
}

html[data-workspace="regulus"] .current-task:hover,
html[data-workspace="regulus"] .current-task:focus-visible {
  border-color: var(--regulus-teal-700);
  background: rgba(226, 247, 245, 0.82);
}

html[data-workspace="regulus"] .board-action-dock,
html[data-workspace="regulus"] .utility-trigger {
  border-color: rgba(13, 148, 136, 0.20);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(3, 86, 78, 0.07);
}

html[data-workspace="regulus"] .board-add-button {
  color: #ffffff;
  background: var(--regulus-teal-700);
}

html[data-workspace="regulus"] .board-add-button:hover {
  color: #ffffff;
  background: var(--regulus-teal-800);
}

html[data-workspace="regulus"] .view-popover,
html[data-workspace="regulus"] .utility-popover {
  border-color: rgba(13, 148, 136, 0.38);
  box-shadow: var(--shadow-popover);
}

html[data-workspace="regulus"][data-theme="dark"] .board-wrap {
  background: rgba(15, 23, 42, 0.66);
}

html[data-workspace="regulus"][data-theme="dark"] .lane-header {
  background:
    linear-gradient(var(--regulus-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--regulus-grid) 1px, transparent 1px),
    rgba(17, 29, 47, 0.90);
  background-size: 20px 20px;
}

html[data-workspace="regulus"][data-theme="dark"] .deliverable-card {
  background: rgba(20, 35, 56, 0.94);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.14);
}

html[data-workspace="regulus"][data-theme="dark"] .current-task {
  background: rgba(3, 86, 78, 0.18);
}

html[data-workspace="regulus"][data-theme="dark"] .current-task:hover,
html[data-workspace="regulus"][data-theme="dark"] .current-task:focus-visible {
  background: rgba(3, 86, 78, 0.30);
}

html[data-workspace="regulus"][data-theme="dark"] .lane.empty:hover,
html[data-workspace="regulus"][data-theme="dark"] .lane.empty.drag-target {
  background: rgba(3, 86, 78, 0.18);
}

html[data-workspace="regulus"][data-theme="dark"] .board-action-dock,
html[data-workspace="regulus"][data-theme="dark"] .utility-trigger {
  background: rgba(17, 29, 47, 0.94);
}

/* Modals and utility surfaces */

html[data-workspace="regulus"] .modal-layer {
  background: var(--overlay);
  backdrop-filter: blur(5px) saturate(0.9);
}

html[data-workspace="regulus"] .deliverable-modal,
html[data-workspace="regulus"] .task-modal {
  border-color: rgba(13, 148, 136, 0.55);
  background: var(--paper);
  box-shadow: var(--shadow-modal);
}

html[data-workspace="regulus"] .deliverable-modal {
  --modal-accent: var(--regulus-teal-800);
}

html[data-workspace="regulus"] .deliverable-modal.modal-stage-briefed,
html[data-workspace="regulus"] .deliverable-modal.modal-stage-scheduled {
  --modal-accent: var(--regulus-teal-700);
}

html[data-workspace="regulus"] .deliverable-modal.modal-stage-in-production,
html[data-workspace="regulus"] .deliverable-modal.modal-stage-review {
  --modal-accent: var(--regulus-teal-500);
}

html[data-workspace="regulus"] .deliverable-modal.modal-stage-approved,
html[data-workspace="regulus"] .deliverable-modal.modal-stage-published {
  --modal-accent: #2fe890;
}

html[data-workspace="regulus"] .task-modal {
  --modal-accent: var(--regulus-teal-700);
}

html[data-workspace="regulus"] .task-modal.task-status-in-progress,
html[data-workspace="regulus"] .task-modal.task-status-review {
  --modal-accent: var(--regulus-teal-500);
}

html[data-workspace="regulus"] .task-modal.task-status-blocked {
  --modal-accent: #ff6b58;
}

html[data-workspace="regulus"] .task-modal.task-status-done,
html[data-workspace="regulus"] .task-modal.task-status-complete,
html[data-workspace="regulus"] .task-modal.task-status-completed,
html[data-workspace="regulus"] .task-time-modal {
  --modal-accent: #2fe890;
}

html[data-workspace="regulus"] .task-modal.task-status-paused {
  --modal-accent: var(--faint);
}

html[data-workspace="regulus"] .modal-header {
  border-bottom-color: rgba(13, 148, 136, 0.14);
  background: linear-gradient(110deg, rgba(226, 247, 245, 0.45), transparent 54%);
}

html[data-workspace="regulus"] .modal-title,
html[data-workspace="regulus"] .section-heading h3,
html[data-workspace="regulus"] .task-title {
  font-family: var(--regulus-display);
  font-weight: 600;
}

html[data-workspace="regulus"] .legacy-status,
html[data-workspace="regulus"] .stage-badge,
html[data-workspace="regulus"] .task-row .task-meta,
html[data-workspace="regulus"] .task-divider,
html[data-workspace="regulus"] .footer-note,
html[data-workspace="regulus"] .toast,
html[data-workspace="regulus"] .utility-email,
html[data-workspace="regulus"] .utility-actions .theme-toggle,
html[data-workspace="regulus"] .utility-actions .sound-toggle,
html[data-workspace="regulus"] .utility-actions .sign-out-link,
html[data-workspace="regulus"] .sound-volume,
html[data-workspace="regulus"] .utility-trigger {
  font-family: var(--regulus-body);
  font-weight: 600;
  letter-spacing: 0.055em;
}

html[data-workspace="regulus"] .field input:focus,
html[data-workspace="regulus"] .field select:focus,
html[data-workspace="regulus"] .field textarea:focus {
  border-bottom-color: var(--regulus-teal-700);
}

html[data-workspace="regulus"] .quiet-button:hover,
html[data-workspace="regulus"] .view-control:hover,
html[data-workspace="regulus"] .icon-button:hover {
  border-color: var(--regulus-teal-700);
  color: var(--regulus-teal-900);
}

html[data-workspace="regulus"] .task-check {
  border-color: var(--regulus-teal-700);
}

html[data-workspace="regulus"] .toast {
  color: #ffffff;
  background: var(--regulus-teal-900);
}

html[data-workspace="regulus"] .toast button {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.72);
}

html[data-workspace="regulus"] .hud .kbd {
  border-color: rgba(13, 148, 136, 0.22);
  background: rgba(255, 255, 255, 0.74);
}

html[data-workspace="regulus"] .sound-volume input::-webkit-slider-thumb,
html[data-workspace="regulus"] .sound-volume input::-moz-range-thumb {
  background: var(--regulus-teal-700);
}

html[data-workspace="regulus"][data-theme="dark"] .modal-header {
  background: linear-gradient(110deg, rgba(3, 86, 78, 0.18), transparent 54%);
}

html[data-workspace="regulus"][data-theme="dark"] .quiet-button:hover,
html[data-workspace="regulus"][data-theme="dark"] .view-control:hover,
html[data-workspace="regulus"][data-theme="dark"] .icon-button:hover {
  color: var(--regulus-teal-500);
}

html[data-workspace="regulus"][data-theme="dark"] .hud .kbd {
  background: rgba(17, 29, 47, 0.72);
}
