/* Корзина Говарда: общий вид. Перенесено из одобренного макета. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --tap: 44px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
[data-theme="light"] {
  --bg: #f5f4ef; --surface: #ffffff; --surface-2: #f0eee8; --surface-3: #e8e5dd;
  --text: #1b1a17; --text-2: #5c5a54; --text-3: #8a877f;
  --border: #e4e1d9; --border-2: #d6d2c8;
  --accent: #1a7a52; --accent-hover: #146343; --accent-weak: #e2f1e9; --on-accent: #ffffff;
  --howard: #5b45c2; --howard-weak: #eeeaff;
  --warn: #9a5b00; --warn-weak: #fdf0d8;
  --danger: #b93228; --danger-weak: #fbe6e3;
  --info: #1f62b3; --info-weak: #e3edfa;
  --chart: #2a78d6; --chart-weak: #b7d3f6;
  --shadow: 0 1px 2px rgba(30, 25, 10, .05), 0 4px 16px rgba(30, 25, 10, .06);
  --shadow-lg: 0 12px 40px rgba(30, 25, 10, .18);
  --scrim: rgba(20, 18, 12, .38);
}
[data-theme="dark"] {
  --bg: #111210; --surface: #1a1b19; --surface-2: #232421; --surface-3: #2d2e2a;
  --text: #edece7; --text-2: #b3b1a9; --text-3: #85837b;
  --border: #2c2d29; --border-2: #3a3b36;
  --accent: #43b583; --accent-hover: #5cc896; --accent-weak: #16301f; --on-accent: #0b1a12;
  --howard: #a896ff; --howard-weak: #241f3f;
  --warn: #e7aa45; --warn-weak: #33270f;
  --danger: #f07a70; --danger-weak: #3b1c19;
  --info: #6aa8f0; --info-weak: #14253a;
  --chart: #3987e5; --chart-weak: #1f3a5c;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 0 0 1px var(--border);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .55), 0 0 0 1px var(--border-2);
  --scrim: rgba(0, 0, 0, .55);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 16px/1.45 var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 24px; height: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- каркас ---------- */
.app { min-height: 100%; display: grid; grid-template-columns: 1fr; }
.side { display: none; }
.main { min-width: 0; padding-bottom: calc(84px + var(--safe-b)); }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar .t { font-weight: 650; font-size: 17px; opacity: 0; transition: opacity .2s; }
.topbar.scrolled .t { opacity: 1; }
.page { padding: 4px 16px 24px; max-width: 760px; margin: 0 auto; }
.h1 { font-size: 30px; line-height: 1.15; font-weight: 750; letter-spacing: -.02em; margin: 2px 0 4px; }
.lead { color: var(--text-2); margin: 0 0 16px; }
.h2 { font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: 24px 4px 8px; }
.h2.row { justify-content: space-between; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + var(--safe-b)); background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--border);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center;
  background: none; border: 0; color: var(--text-3); font-size: 11px; font-weight: 550; border-radius: 12px; position: relative;
}
.tab[aria-current="page"] { color: var(--accent); }
.tab .dot { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--howard); color: #fff; font-size: 10px; line-height: 16px; font-weight: 700; }

@media (min-width: 960px) {
  .app { grid-template-columns: 248px 1fr; }
  .side {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; padding: 20px 14px;
    border-right: 1px solid var(--border); background: var(--surface);
  }
  .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 700; }
  .brand .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
  .brand small { display: block; font-weight: 500; color: var(--text-3); font-size: 12px; }
  .nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 0; background: none; color: var(--text-2); font-weight: 550; text-align: left; position: relative; }
  .nav:hover { background: var(--surface-2); color: var(--text); }
  .nav[aria-current="page"] { background: var(--accent-weak); color: var(--accent); }
  .nav .dot { margin-left: auto; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; background: var(--howard); color: #fff; font-size: 12px; line-height: 20px; text-align: center; font-weight: 700; }
  .side .spacer { flex: 1; }
  .tabbar { display: none; }
  .main { padding-bottom: 32px; }
  .topbar { padding: 14px 28px; }
  .topbar .t { opacity: 0 !important; }
  .page { padding: 4px 28px 40px; max-width: 1120px; }
  .h1 { font-size: 34px; }
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .cols > .aside { position: sticky; top: 72px; }
}

