/* Shared two-row application chrome. Deliberately independent of module CSS. */
.cg-theme-toggle{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:10px;border:1px solid #dce2eb;border-radius:50%;background:#fff;color:#566174;cursor:pointer}.cg-theme-toggle svg{width:22px;height:22px}.cg-theme-toggle:focus-visible{outline:3px solid #8fbfff;outline-offset:3px}.cg-theme-floating{position:fixed;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));z-index:90}.cg-header-top>.cg-theme-toggle{margin-left:auto}.cg-header-top>.cg-theme-toggle+.cg-header-account{margin-left:0}
.cg-theme-menu{position:fixed;z-index:1200;display:grid;gap:4px;width:min(240px,calc(100vw - 24px));box-sizing:border-box;padding:8px;border:1px solid #dce2eb;border-radius:16px;background:#fff;color:#202a3b;box-shadow:0 14px 40px #17243524}.cg-theme-menu>button{display:flex;align-items:center;gap:10px;border:0;border-radius:10px;padding:12px;min-height:44px;background:transparent;color:inherit;text-align:left;font:inherit;font-size:14px;cursor:pointer}.cg-theme-menu>button::before{content:'';width:16px;flex:0 0 16px}.cg-theme-menu>button[aria-checked=true]::before{content:'✓'}.cg-theme-menu>button:hover,.cg-theme-menu>button:focus-visible{background:#edf4ff;outline:2px solid #87b9ff;outline-offset:-2px}.cg-theme-menu>button[aria-checked=true]{color:#0766d1;background:#edf4ff}html[data-cg-theme=dark] .cg-theme-menu{background:#232d39;color:#edf1f6;border-color:#455263;box-shadow:0 14px 40px #0006}html[data-cg-theme=dark] .cg-theme-menu>button:is(:hover,:focus-visible,[aria-checked=true]){background:#253f5a;color:#a2c9ff}
body.cg-unified { --cg-rail: 0px; --cg-header: 125px; --cg-bottom: 0px; }
body.cg-unified.cg-menu-compact { --cg-rail: 76px; }
body.cg-unified.cg-menu-open { --cg-rail: 224px; }
.cg-shell { color: #202126; font: 14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.cg-shell *, .cg-shell *::before, .cg-shell *::after { box-sizing: border-box; }
.cg-shell button, .cg-shell select, .cg-shell a { font: inherit; letter-spacing: normal; text-transform: none; }
.cg-shell button, .cg-shell a, .cg-shell summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cg-shell button { cursor: pointer; }
.cg-shell a { text-decoration: none; }
.cg-shell svg { width: 21px; height: 21px; flex: 0 0 21px; }
.cg-shell :is(button,a,summary,select):focus-visible { outline: 3px solid #8fbfff; outline-offset: 3px; }
.cg-header { position: fixed; inset: 0 0 auto; z-index: 70; background: rgba(255,255,255,.97); border-bottom: 1px solid #e4e6eb; backdrop-filter: blur(18px); }
.cg-header-top { height: 76px; display: flex; align-items: center; gap: 20px; padding: 0 28px; }
.cg-header-toggle { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 0; border: 0; border-radius: 11px; background: transparent; color: #6b7280; }
.cg-header-toggle:hover { background: #f0f2f6; color: #202126; }
.cg-header-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: #202126; font-size: 21px !important; font-weight: 680 !important; letter-spacing: -.7px !important; }
.cg-header-brand img { display: block; width: 32px; height: 32px; }
.cg-header-title { border-left: 1px solid #dedfe5; padding-left: 22px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #717782; font-size: 15px; }
.cg-header-account { position: relative; z-index: 3; margin-left: auto; flex-shrink: 0; }
.cg-header-account-trigger { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 7px; border-radius: 12px; cursor: pointer; list-style: none; user-select: none; }
.cg-header-account-trigger::-webkit-details-marker { display: none; }
.cg-header-account-trigger:hover, .cg-header-account[open] .cg-header-account-trigger { background: #f4f5f8; }
.cg-header-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #edf3ff; color: #0769df; font-size: 12px; font-weight: 700; }
.cg-header-login { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.cg-header-account-trigger>svg { width: 15px; flex-basis: 15px; color: #8b909a; }
.cg-header-account-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 252px; padding: 8px; border: 1px solid #e5e7eb; background: #fff; border-radius: 16px; box-shadow: 0 14px 44px #1d29451c; animation: cg-header-in .14s ease-out; }
.cg-header-identity { display: flex; flex-direction: column; gap: 3px; padding: 12px; margin-bottom: 5px; border-bottom: 1px solid #eceef2; overflow-wrap: anywhere; }
.cg-header-identity strong { font-size: 14px; color: #202126; }.cg-header-identity>span { font-size: 12px; color: #787e89; }
.cg-header-account-panel>a, .cg-header-account-panel>button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: #303640; text-align: left; }
.cg-header-account-panel>:is(a,button):hover { background: #f4f6fa; }.cg-header-account-panel>.cg-header-logout { color: #ce3d51; }
.cg-header-error { margin: 8px; font-size: 12px; color: #be3549; }
.cg-header-tabs { height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 28px 0 calc(var(--cg-rail) + 28px); overflow-x: auto; scrollbar-width: none; }
.cg-header-tabs::-webkit-scrollbar { display: none; }
.cg-header-tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; padding: 0 12px; height: 36px; border: 1px solid transparent; border-radius: 11px; transition: background .15s, color .15s, border-color .15s; color: #707680; background: transparent; white-space: nowrap; font-size: 13px !important; font-weight: 550 !important; }
.cg-header-tab>svg { width: 17px; height: 17px; flex: 0 0 17px; }
.cg-header-tab:hover { color: #202126; background: #f3f5f8; }.cg-header-tab[aria-current=page] { color: #0672ec; background: #eaf3ff; border-color: #d4e5fb; }.cg-header-tab:disabled { opacity: .55; cursor: wait; }
.cg-header-badge { min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; border-radius: 8px; background: #f2f4f8; color: #737b89; font-size: 10px; }
.cg-bottom-nav { display: none; }
.cg-shell .cg-tabs-sheet { position: fixed; inset: auto 0 0; width: min(520px,100%); max-width: 100%; max-height: min(70dvh,600px); margin: 0 auto; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); border: 1px solid #e6e9ef; border-bottom: 0; border-radius: 26px 26px 0 0; background: #fff; color: #202126; box-shadow: 0 -12px 50px #18243a14; overscroll-behavior: contain; }
.cg-tabs-sheet::backdrop { background: #15223845; }
.cg-tabs-sheet[open] { animation: cg-tabs-rise .18s ease-out; }
.cg-tabs-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 2px 12px; }
.cg-tabs-sheet-head h2 { margin: 0; font-size: 20px; font-weight: 650; }
.cg-shell .cg-tabs-sheet-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: #f3f5f8; color: #6c7480; }
.cg-tabs-sheet nav { display: grid; gap: 6px; }
.cg-shell .cg-tabs-sheet-link { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 14px; border: 0; border-radius: 14px; background: #f7f8fb; color: #606c7c; text-align: left; }
.cg-tabs-sheet-link .cg-header-badge { margin-left: auto; }
.cg-shell .cg-tabs-sheet-link[aria-current=page] { background: #eaf3ff; color: #0876ee; }
.cg-tabs-sheet-link:disabled { opacity: .5; cursor: default; }
.cg-shell-rail { display: none; position: fixed; z-index: 60; top: var(--cg-header); bottom: 0; left: 0; width: var(--cg-rail); padding: 22px 12px; overflow: auto; border-right: 1px solid #e4e6eb; background: #f9fafc; }
.cg-menu-open .cg-shell-rail, .cg-menu-compact .cg-shell-rail { display: block; }
.cg-shell-link { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 16px; margin: 0 0 5px; border-radius: 12px; color: #727a89; }
.cg-shell-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.cg-shell-link:hover { background: #f0f3f8; color: #252b36; }.cg-shell-link[aria-current=page] { color: #0672ec; background: #e9f2ff; }
.cg-menu-compact .cg-shell-rail .cg-shell-link { justify-content: center; gap: 0; padding: 0; }
.cg-menu-compact .cg-shell-rail .cg-shell-link span { display: none; }
.cg-shell-drawer { position: fixed; inset: 0 auto 0 0; margin: 0; padding: 20px 12px; width: min(300px,86vw); height: 100dvh; max-height: none; border: 0; border-radius: 0 22px 22px 0; background: #fff; color: #202126; }.cg-shell-drawer::backdrop { background: #1b233740; }.cg-shell-drawer-head { display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 12px; margin-bottom: 16px; font-size: 20px; font-weight: 650; }.cg-shell-drawer-head button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; color: #6d7480; background: #f5f6f8; }
/* Hide only inherited chrome. Original controls remain for native handlers. */
body.cg-unified [data-cg-old-chrome] { display: none !important; }
body.cg-unified[data-cg-module=gpu] .site-layout, body.cg-unified[data-cg-module=finance] .app-shell { display: block !important; }
body.cg-unified[data-cg-module=gpu] .workspace, body.cg-unified[data-cg-module=finance] .main, body.cg-unified[data-cg-module=asic] .app-shell, body.cg-unified:not([data-cg-module]) .workspace { width: auto; max-width: none; min-width: 0; margin-left: var(--cg-rail) !important; padding-top: calc(var(--cg-header) + 24px) !important; }
body.cg-unified[data-cg-module=gpu] .workspace { padding-bottom: 32px; }
body.cg-unified[data-cg-module=finance] .main { padding-left: 0; padding-bottom: 32px; }
body.cg-unified[data-cg-module=finance] .cg-page-toolbar { padding: 0 28px; }
body.cg-unified[data-cg-module=finance] .cg-page-toolbar>.nav-item { width: auto; margin-right: auto; }
body.cg-unified[data-cg-module=asic] { padding-top: calc(var(--cg-header) + 24px); padding-left: var(--cg-rail); }
body.cg-unified[data-cg-module=asic] .cg-page-toolbar { padding: 0 24px; }
body.cg-unified[data-cg-module=finance] .pending-page { margin-left: var(--cg-rail); padding-top: calc(var(--cg-header) + 24px); }
body.cg-unified:not([data-cg-module]) .workspace>.content { padding-top: 0; }
.cg-page-toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; min-height: 44px; }
.cg-page-toolbar>.topbar-actions { display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
body.cg-unified[data-cg-module=finance] .topbar-rates { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.cg-page-toolbar .cg-account-links, .cg-page-toolbar #session-user, .cg-page-toolbar [data-action=logout] { display: none !important; }
.cg-page-toolbar .cg-scan-control { display: flex; flex-direction: column; gap: 4px; }
.cg-page-toolbar .scan-button { background: #087cf5; border: 1px solid #087cf5; color: #fff; }
.cg-page-toolbar .scan-button:disabled { background: #eff5ff; border-color: #d4e4ff; color: #6b8daf; }
.cg-page-toolbar .scan-button::after { content: none !important; }
.cg-page-toolbar :is(#refresh-button,#knowledge-refresh,#miner-refresh) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; }
.cg-page-toolbar .scan-status { display: block; font-size: 11px; line-height: 1.4; }
.cg-page-toolbar .scan-button { min-height: 44px; }
.cg-page-toolbar .scan-control { justify-items: stretch; }
body.cg-unified[data-cg-module=asic] .cg-page-toolbar>.topbar-actions { align-items: flex-start; }
@media (max-width:1100px) {
  body.cg-unified[data-cg-module=finance] .secondary-grid { grid-template-columns: minmax(0,1fr); }
  body.cg-unified[data-cg-module=finance] .cg-page-toolbar>.topbar-actions { flex: 1 1 100%; justify-content: flex-start; }
  body.cg-unified[data-cg-module=finance] .cg-page-toolbar .month-picker { width: auto; }
}
@media (max-width:760px) {
  body.cg-unified { --cg-rail: 0px !important; --cg-header: 65px; padding-bottom: var(--cg-bottom) !important; }
  body.cg-unified.cg-has-bottom-tabs { --cg-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .cg-header-top { height: 64px; padding: 0 14px; gap: 10px; }.cg-header-toggle { width: 36px; flex-basis: 36px; }.cg-header-brand { font-size: 19px !important; gap: 7px; }.cg-header-brand img { width: 28px; height: 28px; }.cg-header-title, .cg-header-login, .cg-header-account-trigger>svg, .cg-header-tabs, .cg-shell-rail { display: none !important; }
  .cg-header-account-trigger { padding: 4px; }.cg-header-account-panel { right: 0; width: min(264px,calc(100vw - 28px)); }
  .cg-bottom-nav:not([hidden]) { display: flex; position: fixed; z-index: 75; left: max(8px,env(safe-area-inset-left)); right: max(8px,env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); gap: 2px; padding: 6px; border: 1px solid #e5e8ef; border-radius: 24px; background: #ffffffed; box-shadow: 0 8px 32px #1e2c4514; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .cg-shell .cg-bottom-tab { position: relative; display: flex; flex: 1 1 0; min-width: 0; min-height: 60px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 7px 2px; border: 0; border-radius: 18px; background: transparent; color: #727c8c; line-height: 1.15; text-align: center; transition: color .14s, background-color .14s; -webkit-tap-highlight-color: transparent; }
  .cg-bottom-tab .cg-tab-label { display: block; max-width: 100%; font-size: 11px; font-weight: 550; overflow-wrap: anywhere; }
  .cg-bottom-tab>svg { width: 22px; height: 22px; flex: 0 0 22px; }
  .cg-shell .cg-bottom-tab[aria-current=page] { background: #eaf3ff; color: #0876ee; }
  .cg-bottom-tab[aria-current=page] .cg-tab-label { font-weight: 700; }
  .cg-bottom-tab .cg-header-badge { position: absolute; top: 3px; left: calc(50% + 7px); min-width: 16px; height: 16px; padding: 0 4px; color: #fff; background: #d94a63; font-size: 9px; }
  .cg-bottom-tab:disabled { opacity: .5; cursor: default; }
  .cg-more-tab>svg { stroke-width: 4; }
  .cg-keyboard-open .cg-bottom-nav { visibility: hidden; pointer-events: none; }
  body.cg-unified :is(.toast,#toast,#miner-toast,#knowledge-toast) { bottom: calc(var(--cg-bottom) + 16px) !important; }
  body.cg-unified[data-cg-module=finance] .main .content { padding-bottom: 24px; }
  body.cg-unified[data-cg-module=gpu] .workspace, body.cg-unified[data-cg-module=finance] .main, body.cg-unified[data-cg-module=asic] .app-shell, body.cg-unified:not([data-cg-module]) .workspace { padding-top: calc(var(--cg-header) + 16px) !important; }
  .cg-page-toolbar { justify-content: flex-start; gap: 10px; }.cg-page-toolbar>.topbar-actions { width: 100%; justify-content: flex-start !important; }.cg-page-toolbar .month-picker { margin-left: auto; }
  body.cg-unified[data-cg-module=finance] .cg-page-toolbar, body.cg-unified[data-cg-module=asic] .cg-page-toolbar { padding: 0 14px; }
  body.cg-unified[data-cg-module=finance] .cg-page-toolbar .month-picker { flex: 1; width: auto; min-width: 120px; max-width: none; margin-left: 0; }
  body.cg-unified[data-cg-module=finance] .cg-page-toolbar .month-picker select { max-width: none; padding-right: 0; }
  body.cg-unified[data-cg-module=finance] .cg-page-toolbar .icon-button:not([data-action=logout]) { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; }
  body.cg-unified[data-cg-module=finance] .cg-page-toolbar .topbar-rate { gap: 5px; flex-shrink: 0; padding: 0 6px; }
  body.cg-unified[data-cg-module=finance] .cg-page-toolbar .topbar-rates { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 32px; gap: 6px; }
  body.cg-unified[data-cg-module=finance] .cg-page-toolbar .topbar-rates .topbar-rate { grid-column: auto; grid-row: auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 7px 9px; gap: 2px; line-height: 1.4; }
  body.cg-unified[data-cg-module=finance] .topbar-rates .rate-quote { min-width: 0; }
  body.cg-unified[data-cg-module=finance] .topbar-rates .rate-quote small { white-space: normal; }
  body.cg-unified[data-cg-module=asic] .cg-page-toolbar .scan-button { padding: 0 8px; font-size: 12px !important; }
}
@keyframes cg-header-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cg-tabs-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:350px) { .cg-bottom-tab .cg-tab-label { font-size: 10px; } }
@media(prefers-reduced-motion:reduce) { .cg-header-account-panel,.cg-tabs-sheet[open] { animation: none; }.cg-shell .cg-bottom-tab { transition: none; } }

@media(prefers-reduced-motion:no-preference) and (min-width:761px) {
 .cg-shell-rail { transition:width .18s ease; }
 body.cg-unified .workspace,body.cg-unified .main,body.cg-unified .app-shell { transition:margin-left .18s ease; }
}

/* CoreGuard dark appearance. Equipment state colours retain their meaning. */
html[data-cg-theme=dark]{color-scheme:dark;--cg-ink:#edf1f6;--cg-muted:#b4bfce;--cg-paper:#171d26;--cg-line:#394657;--cg-accent:#83b7ff;--cg-shadow:0 12px 34px #0004;--background:#171d26;--foreground:#edf1f6;--bg:#171d26;--card:#1d242e;--card-foreground:#edf1f6;--popover:#232d39;--popover-foreground:#edf1f6;--surface:#1d242e;--surface-solid:#1d242e;--surface-soft:#262f3b;--paper:#1d242e;--panel:#1d242e;--soft:#262f3b;--white:#1d242e;--text:#edf1f6;--ink:#edf1f6;--muted:#b4bfce;--muted-2:#94a3b8;--muted-foreground:#b4bfce;--border:#394657;--input:#455263;--line:#394657;--blue:#83b7ff;--blue2:#4094ff;--blue-soft:#253f5a;--primary:#3387ee;--primary-foreground:#fff;--mint:#74dcb3;--mint-soft:#173f35;--green:#74dcb3;--green-dark:#74dcb3;--green-soft:#173f35;--coral:#ffa1a5;--coral-soft:#492d36;--red:#ffa1a5;--red-soft:#492d36;--amber:#f3c16b;--amber-soft:#493b25;--violet:#c7b4ff;--violet-soft:#382f53;--watch:#95baff;--watch-soft:#263c57;--pause:#a6bad4;--pause-soft:#303c4d;--offline:#afbac8;--offline-soft:#2b3440;--service:#c0c8d3;--service-soft:#343d49;--shadow:0 14px 34px #0003;background:#171d26;color:#edf1f6}
html[data-cg-theme=dark] body{background:#171d26!important;color:#edf1f6}
html[data-cg-theme=dark] :is(.cg-shell,.cg-header-brand,.cg-header-identity strong,.cg-shell-drawer,.cg-tabs-sheet,.cg-header-account-panel>a,.cg-header-account-panel>button){color:var(--cg-ink)}
html[data-cg-theme=dark] :is(.cg-header,.cg-header-account-panel,.cg-shell-drawer,.cg-shell .cg-tabs-sheet,.cg-bottom-nav){background:#1d242ef5;border-color:var(--cg-line);color:var(--cg-ink)}
html[data-cg-theme=dark] :is(.cg-shell-rail,.cg-header-badge,.cg-tabs-sheet-close,.cg-shell-drawer-head button,.cg-tabs-sheet-link,.cg-header-account-trigger:hover,.cg-header-account[open] .cg-header-account-trigger){background:#262f3b;color:var(--cg-muted);border-color:var(--cg-line)}
html[data-cg-theme=dark] :is(.cg-header-title,.cg-shell-link,.cg-header-tab,.cg-bottom-tab,.cg-header-toggle,.cg-header-identity>span){color:var(--cg-muted);border-color:var(--cg-line)}
html[data-cg-theme=dark] :is(.cg-header-tab[aria-current=page],.cg-bottom-tab[aria-current=page],.cg-shell-link[aria-current=page],.cg-tabs-sheet-link[aria-current=page],.cg-header-avatar){color:#8abaff;background:#253f5a}
html[data-cg-theme=dark] :is(.cg-header-account-panel>:is(a,button):hover,.cg-shell-link:hover,.cg-header-toggle:hover){background:#303c4d;color:#edf1f6}
html[data-cg-theme=dark] .cg-theme-toggle{background:#262f3b;border-color:#455263;color:#edf1f6}
html[data-cg-theme=dark] :is(.workspace,.app-shell,.main,.content,.site-layout,.pending-page,.pending-content,.login-screen,.auth-screen,.cg-boot){background-color:#171d26;background-image:none;color:var(--cg-ink)}
html[data-cg-theme=dark] :is(.card,.kpi-card,.app-modal,.modal-card,.dialog-card,.site-dialog-card,.uptime-dialog-card,.profile-card,.tax-stat,.tax-card,.login-card,.auth-card,.stat-card,.summary-card,.panel,.detail-panel,.form-card,.settings-card,.report-card,.operation-card,.mining-card,.cashbox-card,.cg-confirm-card,.cg-help-card,dialog){background:#1d242e!important;border-color:#394657!important;color:#edf1f6;box-shadow:var(--cg-shadow)}
html[data-cg-theme=dark] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background-color:#262f3b!important;color:#edf1f6!important;border-color:#455263!important;color-scheme:dark}
html[data-cg-theme=dark] :is(input,textarea)::placeholder{color:#aab6c8}
html[data-cg-theme=dark] :is(option,optgroup){background:#262f3b;color:#edf1f6}
html[data-cg-theme=dark] :is(.modal-head,.modal-footer,.pending-head,.card-heading,.section-heading,.cg-header-identity,thead,tbody,td,th,tr){border-color:#394657}
html[data-cg-theme=dark] :is(.secondary-button,.secondary,.soft-button,.cancel,.icon-button,.row-action,.text-button,.period-button,.filter-chip,.segmented-button,.choice span,.mobile-sheet,.desktop-sidebar,.sidebar,.topbar,.bottom-nav,.mobile-nav,.tax-module th:first-child,.tax-module td:first-child){background:#262f3b!important;color:#c7ddff!important;border-color:#455263!important}
html[data-cg-theme=dark] :is(.primary-button,.primary,.submit,.login-button){background:#176fde!important;color:#fff!important;border-color:transparent!important}
html[data-cg-theme=dark] :is(.danger,.danger-button,.error-state,.login-error){background:#492d36;color:#ffa1a5}
html[data-cg-theme=dark] :is(.choice input:checked+span,.movement-choice input:checked+span){background:#253f5a!important;color:#8abaff!important;border-color:#83b7ff!important}
html[data-cg-theme=dark] :is(.summary,.bank-source,.movement-preview,.receipt-currency,.mini-stat,.metric,.stat-cell,.detail-metric,.detail-tile,.site-metric,.gpu-metric,.uptime-metric,.report-summary,.info-box,.empty-state,.sync-status,.status-card,.progress-track,.budget-summary,.budget-reminder,.cash-flow-summary){background:#262f3b;border-color:#394657;color:#edf1f6}
html[data-cg-theme=dark] :is(.kpi-value,.cashbox-card>strong,.tax-stat strong,.modal-field>span,.modal-head h2,.card-heading h2,.section-title,.page-head h2,.form-header h2,.bank-source strong){color:#edf1f6}
html[data-cg-theme=dark] :is(.hint,.lead,.operation-note,.kpi-meta,.kpi-head,.eyebrow,.modal-field small,.operation-meta,.operation-account,.operation-empty,.field label,.label,.summary small,.summary span,th){color:#b4bfce}
html[data-cg-theme=dark] :is(.chart-label,.cash-flow-axis-label,.cash-flow-axis,.cash-flow-label){fill:#b4bfce;color:#b4bfce}
html[data-cg-theme=dark] :is(.chart-grid,.cash-flow-grid){stroke:#394657}
html[data-cg-theme=dark] :is(.today-dot){fill:#1d242e;stroke:#83b7ff}
html[data-cg-theme=dark] :is(.actual-line,.forecast-line){stroke:#83b7ff}
html[data-cg-theme=dark] :is(.soft-icon.mint,.status-pill:not(.pending),.pill.success,.badge.success){background:#173f35;color:#74dcb3}
html[data-cg-theme=dark] :is(.soft-icon.amber,.status-pill.pending,.pill.warning,.badge.warning){background:#493b25;color:#f3c16b}
html[data-cg-theme=dark] :is(.soft-icon.violet){background:#382f53;color:#c7b4ff}
html[data-cg-theme=dark] :is(.soft-icon.blue,.pill.info,.badge.info){background:#253f5a;color:#8abaff}
html[data-cg-theme=dark] .operation-debit .operation-native{color:#ffa1a5}
html[data-cg-theme=dark] .operation-credit .operation-native{color:#74dcb3}
html[data-cg-theme=dark] .movement-choice span{background:#1d242e;color:#edf1f6;border-color:#455263}
html[data-cg-theme=dark] #close-button{background:#262f3b;color:#edf1f6;border-color:#455263}
html[data-cg-theme=dark] :is(.cg-header-logout,.cg-header-account-panel>.cg-header-logout){color:#ffa1a5}
@media(max-width:760px){.cg-header-top>.cg-theme-toggle{width:44px;height:44px;min-width:44px;min-height:44px;flex-basis:44px;padding:10px}.cg-header-top{gap:12px}}
@media print{.cg-theme-toggle{display:none!important}}
html[data-cg-theme=dark] .pending-frame-shell iframe{background:#171d26}
@media(max-width:620px){html[data-cg-theme=dark] .pending-frame-shell{background:#171d26}}
@media(max-width:350px){.cg-header-top{gap:6px}.cg-header-brand{font-size:17px!important}}
/* Remaining shared controls and module surfaces use the same graphite palette. */
html[data-cg-theme=dark] :is(.button-main,.primary-link-button,.cg-confirm-accept){background:#176fde!important;color:#fff!important}
html[data-cg-theme=dark] :is(.button-soft,.button-secondary,.button-outline,.icon-btn,.ghost-button,.cg-confirm-cancel,.picker,.uptime-dialog-close,.sidebar-toggle){background:#262f3b!important;color:#c7ddff!important;border-color:#455263!important}
html[data-cg-theme=dark] :is(.cg-toast,.toast,#toast,#miner-toast,#knowledge-toast,.cg-confirm,.detail-sheet,.app-dialog,[data-slot=dialog-content],[data-slot=alert-dialog-content],[data-slot=sheet-content],.modal-head,.modal-footer,.app-dialog [data-slot=alert-dialog-footer]){background:#1d242e!important;color:#edf1f6!important;border-color:#394657!important}
html[data-cg-theme=dark] :is(.cg-toast p,.empty-state h2,.device-link strong,.auth-card .eyebrow,.auth-switch button,.cg-source-status summary){color:#c7ddff}
html[data-cg-theme=dark] :is(.tax-tabs,.cg-source-status,.cg-security code,.cg-notice,.cg-instruction-form,.cg-prepared,.data-status,.telegram-preview,.service-strip,.budget-ring>div,.home-gpu-metric,.monitor-strip,.monitor-item,.question,.inspection-panel,.task,.review,.attachment,.upload-zone,.admin-summary>*,.telemetry-metric,.gpu-detail-stat,.telemetry-primary>div,.telemetry-history-item,.telemetry-note,.gpu-detail-panel,.gpu-timeline,.gpu-navigator-track,.chart-reading-item,.chart-limit-card,.chart-point-tooltip,.uptime-fact,.gpu-uptime-details .uptime-fact,.gpu-energy-total,.gpu-energy-stat,.uptime-filter-option,.uptime-custom-dates,.login-point,.hero-chip){background:#262f3b!important;color:#b4bfce;border-color:#394657!important}
html[data-cg-theme=dark] :is(.hero-main,.hero-side,.action-card,.quick-button,.home-gpu-card,.list-card,.equipment-card,.telemetry-card,.gpu-chart-card,.gpu-detail-section,.telemetry-history-card,.telemetry-card-head,.chart-fullscreen-card,.chart-fullscreen-head,.chart-fullscreen-plot,.chart-fullscreen-note,.home-uptime,.gpu-uptime,.gpu-energy,.login-shell,.session-boot-card,.search-panel,.gpu-card,.rack-detail,.compact-gpu-zone,.fault-summary-card,.fault-card,.miner-card,.knowledge-card,.service-history-preview){background:#1d242e!important;color:#edf1f6;border-color:#394657!important}
html[data-cg-theme=dark] :is(.home-uptime-main strong,.gpu-uptime-value strong,.gpu-energy-total strong){color:#edf1f6}
html[data-cg-theme=dark] :is(.login-wrap,.session-boot,.chart-fullscreen){background:#171d26}
html[data-cg-theme=dark] #overviewView.app-page.card,html[data-cg-theme=dark] #gpuView.app-page.card{background:#1d242e}
html[data-cg-theme=dark] :is(.section-tabs,.chart-time-ranges,.topbar-rate,th){background:#262f3b!important;color:#b4bfce}
html[data-cg-theme=dark] :is(.section-tabs [data-active],.section-tabs [data-state=active],.section-tabs [aria-selected=true],.chart-time-ranges button.active,.gpu-detail-range button.active,.chart-fullscreen-controls .chart-time-ranges button.active){background:#253f5a!important;color:#83b7ff!important}
html[data-cg-theme=dark] :is(.pill.mint,.feedback,.status-signal.ok){background:#173f35;color:#74dcb3}
html[data-cg-theme=dark] :is(.pill.amber,.service-warning,.status-signal.warn,.chart-status-pill.warning,.tax-notice){background:#493b25;color:#f3c16b}
html[data-cg-theme=dark] :is(.pill.coral,.form-error,.state-icon.coral,.status-signal.bad,.notice.error,.chart-status-pill.critical){background:#492d36;color:#ffa1a5}
html[data-cg-theme=dark] body[data-cg-module] .busy-overlay{background:#171d26d9}html[data-cg-theme=dark] body[data-cg-module] .busy-overlay>div{background:#1d242e;color:#edf1f6;border-color:#394657}
html[data-cg-theme=dark] body[data-cg-module=asic]{--mint:#173f35;--asic-service-pattern:repeating-linear-gradient(135deg,#303b4a 0 10px,#424e5d 10px 20px)}
html[data-cg-theme=dark] body[data-cg-module=asic] :is([data-asic-status],.healthy,.normal,.observation,.warning,.attention,.critical,.paused,.offline,.service){--asic-fill:color-mix(in srgb,var(--asic-accent,#83b7ff) 14%,#1d242e);--asic-border:color-mix(in srgb,var(--asic-accent,#83b7ff) 36%,#1d242e);--asic-ink:#d4dfeb}
html[data-cg-theme=dark] body[data-cg-module=asic] :is([data-asic-status=online],[data-asic-status=working]){--asic-accent:#83b7ff;--asic-ink:#83b7ff}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.normal,.healthy,[data-asic-status=normal]){--asic-accent:#74dcb3;--asic-ink:#74dcb3}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.observation,[data-asic-status=observation]){--asic-accent:#edd16a;--asic-ink:#edd16a}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.attention,.warning,[data-asic-status=attention]){--asic-accent:#efa661;--asic-ink:#efa661}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.critical,[data-asic-status=critical]){--asic-accent:#ff939e;--asic-ink:#ff939e}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.paused,[data-asic-status=paused]){--asic-accent:#a6bad4;--asic-ink:#a6bad4}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.offline,[data-asic-status=offline],.service,[data-asic-status=service]){--asic-accent:#aeb9c7;--asic-ink:#d4dfeb}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.summary-card,.fault-summary-card)[data-asic-status]{background:var(--asic-fill,#1d242e)!important;border-color:var(--asic-border,#394657)!important}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.summary-card,.fault-summary-card)[data-asic-status].cg-zero{background:#1d242e!important;border-color:#394657!important}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.summary-card,.fault-summary-card)[data-asic-status=service]:not(.cg-zero),html[data-cg-theme=dark] body[data-cg-module=asic] :is(.asic-slot-card,.compact-slot).occupied.service:not(.group-muted):not(.placement-selected):not(.manual-move-source),html[data-cg-theme=dark] body[data-cg-module=asic] :is(.details-status,.health-notice).service{background:var(--asic-service-pattern)!important;border-color:#59677a!important;color:#edf1f6}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.placement-panel,.service-return-report-form,.service-history-form){background:#262f3b;border-color:#394657}
html[data-cg-theme=dark] body[data-cg-module=finance] :is(.notice,.month-picker,.notice-badge){background:#262f3b!important;border-color:#394657;color:#b4bfce}
html[data-cg-theme=dark] .cg-page-toolbar>.nav-item{color:#b4bfce}
html[data-cg-theme=dark] .budget-ring{background:conic-gradient(var(--blue) 0 var(--progress),#394657 var(--progress) 360deg)}

/* Dark-theme contrast: every module uses paired surfaces and foregrounds.
   Keep status colours explicit; never invert/filter the rendered page. */
html[data-cg-theme=dark]{--cg-surface:#1d242e;--cg-surface-raised:#262f3b;--cg-control:#303c4d;--cg-positive:#74dcb3;--cg-negative:#ffa1a5;--cg-warning:#f3c16b;--secondary:#262f3b;--accent:#253f5a;--accent-foreground:#8abaff;--destructive:#ffa1a5;--ring:#83b7ff}
html[data-cg-theme=dark] :is(h1,h2,h3,h4,h5,h6){color:var(--cg-ink)}
html[data-cg-theme=dark] :is(.muted,.table-meta,.table-foot,.detail-list span,.detail-value span,.panel-head p,.footer-note,.auth-copy,.auth-footer,.auth-switch,.auth-demo,.form-stack label,.helper-note,.request-row p,.audit-row small,.cg-session-row small,.cg-instruction-list summary small,.cg-legacy-telegram>summary,.cg-gpu-intro,.kpi-label,.chart-labels,.legend,.checklist,.journal-head small,.journal-item p,.report-banner p,.telegram-preview p,.role-card p,.role-explanation,.pending-login>span,.access-steps>div,.budget-row small,.budget-row>span){color:var(--cg-muted)}
html[data-cg-theme=dark] :is(.amount,.detail-value strong,.device-link strong,.profile-hero h2,.review pre,.guide-content){color:var(--cg-ink)}
html[data-cg-theme=dark] :is(.inline-notice,.role-explanation,.readonly-label,.count-bubble,.pill.blue,.soft-icon,.unit-mark,.report-icon){background:#253f5a;color:#8abaff;border-color:#435e82}
html[data-cg-theme=dark] :is(.pill,.self-badge,.avatar,.registration-card,.nav-divider,.cg-loader-track,.cg-skeleton){background:#303c4d;color:#cbd6e4}
html[data-cg-theme=dark] :is(.positive,.tax-module td.positive){color:var(--cg-positive)}
html[data-cg-theme=dark] :is(.negative,.danger-text){color:var(--cg-negative)}
html[data-cg-theme=dark] :is(.amber-text,.access-steps .current){color:var(--cg-warning)}
html[data-cg-theme=dark] :is(.text-link,.panel-head a,.auth-switch button,.service-strip button){color:#8abaff}
html[data-cg-theme=dark] :is([data-slot=dialog-overlay],[data-slot=alert-dialog-overlay],.modal-backdrop,.site-dialog-backdrop,.uptime-dialog-backdrop){background:#080d16b8!important}
html[data-cg-theme=dark] :is(dialog,.cg-confirm)::backdrop{background:#080d16b8}
html[data-cg-theme=dark] :is([data-slot=select-content],[data-slot=popover-content],[data-slot=dropdown-menu-content],[data-slot=tooltip-content]){background:#262f3b;color:#edf1f6;border-color:#455263}
html[data-cg-theme=dark] :is([data-slot=select-item],[data-slot=dropdown-menu-item])[data-highlighted]{background:#253f5a;color:#c7ddff}
html[data-cg-theme=dark] :is(.cg-source-status[data-stale=true],.state-icon,.coin-mark){background:#493b25;color:#f3c16b}
html[data-cg-theme=dark] .danger-button,html[data-cg-theme=dark] .cg-confirm-accept.danger{background:#a82c47!important;color:#fff!important}
html[data-cg-theme=dark] :is(.pill.mint,.access-steps .done,.cg-toast-icon){color:#74dcb3}
html[data-cg-theme=dark] .cg-toast-icon{background:#173f35}
html[data-cg-theme=dark] input:disabled,html[data-cg-theme=dark] select:disabled{color:#b4bfce!important;opacity:.75}
html[data-cg-theme=dark] :is(button,a,input,select,textarea):focus-visible{outline-color:#83b7ff}
html[data-cg-theme=dark] ::selection{background:#355f96;color:#fff}
html[data-cg-theme=dark] ::-webkit-scrollbar-thumb{background:#657387}

/* Site overview: neutral cards, readable telemetry, semantic amounts. */
html[data-cg-theme=dark] :is(.cg-overview-card,.cg-overview-health-body){background:#1d242e;color:#edf1f6;border-color:#394657;box-shadow:var(--cg-shadow)}
html[data-cg-theme=dark] .cg-overview-card{--tile-ink:#83b7ff;--tile-soft:#253f5a}
html[data-cg-theme=dark] .cg-overview-card[data-tone=mint]{--tile-ink:#74dcb3;--tile-soft:#173f35}
html[data-cg-theme=dark] .cg-overview-card[data-tone=amber]{--tile-ink:#f3c16b;--tile-soft:#493b25}
html[data-cg-theme=dark] .cg-overview-card[data-tone=violet]{--tile-ink:#c7b4ff;--tile-soft:#382f53}
html[data-cg-theme=dark] :is(.cg-overview-intro h2,.cg-overview-card-link,.cg-overview-primary dd,.cg-overview-secondary dd,.cg-overview-asic-metrics dd){color:#edf1f6}
html[data-cg-theme=dark] :is(.cg-overview-intro p,.cg-overview-primary dt,.cg-overview-secondary dt,.cg-overview-asic-metrics dt,.cg-overview-card-footer,.cg-overview-source,.cg-overview-empty p,.cg-overview-health,.cg-overview-alert-list small){color:#b4bfce}
html[data-cg-theme=dark] :is(.cg-overview-refresh,.cg-overview-arrow,.cg-overview-gpu-actions>:is(button,a)){background:#262f3b;color:#cbd6e4;border-color:#455263}
html[data-cg-theme=dark] :is(.cg-overview-refresh:hover:not(:disabled),.cg-overview-gpu-actions>:is(button,a):hover){background:#303c4d;color:#edf1f6;border-color:#83b7ff}
html[data-cg-theme=dark] .cg-overview-gpu-table :is(th,td){background:transparent!important;color:#edf1f6!important;border-color:#394657}
html[data-cg-theme=dark] .cg-overview-gpu-table thead th{color:#b4bfce!important}
html[data-cg-theme=dark] :is(.cg-overview-secondary>div+div,.cg-overview-gpu-table tbody tr+tr,.cg-overview-alert-list li+li){border-color:#394657}
html[data-cg-theme=dark] .cg-overview-card [data-amount-tone=balance]{color:#74dcb3}
html[data-cg-theme=dark] :is(.cg-overview-card [data-amount-tone=expense],.cg-overview-gpu-actions>[data-attention=true] strong){color:#ffa1a5}
html[data-cg-theme=dark] :is(.cg-overview-card [data-amount-tone=pending],.cg-overview-source[data-state=stale]){color:#f3c16b}
html[data-cg-theme=dark] .cg-overview .cg-overview-pending{background:#253f5a;color:#8abaff;border-color:#435e82}
html[data-cg-theme=dark] :is(.cg-overview-alert-notice,.cg-overview-alert-marker){background:#493b25;color:#f3c16b}
html[data-cg-theme=dark] .cg-overview-alert-marker[data-severity=critical]{background:#492d36;color:#ffa1a5}
html[data-cg-theme=dark] .cg-overview-alert-link{color:#8abaff}

/* Reports, sources and admin/profile pages share the same text hierarchy. */
html[data-cg-theme=dark] :is(.tax-module h3,.tax-module td,.tax-stat strong){color:#edf1f6}
html[data-cg-theme=dark] :is(.tax-muted,.tax-footnote,.tax-period,.tax-stat>span,.tax-stat p,.tax-stat strong small,.tax-statusline,.tax-checks,.tax-empty,.tax-purpose small,.tax-evidence,.tax-decision label,.tax-confirm label,.tax-segments button,.tax-tabs button){color:#b4bfce}
html[data-cg-theme=dark] .tax-source-id{color:#b4bfce!important}
html[data-cg-theme=dark] :is(.tax-module th,.tax-module th:first-child){background:#262f3b!important;color:#b4bfce!important}
html[data-cg-theme=dark] .tax-module td:first-child{background:#1d242e!important;color:#edf1f6!important}
html[data-cg-theme=dark] :is(.tax-module td,.tax-card-head){border-color:#394657}
html[data-cg-theme=dark] .tax-module tbody tr:hover,html[data-cg-theme=dark] .tax-module tbody tr:hover td:first-child{background:#262f3b!important}
html[data-cg-theme=dark] .tax-tabs button.active{background:#253f5a;color:#8abaff;box-shadow:none}
html[data-cg-theme=dark] .tax-segments button.active{color:#8abaff}
html[data-cg-theme=dark] :is(.tax-notice,.tax-badge.blue){background:#253f5a;color:#c7ddff;border-color:#435e82}
html[data-cg-theme=dark] .tax-badge{background:#303c4d;color:#cbd6e4}
html[data-cg-theme=dark] .tax-badge.green{background:#173f35;color:#74dcb3}
html[data-cg-theme=dark] :is(.tax-notice.warning,.tax-badge.amber){background:#493b25;color:#f3c16b;border-color:#73603d}
html[data-cg-theme=dark] :is(.tax-table-card,.tax-source-grid>.card){background:#1d242e;border-color:#394657}

/* ASIC: map, lists, repair history, diagnostics and placement forms. */
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.legend,.compact-rack,.table-scroll,.miner-hero,.miner-metric-card,.history-card-body,.miner-board-card,.miner-signal,.miner-diagnostic-notice,.knowledge-summary,.knowledge-source,.service-history-card,.maintenance-action-card,.device-card,.group-device,.search-result,.serial-assignment-result){background:#1d242e;color:#edf1f6;border-color:#394657}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.search-empty,.map-scale-selector,.knowledge-models,.identity-item,.hashboard-metrics .metric,.board-empty,.signal-service,.compact-signal-count,.service-history-next,.active-service-comment,.move-location-card,.knowledge-decision,.knowledge-code,.miner-ip-badge,.history-recommendation,.miner-serial-form,.miner-empty,.miner-signal-heading span,.miner-service-rule,.history-code-option,.fault-card-issue,.fault-view-mode,.serial-assignment-code,.serial-assignment-selected,.large-shelf-label,.maintenance-action-empty,.service-history-empty,.log-decoding-history-card,.blink-lamp-icon){background:#262f3b;color:#b4bfce;border-color:#394657}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.placement-panel,.manual-move-notice,.placement-current,.placement-icon,.gpu-placement,.rack-tab.selected,.gpu-card.selected,.asic-slot-card.placement-selected,.serial-assignment-result.selected,.cg-prepared,.log-decoding-button,.location-confirmation-notice,.service-history-type,.history-codes code,.miner-error-code,.knowledge-badge,.miner-signal-target,.fault-code-list code,.fault-topic-list span){background:#253f5a!important;color:#c7ddff;border-color:#435e82}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.cg-prepared strong,.cg-prepared span,.cg-serial-edit summary,.service-history-codes,.signal-boards){color:#8abaff!important}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.rack-tab,.placement-cancel-button,.manual-move-cancel,.location-bulk-button,.maintenance-open-button,.maintenance-reopen-button,.dialog-close,.history-filter,.fault-filters button,.fault-topic-filters button,.fault-card-open,.fault-history-button.secondary,.fault-reopen-button,.action-filters button,.table-tabs button,.table-actions a,.service-history-page-link,.cg-prepared button){background:#262f3b;color:#c7ddff;border-color:#455263}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.search-result:hover,.device-card:hover,.group-device:hover,.maintenance-action-card.completed,.serial-assignment-result:hover){background:#303c4d;color:#edf1f6}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.summary-card,.fault-summary-card)[data-asic-status] span{color:#cbd6e4}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.summary-card,.fault-summary-card)[data-asic-status].cg-zero strong{color:#edf1f6}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.summary-card,.fault-summary-card)[data-asic-status].cg-zero span{color:#b4bfce}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.summary-card,.fault-summary-card):after{background:transparent}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.asic-slot-card:not(.occupied),.compact-slot:not(.occupied),.asic-slot-card.occupied.group-muted,.device-card.group-muted){background:#262f3b;color:#b4bfce;border-color:#455263}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.shelf-placeholder-row,.compact-shelf-placeholder){background:repeating-linear-gradient(135deg,#232d39 0 8px,#303c4d 8px 16px);color:#afbac8}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.safety-footer,.test-location-notice,.bulk-location-summary,.maintenance-action-priority,.serial-warning,.board-unattributed,.diagnostic-notice,.service-history-type.recommendation,.service-online-warning,.move-warning,.knowledge-safety,.knowledge-badge.warning,.fault-service-report,.serial-assignment-warning,.cg-stale,.history-status.open){background:#493b25;color:#f3c16b;border-color:#73603d}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.signal-safety,.miner-safety,.fault-required-note){color:#f3c16b!important}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.maintenance-action-priority.critical,.diagnostic-notice.unknown,.knowledge-badge.critical,.miner-signal-target.chips,.confirm-dialog-icon,.history-delete-button){background:#492d36;color:#ffa1a5;border-color:#754554}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.signal-chips,.hashboard-issues){color:#ffa1a5!important}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.active-service-notice,.service-state-explanation,.fault-service-comment,.service-action-button){background:var(--asic-service-pattern);color:#edf1f6;border-color:#59677a}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.active-service-notice small,.miner-service-comment p,.fault-service-comment small){color:#cbd6e4}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.miner-state-badge,.miner-board-state,.fault-grade,.hashboard-state){color:var(--asic-ink,#cbd6e4);background:var(--asic-fill,#262f3b)}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.miner-health-card){background:var(--asic-fill,#173f35);border-color:var(--asic-border,#394657)}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.pause-notice,.history-status.monitoring){color:#a6bad4;background:#303c4d}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.filter-reset,.group-map-button,.maintenance-done-button,.device-serial-form button,.miner-serial-controls button,.service-history-submit,.repair-queue-button,.change-location-button,.confirm-move-button,.serial-scan-button,.fault-done-button,.history-add-button,.map-scale-button.selected,.knowledge-model.selected,.history-filter.selected,.action-filters button.selected,.fault-view-mode button.selected,.table-tabs .active,.table-actions a:first-child,.placement-mode-button.active){background:#176fde!important;color:#fff!important;border-color:transparent}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.history-filter.selected b,.action-filters button.selected b){background:#154c91;color:#fff}
html[data-cg-theme=dark] body[data-cg-module=asic] :is(.placement-mode-button,.topbar .scan-button,.cg-archive button,.fault-topic-filters button.selected,.fault-filters button.selected){background:#253f5a!important;color:#8abaff!important}
html[data-cg-theme=dark] body[data-cg-module=asic] .service-state-submit{background:#526178;color:#fff}
html[data-cg-theme=dark] body[data-cg-module=asic] tbody tr:hover{background:#262f3b}

/* GPU: readings, journal entries, maintenance choices and chart labels. */
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.monitor-item strong,.uptime-fact strong,.gpu-energy-stat strong,.gpu-navigator-labels strong,.cg-record-field dd,.cg-comment-meta strong){color:#edf1f6}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.gpu-chart-legend,.gpu-chart-fresh-note,.telemetry-history-body p,.home-uptime-main span,.gpu-uptime-value span,.gpu-energy-copy p,.gpu-energy-total span,.gpu-energy-field span,.gpu-energy-stat small,.gpu-energy-total small,.uptime-filter-group legend,.uptime-custom-dates label,.cg-record-eyebrow,.cg-record-meta,.cg-record-author,.cg-record-section-meta,.cg-record-field dt,.cg-record-empty,.cg-record-loading,.cg-comment-meta,.cg-comment-message,.source-separator,.side-label,.side-footer,.side-footer strong,.chart-time-ranges button){color:#b4bfce}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.action-icon,.readonly-badge,.role-badge,.site-dialog-icon,.uptime-settings-trigger,.cg-record-open,.cg-record-result,.notice.info,.login-showcase,.choice.selected,.choice.active,.admin-tab.active){background:#253f5a;color:#8abaff;border-color:#435e82}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.choice,.cg-record-close,.chart-fullscreen-close,.chart-status-pill.neutral,.cg-comment){background:#262f3b;color:#cbd6e4;border-color:#455263}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.cg-record-dialog,.cg-journal-toast){background:#1d242e!important;color:#edf1f6!important;border-color:#394657}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.action-card:hover,.quick-button:hover,.home-gpu-card:hover,.list-card:hover){background:#262f3b!important;border-color:#83b7ff}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.choice.normal.selected,.telemetry-note.ok,.chart-limit-card.normal){background:#173f35!important;color:#74dcb3}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.choice.defect.selected,.telemetry-note.bad,.chart-limit-card.critical){background:#492d36!important;color:#ffa1a5}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.telemetry-note.warn,.admin-note){background:#493b25!important;color:#f3c16b}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.chart-limit-card.nominal,.uptime-filter-option:has(input:checked)){background:#253f5a!important;color:#8abaff}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.hero-eyebrow,.link-button,.home-uptime-main small,.gpu-uptime-heading small,.gpu-energy-eyebrow){color:#8abaff}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.gpu-chart-axis,.gpu-chart-unit){fill:#b4bfce}
html[data-cg-theme=dark] body[data-cg-module=gpu] .gpu-chart-gridline{stroke:#394657}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.gpu-chart-limit-value,.gpu-chart-limit-name).normal{fill:#74dcb3}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.gpu-chart-limit-value,.gpu-chart-limit-name).critical{fill:#ffa1a5}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.gpu-chart-limit-value,.gpu-chart-limit-name).nominal{fill:#8abaff}
html[data-cg-theme=dark] body[data-cg-module=gpu] .gpu-navigator-shade{background:#171d26b8}
html[data-cg-theme=dark] body[data-cg-module=gpu] .gpu-timeline.is-loading .gpu-navigator-track:after{background:#262f3bdb;color:#cbd6e4}

/* Finance tables and the secondary calculation panels. */
html[data-cg-theme=dark] body[data-cg-module=finance] :is(td,.category-money,.daily-date strong,.login-form>label){color:#edf1f6}
html[data-cg-theme=dark] body[data-cg-module=finance] .budget-edit-row>strong{color:#edf1f6!important}
html[data-cg-theme=dark] body[data-cg-module=finance] :is(.notice-icon,.pending-count,.budget-reminder-badge){background:#176fde;color:#fff}
html[data-cg-theme=dark] body[data-cg-module=finance] .pending-count{background:#b72b45}
html[data-cg-theme=dark] body[data-cg-module=finance] .cashbox-card{--cash-soft:#303c4d!important}
html[data-cg-theme=dark] body[data-cg-module=finance] .cashbox-card .soft-icon{background:#253f5a!important;color:#8abaff!important}
html[data-cg-theme=dark] body[data-cg-module=finance] :is(.forecast-status,.fact-badge,.key1-account .coin-badge.btc){background:#173f35;color:#74dcb3}
html[data-cg-theme=dark] body[data-cg-module=finance] .forecast-status.over{background:#492d36;color:#ffa1a5}
html[data-cg-theme=dark] body[data-cg-module=finance] .fact-badge.violet{background:#382f53;color:#c7b4ff}
html[data-cg-theme=dark] :is(.coin-badge.btc,.coin-badge.doge,.daily-coin-icon.btc,.daily-coin-icon.doge,.pending-page .coin){background:#493b25;color:#f3c16b}
html[data-cg-theme=dark] body[data-cg-module=finance] :is(.result-note,.result-note p){background:#253f5a;color:#c7ddff}
html[data-cg-theme=dark] body[data-cg-module=finance] :is(.mini-progress,.waterfall-bar,.segmented){background:#303c4d}
html[data-cg-theme=dark] body[data-cg-module=finance] .segmented button.is-active{background:#253f5a;color:#8abaff}
html[data-cg-theme=dark] body[data-cg-module=finance] .mining-daily-table tbody tr:not(.mining-daily-empty){background:#1d242e}
html[data-cg-theme=dark] .fixed-destination{background:#173f35;border-color:#376355}
html[data-cg-theme=dark] .fixed-destination strong{color:#74dcb3}
html[data-cg-theme=dark] :is(.receipt-total>span,.receipt-row>span){color:#b4bfce}
html[data-cg-theme=dark] :is(.detail-list>div,.request-row,.audit-row,.cg-session-row,.cg-instruction-list,.chart-summary>div){border-color:#394657}
html[data-cg-theme=dark] th{color:#b4bfce!important}
html[data-cg-theme=dark] :is(.cg-health-card,.cg-health-card.cg-health-ok,.cg-health-card.cg-health-warning){background:#262f3b;border-color:#394657}
html[data-cg-theme=dark] :is(.cg-health-card h3,.cg-health-card dd){color:#edf1f6}
html[data-cg-theme=dark] :is(.cg-health-card dt,.cg-overview-health-body .cg-health-time){color:#b4bfce}
html[data-cg-theme=dark] .cg-health-badge{background:#303c4d;color:#cbd6e4}
html[data-cg-theme=dark] .cg-health-ok .cg-health-badge{background:#173f35;color:#74dcb3}
html[data-cg-theme=dark] .cg-health-warning .cg-health-badge{background:#493b25;color:#f3c16b}
html[data-cg-theme=dark] .cg-health-card.cg-health-ok{border-left-color:#74dcb3}
html[data-cg-theme=dark] .cg-health-card.cg-health-warning{border-left-color:#f3c16b}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.map-wrap,.spark-item,.maintenance-row,.user-row,.material-row){background:#262f3b;color:#edf1f6;border-color:#394657}
html[data-cg-theme=dark] body[data-cg-module=gpu] :is(.status-signal.neutral,.record-fact.oil,.record-fact.spark){background:#303c4d;color:#cbd6e4;border-color:#455263}
html[data-cg-theme=dark] body[data-cg-module=asic] .cg-page-toolbar .scan-button{background:#253f5a!important;color:#8abaff!important}
html[data-cg-theme=dark] body[data-cg-module=gpu] .admin-tab{color:#b4bfce}
html[data-cg-theme=dark] body[data-cg-module=gpu] .admin-tab.active{color:#8abaff}
html[data-cg-theme=dark] body[data-cg-module=gpu] .inline-form{background:#262f3b;border-color:#394657}

/* Reports are a global action next to appearance and profile, not a module tab. */
.cg-shell .cg-header-reports{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:44px;padding:10px 14px;margin-left:auto;border:1px solid #dce2eb;border-radius:12px;background:#fff;color:#566174;white-space:nowrap;font-weight:550}
.cg-header-reports[hidden],.cg-header-tabs[hidden]{display:none!important}
.cg-header-top>.cg-header-reports:not([hidden])+.cg-theme-toggle{margin-left:0}
.cg-shell .cg-header-reports:hover,.cg-shell .cg-header-reports[aria-current=page]{background:#eaf3ff;color:#0876ee;border-color:#b5d3ff}
body.cg-unified.cg-no-header-tabs{--cg-header:77px}
html[data-cg-theme=dark] .cg-shell .cg-header-reports{background:#262f3b;color:#d8e3f3;border-color:#455263}
html[data-cg-theme=dark] .cg-shell .cg-header-reports:hover,html[data-cg-theme=dark] .cg-shell .cg-header-reports[aria-current=page]{background:#253f5a;color:#9cc7ff;border-color:#567aa5}
@media(max-width:760px){.cg-shell .cg-header-reports{width:44px;height:44px;min-height:44px;padding:10px;border-radius:50%;flex-basis:44px}.cg-header-reports>span{display:none}body.cg-unified.cg-no-header-tabs{--cg-header:65px}}
@media(max-width:420px){.cg-has-reports .cg-header-brand>span{display:none}.cg-has-reports .cg-header-top{gap:8px;padding:0 10px}.cg-has-reports .cg-header-toggle{width:32px;flex-basis:32px}.cg-has-reports .cg-header-top>.cg-theme-toggle,.cg-has-reports .cg-header-top>.cg-header-reports{width:40px;height:40px;min-height:40px;flex-basis:40px;padding:8px}}
@media(max-width:350px){.cg-has-reports .cg-header-top{gap:4px}}

/* The hidden native field still participates in validation and FormData. */
html body .cg-native-control{display:none!important}
html body button.cg-choice{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-width:0;max-width:100%;min-height:48px;margin:0;padding:13px 15px!important;border:1px solid var(--cg-line,#dce2eb)!important;border-radius:13px!important;background:var(--cg-surface,#fff)!important;color:var(--cg-ink,#20252e)!important;font:inherit;font-size:15px!important;font-weight:500!important;line-height:1.45;text-align:left;cursor:pointer;box-shadow:none;vertical-align:middle;touch-action:manipulation}
html body button.cg-choice[hidden]{display:none!important}
html body button.cg-choice:disabled{opacity:.55;cursor:default}
html body button.cg-choice:not(:disabled):hover,html body button.cg-choice[aria-expanded=true]{border-color:var(--cg-accent,#0878f9)!important}
html body button.cg-choice:focus-visible{outline:3px solid #80b9f966;outline-offset:2px;border-color:var(--cg-accent,#0878f9)!important}
.cg-choice-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cg-choice-icon{width:19px;height:19px;flex:0 0 19px;display:grid;place-items:center;color:var(--cg-muted,#738095)}
.cg-choice-icon svg{width:19px;height:19px}
html body button.cg-choice.is-placeholder{color:var(--cg-muted,#738095)!important}
html body button.cg-choice.is-invalid{border-color:var(--cg-negative,#ba3c4e)!important}
.cg-field-error{display:block;color:var(--cg-negative,#ba3c4e);font-size:13px;line-height:1.5;margin-top:7px}
.cg-control-popover,.cg-control-popover *{box-sizing:border-box}
html body .cg-control-popover{box-sizing:border-box;position:fixed;inset:auto;margin:0;padding:8px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--cg-line,#dce2eb);border-radius:18px;background:var(--cg-surface,#fff);color:var(--cg-ink,#20252e);box-shadow:0 18px 55px #111c3433;z-index:2147483000;font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;outline:none;color-scheme:light}
html[data-cg-theme=dark] body .cg-control-popover{color-scheme:dark;box-shadow:0 20px 65px #0008}
.cg-control-popover:not(:popover-open):not(.is-fallback){display:none}
.cg-control-popover:popover-open,.cg-control-popover.is-fallback{display:flex;flex-direction:column}
.cg-control-heading{display:flex;align-items:center;gap:12px;padding:8px 8px 10px;flex:0 0 auto}
.cg-control-heading strong{flex:1;min-width:0;font-size:13px;font-weight:600;color:var(--cg-muted,#738095);overflow-wrap:anywhere}
html body .cg-control-popover button{box-sizing:border-box;border:0;box-shadow:none;margin:0;min-width:0;min-height:36px;padding:8px 10px;border-radius:10px;background:transparent;color:inherit;font:inherit;cursor:pointer;touch-action:manipulation}
html body .cg-control-popover button:hover:not(:disabled){background:var(--cg-control,#edf3fc)}
html body .cg-control-popover button:focus-visible{outline:2px solid #80b9f9;outline-offset:-2px}
html body .cg-control-popover button:disabled{opacity:.35;cursor:default}
html body .cg-control-popover .cg-control-close{font-size:25px;font-weight:300;line-height:1;width:36px;height:36px;flex:0 0 36px;padding:0;border-radius:50%}
html body .cg-control-popover input.cg-control-search{box-sizing:border-box;flex:0 0 auto;width:calc(100% - 8px);min-width:0;min-height:44px;margin:0 4px 8px;padding:11px 12px;border:1px solid var(--cg-line,#dce2eb);border-radius:10px;background:var(--cg-surface-raised,#f5f7fb);color:inherit;font:inherit;font-size:16px;outline:none;box-shadow:none}
html body .cg-control-popover input.cg-control-search:focus{border-color:var(--cg-accent,#0878f9)}
.cg-control-options{overflow:auto;overscroll-behavior:contain;min-height:0;outline:none;padding:2px;scrollbar-width:thin;max-height:340px}
.cg-control-option{display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:10px;min-height:44px;padding:11px 12px;cursor:pointer;overflow-wrap:anywhere;touch-action:manipulation}
.cg-control-option>span:first-child{min-width:0}
.cg-control-option[aria-disabled=true]{opacity:.4;cursor:default}
.cg-control-option.is-active{background:var(--cg-control,#edf3fc)}
.cg-control-option[aria-selected=true]{color:#0876ee;background:#eaf3ff;font-weight:600}
html[data-cg-theme=dark] .cg-control-option[aria-selected=true]{color:#a2c9ff;background:#253f5a}
.cg-control-check{flex:0 0 18px;font-size:17px}
.cg-control-group{padding:14px 12px 5px;color:var(--cg-muted,#738095);font-size:12px;font-weight:600}
.cg-control-empty,.cg-control-error{padding:8px 12px;color:var(--cg-muted,#738095);font-size:13px;margin:0}
.cg-control-error:not(:empty){color:var(--cg-negative,#ba3c4e)}
html body .cg-control-popover .cg-control-done{margin:8px 4px 2px;background:#0876ee;color:#fff;font-weight:600}
.cg-calendar{min-width:0;padding:0 4px 4px}
.cg-calendar-nav{display:flex;align-items:center;justify-content:space-between;gap:2px;margin-bottom:12px}
html body .cg-control-popover .cg-calendar-nav button{font-weight:600;text-transform:capitalize;padding:6px 9px}
html body .cg-control-popover .cg-calendar-arrow{font-size:26px;width:36px}
.cg-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.cg-calendar-weekday{text-align:center;font-size:11px;color:var(--cg-muted,#738095);padding:5px 0}
html body .cg-control-popover .cg-calendar-day{aspect-ratio:1;min-height:0;padding:0;font-size:14px}
html body .cg-control-popover .cg-calendar-day.is-outside{color:var(--cg-muted,#738095)}
html body .cg-control-popover .cg-calendar-day[aria-current=date]{box-shadow:inset 0 0 0 1px var(--cg-accent,#0878f9)}
html body .cg-control-popover button.is-selected{background:#0876ee;color:#fff}
.cg-calendar-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
html body .cg-control-popover .cg-calendar-month{padding:12px 5px;text-transform:capitalize}
.cg-calendar-footer{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--cg-line,#dce2eb);margin-top:12px;padding-top:8px}
html body .cg-control-popover .cg-calendar-footer button{font-size:13px;color:var(--cg-accent,#0878f9)}
.cg-calendar-entry{display:flex;gap:6px;margin-top:8px}
html body .cg-control-popover input.cg-calendar-manual{flex:1;width:0;margin:0}
html body .cg-control-popover .cg-calendar-entry button{font-size:13px}
@media(max-width:600px){html body button.cg-choice{font-size:16px!important}.cg-control-options{max-height:50dvh}html body .cg-control-popover{border-radius:22px;padding:10px;box-shadow:0 0 0 100vmax #10172255,0 15px 60px #0004}.cg-control-heading{padding:4px 4px 10px}.cg-control-heading strong{font-size:14px}.cg-control-option{min-height:48px;padding:13px 12px}html body .cg-control-popover .cg-control-close{width:40px;height:40px;flex-basis:40px}html body .cg-control-popover .cg-calendar-day{max-height:44px;aspect-ratio:auto;height:40px}}

.cg-control-error:empty{display:none}

/* Weather shares the header, with a bounded forecast panel on small screens. */
.cg-header-weather{margin-left:auto;min-width:100px;max-width:210px;flex:0 1 210px}
.cg-header-top>.cg-header-weather+.cg-header-reports{margin-left:0}
.cg-weather-summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;min-height:44px;padding:4px 10px;border:1px solid #cbd9eb;border-radius:12px;background:var(--cg-surface,#fff);color:var(--cg-ink,#303640)}
.cg-weather-summary::-webkit-details-marker{display:none}
.cg-weather-summary:hover,.cg-weather[open]>.cg-weather-summary{background:var(--cg-surface-raised,#f4f6fa);border-color:#9fc5f4}
html[data-cg-theme=dark] .cg-weather-summary{border-color:#455263}
.cg-weather-summary:focus-visible{outline:3px solid #8fbfff;outline-offset:2px}
.cg-weather-current{font-size:14px;font-weight:600;white-space:nowrap}
.cg-weather-status{font-size:11px;line-height:1.3;color:var(--cg-muted,#778294);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cg-weather-summary.has-alert{background:#fff2de;color:#9b5705;border-color:#d6b470}.cg-weather-summary.has-alert .cg-weather-status{color:inherit}
.cg-weather-panel{position:fixed;top:82px;right:20px;z-index:120;width:min(360px,calc(100vw - 24px));box-sizing:border-box;padding:18px;border:1px solid var(--cg-line,#dce2eb);border-radius:16px;background:var(--cg-surface,#fff);color:var(--cg-ink,#20252e);box-shadow:0 14px 44px #1d29451c;max-height:calc(100dvh - 100px);overflow:auto}
.cg-weather:not([open])>.cg-weather-panel{display:none}
.cg-weather-panel p{font-size:13px;margin:8px 0;color:var(--cg-muted,#778294)}
.cg-weather-days{margin:12px 0;padding:0;list-style:none}.cg-weather-days li{display:grid;grid-template-columns:55px 1fr 75px;align-items:center;gap:8px;padding:9px 7px;font-size:13px;border-bottom:1px solid var(--cg-line,#e5e7eb)}
.cg-weather-days strong{text-align:center}.cg-weather-days small{text-align:right}
.cg-weather-days .is-hot{background:#fff2de;color:#9b5705}.cg-weather-days .is-cold{background:#e8f2ff;color:#175cad}
.cg-weather-source{font-size:11px;color:#0876ee}.cg-weather-updated{display:block;margin-top:6px;font-size:11px;color:var(--cg-muted,#778294)}
html[data-cg-theme=dark] .cg-weather-summary.has-alert,html[data-cg-theme=dark] .cg-weather-days .is-hot{background:#493b25;color:#f3c16b}
html[data-cg-theme=dark] .cg-weather-days .is-cold{background:#253f5a;color:#9cc7ff}
@media(max-width:760px){.cg-header-weather{flex:1 1 105px;min-width:86px;max-width:150px}.cg-weather-summary{padding:3px}.cg-weather-current{font-size:12px}.cg-weather-status{font-size:10px}.cg-weather-panel{top:70px;right:12px}.cg-header-brand>span{display:none}}
@media(max-width:350px){.cg-header-weather{min-width:75px}.cg-weather-current{font-size:11px}.cg-weather-status{font-size:9px}.cg-header-top{gap:4px!important}}

/* Keep navigation separated from the header edge in either theme. */
html[data-cg-theme=dark] .cg-header-tab{border-color:transparent}
html[data-cg-theme=dark] .cg-header-tab:hover{background:#293544;color:#d8e7fa}
html[data-cg-theme=dark] .cg-header-tab[aria-current=page]{background:#263c55;border-color:#3b5675;color:#9bc6ff}
