/* Shared high-end theme tokens. The existing layout stays intact; themes only change visual tokens. */
:root {
  --theme-focus: #1b9b91;
  --theme-focus-soft: #e8f6f3;
  --theme-warm: #b88945;
  --theme-surface-raised: #ffffff;
  --theme-surface-muted: #f5f7f7;
  --theme-sidebar: #0d1828;
  --theme-sidebar-text: #dce9e8;
}

/* Restored palette from the workspace before the multi-theme system was added. */
html[data-theme="classic-default"] {
  --ink: #172337; --muted: #738198; --muted-2: #9aa6b8; --line: #e7ebf1; --soft: #f5f7fa; --paper: #ffffff;
  --navy: #0d1828; --navy-2: #14243a; --cyan: #1aa6a6; --cyan-soft: #e7f7f6; --orange: #e88a3d; --orange-soft: #fff3e9;
  --green: #2a9b6b; --green-soft: #e9f7f0; --red: #d85f62; --red-soft: #fff0f1; --shadow: 0 16px 38px rgba(22, 35, 55, .07);
  --theme-focus: #1aa6a6; --theme-focus-soft: #e7f7f6; --theme-warm: #e88a3d; --theme-surface-raised: #ffffff; --theme-surface-muted: #f5f7fa; --theme-sidebar: #0d1828; --theme-sidebar-text: #dce9e8;
  --theme-hero: #087f7c; --theme-hero-mid: #118ca3; --theme-hero-end: #d47a4c; --theme-grid-line: rgba(255, 255, 255, .06);
  --admin-primary: #168d86; --admin-primary-dark: #0f766e; --admin-primary-soft: #e8f6f4; --admin-blue: #2d78c9; --admin-orange: #c47b2a; --admin-red: #bd5960; --admin-ink: #24354b; --admin-muted: #7b8b9e; --admin-muted-2: #aab6c4; --admin-border: #e4ebf1; --admin-border-strong: #d4e0e9; --admin-bg: #f3f7fa; --admin-panel: #ffffff; --admin-sidebar: #ffffff; --admin-shadow: 0 10px 30px rgba(25, 58, 88, .08);
}

html[data-theme="obsidian-jade"] {
  --ink: #19293a; --muted: #6f7f8e; --muted-2: #9aa8b2; --line: #e3e9e9; --soft: #f3f6f5; --paper: #fffefa;
  --navy: #0d1828; --navy-2: #15283a; --cyan: #1b9b91; --cyan-soft: #e7f6f3; --orange: #b88945; --orange-soft: #faf2e6;
  --green: #2c916b; --green-soft: #e8f5ee; --red: #c65c61; --red-soft: #fff0ef; --shadow: 0 16px 38px rgba(20, 46, 55, .08);
  --theme-focus: #1b9b91; --theme-focus-soft: #e8f6f3; --theme-warm: #b88945; --theme-surface-raised: #fffefa; --theme-surface-muted: #f3f6f5; --theme-sidebar: #0d1828; --theme-sidebar-text: #dce9e8;
  --theme-hero: #0e6f72; --theme-hero-mid: #1b9b91; --theme-hero-end: #aa7447; --theme-grid-line: rgba(255,255,255,.09);
  --admin-primary: #1b9b91; --admin-primary-dark: #13766f; --admin-primary-soft: #e7f6f3; --admin-blue: #3e74a8; --admin-orange: #b88945; --admin-red: #bd5960; --admin-ink: #20364b; --admin-muted: #687c8d; --admin-muted-2: #91a2ae; --admin-border: #dce7e8; --admin-border-strong: #c6d5d7; --admin-bg: #eef3f2; --admin-panel: #fffefa; --admin-sidebar: #122735; --admin-shadow: 0 10px 30px rgba(15, 47, 54, .09);
}

html[data-theme="midnight-copper"] {
  --ink: #202a38; --muted: #77808d; --muted-2: #a5adb7; --line: #e5e4e0; --soft: #f5f3ef; --paper: #fffdf9;
  --navy: #151a24; --navy-2: #222a38; --cyan: #6b93c5; --cyan-soft: #edf3fa; --orange: #b77c52; --orange-soft: #fbefe7;
  --green: #4d927d; --green-soft: #eaf4f0; --red: #ba6061; --red-soft: #fff0ee; --shadow: 0 16px 38px rgba(35, 31, 26, .08);
  --theme-focus: #6b93c5; --theme-focus-soft: #edf3fa; --theme-warm: #b77c52; --theme-surface-raised: #fffdf9; --theme-surface-muted: #f5f3ef; --theme-sidebar: #151a24; --theme-sidebar-text: #e3e5e8;
  --theme-hero: #202b3b; --theme-hero-mid: #365b83; --theme-hero-end: #a96e4c; --theme-grid-line: rgba(255,255,255,.08);
  --admin-primary: #6b93c5; --admin-primary-dark: #4f739e; --admin-primary-soft: #edf3fa; --admin-blue: #416d9f; --admin-orange: #b77c52; --admin-red: #ba6061; --admin-ink: #293544; --admin-muted: #707b88; --admin-muted-2: #9ca5ae; --admin-border: #e1e2e1; --admin-border-strong: #cbd0d1; --admin-bg: #f1f2f1; --admin-panel: #fffdf9; --admin-sidebar: #1c2430; --admin-shadow: 0 10px 30px rgba(34, 37, 42, .1);
}

