/* Material library: opt-in Luxe palette. Geometry and business controls stay intact. */
:root.luxe body.account-app.atelier-v2.champagne[data-view="materials"] {
  background-color:#0d0e11;
}

:root.luxe body.account-app.atelier-v2.champagne #panel-materials {
  --ml-text:#ece7de;
  --ml-muted:#b0a99c;
  --ml-line:rgba(228,207,158,.13);
  --ml-gold:#d5b77b;
  --ml-bg:transparent;
  --text:#ece7de;
  --text-2:#c7bfb1;
  --faint:#a29a8d;
  --gold-soft:#e8d09e;
  --surface:#161719;
  --line-2:rgba(228,207,158,.22);
  --ml-luxe-panel:linear-gradient(130deg,rgba(35,32,28,.87),rgba(19,21,25,.9));
  --ml-luxe-control:linear-gradient(180deg,rgba(255,244,216,.07),rgba(255,244,216,.025));
  color:var(--ml-text);
  color-scheme:dark;

  & .ml-list-header,
  & > [data-ml="collection"],
  & .ml-detail-shell {
    --ml-text:#ece7de; --ml-muted:#b0a99c; --ml-line:rgba(228,207,158,.13);
    --ml-gold:#d5b77b; --text:#ece7de; --text-2:#c7bfb1;
    --faint:#a29a8d; --gold-soft:#e8d09e; --surface:#161719;
    --line-2:rgba(228,207,158,.22); --line:rgba(228,207,158,.13);
    --gold:#d5b77b; --danger:#e7ab99; --sage:#adc8af;
    color:var(--ml-text);
    color-scheme:dark;
  }

  & .ml-list-header {
    background:linear-gradient(90deg,rgba(23,22,20,.91),rgba(18,19,22,.78) 70%,rgba(18,19,22,.48));
    border-bottom-color:var(--ml-line);
    box-shadow:0 1px 0 rgba(255,242,213,.025) inset;
  }
  & > [data-ml="collection"], & > [data-ml="creative"] {
    background:linear-gradient(180deg,rgba(12,14,17,.16),rgba(12,14,17,.42) 420px);
  }
  & .ml-list-brand {color:var(--ml-text)}
  & .ml-list-brand > span {
    color:#2c2110;
    background:linear-gradient(140deg,#f2ddae,#bb934e);
    box-shadow:0 1px 0 #fff5 inset;
  }
  & .ml-list-header .ml-tabs button {color:var(--text-2)}
  & .ml-list-header .ml-tabs button[aria-pressed="true"] {
    color:var(--gold-soft);
    border-color:#d5b77b42;
    background:linear-gradient(135deg,#d5b77b23,#d5b77b0a);
  }
  & .ml-list-header .ml-tabs button:hover:not([aria-pressed="true"]) {background:#d5b77b0d;color:var(--ml-text)}
  & .ml-list-header .ml-search {
    color:var(--ml-muted);
    background:linear-gradient(180deg,#101115d9,#17181bba);
    border-color:var(--ml-line);
    box-shadow:0 1px 3px #0004 inset;
  }
  /* The wrapper owns the field surface: avoid a second dark rectangle inside it. */
  & .ml-list-header .ml-search input {
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    color:var(--ml-text) !important;
  }
  & .ml-list-header .ml-search input::placeholder {color:#a29a8d !important}
  & .ml-list-header .ml-search:focus-within {
    border-color:#d5b77b99;
    box-shadow:0 0 0 3px #d5b77b16;
  }
  & .ml-list-filters {
    background:linear-gradient(120deg,rgba(34,31,26,.78),rgba(19,21,25,.77));
    border-color:var(--ml-line);
    box-shadow:0 1px 0 #fff4d506 inset;
  }
  & .ml-list-filters .ml-facet-panel {background:none}
  & .ml-list-filters .ml-facet-chip {
    color:var(--text-2);
    background:var(--ml-luxe-control);
    border-color:#ead4a514;
  }
  & .ml-list-filters .ml-facet-chip[aria-pressed="true"],
  & .ml-list-filters .ml-date-presets [aria-pressed="true"] {
    background:linear-gradient(135deg,#d5b77b28,#d5b77b0d);
    border-color:#d5b77b66;
    color:var(--gold-soft);
  }
  & .ml-list-filters .ml-facet-chip:hover:not(:disabled) {
    background:#d5b77b19;border-color:#d5b77b55;color:var(--ml-text);
  }
  & .ml-list-filters .ml-facet-chip > small,
  & .ml-list-filters .ml-facet-label,
  & .ml-sort-row > [data-ml="result-count"],
  & .ml-advanced-filters > summary,
  & .ml-advanced-filters > summary > span,
  & .ml-list-filters .ml-date-help,
  & .ml-overview-menu > summary,
  & .ml-active-filters,
  & [data-ml="collection"] > .ml-scope-note {color:var(--ml-muted)}
  & .ml-active-filters {border-color:var(--ml-line)}
  & .ml-list-filters .ml-facet-expand,
  & .ml-active-filters > button {color:var(--gold-soft)}
  & .ml-list-filters .ml-date-filter {background:#0d0e1233;border-color:var(--ml-line)}
  & :is(input,textarea,select) {color-scheme:dark}
  & :is(input,textarea)::placeholder {color:#a29a8d !important}
  & select option {background:#1b1b1f;color:#ece7de}

  & .ml-button,
  & .ml-list-header .ml-button,
  & .ml-list-filters .ml-button,
  & .ml-feed-extra .ml-button,
  & [data-ml="collection"] :is(.ml-empty,.ml-list-footer) .ml-button,
  & .ml-detail-shell .ml-button,
  & .ml-detail-shell .ml-trend-switch button,
  & .ml-source-shell .ml-source-metrics button {
    color:var(--text-2);background:var(--ml-luxe-control);border-color:var(--line-2);
    box-shadow:0 1px 0 #fff4d508 inset;
  }
  & .ml-button:hover:not(:disabled), & .ml-detail-shell .ml-button:hover:not(:disabled) {
    color:var(--ml-text);border-color:#d5b77b66;background:#d5b77b15;
  }
  & .ml-button.ml-primary,
  & .ml-detail-shell .ml-detail-actions > a[download],
  & .ml-source-shell .ml-source-download,
  & > .ml-access-state .ml-button {
    color:#2a200f;background:linear-gradient(135deg,#f1dca9,#bd9859);border-color:#e3c990;
  }
  & .ml-button.ml-primary:hover:not(:disabled),
  & .ml-detail-shell .ml-detail-actions > a[download]:hover,
  & .ml-source-shell .ml-source-download:hover:not(:disabled) {
    color:#241a0b;background:linear-gradient(135deg,#f5e5bd,#cdac70);
  }
  & .ml-danger {color:var(--danger,#e7ab99) !important}

  & .ml-feed-card {
    background:linear-gradient(150deg,rgba(32,30,27,.94),rgba(17,19,23,.96));
    border-color:#e4cf9e20;
    box-shadow:0 1px 0 #fff4d508 inset;
    backdrop-filter:none;
  }
  & .ml-feed-card:hover {border-color:#d5b77b55;box-shadow:0 5px 15px #0003}
  & .ml-feed-card .ml-cover {background:#141619}
  & .ml-feed-card .ml-cover-fallback {background:linear-gradient(145deg,#252521,#13161b);color:var(--ml-muted)}
  & .ml-feed-info, & .ml-feed-info time, & .ml-feed-sales,
  & .ml-feed-more > summary, & .ml-feed-extra {color:var(--ml-muted)}
  & .ml-feed-info strong, & .ml-feed-byline, & .ml-feed-sales b {color:var(--text-2)}
  & .ml-feed-info:hover strong {color:var(--gold-soft)}
  & .ml-feed-more {border-color:var(--ml-line)}
  & .ml-feed-avatar {background:#756344;color:#fff1d1}
  & .ml-feed-state.is-done {color:#abc5ad}
  & .ml-feed-state.is-running {color:#e8d09e}
  & .ml-feed-state:is(.is-failed,.is-partial) {color:#e4b38e}
  & .ml-feed-tools .ml-icon-button {background:#171819d9;backdrop-filter:none}
  & .ml-feed-tools .is-selected {color:#f4d393;background:#3a3024ee}
  & .ml-feed-cover:hover .ml-feed-play {background:#8f703e;box-shadow:0 0 0 3px #e8d09e26}

  & .ml-overview-popover {
    background:linear-gradient(145deg,#24211dfa,#14171bfa);
    border-color:var(--line-2);box-shadow:0 12px 36px #0007;
  }
  & .ml-overview-popover .ml-stat,
  & .ml-overview-popover .ml-sales-overview,
  & [data-ml="collection"] .ml-empty,
  & [data-ml="collection"] .ml-skeleton,
  & > .ml-access-state {background:var(--ml-luxe-panel);border-color:var(--ml-line);color:var(--text-2)}
  & .ml-overview-popover .ml-sales-coverage {border-color:var(--ml-line)}
  & > .ml-access-state h3 {color:var(--ml-text)}
  & > .ml-access-state p {color:var(--ml-muted)}
  & > .ml-access-state .ml-kicker {color:var(--gold-soft)}
  & > .ml-notice {background:#3b2c1b9c;border-color:#e4b38e38;color:#ebc5a5}
  & [data-ml="collection"] .ml-skeleton i,
  & [data-ml="collection"] .ml-skeleton span {background:#e8d09e0d}

  & .ml-dialog, & .ml-detail-shell {
    background:linear-gradient(135deg,#25221ff5,#14171bfa) !important;
    border-color:#e4cf9e30 !important;
    color:var(--ml-text);
  }
  & .ml-dialog::backdrop {background:#050608b8;backdrop-filter:none}
  & .ml-detail-shell .ml-detail-info {background:transparent}
  & .ml-detail-shell .ml-dialog-head > .ml-icon-button {background:#2a2a2df5;color:var(--ml-text)}
  & .ml-detail-shell .ml-dialog-head > .ml-icon-button:hover {background:#39342b;color:var(--gold-soft)}
  & .ml-detail-shell .ml-detail-avatar {background:#756344;color:#fff1d1}
  & .ml-detail-shell .ml-detail-author-text strong {color:var(--ml-text)}
  & .ml-detail-shell .ml-detail-author-text > span,
  & .ml-detail-shell .ml-detail-times,
  & .ml-detail-shell .ml-detail-times > span:first-child,
  & .ml-detail-shell .ml-detail-tabbar button,
  & .ml-detail-shell .ml-help,
  & .ml-detail-shell .ml-section-heading > span,
  & .ml-detail-shell .ml-detail-metrics small,
  & .ml-detail-shell .ml-read-fields dt,
  & .ml-detail-shell .ml-metadata-form label,
  & .ml-detail-shell .ml-product-compact > span,
  & .ml-detail-shell .ml-product-alternatives,
  & .ml-detail-shell .ml-product-candidate-help {color:var(--ml-muted)}
  & .ml-detail-shell .ml-section-heading h4,
  & .ml-detail-shell .ml-detail-metrics strong,
  & .ml-detail-shell .ml-product-compact strong,
  & .ml-detail-shell .ml-read-fields dd,
  & .ml-detail-shell .ml-read-description,
  & .ml-detail-shell .ml-analysis-block :is(h5,p,li),
  & .ml-detail-shell .ml-timeline-head strong {color:var(--text-2)}
  & .ml-detail-shell .ml-detail-tabbar button[aria-selected="true"] {color:var(--gold-soft);border-color:var(--ml-gold)}
  & .ml-detail-shell :is(.ml-detail-actions,.ml-detail-metrics,.ml-product-recognition,.ml-analysis-status,.ml-script,.ml-chart-card),
  & .ml-detail-shell .ml-timeline > li,
  & .ml-detail-shell .ml-timeline > li:last-child,
  & .ml-detail-shell .ml-detail-metrics > div {
    background:#16181caa;border-color:var(--ml-line);color:var(--text-2);
  }
  & .ml-detail-shell .ml-detail-sales-card {background:#d5b77b0c;border-color:var(--ml-line)}
  & .ml-detail-shell .ml-detail-sales-card strong {color:var(--gold-soft)}
  & .ml-detail-shell .ml-detail-sales-card :is(small,span),
  & .ml-detail-shell .ml-analysis-status p,
  & .ml-detail-shell .ml-chart-card > span {color:var(--ml-muted)}
  & .ml-detail-shell .ml-analysis-status strong {color:var(--text-2)}
  & .ml-detail-shell .ml-text-button,
  & .ml-detail-shell .ml-commerce-heading > span,
  & .ml-commerce-list a, & .ml-feed-extra .ml-commerce-list a {color:var(--gold-soft)}
  & .ml-commerce-links, & .ml-feed-extra .ml-commerce-links,
  & .ml-detail-shell .ml-commerce-links {background:#17191ba6;border-color:var(--ml-line)}
  & .ml-commerce-document, & .ml-feed-extra .ml-commerce-document,
  & .ml-detail-shell .ml-commerce-document {
    background:#d5b77b16;border-color:#d5b77b3d;color:var(--gold-soft);box-shadow:none;
  }
  & .ml-commerce-document:hover, & .ml-detail-shell .ml-commerce-document:hover {background:#d5b77b26}
  & .ml-detail-shell .ml-analysis-tags span {background:#d5b77b12;border-color:#d5b77b30;color:var(--gold-soft)}
  & .ml-detail-shell .ml-chart-line {stroke:var(--ml-gold)}
  & .ml-detail-shell .ml-chart-dots {fill:var(--gold-soft)}
  & .ml-detail-shell .ml-chart-grid line {stroke:#e4cf9e17}
  & .ml-detail-shell .ml-chart-grid text,
  & .ml-detail-shell .ml-chart-label {fill:var(--ml-muted)}

  & .ml-source-shell {
    --source-ink:#ece7de;--source-muted:#b0a99c;--source-faint:#a29a8d;--source-line:rgba(228,207,158,.13);
  }
  & .ml-source-shell .ml-source-ranges,
  & .ml-source-shell .ml-source-figure,
  & .ml-source-shell .ml-source-footer {background:#16181ccc;border-color:var(--ml-line)}
  & .ml-source-shell .ml-source-ranges button[aria-pressed="true"],
  & .ml-detail-shell .ml-trend-switch button[aria-pressed="true"],
  & .ml-detail-shell .ml-button.is-selected {
    background:#d5b77b20;color:var(--gold-soft);border-color:#d5b77b55;
  }
  /* Preserve metric-specific colors, which distinguish chart series. */
  & .ml-source-shell .ml-source-metrics button[aria-pressed="true"] {
    background:var(--metric-color);border-color:var(--metric-color);color:#fff;
  }
  & .ml-source-shell .ml-source-trade-box {background:#d5b77b0b}
  & .ml-source-shell .ml-source-trade > div {border-color:var(--ml-line)}
  & .ml-source-shell .ml-source-tax > span {background:#e4cf9e0d;color:var(--text-2)}
  & .ml-source-shell .ml-source-tax > span.is-group {background:#d5b77b1a;color:var(--gold-soft)}
  & .ml-source-shell .ml-source-tax > span.is-empty {background:#d9a06a16;color:#e4b38e}
  & .ml-source-shell .ml-source-notice {color:#e4b38e}
  & .ml-source-shell .ml-source-notice button {color:var(--gold-soft)}

  & :is(button,a,summary,input,select,textarea,[tabindex]):focus-visible {
    outline:2px solid var(--ml-gold);outline-offset:2px;
  }
  & :is(.ml-detail-scroll,[data-ml-facet-group="category"]) {scrollbar-color:#9b835347 transparent}
}
