/* ============================================================
   AIMA SMOKY LIGHT GLASS V1
   Visual-only global light-theme override.
   No layout, sizing, spacing, trading, wallet, or runtime logic.
   ============================================================ */

html[data-theme="light"],
html[data-v6-theme="light"],
html[data-stocks-theme="light"]{
  --aima-smoky-canvas-warm:#D8CCC4;
  --aima-smoky-canvas-mid:#D3D9E2;
  --aima-smoky-canvas-blue:#C6D8EF;

  --aima-smoky-glass-1:rgba(221,229,239,.34);
  --aima-smoky-glass-2:rgba(214,224,237,.42);
  --aima-smoky-glass-3:rgba(208,220,236,.54);
  --aima-smoky-warm:rgba(224,215,209,.30);

  --aima-smoky-border:rgba(255,255,255,.46);
  --aima-smoky-border-strong:rgba(255,255,255,.60);

  --aima-smoky-text:#26324A;
  --aima-smoky-title:#31405A;
  --aima-smoky-secondary:#52617A;
  --aima-smoky-muted:#718096;
  --aima-smoky-soft:#8F9CAF;

  --aima-smoky-blue:#4E78F5;
  --aima-smoky-blue-light:#79AEF8;
  --aima-smoky-green:#4DA16D;
  --aima-smoky-red:#B95764;

  color-scheme:light;
  background:#D3D9E2 !important;
}

