@font-face { font-family: "Anton"; src: url("anton-regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("plus-jakarta-sans-variable.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
/* Shared semantic colors. Fixed brand yellow stays #FEEE05 in both themes. */
:root {
  --bee-page: #FFFFFF;
  --bee-surface: #FFFFFF;
  --bee-alt: #EFEFED;
  --bee-dark-surface: #3D3D3C;
  --bee-ink: #3D3D3C;
  --bee-ink-strong: #000000;
  --bee-muted: #6A6A66;
  --bee-outline: #3D3D3C;
  --bee-line: #C4C4C0;
  --bee-focus: #000000;
  --bee-scrollbar-thumb: rgba(106, 106, 102, 0.52);
  --bee-scrollbar-thumb-hover: rgba(106, 106, 102, 0.82);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bee-page: #121211;
  --bee-surface: #262624;
  --bee-alt: #191917;
  --bee-dark-surface: #222220;
  --bee-ink: #E9EBE8;
  --bee-ink-strong: #FFFFFF;
  --bee-muted: #BBC0BA;
  --bee-outline: #AEB5AC;
  --bee-line: #3A3C39;
  --bee-focus: #FEEE05;
  --bee-scrollbar-thumb: rgba(187, 192, 186, 0.45);
  --bee-scrollbar-thumb-hover: rgba(187, 192, 186, 0.78);
  color-scheme: dark;

  /* Existing admin UI aliases. The brand colors above its tokens remain fixed. */
  --canvas: #000000;
  --surface: #242424;
  --surface-sunken: #3D3D3C;
  --ink: #E9EBE8;
  --ink-strong: #FFFFFF;
  --ink-muted: #BBC0BA;
  --line: #4D524E;
  --line-strong: #777E77;
  --control-line: #AEB5AC;
  --charcoal-deep: #242424;
  --charcoal-line: #777E77;
  --ok-fg: #B8F0CB; --ok-bg: #173D2B;
  --info-fg: #C3DDFF; --info-bg: #153553;
  --wait-fg: #FFE1AD; --wait-bg: #4A3115;
  --offer-fg: #E9D8FF; --offer-bg: #3D2A56;
  --danger-fg: #FFCCC7; --danger-bg: #4D2422;
  --neutral-fg: #E5E8E5; --neutral-bg: #313433;
}

.bee-theme-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--bee-ink);
  font: 600 13px/1.2 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  white-space: nowrap;
}
.bee-theme-control select {
  min-height: 40px;
  padding: 7px 10px;
  border: 1.5px solid var(--bee-outline);
  border-radius: 10px;
  background: var(--bee-surface);
  color: var(--bee-ink);
  font: inherit;
  cursor: pointer;
}
.bee-theme-control select:focus-visible {
  outline: 3px solid var(--bee-focus);
  outline-offset: 2px;
}
html[data-theme="dark"] .bee-theme-control select { background: var(--bee-alt); }

.bee-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1.5px solid var(--bee-outline);
  border-radius: 999px;
  background: var(--bee-surface);
  flex: none;
}
.bee-theme-switch button {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bee-ink);
  cursor: pointer;
}
.bee-theme-switch button[aria-pressed="true"] {
  background: #FEEE05;
  color: #000;
  box-shadow: inset 0 0 0 1px #000;
}
.bee-theme-switch button:hover:not([aria-pressed="true"]) { background: var(--bee-alt); }
.bee-theme-switch button:focus-visible { outline: 3px solid var(--bee-focus); outline-offset: 2px; }
.bee-theme-switch svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Admin controls and outlines require a brighter border on dark surfaces. */
html[data-theme="dark"] .button:not(.primary),
html[data-theme="dark"] .chip,
html[data-theme="dark"] .attention,
html[data-theme="dark"] .pos.next { border-color: var(--bee-outline); }
html[data-theme="dark"] :focus-visible { outline-color: var(--bee-focus); }
html[data-theme="dark"] .rail :focus-visible,
html[data-theme="dark"] .demo-banner :focus-visible { outline-color: #FEEE05; }

@media (max-width: 900px) {
  .topbar .bee-theme-control, .topbar .bee-theme-switch { order: 2; }
}
@media (max-width: 560px) {
  .topbar-title { flex: 1 1 100%; }
  .topbar .mode-pill { order: 1; }
  .topbar .bee-theme-control, .topbar .bee-theme-switch { order: 2; margin-left: auto; }
  .topbar .button.primary { order: 3; }
  .topbar .updated { order: 4; }
  .site-header { padding-inline: 16px !important; }
  .site-header-row { gap: 8px !important; }
  .site-header-actions { gap: 8px !important; }
  .site-header .bee-theme-label { display: none; }
  .site-header .bee-theme-control select { min-height: 44px; max-width: 103px; }
  .site-header .brand-name { font-size: 18px !important; }
  .site-header .brand-logo { width: 40px !important; height: 40px !important; }
}
@media (max-width: 370px) {
  .site-header .brand-name { display: none; }
}

:root[data-ui-design="simple"] body,:root[data-ui-design="simple"] h1,:root[data-ui-design="simple"] h2,:root[data-ui-design="simple"] h3{font-family:system-ui,sans-serif!important;letter-spacing:normal!important}
:root[data-ui-design="simple"] .btn,:root[data-ui-design="simple"] .merchant-card{box-shadow:none!important;border-radius:8px!important}
:root[data-ui-density="compact"] .section{padding-top:28px;padding-bottom:28px}
:root[data-ui-motion="reduced"] *{transition:none!important;animation:none!important;scroll-behavior:auto!important}

/* Auto-hide scrollbars by default across the UI; visible only while scrolling. */
:root, *, *::before, *::after {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
:root.bee-scrolling, :root.is-scrolling,
.bee-scrolling, .is-scrolling {
  scrollbar-color: var(--bee-scrollbar-thumb) transparent;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.bee-scrolling::-webkit-scrollbar-thumb,
.is-scrolling::-webkit-scrollbar-thumb {
  background-color: var(--bee-scrollbar-thumb);
}
.bee-scrolling::-webkit-scrollbar-thumb:hover,
.is-scrolling::-webkit-scrollbar-thumb:hover {
  background-color: var(--bee-scrollbar-thumb-hover);
}
html:not([data-theme="dark"]) :is(.site-header, .portal-header) {
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
