:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#24272d;background:#f3f4f6;font-synthesis:none;font-size:16px;--accent:#ffbd35;--accent-dark:#e89515;--line:#e7e8ec;--muted:#737985;--graphite:#1b1e25;--radius:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #eeb34f}button{border:0}a{color:inherit}button svg{pointer-events:none}[hidden]{display:none!important}.boot{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:8px}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(140deg,#ffdf4a,#ff9f24);font-size:32px;font-weight:850;color:#252226;line-height:1;box-shadow:0 5px 18px #ffb82615}.brand-dot{color:var(--accent)}.eyebrow,.small-label{font-size:.72rem;letter-spacing:.12em;font-weight:750;color:#868a94}.login-view{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{background:var(--graphite);color:white;padding:46px 62px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story:before{content:"";position:absolute;width:650px;height:650px;border:1px solid #ffffff05;border-radius:50%;right:-330px;top:90px;box-shadow:0 0 0 70px #ffffff02,0 0 0 140px #ffffff02;pointer-events:none}.login-brand,.sidebar-brand{display:flex;align-items:center;gap:12px;font-size:1.65rem;font-weight:780;letter-spacing:-.06em;text-decoration:none}.login-heading{padding:70px 0;position:relative}.login-heading .eyebrow{color:#c1a160}.login-heading h1{font-size:clamp(2.3rem,4vw,4rem);letter-spacing:-.055em;line-height:1.08;font-weight:720;margin:25px 0}.login-heading h1 span{color:var(--accent)}.login-heading>p:last-child{font-size:1.05rem;line-height:1.8;color:#a7abb6}.login-bottom{display:flex;justify-content:space-between;gap:20px;font-size:.8rem;color:#8c919c}.login-panel{display:flex;align-items:center;justify-content:center;padding:50px}.login-card{max-width:390px;width:100%}.login-card h2{font-size:2rem;letter-spacing:-.05em;margin:14px 0}.login-card>p{color:var(--muted);line-height:1.65;margin-bottom:32px}.login-card label{margin-top:0}.password-wrap{position:relative}.password-wrap input{padding-right:100px}.text-button{position:absolute;right:12px;top:13px;color:#7a7e86;background:transparent;font-size:.85rem;font-weight:600}.login-submit{width:100%;margin-top:24px;height:48px}.login-card .login-note{font-size:.8rem;line-height:1.7;margin-top:24px;color:#9599a2}.form-error{color:#b53c42!important;font-size:.875rem;margin:12px 0 0!important}.app-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{background:var(--graphite);color:#dadde5;padding:30px 20px 24px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar-brand{font-size:1.5rem;padding:0 10px}.sidebar-brand .brand-mark{width:36px;height:36px;font-size:28px;border-radius:11px}.workspace-label{margin:34px 0 33px;border:1px solid #353942;border-radius:11px;padding:12px;display:flex;align-items:center;gap:10px;font-size:.87rem;font-weight:600}.workspace-label>div>span{display:block;font-size:.7rem;color:#878d99;font-weight:400;margin-top:5px}.workspace-monogram{background:#343840;color:#cdd0d9;font-size:.8rem;width:32px;height:32px;display:grid;place-items:center;border-radius:8px}.sidebar-section-head{display:flex;align-items:center;justify-content:space-between;padding:0 9px 10px;color:#7e8593;font-size:.62rem;letter-spacing:.09em;font-weight:700}.icon-button{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#f0f1f4;color:#616773;font-size:1.35rem;line-height:1}.icon-button.light{color:#b2b6c2;background:transparent}.icon-button:hover{background:#e7e9ee}.icon-button.light:hover{background:#303540}.page-list{display:flex;flex-direction:column;gap:5px;overflow-y:auto;max-height:45vh}.page-item{background:transparent;text-align:left;color:#a7adb9;display:flex;gap:11px;align-items:center;border-radius:9px;padding:12px;font-size:.875rem;line-height:1.25;position:relative;width:100%}.page-item .page-icon{width:20px;font-size:1rem;flex:0 0 20px;opacity:.6}.page-item .page-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-item:hover{background:#282d36;color:#fff}.page-item.active{background:#393429;color:#ffce68}.page-item.active .page-icon{opacity:1}.page-item.active:before{content:"";width:3px;background:#ffbc39;position:absolute;left:-20px;top:10px;bottom:10px;border-radius:0 2px 2px 0}.sidebar-add{background:transparent;color:#858c9a;display:flex;align-items:center;gap:12px;padding:13px 12px;margin-top:7px;text-align:left;font-size:.82rem}.sidebar-add>span{font-size:1.3rem;color:#a6acb8}.sidebar-add:hover{color:white}.sidebar-help{margin-top:auto;display:flex;gap:10px;padding:20px 10px;color:#7f8795;font-size:.75rem;line-height:1.6}.sidebar-help p{margin:0}.help-icon{flex:0 0 18px;border:1px solid #525967;display:grid;place-items:center;border-radius:50%;height:18px;margin-top:2px;font-size:.7rem}.sidebar-footer{border-top:1px solid #30343e;padding:20px 10px 0;font-size:.72rem;color:#a0a6b2}.sidebar-footer small{display:block;color:#656e7d;font-size:.66rem;margin-top:6px}.sidebar-footer button{display:block;background:none;color:#7d8593;padding:0;margin-top:18px;font-size:.74rem}.sidebar-footer button:hover{color:#ffce68}.workspace{min-width:0}.topbar{height:85px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 38px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:.8rem;color:#8a8f99;white-space:nowrap}.breadcrumb strong{color:#3f434c;font-weight:650}.breadcrumb-divider{color:#c6c9cf}.local-badge{font-size:.62rem;font-weight:600;background:#f2f3f6;color:#878d98;padding:6px 8px;border-radius:5px;margin-left:5px}.topbar-actions{display:flex;align-items:center;gap:12px}.save-status{font-size:.72rem;color:#90959e;white-space:nowrap}.save-status.dirty{color:#b37c23}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:.82rem;font-weight:650;border-radius:8px;padding:11px 17px;white-space:nowrap;transition:background .15s,box-shadow .15s}.button.primary{background:var(--accent);color:#342d20;box-shadow:0 3px 7px #e3a93612}.button.primary:hover:not(:disabled){background:#ffc84c}.button.quiet{background:#fff;color:#717783;border:1px solid #e3e5eb}.button.quiet:hover{background:#f4f5f7}.button.danger{background:#fbecee;color:#bb555a;border:1px solid #f2dbde;font-size:.77rem}.button.danger:hover{background:#f8dfe2}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:34px 38px 26px}.page-heading .eyebrow{font-size:.62rem;color:#a0a4ad;margin:0 0 11px}.page-heading h1{font-size:1.8rem;letter-spacing:-.045em;line-height:1.2;margin:0 0 10px;font-weight:720}.page-heading>div>p:last-child{font-size:.83rem;color:#8b909b;margin:0}.editor-layout{display:grid;grid-template-columns:minmax(340px,1fr) 330px;gap:28px;padding:0 38px 38px;max-width:1500px}.editor-column{min-width:0}.editor-tabs{display:flex;gap:26px;border-bottom:1px solid #dfe2e8;padding:0 4px;margin-bottom:24px}.editor-tabs button{font-size:.82rem;font-weight:600;color:#8b919c;background:none;padding:0 0 15px;position:relative;display:flex;gap:7px;align-items:center}.editor-tabs button[aria-selected=true]{color:#3b3f48}.editor-tabs button[aria-selected=true]:after{content:"";height:3px;position:absolute;bottom:-2px;left:0;right:0;background:#eeb23a;border-radius:3px}.tab-count{display:inline-grid;place-items:center;min-width:18px;padding:2px 4px;background:#e8eaf0;color:#858b97;border-radius:5px;font-size:.64rem}.editor-tabs button[aria-selected=true] .tab-count{background:#fff0cc;color:#b88726}.editor-panel{border:1px solid var(--line);border-radius:var(--radius);padding:28px;background:#fff;box-shadow:0 3px 12px #262c3903}.panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:30px}.panel-title h2{font-size:.98rem;margin:0 0 8px;letter-spacing:-.018em}.panel-title p{font-size:.78rem;color:#8e949f;margin:0;line-height:1.5}.section-tag{color:#a3a8b1;background:#f6f7f9;padding:6px 8px;border-radius:5px;font-size:.55rem;font-weight:650;letter-spacing:.06em}label{display:block;font-size:.8rem;font-weight:600;color:#555b66;margin:0 0 10px}input,textarea,select{width:100%;border:1px solid #dfe3e9;background:#fff;color:#3c424d;border-radius:8px;padding:12px 13px;font-size:.87rem;transition:border-color .15s;line-height:1.45}input:hover,textarea:hover,select:hover{border-color:#c4cad4}input:focus,textarea:focus,select:focus{border-color:#d7a43d;outline:2px solid #ffcf6c30;outline-offset:0}input::placeholder,textarea::placeholder{color:#b0b5bf}textarea{resize:vertical;min-height:220px;line-height:1.7}select{appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%238c929d' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-position:right 12px center;background-size:12px 8px;background-repeat:no-repeat}.field-help{font-size:.7rem;line-height:1.6;color:#979da7;margin:9px 0 24px}.field-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 10px}.field-row label{margin:0}.format-label{display:flex;align-items:center;gap:8px;font-size:.67rem;font-weight:400;color:#969da7}.format-label select{font-size:.67rem;padding:5px 25px 5px 8px;border-color:#e7e9ee;width:auto;border-radius:5px;background-size:9px 6px;background-position:right 8px center;color:#767e8a}.text-meta{display:flex;justify-content:space-between;gap:10px;color:#a1a7b0;font-size:.65rem;line-height:1.5;margin-top:10px}.text-meta>span:last-child{white-space:nowrap}.editor-tip{display:flex;align-items:flex-start;gap:10px;background:#f8f8fa;border-radius:8px;padding:14px;margin-top:25px;color:#8b929e;font-size:.73rem;line-height:1.7}.editor-tip>span{color:#b39963;font-size:1rem}.editor-tip p{margin:0}.editor-tip code{font-size:.7rem;background:#eceef2;padding:2px 4px;border-radius:3px;color:#7d8491}.revision-note{display:flex;justify-content:space-between;gap:12px;color:#a5aab3;font-size:.65rem;margin:17px 4px;line-height:1.6}.preview-column{min-width:0}.preview-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:1px 5px 25px;font-size:.6rem;font-weight:650;letter-spacing:.08em;color:#8e95a1}.preview-live{font-size:.6rem;color:#a3a9b2;letter-spacing:0;font-weight:400}.phone{background:#172532;border:6px solid #272d36;border-radius:32px;box-shadow:0 12px 26px #313c5115;overflow:hidden;max-width:322px;margin:auto;position:relative}.phone-camera{height:19px;background:#1e2e3c;position:relative}.phone-camera:after{content:"";width:58px;height:6px;border-radius:10px;background:#111c26;position:absolute;left:50%;top:6px;transform:translateX(-50%)}.telegram-header{padding:12px 15px 14px;display:flex;gap:10px;align-items:center;background:#1e2e3c;color:#edf1f5;font-size:.82rem;font-weight:650}.telegram-header>div>span{display:block;font-size:.62rem;color:#7f98aa;font-weight:400;margin-top:4px}.telegram-avatar{width:33px;height:33px;display:grid;place-items:center;background:linear-gradient(140deg,#ffcf36,#ff9624);color:#292527;font-weight:800;border-radius:50%;font-size:1.25rem}.telegram-dots{margin-left:auto;color:#7f94a5;font-size:.7rem;letter-spacing:2px;writing-mode:vertical-lr}.telegram-chat{min-height:420px;padding:17px 12px 24px;background-color:#132330;background-image:radial-gradient(circle at 22% 15%,#36536618 1px,transparent 1px),radial-gradient(circle at 72% 52%,#36536618 1px,transparent 1px);background-size:34px 40px,43px 48px}.preview-date{margin:0 auto 20px;width:max-content;font-size:.59rem;color:#a3b6c7;background:#203746;padding:5px 9px;border-radius:10px}.telegram-bubble{border-radius:12px 12px 12px 3px;padding:12px 13px 8px;background:#22394a;color:#dce6ee;overflow:hidden;box-shadow:0 2px 4px #0a172520}.preview-text{font-family:"Segoe UI",Arial,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem;line-height:1.6;min-height:12px}.preview-message-note{display:block;color:#718da1;font-size:.56rem;text-align:right;margin-top:7px}.preview-gallery{margin:-12px -13px 11px;position:relative;background:#182b39}.preview-gallery img{display:block;width:100%;aspect-ratio:1.15;object-fit:cover}.preview-gallery>span{position:absolute;right:8px;top:8px;background:#0e1c2da8;color:#fff;font-size:.6rem;padding:4px 6px;border-radius:8px}.preview-buttons{display:flex;flex-direction:column;gap:4px;margin-top:5px}.preview-button-row{display:flex;gap:4px}.preview-button-row>button{min-width:0;flex:1;border-radius:5px;background:#2b4559;color:#c4e1f3;font-size:.72rem;font-weight:600;padding:10px 4px;overflow-wrap:anywhere;line-height:1.4}.preview-button-row>button:hover{background:#36566d}.preview-navigation{display:flex;gap:5px;align-items:center;color:#89a1b2;font-size:.65rem;margin-top:5px}.preview-navigation button{flex:1;padding:9px 6px;background:#2b4559;color:#c4e1f3;border-radius:5px;font-size:.68rem}.preview-navigation>span{padding:0 5px;min-width:35px;text-align:center}.preview-empty{text-align:center;color:#718b9e;font-size:.77rem;line-height:1.7;padding-top:80px}.telegram-input{display:flex;align-items:center;gap:8px;background:#1e2e3c;padding:12px 10px;color:#70899c;font-size:.68rem}.telegram-input>span:first-child{padding:7px 9px;background:#2a72a4;color:#e3f1fb;border-radius:15px;font-size:.62rem}.telegram-input>div{flex:1;background:#182936;border-radius:16px;padding:8px 9px;font-size:.65rem}.telegram-input>span:last-child{font-size:1.25rem}.preview-footnote{font-size:.66rem;color:#a1a8b3;text-align:center;line-height:1.7;margin:16px auto 0;max-width:275px}.cards-list{display:flex;flex-direction:column;gap:14px}.button-card{border:1px solid #e4e7ed;border-radius:10px;padding:17px;background:#fcfcfd}.card-topline{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.card-title{display:flex;gap:9px;align-items:center;font-size:.75rem;font-weight:650;color:#686f7d}.card-number{display:grid;place-items:center;width:23px;height:23px;border-radius:6px;background:#eef0f4;color:#969daa;font-size:.65rem}.card-controls{display:flex;gap:5px;align-items:center}.mini-button{font-size:.65rem;background:white;border:1px solid #e2e6ed;border-radius:5px;padding:5px 7px;color:#959ca7}.mini-button:hover:not(:disabled){background:#f1f3f6;color:#5f6876}.mini-button.remove{color:#c47d80;border-color:#f0e3e4}.card-grid{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:13px}.card-grid.full{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.button-card label{font-size:.69rem;color:#8b929d;margin-top:12px;margin-bottom:6px;font-weight:500}.button-card input,.button-card select{font-size:.77rem;padding:9px 10px;border-radius:6px}.add-block{width:100%;border:1px dashed #d5dbe5;background:white;color:#929aa7;margin-top:16px;padding:13px;font-size:.78rem}.add-block:hover:not(:disabled){background:#fffbf2;border-color:#e0bb6b;color:#b18b3b}.add-block>span{font-size:1.1rem;line-height:1}.empty-state{padding:36px 14px;border:1px dashed #e1e5ed;border-radius:10px;text-align:center;color:#a0a7b2;font-size:.8rem;line-height:1.7}.empty-state strong{display:block;color:#7c8592;margin-bottom:6px;font-size:.82rem;font-weight:600}.upload-zone{border:1px dashed #d6dce5;background:#fbfcfd;border-radius:10px;padding:25px 15px;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;text-align:center;transition:background .15s,border-color .15s}.upload-zone:hover,.upload-zone.dragover{border-color:#e1ae4b;background:#fffbf0}.upload-zone strong{font-size:.8rem;color:#707986;font-weight:600}.upload-zone>span:not(.upload-symbol){font-size:.72rem;color:#a1a8b4;font-weight:400}.upload-zone small{font-size:.62rem;font-weight:400;color:#aeb4bf;margin-top:3px}.upload-symbol{display:grid;place-items:center;width:32px;height:32px;background:#f0f2f6;color:#a2aab7;border-radius:9px;font-size:1.3rem;margin-bottom:4px}.upload-zone input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.upload-zone:focus-within{outline:3px solid #eeb34f;outline-offset:3px}.image-list-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:28px 0 13px}.image-list-heading h3{font-size:.8rem;font-weight:600;color:#747d8a;margin:0}.image-list-heading span{font-size:.6rem;color:#a6aeba}.images-list{display:flex;flex-direction:column;gap:12px}.image-card{border:1px solid #e2e7ed;border-radius:9px;padding:12px;background:#fcfcfe;display:grid;grid-template-columns:80px minmax(0,1fr);gap:13px;position:relative}.image-card.dragging{opacity:.4}.image-card.drop-target{border-color:#dfac48;box-shadow:0 0 0 2px #ffd3773b}.image-thumb{width:80px;height:80px;border-radius:7px;object-fit:cover;background:#f0f1f4;cursor:grab}.image-info{min-width:0}.image-info .card-topline{margin-bottom:8px}.image-info .card-title{font-size:.69rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-info input{font-size:.72rem;padding:8px;border-radius:6px}.image-info label{margin:0 0 5px;font-size:.66rem;color:#969eab;font-weight:400}.upload-progress{font-size:.75rem;color:#b3852b;padding:12px 3px}.conflict-banner{background:#fff1d6;border-bottom:1px solid #ead7af;color:#9b7837;padding:15px 38px;font-size:.8rem;line-height:1.6}.page-dialog{border:1px solid #e3e6ec;border-radius:16px;padding:28px;width:min(460px,calc(100vw - 32px));box-shadow:0 20px 80px #1d283240}.page-dialog::backdrop{background:#131e2c70;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.page-dialog h2{font-size:1.4rem;letter-spacing:-.035em;margin:22px 0 12px}.page-dialog p{color:#8d95a1;font-size:.85rem;line-height:1.6;margin-bottom:24px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#232934;color:#f1f4f8;border-radius:10px;padding:14px 20px;box-shadow:0 7px 30px #101b3133;font-size:.82rem;line-height:1.5;z-index:20;max-width:min(550px,calc(100vw - 32px))}.toast.error{background:#8f4348}.toast.success{background:#394b3f}@media(min-width:1550px){.editor-layout{grid-template-columns:minmax(400px,740px) 350px;gap:48px}.preview-column .phone{max-width:330px}.topbar,.page-heading{padding-left:48px;padding-right:48px}.page-heading{padding:0;margin-left:48px}.editor-layout{padding-left:48px}}@media(max-width:1250px){.app-shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding-left:15px;padding-right:15px}.sidebar-brand{font-size:1.3rem}.topbar{padding:0 24px}.page-heading{margin-left:24px;margin-right:24px}.editor-layout{padding-left:24px;padding-right:24px;grid-template-columns:minmax(310px,1fr) 275px;gap:20px}.editor-panel{padding:22px}.save-status{display:none}.phone{border-width:5px;border-radius:28px}.telegram-chat{padding-left:10px;padding-right:10px;min-height:390px}.preview-heading{font-size:.56rem}.preview-live{display:none}.local-badge{display:none}.button{font-size:.77rem;padding:10px 13px}.editor-tabs{gap:22px}.image-card{grid-template-columns:65px minmax(0,1fr);gap:10px}.image-thumb{width:65px;height:75px}.image-info .card-controls{gap:3px}.image-info .mini-button{font-size:.55rem;padding:4px}.image-list-heading{display:block}.image-list-heading>span{display:block;margin-top:6px}}@media(max-width:1020px){.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.sidebar-brand{gap:9px;font-size:1.2rem}.sidebar-brand .brand-mark{width:30px;height:30px;font-size:24px}.workspace-label{padding:9px;gap:8px;font-size:.76rem}.workspace-label>div>span{font-size:.6rem}.sidebar-section-head{font-size:.55rem}.page-item{font-size:.77rem;padding:11px 9px;gap:8px}.sidebar-footer{font-size:.64rem;padding-left:6px;padding-right:6px}.editor-layout{grid-template-columns:minmax(0,1fr);max-width:800px}.preview-column{margin-top:15px}.preview-heading{max-width:322px;margin-left:auto;margin-right:auto;font-size:.65rem}.preview-live{display:inline;font-size:.6rem}.phone{max-width:322px}.preview-footnote{max-width:320px}.topbar{height:73px;padding:0 22px}.page-heading{margin:28px 22px 24px}.editor-layout{padding:0 22px 25px}.revision-note{font-size:.6rem}.sidebar-help{padding-left:6px;padding-right:6px}.card-grid{grid-template-columns:minmax(0,1fr) 90px}.login-story{padding:35px}.login-panel{padding:35px}}@media(max-width:700px){.app-shell{display:block}.sidebar{height:auto;position:relative;padding:19px 20px 15px;gap:0}.sidebar-brand{font-size:1.3rem}.sidebar-brand .brand-mark{width:31px;height:31px}.workspace-label,.sidebar-section-head,.sidebar-help,.sidebar-footer,.sidebar-add{display:none}.page-list{margin-top:20px;flex-direction:row;max-height:none;overflow:auto;gap:6px;padding-bottom:2px}.page-item{width:auto;flex:0 0 auto;padding:9px 12px;max-width:190px;font-size:.76rem}.page-item.active:before{display:none}.page-item .page-icon{width:15px;flex-basis:15px}.sidebar:after{display:none}.topbar{height:auto;min-height:66px;padding:15px 20px;gap:10px;flex-wrap:wrap}.breadcrumb{font-size:.72rem;gap:8px}.topbar-actions{gap:8px;margin-left:auto}.topbar-actions .button{padding:9px 12px;font-size:.7rem}.page-heading{margin:26px 20px 24px;align-items:flex-start}.page-heading h1{font-size:1.65rem}.page-heading>div>p:last-child{font-size:.76rem;line-height:1.6}.page-heading .eyebrow{font-size:.55rem}.page-heading .button.danger{font-size:.65rem;padding:9px;max-width:110px;white-space:normal}.editor-layout{padding:0 16px 28px;gap:15px}.editor-tabs{padding:0 5px;gap:25px}.editor-tabs button{font-size:.77rem}.editor-panel{padding:22px 18px}.section-tag{font-size:.5rem}.panel-title{margin-bottom:25px}.panel-title h2{font-size:.92rem}.panel-title p{font-size:.72rem}.format-label{font-size:0}.format-label select{font-size:.63rem}.field-row{gap:6px}.text-meta{font-size:.59rem}.editor-tip{font-size:.69rem;padding:12px}.revision-note>span:last-child{max-width:160px;text-align:right}.preview-column{padding-top:10px}.sidebar-mobile-add{width:30px!important;display:inline-flex!important;justify-content:center;font-size:1.1rem!important}.login-view{display:block}.login-story{min-height:285px;padding:25px}.login-heading{padding:25px 0 0}.login-heading .eyebrow{font-size:.6rem}.login-heading h1{font-size:2rem;margin:15px 0;line-height:1.08}.login-heading h1 br:nth-child(2){display:none}.login-heading>p:last-child,.login-bottom{display:none}.login-brand{font-size:1.3rem}.login-brand .brand-mark{width:32px;height:32px;font-size:26px}.login-panel{padding:40px 24px}.login-card h2{font-size:1.7rem}.login-card>p{font-size:.86rem;margin-bottom:28px}.button-card{padding:14px}.card-controls{gap:4px}.mini-button{padding:5px 6px;font-size:.6rem}.card-grid.full{grid-template-columns:minmax(0,1fr)}.image-card{grid-template-columns:65px minmax(0,1fr)}.image-info .mini-button{font-size:.58rem;padding:4px 5px}.conflict-banner{padding:12px 20px;font-size:.74rem}.page-dialog{padding:22px}.page-dialog h2{font-size:1.25rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* Keep all editing controls readable at normal browser zoom. */
.sidebar-mobile-add{display:none}
.editor-panel label,.button,.editor-tabs button,.page-item,.sidebar-add{font-size:.875rem}
.editor-panel input,.editor-panel select,.editor-panel textarea{font-size:1rem}
.panel-title p,.field-help,.button-card label,.image-info label{font-size:.875rem;line-height:1.6}
.card-title,.image-info .card-title,.image-list-heading h3{font-size:.875rem}
.mini-button,.image-info .mini-button{font-size:.875rem;padding:5px 7px}
.card-topline,.card-controls{flex-wrap:wrap}
.card-controls{justify-content:flex-end}
.preview-text{font-size:.875rem}
@media(max-width:700px){.sidebar-footer{display:block;position:absolute;right:20px;top:28px;border:0;padding:0}.sidebar-footer>span,.sidebar-footer>small{display:none}.sidebar-footer button{margin:0;font-size:.875rem}.editor-panel{padding:22px 16px}.image-info .card-controls{justify-content:flex-start}.image-info .mini-button{font-size:.875rem;padding:4px 5px}.image-info .card-topline{gap:8px}}

