/* Reference-matched mobile composer; no simulated device frame or OS chrome. */
.mobile-header,.mobile-nav,.mobile-preview,.mobile-account-menu{display:none}
#mobilePreviewDialog{background:#0e1315;color:#f3f4f5;border:1px solid #354047;border-radius:20px;padding:12px;max-width:720px;width:calc(100% - 24px);max-height:calc(100dvh - 32px);overflow:auto}
#mobilePreviewDialog::backdrop{background:#000b;backdrop-filter:blur(8px)}
.mobile-dialog-bar{display:flex;align-items:center;justify-content:space-between;padding:0 4px 12px}
#mobilePreviewDialog .preview-card{margin:0;overflow:visible;height:auto!important}
#mobilePreviewDialog .preview-header{flex-wrap:wrap;padding:12px}
#mobilePreviewDialog .preview-heading{display:none}
#mobilePreviewDialog #pvTabs{margin:0;width:100%;justify-content:center}
#mobilePreviewDialog .preview-stage{display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:16px!important;height:auto!important}
#mobilePreviewDialog #pvIg{max-width:360px;width:100%;margin:auto}
#mobilePreviewDialog #pvYt{display:none!important}
#mobilePreviewDialog #pvYt[style*="grid"]{display:grid!important}
#mobilePreviewDialog .preview-stage:not(.single-preview) #pvYt{display:none!important}
#mobilePreviewDialog .pv-media{height:auto!important;aspect-ratio:1;background-image:url('/panel-assets/preview-locco-auto.png')}
#mobilePreviewDialog .pv-media.is-demo{background-size:contain;background-color:#0b1014}
#mobilePreviewDialog .pv-media.is-demo .pv-play,#mobilePreviewDialog .pv-media.is-demo .media-duration{display:none!important}
#mobilePreviewDialog #pvIg{border-radius:38px;min-height:0}
#mobilePreviewDialog #pvTgText{white-space:pre-line}
body.compact-ui{background:#090d0e;--tg-safe-top:0px;--tg-safe-right:0px;--tg-safe-bottom:0px;--tg-safe-left:0px}
.compact-ui .app{display:block!important;min-height:100dvh;padding-top:max(env(safe-area-inset-top),var(--tg-safe-top));background:radial-gradient(ellipse at 100% 35%,#d18a0010,transparent 65%),#090d0e}
body.compact-ui.is-locked .app{display:none!important}
.compact-ui.mini-app .app{max-width:600px;margin:auto}
.compact-ui .side{display:none!important}
.compact-ui main{width:100%;min-width:0;padding:14px max(16px,env(safe-area-inset-right),var(--tg-safe-right)) calc(92px + max(env(safe-area-inset-bottom),var(--tg-safe-bottom))) max(16px,env(safe-area-inset-left),var(--tg-safe-left));margin:0}
.compact-ui .mobile-header{display:flex;align-items:center;gap:10px;padding:16px max(16px,env(safe-area-inset-right),var(--tg-safe-right)) 0 max(16px,env(safe-area-inset-left),var(--tg-safe-left))}
.mobile-brand{display:flex;align-items:center;gap:8px;color:#f4f4f5;text-decoration:none;min-width:0;flex:1}
.mobile-brand b{font-size:20px;letter-spacing:-.8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-bolt{color:#ffb51c;font-size:38px;font-weight:800;line-height:1;filter:drop-shadow(0 2px 8px #ffaa0025)}
.mobile-status{display:flex;align-items:center;gap:7px;border:1px solid #252d31;border-radius:24px;padding:9px 10px;background:linear-gradient(130deg,#151d1f,#101518);font-size:10px;white-space:nowrap;color:#d5d8dd}
.mobile-status i{width:8px;height:8px;border-radius:50%;background:#8b9198;flex:none}
.mobile-status.active i{background:#57d666;box-shadow:0 0 12px #57d66680}
.compact-ui .mobile-settings{height:36px;width:36px;padding:8px;border-radius:10px;background:#0b1012;flex:none}
.mobile-settings .ui-icon{width:19px;height:19px}
.compact-ui .top{padding:0;margin:0 0 15px;min-height:0;display:block}
.compact-ui .top>.grow,.compact-ui .badges,.compact-ui .top-action{display:none!important}
.compact-ui .page-heading{gap:12px;align-items:flex-start}
.compact-ui .heading-icon{width:42px;height:44px;border-radius:11px;margin:0;flex:none;background:linear-gradient(135deg,#4a3310,#211d14);box-shadow:0 3px 15px #ffb0000c}
.compact-ui .heading-icon svg{width:23px;height:23px}
.compact-ui .top h1{font-size:21px;letter-spacing:-.5px;line-height:1.24;padding-top:2px}
.compact-ui #pgSub{font-size:12px;line-height:1.45;margin-top:4px;max-width:300px}
.compact-ui .g-main{display:block;gap:0}
.compact-ui #pg-create .g-main>.card{border:none!important;background:transparent!important;box-shadow:none!important;border-radius:0;overflow:visible}
.compact-ui #pg-create .composer-body{padding:0!important;gap:14px!important;display:flex;flex-direction:column}
.compact-ui .composer-aside{display:none!important}
.compact-ui .step{margin:0;padding:0}
.compact-ui .step-h{gap:11px;margin:0 0 9px;align-items:center}
.compact-ui .step-h b{font-size:14px;line-height:1.25}
.compact-ui .step-num{width:24px;height:25px;font-size:14px;border-radius:8px;background:linear-gradient(140deg,#4b330d,#252013)}
.compact-ui .step-sub{display:none}
.compact-ui .src-cards{display:grid;grid-template-columns:1.08fr .93fr .97fr;gap:7px;margin:0 0 10px}
.compact-ui .src{display:grid!important;grid-template-columns:29px minmax(0,1fr);grid-template-rows:29px auto;align-items:center;gap:7px 6px;position:relative;padding:9px 8px!important;min-width:0;min-height:66px;border-radius:10px;border:1px solid #30393f;background:linear-gradient(135deg,#161c1f,#0e1416)}
.compact-ui .src.on,.compact-ui .ptg.on{border-color:#ffbd17;background:linear-gradient(130deg,#34280f,#17170f);box-shadow:inset 0 0 0 1px #ffb00026,0 0 15px #ffb00012}
.compact-ui .source-icon{width:29px;height:29px;border-radius:8px;grid-column:1;grid-row:1}
.compact-ui .source-icon svg{width:20px;height:20px}
.compact-ui .source-copy{display:contents}
.compact-ui .source-copy b{grid-column:2;grid-row:1;font-size:10px!important;line-height:1.25;padding-right:4px;font-weight:700}
.compact-ui .source-copy span{grid-column:1 / -1;grid-row:2;font-size:8px!important;white-space:normal;line-height:1.2;color:#89929c;margin:0!important}
.compact-ui .src-dot{position:absolute;right:6px;top:6px;width:11px;height:11px}
.compact-ui #srcUrl{height:39px;margin:0!important;border-radius:10px;padding:0 11px;background:linear-gradient(130deg,#151b1e,#101619);border:1px solid #364148;gap:10px}
.compact-ui #srcUrl svg{width:19px;height:19px;flex:none}
.compact-ui #srcUrl input{font-size:16px;min-width:0;height:37px;padding:0;background:transparent}
.compact-ui .caption-box{margin:0;border-radius:10px;height:76px;background:linear-gradient(135deg,#151c20,#101618);border:1px solid #344048}
.compact-ui #cCap{font-size:16px;padding:10px 11px 25px;min-height:0;height:100%;line-height:1.4;background:transparent;resize:none;border:0;border-radius:10px}
.compact-ui #cCapCnt{font-size:10px;right:10px;bottom:8px}
.compact-ui .cap-tools{display:grid;grid-template-columns:1fr 1.08fr 1fr;gap:7px;margin-top:7px}
.compact-ui .cap-tools .btn{height:36px;padding:0 7px;justify-content:center;font-size:11px;border-radius:10px;gap:7px;background:linear-gradient(135deg,#11191c,#0c1214);border:1px solid #303c43;min-width:0}
.compact-ui .cap-tools svg{width:18px;height:18px}
.compact-ui #cImprove{font-size:0}
.compact-ui #cImprove::after{content:'Улучшить';font-size:11px}
.compact-ui .ptgs{display:grid;grid-template-columns:1.08fr 1fr 1fr;gap:7px}
.compact-ui .ptg{height:44px;min-height:44px;min-width:0;padding:7px 8px!important;font-size:10px;gap:7px;border-radius:10px;border:1px solid #303b42;background:linear-gradient(140deg,#11191c,#0c1214);display:flex}
.compact-ui .ptg .platform-icon{width:25px;height:25px;flex:none;border-radius:7px}
.compact-ui .ptg .platform-icon.yt{width:25px;height:19px;border-radius:6px}
.compact-ui .ptg-check{position:static!important;margin-left:auto;flex:none;width:14px;height:14px;font-size:10px;border-width:1px}
.compact-ui #whenChips{display:flex;gap:8px}
.compact-ui #whenChips .chip{padding:0 15px;height:39px;font-size:12px;border-radius:10px;gap:9px;min-width:0}
.compact-ui #whenChips .chip svg{width:21px;height:21px}
.compact-ui #whenChips .chip:first-child{flex:1.06}
.compact-ui #whenChips .chip:last-child{flex:1.1}
.compact-ui #whenChips .chip.on{color:#100f08;background:linear-gradient(135deg,#ffc32e,#ffad10);border-color:#ffc84b;box-shadow:0 3px 16px #ffaa0020}
.compact-ui .mobile-preview{display:block;border:1px solid #344048;border-radius:12px;padding:8px;background:linear-gradient(135deg,#141c1f,#0c1214);margin-top:0}
.mobile-preview-heading{display:flex;gap:8px;align-items:center;margin-bottom:7px;min-height:24px;line-height:1.2}
.mobile-preview-heading>[data-icon]{display:grid;place-items:center;background:#38290f;border-radius:7px;width:25px;height:24px;color:#ffd06c;flex:none}
.mobile-preview-heading .ui-icon{width:17px;height:17px}
.mobile-preview-heading b{font-size:11px;line-height:1.2}
.mobile-preview-heading button{margin-left:auto;white-space:nowrap;border:0;color:#959fa8;background:none;font:inherit;font-size:10px;padding:0;cursor:pointer;line-height:1.2;display:flex;align-items:center;height:26px}
.mobile-preview-heading button span{font-size:19px;margin-left:4px;vertical-align:middle}
.mobile-preview-body{display:grid;grid-template-columns:46% minmax(0,1fr);gap:10px;align-items:stretch}
.compact-ui .mobile-preview-media{width:100%;height:auto!important;min-height:100px;aspect-ratio:1.8!important;background-size:contain!important;border-radius:9px;margin:0;overflow:hidden}
.mobile-preview-copy{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:6px}
#mobilePreviewPlatforms{display:flex;gap:8px}
#mobilePreviewPlatforms .platform-icon{width:16px;height:16px;border-radius:4px}
#mobilePreviewPlatforms .platform-icon.yt{width:18px;height:13px;margin-top:2px}
#mobilePreviewText{font-size:11px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0;color:#ecedef;overflow-wrap:anywhere}
.compact-ui #mobilePreviewTags{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0}
#mobilePreviewTags span{padding:4px 6px;border-radius:12px;background:#172126;color:#80c9f6;font-size:8px;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.compact-ui .composer-actions{display:flex;gap:10px;margin:0;padding:0}
.compact-ui #cDraft{width:36%;height:42px;flex:none;justify-content:center;font-size:0;padding:0 9px;border-radius:10px;border:1px solid #3c4850;background:linear-gradient(145deg,#141c20,#0b1214)}
.compact-ui #cDraft::after{content:'Черновик';font-size:12px}
.compact-ui #cDraft svg{width:19px;height:19px}
.compact-ui #cGo{flex:1;min-width:0;height:42px;font-size:14px;font-weight:800;padding:0 8px;border-radius:10px;background:linear-gradient(125deg,#ffc72d,#ffa909);border:1px solid #ffcf4a;color:#141005;box-shadow:0 2px 20px #ffb00030;white-space:normal}
.compact-ui .mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;border-top:1px solid #293238;border-radius:20px 20px 0 0;padding:0 10px max(7px,env(safe-area-inset-bottom),var(--tg-safe-bottom));background:linear-gradient(145deg,#121a1df5,#0a1012fa);backdrop-filter:blur(16px)}
.compact-ui.mini-app .mobile-nav{max-width:600px;margin:auto}
.mobile-nav button{border:1px solid transparent;border-radius:11px;background:none;color:#a7b0bc;font:inherit;font-size:9px;padding:8px 0 6px;min-height:53px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;min-width:0}
.mobile-nav button>[data-icon]{display:grid;place-items:center;height:23px;width:26px}
.mobile-nav .ui-icon{width:22px;height:22px}
.mobile-nav button.on{color:#ffc328;border-color:#6d481c;background:linear-gradient(135deg,#5b3e13a0,#27201070);box-shadow:inset 0 1px 12px #ffb00012}
.mobile-nav button[data-p=create].on>[data-icon]{color:#221800;background:linear-gradient(130deg,#ffcb55,#ffb31c);border-radius:6px;width:23px}
.compact-ui .mobile-account-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:20px}
.mobile-account-menu .btn{justify-content:flex-start;min-height:44px;font-size:12px}
.compact-ui button:focus-visible,.compact-ui a:focus-visible{outline:2px solid #ffc43c;outline-offset:3px}
.compact-ui .section-grid,.compact-ui .accounts-layout{grid-template-columns:minmax(0,1fr)}
.compact-ui .g2,.compact-ui .g4,.compact-ui .overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.compact-ui .network-grid{grid-template-columns:minmax(0,1fr)}
.compact-ui .login-shell{grid-template-columns:minmax(0,1fr);max-width:430px}
.compact-ui .login-story{padding:24px;border:0}
.compact-ui .login-story h1{font-size:28px}
.compact-ui .login-benefits{display:none}
.compact-ui .login-form-panel{padding:24px}
.compact-ui .media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.compact-ui .section-toolbar{flex-wrap:wrap}
.compact-ui .login-screen{padding-top:calc(20px + max(env(safe-area-inset-top),var(--tg-safe-top)));padding-bottom:calc(20px + max(env(safe-area-inset-bottom),var(--tg-safe-bottom)))}
.compact-ui .cap-tools .btn,.compact-ui #srcUrl,.compact-ui #whenChips .chip,.compact-ui #cDraft,.compact-ui #cGo,.compact-ui .mobile-settings{min-height:44px}
.compact-ui .mobile-settings{width:44px}
@media(max-width:350px){.mobile-brand b{font-size:17px}.mobile-status{font-size:8px;padding:8px}.compact-ui .mobile-header{gap:6px}.compact-ui main{padding-left:12px;padding-right:12px}.compact-ui .src{padding:8px 6px!important;grid-template-columns:24px minmax(0,1fr);gap:6px 4px}.compact-ui .source-icon{width:24px;height:26px}.compact-ui .source-copy b{font-size:9px!important}.compact-ui .ptg{padding:7px 5px!important;gap:4px;font-size:9px}.compact-ui .ptg .platform-icon{width:20px;height:20px}.mobile-preview-heading b{font-size:10px}}