/* ---------- элементы ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card.pad { padding: 16px; }
.list { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; position: relative; width: 100%; background: none; border: 0; text-align: left; }
.item + .item::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--border); }
.item.flat + .item.flat::before { left: 14px; }
button.item:hover { background: var(--surface-2); }
.item .title { font-weight: 560; }
.item .sub { font-size: 13.5px; color: var(--text-2); margin-top: 1px; }
.item .end { text-align: right; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); font-weight: 600; white-space: nowrap;
  transition: background-color .15s, transform .1s, border-color .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.howard { background: var(--howard); border-color: var(--howard); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--danger); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.iconbtn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); }
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.iconbtn.sm { width: 34px; height: 34px; border-radius: 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.chip.accent { background: var(--accent-weak); color: var(--accent); }
.chip.howard { background: var(--howard-weak); color: var(--howard); }
.chip.warn { background: var(--warn-weak); color: var(--warn); }
.chip.danger { background: var(--danger-weak); color: var(--danger); }
.chip.info { background: var(--info-weak); color: var(--info); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--border-2); background: var(--surface); font-size: 14px; font-weight: 560; white-space: nowrap; color: var(--text-2); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter .n { opacity: .6; margin-left: 4px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; gap: 2px; background: var(--surface-2); border-radius: 12px; }
.seg button { min-height: 36px; border: 0; background: transparent; border-radius: 9px; font-size: 14px; font-weight: 560; color: var(--text-2); padding: 0 8px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--surface-3); }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 2px 6px; }
.input, textarea.input, select.input {
  width: 100%; min-height: var(--tap); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.search { position: relative; margin-bottom: 10px; }
.search svg { position: absolute; left: 12px; top: 12px; color: var(--text-3); }
.search .input { padding-left: 40px; background: var(--surface-2); border-color: transparent; }
.stepper { display: inline-flex; align-items: center; border-radius: 10px; background: var(--surface-2); }
.stepper button { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 10px; color: var(--text-2); font-size: 18px; line-height: 1; }
.stepper button:hover { background: var(--surface-3); color: var(--text); }
.stepper span { min-width: 26px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 14px; }
.check { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--border-2); display: grid; place-items: center; background: transparent; padding: 0; transition: all .15s var(--ease); color: transparent; }
.check[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check svg { width: 14px; height: 14px; stroke-width: 3; }
.switch { width: 46px; height: 28px; border-radius: 14px; background: var(--border-2); border: 0; position: relative; flex: none; transition: background .2s; padding: 0; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.avatar.d { background: #dbe8ff; color: #1e4fa0; }
.avatar.v { background: #ffe0ea; color: #a3305a; }
.avatar.g { background: var(--howard-weak); color: var(--howard); }
[data-theme="dark"] .avatar.d { background: #1c2c48; color: #9fc2ff; }
[data-theme="dark"] .avatar.v { background: #3d1c29; color: #ff9cbd; }
.who { font-weight: 600; }
.who.d { color: #2f63b8; } .who.v { color: #b23a66; } .who.g { color: var(--howard); }
[data-theme="dark"] .who.d { color: #9fc2ff; } [data-theme="dark"] .who.v { color: #ff9cbd; }

/* ---------- корзина ---------- */
.hero { padding: 18px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.hero.collecting::before { background: linear-gradient(90deg, var(--howard), var(--accent), var(--howard)); background-size: 200% 100%; animation: slide 1.4s linear infinite; }
@keyframes slide { to { background-position: -200% 0; } }
.hero .date { font-size: 24px; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 14px; color: var(--text-2); font-size: 14px; }
.hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero .sum { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.hero .sum b { font-size: 28px; font-weight: 750; letter-spacing: -.02em; }
.hero .actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 12px 0 8px; }
.progress i { display: block; height: 100%; background: var(--howard); border-radius: 4px; transition: width .35s var(--ease); }
.steps { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--text-2); }
.steps li { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.steps li.done { color: var(--text); }
.steps li .i { color: var(--accent); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--howard-weak); border-top-color: var(--howard); animation: rot .8s linear infinite; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }

.q { padding: 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); border-left: 4px solid var(--howard); margin-bottom: 10px; }
.q .txt { margin: 0 0 12px; }
.q .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.q.answered { border-left-color: var(--border-2); }
.q.answered .txt { color: var(--text-2); }
.q .ans { font-size: 14px; display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.qhead { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }

.line { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; position: relative; }
.line + .line::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--border); }
.line .body { flex: 1; min-width: 0; padding-top: 2px; }
.line .name { font-weight: 580; }
.line .variant { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.line .chips { margin-top: 6px; }
.line .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.line .price { font-weight: 650; font-variant-numeric: tabular-nums; }
.line .old { font-size: 12.5px; color: var(--text-3); text-decoration: line-through; }
.line.off .name, .line.off .variant, .line.off .price { color: var(--text-3); }
.line.off .name { text-decoration: line-through; }
.st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.st.took { background: var(--accent-weak); color: var(--accent); }
.st.repl { background: var(--info-weak); color: var(--info); }
.st.none { background: var(--danger-weak); color: var(--danger); }
.st.skip { background: var(--surface-2); color: var(--text-3); }
.groupname { padding: 14px 14px 4px; font-size: 13px; font-weight: 650; color: var(--text-3); display: flex; justify-content: space-between; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); font-size: 14px; }
.notice.howard { background: var(--howard-weak); color: var(--text); }
.notice.warn { background: var(--warn-weak); }
.notice.ok { background: var(--accent-weak); }
.notice .i { margin-top: 1px; }
.notice.howard .i { color: var(--howard); }
.notice.warn .i { color: var(--warn); }
.notice.ok .i { color: var(--accent); }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1.5px dashed var(--border-2); margin-top: 10px; }
.promo code { font: 700 18px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }

/* ---------- позиции ---------- */
.pos .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-size: 15px; flex: none; }
.fab { position: fixed; right: 18px; bottom: calc(84px + var(--safe-b)); z-index: 25; height: 56px; padding: 0 20px 0 16px; border-radius: 28px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 650; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg); }
@media (min-width: 960px) { .fab { position: static; height: var(--tap); border-radius: 12px; box-shadow: none; padding: 0 16px; } }
.variants { list-style: none; margin: 0; padding: 0; }
.variant-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; }
.variant-row .n { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); flex: none; }
.variant-row .vt { font-weight: 560; font-size: 15px; }
.variant-row .vs { font-size: 13px; color: var(--text-2); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.handle { width: 40px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-3); border-radius: 10px; touch-action: none; cursor: grab; flex: none; }
.handle:hover { color: var(--text); background: var(--surface-3); }
.handle:active { cursor: grabbing; }
[data-row] { position: relative; }
[data-row].dragging { z-index: 5; box-shadow: var(--shadow-lg); background: var(--surface); transition: box-shadow .15s, scale .15s; scale: 1.02; }
.wh[data-row].dragging { border-radius: var(--r); }
.sorting, .sorting * { user-select: none; -webkit-user-select: none; }
.hint { font-size: 13px; color: var(--text-3); margin: 2px 2px 12px; display: flex; align-items: center; gap: 6px; }
button.chip.tap { height: 34px; padding: 0 10px 0 12px; font-size: 14px; border: 0; gap: 4px; transition: filter .15s, transform .1s; }
button.chip.tap:hover { filter: brightness(.96); }
[data-theme="dark"] button.chip.tap:hover { filter: brightness(1.2); }
button.chip.tap:active { transform: scale(.97); }
button.chip.tap svg { opacity: .7; }
.seg.wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.rep { padding: 12px 0; border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.rep:first-child { border-top: 0; }
.rep .why { font-size: 13.5px; color: var(--text-2); margin-top: 3px; }
.rep .why b { color: var(--text); font-weight: 600; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; }
.log li + li { border-top: 1px solid var(--border); }
.log .when { color: var(--text-3); font-size: 12.5px; }

/* ---------- лист / боковая панель ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(105%); transition: transform .32s var(--ease); visibility: hidden;
}
.sheet.on { transform: none; visibility: visible; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border-2); margin: 8px auto 0; flex: none; }
.sheet header { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 18px; flex: none; }
.sheet header h3 { margin: 0; font-size: 18px; flex: 1; min-width: 0; }
.sheet .scroll { overflow-y: auto; padding: 4px 18px calc(24px + var(--safe-b)); overscroll-behavior: contain; }
.sheet footer { padding: 12px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--border); display: flex; gap: 8px; flex: none; background: var(--bg); }
@media (min-width: 960px) {
  .sheet { left: auto; top: 0; width: 460px; max-height: none; border-radius: 0; transform: translateX(105%); }
  .sheet .grab { display: none; }
  .sheet header { padding: 18px 16px 10px 24px; }
  .sheet .scroll { padding: 4px 24px 24px; }
  .sheet footer { padding: 14px 24px; }
}
.dialog { position: fixed; z-index: 70; left: 50%; top: 50%; width: min(400px, calc(100vw - 32px)); transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; transition: all .2s var(--ease); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 20px; }
.dialog.on { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.dialog h3 { margin: 0 0 8px; font-size: 19px; }
.dialog p { margin: 0 0 18px; color: var(--text-2); }
.dialog .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; transition: all .25s var(--ease); background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); display: flex; gap: 12px; align-items: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast button { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; padding: 0; }
@media (min-width: 960px) { .toast { bottom: 28px; } }

/* ---------- история, статистика ---------- */
.order-head { display: flex; gap: 12px; align-items: center; width: 100%; padding: 14px; background: none; border: 0; text-align: left; }
.order-head .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ic.del { background: var(--accent-weak); color: var(--accent); }
.ic.shop { background: var(--info-weak); color: var(--info); }
.order + .order { border-top: 1px solid var(--border); }
.order-body { padding: 0 14px 14px 66px; font-size: 14px; display: none; }
.order.open .order-body { display: block; }
.order.open .chev { transform: rotate(90deg); }
.chev { transition: transform .2s; color: var(--text-3); }
.order-body ul { list-style: none; margin: 0; padding: 0; }
.order-body li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.order-body li.rm { color: var(--text-3); text-decoration: line-through; }
.order-body li.add .nm::after { content: " · докинула Вера"; color: var(--howard); font-size: 12.5px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.kpi .l { font-size: 13px; color: var(--text-2); }
.kpi .v { font-size: 24px; font-weight: 750; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; margin-top: 2px; }
.up { color: var(--danger); } .down { color: var(--accent); }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .bar { fill: var(--chart-weak); transition: fill .15s; }
.chart .bar.cur, .chart g:hover .bar, .chart g:focus .bar { fill: var(--chart); }
.chart .val { fill: var(--text); font-weight: 650; font-size: 11px; opacity: 0; }
.chart g:hover .val, .chart g:focus .val, .chart g.cur .val { opacity: 1; }
.chart .grid { stroke: var(--border); stroke-dasharray: 2 3; }
.hbar { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.hbar .track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 5px; background: var(--chart); }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.spark { width: 72px; height: 26px; }
.spark path { fill: none; stroke: var(--danger); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- расписание ---------- */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days button { aspect-ratio: 1; max-height: 48px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); font-weight: 650; font-size: 14px; color: var(--text-2); }
.days button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.wh { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.wh + .wh { border-top: 1px solid var(--border); }
.wh .n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; font-weight: 750; font-size: 14px; flex: none; }
.wh.off .n { background: var(--surface-2); color: var(--text-3); }
.wh.off .title { color: var(--text-3); }
.store-card { display: flex; align-items: center; gap: 12px; padding: 14px; }
.store-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }

/* ---------- вход ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .box { width: min(380px, 100%); }
.login .logo { width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: var(--shadow-lg); }
.login h1 { text-align: center; font-size: 26px; margin: 0 0 6px; letter-spacing: -.02em; }
.login .lead { text-align: center; }
.wait { text-align: center; padding: 8px 0; }
.wait .ring { width: 72px; height: 72px; margin: 6px auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--howard-weak); color: var(--howard); position: relative; }
.wait .ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--howard); animation: rot 1.1s linear infinite; }
.empty { text-align: center; padding: 32px 16px; color: var(--text-2); }
.empty .i { width: 40px; height: 40px; color: var(--text-3); margin-bottom: 8px; }

[hidden] { display: none !important; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 16px; color: var(--text-2); }
.loading .spin { width: 20px; height: 20px; }
.err { color: var(--danger); font-size: 14px; margin: 0 0 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