html[data-theme="jade-ink"] {
  --ink: #21302d; --muted: #71817b; --muted-2: #9eaaa4; --line: #e1e9e4; --soft: #f1f5f1; --paper: #fffefa;
  --navy: #1e2b29; --navy-2: #293c37; --cyan: #3b9681; --cyan-soft: #e6f4ef; --orange: #ae8652; --orange-soft: #faf2e5;
  --green: #398968; --green-soft: #e6f3eb; --red: #bb6062; --red-soft: #fff0ef; --shadow: 0 16px 38px rgba(27, 53, 45, .08);
  --theme-focus: #3b9681; --theme-focus-soft: #e6f4ef; --theme-warm: #ae8652; --theme-surface-raised: #fffefa; --theme-surface-muted: #f1f5f1; --theme-sidebar: #1e2b29; --theme-sidebar-text: #e0ece6;
  --theme-hero: #233d37; --theme-hero-mid: #3b806f; --theme-hero-end: #9a7650; --theme-grid-line: rgba(255,255,255,.08);
  --admin-primary: #3b9681; --admin-primary-dark: #2d725f; --admin-primary-soft: #e6f4ef; --admin-blue: #5d7f9b; --admin-orange: #ae8652; --admin-red: #bb6062; --admin-ink: #2a3c37; --admin-muted: #6e8179; --admin-muted-2: #96a79e; --admin-border: #dce8e1; --admin-border-strong: #c4d5cb; --admin-bg: #edf3ef; --admin-panel: #fffefa; --admin-sidebar: #223531; --admin-shadow: 0 10px 30px rgba(25, 57, 46, .09);
}

html[data-theme="silver-cobalt"] {
  --ink: #1f2b3d; --muted: #6c7a8e; --muted-2: #98a5b5; --line: #dfe5ed; --soft: #f1f4f8; --paper: #ffffff;
  --navy: #1d2d49; --navy-2: #29466d; --cyan: #2f5fb3; --cyan-soft: #eaf0fb; --orange: #bd7544; --orange-soft: #fbf0e8;
  --green: #288b76; --green-soft: #e7f4ef; --red: #c2565c; --red-soft: #fff0f0; --shadow: 0 16px 38px rgba(29, 50, 80, .08);
  --theme-focus: #2f5fb3; --theme-focus-soft: #eaf0fb; --theme-warm: #bd7544; --theme-surface-raised: #ffffff; --theme-surface-muted: #f1f4f8; --theme-sidebar: #1d2d49; --theme-sidebar-text: #e0e8f3;
  --theme-hero: #203b69; --theme-hero-mid: #2f5fb3; --theme-hero-end: #b8734b; --theme-grid-line: rgba(255,255,255,.1);
  --admin-primary: #2f5fb3; --admin-primary-dark: #234a8e; --admin-primary-soft: #eaf0fb; --admin-blue: #2f5fb3; --admin-orange: #bd7544; --admin-red: #c2565c; --admin-ink: #263952; --admin-muted: #65758a; --admin-muted-2: #91a0b2; --admin-border: #dce4ee; --admin-border-strong: #c4d1e0; --admin-bg: #eef2f7; --admin-panel: #ffffff; --admin-sidebar: #1d2d49; --admin-shadow: 0 10px 30px rgba(29, 50, 80, .1);
}

