/* Dark appearance materials copied from l3ns.ai, 2026-11-04.
   Shell/widgets: homepage-glass.css and embedded desktop demo.
   Raised panels/controls: download/macos/mac-download.css.
   Keep geometry, typography and bright/glacial appearance independent. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) {
  --bg:#090c13;
  --ink:#f3f5f9;
  --muted:#9aa3b5;
  --accent:#eceef5;
  --line:rgba(255,255,255,.1);
  --line-strong:rgba(222,234,255,.24);
  --orb-glow:rgba(220,220,220,.16);
  --reference-backdrop:radial-gradient(36% 29% at 50% 32%,rgba(100,124,165,.17),transparent 80%),radial-gradient(25% 22% at 81% 15%,rgba(128,115,170,.1),transparent 85%),#090c13;
  --reference-shell:linear-gradient(145deg,rgba(18,22,29,.72),rgba(4,6,10,.58) 55%,rgba(10,13,19,.68));
  --app-rim:rgba(222,234,255,.24);
  --app-shadow:inset 0 1px 1px rgba(255,255,255,.25),inset 0 -1px 1px rgba(0,0,0,.36),0 18px 48px rgba(0,0,0,.35);
  --widget-glass:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.02) 48%,rgba(0,0,0,.22));
  --widget-rim:rgba(255,255,255,.14);
  --widget-shadow:inset 0 1px 1px rgba(255,255,255,.22),inset 0 -1px 1px rgba(0,0,0,.35),0 5px 16px rgba(0,0,0,.28);
  --reference-panel:linear-gradient(145deg,#f5f9ff45,#c5d5f422 55%,#8eafda20);
  --reference-panel-rim:rgba(241,247,255,.44);
  --reference-panel-shadow:inset 0 1px 1px rgba(255,255,255,.6),inset 0 -1px 1px rgba(194,217,255,.19),0 22px 60px rgba(0,0,0,.4);
  --reference-control:radial-gradient(90% 100% at 45% 0,rgba(255,255,255,.36),transparent 78%),linear-gradient(135deg,rgba(215,230,250,.282),rgba(120,141,167,.208) 58%,rgba(216,233,255,.22));
  --reference-control-rim:rgba(231,242,255,.56);
  --reference-control-shadow:inset 0 1px 1px #fff,0 6px 20px rgba(0,0,0,.333);
  --reference-field:linear-gradient(130deg,rgba(255,255,255,.208),rgba(191,210,244,.11) 48%,rgba(255,255,255,.08));
  --reference-field-shadow:inset 0 1px 1px rgba(255,255,255,.627),inset 0 -1px 1px rgba(255,255,255,.11),0 12px 32px rgba(0,0,0,.333);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) body { background:var(--reference-backdrop); }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) body::before { opacity:0; }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .desktop-shell {
  background:var(--reference-shell);border-color:var(--app-rim);box-shadow:var(--app-shadow);
  -webkit-backdrop-filter:blur(28px) saturate(185%);backdrop-filter:blur(28px) saturate(185%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .sidebar {
  background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.015) 55%,rgba(0,0,0,.18)),rgba(8,10,14,.28);
  border-right-color:var(--line);box-shadow:inset 0 1px rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(36px) saturate(160%);backdrop-filter:blur(36px) saturate(160%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(.liquid,.voice-call-bar,.voice-control:not(.voice-end),.voice-select-trigger,.wallet-chat-action,.wallet-checkout-link,.third-party-preview-arrow,.chat-item.active) {
  background:var(--widget-glass);border-color:var(--widget-rim);box-shadow:var(--widget-shadow);
  -webkit-backdrop-filter:blur(18px) saturate(165%);backdrop-filter:blur(18px) saturate(165%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .composer.liquid {
  background:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.02));border-color:var(--widget-rim);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.22),0 8px 22px rgba(0,0,0,.25);
  -webkit-backdrop-filter:blur(20px) saturate(150%);backdrop-filter:blur(20px) saturate(150%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(.wallet-chat-card,.third-party-preview,.dictation-panel,.voice-call-panel,.voice-settings-panel,.voice-select-menu,.spotlight-panel,.composer-mentions,.modal.file-preview-modal,.result-list,.agent-bubble:not(.agent-inline-media),.account-menu,.account-plan-flyout,.browser-content,.modal.settings-modal) {
  background:var(--reference-panel);border-color:var(--reference-panel-rim);box-shadow:var(--reference-panel-shadow);
  -webkit-backdrop-filter:blur(28px) saturate(185%);backdrop-filter:blur(28px) saturate(185%);
}

/* Dark-only Spotlight search: the same black, colorful liquid-glass material as
   the agent profile sheet, without changing bright or glacial appearance. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .spotlight-backdrop {
  background:rgba(1,4,10,.42);
  -webkit-backdrop-filter:blur(12px) saturate(145%);
  backdrop-filter:blur(12px) saturate(145%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .spotlight-panel {
  --spotlight-ink:#f5f7fc;
  --spotlight-muted:#aeb9cb;
  isolation:isolate;
  overflow:hidden;
  border-color:rgba(220,232,250,.38);
  background:
    radial-gradient(115% 78% at 7% -16%,rgba(235,239,247,.16),transparent 50%),
    radial-gradient(70% 65% at -6% 104%,rgba(62,139,132,.045),transparent 64%),
    radial-gradient(58% 70% at 84% 116%,rgba(126,80,146,.035),transparent 68%),
    linear-gradient(145deg,rgba(14,15,18,.9),rgba(0,0,2,.94) 56%,rgba(0,1,2,.9));
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,.5),
    inset 1px 0 1px rgba(255,255,255,.12),
    inset 0 -1px 1px rgba(0,0,0,.48),
    0 34px 92px rgba(0,0,0,.58),
    0 0 0 1px rgba(153,182,224,.1);
  -webkit-backdrop-filter:blur(44px) saturate(115%) brightness(72%);
  backdrop-filter:blur(44px) saturate(115%) brightness(72%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .spotlight-panel::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:
    linear-gradient(112deg,rgba(255,255,255,.11),transparent 23% 70%,rgba(255,255,255,.035)),
    radial-gradient(120% 32% at 50% 0,rgba(255,255,255,.16),transparent 70%);
  opacity:.86;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .spotlight-field {
  border-color:rgba(225,237,253,.46);
  background:
    radial-gradient(110% 125% at 14% -45%,rgba(255,255,255,.2),transparent 63%),
    linear-gradient(135deg,rgba(67,70,78,.22),rgba(14,16,21,.28) 54%,rgba(2,3,6,.38));
  box-shadow:inset 0 1px 1px rgba(255,255,255,.36),inset 0 -1px 1px rgba(0,0,0,.34),0 8px 24px rgba(0,0,0,.2);
  -webkit-backdrop-filter:blur(24px) saturate(115%) brightness(78%);
  backdrop-filter:blur(24px) saturate(115%) brightness(78%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .spotlight-close {
  border-color:rgba(226,237,253,.38);
  background:radial-gradient(circle at 28% 12%,rgba(255,255,255,.22),transparent 58%),rgba(17,23,34,.34);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.3),0 5px 16px rgba(0,0,0,.26);
  -webkit-backdrop-filter:blur(18px) saturate(175%);
  backdrop-filter:blur(18px) saturate(175%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .spotlight-result:is(:hover,.active,:focus-visible) {
  border-color:rgba(226,238,255,.43);
  background:
    radial-gradient(100% 125% at 8% -35%,rgba(255,255,255,.2),transparent 62%),
    linear-gradient(135deg,rgba(72,75,84,.23),rgba(16,18,23,.3) 58%,rgba(2,3,6,.36));
  box-shadow:inset 0 1px 1px rgba(255,255,255,.32),inset 0 -1px rgba(0,0,0,.25),0 7px 18px rgba(0,0,0,.18);
  -webkit-backdrop-filter:blur(20px) saturate(115%) brightness(78%);
  backdrop-filter:blur(20px) saturate(115%) brightness(78%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .message.user .bubble {
  background:linear-gradient(160deg,rgba(255,255,255,.78) 0%,rgba(255,255,255,.52) 38%,rgba(230,242,255,.42) 72%,rgba(255,255,255,.58) 100%),rgba(255,255,255,.48);
  color:#15283c;border-color:rgba(255,255,255,.55);
  box-shadow:inset 0 1px 1.5px rgba(255,255,255,.72),inset 0 -1px 1px rgba(255,255,255,.1),inset 1px 0 1px rgba(255,255,255,.18),0 14px 36px rgba(0,0,0,.32);
  -webkit-backdrop-filter:blur(40px) saturate(200%);backdrop-filter:blur(40px) saturate(200%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(.selector-option.selected,.selector-option:hover,.chat-item:hover) { background:rgba(255,255,255,.09); }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(.primary-btn,.live-checkout .checkout-approve) { background:#eceef5;color:#0b1018; }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(.modal-backdrop,.settings-layer .modal-backdrop) { background:rgba(0,0,0,.3); }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal {
  --settings-ink:#f7f9ff;--settings-muted:#b8c0cd;--settings-symbol:#eceef5;--settings-line:rgba(241,247,255,.22);
  --settings-surface:var(--widget-glass);--settings-control:var(--reference-control);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal::before { background:none; }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal::after { box-shadow:none; }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .settings-rail { background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.015) 55%,rgba(0,0,0,.18)),rgba(8,10,14,.28);border-color:var(--settings-line);box-shadow:inset 0 1px rgba(255,255,255,.12); }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .settings-content { background:transparent; }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal :is(.settings-nav-item.active,.settings-close,.settings-section-icon,.settings-segment,.settings-billing-channel,.settings-switch,.settings-language,.wallet-settings-item,.settings-segment-thumb,.settings-billing-channel-thumb,.settings-switch i) {
  background:var(--reference-control);border-color:var(--reference-control-rim);box-shadow:var(--reference-control-shadow);
  -webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(.settings-search,.vault-search,.vault-form input,.vault-form textarea,.crossmint-registration input,.checkout-inputs input:not([type=checkbox]),.checkout-inputs textarea,.checkout-inputs select,.founder-editor input,.founder-editor textarea,.founder-editor select) {
  background:var(--reference-field);border-color:rgba(237,245,255,.5);box-shadow:var(--reference-field-shadow);
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(.vault-form,.vault-list,.vault-tabs) { background:var(--widget-glass);border-color:var(--widget-rim); }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .vault-tabs .vault-tab-indicator { background:var(--reference-control);box-shadow:var(--reference-control-shadow); }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .founder-profile { --founder-line:var(--reference-panel-rim); }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .founder-avatar { background:var(--widget-glass);box-shadow:var(--widget-shadow); }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .founder-profile .founder-icon-action { background:var(--reference-control);border-color:var(--reference-control-rim);box-shadow:var(--reference-control-shadow);-webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%); }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(.focus-ring,input,.founder-profile button,.founder-profile a):focus-visible { outline-color:#eceef5; }

/* A light glass lens over the dark product profile. Scope the full palette to the popover. */
:root:not([data-theme="bright"], [data-theme="glacial"]) #profile-forecast-assumptions {
  --forecast-ink:#142437;
  --forecast-secondary:#374b61;
  --forecast-separator:#29455e33;
  --forecast-control-glass:linear-gradient(155deg, #ffffffdb, #eff6fc7a 64%, #cfdee859);
  --forecast-dark-glass:
    radial-gradient(ellipse at 15% -32%, #e5f0ff30, transparent 68%),
    linear-gradient(150deg, #24303ce0, #0b111ae8 62%, #080e17dd);
  --forecast-dark-rim:#273747a3;
  --forecast-dark-shadow:inset 0 1px 1px #f3f8ff63, inset 0 -1px 1px #070c15ad, 0 5px 15px #171f322b;
  color:var(--forecast-ink);
  color-scheme:light;
  border-color:#ffffffb8;
  background:
    radial-gradient(ellipse at 12% -18%, #ffffffb8, transparent 64%),
    linear-gradient(145deg, #f8fcffd9, #eaf2fac7 58%, #dce7f2b8);
  box-shadow:inset 0 1px 1px #fffffff0, inset 0 -1px 1px #ffffff85, 0 16px 42px #050c1c59;
  -webkit-backdrop-filter:blur(21px) saturate(130%);
  backdrop-filter:blur(21px) saturate(130%);
  scrollbar-color:#546d8685 transparent;

  & .forecast-table-card {
    -webkit-backdrop-filter:blur(14px) saturate(125%);
    backdrop-filter:blur(14px) saturate(125%);
    scrollbar-color:#9eb0c6a3 transparent;
    & tbody tr > * { border-top-color:#b8cce83d; }
  }

  & :is(.forecast-editor, .forecast-input) {
    border-top-color:var(--forecast-separator);
  }

  & :is(.forecast-table-card, .forecast-editor input, .forecast-disclosure) {
    color:#f4f8ff;
    color-scheme:dark;
    background:var(--forecast-dark-glass);
    border-color:var(--forecast-dark-rim);
    box-shadow:var(--forecast-dark-shadow);
  }

  & :is(.forecast-editor small, .forecast-input p) { color:var(--forecast-secondary); }
  & .forecast-input a { color:#194c74; text-underline-offset:2px; }
  & .forecast-input summary { border-radius:8px; }
  & .forecast-editor input:invalid { border-color:#9b3e35; }
  & :is(input, summary, a):focus-visible {
    outline:2px solid #25547b;
    outline-offset:2px;
  }
}

@media (prefers-reduced-transparency:reduce) {
  :root:not([data-theme="bright"], [data-theme="glacial"]) #profile-forecast-assumptions {
    background:#e9f0f7;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    & :is(.forecast-table-card, .forecast-editor input, .forecast-disclosure) {
      background:#1d2836;
      -webkit-backdrop-filter:none;
      backdrop-filter:none;
    }
  }
}

:root:not([data-theme="bright"]):not([data-theme="glacial"]) .settings-search:focus-within { border-color:rgba(255,255,255,.75);box-shadow:var(--reference-field-shadow),0 0 0 3px rgba(255,255,255,.1); }
@media (prefers-reduced-transparency:reduce) {
  :root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(.wallet-chat-card,.third-party-preview,.dictation-panel,.voice-call-panel,.voice-settings-panel,.voice-select-menu,.spotlight-panel,.composer-mentions,.modal.settings-modal,.modal.file-preview-modal,.agent-bubble:not(.agent-inline-media),.account-menu,.account-plan-flyout,.browser-content) { background:#20252f;-webkit-backdrop-filter:none;backdrop-filter:none; }
}

/* Keep Spotlight neutral black over the app's blue shell. This is deliberately
   the final dark-theme rule so the shared reference-panel material cannot win. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .spotlight-panel {
  background:
    linear-gradient(118deg,rgba(255,255,255,.075),transparent 24% 74%,rgba(255,255,255,.025)),
    linear-gradient(150deg,rgba(15,16,18,.96),rgba(1,1,2,.975) 54%,rgba(7,8,10,.965)) !important;
  border-color:rgba(230,236,246,.34) !important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.38),inset 0 -1px 1px rgba(0,0,0,.72),0 34px 92px rgba(0,0,0,.72) !important;
  -webkit-backdrop-filter:blur(42px) saturate(55%) brightness(46%) !important;
  backdrop-filter:blur(42px) saturate(55%) brightness(46%) !important;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .spotlight-field {
  background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(8,9,11,.64) 52%,rgba(0,0,0,.72)) !important;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .spotlight-result:is(:hover,.active,:focus-visible) {
  background:linear-gradient(145deg,rgba(255,255,255,.095),rgba(10,11,13,.62) 58%,rgba(0,0,0,.68)) !important;
}

/* Settings actions use a bright glass treatment in dark appearance, including icon-only controls. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel button:not(.goal-scope-trigger,.goals-founder-select):not(.settings-switch):not([role="switch"]):not([role="tab"]):not([role="option"]):not(.settings-segment button):not(.settings-billing-channel button):not(.vault-tabs button):not(.founder-tabs button):not(.settings-plan-symbol):not(.settings-language):not(.tools-directory-filter) {
  color:#14243a;
  background:radial-gradient(120% 145% at 18% 0,rgba(255,255,255,.98),rgba(245,249,255,.9) 42%,rgba(205,221,245,.78) 100%),rgba(231,240,253,.88);
  border-color:rgba(255,255,255,.92);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.98),inset 0 -1px 1px rgba(136,166,205,.28),0 7px 20px rgba(0,0,0,.28),0 0 0 1px rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(22px) saturate(185%);backdrop-filter:blur(22px) saturate(185%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel button:not(.goal-scope-trigger,.goals-founder-select):not(.settings-switch):not([role="switch"]):not([role="tab"]):not([role="option"]):not(.settings-segment button):not(.settings-billing-channel button):not(.vault-tabs button):not(.founder-tabs button):not(.settings-plan-symbol):not(.settings-language):not(.tools-directory-filter):hover:not(:disabled) {
  filter:brightness(1.06);transform:translateY(-1px);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel button:not(.goal-scope-trigger,.goals-founder-select):not(.settings-switch):not([role="switch"]):not([role="tab"]):not([role="option"]):not(.settings-segment button):not(.settings-billing-channel button):not(.vault-tabs button):not(.founder-tabs button):not(.settings-plan-symbol):not(.settings-language):not(.tools-directory-filter):active:not(:disabled) {
  transform:translateY(0);filter:brightness(.98);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel button:not(.goal-scope-trigger,.goals-founder-select):not(.settings-switch):not([role="switch"]):not([role="tab"]):not([role="option"]):not(.settings-segment button):not(.settings-billing-channel button):not(.vault-tabs button):not(.founder-tabs button):not(.settings-plan-symbol):not(.settings-language):not(.tools-directory-filter):disabled {
  color:rgba(20,36,58,.58);filter:saturate(.72);
}
@media (prefers-reduced-transparency:reduce) {
  :root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel button:not(.goal-scope-trigger,.goals-founder-select):not(.settings-switch):not([role="switch"]):not([role="tab"]):not([role="option"]):not(.settings-segment button):not(.settings-billing-channel button):not(.vault-tabs button):not(.founder-tabs button):not(.settings-plan-symbol):not(.settings-language):not(.tools-directory-filter) { background:#e9f0fa; }
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal .settings-close {
  color:#fff;background:radial-gradient(120% 145% at 18% 0,rgba(255,255,255,.98),rgba(245,249,255,.9) 42%,rgba(205,221,245,.78) 100%),rgba(231,240,253,.88);
  border-color:rgba(255,255,255,.92);box-shadow:inset 0 1px 1px rgba(255,255,255,.98),inset 0 -1px 1px rgba(136,166,205,.28),0 7px 20px rgba(0,0,0,.28);
  -webkit-backdrop-filter:blur(22px) saturate(185%);backdrop-filter:blur(22px) saturate(185%);
}

/* Popup close controls use a white X in dark appearance. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(
  .modal-close,
  .profile-close,
  .agent-profile-picker-close,
  .product-media-viewer-close,
  .saved-products-close,
  .upgrade-close,
  .vault-card-close,
  .settings-close
) {
  color: #fff;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(
  .modal-close,
  .profile-close,
  .agent-profile-picker-close,
  .product-media-viewer-close,
  .saved-products-close,
  .upgrade-close,
  .vault-card-close,
  .settings-close
) svg,
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(
  .modal-close,
  .profile-close,
  .agent-profile-picker-close,
  .product-media-viewer-close,
  .saved-products-close,
  .upgrade-close,
  .vault-card-close,
  .settings-close
) svg path {
  color: #fff;
  stroke: currentColor;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal .settings-close:hover { filter:brightness(1.06);transform:translateY(-1px); }

/* Keep the artwork visible through the information layered onto each product. */
:is(#discovery-card, .ob-product-hero) :is(.discovery-badge, .discovery-info, .discovery-meta > span, .discovery-features > span, .discovery-details) {
  color: #14263b;
  background: linear-gradient(155deg, rgba(255,255,255,.89), rgba(240,248,255,.71) 42%, rgba(214,233,251,.75));
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 2px rgba(94,129,162,.28), 0 3px 12px rgba(7,21,40,.18);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
#discovery-card .discovery-details :is(strong, small) { color: inherit; }
#discovery-card .discovery-details > svg :is(rect, circle:last-child) { fill: #f2f8ff; }

/* Contact, card, and login editors use the Product Profile's dark liquid-glass
   material in dark appearance only. Bright/glacial rules remain untouched. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .vault-card-overlay {
  background:rgba(1,6,14,.58);
  -webkit-backdrop-filter:blur(34px) saturate(165%);
  backdrop-filter:blur(34px) saturate(165%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .vault-card-dialog {
  color:#f7fbff;
  border-color:var(--app-rim);
  background:
    radial-gradient(90% 64% at 4% -8%,rgba(208,229,255,.12),transparent 72%),
    radial-gradient(70% 58% at 100% 105%,rgba(103,143,199,.08),transparent 70%),
    var(--reference-shell);
  box-shadow:var(--app-shadow),0 34px 100px rgba(0,0,0,.56);
  -webkit-backdrop-filter:blur(42px) saturate(175%);
  backdrop-filter:blur(42px) saturate(175%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .vault-card-dialog > header,
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .vault-card-dialog .vault-card-footer {
  border-color:var(--line-strong);
  background:linear-gradient(160deg,rgba(255,255,255,.085),rgba(255,255,255,.018) 58%,rgba(0,0,0,.14));
  box-shadow:inset 0 1px rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(30px) saturate(170%);
  backdrop-filter:blur(30px) saturate(170%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .vault-card-dialog :is(input:not([type="file"]),textarea,select) {
  color:#f7fbff;
  border-color:rgba(237,245,255,.5);
  background:var(--reference-field);
  box-shadow:var(--reference-field-shadow);
  -webkit-backdrop-filter:blur(20px) saturate(155%);
  backdrop-filter:blur(20px) saturate(155%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .vault-card-dialog :is(input,textarea)::placeholder {
  color:rgba(213,226,244,.48);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .vault-card-dialog :is(label,.vault-card-divider,.vault-card-hints small,.vault-card-footer p) {
  color:#b9c7da;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .vault-card-dialog :is(.vault-card-tools .settings-secondary,.vault-card-address-toggle,.vault-card-footer .settings-secondary) {
  color:#f7fbff;
  border-color:var(--reference-control-rim);
  background:var(--reference-control);
  box-shadow:var(--reference-control-shadow);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  backdrop-filter:blur(20px) saturate(160%);
}

/* Let profile details and media labels sit directly on the parent dark glass.
   Product and brand profiles share these rails; their pills remain intact. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.profile-modal.product-profile-modal :is(
  .product-profile-bio,
  .product-profile-media-title
) {
  border-color:transparent;
  background:transparent;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}

/* Compact detail scrollers use the same bright liquid glass as profile pills. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.product-profile-modal .product-profile-pills-rail.has-overflow {
  grid-template-columns:minmax(0,1fr);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.product-profile-modal .product-profile-pills-rail :is(
  .product-profile-pills-prev,
  .product-profile-pills-next
) {
  width:28px;
  height:28px;
  border-color:rgba(255,255,255,.78);
  background:radial-gradient(120% 145% at 16% 0,rgba(255,255,255,.98),rgba(247,250,255,.91) 44%,rgba(207,224,247,.82) 100%);
  box-shadow:inset 0 1px rgba(255,255,255,.98),inset 0 -1px rgba(91,119,153,.12),0 5px 14px rgba(0,0,0,.14);
  color:#172b45;
  -webkit-backdrop-filter:blur(18px) saturate(175%);
  backdrop-filter:blur(18px) saturate(175%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.product-profile-modal .product-profile-pills-rail :is(
  .product-profile-pills-prev,
  .product-profile-pills-next
):disabled {
  opacity:.72;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.product-profile-modal .product-profile-pills-rail :is(
  .product-profile-pills-prev,
  .product-profile-pills-next
) svg {
  width:12px;
  height:12px;
}

/* Profile-kind badges use dark, see-through iOS glass in dark appearance. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.product-profile-modal .profile-topline > span:first-child {
  color:rgba(247,251,255,.96);
  border-color:var(--widget-rim);
  background:var(--widget-glass);
  box-shadow:var(--widget-shadow);
  -webkit-backdrop-filter:blur(20px) saturate(165%);
  backdrop-filter:blur(20px) saturate(165%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.product-profile-modal .profile-topline > span:first-child svg {
  color:currentColor;
  fill:currentColor;
}

/* Product and brand profile close controls match the transparent shell glass. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.product-profile-modal > .profile-close {
  color:rgba(247,251,255,.96);
  border-color:var(--widget-rim);
  background:var(--widget-glass);
  box-shadow:var(--widget-shadow);
  -webkit-backdrop-filter:blur(20px) saturate(165%);
  backdrop-filter:blur(20px) saturate(165%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.product-profile-modal > .profile-close:is(:hover,:focus-visible) {
  border-color:rgba(238,246,255,.26);
  background:linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.035) 48%,rgba(0,0,0,.2));
}

/* Usage reset date matches the transparent dark iOS widget material. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .usage-card .usage-reset-pill {
  color:rgba(247,251,255,.94)!important;
  border-color:var(--widget-rim);
  background:var(--widget-glass);
  text-shadow:none;
  box-shadow:var(--widget-shadow);
  -webkit-backdrop-filter:blur(20px) saturate(165%);
  backdrop-filter:blur(20px) saturate(165%);
}

/* Search copy stays crisp and legible on every dark liquid-glass field. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) input[type="search"] {
  color:#f8fbff!important;
  caret-color:#fff;
  -webkit-text-fill-color:#f8fbff;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) input[type="search"]::placeholder {
  color:rgba(245,250,255,.86)!important;
  -webkit-text-fill-color:rgba(245,250,255,.86);
  opacity:1!important;
}

/* Settings uses the profile dialog's dark shell, not the pale raised panel. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal {
  border-color:var(--app-rim);
  background:radial-gradient(90% 64% at 4% -8%,rgba(208,229,255,.12),transparent 72%),radial-gradient(70% 58% at 100% 105%,rgba(103,143,199,.08),transparent 70%),var(--reference-shell);
  box-shadow:var(--app-shadow),0 34px 100px rgba(0,0,0,.56);
  -webkit-backdrop-filter:blur(42px) saturate(175%);
  backdrop-filter:blur(42px) saturate(175%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .settings-layer .modal.settings-modal::before,
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .settings-layer .modal.settings-modal::after {
  background:none;box-shadow:none;mix-blend-mode:normal;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal :is(.settings-rail,.settings-content) {
  background:transparent;box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
@media (prefers-reduced-transparency:reduce) {
  :root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal { background:#10141c;-webkit-backdrop-filter:none;backdrop-filter:none; }
}

/* Broad, diffused reflections across the complete dark settings sheet. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal {
  background:
    radial-gradient(ellipse 48% 30% at 66% 30%,rgba(181,193,213,.19),transparent 76%),
    radial-gradient(ellipse 58% 16% at 100% 48%,rgba(224,229,239,.24),transparent 78%),
    radial-gradient(ellipse 43% 23% at 31% 67%,rgba(172,184,204,.15),transparent 80%),
    radial-gradient(90% 64% at 4% -8%,rgba(208,229,255,.12),transparent 72%),
    radial-gradient(70% 58% at 100% 105%,rgba(103,143,199,.08),transparent 70%),
    var(--reference-shell);
}
@media (prefers-reduced-transparency:reduce) {
  :root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal { background:#10141c; }
}

/* Agent-authored text and connector cards use one translucent black liquid-glass
   material in dark appearance. The layered highlights remain visible without
   turning the surface into an opaque charcoal card. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(
  .conversation-lane .agent-bubble[data-agent-role]:not(.agent-inline-media),
  .conversation-lane .mcp-connector-card,
  .message.agent .bubble,
  .discovery-chat-bubble.is-agent,
  .discovery-score-message
) {
  color:#f2f6fc;
  border:1px solid rgba(235,244,255,.22);
  background:
    radial-gradient(130% 115% at 7% -24%,rgba(255,255,255,.18),transparent 45%),
    radial-gradient(90% 85% at 95% 112%,rgba(104,145,199,.09),transparent 64%),
    linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.018) 46%,rgba(0,0,0,.24)),
    rgba(4,8,14,.46);
  box-shadow:
    inset 0 1px 1.5px rgba(255,255,255,.3),
    inset 0 -1px 1px rgba(0,0,0,.48),
    0 16px 38px rgba(0,0,0,.3);
  text-shadow:0 1px 1px rgba(0,0,0,.34);
  -webkit-backdrop-filter:blur(34px) saturate(175%);
  backdrop-filter:blur(34px) saturate(175%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .conversation-lane .agent-bubble[data-agent-role]:not(.agent-choice-card):not(.agent-inline-media) {
  padding:12px 16px;
  border-radius:24px;
  font-size:15px;
  line-height:1.45;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .conversation-lane .mcp-connector-note,
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .conversation-lane .mcp-connector-status {
  color:rgba(218,228,242,.72);
}

/* Hover previews use the same smoked, see-through Apple-style glass in dark
   appearance instead of the older opaque blue/charcoal panels. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(
  .third-party-preview,
  .desktop-shell:is(.sidebar-collapsed,.sidebar-resize-compact,.browser-open):not(.browser-fullscreen) .chat-hover-preview
) {
  color:#f3f7fd;
  border-color:rgba(235,244,255,.24);
  background:
    radial-gradient(125% 105% at 8% -16%,rgba(255,255,255,.2),transparent 47%),
    radial-gradient(90% 80% at 100% 112%,rgba(108,150,207,.1),transparent 66%),
    linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.018) 48%,rgba(0,0,0,.28)),
    rgba(3,7,13,.5);
  box-shadow:
    inset 0 1px 1.5px rgba(255,255,255,.33),
    inset 0 -1px 1px rgba(0,0,0,.5),
    0 18px 44px rgba(0,0,0,.38);
  -webkit-backdrop-filter:blur(36px) saturate(180%);
  backdrop-filter:blur(36px) saturate(180%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .third-party-preview-description,
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .third-party-preview-link,
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .chat-hover-preview small {
  color:rgba(220,230,244,.78);
}

/* Dark glass surfaces for profile and connection dialogs. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(
  .modal.profile-modal.product-profile-modal,
  #modal.mcp-connect-modal
) {
  color:#f7f9fd;
  border-color:rgba(228,236,248,.27);
  background:
    radial-gradient(112% 83% at 7% -12%,rgba(232,239,250,.2),transparent 59%),
    radial-gradient(78% 76% at 100% 102%,rgba(115,132,155,.09),transparent 72%),
    linear-gradient(139deg,rgba(37,42,51,.91),rgba(23,28,37,.92) 53%,rgba(5,10,17,.96));
  box-shadow:inset 0 1px 1px rgba(255,255,255,.28),inset 0 -1px 1px rgba(0,0,0,.48),0 34px 96px rgba(0,0,0,.48);
  -webkit-backdrop-filter:blur(42px) saturate(155%);
  backdrop-filter:blur(42px) saturate(155%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) #modal.mcp-connect-modal {
  background:
    radial-gradient(105% 75% at 9% -14%,rgba(224,236,250,.10),transparent 60%),
    linear-gradient(139deg,rgba(8,11,17,.57),rgba(6,9,14,.49) 54%,rgba(2,5,10,.69));
  -webkit-backdrop-filter:blur(9px) saturate(120%);
  backdrop-filter:blur(9px) saturate(120%);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal-backdrop:has(+ #modal.mcp-connect-modal) {
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) #modal.mcp-connect-modal::before {
  display:none;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) #modal.mcp-connect-modal .mcp-consent-close {
  border-color:var(--widget-rim);
  background:var(--widget-glass);
  box-shadow:var(--widget-shadow);
  -webkit-backdrop-filter:blur(20px) saturate(165%);
  backdrop-filter:blur(20px) saturate(165%);
}
@media (prefers-reduced-transparency:reduce) {
  :root:not([data-theme="bright"]):not([data-theme="glacial"]) :is(.modal.profile-modal.product-profile-modal,#modal.mcp-connect-modal) {
    background:#171b23;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
}

/* Account footer actions are luminous text controls in dark mode, not pills. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .founder-account-actions > button {
  min-width:0;
  min-height:26px;
  padding:3px 2px!important;
  border:0!important;
  border-radius:0!important;
  color:rgba(247,250,255,.94)!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:1;
  text-shadow:0 1px 1px rgba(0,0,0,.58),0 0 13px rgba(218,234,255,.22);
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .founder-account-actions > button::after {
  display:none!important;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .founder-account-actions > button:is(:hover,:focus-visible) {
  color:#fff!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:drop-shadow(0 0 7px rgba(222,237,255,.38));
  transform:none;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .founder-account-actions > button::before {
  color:rgba(247,250,255,.9);
  filter:drop-shadow(0 0 5px rgba(220,236,255,.22));
}

:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .goals-founder-account-menu {
  color:#f7fbff!important;
  border-color:rgba(226,239,255,.3)!important;
  background:
    radial-gradient(ellipse 90% 90% at 10% 0%,rgba(255,255,255,.16),transparent 64%),
    linear-gradient(145deg,rgba(30,36,45,.9),rgba(2,5,10,.9) 58%,rgba(12,18,27,.88))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.28),0 18px 38px rgba(0,0,0,.48)!important;
  -webkit-backdrop-filter:blur(30px) saturate(140%) brightness(62%)!important;
  backdrop-filter:blur(30px) saturate(140%) brightness(62%)!important;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .goals-founder-account-option,
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .goals-founder-account-login { color:#f7fbff!important; }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .goals-founder-account-option:is(:hover,:focus-visible),
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .goals-founder-account-option.selected,
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .goals-founder-account-login:is(:hover,:focus-visible) { background:rgba(255,255,255,.1)!important; }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .goals-founder-account-copy small { color:rgba(222,234,248,.62)!important; }
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel .goals-founder-account-login {
  color:#f7fbff!important;
  border:0!important;
  border-top:1px solid rgba(226,239,255,.16)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.08)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}

/* Share a single dark glass surface across the Goals selectors. The founder
   wrapper paints the surface behind both the transparent trigger and profile link. */
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel :is(.goals-founder-preview, button.goal-scope-trigger) {
  color:#f7fbff!important;
  border-color:rgba(226,239,255,.3)!important;
  background:
    radial-gradient(ellipse 86% 150% at 12% -38%,rgba(255,255,255,.18),transparent 60%),
    radial-gradient(ellipse 76% 110% at 100% 120%,rgba(89,120,164,.12),transparent 68%),
    linear-gradient(145deg,rgba(31,36,44,.76),rgba(2,4,8,.82) 56%,rgba(11,15,22,.78))!important;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.3),
    inset 0 -1px 1px rgba(0,0,0,.68),
    0 9px 26px rgba(0,0,0,.4),
    0 0 0 1px rgba(255,255,255,.05)!important;
  -webkit-backdrop-filter:blur(28px) saturate(135%) brightness(58%)!important;
  backdrop-filter:blur(28px) saturate(135%) brightness(58%)!important;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel :is(
  .goals-founder-preview:is(:hover,:focus-within,:has(> .goals-founder-select[aria-expanded="true"])),
  button.goal-scope-trigger:is(:hover,:focus-visible,[aria-expanded="true"])
) {
  color:#fff!important;
  border-color:rgba(238,247,255,.52)!important;
  background:
    radial-gradient(ellipse 86% 150% at 12% -38%,rgba(255,255,255,.24),transparent 60%),
    radial-gradient(ellipse 76% 110% at 100% 120%,rgba(103,143,198,.16),transparent 68%),
    linear-gradient(145deg,rgba(39,46,57,.82),rgba(3,6,11,.86) 56%,rgba(14,20,29,.82))!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.4),0 12px 30px rgba(0,0,0,.46)!important;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel :is(.goal-scope-trigger small,.goals-founder-preview-label) {
  color:rgba(222,234,248,.62)!important;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .modal.settings-modal #settings-panel :is(
  .goal-scope-trigger strong, .goal-scope-trigger .chevron,
  .goals-founder-preview-copy strong, .goals-founder-preview-chevron
) {
  color:#f7fbff!important;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .glass-select-menu:is([aria-label="Select brand"],[aria-label="Select product"]) {
  color:#f7fbff!important;
  border-color:rgba(226,239,255,.3)!important;
  background:
    radial-gradient(ellipse 86% 130% at 12% -28%,rgba(255,255,255,.16),transparent 60%),
    linear-gradient(145deg,rgba(28,34,43,.93),rgba(3,6,11,.95) 56%,rgba(13,18,27,.94))!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.3),0 18px 42px rgba(0,0,0,.58)!important;
  -webkit-backdrop-filter:blur(34px) saturate(135%) brightness(62%)!important;
  backdrop-filter:blur(34px) saturate(135%) brightness(62%)!important;
}
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .glass-select-menu:is([aria-label="Select brand"],[aria-label="Select product"]) .glass-select-option:is(:hover,:focus-visible),
:root:not([data-theme="bright"]):not([data-theme="glacial"]) .glass-select-menu:is([aria-label="Select brand"],[aria-label="Select product"]) .glass-select-option.is-selected {
  border-color:rgba(226,239,255,.2)!important;
  background:linear-gradient(120deg,rgba(255,255,255,.13),rgba(83,117,164,.09))!important;
}
