/* Раскладка и компоненты. Цвета, шрифты и радиусы — только переменные из theme.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--c-bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: var(--f-num);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: var(--f-num); }

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

/* ---------- Шапка: текстовый логотип на паттерне из знаков ---------- */

.masthead {
  position: relative;
  display: grid;
  place-items: center;
  height: 76px;
  overflow: hidden;
  background: var(--c-header-bg);
  color: var(--c-header-ink);
}
.masthead-pattern, .splash-pattern, .noaccess-pattern {
  position: absolute;
  inset: 0;
  background-color: var(--c-header-pattern);
  -webkit-mask: url('assets/brand/pattern-tile.svg') 0 0 / 128px 128px repeat;
  mask: url('assets/brand/pattern-tile.svg') 0 0 / 128px 128px repeat;
}
.masthead-logo { position: relative; width: 172px; height: auto; }

/* ---------- Плашки ---------- */

.demo-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--c-demo-bg);
  color: var(--c-demo-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.demo-sign { width: 9px; height: auto; flex: none; }
.stale-bar {
  padding: 9px 16px;
  background: var(--c-stale-bg);
  color: var(--c-stale-ink);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* ---------- Выбор периода и точки ---------- */

.view { padding: 0 16px; }
.controls { margin: 14px -16px 0; }
.chips {
  display: flex;
  gap: 8px;
  padding: 2px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips + .chips, .custom + .chips { margin-top: 10px; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-chip);
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip.is-on { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
.chip--point { padding: 7px 12px; font-size: 13px; background: transparent; }
.chip--point.is-on { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); font-weight: 600; }
.chip-sign { width: 7px; height: auto; margin-right: 6px; }

.custom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px 0;
}
.field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 110px; min-width: 0; }
.field-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.date {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-inner);
  background: var(--c-surface);
  color: var(--c-ink);
}
.field-msg { width: 100%; margin: 0; color: var(--c-bad); font-size: 13px; font-weight: 500; }

/* ---------- Заголовок раздела ---------- */

.screen-head { margin: 22px 0 16px; }
.screen-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(34px, 10vw, 42px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  color: var(--c-ink);
}
.view--card .screen-title { font-size: clamp(27px, 8vw, 34px); line-height: 1.05; overflow-wrap: anywhere; }
.screen-label { margin: 6px 0 0; color: var(--c-muted); font-size: 14px; font-weight: 500; }
.screen-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.updated { font-size: 12px; color: var(--c-faint); }
.pill-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 11px;
  border: 0;
  border-radius: var(--r-chip);
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-size: 12.5px;
  font-weight: 600;
}
.pill-x { font-size: 16px; line-height: 1; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 16px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--c-accent-text);
  font-size: 15px;
  font-weight: 600;
}
.back span { font-size: 24px; line-height: 0.8; }

/* ---------- «Марка»: главная карточка итогов с перфорированным краем (стр. 9) ---------- */