/* CANVAS */
html[data-theme="light"] body,
html[data-v6-theme="light"] body,
html[data-stocks-theme="light"] body{
  color:var(--aima-smoky-text) !important;
  background:
    radial-gradient(circle at 2% 2%,rgba(232,207,191,.78),transparent 29%),
    radial-gradient(circle at 91% 4%,rgba(177,205,244,.72),transparent 31%),
    radial-gradient(circle at 72% 96%,rgba(191,211,239,.62),transparent 34%),
    linear-gradient(118deg,#D8CCC4 0%,#D3D9E2 44%,#C6D8EF 100%) !important;
  background-attachment:fixed !important;
}

/* Keep ambient canvas visible behind application wrappers. */
html[data-theme="light"] body :is(.main,.content,.workspace,.page,.page-wrap,.app-shell,.dashboard,.dashboard-wrap,.v6-content,.stocks-content),
html[data-v6-theme="light"] body :is(.main,.content,.workspace,.page,.page-wrap,.app-shell,.dashboard,.dashboard-wrap,.v6-content),
html[data-stocks-theme="light"] body :is(.main,.content,.workspace,.page,.page-wrap,.app-shell,.dashboard,.dashboard-wrap,.stocks-content){
  background:transparent !important;
}

/* TYPOGRAPHY */
html[data-theme="light"] body :is(h1,h2,h3,h4,h5,h6,.title,.card-title,.panel-title,.stat-value,.kpi-strip-value,strong),
html[data-v6-theme="light"] body :is(h1,h2,h3,h4,h5,h6,.title,.card-title,.panel-title,.stat-value,.kpi-strip-value,strong),
html[data-stocks-theme="light"] body :is(h1,h2,h3,h4,h5,h6,.title,.card-title,.panel-title,.stat-value,.kpi-strip-value,strong){
  color:var(--aima-smoky-title);
}
html[data-theme="light"] body :is(p,.subtitle,.description,.desc,.panelhead p,.stat-sub,.kpi-strip-sub,.help,.hint,small),
html[data-v6-theme="light"] body :is(p,.subtitle,.description,.desc,.panelhead p,.stat-sub,.kpi-strip-sub,.help,.hint,small),
html[data-stocks-theme="light"] body :is(p,.subtitle,.description,.desc,.panelhead p,.stat-sub,.kpi-strip-sub,.help,.hint,small){
  color:var(--aima-smoky-muted);
}
html[data-theme="light"] body :is(.muted,.secondary,.meta,.label,.stat-label,.kpi-strip-label,th),
html[data-v6-theme="light"] body :is(.muted,.secondary,.meta,.label,.stat-label,.kpi-strip-label,th),
html[data-stocks-theme="light"] body :is(.muted,.secondary,.meta,.label,.stat-label,.kpi-strip-label,th){
  color:var(--aima-smoky-secondary);
}

/* STANDARD GLASS */
html[data-theme="light"] body :is(
  .panel,.stat,.card,[class*="-card"],[class*="_card"],
  .kpi-strip-v3,.kpi-strip-item,.portfolio-v2-panel,.portfolio-v2-chart-card,
  .portfolio-v2-side-card,.v6-ai-card,.overview-expanded-table,
  .decision-live-strip-inner,.financial-agent-row,.engine-performance-note,
  .source-perf,.v6-diag-grid>div,.info-grid>div,
  .settings-domain-card,.settings-wallet-card,.settings-agent-card,
  .system-section,.system-card,.system-flow-node,.system-kpi-grid .stat,
  .notification-card,.conversation-card,.table-wrap,.table-card
),
html[data-v6-theme="light"] body :is(
  .panel,.stat,.card,[class*="-card"],[class*="_card"],
  .kpi-strip-v3,.kpi-strip-item,.portfolio-v2-panel,.portfolio-v2-chart-card,
  .portfolio-v2-side-card,.v6-ai-card,.overview-expanded-table,
  .decision-live-strip-inner,.financial-agent-row,.engine-performance-note,
  .source-perf,.v6-diag-grid>div,.info-grid>div,
  .settings-domain-card,.settings-wallet-card,.settings-agent-card,
  .system-section,.system-card,.system-flow-node,.system-kpi-grid .stat,
  .notification-card,.conversation-card,.table-wrap,.table-card
),
html[data-stocks-theme="light"] body :is(
  .panel,.stat,.card,[class*="-card"],[class*="_card"],
  .kpi-strip-v3,.kpi-strip-item,.portfolio-v2-panel,.portfolio-v2-chart-card,
  .portfolio-v2-side-card,.v6-ai-card,.overview-expanded-table,
  .decision-live-strip-inner,.financial-agent-row,.engine-performance-note,
  .source-perf,.v6-diag-grid>div,.info-grid>div,
  .settings-domain-card,.settings-wallet-card,.settings-agent-card,
  .system-section,.system-card,.system-flow-node,.system-kpi-grid .stat,
  .notification-card,.conversation-card,.table-wrap,.table-card
){
  background:
    linear-gradient(145deg,rgba(221,229,239,.48),rgba(200,214,233,.37)),
    rgba(210,220,233,.25) !important;
  border-color:rgba(255,255,255,.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 13px 34px rgba(68,83,108,.065) !important;
  backdrop-filter:blur(24px) saturate(120%) !important;
  -webkit-backdrop-filter:blur(24px) saturate(120%) !important;
}

/* Strong glass: menus, popups, settings surfaces, drawers, dialogs. */
html[data-theme="light"] body :is(
  dialog,.modal,.modal-content,[class*="modal"],[class*="popup"],[class*="dropdown"],
  .menu,.menu-panel,.drawer,.side-panel,.v6-notification-panel,#v6-notification-panel,
  .settings-shell,.settings-panel,.settings-content,.account-panel,.confirm-dialog
),
html[data-v6-theme="light"] body :is(
  dialog,.modal,.modal-content,[class*="modal"],[class*="popup"],[class*="dropdown"],
  .menu,.menu-panel,.drawer,.side-panel,.v6-notification-panel,#v6-notification-panel,
  .settings-shell,.settings-panel,.settings-content,.account-panel,.confirm-dialog
),
html[data-stocks-theme="light"] body :is(
  dialog,.modal,.modal-content,[class*="modal"],[class*="popup"],[class*="dropdown"],
  .menu,.menu-panel,.drawer,.side-panel,.v6-notification-panel,#v6-notification-panel,
  .settings-shell,.settings-panel,.settings-content,.account-panel,.confirm-dialog
){
  background:
    radial-gradient(circle at 2% 0%,rgba(228,211,201,.24),transparent 29%),
    radial-gradient(circle at 98% 0%,rgba(185,209,241,.28),transparent 30%),
    linear-gradient(145deg,rgba(221,229,239,.48),rgba(200,214,233,.40)),
    rgba(207,218,232,.32) !important;
  border-color:rgba(255,255,255,.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.44),
    0 32px 92px rgba(65,80,105,.16) !important;
  backdrop-filter:blur(34px) saturate(126%) !important;
  -webkit-backdrop-filter:blur(34px) saturate(126%) !important;
}

/* SIDEBAR */
html[data-theme="light"] body .sidebar,
html[data-v6-theme="light"] body .sidebar,
html[data-stocks-theme="light"] body .sidebar{
  background:
    linear-gradient(180deg,rgba(228,219,214,.44),rgba(214,224,237,.31)),
    rgba(216,222,231,.24) !important;
  border-right:1px solid rgba(255,255,255,.44) !important;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,.20),
    12px 0 42px rgba(68,83,108,.055) !important;
  backdrop-filter:blur(30px) saturate(128%) !important;
  -webkit-backdrop-filter:blur(30px) saturate(128%) !important;
}

/* TOPBAR */
html[data-theme="light"] body .topbar,
html[data-v6-theme="light"] body .topbar,
html[data-stocks-theme="light"] body .topbar{
  background:
    linear-gradient(108deg,rgba(227,221,218,.36),rgba(205,221,242,.34)),
    rgba(214,224,238,.26) !important;
  border-bottom:1px solid rgba(255,255,255,.46) !important;
  box-shadow:0 12px 34px rgba(68,83,108,.055) !important;
  backdrop-filter:blur(30px) saturate(128%) !important;
  -webkit-backdrop-filter:blur(30px) saturate(128%) !important;
}

/* NAV / ACTIVE */
html[data-theme="light"] body :is(#tabs button,.nav-item,.sidebar-item,.menu-item),
html[data-v6-theme="light"] body :is(#tabs button,.nav-item,.sidebar-item,.menu-item),
html[data-stocks-theme="light"] body :is(#tabs button,.nav-item,.sidebar-item,.menu-item){
  color:var(--aima-smoky-secondary) !important;
  background:transparent !important;
  border-color:transparent !important;
}
html[data-theme="light"] body :is(#tabs button,.nav-item,.sidebar-item,.menu-item):hover,
html[data-v6-theme="light"] body :is(#tabs button,.nav-item,.sidebar-item,.menu-item):hover,
html[data-stocks-theme="light"] body :is(#tabs button,.nav-item,.sidebar-item,.menu-item):hover{
  color:var(--aima-smoky-text) !important;
  background:rgba(226,233,242,.52) !important;
  border-color:rgba(255,255,255,.58) !important;
}
html[data-theme="light"] body :is(#tabs button.active,.nav-item.active,.sidebar-item.active,.menu-item.active,[aria-selected="true"]),
html[data-v6-theme="light"] body :is(#tabs button.active,.nav-item.active,.sidebar-item.active,.menu-item.active,[aria-selected="true"]),
html[data-stocks-theme="light"] body :is(#tabs button.active,.nav-item.active,.sidebar-item.active,.menu-item.active,[aria-selected="true"]){
  color:var(--aima-smoky-text) !important;
  background:linear-gradient(110deg,rgba(218,227,240,.56),rgba(191,210,238,.46)) !important;
  border-color:rgba(255,255,255,.54) !important;
  box-shadow:
    inset 3px 0 0 #4E78F5,
    inset 0 1px 0 rgba(255,255,255,.32),
    0 8px 24px rgba(70,88,118,.06) !important;
}

/* INPUTS / SEARCH / SELECT / TEXTAREA */
html[data-theme="light"] body :is(input,select,textarea,.search,.search-box,.field,.select-control),
html[data-v6-theme="light"] body :is(input,select,textarea,.search,.search-box,.field,.select-control),
html[data-stocks-theme="light"] body :is(input,select,textarea,.search,.search-box,.field,.select-control){
  color:#34425A !important;
  background:
    linear-gradient(145deg,rgba(223,231,241,.44),rgba(199,214,233,.34)),
    rgba(209,220,233,.25) !important;
  border-color:rgba(255,255,255,.48) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30) !important;
  backdrop-filter:blur(16px) saturate(116%) !important;
  -webkit-backdrop-filter:blur(16px) saturate(116%) !important;
}
html[data-theme="light"] body :is(input,textarea)::placeholder,
html[data-v6-theme="light"] body :is(input,textarea)::placeholder,
html[data-stocks-theme="light"] body :is(input,textarea)::placeholder{
  color:#8F9CAF !important;
  opacity:1 !important;
}
html[data-theme="light"] body :is(input,select,textarea):focus,
html[data-v6-theme="light"] body :is(input,select,textarea):focus,
html[data-stocks-theme="light"] body :is(input,select,textarea):focus{
  border-color:rgba(78,120,245,.26) !important;
  box-shadow:0 0 0 4px rgba(78,120,245,.045),inset 0 1px 0 rgba(255,255,255,.35) !important;
  outline:none !important;
}

/* BUTTONS */
html[data-theme="light"] body :is(button,.btn,[role="button"]),
html[data-v6-theme="light"] body :is(button,.btn,[role="button"]),
html[data-stocks-theme="light"] body :is(button,.btn,[role="button"]){
  border-color:rgba(255,255,255,.46);
}
html[data-theme="light"] body :is(button.primary,.btn-primary,.primary,[data-variant="primary"]),
html[data-v6-theme="light"] body :is(button.primary,.btn-primary,.primary,[data-variant="primary"]),
html[data-stocks-theme="light"] body :is(button.primary,.btn-primary,.primary,[data-variant="primary"]){
  color:#17233A !important;
  background:linear-gradient(110deg,rgba(227,234,246,.96),rgba(174,196,248,.94) 64%,rgba(151,174,240,.95)) !important;
  border-color:rgba(255,255,255,.60) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.58),0 10px 28px rgba(66,90,157,.15) !important;
}
html[data-theme="light"] body :is(button:not(.primary),.btn-secondary,.secondary-button),
html[data-v6-theme="light"] body :is(button:not(.primary),.btn-secondary,.secondary-button),
html[data-stocks-theme="light"] body :is(button:not(.primary),.btn-secondary,.secondary-button){
  color:#5F6E85;
}

/* TABLES: keep transparent smoky hierarchy instead of white sheets. */
html[data-theme="light"] body :is(table,thead,tbody,tfoot,tr,th,td),
html[data-v6-theme="light"] body :is(table,thead,tbody,tfoot,tr,th,td),
html[data-stocks-theme="light"] body :is(table,thead,tbody,tfoot,tr,th,td){
  border-color:rgba(255,255,255,.28) !important;
}
html[data-theme="light"] body :is(table,tbody,tr,td),
html[data-v6-theme="light"] body :is(table,tbody,tr,td),
html[data-stocks-theme="light"] body :is(table,tbody,tr,td){
  background-color:transparent !important;
}
html[data-theme="light"] body thead,
html[data-v6-theme="light"] body thead,
html[data-stocks-theme="light"] body thead{
  background:rgba(214,224,237,.32) !important;
}
html[data-theme="light"] body tbody tr:nth-child(even),
html[data-v6-theme="light"] body tbody tr:nth-child(even),
html[data-stocks-theme="light"] body tbody tr:nth-child(even){
  background:rgba(221,229,239,.13) !important;
}
html[data-theme="light"] body tbody tr:hover,
html[data-v6-theme="light"] body tbody tr:hover,
html[data-stocks-theme="light"] body tbody tr:hover{
  background:rgba(226,233,242,.36) !important;
}

/* POPUP / DROPDOWN / MENU */
html[data-theme="light"] body :is(.dropdown-menu,.context-menu,.select-menu,.popover,.tooltip-menu,.menu-popover),
html[data-v6-theme="light"] body :is(.dropdown-menu,.context-menu,.select-menu,.popover,.tooltip-menu,.menu-popover),
html[data-stocks-theme="light"] body :is(.dropdown-menu,.context-menu,.select-menu,.popover,.tooltip-menu,.menu-popover){
  background:
    linear-gradient(145deg,rgba(220,228,239,.58),rgba(196,212,233,.48)),
    rgba(207,218,232,.37) !important;
  border-color:rgba(255,255,255,.54) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.44),0 22px 62px rgba(64,79,104,.14) !important;
  backdrop-filter:blur(30px) saturate(128%) !important;
  -webkit-backdrop-filter:blur(30px) saturate(128%) !important;
}

/* SYSTEM COMMAND CENTER light-specific cleanup */
html[data-theme="light"] body :is(.system-hero,.system-flow,.system-database-card,.system-resource-card,.system-financial-card,.system-backup-card),
html[data-v6-theme="light"] body :is(.system-hero,.system-flow,.system-database-card,.system-resource-card,.system-financial-card,.system-backup-card),
html[data-stocks-theme="light"] body :is(.system-hero,.system-flow,.system-database-card,.system-resource-card,.system-financial-card,.system-backup-card){
  background:
    linear-gradient(145deg,rgba(221,229,239,.48),rgba(200,214,233,.37)),
    rgba(210,220,233,.25) !important;
  border-color:rgba(255,255,255,.48) !important;
  color:var(--aima-smoky-text) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38),0 13px 34px rgba(68,83,108,.065) !important;
  backdrop-filter:blur(24px) saturate(120%) !important;
  -webkit-backdrop-filter:blur(24px) saturate(120%) !important;
}

/* NOTIFICATIONS */
html[data-theme="light"] body :is(.v6-notification-panel,#v6-notification-panel),
html[data-v6-theme="light"] body :is(.v6-notification-panel,#v6-notification-panel),
html[data-stocks-theme="light"] body :is(.v6-notification-panel,#v6-notification-panel){
  background:
    linear-gradient(145deg,rgba(220,228,239,.58),rgba(196,212,233,.48)),
    rgba(207,218,232,.37) !important;
  border:1px solid rgba(255,255,255,.54) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.44),0 22px 62px rgba(64,79,104,.14) !important;
  backdrop-filter:blur(30px) saturate(128%) !important;
  -webkit-backdrop-filter:blur(30px) saturate(128%) !important;
}
html[data-theme="light"] body .v6-notification-item,
html[data-v6-theme="light"] body .v6-notification-item,
html[data-stocks-theme="light"] body .v6-notification-item{
  background:rgba(221,229,239,.26) !important;
  border-color:rgba(255,255,255,.38) !important;
}
html[data-theme="light"] body .v6-notification-item:hover,
html[data-v6-theme="light"] body .v6-notification-item:hover,
html[data-stocks-theme="light"] body .v6-notification-item:hover{
  background:rgba(226,233,242,.48) !important;
}

/* STATUS / SEMANTICS */
html[data-theme="light"] body :is(.pos,.profit,.win,.good,.success),
html[data-v6-theme="light"] body :is(.pos,.profit,.win,.good,.success),
html[data-stocks-theme="light"] body :is(.pos,.profit,.win,.good,.success){color:#4DA16D !important;}
html[data-theme="light"] body :is(.neg,.loss,.bad,.danger,.error),
html[data-v6-theme="light"] body :is(.neg,.loss,.bad,.danger,.error),
html[data-stocks-theme="light"] body :is(.neg,.loss,.bad,.danger,.error){color:#B95764 !important;}
html[data-theme="light"] body :is(a,.link,.accent),
html[data-v6-theme="light"] body :is(a,.link,.accent),
html[data-stocks-theme="light"] body :is(a,.link,.accent){color:#4E78F5;}

/* Theme toggles themselves */
html[data-theme="light"] body :is(.v6-theme-toggle,.stocks-theme-toggle,.theme-toggle){
  color:#31405A !important;
  background:linear-gradient(145deg,rgba(221,229,239,.42),rgba(198,213,232,.34)) !important;
  border-color:rgba(255,255,255,.50) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42),0 8px 22px rgba(68,83,108,.07) !important;
  backdrop-filter:blur(18px) saturate(118%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(118%) !important;
}

/* Avoid accidental pure-white light cards introduced by legacy sheets. */
html[data-theme="light"] body :is(.panel,.stat,.card,[class*="-card"],[class*="_card"],.sidebar,.topbar,dialog,.modal,.modal-content),
html[data-v6-theme="light"] body :is(.panel,.stat,.card,[class*="-card"],[class*="_card"],.sidebar,.topbar,dialog,.modal,.modal-content),
html[data-stocks-theme="light"] body :is(.panel,.stat,.card,[class*="-card"],[class*="_card"],.sidebar,.topbar,dialog,.modal,.modal-content){
  background-color:transparent !important;
}

/* Respect native heat/flash/semantic backgrounds. */
html[data-theme="light"] body :is(.aima-heat-cell,.v6-current-up,.v6-current-down,.status-pill,.badge,.chip),
html[data-v6-theme="light"] body :is(.aima-heat-cell,.v6-current-up,.v6-current-down,.status-pill,.badge,.chip),
html[data-stocks-theme="light"] body :is(.aima-heat-cell,.v6-current-up,.v6-current-down,.status-pill,.badge,.chip){
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

/* Mobile keeps same theme semantics, no layout mutation. */
@media (max-width:760px){
  html[data-theme="light"] body,
  html[data-v6-theme="light"] body,
  html[data-stocks-theme="light"] body{
    background:
      radial-gradient(circle at 0% 0%,rgba(232,207,191,.70),transparent 34%),
      radial-gradient(circle at 100% 4%,rgba(177,205,244,.64),transparent 36%),
      linear-gradient(135deg,#D8CCC4 0%,#D3D9E2 50%,#C6D8EF 100%) !important;
  }
}

/* LOGIN — stronger smoky translucency, less milky */
html[data-theme="light"] body .login-card{
  background:
    radial-gradient(circle at 8% 0%,rgba(224,215,209,.20),transparent 34%),
    radial-gradient(circle at 100% 0%,rgba(185,209,241,.22),transparent 32%),
    linear-gradient(145deg,rgba(207,218,232,.40),rgba(188,205,227,.30)),
    rgba(197,210,226,.22) !important;
  border:1px solid rgba(255,255,255,.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.40),
    0 28px 76px rgba(65,80,105,.13) !important;
  backdrop-filter:blur(32px) saturate(124%) !important;
  -webkit-backdrop-filter:blur(32px) saturate(124%) !important;
}
html[data-theme="light"] body .login-card :is(input,.pass-wrap input){
  background:
    linear-gradient(145deg,rgba(214,224,237,.40),rgba(190,207,229,.28)),
    rgba(203,216,232,.20) !important;
}
html[data-theme="light"] body .sign-in{
  color:#17233A !important;
  background:linear-gradient(110deg,rgba(227,234,246,.96),rgba(174,196,248,.94) 64%,rgba(151,174,240,.95)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.58),0 10px 28px rgba(66,90,157,.15) !important;
}

/* ============================================================
   SMOKY PASS V2 — reduce milky opacity, keep canvas visible
   ============================================================ */
html[data-theme="light"] body :is(
  .panel,.stat,.card,[class*="-card"],[class*="_card"],
  .kpi-strip-v3,.kpi-strip-item,.portfolio-v2-panel,.portfolio-v2-chart-card,
  .portfolio-v2-side-card,.v6-ai-card,.overview-expanded-table,
  .decision-live-strip-inner,.financial-agent-row,.engine-performance-note,
  .source-perf,.v6-diag-grid>div,.info-grid>div,
  .settings-domain-card,.settings-wallet-card,.settings-agent-card,
  .system-section,.system-card,.system-flow-node,.system-kpi-grid .stat,
  .notification-card,.conversation-card,.table-wrap,.table-card
),
html[data-v6-theme="light"] body :is(
  .panel,.stat,.card,[class*="-card"],[class*="_card"],
  .kpi-strip-v3,.kpi-strip-item,.portfolio-v2-panel,.portfolio-v2-chart-card,
  .portfolio-v2-side-card,.v6-ai-card,.overview-expanded-table,
  .decision-live-strip-inner,.financial-agent-row,.engine-performance-note,
  .source-perf,.v6-diag-grid>div,.info-grid>div,
  .settings-domain-card,.settings-wallet-card,.settings-agent-card,
  .system-section,.system-card,.system-flow-node,.system-kpi-grid .stat,
  .notification-card,.conversation-card,.table-wrap,.table-card
),
html[data-stocks-theme="light"] body :is(
  .panel,.stat,.card,[class*="-card"],[class*="_card"],
  .kpi-strip-v3,.kpi-strip-item,.portfolio-v2-panel,.portfolio-v2-chart-card,
  .portfolio-v2-side-card,.v6-ai-card,.overview-expanded-table,
  .decision-live-strip-inner,.financial-agent-row,.engine-performance-note,
  .source-perf,.v6-diag-grid>div,.info-grid>div,
  .settings-domain-card,.settings-wallet-card,.settings-agent-card,
  .system-section,.system-card,.system-flow-node,.system-kpi-grid .stat,
  .notification-card,.conversation-card,.table-wrap,.table-card
){
  background:
    linear-gradient(145deg,rgba(205,216,231,.31),rgba(183,201,225,.22)),
    rgba(198,211,228,.14) !important;
  border-color:rgba(255,255,255,.46) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    0 13px 34px rgba(68,83,108,.065) !important;
  backdrop-filter:blur(24px) saturate(120%) !important;
  -webkit-backdrop-filter:blur(24px) saturate(120%) !important;
}

/* Large analytics/chart surfaces should remain especially transparent. */
html[data-theme="light"] body :is(.portfolio-v2-chart-card,.v6-rich-chart,.overview-expanded-table),
html[data-v6-theme="light"] body :is(.portfolio-v2-chart-card,.v6-rich-chart,.overview-expanded-table),
html[data-stocks-theme="light"] body :is(.portfolio-v2-chart-card,.v6-rich-chart,.overview-expanded-table){
  background:
    linear-gradient(145deg,rgba(207,219,234,.27),rgba(184,204,228,.18)),
    rgba(197,211,229,.10) !important;
}

/* Secondary controls: glass, never white. */
html[data-theme="light"] body :is(
  button:not(.primary):not(.sign-in):not(.active),
  .btn-secondary,.secondary-button
),
html[data-v6-theme="light"] body :is(
  button:not(.primary):not(.sign-in):not(.active),
  .btn-secondary,.secondary-button
),
html[data-stocks-theme="light"] body :is(
  button:not(.primary):not(.sign-in):not(.active),
  .btn-secondary,.secondary-button
){
  color:#5F6E85 !important;
  background:
    linear-gradient(145deg,rgba(210,222,237,.34),rgba(188,207,230,.24)),
    rgba(201,215,232,.13) !important;
  border-color:rgba(255,255,255,.46) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 7px 18px rgba(68,83,108,.045) !important;
  backdrop-filter:blur(18px) saturate(118%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(118%) !important;
}

/* Preserve active accent after generic secondary-button glass. */
html[data-theme="light"] body :is(button.active,#tabs button.active,.portfolio-v2-ranges button.active),
html[data-v6-theme="light"] body :is(button.active,#tabs button.active,.portfolio-v2-ranges button.active),
html[data-stocks-theme="light"] body :is(button.active,#tabs button.active,.portfolio-v2-ranges button.active){
  color:#26324A !important;
  background:linear-gradient(110deg,rgba(210,223,242,.58),rgba(174,198,235,.48)) !important;
  border-color:rgba(255,255,255,.56) !important;
  box-shadow:inset 3px 0 0 #4E78F5,inset 0 1px 0 rgba(255,255,255,.34),0 8px 24px rgba(70,88,118,.06) !important;
}

/* ============================================================
   SMOKY PASS V3 — sub-surfaces, notifications, settings
   ============================================================ */

/* Slightly deeper pearl blue-gray for ordinary glass. */
html[data-theme="light"] body :is(
  .panel,.stat,.card,[class*="-card"],[class*="_card"],
  .kpi-strip-v3,.kpi-strip-item,.portfolio-v2-panel,.portfolio-v2-chart-card,
  .portfolio-v2-side-card,.v6-ai-card,.overview-expanded-table,
  .decision-live-strip-inner,.financial-agent-row,.engine-performance-note,
  .source-perf,.v6-diag-grid>div,.info-grid>div,
  .settings-domain-card,.settings-wallet-card,.settings-agent-card,
  .settings-trading-card,.settings-console-card,.settings-control-center,
  .system-section,.system-card,.system-flow-node,.system-kpi-grid .stat,
  .notification-card,.conversation-card,.table-wrap,.table-card
),
html[data-v6-theme="light"] body :is(
  .panel,.stat,.card,[class*="-card"],[class*="_card"],
  .kpi-strip-v3,.kpi-strip-item,.portfolio-v2-panel,.portfolio-v2-chart-card,
  .portfolio-v2-side-card,.v6-ai-card,.overview-expanded-table,
  .decision-live-strip-inner,.financial-agent-row,.engine-performance-note,
  .source-perf,.v6-diag-grid>div,.info-grid>div,
  .settings-domain-card,.settings-wallet-card,.settings-agent-card,
  .settings-trading-card,.settings-console-card,.settings-control-center,
  .system-section,.system-card,.system-flow-node,.system-kpi-grid .stat,
  .notification-card,.conversation-card,.table-wrap,.table-card
),
html[data-stocks-theme="light"] body :is(
  .panel,.stat,.card,[class*="-card"],[class*="_card"],
  .kpi-strip-v3,.kpi-strip-item,.portfolio-v2-panel,.portfolio-v2-chart-card,
  .portfolio-v2-side-card,.v6-ai-card,.overview-expanded-table,
  .decision-live-strip-inner,.financial-agent-row,.engine-performance-note,
  .source-perf,.v6-diag-grid>div,.info-grid>div,
  .settings-domain-card,.settings-wallet-card,.settings-agent-card,
  .settings-trading-card,.settings-console-card,.settings-control-center,
  .system-section,.system-card,.system-flow-node,.system-kpi-grid .stat,
  .notification-card,.conversation-card,.table-wrap,.table-card
){
  background:
    linear-gradient(145deg,rgba(190,207,228,.31),rgba(169,191,219,.22)),
    rgba(188,204,225,.13) !important;
}

/* Settings metric boxes and nested bot/control surfaces. */
html[data-theme="light"] body :is(
  .settings-wallet-grid>div,
  .settings-domain-fields,
  .settings-trading-fields,
  .settings-console-fields,
  .settings-panel,
  .financial-agent-row
),
html[data-v6-theme="light"] body :is(
  .settings-wallet-grid>div,
  .settings-domain-fields,
  .settings-trading-fields,
  .settings-console-fields,
  .settings-panel,
  .financial-agent-row
),
html[data-stocks-theme="light"] body :is(
  .settings-wallet-grid>div,
  .settings-domain-fields,
  .settings-trading-fields,
  .settings-console-fields,
  .settings-panel,
  .financial-agent-row
){
  background:
    linear-gradient(145deg,rgba(197,212,231,.28),rgba(174,196,222,.18)),
    rgba(190,207,226,.10) !important;
  border-color:rgba(255,255,255,.42) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 7px 22px rgba(68,83,108,.045) !important;
}

/* Inputs/selects: smoky instead of frosted white. */
html[data-theme="light"] body :is(input,select,textarea,.search,.search-box,.field,.select-control),
html[data-v6-theme="light"] body :is(input,select,textarea,.search,.search-box,.field,.select-control),
html[data-stocks-theme="light"] body :is(input,select,textarea,.search,.search-box,.field,.select-control){
  background:
    linear-gradient(145deg,rgba(198,214,233,.36),rgba(174,198,225,.24)),
    rgba(190,208,229,.13) !important;
  border-color:rgba(255,255,255,.46) !important;
}

/* Notification drawer: every internal layer stays smoky glass. */
html[data-theme="light"] body :is(.v6-notification-panel,#v6-notification-panel),
html[data-v6-theme="light"] body :is(.v6-notification-panel,#v6-notification-panel),
html[data-stocks-theme="light"] body :is(.v6-notification-panel,#v6-notification-panel){
  background:
    radial-gradient(circle at 0% 0%,rgba(224,215,209,.20),transparent 34%),
    radial-gradient(circle at 100% 0%,rgba(177,205,244,.22),transparent 32%),
    linear-gradient(145deg,rgba(194,210,230,.50),rgba(169,192,221,.38)),
    rgba(187,203,225,.24) !important;
  border-color:rgba(255,255,255,.54) !important;
}
html[data-theme="light"] body :is(
  #v6-notification-panel .v6-notification-head,
  #v6-notification-panel .v6-notification-tabs,
  #v6-notification-panel .v6-notification-list,
  #v6-notification-panel .v6-notification-item,
  #v6-notification-panel .v6-notification-empty,
  .v6-notification-panel .v6-notification-head,
  .v6-notification-panel .v6-notification-tabs,
  .v6-notification-panel .v6-notification-list,
  .v6-notification-panel .v6-notification-item
),
html[data-v6-theme="light"] body :is(
  #v6-notification-panel .v6-notification-head,
  #v6-notification-panel .v6-notification-tabs,
  #v6-notification-panel .v6-notification-list,
  #v6-notification-panel .v6-notification-item,
  #v6-notification-panel .v6-notification-empty,
  .v6-notification-panel .v6-notification-head,
  .v6-notification-panel .v6-notification-tabs,
  .v6-notification-panel .v6-notification-list,
  .v6-notification-panel .v6-notification-item
),
html[data-stocks-theme="light"] body :is(
  #v6-notification-panel .v6-notification-head,
  #v6-notification-panel .v6-notification-tabs,
  #v6-notification-panel .v6-notification-list,
  #v6-notification-panel .v6-notification-item,
  #v6-notification-panel .v6-notification-empty,
  .v6-notification-panel .v6-notification-head,
  .v6-notification-panel .v6-notification-tabs,
  .v6-notification-panel .v6-notification-list,
  .v6-notification-panel .v6-notification-item
){
  background:rgba(192,209,229,.18) !important;
  border-color:rgba(255,255,255,.34) !important;
}
html[data-theme="light"] body :is(#v6-notification-panel .v6-notification-tab,.v6-notification-panel .v6-notification-tab),
html[data-v6-theme="light"] body :is(#v6-notification-panel .v6-notification-tab,.v6-notification-panel .v6-notification-tab),
html[data-stocks-theme="light"] body :is(#v6-notification-panel .v6-notification-tab,.v6-notification-panel .v6-notification-tab){
  background:rgba(202,217,235,.24) !important;
  border-color:rgba(255,255,255,.40) !important;
}
html[data-theme="light"] body :is(#v6-notification-panel .v6-notification-tab.active,.v6-notification-panel .v6-notification-tab.active),
html[data-v6-theme="light"] body :is(#v6-notification-panel .v6-notification-tab.active,.v6-notification-panel .v6-notification-tab.active),
html[data-stocks-theme="light"] body :is(#v6-notification-panel .v6-notification-tab.active,.v6-notification-panel .v6-notification-tab.active){
  background:linear-gradient(110deg,rgba(204,219,240,.58),rgba(173,198,233,.46)) !important;
  box-shadow:inset 3px 0 0 #4E78F5,inset 0 1px 0 rgba(255,255,255,.34) !important;
}

/* System meters/advanced bars should not become white strips. */
html[data-theme="light"] body :is(.system-meter,.system-progress,.system-backup-meter,.system-advanced,.health-json),
html[data-v6-theme="light"] body :is(.system-meter,.system-progress,.system-backup-meter,.system-advanced,.health-json),
html[data-stocks-theme="light"] body :is(.system-meter,.system-progress,.system-backup-meter,.system-advanced,.health-json){
  background:rgba(186,204,226,.22) !important;
  border-color:rgba(255,255,255,.38) !important;
}

/* ============================================================
   SMOKY PASS V4 — high-specificity notification override
   Beats legacy V6/Stocks light notification sheets.
   ============================================================ */
html[data-theme="light"] body.v6page #v6-notification-panel,
html[data-v6-theme="light"] body.v6page #v6-notification-panel,
html[data-stocks-theme="light"] body.v6page #v6-notification-panel{
  background:
    radial-gradient(circle at 2% 0%,rgba(228,211,201,.18),transparent 30%),
    radial-gradient(circle at 98% 0%,rgba(185,209,241,.22),transparent 32%),
    linear-gradient(145deg,rgba(190,207,228,.58),rgba(165,189,219,.46)),
    rgba(183,201,224,.34) !important;
  border:1px solid rgba(255,255,255,.54) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 22px 62px rgba(64,79,104,.14) !important;
  backdrop-filter:blur(30px) saturate(128%) !important;
  -webkit-backdrop-filter:blur(30px) saturate(128%) !important;
}

html[data-theme="light"] body.v6page #v6-notification-panel :is(
  .v6-notification-head,.v6-notification-tabs,.v6-notification-list,
  .v6-notification-empty,.v6-notification-view-all
),
html[data-v6-theme="light"] body.v6page #v6-notification-panel :is(
  .v6-notification-head,.v6-notification-tabs,.v6-notification-list,
  .v6-notification-empty,.v6-notification-view-all
),
html[data-stocks-theme="light"] body.v6page #v6-notification-panel :is(
  .v6-notification-head,.v6-notification-tabs,.v6-notification-list,
  .v6-notification-empty,.v6-notification-view-all
){
  background:
    linear-gradient(145deg,rgba(185,204,227,.34),rgba(161,187,218,.24)),
    rgba(178,199,223,.18) !important;
  border-color:rgba(255,255,255,.32) !important;
  backdrop-filter:blur(24px) saturate(122%) !important;
  -webkit-backdrop-filter:blur(24px) saturate(122%) !important;
}

html[data-theme="light"] body.v6page #v6-notification-panel .v6-notification-empty,
html[data-v6-theme="light"] body.v6page #v6-notification-panel .v6-notification-empty,
html[data-stocks-theme="light"] body.v6page #v6-notification-panel .v6-notification-empty{
  color:#52617A !important;
  background:
    radial-gradient(circle at 50% 20%,rgba(206,222,239,.24),transparent 60%),
    rgba(171,194,221,.22) !important;
}
html[data-theme="light"] body.v6page #v6-notification-panel .v6-notification-empty strong,
html[data-v6-theme="light"] body.v6page #v6-notification-panel .v6-notification-empty strong,
html[data-stocks-theme="light"] body.v6page #v6-notification-panel .v6-notification-empty strong{
  color:#31405A !important;
}
html[data-theme="light"] body.v6page #v6-notification-panel .v6-notification-empty small,
html[data-v6-theme="light"] body.v6page #v6-notification-panel .v6-notification-empty small,
html[data-stocks-theme="light"] body.v6page #v6-notification-panel .v6-notification-empty small{
  color:#718096 !important;
}

html[data-theme="light"] body.v6page #v6-notification-panel .v6-notification-view-all,
html[data-v6-theme="light"] body.v6page #v6-notification-panel .v6-notification-view-all,
html[data-stocks-theme="light"] body.v6page #v6-notification-panel .v6-notification-view-all{
  color:#3E679D !important;
  background:rgba(169,192,220,.28) !important;
  border-top:1px solid rgba(255,255,255,.34) !important;
}
html[data-theme="light"] body.v6page #v6-notification-panel .v6-notification-view-all:hover,
html[data-v6-theme="light"] body.v6page #v6-notification-panel .v6-notification-view-all:hover,
html[data-stocks-theme="light"] body.v6page #v6-notification-panel .v6-notification-view-all:hover{
  background:rgba(184,205,230,.42) !important;
}

html[data-theme="light"] body.v6page #v6-notification-panel .v6-notification-close,
html[data-v6-theme="light"] body.v6page #v6-notification-panel .v6-notification-close,
html[data-stocks-theme="light"] body.v6page #v6-notification-panel .v6-notification-close{
  color:#52617A !important;
  background:rgba(194,211,231,.28) !important;
  border:1px solid rgba(255,255,255,.42) !important;
}

html[data-theme="light"] body.v6page #v6-notification-panel .v6-notification-tab,
html[data-v6-theme="light"] body.v6page #v6-notification-panel .v6-notification-tab,
html[data-stocks-theme="light"] body.v6page #v6-notification-panel .v6-notification-tab{
  color:#52617A !important;
  background:rgba(187,207,230,.28) !important;
  border:1px solid rgba(255,255,255,.40) !important;
}
html[data-theme="light"] body.v6page #v6-notification-panel .v6-notification-tab.active,
html[data-v6-theme="light"] body.v6page #v6-notification-panel .v6-notification-tab.active,
html[data-stocks-theme="light"] body.v6page #v6-notification-panel .v6-notification-tab.active{
  color:#31405A !important;
  background:linear-gradient(110deg,rgba(197,216,239,.58),rgba(166,194,230,.46)) !important;
  border-color:rgba(255,255,255,.52) !important;
  box-shadow:inset 3px 0 0 #4E78F5,inset 0 1px 0 rgba(255,255,255,.32) !important;
}

/* ============================================================
   LOGIN TEXT CONTRAST V1 — readable smoky-light typography
   ============================================================ */
html[data-theme="light"] body .login-card label{
  color:#52617A !important;
}
html[data-theme="light"] body .login-card .sub{
  color:#718096 !important;
}
html[data-theme="light"] body .login-card .eyebrow{
  color:#52617A !important;
}
html[data-theme="light"] body .login-card .guard{
  color:#718096 !important;
  border-top-color:rgba(255,255,255,.34) !important;
}
html[data-theme="light"] body .login-card .pass-wrap button{
  color:#52617A !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

/* ============================================================
   SMOKY STOCKS PASS V5 — remove remaining white surfaces
   ============================================================ */
html[data-stocks-theme="light"] body.v6page .aima-brand-mark{
  --aima-mark-stroke:#26324A;
  --aima-mark-ring:rgba(78,120,245,.20);
  --aima-mark-border:rgba(255,255,255,.52);
  --aima-mark-bg-a:rgba(221,229,239,.58);
  --aima-mark-bg-b:rgba(192,210,232,.46);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 8px 24px rgba(68,83,108,.07) !important;
  backdrop-filter:blur(18px) saturate(118%);
  -webkit-backdrop-filter:blur(18px) saturate(118%);
}

html[data-stocks-theme="light"] body.v6page .inspector-section{
  background:
    linear-gradient(145deg,rgba(221,229,239,.48),rgba(200,214,233,.37)),
    rgba(210,220,233,.25) !important;
  border-color:rgba(255,255,255,.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 13px 34px rgba(68,83,108,.065) !important;
  backdrop-filter:blur(24px) saturate(120%) !important;
  -webkit-backdrop-filter:blur(24px) saturate(120%) !important;
}
html[data-stocks-theme="light"] body.v6page .inspector-chart{
  background:transparent !important;
  border-bottom-color:rgba(255,255,255,.30) !important;
}

/* ============================================================
   SMOKY STOCKS PASS V6 — Markets summary + light scrollbars
   ============================================================ */
html[data-stocks-theme="light"] body.v6page #tab-markets .markets-summary-strip>div{
  background:
    linear-gradient(145deg,rgba(218,228,240,.50),rgba(194,212,234,.38)),
    rgba(207,219,233,.24) !important;
  border-color:rgba(255,255,255,.50) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 8px 22px rgba(68,83,108,.055) !important;
  backdrop-filter:blur(20px) saturate(118%) !important;
  -webkit-backdrop-filter:blur(20px) saturate(118%) !important;
}
html[data-stocks-theme="light"] body.v6page #tab-markets .markets-summary-strip span{
  color:#718096 !important;
}
html[data-stocks-theme="light"] body.v6page #tab-markets .markets-summary-strip strong{
  color:#31405A !important;
}
html[data-stocks-theme="light"] body.v6page #tab-markets #market-summary-signals,
html[data-stocks-theme="light"] body.v6page #tab-markets #market-summary-open{
  color:#4DA16D !important;
}
html[data-stocks-theme="light"] body.v6page #tab-markets #market-summary-hold{
  color:#52617A !important;
}

html[data-stocks-theme="light"].stocks-first2-scrollbar-theme,
html[data-stocks-theme="light"] body.stocks-first2-scrollbar-theme{
  scrollbar-color:rgba(106,128,158,.72) rgba(214,224,237,.32) !important;
}
html[data-stocks-theme="light"].stocks-first2-scrollbar-theme::-webkit-scrollbar-track,
html[data-stocks-theme="light"] body.stocks-first2-scrollbar-theme::-webkit-scrollbar-track,
html[data-stocks-theme="light"] .stocks-first2-scrollbar-theme .tab.active *::-webkit-scrollbar-track{
  background:rgba(214,224,237,.32) !important;
}
html[data-stocks-theme="light"].stocks-first2-scrollbar-theme::-webkit-scrollbar-thumb,
html[data-stocks-theme="light"] body.stocks-first2-scrollbar-theme::-webkit-scrollbar-thumb,
html[data-stocks-theme="light"] .stocks-first2-scrollbar-theme .tab.active *::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,rgba(132,153,181,.66),rgba(104,127,158,.72)) !important;
  border-color:rgba(225,233,242,.58) !important;
}
html[data-stocks-theme="light"].stocks-first2-scrollbar-theme::-webkit-scrollbar-thumb:hover,
html[data-stocks-theme="light"] body.stocks-first2-scrollbar-theme::-webkit-scrollbar-thumb:hover,
html[data-stocks-theme="light"] .stocks-first2-scrollbar-theme .tab.active *::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,rgba(121,149,190,.74),rgba(94,121,163,.80)) !important;
}
html[data-stocks-theme="light"].stocks-first2-scrollbar-theme::-webkit-scrollbar-corner,
html[data-stocks-theme="light"] body.stocks-first2-scrollbar-theme::-webkit-scrollbar-corner{
  background:rgba(214,224,237,.30) !important;
}