html[data-theme] body { color: var(--ink); background: var(--soft); }
html[data-theme] .login-visual, html[data-theme] .sidebar { background: var(--navy); }
html[data-theme] .main-content { background-color: var(--theme-surface-muted); background-image: linear-gradient(color-mix(in srgb, var(--theme-focus) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--theme-focus) 6%, transparent) 1px, transparent 1px); background-size: 32px 32px; }
html[data-theme] .primary-button { background: var(--theme-focus); border-color: var(--theme-focus); }
html[data-theme] .primary-button:hover { background: var(--navy-2); }
html[data-theme] .secondary-button, html[data-theme] .tag.cyan { color: var(--theme-focus); background: var(--theme-focus-soft); }
html[data-theme] .monitor-sidebar { color: var(--ink); background: var(--theme-surface-muted); border-right-color: var(--line); }
html[data-theme] .monitor-sidebar-bg { background: radial-gradient(circle at 9% -6%, color-mix(in srgb, var(--theme-focus) 18%, transparent), transparent 42%), radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--theme-warm) 12%, transparent), transparent 47%); }
html[data-theme] .monitor-sidebar-brand-mark, html[data-theme] .signal-core { background: var(--theme-focus); }
html[data-theme] .monitor-sidebar-brand-copy h1 { color: var(--ink); }
html[data-theme] .monitor-nav-link:hover { color: var(--theme-focus) !important; background: var(--theme-focus-soft) !important; }
html[data-theme] .monitor-nav-link.active { color: var(--theme-focus) !important; background: color-mix(in srgb, var(--theme-focus) 14%, white) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-focus) 28%, transparent) !important; }
html[data-theme] .monitor-market-switch button.active { background: var(--theme-focus); }
html[data-theme] .topbar { background: color-mix(in srgb, var(--paper) 96%, transparent); border-bottom-color: var(--line); }
html[data-theme] .panel, html[data-theme] .monitor-detail-surface, html[data-theme] .monitor-support-panel { background: var(--paper); border-color: var(--line); }
html[data-theme] .view-header { background: var(--theme-surface-raised); border-color: var(--line); box-shadow: 0 14px 34px color-mix(in srgb, var(--theme-sidebar) 9%, transparent); }
html[data-theme] #view-root[data-view="dashboard"] .view-header { background-color: var(--theme-hero); background-image: linear-gradient(var(--theme-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--theme-grid-line) 1px, transparent 1px), linear-gradient(115deg, var(--theme-hero) 0%, var(--theme-hero-mid) 68%, var(--theme-hero-end) 100%); background-size: 38px 38px, 38px 38px, auto; border-color: color-mix(in srgb, var(--theme-focus) 45%, white); }
html[data-theme] .view-header h3, html[data-theme] .view-header p { color: var(--ink); }
html[data-theme] #view-root[data-view="dashboard"] .view-header h3 { color: #fff; }
html[data-theme] #view-root[data-view="dashboard"] .view-header p { color: rgba(255,255,255,.8); }
html[data-theme] .stat-card { border-top-color: var(--theme-focus); }
html[data-theme] .grid-4 > .stat-card:nth-child(2), html[data-theme] .grid-3 > .stat-card:nth-child(2) { border-top-color: color-mix(in srgb, var(--theme-focus) 70%, #5886b4); }
html[data-theme] .grid-4 > .stat-card:nth-child(3), html[data-theme] .grid-3 > .stat-card:nth-child(3) { border-top-color: var(--theme-warm); }
html[data-theme] .grid-4 > .stat-card:nth-child(4) { border-top-color: var(--theme-focus); }
html[data-theme] .stat-card.accent { background: var(--navy); border-color: var(--navy); }
html[data-theme] .stat-card.accent .stat-label, html[data-theme] .stat-card.accent .stat-value, html[data-theme] .stat-card.accent .stat-meta { color: #fff; }
html[data-theme] .stat-card.accent .stat-label, html[data-theme] .stat-card.accent .stat-meta { color: rgba(255,255,255,.68); }
html[data-theme] .stat-card.orange { background: color-mix(in srgb, var(--theme-warm) 9%, var(--paper)); border-color: color-mix(in srgb, var(--theme-warm) 32%, var(--line)); }
html[data-theme] .stat-card.green { background: var(--theme-focus-soft); border-color: color-mix(in srgb, var(--theme-focus) 30%, var(--line)); }
html[data-theme] .ops-workflow { background: color-mix(in srgb, var(--paper) 94%, var(--theme-focus-soft)); border-color: var(--line); }
html[data-theme] .ops-workflow-loop { border-color: color-mix(in srgb, var(--theme-focus) 42%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--theme-focus) 7%, transparent), color-mix(in srgb, var(--theme-focus) 3%, transparent) 48%, color-mix(in srgb, var(--theme-warm) 7%, transparent)); }
html[data-theme] .ops-workflow-group { background: color-mix(in srgb, var(--paper) 94%, var(--theme-surface-muted)); border-color: var(--line); }
html[data-theme] .ops-workflow-phase, html[data-theme] .ops-workflow-cta { color: var(--theme-focus); }
html[data-theme] .ops-workflow-group.is-content .ops-workflow-phase { color: color-mix(in srgb, var(--theme-focus) 72%, #2f5f9b); }
html[data-theme] .ops-workflow-link:hover { background: var(--theme-focus-soft); }
html[data-theme] .ops-workflow-link strong { color: var(--ink); }
html[data-theme] .ops-workflow-icon.tone-blue, html[data-theme] .ops-workflow-icon.tone-green { background: var(--theme-focus); }
html[data-theme] .ops-workflow-icon.tone-amber, html[data-theme] .ops-workflow-icon.tone-yellow { background: var(--theme-warm); }
html[data-theme] .ops-workflow-icon.tone-purple, html[data-theme] .ops-workflow-icon.tone-coral, html[data-theme] .ops-workflow-icon.tone-rose { background: color-mix(in srgb, var(--theme-focus) 65%, var(--navy)); }
html[data-theme] .ops-workflow-arrow { background: linear-gradient(90deg, color-mix(in srgb, var(--theme-focus) 55%, white), var(--theme-focus)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-focus) 10%, transparent); }
html[data-theme] .monitor-support-dock, html[data-theme] .support-dock { border-color: var(--line); }

html[data-theme] .admin-sidebar { background: var(--admin-sidebar); border-right-color: color-mix(in srgb, var(--admin-sidebar) 75%, white); }
html[data-theme] .admin-nav a.active { background: var(--admin-primary); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--admin-primary) 35%, white); }
html[data-theme] .admin-nav a:hover { background: color-mix(in srgb, var(--admin-primary) 24%, var(--admin-sidebar)); }
html[data-theme] .admin-topbar { background: color-mix(in srgb, var(--admin-panel) 96%, transparent); border-bottom-color: var(--admin-border); }
html[data-theme] .admin-card { background: var(--admin-panel); border-color: var(--admin-border); }
html[data-theme] .admin-button-primary { background: var(--admin-primary); border-color: var(--admin-primary); }
html[data-theme] .admin-button-primary:hover { background: var(--admin-primary-dark); border-color: var(--admin-primary-dark); }

