/* Уточнения композиции по утверждённому образцу */
:root{font-family:Arial,"Helvetica Neue",sans-serif}
.product-bar{gap:0}
.save-button,.apps-button{align-self:center;width:164px;height:31px;padding:0 10px;display:flex;align-items:center;justify-content:center;white-space:nowrap}
.apps-button{border:0;background:#fff;color:var(--aqua);margin:0 10px 0 14px;font-size:12px;cursor:pointer}
.apps-button span{font-size:15px;line-height:11px;margin-left:7px}
.save-button{margin-left:auto}
.save-button.saved{color:#2389c7!important}
.save-button.changed{color:#e55552!important}
.subnav button{position:relative}
.subnav button.active{border-top:3px solid var(--aqua);padding-top:0}
.builder{height:auto;min-height:650px;align-items:stretch;overflow:hidden}
.library-panel,.canvas-panel,.preview-panel{min-height:650px}
.preview-panel{padding:14px 18px 28px;overflow:hidden}
.phone{width:292px;height:596px;padding:78px 14px 15px;border-radius:45px;background:#f8f8f8;box-shadow:inset 0 0 0 11px #fff}
.phone-screen{height:463px}
.phone-home{width:61px;height:61px;left:calc(50% - 30px);bottom:9px;box-shadow:inset 0 0 0 9px #fff;background:#f7f7f7}
.block-card.drop-before:before,.block-card.drop-after:after{content:"";position:absolute;left:-4px;right:0;height:3px;background:var(--aqua);z-index:3;box-shadow:0 0 0 2px #e8fdff}
.block-card.drop-before:before{top:-8px}
.block-card.drop-after:after{bottom:-8px}
footer{position:relative;z-index:4}
.brand{gap:20px}
.app-mark{width:91px;height:91px;padding:10px;display:grid;place-items:center;background:linear-gradient(145deg,#f7f9fa,#dce4e8);border:1px solid #91a0a9;box-shadow:inset 0 0 0 4px #ffffff80;overflow:hidden}
.app-mark:before,.app-mark:after,.app-mark>span,.app-mark>b{display:none}
.app-mark img{width:100%;height:100%;object-fit:contain}
.brand h1 strong{font-weight:400;letter-spacing:-1px}
.product-bar,.subnav{padding-left:10px}
.product-tab:first-child{width:155px;padding-left:0;padding-right:0}
.subnav button:first-child{margin-left:0}
html{scroll-behavior:smooth}
button,.library-block,.lib-icon,.save-button,.apps-button,.subnav button,.product-tab,.switch i,.block-actions button,.title-edit,.icon-edit{transition:color .22s ease,background-color .22s ease,border-color .22s ease,opacity .22s ease,box-shadow .22s ease,transform .22s ease}
.library-block:hover{transform:translateY(-2px)}
.block-card{transition:opacity .22s ease,box-shadow .22s ease,border-color .22s ease,transform .34s cubic-bezier(.22,.8,.24,1)}
.block-card.dragging{transform:scale(.985);box-shadow:0 10px 24px #24323c22}
.block-card.just-moved{animation:block-settle .42s cubic-bezier(.2,.82,.24,1)}
.phone-block{animation:phone-enter .32s ease both}
.modal-backdrop{animation:fade-in .2s ease both}
.modal{animation:modal-in .28s cubic-bezier(.2,.8,.25,1) both}
.app-list button{display:flex;align-items:center;gap:10px}
.app-list button .symbol{width:22px;height:22px;flex:0 0 22px}
.sym-agreement{border:2px solid currentColor;border-radius:2px}
.sym-agreement:before{content:"";position:absolute;left:5px;right:5px;top:5px;height:2px;background:currentColor;box-shadow:0 6px 0 currentColor,0 12px 0 currentColor}
.sym-privacy{border:2px solid currentColor;border-radius:50% 50% 44% 44%;clip-path:polygon(50% 0,94% 18%,86% 77%,50% 100%,14% 77%,6% 18%)}
.sym-privacy:after{content:"";position:absolute;width:6px;height:8px;border:2px solid currentColor;border-radius:5px;left:8px;top:7px}
@keyframes block-settle{0%{transform:translateY(8px);opacity:.72}100%{transform:none;opacity:1}}
@keyframes phone-enter{0%{opacity:0;transform:translateX(8px)}100%{opacity:1;transform:none}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes modal-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.builder{grid-template-columns:240px minmax(440px,1fr) 340px}
.block-library{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:114px;gap:8px;border:0;margin:0 0 14px}
.block-library[hidden]{display:none!important}
.library-block{width:100%;height:114px;min-height:114px;overflow:hidden;border:1px solid #e2e6e8;background:#f5f6f7;padding:9px 5px 8px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.library-block:hover{background:#eefbfc;border-color:#a8dfe3}
.library-block:disabled { cursor: not-allowed; opacity: .42; filter: grayscale(1); transform: none; }
.library-block:disabled i { display: none; }
.library-block .lib-icon{width:52px;height:52px;min-height:52px;margin:0 auto 8px;background:#fff}
.library-block .info-icon{background:var(--orange)}
.library-block>b{display:block;width:100%;min-width:0;min-height:26px;overflow:hidden;text-align:center;line-height:1.25;font-size:10px;overflow-wrap:anywhere}
.library-block i{z-index:2}
.metrics,.product-bar,.subnav button,.library-panel h2,.canvas-title h2,.group-toggle{font-family:Verdana,Arial,sans-serif}
.product-bar{align-items:flex-start;border-color:#89959c}
.product-tab{height:38px;padding-top:11px;border-right-color:#839097}
.product-tab.active{background:var(--charcoal);color:#fff;border-top:1px solid #aeb7bc}
.switch-item{height:38px;align-items:flex-start;padding-top:11px;border-right-color:#839097}
.switch.is-off i{left:2px;background:#e75152}
.switch.is-live{background:#bfe4f4}
.switch.is-live i{left:15px;background:#2389c7}
.platform-release-link{cursor:pointer}
.platform-release-link:hover,.platform-release-link:focus-visible{color:#fff;outline:none;background:#52616b}
.apk-release-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.apk-release-head small{color:#2389c7;font-weight:700}
.apk-live-badge{padding:5px 9px;border-radius:999px;background:#dff2ff;color:#1f73a7;font-size:11px;font-weight:700}
.apk-download{display:block;margin:14px 0;padding:11px 14px;border-radius:5px;background:#2389c7;color:#fff;text-align:center;text-decoration:none;font-size:13px;font-weight:700}
.apk-meta{display:grid;gap:6px;margin:12px 0;padding:11px;background:#f3f8fb}
.apk-meta div{display:grid;grid-template-columns:90px 1fr;gap:8px}
.apk-meta dt,.apk-meta dd{margin:0;font-size:11px}
.apk-meta dt{color:#72818a}
.apk-meta dd{overflow-wrap:anywhere;color:#3f4c55}
.apk-history-title{margin:16px 0 8px;color:#46545e}
.apk-history{max-height:250px;overflow:auto;border-top:1px solid #dbe5ea}
.apk-history details{border-bottom:1px solid #dbe5ea;padding:8px 2px}
.apk-history summary{display:flex;justify-content:space-between;cursor:pointer;color:#38505e}
.apk-history summary span{color:#86949c;font-size:11px}
.apk-history ul{margin:8px 0 2px;padding-left:20px;color:#5c6c75;font-size:11px;line-height:1.5}
.apk-retention-note{font-size:10px!important;color:#819099!important}
.save-button,.apps-button{margin-top:8px}
.logo-edit{position:absolute;right:4px;top:4px;width:23px;height:23px;border:0;background:#fff;color:var(--aqua);font-size:15px;display:grid;place-items:center;opacity:0;cursor:pointer;box-shadow:0 1px 5px #27343b55}
.app-mark:hover .logo-edit,.logo-edit:focus-visible{opacity:1}
.phone-identity{display:flex;align-items:center;justify-content:center;gap:7px;margin:16px 0 9px}
.phone-identity img{width:30px;height:30px;object-fit:contain;background:#fff;border-radius:6px;padding:3px;box-shadow:0 2px 6px #557b9b44}
.phone-identity .phone-brand{margin:0}
.action-glyph{position:relative;display:block;width:15px;height:15px;margin:auto;color:#66777f}
.glyph-edit:before{content:"";position:absolute;width:3px;height:13px;background:var(--aqua);border-radius:1px;transform:rotate(45deg);left:6px;top:1px}
.glyph-edit:after{content:"";position:absolute;border-left:2px solid transparent;border-right:2px solid transparent;border-top:4px solid var(--aqua);transform:rotate(45deg);left:1px;bottom:0}
.glyph-link:before,.glyph-link:after{content:"";position:absolute;width:9px;height:5px;border:2px solid #718188;border-radius:6px;transform:rotate(-38deg)}
.glyph-link:before{left:0;top:7px}.glyph-link:after{right:0;top:2px}
.glyph-embed{width:21px;color:#718188;font:700 10px/15px Consolas,monospace;letter-spacing:-1px}
.glyph-detach:before{content:"↰";position:absolute;inset:-2px 0 0;color:#718188;font:bold 17px/15px Arial}
.glyph-lock:before,.glyph-unlock:before{content:"";position:absolute;left:3px;top:7px;width:9px;height:7px;border:2px solid currentColor;border-radius:1px}
.glyph-lock:after,.glyph-unlock:after{content:"";position:absolute;left:5px;top:1px;width:6px;height:8px;border:2px solid currentColor;border-bottom:0;border-radius:7px 7px 0 0}
.glyph-unlock:after{left:8px;transform:rotate(20deg);transform-origin:bottom left}
.glyph-trash{color:#e35b58}
.glyph-trash:before{content:"";position:absolute;left:4px;top:5px;width:8px;height:9px;border:1.5px solid currentColor;border-top:0}
.glyph-trash:after{content:"";position:absolute;left:3px;top:2px;width:10px;height:2px;background:currentColor;box-shadow:3px -2px 0 -0.5px currentColor}
.block-actions .delete-action{color:#e35b58}
.block-actions .delete-action:hover{color:#d33c38;background:#fff4f3}
.title-edit{color:var(--aqua)}
/* Точная геометрия двух горизонтальных панелей по исходному образцу */
.product-bar{position:relative;height:60px;padding-left:0;border:0;background:var(--charcoal);align-items:flex-start}
.product-bar:before{content:"";position:absolute;inset:0 9px;border:1px solid #b9c1c5;pointer-events:none;z-index:0}
.product-bar>*{position:relative;z-index:1}
.product-tab,.switch-item{height:26px;margin-top:5px;padding-top:0;display:flex;align-items:center;border-top:0;border-bottom:0;border-right:1px solid #aeb7bc;line-height:1;font-size:11px}
.product-tab:first-child{width:155px;margin-left:10px;border-left:0}
.product-tab.active{background:transparent;color:#fff;border-top:0}
.product-tab:nth-child(2){color:var(--aqua)}
.switch-item{padding-left:14px;padding-right:14px}
.save-button,.apps-button{margin-top:28px;height:27px}
.save-button{margin-left:auto}
.apps-button{margin-right:10px}
.subnav{height:37px;padding-left:10px;background:#eef0f1;border-bottom:1px solid #dfe3e5;align-items:stretch}
.subnav button{height:37px;background:#eef0f1;border-right:1px solid #dfe3e5;color:#59666d;padding:0 20px}
.subnav button.active{height:38px;background:#fff;color:#36434a;border-top:3px solid var(--aqua);border-left:1px solid #dfe3e5;border-right:1px solid #dfe3e5;z-index:2}
.files-workspace{min-height:calc(100vh - 256px);padding:26px 32px 48px;background:#f4f6f7;border-bottom:1px solid #dfe3e5;font-family:Verdana,Arial,sans-serif;color:#34434b}
.builder[hidden],.files-workspace[hidden]{display:none!important}
.files-header{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1320px;margin:0 auto 22px}
.files-header span{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#21b9c5}.files-header h2{margin:5px 0 6px;font-size:25px;font-weight:600;color:#34434b}.files-header p{margin:0;color:#7a888f;font-size:12px}
.files-upload{display:inline-flex;align-items:center;justify-content:center;min-width:142px;height:38px;padding:0 18px;background:#20b9c5;color:#fff;font-size:11px;font-weight:700;cursor:pointer;box-shadow:0 7px 18px #20b9c52b}.files-upload.busy{opacity:.65;pointer-events:none}
.file-kind-tabs{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;max-width:1320px;margin:0 auto 18px}.file-kind-tabs button{height:76px;border:1px solid #dce3e6;background:#fff;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:11px;padding:0 16px;text-align:left;color:#64737b;cursor:pointer;box-shadow:0 3px 12px #34434b0a}.file-kind-tabs button>span{width:38px;height:38px;display:grid;place-items:center;background:#edf5f6;color:#16aeba;font-size:20px}.file-kind-tabs button i{font-style:normal;font-size:12px;font-weight:700}.file-kind-tabs button b{min-width:25px;height:25px;display:grid;place-items:center;border-radius:14px;background:#edf1f2;font-size:10px}.file-kind-tabs button.active{border-color:#22bac6;box-shadow:0 7px 20px #22bac61d;transform:translateY(-1px)}.file-kind-tabs button.active>span{background:#22bac6;color:#fff}.file-kind-tabs button.active i{color:#263840}
.files-toolbar{max-width:1320px;margin:0 auto 12px;padding:9px 12px;background:#e9edef;display:flex;justify-content:space-between;align-items:center;color:#77858c;font-size:10px}.files-toolbar button{border:0;background:transparent;color:#149da8;font:700 10px Verdana;cursor:pointer}
.file-date-group{max-width:1320px;margin:0 auto 22px}.file-date-group>header{display:flex;align-items:center;gap:10px;margin-bottom:9px}.file-date-group h3{margin:0;font-size:13px;color:#43525a}.file-date-group>header span{font-size:9px;color:#9aa5aa}.file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:12px}
.file-card{position:relative;min-width:0;background:#fff;border:1px solid #e0e5e7;display:grid;grid-template-columns:90px minmax(0,1fr);min-height:112px;box-shadow:0 3px 14px #34434b0a}.file-delete{position:absolute;z-index:3;right:7px;top:7px;width:20px;height:20px;padding:0;border:1px solid #d9dfe2;border-radius:50%;background:#fff;color:#9aa4a9;font:16px/17px Arial;cursor:pointer;box-shadow:0 2px 7px #34434b1f}.file-delete:hover{color:#fff;border-color:#d94a4a;background:#d94a4a}.file-preview{height:112px;background:#eef2f3;display:grid;place-items:center;overflow:hidden;color:#11aab6;font-size:29px}.file-preview img{width:100%;height:100%;object-fit:contain;padding:7px}.file-preview.audio{background:#eef8f9}.file-preview.video{background:#edf1f3}.file-card-body{min-width:0;padding:12px 34px 9px 12px}.file-card-body strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#34434b}.file-card-body small{display:block;margin-top:5px;font-size:8px;color:#9aa4a9}.file-card-body p{height:26px;margin:8px 0 6px;overflow:hidden;font-size:8px;line-height:1.55;color:#7d8a90}.file-actions{display:flex;align-items:center;gap:9px}.file-actions button,.file-actions a{border:0;background:transparent;padding:0;color:#13a7b2;font:700 8px Verdana;text-decoration:none;cursor:pointer}.file-actions a{color:#7c8a90}
.files-empty{max-width:1320px;min-height:250px;margin:0 auto;background:#fff;border:1px dashed #cfd9dd;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#839197}.files-empty>span{font-size:38px;color:#1bb4c0}.files-empty strong{margin-top:12px;color:#52636b;font-size:13px}.files-empty p{font-size:10px}
@media(max-width:900px){.files-workspace{padding:20px 16px}.file-kind-tabs{grid-template-columns:repeat(2,1fr)}.files-header{align-items:flex-start}.file-grid{grid-template-columns:1fr 1fr}}

/* Единый комплект пиктограмм медиатеки */
.files-upload{gap:9px;min-width:154px;height:40px;border:1px solid #14aab6;background:linear-gradient(180deg,#29c3ce,#18aeb9);box-shadow:0 8px 20px #20b9c52d,inset 0 1px #ffffff55}
.files-upload>i{position:relative;width:17px;height:17px;border:1.7px solid #fff;border-radius:3px}
.files-upload>i:before{content:"";position:absolute;left:7px;top:3px;width:2px;height:8px;background:#fff}
.files-upload>i:after{content:"";position:absolute;left:4px;top:3px;width:6px;height:6px;border-left:2px solid #fff;border-top:2px solid #fff;transform:rotate(45deg)}
.files-upload>span{color:#fff!important;font-size:11px!important;font-weight:700;letter-spacing:0!important}
.file-kind-tabs{grid-template-columns:repeat(4,minmax(180px,1fr));gap:13px}
.file-kind-tabs button{height:104px;grid-template-columns:72px minmax(0,1fr) auto;gap:13px;padding:0 14px;background:linear-gradient(150deg,#fff,#f9fbfb)}
.file-kind-tabs button>.library-type-icon{width:68px;height:68px;background:transparent;color:inherit;font-size:inherit}
.file-kind-tabs button>.file-kind-copy,.file-kind-tabs button.active>.file-kind-copy{width:auto;height:auto;min-width:0;display:block;background:transparent;color:inherit;font-size:inherit}
.file-kind-copy i{display:block;font-style:normal;font-size:12px;font-weight:700;color:#40515a}.file-kind-copy small{display:block;margin-top:6px;color:#98a5ab;font:7px Verdana;letter-spacing:.35px;white-space:nowrap}
.file-kind-tabs button>b{align-self:start;margin-top:13px}.file-kind-tabs button.active{box-shadow:0 9px 24px #22bac622;transform:translateY(-2px)}.file-kind-tabs button.active>.library-type-icon{background:transparent;color:inherit}.file-kind-tabs button.active>b{background:#20b8c4;color:#fff}
.library-type-icon{position:relative;display:block;width:68px;height:68px;overflow:visible}.library-type-icon i{position:absolute;display:block;font-style:normal;box-sizing:border-box}
.doc-sheet{width:39px;height:49px;border:1.5px solid #78909b;border-radius:5px;background:#fff;box-shadow:0 4px 9px #34434b1f;transform-origin:center}.doc-sheet:after{content:"";position:absolute;right:-1.5px;top:-1.5px;border-top:12px solid #dce7ea;border-left:12px solid transparent;border-top-right-radius:4px}.doc-sheet b{position:absolute;left:4px;bottom:6px;font:700 7px Verdana;letter-spacing:.2px}.doc-back{left:22px;top:7px;transform:rotate(8deg);border-color:#829098}.doc-back b{color:#64747d}.doc-mid{left:8px;top:9px;transform:rotate(-8deg);border-color:#35a4ae}.doc-mid b{color:#178f99}.doc-front{left:15px;top:10px;border-color:#597887}.doc-front b{color:#d84c50}.doc-front em{position:absolute;left:4px;top:8px;width:17px;height:17px;display:grid;place-items:center;border-radius:3px;background:#3c79aa;color:#fff;font:700 10px Georgia}
.photo-sheet{width:48px;height:40px;border:1.5px solid #6d8995;border-radius:6px;background:#fff;box-shadow:0 4px 10px #34434b20;overflow:hidden}.photo-back{left:15px;top:8px;transform:rotate(7deg);background:#dcebed}.photo-front{left:8px;top:15px;background:linear-gradient(#dff5f7 0 55%,#fff 55%)}.photo-sheet b{position:absolute;right:4px;bottom:3px;font:700 6px Verdana;color:#57717c;z-index:3}.photo-back b{color:#388997}.photo-sun{position:absolute;left:8px;top:7px;width:7px;height:7px;border-radius:50%;background:#efb255}.photo-hills{position:absolute;left:5px;right:5px;bottom:11px;height:15px;background:linear-gradient(135deg,transparent 0 26%,#5ba5b5 27% 54%,transparent 55%),linear-gradient(45deg,transparent 0 40%,#287e99 41% 72%,transparent 73%)}
.library-type-icon.audio{border:1.5px solid #65a2aa;border-radius:15px;background:linear-gradient(145deg,#f0fbfc,#dceff1);box-shadow:0 5px 12px #34434b1a}.audio-ring{left:12px;top:14px;width:26px;height:26px;border:2px solid #248d9a;border-radius:50%}.audio-ring:before{content:"";position:absolute;left:7px;top:7px;width:8px;height:8px;border-radius:50%;background:#248d9a}.audio-wave{left:37px;top:21px;height:24px;display:flex!important;align-items:center;gap:2px}.audio-wave b{display:block;width:2px;border-radius:2px;background:#d65054}.audio-wave b:nth-child(1),.audio-wave b:nth-child(5){height:8px}.audio-wave b:nth-child(2),.audio-wave b:nth-child(4){height:16px}.audio-wave b:nth-child(3){height:24px}
.library-type-icon.video{border:1.5px solid #647e89;border-radius:12px;background:linear-gradient(145deg,#f3f8f9,#dde8eb);box-shadow:0 5px 12px #34434b1a;overflow:hidden}.video-frame{inset:11px 8px;border:1.5px solid #397f91;border-radius:6px;background:#fff}.video-frame b{position:absolute;left:50%;top:50%;width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:12px solid #d64d51;transform:translate(-38%,-50%)}.video-strip{left:0;right:0;height:6px;background:repeating-linear-gradient(90deg,#63818d 0 7px,transparent 7px 11px)}.video-strip.top{top:0}.video-strip.bottom{bottom:0}.library-type-icon.compact{transform:scale(.72)}
.file-preview .library-type-icon{flex:none}.files-empty>.library-type-icon{margin-bottom:8px}.files-empty>span.library-type-icon{font-size:inherit;color:inherit}
.library-type-icon b{min-width:0!important;height:auto!important;background:transparent!important;border-radius:0!important;margin:0!important;padding:0!important;box-shadow:none!important}
.audio-wave b{display:block!important;width:2px!important;min-width:2px!important;border-radius:2px!important;background:#d65054!important}.audio-wave b:nth-child(1),.audio-wave b:nth-child(5){height:8px!important}.audio-wave b:nth-child(2),.audio-wave b:nth-child(4){height:16px!important}.audio-wave b:nth-child(3){height:24px!important}
.video-frame b{position:absolute!important;left:50%!important;top:50%!important;width:0!important;min-width:0!important;height:0!important;border-top:8px solid transparent!important;border-right:0!important;border-bottom:8px solid transparent!important;border-left:12px solid #d64d51!important;transform:translate(-38%,-50%)!important}
@media(max-width:900px){.file-kind-tabs{grid-template-columns:repeat(2,1fr)}}
.subnav button.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#fff}
.builder,.library-panel,.canvas-panel{background:#fff}
.preview-panel{background:#eef0f1}
.group-toggle{height:27px;padding:0 8px;display:flex;align-items:center;justify-content:space-between;font-family:Arial,"Helvetica Neue",sans-serif;font-size:12px;font-weight:700;line-height:27px}
.group-toggle .chevron{float:none;flex:0 0 10px;width:10px;height:10px;margin:-3px 2px 0 10px;border-right-width:3px;border-bottom-width:3px;align-self:center}
/* Финальная корректировка типографики и пропорций */
.modal,.modal h3,.modal p,.modal button,.modal input,.modal label,.app-list,#toast{font-family:Verdana,Arial,sans-serif}
.group-toggle{font-family:Verdana,Arial,sans-serif;font-size:11px}
.group-toggle .chevron{flex-basis:8px;width:8px;height:8px;margin:-2px 3px 0 10px;border-right-width:2px;border-bottom-width:2px}
.product-bar:before{border:0;border-top:1px solid #b9c1c5;border-left:1px solid #b9c1c5;border-right:1px solid #b9c1c5}
.product-tab:first-child{justify-content:center;text-align:center;padding-left:0;padding-right:0}
.apps-button{margin-right:18px}
.builder{grid-template-columns:240px minmax(440px,1fr) 400px}
.preview-panel{padding-left:25px;padding-right:25px}
.phone{width:340px;height:596px}
.phone-home{width:50px;height:50px;left:calc(50% - 25px);bottom:13px;border:1px solid #d8dde0;background:#fff;box-shadow:inset 0 0 0 5px #f8f9f9,0 1px 3px #4c5c6620}
.phone-home:after{content:"";position:absolute;width:15px;height:15px;left:calc(50% - 8px);top:calc(50% - 8px);border:1px solid #dfe3e5;border-radius:4px}
.library-block i{width:16px;height:16px;right:3px;top:3px;display:grid;place-items:center;padding:0;border:1px solid var(--aqua);background:#fff;color:var(--aqua);font:700 12px/16px Verdana,Arial,sans-serif;text-align:center;text-indent:0}
.save-button,.apps-button{font-family:Verdana,Arial,sans-serif;font-size:11px}
.product-bar > .admin-primary-actions {
  flex: 0 0 auto;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 18px 0 auto;
}
.product-bar > .admin-primary-actions > #saveButton.save-button,
.product-bar > .admin-primary-actions > #appsButton.apps-button {
  flex: 0 0 auto;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--aqua);
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
.product-bar > .admin-primary-actions > #saveButton.save-button {
  width: 194px;
  margin: 0;
}
.product-bar > .admin-primary-actions > #appsButton.apps-button {
  width: 164px;
  margin: 0;
}
.product-bar > .admin-primary-actions > #saveButton.save-button.saved { color: var(--aqua) !important; }
.product-bar > .admin-primary-actions > #saveButton.save-button.changed { color: #b73d43 !important; background: #fff0f0 !important; border-color: #e7b6b9 !important; }
.product-bar > .admin-primary-actions > #saveButton .admin-button-label,
.product-bar > .admin-primary-actions > #appsButton .admin-button-label {
  display: block;
  color: inherit;
  font: inherit;
  line-height: 1;
}
.product-bar > .admin-primary-actions > #saveButton .admin-button-icon,
.product-bar > .admin-primary-actions > #appsButton .admin-button-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.builder{min-height:720px}
.library-panel,.canvas-panel,.preview-panel{min-height:720px}
.phone{height:666px}
.phone-screen{height:533px}
/* Каждая фигура из набора хранится отдельной прозрачной иконкой. */
:root {
  --orange: var(--aqua);
}

.asset-icon,
.custom-block-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.library-block .lib-icon {
  background: #fff;
  border: 1px solid #c9e5e7;
}

.library-block .lib-icon img,
.block-icon > .asset-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(67%) sepia(82%) saturate(711%) hue-rotate(134deg) brightness(89%) contrast(84%);
}

.block-card .block-icon {
  background: linear-gradient(145deg, #ffffff, #edfafa);
  border: 1px solid #bfe5e8;
  box-shadow: inset 0 0 0 3px #fff;
}

.block-card .block-icon .icon-edit {
  background: #fffffff0;
  color: var(--aqua);
  border: 1px solid #bfe5e8;
  font-family: Verdana, Arial, sans-serif;
  font-weight: 700;
}

.modal:has(.icon-grid) {
  width: 660px;
  max-width: calc(100vw - 32px);
}

.icon-grid {
  grid-template-columns: repeat(11, 50px);
  gap: 6px;
  max-height: 430px;
  overflow: auto;
  padding: 4px;
}

.icon-grid .icon-choice {
  width: 50px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #f4f5f5;
  border: 1px solid #e2e4e5;
}

.icon-grid .icon-choice:hover {
  border-color: var(--aqua);
  background: #eefcfd;
}

.icon-grid .icon-choice .asset-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.block-card p {
  color: #a0a8ac;
}

.block-actions {
  position: relative;
  justify-content: flex-end;
  padding: 10px 8px 0;
  margin-top: 7px;
  gap: 6px;
}

.block-actions::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 10px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, #69767d 0%, #939da2 58%, #d8dddf 100%);
}

.block-actions button {
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e1e6e8;
  box-shadow: 0 1px 2px #56687218;
}

.block-actions button .asset-icon {
  width: 24px;
  height: 24px;
  margin: auto;
  object-fit: contain;
  opacity: .92;
}

.block-actions .edit-action .asset-icon {
  filter: brightness(0) saturate(100%) invert(67%) sepia(82%) saturate(711%) hue-rotate(134deg) brightness(89%) contrast(84%);
  opacity: 1;
}

.block-actions .delete-action .asset-icon {
  filter: brightness(0) saturate(100%) invert(45%) sepia(71%) saturate(1113%) hue-rotate(318deg) brightness(98%) contrast(83%);
  opacity: 1;
}

.block-actions .embed-glyph {
  display: block;
  color: #6f7e85;
  font: 300 14px/1 "Segoe UI Symbol", "Segoe UI", Arial, sans-serif;
  letter-spacing: -3px;
  transform: scaleX(.72) scaleY(.8) translateX(-1px);
  transform-origin: center;
}

.block-actions .lock:not(.hidden) {
  background: #fff;
}

.block-actions .lock:not(.hidden) .asset-icon {
  filter: brightness(0) saturate(100%) invert(67%) sepia(82%) saturate(711%) hue-rotate(134deg) brightness(89%) contrast(84%);
  opacity: 1;
}

.block-actions .lock.hidden {
  background: #46545e;
  border-color: #46545e;
}

.block-actions .lock.hidden .asset-icon {
  filter: brightness(0) invert(1);
  opacity: 1;
}
.block-actions .access-action{position:relative;color:#1595a6}
.block-actions .access-ruble-symbol{position:relative;display:inline-grid;place-items:center;width:22px;height:22px;font:600 21px/1 Arial,sans-serif;color:currentColor}
.block-actions .access-ruble-symbol i{position:absolute;left:2px;right:2px;top:10px;height:2px;background:currentColor;transform:rotate(-38deg);transform-origin:center;border-radius:2px}
.subscription-setting-grid{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr);gap:12px;margin:14px 0 18px}
.subscription-setting-grid label{display:grid;gap:6px;color:#516470;font-size:12px}
.subscription-setting-grid label.wide{grid-column:1 / -1}
.subscription-setting-grid input,.subscription-setting-grid textarea{box-sizing:border-box;width:100%;border:1px solid #cbd8dd;border-radius:4px;padding:9px 10px;font:inherit;color:#344b57;background:#fff}
.subscription-setting-grid textarea{min-height:76px;resize:vertical}
.subscription-history{display:grid;gap:7px}
.subscription-history article{display:grid;grid-template-columns:120px 130px 1fr;gap:10px;align-items:start;border:1px solid #d9e3e7;padding:8px 10px;background:#fff}
.subscription-history small{overflow-wrap:anywhere;color:#6f8088}
.block-actions .access-action:focus-visible{outline:2px solid #17a9ba;outline-offset:2px}
.block-actions .access-action.free{color:#e35b58;background:#fff4f3}

.block-card.sub::after {
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 3;
  padding: 5px 12px 5px 9px;
  background: linear-gradient(135deg, #55d1da, #24b9c5);
  color: #fff;
  font: 700 10px/1 Verdana, Arial, sans-serif;
  letter-spacing: .7px;
  text-shadow: 0 1px 1px #178e9766;
  box-shadow: 1px -1px 3px #3d5d6626;
  clip-path: polygon(0 0, 82% 0, 100% 35%, 100% 100%, 0 100%);
}

/* Редактор самого распространённого блока «Информация». */
.modal:has(.information-editor) {
  width: min(980px, calc(100vw - 28px));
  height: min(780px, calc(100vh - 28px));
  padding: 0;
  overflow: hidden;
}

.information-editor,
.information-editor button,
.information-editor input,
.information-editor textarea,
.information-editor select {
  font-family: Verdana, Arial, sans-serif;
}

.information-editor {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #526169;
}

.information-tabs {
  min-height: 50px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 18px;
  border-bottom: 1px solid #dfe5e7;
  background: #fafbfb;
}

.information-tabs button {
  position: relative;
  height: 49px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: #25b9c5;
  font-size: 15px;
  cursor: pointer;
}

.information-tabs button::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.information-tabs button.active::after,
.information-tabs button:hover::after {
  background: #24c2ce;
}

.information-workspace {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 26px;
  background: #fff;
}

.catalog-toolbar,
.catalog-root-actions,
.catalog-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.catalog-toolbar {
  margin-bottom: 17px;
  align-items: center;
}

.catalog-toolbar .add-separator-toolbar { margin-left: 4px; border-color: #78cfd5; color: #087e87; background: #effafb; font-weight: 700; }

.catalog-root-actions {
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f1;
  margin-bottom: 8px;
}

.catalog-toolbar button,
.catalog-root-actions button,
.catalog-add-row button {
  border: 1px solid #cfd6d9;
  background: linear-gradient(#fff, #f1f3f4);
  color: #59676e;
  padding: 6px 9px;
  font-size: 10px;
  cursor: pointer;
  box-shadow: 0 1px 1px #4d626d12;
}

.catalog-toolbar button:hover,
.catalog-root-actions button:hover,
.catalog-add-row button:hover {
  border-color: #75d6dc;
  color: #139eaa;
  background: #f4fdfd;
}

.catalog-tree {
  padding: 2px 0 10px;
}

.catalog-node {
  position: relative;
}

.catalog-node-row {
  position: relative;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: calc(var(--depth) * 20px);
  padding: 3px 7px 3px 0;
  border-left: 1px solid #9adce1;
}

.catalog-node-row::after {
  content: "";
  width: 11px;
  height: 1px;
  order: -1;
  background: #9adce1;
}

.catalog-toggle {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5a6870;
  font-size: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.catalog-node-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.catalog-node-copy strong {
  color: #449db6;
  font-size: 11px;
  font-weight: 400;
}

.catalog-node-copy small {
  max-width: 580px;
  color: #9aa5aa;
  font-size: 9px;
  line-height: 1.35;
}

.catalog-node-tools {
  display: flex;
  gap: 3px;
  margin-left: 5px;
  opacity: 0;
  transition: opacity .18s ease;
}

.catalog-node-row:hover .catalog-node-tools {
  opacity: 1;
}

.catalog-node-tools button {
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #e1e6e8;
  background: #fff;
  cursor: pointer;
}

.catalog-node-tools .edit {
  color: #20b9c5;
}

.catalog-node-tools .remove {
  color: #e25f5a;
}

.catalog-node-tools .remove img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(45%) sepia(71%) saturate(1113%) hue-rotate(318deg) brightness(98%) contrast(83%);
}

.catalog-node-tools .remove:hover {
  border-color: #efb2af;
  background: #fff4f3;
}

.catalog-children {
  max-height: 5000px;
  opacity: 1;
  overflow: hidden;
  transition: max-height .28s ease, opacity .2s ease;
}

.catalog-node:not(.expanded) > .catalog-children {
  display: block;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.catalog-article {
  min-height: 25px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: calc(var(--depth) * 20px + 18px);
  color: #58a8c1;
  font-size: 10px;
  border-left: 1px solid #9adce1;
}

.catalog-item-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; overflow: hidden; background: #f1f2f4; color: #8d9095; }
.catalog-item-icon.image img { width: 100%; height: 100%; object-fit: cover; }
.catalog-item-icon.semantic-square { border-radius: 7px; box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 0 -2px 3px rgba(0,0,0,.16), 0 1px 2px rgba(25,45,65,.18); }
.catalog-item-icon.semantic-square.blue-square { background: linear-gradient(180deg, #2f92dc 0%, #0870bd 70%, #005b9e 100%); }
.catalog-item-icon.semantic-square.red-square { background: linear-gradient(180deg, #ff3e49 0%, #f12736 70%, #d61425 100%); }
.catalog-item-icon.semantic-square.yellow-square { background: linear-gradient(180deg, #ffd54a 0%, #f2b515 72%, #d89a00 100%); }
.catalog-item-icon.default { position: relative; box-shadow: inset 0 0 0 1px #d8dbde; }
.catalog-item-icon.default i { position: absolute; width: 14px; height: 18px; border: 1.8px solid #8d9095; border-radius: 3px; }
.catalog-item-icon.default b { position: relative; z-index: 1; display: block; width: 8px; height: 1.5px; margin: 2px 0; border-radius: 2px; background: #8d9095; }
.catalog-item-icon.default b:last-child { width: 5px; margin-right: 3px; }

.catalog-separator-group { position: relative; margin: 19px 8px 0; border-radius: 14px; background: #f4f5f7; transition: box-shadow .2s ease, transform .2s ease; }

.catalog-separator {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin: 0;
  padding: 8px 10px 8px 12px;
  color: #222326;
  border: 1px solid rgba(60,60,67,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 1px 2px rgba(0,0,0,.025), 0 5px 16px rgba(0,0,0,.035);
  cursor: grab;
}

.catalog-separator .separator-toggle { background: transparent; }

.catalog-separator strong {
  min-width: 0;
  font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Verdana, sans-serif;
  letter-spacing: -.01em;
  white-space: normal;
}

.catalog-separator .separator-tools {
  position: static;
  opacity: 0;
}

.catalog-separator-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.catalog-separator-actions button {
  min-height: 27px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: #eef8f9;
  color: #1597a2;
  font: 600 10px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  cursor: pointer;
}

.catalog-separator-actions button:hover { background: #daf3f5; color: #087e87; }

.catalog-separator:hover .separator-tools { opacity: 1; }

.catalog-separator-children { display: none; padding: 5px 8px 10px; border-radius: 0 0 14px 14px; }
.catalog-separator-group.expanded > .catalog-separator { border-radius: 14px 14px 8px 8px; }
.catalog-separator-group.expanded > .catalog-separator-children { display: block; }
.catalog-separator-empty { display: none; margin: 7px; padding: 12px; border: 1px dashed #c6d8da; border-radius: 9px; color: #88969c; text-align: center; font-size: 9px; }
.catalog-separator-children:has(> .catalog-separator-empty:only-child) .catalog-separator-empty { display: block; }
.catalog-separator-group.tree-drop-inside { box-shadow: 0 0 0 3px rgba(30,188,199,.28); transform: scale(1.004); }
.catalog-node.tree-drop-inside > .catalog-node-row {
  background: #eafafb;
  box-shadow: inset 0 0 0 2px rgba(30,188,199,.38), 0 3px 10px rgba(30,188,199,.12);
}
.tree-drop-before::before, .tree-drop-after::after { content: ""; position: absolute; z-index: 8; left: 6px; right: 6px; height: 3px; border-radius: 3px; background: #21bdc7; box-shadow: 0 0 0 2px #fff; }
.tree-drop-before::before { top: -3px; }
.tree-drop-after::after { bottom: -3px; }

.mobile-instruction-list {
  height: calc(100% - 54px);
  overflow-y: auto;
  background: #f2f2f7;
  padding: 0 0 20px;
}

.mobile-instruction-list.inside-category { padding: 14px 10px 20px; }
.mobile-instruction-section { padding: 20px 10px 0; }

.mobile-instruction-intro {
  margin: 0 0 12px;
  padding: 12px;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 .5px 0 rgba(60,60,67,.15), 0 1px 3px rgba(0,0,0,.025);
  color: #25262a;
}

.mobile-instruction-intro-body {
  overflow-wrap: anywhere;
  font: 9px/1.5 Verdana, Geneva, sans-serif;
}

.mobile-instruction-intro-body > :first-child { margin-top: 0 !important; }
.mobile-instruction-intro-body > :last-child { margin-bottom: 0 !important; }
.mobile-instruction-intro-body img,
.mobile-instruction-intro-body video,
.mobile-instruction-intro-body iframe { max-width: 100% !important; height: auto; }
.mobile-instruction-intro-body table { max-width: 100% !important; }
.mobile-instruction-intro .mobile-instruction-current-summary { padding: 0; border: 0; background: transparent; }

.mobile-instruction-separator {
  min-height: 24px;
  display: flex;
  align-items: flex-end;
  padding: 0 11px 6px;
  color: #717178;
  background: transparent;
}
.mobile-instruction-separator strong { font: 600 9px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; letter-spacing: .01em; text-transform: uppercase; text-align: left; }
.mobile-instruction-group { overflow: hidden; border-radius: 13px; background: #fff; box-shadow: 0 .5px 0 rgba(60,60,67,.15), 0 1px 3px rgba(0,0,0,.025); }
.mobile-instruction-group-empty { padding: 18px 12px; color: #929298; font: 9px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; text-align: center; }
.mobile-instruction-category {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px 1fr 23px;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-bottom: 0;
  background: #fff;
  color: #202124;
  text-align: left;
}

.mobile-instruction-category > span:nth-child(2) { min-width: 0; }
.mobile-instruction-category strong { display: block; font: 600 11px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; }
.mobile-instruction-category small { display: block; margin-top: 3px; color: #74777d; font: 9px/1.35 Verdana, Geneva, sans-serif; }
.mobile-instruction-category em { display: block; margin-top: 4px; color: #7d9fa3; font: normal 8px/1.3 Verdana, Geneva, sans-serif; }
.mobile-round-chevron { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(#f2f3f5,#e5e7ea); box-shadow: inset 0 0 0 1px rgba(60,60,67,.12); color: #81858a; font: 600 17px/18px -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; }
.mobile-instruction-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg,#f5f6f7,#e4e6e9); box-shadow: inset 0 0 0 1px rgba(60,60,67,.12); }
.mobile-instruction-icon.image img { width: 100%; height: 100%; object-fit: cover; }
.mobile-instruction-icon.default { position: relative; color: #8e8e93; }
.mobile-instruction-icon.default i { position: absolute; width: 18px; height: 23px; border: 2px solid currentColor; border-radius: 4px; }
.mobile-instruction-icon.default b { position: relative; z-index: 1; width: 10px; height: 2px; margin: 2px 0; border-radius: 2px; background: currentColor; }
.mobile-instruction-icon.default b:last-child { width: 6px; margin-right: 4px; }
.mobile-instruction-current-summary { padding: 7px 12px; color: #6f7479; background: #f2f3f5; border-bottom: 1px solid #dfe2e5; font: 9px/1.4 Verdana, Geneva, sans-serif; }

.mobile-instruction-article {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-top: 0;
  background: #fff;
  color: #19253d;
  text-align: left;
}

/*
 * Единый разделитель между любыми соседними материалами одного уровня:
 * статья/категория могут следовать друг за другом в любом сочетании.
 */
.mobile-instruction-group > .mobile-instruction-category + .mobile-instruction-category,
.mobile-instruction-group > .mobile-instruction-category + .mobile-instruction-article,
.mobile-instruction-group > .mobile-instruction-article + .mobile-instruction-category,
.mobile-instruction-group > .mobile-instruction-article + .mobile-instruction-article {
  border-top: 1px solid rgba(60,60,67,.12);
}

.mobile-instruction-article > span:nth-child(2) { min-width: 0; }
.mobile-instruction-article strong { display: block; font: 500 11px/1.3 Verdana, Geneva, sans-serif; }
.mobile-instruction-article small { display: block; margin-top: 4px; color: #707b84; font: 9px/1.4 Verdana, Geneva, sans-serif; }
.mobile-instruction-article em { display: block; margin-top: 5px; color: #7d9fa3; font: normal 8px/1.35 Verdana, Geneva, sans-serif; }

/* Вложенные категории: один и тот же раскрываемый шаблон на любой глубине. */
.mobile-instruction-branch {
  overflow: hidden;
  background: #fff;
}

.mobile-instruction-dropdown-toggle { cursor: pointer; }
.mobile-instruction-dropdown-toggle .mobile-round-chevron {
  transition: transform 250ms cubic-bezier(.2,.72,.25,1);
  transform-origin: 50% 50%;
}
.mobile-instruction-branch.expanded > .mobile-instruction-dropdown-toggle .mobile-round-chevron { transform: rotate(90deg); }

.mobile-instruction-branch-collapse {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 250ms cubic-bezier(.2,.72,.25,1), visibility 0s linear 250ms;
}
.mobile-instruction-branch.expanded > .mobile-instruction-branch-collapse {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 250ms cubic-bezier(.2,.72,.25,1), visibility 0s;
}
.mobile-instruction-branch-content {
  min-height: 0;
  overflow: hidden;
  margin-left: var(--instruction-indent, 0px);
  box-shadow: inset 1px 0 rgba(60,60,67,.08);
}
.mobile-instruction-branch-description {
  margin: 0;
  padding: 11px 12px;
  overflow-wrap: anywhere;
  border-top: 1px solid rgba(60,60,67,.09);
  background: #f7f7f9;
  color: #4f555c;
  font: 9px/1.5 Verdana, Geneva, sans-serif;
}
.mobile-instruction-branch-description > :first-child { margin-top: 0 !important; }
.mobile-instruction-branch-description > :last-child { margin-bottom: 0 !important; }
.mobile-instruction-branch-description img,
.mobile-instruction-branch-description video,
.mobile-instruction-branch-description iframe { max-width: 100% !important; height: auto; }
.mobile-instruction-branch-description table { display: block; max-width: 100% !important; overflow-x: auto; }

/* Разделитель сохраняется при любом сочетании статьи и раскрываемой категории. */
.mobile-instruction-group > * + .mobile-instruction-category,
.mobile-instruction-group > * + .mobile-instruction-article,
.mobile-instruction-group > * + .mobile-instruction-branch > .mobile-instruction-category,
.mobile-instruction-branch-content > * + .mobile-instruction-category,
.mobile-instruction-branch-content > * + .mobile-instruction-article,
.mobile-instruction-branch-content > * + .mobile-instruction-branch > .mobile-instruction-category {
  border-top: 1px solid rgba(60,60,67,.12);
}

.mobile-instruction-branch-content > .mobile-instruction-group-empty {
  border-top: 1px solid rgba(60,60,67,.09);
  background: #fafafd;
}

.catalog-article > .tree-branch {
  width: 13px;
  height: 1px;
  background: #9adce1;
}

.catalog-add-row {
  margin: 5px 0 8px calc(var(--depth) * 20px + 18px);
  padding-left: 13px;
  border-left: 1px solid #9adce1;
}

.catalog-empty {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #8d9ba2;
}

.catalog-empty span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #eafafb;
  color: #24b9c5;
  font-size: 25px;
}

.catalog-empty strong {
  color: #5c6b72;
  font-size: 13px;
}

.catalog-empty p {
  margin: 7px 0 0;
  font-size: 10px;
}

.information-footer {
  flex: 0 0 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 12px;
  background: #f3f5f6;
  border-top: 1px solid #dce2e4;
}

.information-footer .primary,
.category-form-actions .primary {
  min-width: 112px;
  height: 36px;
  border: 0;
  background: #22bfcb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.information-footer .primary.secondary,
.category-form-actions .primary.secondary {
  background: #30c5d0;
}

.information-placeholder {
  min-height: 330px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  color: #86949b;
}

.information-placeholder h3 {
  margin: 0 0 9px;
  color: #4e6068;
}

.information-placeholder p {
  max-width: 500px;
  font-size: 12px;
  line-height: 1.6;
}

.category-form {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.konspekt-busy-overlay[hidden] { display: none !important; }

.konspekt-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 42000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 246, 249, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.konspekt-busy-card {
  min-width: 206px;
  padding: 15px 24px 17px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 55px rgba(29, 63, 79, .17), 0 2px 7px rgba(29, 63, 79, .07);
  text-align: center;
}
.konspekt-busy-mark { display: block; width: 132px; height: auto; margin: -4px auto -2px; overflow: visible; }
.konspekt-busy-dot { transform-box: fill-box; transform-origin: center; animation: konspekt-sequential-pulse 1.62s cubic-bezier(.22, .72, .28, 1) infinite; will-change: transform; }
.konspekt-busy-dot.dot-two { animation-delay: -.54s; }
.konspekt-busy-dot.dot-three { animation-delay: -1.08s; }
.konspekt-busy-contact-shadow { fill: #163b50; opacity: .13; transform-box: fill-box; transform-origin: center; animation: konspekt-shadow-pulse 1.62s cubic-bezier(.22, .72, .28, 1) infinite; }
.konspekt-busy-contact-shadow.shadow-two { animation-delay: -.54s; }
.konspekt-busy-contact-shadow.shadow-three { animation-delay: -1.08s; }
.konspekt-busy-message { color: #40535b; font: 12px/1.45 Verdana, Arial, sans-serif; letter-spacing: .01em; }
html.konspekt-busy-active, html.konspekt-busy-active body { overflow: hidden; }
@keyframes konspekt-sequential-pulse {
  0%, 18%, 100% { transform: translateY(0) scale(1); }
  36% { transform: translateY(-7px) scale(1.34); }
  58% { transform: translateY(0) scale(1); }
}
@keyframes konspekt-shadow-pulse {
  0%, 18%, 100% { transform: scaleX(1); opacity: .13; }
  36% { transform: scaleX(.66); opacity: .06; }
  58% { transform: scaleX(1); opacity: .13; }
}
@media (prefers-reduced-motion: reduce) {
  .konspekt-busy-dot, .konspekt-busy-contact-shadow { animation-duration: 2.8s; }
}

.category-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e1e6e8;
}

.category-form-header span {
  color: #21b7c3;
  font-size: 9px;
  letter-spacing: 1.4px;
}

.category-form-header h3 {
  margin: 4px 0 0;
  color: #46565e;
  font-size: 20px;
  font-weight: 400;
}

.category-form-header > button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: #eef2f3;
  color: #697980;
  font-size: 22px;
  cursor: pointer;
}

.field-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 6px;
  color: #505f67;
  font-size: 12px;
  font-weight: 700;
}

.field-label small {
  color: #9ba6ab;
  font-size: 9px;
  font-weight: 400;
}

.category-input,
.category-short {
  width: 100%;
  border: 1px solid #d5dde0;
  background: #fff;
  color: #3f4e56;
  padding: 9px 10px;
  font-size: 12px;
  outline: none;
}

.category-input:focus,
.category-short:focus,
.rich-editor:focus-within {
  border-color: #67cfd6;
  box-shadow: 0 0 0 2px #24c2ce18;
}

.category-short {
  resize: vertical;
}

.category-open-mode {
  margin: 14px 0 2px;
  padding: 10px;
  border: 1px solid #d9e1e4;
  background: #f8fafb;
}
.category-open-mode legend {
  padding: 0 5px;
  color: #505f67;
  font-size: 12px;
  font-weight: 700;
}
.category-open-mode label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 8px;
  padding: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}
.category-open-mode label + label { margin-top: 4px; }
.category-open-mode label:has(input:checked) { border-color: #a9dde1; background: #eefafb; }
.category-open-mode input { margin: 2px 0 0; accent-color: #20b9c4; }
.category-open-mode b { display: block; color: #43545c; font-size: 11px; }
.category-open-mode small { display: block; margin-top: 2px; color: #87949a; font-size: 9px; line-height: 1.35; }

.rich-editor {
  border: 1px solid #d5dde0;
  background: #fff;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px;
  border-bottom: 1px solid #dfe4e6;
  background: linear-gradient(#fff, #f1f3f4);
}

.rich-toolbar button,
.rich-toolbar select {
  min-width: 30px;
  height: 29px;
  border: 1px solid #d2d9dc;
  background: #fff;
  color: #3f4b51;
  font-size: 11px;
  cursor: pointer;
}

.rich-toolbar select {
  min-width: 105px;
}

.rich-content {
  min-height: 180px;
  padding: 13px;
  color: #35434a;
  font: 12px/1.55 Verdana, Arial, sans-serif;
  outline: none;
}

.rich-content:empty::before {
  content: attr(data-placeholder);
  color: #a7b0b5;
}

.category-media {
  margin-top: 19px;
  padding: 15px;
  border: 1px solid #e0e5e7;
  background: #fafbfb;
}

.category-media-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.category-media-heading div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.category-media-heading span {
  color: #4c5c64;
  font-size: 12px;
  font-weight: 700;
}

.category-media-heading small {
  color: #929fa5;
  font-size: 9px;
}

.media-upload {
  flex: 0 0 auto;
  padding: 9px 13px;
  background: #24c2ce;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.selected-image-preview {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 12px;
  border: 1px dashed #cbd6da;
  background: #fff;
  color: #9ba6ab;
  font-size: 10px;
}

.selected-image-preview img {
  max-width: 180px;
  max-height: 110px;
  margin: 8px;
  object-fit: contain;
}

.selected-image-preview button,
.category-preview > button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: #3f4e56;
  color: #fff;
  cursor: pointer;
}

.media-empty {
  margin: 10px 0 0;
  color: #9ba5aa;
  font-size: 9px;
}

.media-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, 62px);
  gap: 7px;
  margin-top: 12px;
}

.media-thumb {
  position: relative;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 1px solid #d9e0e2;
  background: #fff;
}

.media-thumb.selected {
  border: 2px solid #24c2ce;
}

.media-thumb-select {
  width: 100%;
  height: 100%;
  padding: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.media-thumb-delete {
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 3px;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font: 700 15px/14px Arial, sans-serif;
  cursor: pointer;
  box-shadow: none;
  opacity: 0;
  transform: scale(.82);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.media-thumb:hover .media-thumb-delete,
.media-thumb:focus-within .media-thumb-delete,
.media-thumb-delete:hover,
.media-thumb-delete:focus-visible {
  background: transparent;
  color: #000;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.category-form-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 4px;
  padding-top: 16px;
  border-top: 1px solid #e2e6e8;
}

.category-form-actions span {
  color: #a1aaae;
  font-size: 10px;
}

.category-form-actions .text-cancel {
  border: 0;
  background: transparent;
  color: #64747b;
  padding: 6px 0;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.category-preview {
  position: fixed;
  inset: 70px;
  z-index: 12;
  overflow: auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #cfdadd;
  box-shadow: 0 18px 60px #25343c66;
}

.category-preview[hidden] {
  display: none;
}

.category-preview > img {
  max-width: 240px;
  max-height: 180px;
  object-fit: contain;
  float: left;
  margin: 0 20px 15px 0;
}

.category-preview small {
  color: #22b8c4;
  font-size: 9px;
  letter-spacing: 1px;
}

.category-preview h3 {
  color: #3e4e56;
  font-size: 23px;
  font-weight: 400;
}

.category-preview p,
.category-preview section {
  color: #5c6970;
  font-size: 12px;
  line-height: 1.6;
}

.category-preview footer {
  clear: both;
  height: auto;
  display: block;
  margin-top: 18px;
  padding: 9px;
  background: #eefafb;
  color: #3f868e;
  font-size: 10px;
}

@media (max-width: 760px) {
  .modal:has(.information-editor) { width: calc(100vw - 12px); height: calc(100vh - 12px); }
  .information-tabs { overflow-x: auto; }
  .information-tabs button { white-space: nowrap; font-size: 12px; }
  .information-workspace { padding: 13px 11px 20px; }
  .category-preview { inset: 20px; }
  .category-media-heading { align-items: flex-start; flex-direction: column; }
}

/* Плавная смена каталога и формы без пересоздания всплывающего окна. */
.information-workspace {
  transition: opacity .16s ease, transform .2s cubic-bezier(.22, .8, .25, 1);
  will-change: opacity, transform;
}

.information-workspace.is-leaving {
  opacity: 0;
  transform: translateX(9px) scale(.997);
}

.information-workspace.is-entering {
  opacity: 0;
  transform: translateX(-9px) scale(.997);
}

.information-footer[hidden] {
  display: none;
}

/* Трёхрядная панель редактора по образцу исходной системы. */
.rich-toolbar {
  display: block;
  padding: 6px 7px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 33px;
}

.toolbar-row + .toolbar-row {
  margin-top: 1px;
}

.toolbar-selects select:nth-child(1) { width: 98px; }
.toolbar-selects select:nth-child(2) { width: 98px; }
.toolbar-selects select:nth-child(3) { width: 98px; }
.toolbar-selects select:nth-child(4) { width: 66px; }

.rich-toolbar button {
  position: relative;
  padding: 0 7px;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.rich-toolbar button span {
  margin-left: 3px;
  font-size: 7px;
}

.rich-toolbar button.active {
  border-color: #24beca;
  background: #eafafb;
  color: #128e98;
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: #d4dadd;
}

.rich-toolbar .align-left { text-align: left; }
.rich-toolbar .align-center { text-align: center; }
.rich-toolbar .align-right { text-align: right; }
.rich-toolbar .align-full { letter-spacing: 2px; }

.rich-content {
  width: 100%;
  height: 240px;
  min-height: 160px;
  max-height: 620px;
  overflow: auto;
  resize: vertical;
}

/* Компактный квадратный блок изображения, выровненный по левому краю. */
.category-media {
  width: 310px;
  max-width: 100%;
  margin-right: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.category-media-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.selected-image-preview {
  width: 160px;
  height: 160px;
  min-height: 160px;
  margin-top: 10px;
}

.selected-image-preview img {
  width: 146px;
  height: 146px;
  max-width: 146px;
  max-height: 146px;
  margin: 6px;
}

.media-library {
  grid-template-columns: repeat(4, 62px);
}

/* Непрерывная древовидная схема каталога. */
.catalog-tree {
  position: relative;
  padding: 2px 0 10px 14px;
}

.catalog-tree::before,
.catalog-children::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 15px;
  width: 1px;
  background: #8fd7dd;
}

.catalog-node-row {
  margin-left: 0;
  padding: 3px 7px 3px 3px;
  border-left: 0;
}

.catalog-node-row::after {
  position: absolute;
  left: -14px;
  top: 14px;
  width: 14px;
  height: 1px;
  background: #8fd7dd;
}

.catalog-children {
  position: relative;
  margin-left: 18px;
  padding-left: 14px;
}

.catalog-article {
  position: relative;
  min-height: 28px;
  margin-left: 0;
  padding: 3px 7px 3px 3px;
  border-left: 0;
}

.catalog-article .tree-branch {
  position: absolute;
  left: -14px;
  top: 14px;
  width: 14px;
  height: 1px;
  background: #8fd7dd;
}

.catalog-article .catalog-node-tools {
  margin-left: 7px;
}

.catalog-article:hover .catalog-node-tools {
  opacity: 1;
}

.catalog-add-row {
  position: relative;
  margin: 5px 0 8px;
  padding-left: 3px;
  border-left: 0;
}

.catalog-add-row::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 14px;
  width: 14px;
  height: 1px;
  background: #8fd7dd;
}

.catalog-root-add {
  margin-top: 8px;
}

/* Графические значки классической панели форматирования. */
.alignment-icon {
  width: 16px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 !important;
}

.alignment-icon i {
  display: block;
  height: 2px;
  background: #343e43;
}

.alignment-icon i:nth-child(odd) { width: 16px; }
.alignment-icon i:nth-child(even) { width: 11px; }
.alignment-icon.center i:nth-child(even) { align-self: center; }
.alignment-icon.right i:nth-child(even) { align-self: flex-end; }
.alignment-icon.full i { width: 16px; }

.toolbar-icon {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(21%) sepia(8%) saturate(757%) hue-rotate(155deg) brightness(95%) contrast(88%);
}

.toolbar-icon.link {
  width: 17px;
  height: 17px;
}

.rich-toolbar button:has(.toolbar-icon) {
  display: inline-grid;
  place-items: center;
}

.rich-toolbar button[data-source-view] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.unlink-button::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 14px;
  height: 1px;
  background: #7d878c;
  transform: rotate(-45deg);
}

/* Пиксельное выравнивание: линия → треугольник → название. */
.catalog-tree {
  padding-top: 0;
  padding-bottom: 0;
}

.catalog-tree::before,
.catalog-children::before {
  top: 14px;
  bottom: 14px;
}

.catalog-node-row,
.catalog-article,
.catalog-add-row {
  min-height: 28px;
  margin-top: 0;
  margin-bottom: 0;
}

.catalog-node-row {
  gap: 3px;
  padding: 0 7px 0 0;
}

.catalog-node-row::after,
.catalog-article .tree-branch,
.catalog-add-row::before {
  top: 50%;
  transform: translateY(-.5px);
}

.catalog-toggle {
  flex: 0 0 18px;
  margin: 0;
  transform: translateY(-1px);
  line-height: 1;
}

.catalog-node-copy {
  min-height: 20px;
  justify-content: center;
}

.catalog-node-copy strong {
  line-height: 14px;
}

.catalog-node-copy small {
  line-height: 11px;
}

.catalog-article {
  gap: 3px;
  padding: 0 7px 0 3px;
}

.catalog-add-row {
  align-items: center;
  padding-left: 3px;
}

.catalog-root-add {
  margin-top: 0;
}

.instant-tree .catalog-children {
  transition: none !important;
}

/* Ось дочерней ветки проходит через нижнюю вершину раскрытого треугольника. */
.catalog-children {
  margin-left: 15px;
}

.catalog-children::before {
  top: -4px;
}

.catalog-node.expanded > .catalog-children {
  overflow: visible;
}

.catalog-node:not(.expanded) > .catalog-children {
  overflow: hidden;
}

.catalog-toggle {
  transform: translateY(-2px);
}

.catalog-node-row::after {
  width: 11px;
  top: calc(50% + 2.2px);
}

/*
 * Универсальная геометрия соединителей дерева.
 * Закрытый треугольник получает линию в центр левого ребра. У раскрытого
 * треугольника линия смотрит в левую вершину, а дочерняя вертикаль проходит
 * через нижнюю вершину. Эталонный просвет во всех случаях — 5px.
 */
.catalog-node:not(.expanded) > .catalog-node-row::after {
  top: calc(50% + 2px);
}

.catalog-node.expanded > .catalog-node-row::after {
  top: calc(50% - 4px);
}

/*
 * Полная ширина отступа дочернего содержимого остаётся прежней (29px):
 * меняется только положение вертикальной оси, поэтому текст и иконки
 * следующих уровней не прыгают по горизонтали.
 */
.catalog-children > .catalog-node > .catalog-children {
  margin-left: 6px;
  padding-left: 23px;
}

.catalog-separator-children > .catalog-node > .catalog-children {
  margin-left: 15px;
  padding-left: 14px;
}

/*
 * Единая вертикаль одноуровневых статей и раскрывающихся категорий.
 * У категории место слева занимает треугольник, поэтому её строка немного
 * сдвигается к оси дерева, а статья без треугольника получает равный отступ.
 */
.catalog-children > .catalog-node > .catalog-node-row {
  left: -9px;
  width: calc(100% + 9px);
}

.catalog-children > .catalog-node > .catalog-node-row::after {
  left: -5px;
  width: 11px;
}

.catalog-children > .catalog-article {
  padding-left: 16px;
}

.catalog-children > .catalog-article .tree-branch {
  width: 25px;
}

/* Первый уровень внутри линии раздела использует тот же эталонный зазор. */
.catalog-separator-children > .catalog-node > .catalog-node-row::after {
  width: 20px;
}

.catalog-separator-children > .catalog-article .tree-branch {
  width: 12px;
}

/* Перетаскивание элементов структуры данных. */
.catalog-node-row > .catalog-item-icon,
.catalog-article > .catalog-item-icon {
  margin-block: 3px;
}

.catalog-tree .catalog-toggle {
  background: transparent;
  box-shadow: none;
  outline: none;
}

.catalog-tree .catalog-toggle:focus-visible {
  color: #1699a4;
  text-shadow: 0 0 5px rgba(22,153,164,.24);
}

/*
 * Треугольники строятся как геометрические фигуры, а не как шрифтовые знаки.
 * Поэтому их вершины имеют одинаковые координаты во всех браузерах и при
 * любом уровне вложенности.
 */
.catalog-tree .catalog-toggle {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 18px;
  padding: 0 !important;
  transform: none;
  font-size: 0;
  line-height: 0;
}

.catalog-tree .catalog-toggle::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 4.5px;
  width: 7px;
  height: 9px;
  background: #5a6870;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.catalog-node.expanded > .catalog-node-row > .catalog-toggle::before,
.catalog-separator-group.expanded > .catalog-separator > .separator-toggle::before {
  left: 11px;
  top: 5px;
  width: 8px;
  height: 8px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Горизонталь приходит точно в вершину/центр ребра с просветом 5px. */
.catalog-node:not(.expanded) > .catalog-node-row::after {
  top: 17.5px;
}

.catalog-node.expanded > .catalog-node-row::after {
  top: 13.5px;
}

/* Дочерняя вертикаль начинается через 5px после нижней вершины ▼. */
.catalog-node > .catalog-children::before {
  top: -8px;
}

/*
 * Ответвления статьи и строк добавления начинаются непосредственно на
 * родительской вертикали. Справа их прежняя конечная точка сохраняется.
 */
.catalog-children > .catalog-article .tree-branch {
  left: -23px;
  width: 34px;
}

.catalog-children > .catalog-add-row::before {
  left: -23px;
  width: 23px;
}

/* У вложенной категории линия начинается на правой границе вертикали. */
.catalog-children > .catalog-node > .catalog-node-row::after {
  left: -5px;
  width: 11px;
}

/* Первый уровень внутри линии раздела имеет собственный отступ 13px. */
.catalog-separator-children > .catalog-node > .catalog-children > .catalog-article .tree-branch {
  left: -14px;
  width: 25px;
}

.catalog-separator-children > .catalog-node > .catalog-children > .catalog-add-row::before {
  left: -14px;
  width: 14px;
}

.catalog-node > .catalog-node-row,
.catalog-article {
  cursor: grab;
  transition: background-color .18s ease, box-shadow .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
}

.catalog-node > .catalog-node-row:active,
.catalog-article:active,
.catalog-separator-group:active > .catalog-separator {
  cursor: grabbing;
}

.catalog-node-tools button,
.catalog-toggle,
.catalog-add-row button {
  cursor: pointer;
}

.tree-dragging > .catalog-node-row,
.catalog-article.tree-dragging,
.catalog-separator-group.tree-dragging > .catalog-separator {
  opacity: .38;
  transform: scale(.985);
  background: #effafb;
  cursor: grabbing;
}

.catalog-node.tree-drop-before > .catalog-node-row,
.catalog-article.tree-drop-before {
  box-shadow: 0 -2px 0 #20c5d1, 0 -6px 14px #20c5d12b;
  background: linear-gradient(180deg, #e9fbfc 0, #fff 52%);
}

.catalog-node.tree-drop-after > .catalog-node-row,
.catalog-article.tree-drop-after {
  box-shadow: 0 2px 0 #20c5d1, 0 6px 14px #20c5d12b;
  background: linear-gradient(0deg, #e9fbfc 0, #fff 52%);
}

.tree-just-dropped > .catalog-node-row,
.catalog-article.tree-just-dropped {
  animation: tree-settle .5s cubic-bezier(.18, .9, .24, 1);
}

@keyframes tree-settle {
  0% { transform: translateY(-4px) scale(.99); background: #dcf8fa; }
  55% { transform: translateY(1px) scale(1.004); background: #effbfc; }
  100% { transform: none; background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-node > .catalog-node-row,
  .catalog-article,
  .tree-just-dropped > .catalog-node-row,
  .catalog-article.tree-just-dropped {
    transition: none;
    animation: none;
  }
}

/* Интерактивный предпросмотр мобильного приложения. */
.phone-screen {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #eef3f8;
  color: #17213a;
  font-family: Verdana, Arial, sans-serif;
}

.phone-screen button,
.phone-screen input {
  font: inherit;
}

.mobile-home-screen,
.mobile-feed-screen,
.mobile-detail-screen,
.mobile-instructions-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  animation: mobile-screen-in .27s cubic-bezier(.22,.82,.25,1) both;
}

.mobile-instruction-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(93,101,112,.46) transparent;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-instruction-list::-webkit-scrollbar { width: 5px; }
.mobile-instruction-list::-webkit-scrollbar-track { background: transparent; }
.mobile-instruction-list::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(93,101,112,.46); }

.mobile-home-screen {
  overflow-y: auto;
  background:
    linear-gradient(180deg, #729dd3e8, #b8d8eee8),
    radial-gradient(circle at 80% 85%, #fff 0 2%, transparent 28%);
  scrollbar-width: thin;
}

.mobile-home-screen:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 145px;
  pointer-events: none;
  opacity: .22;
  background: linear-gradient(155deg, transparent 42%, #4d92c4 43% 47%, transparent 48%), linear-gradient(25deg, transparent 48%, #eaf6ff 49% 54%, transparent 55%);
}

.mobile-home-brand {
  position: relative;
  z-index: 2;
  height: 60px;
  display: block;
  padding: 8px 7px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .5px;
  background: linear-gradient(180deg, #557faecf, #6593c5b8);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 #ffffff3d;
}

.mobile-home-identity {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-home-identity > span {
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: .35px;
}

.mobile-home-action {
  width: 32px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.mobile-home-actions {
  position: absolute;
  top: 8px;
  width: fit-content;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-home-actions-left {
  left: 14px;
  justify-content: flex-start;
}

.mobile-home-actions-right {
  right: 14px;
  justify-content: flex-end;
}

.mobile-home-action > .mobile-home-icon-file {
  display: block;
  pointer-events: none;
}

.mobile-search-action > .mobile-home-icon-file {
  width: 32px;
  height: 32px;
}

.mobile-refresh-action > .mobile-home-icon-file {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mobile-share-action > .mobile-home-icon-file {
  width: 25px;
  height: 25px;
}

.mobile-account-action > .mobile-home-icon-file {
  width: 27px;
  height: 27px;
}

.mobile-home-action:active {
  border-radius: 9px;
  background: #173d682e;
  box-shadow: inset 0 0 0 1px #ffffff24;
}

.mobile-home-identity > img {
  width: 27px;
  height: 27px;
  padding: 3px;
  border-radius: 7px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 2px 5px #294e7338;
}

.mobile-home-menu {
  position: relative;
  z-index: 1;
  padding: 8px 11px 18px;
}

.mobile-global-search {
  position: sticky;
  top: 58px;
  z-index: 3;
  height: 41px;
  display: grid;
  grid-template-columns: 24px 1fr 30px;
  align-items: center;
  padding: 0 8px;
  color: #6d7883;
  background: #fff;
  border-bottom: 1px solid #d2d8de;
  box-shadow: 0 2px 8px #2b4e6c1c;
  animation: mobile-search-in .2s ease both;
}

.mobile-global-search input {
  min-width: 0;
  height: 31px;
  border: 0;
  outline: 0;
  color: #273044;
  background: transparent;
  font-size: 10px;
}

.mobile-global-search button {
  border: 0;
  color: #74808a;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.mobile-global-results {
  position: relative;
  z-index: 1;
  min-height: calc(100% - 99px);
  padding: 7px;
  background: #f1f4f7;
}

.mobile-global-results .mobile-event-card {
  margin-bottom: 6px;
  border: 1px solid #d9dee3;
  border-radius: 7px;
}

.mobile-global-block {
  width: 100%;
  min-height: 61px;
  display: grid;
  grid-template-columns: 39px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 8px 11px;
  border: 1px solid #d9dee3;
  border-radius: 7px;
  color: #253344;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.mobile-global-block > img { width: 34px; height: 34px; object-fit: contain; filter: brightness(.6); }
.mobile-global-block > span { display: flex; flex-direction: column; gap: 4px; }
.mobile-global-block strong { font-size: 10px; }
.mobile-global-block small { color: #7b858e; font-size: 8px; }

.mobile-home-menu button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 42px 1fr 14px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 0;
  border-bottom: 1px solid #ffffff54;
  color: #fff;
  text-align: left;
  font-size: 12px;
  background: transparent;
  cursor: pointer;
}

.mobile-home-menu button:hover {
  background: #ffffff18;
  transform: translateX(2px);
}

.mobile-home-menu img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.mobile-home-menu .mobile-tint-icon { filter: brightness(0) invert(1); }

.mobile-home-menu b {
  color: #ffffffb8;
  font-size: 22px;
  font-weight: 400;
}

.mobile-appbar {
  height: 48px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #86a8f1, #7199ef);
  box-shadow: 0 2px 8px #273f7530;
}

.mobile-appbar > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.mobile-back,
.mobile-app-actions button {
  width: 38px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.mobile-back {
  font: 36px/1 Arial, sans-serif;
  padding-bottom: 5px;
}

.mobile-app-actions {
  display: flex;
}

.mobile-app-actions button {
  font: 27px/1 Arial, sans-serif;
}

.mobile-app-actions button[data-mobile-filter] { position: relative; }
.mobile-app-actions button[data-mobile-filter].active::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #ff3b30;
}

.mobile-app-actions img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.mobile-app-actions .mobile-filter-tags-icon {
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: grayscale(1) invert(1) brightness(3) contrast(5);
  mix-blend-mode: screen;
}

.mobile-detail-screen .mobile-appbar > strong {
  font-size: 13.5px;
}

.mobile-back {
  font-size: 40px;
  line-height: 1;
  transform: translateY(-1px);
}

.mobile-app-actions .mobile-article-share-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
}

.mobile-share-nodes {
  position: relative;
  width: 25px;
  height: 25px;
  display: block;
  background:
    radial-gradient(circle at 4px 12.5px, #fff 0 3px, transparent 3.3px),
    radial-gradient(circle at 20px 4.5px, #fff 0 3px, transparent 3.3px),
    radial-gradient(circle at 20px 20.5px, #fff 0 3px, transparent 3.3px);
}

.mobile-share-nodes:before,
.mobile-share-nodes:after {
  content: "";
  position: absolute;
  left: 6px;
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transform-origin: left center;
}

.mobile-share-nodes:before {
  top: 11px;
  transform: rotate(-27deg);
}

.mobile-share-nodes:after {
  top: 13px;
  transform: rotate(27deg);
}

.mobile-feed-search,
.mobile-detail-search {
  height: 40px;
  display: grid;
  grid-template-columns: 24px 1fr 30px;
  align-items: center;
  padding: 0 7px;
  background: #fff;
  border-bottom: 1px solid #d8dde4;
  animation: mobile-search-in .2s ease both;
}

.mobile-detail-search {
  grid-template-columns: minmax(0, 1fr) auto auto 26px;
  gap: 4px;
}
.detail-search-status {
  min-width: 35px;
  color: #77828b;
  font-size: 8px;
  text-align: center;
  white-space: nowrap;
}
.mobile-detail-search .detail-search-next {
  min-width: 39px;
  height: 25px;
  padding: 0 6px;
  border-radius: 5px;
  color: #fff;
  background: #22b9c5;
  font-size: 8px;
}
.mobile-detail-search .detail-search-next:disabled {
  color: #9da6ac;
  background: #edf0f2;
  cursor: default;
}
.mobile-feed-search input,
.mobile-detail-search input {
  min-width: 0;
  height: 30px;
  border: 0;
  outline: 0;
  color: #273044;
  font-size: 10px;
}
.mobile-feed-search button,
.mobile-detail-search button {
  border: 0;
  color: #748090;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.mobile-sub-blocks {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: 80px;
  padding: 8px 0 7px;
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(135deg, #7fa5cf, #a8c8e2);
  border-bottom: 1px solid #d1dae2;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.mobile-sub-blocks.count-1,
.mobile-sub-blocks.count-2,
.mobile-sub-blocks.count-3,
.mobile-sub-blocks.count-4 {
  display: grid;
  overflow-x: hidden;
}
.mobile-sub-blocks.count-1 { grid-template-columns: 1fr; }
.mobile-sub-blocks.count-2 { grid-template-columns: repeat(2, 1fr); }
.mobile-sub-blocks.count-3 { grid-template-columns: repeat(3, 1fr); }
.mobile-sub-blocks.count-4 { grid-template-columns: repeat(4, 1fr); }
.mobile-sub-blocks.is-scrollable button {
  flex: 0 0 25%;
  min-width: 25%;
  width: 25%;
}

.mobile-sub-blocks button {
  min-width: 0;
  width: 100%;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 2px 3px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 8px;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 2px #385a7859;
  cursor: pointer;
  scroll-snap-align: start;
}
.mobile-sub-blocks button:hover { background: #ffffff12; transform: translateY(-1px); }
.mobile-sub-blocks img { width: 35px; height: 35px; object-fit: contain; }
.mobile-sub-blocks img:not(.mobile-custom-block-icon) { filter: brightness(0) invert(1); opacity: .88; }
.mobile-sub-blocks .mobile-custom-block-icon { filter: none; opacity: 1; border: 0; border-radius: 8px; background: transparent; box-shadow: none; }
.mobile-sub-blocks span { display: block; max-width: 62px; overflow: hidden; text-overflow: ellipsis; }

.mobile-event-list {
  height: calc(100% - 48px);
  overflow-y: auto;
  background: #f4f5f7;
  scrollbar-width: thin;
}
.mobile-feed-search + .mobile-sub-blocks + .mobile-event-list,
.mobile-feed-search + .mobile-event-list { height: calc(100% - 88px); }
.mobile-sub-blocks + .mobile-event-list { height: calc(100% - 128px); }
.mobile-feed-search + .mobile-sub-blocks + .mobile-event-list { height: calc(100% - 168px); }

.mobile-event-card {
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid #cfd4da;
  color: #11182d;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.mobile-event-card:hover { background: #f8fbff; transform: translateX(2px); }

.event-symbol {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 2px;
  color: #fff;
}
.event-symbol.info {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #3db9ee, #0872b1 70%);
  box-shadow: inset 0 0 0 1px #075f94, 0 1px 3px #28536c42;
  font: italic 700 29px/1 Georgia, serif;
}
.event-symbol.red { background: #ff313b; }
.event-symbol.blue { background: #4d72bd; }
.event-symbol.yellow { background: #ffe52d; }
.event-symbol.image { background: #eef2f5; }
.event-symbol.image img { width: 100%; height: 100%; object-fit: cover; }

/* CSV import and export */
.catalog-node-tools .csv-tool {
  width: 40px;
  min-width: 40px;
  padding: 0 4px;
  font: 700 9px/1 Verdana, Geneva, sans-serif;
  letter-spacing: -.25px;
  color: #69767d;
  background: #f4f7f8;
  border: 1px solid #d9e1e4;
}
.catalog-node-tools .csv-tool:hover { color: #13b8c5; border-color: #61ced6; background: #effcfd; }
.catalog-node-tools .csv-tool.import { margin-left: 3px; }

.csv-workspace { max-width: 760px; padding: 24px 26px 34px; font-family: Verdana, Geneva, sans-serif; color: #35434b; }
.csv-workspace > header { margin-bottom: 22px; }
.csv-workspace > header > span { color: #16b8c5; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.csv-workspace > header h3 { margin: 7px 0 8px; font-size: 21px; font-weight: 400; }
.csv-workspace > header p { max-width: 650px; margin: 0; color: #748087; font-size: 12px; line-height: 1.6; }

.csv-dropzone { min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px dashed #79cdd3; background: linear-gradient(180deg,#fbffff,#f1fbfc); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.csv-dropzone:hover { border-color: #12b8c5; background: #edfbfc; transform: translateY(-1px); }
.csv-dropzone strong { padding: 10px 18px; color: white; background: #18bdca; font-size: 12px; font-weight: 700; }
.csv-dropzone small { color: #7b878d; font-size: 10px; }

.csv-preview { margin-top: 18px; animation: csvReveal .24s ease both; }
@keyframes csvReveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.csv-file-summary, .csv-export-card { padding: 18px; border: 1px solid #dce4e7; background: #fff; box-shadow: 0 5px 18px #33444d12; }
.csv-file-summary > strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.csv-file-summary > span { display: block; margin-top: 5px; color: #7d888e; font-size: 10px; }
.csv-file-summary dl, .csv-export-card dl { display: flex; gap: 10px; margin: 16px 0 0; }
.csv-file-summary dl div, .csv-export-card dl div { min-width: 112px; padding: 10px 14px; background: #f1f6f7; }
.csv-file-summary dt, .csv-export-card dt { color: #12b7c4; font-size: 19px; font-weight: 700; }
.csv-file-summary dd, .csv-export-card dd { margin: 3px 0 0; color: #69757c; font-size: 10px; }

.csv-mode { display: grid; gap: 8px; margin: 16px 0 0; padding: 14px; border: 1px solid #dce4e7; }
.csv-mode legend { padding: 0 7px; color: #5d696f; font-size: 11px; font-weight: 700; }
.csv-mode label { display: flex; gap: 10px; align-items: flex-start; padding: 11px; background: #f7f9fa; cursor: pointer; }
.csv-mode input { margin-top: 3px; accent-color: #15b9c6; }
.csv-mode span { display: grid; gap: 3px; }
.csv-mode strong { font-size: 11px; }
.csv-mode small { color: #7b868c; font-size: 9px; line-height: 1.45; }
.csv-warning { margin: 12px 0; padding: 11px 13px; color: #7a681f; background: #fff9df; border-left: 3px solid #e4c451; font-size: 10px; line-height: 1.5; }
.csv-apply { min-width: 150px; }
.csv-error { display: grid; gap: 5px; padding: 14px; color: #a43131; background: #fff1f1; border: 1px solid #efcccc; font-size: 11px; }
.csv-export-card p { max-width: 610px; margin: 16px 0; color: #748087; font-size: 11px; line-height: 1.6; }

.event-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.event-copy strong { color: #10182c; font-size: 11px; line-height: 1.3; font-weight: 400; }
.event-copy > span { color: #4e5661; font-size: 9px; line-height: 1.45; }
.event-copy small { color: #7a7f87; font-size: 8px; line-height: 1.35; }

.mobile-no-results {
  height: 190px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 24px;
  color: #667381;
  text-align: center;
  font-size: 10px;
}
.mobile-no-results b { color: #344252; font-size: 12px; }

.mobile-sheet {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  background: #15223763;
  backdrop-filter: blur(2px);
  animation: fade-in .18s ease both;
}
.mobile-sheet-card {
  width: 100%;
  max-height: 82%;
  overflow: auto;
  padding: 17px 16px 15px;
  border-radius: 17px 17px 0 0;
  background: #fff;
  box-shadow: 0 -8px 26px #1d2d463d;
  animation: mobile-sheet-up .3s cubic-bezier(.2,.85,.25,1) both;
}
.mobile-sheet-card h4 { margin: 0 0 5px; color: #202a38; font-size: 13px; }
.mobile-sheet-card p { margin: 0 0 12px; color: #727c88; font-size: 9px; }
.mobile-tag-options { display: grid; gap: 5px; max-height: 210px; overflow: auto; }
.mobile-tag-options label { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 7px; background: #f4f6f8; font-size: 9px; }
.mobile-tag-options input { accent-color: #22b7c3; }
.mobile-sheet-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 13px; }
.mobile-sheet-actions button,
.mobile-share-options button,
.mobile-sheet-close {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  color: #46515e;
  background: #edf0f3;
  font-size: 9px;
  cursor: pointer;
}
.mobile-sheet-actions .primary { color: #fff; background: #22b9c5; }
.mobile-share-options { display: grid; gap: 7px; }
.mobile-share-options button { color: #26384a; text-align: left; padding: 0 12px; background: #f0f4f7; }
.mobile-sheet-close { width: 100%; margin-top: 9px; color: #d55353; background: #fff4f4; }

.mobile-detail-scroll {
  height: calc(100% - 48px);
  overflow-y: auto;
  background: #fff;
  scrollbar-width: thin;
}
.mobile-detail-search + .mobile-detail-scroll { height: calc(100% - 88px); }
.mobile-pdf-button {
  width: calc(100% - 14px);
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 7px;
  padding: 7px 11px;
  border: 1px solid #d2d7db;
  border-radius: 10px;
  color: #505a62;
  background: linear-gradient(145deg, #f6f7f8, #e8ebed);
  font-size: 8px;
  text-align: left;
  box-shadow: 0 4px 10px #28343d1c, inset 0 1px 0 #fff, inset 0 -1px 0 #bac2c722;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.mobile-pdf-button:hover { background: linear-gradient(145deg, #fafbfb, #edf0f1); border-color: #c7cdd1; box-shadow: 0 6px 14px #27333c24, inset 0 1px 0 #fff; transform: translateY(-1px); }
.mobile-pdf-button:active { transform: translateY(1px); box-shadow: 0 2px 6px #27333c1f, inset 0 1px 3px #8d979d21; }
.mobile-pdf-button .pdf-icon-frame {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
}

.mobile-pdf-button .pdf-icon-frame img {
  width: 27px;
  height: 30px;
  display: block;
  object-fit: contain;
}
.mobile-event-detail { padding: 8px 16px 24px; color: #171717; }
.mobile-event-detail .detail-body { color: #171717; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.mobile-event-detail .detail-body img { display:block;box-sizing:border-box;width:auto!important;max-width:100%!important;height:auto!important;margin-left:auto;margin-right:auto;object-fit:contain; }
.mobile-event-detail .detail-body p,.mobile-event-detail .detail-body div,.mobile-event-detail .detail-body figure { max-width:100%;box-sizing:border-box; }
.mobile-event-detail .detail-body figure { margin-left:0;margin-right:0; }
.mobile-event-detail .detail-body audio {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.mobile-event-detail .detail-body h1,
.mobile-event-detail .detail-body h2,
.mobile-event-detail .detail-body h3 { color: #c8352e; font-size: 13px; }
.mobile-event-detail .detail-body mark { padding: 0 1px; border-radius: 2px; background: #fff0a8; }
.mobile-event-detail .detail-body mark.active { background: #ffd15c; box-shadow: 0 0 0 2px #ffd15c55; }
.detail-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 20px; }
.detail-tags span { padding: 4px 6px; border-radius: 9px; color: #65717b; background: #eee; font-size: 8px; }
.detail-tags .detail-tags-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .2;
  transform: translateY(-1px);
}
.mobile-event-detail .detail-summary {
  margin: 18px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #edf0f2;
  color: #969ba1;
  font-size: 10px;
  line-height: 1.45;
}

.detail-author-note {
  margin: 25px 0 2px;
  color: #92979b;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 9px;
  line-height: 1.55;
}
.detail-author-note-mark { width: calc(100% - 8px); margin: 0 4px 5px; }
.detail-author-note-mark img { display: block; width: 29px; height: 28px; margin-left: 2px; object-fit: contain; object-position: left bottom; }
.detail-author-note-mark span { display: block; width: 100%; height: 1px; background: rgba(117, 126, 132, .34); }
.detail-author-note p { margin: 0; }

.feed-settings { max-width: 720px; padding: 25px 28px 40px; font-family: Verdana, Geneva, sans-serif; }
.feed-settings header > span { color: #29b8c4; font-size: 10px; font-weight: 700; letter-spacing: .45px; }
.feed-settings header h3 { margin: 7px 0 6px; color: #34434d; font-size: 20px; font-weight: 400; }
.feed-settings header p { max-width: 590px; margin: 0 0 22px; color: #849099; font-size: 11px; line-height: 1.55; }
.feed-setting-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid #dce3e7;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff, #f8fafb);
  box-shadow: 0 5px 16px #34434d0b;
  cursor: pointer;
}
.feed-setting-card > input { position: absolute; opacity: 0; pointer-events: none; }
.feed-setting-switch { position: relative; width: 40px; height: 22px; border-radius: 13px; background: #c6cdd1; transition: .2s ease; }
.feed-setting-switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #27343e44; transition: .2s cubic-bezier(.22,.82,.25,1); }
.feed-setting-card > input:checked + .feed-setting-switch { background: #25bdc8; }
.feed-setting-card > input:checked + .feed-setting-switch i { transform: translateX(18px); }
.feed-setting-copy { display: flex; flex-direction: column; gap: 5px; }
.feed-setting-copy strong { color: #34434d; font-size: 13px; }
.feed-setting-copy small { color: #7c8992; font-size: 10px; line-height: 1.5; }
.author-note-input { min-height: 82px; }
.author-note-hint { margin: 5px 0 14px; color: #9ba6ab; font: 9px/1.45 Verdana, Geneva, sans-serif; }

/* Мобильная иерархия автоматически формируемого архива. */
.mobile-archive-screen {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  animation: mobile-screen-in .22s ease both;
}
.mobile-archive-screen > .mobile-appbar,
.mobile-archive-search,
.mobile-archive-context { flex: 0 0 auto; }
.mobile-archive-search {
  height: 43px;
  display: grid;
  grid-template-columns: 20px 1fr 22px;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  color: #9aa2a7;
  background: #fff;
  border-bottom: 1px solid #596269;
}
.mobile-archive-search input { min-width: 0; border: 0; outline: 0; color: #17212a; background: transparent; font: 12px Verdana, Arial, sans-serif; }
.mobile-archive-search button { width: 22px; height: 22px; padding: 0; border: 0; color: #7e8a90; background: transparent; font-size: 18px; }
.mobile-archive-context { padding: 11px 12px; border-bottom: 1px solid #596269; color: #202b33; }
.mobile-archive-context strong { display: block; margin-bottom: 4px; font: 400 12px/1.3 Verdana, Arial, sans-serif; }
.mobile-archive-context span { font: 9px/1.5 Verdana, Arial, sans-serif; }
.mobile-archive-list {
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 8px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(93,101,112,.46) transparent;
  -webkit-overflow-scrolling: touch;
}
.mobile-archive-context + .mobile-archive-list { height: auto; }
.mobile-archive-list::-webkit-scrollbar { width: 5px; }
.mobile-archive-list::-webkit-scrollbar-track { background: transparent; }
.mobile-archive-list::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(93,101,112,.46); }
.mobile-archive-category,
.mobile-archive-event {
  width: 100%;
  min-height: 65px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid #697177;
  color: #101b27;
  background: #fff;
  text-align: left;
}
.mobile-archive-event { grid-template-columns: 34px minmax(0, 1fr); }
.mobile-archive-category:active,
.mobile-archive-event:active { background: #f2f7fb; }
.mobile-archive-mark { width: 32px; height: 32px; background: var(--archive-color); box-shadow: inset 0 0 0 1px #24343d10; }
.mobile-archive-category > span:nth-child(2),
.mobile-archive-event > span:nth-child(2) { min-width: 0; }
.mobile-archive-category strong,
.mobile-archive-event strong { display: block; color: #101b27; font: 400 12px/1.3 Verdana, Arial, sans-serif; }
.mobile-archive-category small,
.mobile-archive-event small { display: block; margin-top: 4px; color: #343f47; font: 9px/1.45 Verdana, Arial, sans-serif; }
.mobile-archive-event small { color: #9a9fa3; }
.mobile-archive-category > b { color: #98a2a8; font-size: 18px; font-weight: 400; }

@keyframes mobile-screen-in { from { opacity: 0; transform: translateX(7px); } to { opacity: 1; transform: none; } }
@keyframes mobile-search-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes mobile-sheet-up { from { opacity: .6; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Визуальное разделение основных и вспомогательных блоков. */
.block-card.main-block {
  background: linear-gradient(145deg, #e1e5e7, #e8ebed);
  border: 1px solid #d0d6d9;
  border-left: 4px solid #aeb9be;
  box-shadow: 0 3px 8px #35444e12;
}

.block-card.sub {
  background: linear-gradient(145deg, #fafbfb, #f3f5f6);
  border: 1px solid #e2e6e8;
  border-left: 4px solid #d4dcdf;
  box-shadow: 0 2px 5px #35444e0b;
}

.block-card.sub h3 { color: #6bcbd2; }
.block-card.sub p { color: #849096; }
.block-card.sub .block-icon { opacity: .78; }

.sub-blocks-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 17px 0 14px;
  color: #cb5454;
  font: 700 9px/1 Verdana, Arial, sans-serif;
  letter-spacing: .9px;
}

.sub-blocks-divider::before,
.sub-blocks-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #dc6969);
}

.sub-blocks-divider::after {
  background: linear-gradient(90deg, #dc6969, transparent);
}

/* Автоматически формируемое дерево блока «Архив». */
.modal:has(.archive-editor) { width: min(780px, calc(100vw - 32px)); height: min(760px, calc(100vh - 28px)); padding: 0; overflow: hidden; }
.archive-editor { height: 100%; display: grid; grid-template-rows: auto 1fr auto; font-family: Verdana, Arial, sans-serif; }
.archive-editor-workspace { overflow: auto; padding: 18px 22px 24px; background: #fff; }
.archive-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.archive-editor-heading h3 { margin: 0 0 5px; color: #3f4d55; font-size: 18px; font-weight: 400; }
.archive-editor-heading p { margin: 0; color: #87939a; font-size: 10px; }
.archive-editor-heading > span { flex: 0 0 auto; padding: 5px 8px; color: #1499a5; background: #e8f9fa; border-radius: 2px; font-size: 9px; }
.archive-admin-tree { margin-top: 12px; border-top: 1px solid #dfe5e8; }
.archive-admin-node { position: relative; }
.archive-admin-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 18px 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-left: calc(var(--archive-depth) * 18px);
  padding: 7px 8px 7px 0;
  border-bottom: 1px solid #e2e7e9;
}
.archive-admin-toggle { width: 18px; height: 18px; padding: 0 !important; color: #677780; background: transparent; font-size: 9px; }
.archive-admin-toggle-spacer { width: 18px; }
.archive-color-mark { width: 28px; height: 28px; background: var(--archive-color); box-shadow: inset 0 0 0 1px #34444d12; }
.archive-admin-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.archive-admin-copy strong { color: #33434c; font-size: 12px; font-weight: 400; }
.archive-admin-copy small { color: #89949a; font-size: 9px; line-height: 1.35; }
.archive-admin-children { display: none; }
.archive-admin-node.expanded > .archive-admin-children { display: block; animation: archive-children-in .2s ease both; }
@keyframes archive-children-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* Document event import */
.article-document-dropzone {
  min-height: 132px;
  margin: 14px 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed #70cbd3;
  border-radius: 5px;
  color: #718087;
  background: linear-gradient(180deg, #fbfeff, #f2fafb);
  text-align: center;
  cursor: pointer;
  font: 10px/1.45 Verdana, Geneva, sans-serif;
  transition: .2s ease;
}
.article-document-dropzone strong { color: #22afbb; font-size: 12px; }
.article-document-dropzone small { color: #87949a; }
.article-document-dropzone span { max-width: 510px; color: #9aa5aa; font-size: 9px; }
.article-document-dropzone:hover,
.article-document-dropzone.is-dragover { border-color: #18aeba; background: #eafafb; transform: translateY(-1px); box-shadow: 0 5px 18px #42b9c31c; }
.article-document-dropzone.is-processing { cursor: progress; }
.article-document-dropzone.is-complete { border-style: solid; border-color: #60c2a1; background: #f0fbf7; }
.article-document-dropzone.is-error { border-color: #dd7770; background: #fff5f4; }
.feed-ai-status { margin-top: 10px; padding: 8px 10px; border-left: 3px solid #d5a84d; color: #7c6a42; background: #fff9e9; font: 9px/1.4 Verdana, Geneva, sans-serif; }
.feed-ai-status.ready { border-left-color: #48b995; color: #377963; background: #effaf6; }
.document-import-workspace { max-width: 760px; margin: 0 auto; color: #44535b; font-family: Verdana, Arial, sans-serif; }
.document-import-workspace > header span { color: #1cb7c5; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.document-import-workspace > header h3 { margin: 5px 0 7px; color: #3d4b53; font-size: 19px; font-weight: 400; }
.document-import-workspace > header p { margin: 0 0 16px; color: #819097; font-size: 10px; line-height: 1.55; }
.document-dropzone { min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #69cbd3; background: linear-gradient(180deg,#f9feff,#f1fafb); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.document-dropzone:hover { border-color: #15aeba; background: #effcfd; transform: translateY(-1px); }
.document-dropzone strong { padding: 9px 16px; color: #fff; background: #1bb9c7; font-size: 11px; font-weight: 700; }
.document-dropzone small { color: #86949b; font-size: 9px; }
.document-import-status { margin-top: 12px; font-size: 10px; }
.document-import-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 15px 0 9px; padding: 10px 12px; border-left: 3px solid #21bac7; background: #f5f9fa; }
.document-import-summary strong { color: #3b4a52; font-size: 11px; }
.document-import-summary span { color: #75848b; font-size: 9px; text-align: right; }
.document-candidates { display: grid; gap: 10px; }
.document-candidate { padding: 13px; border: 1px solid #dce4e7; background: #fff; box-shadow: 0 2px 7px #3c525c0b; }
.document-candidate-check { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; color: #45535a; font-size: 10px; }
.document-candidate-check input { accent-color: #19b9c6; }
.document-candidate-check b { margin-left: auto; padding: 4px 7px; border-radius: 2px; font-size: 8px; font-weight: 400; }
.document-candidate-check b.medium { color: #867126; background: #fff8d9; }
.document-candidate-check b.low { color: #a44d46; background: #fff0ee; }
.document-candidate-grid { display: grid; grid-template-columns: minmax(0,1fr) 170px; gap: 9px; }
.document-candidate label:not(.document-candidate-check) { display: grid; gap: 5px; margin-bottom: 9px; color: #6d7b82; font-size: 9px; }
.document-candidate input:not([type="checkbox"]), .document-candidate select, .document-candidate textarea { box-sizing: border-box; width: 100%; padding: 8px 9px; border: 1px solid #d4dde0; color: #34434a; background: #fff; outline: 0; resize: vertical; font: 10px/1.45 Verdana, Arial, sans-serif; }
.document-candidate input:focus, .document-candidate select:focus, .document-candidate textarea:focus { border-color: #3ac1cc; box-shadow: 0 0 0 2px #3ac1cc18; }
.document-candidate details { margin: 4px 0 8px; border: 1px solid #e1e7e9; background: #fafcfc; }
.document-candidate summary { padding: 8px 10px; color: #5b6970; cursor: pointer; font-size: 9px; }
.document-candidate summary span { float: right; color: #1ca8b4; }
.document-original { max-height: 190px; overflow: auto; padding: 10px; border-top: 1px solid #e1e7e9; color: #535f65; background: #fff; font: 10px/1.5 Verdana, Arial, sans-serif; }
.document-candidate > small { color: #9aa5aa; font-size: 8px; }
.document-apply { margin: 14px 0 6px; }
.original-description-lock { margin: 0 0 8px; padding: 8px 10px; color: #36717a; border-left: 3px solid #32bdc8; background: #f0fafb; font: 9px/1.45 Verdana, Arial, sans-serif; }
.rich-editor.description-locked .rich-content { color: #4b585e; background: #fafcfc; cursor: default; }
@media (max-width: 680px) { .document-candidate-grid { grid-template-columns: 1fr; } .document-import-summary { align-items: flex-start; flex-direction: column; } .document-import-summary span { text-align: left; } }

/* Управление размещением одного СУБ-блока в нескольких родительских блоках. */
.modal:has(.relation-manager) {
  width: 420px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfd6da;
  box-shadow: 0 18px 55px #23313a52;
}

.relation-manager { font: 11px/1.45 Verdana, Arial, sans-serif; color: #5d6a72; }
.relation-manager-title {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #33434c;
  background: linear-gradient(#f8f9fa, #edf0f2);
  border-bottom: 1px solid #dce2e5;
}
.relation-manager-title .asset-icon,
.relation-manager-title .custom-block-icon { width: 17px; height: 17px; object-fit: contain; opacity: .72; }
.relation-manager-title strong { font-size: 12px; font-weight: 400; }
.relation-label { margin: 17px 15px 8px !important; color: #97a2a8 !important; }
.relation-parent-list { display: grid; justify-items: start; gap: 6px; min-height: 22px; padding: 0 15px; }
.relation-parent-list button {
  padding: 2px 0;
  color: #24afbd;
  background: transparent;
  border-bottom: 1px dotted #24afbd;
  text-align: left;
}
.relation-parent-list button span { margin-left: 9px; color: #9ca6ab; font-size: 9px; opacity: 0; transition: opacity .18s ease; }
.relation-parent-list button:hover span,
.relation-parent-list button:focus-visible span { opacity: 1; }
.relation-empty { color: #a6afb4; font-style: italic; }
.relation-add {
  margin: 9px 15px 14px;
  padding: 2px 0 !important;
  color: #dd5757;
  background: transparent;
  border-bottom: 1px dotted #dd5757 !important;
}
.relation-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 15px 15px;
  padding: 10px;
  background: #f6f8f9;
  border: 1px solid #e3e8ea;
  animation: modal-in .2s cubic-bezier(.2,.8,.25,1) both;
}
.relation-choices > b,
.relation-choices > small { grid-column: 1 / -1; font-size: 10px; font-weight: 400; color: #8c989e; }
.relation-choices button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  color: #4f5e66;
  background: #fff;
  border: 1px solid #dce3e6;
  text-align: left;
}
.relation-choices button:hover { color: #159eaa; border-color: #7ed5dc; }
.relation-choices button .asset-icon,
.relation-choices button .custom-block-icon { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.relation-choices button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relation-actions {
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 11px 15px;
  background: #f5f7f8;
  border-top: 1px solid #dfe5e7;
}
.relation-actions .confirm { min-width: 58px; font-weight: 700; }

/* Flat instruction subblocks (PTE, IDP, ISI): separate every adjacent material. */
.mobile-instruction-list.at-root > .mobile-instruction-category + .mobile-instruction-category,
.mobile-instruction-list.at-root > .mobile-instruction-category + .mobile-instruction-article,
.mobile-instruction-list.at-root > .mobile-instruction-article + .mobile-instruction-category,
.mobile-instruction-list.at-root > .mobile-instruction-article + .mobile-instruction-article {
  border-top: 1px solid rgba(60,60,67,.12);
}

/* Emergency-card cargo lists share one explicit expand/collapse interaction
   across web, Android and iOS. Search continues to use the complete stored
   description; only the list presentation is clamped. */
.mobile-event-card.mobile-emergency-card {
  display: block;
  min-height: 0;
  padding: 0;
  cursor: default;
  transform: none;
}
.mobile-event-card.mobile-emergency-card:hover { transform: none; }
.mobile-emergency-card-open {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 11px 7px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.emergency-summary-shell {
  --emergency-summary-collapsed-height: 9.8em;
  position: relative;
  display: block;
  max-height: var(--emergency-summary-collapsed-height);
  overflow: hidden;
  cursor: pointer;
  transition: max-height 250ms cubic-bezier(.2,.72,.25,1);
}
.emergency-summary-text { display: block; }
:is(.mobile-emergency-card, .mobile-emergency-instruction).is-expanded .emergency-summary-shell {
  max-height: var(--emergency-summary-expanded-height, 20000px);
}
.emergency-summary-toggle[hidden] { display: none !important; }
.emergency-summary-toggle {
  width: max-content;
  min-height: 28px;
  display: grid;
  justify-items: start;
  gap: 7px;
  margin: 0 10px 7px 61px;
  padding: 1px 8px 5px 0;
  border: 0;
  color: #78999d;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.emergency-summary-ellipsis { display: block; color: #707b84; line-height: 1; }
.emergency-summary-action { display: inline-flex; align-items: center; gap: 4px; }
.emergency-summary-arrow {
  width: 5px;
  height: 5px;
  display: block;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform 250ms cubic-bezier(.2,.72,.25,1);
}
.emergency-summary-toggle[aria-expanded="true"] .emergency-summary-ellipsis { display: none; }
.emergency-summary-toggle[aria-expanded="true"] .emergency-summary-arrow { transform: translateY(1px) rotate(225deg); }
.emergency-summary-toggle:hover,
.emergency-summary-toggle:focus-visible { color: #5f858a; }

.mobile-instruction-article.mobile-emergency-instruction {
  display: block;
  min-height: 0;
  padding: 0;
}
.mobile-emergency-instruction-open {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 10px 7px;
  border: 0;
  color: #19253d;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.mobile-emergency-instruction-open > span:nth-child(2) { min-width: 0; }
.mobile-emergency-instruction-open strong { display: block; font: 500 11px/1.3 Verdana, Geneva, sans-serif; }
.mobile-emergency-instruction-open small { display: block; margin-top: 4px; color: #707b84; font: 9px/1.4 Verdana, Geneva, sans-serif; }
.mobile-emergency-instruction-open em { display: block; margin-top: 5px; color: #7d9fa3; font: normal 8px/1.35 Verdana, Geneva, sans-serif; }
.mobile-emergency-instruction > .emergency-summary-toggle { margin-left: 57px; }

/* APK UX PASS 2026-08-24 */
.mobile-feed-screen,
.mobile-instructions-screen,
.mobile-detail-screen {
  display: flex;
  min-height: 0;
  flex-direction: column;
}
.mobile-feed-screen > .mobile-appbar,
.mobile-instructions-screen > .mobile-appbar,
.mobile-detail-screen > .mobile-appbar,
.mobile-feed-search,
.mobile-sub-blocks { flex: 0 0 auto; }
.mobile-event-list,
.mobile-instruction-list,
.mobile-detail-scroll,
.mobile-feed-search + .mobile-event-list,
.mobile-sub-blocks + .mobile-event-list,
.mobile-feed-search + .mobile-sub-blocks + .mobile-event-list,
.mobile-detail-search + .mobile-detail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-instruction-list.inside-category { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }

.mobile-home-screen,
.mobile-feed-screen,
.mobile-detail-screen,
.mobile-instructions-screen,
.mobile-archive-screen { animation-duration: 220ms; animation-timing-function: cubic-bezier(.2,.72,.25,1); }
@keyframes mobile-screen-in { from { opacity: .88; transform: translateX(4px); } to { opacity: 1; transform: none; } }

.mobile-back { position: relative; font-size: 0 !important; padding: 0 !important; transform: none !important; }
.mobile-back::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 2.4px solid currentColor;
  border-bottom: 2.4px solid currentColor;
  transform: translateX(3px) rotate(45deg);
}

.mobile-round-chevron { position: relative; font-size: 0 !important; line-height: 0 !important; }
.mobile-round-chevron::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateX(-1px) rotate(-45deg);
  transform-origin: 50% 50%;
}
.mobile-instruction-dropdown-toggle .mobile-round-chevron { transform: none !important; }
.mobile-instruction-branch.expanded > .mobile-instruction-dropdown-toggle .mobile-round-chevron::before { transform: translateY(-1px) rotate(45deg); }

.mobile-sub-blocks { min-height: 92px; padding: 10px 0 8px; }
.mobile-sub-blocks button { min-height: 72px; gap: 6px; font-size: 10px; }
.mobile-sub-blocks img { width: 43px; height: 43px; }
.mobile-sub-blocks span { max-width: 78px; }

.mobile-instruction-section { padding-top: 18px; }
.mobile-instruction-separator strong { font-size: 11px; }
.mobile-instruction-category { min-height: 76px; grid-template-columns: 46px minmax(0,1fr) 24px; gap: 10px; padding: 10px 12px; }
.mobile-instruction-article { min-height: 76px; grid-template-columns: 46px minmax(0,1fr); gap: 10px; padding: 10px 12px; }
.mobile-instruction-icon { width: 43px; height: 43px; border-radius: 10px; }
.mobile-instruction-category strong,
.mobile-instruction-article strong { font-size: 13px; line-height: 1.35; }
.mobile-instruction-category small,
.mobile-instruction-article small,
.mobile-instruction-current-summary { font-size: 11.5px; line-height: 1.45; }
.mobile-instruction-category em,
.mobile-instruction-article em { font-size: 10px; line-height: 1.4; }
.mobile-instruction-intro-body,
.mobile-instruction-branch-description { font-size: 13px; line-height: 1.55; }

.mobile-event-card { min-height: 104px; grid-template-columns: 50px minmax(0,1fr); gap: 12px; padding: 13px 14px; }
.event-symbol { width: 46px; height: 46px; }
.event-symbol.info { font-size: 35px; }
.event-copy { gap: 6px; }
.event-copy strong { font-size: 14px; line-height: 1.34; }
.event-copy > span { font-size: 12px; line-height: 1.48; }
.event-copy small { font-size: 10px; line-height: 1.42; }
.mobile-emergency-card-open { grid-template-columns: 50px minmax(0,1fr); gap: 12px; padding: 13px 14px 8px; }
.emergency-summary-toggle { margin-left: 76px; }

.mobile-pdf-button { min-height: 52px; font-size: 13px; }
.mobile-event-detail { padding: 12px 16px 34px; }
.mobile-event-detail .detail-body { font-size: 14px; line-height: 1.55; }
.mobile-event-detail .detail-body h1,
.mobile-event-detail .detail-body h2,
.mobile-event-detail .detail-body h3 { font-size: 17px; line-height: 1.35; }
.mobile-event-detail .detail-summary { font-size: 12px; }
.detail-author-note { font-size: 11px; }
.detail-tags span { font-size: 10px; }

.mobile-archive-category,
.mobile-archive-event { min-height: 78px; grid-template-columns: 42px minmax(0,1fr) 18px; gap: 11px; padding: 12px 13px; }
.mobile-archive-event { grid-template-columns: 42px minmax(0,1fr); }
.mobile-archive-mark { width: 40px; height: 40px; }
.mobile-archive-category strong,
.mobile-archive-event strong { font-size: 14px; }
.mobile-archive-category small,
.mobile-archive-event small { font-size: 11px; }

:is(.ck-content,.mobile-instruction-intro-body,.mobile-instruction-branch-description,.mobile-event-detail .detail-body,.mobile-article-description,.mobile-category-description)
  table:not([data-borderless="true"]),
:is(.ck-content,.mobile-instruction-intro-body,.mobile-instruction-branch-description,.mobile-event-detail .detail-body,.mobile-article-description,.mobile-category-description)
  table:not([data-borderless="true"]) td,
:is(.ck-content,.mobile-instruction-intro-body,.mobile-instruction-branch-description,.mobile-event-detail .detail-body,.mobile-article-description,.mobile-category-description)
  table:not([data-borderless="true"]) th {
  border: 1px solid #626b70 !important;
  border-collapse: collapse !important;
}

/* 2026-08-25: единая мобильная геометрия, читаемость и адаптивные таблицы. */
.mobile-home-menu button { font-size: 13px; }
.mobile-global-search input,
.mobile-feed-search input,
.mobile-archive-search input { font-size: 13px !important; }

.mobile-back { display:grid !important; place-items:center !important; }
.mobile-back::before { content:none !important; }
.mobile-back-svg { width:25px; height:25px; display:block; transform:none; }

.mobile-round-chevron {
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
}
.mobile-round-chevron::before { content:none !important; }
.mobile-round-chevron-svg { width:14px; height:14px; display:block; }
.mobile-instruction-branch.expanded > .mobile-instruction-dropdown-toggle .mobile-round-chevron-svg { transform:rotate(90deg); }
.mobile-archive-chevron { width:25px; height:25px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(#f2f3f5,#e5e7ea); box-shadow:inset 0 0 0 1px rgba(60,60,67,.14); color:#78828a; }
.mobile-archive-chevron-svg { width:13px; height:13px; display:block; }

.mobile-sheet-card h4 { font-size:16px; line-height:1.35; }
.mobile-sheet-card p { font-size:12px; line-height:1.45; }
.mobile-share-options button,
.mobile-sheet-close,
.mobile-sheet-actions button { min-height:42px; font-size:12px; }
.mobile-tag-sheet .mobile-sheet-card { height:min(90%, 720px); max-height:calc(100% - 48px); display:flex; flex-direction:column; }
.mobile-tag-options { flex:1 1 auto; max-height:none; }
.mobile-tag-options label { min-height:40px; padding:9px 11px; font-size:12px; }
.mobile-tag-mode { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:0 0 11px; padding:3px; border-radius:9px; background:#edf1f3; }
.mobile-tag-mode button { min-height:34px; border:0; border-radius:7px; color:#61717a; background:transparent; font:700 12px Verdana,Arial,sans-serif; }
.mobile-tag-mode button.active { color:#fff; background:#22b9c5; box-shadow:0 2px 7px #189da83d; }

.mobile-archive-search { height:50px; grid-template-columns:24px 1fr 26px; padding:0 13px; }
.mobile-archive-context { padding:13px 14px; }
.mobile-archive-context strong { font-size:14px; }
.mobile-archive-context span { font-size:11px; }
.mobile-archive-category,
.mobile-archive-event { grid-template-columns:42px minmax(0,1fr) 25px; }
.mobile-archive-event { grid-template-columns:42px minmax(0,1fr); }

.mobile-emergency-load-more {
  width:calc(100% - 24px); min-height:42px; margin:10px 12px 22px; border:0; border-radius:10px;
  color:#477079; background:#eaf3f4; font:12px Verdana,Arial,sans-serif;
}

.conspect-table-scroll,
figure.table.conspect-table-scroll { width:100% !important; max-width:100% !important; overflow-x:auto !important; }
:is(.ck-content,.mobile-instruction-intro-body,.mobile-instruction-branch-description,.mobile-event-detail .detail-body,.mobile-article-description,.mobile-category-description) table.conspect-table {
  width:100% !important; max-width:100% !important; min-width:0 !important; table-layout:auto !important;
}
:is(.ck-content,.mobile-instruction-intro-body,.mobile-instruction-branch-description,.mobile-event-detail .detail-body,.mobile-article-description,.mobile-category-description) table.conspect-table col {
  width:auto !important; min-width:0 !important;
}
:is(.ck-content,.mobile-instruction-intro-body,.mobile-instruction-branch-description,.mobile-event-detail .detail-body,.mobile-article-description,.mobile-category-description) table.conspect-table th,
:is(.ck-content,.mobile-instruction-intro-body,.mobile-instruction-branch-description,.mobile-event-detail .detail-body,.mobile-article-description,.mobile-category-description) table.conspect-table td {
  min-width:0 !important; max-width:none !important; width:auto !important; white-space:normal !important;
  overflow-wrap:normal !important; word-break:normal !important; hyphens:none !important; font-size:12px !important;
}

.mobile-sub-blocks .mobile-menu-vector-icon { width:43px; height:43px; display:block; color:#fff; filter:none; opacity:1; }
.mobile-home-menu .mobile-menu-vector-icon { width:34px; height:34px; display:block; color:#fff; }

.detail-body img{cursor:zoom-in}.mobile-image-viewer{position:fixed;inset:0;z-index:10000;background:rgba(9,16,23,.94);display:flex;align-items:center;justify-content:center;overflow:auto;touch-action:none}.mobile-image-viewer-stage{min-width:100%;min-height:100%;display:flex;align-items:center;justify-content:center;overflow:auto}.mobile-image-viewer img{max-width:94vw;max-height:90vh;object-fit:contain;transform-origin:center;transition:transform .16s ease}.mobile-image-viewer-close{position:fixed;top:max(16px,env(safe-area-inset-top));right:16px;z-index:2;width:44px;height:44px;border:0;border-radius:50%;color:#fff;background:rgba(55,65,73,.82);font:32px/44px Verdana,sans-serif}@media print{details>*{display:block!important}}



/* ADMIN PHONE PREVIEW: original compact typography.
   Native Android has no .phone wrapper and keeps the larger APK type scale. */
.phone .mobile-home-menu button { font-size:12px; }
.phone .mobile-global-search input,
.phone .mobile-feed-search input { font-size:10px !important; }
.phone .mobile-archive-search input { font-size:12px !important; }
.phone .mobile-sub-blocks button { font-size:8px; }

.phone .mobile-instruction-separator strong { font-size:9px; line-height:1.25; }
.phone .mobile-instruction-category strong,
.phone .mobile-instruction-article strong { font-size:11px; line-height:1.3; }
.phone .mobile-instruction-category small,
.phone .mobile-instruction-article small,
.phone .mobile-instruction-current-summary { font-size:9px; line-height:1.4; }
.phone .mobile-instruction-category em,
.phone .mobile-instruction-article em { font-size:8px; line-height:1.35; }
.phone .mobile-instruction-intro-body,
.phone .mobile-instruction-branch-description { font-size:9px; line-height:1.5; }

.phone .event-copy strong { font-size:11px; line-height:1.3; }
.phone .event-copy > span { font-size:9px; line-height:1.45; }
.phone .event-copy small { font-size:8px; line-height:1.35; }
.phone .mobile-pdf-button { font-size:8px; }
.phone .mobile-event-detail .detail-body { font-size:10px; line-height:1.35; }
.phone .mobile-event-detail .detail-body h1,
.phone .mobile-event-detail .detail-body h2,
.phone .mobile-event-detail .detail-body h3 { font-size:13px; }
.phone .mobile-event-detail .detail-summary { font-size:10px; }
.phone .detail-author-note { font-size:9px; }
.phone .detail-tags span { font-size:8px; }

.phone .mobile-archive-category strong,
.phone .mobile-archive-event strong,
.phone .mobile-archive-context strong { font-size:12px; }
.phone .mobile-archive-category small,
.phone .mobile-archive-event small,
.phone .mobile-archive-context span { font-size:9px; }

.phone .mobile-sheet-card h4 { font-size:13px; }
.phone .mobile-sheet-card p { font-size:9px; }
.phone .mobile-share-options button,
.phone .mobile-sheet-close,
.phone .mobile-sheet-actions button,
.phone .mobile-tag-options label,
.phone .mobile-tag-mode button { font-size:9px; }
.account-admin-modal{width:min(920px,94vw);max-height:88vh;overflow:auto}.account-user-list{display:grid;gap:10px;margin:16px 0}.account-user-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:14px;border:1px solid #d8e1e6;background:#f7f9fa}.account-user-row span,.account-user-row small{display:block;margin-top:5px;color:#667782}.account-user-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.account-user-actions button{padding:8px 11px;border:1px solid #b9c8cf;background:#fff;color:#334955}.legal-warning{padding:12px;border-left:4px solid #ef9f23;background:#fff7e8}.legal-field{display:grid;gap:7px;margin:16px 0}.legal-field textarea{min-height:180px;padding:12px;resize:vertical;border:1px solid #b9c8cf;font:14px/1.5 Verdana,Arial,sans-serif}@media(max-width:720px){.account-user-row{grid-template-columns:1fr}.account-user-actions{justify-content:flex-start}}

/* Реестр пользователей и полноценная навигация настроек. */
.account-admin-modal{width:min(1180px,96vw);max-height:90vh;padding:0;overflow:auto;color:#40515c;background:#fff}
.roles-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin:16px}.role-card,.roles-form{display:grid;gap:10px;padding:14px;border:1px solid #d8e1e6;background:#f7f9fa}.role-card fieldset,.roles-form fieldset{display:grid;gap:7px;border:1px solid #d8e1e6}.role-card label,.roles-form label{display:grid;gap:5px}.role-card label small{color:#778892;font-weight:400}.admin-name-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.roles-admin-modal details{margin:14px;padding:12px;border:1px solid #e0e7eb}.roles-admin-modal summary{cursor:pointer;font-weight:700}@media(max-width:720px){.roles-grid,.admin-name-grid{grid-template-columns:1fr}.roles-grid{margin:10px}.roles-admin-modal{width:100vw;max-height:100dvh}.role-card button,.roles-form button{min-height:44px}}
.account-modal-head{position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 26px 18px;border-bottom:1px solid #dce5e9;background:#fff}
.account-modal-head h3{margin:3px 0 0;font-size:23px}.account-modal-head p{margin:7px 0 0;color:#70808a}.account-modal-head small{color:#21b9c5;font-weight:700;letter-spacing:.08em}
.account-close{width:34px;height:34px;border:0;background:#edf2f4;color:#61727c;font-size:25px;line-height:1;cursor:pointer}
.user-summary{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:10px;padding:20px 26px 12px}.user-summary button{display:grid;gap:3px;padding:13px 14px;text-align:left;border:1px solid #dbe4e8;background:#f6f8f9;color:#50616b;cursor:pointer}.user-summary button.active{border-color:#22b9c5;background:#eafafb}.user-summary b{font-size:22px}.user-summary span{font-size:11px}
.user-tools{display:grid;grid-template-columns:minmax(260px,1fr) 230px;gap:10px;padding:0 26px 14px}.user-tools input,.user-tools select{min-height:40px;padding:0 12px;border:1px solid #cbd6db;background:#fff;color:#40515c}
.user-table-wrap{margin:0 26px;overflow:auto;border:1px solid #dbe4e8}.user-table{width:100%;min-width:1020px;border-collapse:collapse;font-size:12px}.user-table th{padding:10px;text-align:left;color:#71818b;background:#f2f5f6}.user-table td{padding:11px 10px;border-top:1px solid #e4eaed;vertical-align:middle}.user-name{padding:0;border:0;background:transparent;color:#314650;text-align:left;cursor:pointer}.user-name small{display:block;margin-top:4px;color:#73838d;font-weight:400}.user-status{display:inline-block;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:700;white-space:nowrap}.status-pending{color:#8a6200;background:#fff1c7}.status-approved{color:#167249;background:#dff5ea}.status-rejected{color:#a33b3b;background:#fde8e8}.status-blocked{color:#fff;background:#6b7378}.account-user-actions{min-width:160px}.account-user-actions button{font-size:10px;cursor:pointer}.account-user-actions .confirm,.settings-save{border-color:#20b8c4;color:#fff;background:#20b8c4}.account-user-actions .danger,.trash-list .danger{border-color:#df7777;color:#b33e3e;background:#fff5f5}.user-detail-row td{padding:0 12px 12px;background:#f8fbfc}.user-detail{display:flex;gap:20px;flex-wrap:wrap;padding:12px;border-left:3px solid #22b9c5}.user-detail span{color:#677983}.user-empty{padding:32px!important;text-align:center;color:#7b8991}
.settings-layout{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:520px}.settings-nav{display:grid;align-content:start;gap:4px;padding:20px 12px;border-right:1px solid #dce5e9;background:#f3f6f7}.settings-nav button{min-height:44px;padding:0 14px;border:0;text-align:left;color:#50616b;background:transparent;cursor:pointer}.settings-nav button.active{color:#137b84;background:#fff;box-shadow:inset 3px 0 #22b9c5}.settings-content{padding:24px 28px}.settings-content h4{margin:0 0 7px;font-size:19px}.settings-content>p{color:#6d7e88}.settings-card{display:grid;gap:0;margin-top:18px;border:1px solid #dbe4e8}.settings-toggle{display:grid;grid-template-columns:24px 1fr;gap:11px;align-items:start;padding:13px 15px;border-bottom:1px solid #e5ebee;cursor:pointer}.settings-toggle:last-of-type{border-bottom:0}.settings-toggle input{width:18px;height:18px;accent-color:#22b9c5}.settings-toggle small{display:block;margin-top:4px;color:#74858e;font-weight:400}.settings-fixed{display:grid;grid-template-columns:190px 1fr;gap:9px 16px;padding:16px;background:#f7f9fa}.settings-fixed span{color:#687a84}.settings-save{margin-top:16px;padding:10px 16px;border:0;cursor:pointer}.settings-note{margin-top:18px;padding:14px;border-left:3px solid #22b9c5;background:#f1fafb}.settings-error{color:#a33b3b!important}.trash-list{display:grid;gap:9px;margin-top:18px}.trash-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:14px;border:1px solid #dbe4e8;background:#f8fafb}.trash-list span,.trash-list small{display:block;margin-top:4px;color:#71818b}.trash-list article>div:last-child{display:flex;gap:7px}.trash-list button{padding:8px 10px;border:1px solid #b9c8cf;background:#fff;color:#40515c;cursor:pointer}.trash-empty{padding:30px;text-align:center;border:1px dashed #cbd6db;color:#7b8991}

.legal-document-list{display:grid;gap:10px;margin-top:18px}.legal-document-list article{display:grid;grid-template-columns:minmax(230px,1fr) minmax(300px,auto);gap:18px;padding:14px;border:1px solid #dbe4e8;background:#f8fafb}.legal-document-list span,.legal-document-list small{display:block;margin-top:5px;color:#71818b}.legal-document-actions,.legal-setup-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.legal-document-actions button,.legal-setup-actions button,.legal-back,.legal-history button{padding:8px 10px;border:1px solid #b9c8cf;background:#fff;color:#40515c;cursor:pointer}.legal-document-actions button.confirm{border-color:#20b9c5;background:#20b9c5;color:#fff}.legal-document-actions button:disabled{opacity:.45;cursor:default}.legal-setup-actions{justify-content:flex-start;margin-top:14px}.legal-back{margin-bottom:16px}.legal-editor{min-height:360px;margin-top:18px;padding:14px;border:1px solid #cfd9dd}.legal-history{display:grid;gap:8px;margin-top:18px}.legal-history button{display:grid;gap:4px;text-align:left}.legal-published-preview{margin-top:18px;padding:18px;border:1px solid #dbe4e8;background:#fff}.legal-published-preview header{display:flex;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #e3e9ec}.legal-published-preview .ck-content{padding-top:14px}@media(max-width:900px){.legal-document-list article{grid-template-columns:1fr}.legal-document-actions{justify-content:flex-start}}
@media(max-width:850px){.user-summary{grid-template-columns:repeat(2,1fr)}.user-tools{grid-template-columns:1fr}.settings-layout{grid-template-columns:1fr}.settings-nav{grid-template-columns:repeat(2,1fr);border-right:0;border-bottom:1px solid #dce5e9}.settings-nav button.active{box-shadow:inset 0 -3px #22b9c5}.trash-list article{grid-template-columns:1fr}.settings-fixed{grid-template-columns:1fr}.account-user-actions{min-width:0}}

/* Critical structural labels: preserve semantic labels against legacy and stale layout rules. */
.information-editor .catalog-separator .catalog-separator-title {
  display: block !important;
  min-width: 0 !important;
  color: #222326 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: normal !important;
}
.information-editor .catalog-separator-actions > button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  width: auto !important;
  min-width: 86px !important;
  overflow: visible !important;
  color: #1597a2 !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
}
.information-editor .catalog-separator-actions > button > span {
  display: inline !important;
  color: inherit !important;
  font-size: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.phone .mobile-sub-blocks .mobile-sub-block-title {
  display: block !important;
  max-width: 78px !important;
  color: #fff !important;
  font-size: 8px !important;
  line-height: 1.2 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.maintenance-danger {
  border-left: 4px solid #b42318;
  padding-left: 12px;
}

.maintenance-danger small { color: #8f1d16; }