/* ============================================================
   STOCKS VISUAL PARITY V1 — 2026-10-12
   Visual-only parity with Crypto console. No layout/runtime logic.
   ============================================================ */
html[data-stocks-theme="light"] body.v6page .stocks-market-clock{
  background:
    linear-gradient(145deg,rgba(226,233,242,.46),rgba(188,210,238,.30)),
    rgba(211,222,236,.24) !important;
  border:1px solid rgba(255,255,255,.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.52),
    0 10px 28px rgba(67,84,111,.08) !important;
  backdrop-filter:blur(22px) saturate(130%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(130%) !important;
}
html[data-stocks-theme="light"] body.v6page :is(
  .settings-domain-card,.settings-wallet-card,.settings-agent-card,
  .settings-panel,.settings-domain-fields input,.settings-domain-fields select,
  .money-input,.v6-notification-panel
){
  background:
    linear-gradient(145deg,rgba(223,230,239,.42),rgba(190,210,236,.26)),
    rgba(214,224,237,.22) !important;
  border-color:rgba(255,255,255,.54) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.44),
    0 12px 30px rgba(67,84,111,.06) !important;
  backdrop-filter:blur(24px) saturate(128%) !important;
  -webkit-backdrop-filter:blur(24px) saturate(128%) !important;
}
html[data-stocks-theme="light"] body.v6page :is(
  .settings-domain-fields input,.settings-domain-fields select,.money-input
){
  color:#32425b !important;
}
html[data-stocks-theme="light"] body.v6page .v6-notification-panel{
  box-shadow:
    0 24px 68px rgba(63,78,103,.18),
    inset 0 1px 0 rgba(255,255,255,.46) !important;
}
html[data-stocks-theme="light"] body.v6page .v6-notification-tab{
  background:rgba(207,219,237,.40) !important;
  border-color:rgba(255,255,255,.38) !important;
  color:#52617a !important;
}
html[data-stocks-theme="light"] body.v6page .v6-notification-tab.active{
  background:linear-gradient(120deg,rgba(204,219,241,.62),rgba(177,203,238,.52)) !important;
  color:#274f86 !important;
  border-color:rgba(255,255,255,.62) !important;
}

