/* Лендинг и вход koplin.app. Вырезано из styles.css прошлой попытки (jrobotpro/koplin_old, ревизия cfdea2a): шрифт, цвета,
   экран входа с его адаптацией под планшет и телефон, кнопки входа, поле адреса и кода. Само старое приложение не перенесено; блок примера работы (land-art) восстановлен с новыми сценами (landing-art.js). Шрифты и значки лежат в web/fonts и web/icons. */
/* ——— Шрифт заголовков — Source Serif 4 (OFL, fonts/OFL.txt) со своего сервера, не с Google Fonts: так Google
   не видит IP посетителей. Файлы — подмножества с fonts.gstatic.com (v15), вес 400–500 и оптический размер 8–60 ——— */
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/source-serif-4-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/source-serif-4-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/source-serif-4-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ——— Токены ——— */
:root {
  --bg: #FAF9F6;
  --elev: #FFFFFF;
  --sidebar: #F3F1EC;
  --sb-hover: #E9E6DF;
  --sb-active: #E4E1D9;
  --search-bg: #E9E6DF;
  --text: #1D1C1A;
  --text-2: #5F5C55;
  --text-3: #8F8B82;
  --border: #E7E4DC;
  --border-strong: #D5D1C6;
  --user-bubble: #EFEDE7;
  --chip-bg: #F0EEE8;
  --chip-hover: #E8E5DE;
  --copy-head: #F3F1EC;
  --seg-thumb: #FFFFFF;
  --accent: #17785A;
  --accent-hover: #11664C;
  --accent-soft: #E2F0EA;
  --on-accent: #FFFFFF;
  --logo-fg: #FFFFFF;
  --yes: #188454;
  --yes-bg: #E3F3EA;
  --maybe: #B26B00;
  --maybe-bg: #FCF0D9;
  --no: #C2412D;
  --no-bg: #FBE6E2;
  --ask: #5F5C55;
  --ask-bg: #EFEDE7;
  --backdrop: rgba(20, 18, 14, .38);
  --shadow-sm: 0 1px 2px rgba(30, 25, 15, .05);
  --shadow-composer: 0 1px 2px rgba(30, 25, 15, .04), 0 6px 24px -6px rgba(30, 25, 15, .08);
  --shadow-pop: 0 12px 40px -12px rgba(30, 25, 15, .28), 0 4px 12px -6px rgba(30, 25, 15, .12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --sb-w: 272px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1B19; --elev: #262522; --sidebar: #151413; --sb-hover: #22211F; --sb-active: #2A2926; --search-bg: #22211F;
    --text: #EDEBE6; --text-2: #B5B1A8; --text-3: #85817A; --border: #33312D; --border-strong: #45423D;
    --user-bubble: #2F2D2A; --chip-bg: #2A2926; --chip-hover: #33312D; --copy-head: #2C2B28; --seg-thumb: #3D3B37;
    --accent: #3FBF8C; --accent-hover: #55CC9C; --accent-soft: #1D3A2F; --on-accent: #0C1F17; --logo-fg: #0C1F17;
    --yes: #4CC98F; --yes-bg: #1B3428; --maybe: #E8A93A; --maybe-bg: #3A2D14; --no: #F07A66; --no-bg: #3D211C; --ask: #B5B1A8; --ask-bg: #2F2D2A;
    --backdrop: rgba(0, 0, 0, .55);
    --shadow-composer: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px -6px rgba(0, 0, 0, .4);
    --shadow-pop: 0 12px 40px -12px rgba(0, 0, 0, .7), 0 4px 12px -6px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1B19; --elev: #262522; --sidebar: #151413; --sb-hover: #22211F; --sb-active: #2A2926; --search-bg: #22211F;
  --text: #EDEBE6; --text-2: #B5B1A8; --text-3: #85817A; --border: #33312D; --border-strong: #45423D;
  --user-bubble: #2F2D2A; --chip-bg: #2A2926; --chip-hover: #33312D; --copy-head: #2C2B28; --seg-thumb: #3D3B37;
  --accent: #3FBF8C; --accent-hover: #55CC9C; --accent-soft: #1D3A2F; --on-accent: #0C1F17; --logo-fg: #0C1F17;
  --yes: #4CC98F; --yes-bg: #1B3428; --maybe: #E8A93A; --maybe-bg: #3A2D14; --no: #F07A66; --no-bg: #3D211C; --ask: #B5B1A8; --ask-bg: #2F2D2A;
  --backdrop: rgba(0, 0, 0, .55);
  --shadow-composer: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px -6px rgba(0, 0, 0, .4);
  --shadow-pop: 0 12px 40px -12px rgba(0, 0, 0, .7), 0 4px 12px -6px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ——— База ——— */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); }
