/*
 * WOLT SERVICE — unified design system / V29
 * Common tokens for the entire site. Loaded AFTER page-specific CSS to
 * harmonise colors without changing component size, layout or application logic.
 * Keep overdue/error red and paid/success green as meaningful semantic colors.
 */
:root {
  color-scheme: dark;
  --ws-bg: #0d0f12;
  --ws-sidebar: #121419;
  --ws-surface: #191c21;
  --ws-surface-raised: #202329;
  --ws-surface-soft: #16181d;
  --ws-input: #12151a;
  --ws-border: #40392e;
  --ws-border-soft: #34343a;
  --ws-gold: #d9ad67;
  --ws-gold-bright: #f1ce93;
  --ws-gold-deep: #34291b;
  --ws-text: #f3efe8;
  --ws-muted: #b8b4ae;
  --ws-success: #86d8ac;
  --ws-danger: #f19c9c;
  --ws-focus: #f1ce93;
  --ws-radius: 12px;
  /* Existing alias variables; used by older components. */
  --bg: var(--ws-bg);
  --side: var(--ws-sidebar);
  --panel: var(--ws-surface);
  --panel2: var(--ws-surface-raised);
  --border: var(--ws-border-soft);
  --muted: var(--ws-muted);
  --text: var(--ws-text);
  --gold: var(--ws-gold);
  --gold2: var(--ws-gold-bright);
  --ui-focus: var(--ws-focus);
  --admin-surface: var(--ws-surface);
  --admin-surface-raised: var(--ws-surface-raised);
  --admin-edge: var(--ws-border);
  --admin-accent: var(--ws-gold);
}
/* App-wide identity: same backdrop, chrome, branding, and legible text. */
body[class^="wolt-page-"] {
  background: radial-gradient(ellipse 64% 35% at 85% 0%,rgba(136,98,50,.11),transparent 78%),var(--ws-bg) !important;
  color:var(--ws-text);
}
body[class^="wolt-page-"] .sidebar {
  background:linear-gradient(180deg,#181a1e 0%,#101216 85%) !important;
  border-right-color:var(--ws-border-soft) !important;
}
body[class^="wolt-page-"] .sidebar .brand {border-bottom-color:var(--ws-border-soft) !important;}
body[class^="wolt-page-"] .sidebar .brand small,
body[class^="wolt-page-"] .sidebar .brand-gold,
body[class^="wolt-page-"] .sidebar .sidebar-section-heading,
body[class^="wolt-page-"] .sidebar .sidebar-caption {color:var(--ws-gold) !important;}
body[class^="wolt-page-"] .sidebar .side-nav a:not(.selected){color:#beb9b1;}
body[class^="wolt-page-"] .sidebar .side-nav a:hover {background:#28241f !important;color:var(--ws-text) !important;}
body[class^="wolt-page-"] .sidebar .side-nav a.selected {
  background:linear-gradient(90deg,#392c1c,#25201c) !important;
  box-shadow:inset 3px 0 var(--ws-gold) !important;
  color:var(--ws-gold-bright) !important;
}
body[class^="wolt-page-"] .sidebar .sidebar-identity {
  background:linear-gradient(140deg,#24211e,#191b20) !important;
  border-color:var(--ws-border) !important;
}
body[class^="wolt-page-"] .sidebar .sidebar-role-pill,
body[class^="wolt-page-"] .sidebar .sidebar-position {
  border-color:#665136 !important;
  background:#33291f !important;
  color:var(--ws-gold-bright) !important;
}
body[class^="wolt-page-"] .topbar {
  background:#14161b !important;
  border-bottom-color:var(--ws-border-soft) !important;
}
body[class^="wolt-page-"] .crumb {color:#cbc4b9 !important;}
body[class^="wolt-page-"] .crumb span {color:var(--ws-gold) !important;}
body[class^="wolt-page-"] .top-user {color:var(--ws-text);}
body[class^="wolt-page-"] .content {color:var(--ws-text);}
body[class^="wolt-page-"] footer {border-top-color:var(--ws-border-soft) !important;color:#aaa69e;}
/* Shared neutral cards; deliberately exclude status alerts, photos, charts and overlays. */
body[class^="wolt-page-"] :is(.panel,.metric,.history-item,.admin-detail) {
  background:var(--ws-surface) !important;
  border-color:var(--ws-border-soft) !important;
  color:var(--ws-text);
}
body[class^="wolt-page-"] .feature-card {
  background:radial-gradient(ellipse at 95% 0%,rgba(169,121,57,.13),transparent 45%),linear-gradient(120deg,#242019,#181a1e 76%) !important;
  border-color:var(--ws-border) !important;
}
/* One editorial accent for all page titles and captions. */
body[class^="wolt-page-"] :is(
  .overline,.ph-eyebrow,.ph-section-eyebrow,.bp-eyebrow,.bp-kicker,
  .fee-kicker,.fee-eyebrow,.fee-ledger-eyebrow,.club-eyebrow,
  .member-eyebrow,.member-premium-eyebrow,.mo-eyebrow,.mo-kicker,
  .pc-price,.profile-kicker,.profile-eyebrow,.supplier-kicker,
  .so-eyebrow,.bulk-compact-header>span,.bulk-cart-heading
){color:var(--ws-gold) !important;}
body[class^="wolt-page-"] :is(.page-intro h1,.ph-hero h2,.bp-hero h2,.member-hero h2,.mo-hero h2,.profile-identity-text h2,.so-heading h1) {color:var(--ws-text) !important;}
body[class^="wolt-page-"] :is(.page-intro p,.page-intro .desc,.ph-hero p,.bp-hero p,.member-hero p,.mo-hero p,.so-heading p) {color:var(--ws-muted) !important;}
/* Buttons across administration, orders and profile: neutral secondary / gold primary. */
body[class^="wolt-page-"] :is(
  button.primary,a.primary,.ph-btn.primary,.so-new,.pc-primary,.bp-primary,.mo-primary,
  .mo-save,.bulk-mini-add,.bulk-submit,.club-photo-form button,
  .supplier-form button[type="submit"]
) {
  background:linear-gradient(112deg,#e5bd80,var(--ws-gold)) !important;
  border-color:var(--ws-gold) !important;
  color:#20180f !important;
}
body[class^="wolt-page-"] :is(
  button.primary,a.primary,.ph-btn.primary,.so-new,.pc-primary,.bp-primary,.mo-primary,
  .mo-save,.bulk-mini-add,.bulk-submit,.club-photo-form button
):hover:not(:disabled){background:var(--ws-gold-bright) !important;}
body[class^="wolt-page-"] :is(.secondary-btn,.pc-secondary,.pc-edit,.mo-view-trigger,.pay-v25-reset,.pmw-v25-reset) {
  background:#27231f !important;
  border-color:#71583a !important;
  color:var(--ws-gold-bright) !important;
}
body[class^="wolt-page-"] :is(button,a,input,select,textarea,summary):focus-visible,
body:not([class^="wolt-page-"]) :is(button,a,input,select,textarea,summary):focus-visible {
  outline:2px solid var(--ws-focus) !important;
  outline-offset:3px;
}
/* Scope form colors to inputs with a surface of their own (search bars keep transparent interiors). */
body[class^="wolt-page-"] :is(input.field,select.field,textarea.field,.admin-form input,.admin-form select) {
  background:var(--ws-input) !important;
  border-color:#595045 !important;
  color:var(--ws-text) !important;
}
body[class^="wolt-page-"] :is(input,textarea)::placeholder {color:#aaa8a3;opacity:1;}
body[class^="wolt-page-"] :is(.table-scroll,.table-wrap,.pc-table-wrap,.pay-table-wrap) {scrollbar-color:#80633e #191b20;}
/* Dashboard and first impressions. */
.premium-home {--ph-gold:var(--ws-gold) !important;--ph-border:rgba(217,173,103,.24) !important;}
.wolt-page-dashboard :is(.ph-panel,.ph-profile,.ph-stat,.ph-shortcut-list,.ph-fee-row) {
  background:var(--ws-surface) !important;border-color:var(--ws-border-soft) !important;
}
.wolt-page-dashboard .ph-hero {
  background:radial-gradient(ellipse at 89% 18%,rgba(173,121,50,.18),transparent 45%),linear-gradient(112deg,#24201b,#15171b 78%) !important;
  border-color:var(--ws-border) !important;
}
.wolt-page-dashboard :is(.ph-hero h2 em,.ph-stat strong,.ph-text-link){color:var(--ws-gold-bright) !important;}
/* Kontingent and weekly payments: keep meaningful red/green statuses. */
.fee-hub,.fee-pro {--fy:var(--ws-gold) !important;--fborder:rgba(217,173,103,.24) !important;}
.wolt-page-fees :is(.fee-five-card,.fee-ledger-panel,.fee-ledger-row,.fee-ledger-history-row,.fee-head-status,.fee-ledger-tab) {
  background:var(--ws-surface) !important;border-color:var(--ws-border-soft) !important;
}
.wolt-page-fees :is(.fee-ledger-tab.is-active,.fee-ledger-filters button.is-active,.fee-ledger-pager button.is-active) {
  background:#382b1c !important;border-color:#a6804c !important;color:var(--ws-gold-bright) !important;
}
.wolt-page-fees :is(.fee-ledger-mark,.fee-ledger-count,.fee-ledger-amount .fee-ledger-outstanding) {color:var(--ws-gold-bright);}
/* The old fee screen used a saturated yellow independent of --fy. */
.wolt-page-fees .fee-pro :is(.fee-ledger-eyebrow,.fee-ledger-count,.fee-ledger-amount .fee-ledger-outstanding,.fee-ledger-blank span,.fee-ledger-tab-icon) {
  color:var(--ws-gold-bright) !important;
}
.wolt-page-fees .fee-pro .fee-ledger-progress span {background:var(--ws-gold) !important;}
.wolt-page-fees .fee-pro .fee-ledger-mark:not(.paid):not(.exempt):not(.overdue) {
  color:var(--ws-gold-bright) !important;background:#352b1d !important;
}
.wolt-page-fees .fee-pro .fee-ledger-history-tools input {
  background:var(--ws-input) !important;border-color:#594a37 !important;color:var(--ws-text) !important;
}
/* Product management was previously bright yellow; make it the same gold as the portal. */
.pc-workspace {--pc-yellow:var(--ws-gold) !important;--pc-border:var(--ws-border-soft) !important;}
.wolt-page-products :is(.pc-head,.pc-view,.pc-category-card,.pc-dialog,.pc-dialog-inner) {
  background:var(--ws-surface) !important;border-color:var(--ws-border-soft) !important;color:var(--ws-text);
}
.wolt-page-products :is(.pc-table th,.pc-tabs) {background:#22211f !important;}
.wolt-page-products :is(.pc-tab.active,.pc-pages button.selected,.pc-primary) {
  background:var(--ws-gold) !important;color:#21180d !important;border-color:var(--ws-gold) !important;
}
.wolt-page-products :is(.pc-search span,.pc-price,.pc-monogram,.pc-dialog-head small,.pc-edit) {color:var(--ws-gold-bright) !important;}
.wolt-page-products .pc-monogram {background:#382b1c !important;border-color:#755733 !important;}
.wolt-page-products .pc-category-card:hover {border-color:var(--ws-gold) !important;}
.wolt-page-products .pc-search {background:var(--ws-input) !important;border-color:#594a37 !important;}
.wolt-page-products :is(.pc-workspace select,.pc-form input,.pc-dialog input,.pc-dialog select) {
  background:var(--ws-input) !important;color:var(--ws-text) !important;border-color:#594a37 !important;
}
/* Orders, order admin, batches and suppliers. */
.wolt-page-orders :is(.ow-panel,.ow-stats>div,.so-summary>div,.so-card,.ow-order,.so-order) {
  background:var(--ws-surface) !important;border-color:var(--ws-border-soft) !important;
}
.wolt-page-orders :is(.ow-stats strong,.so-summary strong,.bulk-mini-role){color:var(--ws-gold-bright) !important;}
.wolt-page-orders .so-nav a.active {color:var(--ws-gold-bright) !important;border-color:var(--ws-gold) !important;}
.wolt-page-bulk_order :is(.bulk-mini-card,.bulk-member-card,.bulk-items,.bulk-item-line) {
  background:var(--ws-surface) !important;border-color:var(--ws-border-soft) !important;
}
.wolt-page-bulk_order :is(.bulk-role,.bulk-mini-role,.bulk-item-count) {background:#332a20 !important;color:var(--ws-gold-bright) !important;}
.wolt-page-batches .bp-page {--bp-gold:var(--ws-gold) !important;--bp-line:rgba(217,173,103,.24) !important;}
.wolt-page-batches .bp-hero,.wolt-page-manage_orders .mo-hero,.wolt-page-members .member-hero,
.wolt-page-supplier .supplier-hero {
  background:radial-gradient(ellipse at 92% 10%,rgba(176,129,59,.15),transparent 48%),linear-gradient(115deg,#242019,#17191e 75%) !important;
  border-color:var(--ws-border) !important;
}
.wolt-page-batches :is(.bp-stat,.bp-panel,.bp-table-wrap,.bp-active-box),
.wolt-page-manage_orders :is(.mo-stat,.mo-panel,.mo-table-wrap,.mo-order-row,.mo-editor),
.wolt-page-supplier :is(.supplier-stats>div,.supplier-panel,.supplier-card) {
  background:var(--ws-surface) !important;border-color:var(--ws-border-soft) !important;
}
.wolt-page-batches :is(.bp-feature-number,.bp-stat strong),
.wolt-page-members :is(.member-hero-count strong,.member-premium-counter strong),
.wolt-page-supplier :is(.supplier-stats strong,.supplier-hero h2 span) {
  color:var(--ws-gold-bright) !important;
}
.wolt-page-supplier :is(.supplier button[type="button"],.supplier-form button[type="submit"]):not(.danger) {
  background:linear-gradient(112deg,#e5bd80,var(--ws-gold)) !important;
  border-color:var(--ws-gold) !important;color:#20180f !important;
}
/* Member cards, club list and profile. */
.wolt-page-members :is(.member-card,.member-toolbar,.member-create-modal,.member-premium-heading),
.wolt-page-club :is(.club-member-card,.club-photo-panel,.club-roster-note),
.wolt-page-profile :is(.profile-glass-card,.club-profile-ledger,.club-profile-mini) {
  background:var(--ws-surface) !important;
  border-color:var(--ws-border-soft) !important;
}
.wolt-page-club .club-roster-hero,.wolt-page-profile .profile-cover {
  background:radial-gradient(ellipse at 90% 0%,rgba(176,129,59,.18),transparent 50%),linear-gradient(120deg,#272019,#14171c 80%) !important;
  border-color:var(--ws-border) !important;
}
.wolt-page-club :is(.club-member-role,.club-roster-total strong,.club-member-nick),
.wolt-page-profile :is(.profile-gold,.profile-member-number strong,.profile-cover .profile-role-tag,.club-profile-mini strong) {
  color:var(--ws-gold-bright) !important;
}
/* Management surfaces and member tools are distinct from semantic status badges. */
.wolt-page-admin :is(.admin-welcome,.overview-stat,.admin-form,.admin-detail),
.wolt-page-members :is(.member-card,.member-detail,.member-form) {
  border-color:var(--ws-border-soft) !important;
}
.wolt-page-members :is(.member-search-label,.member-toolbar select),
.wolt-page-manage_orders :is(.mo-search,.mo-filter),
.wolt-page-batches :is(.bp-search,.bp-filter),
.wolt-page-supplier :is(.supplier-search,.supplier-filter) {
  background:var(--ws-input) !important;border-color:#594a37 !important;color:var(--ws-text) !important;
}
.wolt-page-members :is(.member-results,.member-count,.member-tag:not(.late):not(.paid)),
.wolt-page-batches :is(.bp-button,.bp-hero-feature),
.wolt-page-supplier .supplier-kicker {color:var(--ws-gold-bright) !important;}
/* Payment management, audit log and member profile preserve all scroll/height rules from V28. */
.wolt-page-payments .pay-page {--pay-gold:var(--ws-gold) !important;--pay-line:rgba(217,173,103,.22) !important;}
.wolt-page-payments :is(.pay-stat,.pay-panel,.pay-history,.pay-member-panel,.pay-hero,.pay-overview-hero,.pmw-page,.pmw-sidebar,.pmw-main) {
  border-color:var(--ws-border-soft) !important;
}
.wolt-page-payments :is(.pay-stat,.pay-panel,.pay-history,.pay-member-panel,.pay-hero,.pay-overview-hero) {
  background:linear-gradient(145deg,#202329,#191b20) !important;
}
.wolt-page-payments :is(.pmw-page,.pmw-main) {background:var(--ws-surface-soft) !important;}
.wolt-page-payments .pmw-sidebar {background:#15171c !important;}
.wolt-page-payments :is(.pay-view-tab.is-active,.pmw-nav .is-active) {
  background:#382b1c !important;color:var(--ws-gold-bright) !important;border-color:#967348 !important;
}
.wolt-page-payments :is(.pay-person-open,.pmw-ledger-info strong,.pay-stat strong) {color:var(--ws-gold-bright);}
.wolt-page-payments :is(.pay-v27-toast,.pay-v28-audit-log) {border-color:var(--ws-border) !important;}
/* Never repaint payment/role success, overdue, warning or delete badges. */
/* Non-app pages share the same palette, while retaining their own layout. */
body.club-login-page,body:has(.choice-wrap),body:has(.link-shell),body:has(.rp-welcome) {
  background:radial-gradient(ellipse at 75% -5%,rgba(169,121,57,.12),transparent 55%),var(--ws-bg) !important;
  color:var(--ws-text);
}
body.club-login-page .club-access {
  background:radial-gradient(ellipse at 95% 4%,rgba(161,114,54,.12),transparent 46%),linear-gradient(135deg,#1c1c1e,#111317) !important;
  border-color:#66513a !important;
}
body.club-login-page .club-login-shell {border-color:#775a37 !important;}
body.club-login-page :is(.access-label,.story-mark,.story-eyebrow,.access-main h2 span,.story-main h1 span) {color:var(--ws-gold-bright) !important;}
body.club-login-page .discord-button {
  background:linear-gradient(112deg,#f1ce93,var(--ws-gold)) !important;
  border-color:#f1ce93 !important;color:#20180f !important;
}
body:has(.choice-wrap) .choice {background:var(--ws-surface) !important;border-color:var(--ws-border) !important;}
body:has(.choice-wrap) .choice.highlighted {background:linear-gradient(120deg,#282219,#191c21) !important;border-color:#a7804d !important;}
body:has(.choice-wrap) :is(.brand,.eyebrow,.number,.back) {color:var(--ws-gold-bright) !important;}
body:has(.choice-wrap) .button.primary {background:linear-gradient(112deg,#f1ce93,var(--ws-gold)) !important;color:#20180f !important;}
body:has(.link-shell) :is(.link-header,.link-card,.link-aside) {border-color:var(--ws-border) !important;}
body:has(.link-shell) :is(.link-card,.link-aside) {background:var(--ws-surface) !important;}
body:has(.rp-welcome) .rp-welcome {background:var(--ws-surface) !important;border-color:var(--ws-border) !important;}
/* Keep rows/buttons keyboard accessible and prevent accidental recoloring of hidden states. */
[hidden]{display:none !important;}
@media(max-width:760px){body[class^="wolt-page-"] .topbar{background:#14161b !important;}}
@media(prefers-reduced-motion:reduce){body[class^="wolt-page-"] .sidebar .side-nav a{transition:none;}}
