/* Palette only: no geometry, guest documents or operational status remapping.
   wine-operations is the shared layout system for both palettes. */
html[data-theme='wine-operations'][data-palette='olive'] {
  --base:#f6f6f2;--surface:#fffef9;--surface2:#eeefe6;--surface3:#e3e5da;
  --ink:#171a16;--ink2:#676e64;--ink3:#747b70;
  --line:#dedfd5;--line2:#e8e9e1;--border:var(--line);--card:var(--surface);--muted:var(--ink3);
  --accent:#30382c;--accent-contrast:#fffef9;--accent-lt:#e9ece2;--accent-md:#cbd2c2;
  --layf-accent-violet:var(--accent);--layf-accent-lavender:#66735c;
  --layf-accent-coral:#8a6b43;--layf-accent-pink:#68745e;
  --layf-accent-gradient:linear-gradient(135deg,#30382c,#59654e);
  --layf-accent-gradient-soft:linear-gradient(135deg,#e9ece2,#e3e7db);
  --layf-accent-soft-bg:var(--accent-lt);--layf-accent-soft-bg-hover:#dfe5d7;
  --layf-accent-border:#cbd2c2;--layf-accent-text:var(--accent);--layf-accent-text-soft:#46543c;
  --wa-cta-bg:var(--layf-accent-gradient-soft);--wa-cta-bg-hover:#dfe5d7;
  --wa-cta-border:var(--accent-md);--wa-cta-border-hover:#a6b29a;--wa-cta-text:var(--ink);--wa-cta-focus:var(--accent);
  --wa-active-bg:var(--accent-lt);--wa-active-border:var(--accent-md);
  --warm-card:var(--surface);--warm-card-2:var(--surface2);--warm-card-hover:var(--accent-lt);
  --warm-icon-bg:var(--accent-lt);--warm-border:var(--border);--warm-border-hover:var(--accent-md);
  --warm-ink:var(--ink);--warm-ink-2:var(--ink2);--warm-ink-3:var(--ink3);
  --warm-glass:#fffef9eb;--warm-ghost:#fffef9b8;--warm-header-bg:var(--surface);
  --wa-fin-result-bg:linear-gradient(135deg,#30382c,#526247);--wa-fin-result-shadow:#30382c;
  --wa-fin-secondary-accent:var(--accent);--wa-fin-positive:var(--positive);--wa-fin-danger:var(--danger);
  --scrollbar-thumb:#a6b29a;--scrollbar-thumb-hover:#76846a;
  --shadow-xs:0 1px 2px #171a160a;--shadow-sm:0 1px 6px #171a160f,0 0 0 1px #171a1607;
  --shadow-md:0 4px 14px #171a1612,0 0 0 1px #171a1608;--shadow-lg:0 14px 36px #171a161a,0 0 0 1px #171a1608;
}
html[data-theme='wine-operations'][data-palette='olive'][data-dark='true'] {
  --base:#141712;--surface:#1c2119;--surface2:#252c21;--surface3:#30392a;
  --ink:#f0f2eb;--ink2:#b9c0b2;--ink3:#96a18d;--line:#3b4534;--line2:#30382b;
  --accent:#b8c8a8;--accent-contrast:#171d13;--accent-lt:#2b3725;--accent-md:#536447;
  --layf-accent-lavender:#97a888;--layf-accent-coral:#c2a171;--layf-accent-pink:#a2b394;
  --layf-accent-gradient:linear-gradient(135deg,#516346,#758966);
  --layf-accent-gradient-soft:linear-gradient(135deg,#2b3725,#33412d);
  --layf-accent-soft-bg-hover:#394a31;--layf-accent-border:var(--accent-md);
  --layf-accent-text-soft:#c4d3b6;--wa-cta-bg-hover:#394a31;--wa-cta-border-hover:#7e916e;
  --warm-glass:#1c2119eb;--warm-ghost:#1c2119b8;
  --scrollbar-thumb:#536447;--scrollbar-thumb-hover:#7e916e;
  --shadow-xs:0 1px 2px #0005;--shadow-sm:0 1px 4px #0006;--shadow-md:0 4px 12px #0008;--shadow-lg:0 14px 36px #0009;
}
html[data-theme='wine-operations'][data-palette='olive'] .wa-ops-dashboard {--wa-ui-chart-fill:#66735c;--wa-ui-chart-today:#a77940}
html[data-theme='wine-operations'][data-palette='olive'][data-dark='true'] .wa-ops-dashboard {--wa-ui-chart-fill:#7e916e;--wa-ui-chart-today:#d1a166}
/* Fixed preview swatches keep both choices identifiable in either palette. */
.settings-palette-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
.settings-palette-swatch {height:5px;border-radius:3px;display:block;margin-bottom:3px}
.settings-palette-swatch--violange {background:linear-gradient(90deg,#fb923c,#9b81c8)}
.settings-palette-swatch--olive {background:linear-gradient(90deg,#30382c,#66735c)}

html[data-theme='wine-operations'][data-palette='olive'] body {background:var(--base)!important}

/* Financial result badges keep their meaning on the dark olive hero. */
html[data-theme='wine-operations'][data-palette='olive'] .wa-finance-result-status.is-negative {background:color-mix(in srgb,var(--danger) 12%,var(--surface));color:var(--danger)}
html[data-theme='wine-operations'][data-palette='olive'] .wa-finance-result-status.is-positive {background:color-mix(in srgb,var(--positive) 12%,var(--surface));color:var(--positive)}

/* Olive app shell: calm navigation, sharing affordances and topbar separator. */
html[data-theme='wine-operations'][data-palette='olive'] {
  --wa-shell-share-bg:#30382c;--wa-shell-share-text:#fffef9;
  --wa-ui-selected-bg:#30382c;--wa-ui-selected-border:#30382c;--wa-ui-selected-text:#fffef9;
}
html[data-theme='wine-operations'][data-palette='olive'][data-dark='true'] {
  --wa-shell-share-bg:#394a31;
  --wa-ui-selected-bg:#b8c8a8;--wa-ui-selected-border:#b8c8a8;--wa-ui-selected-text:#171d13;
}
html[data-theme='wine-operations'][data-palette='olive'] .sidebar {background:var(--surface)!important;border-color:var(--border)!important}
html[data-theme='wine-operations'][data-palette='olive'] .sidebar [data-nav] .nav-icon {color:var(--ink2)!important}
html[data-theme='wine-operations'][data-palette='olive'] .sidebar [data-nav]:is(.is-active,.active) .nav-icon {color:var(--wa-ui-selected-text)!important}
html[data-theme='wine-operations'][data-palette='olive'] .sidebar [data-nav='waEmergency'] .nav-icon {color:var(--danger)!important}
html[data-theme='wine-operations'][data-palette='olive'] .sidebar .nav-item:hover {background:var(--surface2)!important}
html[data-theme='wine-operations'][data-palette='olive'] .sidebar .nav-item:is(.is-active,.active) {background:var(--wa-ui-selected-bg)!important;color:var(--wa-ui-selected-text)!important;border-color:var(--wa-ui-selected-border)!important}
html[data-theme='wine-operations'][data-palette='olive'] .topbar::after {background:var(--border);height:1px;opacity:1}
html[data-theme='wine-operations'][data-palette='olive'] :is(.ms-ribbon--shared,.ms-ribbon--shared-to-me,.ms-bubble--shared,.ms-bubble--shared-to-me) {background:var(--wa-shell-share-bg);color:var(--wa-shell-share-text)}
html[data-theme='wine-operations'][data-palette='olive'] :is(.ms-ribbon--private,.ms-bubble--private) {background:var(--accent-lt);color:var(--accent)}
html[data-theme='wine-operations'][data-palette='olive'] :is(.ms-ribbon--private,.ms-bubble--private):hover {background:var(--accent-md)}
html[data-theme='wine-operations'][data-palette='olive'] :is(.ms-ribbon--pending,.ms-bubble--pending) {background:var(--warn-bg);color:var(--warning)}
html[data-theme='wine-operations'][data-palette='olive'] :is(.ms-ribbon--pending,.ms-bubble--pending):hover {background:color-mix(in srgb,var(--warning) 20%,var(--surface))}
html[data-theme='wine-operations'][data-palette='olive'] :is(.ms-bubble-badge--shared,.ms-bubble-badge--shared-to-me) {background:var(--accent);color:var(--accent-contrast)}

/* Strong selected controls, with inverse text in each Olive mode. */
html[data-theme='wine-operations'][data-palette='olive'] :is(.sidebar .nav-item.is-active,.sidebar .nav-item.active) :not(.nav-icon):not(.nav-icon *) {color:var(--wa-ui-selected-text)!important}
html[data-theme='wine-operations'][data-palette='olive'] :is(.cs-tab--active,.cs-subtab--active,.cs-ptab--active,.settings-mode-choice.is-active,.settings-tab.is-active,.wa-finance-tab.is-active) {background:var(--wa-ui-selected-bg)!important;color:var(--wa-ui-selected-text)!important;border-color:var(--wa-ui-selected-border)!important}
html[data-theme='wine-operations'][data-palette='olive'] .settings-mode-choice.is-active small {color:inherit}
/* Open sharing panel: palette colours, retaining warning and permission meanings. */
html[data-theme='wine-operations'][data-palette='olive'] :is(.ms-summary--private,.ms-summary--shared,.ms-summary--shared-to-me) {background:var(--accent-lt)}
html[data-theme='wine-operations'][data-palette='olive'] :is(.ms-summary--private,.ms-summary--shared,.ms-summary--shared-to-me) .ms-summary-icon {color:var(--accent)}
html[data-theme='wine-operations'][data-palette='olive'] .ms-person-badge--owner {background:var(--accent-lt);color:var(--accent)}
html[data-theme='wine-operations'][data-palette='olive'] :is(.ms-summary--pending,.ms-person-badge--pending) {background:var(--warn-bg);color:var(--warning)}
html[data-theme='wine-operations'][data-palette='olive'] .ms-btn-invite {background:var(--wa-shell-share-bg)!important;color:var(--wa-shell-share-text)!important}

html[data-theme='wine-operations'][data-palette='olive'] :is(.btn.is-active,[data-wa-view].is-active,button[aria-pressed='true']:not(.ac-pin-chip),button[aria-selected='true']) {background:var(--wa-ui-selected-bg)!important;color:var(--wa-ui-selected-text)!important;border-color:var(--wa-ui-selected-border)!important}
html[data-theme='wine-operations'][data-palette='olive'] .ms-person-avatar.is-owner {color:var(--accent-contrast)}
html[data-theme='wine-operations'][data-palette='olive'] .ms-summary--pending .ms-summary-icon {color:var(--warning)}

html[data-theme='wine-operations'][data-palette='olive'] .insp-tab.is-active {background:var(--wa-ui-selected-bg)!important;color:var(--wa-ui-selected-text)!important;border-color:var(--wa-ui-selected-border)!important;box-shadow:none!important}