body { font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
/* Один кадр для чата и fixed-окон: размер и положение реального visualViewport, без второй анимации.
   Фон обязателен: Safari на iOS 26 не смотрит на theme-color и красит полосу под часами в цвет fixed-элемента
   у верхнего края (верхний из тех, что шире 80% экрана) — прозрачный давал белую полосу. */
#app { position: fixed; inset: 0; display: flex; overflow: hidden; background: var(--bg); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.logo { display: inline-block; flex: none; }
.logo svg { display: block; width: 100%; height: 100%; }
.logo-sm { width: 24px; height: 24px; }
.logo-md { width: 32px; height: 32px; }
.logo-lg { width: 56px; height: 56px; }
/* ——— Вход: страница до входа ———
   Один экран — окно целиком, без прокрутки: что это, вход и строка о конфиденциальности; на компьютере справа — схема
   со счётом. Сетка: содержимое до 1040px, поля 64 / 48 / 40 / 24px. */
.login { --gut: 64px; position: absolute; inset: 0; background: var(--bg); z-index: 5; overflow-y: auto; overscroll-behavior: contain; }
.login.leaving { animation: fadeOut .35s var(--ease-out) forwards; pointer-events: none; }
.land-wrap { width: 100%; max-width: calc(1040px + 2 * var(--gut)); margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left)); padding-right: max(var(--gut), env(safe-area-inset-right)); }
.land-first { min-height: var(--app-h, 100dvh); display: flex; flex-direction: column; }
.land-top { flex: none; display: flex; align-items: center; justify-content: space-between; height: calc(76px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
.land-brand { display: flex; align-items: center; gap: 10px; font-size: 21px; line-height: 1; }
.land-brand .logo { width: 28px; height: 28px; }
.land-hero { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; padding-top: 8px; padding-bottom: 40px; }
.land-copy { align-self: center; padding-bottom: 24px; }
.land-copy > * { animation: riseIn .6s var(--ease-out) both; }
.land-copy > :nth-child(2) { animation-delay: .06s; }
.land-copy > :nth-child(3) { animation-delay: .14s; }
.land-h { font-size: clamp(40px, 4.6vw, 58px); line-height: 1.06; font-weight: 500; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.land-sub { font-size: 20px; line-height: 1.45; color: var(--text-2); margin: 18px 0 0; }
.land-sub-2 { display: inline-block; }
.login-bottom { max-width: 440px; margin-top: 44px; }
.land-cta { font-size: 15.5px; font-weight: 600; margin: 0 0 14px; }
.land-auth { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.land-auth .btn-google { width: auto; padding: 0 28px; }
.land-email-link { padding: 8px 2px; font-size: 15px; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; transition: color .15s; }
.land-email-link:hover { color: var(--text); }
.login.no-email .land-email-link { display: none; }
/* «or use email» на первом экране: поле адреса и «Continue with email» встают над Google, ссылка прячется */
.login.email-open .land-hero .land-email-link { display: none; }
.login.email-open .land-hero .land-auth { margin-top: 10px; }
.login.email-open .land-hero .land-auth .btn-google { width: 100%; }
.land-legal { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-3); text-wrap: pretty; }
.land-legal a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.land-legal a:hover { color: var(--text); }
/* Пример работы: два сообщения текущего сюжета, перед следующим сюжетом обе исчезают (landing-art.js). */
.land-art { align-self: center; height: min(100%, 480px); min-height: 0; display: grid; place-items: center; border-radius: 28px; background: var(--accent-soft); container-type: size; overflow: hidden; animation: riseIn .7s .1s var(--ease-out) both; }
.cs { position: relative; display: flex; align-items: center; width: 100%; height: 100%; padding: 24px; font-size: clamp(11px, min(3.3cqw, calc((100cqh - 48px) / 27.5)), 16px); text-align: left; }  /* кегль зависит и от высоты: самая высокая сцена ≈ 26,5 em */
.cs-track { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 1.1em; }
.cs-measure { position: absolute; top: 0; left: 0; visibility: hidden; pointer-events: none; }
.cs-user { display: flex; flex-direction: column; align-items: flex-end; gap: .3em; }
.cs-bubble { display: flex; align-items: center; gap: .6em; max-width: 21em; padding: .45em .95em .45em .45em; border-radius: 1.2em 1.2em .35em 1.2em; background: var(--elev); border: 1px solid var(--border); font-size: .95em; line-height: 1.4; }
.cs-bubble.cs-text { padding: .7em .95em; }
.cs-bubble.cs-col { flex-direction: column; align-items: flex-start; gap: .55em; padding: .55em .95em .7em .55em; }
.cs-bubble > span:last-child { text-wrap: balance; }
.cs-bubble.cs-col > span:last-child { padding-left: .4em; }
.cs-bubble.cs-photo-b { padding: .45em; }
.cs-who .cs-time { margin-left: .3em; font-size: .85em; }
.cs-time { font-size: .72em; line-height: 1.2; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cs-files { display: flex; flex-direction: column; gap: .35em; }
.cs-file { display: flex; align-items: center; gap: .5em; padding: .35em .6em .35em .45em; border-radius: .7em; background: var(--bg); border: 1px solid var(--border); font-size: .86em; line-height: 1.3; }
.cs-file .i { flex: none; width: 1.2em; height: 1.2em; stroke-width: 1.6; color: var(--text-2); }
.cs-file b { margin-left: auto; padding: .12em .4em; border-radius: .3em; background: var(--text-2); color: var(--bg); font-size: .66em; font-weight: 700; letter-spacing: .03em; }
/* фото чека: бумажка чуть набок, строки и сумма */
.cs-photo { flex: none; display: flex; flex-direction: column; gap: .32em; width: 6em; padding: .7em .6em .6em; border-radius: .35em; background: var(--bg); border: 1px solid var(--border); box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 12%, transparent); transform: rotate(-2deg); }
.cs-photo i { display: block; height: .24em; border-radius: 99px; background: color-mix(in srgb, var(--text-3) 38%, transparent); }
.cs-photo i:nth-child(1) { width: 60%; margin: 0 auto .25em; }
.cs-photo i:nth-child(2) { width: 100%; }
.cs-photo i:nth-child(3) { width: 80%; }
.cs-photo i:nth-child(4) { width: 90%; }
.cs-photo b { margin-top: .35em; align-self: flex-end; white-space: nowrap; font-size: .92em; font-weight: 700; font-variant-numeric: tabular-nums; }
.cs-bot { display: flex; flex-direction: column; align-items: flex-start; gap: .55em; }
.cs-who { display: flex; align-items: center; gap: .5em; font-size: .85em; }
.cs-who .logo { width: 1.7em; height: 1.7em; }
.logo-wrap { display: inline-flex; }
.cs-reply { width: 23em; max-width: 100%; padding: .9em 1.1em 1.1em; border-radius: .35em 1.2em 1.2em 1.2em; background: var(--elev); border: 1px solid var(--border); box-shadow: var(--shadow-pop); }
.cs-reply p { margin: .85em 0 0; font-size: .92em; line-height: 1.5; text-wrap: pretty; }
.cs-reply p:first-child { margin-top: 0; }
.cs-list { margin-top: .7em; padding: 0 .8em; border-radius: .8em; background: var(--bg); border: 1px solid var(--border); font-size: .86em; }
.cs-reply p + .cs-list, .cs-list:first-child { margin-top: .7em; }
.cs-row { display: flex; align-items: center; gap: .55em; padding: .45em 0; font-variant-numeric: tabular-nums; }
.cs-row + .cs-row { border-top: 1px solid var(--border); }
.cs-bot.cs-more { margin-top: -.6em; }
.cs-row > span { flex: 1; min-width: 0; }
.cs-row em { font-style: normal; font-size: .95em; color: var(--text-2); white-space: nowrap; }
.cs-list + p { margin-top: .8em; }

@media (prefers-reduced-motion: reduce) { .land-art { animation: none; } }

/* маленький ноутбук: поля уже */
@media (min-width: 900px) and (max-width: 1119px) {
  .login { --gut: 48px; }
  .land-hero { gap: 48px; }
}
/* Планшет и телефон: лёгкая подложка и тонкий контур отделяют пример от входа. */
@media (max-width: 899px) {
  .login { --gut: 40px; }
  .land-hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding-top: 24px; padding-bottom: 56px; }
  .land-art { position: relative; display: block; align-self: stretch; width: 100%; height: 440px; margin-top: 28px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg)); container-type: normal; }
  .login.art-off .land-art, .login.code-step .land-art { display: none; }
  .cs { padding: 18px; font-size: 14px; }
  .cs-reply { box-shadow: var(--shadow-composer); }  /* короткая тень: низ окна её не обрезает */
  .land-copy { max-width: 520px; width: 100%; margin: 0 auto; padding-bottom: 0; }
  .land-sub { font-size: 18px; margin-top: 14px; }
  .login-bottom { margin: 36px auto 0; }
  .land-auth { flex-direction: column; gap: 4px; }
  .land-auth .btn-google { width: 100%; }
  .land-legal { margin-top: 14px; }
}
/* телефон: как экран входа в приложении — заголовок посередине, вход и строка о конфиденциальности прижаты к низу
   (под большим пальцем). Экран короткий — вход просто идёт под текстом */
