/* ===== Личный кабинет. Цвета и шрифты — из style.css ===== */

.cab { position: relative; padding: 36px 0 80px; min-height: 70vh; isolation: isolate; }
.cab::before {   /* мягкое свечение сверху, как на главной */
  content: ""; position: absolute; inset: 0 0 auto; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 80% at 85% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
              radial-gradient(40% 60% at 0% 10%, rgba(124, 108, 255, .08), transparent 70%);
}
.cab-page .foot { margin-top: 0; }
[hidden] { display: none !important; }

.spinner {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto;
  border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite;
}
.spinner--sm { width: 28px; height: 28px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.cab-center { min-height: 50vh; display: grid; place-content: center; text-align: center; gap: 18px; }
.cab-center__msg { color: var(--ink-2); max-width: 44ch; margin: 0 auto; }
.cab-center .cta-row { justify-content: center; margin-top: 0; }

.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--ink-3); }

/* ----- вход ----- */
.login { display: grid; place-items: center; padding: 20px 0 40px; }
.login__card {
  width: min(460px, 100%); background: var(--surface); border-radius: 28px; padding: 36px 32px; box-shadow: var(--shadow-lg);
  text-align: center; display: grid; gap: 14px;
}
.login__robot { margin: 0 auto 4px; border-radius: 50%; background: var(--accent-soft); }
.login h1 { font-size: clamp(26px, 4vw, 32px); max-width: none; }
.login__lead { color: var(--ink-2); font-size: 16px; }
.login__msg { padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; }
.login__msg.is-err { background: color-mix(in srgb, var(--hot) 14%, var(--surface)); color: color-mix(in srgb, var(--hot) 80%, var(--ink)); }
.login__widget { display: flex; justify-content: center; min-height: 48px; margin-top: 6px; }
.login__or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 14px; margin: 6px 0; }
.login__or::before, .login__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#login-start, .login__wait { display: grid; gap: 12px; margin-top: 8px; }
.login__wait p { margin: 0; }
.login__hint { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.login__demo { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); display: grid; gap: 4px; }

/* ----- шапка кабинета ----- */
.demo-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px 12px 18px; margin-bottom: 22px; border-radius: 18px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; font-size: 15px;
}
.cab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.cab-head h1 { font-size: clamp(28px, 4vw, 40px); max-width: none; }
.cab-head__sub { margin-top: 8px; color: var(--ink-3); font-size: 15px; }
.meters { display: flex; gap: 10px; flex-wrap: wrap; }
.meter { background: var(--surface); border-radius: 18px; padding: 11px 15px; box-shadow: var(--shadow), var(--ring); min-width: 132px; }
.meter span { display: block; font-size: 13px; color: var(--ink-3); }
.meter b { font-size: 18px; letter-spacing: -.02em; }
.meter i { display: block; height: 5px; margin-top: 7px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.meter i::before { content: ""; display: block; height: 100%; width: var(--p, 0%); background: var(--grad); border-radius: 3px; }
.meter.is-full i::before { background: var(--hot); }

.cab-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cab-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; position: sticky; top: 88px; }
.cab-side > * { min-width: 0; }
.panel { background: var(--surface); border-radius: 24px; padding: 22px; box-shadow: var(--shadow), var(--ring); }
.panel h2 { font-size: 20px; max-width: none; margin-bottom: 14px; }
.panel--soft { background: var(--bg-2); box-shadow: none; font-size: 15px; color: var(--ink-2); }
.panel--soft b { color: var(--ink); }
.side-links { display: grid; gap: 10px; margin-top: 14px; justify-items: start; }
.side-links a { color: var(--accent-ink); text-decoration: none; }
.side-links a:hover { text-decoration: underline; }
.side-links .linkbtn { text-decoration: none; color: var(--ink-2); }

