
  @font-face{font-family:'e-Ukraine';src:url(fonts/e-Ukraine-Light.otf);font-weight:300;font-display:swap;}
  @font-face{font-family:'e-Ukraine';src:url(fonts/e-Ukraine-Regular.otf);font-weight:400;font-display:swap;}
  @font-face{font-family:'e-Ukraine';src:url(fonts/e-Ukraine-Medium.otf);font-weight:500;font-display:swap;}
  @font-face{font-family:'e-Ukraine';src:url(fonts/e-Ukraine-Bold.otf);font-weight:700;font-display:swap;}
  @font-face{font-family:'e-UkraineHead';src:url(fonts/e-UkraineHead-Light.otf);font-weight:300;font-display:swap;}
  @font-face{font-family:'e-UkraineHead';src:url(fonts/e-UkraineHead-Regular.otf);font-weight:400;font-display:swap;}
  @font-face{font-family:'e-UkraineHead';src:url(fonts/e-UkraineHead-Medium.otf);font-weight:500;font-display:swap;}
  @font-face{font-family:'e-UkraineHead';src:url(fonts/e-UkraineHead-Bold.otf);font-weight:700;font-display:swap;}
  :root{
    --bg:#e1decb;--card:#dad7c8;--strip:#949585;--accent:#fc890c;
    --text:#000;--muted:#6a6657;--white:#fbfdfc;
    --divider:rgba(0,0,0,.12);--divider-soft:rgba(0,0,0,.08);
  }
  *{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
  img{-webkit-user-drag:none;user-drag:none;}
  html,body{width:100%;max-width:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%;}
  html{height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none;background:var(--bg);}
  body{
    position:relative;
    width:100%;
    height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none;touch-action:none;
    font-family:'e-Ukraine',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
    background:var(--bg);color:var(--text);display:flex;flex-direction:column;
  }
  @media (display-mode: standalone) {
    html, body {
      height: 100%;
      height: 100vh;
      height: 100lvh;
    }
  }

  #app{width:100%;flex:1 1 auto;min-height:0;position:relative;background:var(--bg);overflow:hidden;}
  .screen{position:absolute;inset:0;display:flex;flex-direction:column;}
  .screen[hidden]{display:none;}
  .screen-slider-layer{will-change:transform,opacity;backface-visibility:hidden;}
  .screen-sliding .screen,.screen-sliding .detail{pointer-events:none!important;}
  .scroll{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;}

  .top{display:flex;justify-content:flex-end;padding:0 24px;padding-top:18px;}
  .notif{position:relative;display:inline-flex;align-items:center;gap:6px;background:#fff;border-radius:999px;padding:4.5px 12px;font-size:15px;font-weight:500;border:none;color:var(--text);}
  .notif svg{width:20px;height:20px;}
  .notif-count{position:absolute;top:-3px;right:-3px;width:10px;height:10px;border:2px solid var(--bg);border-radius:50%;background:#e53935;}
  .notif-count[hidden]{display:none;}

  .wrap{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:0 24px;}
  .gap-top{flex:1 1 0;min-height:14px;}
  .gap-bottom{flex:1 1 0;min-height:14px;}

  /* flip container — fixed-proportion card, centered by the gaps */
  .flip{flex:0 0 auto;width:100%;aspect-ratio:3819/5137;max-height:100%;perspective:1500px;position:relative;}
  .flip-inner{position:relative;width:100%;height:100%;transition:transform .6s cubic-bezier(.4,0,.2,1);-webkit-transform-style:preserve-3d;transform-style:preserve-3d;}
  .flip.flipped .flip-inner{transform:rotateY(180deg);}
  .face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:rotateY(0deg);border-radius:8px;overflow:hidden;
    transition:visibility 0s .27s;}
  .flip.flipped .face.card{visibility:hidden;}
  .flip:not(.flipped) .face-back{visibility:hidden;}

  .card{background:#dad7c8;border:1px solid rgba(0,0,0,.25);display:flex;flex-direction:column;container-type:size;}
  .card-top{padding:24px 17px 0;display:flex;flex-direction:column;}
  .card-head{display:flex;align-items:flex-start;justify-content:space-between;}
  .title{font-family:'e-UkraineHead';font-size:25px;font-weight:400;}
  .emblem{display:flex;align-items:flex-start;}
  .emblem svg{height:36px;width:auto;display:block;}
  .card-info{margin-top:17px;display:flex;align-items:flex-start;gap:16px;}
  .card-photo{flex:0 0 44%;min-width:0;}
  /* фото кропиться під формат (cover) і НЕ вище 36% висоти картки — інакше «розпирає»
     фікс-пропорційну картку й обрізає бігучий рядок/низ (див. фікс 09-08) */
  .card-photo img{display:block;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:3/4;object-fit:cover;border-radius:14px;background:#c3c0ad;}
  .card:not(.has-photo) .card-photo{display:none;}
  .card.has-photo .card-fields{margin-top:6px;}
  .card-fields{flex:1 1 auto;min-width:0;}
  .field-label{font-size:14px;color:var(--muted);}
  .field-value{margin-top:6px;font-size:16px;}
  .card-defer{margin-top:14px;}
  .spacer-body{flex:1 1 0;min-height:0;}
  .strip{background:var(--strip);overflow:hidden;white-space:nowrap;padding:3px 0;flex-shrink:0;}
  /* безшовна стрічка: контент з двох однакових половин, зсув на -50% */
  .marquee{display:flex;width:max-content;min-width:100%;white-space:nowrap;font-size:14px;line-height:1.25;color:var(--text);animation:scroll 90s linear infinite;will-change:transform;}
  @keyframes scroll{0%{transform:translateX(0);}100%{transform:translateX(-50%);}}
  /* статус «Військовозобовʼязаний» → золотисто-коричнева стрічка (колір з референсу) */
  .strip.mil{background:#70480a;}
  .strip.mil .marquee{color:#fbfdfc;}
  /* стан «оновлення документа» — жовта стрічка */
  .strip.upd{background:#f4d520;}
  .strip.upd .marquee{color:#1a1a1a;}
  .card-bottom{position:relative;padding:31px 17px 15px;flex-shrink:0;}
  .status{font-size:14px;color:var(--muted);}
  .name{margin-top:8px;}
  .name b,.name span{display:block;font-size:21px;font-weight:400;line-height:25px;}
  .fab{position:absolute;right:16px;bottom:16px;width:39px;height:39px;border-radius:50%;background:var(--accent);border:none;display:flex;align-items:center;justify-content:center;transition:opacity .2s;}
  .fab svg{width:21px;height:21px;}
  .flip.flipped .fab{opacity:0;pointer-events:none;}

  /* QR back face */
  .face-back{transform:rotateY(180deg);background:#fff;border:1px solid rgba(0,0,0,.1);
    display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:0 7%;}
  .qr-title{font-size:16px;font-weight:400;text-align:center;margin-top:19%;line-height:1.3;padding:0 6px;white-space:nowrap;overflow:hidden;width:100%;}
  .qr-canvas{width:100%;margin-top:7.1%;aspect-ratio:1;height:auto;}
  /* Плоский шар з чітким QR ПОВЕРХ карти (дитина .flip, НЕ в preserve-3d):
     iOS растеризує 3D-грань у низькій роздільності → щільний QR = «сіра сітка».
     Плоский шар рендериться нативно й чітко. Показуємо після завершення фліпу. */
  #qrFlat{position:absolute;inset:0;background:#fff;border-radius:8px;overflow:hidden;display:none;flex-direction:column;align-items:center;justify-content:flex-start;padding:0 7%;z-index:6;}
  #qrFlat.show{display:flex;}

  /* list page (Сервіси) */
  .page-title{padding:32px 22px 0;font-size:34px;font-weight:700;letter-spacing:-.4px;}
  .page-sub{padding:3px 22px 0;font-size:16px;color:var(--muted);}
  [data-screen="services"] .page-title{font-family:'e-UkraineHead';font-size:28px;font-weight:400;line-height:35px;padding:38px 16px 0;}
  .svc-list{margin-top:16px;}
  .svc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;background:none;border:none;color:var(--text);font-size:16px;font-weight:500;line-height:22px;text-align:left;padding:21.5px 16px;}
  .svc-row .chev{flex:none;color:#1a1a1a;}
  .svc-row .chev svg{width:24px;height:24px;display:block;margin:-1px 0;}
  .svc-div{height:1px;background:rgba(0,0,0,.062);margin:0 16px;}

  /* menu page */
  [data-screen="menu"] .page-title{font-family:'e-UkraineHead';font-size:25px;font-weight:400;line-height:31px;padding:38px 16px 0;}
  [data-screen="menu"] .scroll{padding-bottom:44px;}
  .page-sub{padding:7px 16px 0;font-size:12px;color:#73736a;}
  .menu-group{margin:12px 16px 0;background:var(--white);border-radius:13px;overflow:hidden;}
  .page-sub + .menu-group{margin-top:22px;}
  .menu-row{display:flex;align-items:center;gap:17px;width:100%;background:none;border:none;color:var(--text);font-size:16px;font-weight:500;line-height:22px;text-align:left;padding:17.5px 20px;}
  .menu-row .ic{flex:none;width:24px;height:24px;display:flex;align-items:center;justify-content:center;}
  .menu-row .ic svg{width:24px;height:24px;}
  .menu-row .lbl{flex:1 1 auto;}
  .menu-row .chev{flex:none;color:#1a1a1a;}
  .menu-row .chev svg{width:30px;height:30px;display:block;margin:-4px -2.5px -4px 0;}
  .menu-div{height:1px;background:rgba(0,0,0,.11);margin:0 20px;}
  .logout{display:block;margin:16px auto 0;background:#2c2b27;color:#fff;border:none;border-radius:24px;font-size:17px;font-weight:500;width:120px;height:47px;padding:0;}
  .privacy{display:block;box-sizing:border-box;max-width:220px;width:auto;margin:14px auto 20px;padding:0 4px;text-align:center;color:var(--text);font-size:13px;font-weight:400;line-height:1.3;white-space:normal;overflow-wrap:anywhere;text-decoration:underline;}
  .empty-state,.privacy-copy{margin:18px 22px;background:var(--white);border-radius:20px;padding:22px;font-size:16px;line-height:1.5;}
  .notification-list{display:flex;flex-direction:column;gap:12px;padding:18px 22px 22px;}
  .notification-list .empty-state{margin:0;}
  .notification-card{display:flex;flex-direction:column;min-height:142px;background:var(--white);border-radius:20px;padding:20px;cursor:pointer;}
  .notification-title{margin:0;font-size:18px;font-weight:500;line-height:1.3;color:#000;}
  .notification-description{margin:8px 0 18px;color:var(--muted);font-size:15px;line-height:1.4;}
  .notification-date{margin-top:auto;color:var(--muted);font-size:12px;line-height:1.3;}
  .notification-card.read{background:#ecece4;}
  .notification-card.read .notification-title{color:#4c4c44;}
  .notification-card.read .notification-description{color:#7a7970;}
  .notification-card.read .notification-date{color:#8a897b;}

  /* tab bar — суцільна плашка на всю ширину (як в оригіналі Резерв+): білий фон #fff,
     активна вкладка жирним шрифтом #000, без плаваючої капсули */
  .tabbar, #tabbar{
    width:100%;
    background:#fff;
    border-top:1px solid rgba(0,0,0,.08);
    box-sizing:border-box;
    padding-top:6px;
    padding-bottom:20px;
    position:relative;
    z-index:2;
    flex:none;
  }
  .tabwrap{display:flex;width:100%;align-items:center;}
  .tab{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:none;border:none;color:#1a1a1a;font-size:11.5px;font-weight:500;line-height:1.2;padding:3px 0 4px;position:relative;z-index:0;}
  .tab.active{font-weight:700;color:#000;}
  .tab .ic{height:24px;display:flex;align-items:center;justify-content:center;}
  .tab svg{display:block;}
  .tab .ion{display:none;}
  .tab.active .ion{display:block;}
  .tab.active .ioff{display:none;}

  /* plus sheet */
  .overlay{position:absolute;inset:0;background:rgba(0,0,0,.72);display:flex;align-items:flex-end;z-index:50;}
  .overlay[hidden]{display:none;}
  .sheet{width:calc(100% - 18px);margin:0 9px 14px;background:#fff;border-radius:16px;padding:16px 0 16px;animation:up .25s ease;transition:transform .28s cubic-bezier(.3,.7,.4,1);}
  .sheet.drag{transition:none;}
  @keyframes up{from{transform:translateY(110%);}to{transform:translateY(0);}}
  .handle{width:39px;height:3.5px;border-radius:2px;background:#1c1b17;margin:0 auto 12px;}
  .sheet-row{display:flex;align-items:center;gap:24px;width:100%;background:none;border:none;color:var(--text);font-size:14px;font-weight:500;text-align:left;padding:15px 26px;}
  .sheet-row svg{flex:none;width:26px;height:26px;}
  .sheet-title{padding:8px 26px 18px;color:var(--text);font-size:22px;font-weight:600;line-height:1.32;}
  .sheet-hr{height:1px;background:#e4e1d6;margin:0 26px 8px;}
  #scanOverlay .sheet-row{font-size:16px;line-height:22px;gap:20px;}

  /* document view (Переглянути документ) */
  .doc-overlay{position:absolute;inset:0;background:#000;z-index:54;}
  .doc-overlay[hidden]{display:none;}
  .docview{position:absolute;left:0;right:0;bottom:0;top:24px;z-index:55;
    background:var(--bg);border-radius:12px 12px 0 0;display:flex;flex-direction:column;overflow:hidden;
    transition:transform .32s cubic-bezier(.3,.7,.4,1);}
  .docview.drag{transition:none;}
  .docview[hidden]{display:none;}
  .doc-handle{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:50px;height:5px;border-radius:3px;background:#111;z-index:5;}
  .doc-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}
  .doc-head{display:flex;align-items:flex-start;justify-content:space-between;padding:30px 24px 20px;}
  .doc-head .doc-back{position:absolute;left:18px;top:24px;z-index:6;}
  .doc-head .doc-back+.title{padding-left:50px;}
  .doc-head .emblem svg{height:36px;}
  .doc-cards{padding:12px 24px 40px;display:flex;flex-direction:column;gap:10px;}
  .dvcard{background:var(--white);border-radius:14px;padding:17px;font-size:14px;line-height:17px;color:#000;font-weight:400;text-align:left;}
  .dvcard *{font-weight:400;color:#000;}
  .dvcard .dvname{font-size:21px;font-weight:400;line-height:25px;color:#000;text-align:left;}
  .dvrow{margin-top:19px;color:#000;font-weight:400;text-align:left;}
  .dvval{margin-top:8px;font-weight:400;color:#000;text-align:left;}
  .dvkv, .docview .dvkv{display:grid!important;grid-template-columns:4fr 2fr!important;column-gap:12px!important;align-items:start!important;width:100%!important;box-sizing:border-box!important;color:#000!important;font-size:14px!important;line-height:17px!important;font-weight:400!important;text-align:left!important;}
  .dvkv.dv-updated, .docview .dvkv.dv-updated{grid-template-columns:1fr 1fr!important;}
  .dvkv .k, .docview .dvkv .k{grid-column:1!important;min-width:0!important;width:100%!important;box-sizing:border-box!important;color:#000!important;font-size:14px!important;line-height:17px!important;font-weight:400!important;text-align:left!important;word-break:break-word!important;overflow-wrap:anywhere!important;}
  .dvkv .v, .docview .dvkv .v{grid-column:2!important;min-width:0!important;width:100%!important;box-sizing:border-box!important;margin-left:0!important;color:#000!important;font-size:14px!important;line-height:17px!important;font-weight:400!important;text-align:left!important;word-break:break-word!important;overflow-wrap:anywhere!important;}
  .dvkv.dv-updated .v, .docview .dvkv.dv-updated .v{text-align:center!important;}
  .dvdiv{height:1px;background:rgba(0,0,0,.08);margin:17px -17px;}
  .dvcheck{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:400;color:#000;text-align:left;}
  .dvtick{width:19px;height:19px;border-radius:50%;background:#3ea832;color:#fff!important;font-size:12px;line-height:1;display:flex;align-items:center;justify-content:center;flex:none;}
  /* ===== скан-результат: військово-обліковий документ (формат макета) ===== */
  .sd-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:32px 24px 14px;}
  .sd-title{font-family:'e-UkraineHead';font-size:33px;font-weight:700;line-height:1.14;letter-spacing:-.5px;color:#111;}
  .sd-emblem{flex:none;}
  .sd-emblem svg{height:52px;width:auto;display:block;}
  /* карточки крупніші за «Переглянути документ» — під макет */
  .scandoc .doc-cards{gap:12px;}
  .scandoc .dvcard{border-radius:18px;padding:20px 20px;font-size:17px;line-height:22px;}
  .scandoc .dvname{font-size:25px;font-weight:600;line-height:1.16;letter-spacing:-.3px;}
  .scandoc .dvname .sd-fio{text-transform:uppercase;}   /* прізвище+ім'я ЗАГОЛОВНИМИ, як у макеті; вага 600 (капс сам додає візуальну жирність) */
  .scandoc .dvname .sd-patr{font-weight:400;text-transform:none;}
  .scandoc .dvsub{margin-top:14px;font-size:17px;color:#33322e;}
  .scandoc .dvrow{margin-top:16px;}
  .scandoc .dvval{margin-top:7px;font-weight:500;}
  .scandoc .dvkv{gap:12px;}
  .scandoc .dvkv .k{color:#000;}
  .scandoc .dvkv .v{width:auto;margin-left:auto;text-align:right;font-weight:500;color:#111;}
  .scandoc .dvkv+.dvkv{margin-top:14px;}
  .scandoc .dvcheck{font-size:17px;font-weight:400;}
  .scandoc .dvtick{width:22px;height:22px;font-size:13px;}

  /* фото + дані праворуч у «Переглянути документ» */
  .dv-idrow{display:flex;gap:14px;margin-top:17px;}
  .dv-photo{flex:0 0 38%;}
  .dv-photo img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:14px;background:#c3c0ad;}
  .dv-idcol{flex:1 1 auto;min-width:0;}
  .dv-idcol .dvrow{margin-top:16px;}

  /* update-document modal */
  .overlay2{position:absolute;inset:0;background:rgba(0,0,0,.3);display:flex;align-items:center;justify-content:center;z-index:60;padding:0 23px;}
  .overlay2[hidden]{display:none;}
  .upd-modal{width:100%;background:#fff;border-radius:28px;padding:24px 24px 27px;text-align:center;animation:pop .2s ease;}
  @keyframes pop{from{transform:scale(.94);opacity:0;}to{transform:scale(1);opacity:1;}}
  .upd-ic{width:44px;height:44px;margin:0 auto;}
  .upd-ic svg{width:44px;height:44px;display:block;}
  .upd-text{margin-top:22px;font-size:14px;font-weight:500;line-height:20px;}
  .upd-btn{display:block;width:100%;margin-top:23px;height:63px;border:none;border-radius:32px;background:#ed8d36;color:#151310;font-size:17px;font-weight:500;}
  .upd-cancel{display:block;margin:22px auto 0;background:none;border:none;font-size:17px;font-weight:500;color:#000;}

  /* ===== detail page ===== */
  .detail{position:absolute;inset:0;z-index:60;background:var(--bg);display:flex;flex-direction:column;}
  .detail[hidden]{display:none;}
  .detail.screen-slider-ghost{z-index:61;pointer-events:none;}

  @media (prefers-reduced-motion:reduce){
    .marquee{animation-play-state:paused!important;transform:none!important;}
    .flip-inner,.sheet,.docview,.vac-swipe,.tgl,.tgl::after,.toastmsg,.splash,.lock{transition-duration:.01ms!important;}
    .sheet,.upd-modal,.lock-dots.shake,.loadreg-spin,.fidbox.scan svg{animation-duration:.01ms!important;animation-iteration-count:1!important;}
  }
  .detail .dscroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:8px;}
  .dhead{padding:14px 22px 0;display:flex;align-items:flex-start;justify-content:space-between;}
  .iconbtn{width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.06);border:none;display:flex;align-items:center;justify-content:center;flex:none;}
  .iconbtn svg{width:22px;height:22px;}
  .dtitle{padding:14px 22px 0;font-family:'e-UkraineHead';font-size:28px;font-weight:400;line-height:1.2;}
  .dbody{padding:18px 22px 0;font-size:16px;line-height:22px;}
  .dbody p{margin-bottom:14px;}
  .dbody ul{margin:6px 0 0 4px;padding-left:20px;line-height:20px;}
  .dbody li{margin-bottom:2px;}
  .dcard{margin:18px 22px 0;background:var(--white);border-radius:18px;overflow:hidden;}
  .drow{display:flex;align-items:flex-start;gap:12px;width:100%;background:none;border:none;text-align:left;color:var(--text);padding:18px 18px;}
  .drow .dtxt{flex:1 1 auto;min-width:0;}
  .drow .dtxt{display:flex;flex-direction:column;}
  .drow .dt{display:block;font-size:18px;font-weight:500;line-height:1.25;}
  .drow .ds{display:block;margin-top:5px;font-size:15px;color:var(--muted);line-height:1.32;}
  .drow .chev{flex:none;align-self:center;color:#1a1a1a;}
  .ddiv{height:1px;background:var(--divider-soft);margin:0 18px;}
  .issue-child-head{flex:none;padding:14px 22px 0;}
  .issue-child-head .dtitle{padding:0 3px;margin-top:-3px;}
  .issue-child-main{flex:1 1 auto;min-height:0;overflow-y:auto;}
  .issue-child-load{min-height:60dvh;padding:0 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;color:#3f3f3b;transform:translateY(18px);}
  .issue-child-spinner{display:block;flex:none;color:#3f3f3b;animation:spin 1000ms linear infinite;}
  .issue-child-load p{margin:0;font-size:14px;line-height:20px;color:#66665f;}
  .field-block{margin:18px 22px 0;}
  .field-block .fl{font-size:14px;color:var(--muted);margin-bottom:8px;}
  .field-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;background:var(--white);border:none;border-radius:14px;padding:17px 18px;color:var(--text);font-size:16px;text-align:left;}
  .field-row .chev{flex:none;color:#1a1a1a;}
  /* активні сесії */
  .sess-h{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:500;}
  .sess-dot{width:9px;height:9px;border-radius:50%;background:#3ea832;flex:none;}
  .sess-os{margin-top:12px;font-size:17px;font-weight:500;}
  .drow .ds+.ds{margin-top:2px;}
  .detail-safety{top:auto;margin:8px 22px 0;position:relative;left:auto;right:auto;}
  /* Штрафи: exact current-live layout (pt-12 / mt-8 / mt-4 / py-4). */
  .detail .fines-status{justify-content:flex-start;padding:56px 30px 0;}
  .fines-status .fines-status-circle{width:136px;height:136px;border-width:6px;border-color:#959485;}
  .fines-status .fines-status-circle svg{width:68px;height:68px;color:#171717;}
  .fines-status .status-title{margin-top:34px;font-size:28px;line-height:1.25;}
  .fines-status .status-body{margin-top:16px;padding:0 8px;color:#171717;font-size:16px;line-height:16px;}
  .detail .fines-actions{display:flex;flex-direction:column;gap:12px;padding:0 22px 34px;}
  .fines-actions .cta,.fines-actions .upd-cancel{order:initial;width:100%;height:56px;min-height:56px;margin:0;padding:0;display:flex;align-items:center;justify-content:center;border-radius:999px;font-size:16px;font-weight:400;line-height:24px;box-sizing:border-box;}
  .fines-actions .cta{background:#fb890a;}
  .fines-actions .upd-cancel{order:2;background:transparent;border:2px solid #171717;color:#171717;}
  .contact-form .dbody{padding-top:18px;}
  .contact-input{display:block;width:100%;height:54px;border:1px solid #8e8c82;border-radius:8px;background:#fff;color:var(--text);padding:0 16px;font:400 16px/1.3 inherit;}
  .phone-input{display:flex;align-items:center;gap:10px;width:100%;height:56px;padding:0 14px;border:1px solid #8e8c82;border-radius:8px;background:#fff;}
  .phone-input .contact-input{height:auto;border:0;border-radius:0;padding:0;min-width:0;background:transparent;}
  .address-abroad{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;font-size:15px;}
  .address-inputs{display:flex;flex-direction:column;gap:10px;}
  .contact-submit{cursor:pointer;}
  /* налаштування: рядок + тумблер */
  .set-row{display:flex;align-items:center;gap:14px;width:100%;background:none;border:none;text-align:left;color:var(--text);font-size:16px;font-weight:500;line-height:1.3;padding:17px 18px;}
  .set-row .set-lbl{flex:1 1 auto;min-width:0;}
  .tgl{flex:none;width:48px;height:28px;border-radius:14px;background:#cfccbb;position:relative;transition:.2s;border:none;padding:0;}
  .tgl::after{content:"";position:absolute;top:2px;left:2px;width:24px;height:24px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2);}
  .tgl.on{background:#3ea832;}
  .tgl.on::after{left:22px;}
  /* служба підтримки */
  .supp-lead{padding:14px 22px 0;font-size:16px;font-weight:400;line-height:1.35;}
  .supp-lead p{margin:0;}
  .supp-card{margin:22px 22px 0;background:var(--white);border-radius:16px;}
  .supp-viber{display:flex;align-items:center;gap:14px;width:100%;background:none;border:none;text-align:left;color:var(--text);font-size:17px;font-weight:500;padding:18px 18px;}
  .supp-viber .vi{width:34px;height:34px;flex:none;}
  .supp-copy{display:flex;align-items:center;gap:14px;width:100%;background:none;border:none;text-align:left;color:var(--text);font-size:16px;font-weight:500;padding:16px 22px;margin-top:6px;}
  .supp-copy svg{width:22px;height:22px;flex:none;}
  .dbottom{flex:none;padding:10px 22px 14px;}
  .infobox{display:flex;align-items:center;gap:14px;background:#d9d6c5;border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:15px 18px;margin-bottom:14px;font-size:15px;line-height:1.35;}
  .infobox svg{flex:none;width:24px;height:24px;}
  .checkrow{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:14px;font-size:16px;}
  .checkbox{width:24px;height:24px;border:2px solid #000;border-radius:7px;flex:none;}
  .cta{display:block;width:100%;background:var(--accent);color:#1a1a1a;border:none;border-radius:28px;font-size:16px;font-weight:500;padding:18px;text-align:center;}
  /* ===== splash (МОУ) ===== */
  .splash, #splash{
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index:1000;
    background:#23221e;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:opacity .3s ease;
  }
  .splash.hide, #splash.hide{opacity:0;pointer-events:none;}
  .splash-inner{display:flex;flex-direction:column;align-items:center;text-align:center;}
  .splash-inner svg{height:43px;width:auto;display:block;}
  .splash-inner .st{margin-top:21px;font-family:'e-UkraineHead';font-size:24px;font-weight:500;line-height:28.5px;color:#dfddca;}

  /* ===== lock (Код для входу) ===== */
  .lock, #lock{
    position:absolute;
    inset:0;
    z-index:90;
    background:var(--bg);
    transition:opacity .35s ease;
  }
  .lock.hide, #lock.hide{opacity:0;pointer-events:none;}
  .lock-title{position:absolute;top:24.1%;left:0;right:0;text-align:center;font-family:'e-UkraineHead';font-size:25px;font-weight:400;}
  .lock-dots{position:absolute;top:34.8%;left:0;right:0;display:flex;justify-content:center;gap:22px;}
  .lock-dots i{width:11px;height:11px;border-radius:50%;background:var(--white);transition:background .12s;}
  .lock-dots i.on{background:#000;}
  .lock-dots.shake{animation:shk .4s;}
  @keyframes shk{0%,100%{transform:translateX(0);}20%,60%{transform:translateX(-8px);}40%,80%{transform:translateX(8px);}}
  .keypad{position:absolute;top:44.9%;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(3,72px);column-gap:23px;row-gap:16px;}
  .key{width:72px;height:72px;border-radius:50%;background:var(--white);border:none;font-size:27px;font-weight:400;color:#000;display:flex;align-items:center;justify-content:center;font-family:inherit;padding:0;}
  .key:active{background:#d9d6c5;}
  .key-ghost{background:none;border:none;display:flex;align-items:center;justify-content:center;padding:0;}
  .key-ghost:active{opacity:.55;}
  .key-ghost svg{display:block;}
  .lock-forgot{position:absolute;left:0;right:0;bottom:52px;text-align:center;font-size:16px;color:#000;background:none;border:none;font-family:inherit;width:100%;}
  /* provision / subscription screens */
  .prov,.subx{position:absolute;inset:0;z-index:92;background:var(--bg);display:flex;align-items:center;justify-content:center;padding:0 32px;}
  .prov[hidden],.subx[hidden]{display:none;}
  .prov-inner{width:100%;max-width:340px;display:flex;flex-direction:column;align-items:center;text-align:center;}
  .prov-emblem{height:64px;width:auto;margin-bottom:22px;}
  .prov-title{font-family:'e-UkraineHead';font-size:25px;font-weight:400;}
  .subx-title{font-family:'e-UkraineHead';font-size:23px;font-weight:400;}
  .prov-sub{margin-top:8px;font-size:15px;color:var(--muted);line-height:20px;}
  .prov-input{margin-top:24px;width:100%;height:52px;border-radius:14px;border:1px solid rgba(0,0,0,.18);background:var(--white);text-align:center;font-family:inherit;font-size:18px;color:#000;letter-spacing:1px;}
  .prov-input:focus{outline:none;border-color:#000;}
  .prov-btn{margin-top:14px;width:100%;height:52px;border:none;border-radius:26px;background:#2c2b27;color:#fff;font-family:inherit;font-size:16px;font-weight:500;}
  .subx .prov-btn{background:var(--accent);color:#1a1a1a;}
  .prov-err{margin-top:14px;font-size:14px;color:#c0392b;}
  .prov-err[hidden]{display:none;}
  /* Fresh mobile browser install guide. Authenticated/standalone screens keep the app font and layout. */
  #inst.install-screen{align-items:stretch;justify-content:flex-start;padding:10px 0 10px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;overflow:hidden;}
  .install-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;}
  .install-panel{width:100%;max-width:420px;margin:0 auto;padding:4px 20px;display:flex;flex-direction:column;}
  .install-head{text-align:center;margin:4px 0 10px;}
  .install-head h1{margin:0;font:700 21px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#171717;}
  .install-head p{margin:4px 0 0;font-size:13px;line-height:1.375;color:#404040;}
  .install-platform{align-self:center;margin-bottom:10px;padding:4px 14px;border:1px solid rgba(148,149,133,.6);border-radius:999px;background:var(--card);color:#171717;font-size:13px;font-weight:600;line-height:19.5px;}
  .install-steps{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;}
  .install-steps li{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid rgba(148,149,133,.5);border-radius:12px;background:var(--card);}
  .install-steps li>span{flex:0 0 24px;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;font-size:14px;font-weight:700;line-height:21px;}
  .install-steps li>div{flex:1 1 auto;min-width:0;}
  .install-steps p{margin:0;color:#171717;font-size:14.5px;line-height:1.375;}
  .install-steps b{font-weight:600;}
  .install-steps small{display:block;margin-top:2px;color:#737373;font-size:11.5px;line-height:1.375;}
  .install-helper{margin:10px 4px 0;text-align:center;color:#737373;font-size:12px;line-height:1.375;}
  .install-news{display:block;margin-top:12px;padding:10px 14px;border:1px solid rgba(148,149,133,.6);border-radius:12px;background:var(--card);color:#171717;text-align:center;text-decoration:none;transition:transform .12s ease;}
  .install-news:active{transform:scale(.99);}
  .install-news strong{display:block;font-size:14px;font-weight:600;line-height:1.375;}
  .install-news span{display:block;margin-top:2px;color:#525252;font-size:12px;line-height:1.375;}
  .install-news em{color:#0ea5e9;font-style:normal;}
  #inst[data-platform="android"] .inst-ios,#inst[data-platform="ios"] .inst-android{display:none;}
  /* face id modal */
  .fidwrap{position:absolute;inset:0;z-index:95;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.10);}
  .fidwrap[hidden]{display:none;}
  .fidbox{width:150px;height:150px;border-radius:34px;background:rgba(251,253,252,.95);box-shadow:0 12px 44px rgba(0,0,0,.20);display:flex;align-items:center;justify-content:center;}
  .fidbox svg{width:76px;height:76px;}
  @keyframes fidpulse{0%,100%{transform:scale(1);}50%{transform:scale(.88);}}
  .fidbox.scan svg{animation:fidpulse .5s ease-in-out 2;}

  /* ===== vacancies ===== */
  .vac-head{position:relative;padding:22px 70px 0 24px;flex:none;}
  .vac-title{font-family:'e-UkraineHead';font-size:25px;font-weight:400;line-height:30px;}
  .vac-search{position:absolute;right:22px;top:24px;width:41px;height:41px;border-radius:50%;background:var(--white);border:none;display:flex;align-items:center;justify-content:center;padding:0;}
  .vac-search svg{width:19px;height:19px;}
  .vac-tabs{display:flex;gap:24px;margin-top:33px;padding:0 24px;border-bottom:1.5px solid #918e7f;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain;white-space:nowrap;flex:none;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
  .vac-tabs::-webkit-scrollbar{display:none;}
  .vac-tab{font-size:15px;font-weight:400;color:var(--muted);padding:0 0 12px;border:none;border-bottom:2px solid transparent;margin-bottom:-1.5px;display:inline-flex;align-items:center;gap:6px;flex:none;background:none;font-family:inherit;}
  .vac-tab.active{color:#000;font-weight:500;border-color:#000;}
  .vac-badge{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#2d2c27;color:#fff;font-size:11px;line-height:19px;}
  .vdot{width:5px;height:5px;border-radius:50%;background:var(--accent);}
  /* swipeable panes */
  .vac-viewport{flex:1 1 auto;min-height:0;overflow:hidden;}
  .vac-swipe{display:flex;height:100%;column-gap:29px;will-change:transform;transition:transform .35s cubic-bezier(.25,.1,.25,1);}
  .vac-swipe.drag{transition:none;}
  .vac-pane{flex:0 0 100%;min-width:0;position:relative;display:flex;flex-direction:column;}
  .vac-card{position:relative;flex:1 1 auto;min-height:0;margin:18px 22px 0;background:var(--white);border-radius:24px 24px 0 0;padding:19px 22px 0;}
  .vac-h2{text-align:center;font-size:17px;font-weight:500;}
  .vac-grid{width:100%;max-width:320px;margin:42px auto 0;display:grid;grid-template-columns:repeat(3,1fr);column-gap:12px;row-gap:14px;justify-items:stretch;align-items:start;}
  .vac-grid img{display:block;width:100%;height:auto;max-width:100%;}
  .vc{width:100%;display:flex;align-items:flex-start;justify-content:center;}
  .vc-more span{width:41px;height:41px;border-radius:50%;background:#1c1b17;color:#fff;font-size:15px;font-weight:500;display:flex;align-items:center;justify-content:center;}
  .vc-more{align-self:center;}
  .vac-btn{position:absolute;left:22px;right:22px;bottom:22px;height:57px;border:none;border-radius:28.5px;background:var(--accent);color:#1a1a1a;font-size:16px;font-weight:500;font-family:inherit;}
  /* всі вакансії: список */
  .vac-list{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:15px 22px 130px;}
  .vac-lcard{background:var(--white);border-radius:20px;margin-bottom:9px;padding:14px 18px 16px 17px;display:flex;align-items:center;gap:12px;cursor:pointer;}
  .vac-lcard img{flex:none;width:64px;height:64px;object-fit:contain;margin-top:0;}
  .vac-ltxt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;}
  .vac-lt{display:block;font-size:16px;font-weight:500;line-height:1.25;}
  .vac-ls{display:block;margin-top:5px;font-size:15px;font-weight:400;line-height:1.32;}
  .vac-fabs{position:absolute;left:0;right:0;bottom:30px;display:flex;justify-content:center;gap:8px;pointer-events:none;}
  .vac-fab{pointer-events:auto;height:43px;padding:0 21px;border-radius:22px;background:rgba(26,25,21,.93);color:#fff;font-size:16px;font-weight:500;display:flex;align-items:center;gap:10px;border:none;font-family:inherit;}
  .vac-fab svg{width:20px;height:20px;}
  .vac-action-back{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);border:0;padding:0;background:transparent;}
  .vac-action{position:absolute;inset:0;overflow:hidden;background:var(--bg);}
  .vac-action-search{padding:58px 24px 0;}
  .vac-search-field{position:relative;width:100%;height:49px;}
  .vac-action-search input{display:block;width:100%;height:49px;padding:0 16px;border:1px solid #aaa99f;border-radius:7px;background:#fbfbfa;color:#171717;font:17px/1.2 inherit;box-sizing:border-box;}
  .vac-action-search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;}
  .vac-action-search input::placeholder{color:#8b8a85;opacity:1;}
  .vac-action-search input:focus{outline:1px solid #77766f;outline-offset:-1px;}
  .vac-search-clear{position:absolute;right:7px;top:5px;width:39px;height:39px;border:0;background:transparent;color:#0877e1;font:300 31px/36px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center;padding:0;}
  .vac-search-clear[hidden]{display:none;}
  .vac-filter header{height:88px;display:flex;align-items:flex-start;justify-content:center;border-bottom:1px solid rgba(0,0,0,.08);padding-top:52px;box-sizing:border-box;}
  .vac-filter h1,.vac-sort h1{margin:0;font:400 23px/28px 'e-UkraineHead',sans-serif;}
  .vac-filter header button{position:absolute;right:24px;top:53px;border:0;background:none;padding:0;color:#171717;font:16px/24px inherit;}
  .vac-filter-rows{padding:2px 24px 0;}
  .vac-filter-row{width:100%;height:57px;border:0;border-bottom:1px solid rgba(0,0,0,.08);background:none;padding:0;display:grid;grid-template-columns:1fr auto 18px;align-items:center;text-align:left;color:#171717;font:16px/1.2 inherit;}
  .vac-filter-row span:nth-child(2){justify-self:end;}
  .vac-filter-chev{font-size:27px;font-weight:300;line-height:1;transform:translateY(-1px);}
  .vac-action-divider{height:1px;background:rgba(0,0,0,.08);}
  .vac-filter>.vac-action-divider{margin-top:8px;}
  .vac-filter-info{height:115px;padding:0 24px;display:grid;grid-template-columns:24px 1fr 48px;gap:10px;align-items:center;font-size:16px;line-height:22px;}
  .vac-filter-info>svg{width:23px;height:23px;}
  .vac-filter-info .tgl{width:48px;height:28px;justify-self:end;}
  .vac-action-cta{position:absolute;left:16px;right:16px;bottom:24px;height:56px;border:0;border-radius:28px;background:var(--accent);color:#171717;font:500 16px/1 inherit;}
  .vac-sort{padding-top:52px;}
  .vac-sort h1{text-align:center;}
  .vac-sort-rows{margin-top:22px;}
  .vac-sort-row{width:100%;min-height:48px;padding:0 24px;display:flex;align-items:center;gap:12px;border:0;background:none;color:#171717;text-align:left;font:16px/21px inherit;}
  .vac-radio{width:24px;height:24px;box-sizing:border-box;border:2px solid #a5a7a4;border-radius:50%;position:relative;flex:none;}
  .vac-sort-row.selected .vac-radio{border-color:var(--accent);}
  .vac-sort-row.selected .vac-radio::after{content:'';position:absolute;inset:4px;border-radius:50%;background:var(--accent);}
  .vac-sort-rows .vac-action-divider{margin:9px 0 7px;}

  .toastmsg{position:absolute;left:16px;right:16px;bottom:24px;z-index:97;background:#2c2b27;color:#fff;border-radius:14px;padding:13px 16px;font-size:14px;line-height:1.45;box-shadow:0 8px 30px rgba(0,0,0,.25);opacity:0;transform:translateY(12px);transition:.25s;pointer-events:none;}
  /* Преміум-модалка (гейт генерації PDF) */
  .prem-modal{position:absolute;inset:0;z-index:99;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:0 26px;}
  .prem-modal[hidden]{display:none;}
  .prem-box{width:100%;max-width:340px;background:var(--white);border-radius:18px;padding:26px 22px 18px;text-align:center;}
  .prem-ic{font-size:44px;line-height:1;margin-bottom:10px;}
  .prem-ttl{font-family:'e-UkraineHead';font-size:19px;font-weight:700;color:#1a1a1a;}
  .prem-msg{margin-top:10px;font-size:14px;line-height:1.5;color:#3c3c3c;}
  .prem-cta{margin-top:18px;width:100%;border:none;border-radius:12px;background:#2c2b27;color:#fff;font-family:inherit;font-size:16px;font-weight:600;padding:14px;}
  .prem-close{margin-top:8px;width:100%;border:none;border-radius:12px;background:none;color:#0a84ff;font-family:inherit;font-size:15px;font-weight:600;padding:11px;}
  .toastmsg.show{opacity:1;transform:none;}

  /* ===== СКАНЕР QR (камера) ===== */
  /* Повноекранний absolute-шар (без fixed — правило заниженого viewport).
     Відео йде під статус-бар (шапка телефона просвічує), UI з відступом safe-area. */
  .scanview{position:absolute;inset:0;z-index:98;background:#111;overflow:hidden;}
  .scanview[hidden]{display:none;}
  .scan-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#111;}
  /* легке затемнення поверх кадру для контрасту білого тексту й рамки */
  .scan-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.15) 22%,rgba(0,0,0,.15) 70%,rgba(0,0,0,.35));pointer-events:none;}
  .scan-ui{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;}
  .scan-top{width:100%;display:flex;align-items:center;justify-content:center;position:relative;padding:28px 20px 0;}
  .scan-title{color:#fff;font-size:24px;font-weight:600;letter-spacing:-.2px;}
  .scan-x{position:absolute;right:16px;top:22px;width:40px;height:40px;background:none;border:none;display:flex;align-items:center;justify-content:center;padding:0;}
  .scan-x svg{width:26px;height:26px;}
  .scan-hint{color:#fff;font-size:19px;font-weight:400;line-height:1.32;text-align:center;padding:22px 40px 0;max-width:360px;text-shadow:0 1px 6px rgba(0,0,0,.5);}
  /* квадратна рамка з 4 кутами по центру */
  .scan-frame{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(74vw,300px);aspect-ratio:1;}
  .scan-frame .c{position:absolute;width:34px;height:34px;border:4px solid #fff;border-radius:2px;}
  .scan-frame .tl{top:0;left:0;border-right:none;border-bottom:none;border-top-left-radius:14px;}
  .scan-frame .tr{top:0;right:0;border-left:none;border-bottom:none;border-top-right-radius:14px;}
  .scan-frame .bl{bottom:0;left:0;border-right:none;border-top:none;border-bottom-left-radius:14px;}
  .scan-frame .br{bottom:0;right:0;border-left:none;border-top:none;border-bottom-right-radius:14px;}
  .scan-err{position:absolute;left:24px;right:24px;bottom:40px;background:rgba(20,19,17,.92);color:#fff;border-radius:14px;padding:16px 18px;font-size:15px;line-height:1.45;text-align:center;}
  .scan-err[hidden]{display:none;}
  /* Прихована зона утримання (лівий-нижній кут) — тригер власного документа для
     позначених карток. Візуально невидима; для звичайних юзерів — інертна. */
  .scan-hot{position:absolute;left:0;bottom:0;width:34%;max-width:150px;height:24%;max-height:180px;z-index:3;background:transparent;-webkit-tap-highlight-color:transparent;touch-action:none;}
  .scan-err button{margin-top:12px;background:#fff;color:#111;border:none;border-radius:10px;padding:10px 18px;font-family:inherit;font-size:14px;font-weight:600;}

  /* ===== PDF (військово-обліковий документ) ===== */
  .pdfview{position:absolute;inset:0;z-index:96;background:#3a3a3c;display:flex;flex-direction:column;}
  .pdfview[hidden]{display:none;}
  .pdf-top{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 16px 12px;background:#fff;border-bottom:1px solid #e2e2e2;}
  .pdf-ttl{flex:1 1 auto;min-width:0;text-align:center;font-size:16px;font-weight:600;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .pdf-x{flex:none;border:none;background:none;color:#000;width:36px;height:36px;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}
  .pdf-dl{flex:none;border:none;background:none;color:#000;width:36px;height:36px;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}
  .pdf-dl svg{width:22px;height:22px;}
  /* весь документ вписуємо в екран (перегляд PDF: зменшено, без свайпу) */
  .pdf-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;justify-content:center;align-items:flex-start;padding:12px 12px 16px;}
  /* набрано фірмовим e-Ukraine — як у справжньому документі Резерв+.
     Фіксована «сторінка» ~380pt, яку JS масштабує під екран. */
  /* сторінка = справжній A4: 596px = 210мм (1px≈1pt). min-height A4 → футер притиснутий донизу */
  .pdf-page{width:596px;min-height:843px;flex:none;box-sizing:border-box;background:#fff;color:#111;padding:28px 40px 26px;font-family:'e-Ukraine',-apple-system,'Helvetica Neue',Arial,sans-serif;font-size:10px;line-height:1.3;box-shadow:0 6px 30px rgba(0,0,0,.4);transform-origin:top center;position:relative;display:flex;flex-direction:column;}
  .pdf-export-mark{position:relative;z-index:7;margin:-18px 0 10px;border:1px solid #77662a;border-radius:4px;background:#fff2bf;color:#242015;text-align:center;font-size:9px;font-weight:700;line-height:13px;padding:2px 5px;flex:none;}
  /* Водяний знак «ДЕМО» — на картці документа й у PDF (демо-доступ, анти-абуз). */
  .wm{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:6;opacity:0;}
  .wm-in{position:absolute;top:-60%;left:-30%;width:170%;height:230%;transform:rotate(-30deg);
    font-family:-apple-system,Arial,sans-serif;font-weight:800;font-size:26px;line-height:2.7;
    color:rgba(198,12,12,.15);letter-spacing:2px;word-spacing:10px;overflow:hidden;opacity:0;}
  /* Демо-доступ: ховаємо PDF і QR-пункти (шторка), QR-код документа теж недоступний */
  body.is-demo .demo-hide{display:none!important;}
  .pdf-hd{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;}
  .pdf-hd-l{display:flex;align-items:flex-start;gap:11px;min-width:0;}
  .pdf-hd>*{min-width:0;}
  .pdf-logo{font-family:'e-UkraineHead';font-size:21px;font-weight:700;letter-spacing:-.3px;line-height:1;}
  .pdf-logo b{color:#000;font-weight:700;} .pdf-logo i{color:#f39200;font-style:normal;font-weight:700;}
  .pdf-hd-sub{font-size:9px;font-weight:400;color:#4a4a4a;line-height:1.4;padding-top:1px;}
  .pdf-mou{display:flex;align-items:center;gap:7px;flex:none;font-size:9px;font-weight:400;color:#111;text-align:left;line-height:1.2;}
  .pdf-mou svg{width:18px;height:22px;flex:none;}
  .pdf-mou span{white-space:nowrap;}
  .pdf-badge{display:inline-block;border:1.2px solid #111;border-radius:5px;padding:2.5px 10px;font-size:9px;font-weight:500;}
  .pdf-name{margin-top:7px;font-family:'e-UkraineHead';font-weight:400;line-height:1.12;}
  .pdf-name span{display:block;font-size:19px;}
  .pdf-name span+span{font-size:17px;margin-top:2px;}   /* по батькові — трохи дрібніше (як в оригіналі) */
  .pdf-name b{text-transform:uppercase;font-weight:400;}
  /* фото — ЛІВА колонка (як в оригіналі), праворуч бейдж/ПІБ/дата народж./категорія */
  .pdf-id{display:flex;align-items:flex-start;gap:18px;margin-top:12px;}
  .pdf-idr{min-width:0;flex:1;}
  .pdf-idr .pdf-grid{margin-top:10px;}   /* у блоці особи ряди розріджені (звірено з оригіналом) */
  .pdf-photo{flex:none;width:100px;}
  .pdf-photo img{display:block;width:100%;aspect-ratio:34/43;object-fit:cover;background:#e5e2d6;}
  .pdf-rule{height:1px;background:#111;margin:7px 0;}
  .pdf-grid{display:grid;gap:8px 16px;margin-top:5px;}
  .pdf-g3{grid-template-columns:2fr 1.75fr 1fr;}
  /* рядок Звання/Оберіг/ВОС: колонки під позиції оригіналу (Оберіг ~53%, ВОС ~80% ширини) */
  .pdf-g3ob{grid-template-columns:261px 144px 1fr;}
  .pdf-g3ob .pdf-v{white-space:nowrap;}
  .pdf-g2{grid-template-columns:1fr 1fr;}
  /* повноширинні ряди на 2 колонки: права колонка притиснута до правого краю (як в оригіналі) */
  .pdf-g2w{grid-template-columns:1fr 84px;}
  .pdf-grid>*{min-width:0;}
  .pdf-k{font-size:9px;font-weight:400;color:#7a7a7a;line-height:1.2;}
  .pdf-v{font-size:10px;font-weight:500;margin-top:2px;line-height:1.2;word-break:break-word;overflow-wrap:anywhere;}
  .pdf-full{margin-top:8px;}
  .pdf-note{margin-top:7px;font-size:10px;font-weight:500;line-height:1.3;}
  /* низ: адреса+email | телефон+дата уточнення | QR (3 колонки, як в оригіналі) */
  .pdf-bottom{display:grid;grid-template-columns:1fr 118px 166px;grid-template-rows:auto auto 1fr;gap:18px 16px;margin-top:9px;align-items:start;}
  .pdf-bottom>*{min-width:0;}
  .pdf-qr{grid-row:1 / span 3;grid-column:3;justify-self:end;}
  .pdf-qr canvas{width:166px;height:166px;max-width:100%;display:block;image-rendering:pixelated;}
  .pdf-foot{margin-top:auto;padding-top:14px;font-size:8.5px;font-weight:400;color:#6f6f6f;line-height:1.5;}
  /* друк (window.print) → повний масштаб, без transform */
  @media print{ .pdf-page{transform:none !important;width:100% !important;} }
  @media print{
    /* без полів → браузер не друкує свої колонтитули (URL сайту, дата) */
    @page{margin:0;}
    /* html/body на екрані пофарбовані в темне (setRootBg) — на папері лише білий,
       інакше низ аркуша під документом іде чорною заливкою */
    html,body{background:#fff !important;}
    body *{visibility:hidden !important;}
    .pdfview,.pdfview *{visibility:visible !important;}
    .pdfview{position:absolute;inset:auto;background:#fff;}
    .pdf-top{display:none !important;}
    .pdf-scroll{overflow:visible;padding:0;}
    .pdf-page{box-shadow:none;max-width:none;margin:0;}
  }

  /* status (service unavailable) */
  .status-page{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 30px;}
  .status-circle{width:148px;height:148px;border-radius:50%;border:3px solid #b5b1a0;display:flex;align-items:center;justify-content:center;}
  .status-circle svg{width:66px;height:66px;}
  /* екран «Забули код» */
  .forgot{position:absolute;inset:0;z-index:93;background:var(--bg);display:flex;flex-direction:column;padding:0 24px 26px;}
  .forgot[hidden]{display:none;}
  .forgot-body{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;}
  .forgot-title{margin-top:34px;font-family:'e-UkraineHead';font-size:28px;font-weight:400;line-height:1.2;}
  .forgot-sub{margin-top:16px;font-size:17px;line-height:1.4;color:#2a2a2a;max-width:320px;}
  .forgot-btns{flex:none;display:flex;flex-direction:column;gap:12px;}
  .forgot-go{height:57px;border:none;border-radius:28.5px;background:var(--accent);color:#1a1a1a;font-family:inherit;font-size:17px;font-weight:500;}
  .forgot-cancel{height:57px;border:1.5px solid rgba(0,0,0,.35);border-radius:28.5px;background:none;font-family:inherit;font-size:17px;font-weight:400;color:#1a1a1a;}
  /* екран завантаження «з реєстру» */
  .loadreg{position:absolute;inset:0;z-index:96;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;}
  .loadreg[hidden]{display:none;}
  .loadreg-box{width:84px;height:84px;border-radius:20px;background:#8a897b;display:flex;align-items:center;justify-content:center;}
  .loadreg-spin{width:28px;height:28px;border-radius:50%;border:2.5px solid rgba(255,255,255,.45);border-top-color:#fff;animation:spin .8s linear infinite;}
  @keyframes spin{to{transform:rotate(360deg);}}
  .loadreg-label{margin-top:14px;background:#8a897b;color:#fff;border-radius:12px;padding:10px 15px;font-size:15px;font-weight:500;line-height:1.35;text-align:center;}
  .status-title{margin-top:34px;font-family:'e-UkraineHead';font-size:27px;font-weight:400;line-height:1.2;}
  .status-body{margin-top:18px;font-size:16px;line-height:22px;color:#2a2a2a;}

  /* ═══ ПРАВИЛА ДЛЯ ЗАНИЖЕНОГО VIEWPORT (iOS standalone translucent) ═══
     iOS КЛІПАЄ все position:fixed по краю заниженого viewport (873), а звичайний
     потік і position:absolute малюються до фізичного низу (932) — доведено
     v33/v34/v35. Тому:
     ⚠️ ЖОДНИХ position:fixed для видимих елементів! Повноекранний шар =
     position:absolute + inset:0 (body розтягнутий на var(--vpxe) і позиціонований).
     Скрол документа (59px оверфлоу) глушать touch-action:none на body +
     scroll-пін у <head>-скрипті; внутрішні скрол-зони працюють як завжди
     (жест зупиняється на найближчому overflow-скролері). */

.safety-mark{display:block;position:absolute;top:0;left:0;right:0;z-index:90;background:#fff2bf;color:#242015;text-align:center;font:700 9px/12px 'e-Ukraine',sans-serif;padding:2px 4px;white-space:nowrap;pointer-events:none;border:1px solid #77662a;border-radius:5px;opacity:1;}
#docView>.safety-mark{top:49px;z-index:100;}
