/* NoriShop — минималистичный монохром в духе логотипа NORI: чёрный, белые тонкие линии, капс с разрядкой */
:root {
  --bg: #050505;
  --surface: #0e0e0f;
  --line: #1d1d20;
  --line2: #2e2e33;
  --text: #f2f2f2;
  --muted: #85858b;
  --dim: #55555b;
  --danger: #ff7171;
  --ok: #98d9a8;
  --warn: #e6c36a;
  --r: 12px;
  --pad: 16px;
  --caps: .14em;
  --safe-bottom: max(var(--tg-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
/* лёгкое зерно, как на логотипе */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
a { color: var(--text); text-underline-offset: 3px; }

.caps, .label, .section, .tag, .st, .btn, .chip, .box h3, .empty h2 { text-transform: uppercase; letter-spacing: var(--caps); }

#splash {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  display: grid; place-items: center; transition: opacity .4s;
}
#splash img { width: min(58vw, 240px); border-radius: 50%; animation: rise .8s ease-out both; }
#splash.hide { opacity: 0; pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

#app { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 6px var(--pad) calc(120px + var(--safe-bottom)); min-height: 100vh; }

/* ---------- шапка ---------- */
.top { display: flex; align-items: center; gap: 12px; min-height: 60px; margin-bottom: 10px; }
.top h1 { flex: 1; margin: 0; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; overflow-wrap: anywhere; }
.top .actions { margin-left: auto; display: flex; gap: 8px; }
.top.brand { min-height: 64px; margin-bottom: 0; }
.mark { height: 34px; width: auto; flex: none; }
.tagline {
  margin: 2px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .3em;
}
.round {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); flex: none;
  display: grid; place-items: center; position: relative; background: rgba(5, 5, 5, .6);
}
.round svg { width: 19px; height: 19px; }
.round:active, .btn:active, .card-tap:active { transform: scale(.97); }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--text); color: #000; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- чипсы ---------- */
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 20px; padding: 0 var(--pad); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted);
  white-space: nowrap; font-size: 11px; transition: all .15s;
}
.chip.on { background: var(--text); border-color: var(--text); color: #000; }
.chip.small { padding: 8px 12px; }

/* ---------- каталог ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 12px; }
.pcard { display: block; text-align: left; width: 100%; }
.pcard .img { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.pcard .title { margin-top: 12px; color: #d9d9dc; font-size: 12px; line-height: 1.35; text-transform: uppercase; letter-spacing: .06em; }
.pcard .price { margin-top: 5px; font-size: 14px; font-weight: 500; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.old { color: var(--dim); text-decoration: line-through; font-weight: 400; font-size: .85em; }
/* заглушка вместо фото: тусклый вордмарк NORI */
.ph { position: relative; background: var(--surface); flex: none; overflow: hidden; }
.ph::after { content: ""; position: absolute; inset: 0; background: url("assets/wordmark.png") center / 52% auto no-repeat; opacity: .18; }
.pcard .img .ph { width: 100%; height: 100%; }
.ph-gallery { width: 100%; aspect-ratio: 1; border-radius: var(--r); }
.citem .ph { width: 84px; height: 84px; border-radius: 10px; }
.prow .ph { width: 52px; height: 52px; border-radius: 8px; }
.lines .ph { width: 50px; height: 50px; border-radius: 8px; }
.ocard .thumbs .ph { width: 44px; height: 44px; border-radius: 8px; }
.ocard .thumbs .ph::after, .lines .ph::after, .prow .ph::after, .citem .ph::after { background-size: 70% auto; }
.tag {
  position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 6px;
  background: rgba(5, 5, 5, .72); border: 1px solid rgba(255, 255, 255, .22); color: var(--text);
  font-size: 9.5px; font-weight: 600; backdrop-filter: blur(6px);
}
.tag.light { background: var(--text); border-color: var(--text); color: #000; }
.pcard.soldout .img img { opacity: .4; filter: grayscale(1); }
.pcard.soldout .title, .pcard.soldout .price { color: var(--muted); }

/* ---------- товар ---------- */
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); scroll-snap-align: center; background: var(--surface); }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 12px; }
.dots i { width: 5px; height: 5px; border-radius: 3px; background: var(--line2); transition: all .2s; }
.dots i.on { width: 16px; background: var(--text); }
.ptitle { margin: 22px 0 6px; font-size: 19px; line-height: 1.25; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.bigprice { font-size: 17px; font-weight: 500; display: flex; gap: 10px; align-items: baseline; }
.pre {
  display: flex; flex-direction: column; gap: 3px; margin-top: 18px; padding: 12px 14px;
  border: 1px solid var(--line2); border-radius: var(--r);
}
.pre b { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--caps); }
.pre b::before { content: "✦ "; }
.pre span { color: var(--muted); font-size: 14px; }
.label { color: var(--muted); font-size: 11px; margin: 24px 0 10px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 60px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line2);
  text-align: center; font-size: 14px; transition: all .15s;
}
.size.on { background: var(--text); border-color: var(--text); color: #000; font-weight: 600; }
.size:disabled { color: var(--dim); border-color: var(--line); text-decoration: line-through; }
.desc-block { margin-top: 26px; border-top: 1px solid var(--line); }
.desc { color: #b4b4b9; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 16px; }
.box h3 { margin: 0 0 12px; font-size: 11px; font-weight: 500; color: var(--muted); }

/* ---------- нижние кнопки ---------- */
.bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 16px var(--pad) calc(14px + var(--safe-bottom));
  background: linear-gradient(to top, var(--bg) 62%, rgba(5, 5, 5, 0));
}
.bottom .inner { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
.btn {
  flex: 1; min-height: 52px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line2);
  background: rgba(5, 5, 5, .85); font-size: 12px; font-weight: 600; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .15s, transform .1s;
}
.btn.accent, .btn.small { background: var(--text); border-color: var(--text); color: #000; }
.btn.small { flex: none; min-height: 42px; padding: 0 20px; font-size: 11px; }
.btn:disabled { opacity: .4; }
.btn.ghost { border: 0; background: transparent; color: var(--muted); min-height: 44px; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 14px; }
.btn.danger { color: var(--danger); }

/* ---------- пусто ---------- */
.empty { text-align: center; padding: 20vh 24px 0; }
.empty .spark { display: block; font-style: normal; font-size: 22px; color: var(--muted); margin-bottom: 16px; }
.empty h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.empty p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

/* ---------- открыли в обычном браузере ---------- */
.tg-only {
  min-height: calc(100vh - 140px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 12px;
}
.tgo-logo { width: min(56vw, 220px); border-radius: 50%; margin-bottom: 26px; }
.tg-only h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--caps); }
.tg-only p { margin: 0 0 24px; color: var(--muted); font-size: 14px; max-width: 300px; }
.tg-only .btn { flex: none; width: 100%; max-width: 300px; text-decoration: none; }
.tgo-tag { margin-top: 28px; color: var(--dim); font-size: 9px; text-transform: uppercase; letter-spacing: .3em; }

/* ---------- корзина ---------- */
.citem { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.citem:first-of-type { border-top: 1px solid var(--line); }
.citem img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; background: var(--surface); flex: none; }
.citem .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.citem .t { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; line-height: 1.35; }
.citem .s { color: var(--muted); font-size: 13px; margin-top: 3px; }
.citem .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.citem .p { font-weight: 500; }
.citem .warn { color: var(--danger); font-size: 13px; margin-top: 4px; }
.pre-s { color: var(--text) !important; }
.pre-s::before { content: "✦ "; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 10px; }
.stepper button { width: 32px; height: 30px; font-size: 17px; line-height: 1; }
.stepper span { min-width: 20px; text-align: center; font-size: 14px; }

/* ---------- формы ---------- */
.section { font-size: 11px; color: var(--muted); margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.field { display: block; }
.field.full { grid-column: 1 / -1; }
.field.hint { color: var(--muted); font-size: 13px; margin-top: 12px; }
.field > span { display: block; color: var(--muted); font-size: 13px; margin: 14px 0 7px; }
.inp {
  width: 100%; min-height: 50px; padding: 13px 15px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); outline: none; font-size: 16px; appearance: none; -webkit-appearance: none; transition: border-color .15s;
}
.inp::placeholder { color: var(--dim); }
.inp:focus { border-color: #8a8a90; }
.inp.bad { border-color: var(--danger); }
textarea.inp { min-height: 96px; resize: vertical; line-height: 1.45; }
.err { color: var(--danger); font-size: 12px; margin-top: 6px; }
.inline { display: flex; gap: 8px; }
.inline .inp { flex: 1; }
.inline .btn { flex: none; min-height: 50px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 2px 0; color: #a9a9ae; font-size: 13px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--text); flex: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r); margin-top: 12px; }
.switch small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.switch input { width: 20px; height: 20px; accent-color: var(--text); flex: none; }

.sum { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 24px; }
.sum .r { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); margin: 5px 0; font-size: 14px; }
.sum .r b { color: var(--text); font-weight: 500; text-align: right; }
.sum .r.disc b { color: var(--ok); }
.sum hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.sum .r.total { color: var(--text); font-size: 16px; font-weight: 600; margin: 0; }
.sum .r.total b { font-weight: 600; }
.note { color: var(--muted); font-size: 12px; margin-top: 10px; line-height: 1.5; }

/* ---------- пункт выдачи СДЭК ---------- */
.pvz-card {
  display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left;
  padding: 14px 15px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface);
}
.pvz-card.empty { flex-direction: row; align-items: center; gap: 14px; border-style: dashed; }
.pvz-card.bad { border-color: var(--danger); }
.pvz-spark { font-size: 18px; color: var(--muted); }
.pvz-cta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pvz-cta b { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--caps); }
.pvz-cta small { color: var(--muted); font-size: 12.5px; }
.pvz-chev { font-size: 22px; color: var(--muted); }
.pvz-change { margin-left: auto; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.pi-top { display: flex; align-items: center; gap: 8px; }
.pi-type { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--caps); color: var(--muted); }
.pi-code { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; padding: 2px 6px; border: 1px solid var(--line2); border-radius: 5px; }
.pi-addr { font-size: 14.5px; line-height: 1.35; margin-top: 3px; }
.pi-meta { color: var(--muted); font-size: 12.5px; }
.pi-note { color: #a9a9ae; font-size: 12.5px; line-height: 1.45; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.pi-badges { display: flex; gap: 6px; margin-top: 6px; }
.pi-badges span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line2); border-radius: 5px; padding: 3px 6px; }

