/* ================================================================
   7, 13 — стили сайта (МОБИЛЬНАЯ версия — приоритет смартфоны). Фон всегда белый.
   Gilroy — коммерческий шрифт, файлы в css/font/.
   Дизайн-система: единый ритм 8pt, чёткая типографическая шкала, воздух, сдержанность.
   ================================================================ */

/* Иконки — только Material Symbols (Google Fonts icons) */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0');

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal; font-style: normal;
    line-height: 1; letter-spacing: normal; text-transform: none;
    display: inline-block; white-space: nowrap; direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* Плавный «эпловский» переход. Логотип (brandlogo) — герой: чисто перетекает по размеру и
   позиции между главной и входом; контент под ним мягко сменяется кросс-фейдом (фон белый — не мигает). */
@view-transition { navigation: auto; }
@keyframes vtfade { from { opacity: 0; } to { opacity: 1; } }

::view-transition-old(root) { animation: vtfade .5s var(--ease) reverse both; }
::view-transition-new(root) { animation: vtfade .5s var(--ease) both; }

/* Логотип — герой: плавный морф по размеру/позиции поверх смены контента, оседает последним (~1.3с) */
::view-transition-group(brandlogo) { animation-duration: 1.3s; animation-timing-function: var(--ease); z-index: 5; }

/* Уважать «меньше движения» */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@font-face { font-family: 'Gilroy'; font-weight: 300; font-style: normal; font-display: swap; src: url('font/gilroylight.ttf') format('truetype'); }
@font-face { font-family: 'Gilroy'; font-weight: 400; font-style: normal; font-display: swap; src: url('font/gilroyregular.ttf') format('truetype'); }
@font-face { font-family: 'Gilroy'; font-weight: 500; font-style: normal; font-display: swap; src: url('font/gilroymedium.ttf') format('truetype'); }
@font-face { font-family: 'Gilroy'; font-weight: 600; font-style: normal; font-display: swap; src: url('font/gilroysemibold.ttf') format('truetype'); }
@font-face { font-family: 'Gilroy'; font-weight: 700; font-style: normal; font-display: swap; src: url('font/gilroybold.ttf') format('truetype'); }
@font-face { font-family: 'Gilroy'; font-weight: 900; font-style: normal; font-display: swap; src: url('font/gilroyblack.ttf') format('truetype'); }

:root {
    --red:      #ff5757;
    --blue:     #38b6ff;
    --ink:      #1d1d1f;
    --ink-soft: #6e6e73;
    --line:     #ededf0;
    --bg:       #ffffff;
    --bg-soft:  #f5f5f7;
    --success:  #34c759;

    /* Скругления */
    --radius:       22px;
    --radius-small: 14px;
    --radius-tile:  12px;

    /* Тени — мягкие, едва заметные */
    --shadow:       0 1px 1px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.05);
    --shadow-hover: 0 2px 6px rgba(0,0,0,0.05), 0 16px 40px rgba(0,0,0,0.08);

    --ease:     cubic-bezier(0.32, 0.72, 0, 1);
    --font:     'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

    /* Единая мобильная колонка */
    --column: 480px;
    --gutter: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color .2s var(--ease), opacity .2s var(--ease); }

/* Появление страницы обеспечивает переход View Transitions выше — отдельная анимация main
   не нужна (именно её наложение на переход и давало «моргание»). */

/* Уважать системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Типографическая шкала ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }

/* ---------- Логотип ----------
   Standalone: "7," Black красный + "13" Thin синий.
   С названием сети: "7, 13" (.name) Black красный + название (.chain) Thin синий. */
.logo { display: inline-flex; align-items: baseline; gap: 0.1em; letter-spacing: -0.02em; line-height: 1; }
.logo .seven, .logo .name  { font-weight: 900; color: var(--red);  }   /* Gilroy Black   */
.logo .thirteen, .logo .chain { font-weight: 400; color: var(--blue); }   /* Gilroy Regular */

/* ---------- Главная: логотип на весь экран ---------- */
.stage {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}
/* Композиция заставки: выверенный локап «логотип + слоган», оптический центр чуть выше геометрического */
.hero {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: clamp(12px, 3vw, 20px);
    margin-top: -5vh;
}
.stage .logo-hero { font-size: clamp(88px, 30vw, 280px); view-transition-name: brandlogo; }
.slogan {
    font-size: clamp(17px, 4.4vw, 21px); font-weight: 500; color: var(--ink-soft);
    letter-spacing: -0.01em; line-height: 1.4; max-width: 16em;
}