html[data-stocks-theme="dark"] body.v6page .stocks-market-clock,
html[data-stocks-theme="dark"] body.v6page :is(
  .settings-domain-card,.settings-wallet-card,.settings-agent-card,
  .settings-panel,.v6-notification-panel
){
  background:
    linear-gradient(145deg,rgba(26,45,69,.66),rgba(17,32,51,.56)),
    rgba(12,27,44,.54) !important;
  border-color:rgba(118,149,188,.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 18px 42px rgba(0,0,0,.20) !important;
  backdrop-filter:blur(24px) saturate(118%) !important;
  -webkit-backdrop-filter:blur(24px) saturate(118%) !important;
}

@media (max-width:700px){
  html[data-stocks-theme] body.v6page .stocks-market-clock{
    border-radius:12px !important;
    padding:7px 9px !important;
    gap:8px !important;
  }
  html[data-stocks-theme] body.v6page .stocks-market-clock .stocks-market-clock-times{
    gap:7px !important;
  }
  html[data-stocks-theme] body.v6page #tab-overview .portfolio-v2-head{
    gap:8px !important;
  }
  html[data-stocks-theme="light"] body.v6page :is(
    .portfolio-v2-panel,.portfolio-v2-chart-card,.portfolio-v2-side-card
  ){
    background:
      linear-gradient(145deg,rgba(174,194,219,.40),rgba(149,177,208,.28)),
      rgba(197,211,229,.22) !important;
    border-color:rgba(255,255,255,.52) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.42),
      0 12px 28px rgba(73,89,116,.06) !important;
  }
  html[data-stocks-theme="light"] body.v6page #tab-overview :is(button,[role="button"]){
    box-shadow:inset 0 1px 0 rgba(255,255,255,.42) !important;
  }
}