.stamp, .sk-stamp {
  position: relative;
  margin: 0 0 14px;
  padding: 30px 20px 28px;
  background: var(--c-stamp-bg);
  color: var(--c-stamp-ink);
  -webkit-mask:
    radial-gradient(circle at 50% 0, transparent var(--stamp-hole), black calc(var(--stamp-hole) + 0.5px)) top center / var(--stamp-step) 51% repeat-x,
    radial-gradient(circle at 50% 100%, transparent var(--stamp-hole), black calc(var(--stamp-hole) + 0.5px)) bottom center / var(--stamp-step) 51% repeat-x;
  mask:
    radial-gradient(circle at 50% 0, transparent var(--stamp-hole), black calc(var(--stamp-hole) + 0.5px)) top center / var(--stamp-step) 51% repeat-x,
    radial-gradient(circle at 50% 100%, transparent var(--stamp-hole), black calc(var(--stamp-hole) + 0.5px)) bottom center / var(--stamp-step) 51% repeat-x;
}
.stamp-sign { position: absolute; top: 28px; right: 18px; width: 40px; }
.stamp-sign-svg { display: block; width: 100%; height: auto; }
.stamp-label { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-stamp-muted); padding-right: 52px; }
.stamp-value {
  margin: 8px 0 12px;
  padding-right: 48px;
  font-size: clamp(31px, 10.4vw, 44px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.stamp-delta:empty { display: none; }
.stamp-norm { margin-top: 10px; font-size: 13px; color: var(--c-stamp-muted); }
.stamp-forecast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-stamp-line);
  font-size: 14px;
}
.stamp-forecast b { font-size: 17px; font-weight: 600; text-align: right; }
.stamp-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--c-stamp-line);
}
.stamp-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--c-muted); }
.stat-value { margin-top: 2px; font-size: 18px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.stat-sub { font-size: 12px; color: var(--c-muted); }
.stamp .stat-label, .stamp .stat-sub { color: var(--c-stamp-muted); }
.stamp-stats--3 .stat-value { font-size: 16px; }

/* ---------- Отклонение от нормы ---------- */

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: var(--r-chip);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.delta--good { background: var(--c-good-soft); color: var(--c-good); }
.delta--bad { background: var(--c-bad-soft); color: var(--c-bad); }
.delta--stamp.delta--good { background: var(--c-stamp-good-bg); color: var(--c-stamp-good-ink); }
.delta--stamp.delta--bad { background: var(--c-stamp-bad-bg); color: var(--c-stamp-bad-ink); }
.txt-good { color: var(--c-good); font-weight: 600; }
.txt-bad { color: var(--c-bad); font-weight: 600; }

/* ---------- Карточки и строки ---------- */

.card {
  margin: 0 0 14px;
  padding: 16px 16px 6px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  background: var(--c-surface);
  box-shadow: var(--shadow-card);
}
.card--flush { padding: 2px 16px; margin: 8px 0 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.card-title { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-muted); }
.card-hint { font-size: 12px; color: var(--c-faint); }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--c-line);
  background: none;
  color: inherit;
  text-align: left;
}
.row:first-child, .card-head + .row, .stack + .row { border-top: 0; }
.row--tap { cursor: pointer; transition: background-color 0.15s; }
.row--tap:active { background: var(--c-overlay); }
.row.is-active { box-shadow: inset 3px 0 0 var(--c-accent); padding-left: 12px; }
.row.is-active .row-title { color: var(--c-accent-text); font-weight: 600; }
.rows-tight .row { padding: 9px 0; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 15px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.row-sub { margin-top: 2px; font-size: 12.5px; color: var(--c-muted); overflow-wrap: anywhere; }
.row-side { flex: none; max-width: 50%; text-align: right; }
.row-value { font-size: 15px; font-weight: 600; white-space: nowrap; }
.row-vsub { margin-top: 2px; font-size: 12.5px; color: var(--c-muted); white-space: nowrap; }
.row-chev { flex: none; margin-left: -4px; color: var(--c-faint); font-size: 20px; line-height: 1; }

.meter { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--c-track); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 2px; background: var(--c-bar); }
.row.is-active .meter i { background: var(--c-accent); }
.card > .meter { margin: 0 0 14px; }

.stack { display: flex; gap: 2px; height: 10px; margin: 4px 0 8px; border-radius: 5px; overflow: hidden; }
.stack i { display: block; height: 100%; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }

.abc {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.abc--a { background: var(--c-accent); color: var(--c-on-accent); }
.abc--b { background: var(--c-surface-2); color: var(--c-ink); }
.abc--c { border: 1px solid var(--c-line); color: var(--c-faint); }

.kv-value { font-size: 24px; font-weight: 600; line-height: 1.2; }
.kv-sub { margin: 4px 0 12px; font-size: 13px; color: var(--c-muted); }
.kv-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 4px 0 14px; font-size: 14px; }
.kv-list dt { color: var(--c-muted); }
.kv-list dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 12px; border-top: 2px solid var(--c-ink); font-weight: 500; }
.total-row b { font-size: 17px; font-weight: 600; }