.theme-switcher { position: relative; z-index: 90; }
.theme-switcher-trigger { display: inline-grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--paper); cursor: pointer; transition: border-color .15s, color .15s, background .15s, box-shadow .15s; }
.theme-switcher-trigger:hover, .theme-switcher-trigger[aria-expanded="true"] { color: var(--theme-focus); border-color: color-mix(in srgb, var(--theme-focus) 42%, var(--line)); background: var(--theme-focus-soft); }
.theme-switcher-trigger:focus-visible { outline: 2px solid var(--theme-focus); outline-offset: 2px; }
.theme-switcher-icon { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-switcher-icon circle { fill: currentColor; stroke: none; }
.theme-switcher-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 248px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 0 18px 48px rgba(18, 32, 47, .16); }
.theme-switcher-panel[hidden] { display: none; }
.theme-switcher-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 1px 2px 9px; color: var(--ink); font-size: 12px; }
.theme-switcher-heading span { color: var(--muted-2); font-size: 10px; }
.theme-option-list { display: grid; gap: 4px; }
.theme-option { display: grid; grid-template-columns: 16px minmax(0, 1fr) 16px; align-items: center; gap: 9px; min-width: 0; padding: 8px 7px; border: 1px solid transparent; border-radius: 6px; color: var(--ink); background: transparent; text-align: left; }
.theme-option:hover, .theme-option.is-active { border-color: color-mix(in srgb, var(--theme-focus) 28%, var(--line)); background: var(--theme-focus-soft); }
.theme-option-swatch { width: 14px; height: 14px; border: 2px solid var(--paper); border-radius: 50%; background: var(--theme-swatch); box-shadow: 0 0 0 1px color-mix(in srgb, var(--theme-swatch) 70%, #172337); }
.theme-option-copy { min-width: 0; }
.theme-option-copy b, .theme-option-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-option-copy b { font-size: 11px; }
.theme-option-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.theme-option-check { color: transparent; font-size: 12px; font-weight: 800; }
.theme-option.is-active .theme-option-check { color: var(--theme-focus); }
.admin-topbar .theme-switcher-trigger { border-color: var(--admin-border); color: var(--admin-muted); background: var(--admin-panel); }
.admin-topbar .theme-switcher-trigger:hover, .admin-topbar .theme-switcher-trigger[aria-expanded="true"] { color: var(--admin-primary-dark); border-color: var(--admin-primary); background: var(--admin-primary-soft); }
.admin-topbar .theme-switcher-trigger { color: var(--admin-muted); }
.admin-topbar .theme-switcher-trigger:hover, .admin-topbar .theme-switcher-trigger[aria-expanded="true"] { color: var(--admin-primary-dark); }

/* The theme control lives in the top-right workspace header. */
.topbar-actions, .admin-topbar-actions { position: relative; }
.topbar-actions .theme-switcher, .admin-topbar-actions .theme-switcher { flex: 0 0 auto; }
.topbar-actions .theme-switcher-panel, .admin-topbar-actions .theme-switcher-panel { top: calc(100% + 10px); right: 0; }

/* The reference-style monitoring view hides its workspace header; keep only the theme control visible. */
.app-shell.monitor-shell .main-content > .topbar,
.app-shell.reference-nav-shell:not(.monitor-shell) .main-content > .topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.app-shell.monitor-shell .main-content > .topbar > div:first-child,
.app-shell.reference-nav-shell:not(.monitor-shell) .main-content > .topbar > div:first-child,
.app-shell.monitor-shell .main-content > .topbar .env-badge,
.app-shell.reference-nav-shell:not(.monitor-shell) .main-content > .topbar .env-badge,
.app-shell.monitor-shell .main-content > .topbar .user-chip { display: none; }
.app-shell.reference-nav-shell:not(.monitor-shell) .main-content > .topbar .user-chip { display: none; }
.app-shell.monitor-shell .main-content > .topbar .topbar-actions,
.app-shell.reference-nav-shell:not(.monitor-shell) .main-content > .topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: calc(100% - 32px);
  margin-right: 16px;
  margin-left: 16px;
  white-space: nowrap;
  pointer-events: auto;
}
.compliance-notice {
  position: relative;
  z-index: 92;
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  min-height: 32px;
  overflow: hidden;
  border: 1px solid #f1c9d0;
  border-radius: 6px;
  color: #9c3449;
  background: #fff1f3;
}
.compliance-notice-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 0 7px;
  border-radius: 50%;
  color: #fff;
  background: #c34b61;
  font-size: 11px;
  font-weight: 800;
}
.compliance-notice-viewport { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.compliance-notice-track { display: flex; width: max-content; align-items: center; animation: compliance-marquee 46s linear infinite; }
.compliance-notice-track > span { flex: 0 0 auto; padding-right: 48px; color: #9c3449; font-size: 11px; font-weight: 650; line-height: 30px; white-space: nowrap; }
.compliance-notice:hover .compliance-notice-track, .compliance-notice:focus-within .compliance-notice-track { animation-play-state: paused; }
@keyframes compliance-marquee { to { transform: translateX(-50%); } }
.announcement-trigger {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 68px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d9e3eb;
  border-radius: 6px;
  color: #42566b;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: color .15s, border-color .15s, background .15s;
}
.announcement-trigger:hover, .announcement-trigger:focus-visible { color: #1768a8; border-color: #9cc5e6; background: #f2f8fd; }
.announcement-trigger svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.announcement-unread-dot { position: absolute; top: 5px; right: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #e1515e; }
.announcement-unread-dot[hidden] { display: none; }
.account-expiry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px 0 5px;
  border: 1px solid #1768c7;
  border-radius: 6px;
  color: #fff;
  background: #176fd1;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  transition: background .15s, border-color .15s;
}
.account-expiry:hover { border-color: #1258a6; background: #125fb8; }
.account-expiry-vip { display: grid; place-items: center; min-width: 27px; height: 22px; padding: 0 4px; border-radius: 4px; color: #704b08; background: #f6cc5c; font-size: 9px; font-weight: 900; }
.account-expiry-prefix { opacity: .83; }
.account-expiry strong { font-size: 11px; font-weight: 750; }
.account-expiry.is-expired { border-color: #bd4856; background: #c34b61; }
.account-expiry.is-expired .account-expiry-vip { color: #8f2637; background: #ffe2e6; }
.announcement-modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; }
.announcement-modal.hidden { display: none; }
body.announcement-modal-open { overflow: hidden; }
.announcement-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(15, 30, 46, .48); cursor: default; backdrop-filter: blur(3px); }
.announcement-modal-card { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(620px, 100%); max-height: min(76vh, 720px); overflow: hidden; border: 1px solid #dbe4ed; border-radius: 12px; background: #fff; box-shadow: 0 24px 80px rgba(13, 31, 49, .24); animation: announcement-modal-in .18s ease-out; }
.announcement-modal-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 17px; border-bottom: 1px solid #edf1f5; }
.announcement-modal-kicker { color: #4282ae; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.announcement-modal-card h2 { margin: 5px 0 0; color: #243a50; font-size: 20px; line-height: 1.3; }
.announcement-modal-card header p { margin: 6px 0 0; color: #8492a1; font-size: 11px; }
.announcement-modal-close { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid #e1e8ee; border-radius: 6px; color: #708093; background: #fff; cursor: pointer; font-size: 21px; line-height: 1; }
.announcement-modal-close:hover { color: #31475e; background: #f4f7fa; }
.announcement-modal-content { min-height: 90px; padding: 22px 24px; overflow: auto; color: #43566b; font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.announcement-modal-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 24px; border-top: 1px solid #edf1f5; color: #8b97a5; background: #fbfcfd; font-size: 10px; }
.announcement-modal-confirm { min-height: 34px; padding: 0 15px; border: 1px solid #2477b4; border-radius: 5px; color: #fff; background: #277fba; cursor: pointer; font-size: 11px; font-weight: 700; }
.announcement-modal-confirm:hover { background: #1c699f; }
@keyframes announcement-modal-in { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1023px) {
  .theme-switcher-trigger { width: 34px; min-width: 34px; padding: 0; }
  .theme-switcher-panel { position: fixed; top: 96px; right: 12px; width: min(248px, calc(100vw - 24px)); }
  .app-shell.monitor-shell .main-content > .topbar { top: 38px; }
  .app-shell.reference-nav-shell:not(.monitor-shell) .main-content > .topbar { top: 44px; }
  .app-shell.monitor-shell .main-content > .topbar .topbar-actions,
  .app-shell.reference-nav-shell:not(.monitor-shell) .main-content > .topbar .topbar-actions { gap: 6px; min-height: 40px; width: calc(100% - 24px); margin-right: 12px; margin-left: 12px; }
  .compliance-notice { min-height: 30px; }
  .compliance-notice-icon { margin-right: 5px; margin-left: 6px; }
  .compliance-notice-track > span { font-size: 10px; line-height: 28px; }
  .announcement-trigger { min-width: 34px; min-height: 32px; padding: 0 8px; }
  .announcement-trigger > span { display: none; }
  .account-expiry { min-height: 32px; gap: 5px; padding-right: 7px; }
  .account-expiry-prefix { display: none; }
  .account-expiry-vip { min-width: 24px; height: 20px; }
}

@media (max-width: 380px) {
  .app-shell.monitor-shell .main-content > .topbar .topbar-actions,
  .app-shell.reference-nav-shell:not(.monitor-shell) .main-content > .topbar .topbar-actions { width: calc(100% - 16px); margin-right: 8px; margin-left: 8px; }
  .account-expiry { gap: 4px; padding-left: 4px; padding-right: 6px; font-size: 10px; }
  .compliance-notice { min-width: 64px; }
  .compliance-notice-track > span { font-size: 9px; }
  .account-expiry strong { font-size: 10px; }
  .account-expiry-vip { min-width: 22px; font-size: 8px; }
}

@media (max-width: 560px) {
  .announcement-modal { padding: 12px; }
  .announcement-modal-card { max-height: 84vh; border-radius: 9px; }
  .announcement-modal-card > header { padding: 18px 17px 14px; }
  .announcement-modal-content { padding: 18px 17px; font-size: 12px; }
  .announcement-modal-card > footer { padding: 11px 17px; }
  .announcement-modal-card > footer > span { max-width: 55%; line-height: 1.45; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .app-shell.reference-nav-shell:not(.monitor-shell) .main-content > .topbar .topbar-actions { gap: 6px; }
  .account-expiry { gap: 5px; padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .compliance-notice-track { animation: none; }
  .compliance-notice-viewport { overflow-x: auto; scrollbar-width: thin; }
}

/* The default workspace keeps the original saas.geohao.com visual language. */
html[data-theme="classic-default"] .main-content {
  background-color: #eef7fb;
  background-image: linear-gradient(rgba(30, 143, 154, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 143, 154, .055) 1px, transparent 1px);
}
html[data-theme="classic-default"] .ops-workflow { background: rgba(255, 255, 255, .94); border-color: #d9e7ed; }
html[data-theme="classic-default"] .ops-workflow-loop { border-color: rgba(13, 130, 125, .34); background: linear-gradient(180deg, rgba(0, 168, 148, .05), rgba(0, 144, 212, .035) 48%, rgba(255, 122, 69, .045)); }
html[data-theme="classic-default"] .ops-workflow-group { background: rgba(255, 255, 255, .9); border-color: #e6eef2; }
html[data-theme="classic-default"] .ops-workflow-group.is-diagnosis { border-color: rgba(13, 130, 125, .24); }
html[data-theme="classic-default"] .ops-workflow-group.is-content { border-color: rgba(39, 143, 188, .24); }
html[data-theme="classic-default"] .ops-workflow-phase { color: #0f766e; }
html[data-theme="classic-default"] .ops-workflow-group.is-content .ops-workflow-phase { color: #0369a1; }
html[data-theme="classic-default"] .ops-workflow-link:hover, html[data-theme="classic-default"] .ops-workflow-link:focus-visible { background: #f4fafb; }
html[data-theme="classic-default"] .ops-workflow-icon.tone-blue { background: #3b82f6; }
html[data-theme="classic-default"] .ops-workflow-icon.tone-green { background: #10b981; }
html[data-theme="classic-default"] .ops-workflow-icon.tone-amber { background: #f59e0b; }
html[data-theme="classic-default"] .ops-workflow-icon.tone-purple { background: #8b5cf6; }
html[data-theme="classic-default"] .ops-workflow-icon.tone-yellow { color: #422006; background: #eab308; }
html[data-theme="classic-default"] .ops-workflow-icon.tone-coral { background: #f43f5e; }
html[data-theme="classic-default"] .ops-workflow-icon.tone-rose { background: #fb7185; }
html[data-theme="classic-default"] .ops-workflow-cta { color: #0f766e; }
html[data-theme="classic-default"] .ops-workflow-arrow { background: linear-gradient(90deg, #5ec4b8, #0f766e); }
.workflow-icon-svg { display: block; flex: 0 0 auto; }

/* Distinct two-panel palettes: navigation remains saturated, workspace stays readable. */
html[data-theme="classic-default"] {
  --theme-focus: #0e9f9a;
  --theme-focus-soft: #d9f1ef;
  --theme-warm: #e38a45;
  --theme-sidebar-fill: linear-gradient(160deg, #174b5a 0%, #12364b 48%, #0d273e 100%);
  --theme-sidebar-ink: #f0f8fb;
  --theme-sidebar-muted: #b3cbd5;
  --theme-sidebar-line: rgba(183, 219, 229, .2);
  --theme-sidebar-hover: rgba(209, 239, 241, .11);
  --theme-sidebar-active: linear-gradient(105deg, #0b938e, #087e9b);
  --theme-sidebar-active-ink: #ffffff;
  --theme-main-bg: #e5f2f6;
  --theme-main-grid: rgba(17, 108, 133, .09);
}
html[data-theme="obsidian-jade"] {
  --theme-focus: #10a875;
  --theme-focus-soft: #d9f1e6;
  --theme-warm: #d6a341;
  --theme-sidebar-fill: linear-gradient(160deg, #155344 0%, #103f3b 48%, #0b302f 100%);
  --theme-sidebar-ink: #effaf4;
  --theme-sidebar-muted: #add0bf;
  --theme-sidebar-line: rgba(173, 224, 197, .2);
  --theme-sidebar-hover: rgba(199, 244, 218, .11);
  --theme-sidebar-active: linear-gradient(105deg, #13865f, #087c65);
  --theme-sidebar-active-ink: #ffffff;
  --theme-main-bg: #e2f1e8;
  --theme-main-grid: rgba(31, 119, 80, .1);
}
html[data-theme="midnight-copper"] {
  --theme-focus: #c56c3b;
  --theme-focus-soft: #f5e5d9;
  --theme-warm: #d29a52;
  --theme-sidebar-fill: linear-gradient(160deg, #39404a 0%, #2d333d 50%, #222832 100%);
  --theme-sidebar-ink: #f8f5f1;
  --theme-sidebar-muted: #c8c1ba;
  --theme-sidebar-line: rgba(234, 211, 190, .2);
  --theme-sidebar-hover: rgba(250, 229, 207, .1);
  --theme-sidebar-active: linear-gradient(105deg, #ad5833, #99502f);
  --theme-sidebar-active-ink: #ffffff;
  --theme-main-bg: #f1ece5;
  --theme-main-grid: rgba(146, 91, 54, .09);
}
html[data-theme="jade-ink"] {
  --theme-focus: #39765c;
  --theme-focus-soft: #deeee2;
  --theme-warm: #bd8c43;
  --theme-sidebar-fill: linear-gradient(160deg, #345742 0%, #284735 50%, #1d352c 100%);
  --theme-sidebar-ink: #f1f8ef;
  --theme-sidebar-muted: #bfd1bb;
  --theme-sidebar-line: rgba(206, 228, 196, .2);
  --theme-sidebar-hover: rgba(222, 243, 212, .1);
  --theme-sidebar-active: linear-gradient(105deg, #4d8a62, #347450);
  --theme-sidebar-active-ink: #ffffff;
  --theme-main-bg: #e8f0e5;
  --theme-main-grid: rgba(55, 109, 73, .1);
}
html[data-theme="silver-cobalt"] {
  --theme-focus: #315fc1;
  --theme-focus-soft: #dfe9fb;
  --theme-warm: #ce7747;
  --theme-sidebar-fill: linear-gradient(160deg, #28528a 0%, #204575 50%, #18365f 100%);
  --theme-sidebar-ink: #f2f6ff;
  --theme-sidebar-muted: #bbcae4;
  --theme-sidebar-line: rgba(196, 215, 247, .22);
  --theme-sidebar-hover: rgba(213, 228, 255, .12);
  --theme-sidebar-active: linear-gradient(105deg, #356bcf, #2857aa);
  --theme-sidebar-active-ink: #ffffff;
  --theme-main-bg: #e4ecf9;
  --theme-main-grid: rgba(46, 83, 153, .1);
}

html[data-theme] .app-shell.monitor-shell > #monitor-sidebar.sidebar-shell,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar.sidebar-shell {
  color: var(--theme-sidebar-ink) !important;
  background: var(--theme-sidebar-fill) !important;
  border-right: 1px solid var(--theme-sidebar-line) !important;
  box-shadow: 10px 0 30px rgba(13, 31, 44, .17) !important;
}
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-shell-bg,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-shell-bg {
  opacity: .58;
  background: radial-gradient(ellipse at 12% 0%, color-mix(in srgb, var(--theme-focus) 48%, transparent), transparent 44%), radial-gradient(ellipse at 100% 90%, color-mix(in srgb, var(--theme-warm) 24%, transparent), transparent 42%) !important;
}
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-title,
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-brand-name,
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-company,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-title,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-brand-name,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-company,
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .nav-group-label,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .nav-group-label {
  color: var(--theme-sidebar-ink) !important;
}
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-kicker,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-kicker,
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-nav-link,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-nav-link,
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-nav-subgroup-toggle,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-nav-subgroup-toggle {
  color: var(--theme-sidebar-muted) !important;
}
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-nav-link:hover,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-nav-link:hover,
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-nav-subgroup-toggle:hover,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-nav-subgroup-toggle:hover,
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-nav-subgroup.is-expanded > .sidebar-nav-subgroup-toggle,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-nav-subgroup.is-expanded > .sidebar-nav-subgroup-toggle {
  color: var(--theme-sidebar-ink) !important;
  background: var(--theme-sidebar-hover) !important;
}
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-nav-link.nav-item-active,
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-nav-link.active,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-nav-link.nav-item-active,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-nav-link.active {
  color: var(--theme-sidebar-active-ink) !important;
  border-color: color-mix(in srgb, var(--theme-focus) 70%, white) !important;
  background: var(--theme-sidebar-active) !important;
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--theme-warm) 75%, white), 0 4px 14px color-mix(in srgb, var(--theme-focus) 25%, transparent) !important;
}
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-market-switch,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-market-switch {
  border-color: var(--theme-sidebar-line) !important;
  background: rgba(0, 0, 0, .14) !important;
}
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-market-btn,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-market-btn {
  color: var(--theme-sidebar-muted) !important;
  background: transparent !important;
}
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-market-btn.active,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-market-btn.active {
  color: #ffffff !important;
  background: var(--theme-sidebar-active) !important;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--theme-focus) 28%, transparent) !important;
}
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-collapse-button,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-collapse-button,
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-footer .btn,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-footer .btn {
  color: var(--theme-sidebar-ink) !important;
  border-color: var(--theme-sidebar-line) !important;
  background: rgba(255, 255, 255, .09) !important;
}
html[data-theme] .app-shell.monitor-shell > #monitor-sidebar .sidebar-admin-entry,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > #monitor-sidebar .sidebar-admin-entry {
  color: #ffffff !important;
  background: color-mix(in srgb, var(--theme-focus) 76%, #102334) !important;
}
html[data-theme] .app-shell.monitor-shell > .main-content,
html[data-theme] .app-shell.reference-nav-shell:not(.monitor-shell) > .main-content {
  background-color: var(--theme-main-bg) !important;
  background-image: linear-gradient(var(--theme-main-grid) 1px, transparent 1px), linear-gradient(90deg, var(--theme-main-grid) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
}

html[data-theme] body:has(.admin-app) { background: var(--theme-main-bg) !important; }
html[data-theme] .admin-app { background: var(--theme-main-bg) !important; }
html[data-theme] .admin-sidebar {
  color: var(--theme-sidebar-ink) !important;
  background: var(--theme-sidebar-fill) !important;
  border-right-color: var(--theme-sidebar-line) !important;
}
html[data-theme] .admin-sidebar-brand,
html[data-theme] .admin-sidebar-footer { border-color: var(--theme-sidebar-line) !important; }
html[data-theme] .admin-sidebar-brand b,
html[data-theme] .admin-nav a,
html[data-theme] .admin-nav a span,
html[data-theme] .admin-workspace-link,
html[data-theme] .admin-logout-button { color: var(--theme-sidebar-ink) !important; }
html[data-theme] .admin-sidebar-brand span:not(.admin-brand-mark),
html[data-theme] .admin-nav-group p { color: var(--theme-sidebar-muted) !important; }
html[data-theme] .admin-nav a:hover { color: #ffffff !important; background: var(--theme-sidebar-hover) !important; }
html[data-theme] .admin-nav a.active { color: #ffffff !important; background: var(--theme-sidebar-active) !important; box-shadow: inset 3px 0 0 color-mix(in srgb, var(--theme-warm) 75%, white) !important; }
html[data-theme] .admin-main-shell { background: var(--theme-main-bg) !important; }
html[data-theme] .admin-topbar { background: color-mix(in srgb, var(--theme-main-bg) 84%, white) !important; border-bottom-color: color-mix(in srgb, var(--theme-focus) 25%, white) !important; }

/* Keep the nine workflow actions on their original semantic colors in every theme. */
html[data-theme] .ops-workflow-icon.tone-blue { color: #ffffff !important; background: #3b82f6 !important; }
html[data-theme] .ops-workflow-icon.tone-green { color: #ffffff !important; background: #10b981 !important; }
html[data-theme] .ops-workflow-icon.tone-amber { color: #ffffff !important; background: #f59e0b !important; }
html[data-theme] .ops-workflow-icon.tone-purple { color: #ffffff !important; background: #8b5cf6 !important; }
html[data-theme] .ops-workflow-icon.tone-yellow { color: #422006 !important; background: #eab308 !important; }
html[data-theme] .ops-workflow-icon.tone-coral { color: #ffffff !important; background: #f43f5e !important; }
html[data-theme] .ops-workflow-icon.tone-rose { color: #ffffff !important; background: #fb7185 !important; }
html[data-theme] .ops-workflow-icon .workflow-icon-svg { color: inherit !important; }
html[data-theme] .ops-workflow-cta { color: #0f766e !important; }
html[data-theme] .ops-workflow-arrow { background: linear-gradient(90deg, #5ec4b8, #0f766e) !important; box-shadow: 0 0 0 3px rgba(15, 118, 110, .1) !important; }

/* Dashboard KPI tiles use fixed semantic colors across all interface themes. */
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metrics { gap: 16px; }
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric {
  position: relative;
  min-height: 194px;
  padding: 18px 19px 15px;
  overflow: hidden;
  border: 1px solid var(--metric-line, #d9e3e9);
  border-top: 4px solid var(--metric-accent, #0e9f9a);
  border-radius: 10px;
  background: var(--metric-surface, #ffffff);
  box-shadow: 0 8px 22px rgba(22, 45, 62, .07), 0 1px 2px rgba(22, 45, 62, .04);
  transition: transform .16s ease, box-shadow .16s ease;
}
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(22, 45, 62, .11), 0 2px 5px rgba(22, 45, 62, .05);
}
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-head { display: flex; min-width: 0; align-items: center; gap: 10px; }
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--metric-icon-line, transparent);
  border-radius: 8px;
  color: var(--metric-accent, #0e9f9a);
  background: var(--metric-icon-bg, #d9f1ef);
}
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-label { color: var(--metric-label, #526578); font-size: 13px; font-weight: 740; }
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-value {
  margin-top: 17px;
  color: var(--metric-value, #203247);
  font-size: 35px;
  line-height: 1.05;
  font-weight: 780;
}
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-value small { color: var(--metric-label, #526578); font-size: 13px; }
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-note { margin-top: 7px; color: var(--metric-note, #718296); font-size: 11px; line-height: 1.5; }
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-link {
  min-height: 29px;
  margin: auto 0 -3px -7px;
  padding-inline: 7px;
  border-radius: 5px;
  color: var(--metric-accent, #0e9f9a);
  font-size: 11px;
}
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-link:hover { background: var(--metric-link-hover, #d9f1ef); }
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric.is-balance {
  --metric-accent: #16877e;
  --metric-label: #3d716c;
  --metric-value: #1d514d;
  --metric-note: #6e8985;
  --metric-icon-bg: #d9efeb;
  --metric-icon-line: #c7e5e0;
  --metric-link-hover: #dcefeb;
  --metric-line: #cfe5e1;
  --metric-surface: #eef7f5;
}
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric.is-brand {
  --metric-accent: #3269bf;
  --metric-label: #3d5e91;
  --metric-value: #203f72;
  --metric-note: #6c7e98;
  --metric-icon-bg: #dce8fc;
  --metric-icon-line: #cbdcf8;
  --metric-link-hover: #dfe9f8;
  --metric-line: #d2def1;
  --metric-surface: #f0f5fd;
}
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric.is-knowledge {
  --metric-accent: #16875d;
  --metric-label: #356d53;
  --metric-value: #1c573d;
  --metric-note: #6d8978;
  --metric-icon-bg: #d9efe1;
  --metric-icon-line: #c7e5d3;
  --metric-link-hover: #dcefe3;
  --metric-line: #cfe4d5;
  --metric-surface: #eef7f0;
}
html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric.is-content {
  --metric-accent: #c9653d;
  --metric-label: #87513b;
  --metric-value: #713d2c;
  --metric-note: #967768;
  --metric-icon-bg: #f9e3d8;
  --metric-icon-line: #f0d3c5;
  --metric-link-hover: #f7e5dc;
  --metric-line: #ecd6cb;
  --metric-surface: #fff5ef;
}
@media (max-width: 520px) {
  html[data-theme] #view-root[data-view="dashboard"] .dashboard-metrics { gap: 10px; }
  html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric { min-height: 178px; padding: 14px 12px 12px; }
  html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-head { gap: 8px; }
  html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-icon { width: 34px; height: 34px; flex-basis: 34px; }
  html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-label { font-size: 12px; }
  html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-value { margin-top: 14px; font-size: 28px; }
  html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-note { min-height: 30px; font-size: 10px; }
  html[data-theme] #view-root[data-view="dashboard"] .dashboard-metric-link { font-size: 10px; }
}
