/* HYPEDROP: стили конкретных экранов */

/* ---------- Каталог ---------- */
.hero { background: var(--ink); color: var(--white); border-top: 1px solid #2A2A27; }
.hero__in { max-width: var(--container); margin: 0 auto; padding: 22px var(--gutter); min-height: 104px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hero__title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
.hero__title span { color: var(--lime); }
.hero__sub { display: block; margin-top: 6px; font-size: 16px; color: #CFCFCB; }
.hero__pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--drop); font-weight: 600; font-size: 15px; }
.hero__pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--drop); }

.catalog-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.catalog-top__title { display: flex; align-items: baseline; gap: 16px; }
.catalog-top__found { color: var(--muted); font-variant-numeric: tabular-nums; }
.catalog-sort { display: flex; align-items: center; gap: 10px; }
.catalog-sort label { font-size: 15px; font-weight: 600; }
.catalog-sort select { width: 220px; }
.catalog { display: flex; gap: 32px; align-items: flex-start; }
.filters { flex: 0 0 260px; display: flex; flex-direction: column; gap: 24px; }
.filters legend, .filters .filters__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; display: block; }
.filters .radio-list { display: flex; flex-direction: column; gap: 10px; }
.filters .price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.filters .size-group-title { font-size: 14px; color: var(--muted); font-weight: 600; margin: 12px 0 8px; }
.filters__actions { display: flex; flex-direction: column; gap: 8px; }
.catalog-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
.grid.is-loading { pointer-events: none; }
@media (max-width: 1199px) {
  .filters { flex-basis: 220px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Главная ---------- */
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #C2F01F; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: #2A2A27; color: var(--white); }
.hero a:focus-visible, .hero button:focus-visible { outline-color: var(--lime); }

/* Карусель */
.hero-car__in { display: block; padding-top: 32px; padding-bottom: 20px; }
.hero-car__slide { display: flex; flex-wrap: wrap; align-items: stretch; gap: 32px; min-height: 400px; animation: car-fade .2s ease-out; }
.hero-car__slide > * { animation: car-fade .2s ease-out; }
@keyframes car-fade { from { opacity: .4; } to { opacity: 1; } }
.hero-car__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 16px 0; }
.hero-car__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1.05; letter-spacing: -0.02em; white-space: pre-line; overflow-wrap: anywhere; }
.hero-car__lead { margin: 0; font-size: 18px; color: #D6D6D2; max-width: 480px; }
.hero-car__price { display: flex; align-items: baseline; gap: 14px; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-car__price s { font-size: 20px; font-weight: 400; color: #A8A8A3; }
.hero-car__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-car__panel { flex: 1 1 420px; min-width: 0; min-height: 360px; border-radius: 20px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-car__ghost { position: absolute; right: -10px; bottom: -28px; font-family: var(--font-display); font-weight: 800; font-size: 150px; line-height: 1; }
.hero-car__media { position: relative; height: 320px; border-radius: var(--r-xl); }
.hero-car__card { position: relative; width: 66%; aspect-ratio: 1.6; border-radius: 18px; background: var(--ink); color: var(--white); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 24px 48px rgba(0,0,0,.35); transform: rotate(-6deg); }
.hero-car__card-logo { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.hero-car__card-logo span { color: var(--lime); }
.hero-car__card-num { font-family: var(--font-mono); font-size: 20px; letter-spacing: .08em; }
.hero-car__ctl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.hero-car__dots { display: flex; align-items: center; }
.hero-car__counter { margin-left: 8px; font-size: 15px; color: #CFCFCB; font-variant-numeric: tabular-nums; }
.hero-car__arrows { display: flex; gap: 10px; }
.arr { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #5A5A56; background: #1C1C1A; color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.arr:hover { border-color: var(--lime); color: var(--lime); }
.dotb { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.dotb span { display: block; height: 6px; width: 12px; border-radius: 3px; background: #6E6E69; transition: width .2s; }
.dotb[aria-current="true"] span { width: 32px; background: var(--lime); }

/* Бегущая полоса */
.ticker { background: var(--lime); color: var(--ink); border-bottom: 1.5px solid var(--ink); }
.ticker__in { max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px; font-weight: 700; }

/* Дроп */
.home-drop { background: var(--ink); color: var(--white); border-radius: 24px; padding: 32px; }
.home-drop__head { align-items: flex-end; flex-wrap: wrap; }
.home-drop__ttl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.home-drop .home-sec__all { color: var(--lime); white-space: nowrap; }
.home-drop .home-empty { color: #CFCFCB; }
.home-drop__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-drop__grid[hidden] { display: none; }
.drop-card { display: flex; gap: 20px; align-items: center; background: #1F1F1D; border-radius: 16px; padding: 16px; text-decoration: none; color: var(--white); }
.drop-card:hover { color: var(--white); background: #2A2A27; }
.drop-card__media { flex: 0 0 160px; width: 160px; border-radius: 12px; }
.drop-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.drop-card__name { font-size: 20px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.drop-card__sku { font-family: var(--font-mono); font-size: 14px; color: #CFCFCB; }
.drop-card__price { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.drop-card__price s { font-size: 16px; font-weight: 400; color: #A8A8A3; }
.drop-card__cta { color: var(--lime); font-weight: 600; }
.home-drop .badge-drop { color: var(--ink); }

.page.home { display: flex; flex-direction: column; gap: 56px; padding-top: 48px; padding-bottom: 64px; }
.home-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.home-sec__title { margin: 0 0 20px; font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.01em; }
.home-sec__head .home-sec__title { margin: 0; }
.home-sec__all { font-weight: 600; }
.home-empty { color: var(--muted); margin: 0; }

.cat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 150px; padding: 18px; border-radius: 16px; color: var(--ink); text-decoration: none; transition: transform var(--t); }
.cat-tile:hover { transform: translateY(-2px); color: var(--ink); }
.cat-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cat-tile__name { font-weight: 700; font-size: 18px; }

.grid.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid[hidden] { display: none; }

.ads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ads__club, .ads__ship { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 260px; position: relative; overflow: hidden; }
.ads__club { background: var(--ink); color: var(--white); }
.ads__ship { background: var(--lime); color: var(--ink); border: 2px solid var(--ink); }
.ads__ghost { position: absolute; right: -16px; top: -20px; font-family: var(--font-display); font-weight: 800; font-size: 120px; color: #23231F; }
.ads__body { position: relative; display: flex; flex-direction: column; gap: 10px; }
.ads__title { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; }
.ads__title span { color: var(--lime); }
.ads__text { font-size: 17px; max-width: 400px; }
.ads__club .ads__text { color: #D6D6D2; max-width: 380px; }
.ads__btn { align-self: flex-start; position: relative; }

.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1.5px solid var(--ink); padding-top: 32px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk svg { flex-shrink: 0; }
.perk__t { font-weight: 700; }
.perk__d { font-size: 15px; color: var(--muted); }

@media (max-width: 1199px) {
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-drop__grid, .ads { grid-template-columns: 1fr; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-car__slide, .hero-car__slide > * { animation: none; }
  .cat-tile, .dotb span { transition: none; }
  .cat-tile:hover { transform: none; }
}

/* ---------- Карточка товара ---------- */
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs [aria-current="page"] { color: var(--ink); overflow-wrap: anywhere; }
.pv { display: flex; gap: 48px; align-items: flex-start; }
.pv__media { flex: 1 1 520px; min-width: 0; max-width: 600px; }
.pv__media .media { border-radius: var(--r-xl); }
.pv__buy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pv__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pv__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pv__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--muted); margin-top: 8px; }
.pv__meta .mono { color: var(--ink); }
.pv__price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pv__price-now { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv__price-old { font-size: 20px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv__legend { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.sizes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.size {
  height: 48px; border-radius: var(--r); border: 1.5px solid var(--border); background: var(--white); color: var(--ink);
  font: 600 16px var(--font-ui); padding: 0 6px; white-space: nowrap;
}
.size:hover { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.size:disabled { background: var(--panel); color: var(--placeholder); border-color: var(--border-soft); text-decoration: line-through; cursor: not-allowed; }
.sizes.is-one { grid-template-columns: max-content; }
.pv__stock { margin-top: 10px; font-weight: 600; }
.pv__stock.is-low { color: #9A3412; }
.pv__stock.is-ok { color: var(--ok); }
.pv__hint { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--muted-2); background: var(--panel); border-radius: var(--r); padding: 10px 12px; }
.pv__desc { margin-top: 48px; max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.pv__desc h2 { margin: 0; font-size: 22px; font-weight: 700; }
.pv__desc p { margin: 0; font-size: 17px; line-height: 1.6; color: #2A2A27; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Корзина ---------- */
.cart { display: flex; gap: 32px; align-items: flex-start; }
.cart__items { flex: 1; min-width: 0; }
.cart__summary { flex: 0 0 360px; position: relative; }
@media (max-width: 1199px) { .cart__summary { flex-basis: 300px; } }
.cart-row.is-warn { background: var(--warn-bg); }
.cart-row.is-busy { opacity: 0.5; pointer-events: none; }
.cart-prod { display: flex; gap: 14px; align-items: center; min-width: 240px; }
.cart-prod__img { width: 64px; flex-shrink: 0; }
.cart-prod__img .media { border-radius: 8px; }
.cart-prod__img .media__stub { padding: 2px; }
.cart-prod__img .media__stub-cat { font-size: 9px; }
.cart-prod__img .media__stub-sku { display: none; }
.cart-prod__name { font-weight: 600; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.cart-prod__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.cart-prod__sku { font: 14px var(--font-mono); color: var(--muted); }
.cart .stepper__btn { width: 40px; height: 44px; }
.cart-qty { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.btn-icon { width: 44px; height: 44px; border: 0; border-radius: var(--r); background: transparent; color: var(--muted-2); display: flex; align-items: center; justify-content: center; }
.btn-icon:hover { background: #F2F2EF; color: var(--error); }
.summary-body { display: flex; flex-direction: column; gap: 20px; transition: opacity var(--t); }
.summary-body.is-busy { opacity: 0.35; pointer-events: none; }
.summary-spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.summary-spin .spinner { width: 28px; height: 28px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .input { text-transform: uppercase; font-family: var(--font-mono); }
.promo-row .input::placeholder { text-transform: none; font-family: var(--font-ui); }
.promo-chip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.promo-chip__code { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--white); font: 600 16px var(--font-mono); }
.promo-chip.is-lost .promo-chip__code { background: var(--line); color: var(--ink); }
.promo-chip__note { width: 100%; font-size: 14px; color: var(--muted-2); }
.discount-val { color: var(--ok); font-weight: 600; }
.cart-lines { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Оформление ---------- */
.checkout { display: flex; gap: 32px; align-items: flex-start; }
.checkout__form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.checkout__side { flex: 0 0 360px; }
@media (max-width: 1199px) { .checkout__side { flex-basis: 320px; } }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px;
  border: 1.5px solid var(--border); border-radius: var(--r-lg); cursor: pointer; background: var(--white);
}
.opt:hover { border-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); background: var(--panel-2); }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.opt__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt__title { font-weight: 700; }
.opt__sub { font-size: 14px; color: var(--muted); }
.opt__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opts.is-points .opt { padding: 12px 16px; }
.opts.is-points .opt__title { font-weight: 600; }
.addr-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 12px; }
.addr-grid .s6 { grid-column: span 6; }
.addr-grid .s3 { grid-column: span 3; }
.recipient-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.order-lines { display: flex; flex-direction: column; gap: 8px; font-size: 15px; margin-top: 10px; }
.order-lines + * { margin-top: 0; }
details.order-sum summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.deliv-val.is-none { color: var(--muted); font-weight: 400; text-align: right; }
.deliv-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.deliv-hint { font-size: 14px; color: var(--muted-2); text-align: right; }

/* ---------- Заказ ---------- */
.order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.order-head__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.order-head__date { font-size: 15px; color: var(--muted); }
.order-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.info-list dt { color: var(--muted); font-size: 15px; }
.info-list dd { margin: 0; overflow-wrap: anywhere; }
.pre-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.confirm-box { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.confirm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pay-amount { font-family: var(--font-display); font-weight: 800; font-size: 40px; font-variant-numeric: tabular-nums; }
.pay-form { max-width: 480px; display: flex; flex-direction: column; gap: 18px; }
.pay-form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.status-panel textarea { min-height: 96px; }
.status-panel__btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.order-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 20px; }

/* ---------- Кабинет ---------- */
.account { display: flex; gap: 40px; align-items: flex-start; }
.account__nav { flex: 0 0 200px; display: flex; flex-direction: column; gap: 4px; }
.account__nav a { display: block; padding: 10px 14px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.account__nav a:hover { background: var(--panel); }
.account__nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.account__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.account__main.is-wide { max-width: none; }
.account__main .panel form { display: flex; flex-direction: column; gap: 16px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* ---------- Админка товаров ---------- */
.is-muted-row td { color: var(--muted); }
.is-muted-row td a { color: var(--muted); }
.stock-table input { width: 120px; }
.edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 560px; }

/* ---------- Инструменты ---------- */
.tools { max-width: none; }
.sql-layout { display: flex; gap: 24px; align-items: flex-start; }
.sql-ref { flex: 0 0 280px; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 12px; max-height: 70vh; overflow: auto; font-size: 15px; }
@media (max-width: 1199px) { .sql-ref { flex-basis: 220px; } }
.sql-ref summary { cursor: pointer; padding: 4px 0; }
.sql-ref .ref-btn { border: 0; background: none; padding: 2px 4px; border-radius: 4px; text-align: left; font: 14px var(--font-mono); }
.sql-ref .ref-btn:hover { background: var(--lime); }
.sql-ref .ref-btn.is-table { font-weight: 600; font-size: 15px; }
.sql-ref ul { padding-left: 18px; }
.sql-ref li { display: flex; gap: 8px; align-items: baseline; }
.sql-ref .ref-type { color: var(--muted); font: 13px var(--font-mono); }
.sql-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sql-editor { position: relative; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--white); height: 200px; }
.sql-editor:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.sql-editor pre, .sql-editor textarea {
  position: absolute; inset: 0; margin: 0; padding: 12px 14px; border: 0; width: 100%; height: 100%;
  font: 15px/1.5 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; letter-spacing: 0;
}
.sql-editor pre { overflow: hidden; pointer-events: none; color: var(--ink); }
.sql-editor textarea { background: transparent; color: transparent; caret-color: var(--ink); resize: none; outline: 0; overflow: auto; }
.sql-editor textarea::selection { background: rgba(37, 99, 235, .25); }
.tk-kw { color: #1D4ED8; font-weight: 600; }
.tk-str { color: #166534; }
.tk-num { color: #B45309; }
.tk-cm { color: #6E6E69; font-style: italic; }
.sql-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.sql-bar select { width: 240px; }
.sql-metrics { font: 14px var(--font-mono); color: var(--muted-2); }
.result-wrap { max-height: 60vh; overflow: auto; border: 1.5px solid var(--line); border-radius: var(--r-lg); }
.result-wrap .table th { position: sticky; top: 0; background: var(--white); z-index: 1; }
.result-wrap .table td, .result-wrap .table th { font: 14px var(--font-mono); white-space: nowrap; overflow-wrap: normal; }
.result-wrap .table th { font-weight: 700; color: var(--ink); }
.null { color: var(--muted); font-style: italic; }
.mono-text { font-family: var(--font-mono); white-space: pre-wrap; margin: 0; overflow-wrap: anywhere; }
.hint-box { padding: 28px; text-align: center; color: var(--muted-2); border: 1.5px dashed var(--border); border-radius: var(--r-lg); }

.log-filters { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-end; margin-bottom: 20px; padding: 16px; background: var(--panel); border-radius: var(--r-lg); }
.log-filters .field { min-width: 0; }
.log-filters .w-req { width: 200px; font-family: var(--font-mono); }
.log-filters .w-msg { width: 220px; }
.log-filters .chips .chip { min-width: 0; height: 40px; }
.log-table td, .log-table th { font-size: 14px; }
.log-table .mono-c { font-family: var(--font-mono); white-space: nowrap; }
.log-table td { overflow-wrap: anywhere; }
.log-table .st-err { color: var(--error); font-weight: 700; }
.log-table .st-ok { color: var(--ok); }
.log-row.is-error { cursor: pointer; }
.log-row.is-reset td { border-top: 3px solid var(--ink); background: var(--panel); font-weight: 600; }
.log-trace td { background: var(--panel); padding: 12px 16px; }
.log-trace pre { margin: 8px 0 0; max-height: 360px; overflow: auto; font: 14px/1.5 var(--font-mono); white-space: pre; background: var(--white); border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 12px; }
.tb-last { background: #FEE2E2; color: #991B1B; display: inline-block; width: 100%; font-weight: 700; }
.copy-mini { width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-left: 6px; }
.copy-mini:hover { border-color: var(--ink); }
.copy-mini.is-copied { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }

.ev-bar { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-end; margin-bottom: 16px; }
.ev-live { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted-2); }
.ev-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); animation: pulse 1.5s ease-in-out infinite; }
.ev-live.is-paused .ev-dot { background: var(--border); animation: none; }
@keyframes pulse { 50% { opacity: 0.3; } }
.ev-topic { font: 600 15px var(--font-mono); margin: 0 0 8px; }
.ev-row { cursor: pointer; }
.ev-row.is-new td { animation: flash 1.5s ease-out; }
@keyframes flash { from { background: var(--lime); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .ev-dot { animation: none; } }

/* ---------- Ошибки и служебные экраны ---------- */
.err-page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 72px 16px; text-align: center; }
.err-page__code { font-family: var(--font-mono); font-size: 16px; color: var(--muted); }
.err-page__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 36px; letter-spacing: -0.01em; }
.err-page__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.err-page .server-error { text-align: left; max-width: 560px; }
.service { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 56px 32px; display: flex; flex-direction: column; gap: 32px; }
.service__logo { font-family: var(--font-display); font-weight: 800; font-size: 36px; }
.service__logo span { background: var(--lime); padding: 0 6px; }
.group-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.group-card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 16px; border: 1.5px solid var(--ink); border-radius: var(--r-lg);
  text-decoration: none; font-weight: 700; transition: background var(--t);
}
.group-card:hover { background: var(--lime); color: var(--ink); }
.group-card small { font-weight: 400; font-size: 14px; color: var(--muted-2); overflow-wrap: anywhere; }
.group-card.is-demo { background: var(--ink); color: var(--white); }
.group-card.is-demo small { color: #CFCFCB; }
.group-card.is-demo:hover { background: var(--lime); color: var(--ink); }
.group-card.is-demo:hover small { color: var(--ink); }
