:root {
  --bg: #f4efe8;
  --surface: #fffdf9;
  --ink: #251f1a;
  --muted: #786d64;
  --accent: #5f3c28;
  --accent-strong: #402719;
  --line: #e8ddd2;
  --success: #27754d;
  --shadow: 0 18px 55px rgba(57, 39, 28, .10);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.customer-shell, .barista-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.customer-shell { padding: 54px 0 80px; }

.hero, .barista-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 34px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 9px;
}
h1 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: .98; letter-spacing: -.04em; }
.hero p { margin: 15px 0 0; color: var(--muted); font-size: 17px; }
.ghost-link {
  color: var(--ink);
  text-decoration: none;
  background: rgba(255,255,255,.45);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  white-space: nowrap;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.drink-card {
  position: relative;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  padding: 26px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.drink-card:hover { transform: translateY(-4px); box-shadow: 0 24px 65px rgba(57, 39, 28, .14); border-color: #d9c8b8; }
.drink-card:active { transform: translateY(-1px) scale(.995); }
.drink-card.sending { opacity: .72; }
.drink-icon { font-size: 52px; line-height: 1; margin-bottom: auto; }
.drink-name { display: block; font-weight: 800; font-size: 27px; letter-spacing: -.025em; }
.drink-price { display: block; margin-top: 7px; color: var(--muted); font-size: 16px; }
.order-hint {
  position: absolute;
  right: 22px;
  bottom: 22px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 750;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: #201a16;
  color: white;
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
  max-width: calc(100% - 32px);
  text-align: center;
  font-weight: 700;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.barista-body { background: #161310; color: #f7f0e9; min-height: 100vh; }
.barista-shell { padding: 36px 0 70px; }
.barista-header { align-items: center; margin-bottom: 24px; }
.barista-header .eyebrow { color: #d7b497; }
.barista-header h1 { font-size: clamp(34px, 4vw, 56px); }
.barista-actions { display: flex; gap: 10px; align-items: center; }
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c1b8b0;
  background: #211c18;
  border: 1px solid #342c26;
  padding: 10px 12px;
  border-radius: 999px;
}
.connection span { width: 8px; height: 8px; background: #9d514c; border-radius: 50%; }
.connection.online span { background: #50c58b; box-shadow: 0 0 0 4px rgba(80,197,139,.12); }
.secondary-btn {
  background: #211c18;
  border: 1px solid #3a312a;
  color: #ded5ce;
  border-radius: 12px;
  padding: 10px 13px;
  cursor: pointer;
}
.queue-meta {
  display: flex;
  justify-content: space-between;
  color: #988f88;
  border-bottom: 1px solid #302924;
  padding: 0 2px 14px;
  margin-bottom: 18px;
  font-size: 15px;
}
.orders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.order-card {
  background: #211c18;
  border: 1px solid #372f29;
  border-radius: 24px;
  padding: 20px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}
.order-card.first { border-color: #8f674c; box-shadow: 0 0 0 1px rgba(205,157,122,.18) inset; }
.order-top { display: flex; align-items: center; justify-content: space-between; }
.order-number { font-size: 24px; font-weight: 900; }
.order-time { color: #a69d95; font-size: 15px; }
.order-drink { display: flex; gap: 14px; align-items: center; margin: 32px 0; }
.order-emoji { font-size: 44px; }
.order-drink h2 { margin: 0; font-size: 27px; letter-spacing: -.03em; }
.order-drink p { margin: 4px 0 0; color: #a69d95; }
.done-btn {
  margin-top: auto;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #f0e1d3;
  color: #2c211b;
  font-weight: 850;
  padding: 14px 16px;
  cursor: pointer;
}
.done-btn:hover { background: white; }
.done-btn:disabled { opacity: .5; }
.empty-state {
  text-align: center;
  color: #aaa098;
  padding: 90px 20px;
}
.empty-state[hidden] { display: none; }
.empty-icon { font-size: 52px; filter: grayscale(.3); opacity: .75; }
.empty-state h2 { margin: 16px 0 6px; color: #efe7e0; }
.empty-state p { margin: 0; }

@media (max-width: 850px) {
  .menu-grid, .orders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .barista-header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 540px) {
  .customer-shell, .barista-shell { width: min(100% - 20px, 1180px); }
  .customer-shell { padding-top: 30px; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .drink-card { min-height: 185px; padding: 18px; border-radius: 20px; }
  .drink-icon { font-size: 39px; }
  .drink-name { font-size: 20px; }
  .drink-price { font-size: 14px; }
  .order-hint { display: none; }
  .orders-grid { grid-template-columns: 1fr; }
  .barista-actions { width: 100%; justify-content: space-between; }
}

/* v0.2 — подтверждение заказа, топинги и активный заказ */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(25, 18, 14, .55); backdrop-filter: blur(5px); }
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(34, 23, 17, .28);
  padding: 26px;
}
.modal-open { overflow: hidden; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: #f2e9e0; color: var(--ink); font-size: 25px; cursor: pointer;
}
.modal-drink { display: flex; align-items: center; gap: 18px; padding-right: 44px; }
.modal-emoji { font-size: 54px; }
.modal-card h2 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.modal-price { margin-top: 6px; color: var(--muted); font-weight: 700; }
.toppings-section { margin-top: 24px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title-row h3 { margin: 0; font-size: 18px; }
.section-title-row span { color: var(--muted); font-size: 13px; }
.toppings-list { display: grid; gap: 9px; }
.topping-option {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: #fff; border-radius: 16px;
  padding: 13px 14px; cursor: pointer;
}
.topping-option input { position: absolute; opacity: 0; pointer-events: none; }
.topping-check {
  width: 24px; height: 24px; border-radius: 8px; border: 1px solid #d8c8ba;
  display: grid; place-items: center; color: transparent; background: #fbf7f2;
  font-size: 14px; font-weight: 900;
}
.topping-option:has(input:checked) { border-color: #b7977e; background: #fbf5ef; }
.topping-option:has(input:checked) .topping-check { background: var(--accent); color: white; border-color: var(--accent); }
.topping-option.disabled { opacity: .46; cursor: not-allowed; }
.topping-name { font-weight: 700; }
.topping-price { color: var(--muted); font-size: 14px; }
.confirm-summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 12px;
}
.confirm-summary > div { background: #f3ece5; border-radius: 16px; padding: 13px 14px; }
.confirm-summary span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.confirm-summary strong { font-size: 19px; }
.confirm-btn {
  width: 100%; border: 0; border-radius: 16px; background: var(--accent); color: white;
  padding: 15px 18px; font-weight: 850; cursor: pointer; font-size: 16px;
}
.confirm-btn:hover { background: var(--accent-strong); }
.confirm-btn:disabled { opacity: .55; cursor: wait; }

.active-order {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: #2f241e;
  color: white;
  border-radius: 22px;
  padding: 17px 20px;
  margin: 0;
  box-shadow: 0 14px 40px rgba(51, 35, 25, .16);
}
.active-orders-panel { margin: -8px 0 24px; }
.active-orders-panel[hidden] { display: none; }
.active-orders-panel > .active-order { margin: 0; }
.my-orders-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.my-orders-header > div { display: flex; flex-direction: column; gap: 2px; }
.my-orders-header .active-label { font-size: 10px; font-weight: 850; letter-spacing: .14em; color: var(--muted); }
.my-orders-header strong { font-size: 22px; letter-spacing: -.03em; }
.my-orders-header > span { color: var(--muted); font-size: 13px; }
.my-orders-list { display: grid; gap: 10px; }
.my-orders-list .active-order { box-shadow: 0 10px 28px rgba(51, 35, 25, .12); }
.active-order-number { font-size: 30px; font-weight: 950; letter-spacing: -.04em; }
.active-order-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.active-order-copy .active-label { font-size: 10px; font-weight: 850; letter-spacing: .14em; color: #d5b9a5; }
.active-order-copy strong { font-size: 19px; }
.active-order-copy > span:last-child { color: #d9d0ca; font-size: 14px; }
.eta-badge { text-align: right; background: rgba(255,255,255,.08); border-radius: 14px; padding: 9px 12px; }
.eta-badge small { display: block; color: #cbbfb7; font-size: 10px; margin-bottom: 2px; }
.eta-badge b { font-size: 17px; }
.active-order.ready { background: #235e42; }
.active-order-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: white; color: #235e42; font-size: 22px; font-weight: 950; }
.dismiss-order { border: 0; border-radius: 12px; padding: 10px 13px; background: white; color: #235e42; font-weight: 800; cursor: pointer; }

.queue-position {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 12px;
  background: #2b241f;
  border: 1px solid #40362f;
  color: #cdbeb2;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}
.order-card.first .queue-position { background: #3b2c23; border-color: #76523c; color: #ead1bf; }
.barista-toppings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -12px 0 18px;
  min-height: 26px;
}
.barista-toppings span {
  background: #302923;
  border: 1px solid #453b33;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  color: #ddd0c5;
}
.barista-toppings.muted { color: #7f756d; font-size: 12px; }

@media (max-width: 540px) {
  .modal { padding: 8px; align-items: end; }
  .modal-card { border-radius: 24px 24px 16px 16px; padding: 20px; max-height: 88vh; }
  .modal-card h2 { font-size: 29px; }
  .modal-emoji { font-size: 46px; }
  .confirm-summary { grid-template-columns: 1fr 1fr; }
  .active-order { grid-template-columns: auto 1fr; padding: 15px; }
  .my-orders-header { align-items: flex-start; flex-direction: column; gap: 2px; }
  .my-orders-header > span { font-size: 12px; }
  .eta-badge { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; justify-content: space-between; }
  .dismiss-order { grid-column: 1 / -1; width: 100%; }
}

/* v0.4 — меню кофейни, размеры, счётчики и авторизация бариста */
.customer-hero { align-items: center; }
.cups-pill {
  display: flex; align-items: center; gap: 11px;
  background: #2f5f21; color: white; border-radius: 18px;
  padding: 11px 15px; min-width: 148px; box-shadow: 0 10px 26px rgba(47,95,33,.18);
}
.cups-pill > span { font-size: 25px; }
.cups-pill > div { display: flex; flex-direction: column; line-height: 1.08; }
.cups-pill small { font-size: 10px; opacity: .72; text-transform: uppercase; letter-spacing: .08em; }
.cups-pill strong { font-size: 16px; margin-top: 3px; }

.menu-sections { display: grid; gap: 32px; }
.menu-category { display: grid; gap: 14px; }
.category-heading { display: flex; align-items: center; gap: 12px; }
.category-heading::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.category-heading span {
  display: inline-flex; background: #476c2e; color: white; border-radius: 8px;
  padding: 8px 12px; font-weight: 850; letter-spacing: .01em;
}
.drink-card { min-height: 220px; }
.variant-preview {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-right: 4px;
  color: var(--muted); font-size: 11px; line-height: 1.2;
}
.variant-preview span { background: #f3ece5; border-radius: 999px; padding: 5px 7px; }
.variant-preview b { color: var(--ink); }

.size-section { margin-top: 24px; }
.sizes-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.size-option {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--line); background: #fff; border-radius: 15px;
  padding: 12px; cursor: pointer; min-width: 0;
}
.size-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option span { font-size: 13px; color: var(--muted); }
.size-option strong { font-size: 15px; white-space: nowrap; }
.size-option:has(input:checked) { border-color: #7a9b61; background: #f0f6eb; box-shadow: 0 0 0 1px #7a9b61 inset; }

.barista-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.barista-stats { display: flex; gap: 8px; }
.barista-stat {
  min-width: 118px; background: #211c18; border: 1px solid #342c26;
  border-radius: 14px; padding: 9px 12px; display: flex; flex-direction: column;
}
.barista-stat small { color: #948b84; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.barista-stat strong { margin-top: 2px; font-size: 16px; }

.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #161310; color: #f7f0e9; }
.login-shell { width: min(430px, 100%); }
.login-card {
  background: #211c18; border: 1px solid #3a312a; border-radius: 28px;
  padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.login-card .eyebrow { color: #bddd9d; }
.login-card h1 { font-size: 38px; }
.login-card > p { color: #aaa098; line-height: 1.45; margin-bottom: 24px; }
.login-icon { font-size: 46px; margin-bottom: 18px; }
.login-card form { display: grid; gap: 14px; }
.login-card label { display: grid; gap: 7px; color: #cfc5bd; font-size: 13px; font-weight: 700; }
.login-card input {
  width: 100%; background: #171411; border: 1px solid #43382f; color: white;
  border-radius: 13px; padding: 13px 14px; outline: none;
}
.login-card input:focus { border-color: #88a96f; box-shadow: 0 0 0 3px rgba(136,169,111,.12); }
.login-error { background: #4a2424; color: #ffd3d3; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.login-card .confirm-btn { margin-top: 4px; background: #dfead5; color: #22331a; }
.login-card .confirm-btn:hover { background: #eef7e7; }

@media (min-width: 650px) {
  .toppings-list { grid-template-columns: 1fr 1fr; }
  .modal-card { width: min(650px, 100%); }
}

@media (max-width: 850px) {
  .barista-header-right { align-items: stretch; width: 100%; }
  .barista-stats { width: 100%; }
  .barista-stat { flex: 1; }
}

@media (max-width: 540px) {
  .customer-hero { gap: 18px; }
  .cups-pill { width: 100%; justify-content: center; }
  .menu-sections { gap: 26px; }
  .category-heading span { font-size: 14px; }
  .drink-card { min-height: 205px; }
  .variant-preview { font-size: 10px; }
  .sizes-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .barista-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .barista-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .connection { grid-column: 1 / -1; justify-content: center; }
}

/* v0.5/v0.6 — пользовательская авторизация через Telegram */
.customer-hero-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.account-pill {
  border: 1px solid #d7cbbf;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(67, 47, 34, .07);
  text-align: left;
}
.account-pill:hover { border-color: #aebfa1; background: #fbfdf9; }
.account-pill.logged-in { border-color: #a8be98; background: #f4f9f0; }
.account-pill .account-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #2aabee;
  color: white;
  font-size: 17px;
  transform: rotate(-8deg);
}
.account-pill > span:last-child { display: flex; min-width: 0; flex-direction: column; line-height: 1.08; }
.account-pill small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.account-pill strong { margin-top: 4px; font-size: 13px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-auth-hint { margin: 10px 4px 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.35; }
.order-auth-hint[hidden] { display: none; }

.auth-card { width: min(510px, 100%); }
.auth-brand { display: flex; gap: 14px; align-items: center; padding-right: 42px; margin-bottom: 18px; }
.auth-brand h2 { font-size: 30px; }
.telegram-logo {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #2aabee;
  color: white;
  font-size: 27px;
  transform: rotate(-7deg);
  box-shadow: 0 10px 22px rgba(42,171,238,.22);
}
.auth-step { display: grid; gap: 13px; }
.auth-step[hidden] { display: none; }
.auth-step > p { margin: 0 0 2px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.auth-field { display: grid; gap: 7px; }
.auth-field > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.auth-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  padding: 14px 15px;
  font-size: 18px;
  outline: none;
  color: var(--ink);
}
.auth-field input:focus { border-color: #73985c; box-shadow: 0 0 0 3px rgba(115,152,92,.12); }
.code-field input { text-align: center; letter-spacing: .26em; font-size: 25px; font-weight: 850; }
.auth-error {
  margin-top: 12px;
  border-radius: 13px;
  padding: 10px 12px;
  background: #fff0ef;
  color: #8d3029;
  border: 1px solid #f2ccc8;
  font-size: 13px;
  line-height: 1.4;
}
.auth-error[hidden] { display: none; }
.auth-note { margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.text-btn {
  border: 0;
  background: transparent;
  color: #4f7338;
  padding: 5px 8px;
  font-weight: 750;
  cursor: pointer;
}
.text-btn:disabled { color: #aaa29a; cursor: default; }
.dev-code-hint {
  background: #fff5c9;
  border: 1px dashed #bda64e;
  color: #66571f;
  border-radius: 12px;
  padding: 9px 11px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.dev-code-hint[hidden] { display: none; }

@media (max-width: 720px) {
  .customer-hero-actions { width: 100%; justify-content: stretch; }
  .account-pill, .cups-pill { flex: 1 1 150px; }
}

@media (max-width: 540px) {
  .customer-hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .account-pill, .cups-pill { width: 100%; min-width: 0; justify-content: flex-start; }
  .account-pill strong { max-width: 116px; }
  .auth-card { max-height: 88vh; }
  .auth-brand h2 { font-size: 26px; }
}

/* v0.6 — бесплатная авторизация через собственного Telegram-бота */
.bot-auth-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 3px;
}
.bot-auth-steps > div {
  min-width: 0;
  border: 1px solid var(--line);
  background: #faf7f3;
  border-radius: 14px;
  padding: 11px 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  text-align: center;
}
.bot-auth-steps b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2aabee;
  color: white;
  font-size: 12px;
}
.bot-auth-steps span { font-size: 11px; color: var(--muted); line-height: 1.25; }
.telegram-open-btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2aabee;
}
.telegram-open-btn:hover { background: #179edc; }
.auth-status {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d7e7ce;
  background: #f7fbf4;
  border-radius: 15px;
  padding: 12px 13px;
}
.auth-status > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.auth-status strong { font-size: 13px; }
.auth-status small { color: var(--muted); line-height: 1.35; font-size: 11px; }
.auth-status.opened { border-color: #b9d8e8; background: #f1f9fd; }
.auth-status.success { border-color: #9fc38d; background: #eef8e8; }
.auth-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 3px solid #d7e7ce;
  border-top-color: #5c8744;
  animation: auth-spin .9s linear infinite;
}
.auth-check {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #5d8a45;
  color: white;
  font-weight: 900;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 430px) {
  .bot-auth-steps { grid-template-columns: 1fr; }
  .bot-auth-steps > div { flex-direction: row; text-align: left; }
}

/* v0.7 — история пользователей, живой ETA и настройки бариста */
.barista-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  padding: 5px;
  border: 1px solid #332b25;
  background: #1d1916;
  border-radius: 16px;
  width: fit-content;
}
.barista-tab {
  border: 0;
  background: transparent;
  color: #a69d95;
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.barista-tab span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #302923;
  font-size: 11px;
}
.barista-tab.active { background: #f0e1d3; color: #2c211b; }
.barista-tab.active span { background: rgba(44,33,27,.12); }
.barista-tab[hidden], .barista-view[hidden] { display: none !important; }

.queue-position {
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.queue-timer-label { opacity: .65; font-weight: 600; }
.queue-countdown {
  min-width: 44px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: #f1dfd0;
}
.queue-countdown.overdue { color: #ff9d91; }
.eta-badge b.overdue { color: #ffd0c9; }

.history-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.history-toolbar h2 { margin: 3px 0 0; font-size: 28px; }
.history-search {
  width: min(360px, 100%);
  background: #211c18;
  border: 1px solid #3a312a;
  color: #f7f0e9;
  border-radius: 13px;
  padding: 12px 14px;
  outline: none;
}
.history-search:focus { border-color: #80644f; box-shadow: 0 0 0 3px rgba(128,100,79,.15); }
.history-layout {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.customer-history-list {
  display: grid;
  gap: 9px;
  max-height: 68vh;
  overflow: auto;
  padding-right: 3px;
}
.customer-history-card {
  width: 100%;
  text-align: left;
  border: 1px solid #352e28;
  background: #211c18;
  color: #f1e8e0;
  border-radius: 17px;
  padding: 14px;
  cursor: pointer;
  display: grid;
  gap: 7px;
}
.customer-history-card:hover { border-color: #604d3f; }
.customer-history-card.active { border-color: #9c765a; background: #2a211c; box-shadow: 0 0 0 1px rgba(209,164,130,.14) inset; }
.customer-history-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.customer-history-head strong { font-size: 16px; }
.customer-history-card > span { color: #9f958d; font-size: 12px; }
.customer-history-stats { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.customer-history-stats b { color: #d7e9c5; }
.customer-history-stats span { color: #c8beb6; }
.customer-history-card small { color: #766f69; }
.active-dot { background: #305b40; color: #c9efd7; border-radius: 999px; padding: 4px 7px; font-size: 10px; font-weight: 800; }

.customer-history-detail {
  min-height: 420px;
  background: #211c18;
  border: 1px solid #352e28;
  border-radius: 22px;
  padding: 20px;
}
.history-placeholder, .history-loading {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: #918780;
}
.history-placeholder h3 { color: #e9dfd7; margin: 12px 0 3px; }
.history-placeholder p { margin: 0; }
.history-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid #332c26;
  padding-bottom: 16px;
  margin-bottom: 10px;
}
.history-detail-header h3 { margin: 3px 0 4px; font-size: 25px; }
.history-detail-header span { color: #9f958d; font-size: 13px; }
.history-detail-header > strong { color: #b9a99d; font-size: 13px; white-space: nowrap; }
.history-orders { display: grid; }
.history-order-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 2px;
  border-bottom: 1px solid #302924;
}
.history-order-row:last-child { border-bottom: 0; }
.history-order-main { display: flex; gap: 12px; min-width: 0; }
.history-order-emoji { font-size: 28px; }
.history-order-main > div { min-width: 0; display: grid; gap: 2px; }
.history-order-main strong { font-size: 15px; }
.history-order-main span { color: #bbb0a7; font-size: 13px; }
.history-order-main small { color: #776e67; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-order-meta { display: grid; justify-items: end; gap: 5px; color: #8e857e; font-size: 11px; }
.history-order-meta b { border-radius: 999px; padding: 4px 7px; font-size: 10px; }
.status-done { background: #27553b; color: #cef0d9; }
.status-active { background: #5d452b; color: #ffe0b7; }

.barista-settings-modal[hidden] { display: none; }
.barista-settings-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 18px; }
.barista-settings-backdrop { position: absolute; inset: 0; background: rgba(8,7,6,.68); backdrop-filter: blur(5px); }
.barista-settings-card {
  position: relative;
  width: min(620px, 100%);
  background: #211c18;
  border: 1px solid #41372f;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 34px 100px rgba(0,0,0,.42);
}
.settings-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.settings-title-row h2 { margin: 3px 0 0; font-size: 30px; }
.settings-close {
  width: 38px; height: 38px; border: 1px solid #41372f; border-radius: 11px;
  background: #171411; color: #dfd4cc; font-size: 23px; cursor: pointer;
}
.settings-list { display: grid; gap: 9px; margin: 20px 0 14px; }
.setting-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px;
  background: #181512;
  border: 1px solid #342d27;
  border-radius: 16px;
  cursor: pointer;
}
.setting-row > div { display: grid; gap: 4px; }
.setting-row strong { font-size: 15px; }
.setting-row span { color: #918780; font-size: 12px; line-height: 1.35; }
.setting-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui {
  width: 45px; height: 25px; border-radius: 999px; background: #463c35; position: relative;
  transition: .18s ease; flex: none;
}
.toggle-ui::after {
  content: ''; position: absolute; width: 19px; height: 19px; border-radius: 50%;
  top: 3px; left: 3px; background: #b9ada4; transition: .18s ease;
}
.setting-row input:checked + .toggle-ui { background: #557440; }
.setting-row input:checked + .toggle-ui::after { transform: translateX(20px); background: white; }
.settings-note { color: #9d938b; font-size: 12px; line-height: 1.45; padding: 3px 2px 13px; }
.settings-note b { color: #d9cec6; }
.settings-save { margin-top: 4px; }

@media (max-width: 760px) {
  .history-toolbar { align-items: stretch; flex-direction: column; }
  .history-search { width: 100%; }
  .history-layout { grid-template-columns: 1fr; }
  .customer-history-list { max-height: none; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .customer-history-detail { min-height: 300px; }
}
@media (max-width: 540px) {
  .barista-tabs { width: 100%; }
  .barista-tab { flex: 1; padding: 9px 8px; font-size: 12px; }
  .barista-actions { grid-template-columns: 1fr 1fr; }
  .barista-actions .connection { grid-column: 1 / -1; }
  .customer-history-list { grid-template-columns: 1fr; }
  .history-order-row { grid-template-columns: 1fr; }
  .history-order-meta { justify-items: start; grid-template-columns: auto auto; justify-content: space-between; }
  .barista-settings-modal { padding: 8px; align-items: end; }
  .barista-settings-card { border-radius: 22px 22px 14px 14px; padding: 18px; }
}

/* v0.8 — переработанный кабинет бариста */
.barista-v08 {
  --b-bg: #0f1110;
  --b-panel: #171a18;
  --b-panel-2: #1d211e;
  --b-card: #202421;
  --b-border: #2d332f;
  --b-border-soft: #252a27;
  --b-text: #f4f5f1;
  --b-muted: #949c96;
  --b-green: #a9d989;
  --b-green-strong: #73b653;
  --b-green-dark: #284321;
  --b-amber: #e8bd7b;
  --b-red: #e98d83;
  background: var(--b-bg);
  color: var(--b-text);
}
.barista-v08 .toast { z-index: 260; background: #f3f5f1; color: #182018; border-radius: 14px; }
.barista-app { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.barista-sidebar {
  min-height: 100vh; height: 100vh; position: sticky; top: 0; padding: 28px 20px 20px;
  border-right: 1px solid var(--b-border-soft); background: #121513; display: flex; flex-direction: column;
}
.barista-brand { display: flex; align-items: center; gap: 12px; padding: 0 5px 24px; }
.brand-mark { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; background: #e8f3df; color: #20321b; font-size: 22px; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.barista-brand > div:last-child { display: grid; gap: 2px; }
.barista-brand strong { font-size: 16px; letter-spacing: -.01em; }
.barista-brand span { font-size: 11px; color: var(--b-muted); }
.sidebar-connection { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; padding: 12px; margin-bottom: 22px; border-radius: 14px; background: #181b19; border: 1px solid var(--b-border-soft); }
.sidebar-connection .connection-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #b1645b; box-shadow: 0 0 0 4px rgba(177,100,91,.08); }
.sidebar-connection.online .connection-dot { background: #70c075; box-shadow: 0 0 0 4px rgba(112,192,117,.09); }
.sidebar-connection div { display: grid; gap: 3px; }
.sidebar-connection strong { font-size: 12px; font-weight: 800; }
.sidebar-connection small { font-size: 10px; line-height: 1.35; color: #778079; }
.barista-side-nav { display: grid; gap: 7px; }
.side-nav-item { width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 14px; background: transparent; color: #aab0ab; text-align: left; cursor: pointer; transition: .16s ease; }
.side-nav-item:hover { background: #1a1e1b; color: #e8eae6; }
.side-nav-item.active { background: #232923; color: #f6f7f4; box-shadow: inset 0 0 0 1px #313a31; }
.side-nav-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #1b1f1c; font-size: 18px; color: #929b93; }
.side-nav-item.active .side-nav-icon { background: #dfeeda; color: #274320; }
.side-nav-copy { display: grid; gap: 1px; min-width: 0; }
.side-nav-copy b { font-size: 13px; }
.side-nav-copy small { font-size: 10px; color: #727a73; }
.nav-badge { min-width: 25px; height: 25px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: #313832; color: #dce2dc; font-size: 11px; font-weight: 850; }
.side-nav-item.active .nav-badge { background: #baddaa; color: #24341f; }
.side-nav-item[hidden] { display: none !important; }
.barista-sidebar-bottom { margin-top: auto; display: grid; gap: 7px; padding-top: 18px; border-top: 1px solid #202420; }
.barista-build-info { display: grid; gap: 3px; padding: 0 4px 10px; color: #778079; }
.barista-build-info strong { color: #c4c9c1; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.barista-build-info span { font-size: 10px; line-height: 1.35; }
.side-action-btn { border: 0; background: transparent; color: #9da49e; border-radius: 12px; padding: 11px 12px; display: flex; gap: 10px; align-items: center; cursor: pointer; text-align: left; }
.side-action-btn:hover { background: #1a1e1b; color: #f0f2ef; }
.side-action-btn.danger-soft:hover { background: #271b1a; color: #f2aaa2; }
.side-action-btn > span:first-child { width: 24px; text-align: center; font-size: 17px; }
.side-action-btn > span:last-child { font-size: 12px; font-weight: 750; }

.barista-main { min-width: 0; width: min(1500px, 100%); margin: 0 auto; padding: 34px 38px 70px; }
.barista-topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 26px; }
.barista-breadcrumb, .section-kicker, .detail-overline, .settings-kicker { font-size: 10px; font-weight: 900; letter-spacing: .15em; color: #7e8a80; }
.barista-title-block h1 { margin: 6px 0 0; font-size: clamp(30px, 3.2vw, 48px); line-height: 1; letter-spacing: -.04em; }
.barista-title-block p { margin: 9px 0 0; color: var(--b-muted); font-size: 13px; }
.topbar-clock { min-width: 112px; padding: 11px 14px; border: 1px solid var(--b-border); border-radius: 14px; background: var(--b-panel); display: grid; justify-items: end; }
.topbar-clock span { font-size: 9px; text-transform: uppercase; letter-spacing: .11em; color: #767e77; }
.topbar-clock strong { font-size: 23px; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.barista-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.barista-kpi { min-height: 86px; padding: 14px 16px; display: flex; gap: 13px; align-items: center; border-radius: 18px; border: 1px solid var(--b-border-soft); background: var(--b-panel); }
.barista-kpi.kpi-accent { background: linear-gradient(135deg, #21331d, #1b2619); border-color: #354b2f; }
.kpi-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #242925; color: #a7afa8; font-size: 18px; font-weight: 900; }
.kpi-accent .kpi-icon { background: #dcebd4; color: #2a4623; }
.barista-kpi > div:last-child { display: grid; gap: 2px; }
.barista-kpi small { color: #858d86; font-size: 10px; }
.barista-kpi strong { font-size: 24px; line-height: 1; letter-spacing: -.04em; }
.barista-view[hidden] { display: none !important; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 0 0 15px; }
.section-title-row { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.section-title-row h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.soft-count { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 999px; background: #1f2420; border: 1px solid #2d332e; color: #909991; font-size: 10px; font-weight: 800; }
.queue-legend { display: flex; gap: 13px; color: #737c75; font-size: 10px; }
.queue-legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #566058; }
.legend-dot.next { background: #a7da88; box-shadow: 0 0 0 3px rgba(167,218,136,.08); }
.barista-orders-v08 { grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 13px; }
.order-card-v08 { min-height: 320px; background: var(--b-panel); border: 1px solid var(--b-border); border-radius: 20px; padding: 16px; box-shadow: none; transition: border-color .16s ease, transform .16s ease; }
.order-card-v08:hover { border-color: #414942; transform: translateY(-1px); }
.order-card-v08.first { background: linear-gradient(145deg, #1d281b, #181e18 65%); border-color: #4f7044; box-shadow: inset 0 0 0 1px rgba(168,216,137,.05); }
.order-card-head-v08 { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #292e2a; }
.order-id-block { display: grid; gap: 1px; }
.order-number-v08 { font-size: 22px; font-weight: 950; letter-spacing: -.04em; }
.order-created-v08 { font-size: 9px; color: #737b74; }
.queue-state-chip { max-width: 130px; padding: 6px 8px; border-radius: 999px; background: #282e29; color: #9da69e; font-size: 9px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-state-chip.is-next { background: #dcebd4; color: #2b4824; }
.order-main-v08 { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 18px 0 14px; }
.order-emoji-v08 { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: #242a25; font-size: 28px; }
.first .order-emoji-v08 { background: #263523; }
.order-name-v08 { min-width: 0; }
.order-name-v08 h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-name-v08 p { margin: 3px 0 0; color: #8e978f; font-size: 11px; }
.order-price-v08 { font-size: 12px; font-weight: 850; color: #c8cec9; white-space: nowrap; }
.barista-v08 .barista-toppings { margin: 0 0 13px; min-height: 25px; gap: 5px; }
.barista-v08 .barista-toppings span { padding: 5px 7px; border-radius: 8px; background: #222723; border-color: #303631; color: #a9b0aa; font-size: 9px; }
.barista-v08 .barista-toppings.muted span { color: #6e766f; }
.order-timer-v08 { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 13px; background: #131613; border: 1px solid #252a26; }
.order-timer-v08 > div { display: grid; gap: 1px; }
.order-timer-v08 span { color: #a4aca5; font-size: 10px; font-weight: 800; }
.order-timer-v08 small { color: #626a63; font-size: 8px; }
.order-timer-v08 strong { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: #e9eee8; }
.order-timer-v08 strong.overdue { color: var(--b-red); }
.done-btn-v08 { margin-top: 9px; border-radius: 12px; padding: 11px 13px; background: #e6f1df; color: #22331d; font-size: 11px; display: flex; justify-content: center; align-items: center; gap: 7px; }
.done-btn-v08:hover { background: #f1f8ed; }
.done-btn-v08 span { font-size: 13px; }
.barista-empty { margin-top: 12px; min-height: 360px; border: 1px dashed #2c322d; border-radius: 22px; display: grid; place-items: center; align-content: center; padding: 50px 20px; background: rgba(25,29,26,.35); }
.barista-empty[hidden] { display: none; }
.empty-illustration { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #1e231f; border: 1px solid #2c322d; font-size: 30px; opacity: .8; }
.barista-empty h2 { margin: 16px 0 5px; font-size: 19px; }
.barista-empty p { max-width: 410px; font-size: 11px; color: #788078; }

.history-section-head { align-items: flex-end; }
.history-search-wrap { width: min(360px, 100%); height: 41px; display: grid; grid-template-columns: 34px 1fr; align-items: center; border: 1px solid var(--b-border); background: var(--b-panel); border-radius: 13px; overflow: hidden; transition: .15s ease; }
.history-search-wrap:focus-within { border-color: #516153; box-shadow: 0 0 0 3px rgba(98,120,99,.09); }
.history-search-wrap > span { color: #7c857d; text-align: center; font-size: 18px; }
.barista-v08 .history-search { width: 100%; height: 100%; border: 0; padding: 0 12px 0 0; background: transparent; color: #eff2ee; border-radius: 0; box-shadow: none; font-size: 11px; }
.barista-v08 .history-search:focus { border: 0; box-shadow: none; }
.history-layout-v08 { grid-template-columns: 320px minmax(0, 1fr); gap: 13px; }
.history-layout-v08[hidden] { display: none; }
.history-customers-panel { min-width: 0; padding: 12px; border-radius: 19px; background: #151815; border: 1px solid var(--b-border-soft); }
.history-panel-label { padding: 1px 4px 10px; color: #747d75; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.barista-v08 .customer-history-list { max-height: calc(100vh - 320px); min-height: 400px; gap: 6px; padding: 0 2px 0 0; }
.customer-card-v08 { min-height: 74px; display: grid; grid-template-columns: 39px minmax(0,1fr) 16px; align-items: center; gap: 10px; padding: 9px; border: 1px solid transparent; background: transparent; border-radius: 13px; }
.customer-card-v08:hover { background: #1b1f1c; border-color: #272d28; }
.customer-card-v08.active { background: #222823; border-color: #38423a; box-shadow: none; }
.customer-avatar-v08 { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; background: #252b26; color: #c3cbc4; font-size: 11px; font-weight: 900; }
.customer-card-v08.active .customer-avatar-v08 { background: #dcebd5; color: #294522; }
.customer-card-body-v08 { min-width: 0; display: grid; gap: 2px; }
.customer-card-title-v08 { min-width: 0; display: flex; gap: 6px; align-items: center; }
.customer-card-title-v08 strong { min-width: 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-card-title-v08 em { min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; background: #4d3823; color: #f0c893; font-size: 8px; font-style: normal; font-weight: 850; }
.customer-card-body-v08 > small { font-size: 8px; color: #707871; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-card-stats-v08 { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 8px; color: #7c847d; }
.customer-card-stats-v08 b { color: #aacb98; font-weight: 800; }
.customer-card-stats-v08 i { font-style: normal; opacity: .45; }
.customer-card-arrow { color: #596159; font-size: 18px; }
.history-list-empty { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 3px; color: #697169; text-align: center; }
.history-list-empty > span { font-size: 23px; }
.history-list-empty strong { font-size: 11px; color: #aeb5ae; }
.history-list-empty small { font-size: 9px; }
.history-detail-v08 { min-height: 520px; padding: 0; overflow: hidden; background: #151815; border-color: var(--b-border-soft); border-radius: 19px; }
.customer-detail-hero-v08 { padding: 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid #252b26; background: linear-gradient(110deg, #1c211d, #171a18); }
.customer-detail-profile-v08 { display: flex; gap: 13px; align-items: center; min-width: 0; }
.customer-big-avatar-v08 { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: #e2eedb; color: #294522; font-size: 16px; font-weight: 950; }
.customer-detail-profile-v08 > div:last-child { min-width: 0; }
.customer-detail-profile-v08 h3 { margin: 4px 0 2px; font-size: 20px; letter-spacing: -.025em; }
.customer-detail-profile-v08 p { margin: 0; color: #808981; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.last-order-label { text-align: right; color: #727a73; font-size: 8px; line-height: 1.45; }
.last-order-label b { color: #aeb5af; font-size: 9px; }
.customer-detail-kpis-v08 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid #252b26; }
.customer-detail-kpis-v08 > div { padding: 13px 16px; display: grid; gap: 3px; border-right: 1px solid #252b26; }
.customer-detail-kpis-v08 > div:last-child { border-right: 0; }
.customer-detail-kpis-v08 small { color: #737c74; font-size: 8px; }
.customer-detail-kpis-v08 strong { font-size: 15px; color: #e2e7e2; }
.purchase-history-head-v08 { padding: 17px 18px 10px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.purchase-history-head-v08 h4 { margin: 3px 0 0; font-size: 15px; }
.history-filters-v08 { display: flex; padding: 3px; gap: 2px; border-radius: 10px; background: #101310; border: 1px solid #252b26; }
.history-filter-btn { border: 0; border-radius: 7px; padding: 6px 8px; background: transparent; color: #707971; font-size: 8px; font-weight: 800; cursor: pointer; }
.history-filter-btn.active { background: #292f2a; color: #e0e5e0; }
.history-orders-v08 { padding: 0 12px 14px; }
.history-order-v08 { grid-template-columns: 54px 36px minmax(0,1fr) auto 72px; gap: 10px; min-height: 62px; padding: 9px 6px; border-bottom: 1px solid #222722; }
.history-order-date-v08 { display: grid; gap: 1px; }
.history-order-date-v08 strong { font-size: 10px; color: #b5bcb6; }
.history-order-date-v08 span { font-size: 8px; color: #646c65; }
.history-order-emoji-v08 { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #202521; font-size: 18px; }
.history-order-copy-v08 { min-width: 0; display: grid; gap: 2px; }
.history-order-copy-v08 strong { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-order-copy-v08 span { color: #737c74; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-order-price-v08 { font-size: 10px; white-space: nowrap; color: #c7cdc8; }
.history-status-v08 { width: 70px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 6px; border-radius: 999px; font-size: 8px; font-weight: 850; }
.history-status-v08 i { width: 5px; height: 5px; border-radius: 50%; }
.history-status-v08.done { background: #203324; color: #a8d2ad; }
.history-status-v08.done i { background: #72ba7a; }
.history-status-v08.active { background: #3a2d1f; color: #e1bd89; }
.history-status-v08.active i { background: #dba95f; }
.filtered-empty-v08 { min-height: 150px; display: grid; place-items: center; color: #697169; font-size: 10px; }
.history-loading-v08 { min-height: 500px; gap: 9px; align-content: center; }
.history-loading-v08 > span { width: 24px; height: 24px; border: 2px solid #303631; border-top-color: #a7d48b; border-radius: 50%; animation: auth-spin .8s linear infinite; }
.history-loading-v08 b { font-size: 10px; color: #767e77; }
.empty-user-avatar { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #202521; font-size: 26px; }
.history-mobile-back { display: none; }

.settings-drawer-modal { place-items: stretch end; padding: 0; }
.settings-drawer-modal .barista-settings-backdrop { opacity: 0; transition: opacity .18s ease; background: rgba(4,6,4,.62); backdrop-filter: blur(3px); }
.settings-drawer-modal.opened .barista-settings-backdrop { opacity: 1; }
.settings-drawer { width: min(510px, 100%); height: 100vh; max-height: 100vh; border-radius: 0; border-width: 0 0 0 1px; padding: 0; background: #151815; transform: translateX(100%); transition: transform .18s ease; box-shadow: -20px 0 70px rgba(0,0,0,.32); overflow-y: auto; display: flex; flex-direction: column; }
.settings-drawer-modal.opened .settings-drawer { transform: translateX(0); }
.settings-drawer-head { display: flex; justify-content: space-between; gap: 16px; padding: 25px 24px 18px; border-bottom: 1px solid #252b26; }
.settings-drawer-head h2 { margin: 5px 0 0; font-size: 26px; letter-spacing: -.03em; }
.settings-drawer-head p { margin: 6px 0 0; color: #737b74; font-size: 10px; }
.barista-v08 .settings-close { width: 36px; height: 36px; border-radius: 11px; background: #1d211e; border-color: #2c322d; color: #9ea69f; }
.bot-status-card { margin: 18px 24px 3px; min-height: 64px; padding: 12px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; border-radius: 14px; border: 1px solid #303630; background: #1b1f1c; }
.bot-status-card.configured { background: #19251a; border-color: #2b422d; }
.bot-status-card.not-configured { background: #261d1b; border-color: #44302c; }
.bot-status-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #29302a; color: #aab1ab; font-weight: 900; }
.configured .bot-status-icon { background: #2b4a2e; color: #bfe1c1; }
.not-configured .bot-status-icon { background: #4b2f2a; color: #ebb0a8; }
.bot-status-card > div:last-child { display: grid; gap: 2px; }
.bot-status-card strong { font-size: 11px; }
.bot-status-card span { color: #788079; font-size: 9px; }
.settings-group { padding: 19px 24px 0; }
.settings-group-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.settings-group-title > span { font-size: 10px; font-weight: 850; color: #c6ccc7; }
.settings-group-title > small { font-size: 8px; color: #626a63; }
.barista-v08 .settings-list { margin: 0; }
.setting-card-v08 { grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; padding: 11px; min-height: 70px; margin-bottom: 7px; border-radius: 14px; background: #1a1e1b; border-color: #292f2a; }
.setting-card-v08:hover { border-color: #394139; background: #1d211e; }
.setting-leading { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #242925; color: #9da59e; font-size: 16px; }
.setting-leading.telegram-setting { background: #1d2b34; color: #94c8e8; }
.setting-copy { display: grid; gap: 3px; }
.barista-v08 .setting-row strong { font-size: 10px; }
.barista-v08 .setting-row .setting-copy span { color: #737b74; font-size: 8px; line-height: 1.35; }
.barista-v08 .toggle-ui { width: 40px; height: 22px; background: #343a35; }
.barista-v08 .toggle-ui::after { width: 16px; height: 16px; background: #8f9790; }
.barista-v08 .setting-row input:checked + .toggle-ui { background: #5e9149; }
.barista-v08 .setting-row input:checked + .toggle-ui::after { transform: translateX(18px); background: #fff; }
.settings-save-bar { position: sticky; bottom: 0; margin-top: auto; padding: 14px 24px 18px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; background: linear-gradient(to top, #151815 72%, rgba(21,24,21,.92)); border-top: 1px solid #252b26; }
.drawer-cancel-btn { border: 1px solid #303630; border-radius: 11px; background: #1b1f1c; color: #9da59e; padding: 11px 12px; font-size: 10px; font-weight: 800; cursor: pointer; }
.barista-v08 .settings-save { margin: 0; border-radius: 11px; padding: 11px 12px; font-size: 10px; }

@media (max-width: 1180px) {
  .barista-app { grid-template-columns: 225px minmax(0,1fr); }
  .barista-sidebar { padding-left: 14px; padding-right: 14px; }
  .barista-main { padding-left: 25px; padding-right: 25px; }
  .barista-orders-v08 { grid-template-columns: repeat(2,minmax(250px,1fr)); }
  .history-layout-v08 { grid-template-columns: 280px minmax(0,1fr); }
  .customer-detail-kpis-v08 { grid-template-columns: repeat(2,1fr); }
  .customer-detail-kpis-v08 > div:nth-child(2) { border-right: 0; }
  .customer-detail-kpis-v08 > div:nth-child(-n+2) { border-bottom: 1px solid #252b26; }
}
@media (max-width: 900px) {
  .barista-app { display: block; }
  .barista-sidebar { position: static; width: 100%; min-height: 0; height: auto; padding: 12px 15px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border-right: 0; border-bottom: 1px solid #252a27; }
  .barista-brand { padding: 0; }
  .barista-brand > div:last-child, .sidebar-connection, .side-nav-copy small, .barista-build-info { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .barista-side-nav { display: flex; justify-content: center; }
  .side-nav-item { width: auto; grid-template-columns: 32px auto auto; padding: 6px 9px; }
  .side-nav-icon { width: 32px; height: 32px; }
  .barista-sidebar-bottom { margin: 0; padding: 0; border: 0; display: flex; }
  .side-action-btn { padding: 8px; }
  .side-action-btn > span:last-child { display: none; }
  .barista-main { padding: 24px 18px 55px; }
  .history-layout-v08 { grid-template-columns: 1fr; }
  .barista-v08 .customer-history-list { max-height: none; min-height: 0; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .history-detail-v08 { min-height: 440px; }
}
@media (max-width: 640px) {
  .barista-sidebar { grid-template-columns: auto 1fr auto; gap: 5px; padding: 9px 10px; }
  .side-nav-item { grid-template-columns: 30px auto; padding: 5px 7px; }
  .side-nav-copy small, .nav-badge { display: none; }
  .barista-side-nav { gap: 2px; }
  .barista-main { padding: 20px 10px 45px; }
  .barista-topbar { align-items: center; }
  .barista-title-block p { display: none; }
  .barista-title-block h1 { font-size: 29px; }
  .topbar-clock { min-width: 88px; }
  .barista-kpis { grid-template-columns: 1fr 1fr; gap: 7px; }
  .barista-kpi { min-height: 72px; padding: 10px; }
  .barista-kpi:nth-child(3) { grid-column: 1 / -1; }
  .kpi-icon { width: 36px; height: 36px; }
  .barista-kpi strong { font-size: 20px; }
  .section-head, .history-section-head { align-items: stretch; flex-direction: column; }
  .queue-legend { display: none; }
  .history-search-wrap { width: 100%; }
  .barista-orders-v08 { grid-template-columns: 1fr; }
  .order-card-v08 { min-height: 295px; }
  .barista-v08 .customer-history-list { grid-template-columns: 1fr; }
  .customer-detail-hero-v08 { align-items: flex-start; flex-direction: column; }
  .last-order-label { text-align: left; }
  .customer-detail-kpis-v08 { grid-template-columns: repeat(2,1fr); }
  .purchase-history-head-v08 { align-items: stretch; flex-direction: column; }
  .history-filters-v08 { width: fit-content; }
  .history-order-v08 { grid-template-columns: 44px 34px minmax(0,1fr) auto; }
  .history-order-price-v08 { grid-column: 3; }
  .history-status-v08 { grid-column: 4; grid-row: 1 / span 2; }
  .settings-drawer { width: 100%; }
  .settings-drawer-head, .settings-group { padding-left: 16px; padding-right: 16px; }
  .bot-status-card { margin-left: 16px; margin-right: 16px; }
  .settings-save-bar { padding-left: 16px; padding-right: 16px; }
}

/* Coffee Talk branding — v0.9 */
.coffee-talk-logo {
  display: block;
  object-fit: contain;
  border-radius: 14px;
}

.customer-brand-block {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.customer-logo {
  width: 190px;
  max-width: 34vw;
  height: auto;
  box-shadow: 0 8px 28px rgba(47, 35, 24, .08);
}

.coffee-talk-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.coffee-talk-sidebar-brand .barista-logo {
  width: 100%;
  max-width: 190px;
  height: auto;
  border-radius: 12px;
}

.coffee-talk-sidebar-brand > span {
  font-size: 12px;
  opacity: .72;
  padding-left: 2px;
}

.login-brand-logo {
  width: 220px;
  max-width: 80%;
  height: auto;
  margin: 0 auto 18px;
  box-shadow: 0 10px 30px rgba(47, 35, 24, .10);
}

@media (max-width: 720px) {
  .customer-brand-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .customer-logo {
    width: 160px;
    max-width: 65vw;
  }
}

/* Coffee Talk v1.0 — стоп-лист */
.drink-card.stopped,
.drink-card.stopped:hover {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
  filter: saturate(.45);
  box-shadow: none;
}
.drink-card.stopped .drink-icon { filter: grayscale(.55); }
.drink-stop-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(151, 55, 45, .12);
  color: #9e493e;
  border: 1px solid rgba(151, 55, 45, .18);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
}
.topping-option.stopped {
  opacity: .5;
  cursor: not-allowed;
  background: rgba(120, 70, 62, .035);
}
.topping-option.stopped .topping-name small {
  font-size: .82em;
  color: #a65f54;
  font-weight: 800;
}

.stoplist-badge { transition: .18s ease; }
.stoplist-badge.has-items {
  background: #7b352f;
  color: #ffd9d3;
}
.stoplist-section-head { align-items: end; }
.stoplist-help {
  margin: 7px 0 0;
  color: #697169;
  font-size: 10px;
}
.stoplist-search-wrap { min-width: 300px; }
.stoplist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 14px;
}
.stoplist-type-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: #171b18;
  border: 1px solid #252b26;
}
.stoplist-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7d857e;
  padding: 8px 12px;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.stoplist-type-btn span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #282e29;
  color: #9ca49d;
  text-align: center;
  font-size: 8px;
}
.stoplist-type-btn.active {
  background: #282e29;
  color: #eef2ee;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.stoplist-type-btn.active span { background: #394039; color: #d9dfda; }
.stoplist-legend { display: flex; gap: 15px; color: #717972; font-size: 9px; }
.stoplist-legend span { display: inline-flex; align-items: center; gap: 6px; }
.availability-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.availability-dot.available { background: #72ba7a; box-shadow: 0 0 0 4px rgba(114,186,122,.08); }
.availability-dot.stopped { background: #c8665b; box-shadow: 0 0 0 4px rgba(200,102,91,.08); }
.stoplist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
}
.stoplist-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #282e29;
  background: #181c19;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.stoplist-card:hover { border-color: #3b433c; transform: translateY(-1px); }
.stoplist-card.is-stopped { background: #211918; border-color: #49302c; }
.stoplist-item-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #242a25;
  font-size: 21px;
  font-weight: 900;
  color: #9fa7a0;
}
.stoplist-card.is-stopped .stoplist-item-icon { background: #382321; filter: saturate(.7); }
.stoplist-item-copy { min-width: 0; display: grid; gap: 3px; }
.stoplist-item-copy strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stoplist-item-copy small { color: #6f7770; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stoplist-state-label { color: #77b77d; font-size: 7px; font-weight: 950; letter-spacing: .09em; }
.stoplist-card.is-stopped .stoplist-state-label { color: #d17a70; }
.stoplist-switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; cursor: pointer; }
.stoplist-switch input { position: absolute; opacity: 0; pointer-events: none; }
.stoplist-switch > span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #344337;
  border: 1px solid #445548;
  transition: .16s ease;
}
.stoplist-switch > span::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #bcd0bf;
  box-shadow: 0 2px 5px rgba(0,0,0,.22);
  transition: .16s ease;
}
.stoplist-switch input:checked + span { background: #713b35; border-color: #895047; }
.stoplist-switch input:checked + span::after { transform: translateX(20px); background: #f1b0a7; }
.stoplist-switch input:disabled + span { opacity: .55; cursor: wait; }

@media (max-width: 1180px) {
  .stoplist-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 640px) {
  .stoplist-section-head { align-items: stretch; }
  .stoplist-search-wrap { min-width: 0; width: 100%; }
  .stoplist-toolbar { align-items: stretch; flex-direction: column; }
  .stoplist-legend { padding-left: 2px; }
  .stoplist-grid { grid-template-columns: 1fr; }
}

/* Coffee Talk — nonstop barista display v1.1 */
.nonstop-launch-btn { text-decoration: none; }
.nonstop-launch-btn:hover { background: #1c251b; color: #cce7bc; }

.nonstop-body {
  margin: 0;
  min-height: 100vh;
  background: #0b0d0b;
  color: #f5f7f2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
.nonstop-body * { box-sizing: border-box; }
.nonstop-header {
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px 8px 18px;
  background: rgba(11,13,11,.96);
  border-bottom: 1px solid #202420;
  backdrop-filter: blur(12px);
}
.nonstop-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.nonstop-brand img { width: 86px; height: 50px; object-fit: cover; object-position: center; border-radius: 9px; }
.nonstop-brand > div { display: grid; gap: 1px; }
.nonstop-brand > div span { color: #758076; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.nonstop-brand > div strong { font-size: 17px; line-height: 1.1; letter-spacing: -.02em; }
.nonstop-count {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #dcebd4;
  color: #253b20;
  font-size: 15px;
  font-weight: 900;
}
.nonstop-statusbar { display: flex; align-items: center; gap: 9px; }
.nonstop-connection { display: flex; align-items: center; gap: 6px; color: #717a72; font-size: 10px; font-weight: 800; }
.nonstop-connection i { width: 7px; height: 7px; border-radius: 50%; background: #b45f58; box-shadow: 0 0 0 4px rgba(180,95,88,.08); }
.nonstop-connection.online { color: #9aad9b; }
.nonstop-connection.online i { background: #73c47b; box-shadow: 0 0 0 4px rgba(115,196,123,.08); }
.nonstop-statusbar time { min-width: 66px; font-size: 21px; font-weight: 850; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.nonstop-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #2a302b;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #151815;
  color: #a7afa8;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.nonstop-icon-btn:hover { background: #202520; color: #f3f5f1; border-color: #3a423b; }

.nonstop-stage { min-height: calc(100vh - 68px); padding: 14px; }
.nonstop-grid {
  display: grid;
  gap: 12px;
  align-items: stretch;
  min-height: calc(100vh - 96px);
}
.nonstop-grid.count-1 { grid-template-columns: minmax(480px, 780px); justify-content: center; }
.nonstop-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nonstop-grid.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nonstop-grid.count-4-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nonstop-grid.count-many { grid-template-columns: repeat(4, minmax(260px, 1fr)); }
.nonstop-grid[hidden] { display: none; }

.nonstop-order {
  min-width: 0;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #2a302b;
  border-radius: 22px;
  background: #151815;
  box-shadow: 0 12px 38px rgba(0,0,0,.12);
}
.nonstop-order.next {
  background: linear-gradient(145deg, #1c2919, #141914 72%);
  border-color: #5c8450;
  box-shadow: inset 0 0 0 1px rgba(175,220,146,.06), 0 12px 44px rgba(0,0,0,.18);
}
.nonstop-order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.nonstop-order-top > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.nonstop-order-number { font-size: clamp(34px, 3vw, 52px); line-height: .9; font-weight: 950; letter-spacing: -.055em; }
.nonstop-created { color: #697169; font-size: 11px; font-weight: 700; }
.nonstop-position { padding: 7px 9px; border-radius: 999px; background: #282d29; color: #929a93; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.nonstop-position.next { background: #dfeeda; color: #284420; }
.nonstop-drink { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 13px; align-items: center; margin: 28px 0 15px; }
.nonstop-emoji { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: #222723; font-size: 31px; }
.nonstop-order.next .nonstop-emoji { background: #e0edd8; }
.nonstop-drink h2 { margin: 0; font-size: clamp(23px, 2vw, 34px); line-height: 1; letter-spacing: -.045em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nonstop-drink p { margin: 7px 0 0; color: #939b94; font-size: 14px; font-weight: 750; }
.nonstop-toppings { display: flex; flex-wrap: wrap; gap: 6px; min-height: 31px; margin-bottom: 18px; }
.nonstop-toppings span { padding: 6px 9px; border: 1px solid #303631; border-radius: 9px; background: #202421; color: #b4bbb5; font-size: 11px; font-weight: 700; }
.nonstop-toppings.muted span { color: #626a63; }
.nonstop-timer {
  margin-top: auto;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #282e29;
  border-radius: 15px;
  background: #0f120f;
}
.nonstop-timer > span { color: #7c857e; font-size: 10px; font-weight: 900; letter-spacing: .09em; }
.nonstop-countdown { color: #f0f4ed; font-size: clamp(30px, 3vw, 44px); line-height: 1; font-weight: 900; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.nonstop-countdown.overdue { color: #ee9389; }
.nonstop-done {
  margin-top: 10px;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #e4f1dd;
  color: #21351c;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .05em;
  cursor: pointer;
}
.nonstop-done:hover { background: #f0f8ec; }
.nonstop-done:disabled { opacity: .55; cursor: wait; }
.nonstop-done span { margin-right: 7px; }

.nonstop-empty {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: #6e776f;
}
.nonstop-empty[hidden] { display: none; }
.nonstop-empty-icon { width: 86px; height: 86px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 26px; background: #171b18; border: 1px solid #252b26; font-size: 40px; }
.nonstop-empty strong { color: #c9ceca; font-size: 26px; letter-spacing: -.03em; }
.nonstop-empty span { margin-top: 7px; font-size: 12px; }
.nonstop-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  max-width: min(520px, calc(100vw - 30px));
  padding: 11px 16px;
  border-radius: 13px;
  background: #edf2e9;
  color: #1f2b1c;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 16px 50px rgba(0,0,0,.32);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: .18s ease;
}
.nonstop-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1280px) {
  .nonstop-grid.count-many { grid-template-columns: repeat(3, minmax(250px, 1fr)); }
  .nonstop-drink h2 { font-size: 25px; }
}
@media (max-width: 900px) {
  .nonstop-brand > div { display: none; }
  .nonstop-brand img { width: 72px; height: 42px; }
  .nonstop-connection span { display: none; }
  .nonstop-grid.count-3, .nonstop-grid.count-4-6, .nonstop-grid.count-many { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .nonstop-header { height: 58px; padding: 7px 8px; }
  .nonstop-brand img { width: 58px; height: 38px; }
  .nonstop-count { min-width: 30px; height: 30px; font-size: 13px; }
  .nonstop-statusbar { gap: 5px; }
  .nonstop-statusbar time { min-width: 55px; font-size: 18px; }
  .nonstop-icon-btn { width: 34px; height: 34px; }
  .nonstop-stage { min-height: calc(100vh - 58px); padding: 8px; }
  .nonstop-grid, .nonstop-grid.count-1, .nonstop-grid.count-2, .nonstop-grid.count-3, .nonstop-grid.count-4-6, .nonstop-grid.count-many { grid-template-columns: 1fr; min-height: auto; }
  .nonstop-order { min-height: 300px; padding: 14px; border-radius: 18px; }
  .nonstop-drink { margin-top: 21px; }
}

@media (min-width: 1500px) and (min-height: 850px) {
  .nonstop-grid.count-1 .nonstop-order,
  .nonstop-grid.count-2 .nonstop-order,
  .nonstop-grid.count-3 .nonstop-order { min-height: calc(100vh - 96px); }
  .nonstop-grid.count-1 .nonstop-drink h2,
  .nonstop-grid.count-2 .nonstop-drink h2,
  .nonstop-grid.count-3 .nonstop-drink h2 { font-size: clamp(34px, 2.7vw, 52px); }
  .nonstop-grid.count-1 .nonstop-countdown,
  .nonstop-grid.count-2 .nonstop-countdown,
  .nonstop-grid.count-3 .nonstop-countdown { font-size: clamp(48px, 4vw, 70px); }
  .nonstop-grid.count-1 .nonstop-order-number,
  .nonstop-grid.count-2 .nonstop-order-number,
  .nonstop-grid.count-3 .nonstop-order-number { font-size: clamp(52px, 4vw, 72px); }
}

/* v1.2 — mobile barista dashboard + Telegram recipient */
.telegram-recipient-field {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #2b312c;
  border-radius: 12px;
  background: #191d1a;
}
.telegram-recipient-field label { display:block; margin-bottom:7px; color:#eef2ee; font-size:10px; font-weight:850; }
.telegram-recipient-field input {
  width:100%; box-sizing:border-box; border:1px solid #343b35; border-radius:10px;
  background:#101310; color:#fff; padding:11px 12px; outline:none; font:inherit;
}
.telegram-recipient-field input:focus { border-color:#6ea455; box-shadow:0 0 0 3px rgba(110,164,85,.12); }
.telegram-recipient-field small { display:block; margin-top:7px; color:#7f8980; font-size:8px; line-height:1.45; }

@media (max-width: 640px) {
  .barista-body { padding-bottom: 72px; }
  .barista-app { display:block; min-height:100vh; }
  .barista-sidebar {
    position:fixed !important; left:0; right:0; bottom:0; top:auto; z-index:120;
    width:100% !important; height:64px !important; min-height:0 !important;
    display:block !important; padding:6px 8px !important;
    border:0 !important; border-top:1px solid #252a27 !important;
    background:rgba(17,20,18,.98); backdrop-filter:blur(14px);
  }
  .barista-brand, .sidebar-connection, .barista-sidebar-bottom { display:none !important; }
  .barista-side-nav { display:grid !important; grid-template-columns:repeat(3,1fr); gap:4px; height:100%; }
  .side-nav-item {
    display:flex !important; flex-direction:column; justify-content:center; align-items:center;
    gap:2px; width:100% !important; min-width:0; padding:4px 2px !important; border-radius:10px;
  }
  .side-nav-icon { width:auto !important; height:auto !important; font-size:18px; background:transparent !important; }
  .side-nav-copy { display:block !important; min-width:0; text-align:center; }
  .side-nav-copy b { display:block; font-size:9px; white-space:nowrap; }
  .side-nav-copy small { display:none !important; }
  .nav-badge { display:block !important; position:absolute; top:3px; right:calc(50% - 27px); min-width:16px; height:16px; padding:0 4px; font-size:8px; }

  .barista-main { padding:12px 10px 90px !important; }
  .barista-topbar { gap:8px; margin-bottom:10px; }
  .barista-breadcrumb { font-size:8px; }
  .barista-title-block h1 { font-size:24px !important; line-height:1.05; }
  .topbar-clock { min-width:74px !important; padding:7px 9px; border-radius:10px; }
  .topbar-clock strong { font-size:19px; }

  .barista-kpis { grid-template-columns:repeat(3,1fr) !important; gap:5px !important; margin-bottom:14px; }
  .barista-kpi, .barista-kpi:nth-child(3) { grid-column:auto !important; min-height:58px !important; padding:8px !important; gap:5px; }
  .kpi-icon { display:none !important; }
  .barista-kpi small { font-size:7px !important; line-height:1.15; }
  .barista-kpi strong { font-size:19px !important; }

  .section-head { margin-bottom:10px; }
  .section-kicker { font-size:8px; }
  .section-title-row h2 { font-size:21px; }
  .soft-count { font-size:9px; }
  .barista-orders-v08 { grid-template-columns:1fr !important; gap:8px !important; }
  .order-card-v08 { min-height:0 !important; padding:13px !important; border-radius:14px !important; }
  .order-card-v08 .order-number { font-size:30px !important; }
  .order-card-v08 h3 { font-size:20px !important; }
  .order-timer-v08 { padding:9px !important; }
  .queue-countdown { font-size:26px !important; }
  .done-btn-v08 { min-height:44px; font-size:12px !important; }

  .stoplist-toolbar { align-items:stretch; flex-direction:column; gap:8px; }
  .stoplist-type-tabs { width:100%; display:grid; grid-template-columns:1fr 1fr; }
  .stoplist-type-btn { justify-content:center; }
  .stoplist-legend { display:none; }
  .stoplist-grid { grid-template-columns:1fr !important; }

  .history-layout-v08 { display:block !important; }
  .history-customers-panel { margin-bottom:10px; border-radius:14px; }
  .barista-v08 .customer-history-list {
    display:grid !important; grid-template-columns:1fr !important; overflow:visible; gap:6px; padding:2px !important;
  }
  .customer-card-v08 { min-height:66px; }
  .history-detail-v08 { min-height:0 !important; border-radius:14px; }
  .history-mobile-back { display:flex; align-items:center; gap:4px; width:100%; padding:11px 13px; border:0; border-bottom:1px solid #252b26; background:#1a1e1b; color:#b9c5b8; font:inherit; font-size:10px; font-weight:850; text-align:left; cursor:pointer; }
  .history-mobile-back span { color:#dcebd5; font-size:21px; line-height:10px; }
  #historyView.history-mobile-detail-open .history-section-head { display:none; }
  #historyView:not(.history-mobile-detail-open) .history-detail-v08 { display:none; }
  #historyView.history-mobile-detail-open .history-customers-panel { display:none; }
  #historyView.history-mobile-detail-open .history-layout-v08 { margin-top:0; }
  .customer-detail-kpis-v08 { grid-template-columns:repeat(2,1fr) !important; }
  .history-order-v08 { grid-template-columns:38px minmax(0,1fr) !important; gap:6px !important; padding:10px !important; }
  .history-order-emoji-v08 { display:none; }
  .history-order-copy-v08 { grid-column:2; }
  .history-order-price-v08 { grid-column:2 !important; justify-self:start; }
  .history-status-v08 { grid-column:2 !important; grid-row:auto !important; justify-self:start; }

  .settings-drawer-modal { align-items:flex-end; }
  .settings-drawer {
    width:100% !important; max-width:none !important; height:min(88vh,760px); border-radius:18px 18px 0 0 !important;
  }
  .settings-drawer-head { padding:18px 16px 12px !important; }
  .settings-group { padding-left:16px !important; padding-right:16px !important; }
  .setting-card-v08 { padding:11px !important; }
  .barista-v08 .setting-row .setting-copy strong { font-size:11px; }
  .barista-v08 .setting-row .setting-copy span { font-size:9px; }
  .telegram-recipient-field small { font-size:9px; }
  .settings-save-bar { padding:10px 12px 12px !important; }
}
.mobile-top-actions { display:none; }
@media (max-width:640px) {
  .mobile-top-actions { display:flex; gap:5px; margin-left:auto; }
  .mobile-top-actions a, .mobile-top-actions button {
    width:34px; height:34px; border:1px solid #dfe3dd; border-radius:10px; background:#fff;
    color:#252b26; text-decoration:none; display:grid; place-items:center; padding:0; font-size:15px; cursor:pointer;
  }
  .topbar-clock { display:none !important; }
}

/* v1.3 — чаевые */
.tips-banner {
  margin: 4px 0 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #dccfc3;
  border-radius: 22px;
  background: linear-gradient(135deg, #fffaf6, #f7f2eb);
  box-shadow: 0 12px 30px rgba(77, 55, 38, .07);
}
.tips-banner[hidden] { display: none !important; }
.tips-banner-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #6e402f;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(110,64,47,.18);
}
.tips-banner-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tips-banner-copy small { color: #9a806f; font-size: 9px; font-weight: 850; letter-spacing: .10em; }
.tips-banner-copy strong { color: var(--ink); font-size: 17px; }
.tips-banner-copy span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.tips-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  background: #476c2e;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.tips-banner-link:hover { background: #385625; }
.tips-setting { color: #a94747; }
.telegram-recipient-field.field-disabled { opacity: .48; }
.telegram-recipient-field input:disabled { cursor: not-allowed; }

@media (max-width: 600px) {
  .tips-banner { grid-template-columns: auto minmax(0, 1fr); padding: 14px; gap: 11px; }
  .tips-banner-link { grid-column: 1 / -1; width: 100%; min-height: 46px; }
  .tips-banner-copy strong { font-size: 16px; }
}

/* v1.4 — custom Telegram Bot API */
.telegram-api-actions { display:flex; align-items:center; gap:10px; margin-top:10px; flex-wrap:wrap; }
.telegram-api-test-status { min-height:16px; color:#879087; font-size:9px; font-weight:700; line-height:1.35; }
.telegram-api-test-status.ok { color:#79b662; }
.telegram-api-test-status.error { color:#e78376; }
.telegram-recipient-field small b { color:#aeb6af; font-weight:800; }
@media (max-width: 700px) {
  .telegram-api-actions { align-items:stretch; }
  .telegram-api-actions .drawer-cancel-btn { width:100%; }
  .telegram-api-test-status { width:100%; font-size:10px; }
}


/* v1.5 — управление рабочей сменой */
.shift-status-card {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px; border:1px solid rgba(24,113,73,.18); border-radius:18px;
  background:rgba(236,253,245,.72);
}
.shift-status-main {display:flex; align-items:center; gap:12px; min-width:0;}
.shift-status-main > div {display:flex; flex-direction:column; gap:3px; min-width:0;}
.shift-status-main strong {font-size:15px;}
.shift-status-main span {font-size:12px; color:var(--muted, #786f69); line-height:1.35;}
.shift-status-dot {width:12px; height:12px; border-radius:50%; background:#19a66b; box-shadow:0 0 0 5px rgba(25,166,107,.12); flex:0 0 auto;}
.shift-status-card.closed {background:rgba(255,244,242,.82); border-color:rgba(187,67,53,.18);}
.shift-status-card.closed .shift-status-dot {background:#c45a4a; box-shadow:0 0 0 5px rgba(196,90,74,.12);}
.shift-action-btn {border:0; border-radius:12px; padding:11px 14px; font-weight:800; cursor:pointer; background:#24775a; color:white; white-space:nowrap;}
.shift-action-btn.danger {background:#a94b3e;}
.shift-action-btn:disabled {opacity:.55; cursor:wait;}
.shift-settings-help {margin:9px 2px 0; font-size:12px; color:var(--muted, #786f69); line-height:1.45;}
.shift-closed-banner {display:flex; align-items:center; gap:16px; margin:0 0 22px; padding:18px 20px; border-radius:20px; background:#2c2420; color:#fff; box-shadow:0 12px 34px rgba(45,35,29,.12);}
.shift-closed-banner[hidden] {display:none !important;}
.shift-closed-banner > div:not(.shift-closed-icon) {display:flex; flex-direction:column; gap:3px;}
.shift-closed-banner small {font-size:10px; letter-spacing:.14em; opacity:.65; font-weight:800;}
.shift-closed-banner strong {font-size:20px;}
.shift-closed-banner span {font-size:13px; opacity:.78;}
.shift-closed-icon {width:48px; height:48px; border-radius:15px; display:grid; place-items:center; font-size:24px; background:rgba(255,255,255,.09);}
.menu-shift-closed .drink-card.shift-closed {opacity:.72; filter:saturate(.55); cursor:not-allowed;}
.drink-stop-badge.shift-badge {background:#2c2420; color:#fff;}
@media (max-width: 680px) {
  .shift-status-card {align-items:stretch; flex-direction:column;}
  .shift-action-btn {width:100%; min-height:46px;}
  .shift-closed-banner {align-items:flex-start; margin-bottom:16px; padding:15px;}
  .shift-closed-banner strong {font-size:18px;}
}

/* v1.6.1 — пауза в фирменной стилистике Coffee Talk */
/* Barista settings: пауза встроена в тёмную drawer-панель, без жёлтого alert-вида. */
.shift-status-card {
  background:#1a1e1b;
  border-color:#2b332c;
  color:#eef1ed;
}
.shift-status-card .shift-status-main span { color:#737d75; }
.shift-status-card.paused {
  background:#1b211c;
  border-color:#405044;
  box-shadow:inset 3px 0 0 #8baa7f;
}
.shift-status-card.paused .shift-status-dot {
  background:#8fbd82;
  box-shadow:0 0 0 5px rgba(143,189,130,.10);
}
.shift-status-card.closed {
  background:#211a18;
  border-color:#3a2925;
}
.shift-status-card.closed .shift-status-dot {
  background:#b5665d;
  box-shadow:0 0 0 5px rgba(181,102,93,.10);
}
.shift-action-btn { background:#263d2a; color:#dce9d7; }
.shift-action-btn:hover { background:#304b34; }
.shift-action-btn.danger { background:#3a2723; color:#dfafa7; }
.shift-action-btn.danger:hover { background:#49302b; }
.shift-settings-help { color:#69726b; }

.shift-pause-panel {
  margin-top:8px;
  padding:12px;
  border:1px solid #292f2a;
  border-radius:14px;
  background:#181b19;
}
.shift-pause-panel[hidden],
.shift-pause-countdown[hidden],
.shift-pause-controls[hidden],
.shift-pause-presets[hidden],
.shift-resume-btn[hidden] { display:none !important; }
.shift-pause-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.shift-pause-title > div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.shift-pause-title strong { color:#dfe4df; font-size:12px; font-weight:850; }
.shift-pause-title span:not(.shift-pause-countdown) { color:#6f7871; font-size:9px; line-height:1.45; }
.shift-pause-countdown {
  flex:0 0 auto;
  padding:5px 8px;
  border:1px solid #364139;
  border-radius:9px;
  background:#202722;
  color:#b7d5ad;
  font-size:16px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  letter-spacing:.01em;
}
.shift-pause-controls { display:grid; grid-template-columns:104px minmax(0,1fr); gap:7px; margin-top:10px; }
.shift-pause-input {
  display:flex;
  align-items:center;
  gap:6px;
  min-height:42px;
  padding:0 9px;
  border:1px solid #303630;
  border-radius:11px;
  background:#1d211e;
}
.shift-pause-input span { color:#737c75; font-size:9px; }
.shift-pause-input input {
  min-width:0;
  width:100%;
  height:40px;
  border:0;
  outline:0;
  background:transparent;
  color:#e5e9e5;
  font-size:14px;
  font-weight:850;
  text-align:right;
}
.shift-pause-btn,.shift-resume-btn {
  min-height:42px;
  border:1px solid #354238;
  border-radius:11px;
  padding:9px 12px;
  font-size:10px;
  font-weight:850;
  cursor:pointer;
}
.shift-pause-btn { background:#263d2a; color:#dce9d7; }
.shift-pause-btn:hover { background:#304b34; }
.shift-resume-btn { width:100%; margin-top:10px; background:#222a24; color:#bdd4b6; }
.shift-resume-btn:hover { background:#29342c; }
.shift-pause-btn:disabled,.shift-resume-btn:disabled { opacity:.55; cursor:wait; }
.shift-pause-presets { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-top:7px; }
.shift-pause-presets button {
  min-height:32px;
  border:1px solid #2d342e;
  border-radius:9px;
  background:#1d211e;
  color:#8f9991;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}
.shift-pause-presets button:hover { border-color:#3e4a40; background:#222723; color:#c3cbc4; }
.shift-pause-presets button:active { transform:translateY(1px); }

/* Customer menu: тот же светлый card language, что меню/чаевые. */
.shift-pause-banner {
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  margin:0 0 22px;
  padding:16px 18px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface);
  color:var(--ink);
  box-shadow:var(--shadow);
}
.shift-pause-banner::before {
  content:'';
  position:absolute;
  left:0;
  top:13px;
  bottom:13px;
  width:3px;
  border-radius:0 3px 3px 0;
  background:#78906f;
}
.shift-pause-banner[hidden] { display:none !important; }
.shift-pause-banner-icon {
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#edf1e9;
  color:#506347;
  font-size:22px;
  font-weight:800;
}
.shift-pause-banner-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
.shift-pause-banner-copy small {
  color:#8a7d73;
  font-size:9px;
  font-weight:850;
  letter-spacing:.11em;
}
.shift-pause-banner-copy strong { color:var(--ink); font-size:18px; letter-spacing:-.015em; }
.shift-pause-banner-copy span { color:var(--muted); font-size:12px; line-height:1.4; }
.shift-pause-banner-countdown {
  min-width:76px;
  padding:8px 10px;
  border:1px solid #dfe6dc;
  border-radius:12px;
  background:#f2f5ef;
  color:#4a5e43;
  font-size:20px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  text-align:center;
  white-space:nowrap;
}
.drink-stop-badge.pause-badge { background:#5f3c28; color:#fff; }

@media (max-width: 680px) {
  .shift-pause-controls { grid-template-columns:88px minmax(0,1fr); }
  .shift-pause-presets { grid-template-columns:repeat(4,1fr); }
  .shift-pause-banner { grid-template-columns:auto minmax(0,1fr); padding:14px; gap:10px; }
  .shift-pause-banner::before { top:11px; bottom:11px; }
  .shift-pause-banner-icon { width:40px; height:40px; border-radius:12px; font-size:20px; }
  .shift-pause-banner-countdown {
    grid-column:2;
    justify-self:start;
    min-width:70px;
    padding:6px 9px;
    font-size:17px;
  }
  .shift-pause-banner-copy strong { font-size:16px; }
  .shift-pause-banner-copy span { font-size:11px; }
}


/* v1.7 — групповые заказы, комментарии, бесплатные добавки */
.order-comment-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(56, 48, 40, .1);
}
.order-comment-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid rgba(56, 48, 40, .14);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  color: var(--text, #2f2924);
  padding: 13px 14px;
  font: inherit;
  line-height: 1.45;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.order-comment-input:focus {
  border-color: rgba(52, 93, 70, .5);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(52, 93, 70, .08);
}
.order-comment-counter {
  margin-top: 6px;
  text-align: right;
  font-size: 12px;
  color: var(--muted, #847c74);
}
.topping-price.free {
  color: #3d7258;
  font-weight: 750;
}
.customer-order-items {
  display: grid;
  gap: 6px;
  margin: 2px 0;
}
.customer-order-items > div {
  display: grid;
  gap: 1px;
}
.customer-order-items b { font-size: 14px; }
.customer-order-items small,
.customer-order-comment {
  color: #756d66;
  font-weight: 500;
}

/* Кабинет бариста */
.order-cups-list-v17 {
  display: grid;
  gap: 10px;
}
.order-cup-v17 {
  position: relative;
}
.order-cup-v17.grouped {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.order-cup-index {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 800;
}
.order-comment-barista {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(124, 164, 137, .09);
  border: 1px solid rgba(124, 164, 137, .18);
}
.order-comment-barista span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8eab97;
}
.order-comment-barista strong {
  font-size: 13px;
  line-height: 1.35;
  color: #f2efe9;
}
.order-group-total-v17 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.58);
  font-size: 12px;
}
.order-group-total-v17 strong {
  color: #fff;
  font-size: 16px;
}
.history-order-group-v17 {
  align-items: flex-start;
}
.history-cups-v17 {
  display: grid;
  gap: 7px;
  margin-top: 3px;
}
.history-cup-line-v17 {
  display: grid;
  gap: 1px;
}
.history-cup-line-v17 b {
  font-size: 12px;
  font-style: normal;
}
.history-cup-line-v17 em {
  color: var(--muted, #857c74);
  font-size: 11px;
  font-style: normal;
}
.history-comment-v17 {
  color: #557661;
  font-size: 11px;
  line-height: 1.35;
}

/* Нонстоп */
.nonstop-cups-v17 {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
}
.nonstop-cup-v17 {
  position: relative;
  padding: 10px;
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}
.nonstop-cup-index-v17 {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 800;
}
.nonstop-comment-v17 {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(124, 164, 137, .1);
}
.nonstop-comment-v17 span {
  color: #94af9d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nonstop-comment-v17 strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .order-comment-section { margin-top: 14px; padding-top: 14px; }
  .order-comment-input { min-height: 76px; border-radius: 14px; }
  .order-cup-v17.grouped { padding: 10px; }
  .order-group-total-v17 { margin-top: 10px; padding-top: 10px; }
  .history-cup-line-v17 b { font-size: 11px; }
}

/* Coffee Talk v1.7.2 — готовность отдельных кружек */
.order-cup-v17.is-ready-v172 {
  border-color: rgba(111, 181, 135, .34);
  background: rgba(93, 154, 113, .10);
}
.order-cup-v17.is-ready-v172 .order-main-v08,
.order-cup-v17.is-ready-v172 .barista-toppings,
.order-cup-v17.is-ready-v172 .order-comment-barista {
  opacity: .68;
}
.cup-done-btn-v172,
.cup-ready-state-v172 {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border-radius: 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.cup-done-btn-v172 {
  border: 1px solid rgba(127, 190, 148, .32);
  background: rgba(111, 181, 135, .12);
  color: #d9f0e1;
  cursor: pointer;
}
.cup-done-btn-v172:hover { background: rgba(111, 181, 135, .20); }
.cup-done-btn-v172:disabled { opacity: .55; cursor: wait; }
.cup-ready-state-v172 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #9bcaaa;
  background: rgba(111, 181, 135, .08);
  border: 1px solid rgba(127, 190, 148, .16);
}
.nonstop-cup-v17.is-ready-v172 {
  border-color: rgba(111, 181, 135, .34);
  background: rgba(93, 154, 113, .11);
}
.nonstop-cup-v17.is-ready-v172 .nonstop-drink,
.nonstop-cup-v17.is-ready-v172 .nonstop-toppings,
.nonstop-cup-v17.is-ready-v172 .nonstop-comment-v17 { opacity: .65; }
.nonstop-cup-done-v172,
.nonstop-cup-ready-v172 {
  width: 100%;
  min-height: 38px;
  margin-top: 9px;
  border-radius: 11px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.nonstop-cup-done-v172 {
  border: 1px solid rgba(127, 190, 148, .34);
  background: rgba(111, 181, 135, .13);
  color: #e4f5e9;
  cursor: pointer;
}
.nonstop-cup-ready-v172 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: #9fd0ae;
  border: 1px solid rgba(127, 190, 148, .16);
  background: rgba(111, 181, 135, .07);
}
.customer-cup-ready-v172 {
  color: #3f7858 !important;
  font-weight: 800 !important;
}
.customer-cup-is-ready-v172 { opacity: .72; }

/* Coffee Talk v1.8 — описания, заказ ко времени, кабинет пользователя */
.cups-total-pill { background: #6b513e; box-shadow: 0 10px 26px rgba(92,66,48,.16); }
.drink-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  margin-top: 3px;
}
.modal-description {
  margin: 5px 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
  max-width: 480px;
}
.order-time-section {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.order-time-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.order-time-option {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  text-align: center;
}
.order-time-option input { position: absolute; opacity: 0; pointer-events: none; }
.order-time-option.active,
.order-time-option:has(input:checked) { border-color: #7a9b61; background: #f0f6eb; color: #3f602d; box-shadow: 0 0 0 1px #7a9b61 inset; }
.scheduled-time-wrap { display: grid; gap: 7px; margin-top: 9px; }
.scheduled-time-wrap[hidden] { display: none; }
.time-wheel-shell-v183 {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(73, 57, 43, .055);
}
.time-wheel-caption-v183 {
  padding: 9px 12px 7px;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid #eee8e1;
}
.time-wheel-v183 {
  height: 168px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  scroll-padding-block: 60px;
  padding: 60px 8px;
  scrollbar-width: none;
}
.time-wheel-v183::-webkit-scrollbar { display: none; }
.time-wheel-item-v183 {
  width: 100%;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #9a9189;
  font: inherit;
  font-size: 20px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  cursor: pointer;
  scroll-snap-align: center;
  transition: color .14s ease, background .14s ease, transform .14s ease;
}
.time-wheel-item-v183.selected {
  color: #35552b;
  background: #edf5e8;
  transform: scale(1.035);
}
.time-wheel-focus-v183 {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(50% + 7px);
  height: 48px;
  transform: translateY(-50%);
  border-top: 1px solid rgba(115, 152, 92, .22);
  border-bottom: 1px solid rgba(115, 152, 92, .22);
  border-radius: 11px;
  pointer-events: none;
}
.time-wheel-shell-v183::before,
.time-wheel-shell-v183::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 42px;
  pointer-events: none;
}
.time-wheel-shell-v183::before { top: 34px; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.time-wheel-shell-v183::after { bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff); }
.time-wheel-empty-v183 {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.scheduled-time-wrap small { color: var(--muted); font-size: 10px; line-height: 1.35; text-align: center; }
.ios-auth-hint {
  display: block;
  text-align: center;
  border-radius: 12px;
  padding: 9px 10px;
  background: #f2f7ee;
  color: #587046;
  font-size: 11px;
  line-height: 1.4;
}
.auth-check-manual { margin-top: -3px; }
.eta-badge.scheduled { background: #f4efe9; border-color: #dfd0c2; color: #674d39; }
.eta-badge.scheduled b { font-size: 12px; }

/* Бариста — заказы ко времени */
.scheduled-order-v18 { border-color: rgba(202, 157, 103, .32) !important; }
.queue-state-chip.is-scheduled-v18 { background: #3a2d1f; color: #e8c391; border-color: #5d4731; }
.order-timer-v08.scheduled-v18 { background: #211d18; border-color: #3d3329; }
.scheduled-time-v18 { color: #eccb9e !important; }
.nonstop-order.scheduled-v18 { border-color: rgba(210, 163, 103, .35); }
.nonstop-position.scheduled-v18 { background: rgba(196, 145, 85, .16); color: #f0c88f; border-color: rgba(196,145,85,.26); }
.nonstop-timer.scheduled-v18 strong { color: #f0c88f; }

/* Личный кабинет клиента */
.account-body-v18 { min-height: 100vh; }
.account-shell-v18 { display: grid; gap: 18px; padding-bottom: 42px; }
.account-header-v18 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0 4px;
}
.account-brand-v18 { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.account-brand-v18 .coffee-talk-logo { width: 58px; height: 58px; object-fit: contain; }
.account-brand-v18 > div { display: grid; gap: 2px; }
.account-brand-v18 small { color: #617b4e; font-size: 10px; font-weight: 850; letter-spacing: .09em; }
.account-brand-v18 strong { font-size: 21px; }
.account-header-actions-v18 { display: flex; gap: 8px; align-items: center; }
.account-back-v18, .account-logout-v18 {
  border: 1px solid #d9cec3;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.account-logout-v18 { color: #846c5c; }
.account-loading-v18 { min-height: 280px; display: grid; place-items: center; color: var(--muted); }
.account-profile-v18 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 23px;
  border-radius: 24px;
  background: linear-gradient(135deg,#fff,#f7f2ec);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(71,50,35,.07);
}
.account-avatar-v18 { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 21px; background: #496f31; color: #fff; font-size: 31px; }
.account-profile-copy-v18 small { color: #668151; font-size: 10px; font-weight: 850; letter-spacing: .09em; }
.account-profile-copy-v18 h1 { margin: 4px 0 4px; font-size: 27px; }
.account-profile-copy-v18 p { margin: 0; color: var(--muted); font-size: 12px; }
.account-stats-v18 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.account-stats-v18 article { display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.account-stats-v18 article > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #edf4e8; color: #4f713a; font-weight: 900; }
.account-stats-v18 article > div { display: grid; }
.account-stats-v18 small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.account-stats-v18 strong { font-size: 23px; line-height: 1.05; margin-top: 2px; }
.account-stats-v18 em { color: #8d847c; font-size: 10px; font-style: normal; margin-top: 2px; }
.account-history-v18 { padding: 20px; border-radius: 24px; border: 1px solid var(--line); background: #fff; }
.account-section-head-v18 { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.account-section-head-v18 small { color: #678052; font-size: 9px; font-weight: 850; letter-spacing: .09em; }
.account-section-head-v18 h2 { margin: 3px 0 0; font-size: 25px; }
.account-section-head-v18 > span { color: var(--muted); font-size: 11px; }
.account-history-list-v18 { display: grid; gap: 10px; }
.account-history-order-v18 { border: 1px solid #e7ded5; border-radius: 17px; padding: 14px; background: #fdfbf9; }
.account-history-order-head-v18 { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.account-history-order-head-v18 > div:first-child { display: grid; gap: 2px; }
.account-history-order-head-v18 small { color: #8e847b; font-size: 10px; }
.account-history-order-head-v18 h3 { margin: 0; font-size: 17px; }
.account-history-order-head-v18 span { color: var(--muted); font-size: 11px; }
.account-history-order-head-v18 > div:last-child { display: grid; justify-items: end; gap: 5px; }
.account-history-order-head-v18 b { font-size: 14px; }
.account-history-order-head-v18 em { border-radius: 999px; padding: 4px 7px; font-size: 9px; font-style: normal; font-weight: 850; }
.account-history-order-head-v18 em.done { background: #e9f5e8; color: #4e774d; }
.account-history-order-head-v18 em.active { background: #f7eadb; color: #8a6439; }
.account-scheduled-v18 { margin-top: 9px; border-radius: 10px; padding: 8px 10px; background: #f5eee5; color: #73583f; font-size: 11px; }
.account-history-cups-v18 { display: grid; gap: 7px; margin-top: 10px; }
.account-history-cup-v18 { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; gap: 8px; align-items: center; padding-top: 8px; border-top: 1px solid #eee6df; }
.account-history-cup-v18 > span { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: #eee8e2; color: #77695e; font-size: 10px; font-weight: 850; }
.account-history-cup-v18 > div { min-width: 0; display: grid; gap: 2px; }
.account-history-cup-v18 strong { font-size: 12px; }
.account-history-cup-v18 small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-comment-v18 { color: #54705d !important; font-style: italic; }
.account-history-cup-v18 em { font-style: normal; font-size: 9px; font-weight: 800; white-space: nowrap; }
.account-cup-ready-v18 { color: #4b7955; }
.account-cup-wait-v18 { color: #9a7149; }
.account-history-empty-v18 { min-height: 220px; display: grid; justify-items: center; align-content: center; gap: 5px; color: var(--muted); text-align: center; }
.account-history-empty-v18 > span { font-size: 32px; }
.account-history-empty-v18 strong { color: var(--ink); }
.account-history-empty-v18 small { font-size: 11px; }
.account-history-empty-v18 a { margin-top: 8px; border-radius: 11px; padding: 9px 12px; background: #456b2f; color: #fff; text-decoration: none; font-size: 11px; font-weight: 800; }

@media (max-width: 720px) {
  .drink-description { min-height: 32px; font-size: 11px; }
  .account-stats-v18 { grid-template-columns: 1fr 1fr; }
  .account-stats-v18 article:last-child { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .customer-hero-actions { grid-template-columns: 1fr 1fr; }
  .cups-total-pill { grid-column: 1 / -1; }
  .order-time-options { grid-template-columns: 1fr; }
  .account-header-v18 { align-items: flex-start; flex-direction: column; }
  .account-header-actions-v18 { width: 100%; }
  .account-back-v18, .account-logout-v18 { flex: 1; text-align: center; }
  .account-profile-v18 { align-items: flex-start; padding: 17px; }
  .account-avatar-v18 { width: 51px; height: 51px; border-radius: 16px; font-size: 24px; }
  .account-profile-copy-v18 h1 { font-size: 22px; }
  .account-stats-v18 { grid-template-columns: 1fr; }
  .account-stats-v18 article:last-child { grid-column: auto; }
  .account-history-v18 { padding: 13px; border-radius: 18px; }
  .account-history-order-head-v18 { align-items: stretch; }
  .account-history-cup-v18 { grid-template-columns: 23px minmax(0,1fr); }
  .account-history-cup-v18 em { grid-column: 2; justify-self: start; }
}


/* v1.8.4: hidden must always win over component display rules (Safari included). */
[hidden] { display: none !important; }

/* v1.8.4 — пользовательские каналы уведомлений */
.notification-pill-v184 { min-width: 150px; }
.notification-card-v184 { width: min(560px, calc(100vw - 24px)); }
.notification-head-v184 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.notification-head-v184 > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(24, 69, 58, .10); font-size: 22px; }
.notification-head-v184 h2 { margin: 2px 0 0; }
.notification-lead-v184 { margin: 0 0 14px; color: var(--muted); }
.notification-options-v184 { display: grid; gap: 10px; margin: 12px 0 14px; }
.notification-option-v184 { position: relative; display: block; cursor: pointer; }
.notification-option-v184 input { position: absolute; opacity: 0; pointer-events: none; }
.notification-option-v184 > span { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid rgba(23,63,53,.14); border-radius: 16px; background: rgba(255,255,255,.72); transition: .16s ease; }
.notification-option-v184 > span > b { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(23,63,53,.08); font-size: 16px; }
.notification-option-v184 > span > span { display: grid; gap: 2px; min-width: 0; }
.notification-option-v184 strong { font-size: 15px; color: var(--text); }
.notification-option-v184 small { color: var(--muted); line-height: 1.35; }
.notification-option-v184 input:checked + span { border-color: rgba(23,63,53,.55); box-shadow: 0 0 0 3px rgba(23,63,53,.08); background: rgba(239,246,242,.9); }
.notification-option-v184 input:checked + span > b { background: var(--accent); color: #fff; }
.browser-push-hint-v184 { margin: 0 0 12px; padding: 11px 12px; border-radius: 12px; background: rgba(142,66,55,.08); color: #7d3b32; font-size: 13px; line-height: 1.4; }
.notification-footnote-v184 { display: block; margin-top: 10px; color: var(--muted); line-height: 1.4; }
@media (max-width: 680px) {
  .notification-pill-v184 { min-width: 0; }
  .customer-hero-actions .notification-pill-v184 { width: 100%; }
}

/* v1.9 — browser push бариста, выдача и таймер отложенных заказов */
.browser-push-setting-v19 .setting-leading { background: rgba(83, 133, 208, .14); color: #a9c8ff; }
.pickup-waiting-section-v19 {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.pickup-waiting-head-v19 {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.pickup-waiting-head-v19 p {
  margin: 0;
  max-width: 430px;
  color: #9ea39f;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}
.pickup-waiting-grid-v19 { display: grid; gap: 9px; }
.pickup-waiting-card-v19 {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(109, 155, 95, .24);
  border-radius: 15px;
  background: rgba(46, 69, 43, .22);
}
.pickup-waiting-card-v19.reminded { border-color: rgba(222, 153, 91, .35); background: rgba(92, 58, 31, .22); }
.pickup-waiting-number-v19 {
  min-width: 56px;
  font-size: 20px;
  font-weight: 900;
  color: #d9efcf;
  font-variant-numeric: tabular-nums;
}
.pickup-waiting-copy-v19 { display: grid; gap: 3px; min-width: 0; }
.pickup-waiting-copy-v19 strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pickup-waiting-copy-v19 span { color: #aab0ab; font-size: 10px; font-variant-numeric: tabular-nums; }
.pickup-waiting-copy-v19 span.reminded { color: #e4b276; }
.pickup-done-btn-v19 {
  border: 0;
  border-radius: 11px;
  padding: 9px 13px;
  background: #d8ecd0;
  color: #294322;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.pickup-done-btn-v19:disabled { opacity: .55; cursor: wait; }
.queue-countdown[data-scheduled-at] { font-variant-numeric: tabular-nums; }
.queue-countdown[data-scheduled-at].overdue,
.nonstop-countdown[data-scheduled-at].overdue { color: #ff9b8a !important; }

.nonstop-pickup-v19 {
  position: fixed;
  z-index: 7;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: grid;
  gap: 8px;
  max-height: 34vh;
  padding: 10px;
  border: 1px solid rgba(116, 162, 101, .24);
  border-radius: 16px;
  background: rgba(12, 16, 13, .96);
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}
.nonstop-pickup-title-v19 { display: flex; align-items: center; gap: 8px; color: #b9cbb2; font-size: 10px; letter-spacing: .08em; }
.nonstop-pickup-title-v19 span { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: #d8ecd0; color: #264121; font-weight: 900; }
.nonstop-pickup-list-v19 { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 1px; }
.nonstop-pickup-card-v19 {
  flex: 0 0 min(420px, 76vw);
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: #171b18;
}
.nonstop-pickup-card-v19 > b { font-size: 19px; color: #d9efcf; }
.nonstop-pickup-card-v19 > div { min-width: 0; display: grid; gap: 2px; }
.nonstop-pickup-card-v19 strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.nonstop-pickup-card-v19 span { color: #9fa8a0; font-size: 9px; font-variant-numeric: tabular-nums; }
.nonstop-pickup-card-v19 button { border: 0; border-radius: 9px; padding: 8px 10px; background: #d9edcf; color: #25431f; font: inherit; font-size: 10px; font-weight: 950; cursor: pointer; }

@media (max-width: 760px) {
  .pickup-waiting-head-v19 { align-items: flex-start; flex-direction: column; }
  .pickup-waiting-head-v19 p { text-align: left; }
  .pickup-waiting-card-v19 { grid-template-columns: auto minmax(0,1fr); }
  .pickup-done-btn-v19 { grid-column: 1 / -1; width: 100%; }
}

/* v1.9 — выдача отдельных готовых кружек */
.cup-ready-actions-v19,
.nonstop-ready-actions-v19 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cup-picked-btn-v19,
.nonstop-cup-picked-v19 {
  border: 1px solid rgba(155, 198, 137, .28);
  border-radius: 9px;
  background: rgba(113, 157, 95, .14);
  color: #cae5bf;
  padding: 6px 9px;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.cup-picked-v19 { opacity: .72; }
.nonstop-cup-picked-v19:disabled,
.cup-picked-btn-v19:disabled { opacity: .5; cursor: wait; }

/* Coffee Talk v1.9.2 — количество одинаковых топингов */
.topping-option.topping-qty-option {
  grid-template-columns: 1fr auto;
  cursor: default;
  padding: 12px 14px;
}
.topping-option.topping-qty-option.selected {
  border-color: #b7977e;
  background: #fbf5ef;
}
.topping-main-v192 {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.topping-qty-v192 {
  display: grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  gap: 5px;
}
.topping-qty-v192 button {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid #d9c9bc;
  background: #fff;
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}
.topping-qty-v192 button:hover:not(:disabled) { background: #f3e9df; }
.topping-qty-v192 button:disabled { opacity: .35; cursor: not-allowed; }
.topping-qty-v192 strong {
  text-align: center;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.topping-limit-sticker {
  position: fixed;
  right: 0;
  top: 7vh;
  z-index: 200;
  display: block;
  width: min(240px, 38vw);
  max-height: 42vh;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(100% + 24px)) rotate(8deg);
  transition: transform .45s cubic-bezier(.22, 1.35, .36, 1), opacity .2s ease, visibility 0s linear .45s;
}
.topping-limit-sticker.shown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-16px) rotate(-3deg);
  transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
  .topping-limit-sticker { transition: none; }
}
@media (max-width: 540px) {
  .topping-option.topping-qty-option { gap: 8px; }
  .topping-qty-v192 { grid-template-columns: 32px 28px 32px; gap: 3px; }
  .topping-qty-v192 button { width: 32px; height: 32px; }
}