.pvz-city { position: relative; z-index: 5; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #0b0b0c; border: 1px solid var(--line2);
  border-radius: var(--r); overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .7);
}
.suggest button { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; padding: 11px 14px; }
.suggest button + button { border-top: 1px solid var(--line); }
.suggest button:active { background: var(--surface); }
.suggest b { font-weight: 500; font-size: 15px; }
.suggest small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-empty { padding: 12px 14px; color: var(--muted); font-size: 13px; }
.pvz-map {
  position: relative; z-index: 1; height: 300px; margin: 12px 0 0; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: #0a0a0b;
}
.pvz-map-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; text-align: center; padding: 0 30px; }
.pvz-map-empty span { font-size: 20px; }
.pvz-map .leaflet-container, .pvz-map.leaflet-container { background: #0a0a0b; font: inherit; }
/* светлая карта OSM → тёмный монохром в стиле магазина */
.pvz-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.78) contrast(1.15); }
.pvz-map .leaflet-control-attribution { background: rgba(5, 5, 5, .7) !important; color: var(--dim) !important; font-size: 9px; }
.pvz-map .leaflet-control-attribution a { color: var(--muted) !important; }
.pvz-tools { margin-top: 12px; }
.pvz-count { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin: 14px 0 8px; }
.pvz-list { display: flex; flex-direction: column; gap: 8px; }
.pvz-item {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, background .15s;
}
.pvz-item.on { border-color: var(--text); background: var(--surface); }
.pvz-item.on .pi-type { color: var(--text); }
.pvz-item.on .pi-type::before { content: "✦ "; }

