/* PageFlow Studio v3 — independent dark workspace inspired by the requested three-pane layout */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.studio-mode{background:#111213;color:#eceef2}
body.studio-mode .sidebar{width:188px;background:#101113;border-right:1px solid #25262a;padding:19px 11px}
body.studio-mode .sidebar>.brand{font-size:21px;padding:0 4px 24px}
body.studio-mode .logo{background:#12a59b}
body.studio-mode .small-chip{display:none}
body.studio-mode .nav-label{margin:23px 8px 10px;color:#646b77}
body.studio-mode .nav{font-size:12px;color:#9ca1a9;border-radius:6px;padding:12px 11px;gap:8px}
body.studio-mode .nav.active{background:#17332f;color:#69dfd0}
body.studio-mode .nav:hover{background:#24262b}
body.studio-mode .main{margin-left:188px}
body.studio-mode .topbar,body.studio-mode footer{display:none}
body.studio-mode .main-content{max-width:none;margin:0;padding:0}
.pf-compose-screen{font-size:13px;color:#e9e9ec;background:#1c1d21;min-height:100vh;animation:none}
.pf-compose-screen button{font-size:inherit}
.pf-compose-screen :is(input:not([type=checkbox]):not([type=file]),textarea,select){color:#f0f0f3;background:#2c2e34;border:1px solid #41444e;border-radius:7px;padding:9px 11px;box-shadow:none}
.pf-compose-screen :is(input:not([type=checkbox]):not([type=file]),textarea):focus{border-color:#1bbdae;box-shadow:0 0 0 2px #18b5ab1e}
.pf-compose-screen :is(input,textarea)::placeholder{color:#9ca0ab}
.pf-compose-screen input[type=checkbox]{accent-color:#27c3aa;width:15px;height:15px;flex:none}
.studio-shell{min-height:100vh;display:flex;flex-direction:column;overflow:hidden}
.studio-top{height:58px;min-height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 15px 0 20px;border-bottom:1px solid #35363b;background:#202125}
.studio-head-left,.studio-head-right{display:flex;align-items:center;gap:12px}
.studio-head-left strong{font-size:15px;color:#e9eaed;font-weight:750}
.studio-head-left small{font-size:11px;color:#8e929e}
.studio-pill{padding:6px 9px;border-radius:6px;border:1px solid #397469;color:#58d4c2;font-size:10px;font-weight:800;letter-spacing:.6px}
.studio-mini-badge{background:#28443d;color:#85e0ce;border-radius:25px;padding:6px 10px;font-size:11px;font-weight:750}
.studio-icon{height:30px;width:31px;border-radius:7px;border:1px solid #45464c;background:#282a2e;color:#b9bcc5;display:inline-flex;align-items:center;justify-content:center;font-size:19px!important;line-height:1;flex:none}
.studio-icon:hover{background:#383a40;color:#fff}
.studio-columns{display:grid;grid-template-columns:248px minmax(335px,1fr) minmax(275px,345px);flex:1;min-height:calc(100vh - 58px);height:calc(100vh - 58px)}
.studio-pages{background:#202125;border-right:1px solid #35373d;display:flex;flex-direction:column;min-height:0}
.studio-panel-title{display:flex;align-items:center;justify-content:space-between;padding:21px 13px 12px}
.studio-panel-title h2{font-size:15px;letter-spacing:0;margin:3px 0 0}
.studio-kicker{font-size:9px;letter-spacing:1.5px;color:#9fa3b1;font-weight:800}
.studio-count{color:#87d6c8;font-size:10px;background:#273a37;border-radius:20px;padding:6px 9px;font-weight:650}
.studio-search-row{padding:0 13px 12px;display:flex;align-items:center;gap:7px}
.pf-compose-screen .studio-search{height:39px;border-radius:7px;border:1px solid #46484f;display:flex;align-items:center;gap:7px;padding:0 10px;flex:1;background:#2a2b31;color:#c5c8d0}
.pf-compose-screen .studio-search input{height:36px;min-width:0;border:0!important;background:transparent!important;padding:0;font-size:12px;box-shadow:none}
.studio-search>span{font-size:20px}
.studio-pick-all{padding:10px 15px;border-top:1px solid #303238;border-bottom:1px solid #303238;display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:11px;color:#d6d7dd}
.studio-pick-all label{display:flex;align-items:center;gap:6px;cursor:pointer}
.studio-pick-all>span{color:#8c919f;font-size:10px}
.studio-group-block{padding:17px 13px 14px;border-bottom:1px solid #303238}
.studio-subheading{font-size:10px;letter-spacing:1.1px;color:#959ba7;font-weight:800;display:flex;align-items:center;justify-content:space-between;gap:6px}
.studio-add,.studio-link-button{border:0;background:transparent;color:#58d5c1;font-size:10px!important;padding:2px 0}
.studio-group-chips{display:flex;gap:6px;flex-wrap:wrap;max-height:102px;overflow:auto;margin-top:11px}
.pf-compose-screen .studio-group-chips .chip{display:inline-flex;align-items:center;gap:4px;border:1px solid #45484e;border-radius:5px;background:#2a2c31;color:#bec1ca;padding:6px 8px;font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.pf-compose-screen .studio-group-chips .chip.active{color:#6cf2d1;border-color:#36a995;background:#28423c}
.pf-compose-screen .studio-group-chips .chip small{color:#8e9a9a;font-size:9px}
.studio-subheading-pages{padding:16px 15px 7px}
.studio-subheading-pages span{color:#a2a5af}
.studio-page-list{min-height:0;flex:1;overflow-y:auto;padding:5px 7px 12px;scrollbar-color:#50515a transparent;scrollbar-width:thin}
.studio-page-list .page-check{background:transparent;border:1px solid transparent;box-shadow:none;display:flex;gap:10px;align-items:center;padding:9px 6px;margin:0;border-radius:6px;cursor:pointer;color:#d5d6dc}
.studio-page-list .page-check:hover{background:#2c3033;border-color:#3a3d41}
.studio-page-list .page-check input{order:3;margin:0 0 0 auto}
.studio-page-list .page-check>span:nth-of-type(2){min-width:0;flex:1}
.studio-page-list .page-check strong{font-size:11px;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:138px;color:#78d7cb}
.studio-page-list .page-check small{font-size:9px;color:#9599a2;margin-top:3px;display:block}
.studio-page-list .page-badge{height:33px;width:33px;border-radius:50%;font-size:13px;background:linear-gradient(135deg,#126b68,#7f719e);position:relative}
.studio-page-list .page-badge:after{content:'f';position:absolute;bottom:-3px;left:-3px;background:#1379ec;color:white;font-weight:900;font-size:10px;width:14px;height:14px;border:2px solid #202125;border-radius:50%;display:grid;place-items:center}
.studio-pages-foot{margin-top:auto;border-top:1px solid #373940;padding:12px 13px 16px;display:flex;flex-direction:column;gap:8px}
.studio-connect-link{display:flex;align-items:center;gap:8px;color:#6ee1cd;background:#233c37;border:1px solid #36665c;border-radius:7px;padding:10px;font-size:11px;font-weight:700}
.studio-connect-link>span:last-child{margin-left:auto}
.studio-connect-link:hover{background:#305249;color:#fff}
.studio-fb-f{width:20px;height:20px;border-radius:50%;background:#1579e9;color:#fff;font-size:15px;font-family:Arial,sans-serif;font-weight:900;display:inline-grid;place-items:center;flex:none}
.studio-pages-foot .studio-link-button{text-align:left;padding:2px 0}
.studio-editor{background:#1d1e22;min-height:0;min-width:0;display:flex;flex-direction:column;border-right:1px solid #36373c}
.studio-editor-scroll{overflow-y:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#4e4f57 transparent;padding:20px 21px 26px}
.studio-editor-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.studio-labels{display:flex;align-items:center;gap:6px;padding:0 10px;border:1px solid #42454a;border-radius:25px;color:#bcbec6;min-width:0;max-width:270px}
.pf-compose-screen .studio-labels input{border:0;background:none;min-width:0;padding:7px 2px;font-size:11px;box-shadow:none}
.studio-post-type-note{color:#9da0a7;font-size:10px}
.studio-tabs{display:flex;gap:18px;align-items:center;border-bottom:1px solid #393b40;padding:4px 0 0;margin-bottom:16px}
.studio-tab{border:0;border-bottom:2px solid transparent;padding:9px 3px 11px;background:transparent;color:#b4b6bf;font-size:12px!important}
.studio-tab.selected{border-color:#37b6ef;color:#59bfff}
.studio-tab.is-unavailable{opacity:.52;cursor:not-allowed}
.studio-tab small{font-size:8px;color:#c2a77c}
.studio-writing-box{border:1px solid #45474e;border-radius:9px;background:#2b2d33;padding:10px}
.pf-compose-screen #caption{width:100%;height:180px;min-height:140px;resize:vertical;border:0;background:transparent;padding:3px 2px;color:#e6e7ec;font-size:13px;line-height:1.6;box-shadow:none}
.studio-write-actions{display:flex;align-items:center;gap:7px;padding:8px 0 10px}
.studio-tool{border:1px solid #41444a;border-radius:5px;padding:7px 9px;background:#32353c;color:#b5b9c5;font-size:10px!important;white-space:nowrap}
.studio-tool:hover{color:#fff;border-color:#64b4a7}
.studio-write-fill{flex:1}
.studio-char-count{font-size:10px;color:#a6a9b3;white-space:nowrap}
.studio-dropzone{display:flex;align-items:center;justify-content:center;gap:10px;border:1px dashed #52555c;border-radius:7px;padding:12px 10px;cursor:pointer;color:#c4c7d0;background:#44464c;font-size:11px;font-weight:700}
.studio-dropzone:hover{background:#505259;border-color:#67cbb9}
.studio-dropzone>span:first-child{font-size:18px}
.studio-dropzone small{font-weight:400;font-size:10px;color:#bec0c8}
.studio-writing-box .media-chips{margin-top:8px}
.studio-comment-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:15px}
.studio-comment-toggle{border:0;background:transparent;display:flex;gap:10px;align-items:center;color:#e8e9ed;padding:0;font-size:12px!important;font-weight:650}
.studio-comment-toggle .studio-chevron{font-size:17px;color:#9699a3;transition:transform .2s}
.studio-comment-toggle[aria-expanded=false] .studio-chevron{transform:rotate(-90deg)}
.studio-comment-label{font-size:10px;color:#8f939e;text-align:right}
.studio-comment-panel{padding:12px 0 8px}
.pf-compose-screen #firstComment{min-height:68px;width:100%;resize:vertical;font-size:12px;line-height:1.6}
.studio-comment-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#8ebdab;font-size:10px;margin-top:8px}
.studio-comment-bottom label{display:flex;align-items:center;gap:7px;color:#a4a7b3}
.pf-compose-screen .studio-comment-bottom input{width:62px;padding:4px 6px;font-size:11px}
.studio-options{margin-top:17px;border:1px solid #3c3e46;border-radius:8px;background:#24252a}
.studio-options summary{list-style:none;cursor:pointer;padding:13px 15px;font-size:12px;font-weight:750;color:#e3e4e8;display:flex;align-items:center;gap:10px}
.studio-options summary::-webkit-details-marker{display:none}
.studio-options summary:before{content:'▾';color:#a4aaa9;margin-right:2px}
.studio-options:not([open]) summary:before{content:'▸'}
.studio-options summary span{margin-left:auto;font-size:10px;font-weight:400;color:#9295a0}
.studio-opt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 15px 12px}
.studio-opt-grid label,.studio-link-input{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:700;color:#bfc1ca;min-width:0}
.studio-opt-grid label span{font-size:10px;color:#898f9b;font-weight:400}
.pf-compose-screen .studio-opt-grid input{font-size:12px;height:37px}
.studio-link-input{padding:0 15px 12px}
.studio-link-input input{font-size:12px}
.studio-opt-help{font-size:10px;line-height:1.55;color:#969ba7;padding:0 15px 14px;margin:0}
.studio-schedule-overview{margin-top:19px}
.studio-order-list{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 0}
.studio-order-list .order-item{display:flex;gap:7px;align-items:center;background:#282a30;border:1px solid #393b43;border-radius:8px;padding:8px;max-width:240px}
.studio-order-list .order-number{display:grid;place-items:center;flex:none;background:#285d53;border-radius:50%;width:21px;height:21px;color:#82e7d4;font-size:10px;font-weight:800}
.studio-order-list .order-item strong{font-size:10px;color:#d9dae0;display:block;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-order-list .order-item small{display:block;font-size:9px;color:#9398a4;margin-top:2px}
.studio-footer{min-height:73px;border-top:1px solid #3c3d43;background:#222328;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:12px 18px;flex-wrap:wrap}
.studio-footer-left,.studio-footer-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.studio-footer-btn{border:1px solid #4b4d55;border-radius:6px;padding:10px 11px;color:#d7d9e0;background:#303137;font-size:11px!important;font-weight:650}
.studio-footer-btn:hover{background:#3d3f45}
.studio-footer-btn.studio-publish{border-color:#2b87d8;background:#202b39;color:#66bfff}
.studio-schedule-btn{border:1px solid #398d80;color:#fff;background:#24796d;border-radius:7px;padding:10px 13px;font-weight:800;font-size:11px!important;white-space:nowrap}
.studio-schedule-btn:hover{background:#319786}
.studio-previews{background:#202125;min-width:0;min-height:0;display:flex;flex-direction:column;padding:17px 16px 15px}
.studio-preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.studio-preview-heading h2{font-size:14px;letter-spacing:0;margin:2px 0 4px}
.studio-preview-heading h2 span{color:#8b8f9a;font-size:11px}
.studio-preview-heading small{color:#9296a1;font-size:10px}
.studio-preview-icon{border:1px solid #44474d;border-radius:5px;color:#afb1ba;padding:5px}
.studio-preview-platform{border:1px solid #41434a;background:#2d2f35;border-radius:7px;margin:17px 0 13px;padding:9px 12px;display:flex;align-items:center;gap:8px;color:#e0e3e7;font-size:11px}
.studio-preview-platform span:last-child{margin-left:auto;color:#a2a5af}
.studio-preview-list{min-height:0;flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#50515a transparent;padding:2px 0 5px}
.studio-fb-card{border:1px solid #45474f;border-radius:11px;overflow:hidden;background:#25262b;margin-bottom:13px}
.studio-fb-head{display:flex;align-items:center;gap:10px;padding:12px 11px}
.studio-fb-avatar{height:36px;width:36px;border-radius:50%;background:linear-gradient(140deg,#6e61b7,#187d78);display:grid;place-items:center;color:#fff;font-weight:800;position:relative;flex:none}
.studio-fb-avatar:after{content:'f';position:absolute;bottom:-3px;right:-3px;background:#1578ec;border:2px solid #25262b;color:white;border-radius:50%;font:900 10px Arial;width:14px;height:14px;display:grid;place-items:center}
.studio-fb-meta{min-width:0;flex:1}
.studio-fb-meta strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-fb-meta small{display:block;color:#a3a5ae;font-size:10px;margin-top:3px}
.studio-fb-dots{font-size:17px;color:#b0b2b8}
.studio-fb-body{padding:0 12px 11px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;color:#e1e3e6;line-height:1.55;max-height:160px;overflow:hidden}
.studio-fb-media{margin:0 0 9px;background:#373841;max-height:155px;overflow:hidden;display:grid;place-items:center;color:#b6bac8}
.studio-fb-media img{width:100%;display:block;object-fit:cover;max-height:155px}
.studio-fb-link{border-top:1px solid #45474e;padding:9px 12px;color:#9bb9d8;font-size:10px;overflow-wrap:anywhere}
.studio-fb-actions{border-top:1px solid #42434b;display:flex;justify-content:space-between;padding:11px 12px;font-size:10px;color:#bdc0c8}
.studio-fb-first-comment{border-top:1px dashed #42464b;background:#242c30;padding:9px 11px;color:#99c2b2;font-size:10px;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.5}
.studio-fb-first-comment strong{display:block;font-size:9px;color:#70b8a9;letter-spacing:.3px;margin-bottom:3px}
.studio-no-previews{border:1px dashed #43454c;border-radius:9px;text-align:center;padding:30px 16px;font-size:12px;line-height:1.6;color:#a7abb4}
.studio-no-previews strong{display:block;color:#c5c8d1;font-size:13px;margin-bottom:7px}
.studio-preview-help{border-top:1px solid #3a3c42;padding-top:12px;color:#838894;font-size:9px;line-height:1.55}
@media(max-width:1350px){.studio-columns{grid-template-columns:224px minmax(280px,1fr) minmax(250px,300px)}.studio-editor-scroll{padding:18px 15px}.studio-previews{padding:15px 10px}.studio-labels{max-width:200px}}
@media(max-width:1100px){body.studio-mode .sidebar{width:64px}body.studio-mode .sidebar>.brand{font-size:0}body.studio-mode .sidebar .logo{font-size:20px;margin:0}body.studio-mode .sidebar .nav{font-size:0;justify-content:center}body.studio-mode .sidebar .nav>span{font-size:19px}body.studio-mode .sidebar .nav-label,body.studio-mode .sidebar-bottom{display:none}body.studio-mode .main{margin-left:64px}.studio-columns{grid-template-columns:230px minmax(300px,1fr)}.studio-previews{display:none}}
@media(max-width:740px){body.studio-mode .sidebar{width:100%;position:sticky;top:0;padding:5px 8px;flex-direction:row;height:49px}body.studio-mode .sidebar>.brand{display:none}body.studio-mode .sidebar-scroll{display:flex;overflow-x:auto;gap:0}body.studio-mode .sidebar .nav{font-size:0;padding:8px 10px}body.studio-mode .sidebar .nav>span{font-size:17px}body.studio-mode .main{margin-left:0}.studio-top{height:auto;min-height:55px;padding:7px 9px}.studio-head-left small{display:none}.studio-head-left strong{font-size:12px}.studio-mini-badge{font-size:9px}.studio-columns{display:flex;flex-direction:column;height:auto;min-height:calc(100vh - 100px)}.studio-pages{max-height:295px;min-height:220px}.studio-panel-title{padding:11px}.studio-group-block{padding:8px 11px}.studio-subheading-pages{padding:9px 11px 4px}.studio-page-list{display:flex;flex-wrap:wrap;align-content:flex-start}.studio-page-list .page-check{width:calc(50% - 3px)}.studio-page-list .page-check strong{max-width:105px}.studio-pages-foot{padding:8px 11px}.studio-editor{min-height:600px}.studio-editor-scroll{overflow:visible}.studio-previews{display:flex;min-height:400px}.studio-preview-list{overflow:visible;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.studio-fb-card{margin-bottom:0}.studio-footer{position:sticky;bottom:0;z-index:3}.studio-comment-label{display:none}}
@media(max-width:470px){.studio-page-list .page-check{width:100%}.studio-page-list .page-check strong{max-width:none}.studio-opt-grid{grid-template-columns:1fr}.studio-preview-list{grid-template-columns:1fr}.studio-footer{padding:9px}.studio-footer-left{gap:4px}.studio-footer-btn{padding:8px}.studio-schedule-btn{padding:8px}.studio-dropzone small{display:none}.studio-options summary span{display:none}}
@media(max-width:740px){.studio-pages{max-height:420px;min-height:395px}.studio-page-list{min-height:105px}}
