:root{font-family:"Segoe UI",system-ui,-apple-system,"Helvetica Neue",Roboto,"Noto Sans",Arial,sans-serif;color:#172b4d;background:#f2f5fa;text-rendering:optimizeLegibility;--ink:#172b4d;--muted:#66758b;--line:#e4eaf2;--blue:#2563eb;--blue-dark:#1d4ed8;--navy:#17365f;--bg:#f2f5fa;--white:#fff;--green:#18794e;--green-bg:#e7f6ed;--amber:#9a6500;--amber-bg:#fff4d6;--red:#b42318;--red-bg:#ffedeb;--shadow:0 5px 20px rgba(25,48,80,.055)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font:14px/1.6 "Segoe UI",system-ui,-apple-system,"Helvetica Neue",Roboto,"Noto Sans",Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:78px;max-width:78px;background:#fff;border-right:1px solid var(--line);padding:14px 8px 12px;display:flex;flex-direction:column;align-items:center;z-index:5;overflow:hidden}.sidebar-brand,.mobile-brand,.brand{display:flex;align-items:center;gap:11px;min-width:0}.brand-mark{width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:linear-gradient(145deg,#3b82f6,#1d4ed8);color:#fff;display:grid;place-items:center;font-weight:800;font-size:19px;letter-spacing:.02em}
.sidebar-brand{flex-direction:column;gap:6px;text-align:center;padding:2px 0 10px}
.sidebar-brand strong,.sidebar-brand span{display:block}
.sidebar-brand strong{display:none}
.sidebar-brand span{display:none}
.main-nav{display:grid;gap:4px;margin-top:4px;width:100%}
.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:64px;min-height:64px;margin:0 auto;padding:8px 4px;border:0;background:transparent;color:#5b6472;border-radius:14px;font-weight:500;font-size:11.5px;line-height:1.25;text-align:center;cursor:pointer;transition:background .15s ease,color .15s ease}
.nav-item svg{width:20px;height:20px;flex:0 0 20px}
.nav-item span{white-space:normal;word-break:keep-all}
.nav-item:hover{background:#f2f6ff;color:#1d4ed8}
.nav-item:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.nav-item.active{background:#e8f0fe;color:#1d4ed8;font-weight:600}
.nav-item.active svg{color:#2563eb}
.nav-icon{width:20px;text-align:center;font-size:17px;line-height:1}.sidebar-footer{margin-top:auto;width:100%;display:grid;gap:8px;justify-items:center}
.sidebar-account{display:none}
.sidebar-footer .button{width:64px;max-width:64px;min-height:38px;padding:8px 4px;font-size:10px;line-height:1.2}.app-main{margin-left:78px;min-height:100vh}.topbar{position:sticky;top:0;z-index:4;height:56px;padding:0 20px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:flex-end;gap:18px}.top-actions{display:flex;align-items:center;gap:14px}.mobile-brand{display:none}.status-pill,.demo-pill,.tag,.page-status{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:5px 10px;font-size:11px;font-weight:700;white-space:nowrap}.status-pill.muted{background:#f1f3f6;color:#657287}.user-label{font-size:12px;color:#44546a;font-weight:600}.button{border:1px solid transparent;border-radius:8px;padding:9px 14px;font-size:12px;font-weight:700;transition:background .15s,border-color .15s}.button.secondary{background:#fff;border-color:#dce4ee;color:#41536b}.button.secondary:hover{background:#f6f9fd}.button.primary{background:var(--blue);color:#fff;min-height:40px}.button.primary:hover{background:var(--blue-dark)}.container{max-width:none;width:100%;margin:0 auto;padding:22px 28px 24px;min-height:calc(100vh - 56px)}
.section-panel{border:0;box-shadow:none;background:transparent}
.section-panel[data-section-panel="pages"],
.section-panel[data-section-panel="compose"],
.section-panel[data-section-panel="schedule"],
.section-panel[data-section-panel="activity"],
.section-panel[data-section-panel="staff"],
.section-panel[data-section-panel="settings"]{padding:0;border:0;box-shadow:none;background:transparent}.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:.13em;color:#7d8ba0;font-weight:800;margin:0 0 5px}.intro h1{font-size:29px;line-height:1.25;letter-spacing:-.02em;margin:0 0 6px;color:#19395f}.subtitle{margin:0;color:var(--muted);font-size:13px}.intro-note{max-width:335px;padding:13px 15px;border:1px solid #dbe8fb;background:#f8fbff;border-radius:10px}.intro-note strong,.intro-note span{display:block}.intro-note strong{font-size:12px;color:#225b9e;margin-bottom:3px}.intro-note span{font-size:11px;color:#66758b}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat,.panel{background:var(--white);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.stat{padding:15px 17px}.stat-label{color:var(--muted);font-size:11px;font-weight:600}.stat-value{font-size:25px;font-weight:750;color:#1b477d;margin-top:4px}.grid{display:grid;gap:17px}.two-columns{grid-template-columns:1fr 1fr;margin-bottom:17px}.panel{padding:20px;margin-bottom:17px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.panel h2{font-size:17px;letter-spacing:-.01em;margin:0;color:#203e64}.page-list{display:grid;gap:9px}.page-card{border:1px solid var(--line);border-radius:9px;padding:13px;display:flex;justify-content:space-between;align-items:center;gap:12px}.page-name{font-weight:700;font-size:13px}.page-id{display:block;color:var(--muted);font-size:11px;margin-top:3px}.page-status{background:#edf4ff;color:#2e68ae}.panel-footer{border-top:1px solid var(--line);margin-top:13px;padding-top:11px;color:var(--muted);font-size:11px}.form{display:grid;gap:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form label{display:block;color:#36485f;font-weight:650;font-size:12px}.form input,.form textarea,.form select,.filter{display:block;width:100%;margin-top:6px;border:1px solid #d6dee9;background:#fff;border-radius:7px;padding:9px 10px;color:#22344d;font-size:12px}.form textarea{resize:vertical;min-height:84px}.form input:focus,.form textarea:focus,.form select:focus,.filter:focus{outline:3px solid #e7f0ff;border-color:#74a6e8}.media-box{border:1px dashed #c4d1e1;border-radius:8px;padding:12px;background:#fbfcfe;color:var(--muted);font-size:11px}.media-box strong{display:block;color:#354b66;font-size:12px;margin-bottom:3px}.tabs,.view-tabs{display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);margin-bottom:14px}.tab,.view-tab{background:none;border:0;color:#75849a;padding:0 0 9px;font-weight:700;font-size:12px}.tab.active,.view-tab.active{color:var(--blue);border-bottom:2px solid var(--blue)}.toolbar{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.toolbar .filter{width:auto;min-width:145px;margin:0}.toolbar input.filter{min-width:190px}.filter{width:auto;margin:0}.table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:8px}table{width:100%;border-collapse:collapse;font-size:13px;background:#fff}th,td{text-align:left;padding:14px 16px;border-bottom:1px solid #eef1f5;vertical-align:middle}th{background:#f9fafb;color:#6b7280;font-size:11px;text-transform:none;letter-spacing:0;font-weight:600;white-space:nowrap}tbody tr{height:66px}tbody tr:nth-child(even){background:#fafbfc}tbody tr:hover{background:#f2f6ff}td{color:#34465e}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdff}.tag{padding:4px 9px;font-size:10px}.tag.pending{background:var(--amber-bg);color:var(--amber)}.tag.success{background:var(--green-bg);color:var(--green)}.tag.error{background:var(--red-bg);color:var(--red)}.tag.muted{background:#f0f2f5;color:#667085}.mini-button{border:0;background:#edf4ff;color:#315b9c;border-radius:5px;padding:5px 8px;font-size:10px;font-weight:700;margin-right:4px}.mini-button.danger{background:var(--red-bg);color:var(--red)}.muted-text,.error-text{display:block;font-size:10px;margin-top:4px}.muted-text{color:var(--muted)}.error-text{color:var(--red)}.calendar-view{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:11px}.calendar-item{border:1px solid var(--line);border-radius:9px;padding:12px}.calendar-item strong,.calendar-item span{display:block}.calendar-item strong{color:#254b7b;font-size:12px}.calendar-item span{font-size:11px;color:var(--muted);margin:4px 0 8px}.calendar-item p{font-size:12px;margin:8px 0 0}.page-card-actions{display:flex;gap:8px;align-items:center}.pagination{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:10px}.proxy-form{display:grid;gap:12px;margin-top:12px}.proxy-form.hidden{display:none}.proxy-toolbar{margin-bottom:10px}.empty{color:#7b899c;padding:18px;text-align:center;font-size:12px}.notice{padding:10px 13px;border-radius:8px;margin-bottom:14px;font-size:12px}.notice.info{background:#eaf3ff;color:#285e9b}.notice.success{background:var(--green-bg);color:var(--green)}.notice.error{background:var(--red-bg);color:var(--red)}.hidden{display:none!important}.settings-list{display:grid;gap:10px}.settings-list>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:10px 0;font-size:12px}.settings-list span{color:var(--muted);text-align:right}.form-hint{font-size:11px;color:var(--muted)}footer{text-align:center;color:#98a3b3;font-size:10px;padding:8px 0 14px}.login-page{display:grid;place-items:center;min-height:100vh;background:linear-gradient(140deg,#f2f5fa,#eaf2ff)}.login-card{width:min(430px,calc(100vw - 24px));padding:30px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}.login-card .brand>div:last-child{min-width:0}.login-card .brand strong,.login-card .brand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.login-intro{margin:34px 0 20px}.login-intro h1{font-size:27px;color:#19395f;margin:0 0 7px}.login-intro p:last-child{font-size:12px;color:var(--muted)}.login-note{font-size:11px;color:var(--muted);margin:16px 0 0}.button:disabled{opacity:.6;cursor:wait}.sidebar-brand .brand-mark{width:36px;height:36px;flex-basis:36px}.section-panel.hidden{display:none!important}
@media(min-width:1200px){.container{padding-inline:clamp(28px,3vw,56px)}.two-columns{grid-template-columns:minmax(420px,1fr) minmax(520px,1.15fr)}}.sidebar{width:78px;max-width:78px}.app-main{margin-left:78px}.container{padding:20px 18px}.topbar{padding:0 20px}.two-columns{grid-template-columns:1fr}.toolbar{justify-content:flex-start}.toolbar .filter,.toolbar input.filter{min-width:0;flex:1}
@media(max-width:720px){.sidebar{position:sticky;top:0;inset:auto;width:100%;height:auto;padding:9px 12px;border-right:0;border-bottom:1px solid var(--line);display:block}.sidebar-brand{display:none}.main-nav{display:flex;gap:5px;overflow-x:auto}.nav-item{flex:0 0 auto;padding:8px 10px;font-size:11px}.nav-icon{display:none}.sidebar-footer{display:none}.app-main{margin-left:0}.topbar{height:58px;padding:0 14px;justify-content:space-between}.mobile-brand{display:flex;font-size:12px;color:#18365f}.mobile-brand .brand-mark{width:30px;height:30px;flex-basis:30px;font-size:17px}.top-actions{gap:7px}.user-label{display:none}.top-actions .button{padding:7px 9px;font-size:10px}.container{padding:19px 13px}.intro{align-items:flex-start;flex-direction:column;gap:12px}.intro h1{font-size:24px}.intro-note{max-width:none;width:100%}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat{padding:12px}.stat-value{font-size:22px}.panel{padding:14px}.panel-heading{align-items:flex-start;flex-direction:column}.toolbar{width:100%}.toolbar .filter,.toolbar input.filter{width:100%;flex:1 1 100%}.form-grid{grid-template-columns:1fr}.two-columns{gap:10px}.settings-list>div{flex-direction:column;gap:3px}.settings-list span{text-align:left}}
.batch-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:13px}.batch-toolbar .filter{margin:0;max-width:280px}.select-all{font-size:12px;color:#475467;font-weight:700}.batch-pages{display:grid;gap:9px;margin-bottom:17px}.batch-page-row{border:1px solid var(--line);border-radius:9px;padding:12px;background:#fff}.batch-page-row.selected{border-color:#8ab5ef;background:#f8fbff}.page-check{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:#263f5f}.page-check input{margin-top:3px}.page-check strong,.page-check small{display:block}.page-check small{font-size:10px;color:var(--muted);margin-top:2px}.target-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;margin:10px 0 0 25px}.target-fields label{font-size:10px;color:#66758b;font-weight:700}.target-fields input{display:block;width:100%;margin-top:4px;border:1px solid #d6dee9;border-radius:6px;padding:7px;font-size:11px;background:#fff}.comment-options{border-top:1px solid var(--line);padding-top:14px;margin-top:2px}.comment-options>strong{display:block;font-size:12px;color:#34485f;margin-bottom:8px}.batch-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:14px}.batch-preview{border:1px solid #cfe0f7;background:#f8fbff;border-radius:9px;padding:12px;margin-top:14px}.batch-preview>strong{display:block;color:#275f9f;font-size:12px;margin-bottom:8px}.preview-target{display:grid;grid-template-columns:150px 1fr auto;gap:9px;align-items:center;border-top:1px solid #dce8f7;padding:8px 0;font-size:11px}.preview-target:first-of-type{border-top:0}.preview-target span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-target small{color:var(--muted)}.preview-target em{font-style:normal;color:var(--green);font-weight:700}.batch-list{display:grid;gap:9px;margin-top:12px}.batch-card{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:13px;border:1px solid var(--line);border-radius:9px;padding:12px;background:#fff}.batch-card strong,.batch-card small{display:block}.batch-card strong{font-size:12px}.batch-card small{font-size:10px;color:var(--muted);margin-top:3px}.batch-summary{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;white-space:nowrap}@media(max-width:800px){.target-fields{grid-template-columns:1fr;margin-left:25px}.preview-target{grid-template-columns:1fr}.batch-card{grid-template-columns:1fr}.batch-summary{white-space:normal}.batch-actions{flex-direction:column}.batch-actions .button{width:100%}}.compose-panel{padding:0;background:transparent;border:0;box-shadow:none}.compose-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(380px,.72fr);gap:20px;align-items:start}.compose-workspace,.compose-preview{background:#fff;border:1px solid #dbe5f5;border-radius:18px;padding:22px;box-shadow:var(--shadow)}.compose-preview{position:sticky;top:86px;background:linear-gradient(145deg,#f8fbff,#eef4ff)}.customize-toggle{font-size:11px;color:#66758b;display:flex;gap:6px;align-items:center}.page-picker{position:relative;margin-bottom:14px}.page-picker-toggle{width:100%;display:flex;align-items:center;gap:12px;border:1px solid #cbdaf3;background:#f8fbff;border-radius:13px;padding:12px 14px;text-align:left;color:#18365f}.picker-avatars{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#73839a;color:#fff;font-weight:800;box-shadow:12px 0 0 -4px #d8e1ed}.page-picker-toggle b,.page-picker-toggle small{display:block}.page-picker-toggle b{font-size:13px}.page-picker-toggle small{font-size:10px;color:#6f82a1;margin-top:2px}.picker-chevron{margin-left:auto;font-size:20px;color:#7b8ba5}.page-picker-menu{position:absolute;z-index:8;left:0;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #cad9f0;border-radius:13px;box-shadow:0 15px 35px #294a751c;padding:12px;max-height:390px;overflow:auto}.page-picker-menu>.filter{margin:0 0 8px;width:100%}.picker-select-all{display:block;padding:8px;color:#52657e;font-size:11px;border-bottom:1px solid var(--line)}.batch-pages{display:grid;gap:2px}.batch-page-option{display:flex;gap:10px;align-items:center;padding:9px;border-radius:8px;cursor:pointer}.batch-page-option:hover,.batch-page-option.selected{background:#edf5ff}.batch-page-option input{margin:0}.batch-page-option strong,.batch-page-option small{display:block}.batch-page-option strong{font-size:12px;color:#294767}.batch-page-option small{font-size:10px;color:#28a05b}.page-avatar-img{width:34px;height:34px;flex:0 0 34px;border-radius:50%;object-fit:cover;background:#dce7f6}.page-card-main{display:flex;gap:10px;align-items:center}.preview-page{display:flex;gap:10px;align-items:center}.preview-page .page-avatar-img{width:36px;height:36px;flex-basis:36px}.page-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:grid;place-items:center;background:#dce7f6;color:#486485;font-weight:800}.shared-fields{display:grid;gap:12px}.shared-fields>label{font-size:12px;font-weight:700;color:#384c65}.shared-fields textarea{width:100%;display:block;border:1px solid #d2deef;border-radius:9px;padding:11px;resize:vertical;margin-top:6px}.shared-media-comment{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shared-media-comment label{font-size:11px;font-weight:700;color:#52657e}.shared-media-comment textarea,.shared-media-comment input{width:100%;margin-top:5px}.customize-area{margin-top:16px;border-top:1px solid var(--line);padding-top:13px}.customize-tabs{display:flex;gap:6px;overflow:auto;margin-bottom:10px}.customize-tab{border:1px solid #d3dfef;background:#f8fbff;color:#58708f;border-radius:8px;padding:7px 10px;white-space:nowrap;font-size:11px}.customize-tab.active{background:#e5f0ff;color:#2168c2;border-color:#8fbaf0}.customize-panel{display:grid;gap:10px;background:#f8fbff;border-radius:10px;padding:12px}.customize-panel label{font-size:11px;font-weight:700;color:#52657e}.customize-panel textarea,.customize-panel input{display:block;width:100%;margin-top:5px;border:1px solid #d2deef;border-radius:7px;padding:8px;font-size:11px}.schedule-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:16px}.schedule-controls label{font-size:11px;font-weight:700;color:#52657e}.schedule-controls input,.schedule-controls select{display:block;width:100%;margin-top:5px;border:1px solid #d2deef;border-radius:7px;padding:8px;font-size:11px}.compose-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:17px}.preview-heading{display:flex;gap:10px;align-items:center;border-bottom:1px solid #dbe5f5;padding-bottom:13px;margin-bottom:13px;color:#2867c0}.preview-heading small{display:block;font-size:10px;color:#7a8ba4;margin-top:2px}.facebook-mark{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#2f73df;color:#fff;font-weight:800}.preview-stack{display:grid;gap:12px;max-height:680px;overflow:auto}.preview-card{background:#fff;border:1px solid #dfe7f3;border-radius:13px;padding:14px;box-shadow:0 6px 16px #24466e0b}.preview-page{display:flex;gap:9px;align-items:center}.preview-page strong,.preview-page small{display:block}.preview-page strong{font-size:12px;color:#263d5c}.preview-page small{font-size:10px;color:#8292a8}.preview-card>p{font-size:12px;color:#596f8b;margin:14px 0 9px;white-space:pre-wrap}.preview-media{height:105px;background:#eef3f9;border-radius:8px;display:grid;place-items:center;color:#7d8fa8;font-size:10px;margin-bottom:9px}.preview-comment{font-size:10px;color:#5f7895;background:#f6f9fd;border-radius:6px;padding:7px}.preview-actions{border-top:1px solid #edf1f6;margin-top:10px;padding-top:9px;color:#7a8ca5;font-size:10px}.preview-empty{text-align:center;padding:80px 20px;color:#7a8ca5;font-size:12px}.preview-media img{width:100%;max-height:220px;object-fit:cover;border-radius:8px;display:block}.schedule-field input[type="date"],.schedule-field select{width:100%;margin-top:6px;border:1px solid #d6dee9;background:#fff;border-radius:7px;padding:9px 10px;color:#22344d}.time-12h{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:8px}.time-12h label{font-size:11px;color:#66758b}.timezone-note,.schedule-preview{display:block;margin-top:8px;color:#66758b;font-size:11px}.schedule-preview{color:#1e65c1;font-weight:700}.preview-media video{width:100%;max-height:240px;background:#000;border-radius:8px;display:block}.preview-card.reel-preview .preview-media.reel-frame{aspect-ratio:9/16;max-height:430px;overflow:hidden;display:grid;place-items:center;background:#000}.preview-card.reel-preview .preview-media.reel-frame img,.preview-card.reel-preview .preview-media.reel-frame video{width:100%;height:100%;max-height:none;object-fit:contain;border-radius:0}.preview-media.empty-media{border:1px dashed #cad8eb}@media(max-width:1050px){.compose-grid{grid-template-columns:1fr}.compose-preview{position:static}.preview-stack{max-height:none}}@media(max-width:650px){.shared-media-comment,.schedule-controls{grid-template-columns:1fr}.compose-actions{flex-direction:column}.compose-actions .button{width:100%}}
.batch-details{margin-top:14px;border:1px solid #cfe0f7;background:#f8fbff;border-radius:9px;padding:12px}.batch-details-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:#275f9f;font-size:12px}.batch-details small{display:block;color:var(--muted);font-size:10px}.batch-details .table-wrap{background:#fff}.batch-details td{max-width:260px;word-break:break-word}@media(max-width:390px){.nav-item{padding:7px 8px;font-size:10px}.status-pill{font-size:9px;padding:4px 6px}.top-actions{gap:5px}.container{padding-inline:10px}.panel{padding:12px}}
/* Media previews must size to content rather than the old placeholder height. */
.preview-media:has(img),.preview-media:has(video){height:auto;min-height:0;overflow:hidden;background:#101827}
.preview-media img{width:100%;height:auto;max-height:360px;object-fit:contain}
.preview-media video{width:100%;height:auto;max-height:360px;object-fit:contain}
.preview-card.reel-preview .preview-media.reel-frame{height:auto;width:min(100%,242px);aspect-ratio:9/16;max-height:none;margin-inline:auto}
.preview-card.reel-preview .preview-media.reel-frame video{height:100%;width:100%;object-fit:contain}
.button.danger{background:var(--red-bg);border-color:#f3c6c2;color:var(--red)}
.button.danger:hover{background:#ffe1de}
.batch-progress{display:grid;gap:8px;margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfdff}.progress-heading{display:flex;justify-content:space-between;align-items:center}.progress-row{display:flex;gap:10px;align-items:center}.progress-row small{display:block;color:#667085}.picker-modal{position:fixed;inset:0;background:rgba(15,30,50,.45);display:grid;place-items:center;z-index:60;padding:16px}.picker-modal-box{background:#fff;border-radius:12px;max-width:520px;width:100%;padding:18px;max-height:80vh;overflow:auto}.preview-caption{white-space:pre-wrap;word-break:break-word}.preview-caption.clamped{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
/* V.CuongMedia: bảng Fanpage, row menu, font */
.page-table th{background:#f3f4f6}
.page-table th.col-index{width:48px}
.page-table .col-index{text-align:center;width:48px;color:#9ca3af}
.page-row-main{display:flex;gap:12px;align-items:center}
.page-row-name{font-weight:700;font-size:14px;color:#1e6fd9;text-decoration:none;white-space:nowrap}
.page-row-name:hover{text-decoration:underline}
.page-row-id{display:block;font-size:11px;color:#9ca3af;margin-top:2px}
.col-actions{width:56px;text-align:center}
.row-action{width:32px;height:32px;border-radius:8px;border:0;background:transparent;color:#6b7280;font-size:16px;line-height:1;cursor:pointer}
.row-action:hover{background:#f3f4f6}
.page-row-menu{position:absolute;z-index:70;min-width:200px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:6px;box-shadow:0 10px 24px rgba(0,0,0,.12)}
.page-row-menu button{display:block;width:100%;text-align:left;background:none;border:0;padding:9px 12px;border-radius:8px;font-size:13px;font-weight:500;color:#374151;cursor:pointer}
.page-row-menu button:hover{background:#f3f4f6}
.page-row-menu button.danger{color:#dc2626}
.page-row-menu button.danger:hover{background:#fef2f2}
/* Soạn bài: bỏ panel-card bao ngoài, 2 cột giống mẫu */
.compose-panel{padding:0;border:0;box-shadow:none;background:transparent}
.compose-grid{grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr);gap:20px}
.compose-workspace,.compose-preview{background:#fff;border:1px solid #e9ecf3;border-radius:18px;padding:22px;box-shadow:0 2px 12px rgba(0,0,0,.03)}
.settings-connection{display:grid;gap:10px;margin-bottom:18px;padding:14px 16px;border:1px solid #e9ecf3;border-radius:12px;background:#f9fafb}
.connection-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.connection-summary>div{display:flex;flex-direction:column;gap:2px}
.connection-summary-label{font-size:11px;color:#9ca3af}
.connection-summary strong{font-size:14px;font-weight:700}
/* V.CuongMedia: header + filter của trang Fanpage */
.fanpage-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.fanpage-page-heading h2{font-size:20px;font-weight:700;color:#111827;margin:0 0 3px}
.fanpage-count{margin:0;font-size:13px;color:#9ca3af}
.fanpage-title-actions{display:flex;gap:10px;align-items:center}
.fanpage-filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px}
.filter-search{position:relative;display:flex;align-items:center}
.filter-search .filter{padding-left:32px;min-width:260px;border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center/16px 16px}
.filter-search-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:none;color:#9ca3af;cursor:pointer;font-size:14px;padding:4px}
.fanpage-filter{border-radius:8px;min-width:200px;height:38px}
.fanpage-filter-row .button{min-height:38px}
.table-wrap:has(.page-table){border:1px solid #e9ecf3;border-radius:12px;overflow:hidden}
.page-table{font-size:13.5px}
.page-table td:first-of-type .page-row-name{font-size:13.5px}
/* V.CuongMedia: Soạn bài bám mẫu */
.compose-grid{grid-template-columns:minmax(0,1.3fr) minmax(340px,.8fr);gap:20px;align-items:start}
.compose-workspace,.compose-preview{background:#fff;border:1px solid #e9ecf3;border-radius:18px;padding:24px;box-shadow:0 2px 12px rgba(0,0,0,.03)}
.compose-preview{background:#fff}
.page-picker-toggle{border:1px solid #e3e8f0;border-radius:10px;background:#fff;padding:14px 16px;color:#111827}
.page-picker-toggle:hover{border-color:#cbd5e1;background:#fafbfc}
.page-picker-menu{border-radius:12px;box-shadow:0 14px 32px rgba(0,0,0,.10)}
.shared-fields textarea{border:1px solid #e3e8f0;border-radius:10px;padding:14px;font-size:14px;line-height:1.6;background:#fff}
.shared-media-comment{gap:14px}
.auto-posttype-note{font-size:12.5px;color:#6b7280;background:#f9fafb;border:1px solid #eef1f5;border-radius:10px;padding:10px 12px}
.schedule-controls input,.schedule-controls select{border:1px solid #e3e8f0;border-radius:9px;padding:10px;font-size:13px}
.compose-actions{gap:10px;margin-top:20px}
.preview-heading{padding-bottom:14px}
.preview-card{border:1px solid #e9ecf3;box-shadow:none}
.preview-media{border-radius:10px}
.preview-caption{font-size:13.5px;line-height:1.65;color:#374151}
@media(max-width:1180px){.compose-grid{grid-template-columns:1fr}}
/* V.CuongMedia: tab Soạn bài + thanh hành động dưới */
.compose-tab-row{display:flex;gap:22px;border-bottom:1px solid #eef1f5;margin:2px 0 14px;padding-bottom:0}
.compose-tab{background:none;border:0;padding:0 0 10px;font-size:13.5px;font-weight:600;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent}
.compose-tab:hover{color:#374151}
.compose-tab.active{color:#1d4ed8;border-bottom-color:#2563eb}
.compose-tab[data-compose-tab="story"]{color:#9ca3af}
.compose-textarea-wrap{display:block}
.compose-textarea-wrap textarea{width:100%;border:1px solid #e3e8f0;border-radius:12px;padding:14px;font-size:14px;line-height:1.6;resize:vertical;margin-top:6px}
.compose-textarea-wrap .form-hint{display:block;text-align:right;margin-top:6px}
.compose-bottom-bar{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:18px;border-top:1px solid #eef1f5}
.compose-bottom-bar .button{min-height:42px;border-radius:10px;padding:10px 20px}
@media(max-width:720px){.compose-tab-row{gap:16px}.compose-bottom-bar{flex-direction:column}.compose-bottom-bar .button{width:100%}}
.link-button{background:none;border:0;padding:0;color:#1d4ed8;font-size:inherit;font-weight:600;cursor:pointer;text-decoration:underline}

/* Page-level proxy controls */
.page-proxy-control{display:flex;align-items:center;gap:6px;min-width:250px;flex-wrap:wrap}
.page-proxy-control .filter{max-width:260px;min-width:160px;font-size:12px}
.page-table .col-actions{white-space:nowrap}

/* Shared Analytics-inspired palette and aligned management forms. */
:root{--ink:#0f172a;--muted:#64748b;--line:#dfe7f3;--blue:#2459f5;--blue-dark:#1d4ed8;--bg:#f3f6fc;--shadow:0 4px 20px rgba(30,64,120,.045)}
body{color:var(--ink);background:var(--bg);font-family:"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}
.topbar{border-bottom-color:#dfe7f3;box-shadow:0 1px 8px rgba(30,64,120,.025)}
.nav-item.active{background:#e8efff;color:#2459f5;box-shadow:inset 3px 0 0 #2459f5}
.nav-item:hover{background:#f0f4ff;color:#2459f5}
.panel h2,.panel h3,.intro h1,.page-heading h1,.page-heading h2{color:#0f172a;font-weight:750}
.eyebrow{color:#7b8aa3;letter-spacing:.12em;font-size:10px}
.panel{border-color:#dfe7f3;border-radius:14px;box-shadow:var(--shadow)}
.stat{border-color:#dce6ff;border-radius:13px;background:linear-gradient(115deg,#f0f5ff,#fff);padding:18px 20px;min-height:104px;box-shadow:none}
.stat-label{font-size:12px;color:#526789;font-weight:500}
.stat-value{color:#2451df;font-size:29px;line-height:1.3;font-weight:750;margin-top:8px;font-variant-numeric:tabular-nums}
.intro-note{background:#f0f5ff;border-color:#d9e4ff;border-radius:12px}
.intro-note strong{color:#2451df}
.button{min-height:40px;border-radius:9px;padding:9px 15px;font-size:13px;line-height:20px;font-weight:650}
.button.primary{background:#2459f5;box-shadow:0 3px 8px rgba(36,89,245,.12)}
.button.primary:hover{background:#1d4ed8}
.button.secondary{color:#334155;border-color:#d4dff0;background:#fff}
.button.secondary:hover{background:#f3f6ff;border-color:#a8bff9}
.button.danger,.mini-button.danger{background:#fff0ef;border:1px solid #ffd8d3;color:#b42318}
.mini-button{min-height:30px;padding:5px 10px;font-size:11px;border:1px solid #dce7ff;border-radius:7px;color:#2451df;background:#eff4ff;line-height:18px}
.row-action{min-width:30px;min-height:30px;border:1px solid #dce7ff;border-radius:7px;background:#f5f8ff;color:#2451df}
.table-wrap,.table-wrap:has(.page-table){border-color:#dfe7f3;border-radius:12px;overflow:auto;background:#fff}
th{background:#f3f6fc;color:#607394;font-size:12px;font-weight:600;padding:13px 16px;border-bottom:1px solid #dfe7f3}
td{color:#182943;font-size:13px;padding:15px 16px;border-bottom-color:#edf1f8}
tbody tr:nth-child(even){background:#f8faff}
tbody tr:hover{background:#f0f5ff}
.page-row-name{color:#2459f5;font-weight:700}
.empty{font-size:13px;padding:24px;color:#7a8aa4}
.tag{font-size:11px;padding:4px 10px}
.tag.success{color:#008169;background:#e7f7f2}
.tag.error{color:#bd3038;background:#ffefef}
.tag.pending{color:#926413;background:#fff6de}
/* Labels above equal-width fields; hidden inputs and checkboxes keep their behavior. */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;align-items:start;width:100%;max-width:1080px}
.form-grid>label,.schedule-controls>label{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;font-size:13px;font-weight:600;line-height:20px;color:#334155}
.form-grid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.form-grid select,.form-grid textarea,
.proxy-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),.proxy-form select,.proxy-form textarea,
.shared-fields input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.schedule-controls input,.schedule-controls select,.toolbar input[type="date"],.filter{
 display:block;width:100%;min-width:0;min-height:42px;margin:0;padding:10px 12px;border:1px solid #cedaf0;border-radius:9px;background:#fff;color:#172b4d;font-size:13px;line-height:20px;box-sizing:border-box;outline:none;transition:border-color .15s,box-shadow .15s}
.form-grid input::placeholder,.proxy-form input::placeholder{color:#94a3b8;font-weight:400}
.form-grid input:focus,.form-grid select:focus,.proxy-form input:focus,.proxy-form select:focus,.shared-fields input:focus,.filter:focus{border-color:#6a91ff;box-shadow:0 0 0 3px #eaf0ff}
.proxy-form{gap:20px;margin:18px 0 22px;padding:24px;border:1px solid #dce6fa;border-radius:13px;background:#fff;box-shadow:0 3px 16px rgba(30,64,120,.035)}
.proxy-form>.form-grid{margin:0}
.proxy-form>.form-hint{margin:0;max-width:1050px;color:#71829d;font-size:12px;line-height:1.7}
.form-section-heading{display:flex;flex-direction:column;gap:3px;padding-bottom:15px;border-bottom:1px solid #e9eef8}
.form-section-heading strong,.proxy-form>strong{color:#14376c;font-size:15px;font-weight:700}
.form-section-heading span{font-size:12px;font-weight:400;color:#71829d}
.proxy-form .compose-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;margin:0;padding-top:17px;border-top:1px solid #e9eef8;max-width:1080px}
.proxy-form .compose-actions .button{min-width:104px;min-height:42px}
.proxy-form .batch-page-option{font-weight:400}
.proxy-toolbar .filter{max-width:380px}
#proxySearch{width:min(100%,380px)}
[data-section-panel="proxy"]>.panel-heading{margin-bottom:18px}
[data-section-panel="staff"]>.panel-heading,[data-section-panel="settings"]>.panel-heading{margin-bottom:20px}
[data-section-panel="settings"] .connection-summary{background:linear-gradient(110deg,#eef4ff,#f8faff);padding:20px 24px;border:1px solid #d8e4ff;border-radius:13px;gap:24px;margin:0 0 22px}
.connection-summary-label{font-size:12px;color:#647a9e}
.connection-summary strong{font-size:14px;color:#15386d}
.settings-list{padding:8px 22px;background:#fff;border:1px solid #dfe7f3;border-radius:12px}
.settings-list>div{padding:14px 0;font-size:13px}
.settings-list>div:last-child{border-bottom:0}
/* Separate wrapped filter groups so labels and date controls never collide. */
[data-section-panel="schedule"]>.panel-heading,[data-section-panel="activity"]>.panel-heading{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-start;gap:16px 24px}
[data-section-panel="schedule"]>.panel-heading>div:first-child,[data-section-panel="activity"]>.panel-heading>div:first-child{margin-right:auto;min-width:220px}
.toolbar{align-items:flex-end;gap:8px;flex-wrap:wrap}
.toolbar>label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#526789;min-width:150px}
.toolbar .filter{min-height:40px;width:auto;max-width:220px;margin:0}
.toolbar .timezone-note{max-width:240px;line-height:1.5;padding-bottom:9px;color:#7a8ca9}
#scheduleStats{gap:12px}
.page-proxy-control{gap:8px;min-width:260px;flex-wrap:nowrap}
.page-proxy-control .filter{min-height:38px;flex:1;max-width:260px}
.page-proxy-control .mini-button{flex-shrink:0;margin:0}
.compose-workspace,.compose-preview{border-color:#dfe7f3;box-shadow:var(--shadow);border-radius:15px}
.compose-workspace h2{color:#0f172a}
.shared-fields textarea,.compose-textarea-wrap textarea{border-color:#cedaf0;color:#172b4d}
.shared-fields textarea::placeholder{color:#91a0b5;font-weight:400}
.shared-media input[type="file"]{width:100%;font-size:12px;color:#64748b}
input[type="file"]::file-selector-button{background:#eef4ff;color:#2451df;border:1px solid #d7e4ff;border-radius:7px;padding:8px 12px;margin-right:10px;font-weight:600}
/* Table styles inherit the same blue/white treatment; Analytics retains its own layout. */
@media(min-width:1400px){.container{padding:26px 26px 32px}}
@media(max-width:1000px){.form-grid{gap:16px}.proxy-form{padding:20px}.page-proxy-control{min-width:240px}.toolbar .timezone-note{max-width:none;width:100%}.connection-summary{grid-template-columns:1fr}}
@media(max-width:720px){
 .form-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .proxy-form{padding:18px;margin:14px 0 18px}
 .proxy-form .compose-actions{justify-content:stretch}
 .proxy-form .compose-actions .button{flex:1}
 .toolbar>label,.toolbar .filter{max-width:none;width:100%}
 .stat{padding:16px}.stat-value{font-size:25px}
 .container{padding:16px 13px}.table-wrap{border-radius:10px}
}

#proxyForm,#userForm{max-width:1128px;width:100%}

/* Black Fanpage names; click opens the exact Facebook Page. */
.page-table .page-row-name,.page-table a.page-row-name:visited{color:#111827!important;text-decoration:none}
.page-table a.page-row-name:hover{color:#111827!important;text-decoration:underline;text-underline-offset:3px}
.page-table a.page-row-name:focus-visible{outline:2px solid #94a3b8;outline-offset:4px;border-radius:3px}

/* Internal employee sign-in: brand and description on separate lines. */
.login-card .brand>div:last-child{display:grid;gap:3px;min-width:0}
.login-card .brand strong{display:block;font-size:15px;line-height:1.4;color:#172b4d}
.login-card .brand span{display:block;white-space:normal;overflow:visible;text-overflow:clip;font-size:11px;line-height:1.5;color:#64748b;font-weight:400}
.login-card .login-note{border-top:1px solid #e6edf7;padding-top:15px;line-height:1.7;font-size:12px;color:#64748b}
