/* Shared appearance tokens. Photos and illustrations keep their original colours. */
html {background-color:var(--market-paper)}
html[data-theme="light"] {color-scheme:light}
html[data-theme="dark"] {
    color-scheme:dark;
    --market-paper:#161311; --market-white:#242125; --market-ink:#f3eee5;
    --market-secondary:#bbb3ad; --market-muted:#a79f99; --market-line:#f3eee526;
    --market-input:#2b272b; --market-peach:#382a25; --market-sage:#29312a;
    --market-orange:#ed9464; --market-orange-hover:#f3ab82; --market-focus:#f3ab82;
    --market-success:#a2c49a;
    --bs-body-color:var(--market-ink); --bs-body-bg:var(--market-paper);
    --bs-secondary-color:var(--market-secondary); --bs-border-color:var(--market-line);
    --bs-tertiary-bg:var(--market-input); --bs-secondary-bg:var(--market-white);
    --bs-emphasis-color:var(--market-ink); --bs-emphasis-color-rgb:243,238,229;
}
.theme-toggle {display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid var(--market-line);border-radius:50%;background:var(--market-white);color:var(--market-ink);font-size:19px;line-height:1;cursor:pointer}
.theme-toggle[hidden] {display:none!important}
.theme-toggle:hover {border-color:var(--market-orange)}
.theme-toggle:focus-visible {outline:3px solid var(--market-focus);outline-offset:3px}
.appearance-controls {display:flex;align-items:center;gap:12px;flex-shrink:0}
.announcement .theme-toggle {width:36px;height:36px;flex-basis:36px;font-size:16px;background:transparent;color:#f7f5ed;border-color:#ffffff38}
.announcement .theme-toggle i {color:inherit;margin:0}
.hub-header .theme-toggle,.arrivals-header .theme-toggle {background:#ffffff06;color:var(--hub-cream);border-color:#fffdf640}
/* Light hub: paper background, muted discovery circles and the same pink goose. */
html[data-theme="light"] .hub-page {--hub-night:var(--market-paper);--hub-cream:#292321;--hub-ink:#292321;--hub-glow:#826d5420;color:var(--hub-cream)}
html[data-theme="light"] .hub-header {border-bottom-color:#2923211c}
html[data-theme="light"] .hub-header .theme-toggle,html[data-theme="light"] .arrivals-header .theme-toggle,
html[data-theme="light"] .hub-account,html[data-theme="light"] .hub-language {background:#fffaf680;border-color:#29232126;color:#292321}
html[data-theme="light"] .hub-language option {color:#292321;background:#fffaf6}
html[data-theme="light"] .hub-circle {background:linear-gradient(145deg,#e3d9ca,#d6cabb);color:#352e28;border-color:#c3b6a6;box-shadow:0 3px 10px #5746370d}
html[data-theme="light"] .hub-circle:not(:disabled):is(:hover,:focus-visible) {color:#29221d;border-color:#a85024;box-shadow:0 0 0 1px #dc8954,0 0 14px #de8a4f33,0 5px 14px #5746371a}
html[data-theme="light"] .hub-bubbles>span {background:#b59c7d0c;border-color:#8b735d33}
html[data-theme="light"] .hub-mascot {filter:brightness(1.07) saturate(1.12) drop-shadow(0 8px 18px #826d5422)}
html[data-theme="light"] .hub-quick-links {color:#756a60}
/* Arrivals share the selected theme on desktop and in the phone navigation. */
html[data-theme="light"] .arrivals-page {--arrivals-paper:#fffaf2;--arrivals-ink:#292321;--arrivals-muted:#786e66}
html[data-theme="light"] .arrivals-section-heading p {color:#756a60}
html[data-theme="light"] .arrival-card {box-shadow:inset 0 1px 0 #fff9,0 8px 24px #826d541a}
html[data-theme="light"] .arrivals-navigation>a {color:#63574e;background:#e9dfd64d;border-color:#c2a48c40}
html[data-theme="light"] .arrivals-navigation>a:hover {background:#e9dfd6}
html[data-theme="light"] .arrivals-navigation>a[aria-current] {background:#292321;color:#fffaf2;border-color:#292321}
html[data-theme="light"] .arrivals-account-toggle,html[data-theme="light"] .arrivals-menu-toggle {color:#292321;border-color:#29232133;background:#fffaf680}
html[data-theme="light"] .arrivals-account .dropdown-menu {background:#fffaf6;color:#292321;border-color:#c2a48c66}
html[data-theme="light"] .arrivals-account .dropdown-item {color:#292321}
html[data-theme="light"] .arrivals-account .dropdown-item:hover,html[data-theme="light"] .arrivals-account .dropdown-item:focus {background:#f0e7dd}
html[data-theme="light"] .arrivals-hero,html[data-theme="light"] .arrivals-promotion {background:radial-gradient(ellipse at 0% 0%,#eacbb970,transparent 60%),linear-gradient(120deg,#f5e5d9,#fffaf2 70%);box-shadow:inset 0 1px 0 #fff,0 12px 32px #826d5412}
html[data-theme="light"] .arrivals-hero p,html[data-theme="light"] .arrivals-promotion p,html[data-theme="light"] .arrivals-promotion small {color:#756255}
html[data-theme="light"] .arrivals-pagination a,html[data-theme="light"] .arrivals-empty {border-color:#c2a48c80}
html[data-theme="dark"] .arrivals-page {--arrivals-paper:#272227;--arrivals-ink:#f5eee5;--arrivals-muted:#bdb0a6}
html[data-theme="dark"] .arrival-store {color:#bdb0a6}
html[data-theme="dark"] .arrival-add {background:#f5eee5;color:#292321}
html[data-theme="dark"] .arrival-add:hover {background:#f3d3bc;color:#292321}
/* The feed keeps the photograph intact while copy, controls and chrome follow appearance. */
html[data-theme="light"] .hub-page.feed-page .feed-stage {border-color:#c2a48c66}
html[data-theme="light"] .hub-page.feed-page .feed-card-copy,
html[data-theme="light"] .hub-page.feed-page .feed-state {background:#fffaf4;color:#292321}
html[data-theme="light"] .hub-page.feed-page .feed-price,
html[data-theme="light"] .hub-page.feed-page .feed-title-price strong,
html[data-theme="light"] .hub-page.feed-page .feed-state .text-link {color:#aa3c50}
html[data-theme="light"] .hub-page.feed-page .feed-description,
html[data-theme="light"] .hub-page.feed-page .feed-store,
html[data-theme="light"] .hub-page.feed-page .feed-details,
html[data-theme="light"] .hub-page.feed-page .feed-state p {color:#756255}
html[data-theme="light"] .hub-page.feed-page .feed-controls button,
html[data-theme="light"] .hub-page.feed-page .feed-state .btn,
html[data-theme="light"] .hub-page.feed-page .feed-bottom-row button {background:#fffaf4;color:#292321;border-color:#c2a48c80;box-shadow:0 4px 16px #826d5417}
html[data-theme="light"] .hub-page.feed-page .feed-controls .feed-like-button[aria-pressed="true"] {background:#45ff90;color:#173323}
html[data-theme="light"] .hub-page.feed-page .feed-bottom-row p {background:#fffaf4f5;color:#292321;border-color:#c2a48c80}
/* Legacy panels and Bootstrap utility colours must agree with the shared tokens. */
html[data-theme="dark"] .bg-white {background-color:var(--market-white)!important}
html[data-theme="dark"] .bg-light {background-color:var(--market-input)!important}
html[data-theme="dark"] .text-dark,html[data-theme="dark"] .text-black {color:var(--market-ink)!important}
html[data-theme="dark"] .text-muted {color:var(--market-secondary)!important}
html[data-theme="dark"] .text-primary {color:var(--market-orange)!important}
html[data-theme="dark"] .text-success {color:var(--market-success)!important}
html[data-theme="dark"] .text-danger {color:#ffaba7!important}
html[data-theme="dark"] .announcement {background:#211d20;color:#f7f5ed}
html[data-theme="dark"] .announcement .language-switcher select,
html[data-theme="dark"] .announcement .language-switcher option {background:#211d20;color:#f7f5ed}
html[data-theme="dark"] .market-footer {background:#1d1a1e}
html[data-theme="dark"] .auth-container,html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .dashboard-sidebar {background:var(--market-white)}
html[data-theme="dark"] .dashboard-sidebar .nav-link {color:var(--market-secondary)}
html[data-theme="dark"] .dashboard-sidebar .nav-link:hover,
html[data-theme="dark"] .dashboard-sidebar .nav-link.active {color:#171518}
html[data-theme="dark"] .store-avatar,html[data-theme="dark"] .store-avatar-placeholder {border-color:var(--market-white);background-color:var(--market-white)}
html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-control:focus,html[data-theme="dark"] .form-select:focus {color:var(--market-ink);background-color:var(--market-input)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder {color:var(--market-muted);opacity:1}
html[data-theme="dark"] .form-control:disabled,html[data-theme="dark"] .form-control[readonly] {background:#211e22;color:var(--market-secondary)}
html[data-theme="dark"] .btn-dark {--bs-btn-bg:#eee5d9;--bs-btn-border-color:#eee5d9;--bs-btn-color:#292321;--bs-btn-hover-bg:#fff8ef;--bs-btn-hover-color:#292321;--bs-btn-hover-border-color:#fff8ef}
html[data-theme="dark"] .btn-outline-dark {--bs-btn-color:#eee5d9;--bs-btn-border-color:#a79f99;--bs-btn-hover-bg:#eee5d9;--bs-btn-hover-color:#292321;--bs-btn-active-bg:#eee5d9;--bs-btn-active-color:#292321}
html[data-theme="dark"] .btn-primary {--bs-btn-color:#201914;--bs-btn-hover-color:#201914;--bs-btn-active-color:#201914;--bs-btn-disabled-color:#201914}
html[data-theme="dark"] .home-shop-banner,html[data-theme="dark"] .home-shop-banner:hover,
html[data-theme="dark"] .home-banner-label {color:#fffaf2}
html[data-theme="dark"] .support-placeholder,html[data-theme="dark"] .cart-count {color:#201914}
html[data-theme="dark"] .product-visual,html[data-theme="dark"] .product-card .card-img-top,
html[data-theme="dark"] .product-detail-img {background:#2c282b}
html[data-theme="dark"] .hero-copy p {color:var(--market-secondary)}
html[data-theme="dark"] .photo-tabs {background:var(--market-input)}
html[data-theme="dark"] .ai-draft-card.is-selected {background:var(--market-sage)}
html[data-theme="dark"] .studio-status.is-error,html[data-theme="dark"] .chat-feedback {color:#ffaba7}
html[data-theme="dark"] .conversation-row.is-unread {background:#3b2c25}
html[data-theme="dark"] .conversation-row.is-active {background:var(--market-sage)}
html[data-theme="dark"] .conversation-avatar {background:#35392f;color:#d7e1cd}
html[data-theme="dark"] .conversation-row.is-unread .conversation-avatar {background:#62402c;color:#ffd4b3}
html[data-theme="dark"] .chat-day {background:var(--market-input)}
html[data-theme="dark"] .chat-bubble.is-sent {background:#443125;border-color:#6c4a35}
html[data-theme="dark"] .chat-new-divider:before,html[data-theme="dark"] .chat-new-divider:after {background:#6c4a35}
html[data-theme="dark"] .promo-manager {--promo-paper:#242125;--promo-ink:#f3eee5;--promo-muted:#bbb3ad;--promo-line:#f3eee526;--promo-orange:#ed9464}
html[data-theme="dark"] .promo-form-grid input,html[data-theme="dark"] .promo-form-grid select,
html[data-theme="dark"] .promo-filters input,html[data-theme="dark"] .promo-filters select {background:var(--market-input);color:var(--market-ink);border-color:var(--market-line)}
html[data-theme="dark"] .promo-form-grid input[readonly] {background:#211e22}
html[data-theme="dark"] .promo-metric-lead,html[data-theme="dark"] .promo-state.is-active {background:#2c392b;color:#c7e1bf;border-color:#546d4e}
html[data-theme="dark"] .promo-state {background:var(--market-input)}
html[data-theme="dark"] .admin-table th {color:var(--market-secondary)}
html[data-theme="dark"] .spinner-overlay {background:#171518b3}
html[data-theme="dark"] .chat-container {background:var(--market-paper)}
html[data-theme="dark"] .chat-message.received {background:var(--market-white);color:var(--market-ink)}
html[data-theme="dark"] .chat-list-item {border-color:var(--market-line)}
html[data-theme="dark"] .chat-list-item:hover,html[data-theme="dark"] .chat-list-item.active {background:var(--market-sage)}
@media(max-width:767px) {
    .hub-header {display:grid;grid-template-columns:1fr auto;gap:12px}
    .hub-header-left {display:contents}
    .hub-header .market-brand {grid-column:1/-1;grid-row:1;justify-self:start}
    .hub-account-links {grid-column:1;grid-row:2}
    .hub-header-actions {grid-column:2;grid-row:2}
    .theme-toggle {width:40px;height:40px;flex-basis:40px;font-size:18px}
    .appearance-controls {gap:8px}
    html[data-theme="light"] .arrivals-navigation {background:#fffaf6;border-color:#c2a48c66;box-shadow:0 12px 24px #826d5420}
}
@media(max-width:480px) {
    .arrivals-header {display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px 12px}
    .arrivals-header>.market-brand {justify-self:end;min-width:0}
    .arrivals-header-actions {grid-column:1/-1;justify-self:end;margin-left:0;gap:12px}
}
@media print {
    .theme-toggle {display:none!important}
    html[data-theme] {color-scheme:light}
}