.telegram-avatar{background:#17191f none center/cover no-repeat;color:transparent}


/* Button responses and a shared photo/video gallery. */
.button-response{margin-top:18px;padding-top:14px;border-top:1px solid #e6e8ee}
.response-hint{font-size:.875rem;line-height:1.6;color:#7d8794;margin:0 0 12px}
.configure-response{background:#fff0cf;border:1px solid #efd494;color:#8a6118;white-space:normal;text-align:center}
.configure-response:hover{background:#ffe6ad}
.image-thumb.video-thumb{background:#152431;object-fit:contain}
.preview-gallery video{display:block;width:100%;aspect-ratio:1.15;object-fit:contain;background:#111d27}
@media(max-width:700px){.editor-tabs{gap:12px}.editor-tabs button{font-size:.875rem}.editor-tabs .tab-count{font-size:.6rem}.configure-response{width:100%}.video-thumb{min-height:90px}.image-card:has(video){grid-template-columns:100px minmax(0,1fr)}.image-card:has(video) .image-thumb{width:100px;height:90px}}


/* One visible editing workflow, with stable navigation and a persistent save action. */
.app-shell{display:block}
.sidebar{position:fixed;inset:0 auto 0 0;width:248px;height:100dvh;z-index:30;margin:0;overflow:hidden}
.workspace{margin-left:248px}
.sidebar .page-list{min-height:70px;max-height:none;flex:1;overflow-y:auto}
.sidebar-help{margin-top:18px;padding-top:12px;padding-bottom:16px}
.topbar{position:sticky;top:0;z-index:20;box-shadow:0 2px 12px #20283604}
#save{min-height:44px;padding:12px 20px;font-size:.875rem;font-weight:750}
.workflow-intro{padding:30px 38px 0;max-width:1500px}
.workflow-intro .eyebrow{margin:0 0 9px;font-size:.7rem}
.workflow-intro h1{font-size:1.8rem;letter-spacing:-.045em;margin:0 0 12px;font-weight:720}
.workflow-intro>p:not(.eyebrow){font-size:1rem;line-height:1.65;color:#747d8a;margin:0;max-width:850px}
.screen-switcher{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:22px}
.screen-shortcut{background:#fff;border:1px solid #dde2e9;border-radius:9px;padding:11px 15px;font-size:.875rem;font-weight:600;color:#727d8a;line-height:1.4;max-width:290px;overflow-wrap:anywhere;text-align:left}
.screen-shortcut:hover{background:#fff9ec;border-color:#e6c078}
.screen-shortcut.active{background:#ffedc2;border-color:#dfb157;color:#7e5a20;box-shadow:0 2px 5px #dfb15712}
.page-heading{margin-top:30px;margin-bottom:22px;scroll-margin-top:110px}
.page-heading h2{font-size:1.55rem;line-height:1.3;letter-spacing:-.035em;margin:0 0 9px;font-weight:720}
.page-heading>div>p:last-child{font-size:.875rem;line-height:1.65;max-width:900px}
.editor-layout{align-items:start;grid-template-columns:minmax(350px,1fr) 330px}
.editor-column>.editor-panel{margin-bottom:22px;scroll-margin-top:170px}
.panel-title h3{font-size:1.05rem;line-height:1.45;letter-spacing:-.02em;margin:0 0 7px;font-weight:700}
.panel-title p{font-size:.875rem;color:#8a929e;line-height:1.6}
.panel-title{margin-bottom:22px}
.screen-fields{display:grid;grid-template-columns:minmax(150px,1fr) minmax(210px,1.15fr);gap:18px;align-items:end}
.screen-fields input,.screen-fields select{min-height:48px}
.screen-fields label{font-size:.875rem;line-height:1.5;min-height:21px}
#message-text{min-height:190px}
#after-text{min-height:135px}
#panel-after .field-row{margin-top:0}
.format-label{font-size:.75rem}
.format-label select{font-size:.75rem}
.flow-summary{border:1px solid #e5e8ec;background:#fafbfc;border-radius:11px;padding:14px 17px;margin-bottom:13px}
.flow-summary>strong{display:block;font-size:.8rem;color:#89929e;font-weight:600;margin-bottom:9px}
#flow-summary-items{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.flow-step{display:inline-flex;align-items:center;background:#fff;border:1px solid #e8eaf0;border-radius:6px;font-size:.8rem;color:#667181;padding:6px 9px;line-height:1.4}
.flow-empty{font-size:.8rem;color:#a0a7b1;line-height:1.6}
.jump-links{display:flex;align-items:center;flex-wrap:wrap;gap:12px 21px;position:sticky;top:85px;z-index:12;background:#f3f4f6;padding:12px 4px 0;margin-bottom:20px;border-bottom-color:#dfe3e9}
.jump-links button{font-size:.875rem;padding-bottom:12px;line-height:1.4;tab-size:0}
.jump-links button[aria-current=location]{color:#3c454f}
.jump-links button[aria-current=location]:after{content:"";height:3px;position:absolute;bottom:-2px;left:0;right:0;background:#eeb23a;border-radius:3px}
.jump-links .tab-count{font-size:.65rem}
.image-list-heading{margin-top:25px;gap:16px}
.image-list-heading h4{font-size:.875rem;font-weight:600;color:#6f7b8b;margin:0}
.image-list-heading>span{font-size:.75rem;line-height:1.5}
.image-card{grid-template-columns:180px minmax(0,1fr);padding:14px;gap:16px;background:#fcfcfd}
.image-thumb{width:180px;height:125px;object-fit:contain;background:#e9edf2;cursor:grab}
.image-thumb.video-thumb{height:125px;background:#12222e;object-fit:contain}
.image-info .card-title{white-space:normal;overflow:visible;line-height:1.5}
.image-info .card-topline{gap:10px;margin-bottom:13px}
.image-info .card-controls{justify-content:flex-start}
.image-info input{font-size:.875rem;min-height:42px}
.upload-zone{margin-top:18px;padding:20px 15px}
.upload-zone strong{font-size:.875rem}
.upload-zone>span:not(.upload-symbol){font-size:.8rem}
.upload-zone small{font-size:.75rem;line-height:1.6}
.configure-response{font-weight:700;width:100%;min-height:44px}
.button-response .response-hint{line-height:1.65}
.revision-note{font-size:.75rem;line-height:1.7}
.preview-column{position:sticky;top:108px;align-self:start}
.preview-heading{margin-top:3px;margin-bottom:18px;font-size:.65rem}
.telegram-chat{min-height:340px;max-height:calc(100dvh - 275px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#395367 #132330}
.preview-before{white-space:pre-wrap}
.sequence-bubble{margin-bottom:8px}
.after-bubble{margin-top:9px;margin-bottom:0}
.telegram-bubble{flex-shrink:0}
.preview-album{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:-12px -13px 11px;background:#142938;padding:4px}
.album-item{min-width:0;margin:0;background:#203b4d;border-radius:5px;overflow:hidden}
.album-item:last-child:nth-child(odd){grid-column:1/-1}
.album-thumb{display:block;width:100%;height:90px;object-fit:contain;background:#122330}
.album-item:last-child:nth-child(odd) .album-thumb{height:115px}
.album-item figcaption{padding:6px 7px;color:#b5c9d9;font-size:.7rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;max-height:72px;overflow:hidden}
.telegram-avatar{background:#17191f;color:transparent;overflow:hidden}
.telegram-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.dialog-parent-label{margin-top:20px}
@media(min-width:1550px){.workflow-intro{padding-left:48px;padding-right:48px}.editor-layout{grid-template-columns:minmax(450px,780px) 350px;gap:40px}}
@media(max-width:1250px){.sidebar{width:220px}.workspace{margin-left:220px}.workflow-intro{padding-left:24px;padding-right:24px}.editor-layout{grid-template-columns:minmax(330px,1fr) 280px}.image-card{grid-template-columns:140px minmax(0,1fr)}.image-thumb,.image-thumb.video-thumb{width:140px;height:115px}.screen-fields{grid-template-columns:1fr}.jump-links{gap:10px 16px}}
@media(max-width:1020px){.sidebar{width:190px}.workspace{margin-left:190px}.workflow-intro{padding-left:22px;padding-right:22px}.editor-layout{grid-template-columns:minmax(0,1fr);max-width:900px}.preview-column{position:static;max-width:400px;width:100%;margin:15px auto 0}.preview-heading{max-width:322px}.jump-links{top:73px}.telegram-chat{max-height:650px}.screen-fields{grid-template-columns:minmax(150px,1fr) minmax(210px,1.15fr)}.image-card{grid-template-columns:180px minmax(0,1fr)}.image-thumb,.image-thumb.video-thumb{width:180px;height:125px}}
@media(max-width:700px){.sidebar{position:relative;inset:auto;width:auto;height:auto;overflow:visible;padding-bottom:16px}.workspace{margin-left:0}.sidebar .page-list{min-height:0;max-height:none;flex:none;overflow-y:visible;overflow-x:auto}.sidebar-help{display:none}.topbar{position:sticky;padding:12px 16px;gap:10px;min-height:96px}.breadcrumb{font-size:.75rem;width:100%}.topbar-actions{width:100%;margin-left:0;justify-content:space-between}.topbar-actions #save{font-size:.8rem;padding:11px 14px;flex:1}.topbar-actions #reload{font-size:.8rem;min-height:44px}.workflow-intro{padding:24px 18px 0}.workflow-intro h1{font-size:1.55rem}.workflow-intro>p:not(.eyebrow){font-size:.875rem}.screen-switcher{margin-top:17px;gap:7px}.screen-shortcut{font-size:.8rem;padding:10px 12px}.page-heading{margin:24px 18px 20px;scroll-margin-top:115px}.page-heading h2{font-size:1.35rem}.page-heading .button.danger{max-width:115px;font-size:.7rem;line-height:1.5}.editor-layout{padding:0 14px 24px}.editor-column>.editor-panel{padding:22px 17px;scroll-margin-top:175px}.screen-fields{grid-template-columns:1fr;gap:17px}.panel-title h3{font-size:1rem}.panel-title p{font-size:.875rem}.section-tag{display:none}.flow-summary{padding:13px 14px}.flow-step{font-size:.75rem}.jump-links{top:103px;padding-top:10px;gap:10px 14px}.jump-links button{font-size:.8rem;padding-bottom:10px;gap:5px}.jump-links .tab-count{font-size:.6rem}.image-card,.image-card:has(video){grid-template-columns:1fr;gap:14px}.image-thumb,.image-thumb.video-thumb,.image-card:has(video) .image-thumb{width:100%;height:auto;max-height:220px;aspect-ratio:16/9;object-fit:contain}.image-info .card-controls{gap:7px}.image-info .mini-button{font-size:.8rem;padding:7px 10px}.image-info .card-title{font-size:.875rem}.image-list-heading{display:block}.image-list-heading>span{margin-top:6px;display:block;font-size:.75rem}.revision-note{display:block;font-size:.7rem}.revision-note>span{display:block}.revision-note>span:last-child{max-width:none;text-align:left;margin-top:4px}.preview-column{max-width:none;margin-top:8px}.telegram-chat{max-height:650px}.format-label{font-size:0}.format-label select{font-size:.75rem}.field-row{align-items:flex-start}.field-row>label:first-child{line-height:1.6;max-width:50%}}
