:root{color-scheme:light;--ink:#10243e;--muted:#68798f;--line:#cad5e2;--accent:#0b8f79}
*{box-sizing:border-box}
html,body{margin:0;background:#e9eef4;color:var(--ink);font-family:Tahoma,Arial,sans-serif}
.sib-toolbar{position:sticky;top:0;z-index:10;display:grid;gap:9px;padding:11px 16px;background:linear-gradient(135deg,#0d2037,#102b47);color:#fff;border-bottom:1px solid #31506d;box-shadow:0 8px 24px #07162640}
.sib-toolbar-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:end;gap:12px;max-width:1380px;width:100%;margin:auto}
.sib-stage-sequence{min-width:0}
.sib-filter-form{display:grid;grid-template-columns:minmax(150px,220px) minmax(150px,220px) 72px minmax(18px,1fr) auto;align-items:end;gap:9px}
.sib-step{position:relative;display:grid;gap:5px;padding-inline-start:25px;color:#c7d5e4;font-size:11px;font-weight:700;white-space:nowrap}
.sib-step::before{content:attr(data-step);position:absolute;inset-inline-start:0;top:-1px;display:grid;place-items:center;width:19px;height:19px;border:1px solid #4d7698;border-radius:50%;background:#163552;color:#dceafa;font-size:10px}
.sib-step select{width:100%;height:42px;border:1px solid #456582;border-radius:9px;padding:0 11px;background:#0b1a2b;color:#f5f8fb;font:inherit;outline:none;transition:border-color .18s,box-shadow .18s}
.sib-step select:focus{border-color:#21b8a0;box-shadow:0 0 0 3px #21b8a026}
.sib-stage-control{grid-template-columns:1fr;padding-inline-start:25px}
.sib-icon-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid #456582;border-radius:10px;background:#163552;color:#eaf3fa;font:inherit;font-size:16px;text-decoration:none;cursor:pointer;transition:transform .16s,background .16s,border-color .16s,box-shadow .16s}
.sib-icon-button:hover{transform:translateY(-1px);border-color:#78a2c4;background:#1c466b;box-shadow:0 6px 14px #0715225e}
.sib-icon-button:focus-visible{outline:2px solid #5ddbc5;outline-offset:2px}
.sib-stage-button{width:100%;border-color:#bd8418;background:linear-gradient(135deg,#d99a22,#b8790e);color:#fff8df}
.sib-stage-button.is-running{background:#8d6b2c}
.sib-export-actions{grid-column:5;display:flex;align-items:center;gap:7px;padding-inline-start:12px;border-inline-start:1px solid #34516c}
.sib-export-actions .sib-icon-button:first-child{border-color:#2aa28e;background:#107865}
.sib-export-actions .sib-icon-button:nth-child(2){border-color:#d9545d;background:#9c2f3a}
.sib-export-actions .sib-icon-button:nth-child(3){border-color:#4f86c8;background:#295f9a}
.sib-back-button{color:#eaf3fa;background:#132d48}
.sib-toolbar [disabled]{opacity:.46;cursor:not-allowed;transform:none!important;box-shadow:none!important}
.sib-stage-form[hidden],.sib-progress[hidden],.sib-progress [hidden]{display:none!important}
.sib-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.sib-summary{text-align:center;font-size:12px;color:#dce6f0}.sib-summary b{color:#60e0c8}.sib-summary span{margin-inline-start:12px;color:#ffc95c}.sib-summary em{margin-inline-start:12px;color:#9fb3c6;font-style:normal}
.sib-progress{display:grid;gap:8px;max-width:1100px;width:100%;margin:0 auto;padding:11px 13px;border:1px solid #3a5f7e;border-radius:11px;background:#0a1a2a;box-shadow:inset 0 1px #ffffff08}
.sib-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.sib-progress-head span{display:flex;align-items:center;gap:8px}.sib-progress-head i{color:#ffc95c}.sib-progress-head strong{direction:ltr;color:#d8e7f4;font-size:12px}
.sib-progress-track{height:8px;overflow:hidden;border-radius:99px;background:#203b53;box-shadow:inset 0 1px 3px #071522}
.sib-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#18b297,#52e2c8);transition:width .24s ease}
.sib-progress p{margin:0;color:#aebfd0;font-size:11px;line-height:1.55}
.sib-progress.is-complete{border-color:#278c78;background:#0b2928}.sib-progress.is-complete .sib-progress-head i{color:#54dfbd}.sib-progress.is-complete .sib-progress-track span{background:#38c9a9}
.sib-progress.is-partial{border-color:#a56e29;background:#2b2116}.sib-progress.is-partial .sib-progress-head i{color:#ffbd52}.sib-progress.is-partial .sib-progress-track span{background:linear-gradient(90deg,#db8230,#ffbe52)}
.sib-progress-errors{font-size:11px;color:#ffd59a}.sib-progress-errors summary{cursor:pointer;font-weight:700}.sib-progress-errors ul{max-height:92px;margin:7px 0 0;padding-inline-start:21px;overflow:auto;color:#ffd0d0;line-height:1.7}
.sib-progress-reload{justify-self:start;display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 12px;border:1px solid #3ba48f;border-radius:8px;background:#126b5d;color:#fff;font:inherit;cursor:pointer}
.sib-notice,.sib-omitted{max-width:1100px;margin:auto;padding:7px 10px;border-radius:7px;font-size:11px}
.sib-notice{display:flex;align-items:center;justify-content:center;gap:8px}.sib-notice.is-ok{background:#0d6559}.sib-notice.is-error{background:#8a2530}.sib-notice.is-warning{border:1px solid #a97927;background:#332716;color:#ffe0a1}.sib-omitted{background:#1a3552}
.sib-omitted summary{cursor:pointer;font-weight:700}.sib-omitted p{margin:6px 0 0;line-height:1.7}
.sib-pages{width:210mm;max-width:100%;margin:0 auto;padding:18px 0}
.sib-page{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:3mm;width:210mm;max-width:100%;height:148.5mm;margin:0 auto 18px;padding:6mm 8mm;background:#fff;box-shadow:0 12px 34px #10243e2b;overflow:hidden;break-inside:avoid;page-break-inside:avoid;break-after:auto;page-break-after:auto}
.sib-page:nth-of-type(2n){break-after:page;page-break-after:always}
.sib-page:last-child{break-after:auto;page-break-after:auto}
.sib-page>header{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:2px solid var(--accent);padding-bottom:2.5mm}
.sib-page-heading{min-width:0;display:grid;gap:5px}
.sib-company-brand{display:flex;align-items:center;gap:8px;min-width:0;color:var(--muted);font-size:11px;line-height:1.45}
.sib-company-brand b{flex:0 0 auto;color:var(--accent);font-size:14px}
.sib-company-brand span{min-width:0;overflow-wrap:anywhere}
.sib-subscriber-title{display:flex;align-items:baseline;gap:8px;min-width:0}
.sib-page h1{margin:0;font-size:21px;line-height:1.2}.sib-page small{color:var(--muted);font-size:11px}
.sib-page>header>strong{flex:0 0 auto;color:var(--accent);font-size:18px;direction:ltr}
.sib-content{display:grid;grid-template-columns:36mm minmax(0,1fr);gap:3mm;align-items:stretch;min-height:0}
.sib-qr{display:grid;place-content:center;text-align:center;border:1px solid var(--line);border-radius:9px}
.sib-qr>div{min-width:122px;min-height:122px}.sib-qr canvas{width:122px!important;height:122px!important}.sib-qr small{margin-top:6px;color:var(--muted);font-size:11px}
.sib-qr-empty{display:grid;place-content:center;gap:6px;color:#9a6921;font-size:9px}.sib-qr-empty i{font-size:24px;color:#c68a2b}
.sib-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:9px;overflow:hidden}
.sib-grid>div{display:flex;min-height:0;flex-direction:column;justify-content:center;padding:2.4mm 3mm;border-bottom:1px solid #e5ebf1;border-left:1px solid #e5ebf1}
.sib-grid span{display:block;margin-bottom:1.5mm;color:var(--muted);font-size:10px}.sib-grid b,.sib-grid code{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.sib-grid-wide{grid-column:span 2}
.sib-account{background:#f0faf7}
.sib-page>footer{display:flex;justify-content:space-between;gap:10px;padding-top:2mm;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
.sib-empty{max-width:700px;margin:60px auto;padding:30px;background:#fff;text-align:center}
.ua-number-wheel__sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important}
.sib-word-export,.sib-word-export .sib-pages{width:210mm;margin:0;padding:0;background:#fff}
.sib-word-export .sib-page{width:210mm;max-width:none;height:148.5mm;margin:0;padding:6mm 8mm;box-shadow:none}
.sib-word-export .sib-page:nth-of-type(odd){border-bottom:1px dashed #aebaca}
.sib-word-export .sib-page:nth-of-type(2n){border-bottom:0;page-break-after:always}
.sib-word-export .sib-page:last-child{page-break-after:auto}
@page{size:A4 portrait;margin:0}
@media screen and (max-width:900px){.sib-toolbar-row{grid-template-columns:minmax(0,1fr) 42px}.sib-filter-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 72px}.sib-export-actions{grid-column:1/-1;justify-content:center;padding:8px 0 0;border-inline-start:0;border-top:1px solid #294861}}
@media screen and (max-width:760px){.sib-toolbar{padding:9px}.sib-toolbar-row{grid-template-columns:minmax(0,1fr) 42px}.sib-filter-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 64px;gap:7px}.sib-step{padding-inline-start:22px}.sib-pages{width:100%;padding:8px}.sib-page{width:100%;height:auto;min-height:0;padding:16px}.sib-content{grid-template-columns:1fr}.sib-qr{padding:12px}.sib-grid{grid-template-columns:1fr 1fr;grid-template-rows:none;grid-auto-rows:minmax(64px,auto)}.sib-grid-wide{grid-column:span 2}.sib-company-brand,.sib-subscriber-title{align-items:flex-start;flex-direction:column}}
@media print{
  html,body{width:210mm;background:#fff}
  .sib-toolbar{display:none!important}
  .sib-pages{width:210mm;max-width:none;margin:0;padding:0}
  .sib-page{width:210mm;max-width:none;height:148.5mm;margin:0;padding:6mm 8mm;box-shadow:none}
  .sib-content{grid-template-columns:36mm minmax(0,1fr)}
  .sib-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .sib-qr{padding:0}
  .sib-company-brand{align-items:center;flex-direction:row}
  .sib-subscriber-title{align-items:baseline;flex-direction:row}
  .sib-page:nth-of-type(odd){border-bottom:1px dashed #aebaca}
  .sib-page:nth-of-type(2n){border-bottom:0;break-after:page;page-break-after:always}
  .sib-page:last-child{break-after:auto;page-break-after:auto}
}
