:root{--ink:#18332f;--muted:#7a8885;--teal:#086c61;--teal-dark:#07584f;--bg:#f5f7f6;--line:#e4eae7;--green:#e7f4ec;--shadow:0 12px 40px #153a2e09}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:14px/1.5 'Segoe UI',Arial,sans-serif;color:var(--ink)}button,input,select,textarea{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:var(--teal);text-decoration:none}svg.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{border:0;background:none;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #66baa9;outline-offset:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:225px;background:#fff;border-right:1px solid var(--line);padding:32px 18px;z-index:20}.brand{display:flex;gap:11px;align-items:center;color:var(--ink);font-size:23px;font-weight:750;padding:0 9px}.brand-icon{background:var(--teal);color:white;border-radius:13px;width:38px;height:42px;display:grid;place-items:center;font-size:27px;font-style:italic}.brand-light{font-weight:400}.brand small{display:block;font-size:8px;letter-spacing:1.7px;color:var(--muted);margin-top:4px}.nav-label{font-size:10px;color:#9ca8a3;letter-spacing:1.3px;margin:49px 15px 15px}nav button{width:100%;display:flex;align-items:center;gap:13px;padding:14px 16px;border-radius:10px;margin-bottom:7px;text-align:left;color:#697873;font-weight:550}nav button.active{color:var(--teal);background:#eaf4f0}nav button:hover{background:#f0f5f2}.sidebar-bottom{position:absolute;bottom:28px;left:30px;display:flex;gap:10px;align-items:center}.sidebar-bottom strong{font-size:11px;font-weight:600}.sidebar-bottom small{display:block;font-size:10px;color:var(--muted)}.local-dot{width:8px;height:8px;border-radius:50%;background:#36a37c;box-shadow:0 0 0 4px #edf7f1}main{margin-left:225px}.topbar{height:78px;background:#ffffffb0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;font-size:12px}.breadcrumb{color:var(--muted)}.slash{padding:0 14px;color:#bcc7c2}.top-right{display:flex;align-items:center;gap:18px}.avatar{background:#e5ede7;color:#4f6b5e;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:700}.quiet{color:var(--muted)}#content{padding:32px 36px 90px;max-width:1900px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:2px;color:#639386;font-weight:700;margin-bottom:8px}h1{font-size:30px;line-height:1.3;letter-spacing:-.9px;margin:0 0 8px;font-weight:680}h2{font-size:19px;margin:0 0 8px}h3{font-size:15px;margin:0 0 8px}p{margin:0 0 12px}.subtitle{color:var(--muted);font-size:13px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{padding:11px 16px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;font-size:12px;font-weight:600;border:1px solid var(--line);background:#fff;transition:.15s}.btn:hover{border-color:#8db6a8;background:#f6faf8}.btn.primary{background:var(--teal);color:#fff;border-color:var(--teal);box-shadow:0 3px 9px #066b6118}.btn.primary:hover{background:var(--teal-dark)}.btn.small{padding:7px 11px;font-size:11px}.btn.full{width:100%}.btn.soft{background:#e9f3ee;color:var(--teal);border-color:transparent}.btn.danger{color:#b94b43}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:19px 20px;display:flex;align-items:center;gap:15px}.stat-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#edf5ef;color:#5a8b72}.stat:nth-child(2) .stat-icon{background:#fff6e7;color:#b78c4c}.stat:nth-child(4) .stat-icon{background:#eef0fc;color:#898bb6}.stat strong{font-size:24px;font-weight:650;line-height:1.1}.stat small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:22px;flex-wrap:wrap}.tabs{display:flex;gap:5px;padding:4px;background:#eaf0ec;border-radius:9px}.tabs button{padding:8px 14px;border-radius:7px;color:#778780;font-size:12px}.tabs button.active{background:#fff;color:var(--teal);box-shadow:0 2px 5px #12332308;font-weight:650}.search-wrap{display:flex;gap:10px;align-items:center}.input,select,textarea{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:10px 12px;outline:none;max-width:100%}.input:focus,select:focus,textarea:focus{border-color:#68a291;box-shadow:0 0 0 3px #e6f2ec}.search{width:230px;font-size:12px}.search-wrap select{font-size:12px;width:170px}.sectionline{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin:2px 0 16px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.card{border:1px solid var(--line);border-radius:13px;background:white;overflow:hidden;box-shadow:0 2px 3px #173a2602;transition:transform .18s,box-shadow .18s;cursor:pointer;text-align:left;padding:0;min-width:0}.card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #0d3e2710;border-color:#bdd3c8}.card-image{position:relative;aspect-ratio:1/1.04;background:#e9eee9;overflow:hidden}.card-image>img{width:100%;height:100%;object-fit:cover}.badge{display:inline-flex;font-size:10px;padding:4px 8px;border-radius:5px;background:#e8f5ec;color:#327954;font-weight:650}.card-image>.badge{position:absolute;top:12px;left:12px;box-shadow:0 2px 8px #00000005}.badge.gray{background:#edf0f1;color:#7a8684}.badge.red{background:#feeeeb;color:#b76753}.badge.blue{background:#edf0ff;color:#6278a3}.card-body{padding:14px 15px}.card-title{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:7px}.card-meta{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10px}.card-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-meta .icon{width:12px;height:12px;vertical-align:-2px;margin-right:4px}.empty{background:#fff;border:1px dashed #cfded6;border-radius:16px;padding:60px 25px;text-align:center;grid-column:1/-1;color:var(--muted)}.empty .icon{width:40px;height:40px;color:#86ac9a;margin-bottom:15px}.empty h2{color:var(--ink)}.empty p{max-width:460px;margin:0 auto 23px;font-size:13px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:22px}.notice{border-radius:9px;background:#f0f5f1;border:1px solid #dce8df;padding:12px 15px;color:#658172;font-size:12px;margin:15px 0}.notice.warn{background:#fff8ed;border-color:#f0e2c8;color:#957344}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:13px}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-weight:600;color:var(--muted);padding:13px 20px;background:#fafcfb;font-size:11px}td{padding:17px 20px;border-top:1px solid var(--line);vertical-align:middle}td .sub{color:var(--muted);font-size:10px;margin-top:4px;max-width:490px}td strong{font-size:12px}.backdrop{position:fixed;inset:0;background:#11251c26;z-index:30;backdrop-filter:blur(1px)}.drawer{position:fixed;right:0;top:0;bottom:0;width:max(50vw,600px);max-width:100%;background:#fff;z-index:40;box-shadow:-10px 0 60px #132b1710;display:flex;flex-direction:column}.drawer-head{padding:23px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px}.drawer-head h2{font-size:18px;margin-bottom:4px}.drawer-head small{font-size:11px;color:var(--muted)}.icon-btn{display:inline-flex;padding:7px;border-radius:7px;height:32px;align-items:center;justify-content:center}.icon-btn:hover{background:#edf4ef}.drawer-body{padding:20px 24px;overflow:auto;flex:1}.drawer-footer{padding:18px 24px;border-top:1px solid var(--line);background:#fff}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.gallery-tile{position:relative;border:2px solid transparent;border-radius:9px;overflow:hidden;background:#edf1ee;aspect-ratio:1;cursor:pointer}.gallery-tile img{width:100%;height:100%;object-fit:cover}.gallery-tile.selected{border-color:var(--teal)}.check{position:absolute;top:7px;left:7px;width:22px;height:22px;background:#ffffffea;border:1px solid #b7c9be;border-radius:5px;color:transparent;display:grid;place-items:center;font-size:12px}.selected .check{background:var(--teal);color:white;border-color:var(--teal)}.tile-edit{position:absolute;bottom:5px;right:5px;background:#ffffffed;border-radius:5px;padding:4px 8px;font-size:10px}.crop-box{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.switch-label{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600}.switch-label input{width:18px;height:18px;accent-color:var(--teal)}.help{font-size:11px;color:var(--muted);margin:7px 0 10px}.crop-canvas{display:block;width:100%;height:auto;max-height:none;aspect-ratio:1;object-fit:contain;border-radius:9px;background:#edf2ee;cursor:move;touch-action:none}.range-row{display:grid;grid-template-columns:80px 1fr 35px;gap:10px;font-size:11px;align-items:center;margin-top:12px}.range-row input{width:100%;accent-color:var(--teal)}.form-field{margin:18px 0}.form-field label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}.form-field .input,.form-field select,.form-field textarea{width:100%}textarea{resize:vertical;min-height:140px;line-height:1.7}.compose-layout{display:grid;grid-template-columns:1.12fr 1fr;gap:24px;align-items:start}.compose-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.preview-image{width:100%;max-height:360px;object-fit:cover;border-radius:10px}.order-row{display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:8px 0;font-size:12px}.order-row img{width:40px;height:40px;object-fit:cover;border-radius:6px}.order-row span{flex:1}.modal-backdrop{position:fixed;inset:0;background:#10282066;backdrop-filter:blur(4px);z-index:60;display:flex;align-items:center;justify-content:center;padding:24px}#modal{background:white;border-radius:16px;width:650px;max-width:100%;max-height:90vh;overflow:auto;padding:26px;box-shadow:0 20px 100px #05191033}#modal.wide{width:1050px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.modal-head h2{margin:0}.preview-photos{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;border-radius:10px;overflow:hidden}.preview-photos img{width:100%;aspect-ratio:1;object-fit:cover}.preview-caption{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin:20px 0}.preview-head{display:flex;align-items:center;gap:12px;margin:20px 0}.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);padding:13px 22px;background:#163e34;color:white;border-radius:10px;z-index:100;box-shadow:0 10px 35px #12341e26;max-width:90vw;font-size:13px}.toast.error{background:#923f37}.activity{position:fixed;bottom:20px;right:24px;width:325px;background:white;border:1px solid var(--line);padding:15px 18px;border-radius:12px;z-index:25;box-shadow:var(--shadow);font-size:12px}.progress{height:5px;border-radius:5px;background:#edf2ef;overflow:hidden;margin-top:10px}.progress>div{height:100%;background:var(--teal);transition:width .3s}.loading{padding:50px 20px;text-align:center;color:var(--muted)}.spinner{width:25px;height:25px;border-radius:50%;border:3px solid #dcece2;border-top-color:var(--teal);animation:spin 1s linear infinite;margin:0 auto 12px}@keyframes spin{to{transform:rotate(360deg)}}.hidden{display:none!important}.load-more{text-align:center;margin:28px}.path{font-family:Consolas,monospace;font-size:11px;overflow-wrap:anywhere;background:#f5f8f6;padding:12px;border-radius:8px}.page-card{display:flex;gap:16px;align-items:flex-start;margin:18px 0;padding:18px;background:#f9fbfa;border:1px solid var(--line);border-radius:10px}.page-card .avatar{background:#eaf0fd;color:#5278b5;flex-shrink:0}.page-card .page-info{flex:1}.page-card p{font-size:11px;color:var(--muted);margin:8px 0 0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.status-text{font-size:12px;max-width:350px}.calendar-strip{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:20px}.post-actions{display:flex;gap:6px}.mobile-title{display:none}@media(min-width:1600px){.grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1200px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sidebar{width:200px;padding-left:12px;padding-right:12px}main{margin-left:200px}#content{padding:26px 24px}.topbar{padding:0 24px}.heading{align-items:flex-start}.stats{gap:10px}.stat{padding:15px 12px}.stat-icon{width:34px;height:34px}.compose-layout{grid-template-columns:1fr 1fr}}@media(max-width:900px){.sidebar{width:76px;padding:24px 10px}.brand{padding:0;justify-content:center}.brand>span:last-child,.nav-label,nav button span,.sidebar-bottom{display:none}nav{margin-top:40px}nav button{justify-content:center;padding:15px 10px}.brand-icon{width:38px;flex-shrink:0}main{margin-left:76px}.heading{flex-direction:column;gap:15px}.stats{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.compose-layout,.settings-grid{grid-template-columns:1fr}.search-wrap{flex:1}.search{flex:1;width:150px}.topbar{height:65px}.top-right .quiet{display:none}}@media(max-width:600px){main{margin-left:60px}.sidebar{width:60px;padding:20px 6px}.brand-icon{width:34px;height:36px}#content{padding:23px 14px 100px}.topbar{padding:0 14px;font-size:10px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card-body{padding:11px}.card-title{font-size:11px}.card-meta{font-size:9px}.stat strong{font-size:21px}.stat small{font-size:10px}.stat-icon{display:none}h1{font-size:26px}.search-wrap{width:100%}.search-wrap select{width:125px}.tabs button{padding:8px 10px}.heading .actions{gap:6px}.btn{padding:10px 12px;font-size:11px}.activity{bottom:10px;right:10px;width:280px}.breadcrumb{display:none}.slash{display:none}.modal-backdrop{padding:12px}#modal{padding:20px}.gallery-grid{grid-template-columns:repeat(3,1fr)}}

.brand{font-size:21px;gap:9px}.brand>span:last-child{white-space:nowrap}.brand small{font-size:7px;letter-spacing:1px}
.editable-photos{padding-bottom:40px!important}.photo-order{display:flex;position:absolute;top:88px;left:0;width:100%;gap:2px;align-items:center}.photo-order button{padding:2px 3px;border:1px solid var(--line);border-radius:4px;background:white}.photo-order select{min-width:0;flex:1;padding:2px;font-size:11px}.photo-order button:disabled{cursor:default}@media(max-width:600px){.photo-order{top:70px}.photo-order button{padding:2px 0}}
.source-intro{display:flex;flex-wrap:wrap;gap:28px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line);padding:0 0 25px;margin-bottom:27px}.source-intro span{display:flex;gap:8px;align-items:center}.source-intro .icon{width:17px}.source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.source-card{text-align:left;border:1px solid var(--line);background:white;border-radius:15px;padding:23px;transition:.18s;overflow:hidden}.source-card:hover{transform:translateY(-3px);border-color:#aacabb;box-shadow:0 8px 30px #17392e0b}.source-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.source-monogram{height:48px;width:48px;border-radius:13px;display:grid;place-items:center;background:#e6f2ed;font-size:24px;font-weight:700;color:#43836a}.hue-1{background:#f5efe3;color:#ac8c55}.hue-2{background:#eeedf6;color:#8b83ac}.hue-3{background:#e9f0f5;color:#6b96ae}.source-card h2{font-size:18px;margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-domain{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-counts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:23px 0}.source-counts>div{display:grid;grid-template-columns:20px 1fr;gap:3px 8px;font-size:13px}.source-counts .icon{width:16px;height:16px;color:#8aa297;align-self:center}.source-counts span{grid-column:2;font-size:10px;color:var(--muted)}.source-card-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:16px;color:#729283;font-size:11px}.source-card-footer .icon{width:14px;height:14px}.source-back{display:flex;justify-content:space-between;margin-bottom:23px;color:#6d8c7d;font-size:12px}.source-back button{padding:0}.source-sections{display:flex;gap:16px;margin-bottom:26px}.source-sections>button{display:flex;text-align:left;align-items:center;gap:14px;padding:17px 22px;background:white;border:1px solid var(--line);border-radius:12px;flex:1;max-width:390px}.source-sections>button.active{border-color:#63a58f;box-shadow:inset 0 0 0 1px #63a58f;background:#edf6f0}.source-sections>button>div{flex:1}.source-sections small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.source-sections strong{font-size:14px}.source-sections>button>span{font-size:18px;font-weight:650;color:#7ba291}.source-workspace{display:grid;grid-template-columns:205px minmax(0,1fr);gap:24px;align-items:start}.source-workspace.without-categories{display:block}.category-nav{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 10px;position:sticky;top:20px}.category-nav .nav-label{margin:3px 9px 18px;font-size:9px;letter-spacing:1px}.category-nav button{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:12px 10px;width:100%;font-size:12px;border-radius:8px;margin-bottom:5px;gap:8px}.category-nav button.active{color:var(--teal);background:#eaf4ef;font-weight:650}.category-nav button:hover{background:#f3f7f4}.category-nav small{color:var(--muted);font-size:10px}.source-products{min-width:0}.source-products .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.without-categories .grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-card{cursor:default}.product-card.picked{border:1px solid var(--teal);box-shadow:0 0 0 1px var(--teal)}.product-open{width:100%;height:100%;padding:0;display:block}.product-open img{width:100%;height:100%;object-fit:cover;display:block}.product-title{max-width:100%;display:block;padding:0;text-align:left}.product-pick{position:absolute;top:12px;left:12px;line-height:0;cursor:pointer}.product-pick input{width:22px;height:22px;accent-color:var(--teal);margin:0;cursor:pointer}.card-image>.badge.status-corner{left:auto;right:12px}.origin-label{display:flex;align-items:center;gap:5px;font-size:11px;margin:7px 0 9px;font-weight:600}.origin-label .icon{width:13px;height:13px}.origin-label.web{color:#7789aa}.origin-label.local{color:#749582}.batch-selection{position:fixed;z-index:25;bottom:22px;left:calc(225px + 36px);right:36px;display:flex;justify-content:space-between;align-items:center;padding:16px 21px;background:#fff;border:1px solid #c2dace;border-radius:13px;box-shadow:0 8px 40px #163a2822;gap:15px}.batch-selection strong{font-size:14px}.batch-selection small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.bulk-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:23px;align-items:start}.batch-item{margin-bottom:20px}.batch-item-head{display:flex;align-items:center;gap:12px;margin-bottom:15px}.batch-item-head>div:nth-child(2){flex:1;min-width:0}.batch-item-head h2{font-size:16px;overflow-wrap:anywhere;margin:0}.batch-number{width:30px;height:30px;display:grid;place-items:center;background:#eaf3ee;border-radius:8px;color:#568472;font-weight:650;flex-shrink:0}.batch-photo-strip{display:flex;gap:8px;overflow-x:auto;margin:13px 0;max-width:100%;padding-bottom:7px}.batch-photo-strip>div{position:relative;flex-shrink:0;width:83px;height:83px}.batch-photo-strip img{width:100%;height:100%;object-fit:cover;border-radius:8px}.batch-photo-strip span{position:absolute;bottom:4px;left:4px;background:#fff;border-radius:4px;font-size:9px;padding:1px 5px}.batch-options{position:sticky;top:20px}.caption-template{font-size:12px;color:#5f7d70;border-top:1px solid var(--line);padding-top:15px}.caption-template summary{cursor:pointer}.caption-template textarea{width:100%;margin:12px 0;min-height:95px;font-size:12px}.batch-review{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:20px}.batch-review .preview-head>div{flex:1}.batch-review .preview-caption{margin:12px 0}.batch-confirm{position:sticky;bottom:-26px;padding:15px 0;background:#fff}.task-line{border-bottom:1px solid var(--line);padding:15px 0;font-size:12px}.source-products .sectionline button{font-size:11px;padding:0;color:var(--teal)}@media(min-width:1650px){.source-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.source-products .grid{grid-template-columns:repeat(4,minmax(0,1fr))}.without-categories .grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1200px){.source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.source-workspace{grid-template-columns:170px minmax(0,1fr);gap:15px}.source-products .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.without-categories .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.batch-selection{left:224px;right:24px}.bulk-layout{grid-template-columns:minmax(0,1fr) 295px;gap:16px}.source-sections>button{padding:14px}.batch-item-head .actions{gap:0}}@media(max-width:900px){.source-workspace{grid-template-columns:1fr}.category-nav{position:static;display:flex;gap:5px;overflow:auto;padding:8px}.category-nav .nav-label{display:none}.category-nav button{width:auto;flex-shrink:0;margin:0;white-space:nowrap}.source-products .grid,.without-categories .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.batch-selection{left:100px;right:24px}.bulk-layout{grid-template-columns:1fr}.batch-options{position:static}.source-sections small{font-size:10px}.source-sections>button>span{display:none}}@media(max-width:600px){.source-grid{grid-template-columns:1fr;gap:14px}.source-card{padding:19px}.source-intro{gap:12px;font-size:10px}.source-intro span:last-child{display:none}.source-sections{gap:9px}.source-sections>button{padding:12px 10px;gap:8px}.source-sections strong{font-size:12px}.source-sections small{display:none}.source-sections .icon{width:16px}.source-products .grid,.without-categories .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-selection{left:72px;right:12px;bottom:10px;padding:12px;align-items:flex-start;flex-direction:column;gap:10px}.batch-selection .actions{width:100%;justify-content:flex-end}.source-back{font-size:10px}.batch-item{padding:16px}.batch-photo-strip>div{width:65px;height:65px}.batch-item-head h2{font-size:13px}.batch-item-head .icon-btn{padding:4px}.batch-review .preview-head{flex-wrap:wrap}.origin-label{font-size:10px}.batch-confirm{bottom:-20px}}

@media(max-width:900px){.drawer{width:100%}}
.fb-filters{display:flex;align-items:end;gap:18px;flex-wrap:wrap;margin-bottom:24px}.fb-filters .form-field{margin:0;flex:1;min-width:150px}.fb-filters .form-field:first-child{flex:1.5}.fb-result-count{margin:16px 0}.fb-post-list{display:flex;flex-direction:column;gap:16px}.fb-post-row{display:grid;grid-template-columns:140px minmax(0,1fr) 155px;gap:24px;align-items:center}.fb-post-cover{width:140px;height:140px;object-fit:cover;border-radius:12px;background:#eef2ef}.fb-post-message{white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;margin:10px 0;font-size:13px}.fb-post-actions{display:flex;flex-direction:column;gap:10px}.fb-post-copy a{font-size:11px}.repost-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0 25px}.repost-gallery label{position:relative;cursor:pointer}.repost-gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px}.repost-gallery input{position:absolute;top:8px;left:8px;width:20px;height:20px;accent-color:var(--teal)}.repost-gallery span{display:block;font-size:11px;text-align:center}@media(max-width:900px){.fb-post-row{grid-template-columns:100px minmax(0,1fr);gap:16px}.fb-post-cover{width:100px;height:100px}.fb-post-actions{grid-column:1/-1;flex-direction:row}.repost-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.fb-post-row{padding:14px;grid-template-columns:75px minmax(0,1fr)}.fb-post-cover{width:75px;height:90px}.fb-filters .btn{width:100%}.fb-post-actions .btn{flex:1}.repost-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep the source navigation and gallery actions visible while pictures scroll. */
:root{--sidebar-width:225px}
#drawer-backdrop{left:var(--sidebar-width)}
.drawer{left:var(--sidebar-width);right:0;width:auto;max-width:none}
.drawer-head{padding:10px 12px;flex-shrink:0}
.drawer-head h2{font-size:16px;margin-bottom:2px}
.drawer-selection{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;border-bottom:1px solid var(--line);background:white;flex-shrink:0;font-size:11px}
.drawer-selection .btn{padding:8px 12px}
.drawer-selection>button:last-child{padding:8px}
.drawer-body.gallery-scroll{min-height:0;padding:6px;container-type:size;overscroll-behavior:contain}
.gallery-scroll .gallery-grid{grid-template-columns:repeat(var(--gallery-columns),minmax(0,1fr));grid-auto-rows:calc((100cqh - (var(--gallery-rows) - 1)*6px)/var(--gallery-rows));gap:6px;margin:0}
.gallery-scroll .gallery-tile{aspect-ratio:auto;min-height:0;border-radius:5px}
.gallery-scroll .gallery-tile img{object-fit:contain;display:block}
.drawer-footer{padding:8px 12px;flex-shrink:0}
.drawer-footer .help{margin:0 0 6px}
@media(max-width:1200px){:root{--sidebar-width:200px}}
@media(max-width:900px){:root{--sidebar-width:76px}}
@media(max-width:600px){:root{--sidebar-width:60px}.drawer-selection{flex-wrap:wrap;padding:5px 6px}.gallery-scroll .gallery-grid{grid-template-columns:repeat(min(2,var(--gallery-columns)),minmax(0,1fr))}}
body:has(#drawer:not(.hidden)){overflow:hidden}
.source-cover.source-brand-cover{background:white;aspect-ratio:2.4;border-bottom:1px solid var(--line)}
.source-brand-name{position:absolute;inset:0;display:grid;place-items:center;padding:20px;font:600 26px Georgia,serif;color:#172622;text-align:center;overflow-wrap:anywhere}
.source-brand-cover>.source-brand-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;background:white;padding:18px 24px}
.source-cover{position:relative;margin:-23px -23px 18px;aspect-ratio:16/10;overflow:hidden;background:#e9efeb}
.source-cover>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 70%}
.source-cover>span{position:absolute;bottom:10px;left:12px;background:#fffffff0;color:var(--teal);padding:4px 8px;border-radius:5px;font-size:10px}
.source-cover-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:12px}.source-cover-empty .icon{width:36px;height:36px}
.source-card-top{margin-bottom:14px}
@media(max-width:600px){.source-cover{margin:-19px -19px 16px}}
.source-sections{position:sticky;top:0;z-index:15;padding:8px 0;background:var(--bg);box-shadow:0 6px 12px #153a2e08}
@media(min-width:901px){.source-workspace .category-nav{top:112px}}
.source-products .product-card{scroll-margin-top:112px}
.product-card.returned-product{outline:2px solid var(--teal);outline-offset:3px}
.layout-cell>.layout-more-shade{position:absolute;inset:0;display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#0007;color:#fff;font-size:clamp(25px,3vw,42px);font-weight:700;z-index:2}
.layout-edit-group .layout-more-shade{pointer-events:none}
.layout-overflow{margin-top:10px;font-size:11px;color:var(--muted)}.layout-overflow summary{cursor:pointer;padding:5px 0}.layout-overflow[open] summary{margin-bottom:8px}
.layout-review-group .layout-cell>span:not(.layout-more-shade){display:none}
.layout-cell[data-preview-area=a]{grid-area:a!important}.layout-cell[data-preview-area=b]{grid-area:b!important}.layout-cell[data-preview-area=c]{grid-area:c!important}.layout-cell[data-preview-area=d]{grid-area:d!important}.layout-cell[data-preview-area=e]{grid-area:e!important}
.bulk-controls[hidden]{display:none}
.post-layout{margin:16px 0}.post-layout>label{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-weight:600}
.layout-preview{display:grid;gap:4px;width:100%;max-width:620px;overflow:hidden;background:#e4ece7;grid-auto-rows:minmax(0,1fr)}
.layout-cell{position:relative;min-height:0;min-width:0;overflow:hidden;padding:0;border:0;border-radius:0;background:#eaf0ec;touch-action:none;cursor:grab;user-select:none}
.layout-cell img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.layout-cell>span{position:absolute;left:6px;bottom:6px;font-size:10px;background:#fffffff0;border-radius:4px;padding:3px 6px;pointer-events:none}
.layout-cell.active{outline:3px solid var(--teal);outline-offset:-3px}.layout-cell:focus-visible{outline:3px solid var(--teal);outline-offset:-3px}
.layout-natural{grid-template-columns:repeat(3,minmax(0,1fr))}.layout-natural .layout-cell{aspect-ratio:1}
.layout-adjust{display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:#f1f6f3;padding:12px;margin-top:8px;border-radius:8px;font-size:12px}.layout-adjust label{display:grid;gap:5px;flex:1;min-width:100px}.layout-adjust input{width:100%;accent-color:var(--teal)}
.layout-choices{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.layout-choice{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:8px;width:122px;padding:9px;border:1px solid var(--line);border-radius:9px;font-size:10px;background:white}.layout-choice.active{border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal);background:#edf8f4}.layout-diagram{display:grid;gap:2px;width:90px;max-height:90px;grid-auto-rows:minmax(0,1fr)}.layout-diagram i{min-width:0;min-height:0;display:grid;place-items:center;background:#1b8b80;color:white;font-style:normal;border-radius:2px;font-size:10px}.original-diagram{height:70px;display:grid;place-items:center;background:#e4ede8;color:#547165;border-radius:5px}.layout-cell.drop-target{outline:4px dashed #efb645;outline-offset:-5px;filter:brightness(.85)}.layout-cell:active{cursor:grabbing}

/* Compact source header: actions and source tabs remain together while scrolling. */
.topbar{display:none}
.source-sticky{position:sticky;top:0;z-index:16;background:var(--bg);padding:12px 0 8px;box-shadow:0 6px 12px #153a2e08}
.source-sticky .heading{margin-bottom:12px}
.source-sticky .source-sections{position:static;margin-bottom:0;padding:0;box-shadow:none}
@media(min-width:901px){.source-workspace .category-nav{top:calc(var(--source-header-height,200px) + 12px);max-height:calc(100vh - var(--source-header-height,200px) - 30px);overflow:auto}}

/* Facebook cards: compact overview shared by published and scheduled posts. */
.fb-post-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:stretch}
.fb-post-row.panel{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:10px;min-width:0;overflow:hidden}
.fb-post-cover{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:8px}
.fb-post-copy{min-width:0;flex:1}
.fb-post-copy>strong{display:block;font-size:13px;line-height:1.5;color:var(--teal)}
.fb-post-row .fb-post-message{-webkit-line-clamp:2;margin:6px 0;line-height:1.5}
.fb-post-actions{display:grid;grid-template-columns:1fr;gap:6px;margin-top:auto}
.fb-post-actions .btn{width:100%;min-width:0;padding:9px 6px;font-size:12px;justify-content:center;white-space:normal}
.fb-post-actions a{font-size:11px;text-align:center;padding:3px 0}
@media(max-width:1500px){.fb-post-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.fb-post-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.fb-post-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
@media(max-width:480px){.fb-post-list{grid-template-columns:minmax(0,1fr)}}

/* Each date heading stays pinned only within its own day group. */
.fb-day-group{position:relative;isolation:isolate;margin:20px 0;padding:0 12px 12px;border:1px solid #cbded7;border-radius:12px;background:#edf3f0;overflow:visible}
.fb-day-heading{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -12px 12px;padding:13px 16px;background:#e0eee8;border-bottom:1px solid #bfd5ca;border-radius:11px 11px 0 0;box-shadow:0 3px 8px #18332f0d}
.fb-day-heading h2{margin:0;font-size:18px;color:var(--teal)}
.fb-day-heading span{font-size:12px;color:#506f62;white-space:nowrap}
@media(max-width:600px){.fb-day-group{padding:0 8px 8px}.fb-day-heading{margin:0 -8px 8px;padding:11px 12px}.fb-day-heading h2{font-size:15px}}

/* Keep the compose title and all draft actions visible during scrolling. */
#content>.heading.compose-sticky{position:sticky;top:0;z-index:18;background:var(--bg);padding:14px 0;margin-bottom:20px;border-bottom:1px solid var(--line);box-shadow:0 6px 12px #153a2e08}
@media(min-width:901px){.compose-sticky+.bulk-layout>.batch-options{top:calc(var(--compose-header-height,110px) + 12px);max-height:calc(100dvh - var(--compose-header-height,110px) - 24px);overflow:auto}}
@media(max-width:600px){#content>.heading.compose-sticky{gap:8px;padding:10px 0}.compose-sticky h1{font-size:23px}.compose-sticky .actions{flex-wrap:wrap}}

.batch-item{scroll-margin-top:calc(var(--compose-header-height,110px) + 16px)}
.fb-delete-toolbar{display:flex;gap:12px;align-items:center;margin:12px 0}.fb-delete-check{display:flex;align-items:center;gap:8px;font-size:12px}.fb-delete-check input{width:18px;height:18px;accent-color:var(--teal)}