/* ---------- заказы ---------- */
.ocard { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 10px; }
.ocard .h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ocard .n { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.ocard .d { color: var(--muted); font-size: 13px; margin-top: 3px; }
.ocard .thumbs { display: flex; gap: 6px; margin-top: 12px; }
.ocard .thumbs img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface); }
.ocard .tot { margin-left: auto; align-self: flex-end; font-weight: 500; }
.chips-inline { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.st { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 9.5px; font-weight: 600; white-space: nowrap; border: 1px solid currentColor; color: #cfcfd3; }
.st-new { color: var(--warn); }
.st-shipped { color: #8fc5ff; }
.st-delivered { color: var(--ok); }
.st-cancelled, .st-refund { color: var(--danger); }
.st-pre { background: var(--text); border-color: var(--text); color: #000; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.track { display: flex; align-items: center; gap: 10px; }
.track code { flex: 1; font-size: 16px; letter-spacing: .06em; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1px; background: var(--line2); }
.timeline li:last-child::after { display: none; }
.timeline .t { font-weight: 500; font-size: 14px; }
.timeline .s { color: var(--muted); font-size: 12px; }
.lines .l { display: flex; gap: 12px; align-items: center; padding: 9px 0; }
.lines .l + .l { border-top: 1px solid var(--line); }
.lines img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; background: var(--surface); flex: none; }
.lines .x { flex: 1; min-width: 0; font-size: 13px; }
.lines .x div:first-child { text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.lines .x .m { color: var(--muted); margin-top: 2px; }
.lines .pr { font-weight: 500; white-space: nowrap; font-size: 14px; }
.timer { color: var(--warn); font-variant-numeric: tabular-nums; }

/* ---------- админка ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.tile b { display: block; font-size: 22px; font-weight: 600; }
.tile span { color: var(--muted); font-size: 12px; }
.menu { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 16px; font-size: 15px; text-align: left; }
.menu button + button { border-top: 1px solid var(--line); }
.menu .c { color: var(--muted); font-size: 13px; }
.prow { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 9px 14px 9px 9px; margin-bottom: 8px; }
.prow img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--surface); flex: none; }
.prow .x { flex: 1; min-width: 0; }
.prow .x div:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .x .m { color: var(--muted); font-size: 12px; margin-top: 2px; }
.prow.off { opacity: .45; }
.imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.imgs .im { position: relative; width: 88px; height: 88px; }
.imgs .im img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: var(--surface); }
.imgs .im .ctl { position: absolute; inset: auto 4px 4px; display: flex; justify-content: space-between; }
.imgs .im .ctl button { width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .75); font-size: 13px; }
.imgs .add { width: 88px; height: 88px; border-radius: 10px; border: 1px dashed var(--line2); display: grid; place-items: center; color: var(--muted); font-size: 26px; }
.srow { display: grid; grid-template-columns: 1fr 100px 46px; gap: 8px; margin-top: 8px; }
.srow .inp { min-height: 46px; padding: 10px 13px; font-size: 15px; }
.srow .round { width: 46px; height: 46px; border-radius: 10px; color: var(--danger); }
.linkbtn { color: var(--text); font-size: 14px; padding: 10px 0; text-decoration: underline; text-underline-offset: 3px; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.status-grid .chip { text-align: center; border-radius: 10px; }
.copy { color: var(--text); font-size: 13px; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.spin { width: 24px; height: 24px; margin: 30vh auto 0; border: 2px solid var(--line2); border-top-color: var(--text); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-text { white-space: pre-wrap; color: #b9b9be; line-height: 1.6; font-size: 14px; overflow-wrap: anywhere; }
.big-ok { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 20px; border: 1px solid var(--ok); display: grid; place-items: center; }
.big-ok svg { width: 34px; height: 34px; color: var(--ok); }

#toast {
  position: fixed; left: 50%; bottom: calc(92px + var(--safe-bottom)); z-index: 60;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: all .25s;
  background: var(--text); color: #000; padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
  max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .6);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--danger); color: #000; }

@media (max-width: 360px) {
  :root { --pad: 12px; }
  .mark { height: 28px; }
  .tagline { letter-spacing: .2em; }
  .grid { gap: 24px 10px; }
}
