@property --бл { syntax:'<length>'; inherits:false; initial-value:0px; }
/* AVENЮ · оформление: ночной неон, контурные цветы, живой фон (решения Ивана 25.11.2026 — AVENЮ_дизайн_идеи.md) */
@property --лого { syntax:'<color>'; inherits:true; initial-value:#FF3EB5; }
@property --лого-ядро { syntax:'<color>'; inherits:true; initial-value:#ffffff; }
:root { transition:--лого 2.5s ease, --лого-ядро 2.5s ease;
  --фон:#0B0B12; --стекло:rgba(9,7,15,.55); --стекло2:rgba(255,255,255,.04); --линия:rgba(255,255,255,.09); --рамка:color-mix(in srgb, var(--лого) 40%, transparent);
  --текст:#F2EEF8; --тускло:#A8A3B8; --акцент:var(--лого); --ок:#3DDC84; --плохо:#FF4D6D; --жёлт:#FFC857; --тень-свет:color-mix(in srgb, var(--лого) 14%, transparent); }
body.светлая { --фон:#F6F7FB; --стекло:rgba(255,255,255,.62); --стекло2:rgba(20,10,40,.03); --линия:rgba(20,10,40,.08); --рамка:color-mix(in srgb, var(--лого) 55%, rgba(0,0,0,.15));
  --текст:#14121C; --тускло:#6B6E7F; --ок:#14995a; --плохо:#d62f4f; --жёлт:#b9820c; --тень-свет:color-mix(in srgb, var(--лого) 10%, transparent); }
* { box-sizing:border-box; }
html { background:#000; overflow-x:hidden; overscroll-behavior:none; }
html, body { max-width:100%; overflow-x:clip; overscroll-behavior:none; }
html.светлая-рано, html.светлая-рано body { background:#F6F7FB; }
body { margin:0; min-height:100vh; background-color:var(--фон-рисунка, var(--фон)) !important; font:15px/1.45 Manrope, -apple-system, "Segoe UI", Roboto, sans-serif; background:var(--фон); color:var(--текст); -webkit-tap-highlight-color:transparent; }

/* ── живой фон ── */
#фонGL, #фонЧ { position:fixed; top:0; left:0; width:100%; height:100vh; height:100lvh; display:block; pointer-events:none; }
#фонGL { z-index:0; opacity:0; transition:opacity 1.2s ease; } body.фон #фонGL { opacity:1; }
#фонЧ { z-index:1; transition:opacity .6s; }
#фонТень { position:fixed; inset:0; z-index:1; pointer-events:none; opacity:0; transition:opacity 1s;
  background:linear-gradient(180deg, rgba(11,11,18,.25), rgba(11,11,18,.06) 40%, rgba(11,11,18,.35)); }
body.светлая #фонТень { background:linear-gradient(180deg, rgba(246,247,251,.35), rgba(246,247,251,0) 40%, rgba(246,247,251,.4)); }
body:not(.заставка) #фонТень { opacity:1; }

/* ── логотип: каждая буква — своя неоновая трубка ── */
#лого { position:fixed; z-index:30; pointer-events:none; left:50%; top:38%; width:min(72vw, 360px); transform:translate(-50%, -50%);
  transition:top .9s cubic-bezier(.6,0,.2,1), width .9s cubic-bezier(.6,0,.2,1), left .9s cubic-bezier(.6,0,.2,1), transform .9s cubic-bezier(.6,0,.2,1); }
body:not(.заставка) #лого { top:calc(env(safe-area-inset-top, 0px) + 32px); left:max(16px, calc(50% - 304px)); width:124px; transform:translate(0, -50%); }
#лого svg { width:100%; display:block; overflow:visible; color:var(--лого-ядро); transition:color 1.2s, filter 1.2s, opacity 1.5s;
  filter:drop-shadow(0 0 1.5px var(--лого-ядро)) drop-shadow(0 0 5px var(--лого)) drop-shadow(0 0 14px var(--лого)); }
body.светлая #лого svg { color:#111; filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 5px rgba(255,255,255,.95)) drop-shadow(0 0 14px rgba(255,255,255,.8)); }
body.закрыта #лого svg { opacity:.72; }
#лого .б, #лого .подп { opacity:0; }
#лого .вкл { animation:зажечь 1.1s steps(1) forwards; } #лого .подп.вкл { animation-duration:1.4s; }
#лого .горит { opacity:1; }
#лого .б.сбой { animation:сбой .9s steps(1); } #лого .б.гаснет { animation:гаснет 2.2s ease-in-out; }
body.светлая #лого .вкл { animation:появ .7s ease forwards; } body.светлая #лого .б.сбой, body.светлая #лого .б.гаснет { animation:none; }
@keyframes зажечь { 0%{opacity:0} 10%{opacity:.85} 16%{opacity:.08} 26%{opacity:1} 31%{opacity:.2} 40%{opacity:.95} 46%{opacity:.5} 55%,100%{opacity:1} }
@keyframes сбой { 0%{opacity:1} 12%{opacity:.15} 20%{opacity:1} 34%{opacity:.3} 40%{opacity:.9} 55%{opacity:.2} 62%,100%{opacity:1} }
@keyframes гаснет { 0%{opacity:1} 15%{opacity:.25} 22%{opacity:.6} 30%{opacity:.2} 70%{opacity:.25} 76%{opacity:.9} 80%{opacity:.3} 88%,100%{opacity:1} }
@keyframes появ { from{opacity:0; --бл:0px} to{opacity:1} }

/* ── шапка ── */
header { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:8px; max-width:640px; margin:0 auto;
  padding:calc(env(safe-area-inset-top, 0px) + 10px) 16px 8px; min-height:calc(env(safe-area-inset-top, 0px) + 64px); }
header::before { content:''; position:absolute; inset:0 -100vw; z-index:-1; background:linear-gradient(180deg, color-mix(in srgb, var(--фон) 88%, transparent), color-mix(in srgb, var(--фон) 0%, transparent)); pointer-events:none; }
.место-лого { width:124px; flex:0 0 auto; }
#шапкаКн { margin-left:auto; display:flex; gap:8px; align-items:center; }
#шапка #сохр { font-size:12px; }
.икн, #бКолокол, #бОшибка { width:42px; height:42px; padding:0 !important; flex:0 0 auto; border-radius:14px !important; border:1px solid var(--рамка) !important; background:var(--стекло) !important;
  color:var(--текст) !important; display:grid; place-items:center; cursor:pointer; position:relative; margin:0 !important;
  --бл-полн:10px; --бл:var(--бл-полн); backdrop-filter:blur(var(--бл)); -webkit-backdrop-filter:blur(var(--бл)); box-shadow:0 0 14px var(--тень-свет); transition:border-color 2.5s, box-shadow 1.5s; }
.икн svg, #бКолокол svg, #бОшибка svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
#бКолокол .счёт { position:absolute; top:-5px; right:-5px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--лого); color:#fff; font:700 11px/18px Manrope; box-shadow:0 0 10px var(--лого); }

/* ── боковое меню справа ── */
#тень { position:fixed; inset:0; z-index:40; background:rgba(0,0,0,.38); opacity:0; pointer-events:none; transition:opacity .35s; }
body.меню #тень { opacity:1; pointer-events:auto; }
#панель { position:fixed; top:0; bottom:0; right:0; width:min(84vw, 330px); z-index:41; transform:translateX(104%); visibility:hidden; transition:transform .42s cubic-bezier(.3,.8,.2,1), visibility 0s .42s;
  background:rgba(9,7,15,.8); border-left:1px solid var(--рамка); --бл-полн:18px; --бл:var(--бл-полн); backdrop-filter:blur(var(--бл)); -webkit-backdrop-filter:blur(var(--бл));
  padding:calc(env(safe-area-inset-top, 0px) + 18px) 12px calc(env(safe-area-inset-bottom, 0px) + 18px); overflow:auto; }
body.светлая #панель { background:rgba(246,247,251,.86); }
body.меню #панель { transform:none; visibility:visible; --бл:var(--бл-полн); transition:transform .42s cubic-bezier(.3,.8,.2,1), visibility 0s, --бл .42s ease; }
#ктоЯ { padding:4px 10px 14px; font-size:13px; border-bottom:1px solid var(--линия); margin-bottom:8px; }
nav#меню { display:flex; flex-direction:column; gap:2px; }
nav#меню button { display:flex; align-items:center; gap:14px; width:100%; text-align:left; background:transparent; color:var(--текст); border:1px solid transparent; border-radius:14px; padding:11px 12px; font:600 16px Manrope, sans-serif; cursor:pointer; }
nav#меню button i { width:30px; height:30px; flex:0 0 auto; display:grid; place-items:center; color:var(--ц, var(--лого)); }
nav#меню button i svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
  filter:drop-shadow(0 0 1px #fff8) drop-shadow(0 0 4px var(--ц, var(--лого))) drop-shadow(0 0 9px color-mix(in srgb, var(--ц, var(--лого)) 60%, transparent)); }
body.светлая nav#меню button i svg { filter:none; stroke-width:1.8; }
nav#меню button.вкл i svg { stroke-width:1.9; }
nav#меню button.вкл { border-color:var(--рамка); background:color-mix(in srgb, var(--лого) 11%, transparent); }

/* ── содержимое ── */
main { position:relative; z-index:2; max-width:640px; margin:0 auto; padding:0 16px calc(env(safe-area-inset-bottom, 0px) + 60px); }
.карта { position:relative; background:var(--стекло); border:1px solid var(--рамка); border-radius:18px; padding:14px 16px; margin-top:12px;
  --бл-полн:8px; --бл:var(--бл-полн); backdrop-filter:blur(var(--бл)); -webkit-backdrop-filter:blur(var(--бл)); box-shadow:inset 0 0 22px color-mix(in srgb, var(--лого) 6%, transparent), 0 0 16px var(--тень-свет);
  transition:border-color 2.5s, box-shadow 1.5s; }
.карта::before { content:''; position:absolute; left:16px; right:16px; top:0; height:1px; background:linear-gradient(90deg, transparent, var(--лого), transparent); opacity:.65; pointer-events:none; }
body.закрыта .карта { box-shadow:none; }
h2 { font:700 18px/1.2 Montserrat, Manrope, sans-serif; margin:0 0 10px; }
h3 { font-size:14px; margin:14px 0 8px; color:color-mix(in srgb, var(--лого) 40%, var(--тускло)); font-weight:600; letter-spacing:.2px; }
.тускло { color:var(--тускло); font-size:13px; } .ок { color:var(--ок); } .плохо { color:var(--плохо); } .жёлт { color:var(--жёлт); }
.скрыт { display:none !important; }
.строка { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--линия); }
.строка:last-child { border-bottom:0; }
.строка.жмётся { cursor:pointer; }
.метки { display:flex; gap:4px; flex-wrap:wrap; justify-content:flex-end; }
.метка { font-size:11px; padding:2px 8px; border-radius:999px; border:1px solid var(--линия); color:var(--тускло); white-space:nowrap; }
.метка.ак { border-color:var(--лого); color:var(--лого); } .метка.пл { border-color:var(--плохо); color:var(--плохо); }
label.поле { display:block; margin:8px 0; } label.поле span { display:block; font-size:12px; color:var(--тускло); margin-bottom:4px; }
input, select, textarea { width:100%; background:var(--стекло2); color:var(--текст); border:1px solid var(--линия); border-radius:10px; padding:10px 11px; font:inherit; outline:none; transition:border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color:var(--лого); box-shadow:0 0 0 3px color-mix(in srgb, var(--лого) 18%, transparent); }
select option { background:var(--фон); color:var(--текст); }
input:disabled, select:disabled { opacity:.7; }
input[type=checkbox] { width:auto; accent-color:var(--лого); }
button.кн { background:color-mix(in srgb, var(--лого) 85%, #fff 0%); color:#fff; border:0; border-radius:12px; padding:11px 15px; font:inherit; font-weight:700; cursor:pointer;
  box-shadow:0 0 16px color-mix(in srgb, var(--лого) 40%, transparent); text-shadow:0 1px 1px rgba(0,0,0,.25); transition:transform .1s, filter .2s; }
button.кн:active { transform:scale(.97); }
button.кн.вт { background:var(--стекло2); color:var(--текст); border:1px solid var(--рамка); font-weight:600; box-shadow:none; text-shadow:none; }
button.кн.пл { background:transparent; color:var(--плохо); border:1px solid var(--плохо); font-weight:600; box-shadow:none; text-shadow:none; }
button.кн:disabled { opacity:.45; }
.ряд { display:flex; gap:8px; flex-wrap:wrap; align-items:center; } .ряд > * { flex:1; }
.сег { display:inline-flex; border:1px solid var(--рамка); border-radius:10px; overflow:hidden; flex:0 0 auto; background:var(--стекло2); }
.сег button { background:transparent; color:var(--тускло); border:0; padding:6px 10px; font:inherit; font-size:12.5px; cursor:pointer; }
.сег button + button { border-left:1px solid var(--линия); }
.сег button.вкл { background:color-mix(in srgb, var(--лого) 80%, transparent); color:#fff; font-weight:700; }
.сег button.свой { box-shadow:inset 0 -2px 0 var(--жёлт); }
details { border-top:1px solid var(--линия); } details:first-of-type { border-top:0; }
summary { padding:10px 0; cursor:pointer; font-weight:600; list-style:none; } summary::-webkit-details-marker { display:none; }
summary .тускло { font-weight:400; margin-left:6px; }
.блок { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:7px 0 7px 4px; }
.блок .имя { font-size:14px; } .блок .номер { color:var(--тускло); font-size:12px; margin-right:6px; }
.ист { font-size:13px; padding:8px 0; border-bottom:1px solid var(--линия); } .ист:last-child { border:0; }
.ист .что { font-weight:600; }
.период { display:grid; grid-template-columns:1fr 140px 34px; gap:6px; margin:6px 0; }
.период button { background:transparent; border:1px solid var(--линия); color:var(--тускло); border-radius:8px; cursor:pointer; }
#тост { position:fixed; left:50%; bottom:calc(env(safe-area-inset-bottom, 0px) + 22px); transform:translateX(-50%); z-index:60; background:var(--стекло); border:1px solid var(--рамка);
  padding:11px 15px; border-radius:14px; max-width:90vw; --бл-полн:14px; --бл:var(--бл-полн); backdrop-filter:blur(var(--бл)); -webkit-backdrop-filter:blur(var(--бл)); box-shadow:0 0 18px var(--тень-свет); }
#тост.ош { border-color:var(--плохо); }
table.пр { width:100%; border-collapse:collapse; font-size:13px; } table.пр td, table.пр th { border-bottom:1px solid var(--линия); padding:6px 4px; text-align:left; vertical-align:top; }
.центр { text-align:center; }
body.заставка main, body.заставка header #шапкаКн { opacity:0; }
main, #шапкаКн { transition:opacity .7s .3s; }

/* широкие таблицы листаются внутри карточки, а не растягивают экран */
.карта { max-width:100%; } .карта table { display:block; overflow-x:auto; max-width:100%; -webkit-overflow-scrolling:touch; }
.карта img, .карта svg:not(.завиток) { max-width:100%; }

/* ── КОМПЬЮТЕР: определяется сам (широкий экран + мышь) — меню всегда открыто справа, карточки в несколько колонок ── */
@media (min-width:1024px) {
  header { max-width:none; padding-left:28px; padding-right:calc(300px + 20px); }
  header::before { inset:0; }
  .место-лого { width:170px; }
  body:not(.заставка) #лого { left:28px; width:170px; top:calc(env(safe-area-inset-top, 0px) + 36px); }
  #бМеню, #тень { display:none !important; }
  #панель { transform:none; visibility:visible; width:300px; top:0; transition:none; padding-top:22px; }
  body.заставка #панель { opacity:0; } #панель { transition:opacity .7s .3s; }
  main { max-width:none; margin:0 320px 0 0; padding:0 28px 60px max(28px, calc((100vw - 320px - 1240px) / 2));
    display:grid; grid-template-columns:repeat(auto-fill, minmax(380px, 1fr)); grid-auto-rows:4px; gap:0 16px; align-items:start; }
  main > * { min-width:0; }
  main > .карта:has(table), main > .карта:has(.период), main > .карта.широкая, main > div:not(.карта) { grid-column:1 / -1; }
  .карта { margin-top:16px; }
  #тост { left:calc(50% - 150px); }
}
@media (min-width:1500px) { main { grid-template-columns:repeat(auto-fill, minmax(420px, 1fr)); } }
@media (min-width:1024px) {
  main > div:not(.карта):has(> .карта) { display:grid; grid-template-columns:subgrid; grid-auto-rows:4px; grid-column:1 / -1; gap:0 16px; align-items:start; }
  main > div:not(.карта):has(> .карта) > .карта:has(table), main > div:not(.карта):has(> .карта) > .карта.широкая { grid-column:1 / -1; }
}

/* ── смена: люди списком (как в таблицах) ── */
.люди { display:flex; flex-direction:column; gap:6px; }
.чел { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; padding:9px 10px; border-radius:12px; border:1px solid var(--линия); background:var(--стекло2); position:relative; transition:opacity .2s, border-color .3s; }
.чел:not(.вкл) { opacity:.55; }
.чел.вкл { border-color:var(--рамка); }
.чел.граф::before { content:''; position:absolute; left:0; top:8px; bottom:8px; width:3px; border-radius:2px; background:color-mix(in srgb, var(--лого) 70%, transparent); box-shadow:0 0 8px color-mix(in srgb, var(--лого) 50%, transparent); }
.чел-имя { display:flex; align-items:center; gap:10px; flex:1 1 190px; min-width:0; cursor:pointer; }
.чел-имя input { width:20px; height:20px; flex:0 0 auto; }
.чел-имя > span { display:flex; flex-direction:column; min-width:0; } .чел-имя b { font-weight:600; overflow:hidden; text-overflow:ellipsis; }
.чел-имя .тускло { font-size:12px; }
.чел-время { display:flex; align-items:center; gap:6px; flex:0 0 auto; margin-left:auto; }
.чел-время select { width:auto; padding:6px 8px; font-size:14px; border-radius:9px; }
.чел-время select:disabled { opacity:.85; }
.чел-прод { display:flex; align-items:center; gap:4px; font-size:12px; white-space:nowrap; }

/* ── автономный режим: надпись в шапке ── */
#автономПлашка { position:absolute; left:16px; right:16px; top:calc(100% - 4px); z-index:21; padding:7px 12px; border-radius:12px; text-align:center;
  background:color-mix(in srgb, var(--жёлт) 22%, var(--стекло)); border:1px solid color-mix(in srgb, var(--жёлт) 65%, transparent); color:var(--текст);
  --бл-полн:10px; --бл:var(--бл-полн); backdrop-filter:blur(var(--бл)); -webkit-backdrop-filter:blur(var(--бл)); box-shadow:0 0 16px color-mix(in srgb, var(--жёлт) 25%, transparent); }
#автономПлашка b { display:block; font-size:13px; }
#автономПлашка span { display:block; font-size:11px; color:var(--тускло); }
body.автоном main { padding-top:62px; }

/* ── меню: группы раскрываются плавно ── */
nav#меню .группа { display:flex; flex-direction:column; }
nav#меню .гр-кн .стрелка { margin-left:auto; width:9px; height:9px; border-right:2px solid var(--тускло); border-bottom:2px solid var(--тускло); transform:rotate(45deg) translate(-2px,-2px); transition:transform .35s cubic-bezier(.3,.8,.2,1); }
nav#меню .группа.откр .стрелка { transform:rotate(225deg) translate(-2px,-2px); }
nav#меню .гр-тело { display:grid; grid-template-rows:0fr; transition:grid-template-rows .38s cubic-bezier(.3,.8,.2,1); }
nav#меню .гр-тело > div { overflow:hidden; display:flex; flex-direction:column; gap:2px; padding-left:14px; margin-left:26px; border-left:1px solid var(--линия); }
nav#меню .группа.откр .гр-тело { grid-template-rows:1fr; }
nav#меню .гр-тело button { font-size:15px; padding:9px 10px; opacity:0; transform:translateX(14px); transition:opacity .3s, transform .35s cubic-bezier(.3,.8,.2,1), background .2s, border-color .2s; }
nav#меню .группа.откр .гр-тело button { opacity:1; transform:none; }
nav#меню .группа.откр .гр-тело button:nth-child(2) { transition-delay:.04s; } nav#меню .группа.откр .гр-тело button:nth-child(3) { transition-delay:.08s; }
nav#меню .группа.откр .гр-тело button:nth-child(4) { transition-delay:.12s; } nav#меню .группа.откр .гр-тело button:nth-child(5) { transition-delay:.16s; }
nav#меню .гр-тело button i { width:24px; height:24px; } nav#меню .гр-тело button i svg { width:22px; height:22px; }
nav#меню button { transition:background .2s, border-color .2s; } nav#меню button:hover { background:color-mix(in srgb, var(--ц, var(--лого)) 8%, transparent); }

/* ── значки: неон прорисовывается, у каждого своё движение ── */
nav#меню button.рисую i svg * { stroke-dasharray:1; stroke-dashoffset:1; animation:прорисовка .9s cubic-bezier(.5,0,.2,1) var(--з, 0s) forwards; }
@keyframes прорисовка { to { stroke-dashoffset:0; } }
nav#меню button i svg { transform-origin:50% 50%; transform-box:fill-box; }
nav#меню button:hover i svg, nav#меню button.вкл i svg { animation:var(--анм) 1.6s ease-in-out infinite; }
nav#меню button.вкл i svg { animation-iteration-count:infinite; animation-duration:2.6s; }
.анм-пульс { --анм:з-пульс; } .анм-стрелка { --анм:з-тик; } .анм-листок { --анм:з-листок; } .анм-щит { --анм:з-пульс; } .анм-качель { --анм:з-качель; }
.анм-рост { --анм:з-рост; } .анм-чек { --анм:з-чек; } .анм-карта { --анм:з-карта; } .анм-кивок { --анм:з-кивок; } .анм-ключ { --анм:з-ключ; }
.анм-клавиши { --анм:з-клавиши; } .анм-туда { --анм:з-туда; } .анм-шестерня { --анм:з-шестерня; } .анм-облако { --анм:з-облако; } .анм-микрофон { --анм:з-качель; } .анм-стопка { --анм:з-стопка; }
@keyframes з-пульс { 0%,100% { transform:scale(1); } 15% { transform:scale(1.14); } 30% { transform:scale(.97); } 45% { transform:scale(1.07); } }
@keyframes з-тик { 0%,100% { transform:rotate(0); } 20% { transform:rotate(-10deg); } 40% { transform:rotate(8deg); } 60% { transform:rotate(-4deg); } 80% { transform:rotate(2deg); } }
@keyframes з-листок { 0%,100% { transform:perspective(60px) rotateY(0); } 50% { transform:perspective(60px) rotateY(-28deg); } }
@keyframes з-качель { 0%,100% { transform:rotate(0); } 25% { transform:rotate(-9deg); } 75% { transform:rotate(9deg); } }
@keyframes з-рост { 0%,100% { transform:scaleY(1); transform-origin:50% 100%; } 50% { transform:scaleY(1.16); transform-origin:50% 100%; } }
@keyframes з-чек { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-3px); } }
@keyframes з-карта { 0%,100% { transform:perspective(60px) rotateX(0) rotateY(0); } 50% { transform:perspective(60px) rotateX(14deg) rotateY(-16deg); } }
@keyframes з-кивок { 0%,100% { transform:translateY(0); } 30% { transform:translateY(-2.5px); } 60% { transform:translateY(.5px); } }
@keyframes з-ключ { 0%,100% { transform:rotate(0); } 40%,60% { transform:rotate(-24deg); } }
@keyframes з-клавиши { 0%,100% { transform:translateY(0); } 20% { transform:translateY(1.5px); } 40% { transform:translateY(0); } 60% { transform:translateY(1.5px); } }
@keyframes з-туда { 0%,100% { transform:translateX(0); } 50% { transform:translateX(3px); } }
@keyframes з-шестерня { to { transform:rotate(180deg); } }
@keyframes з-облако { 0%,100% { transform:translateY(0); } 50% { transform:translateY(2.5px); } }
@keyframes з-стопка { 0%,100% { transform:translateY(0) scale(1); } 40% { transform:translateY(-2px) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { nav#меню button i svg, nav#меню button.рисую i svg * { animation:none !important; stroke-dashoffset:0; } }

/* ── экраны появляются плавно ── */
main > .появ { animation:появ-экран .42s cubic-bezier(.2,.8,.2,1) both; }
@keyframes появ-экран { from { opacity:0; transform:translateY(10px); --бл:0px; } to { opacity:1; transform:none; } }
#шапкаКн > * { animation:появ .4s ease both; }

/* ── сразу правильный фон, ещё до того как запустится живой ── */
#фонСразу { position:fixed; top:0; left:0; width:100%; height:100vh; height:100lvh; z-index:0; pointer-events:none; transform:scaleX(-1);
  background:var(--фон-сразу, none) right center / cover no-repeat, var(--фон-рисунка, #0B0B12); transition:opacity 1s .2s; }
@media (min-aspect-ratio: 9/10) {
  #фонСразу { transform:none; background:var(--фон-рисунка, #0B0B12); }
  #фонСразу::before, #фонСразу::after { content:''; position:absolute; top:0; bottom:0; width:50%; background:var(--фон-сразу, none) right center / auto 100% no-repeat;
    -webkit-mask-image:linear-gradient(to right, transparent calc(100% - 56.7lvh), #000 calc(100% - 26.7lvh)); mask-image:linear-gradient(to right, transparent calc(100% - 56.7lvh), #000 calc(100% - 26.7lvh)); }
  #фонСразу::before { left:0; transform:scaleX(-1); } #фонСразу::after { right:0; } }
/* смена закрыта: фон приглушён с первого кадра (как у живого фона) */
html.закрыта-рано:not(.светлая-рано) #фонСразу { filter:saturate(.65) brightness(.45); }
body.фон #фонСразу { opacity:0; }

/* ── вход: картинка видна целиком, сверху логотип, снизу — небольшая стеклянная плашка ── */
body.вход header #шапкаКн { display:none; }
body.вход:not(.заставка) #лого { top:calc(var(--вход-верх, 60vh) / 2 + env(safe-area-inset-top, 0px) / 2); left:50%; width:min(66vw, 320px, calc(var(--вход-верх, 60vh) * 1.5)); transform:translate(-50%, -50%); }
@media (min-width:1024px) { body.вход:not(.заставка) #лого { left:50%; width:min(40vw, 380px, calc(var(--вход-верх, 60vh) * 1.5)); } body.вход #панель { display:none; } body.вход main { margin-right:0; } }
body.вход main { position:fixed; left:0; right:0; bottom:calc(env(safe-area-inset-bottom, 0px) + 14px); padding:0 16px; display:block; margin:0 auto; max-width:420px; max-height:calc(100% - 110px); overflow:auto; }
body.вход main > .карта { background:color-mix(in srgb, var(--стекло) 70%, transparent); text-align:center; padding:14px 16px 16px; border-radius:22px; }
body.вход main > .карта h2 { font-size:16px; margin-bottom:6px; } body.вход main > .карта p { margin:4px 0 10px; font-size:14px; }
.палец { width:68px; height:68px; border-radius:50%; margin:4px auto 8px; display:grid; place-items:center; cursor:pointer; border:1px solid var(--рамка); background:color-mix(in srgb, var(--лого) 14%, transparent);
  color:var(--лого-ядро); box-shadow:0 0 22px color-mix(in srgb, var(--лого) 45%, transparent), inset 0 0 14px color-mix(in srgb, var(--лого) 25%, transparent); animation:палец 2.4s ease-in-out infinite; padding:0; }
.палец svg { width:38px; height:38px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; filter:drop-shadow(0 0 4px var(--лого)); }
body.светлая .палец { color:#111; }
@keyframes палец { 0%,100% { box-shadow:0 0 18px color-mix(in srgb, var(--лого) 35%, transparent), inset 0 0 12px color-mix(in srgb, var(--лого) 20%, transparent); }
  50% { box-shadow:0 0 34px color-mix(in srgb, var(--лого) 65%, transparent), inset 0 0 18px color-mix(in srgb, var(--лого) 35%, transparent); } }
body.вход details.вх { text-align:left; font-size:13px; } body.вход details.вх summary { cursor:pointer; color:var(--тускло); text-align:center; list-style:none; }

/* ── PIN-код ── */
.пин-точки { display:flex; justify-content:center; gap:16px; margin:6px 0 clamp(8px, 1.6vh, 14px); }
.пин-точки i { width:14px; height:14px; border-radius:50%; border:1.5px solid var(--лого); transition:background .15s, box-shadow .15s; }
.пин-точки i.есть { background:var(--лого); box-shadow:0 0 10px var(--лого); }
.пин-точки.мимо { animation:мимо .45s; } @keyframes мимо { 20%,60% { transform:translateX(-8px); } 40%,80% { transform:translateX(8px); } }
.пин-кл { --кл:clamp(44px, 7.6vh, 64px); display:grid; grid-template-columns:repeat(3, var(--кл)); gap:clamp(6px, 1.2vh, 10px) 18px; justify-content:center; }
.пин-кл button { width:var(--кл); height:var(--кл); border-radius:50%; border:1px solid var(--рамка); background:color-mix(in srgb, var(--стекло) 70%, transparent); color:var(--текст);
  font:600 clamp(18px, 3vh, 24px) Manrope, sans-serif; cursor:pointer; padding:0; transition:background .15s, transform .1s; -webkit-tap-highlight-color:transparent; }
.пин-кл button:active { background:color-mix(in srgb, var(--лого) 28%, transparent); transform:scale(.94); }
.пин-кл .пин-доп { border-color:transparent; background:transparent; font-size:14px; color:var(--тускло); }
.пин-кл .пин-доп[data-п="стереть"] { font-size:22px; }

/* ── сканер QR ── */
.кн-знак { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.кн-знак svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
#бСвет.вкл { background:color-mix(in srgb, var(--жёлт) 30%, transparent); border-color:var(--жёлт); }
#бСвет.вкл svg { fill:var(--жёлт); stroke:var(--жёлт); filter:drop-shadow(0 0 6px var(--жёлт)); }
.скан { position:relative; width:min(72vw, 280px); aspect-ratio:1; margin:6px auto 0; border-radius:18px; overflow:hidden; background:#000; }
.скан video { width:100%; height:100%; object-fit:cover; display:block; }
.скан-рамка { position:absolute; inset:14%; border-radius:14px; box-shadow:0 0 0 999px rgba(0,0,0,.35);
  background:linear-gradient(var(--лого),var(--лого)) 0 0/26px 3px, linear-gradient(var(--лого),var(--лого)) 0 0/3px 26px,
    linear-gradient(var(--лого),var(--лого)) 100% 0/26px 3px, linear-gradient(var(--лого),var(--лого)) 100% 0/3px 26px,
    linear-gradient(var(--лого),var(--лого)) 0 100%/26px 3px, linear-gradient(var(--лого),var(--лого)) 0 100%/3px 26px,
    linear-gradient(var(--лого),var(--лого)) 100% 100%/26px 3px, linear-gradient(var(--лого),var(--лого)) 100% 100%/3px 26px; background-repeat:no-repeat; }
.скан-рамка i { position:absolute; left:6%; right:6%; height:2px; top:10%; background:var(--лого); box-shadow:0 0 12px var(--лого); animation:скан 2s ease-in-out infinite alternate; }
@keyframes скан { to { top:88%; } }

/* плашка входа проявляется из пустоты */
body.вход main > .вх-плашка { animation:none; opacity:0; transform:translateY(22px) scale(.97); --бл:0px; will-change:opacity, transform;
  transition:opacity .6s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1), --бл .7s ease; }
body.вход main > .вх-плашка.видна { opacity:1; transform:none; --бл:var(--бл-полн); }
body.вход main > .вх-плашка.сразу { transition:none; }

/* ── плавная смена экрана ── */
.экран-уход { z-index:3 !important; pointer-events:none; animation:none !important; }
.экран-уход > *, .экран-уход > div:not(.карта) > * { animation:экран-уход .32s ease forwards !important; animation-delay:0s !important; }
.экран-уход > div:not(.карта):has(> .карта) { animation:none !important; }
@keyframes экран-уход { to { opacity:0; transform:translateY(-6px); --бл:0px; } }
main.экран-приход > *, main.экран-приход > div:not(.карта) > * { animation:экран-приход .34s ease both; }
main.экран-приход > div:not(.карта):has(> .карта) { animation:none; }
@keyframes экран-приход { from { opacity:0; --бл:0px; } }
body.вход main > .вх-плашка.сразу { animation:плашка-смена .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes плашка-смена { from { opacity:0; transform:translateY(8px) scale(.985); filter:blur(4px); --бл:0px; } to { opacity:1; transform:none; filter:none; } }

/* ── тост: выезжает и уезжает ── */
#тост { transition:opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1); }
#тост.виден { animation:тост .4s cubic-bezier(.2,.8,.2,1) both; }
#тост.уходит { --бл:0px; opacity:0; transform:translate(-50%, 14px); }
@keyframes тост { from { opacity:0; transform:translate(-50%, 18px) scale(.96); } to { opacity:1; transform:translate(-50%, 0); } }

/* ── раскрывающиеся блоки ── */
details[open] > :not(summary) { animation:раскрыть .32s ease both; }
@keyframes раскрыть { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }

/* ── PIN: точки впрыгивают, кнопки вспыхивают, при проверке точки пульсируют, при ошибке — краснеют и трясутся ── */
.пин-точки i.есть { animation:точка .32s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes точка { 0% { transform:scale(.3); } 60% { transform:scale(1.35); } 100% { transform:scale(1); } }
.пин-точки.проверка i { animation:проверка .7s ease-in-out infinite alternate; }
.пин-точки.проверка i:nth-child(2) { animation-delay:.12s; } .пин-точки.проверка i:nth-child(3) { animation-delay:.24s; } .пин-точки.проверка i:nth-child(4) { animation-delay:.36s; }
@keyframes проверка { from { transform:scale(1); box-shadow:0 0 6px var(--лого); } to { transform:scale(1.25); box-shadow:0 0 18px var(--лого); } }
.пин-точки.мимо i { border-color:var(--плохо); background:var(--плохо); box-shadow:0 0 12px var(--плохо); }
.пин-кл button.жм { animation:жм .45s ease-out; }
@keyframes жм { 0% { box-shadow:0 0 0 0 color-mix(in srgb, var(--лого) 60%, transparent); background:color-mix(in srgb, var(--лого) 30%, transparent); }
  100% { box-shadow:0 0 0 18px transparent; } }

@media (max-height:700px) { body.вход main > .карта p.тускло { display:none; } body.вход main > .карта h2 { margin-bottom:2px; } }

/* ── График: «Команда по дням» (как в таблицах) ── */
.гк-об { overflow-x:auto; -webkit-overflow-scrolling:touch; margin:8px -6px 0; border-radius:12px; }
.карта .гк-об table.гк { display:table; overflow:visible; }
table.гк { border-collapse:separate; border-spacing:0; font-size:11px; }
.гк th { background:color-mix(in srgb, var(--фон) 85%, transparent); color:var(--текст); font-weight:700; padding:4px 0; min-width:32px; text-align:center; border-right:1px solid var(--линия); cursor:pointer; position:relative; }
.гк th small { display:block; font-weight:400; font-size:9px; opacity:.7; } .гк th.вых { color:#ff9ccc; } .гк th.сег { background:var(--лого); color:#fff; }
.гк th.выбр { box-shadow:inset 0 -3px 0 var(--лого); } .гк th.сег.выбр { box-shadow:inset 0 -3px 0 #fff; }
.гк th.гости { box-shadow:inset 0 3px 0 #ff9f1c; }
.гк-огонь { display:inline-block; width:7px; height:7px; border-radius:50%; background:#ff9f1c; box-shadow:0 0 6px #ff9f1c; vertical-align:middle; }
.гк th .гк-огонь { display:block; margin:1px auto 0; }
.гк td { height:30px; text-align:center; border-bottom:1px solid var(--линия); border-right:1px solid var(--линия); padding:0; cursor:pointer; transition:background .2s; }
.гк td.вых { background:rgba(127,127,127,.06); } .гк td.сег { background:color-mix(in srgb, var(--лого) 12%, transparent); } .гк td.выбр { background:color-mix(in srgb, var(--лого) 9%, transparent); }
.гк .гк-и { position:sticky; left:0; z-index:2; min-width:108px; max-width:108px; text-align:left; padding:3px 6px; background:color-mix(in srgb, var(--фон) 92%, transparent); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:600; cursor:default; }
.гк th.гк-и { font-weight:400; font-size:10px; } .гк td.гк-и { border-left:4px solid; }
.гк td.гк-и small { display:block; font-weight:400; font-size:9.5px; color:var(--тускло); overflow:hidden; text-overflow:ellipsis; }
.гк tr.я td.гк-и { background:color-mix(in srgb, var(--лого) 16%, var(--фон)); } .гк tr.я td { box-shadow:inset 0 1px 0 color-mix(in srgb, var(--лого) 40%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--лого) 40%, transparent); }
.гк-п { display:block; margin:3px 2px; border-radius:6px; color:#fff; font-weight:800; line-height:22px; background:var(--ц); box-shadow:0 0 8px color-mix(in srgb, var(--ц) 45%, transparent); animation:появ .35s ease both; }
.гк-п.ждёт { background:transparent; color:var(--ц); border:1.5px dashed var(--ц); line-height:19px; box-shadow:none; }
.гк-п.бол { background:color-mix(in srgb, var(--тускло) 35%, transparent); box-shadow:none; }
.гк .гк-с { font-weight:700; min-width:40px; padding:0 4px; cursor:default; }
.гк-лег { font-size:12px; margin-top:8px; }
.гк-пан { margin-top:12px; padding-top:10px; border-top:1px solid var(--линия); animation:раскрыть .3s ease both; }

/* ── профиль вверху меню (как в ВК) ── */
#ктоЯ { padding:0 0 10px; border-bottom:1px solid var(--линия); margin-bottom:8px; }
.профиль { display:flex; align-items:center; gap:12px; width:100%; padding:10px; border-radius:16px; border:1px solid transparent; background:transparent; color:var(--текст); cursor:pointer; text-align:left; font:inherit; transition:background .2s, border-color .2s; }
.профиль:hover, .профиль.вкл { background:color-mix(in srgb, var(--лого) 10%, transparent); border-color:var(--рамка); }
.профиль .ава { width:46px; height:46px; border-radius:50%; display:grid; place-items:center; flex:0 0 auto; font:700 17px Montserrat, Manrope, sans-serif; color:#fff;
  background:radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--лого) 85%, #fff), var(--лого)); box-shadow:0 0 16px color-mix(in srgb, var(--лого) 45%, transparent); }
.профиль .кто { display:flex; flex-direction:column; min-width:0; } .профиль .кто b { font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.профиль .кто small { color:var(--тускло); font-size:12.5px; } .профиль .стрелка-п { margin-left:auto; color:var(--тускло); font-size:22px; font-weight:400; }

/* ── группы меню: раскрытие по высоте ── */
nav#меню .гр-тело { display:block !important; height:0; overflow:hidden; transition:height .38s cubic-bezier(.3,.8,.2,1); grid-template-rows:none !important; }
nav#меню .группа.откр .гр-тело { height:auto; }
nav#меню .гр-тело > div { overflow:visible; }

/* ── боковое меню открыто: листается меню, а не страница ── */
html.меню-откр, html.меню-откр body { overflow:hidden; overscroll-behavior:none; }
#панель { overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
body:not(.меню):not(.пк) #панель { --бл:0px; transition:transform .42s cubic-bezier(.3,.8,.2,1), visibility 0s .42s, --бл .42s ease; }

/* ── сообщения: висят, пока не закроешь ── */
#тост { display:none !important; }
#тосты { position:fixed; left:50%; transform:translateX(-50%); bottom:calc(env(safe-area-inset-bottom, 0px) + 18px); z-index:60; display:flex; flex-direction:column; gap:8px; width:min(92vw, 420px); pointer-events:none; }
#тосты .тост { pointer-events:auto; display:flex; align-items:center; gap:10px; padding:11px 12px 11px 15px; border-radius:14px; background:var(--стекло); border:1px solid var(--рамка); cursor:pointer;
  --бл-полн:14px; --бл:var(--бл-полн); backdrop-filter:blur(var(--бл)); -webkit-backdrop-filter:blur(var(--бл)); box-shadow:0 0 18px var(--тень-свет); animation:тост2 .42s cubic-bezier(.2,.8,.2,1) both; transition:opacity .3s, transform .32s, max-height .32s, margin .32s, padding .32s; max-height:200px; }
#тосты .тост span { flex:1; } #тосты .тост button { background:none; border:0; color:var(--тускло); font-size:15px; cursor:pointer; padding:2px 4px; }
#тосты .тост.ош { border-color:var(--плохо); }
#тосты .тост.уходит { --бл:0px; opacity:0; transform:translateY(14px) scale(.97); max-height:0; padding-top:0; padding-bottom:0; margin-top:-8px; }
#тосты .тост.мигни { animation:мигни .5s ease; }
@keyframes тост2 { from { opacity:0; transform:translateY(18px) scale(.96); --бл:0px; } to { opacity:1; transform:none; } }
@keyframes мигни { 30% { transform:scale(1.04); box-shadow:0 0 26px var(--тень-свет); } }

/* ── архив входов ── */
details.арх { margin-top:8px; } details.арх summary { cursor:pointer; color:var(--тускло); font-size:14px; }

/* ── раскрывающийся блок (плавно по высоте) ── */
.раскр { display:grid; grid-template-rows:0fr; transition:grid-template-rows .38s cubic-bezier(.3,.8,.2,1), opacity .3s; opacity:0; }
.раскр > div { overflow:hidden; } .раскр.откр { grid-template-rows:1fr; opacity:1; }

/* ── смена: предпросмотр, люди без рывков, выдать/внести ── */
.предпр { border-color:color-mix(in srgb, var(--жёлт) 60%, transparent); background:color-mix(in srgb, var(--жёлт) 10%, var(--стекло)); }
.предпр-знак { font-size:24px; flex:0 0 auto; }
.чел { transition:background .35s, border-color .35s, opacity .25s, box-shadow .35s; } .чел.ждёт { opacity:.65; }
.чел .чел-время select { transition:opacity .3s; }
.сег-кн .кн { transition:background .25s, color .25s, border-color .25s, box-shadow .25s; }
/* график: колонки одинаковые, имя — непрозрачное поверх прокрутки */
.карта .гк-об table.гк { width:max-content; max-width:none; table-layout:fixed; }
.гк th, .гк td { width:36px; min-width:36px; max-width:36px; }
.гк .гк-и, .гк th.гк-и { width:112px; min-width:112px; max-width:112px; background:var(--фон); z-index:3; }
.гк tr.я td.гк-и { background:color-mix(in srgb, var(--лого) 16%, var(--фон)); }
.гк .гк-с { width:44px; min-width:44px; max-width:44px; }
.гк th { white-space:nowrap; } .гк th small { display:block; }
#тосты .тост { background:color-mix(in srgb, var(--фон) 90%, transparent); }

/* ── окно подтверждения поверх экрана ── */
.окно { position:fixed; inset:0; z-index:70; display:flex; align-items:flex-end; justify-content:center; padding:0 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  background:rgba(0,0,0,0); --бл:0px; backdrop-filter:blur(var(--бл)); -webkit-backdrop-filter:blur(var(--бл)); transition:background .35s, --бл .35s; }
.окно.видно { background:rgba(0,0,0,.45); --бл:4px; }
.окно-плашка { width:100%; max-width:420px; text-align:center; border-radius:22px; background:color-mix(in srgb, var(--фон) 88%, transparent) !important;
  transform:translateY(30px); opacity:0; transition:transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.окно.видно .окно-плашка { transform:none; opacity:1; }
.окно-плашка h2 { font-size:16px; }
.предпр.правка { border-color:color-mix(in srgb, var(--ок) 55%, transparent); background:color-mix(in srgb, var(--ок) 9%, var(--стекло)); }

/* ── журнал ── */
.жк { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px; }
.жк button { border:1px solid var(--рамка); background:transparent; color:var(--текст); border-radius:999px; padding:5px 11px; font:600 13px Manrope, sans-serif; cursor:pointer; transition:background .2s; }
.жк button span { color:var(--тускло); font-weight:500; margin-left:3px; } .жк button.вкл { background:color-mix(in srgb, var(--лого) 22%, transparent); }
.жз .жв { flex:0 0 44px; font-variant-numeric:tabular-nums; } .жз .жв small { display:block; font-size:10px; }
.жист { flex:0 0 auto; font-size:10px; } .жист.ии { color:#3DDC84; border-color:#3DDC8466; }

/* ── свои выпадающие списки ── */
select.выбор-скрыт { position:absolute !important; width:1px !important; height:1px !important; opacity:0 !important; pointer-events:none !important; padding:0 !important; border:0 !important; overflow:hidden; }
.выбор-кн { width:100%; display:flex; align-items:center; gap:8px; text-align:left; background:var(--стекло2); color:var(--текст); border:1px solid var(--линия); border-radius:10px; padding:10px 11px; font:inherit; cursor:pointer;
  transition:border-color .2s, box-shadow .2s, background .2s; min-width:0; }
.выбор-кн span { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .выбор-кн.пусто span { color:var(--тускло); }
.выбор-кн i { width:8px; height:8px; flex:0 0 auto; border-right:2px solid var(--тускло); border-bottom:2px solid var(--тускло); transform:rotate(45deg) translateY(-2px); }
.выбор-кн:hover, .выбор-кн:focus-visible { border-color:var(--лого); outline:none; } .выбор-кн:disabled { opacity:.7; cursor:default; }
.чел-время .выбор-кн { width:auto; padding:6px 8px; font-size:14px; border-radius:9px; gap:6px; }
.выбор-окно { position:fixed; inset:0; z-index:80; background:rgba(0,0,0,0); transition:background .3s; }
.выбор-окно.шторка.видно { background:rgba(0,0,0,.45); }
.выбор-окно:not(.видно) .выбор-лист { --бл:0px; }
.выбор-лист { position:fixed; display:flex; flex-direction:column; background:color-mix(in srgb, var(--фон) 92%, transparent); border:1px solid var(--рамка);
  --бл-полн:18px; --бл:var(--бл-полн); backdrop-filter:blur(var(--бл)); -webkit-backdrop-filter:blur(var(--бл)); box-shadow:0 0 24px var(--тень-свет), 0 10px 40px rgba(0,0,0,.4); overflow:hidden; }
.шторка .выбор-лист { left:0; right:0; bottom:0; max-height:72vh; border-radius:22px 22px 0 0; padding:6px 10px calc(env(safe-area-inset-bottom, 0px) + 12px);
  transform:translateY(100%); transition:transform .42s cubic-bezier(.2,.8,.2,1), --бл .42s ease; }
.шторка.видно .выбор-лист { transform:none; }
.поп .выбор-лист { border-radius:14px; padding:6px; opacity:0; transform:translateY(-6px) scale(.98); transform-origin:top; transition:opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1), --бл .25s ease; }
.поп.видно .выбор-лист { opacity:1; transform:none; }
.выбор-ручка { width:40px; height:4px; border-radius:2px; background:var(--линия); margin:6px auto 8px; flex:0 0 auto; }
.выбор-з { font:700 15px Montserrat, Manrope, sans-serif; padding:2px 8px 8px; }
.выбор-поиск { margin:0 0 6px; flex:0 0 auto; }
.выбор-сп { overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.выбор-п { display:block; width:100%; text-align:left; background:transparent; border:0; color:var(--текст); font:500 16px Manrope, sans-serif; padding:12px 12px; border-radius:12px; cursor:pointer; transition:background .15s; }
.поп .выбор-п { font-size:14px; padding:8px 10px; }
.выбор-п:hover { background:color-mix(in srgb, var(--лого) 10%, transparent); }
.выбор-п.вкл { background:color-mix(in srgb, var(--лого) 22%, transparent); font-weight:700; } .выбор-п.пусто { color:var(--тускло); }
.выбор-гр { font-size:12px; color:var(--тускло); padding:8px 12px 2px; text-transform:uppercase; letter-spacing:.04em; }
.кн-большая { width:100%; padding:16px; font-size:17px; border-radius:16px; margin-top:4px; }
.откр-смена { text-align:center; } .откр-смена h2 { margin-bottom:14px; }
details.ещё summary { cursor:pointer; color:var(--тускло); }

/* ── своё фото в профиле ── */
.ава { overflow:hidden; }
.ава img { width:100%; height:100%; object-fit:cover; display:block; border-radius:50%; }
.моё-шапка { display:flex; align-items:center; gap:14px; margin-bottom:8px; }
.моё-шапка h2 { margin:0 0 6px; }
.ава-б { width:72px; height:72px; border-radius:50%; display:grid; place-items:center; flex:0 0 auto; font:700 24px Montserrat, Manrope, sans-serif; color:#fff;
  background:radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--лого) 85%, #fff), var(--лого)); box-shadow:0 0 18px color-mix(in srgb, var(--лого) 45%, transparent); }
.моё-шапка label.кн { cursor:pointer; }
.кн.мал { padding:7px 12px; font-size:13.5px; min-height:0; }
.моё-шапка .кн { white-space:nowrap; }

/* ── обрезка фото профиля ── */
.обрезка { position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:16px; background:rgba(5,5,10,.72); --бл-полн:8px; --бл:var(--бл-полн); backdrop-filter:blur(var(--бл)); -webkit-backdrop-filter:blur(var(--бл)); animation:обрПоявл .25s ease both; }
.обрезка.уход { animation:обрУход .25s ease both; }
@keyframes обрПоявл { from { opacity:0; --бл:0px } to { opacity:1 } } @keyframes обрУход { to { opacity:0; --бл:0px } }
.обр-окно { width:min(100%, 400px); background:var(--стекло2, #15151f); border:1px solid var(--рамка); border-radius:22px; padding:18px; box-shadow:0 20px 60px rgba(0,0,0,.5); animation:обрОкно .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes обрОкно { from { transform:translateY(14px) scale(.97); opacity:0 } }
.обр-окно h2 { margin:0 0 4px; } .обр-окно p { margin:0 0 12px; }
.обр-поле { position:relative; width:100%; aspect-ratio:1; border-radius:16px; overflow:hidden; touch-action:none; cursor:grab; background:#000; }
.обр-поле:active { cursor:grabbing; }
.обр-поле canvas { width:100%; height:100%; display:block; }
.обр-маска { position:absolute; inset:0; pointer-events:none; border-radius:50%; box-shadow:0 0 0 999px rgba(0,0,0,.55); outline:2px solid rgba(255,255,255,.85); outline-offset:-2px; }
.обр-зум { display:flex; align-items:center; gap:10px; margin:14px 0; color:var(--тускло); font-size:20px; }
.обр-зум input { flex:1; accent-color:var(--лого); }
.обр-окно .ряд .кн { flex:1; }

/* ── CRAZY MENЮ в открытой смене ── */
.cz-шапка { align-items:baseline; } .cz-шапка h2 { margin:0; }
.cz-блок.cz-появился { animation:czПоявл .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes czПоявл { 0% { opacity:0; transform:translateY(10px) scale(.98); box-shadow:0 0 0 0 color-mix(in srgb, var(--лого) 60%, transparent); }
  60% { opacity:1; transform:none; box-shadow:0 0 0 8px color-mix(in srgb, var(--лого) 0%, transparent); } 100% { opacity:1; } }
.метка.жёлт { color:#f5c451; border-color:color-mix(in srgb, #f5c451 50%, transparent); }
.метка.ок { color:#5fd48a; border-color:color-mix(in srgb, #5fd48a 50%, transparent); }
.cz-продл { border:1px solid var(--рамка); border-radius:14px; padding:10px 12px; margin:8px 0 10px; background:color-mix(in srgb, var(--лого) 5%, transparent); }
.cz-пр-строка { margin-top:8px; align-items:center; }
.cz-пр-имя { flex:1; font-weight:600; min-width:0; }
.cz-доля { flex:0 0 40px; text-align:right; }
.cz-часы { margin-top:10px; border-top:1px dashed var(--рамка); padding-top:8px; display:grid; gap:4px; }
.cz-час { display:flex; gap:8px; align-items:baseline; font-size:13.5px; } .cz-час > span:first-child { flex:0 0 58px; color:var(--тускло); } .cz-час b { flex:1; font-weight:600; }

/* ── плавная смена содержимого плашки (вход, PIN, подтверждение) ── */
.зам { position:relative; transition:height .34s cubic-bezier(.2,.8,.2,1); }
.зам > .зам-стар { position:absolute; pointer-events:none; animation:зам-уход .22s ease forwards; }
.зам > .зам-нов { animation:зам-приход .3s .08s cubic-bezier(.2,.8,.2,1) both; }
@keyframes зам-уход { to { opacity:0; transform:translateY(-6px); } }
@keyframes зам-приход { from { opacity:0; transform:translateY(8px); } }
/* ── обновление свайпом вниз ── */
#обн { position:fixed; left:50%; top:calc(env(safe-area-inset-top, 0px) + 6px); z-index:90; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; opacity:0;
  transform:translate(-50%, -50px); background:var(--стекло2, rgba(20,16,30,.85)); border:1px solid var(--рамка); box-shadow:0 0 16px var(--тень-свет); pointer-events:none; }
#обн svg { width:20px; height:20px; fill:none; stroke:var(--тускло); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:stroke .2s; }
#обн.готов svg { stroke:var(--лого); } #обн.крутится svg { animation:обнКрут .8s linear infinite; } @keyframes обнКрут { to { transform:rotate(360deg); } }
/* ── водяной знак на заднем фоне: значки сезона медленно падают вместе с фоном ── */
#звФон { position:fixed; top:-160px; left:0; right:0; bottom:0; z-index:1; pointer-events:none; background-repeat:repeat; will-change:transform; animation:звПад 48s linear infinite; }
@keyframes звПад { from { transform:translateY(0); } to { transform:translateY(160px); } }
@media (prefers-reduced-motion: reduce) { #звФон { animation:none; } }
@media print { #звФон { position:fixed; inset:0; animation:none; } }
/* ── полосы прокрутки не показываем нигде (листается как обычно: пальцем, колесом, тачпадом) ── */
html, body, * { scrollbar-width:none; -ms-overflow-style:none; }
::-webkit-scrollbar { display:none; width:0; height:0; background:transparent; }
/* ── состояние сервера ── */
.ср-итог { padding:10px 12px; border-radius:12px; margin:4px 0 10px; font-weight:600; border:1px solid var(--рамка); }
.ср-итог.ок { color:var(--ок); background:color-mix(in srgb, var(--ок) 10%, transparent); } .ср-итог.жёлт { color:var(--жёлт); background:color-mix(in srgb, var(--жёлт) 10%, transparent); }
#срСервер details { border-top:1px solid var(--рамка); padding:8px 0 4px; } #срСервер summary { font-weight:700; cursor:pointer; padding:2px 0 6px; }
.ср-пол { margin:6px 0 10px; } .ср-пол-т { display:flex; justify-content:space-between; font-size:13.5px; margin-bottom:4px; }
.ср-пол i { display:block; height:7px; border-radius:99px; background:color-mix(in srgb, var(--текст) 10%, transparent); overflow:hidden; }
.ср-пол i b { display:block; height:100%; border-radius:99px; background:var(--ок); transition:width .6s ease; } .ср-пол i b.жёлт { background:var(--жёлт); } .ср-пол i b.плохо { background:var(--плохо); }
/* ── уведомления в колокольчике: смахиваются ── */
.ув { position:relative; display:flex; gap:8px; align-items:flex-start; padding:10px 4px; border-bottom:1px solid var(--рамка); touch-action:pan-y; user-select:none; overflow:hidden; }
.ув.нов { border-left:3px solid var(--лого); padding-left:10px; } .ув-т { flex:1; min-width:0; }
.ув-х { flex:0 0 auto; width:30px; height:30px; border-radius:50%; border:1px solid var(--рамка); background:transparent; color:var(--тускло); font-size:18px; line-height:1; cursor:pointer; opacity:.6; }
.ув-х:hover { opacity:1; color:var(--плохо); border-color:var(--плохо); }
body.тел .ув-х { display:none; } body.пк .ув-подск { display:none; }
.ув.сворач { transition:height .3s ease, padding .3s ease !important; padding-top:0; padding-bottom:0; border-bottom-width:0; }
details.пины { border-top:1px solid var(--рамка); padding:8px 0; } details.пины summary { display:flex; justify-content:space-between; gap:8px; cursor:pointer; }
.шаги { padding-left:18px; margin:6px 0 10px; line-height:1.5; } .шаги li { margin-bottom:4px; } .шаги code, #срРеле code { font-size:12px; background:color-mix(in srgb, var(--текст) 8%, transparent); padding:1px 5px; border-radius:6px; word-break:break-all; }
.видит { margin:6px 0 10px; padding:10px 12px; border:1px solid var(--рамка); border-radius:12px; }