/* ----- добавление ----- */
.add { margin-bottom: 20px; }
.add__label { display: block; font-weight: 700; font-size: 17px; margin-bottom: 12px; }
.add__row { display: flex; gap: 10px; }
.field {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: 400 16px var(--font); transition: border-color .15s;
}
.field:focus { outline: none; border-color: var(--accent); }
.add__hint { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .5);
  border-top-color: #fff; animation: spin .8s linear infinite;
}
.btn--ghost.is-busy::after { border-color: var(--line); border-top-color: var(--accent); }
.btn--green { background: #2FB44F; box-shadow: 0 8px 22px -10px rgba(47, 180, 79, .8); }
.btn--green:hover { background: #28A045; box-shadow: 0 12px 26px -10px rgba(47, 180, 79, .9); }
.btn--danger { background: var(--surface); color: #D6453D; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #D6453D 35%, var(--line)); }
.btn--danger:hover { background: color-mix(in srgb, #D6453D 8%, var(--surface)); box-shadow: inset 0 0 0 1.5px #D6453D; }

.found { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.found__item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.found__item b { display: block; line-height: 1.35; }
.found__price { margin-top: 4px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.found__price small { font-weight: 500; font-size: 14px; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.note { padding: 12px 14px; border-radius: 14px; background: var(--bg-2); color: var(--ink-2); font-size: 15px; }
.note--err { background: color-mix(in srgb, var(--hot) 12%, var(--surface)); color: color-mix(in srgb, var(--hot) 75%, var(--ink)); }
.note--ok { background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: color-mix(in srgb, var(--good) 55%, var(--ink)); }

/* выбор условия */
.conds { display: grid; gap: 8px; }
.cond {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: 16px;
  border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s;
}
.cond input { grid-row: span 2; accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.cond b { font-size: 15.5px; }
.cond small { color: var(--ink-3); font-size: 13.5px; line-height: 1.4; }
.cond:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cond__value { display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.cond__value .field { height: 44px; max-width: 220px; }
.cond__value span { color: var(--ink-3); font-size: 14px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ----- список ----- */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  border: 0; cursor: pointer; padding: 9px 16px; border-radius: 999px; background: var(--surface); color: var(--ink-2);
  font: 600 14.5px var(--font); box-shadow: var(--shadow);
}
.tab span { color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab[aria-selected="true"] span { color: inherit; opacity: .7; }
.items { display: grid; gap: 10px; }
.it {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--surface); border-radius: 22px; padding: 14px 18px 14px 14px; box-shadow: var(--shadow), var(--ring);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.it:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), var(--ring); }
.it--list { cursor: default; }
.it--list:hover { transform: none; box-shadow: var(--shadow); }
.it.is-paused .it__img, .it.is-paused .it__price { opacity: .5; }
.it__img {
  width: 72px; height: 72px; border-radius: 16px; background: #fff; display: grid; place-items: center; font-size: 30px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.it__img img { width: 100%; height: 100%; object-fit: contain; }
.it__img--ico { background: var(--accent-soft); box-shadow: none; }
.it__body { display: grid; gap: 5px; justify-items: start; min-width: 0; }
.it__title { font-weight: 600; font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.it__cond { color: var(--ink-3); font-size: 13.5px; }
.it__price { text-align: right; display: grid; gap: 2px; justify-items: end; }
.it__price b { font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.it__price small { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.it__acts { display: flex; gap: 6px; }
.ibtn {
  width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--bg-2); color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; font-size: 16px; text-decoration: none;
}
.ibtn:hover { background: var(--accent-soft); color: var(--accent-ink); }
.ibtn--del:hover { background: color-mix(in srgb, #D6453D 12%, var(--surface)); color: #D6453D; }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--bg-2); color: var(--ink-2); }
.badge.good { background: color-mix(in srgb, var(--good) 16%, var(--surface)); color: color-mix(in srgb, var(--good) 60%, var(--ink)); }
.badge.low { background: var(--accent-soft); color: var(--accent-ink); }
.badge.high { background: color-mix(in srgb, var(--hot) 13%, var(--surface)); color: color-mix(in srgb, var(--hot) 75%, var(--ink)); }
.badge.off { background: var(--bg-2); color: var(--ink-3); }

.empty { text-align: center; padding: 44px 20px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); color: var(--ink-2); }
.empty b { display: block; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.empty__ico { font-size: 40px; margin-bottom: 10px; }

/* ----- настройки ----- */
.set { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.set:first-child { border-top: 0; padding-top: 0; }
.set > b { font-size: 15px; }
.set small { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.seg button {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 12px; padding: 9px 8px;
  font: 600 14px var(--font); cursor: pointer;
}
.seg button:hover { border-color: var(--accent); }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.sw { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; cursor: pointer; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.sw input {
  appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer;
  transition: background .2s; margin: 0;
}
.sw input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.sw input:checked { background: var(--accent); }
.sw input:checked::after { transform: translateX(18px); }
.sw input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sw + .sw { margin-top: 12px; }
.sw small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.sw.is-disabled { cursor: default; }
.sw.is-disabled input { opacity: .55; cursor: not-allowed; }
.set .btn--block { margin-top: 12px; }
.set .btn--block + small { margin-top: 6px; }
.set .note { font-size: 14px; line-height: 1.5; }

/* лента уведомлений */
.feed { display: grid; gap: 2px; margin: 0 -8px; }
.feed__item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 8px; border-radius: 14px; }
.feed__item + .feed__item { border-top: 1px solid var(--line); border-radius: 0; }
.feed__item b { font-size: 14.5px; line-height: 1.35; }
.feed__item time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.feed__item p { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed__acts { grid-column: 1 / -1; display: flex; gap: 12px; margin-top: 4px; font-size: 13.5px; }
.feed__acts a, .feed__acts button { color: var(--accent-ink); text-decoration: none; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.feed__item.is-fail b::after { content: " · не доставлено"; color: var(--hot); font-weight: 500; font-size: 12px; }
.feed--compact .feed__item p { -webkit-line-clamp: 2; }

/* пригласи друзей */
.friends { background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 65%); }
.friends p { color: var(--ink-2); font-size: 14.5px; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.ref-stats div { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.ref-stats span { display: block; font-size: 12.5px; color: var(--ink-3); }
.ref-stats b { font-size: 20px; letter-spacing: -.02em; }
.ref-bar { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; margin: 4px 0 6px; }
.ref-bar i { display: block; height: 100%; width: var(--p); background: var(--grad); border-radius: inherit; transition: width .4s; }
.ref-link { display: flex; gap: 8px; margin-top: 12px; }
.ref-link input { flex: 1; min-width: 0; height: 42px; font-size: 13.5px; }
.ref-link .btn { flex: none; }

/* баннер «включи уведомления» */
.nbanner {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; margin-bottom: 22px;
  padding: 14px 14px 14px 18px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #4CC3FF 0%, #2AABEE 45%, #1673CC 100%); box-shadow: 0 16px 34px -18px rgba(22, 115, 204, .9);
}
.nbanner__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .18); }
.nbanner b { display: block; font-size: 16px; }
.nbanner span { font-size: 14px; opacity: .92; }
.nbanner .btn { background: #fff; color: #0B6FB0; box-shadow: none; }
.nbanner__x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.nbanner__x:hover { background: rgba(255, 255, 255, .28); }
@media (max-width: 600px) {
  .nbanner { grid-template-columns: auto 1fr auto; }
  .nbanner .btn { grid-column: 1 / -1; width: 100%; }
  .nbanner__x { grid-row: 1; grid-column: 3; }
}

/* ----- карточка товара (диалог) ----- */
.sheet {
  width: min(720px, 100% - 32px); max-height: min(92vh, 960px); padding: 0; border: 0; border-radius: 28px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto;
}
.sheet::backdrop { background: rgba(8, 12, 18, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.sheet__in { padding: 24px; display: grid; gap: 18px; }
.d-head { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: start; }
.d-head .it__img { width: 84px; height: 84px; }
.d-head h2 { font-size: 19px; max-width: none; line-height: 1.3; letter-spacing: -.015em; }
.d-head h2 a { text-decoration: none; }
.d-head h2 a:hover { color: var(--accent-ink); }
.d-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.d-price b { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.d-price small { color: var(--ink-3); font-size: 14px; }
.d-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--ink-2); cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.d-close:hover { background: var(--line); }
.periods { display: flex; gap: 6px; }
.periods button { border: 0; padding: 7px 14px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font: 600 14px var(--font); cursor: pointer; }
.periods button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chart-box { position: relative; min-height: 160px; display: grid; place-items: center; border-radius: 18px; background: var(--bg); padding: 8px 6px 2px; }
.pchart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.pchart .g { stroke: var(--line); stroke-width: 1; }
.pchart .ax { fill: var(--ink-3); font: 500 11px var(--font); }
.pchart .yl { fill: var(--ink-3); font: 600 11px var(--font); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.pchart .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.pchart .ar { fill: var(--accent); opacity: .1; }
.pchart .us { stroke: var(--ink-3); stroke-width: 1.3; stroke-dasharray: 5 4; }
.pchart .tl { stroke: #2FB44F; stroke-width: 1.5; stroke-dasharray: 3 3; }
.pchart .lb { font: 600 11px var(--font); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.pchart .lb.us-l { fill: var(--ink-3); }
.pchart .lb.tg-l { fill: #2FB44F; }
.pchart .mn { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.pchart .cur { stroke: var(--ink-3); stroke-width: 1; }
.pchart .cur-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.tip {
  position: absolute; top: 8px; pointer-events: none; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 10px;
  font-size: 13px; line-height: 1.35; white-space: nowrap; transform: translateX(-50%);
}
.tip b { display: block; font-size: 14px; }
.sumgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sumgrid div { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.sumgrid span { display: block; font-size: 12.5px; color: var(--ink-3); }
.sumgrid b { font-size: 15.5px; letter-spacing: -.01em; }
.sumgrid small { display: block; font-size: 12px; color: var(--ink-3); }
.d-block { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.d-block__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.d-block__row span { color: var(--ink-3); font-size: 14px; }
.d-block__row b { display: block; color: var(--ink); font-size: 16px; }
.d-acts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.d-acts .btn { padding: 0 12px; }
.d-foot { font-size: 13px; color: var(--ink-3); }

/* ----- всплывающее сообщение ----- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 500;
  box-shadow: var(--shadow-lg); transition: opacity .2s, translate .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ----- телефон: кабинет как приложение (нижнее меню, по разделу на экран) ----- */
.tabbar, .sheet__grab, .howto { display: none; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html:has(dialog[open]) { overflow: hidden; }   /* под карточкой товара страница не прокручивается */
.add__paste { flex: none; }
.howto { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--bg-2); font-size: 14.5px; color: var(--ink-2); }
.howto b { color: var(--ink); }
.howto ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
#v-app #add-result:not(:empty) + .howto { display: none; }   /* товар найден — подсказка уже не нужна */

@media (max-width: 960px) {
  .cab-page .foot { display: none; }
  .cab { padding: 14px 0 calc(100px + env(safe-area-inset-bottom)); min-height: 100dvh; }
  .cab-grid { display: block; }
  .cab-side { display: block; }
  /* по разделу на экран */
  #v-app .cab-main > *, #v-app .cab-side > *, #v-app .cab-head, #v-app .nbanner { display: none; }
  #v-app[data-tab="list"] .cab-head { display: flex; }
  #v-app[data-tab="list"] .nbanner:not([hidden]) { display: grid; }
  #v-app[data-tab="list"] .list-head { display: flex; }
  #v-app[data-tab="list"] #items { display: grid; }
  #v-app[data-tab="add"] #add-panel { display: block; }
  #v-app[data-tab="add"] .howto { display: block; }
  #v-app[data-tab="notify"] #notify, #v-app[data-tab="notify"] #feed { display: block; }
  #v-app[data-tab="settings"] #settings, #v-app[data-tab="settings"] #friends, #v-app[data-tab="settings"] #about { display: block; }
  #v-app[data-tab="notify"] #feed, #v-app[data-tab="settings"] #friends, #v-app[data-tab="settings"] #about { margin-top: 14px; }
  .panel h2 { font-size: 24px; margin-bottom: 16px; }
  .add__label { font-size: 22px; letter-spacing: -.02em; }

  .demo-bar { padding: 8px 8px 8px 14px; margin-bottom: 14px; font-size: 13px; border-radius: 14px; flex-wrap: nowrap; line-height: 1.35; }
  .demo-bar .btn { --h: 34px; padding: 0 12px; font-size: 13px; flex: none; }
  .cab-head { margin-bottom: 14px; gap: 12px; }
  .cab-head h1 { font-size: 26px; }
  .cab-head__sub { margin-top: 4px; font-size: 13.5px; }
  .meters { width: 100%; gap: 8px; flex-wrap: nowrap; }
  .meter { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 16px; }
  .meter span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .meter b { font-size: 16px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 2px 16px 4px; }
  .tabs::-webkit-scrollbar { display: none; }
  @media (max-width: 360px) { .tabs { margin-inline: -12px; padding-inline: 12px; } .tabbar button { font-size: 10.5px; } }
  .tab { flex: none; padding: 9px 15px; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(18px) saturate(1.8); -webkit-backdrop-filter: blur(18px) saturate(1.8);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(16, 40, 80, .35);
  }
  .tabbar button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 54px; border: 0; background: none; border-radius: 14px;
    color: var(--ink-3); font: 600 11.5px var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; padding: 4px 2px;
  }
  .tabbar button[aria-current="page"] { color: var(--accent-ink); }
  .tabbar__ico { position: relative; font-size: 22px; line-height: 28px; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s, transform .2s; }
  .tabbar button[aria-current="page"] .tabbar__ico { filter: none; opacity: 1; transform: translateY(-1px); }
  .tabbar__dot { position: absolute; top: 2px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 2px var(--surface); }
  .tabbar__plus {
    display: grid; place-items: center; width: 46px; height: 32px; border-radius: 12px; font-size: 22px; font-weight: 700; color: #fff;
    background: var(--grad); box-shadow: 0 8px 16px -8px rgba(42, 171, 238, .9);
  }
  .tabbar__add[aria-current="page"] .tabbar__plus { box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 16px -8px rgba(42, 171, 238, .9); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .tabbar button:active { background: color-mix(in srgb, var(--ink) 6%, transparent); }

  /* карточка товара — шторка снизу, закрывается свайпом вниз */
  .sheet__grab { display: grid; place-items: center; position: sticky; top: 0; z-index: 2; height: 22px; background: var(--surface); touch-action: none; cursor: grab; }
  .sheet__grab i { width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
  .sheet { overscroll-behavior: contain; }
  .sheet.is-dragging { transition: none; }
  .sheet:not(.is-dragging) { transition: transform .25s var(--ease, ease); }
}
/* открыто как установленное приложение: меню сайта не нужно, только логотип */
@media (display-mode: standalone) {
  .cab-page .nav, .cab-page .burger, .cab-page .top__bot { display: none !important; }
  .cab-page .top__in { height: 54px; }
  .cab-page .top { padding-top: env(safe-area-inset-top); }
}
@media (hover: none) {   /* на телефоне карточки не «подпрыгивают» от касания */
  .it:hover { transform: none; box-shadow: var(--shadow), var(--ring); }
  .it:active { transform: scale(.985); }
}

/* ----- адаптив ----- */
@media (max-width: 980px) {
  .cab-grid { grid-template-columns: 1fr; }
  .cab-side { position: static; }
}
@media (max-width: 560px) {
  .cab { padding-top: 22px; }
  .login__card { padding: 28px 20px; border-radius: 24px; }
  .cab-head { align-items: flex-start; }
  .meters { width: 100%; }
  .meter { flex: 1; min-width: 0; }
  .panel { padding: 16px; border-radius: 20px; }
  .add__row { display: grid; grid-template-columns: 1fr 1fr; }
  .add__row .field { grid-column: 1 / -1; width: 100%; }
  .add__row .btn { width: 100%; }
  .add__row:has(.add__paste[hidden]) #add-go { grid-column: 1 / -1; }
  .add__row .btn { width: 100%; }
  .it { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .it__img { width: 56px; height: 56px; border-radius: 14px; font-size: 24px; }
  .it__price { grid-column: 2; justify-items: start; text-align: left; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .it__price b { font-size: 17px; }
  .it__acts { grid-column: 2; }
  .sheet { width: 100%; max-width: 100%; max-height: 94vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .sheet__in { padding: 18px 16px 24px; }
  .d-head { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .d-head .it__img { width: 64px; height: 64px; }
  .d-head h2 { font-size: 16.5px; }
  .d-price b { font-size: 25px; }
  .sumgrid { grid-template-columns: repeat(2, 1fr); }
  .d-acts { grid-template-columns: 1fr 1fr; }
  .d-acts .btn:first-child { grid-column: 1 / -1; }
  .demo-bar { font-size: 14px; }
}