/* «Вход» — сдержанная пилюля вверху справа, по сетке, с учётом «чёлки» */
.homeenter {
    position: fixed; z-index: 20;
    top: max(18px, env(safe-area-inset-top)); right: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    color: var(--ink); background: var(--bg-soft); border-radius: 50%;
    transition: background .2s var(--ease), transform .15s var(--ease);
}
.homeenter:hover  { background: #ececf0; }
.homeenter:active { transform: scale(0.97); }
.homeenter .material-symbols-rounded { font-size: 24px; }

.forgotlink { display: block; text-align: center; color: var(--blue); font-size: 15px; margin-top: 4px; }

/* ---------- Общая мобильная колонка ---------- */
.wrap { max-width: var(--column); margin: 0 auto; padding: 32px var(--gutter) 72px; }
.wrap-center {
    min-height: 100dvh; display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 8px;
}

/* Шапка — матовое «стекло», липкая сверху (навбар Apple): фиксированная высота, идеальный баланс */
.topbar {
    position: sticky; top: 0; z-index: 30;
    max-width: var(--column); margin: 0 auto;
    min-height: 60px; padding: 8px var(--gutter);
    background: rgba(255,255,255,0.7);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo-sm { font-size: 27px; gap: 6px; }
/* Логотип в шапке: «7, 13» и название сети одного размера, по базовой линии букв, без сдвигов */
.topbar .logo { align-items: baseline; }

/* Меню (иконка справа + выпадающий список) */
.menu { position: relative; flex: 0 0 auto; }
.menu-button {
    display: grid; place-items: center; width: 42px; height: 42px; margin-right: -8px;
    border: none; background: none; color: var(--ink); cursor: pointer;
    border-radius: 50%; transition: background .2s var(--ease);
}
.menu-button:hover  { background: var(--bg-soft); }
.menu-button:active { background: #ededf0; }
.menu-button .material-symbols-rounded { font-size: 26px; }

/* Выпадающее меню — «плавающая» матовая панель с аккаунт-заголовком */
.menu-drop {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 50;
    min-width: 180px; padding: 8px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06); border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 20px 48px rgba(0,0,0,0.18);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.menu.open .menu-drop { opacity: 1; visibility: visible; transform: none; }

/* Заголовок меню — кто вошёл и где */
.menu-head { padding: 12px 14px 14px; }
.menu-head-name { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.menu-head-sub  { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

.menu-label { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; padding: 8px 14px 4px; }
.menu-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border-radius: 13px; font-size: 16px; letter-spacing: -0.01em; color: var(--ink);
    transition: background .15s var(--ease), transform .12s var(--ease);
}
.menu-item:hover  { background: var(--bg-soft); }
.menu-item:active { background: #ededf0; transform: scale(0.985); }
.menu-item .material-symbols-rounded { font-size: 20px; }
.menu-item .tick { color: var(--blue); }
.menu-danger { color: var(--red); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 8px; }

/* ---------- Страница компании / кабинет: шапка экрана ---------- */
.crumb { color: var(--ink-soft); font-size: 15px; margin-bottom: 8px; }
.eyebrow { color: var(--ink-soft); font-size: 15px; text-transform: lowercase; letter-spacing: -0.01em; margin-bottom: 6px; }
/* Шапка кабинета — «имя → роль → место» (иерархия как на профильном экране iOS) */
.cabhead { margin-bottom: 20px; }
.cabhead-hi { color: var(--ink-soft); font-size: 14px; letter-spacing: -0.01em; margin-bottom: 6px; }
.cabhead-role { font-size: 22px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.14; color: var(--ink); }
.cabhead-place { margin-top: 6px; color: var(--ink-soft); font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }

/* Карта «Сегодня» — акцентная сводка выручки над списком разделов */
.todaycard { margin-bottom: 20px; padding: 20px; border-radius: 20px;
    background: linear-gradient(135deg, #0a84ff, #38b6ff); color: #fff; box-shadow: 0 10px 26px rgba(10,132,255,.22); }
.todaycard-label { font-size: 13px; opacity: .92; }
.todaycard-value { font-weight: 700; font-size: 28px; letter-spacing: -0.024em; margin: 5px 0 6px; }
.todaycard-sub { font-size: 13px; opacity: .92; }

/* Заголовок группы разделов (как секции в Настройках iOS) */
.grouphead { font-weight: 600; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--ink-soft); margin: 20px 6px 8px; }
.grouphead + .service { margin-top: 0; }

/* Выбор точки — тап-пилюля под ролью (управляющий на 2+ точках) */
.placepicker { position: relative; display: inline-flex; margin-top: 14px; }
.placepick {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 9px 12px 9px 16px; border-radius: 980px;
    background: var(--bg-soft); color: var(--ink);
    font-family: var(--font); font-size: 17px; font-weight: 500; letter-spacing: -0.02em;
    border: none; cursor: pointer;
    transition: background .2s var(--ease), transform .15s var(--ease);
}
.placepick:hover  { background: #ececf0; }
.placepick:active { transform: scale(0.97); }
.placepick .material-symbols-rounded { font-size: 20px; color: var(--ink-soft); transition: transform .22s var(--ease); }
.placepicker.open .placepick .material-symbols-rounded { transform: rotate(180deg); }
.placepicker .menu-drop { left: 0; right: auto; top: calc(100% + 8px); min-width: 220px; transform-origin: top left; }

/* Заголовок раздела + выпадашка точки в одной строке */
.titlerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; min-width: 0; }
.titlerow .title { margin-bottom: 0; min-width: 0; }
.titlerow .placepicker { margin-top: 0; flex: 0 1 auto; min-width: 0; }
.titlerow .placepick-static { flex: 0 0 auto; }
.titlerow .placepick { max-width: 100%; }
.titlerow .placepick > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* Роль + выбор сети/точки в одной строке (кабинет) */
.cabhead-rolerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.cabhead-rolerow .cabhead-role { min-width: 0; }
.cabhead-rolerow .placepicker { margin-top: 0; flex: 0 1 auto; min-width: 0; }
.cabhead-rolerow .cabhead-place { margin-top: 0; flex: 0 0 auto; }
.cabhead-rolerow .placepick { max-width: 100%; }
.cabhead-rolerow .placepick > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Ряд выпадашек под заголовком (сеть/точка + период) — в одну строку: точка ужимается, период целиком */
.pickrow { display: flex; gap: 10px; flex-wrap: nowrap; align-items: center; margin-top: 14px; min-width: 0; }
.pickrow .placepicker { margin-top: 0; min-width: 0; }
.pickrow .placepicker:last-child { flex: 0 0 auto; }
.pickrow .placepick { max-width: 100%; }
.pickrow .placepick > span:first-child,
.pickrow .placepick-static { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* Статичная пилюля точки (управляющий на одной точке) */
.placepick-static {
    display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 980px;
    background: var(--bg-soft); color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -0.02em;
}
/* ---------- Фильтр: кнопка + сводка + нижняя шторка (bottom sheet) ---------- */
.filterbtn {
    flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center;
    border: none; background: var(--bg-soft); color: var(--ink); border-radius: 50%; cursor: pointer;
    transition: background .2s var(--ease), transform .15s var(--ease);
}
.filterbtn:hover  { background: #ececf0; }
.filterbtn:active { transform: scale(0.94); }
.filterbtn .material-symbols-rounded { font-size: 22px; }

.sheet { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.32); opacity: 0; transition: opacity .32s var(--ease); }
.sheet.open .sheet-scrim { opacity: 1; }
.sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--column); margin: 0 auto;
    background: #fff; border-radius: 26px 26px 0 0;
    padding: 10px 16px max(22px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 44px rgba(0,0,0,0.20);
    max-height: 86vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateY(101%); transition: transform .4s var(--ease);
}
.sheet.open .sheet-panel { transform: none; }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: #d6d6dc; margin: 0 auto 4px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 8px; }
.sheet-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.sheet-close { width: 32px; height: 32px; display: grid; place-items: center; border: none; border-radius: 50%; background: var(--bg-soft); color: var(--ink-soft); cursor: pointer; transition: background .2s var(--ease); }
.sheet-close:active { background: #e6e6ec; }
.sheet-close .material-symbols-rounded { font-size: 20px; }
.sheet-label { font-size: 13px; color: var(--ink-soft); letter-spacing: -0.01em; padding: 16px 6px 7px; }
.sheet-group { background: var(--bg-soft); border-radius: 16px; overflow: hidden; }
.sheet-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.sheet-row + .sheet-row::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: rgba(0,0,0,0.06); }
.sheet-row:active { background: #ececf0; }
.sheet-row .tick { flex: 0 0 auto; color: var(--blue); font-size: 20px; }

/* Крупная сумма за выбранный период */
/* Подпись «в сравнении с …» над плитками метрик + цвет дельты в подписи плитки */
.cmpnote { color: var(--ink-soft); font-size: 14px; margin: 18px 0 2px; }
.kpi-sub .up   { color: var(--success); }
.kpi-sub .down { color: var(--red); }
/* Произвольный период — поля дат */
.daterange { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.daterange .field-date { width: auto; min-height: 48px; }
.daterange .button { min-height: 48px; padding: 0 22px; }

.title { font-size: 34px; line-height: 1.05; margin-bottom: 8px; }
.lead  { color: var(--ink-soft); font-size: 17px; line-height: 1.45; margin-bottom: 8px; }
.link  { color: var(--blue); }

/* ---------- Кнопка — плоская «пилюля», без свечения ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 54px; padding: 0 34px;
    border: none; border-radius: 980px;
    font-family: var(--font); font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
    color: #fff; background: var(--blue); cursor: pointer;
    transition: opacity .2s var(--ease), transform .15s var(--ease);
}
.button:hover  { opacity: .9; }
.button:active { transform: scale(0.98); }
.button:disabled { opacity: .35; pointer-events: none; }
.button-block  { width: 100%; }

/* Экран входа компании: логотип по центру + кнопка */
.entry {
    min-height: 100dvh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 44px;
    padding: 24px;
}
.entry .logo { font-size: clamp(52px, 15vw, 120px); flex-wrap: wrap; justify-content: center; max-width: 100%; }
.entry .button { min-height: 60px; font-size: 19px; padding: 0 48px; }

/* Форма входа */
.formwrap {
    display: flex; flex-direction: column;
    align-items: center; gap: 28px;
    /* Контент опущен к оптическому центру (на высоких экранах — собраннее), но в обычном потоке:
       форма не центрируется по высоте, поэтому клавиатура ничего не дёргает. */
    padding: clamp(56px, 11vh, 120px) 24px 48px;
}
.formwrap .logo { font-size: clamp(52px, 15vw, 84px); flex-wrap: wrap; justify-content: center; max-width: 100%; margin-bottom: 4px; view-transition-name: brandlogo; }
.form { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 14px; }

/* Экран входа через Telegram */
.entrylead { text-align: center; color: var(--ink-soft); font-size: 17px; letter-spacing: -0.01em; line-height: 1.4; max-width: 15em; margin-top: -6px; }
.entryactions { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.tgwidget { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; text-align: center; min-height: 48px; }
/* Плейсхолдер, пока внешний виджет Telegram грузится — исчезает, когда появится кнопка (iframe) */
.tgwidget::before { content: ""; position: absolute; width: 214px; height: 48px; border-radius: 12px; background: linear-gradient(90deg, #ededed, #f7f7f7, #ededed); background-size: 200% 100%; animation: tgshimmer 1.2s ease-in-out infinite; }
.tgwidget:has(iframe)::before { display: none; }
.tgwidget iframe { position: relative; }
@keyframes tgshimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Поля — заполненные, мягкие (стиль iOS) */
.field {
    width: 100%; height: 54px; padding: 0 18px;
    border: 1px solid transparent; border-radius: var(--radius-small);
    font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--bg-soft);
    transition: background .2s var(--ease), border-color .2s var(--ease);
}
.field::placeholder { color: var(--ink-soft); }
.field:focus { outline: none; background: #fff; border-color: var(--blue); }

/* Поле пароля с кнопкой показать/скрыть */
.field-password { position: relative; }
.field-password .field { padding-right: 54px; }
.field-eye {
    position: absolute; top: 0; right: 0; height: 54px; width: 50px;
    display: grid; place-items: center;
    background: none; border: none; cursor: pointer; color: var(--ink-soft);
    transition: color .2s var(--ease);
}
.field-eye:hover { color: var(--ink); }
.field-eye .material-symbols-rounded { font-size: 22px; }
.error { color: var(--red); font-size: 15px; text-align: center; min-height: 20px; }

/* ---------- Кабинет ---------- */
.cabinet { max-width: var(--column); margin: 0 auto; padding: 22px var(--gutter) 80px; }

/* Карточка сервиса / роли */
/* Сгруппированный островной список (как в Настройках iOS): один скруглённый контейнер,
   строки с плитками-иконками и тонкими разделителями, вставленными от текста. */
.service {
    margin-top: 12px;
    background: var(--bg); border: 1px solid var(--line);
    border-radius: 18px; box-shadow: var(--shadow);
    overflow: hidden;
}
.service + .service { margin-top: 22px; }   /* промежуток между группами разделов */
.service-card {
    position: relative;
    display: flex; align-items: center; gap: 13px;
    padding: 14px 16px;
    transition: background .15s var(--ease);
}
.service-card::after {
    content: ''; position: absolute; left: 61px; right: 0; bottom: 0; height: 1px; background: var(--line);
}
.service-card:last-child::after { display: none; }
.service-card:hover  { background: var(--bg-soft); }
.service-card:active { background: #ededf0; }
/* Иконка роли — плитка с мягкой заливкой (как иконки в Настройках iOS) */
.service-card > .material-symbols-rounded:not(.chevron) {
    flex: 0 0 auto; width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 9px;
    background: rgba(56,182,255,0.12); color: var(--blue); font-size: 20px;
}
.service-card .service-name { flex: 1; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.service-card .chevron { color: #c7c7cc; font-size: 18px; }

/* Главная группа управляющего (Чек-лист, Задача) — визуально ведущий остров:
   крупнее строки, плитки с фирменной заливкой, полужирные подписи, мягкое цветное кольцо. */
/* Главная группа управляющего (Чек-лист, Задача) — ведущий блок.
   По-эпловски: один точный акцент — фирменная красная плитка-иконка —
   и чуть большая приподнятость. Без цветных теней, рамок и лишних сигналов;
   иерархия строится акцентом, весом подписи и воздухом. */
.service-main { box-shadow: var(--shadow-hover); }
.service-main + .service { margin-top: 26px; }
.service-main .service-card { padding: 15px 16px; }
.service-main .service-card::after { left: 68px; }
.service-main .service-card > .material-symbols-rounded:not(.chevron) {
    width: 38px; height: 38px; border-radius: 13px; font-size: 23px;
    background: var(--red); color: #fff;
}
.service-main .service-card .service-name { font-weight: 600; }

/* Плитки разделов (кабинет владельца): крупная иконка сверху, подпись снизу, сетка 2 колонки.
   Спокойные монохромные плитки — единственный акцент это красная «Задача» над ними. */
.tilegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.service-main + .tilegrid { margin-top: 26px; }
.tile {
    display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
    min-height: 116px; padding: 18px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
    transition: box-shadow .2s var(--ease), transform .15s var(--ease);
}
.tile:hover  { box-shadow: var(--shadow-hover); }
.tile:active { transform: scale(0.98); }
.tile .tile-icon {
    width: 46px; height: 46px; display: grid; place-items: center;
    border-radius: 14px; font-size: 27px;
    color: var(--blue); background: rgba(56,182,255,0.14);
}
.tile .tile-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

.logout { display: inline-block; margin-top: 32px; color: var(--red); font-size: 16px; }

/* ---------- Задачи ---------- */
.taskadd { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.taskadd select.field { appearance: none; -webkit-appearance: none; }
.tasklist { display: flex; flex-direction: column; }
.taskform { margin: 0; }
.taskrow {
    display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 16px 0; border: none; border-bottom: 1px solid var(--line);
    background: none; text-align: left; font-family: var(--font);
    transition: opacity .2s var(--ease);
}
button.taskrow { cursor: pointer; }
button.taskrow:active { opacity: .6; }
.taskbox { flex: 0 0 auto; font-size: 24px; color: #d2d2d7; transition: color .2s var(--ease); }
.taskrow.done .taskbox { color: var(--success); }
.tasktext { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tasktitle { font-size: 16px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; transition: color .2s var(--ease); }
.taskrow.done .tasktitle { color: var(--ink-soft); text-decoration: line-through; }
.taskmeta { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.taskdue { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.taskdue .material-symbols-rounded { font-size: 16px; }

/* Фото к задаче: миниатюра в строке + прикрепление в форме */
.taskphoto { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); display: block; }
.taskphoto, .taskphoto img { width: 40px; height: 40px; object-fit: cover; }
.taskattach { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 14px; border-radius: var(--radius-small); background: var(--bg-soft); color: var(--ink-soft); cursor: pointer; }
.taskattach input { display: none; }
.taskattach > .material-symbols-rounded { font-size: 22px; color: var(--blue); }
.taskattach-label { flex: 1; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taskattach-prev { width: 38px; height: 38px; object-fit: cover; border-radius: 10px; display: none; }
.taskattach.has-photo .taskattach-prev { display: block; }

/* ---------- Выручка (дашборд) ---------- */
.kpigrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 4px; }
.kpi { min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.kpi-label { font-size: 13px; color: var(--ink-soft); letter-spacing: -0.01em; }
.kpi-value { font-size: 24px; font-weight: 700; letter-spacing: -0.035em; margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 13px; color: var(--ink-soft); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi-sub.up   { color: var(--success); }
.kpi-sub.down { color: var(--red); }

.chart { display: flex; align-items: flex-end; gap: 6px; padding-top: 12px; }
.chart-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 9px; cursor: pointer; }
.chart-bar { width: 100%; max-width: 20px; background: rgba(56,182,255,0.22); border-radius: 6px 6px 2px 2px; transition: background .2s var(--ease); }
.chart-col.today .chart-bar { background: var(--red); }
.chart-col.picked .chart-bar { background: var(--ink); }
.chart-lbl { font-size: 10px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.01em; }
.charttip { min-height: 22px; font-size: 14px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }

/* ---------- Продажа (топ блюд) ---------- */
.salelist { display: flex; flex-direction: column; }
.salerow { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .18s var(--ease), opacity .18s var(--ease); }
.salerow:active { transform: scale(0.99); opacity: 0.6; }
.salego { flex: 0 0 auto; align-self: center; color: var(--ink-soft); font-size: 20px; }
.salerank { flex: 0 0 auto; width: 22px; font-size: 15px; font-weight: 700; color: var(--ink-soft); letter-spacing: -0.02em; padding-top: 1px; }
.salebody { flex: 1; min-width: 0; }
.salehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.salename { font-size: 16px; letter-spacing: -0.01em; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.salesum { flex: 0 0 auto; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.salebar { height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin: 7px 0 5px; }
.salebarfill { height: 100%; background: var(--blue); border-radius: 999px; }
.salerow:first-child .salebarfill { background: var(--red); }
.saleamount { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.salevals { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.saleprev { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Пустое состояние (раздел в разработке) — спокойно, по центру */
.emptystate { text-align: center; color: var(--ink-soft); padding: 64px 0; }
.emptystate .material-symbols-rounded { font-size: 44px; color: #c4c4c9; display: block; margin: 0 auto 14px; }
.emptystate p { font-size: 16px; letter-spacing: -0.01em; max-width: 18em; margin: 0 auto; }

/* Сводка сети (директор) */
.estabname { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 32px 0 12px; }
.reportstat { flex: 0 0 auto; font-size: 15px; font-weight: 700; color: var(--ink-soft); }

/* ---------- Чек-лист смены ---------- */
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--blue); font-size: 16px; margin-bottom: 14px; text-transform: lowercase; transition: opacity .2s var(--ease); }
.back:hover { opacity: .7; }
.back .material-symbols-rounded { font-size: 22px; }
.subtitle { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 14px; }

/* Сегментированный переключатель точек/листов (как segmented control iOS) */
.tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 5px; border-radius: 16px; margin-bottom: 24px; }
.tab {
    flex: 1; text-align: center; padding: 10px 0; border-radius: 11px;
    font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-soft);
    transition: background .28s var(--ease), color .28s var(--ease), box-shadow .28s var(--ease), transform .18s var(--ease);
}
.tab:hover  { color: var(--ink); }
.tab:active { transform: scale(0.95); }
/* Активная зона — красная пилюля (бренд), белый текст, мягкая тень */
.tab.active { background: var(--red); color: #fff; box-shadow: 0 3px 10px rgba(255,87,87,0.32); }
.tab.active:hover { color: #fff; }

/* Пикер листа — компактная пилюля с выпадающим меню (вместо второго ряда вкладок) */
.sheetpick { display: inline-block; margin-bottom: 24px; }
.pill-select {
    display: inline-flex; align-items: center; gap: 4px;
    height: 40px; padding: 0 10px 0 16px;
    border: none; border-radius: 980px; cursor: pointer;
    background: var(--bg-soft); color: var(--ink);
    font-family: var(--font); font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
    transition: background .2s var(--ease);
}
.pill-select:hover { background: #ececf0; }
.pill-select .material-symbols-rounded { font-size: 20px; color: var(--ink-soft); transition: transform .22s var(--ease); }
.sheetpick.open .pill-select .material-symbols-rounded { transform: rotate(180deg); }
.sheetpick .menu-drop { left: 0; right: auto; transform-origin: top left; min-width: 200px; }

/* Прокручиваемые вкладки (когда листов много) */
.tabs-scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll .tab { flex: 0 0 auto; padding: 10px 18px; white-space: nowrap; }

.banner { background: rgba(56,182,255,0.12); color: #0a6ebd; border-radius: var(--radius-small); padding: 14px 16px; font-size: 15px; margin-bottom: 20px; text-align: center; }

/* Пункт-чекбокс */
.check { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
    flex: 0 0 auto; width: 28px; height: 28px;
    border: 2px solid #d2d2d7; border-radius: 9px;
    display: grid; place-items: center; color: #fff;
    transition: background .15s var(--ease), border-color .15s var(--ease);
}
.check .box .material-symbols-rounded { font-size: 20px; opacity: 0; transition: opacity .15s var(--ease); }
.check input:checked + .box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .box .material-symbols-rounded { opacity: 1; }
.check .text { font-size: 16px; letter-spacing: -0.01em; transition: color .2s var(--ease); }
.check input:checked ~ .text { color: var(--ink-soft); text-decoration: line-through; }

.checklist-form .button { margin-top: 28px; }

/* Индикатор заполнения */
.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.progress-bar { flex: 1; height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .3s var(--ease), background .3s var(--ease); }
.progress-fill.full { background: var(--success); }
.progress-text { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* История прохождений */
.history { display: flex; flex-direction: column; }
.history-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 15px 0; border-bottom: 1px solid var(--line);
    font-size: 15px; color: var(--ink-soft);
}
.history-row .count { font-weight: 700; color: var(--ink); flex: 0 0 auto; }
a.history-row { border-radius: 12px; padding-left: 12px; padding-right: 12px; margin: 0 -12px; transition: background .15s var(--ease); }
a.history-row:hover { background: var(--bg-soft); }
.history-row.active { background: var(--bg-soft); }

/* Пункт с фото (роли кроме менеджера — только камера) */
.photoitem { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.photoitem-name { flex: 1; font-size: 16px; letter-spacing: -0.01em; }
.photoprev { flex: 0 0 auto; width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-tile); border: 1px solid var(--line); display: none; }
.photoitem.has-photo .photoprev { display: block; }
.photobtn {
    flex: 0 0 auto; display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: var(--radius-tile);
    background: var(--bg-soft); color: var(--blue); cursor: pointer;
    transition: background .15s var(--ease);
}
.photobtn:hover { background: #ededf0; }
.photobtn:active { background: #e6e6eb; }
.photobtn input { display: none; }
.photobtn .material-symbols-rounded { font-size: 24px; }

/* Отчёт директора */
.reportmeta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink-soft); margin-bottom: 22px; }
.reportmeta .count { font-weight: 700; color: var(--ink); flex: 0 0 auto; }

.photogrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.photocard { border: 1px solid var(--line); border-radius: var(--radius-small); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.photocard img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.photocard .noimage { width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink-soft); }
.photocard .noimage .material-symbols-rounded { font-size: 32px; }
.photocard .cap { padding: 10px 12px; font-size: 13px; color: var(--ink-soft); }

.checkview { display: flex; flex-direction: column; }
.checkview-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; letter-spacing: -0.01em; color: var(--ink-soft); }
.checkview-row.done { color: var(--ink); }
.checkview-row .material-symbols-rounded { font-size: 22px; color: #d2d2d7; }
.checkview-row.done .material-symbols-rounded { color: var(--success); }

/* ---------- Аудит ---------- */
.service-card .service-name .service-sub { display: block; font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.scorebadge { flex: 0 0 auto; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.scorebadge.good { background: rgba(52,199,89,0.14);  color: #1a7a3a; }
.scorebadge.mid  { background: rgba(255,159,10,0.16); color: #8a5200; }
.scorebadge.bad  { background: rgba(255,87,87,0.14);  color: #c0392b; }

/* Проведение аудита — острова по блокам (как Настройки iOS), ответ сегментами Да/Частично/Нет */
.audithint { color: var(--ink-soft); font-size: 15px; letter-spacing: -0.01em; margin-bottom: 4px; }
.auditblock { font-size: 13px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; margin: 26px 0 8px; padding-left: 4px; }
.auditcard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.audititem { position: relative; padding: 14px 16px; }
.audititem::after { content: ''; position: absolute; left: 16px; right: 0; bottom: 0; height: 1px; background: var(--line); }
.audititem:last-child::after { display: none; }
.audititem-name { font-size: 16px; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 10px; }

.auditseg { display: flex; gap: 6px; }
.auditseg label { flex: 1; cursor: pointer; }
.auditseg input { position: absolute; opacity: 0; width: 0; height: 0; }
.auditseg .seg { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 12px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-soft); background: var(--bg-soft); transition: background .2s var(--ease), color .2s var(--ease); }
.auditseg input:checked + .seg-yes  { background: var(--success); color: #fff; }
.auditseg input:checked + .seg-part { background: #ff9f0a;        color: #fff; }
.auditseg input:checked + .seg-no   { background: var(--red);     color: #fff; }

.audititem-extra { display: none; gap: 10px; align-items: center; margin-top: 12px; }
.audititem.flagged .audititem-extra { display: flex; }
.audititem-extra .field { flex: 1; height: 44px; background: var(--bg-soft); }
.audititem-extra .photobtn { width: 44px; height: 44px; }
.auditphoto { flex: 0 0 auto; width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-tile); border: 1px solid var(--line); display: none; }
.audititem.has-photo .auditphoto { display: block; }
.auditsummary { text-align: center; color: var(--ink-soft); font-size: 16px; font-weight: 700; margin: 28px 0 0; }
.auditsummary #auditscoreval { color: var(--ink); }
.audit-form .button { margin-top: 16px; }

/* Рейтинг сети — точки по оценке аудита */
.ratinglist { display: flex; flex-direction: column; }
.ratingrow { display: flex; align-items: center; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.ratingrank { flex: 0 0 auto; width: 28px; font-size: 20px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink-soft); text-align: center; }
.ratingrow:first-child .ratingrank { color: var(--red); }
.ratingbody { flex: 1; min-width: 0; }
.ratingname { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.ratingdate { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* Результат аудита (управляющий) */
.auditresult { display: flex; align-items: center; gap: 16px; margin: 14px 0 8px; }
.auditscore { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.auditscore.good { background: rgba(52,199,89,0.14);  color: #1a7a3a; }
.auditscore.mid  { background: rgba(255,159,10,0.16); color: #8a5200; }
.auditscore.bad  { background: rgba(255,87,87,0.14);  color: #c0392b; }
.auditresult-date { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.auditresult-sub  { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }

.issue { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.issue-photo { flex: 0 0 auto; width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-tile); border: 1px solid var(--line); }
.issue-body { flex: 1; min-width: 0; }
.issue-block { font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.02em; }
.issue-name { font-size: 16px; letter-spacing: -0.01em; margin-top: 2px; }
.issue-comment { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
a.history-row .scorebadge { pointer-events: none; }

/* ---------- Тумблер (iOS-переключатель) ----------
   Для строк-островов, где сервис включается/выключается. Зелёный, когда включён. */
label.service-card { cursor: pointer; }
.service-card .switch { flex: 0 0 auto; position: relative; width: 51px; height: 31px; }
.service-card .switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
    display: block; width: 51px; height: 31px;
    background: #e3e3e8; border-radius: 999px;
    transition: background .3s var(--ease);
}
.switch .knob {
    position: absolute; top: 2px; left: 2px; width: 27px; height: 27px;
    background: #fff; border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15), 0 1px 1px rgba(0,0,0,0.06);
    transition: transform .3s var(--ease);
}
.switch input:checked + .track { background: var(--success); }
.switch input:checked ~ .knob { transform: translateX(20px); }
.switch input:active ~ .knob { width: 31px; }   /* лёгкое «раздувание» при нажатии, как в iOS */

/* ---------- Сгруппированный островной ввод (форма в стиле Настроек iOS) ----------
   Подпись слева, значение справа, волосяные разделители, вставленные от подписи. */
.formcard {
    margin-top: 10px;
    background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden;
}
.formrow { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.formrow::after { content: ''; position: absolute; left: 16px; right: 0; bottom: 0; height: 1px; background: var(--line); }
.formrow:last-child::after { display: none; }
.formrow > .lbl { flex: 0 0 92px; font-size: 15px; color: var(--ink-soft); letter-spacing: -0.01em; }
.formrow input {
    flex: 1; min-width: 0; height: 54px;
    border: none; background: none;
    font-family: var(--font); font-size: 16px; color: var(--ink); letter-spacing: -0.01em;
}
.formrow input:focus { outline: none; }
.formrow input::placeholder { color: #c4c4c9; }
/* Строка с многострочным полем (список операторов) */
.formrow-area { align-items: flex-start; }
.formrow-area > .lbl { padding-top: 15px; }
.formrow textarea {
    flex: 1; min-width: 0; padding: 15px 0; resize: vertical;
    border: none; background: none;
    font-family: var(--font); font-size: 16px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.4;
}
.formrow textarea:focus { outline: none; }
.formrow textarea::placeholder { color: #c4c4c9; }
.formhint { font-size: 13px; color: var(--ink-soft); letter-spacing: -0.01em; margin: 10px 4px 0; line-height: 1.4; }

.banner.ok { background: rgba(52,199,89,0.14); color: #1a7a3a; }

/* 5-минутка — темы дня для директора и управляющего */
.briefing{background:#fff;border:1px solid #ececec;border-radius:20px;padding:16px 18px 6px;margin-bottom:22px}
.briefing-title{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-weight:700;font-size:15px;color:#111}
.briefing-title .material-symbols-rounded{font-size:22px;color:#ff5757}
.briefing-list{list-style:none;margin:0;padding:0}
.briefing-list li{display:flex;gap:12px;align-items:flex-start;padding:11px 0;border-top:1px solid #f4f4f4;font-size:14px;line-height:1.45;color:#333}
.briefing-list li:first-child{border-top:0}
.briefing-list li .material-symbols-rounded{flex:0 0 auto;margin-top:1px;font-size:20px;color:#38b6ff}

/* Пустой кабинет (роль без разделов) */
.empty-note{margin:24px 0;color:#8a8a8e;font-size:14px}

/* Единый вход — одна колонка 320px: вкладки, панель и поля выровнены по краям */
.logintabs { display: flex; gap: 5px; width: 100%; max-width: 320px; margin: 0 auto; padding: 5px; background: var(--bg-soft); border-radius: 14px; }
.logintab {
    flex: 1; min-height: 42px; border: 0; background: transparent; border-radius: 11px;
    font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
    color: var(--ink-soft); cursor: pointer;
    transition: color .2s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.logintab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 3px 8px rgba(0,0,0,.08); }

/* Панель вкладки: одна колонка 320px, чистый ритм. Плавность — только при переключении вкладок */
.loginpane { width: 100%; max-width: 320px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loginpane.is-hidden { display: none; }
.loginpane.switching { animation: panefade .3s var(--ease) both; }
@keyframes panefade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* «Вход через Telegram» — как слоган: тонкий, не жирный */
.entryhead { text-align: center; font-weight: 400; font-size: clamp(21px, 5.6vw, 26px); letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }

/* Своя кнопка входа через Telegram (мгновенная) */
.tgbutton { gap: 8px; }
.tgbutton .material-symbols-rounded { font-size: 20px; }
