/* Приложение «Приход-уход»: стили экрана отметки взяты из киоска как есть (киоск: web/src/kiosk.css, блок «Отметка по лицу»). */
@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:200;src:url(/fonts/geist-cyrillic-200-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:200;src:url(/fonts/geist-latin-200-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:300;src:url(/fonts/geist-cyrillic-300-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:300;src:url(/fonts/geist-latin-300-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/geist-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/geist-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/geist-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/geist-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/geist-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/geist-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Geist Mono';font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/geist-mono-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Geist Mono';font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/geist-mono-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Geist Mono';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/geist-mono-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Geist Mono';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/geist-mono-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%;margin:0}
html{background:#050505}
body{background:#050505;color:#F4F4F1;font-size:17px;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;overflow:hidden;overscroll-behavior:none;touch-action:manipulation;font-variant-numeric:tabular-nums}
img{-webkit-user-drag:none;user-select:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation}
button:focus-visible{outline:3px solid #D8F35A;outline-offset:2px}
.hidden{display:none!important}
.screen{position:absolute;inset:0;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
#s-face{--u:min(1px, calc(100vw / 780), calc(100vh / 1250));
  --m-bg:#050505; --m-fg:#F4F4F1; --m-mut:#8B8B90; --m-mut2:#5E5E63; --m-acc:#D8F35A; --m-accink:#0A0A0A; --m-off:#FF4D3D; --m-in:#4ADE80; --m-out:#FF4D3D; --m-sheet:#0F0F11;
  background:var(--m-bg); color:var(--m-fg); font-family:Geist,Manrope,system-ui,sans-serif; overflow:hidden; color-scheme:dark}
#s-face h1,#s-face h2,#s-face p{font-family:inherit;letter-spacing:0;color:inherit;margin:0}
.ff-aura{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.ff-aura i{position:absolute;border-radius:50%;filter:blur(70px)}
.ff-aura .a1{width:calc(760 * var(--u));height:calc(760 * var(--u));left:calc(-300 * var(--u));top:calc(-280 * var(--u));background:radial-gradient(circle,rgba(216,243,90,.26),transparent 62%);animation:ffD1 16s ease-in-out infinite alternate}
.ff-aura .a2{width:calc(900 * var(--u));height:calc(900 * var(--u));right:calc(-520 * var(--u));bottom:calc(-200 * var(--u));background:radial-gradient(circle,rgba(255,255,255,.08),transparent 62%);animation:ffD2 21s ease-in-out infinite alternate}
@keyframes ffD1{to{transform:translate(calc(180 * var(--u)),calc(140 * var(--u))) scale(1.18)}}
@keyframes ffD2{to{transform:translate(calc(-140 * var(--u)),calc(-180 * var(--u))) scale(.86)}}
.ff-grain{position:absolute;inset:0;pointer-events:none;opacity:.035;background-image:radial-gradient(rgba(255,255,255,.9) .6px,transparent .7px);background-size:3px 3px}
.ff-lensbtn{position:absolute;top:calc(28 * var(--u));z-index:5;width:calc(84 * var(--u));height:calc(84 * var(--u));min-width:56px;min-height:56px;border-radius:50%;display:grid;place-items:center;color:var(--m-fg);
  border:1px solid rgba(255,255,255,.15);background:radial-gradient(circle at 32% 24%,rgba(255,255,255,.26),rgba(255,255,255,.035) 60%);
  box-shadow:inset 0 -7px 12px rgba(0,0,0,.28),inset 0 1px 1px rgba(255,255,255,.22),0 10px 20px -10px rgba(0,0,0,.7);transition:transform .16s cubic-bezier(.3,1.6,.5,1)}
.ff-lensbtn:active{transform:scale(.88)}
.ff-lensbtn svg{width:calc(34 * var(--u));height:calc(34 * var(--u));min-width:24px;min-height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ff-lensbtn.l{left:calc(28 * var(--u))} .ff-lensbtn.r{right:calc(28 * var(--u))}
.fc-body{position:relative;z-index:1;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:calc(56 * var(--u)) calc(56 * var(--u)) calc(44 * var(--u));text-align:center}
.ff-cap{font:500 calc(17 * var(--u))/1.3 'Geist Mono',ui-monospace,monospace;letter-spacing:.16em;text-transform:uppercase;color:var(--m-mut)}
.ff-mono{font-family:'Geist Mono',ui-monospace,monospace;font-variant-numeric:tabular-nums}
.ff-mlogo{display:block;width:calc(470 * var(--u));height:auto}
.ff-rise{animation:ffRise .7s cubic-bezier(.16,1,.3,1) both}
@keyframes ffRise{from{opacity:0;transform:translateY(calc(26 * var(--u))) scale(.985);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
/* выбор */
.ff-home{flex:1;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:space-between}
.ff-head{display:flex;flex-direction:column;align-items:center;gap:calc(22 * var(--u));margin-top:calc(40 * var(--u))}
.ff-clock{display:flex;flex-direction:column;align-items:center;gap:calc(14 * var(--u))}
.ff-time{font-weight:200;font-size:calc(230 * var(--u));line-height:.9;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.ff-time .c{animation:ffBlink 2s steps(1) infinite;opacity:.9}
@keyframes ffBlink{50%{opacity:.25}}
.ff-acts{width:min(100%, calc(660 * var(--u)));display:flex;flex-direction:column;gap:calc(22 * var(--u))}
.ff-cta{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;width:100%;height:calc(132 * var(--u));min-height:64px;border-radius:999px;padding:0 calc(16 * var(--u)) 0 calc(52 * var(--u));
  font:500 calc(46 * var(--u)) Geist,Manrope,sans-serif;letter-spacing:-.01em;transition:transform .2s cubic-bezier(.3,1.5,.5,1),filter .2s}
.ff-cta:active{transform:scale(.975)}
.ff-cta .ar{width:calc(100 * var(--u));height:calc(100 * var(--u));min-width:48px;min-height:48px;border-radius:50%;display:grid;place-items:center}
.ff-cta .ar svg{width:calc(40 * var(--u));height:calc(40 * var(--u));fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ff-cta.in{background:linear-gradient(160deg,rgba(74,222,128,.2),rgba(74,222,128,.07) 70%);color:#86E8A6;border:1px solid rgba(74,222,128,.42);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 30px 60px -34px rgba(74,222,128,.45);backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%)}
.ff-cta.in .ar{background:rgba(74,222,128,.16);border:1px solid rgba(74,222,128,.3)}
.ff-cta.out{background:linear-gradient(160deg,rgba(255,77,61,.2),rgba(255,77,61,.07) 70%);color:#FF8A7E;border:1px solid rgba(255,77,61,.45);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 30px 60px -34px rgba(255,77,61,.45);backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%)}
.ff-cta.out .ar{background:rgba(255,77,61,.16);border:1px solid rgba(255,77,61,.32)}
.ff-cta.white{background:var(--m-fg);color:var(--m-accink)}
.ff-backbtn{position:absolute;top:calc(28 * var(--u));left:calc(18 * var(--u));z-index:5;height:calc(84 * var(--u));min-height:56px;padding:0 calc(14 * var(--u));border-radius:999px;display:flex;align-items:center;gap:calc(8 * var(--u));color:var(--m-fg);font:400 calc(32 * var(--u)) Geist,Manrope,sans-serif;background:none;transition:opacity .15s}
.ff-backbtn:active{opacity:.5}
.ff-backbtn svg{width:calc(34 * var(--u));height:calc(34 * var(--u));min-width:22px;min-height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ff-sw{position:relative;display:grid;grid-template-columns:1fr 1fr;width:min(100%, calc(580 * var(--u)));height:calc(108 * var(--u));min-height:60px;padding:calc(7 * var(--u));border-radius:999px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.ff-sw .th{position:absolute;display:block;top:calc(7 * var(--u));left:calc(7 * var(--u));height:calc(100% - 14 * var(--u));width:calc(50% - 7 * var(--u));border-radius:999px;background:rgba(74,222,128,.82);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 0 calc(50 * var(--u)) rgba(74,222,128,.35);transition:transform .45s cubic-bezier(.3,1.35,.45,1),background .35s,box-shadow .35s}
.ff-sw.out .th{transform:translateX(100%);background:rgba(255,77,61,.82);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 0 calc(50 * var(--u)) rgba(255,77,61,.35)}
.ff-sw button{position:relative;z-index:1;border-radius:999px;font:600 calc(44 * var(--u)) Geist,Manrope,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--m-mut);transition:color .3s}
.ff-sw.in button.in{color:var(--m-accink)} .ff-sw.out button.out{color:#fff}
.ff-sw.lock{pointer-events:none} .ff-sw.lock button:not(.on){opacity:.35}
.ff-actl{display:inline-flex;align-items:center;gap:calc(20 * var(--u));font-weight:600;font-size:calc(68 * var(--u));line-height:1;letter-spacing:.08em;text-transform:uppercase}
.ff-actl .ff-ld{width:calc(18 * var(--u));height:calc(18 * var(--u));min-width:10px;min-height:10px}
.ff-actl.in{color:var(--m-in);text-shadow:0 0 calc(40 * var(--u)) rgba(74,222,128,.35)}
.ff-actl.out{color:var(--m-out);text-shadow:0 0 calc(40 * var(--u)) rgba(255,77,61,.35)}
.ff-lime .ff-cap.st.in{color:var(--m-in)} .ff-lime .ff-cap.st.out{color:var(--m-out)}
.ff-ok.out{background:var(--m-out);color:#fff;box-shadow:0 0 30px rgba(255,77,61,.5)}
.ff-ok.in{background:var(--m-in);box-shadow:0 0 30px rgba(74,222,128,.5)}
.ff-cta.ghost{background:rgba(255,255,255,.06);color:var(--m-fg);border:1px solid rgba(255,255,255,.1)}
.ff-cta.center{justify-content:center;padding:0 calc(40 * var(--u))}
.ff-cta:disabled{opacity:.45}
.ff-foot{margin-top:calc(30 * var(--u));color:var(--m-mut2)}
/* камера */
.ff-cam{flex:1;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:calc(16 * var(--u));margin-top:calc(70 * var(--u))}
.ff-live{display:inline-flex;align-items:center;gap:10px;padding:calc(8 * var(--u)) calc(18 * var(--u));border-radius:999px;background:rgba(216,243,90,.12);color:var(--m-acc);font:600 calc(16 * var(--u)) 'Geist Mono',monospace;letter-spacing:.14em;text-transform:uppercase}
.ff-live.w{background:rgba(255,255,255,.08);color:var(--m-fg)}
.ff-ld{width:calc(10 * var(--u));height:calc(10 * var(--u));min-width:7px;min-height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 10px currentColor;animation:ffB 1.6s ease-in-out infinite}
@keyframes ffB{50%{opacity:.3}}
.ff-title{font-weight:300;font-size:calc(58 * var(--u));line-height:1.1;letter-spacing:-.02em;min-height:1.1em}
.ff-ring{position:relative;width:calc(640 * var(--u));height:calc(640 * var(--u));flex:none}
.ff-glow{position:absolute;inset:calc(10 * var(--u));border-radius:50%;background:conic-gradient(from 0deg,transparent 0 55%,rgba(216,243,90,.0) 60%,rgba(216,243,90,.55) 88%,transparent 100%);filter:blur(calc(26 * var(--u)));opacity:.35;transition:opacity .5s;animation:ffSpin 7s linear infinite}
.ff-ring.ok .ff-glow,.ff-ring.scan .ff-glow{opacity:.85}
.ff-ring.fail .ff-glow{opacity:0}
.ff-dial{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ff-ticks{transform-origin:320px 320px;animation:ffSpin 40s linear infinite}
.ff-ticks line{stroke:rgba(244,244,241,.32);stroke-width:2;stroke-linecap:round;transition:stroke .5s}
.ff-ticks line.k{stroke:rgba(244,244,241,.6);stroke-width:2.6}
.ff-ring.ok .ff-ticks line,.ff-ring.scan .ff-ticks line{stroke:rgba(216,243,90,.75)}
.ff-ring.ok .ff-ticks line.k,.ff-ring.scan .ff-ticks line.k{stroke:var(--m-acc)}
.ff-ring.fail .ff-ticks line{stroke:rgba(255,77,61,.7)}
.ff-ring.fail{animation:ffShake .45s cubic-bezier(.36,.07,.19,.97)}
@keyframes ffShake{20%,60%{transform:translateX(calc(-12 * var(--u)))}40%,80%{transform:translateX(calc(12 * var(--u)))}}
.ff-arc{fill:none;stroke:var(--m-acc);stroke-width:5;stroke-linecap:round;transform:rotate(-90deg);transform-origin:320px 320px;filter:drop-shadow(0 0 8px rgba(216,243,90,.8));opacity:0;transition:opacity .3s}
.ff-ring.scan .ff-arc,.ff-ring.done .ff-arc{opacity:1}
.ff-ring.done{animation:ffPop .5s cubic-bezier(.3,1.5,.5,1)}
@keyframes ffPop{50%{transform:scale(1.025)}}
@keyframes ffSpin{to{transform:rotate(360deg)}}
.ff-lens{position:absolute;left:50%;top:50%;width:calc(540 * var(--u));height:calc(540 * var(--u));transform:translate(-50%,-50%);border-radius:50%;overflow:hidden;background:#0B0B0C;
  box-shadow:0 0 0 1px rgba(255,255,255,.1),inset 0 0 0 1px rgba(255,255,255,.06),0 40px 80px -40px rgba(0,0,0,.9)}
.ff-lens video,.ff-lens img.shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.ff-lens img.shot{filter:saturate(.75) contrast(1.05) brightness(.85)}
.ff-lens::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 calc(80 * var(--u)) rgba(0,0,0,.55);pointer-events:none}
.ff-ph{position:absolute;inset:0;display:grid;place-items:center;color:var(--m-mut);font-size:calc(26 * var(--u));padding:0 calc(80 * var(--u));line-height:1.35}
.ff-spin{width:calc(56 * var(--u));height:calc(56 * var(--u));border-radius:50%;border:2px solid rgba(255,255,255,.12);border-top-color:var(--m-acc);animation:ffSpin .9s linear infinite}
.ff-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none;animation:ffFlash .45s ease-out}
@keyframes ffFlash{0%{opacity:.85}100%{opacity:0}}
.ff-scanl{position:absolute;left:0;right:0;top:0;height:calc(130 * var(--u));transform:translateY(-100%);pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(216,243,90,.0) 30%,rgba(216,243,90,.22) 92%,rgba(216,243,90,.95) 99%,transparent);animation:ffScan 1.6s cubic-bezier(.45,0,.55,1) .15s infinite}
@keyframes ffScan{from{transform:translateY(-100%)}to{transform:translateY(calc(540 * var(--u)))}}
.ff-mesh{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ff-mesh circle{fill:var(--m-acc);opacity:0;animation:ffDot .35s ease-out both}
.ff-mesh .grid{stroke:rgba(216,243,90,.28);stroke-width:.18;fill:none;stroke-dasharray:1;stroke-dashoffset:1;animation:ffLine .7s ease-out both}
.ff-mesh .feat{stroke:var(--m-acc);stroke-width:.42;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:ffLine .6s ease-out both;filter:drop-shadow(0 0 .6px rgba(216,243,90,.9))}
.ff-ring.fail .ff-mesh{transition:opacity .4s;opacity:0}
@keyframes ffDot{from{opacity:0;transform:scale(0)}to{opacity:.9;transform:none}}
@keyframes ffLine{to{stroke-dashoffset:0}}
.ff-mesh circle{transform-box:fill-box;transform-origin:center}
.ff-stat{display:flex;align-items:center;justify-content:center;gap:calc(18 * var(--u));min-height:calc(40 * var(--u))}
.ff-stat .pct{color:var(--m-acc);font:500 calc(22 * var(--u)) 'Geist Mono',monospace;min-width:4.2em;text-align:right}
/* результат */
.ff-res{flex:1;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(34 * var(--u))}
.ff-lime{position:relative;overflow:hidden;width:min(100%, calc(668 * var(--u)));border-radius:calc(48 * var(--u));border:1px solid rgba(216,243,90,.22);text-align:left;
  background:radial-gradient(130% 105% at 0% 100%,rgba(216,243,90,.50) 0%,rgba(150,185,20,.16) 40%,transparent 68%),linear-gradient(180deg,#141512,#0A0A09);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 34px 60px -34px rgba(190,230,40,.45);padding:calc(44 * var(--u)) calc(48 * var(--u)) calc(48 * var(--u));display:flex;flex-direction:column;gap:calc(26 * var(--u))}
.ff-lime .hd{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ff-ok{width:calc(72 * var(--u));height:calc(72 * var(--u));min-width:44px;min-height:44px;border-radius:50%;display:grid;place-items:center;background:var(--m-acc);color:var(--m-accink);box-shadow:0 0 30px rgba(216,243,90,.5)}
.ff-ok svg{width:55%;height:55%;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:30;stroke-dashoffset:30;animation:ffLine .5s .25s ease-out forwards}
.ff-name{font-weight:500;font-size:calc(50 * var(--u));line-height:1.1;letter-spacing:-.02em;overflow-wrap:anywhere}
.ff-big{font-weight:200;font-size:calc(170 * var(--u));line-height:.9;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.ff-big small{font:500 calc(18 * var(--u)) 'Geist Mono',monospace;letter-spacing:.16em;color:#9A9A92;margin-left:calc(14 * var(--u));vertical-align:top}
.ff-kv{display:grid;grid-template-columns:1fr 1fr;gap:calc(14 * var(--u))}
.ff-kv>div{border-radius:calc(28 * var(--u));padding:calc(22 * var(--u)) calc(26 * var(--u));background:linear-gradient(160deg,rgba(255,255,255,.085),rgba(255,255,255,.02) 62%);border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:calc(10 * var(--u))}
.ff-kv>div.w{grid-column:1 / -1}
.ff-kv b{font-weight:300;font-size:calc(52 * var(--u));line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.ff-kv .ff-cap{color:#9A9A92}
.ff-date{color:#9A9A92}
.ff-back{position:relative;overflow:hidden}
.ff-back .bar{position:absolute;left:0;bottom:0;height:calc(6 * var(--u));min-height:3px;background:rgba(10,10,10,.28);width:100%;transform-origin:left;animation:ffBar linear forwards}
@keyframes ffBar{to{transform:scaleX(0)}}
.ff-back .cd{opacity:.5;margin-left:.35em;font-variant-numeric:tabular-nums}
/* шторка ошибки */
.ff-veil{position:absolute;inset:0;z-index:20;background:rgba(0,0,0,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:ffFade .3s ease both}
@keyframes ffFade{from{opacity:0}}
.ff-sheet{position:absolute;left:calc(16 * var(--u));right:calc(16 * var(--u));bottom:calc(16 * var(--u));z-index:21;background:var(--m-sheet);border-radius:calc(56 * var(--u));border:1px solid rgba(255,255,255,.08);
  padding:calc(18 * var(--u)) calc(40 * var(--u)) calc(40 * var(--u));display:flex;flex-direction:column;gap:calc(22 * var(--u));text-align:left;animation:ffUp .5s cubic-bezier(.16,1,.3,1) both;box-shadow:0 -20px 60px -20px rgba(0,0,0,.7)}
@keyframes ffUp{from{transform:translateY(110%)}}
.ff-grab{width:calc(60 * var(--u));height:5px;border-radius:3px;background:rgba(255,255,255,.2);align-self:center;margin-bottom:calc(8 * var(--u))}
.ff-sheet .ff-live{align-self:flex-start;background:rgba(255,77,61,.12);color:var(--m-off)}
.ff-sheet p{font-weight:300;font-size:calc(38 * var(--u));line-height:1.3}
@media (prefers-reduced-motion:reduce){ .ff-aura i,.ff-glow,.ff-ticks{animation:none} }
/* экран пина — раскладка из киоска, цвета экрана отметки */
#s-pin{background:#050505;color:#F4F4F1;font-family:Geist,system-ui,sans-serif;align-items:center;justify-content:center;padding:clamp(16px,4dvh,48px) 24px}
.pin-card{width:min(520px,100%);text-align:center;display:flex;flex-direction:column;align-items:center}
.pin-card > *{width:100%}
.pin-logo{width:min(380px,80%)!important;margin:0 auto}
.pin-logo .ff-mlogo{width:100%}
.pin-card h1{font-weight:500;font-size:clamp(24px,3.4dvh,36px);margin:clamp(14px,3dvh,32px) 0 8px;letter-spacing:-.01em}
.pin-card p{color:#8B8B90;font-size:clamp(15px,2dvh,19px);line-height:1.35;margin:0 0 clamp(14px,3dvh,30px)}
.dots{display:flex;gap:20px;justify-content:center;height:28px;margin-bottom:10px}
.dots span{width:22px;height:22px;border-radius:50%;border:2px solid #5E5E63}
.dots span.on{background:#D8F35A;border-color:#D8F35A}
.err{color:#FF8A7E;font-weight:500;min-height:26px;font-size:17px}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:clamp(8px,2dvh,22px)}
.keypad button{height:clamp(58px,9.5dvh,104px);border-radius:18px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);color:#F4F4F1;font-size:clamp(26px,3.6dvh,38px);font-weight:500}
.keypad button:active{background:rgba(255,255,255,.16)}
.keypad .k-fn{font-size:clamp(17px,2.2dvh,22px);color:#8B8B90}
.loader{position:fixed;inset:0;background:rgba(0,0,0,.55);display:grid;place-items:center;z-index:50}
.loader .ff-spin{width:54px;height:54px;border-width:4px;border-style:solid;border-color:rgba(255,255,255,.14);border-top-color:#D8F35A;border-radius:50%;animation:ffSpin .9s linear infinite}

/* сообщение на главном экране: нет ссылки цеха, ссылка не действует, нет связи */
.ff-note{font-weight:300;font-size:calc(30 * var(--u));line-height:1.35;color:var(--m-mut);max-width:calc(600 * var(--u))}
