/* НЕУРОК: бумага, чернила, бирюза. Поля тетради слева. */
:root {
  --paper: #F7F3EA;
  --card: #FFFDF8;
  --ink: #1F2A44;
  --muted: #5B6478;
  --line: #C9C2B2;
  --margin: #E4A89A;
  --teal: #2E6F6A;
  --teal-dark: #1F4F4B;
  --teal-soft: #CFE3DF;
  --hatch-a: #5FA59B;
  --hatch-b: #86C0B6;
  --peach: #F1C6B8;
  --sand: #F2D9A0;
  --lilac: #D9D3EA;
  --err: #A63A28;
  --r: 16px 12px 18px 12px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --hand: 'Caveat', cursive;
  --sans: 'Golos Text', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; line-height: 1.1; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
p { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Страница ---------- */
.page {
  position: relative; max-width: 520px; margin: 0 auto; min-height: 100vh;
  padding: 20px 20px 32px 36px; display: flex; flex-direction: column; gap: 30px;
}
.page::before { /* поле тетради */
  content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 1px; background: var(--margin);
}
@media (min-width: 560px) {
  body { background: linear-gradient(90deg, #EFE9DB 0, var(--paper) 18%, var(--paper) 82%, #EFE9DB 100%); }
  .page { background: var(--paper); box-shadow: 0 0 0 1px #E8E1D1; padding-left: 44px; }
  .page::before { left: 24px; }
}
.hdr { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: 3px; color: var(--ink); text-decoration: none; }
.logo small { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.hdr-link { font-size: 14px; font-weight: 500; }

.hero { display: flex; flex-direction: column; gap: 6px; }
.hero h1 { font-size: 50px; line-height: .95; }
.h-mid { font-size: 42px !important; }
.squiggle { color: var(--teal); }
.squiggle path { stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw 1.4s .3s cubic-bezier(.6,.1,.3,1) forwards; }
.subtitle { font-family: var(--serif); font-weight: 600; font-size: 29px; line-height: 1.1; }
.lead { font-size: 17px; }

.classbox { background: var(--teal-soft); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.classbox-title { font-size: 18px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 5px 10px; border: 1px solid var(--ink); border-radius: 14px 10px 14px 10px; font-size: 13px; background: var(--paper); }

/* Фото */
.gallery { display: flex; flex-direction: column; gap: 10px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; scrollbar-width: none; border-radius: 18px 12px 20px 14px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 250px; margin: 0; scroll-snap-align: center; border: 1.5px solid var(--ink); border-radius: 18px 12px 20px 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.ph span { font-family: var(--hand); font-size: 24px; color: var(--muted); }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 4px; border: 1px solid var(--teal); transition: width .3s, background .3s; }
.dots i.on { background: var(--teal); width: 20px; }

.about { display: flex; flex-direction: column; gap: 14px; }
.about > p { font-size: 16px; line-height: 1.55; }
.meta { font-size: 14px !important; color: var(--muted); }
.chars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.char { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.char span { font-family: var(--hand); font-size: 18px; text-align: center; line-height: 1.1; }
.medal { width: 58px; height: 70px; border: 1.5px solid var(--ink); border-radius: 50%; animation: float 5s ease-in-out var(--d, 0s) infinite; }

/* «Ещё о спектакле» */
.more summary { list-style: none; cursor: pointer; height: 48px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--teal); border-radius: 14px 10px 16px 10px; color: var(--teal); font-weight: 600; transition: background .2s; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { background: var(--teal-soft); }
.more summary span { display: inline-flex; align-items: center; gap: 8px; }
.more .when-open, .more[open] .when-closed { display: none; }
.more[open] .when-open { display: inline-flex; }
.more[open] summary { margin-top: 0; order: 2; }
.more-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 16px; animation: unfold .45s ease; }
.more-body h3 { font-size: 26px; margin-top: 6px; }
.video { height: 180px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--card); display: flex; align-items: center; justify-content: center; }
.play { width: 56px; height: 56px; border-radius: 28px; background: var(--teal); position: relative; animation: pulse 2.4s infinite; }
.play::after { content: ''; position: absolute; left: 22px; top: 17px; border-left: 16px solid var(--card); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ph-sm { height: 130px; border: 1.5px solid var(--ink); border-radius: 14px 10px 16px 10px; }
.quote { margin: 0; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--card); padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.quote.hand { font-family: var(--hand); font-size: 22px; line-height: 1.3; }
.quote small { font-family: var(--sans); font-size: 13px; color: var(--muted); }

.endorse { display: flex; flex-direction: column; gap: 12px; }
.endorser { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px 10px 16px 10px; text-align: center; font-size: 13px; line-height: 1.3; transition: transform .2s; }
.endorser:hover { transform: translateY(-2px) rotate(-.5deg); }
.endorser img { max-width: 80px; max-height: 64px; }
.logo-ph { width: 64px; height: 64px; border: 1.5px dashed var(--muted); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
a[aria-disabled] { color: var(--muted); pointer-events: none; }

/* ---------- Прогресс ---------- */
.card { position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: 20px 14px 22px 12px; box-shadow: 4px 5px 0 var(--teal); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.progress .big { font-family: var(--serif); font-weight: 700; font-size: 50px; line-height: 1; }
.progress .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.pct { font-family: var(--hand); font-size: 26px; font-weight: 700; color: var(--teal); }
.bar { height: 22px; border: 1.5px solid var(--ink); border-radius: 12px 8px 14px 9px; overflow: hidden; background: var(--card); }
.bar.small { height: 12px; margin-top: 8px; }
.bar-fill {
  height: 100%; width: 0; border-right: 1.5px solid var(--ink);
  background: repeating-linear-gradient(-45deg, var(--hatch-a) 0 6px, var(--hatch-b) 6px 12px);
  background-size: 33.94px 33.94px;
  animation: stripes 1.6s linear infinite;
  transition: width 1.6s cubic-bezier(.2,.8,.2,1);
}
.bar-fill[data-full] { border-right: 0; }
.reserved { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.bump { position: absolute; right: 20px; top: 18px; font-family: var(--hand); font-size: 28px; font-weight: 700; color: var(--teal); pointer-events: none; animation: bump 2.2s ease-out forwards; }
.progress.flash { animation: glow 1.2s ease; }

.stamp { position: absolute; right: 14px; top: -24px; border: 2.5px solid currentColor; border-radius: 10px; padding: 6px 12px; font-family: var(--hand); font-size: 25px; font-weight: 700; background: var(--paper); transform: rotate(8deg); animation: stamp .7s .5s cubic-bezier(.3,1.6,.5,1) both; }
.stamp.ok { color: var(--teal); }
.stamp.no { color: var(--ink); transform: rotate(-6deg); animation-name: stamp2; }

/* ---------- Форма ---------- */
.pay { display: flex; flex-direction: column; gap: 16px; }
.payform { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 14px; font-weight: 500; }
input[type=text], input[type=email], input[type=number], input[type=password], input[type=datetime-local], input:not([type]) {
  height: 52px; border: 1.5px solid var(--ink); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink); background: var(--card); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
#amt { font-size: 22px; font-weight: 600; }
input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46,111,106,.18); }
input.bad { border-color: var(--err); animation: shake .35s; }
.hint { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.hint.err { color: var(--err); font-weight: 500; }
.center { text-align: center; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.chip { height: 44px; padding: 0 16px; border: 1.5px solid var(--teal); border-radius: 22px 18px 22px 16px; background: transparent; color: var(--teal); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: transform .15s, background .2s, color .2s; }
.chip:hover { transform: translateY(-1px) rotate(-1deg); }
.chip.on { background: var(--teal); color: var(--card); animation: pop .25s; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.45; margin: 4px 0; }
.check input { flex-shrink: 0; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal); }
.form-error { display: none; color: var(--err); font-size: 14px; font-weight: 500; }
.form-error.show { display: block; animation: shake .35s; }
.btn, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 58px; border-radius: 16px 12px 18px 12px; font: inherit; font-size: 18px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .2s, background .2s; }
.btn { border: none; background: var(--teal); color: var(--card); box-shadow: 0 3px 0 var(--teal-dark); }
.btn:hover { color: var(--card); transform: translateY(-1px); box-shadow: 0 4px 0 var(--teal-dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--teal-dark); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.loading { pointer-events: none; }
.btn.loading::after { content: ''; width: 18px; height: 18px; border: 2px solid var(--card); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-outline { height: 48px; border: 1.5px solid var(--teal); background: transparent; color: var(--teal); font-size: 16px; }
.btn-outline:hover { background: var(--teal-soft); }
.btn.small, .btn-outline.small { height: 42px; font-size: 15px; padding: 0 16px; }
.btn-outline.danger { border-color: var(--err); color: var(--err); }
.stack { display: flex; flex-direction: column; gap: 12px; }

.note-teal { background: var(--teal-soft); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.55; }
.note-teal small { font-size: 13px; }
.h-teal { font-size: 30px; }
.card-plain { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }

.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.num { flex-shrink: 0; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 18px 14px 17px 15px; display: flex; align-items: center; justify-content: center; font-family: var(--hand); font-size: 22px; font-weight: 700; }
.reveal.in .num { animation: pop .4s both; }
.reveal.in .step:nth-child(3) .num { animation-delay: .1s; } .reveal.in .step:nth-child(4) .num { animation-delay: .2s; } .reveal.in .step:nth-child(5) .num { animation-delay: .3s; }

.help { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot { margin-top: auto; border-top: 1px dashed var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }

/* Платёж */
.code-big { font-family: var(--serif); font-weight: 700; font-size: 42px; letter-spacing: 2px; line-height: 1; }
.kv { display: flex; flex-direction: column; gap: 6px; font-size: 15px; border-top: 1px dashed var(--line); padding-top: 12px; }
.sep { border-top: 1px dashed var(--line); padding-top: 10px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--teal); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
.pstatus { transition: color .3s; }
.pstatus.changed { animation: pop .4s; }
.st-succeeded { color: var(--teal); }
.st-failed, .st-expired { color: var(--err); }
.big-tag { align-self: flex-start; font-size: 14px; font-weight: 600; }
.big-tag.st-succeeded { background: var(--teal-soft); border-color: var(--teal); }
.big-tag.st-pending, .big-tag.st-created { background: var(--sand); }
.big-tag.st-refunded, .big-tag.st-refund_pending { background: var(--lilac); }
.big-tag.st-failed, .big-tag.st-expired { background: var(--peach); color: var(--ink); }
.status-form .inline { display: flex; gap: 8px; margin-top: 6px; }
.status-form input { text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.legend { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.leg { display: flex; gap: 10px; align-items: flex-start; }
.leg i { flex-shrink: 0; width: 12px; height: 12px; margin-top: 5px; border-radius: 6px; border: 1px solid var(--ink); }

/* Документы */
.doc { gap: 12px; }
.h-doc { font-size: 34px; line-height: 1.05; margin-top: 12px; }
.doc h2 { font-size: 22px; margin-top: 10px; line-height: 1.2; }
.doc p { font-size: 14px; line-height: 1.6; }

/* Конфетти */
.confetti { position: fixed; top: -20px; width: 10px; height: 14px; border: 1px solid var(--ink); z-index: 50; pointer-events: none; animation: fall linear forwards; }

/* ---------- Анимации ---------- */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.pre { opacity: 0; transform: translateY(16px); }
.reveal.pre.in { opacity: 1; transform: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes stripes { to { background-position: 33.94px 0; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.4) rotate(20deg); } 70% { opacity: 1; transform: scale(.94) rotate(7deg); } 100% { opacity: 1; transform: scale(1) rotate(8deg); } }
@keyframes stamp2 { 0% { opacity: 0; transform: scale(2.4) rotate(-20deg); } 70% { opacity: 1; transform: scale(.94) rotate(-5deg); } 100% { opacity: 1; transform: scale(1) rotate(-6deg); } }
@keyframes bump { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 15% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-46px) scale(1); } }
@keyframes glow { 0% { box-shadow: 4px 5px 0 var(--teal); } 40% { box-shadow: 4px 5px 0 var(--teal), 0 0 0 8px rgba(95,165,155,.3); } 100% { box-shadow: 4px 5px 0 var(--teal); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unfold { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,111,106,.45); } 70% { box-shadow: 0 0 0 16px rgba(46,111,106,0); } 100% { box-shadow: 0 0 0 0 rgba(46,111,106,0); } }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(105vh) rotate(720deg); opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .squiggle path { stroke-dashoffset: 0; }
}

/* ---------- Тестовый банк ---------- */
.is-bank { background: #E9EDF2; font-family: system-ui, sans-serif; }
.bank { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.bank-card { width: 100%; max-width: 400px; background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: 14px; animation: unfold .4s; }
.bank-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bank-logo { font-weight: 800; letter-spacing: 1px; color: #2B4C7E; }
.bank-warn { font-size: 11px; background: #FFF3C4; padding: 4px 8px; border-radius: 6px; }
.bank-sum { font-size: 34px; font-weight: 700; }
.bank-desc { font-size: 14px; color: #555; }
.bank-fake { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #777; }
.bank-input { border: 1px solid #D5DAE1; border-radius: 8px; padding: 12px; font-size: 16px; color: #333; background: #FAFBFC; }
.bank-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
[data-bank-form] { display: flex; flex-direction: column; gap: 8px; }
.bank-btn { display: block; text-align: center; text-decoration: none; height: 50px; border: 0; border-radius: 10px; background: #2B4C7E; color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; line-height: 50px; }
.bank-btn.sbp { background: #5B2B82; }
.bank-btn.ghost { background: #fff; color: #A63A28; border: 1px solid #E3B6AE; }
.bank-cancel { background: none; border: 0; color: #777; font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; padding: 8px; }

/* ---------- Админка ---------- */
.is-admin { background: #F3EFE5; }
.admin { max-width: 1180px; margin: 0 auto; padding: 16px; }
.adm-hdr { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 8px 0 16px; }
.adm-hdr nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.adm-hdr nav a, .linkish { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; background: none; border: 0; cursor: pointer; }
.adm-hdr nav a.on, .adm-hdr nav a:hover { background: var(--teal-soft); }
.inline-form { display: inline; }
.demo-banner { background: var(--sand); border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 12px; }
.flash { background: var(--teal-soft); border: 1.5px solid var(--teal); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; animation: unfold .4s; }
.flash.err { background: #F7DCD5; border-color: var(--err); }
.adm-main { display: flex; flex-direction: column; gap: 16px; }
.adm-main .card { box-shadow: 3px 4px 0 var(--teal); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; animation: unfold .5s both; }
.tile:nth-child(2) { animation-delay: .05s; } .tile:nth-child(3) { animation-delay: .1s; } .tile:nth-child(4) { animation-delay: .15s; }
.tile span { font-size: 13px; color: var(--muted); }
.tile b { font-family: var(--serif); font-size: 30px; }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.table-wrap { overflow-x: auto; background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; }
.card .table-wrap { border: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #ECE6D8; vertical-align: top; }
.tbl tr:hover td { background: #FBF8F1; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.mini { height: 5px; background: #ECE6D8; border-radius: 3px; margin-top: 5px; overflow: hidden; }
.mini i { display: block; height: 100%; background: var(--hatch-a); }
.st { display: inline-block; padding: 3px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: #ECE6D8; white-space: nowrap; }
.st.st-open, .st.st-pending, .st.st-created { background: var(--sand); color: var(--ink); }
.st.st-funded, .st.st-succeeded, .st.st-done { background: var(--teal-soft); color: var(--teal-dark); }
.st.st-closed, .st.st-refunding, .st.st-refund_pending, .st.st-refunded { background: var(--lilac); color: var(--ink); }
.st.st-failed, .st.st-expired { background: var(--peach); color: var(--ink); }
.btn-xs { height: 30px; padding: 0 10px; border: 1px solid var(--teal); background: var(--card); color: var(--teal); border-radius: 8px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-xs:hover { background: var(--teal-soft); }
.btn-xs.danger { border-color: var(--err); color: var(--err); }
.armed { background: var(--err) !important; color: #fff !important; border-color: var(--err) !important; }
.btn-xs.copied { background: var(--teal); color: var(--card); }
.empty { text-align: center; padding: 40px; }
.crumbs { font-size: 13px; color: var(--muted); }
.cls-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; padding: 18px; }
.cls-head h1 { font-size: 34px; }
.cls-head > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.linkrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; word-break: break-all; }
.sum { font-size: 15px; }
.qr { width: 130px; flex-shrink: 0; text-align: center; font-size: 11px; color: var(--muted); }
.qr svg { width: 130px; height: 130px; }
@media (max-width: 640px) { .cls-head { flex-direction: column; } }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .adm-grid { grid-template-columns: 1fr; } }
.funnel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.funnel div { display: flex; flex-direction: column; background: var(--paper); border-radius: 12px; padding: 12px; }
.funnel b { font-family: var(--serif); font-size: 32px; }
.funnel span { font-size: 12px; color: var(--muted); }
.form-grid { display: flex; flex-direction: column; gap: 10px; }
.form-grid h2 { font-size: 30px; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid input { height: 44px; font-size: 15px; }
.form-grid label { display: block; margin-bottom: 4px; }
@media (max-width: 560px) { .form-grid .two { grid-template-columns: 1fr; } }
.actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
.actions h3 { width: 100%; }
.demo-tools { background: #FFF9E8; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.log time { color: var(--muted); margin-right: 6px; }
.log .who { color: var(--muted); font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; margin-left: 4px; }
.mail { border-bottom: 1px solid #ECE6D8; padding: 10px 0; }
.mail summary { cursor: pointer; font-size: 14px; }
.mail time { color: var(--muted); margin-right: 6px; }
.mail pre { white-space: pre-wrap; font-family: var(--sans); font-size: 14px; background: var(--paper); padding: 14px; border-radius: 10px; margin: 10px 0 0; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login .card { width: 100%; max-width: 360px; }

/* Полоса тестового режима на живом сайте */
.test-strip { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 45; background: var(--sand); color: var(--ink); border-bottom: 1.5px solid var(--ink); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }
