:root[data-admin-workspace="company"] .cafe-stats {
  --stats-ink: #242934;
  --stats-muted: #606979;
  --stats-line: #e2e6ed;
  --stats-surface: #fff;
  --stats-bg: #f5f6f9;
  --stats-orange: #ff6a00;
  --stats-orange-dark: #9a3d00;
  --stats-orange-soft: #fff2e8;
  --stats-shadow: 0 1px 2px #282f3c08, 0 3px 10px #282f3c07;
  background: var(--stats-bg);
  color: var(--stats-ink);
  min-height: calc(100vh - 42px);
  padding: clamp(16px, 2.25vw, 34px);
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.cafe-stats__inner { max-width: 1540px; margin-inline: auto; }
.cafe-stats h1, .cafe-stats h2, .cafe-stats h3, .cafe-stats p { margin: 0; }
.cafe-stats h1 { font-size: clamp(25px, 2.4vw, 34px); line-height: 1.2; font-weight: var(--admin-weight-semibold); letter-spacing: -.025em; }
.cafe-stats h2 { font-size: 18px; font-weight: var(--admin-weight-semibold); line-height: 1.35; }
.cafe-stats h3 { font-size: 15px; font-weight: var(--admin-weight-semibold); }
.cafe-stats__caption { color: var(--stats-muted); font-size: 13px; line-height: 1.45; }
.cafe-stats h1 + p, .cafe-stats h2 + p { margin-top: 5px; }
.cafe-stats__header, .cafe-stats__filters, .cafe-stats__card-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 18px; flex-wrap: wrap;
}
.cafe-stats__header { align-items: center; margin-bottom: 19px; }
.cafe-stats__header > div { min-width: 0; }
.cafe-stats__head-actions { display: flex; align-items: center; gap: 6px; max-width: 100%; margin-inline-start: auto; }
.cafe-stats__refresh {
  display: grid; place-items: center; flex: 0 0 36px; min-height: 36px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--stats-muted); font-size: 17px;
}
.cafe-stats__refresh:hover { background: #e9edf2; color: var(--stats-ink); }
.cafe-stats__filters { align-items: center; justify-content: flex-start; margin-bottom: 12px; }
:is(.cafe-stats__filters, .cafe-stats__product-period) > .cafe-stats__switch { inline-size: min(100%, 385px); }
:is(.cafe-stats__filters, .cafe-stats__product-period) > .cafe-stats__switch button { padding-inline: 2px; }
.cafe-stats__action {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px;
  border: 1px solid var(--stats-line); border-radius: 7px; padding: 7px 12px;
  background: var(--stats-surface); color: var(--stats-ink); font-size: 14px; font-weight: var(--admin-weight-medium); line-height: 1.3; text-decoration: none;
}
.cafe-stats__action:hover { border-color: #eac6ad; background: var(--stats-orange-soft); color: var(--stats-orange-dark); }
.cafe-stats :is(button, a):focus-visible { outline: 1px solid var(--admin-field-focus); outline-offset: 2px; }
.cafe-stats__notice { margin-bottom: 12px; }
.cafe-stats__notice:empty { margin: 0; }
.cafe-stats__notice:not(:empty) {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  border: 1px solid var(--stats-line); border-radius: 10px; background: var(--stats-surface);
  padding: 12px 15px; color: var(--stats-muted);
}
.cafe-stats__notice[role="alert"] { color: #922d2d; }
.cafe-stats__body { display: grid; gap: 14px; }
.cafe-stats__body[hidden] { display: none; }
.cafe-stats__body[aria-busy="true"], .cafe-stats__products-scroll[aria-busy="true"] { opacity: .58; }
.cafe-stats__card {
  min-width: 0; border: 1px solid var(--stats-line); border-radius: 13px;
  background: var(--stats-surface); box-shadow: var(--stats-shadow);
}
.cafe-stats__hero { display: grid; grid-template-columns: minmax(215px, 260px) minmax(0, 1fr); }
.cafe-stats__key, .cafe-stats__chart, .cafe-stats__panel { min-width: 0; padding: 17px clamp(14px, 1.45vw, 22px); }
.cafe-stats__key { border-inline-end: 1px solid var(--stats-line); }
.cafe-stats__hero-total { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 3px 0; }
.cafe-stats__hero-value { min-width: 0; font-size: clamp(26px, 2.5vw, 34px); font-weight: var(--admin-weight-semibold); line-height: 1.2; overflow-wrap: anywhere; }
.cafe-stats__key .cafe-stats__comparison { margin-top: 8px; }
.cafe-stats__change {
  display: inline-block; border-radius: 5px; padding: 3px 6px;
  background: #eef1f5; color: #566174; font-size: 12px; font-weight: var(--admin-weight-medium); line-height: 1.25; white-space: nowrap;
}
.cafe-stats__change[data-trend="up"] { background: var(--admin-trend-positive-bg); color: var(--admin-trend-positive); }
.cafe-stats__change[data-trend="down"] { background: var(--admin-trend-negative-bg); color: var(--admin-trend-negative); }
.cafe-stats__metrics { margin: 17px 0 0; padding-top: 6px; border-top: 1px solid var(--stats-line); }
.cafe-stats__metrics > div { display: flex; justify-content: space-between; gap: 5px 12px; padding: 8px 0; }
.cafe-stats__metrics > div + div { border-top: 1px solid #edf0f4; }
.cafe-stats__metrics dt { color: var(--stats-muted); font-size: 14px; font-weight: var(--admin-weight-regular); }
.cafe-stats__metrics dd { display: flex; flex-wrap: wrap; justify-content: end; align-items: baseline; gap: 4px 6px; margin: 0; text-align: end; font-weight: var(--admin-weight-medium); }
.cafe-stats__metrics dd > span:first-child { white-space: nowrap; }
.cafe-stats__chart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.cafe-stats__chart .cafe-stats__switch button { padding-inline: 9px; font-size: 13px; }
.cafe-stats__plot {
  --plot-height: clamp(146px, 19vw, 238px);
  display: grid; grid-template-columns: clamp(38px, 4vw, 48px) minmax(0, 1fr); column-gap: 9px;
  margin-top: 16px; padding-top: 7px;
}
.cafe-stats__axis {
  display: flex; flex-direction: column; justify-content: space-between; align-items: end;
  height: calc(var(--plot-height) + 12px); margin-top: -6px; color: var(--stats-muted); font-size: 11px; line-height: 12px;
  white-space: nowrap;
}
.cafe-stats__bars {
  position: relative;
  display: grid; grid-template-columns: repeat(var(--stats-columns), minmax(0, 1fr)); height: var(--plot-height);
  align-items: end; border-bottom: 1px solid #d9dee7;
  background: repeating-linear-gradient(to right, transparent 0 4px, var(--stats-surface) 4px 8px),
    repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #e6eaf1 calc(25% - 1px) 25%);
}
.cafe-stats__bar {
  display: flex; align-items: end; justify-content: center; position: relative;
  min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent;
}
.cafe-stats__bar[data-cafe-stats-padding] { pointer-events: none; }
.cafe-stats__bar > span { width: min(64%, 30px); height: var(--stats-bar); min-height: 1px; border-radius: 4px 4px 0 0; background: #ff9253; }
.cafe-stats__bar:is([data-peak], [aria-pressed="true"], :hover) > span { background: var(--stats-orange); }
.cafe-stats__bar[data-empty] > span { background: transparent; }
.cafe-stats__bar[data-current] { background: #ff6a0008; }
.cafe-stats__bar-label {
  position: absolute; inset-inline-start: 50%; bottom: calc(var(--stats-bar) + 4px); transform: translateX(-50%);
  color: var(--stats-ink); font-size: 11px; font-weight: var(--admin-weight-medium); white-space: nowrap; pointer-events: none;
}
.cafe-stats__plot-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 0 10px; color: var(--stats-muted); font-size: 13px; text-align: center; pointer-events: none;
}
.cafe-stats .cafe-stats__bar:focus-visible { z-index: 1; outline: 0; }
.cafe-stats__bar:focus-visible::before {
  content: ''; position: absolute; inset: 0 auto var(--stats-bar) 50%;
  border-inline-start: 1px dashed #8490a2; pointer-events: none;
}
.cafe-stats__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cafe-stats__line-area { fill: var(--stats-orange); fill-opacity: .11; }
.cafe-stats__line-stroke { stroke: #e6610c; stroke-width: 2.3; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.cafe-stats__plot[data-view="line"] .cafe-stats__bar[data-current] { background: transparent; }
.cafe-stats__plot[data-view="line"] .cafe-stats__bar > span { visibility: hidden; }
.cafe-stats__plot[data-view="line"] .cafe-stats__bar[data-point]::after {
  content: ''; position: absolute; inset-inline-start: 50%; bottom: var(--stats-bar);
  width: 4px; height: 4px; border-radius: 50%; background: #e6610c;
  transform: translate(-50%, 50%); pointer-events: none;
}
.cafe-stats__plot[data-view="line"] .cafe-stats__bar[data-point]:is(:hover, :focus-visible, [aria-pressed="true"])::after {
  width: 8px; height: 8px; border: 1px solid #fff;
}
.cafe-stats__tooltip {
  position: absolute; z-index: 2; max-width: calc(100% - 8px); padding: 5px 8px;
  border-radius: 6px; background: #262c37; color: #fff; font-size: 12px; line-height: 1.35;
  text-align: center; pointer-events: none; box-shadow: 0 2px 6px #24293426;
}
.cafe-stats__ticks {
  grid-column: 2; display: grid; grid-template-columns: repeat(var(--stats-columns), minmax(0, 1fr));
  margin-top: 6px; color: var(--stats-muted); font-size: 11px; text-align: center;
}
.cafe-stats__tick { min-width: 0; white-space: nowrap; }
.cafe-stats__tick[data-tick="none"] { visibility: hidden; }
.cafe-stats__three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cafe-stats__breakdown { list-style: none; margin: 9px 0 0; padding: 0; }
.cafe-stats__breakdown-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 7px 10px; min-height: 54px; padding: 8px 0;
}
.cafe-stats__breakdown-row + .cafe-stats__breakdown-row { border-top: 1px solid #edf0f4; }
.cafe-stats__breakdown-icon {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 8px; background: #f0f2f6; color: #5d697d; font-size: 15px;
}
.cafe-stats__breakdown-name, .cafe-stats__breakdown-value { display: grid; align-content: center; gap: 1px; line-height: 1.3; }
.cafe-stats__breakdown-name { min-width: 0; overflow-wrap: anywhere; }
.cafe-stats__breakdown-value { text-align: end; white-space: nowrap; }
.cafe-stats__breakdown-row strong { font-size: 14px; font-weight: var(--admin-weight-medium); }
.cafe-stats__breakdown-name strong { font-weight: var(--admin-weight-regular); }
.cafe-stats__breakdown-row small { color: var(--stats-muted); font-size: 12px; }
.cafe-stats__table { width: 100%; border-collapse: collapse; margin-top: 9px; text-align: left; }
.cafe-stats__table :is(th, td) { padding: 8px 8px 8px 0; font-size: 14px; vertical-align: baseline; }
.cafe-stats__table :is(th, td):not(:first-child) { text-align: right; }
.cafe-stats__table :is(th, td):last-child { padding-right: 0; }
.cafe-stats__table th { border-bottom: 1px solid var(--stats-line); color: var(--stats-muted); font-size: 12px; font-weight: var(--admin-weight-medium); }
.cafe-stats__table tbody tr + tr { border-top: 1px solid #edf0f4; }
.cafe-stats__table td:first-child { overflow-wrap: anywhere; font-weight: var(--admin-weight-medium); }
.cafe-stats__table td:not(:first-child) { white-space: nowrap; }
.cafe-stats__products-head { align-items: center; }
.cafe-stats__preview-table th:first-child { width: 58%; }
.cafe-stats__preview-table td { padding-block: 7px; }
.cafe-stats__product-dialog {
  width: min(1040px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--stats-line); border-radius: 14px; background: var(--stats-surface);
  color: var(--stats-ink); box-shadow: 0 15px 55px #24293429;
}
.cafe-stats__product-dialog::backdrop { background: #25283255; }
.cafe-stats__product-sheet { padding: clamp(14px, 2.4vw, 24px); }
.cafe-stats__product-dialog-head { flex-wrap: nowrap; margin-bottom: 13px; }
.cafe-stats__product-dialog-head > div { min-width: 0; }
.cafe-stats__product-dialog-head .cafe-stats__caption { overflow-wrap: anywhere; }
.cafe-stats__product-close { justify-content: center; flex: 0 0 36px; min-height: 36px; padding: 6px; }
.cafe-stats__product-period { margin-bottom: 10px; }
.cafe-stats__product-period .cafe-stats-calendar { max-height: calc(100dvh - 135px); }
.cafe-stats__products-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cafe-stats__product-search { width: min(100%, 224px); min-height: 36px; padding: 7px 10px; }
.cafe-stats__products-scroll {
  height: min(53dvh, 460px); margin-top: 12px; overflow: auto; scrollbar-gutter: stable; overscroll-behavior: contain;
  border-top: 1px solid var(--stats-line); border-bottom: 1px solid var(--stats-line);
}
.cafe-stats__product-table { margin-top: 0; }
.cafe-stats__product-table thead { position: sticky; top: 0; z-index: 1; background: #f8f9fb; }
.cafe-stats__product-table :is(th, td) { padding: 9px 12px; }
.cafe-stats__product-table :is(th, td):last-child { padding-right: 12px; }
.cafe-stats__product-table td:first-child { width: 48%; }
.cafe-stats__product-table th button, .cafe-stats__product-expand {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; border-radius: 3px;
  background: transparent; color: inherit; font: inherit; text-align: inherit;
}
.cafe-stats__product-table th button { white-space: nowrap; }
.cafe-stats__product-table th button:hover { color: var(--stats-ink); }
.cafe-stats__product-table th[aria-sort] button { color: var(--stats-ink); font-weight: var(--admin-weight-medium); }
.cafe-stats__sort-short { display: none; }
.cafe-stats__product-expand { text-align: start; }
.cafe-stats__product-expand > span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.cafe-stats__product-expand > i { flex-shrink: 0; color: var(--stats-muted); font-size: 11px; }
.cafe-stats__product-expand:hover { color: var(--stats-orange-dark); }
.cafe-stats__variant { background: #f7f8fa; }
.cafe-stats__virtual { display: table; margin-top: 3px; padding: 1px 5px; border-radius: 4px; background: #eef1f5; color: var(--stats-muted); font-size: 10px; font-weight: var(--admin-weight-medium); }
.cafe-stats__product-table .cafe-stats__variant td:first-child { padding-inline-start: 31px; color: var(--stats-muted); font-weight: var(--admin-weight-regular); }
.cafe-stats__product-trend { font-weight: var(--admin-weight-medium); white-space: nowrap; }
.cafe-stats__product-trend[data-trend="up"] { color: var(--admin-trend-positive); }
.cafe-stats__product-trend[data-trend="down"] { color: var(--admin-trend-negative); }
.cafe-stats__product-trend[data-trend="neutral"], .cafe-stats__new-product { color: var(--stats-muted); }
.cafe-stats__product-table .cafe-stats__product-empty { padding-block: 22px; color: var(--stats-muted); text-align: center; font-weight: var(--admin-weight-regular); }
.cafe-stats__products-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 42px; margin-top: 7px; }
.cafe-stats__pagination { display: flex; align-items: center; gap: 7px; }
.cafe-stats__pagination button { min-height: 30px; padding: 5px 7px; }
.cafe-stats__pagination button:disabled { opacity: .48; }
.cafe-stats__highlight { margin-top: 14px; display: flex; gap: 8px 13px; align-items: baseline; flex-wrap: wrap; }
.cafe-stats__highlight strong { font-size: 26px; line-height: 1.2; font-weight: var(--admin-weight-semibold); }
.cafe-stats__empty { margin-top: 12px !important; color: var(--stats-muted); font-size: 14px; }

@media (max-width: 1250px) {
  .cafe-stats__tick[data-tick="wide"] { visibility: hidden; }
}
@media (max-width: 1000px) {
  .cafe-stats__three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cafe-stats__three > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .cafe-stats__hero { grid-template-columns: minmax(0, 1fr); }
  .cafe-stats__key { border-inline-end: 0; border-bottom: 1px solid var(--stats-line); }
  .cafe-stats__product-previous { display: none; }
}
@media (max-width: 767.98px) {
  :root[data-admin-workspace="company"] .sidebar .admin-workspace-label { display: none; }
}
@media (max-width: 560px) {
  .cafe-stats__bar-label { display: none; }
  .cafe-stats__product-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .cafe-stats__three { grid-template-columns: minmax(0, 1fr); }
  .cafe-stats__filters { align-items: stretch; }
  .cafe-stats__switch button { padding-inline: 8px; font-size: 13px; }
  :is(.cafe-stats__filters, .cafe-stats__product-period) > .cafe-stats__switch { width: 100%; }
  :is(.cafe-stats__filters, .cafe-stats__product-period) > .cafe-stats__switch button { padding-inline: 0; font-size: clamp(11px, 3.25vw, 13px); }
  .cafe-stats__key .cafe-stats__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .cafe-stats__key .cafe-stats__metrics > div { flex-direction: column; gap: 1px; }
  .cafe-stats__key .cafe-stats__metrics > div:nth-child(2) { border-top: 0; }
  .cafe-stats__key .cafe-stats__metrics dd { justify-content: start; text-align: start; }
  .cafe-stats__breakdown-row { gap: 7px; }
  .cafe-stats__breakdown-icon { width: 28px; height: 28px; }
  .cafe-stats__products-filters { width: 100%; }
  .cafe-stats__sort-full { display: none; }
  .cafe-stats__sort-short { display: inline; }
  .cafe-stats__product-search { width: 100%; }
  .cafe-stats__product-table :is(th, td) { padding-inline: 4px; }
  .cafe-stats__product-table :is(th, td):last-child { padding-right: 4px; }
  .cafe-stats__product-table th button, .cafe-stats__product-expand { gap: 2px; }
  .cafe-stats__product-table .cafe-stats__variant td:first-child { padding-inline-start: 13px; }
  .cafe-stats__tick[data-tick="regular"] { visibility: hidden; }
  .cafe-stats__table :is(th, td) { font-size: 12px; }
}
@media (max-width: 360px) {
  .cafe-stats__product-sheet { padding-inline: 10px; }
  .cafe-stats__product-table :is(th, td) { font-size: 11px; }
  .cafe-stats__product-trend > i { display: none; }
}

.cafe-stats__compare-dialog {
  width: min(720px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--stats-line); border-radius: 14px; background: var(--stats-surface);
  color: var(--stats-ink); box-shadow: 0 15px 55px #24293429;
}
.cafe-stats__compare-dialog::backdrop { background: #25283255; }
.cafe-stats__compare-sheet { padding: clamp(14px, 2.4vw, 24px); }
.cafe-stats__compare-head { flex-wrap: nowrap; align-items: flex-start; margin-bottom: 15px; }
.cafe-stats__compare-close { justify-content: center; flex: 0 0 36px; min-height: 36px; padding: 6px; }
.cafe-stats__compare-summary {
  display: flex; align-items: center; gap: 9px; min-height: 42px; margin-bottom: 12px; padding: 8px 12px;
  border-radius: 9px; background: #f0f2f6; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere;
}
.cafe-stats__compare-summary > i { flex: none; color: var(--stats-orange-dark); font-size: 16px; }
.cafe-stats__compare-grid { overflow: hidden; border: 1px solid var(--stats-line); border-radius: 11px; }
.cafe-stats__compare-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.cafe-stats__compare-table :is(th, td) { padding: 11px 12px; text-align: start; }
.cafe-stats__compare-table thead { background: #f8f9fb; }
.cafe-stats__compare-table thead th { vertical-align: top; }
.cafe-stats__compare-table thead th:first-child { width: 27%; }
.cafe-stats__compare-table tbody tr { border-top: 1px solid var(--stats-line); }
.cafe-stats__compare-table tbody th { color: var(--stats-muted); font-size: 13px; font-weight: var(--admin-weight-regular); line-height: 1.3; }
.cafe-stats__compare-table td { font-size: 14px; font-weight: var(--admin-weight-medium); overflow-wrap: anywhere; }
.cafe-stats__compare-table tr[data-metric="revenue"] td { font-size: clamp(15px, 2.6vw, 23px); font-weight: var(--admin-weight-semibold); line-height: 1.2; }
.cafe-stats__compare-table .cafe-stats__compare-choice {
  grid-template-columns: minmax(0, 1fr) 12px; gap: 5px; min-height: 44px; padding: 6px 8px;
}
.cafe-stats__compare-choice .cafe-stats__cafe-icon { display: none; }
.cafe-stats__compare-choice .cafe-stats__cafe-text small { white-space: normal; overflow-wrap: anywhere; }
.cafe-stats__compare-table .cafe-stats__compare-choice:hover { border-color: #ccd2dc; background: #f4f6f9; }
.cafe-stats__compare-side-period { margin-top: 4px !important; color: var(--stats-muted); font-size: 11px; font-weight: var(--admin-weight-regular); }
.cafe-stats__compare-track { display: block; height: 5px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: #edf0f4; }
.cafe-stats__compare-track > span { display: block; inline-size: 0; height: 100%; border-radius: inherit; background: #aab4c4; }
.cafe-stats__compare-track > [data-leading] { background: var(--stats-orange); }
.cafe-stats__compare-retry {
  padding: 2px 0; margin-top: 4px; border: 0; border-radius: 3px;
  background: transparent; color: var(--stats-orange-dark); font-size: 12px; font-weight: var(--admin-weight-medium);
}
.cafe-stats__compare-retry:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .cafe-stats__compare-table :is(th, td) { padding-inline: 6px; }
  .cafe-stats__compare-table thead th:first-child { width: 26%; }
  .cafe-stats__compare-table .cafe-stats__compare-choice {
    grid-template-columns: minmax(0, 1fr) 8px; gap: 2px 4px; min-height: 55px; padding-inline: 5px; align-content: start;
  }
  .cafe-stats__compare-choice .cafe-stats__cafe-text { display: contents; }
  .cafe-stats__compare-choice .cafe-stats__cafe-text strong { grid-area: 1 / 1; font-size: 12px; }
  .cafe-stats__compare-choice .cafe-stats__cafe-text small { grid-area: 2 / 1 / 3 / -1; }
  .cafe-stats__compare-choice .cafe-stats__cafe-arrow { grid-area: 1 / 2; }
  .cafe-stats__compare-choice .cafe-stats__cafe-text small, .cafe-stats__compare-choice .cafe-stats__cafe-arrow { font-size: 10px; }
  .cafe-stats__compare-table tbody th { font-size: 12px; }
}

.cafe-stats__cafe-choice, .cafe-stats__cafe-option {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; align-items: center; gap: 8px;
  width: 100%; min-width: 0; padding: 6px 10px; border: 1px solid var(--stats-line); border-radius: 9px;
  background: var(--stats-surface); color: var(--stats-ink); text-align: start; line-height: 1.3;
}
.cafe-stats__cafe-choice { min-height: 41px; }
.cafe-stats__cafe-choice:hover:not(:disabled) { border-color: #dfb294; background: #fffbf8; }
.cafe-stats__cafe-choice:disabled { opacity: .58; cursor: default; }
.cafe-stats__cafe-icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px;
  background: var(--stats-orange-soft); color: var(--stats-orange-dark); font-size: 14px;
}
.cafe-stats__cafe-text { display: grid; gap: 2px; min-width: 0; }
.cafe-stats__cafe-text strong { font-size: 14px; font-weight: var(--admin-weight-medium); }
.cafe-stats__cafe-text small { color: var(--stats-muted); font-size: 12px; }
.cafe-stats__cafe-choice .cafe-stats__cafe-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cafe-stats__cafe-arrow { justify-self: end; color: var(--stats-muted); font-size: 12px; }

.cafe-stats__head-actions > .cafe-stats__header-cafe {
  grid-template-columns: 16px minmax(0, 1fr) 12px;
  gap: 6px; width: auto; max-width: min(320px, 100%); min-height: 36px; padding: 6px 8px;
  border: 0; border-radius: 8px; background: transparent;
}
.cafe-stats__head-actions > .cafe-stats__header-cafe:is(:hover, [aria-expanded="true"]):not(:disabled) {
  background: #e9edf2;
}
.cafe-stats__header-cafe .cafe-stats__cafe-icon {
  width: auto; height: auto; background: transparent; color: var(--stats-muted); font-size: 15px;
}
.cafe-stats__header-cafe .cafe-stats__cafe-arrow { transform: rotate(90deg); }
.cafe-stats__header-cafe .cafe-stats__cafe-text { display: flex; align-items: baseline; gap: 6px; }
.cafe-stats__header-cafe .cafe-stats__cafe-text strong { font-size: 13px; font-weight: var(--admin-weight-medium); }
.cafe-stats__header-cafe .cafe-stats__cafe-text strong:not(:only-child) { flex: none; max-width: 55%; }
.cafe-stats__header-cafe .cafe-stats__cafe-text small { min-width: 0; font-size: 13px; }
.cafe-stats__header-cafe .cafe-stats__cafe-text small::before {
  content: ''; display: inline-block; width: 3px; height: 3px; margin-inline-end: 6px;
  border-radius: 50%; background: currentColor; vertical-align: .24em;
}
@media (max-width: 560px) {
  .cafe-stats__head-actions > .cafe-stats__header-cafe { grid-template-columns: 14px minmax(0, 1fr) 10px; gap: 4px; padding-inline: 4px; }
  .cafe-stats__header-cafe .cafe-stats__cafe-text { gap: 4px; }
  .cafe-stats__header-cafe .cafe-stats__cafe-text small { font-size: 12px; }
  .cafe-stats__header-cafe .cafe-stats__cafe-text small::before { margin-inline-end: 4px; }
}

.cafe-stats__cafe-picker {
  --cafe-picker-height: min(550px, calc(100dvh - 24px));
  --cafe-picker-enter: translateY(8px) scale(.985);
  width: min(410px, calc(100% - 24px)); max-width: none; max-height: var(--cafe-picker-height);
  padding: 0; overflow: hidden; border: 1px solid var(--stats-line); border-radius: 14px;
  background: var(--stats-surface); color: var(--stats-ink); box-shadow: 0 14px 44px #24293430;
  opacity: 0; transform: var(--cafe-picker-enter); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease-out, display .18s allow-discrete, overlay .18s allow-discrete;
}
.cafe-stats__cafe-picker[open] { opacity: 1; transform: none; pointer-events: auto; }
.cafe-stats__cafe-picker[data-cafe-picker-main] {
  --cafe-picker-top: clamp(62px, 12vh, 124px);
  --cafe-picker-height: min(550px, calc(100dvh - var(--cafe-picker-top) - 16px));
  --cafe-picker-enter: translateY(-8px) scale(.985);
  inset: auto; inset-block-start: var(--cafe-picker-top); inset-inline-end: clamp(16px, 3vw, 48px); margin: 0;
}
.cafe-stats__cafe-picker::backdrop {
  background-color: transparent; pointer-events: none;
  transition: background-color .18s ease, display .18s allow-discrete, overlay .18s allow-discrete;
}
.cafe-stats__cafe-picker[open]::backdrop { background-color: #25283240; pointer-events: auto; }
@starting-style {
  .cafe-stats__cafe-picker[open] { opacity: 0; transform: var(--cafe-picker-enter); }
  .cafe-stats__cafe-picker[open]::backdrop { background-color: transparent; }
}
@media (max-width: 767.98px) {
  .cafe-stats__cafe-picker[data-cafe-picker-main] {
    --cafe-picker-height: min(550px, calc(100dvh - 28px));
    --cafe-picker-enter: translateY(12px);
    inset: auto 12px 12px; margin-inline: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cafe-stats__cafe-picker, .cafe-stats__cafe-picker::backdrop { transition: none; }
}
.cafe-stats__cafe-sheet {
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(var(--cafe-picker-height) - 2px);
}
.cafe-stats__cafe-header { display: grid; gap: 9px; padding: 12px 16px; border-bottom: 1px solid var(--stats-line); background: #f8f9fb; }
.cafe-stats__cafe-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cafe-stats__cafe-close {
  display: grid; place-items: center; flex: 0 0 32px; min-height: 32px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--stats-muted); font-size: 14px;
}
.cafe-stats__cafe-close:hover { background: #e9edf2; color: var(--stats-ink); }
.cafe-stats__cafe-search { position: relative; }
.cafe-stats__cafe-search > i {
  position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%);
  color: var(--stats-muted); font-size: 14px; pointer-events: none;
}
.cafe-stats__cafe-search > input { min-height: 40px; padding-inline-start: 35px; border-radius: 8px; font-size: 14px; }
.cafe-stats__cafe-options {
  display: grid; align-content: start; gap: 2px; min-height: 0; margin: 0; padding: 8px 10px; list-style: none;
  overflow: auto; overscroll-behavior: contain;
}
.cafe-stats__cafe-options > li:has([data-cafe-picker-option=""]):not(:last-child) {
  padding-bottom: 4px; border-bottom: 1px solid var(--stats-line); margin-bottom: 2px;
}
.cafe-stats__cafe-option { grid-template-columns: 20px minmax(0, 1fr) 16px; min-height: 46px; border: 0; }
.cafe-stats__cafe-option:hover { background: var(--stats-bg); }
.cafe-stats__cafe-option[aria-pressed="true"] { background: #eef1f5; }
.cafe-stats__cafe-option .cafe-stats__cafe-text { overflow-wrap: anywhere; }
.cafe-stats__cafe-option .cafe-stats__cafe-icon { width: auto; height: auto; background: transparent; color: var(--stats-muted); }
.cafe-stats__cafe-check { justify-self: end; color: var(--stats-orange-dark); font-size: 16px; }
.cafe-stats .cafe-stats__cafe-option:focus-visible { outline-offset: -1px; }
.cafe-stats .cafe-stats__cafe-empty { padding: 14px 16px; }

.cafe-stats__cafe-footer { padding: 6px 10px; border-top: 1px solid var(--stats-line); }
.cafe-stats__cafe-compare {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) 12px; align-items: center; gap: 9px;
  width: 100%; min-height: 36px; padding: 6px 9px; border: 0; border-radius: 7px;
  background: transparent; color: var(--stats-muted); font: inherit; font-size: 13px; font-weight: var(--admin-weight-medium); text-align: start;
}
.cafe-stats__cafe-compare:hover:not(:disabled) { background: var(--stats-bg); color: var(--stats-ink); }
.cafe-stats__cafe-compare:disabled { opacity: .48; }