@media (max-width: 599px) {
  .login { --gut: 24px; }
  .land-top { height: calc(64px + env(safe-area-inset-top)); }
  .land-hero { align-items: stretch; padding-top: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .land-copy { display: flex; flex-direction: column; align-self: stretch; }
  .land-copy > .land-h { margin-top: auto; }  /* заголовок — посередине места над входом (если схемы нет) */
  .login-bottom { width: 100%; margin: auto 0 0; padding-top: 32px; }
  /* На высоком экране свободное место поровну над и под примером; на обычном он занимает весь остаток. */
  .land-art { flex: 1 1 0; min-height: 0; max-height: 380px; height: auto; margin: auto 0; }
  .login:not(.art-off) .login-bottom { margin-top: 0; padding-top: 16px; }
  /* со схемой — плотнее, чтобы первая сцена целиком влезала и на обычном iPhone */
  .login:not(.art-off) .land-top { height: calc(56px + env(safe-area-inset-top)); }
  .login:not(.art-off) .land-h { font-size: 32px; }
  .login:not(.art-off) .land-sub { margin-top: 10px; padding-bottom: 16px; }
  .cs { padding: 11px 14px; font-size: 12.5px; }
  .cs-track { gap: .8em; }
  .cs-row { padding: .28em 0; }
  .cs-reply { padding: .75em .95em .9em; }
  .cs-reply p { margin-top: .65em; line-height: 1.45; }
  .cs-bubble { padding: .4em .9em .4em .4em; }
  .cs-photo { width: 5.2em; padding: .45em .45em .4em; gap: .22em; }
  .cs-bubble.cs-photo-b { padding: .35em; }
  .land-h { font-size: 36px; line-height: 1.1; }
  .land-sub { font-size: 17px; }
  .land-legal { font-size: 12.5px; }
}
/* низкий телефон (iPhone SE в Safari — ~550px): ужимаем шапку и отступы, чтобы экран не прокручивался */
@media (max-width: 599px) and (max-height: 620px) {
  .land-top { height: calc(56px + env(safe-area-inset-top)); }
  .land-hero { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .land-h { font-size: 32px; }
  .login-bottom { padding-top: 24px; }
  .land-legal { margin-top: 10px; }
}
.btn-google { position: relative; width: 100%; height: 52px; border-radius: 999px; background: var(--elev); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; font-weight: 500; transition: background-color .15s, transform .15s var(--ease-out), box-shadow .15s; box-shadow: var(--shadow-sm); }
.btn-google:hover { background: var(--chip-bg); }
.btn-google:active { transform: scale(.98); }
.btn-google .g { width: 20px; height: 20px; }
.btn-google .spinner { position: absolute; right: 18px; opacity: 0; }
.btn-google.loading { pointer-events: none; }
.btn-google.loading .spinner { opacity: 1; }
.land-auth .btn-google.loading { padding-right: 48px; }
/* Вход кодом на почту: адрес → код */
.login-email, .login-code { display: flex; flex-direction: column; gap: 10px; }
.login-email[hidden], .login-code[hidden] { display: none; }
.login-input { width: 100%; height: 52px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--elev); padding: 0 20px; font-size: 16px; color: var(--text); outline: 0; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, opacity .15s; }
.login-input::placeholder { color: var(--text-3); }
.login-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.login-msg { margin: -2px 0 0; padding: 0 20px; font-size: 13.5px; text-align: left; color: var(--no); }
.login-msg:empty { display: none; }
.login-msg.info { color: var(--text-2); }
.btn-email { position: relative; width: 100%; height: 52px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; transition: background-color .15s, transform .15s var(--ease-out); }
.btn-email:hover { background: var(--accent-hover); }
.btn-email:active { transform: scale(.98); }
.btn-email .spinner { position: absolute; right: 18px; opacity: 0; border-color: rgba(255, 255, 255, .35); border-top-color: var(--on-accent); }
.btn-email.loading { pointer-events: none; }
.btn-email.loading .spinner { opacity: 1; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; font-size: 13px; color: var(--text-3); }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
/* шаг кода: остаётся одно поле по центру первого экрана */
.login.code-step .land-cta { display: none; }       /* на шаге кода заголовок шага — «Check your email» */
@media (min-width: 600px) { .login.code-step .login-bottom { margin-top: 36px; } }
.code-title { font-size: 26px; line-height: 1.2; margin: 0; }
.code-to { margin: 0 0 6px; font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
.code-to b { font-weight: 600; color: var(--text); }
.code-input { height: 60px; border-radius: 16px; padding: 0 0 0 .45em; text-align: center; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 28px; font-weight: 600; letter-spacing: .45em; font-variant-numeric: tabular-nums; }
.code-input.checking { opacity: .55; }
.code-input.shake { animation: shake .36s; }
.login-code .login-msg { padding: 0; text-align: left; }
.code-actions { display: flex; align-items: center; justify-content: flex-start; gap: 8px; font-size: 14px; color: var(--text-3); }
.code-link { padding: 6px 2px; font-size: 14px; font-weight: 500; color: var(--accent); }
.code-link:disabled { color: var(--text-3); cursor: default; }
.code-spam { margin: 0; font-size: 13px; color: var(--text-3); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--text-2); animation: spin .7s linear infinite; transition: opacity .2s; }

/* ——— Сегментированный переключатель ——— */
.seg { position: relative; display: inline-flex; background: var(--chip-bg); border-radius: 12px; padding: 3px; }
.seg button { position: relative; z-index: 1; flex: 1; height: 34px; padding: 0 14px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color .2s; white-space: nowrap; }
.seg button[aria-checked="true"] { color: var(--text); }
.seg-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; border-radius: 9px; background: var(--seg-thumb); box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 1px rgba(0,0,0,.04); transition: transform .3s var(--ease-drawer), width .3s var(--ease-drawer); }
.seg-sm button { height: 28px; padding: 0 12px; font-size: 13px; }
.seg-full { display: flex; width: 100%; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* планшет и телефон: всё по центру, как и первый шаг */
@media (max-width: 899px) {
  .login-code .login-msg { text-align: center; }
  .code-actions { justify-content: center; }
}