.note { margin: 4px 0 12px; font-size: 13.5px; color: var(--c-muted); }
.card > .note:last-child { margin-bottom: 14px; }
.more {
  display: block;
  width: 100%;
  margin: 4px 0 10px;
  padding: 11px;
  border: 1px dashed var(--c-line);
  border-radius: var(--r-inner);
  background: transparent;
  color: var(--c-accent-text);
  font-size: 14px;
  font-weight: 600;
}
.link { padding: 0; border: 0; background: none; color: var(--c-accent-text); font-size: 13px; font-weight: 600; }
.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 8px;
  border-radius: var(--r-chip);
  background: var(--c-surface-2);
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  vertical-align: 2px;
}
.tag--new { background: var(--c-accent-soft); color: var(--c-accent-text); }
/* статусы остатков: нет — залитая, заканчивается — оранжевая, лежит — приглушённая, ок — зелёная */
.tag--out { background: var(--c-bad); color: var(--c-on-status); }
.tag--low { background: var(--c-bad-soft); color: var(--c-bad); }
.tag--idle { background: var(--c-surface-2); color: var(--c-muted); }
.tag--ok { background: var(--c-good-soft); color: var(--c-good); }
.tag--minus { padding: 2px 7px; border: 1px solid var(--c-bad); background: transparent; color: var(--c-bad); }
.row--stock .row-title .tag { margin-left: 0; margin-right: 4px; vertical-align: 1px; }
.row--stock .row-title > span > .tag:first-of-type { margin-left: 2px; }
.stock-out { display: inline-block; padding: 1px 7px; border-radius: var(--r-chip); background: var(--c-bad); color: var(--c-on-status); font-weight: 600; font-size: 11.5px; }
.stock-minus { display: inline-block; padding: 0 6px; border: 1px solid var(--c-bad); border-radius: var(--r-chip); color: var(--c-bad); font-weight: 600; font-size: 11.5px; }
.stamp-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--c-stamp-muted); }
.stock-summary { margin: -4px 0 14px; font-size: 13.5px; color: var(--c-muted); }
.order-head { margin: 0 0 6px; }
.order-horizon { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.order-head .btn { margin: 0 0 14px; }
.copy-text { display: block; box-sizing: border-box; width: 100%; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-inner); background: var(--c-surface); color: var(--c-ink); font: inherit; font-size: 13px; line-height: 1.4; resize: vertical; user-select: text; -webkit-user-select: text; }

.seg { display: inline-flex; padding: 3px; border-radius: var(--r-chip); background: var(--c-surface-2); }
.seg-btn { padding: 6px 11px; border: 0; border-radius: var(--r-chip); background: transparent; color: var(--c-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.seg-btn.is-on { background: var(--c-ink); color: var(--c-bg); }
.seg--wide { display: flex; margin: 0 0 14px; }
.seg--wide .seg-btn { flex: 1; padding: 9px 8px; font-size: 13px; }

.btn { padding: 12px 22px; border: 0; border-radius: var(--r-inner); font-size: 15px; font-weight: 600; }
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.btn--ghost { border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-accent-text); }

/* ---------- Поиск и фильтр поставщика ---------- */

.search { margin: 0 0 14px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-inner);
  background: var(--c-surface);
}
.search-ic { position: relative; flex: none; width: 14px; height: 14px; border: 2px solid var(--c-faint); border-radius: 50%; }
.search-ic::after { content: ''; position: absolute; right: -5px; bottom: -4px; width: 6px; height: 2px; background: var(--c-faint); transform: rotate(45deg); border-radius: 1px; }
.search-input { flex: 1; min-width: 0; padding: 13px 0; border: 0; outline: none; background: transparent; font-size: 15px; -webkit-appearance: none; appearance: none; }
.search-input::placeholder { color: var(--c-faint); }
.search-results:empty { display: none; }

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-inner);
  background: var(--c-surface);
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.select-wrap.is-on { border-color: var(--c-accent); }
.select-label { flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.select { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: none; background: transparent; font-size: 15px; font-weight: 500; text-align: right; text-align-last: right; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }

/* ---------- Графики ---------- */

.chart { margin: 0 0 10px; }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 22px; margin-bottom: 8px; font-size: 12.5px; color: var(--c-muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg-bar { width: 10px; height: 10px; border-radius: 2px; background: var(--c-bar); }
.lg-norm { width: 16px; height: 0; border-top: 2px dashed var(--c-norm); }
.lg-hint { margin-left: auto; font-size: 11.5px; color: var(--c-faint); }
.chart-sel { color: var(--c-ink); font-size: 13px; }
.chart-sel b { font-weight: 600; }
.chart-norm { color: var(--c-muted); }
.chart-box { width: 100%; min-height: 188px; }
.chart-svg { display: block; overflow: visible; }
.chart-svg .grid { stroke: var(--c-line); stroke-dasharray: 2 4; }
.chart-svg .axis { stroke: var(--c-line); }
.chart-svg .tick, .chart-svg .xl { fill: var(--c-faint); font-family: var(--f-ui); font-size: 10.5px; font-variant-numeric: var(--f-num); }
.chart-svg .tick { paint-order: stroke; stroke: var(--c-surface); stroke-width: 3px; stroke-linejoin: round; }
.chart-svg .xl--sel { fill: var(--c-ink); font-weight: 600; }
.chart-svg .bar { fill: var(--c-bar); transition: fill 0.15s; }
.chart-svg .bar--soft { fill: var(--c-bar-soft); }
.chart-svg .bar--sel { fill: var(--c-bar-sel); }
.chart-svg .norm { fill: none; stroke: var(--c-norm); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .norm-dot { fill: var(--c-surface); stroke: var(--c-norm); stroke-width: 1.5; }
.chart-svg .hit { fill: transparent; cursor: pointer; }

/* ---------- Нижняя навигация ---------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 560px;
  margin: 0 auto;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-line);
  background: var(--c-nav-bg);
  box-shadow: var(--shadow-nav);
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0 4px;
  border: 0;
  background: none;
  color: var(--c-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tab-ic { width: 24px; height: 24px; }
.tab-ic path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-on { color: var(--c-accent-text); }
.tab.is-on::before {
  content: '';
  position: absolute;
  top: -7px;
  width: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--c-accent);
}

/* ---------- Состояния: загрузка, пусто, ошибка ---------- */

.sk {
  display: block;
  height: 12px;
  margin: 10px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--c-skeleton) 0%, var(--c-skeleton-hi) 50%, var(--c-skeleton) 100%);
  background-size: 200% 100%;
  animation: sk 1.3s linear infinite;
}
.sk--title { height: 34px; }
.sk--big { height: 30px; }
.sk-head { margin: 22px 0 16px; }
.sk-stamp { padding: 26px 20px; }
.sk-stamp .sk { background: var(--c-overlay); }
.sk-card { margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--c-line); border-radius: var(--r-card); background: var(--c-surface); }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.empty {
  position: relative;
  overflow: hidden;
  margin: 0 0 16px;
  padding: 36px 24px 34px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  background: var(--c-surface);
  text-align: center;
}
.empty-leaf { position: absolute; right: -64px; bottom: -110px; width: 210px; height: auto; color: var(--c-surface-2); transform: rotate(-24deg); }
.empty-logo { position: relative; width: 148px; height: auto; color: var(--c-ink); }
.empty-text { position: relative; margin: 18px 0 4px; font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.empty-sub { position: relative; margin: 0; color: var(--c-muted); font-size: 14px; }

.error-box {
  margin: 8px 0 16px;
  padding: 28px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  background: var(--c-surface);
  text-align: center;
}
.error-title { margin: 0 0 6px; font-family: var(--f-display); font-size: 27px; font-weight: 600; line-height: 1.1; }
.error-text { margin: 0 0 18px; color: var(--c-muted); font-size: 14px; }

/* ---------- Заставка и «Нет доступа»: логотип со знаком, крупные листья, слоган ---------- */

.splash, .noaccess {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--c-splash-bg);
  color: var(--c-splash-ink);
  text-align: center;
}
.splash { transition: opacity 0.45s ease, visibility 0.45s; }
.splash.is-gone { opacity: 0; visibility: hidden; }
.splash .splash-pattern, .noaccess-pattern { background-color: var(--c-splash-pattern); -webkit-mask-size: 150px 150px; mask-size: 150px 150px; }
.splash-leaf, .noaccess-leaf { position: absolute; height: auto; color: var(--c-splash-leaf); }
.splash-leaf--a, .noaccess-leaf { top: -30vh; right: -34vw; width: min(88vw, 470px); transform: rotate(24deg); }
.splash-leaf--b { bottom: -30vh; left: -30vw; width: min(80vw, 430px); transform: rotate(-160deg); }
.splash-center, .noaccess-body { position: relative; padding: 32px 28px; }
.splash-logo { width: min(66vw, 270px); height: auto; }
.splash-slogan { margin: 22px 0 0; font-family: var(--f-display); font-size: 23px; font-weight: 600; letter-spacing: 0.02em; }
.splash-dots { display: inline-flex; gap: 6px; margin-top: 22px; }
.splash-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.25; animation: dot 1.2s infinite ease-in-out; }
.splash-dots i:nth-child(2) { animation-delay: 0.15s; }
.splash-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.noaccess { position: relative; min-height: 100vh; }
.noaccess-logo { width: min(58vw, 220px); height: auto; }
.noaccess-title { margin: 26px 0 8px; font-family: var(--f-display); font-size: 38px; font-weight: 600; line-height: 1; }
.noaccess-text { margin: 0 0 12px; font-size: 16px; }
.noaccess-id { margin: 0; font-size: 13px; opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
  .sk, .splash-dots i { animation: none; }
  .splash, .chip, .row--tap, .chart-svg .bar { transition: none; }
}
@media (min-width: 420px) {
  .stamp { padding-left: 24px; padding-right: 24px; }
}
