:root{--green:#287650;--ink:#243d33;--muted:#566b62;--line:#dfe7e1;--bg:#f3f6f4;--soft:#eaf3ed;--red:#bc5148;--gold:#a27320;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:13px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button:focus-visible,a:focus-visible{outline:2px solid #79a78a;outline-offset:2px}input,select,textarea{border:1px solid #d6e0d9;background:#fff;border-radius:6px;padding:9px 10px;min-width:0;max-width:100%}input:focus,select:focus,textarea:focus{outline:0;border-color:#80aa90;box-shadow:0 0 0 2px #71a88515}input[type=checkbox],input[type=radio]{width:14px;height:14px;accent-color:var(--green)}textarea{resize:vertical;line-height:1.7;width:100%;min-height:82px}a{color:var(--green);text-decoration:none}svg{width:17px;height:17px;vertical-align:middle;flex-shrink:0;pointer-events:none}.btn{display:inline-flex;gap:6px;align-items:center;justify-content:center;border:1px solid #d5dfd8;border-radius:6px;background:white;min-height:34px;padding:7px 12px;font-size:12px;white-space:nowrap}.btn:hover{border-color:#9ebba8;background:#f6faf7}.btn.primary{color:white;background:var(--green);border-color:var(--green)}.btn.soft{background:var(--soft);color:var(--green);border-color:#cfe4d6}.btn.danger{color:var(--red)}.link{border:0;background:none;color:var(--green);padding:3px 0;font-size:12px}.muted,small{color:var(--muted);font-size:11px;line-height:1.7}.badge{display:inline-block;padding:3px 6px;border-radius:4px;background:#eef3f0;color:#4f665b;font-size:10px;white-space:nowrap;line-height:1.6}.badge.green{background:#e6f3e9;color:#276742}.badge.red{background:#fbe9e6;color:#a84136}.badge.gold{background:#fcf3df;color:#8a641b}.badge.platform{background:#f1eee8;color:#785540}.stack{display:flex;flex-direction:column;gap:5px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.spacer{flex:1}.flex{display:flex;gap:10px;align-items:center}.between{display:flex;justify-content:space-between;gap:12px;align-items:center}.field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px}.field>span:first-child{font-weight:500}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.full{grid-column:1/-1}.notice{border:1px solid #d8e5dc;border-radius:7px;background:#eff6f1;padding:12px 15px;font-size:12px;line-height:1.8}.notice.warn{background:#fff9eb;border-color:#efdfba;color:#7d5a1c}.notice.error{background:#fff4f1;border-color:#efcdc5;color:#a34137}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-head{padding:16px 19px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.panel-content{padding:20px}h1{font-size:26px;letter-spacing:-.7px;margin:6px 0 8px}h2{font-size:17px;margin:0}h3{font-size:14px;margin:0 0 8px}p{line-height:1.8}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.7;background:#f7f9f7;border:1px solid var(--line);padding:14px;border-radius:7px;max-height:60vh;overflow:auto}.shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--line);background:white;padding:28px 16px;display:flex;flex-direction:column;gap:7px}.brand{display:flex;align-items:center;gap:10px;margin:0 8px 30px}.logo{display:block;width:37px;height:37px;flex:none}.brand b{display:block;font-size:19px}.brand small{font-size:10px}.nav-title{color:#5d7066;font-size:10px;margin:9px 12px}.nav{display:flex;align-items:center;gap:11px;width:100%;padding:14px 13px;background:none;border:0;border-radius:8px;text-align:left;font-size:13px}.nav.active,.nav:hover{background:#e8f2eb;color:#266c48}.sidebar-foot{margin-top:auto;padding:16px 10px 0;border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.8}.topbar{height:63px;border-bottom:1px solid var(--line);background:#ffffffc9;display:flex;align-items:center;gap:12px;padding:0 30px}.topbar .btn{min-height:32px;padding:6px 9px}.content{padding:30px 32px}.heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.overline{font-size:9px;letter-spacing:2px;color:#5d7066}.subtitle{color:var(--muted);font-size:12px}.toolbar{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:13px 18px;flex-wrap:wrap}.tabs{display:flex;gap:18px;flex-wrap:wrap}.tab{border:0;background:none;padding:12px 0;color:#566b62;font-size:12px;white-space:nowrap}.tab.active{color:#28734e;box-shadow:0 2px #28734e}.count{font-size:10px;background:#edf3ee;padding:2px 5px;margin-left:5px;border-radius:10px}.bulk{background:#f0f6f2;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.table-wrap{overflow-x:auto;max-width:100%}table{width:100%;border-collapse:collapse;text-align:left}th{background:#f7faf8;color:#566b62;font-size:11px;font-weight:500;padding:14px 12px;border-bottom:1px solid var(--line)}td{padding:18px 12px;border-bottom:1px solid #e8ede9;vertical-align:top;font-size:12px;line-height:1.7}.product-table{min-width:980px;table-layout:fixed}.product-table.catalog-table{min-width:1125px}.product-table .col-select{width:32px}.product-table .col-image{width:84px}.product-table .col-category{width:145px}.product-table .col-progress{width:136px}.product-table .col-result{width:124px}.product-table .col-time{width:142px}.product-table .col-actions{width:130px}.product-table th,.product-table td{padding-left:10px;padding-right:10px}.product-table td{padding-top:16px;padding-bottom:16px;overflow-wrap:anywhere}.product-table .stack{align-items:flex-start;gap:6px}.product-table .stack .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}.product-table .title{-webkit-line-clamp:2}.product-table .original-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-table .progress{min-width:0}.source-card{border:1px solid var(--line);border-radius:7px;padding:16px;margin-top:12px}.source-card:first-of-type{margin-top:0}.product-thumb{width:62px;height:62px;display:block;object-fit:contain;border:1px solid var(--line);border-radius:7px;background:#fbfcfb}.source-link{display:block;width:62px;text-align:center;margin-top:5px;font-size:10px;line-height:1.7}.title{font-size:13px;font-weight:600;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.time-group{display:flex;flex-direction:column;gap:2px;margin-bottom:12px}.row-actions{width:108px;display:flex;flex-direction:column;gap:4px}.edit-btn{width:108px;min-height:30px;padding:5px 8px;font-size:11px;justify-content:flex-start}.edit-btn svg{width:14px}.action-tail{display:flex;gap:4px;align-items:center;width:108px}.action-tail>.link{width:60px;font-size:10px;white-space:nowrap;padding:6px 0}.more{display:grid;grid-template-columns:1px 20px 11px;gap:4px;width:44px;min-width:44px;padding:4px 0 4px 4px;align-items:center;border:0;background:none;color:#566b62;font-size:10px}.more:before{content:"";height:12px;background:#d4dfd7}.more svg{width:11px;height:11px;justify-self:end}.popover{position:fixed;z-index:200;width:180px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:5px;box-shadow:0 10px 30px #24413120}.popover button{display:flex;gap:9px;align-items:center;width:100%;border:0;background:none;text-align:left;padding:10px;font-size:12px}.popover button:hover{background:var(--soft)}.progress{background:#f6faf7;padding:7px 8px;border:1px solid #dbe7df;border-radius:6px;margin-bottom:8px;min-width:110px}.progress .between{font-size:10px;color:#498361}.track{height:4px;background:#e3ece6;border-radius:6px;margin:5px 0;overflow:hidden}.track i{display:block;height:100%;background:#39865b;border-radius:6px;transition:width .3s}.drawer-backdrop,.modal-backdrop{position:fixed;inset:0;z-index:100;background:#1b302a4a;display:flex;justify-content:flex-end;backdrop-filter:blur(1px)}.drawer{width:min(1240px,calc(100vw - 30px));height:100vh;background:#fff;display:flex;flex-direction:column;border-radius:15px 0 0 15px;box-shadow:-10px 0 45px #173b2520}.drawer-head{padding:22px 28px 16px;border-bottom:1px solid var(--line)}.drawer-head h2{max-width:90%;font-size:17px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-bottom:6px}.icon{width:29px;height:29px;display:inline-flex;align-items:center;justify-content:center;padding:5px;border:1px solid #e1e8e3;background:#fff;border-radius:5px}.icon svg{width:16px;height:16px}.icon.danger{color:var(--red)}.detail-tabs,.section-nav{display:flex;gap:20px;padding:0 28px;border-bottom:1px solid var(--line);overflow-x:auto;flex:none;white-space:nowrap}.section-nav{gap:8px;padding:8px 26px;background:#fcfdfc}.section-nav button{border:0;padding:6px 8px;border-radius:4px;font-size:11px;background:none;white-space:nowrap}.section-nav button:hover{background:var(--soft)}.drawer-body{overflow:auto;padding:22px 28px;flex:1;scroll-behavior:auto;background:#fbfcfb}.drawer-foot{padding:14px 28px;border-top:1px solid var(--line);background:#fff}.section{padding:20px;border:1px solid var(--line);border-radius:8px;background:#fff;margin-bottom:18px;scroll-margin-top:12px;min-width:0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}.section-head small{display:block}.media-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}.media-card{min-width:0;border:1px solid #dbe5de;border-radius:7px;overflow:hidden;background:#fff;position:relative}.media-card.selected{border-color:#338056;box-shadow:0 0 0 2px #338056}.media-frame{position:relative;aspect-ratio:1;background:#fafcfb}.media-frame img{display:block;width:100%;height:100%;object-fit:contain;cursor:pointer}.media-frame .index{position:absolute;top:6px;left:6px;font-size:10px;line-height:20px;min-width:20px;text-align:center;border-radius:20px;background:#426a53db;color:white;pointer-events:none}.zoom{position:absolute;right:6px;top:6px;opacity:0}.media-frame:hover .zoom,.zoom:focus-visible{opacity:1}.media-icons{padding:5px 4px;display:flex;justify-content:space-evenly;gap:2px;border-top:1px solid #edf1ee}.media-icons .icon{width:25px;height:25px;border:0;background:transparent;padding:4px}.media-icons .icon:hover{background:var(--soft)}.media-meta{font-size:10px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:5px 8px;border-top:1px solid var(--line)}.media-toolbar{display:flex;justify-content:space-between;gap:10px;margin-bottom:14px;flex-wrap:wrap}.media-toolbar .btn{padding:5px 9px;font-size:11px;min-height:29px}.empty-media{aspect-ratio:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#5d7066}.selected .media-frame:after{content:'✓';position:absolute;bottom:7px;right:7px;background:var(--green);color:white;width:19px;height:19px;border-radius:50%;text-align:center;font-size:11px;line-height:19px;pointer-events:none}.description-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,370px);gap:24px}.description-preview{max-height:650px;overflow:auto;padding-right:8px;min-width:0;scrollbar-gutter:stable}.description-preview>img{display:block;width:100%;height:auto;margin:0 0 2px}.description-preview textarea{min-height:85px;margin:0}.text-block{display:grid;grid-template-columns:1fr 27px;gap:6px;margin-bottom:12px}.description-assets{min-width:0}.description-assets .media-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.description-assets .media-toolbar{align-items:flex-start}.description-assets .media-toolbar .actions{gap:5px}.description-assets .media-grid{max-height:600px;overflow:auto;padding:3px}.sku-table{min-width:940px;table-layout:fixed}.sku-table th,.sku-table td{padding:8px 6px;font-size:11px;vertical-align:middle}.sku-table th{height:58px;overflow:hidden}.sku-table input,.sku-table select{width:100%;height:33px;padding:6px 5px;font-size:11px}.sku-table .head-label{display:flex;align-items:center;justify-content:space-between;gap:3px}.head-label span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.head-label .icon{flex:0 0 20px;width:20px;height:23px;padding:3px;background:var(--soft);border:0}.money-input{display:flex;border:1px solid #d8e2db;border-radius:5px;align-items:center;background:#fff;overflow:hidden}.money-input span{font-size:10px;padding:0 6px;color:#566b62;border-right:1px solid #e1e6e3;line-height:16px;flex:none}.money-input input{border:0;border-radius:0;width:0;flex:1;min-width:0}.spec-row{display:grid;grid-template-columns:168px minmax(0,1fr);gap:16px;border-bottom:1px solid #e7ece8;padding:15px 0}.spec-values{display:flex;gap:8px;flex-wrap:wrap}.spec-chip{display:flex;gap:4px;align-items:center;background:#f9fbfa;border:1px solid var(--line);padding:4px;border-radius:6px}.spec-chip input{width:130px;font-size:11px;padding:6px;border:0;background:none}.spec-chip button{border:0;background:none;padding:3px}.spec-grip{cursor:grab;color:#73877b}.modal-backdrop{align-items:center;justify-content:center;z-index:150}.modal{max-height:90vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px;width:min(650px,calc(100vw - 32px));padding:25px;box-shadow:0 20px 70px #17312533}.modal.wide{width:min(1120px,calc(100vw - 32px))}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;position:sticky;top:-25px;background:#fff;z-index:3;padding:10px 0;border-bottom:1px solid var(--line)}.modal-foot{display:flex;gap:8px;justify-content:flex-end;margin-top:20px;position:sticky;bottom:-25px;padding:14px 0 0;border-top:1px solid var(--line);background:#fff;z-index:3}.config-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px}.config-list{border-right:1px solid var(--line);padding-right:20px;position:sticky;top:45px;align-self:start;max-height:70vh;overflow:auto}.config-item{padding:12px 10px;border:1px solid var(--line);border-radius:6px;margin:10px 0;display:flex;justify-content:space-between;align-items:center;gap:7px}.config-item.active{background:#ecf5ef;border-color:#aac9b5}.config-item b{font-size:12px}.config-item label{display:flex;gap:7px;align-items:center}.auto-config{margin-top:20px;background:#f5faf7;border:1px solid #dbe8df;border-radius:8px;padding:16px}.checks{display:flex;flex-wrap:wrap;gap:15px}.checks label{display:flex;align-items:center;gap:7px;font-size:12px}.auto-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:15px}.auto-grid label{display:flex;align-items:center;gap:7px;font-size:12px}.range{background:#f6faf7;padding:12px;border:1px solid var(--line);border-radius:6px;margin-top:12px}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(at top left,#e4eee6,transparent 65%)}.login-card{width:min(420px,100%);padding:35px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 25px 60px #2445300b}.login-card form{display:flex;flex-direction:column;gap:16px}.login-card .brand{margin:0 0 25px}#toast{position:fixed;z-index:400;left:50%;bottom:28px;transform:translateX(-50%);padding:12px 20px;background:#244a36;color:white;border-radius:8px;box-shadow:0 5px 25px #15342130;max-width:90vw;font-size:13px;cursor:pointer}#toast[data-tone="error"]{background:#9e352e;box-shadow:0 8px 28px #6e1f1a45}#hover-preview{position:fixed;z-index:250;background:white;padding:8px;border:1px solid var(--line);border-radius:9px;box-shadow:0 10px 40px #15382130;pointer-events:none;width:310px;height:310px}#hover-preview img{width:100%;height:100%;object-fit:contain}.lightbox-image{display:block;width:100%;max-height:72vh;object-fit:contain}.collapsed{grid-template-columns:70px minmax(0,1fr)}.collapsed .nav span,.collapsed .brand>div:not(.logo),.collapsed .nav-title,.collapsed .sidebar-foot{display:none}.collapsed .sidebar{padding:28px 10px}.collapsed .brand{margin:0 5px 30px}.collapsed .nav{padding:14px;justify-content:center}.empty{padding:60px 20px;text-align:center;color:var(--muted)}.pagination{padding:15px 18px;display:flex;justify-content:space-between;align-items:center}.loading{padding:35px;color:var(--muted)}.error-text{color:var(--red)}.sku-summary{background:#f0f6f2;padding:10px 12px;border-radius:6px;margin:16px 0}.drag-over{outline:2px dashed var(--green)}
@media(max-width:1000px){.description-workspace{grid-template-columns:minmax(0,1fr) 330px}.sidebar{padding-left:10px;padding-right:10px}.shell{grid-template-columns:185px minmax(0,1fr)}.heading{align-items:flex-start}.content{padding:25px 20px}.media-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.shell{grid-template-columns:62px minmax(0,1fr)}.sidebar{padding:20px 7px}.nav span,.brand>div:not(.logo),.nav-title,.sidebar-foot{display:none}.brand{margin:0 5px 25px}.logo{width:34px;height:34px}.nav{justify-content:center;padding:13px}.content{padding:20px 12px}.topbar{padding:0 14px}.heading{flex-direction:column}.heading>.actions{width:100%}.two{grid-template-columns:1fr}.config-layout{grid-template-columns:1fr}.config-list{position:static;max-height:180px;border-right:0;border-bottom:1px solid var(--line);padding:0 0 12px}.drawer{width:100vw;border-radius:0}.drawer-head{padding:18px 16px}.drawer-body{padding:12px}.drawer-foot{padding:12px 16px}.section{padding:14px}.description-workspace{grid-template-columns:1fr}.description-preview{max-height:380px}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.description-assets .media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.auto-grid{grid-template-columns:repeat(2,1fr)}.spec-row{grid-template-columns:1fr}.toolbar{padding:12px}.modal{padding:18px}.modal-head{top:-18px}.modal-foot{bottom:-18px}}
.progress.failed,.progress.unknown{border-color:#edcfc7;background:#fff6f3}.progress.failed .between,.progress.unknown .between{color:#b95647}.progress.failed .track i,.progress.unknown .track i{background:#bd6656}
.drawer-body,.description-preview,.description-assets .media-grid{overscroll-behavior:contain}
.media-hit{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;position:absolute;inset:0}.media-hit:focus-visible{outline:2px solid var(--green);outline-offset:-3px}
.media-frame-labels{position:absolute;bottom:6px;left:6px;right:6px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;pointer-events:none}
.media-icons button[aria-pressed=true]{color:var(--green);background:var(--soft);border-radius:5px}
.media-hover-labels{display:flex;align-items:center;gap:4px;max-width:100%}
.media-dimensions,.media-ai-label{display:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 5px;border-radius:4px;background:#182820e6;color:#fff;font-size:10px;line-height:14px;font-variant-numeric:tabular-nums}
.media-ai-label{flex:none;background:#246748;font-weight:700}
.media-frame:hover :is(.media-dimensions:not(:empty),.media-ai-label),.media-hit:focus-visible~.media-frame-labels :is(.media-dimensions:not(:empty),.media-ai-label){display:block}


.product-table .image-heading{white-space:nowrap}.pagination{gap:14px;flex-wrap:wrap}.pager-controls,.page-numbers,.page-jump{display:flex;align-items:center;gap:6px}.pager-controls{gap:16px;flex-wrap:wrap;justify-content:flex-end}.page-number{border:1px solid transparent;background:none;min-width:30px;height:30px;border-radius:5px;font-size:12px;padding:4px}.page-number:hover{background:#f0f6f2}.page-number.active{background:var(--soft);border-color:#cfe3d5;color:var(--green);font-weight:600}.page-arrow{padding:5px 6px;min-height:30px;border-color:transparent}.page-arrow svg{width:14px;height:14px}.page-ellipsis{color:var(--muted);padding:0 3px}.page-jump{font-size:12px;color:#74877a}.page-jump input{width:54px;text-align:center;padding:6px 4px;height:31px}.page-jump .btn{min-height:30px;padding:5px 8px}#page-size{height:32px;padding:5px 8px;font-size:12px}.column-group{border-bottom:1px solid var(--line);padding:16px 0}.column-group:last-of-type{border-bottom:0}.column-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px;margin-top:14px}.column-options label{display:flex;align-items:center;gap:7px;font-size:12px}.list-image-strip{display:flex;gap:6px}.list-thumbnail{display:block;flex:none;width:38px;height:38px;padding:0;border:1px solid var(--line);background:#fbfcfb;border-radius:5px;overflow:hidden}.list-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}.size-thumbnail{width:62px;height:62px}.list-video{display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;border:1px solid var(--line);border-radius:6px;background:#f3f8f5;width:90px;height:62px;color:var(--green);font-size:10px}.list-video svg{width:20px;height:20px}.list-video-preview{display:block;width:100%;max-height:66vh;background:#18281f;border-radius:7px;margin-bottom:12px}.list-gallery-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.list-gallery-item{aspect-ratio:1;position:relative;padding:0;border:1px solid var(--line);border-radius:7px;background:#fbfcfb;overflow:hidden}.list-gallery-item img{width:100%;height:100%;object-fit:contain}.list-gallery-item span{position:absolute;left:6px;top:6px;width:20px;height:20px;border-radius:20px;background:#355b43b5;color:#fff;line-height:20px;font-size:10px}
@media(max-width:760px){.pager-controls{gap:9px;justify-content:flex-start}.column-options{grid-template-columns:repeat(2,minmax(0,1fr))}.list-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.text-entry{border:0;background:none;padding:0;width:100%;text-align:left;color:var(--ink);cursor:pointer;overflow-wrap:anywhere;white-space:normal}.text-entry:hover{color:var(--green);text-decoration:underline;text-decoration-color:#91b69e;text-underline-offset:3px}.text-entry.title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.list-copy{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.8}.quick-editor-note{display:flex;flex-direction:column;gap:5px;font-size:11px;line-height:1.8;color:var(--muted);margin:12px 0 18px}#quick-text-value{max-height:55vh;min-height:120px}.package-dimensions{white-space:nowrap}.gallery-scroll{max-height:54vh;overflow:auto;padding:3px;scrollbar-gutter:stable;overscroll-behavior:contain}.gallery-hint{margin-bottom:14px;font-size:11px}.gallery-product-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-image-error,.gallery-image-success{display:block;padding:5px 8px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-image-error{color:var(--red);background:#fff4f1}.gallery-image-success{color:var(--green);background:#f1f8f3}.delete-list{max-height:220px;overflow:auto;padding-left:20px;line-height:1.9}.delete-list li{margin:8px 0}.popover button.danger{color:var(--red)}.table-scroll-rail{height:14px;overflow-x:auto;overflow-y:hidden;position:sticky;top:0;z-index:6;background:#f1f6f2;border-bottom:1px solid var(--line)}.table-scroll-rail[hidden]{display:none}.table-scroll-rail>div{height:1px}.product-table td[data-column=actions]{position:sticky;right:0;z-index:2;background:#fff;box-shadow:-5px 0 10px #25473308}.product-table th[data-column=actions]{position:sticky;right:0;z-index:3;background:#f7faf8}.product-table th:first-child,.product-table td:first-child{position:sticky;left:0;z-index:2;background:#fff}.product-table th:first-child{background:#f7faf8;z-index:3}
.table-scroll-tools{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:4px 12px;border-bottom:1px solid var(--line);background:#fbfdfb;font-size:10px;color:var(--muted)}.table-scroll-tools[hidden]{display:none}.table-scroll-tools .icon{width:24px;height:24px}
.modal.gallery-modal{display:flex;flex-direction:column;height:min(90vh,900px);overflow:hidden}.gallery-modal .modal-head{position:static;flex:none;margin-bottom:12px}.gallery-modal>.gallery-product-title,.gallery-modal>.gallery-hint,.gallery-modal>#gallery-progress,.gallery-modal>.media-toolbar,.gallery-modal>.notice.error{flex:none}.gallery-modal .gallery-scroll{flex:1;min-height:0;max-height:none}.gallery-modal .modal-foot{position:static;flex:none}.gallery-modal .lightbox-image{flex:1;min-height:0;max-height:none;object-fit:contain}.gallery-modal>.notice.error{max-height:90px;overflow:auto}.gallery-modal>#gallery-progress{max-height:130px;overflow:auto}
.btn.danger-solid{background:#b95147;border-color:#b95147;color:#fff}.btn.danger-solid:hover{background:#a9433a;border-color:#a9433a}#lsky-inspect-status{line-height:1.8}#online-shop-options{margin-bottom:14px}
/* R5: full-width brand header and icon rail. */
.shell{grid-template-columns:216px minmax(0,1fr);grid-template-rows:76px minmax(0,1fr)}.shell>.topbar{grid-column:1/-1;grid-row:1;position:sticky;top:0;z-index:30;height:76px;background:#fff;padding:0 24px;gap:22px}.topbar>.icon{width:40px;height:40px;border:1px solid #d5dfd8;border-radius:11px;background:#fff;box-shadow:0 2px 5px #2445300b;display:grid;place-items:center;flex:none}.topbar>.icon svg{width:21px;height:21px}.shell .topbar .brand{margin:0;gap:11px}.shell .topbar .brand>div:not(.logo){display:block}.topbar .brand b{font-size:22px;letter-spacing:-.5px}.topbar .brand small{font-size:10px;display:block}.topbar .logo{width:40px;height:40px}.header-context{color:var(--green);background:var(--soft);border:1px solid #d8e8dd;border-radius:5px;padding:5px 10px;font-size:11px}.header-user{font-size:12px;color:var(--muted)}.shell>.sidebar{grid-column:1;grid-row:2;top:76px;height:calc(100vh - 76px);padding:20px 14px;gap:7px;z-index:20}.shell>main{grid-column:2;grid-row:2;min-width:0}.shell .nav-title{margin:10px 14px;font-size:10px}.shell .nav-title.nav-divider{margin-top:28px}.shell .nav{min-height:46px;padding:12px 14px;gap:12px;border-radius:12px}.shell .nav svg{width:20px;height:20px}.shell.collapsed{grid-template-columns:76px minmax(0,1fr)}.shell.collapsed>.sidebar{padding:20px 12px;align-items:center}.shell.collapsed .nav{width:48px;height:48px;padding:13px;justify-content:center;border-radius:15px}.shell.collapsed .nav-title{display:block;width:22px;height:3px;min-height:3px;border-radius:3px;background:#e2e9e4;margin:14px 0 10px;font-size:0;line-height:0;overflow:hidden}.shell.collapsed .nav-title.nav-divider{margin-top:25px}.shell.collapsed .nav span,.shell.collapsed .sidebar-foot{display:none}.sync-page-range{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:end;gap:10px}.range-divider{align-self:end;text-align:center;padding-bottom:9px;color:var(--muted)}.lsky-token-login{margin:16px 0;padding:13px 15px;background:#f6faf7;border:1px solid #dbe7de;border-radius:7px}.lsky-token-login>summary{cursor:pointer;color:var(--green);font-size:12px;font-weight:500}.lsky-token-login[open]>summary{margin-bottom:12px}
@media(max-width:1000px){.shell{grid-template-columns:185px minmax(0,1fr)}.shell.collapsed{grid-template-columns:76px minmax(0,1fr)}}
@media(max-width:760px){.shell,.shell.collapsed{grid-template-columns:64px minmax(0,1fr);grid-template-rows:68px minmax(0,1fr)}.shell>.topbar{height:68px;padding:0 12px;gap:13px}.shell>.sidebar,.shell.collapsed>.sidebar{top:68px;height:calc(100vh - 68px);padding:15px 8px}.shell .nav,.shell.collapsed .nav{width:48px;height:46px;padding:13px;justify-content:center}.shell .nav-title{display:none}.topbar .brand b{font-size:19px}.topbar .brand small{font-size:9px}.header-context,.header-user{display:none}.topbar .logo{width:35px;height:35px}.topbar .header-logout{padding:6px;font-size:10px}.shell .sidebar-foot{display:none}}
/* R6: matching header and rail centers, compact media utilities. */
.shell>.topbar{padding-left:22px}.topbar>.icon{width:32px;height:32px;border-radius:8px;box-shadow:none}.topbar>.icon svg{width:18px;height:18px}.shell .sidebar .nav svg{width:18px;height:18px}.shell.collapsed .nav{width:48px;padding:15px}.media-empty-link{font-size:11px;border-bottom:1px dashed #abc5b3}.gallery-picker .related-image{padding:0;aspect-ratio:1;border-radius:8px;overflow:hidden}.related-image img{width:100%;height:100%;object-fit:contain}.list-gallery-grid .empty-media{border:0;background:#f7faf8;width:100%;height:auto;cursor:pointer;font-size:11px}.list-gallery-grid [draggable=true]{cursor:grab}.fx-settings-entry{padding:14px 20px;border-top:1px solid var(--line);background:#fbfcfb}.fx-table{max-height:48vh;overflow:auto}.fx-table th{position:sticky;top:0}.fx-table td{padding:9px 12px}.list-video-preview{margin-top:16px;max-height:340px}
@media(max-width:760px){.shell>.topbar{padding-left:16px;gap:14px}}
/* R7: compact shared header and workbench-specific rules. */
.shell,.shell.collapsed{grid-template-rows:64px minmax(0,1fr)}.shell>.topbar{height:64px}.shell>.sidebar,.shell.collapsed>.sidebar{top:64px;height:calc(100vh - 64px);padding-top:16px}.topbar .logo{width:35px;height:35px}.topbar .brand b{font-size:20px;line-height:1.2}.topbar .brand small{font-size:9px;line-height:1.5}.workbench-tabs{margin-bottom:20px;border-bottom:1px solid var(--line);gap:24px}.workbench-tabs .tab{padding:10px 1px 13px}.workbench-rule-panel{padding-top:1px}.rule-example small,.rule-example b{display:block}.rule-example b{margin-top:4px;font-size:16px;letter-spacing:.4px;overflow-wrap:anywhere}
@media(max-width:760px){.shell>.sidebar,.shell.collapsed>.sidebar{padding-top:12px}.topbar .brand b{font-size:18px}.topbar .logo{width:32px;height:32px}.workbench-tabs{gap:20px}}
/* R8: one saved workbench profile contains AI and naming rules. */
.profile-rule-section{padding:18px;border:1px solid #dbe8df;border-radius:8px;background:#f8fbf9;margin:18px 0 24px}.profile-rule-section .between h3{margin:0}.profile-rule-section .rule-example{background:#fff}.config-item-actions{display:flex;align-items:center;gap:6px;flex:none}.config-item-actions .icon{width:25px;height:25px;border:0;background:none;padding:5px}.config-item>div:first-child{min-width:0;overflow-wrap:anywhere}.config-delete-footer{margin-right:auto}.config-item input[type=radio]{flex:none}
.profile-rule-section .two{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.profile-rule-section{padding:16px;margin:16px 0 21px}.profile-rule-section p{font-size:11px;line-height:1.6;margin:9px 0 13px}.profile-rule-section .rule-example{padding:9px 12px}.profile-rule-section .rule-example small{display:inline}.profile-rule-section .rule-example b{display:inline-block;margin:0 0 0 14px;font-size:14px}.profile-rule-section>small{display:block;margin-top:8px}
@media(max-width:760px){.profile-rule-section .two{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-rule-section .between{align-items:flex-start;flex-direction:column}.profile-rule-section .rule-example b{display:block;margin:4px 0 0}}
.sku-rule-options{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:18px 0 16px;padding-top:16px;border-top:1px solid var(--line)}.sku-rule-format{min-width:0;margin:0;padding:0;border:0}.sku-rule-format legend{padding:0;margin-bottom:10px;font-size:12px;font-weight:500}.sku-rule-format .checks{gap:18px;min-height:20px;margin:0}.sku-rule-format .checks label{display:inline-flex;align-items:center;gap:7px;font-size:12px}.sku-rule-options input[type=checkbox]{margin:0}.sku-rule-options small{display:block;margin-top:8px;line-height:1.6}.sku-rule-overwrite{padding-left:24px;border-left:1px solid var(--line);min-width:0}.sku-rule-overwrite>label{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:20px;font-size:12px;font-weight:500;cursor:pointer}.sku-rule-overwrite .sku-rule-switch{appearance:none;position:relative;width:32px;height:18px;flex:none;padding:0;border:1px solid #bccbc1;border-radius:10px;background:#cbd5ce;cursor:pointer;transition:background .15s,border-color .15s}.sku-rule-switch:before{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;transition:transform .15s}.sku-rule-overwrite .sku-rule-switch:checked{background:var(--green);border-color:var(--green)}.sku-rule-switch:checked:before{transform:translateX(14px)}.sku-rule-switch:focus-visible{outline:2px solid #79a78a;outline-offset:3px}.profile-rule-section .rule-example{margin-top:0}
@media(max-width:760px){.sku-rule-options{grid-template-columns:1fr;gap:14px;margin-top:16px;padding-top:14px}.sku-rule-overwrite{padding:14px 0 0;border-left:0;border-top:1px solid var(--line)}.sku-rule-format .checks{gap:20px}.sku-rule-overwrite>label{min-height:24px}.sku-rule-options small{margin-top:6px}}
/* R9: narrow icon rail and fuller online product rows. */
.shell.collapsed{grid-template-columns:68px minmax(0,1fr)}.shell.collapsed>.sidebar{padding-left:10px;padding-right:10px}.shell>.topbar{padding-left:18px}.shell>.sidebar{padding-left:11px;padding-right:11px}.online-panel{margin-top:20px}.online-task-status{margin-top:15px}.online-task-status>small{display:block;margin-bottom:6px}.online-table{min-width:1167px;table-layout:fixed}.online-table th,.online-table td{padding:15px 12px}.online-table th{white-space:nowrap}.online-table td{line-height:1.65}.online-table th:last-child,.online-table td:last-child{position:sticky;right:0;z-index:1;background:#fff;box-shadow:-5px 0 8px #24453005}.online-table th:last-child{background:#f7faf8;z-index:2}.online-thumb{width:78px;height:78px;display:block;background:#f8fbf9;border:1px solid var(--line);border-radius:8px;overflow:hidden;padding:0;margin-bottom:8px}.online-thumb img{width:100%;height:100%;object-fit:contain}.online-product-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:600;line-height:1.7}.online-meta{margin-top:10px;overflow-wrap:anywhere}.online-meta:first-child{margin-top:0}.online-meta>span{font-size:10px;color:var(--muted);display:block;margin-bottom:3px}.online-meta>small{display:block;font-size:10px}.online-meta strong{font-size:12px;font-weight:500}.online-id{font-size:11px;word-break:break-all;user-select:text}.online-footnote{font-size:10px;color:var(--muted);line-height:1.8;padding:11px 18px;border-top:1px solid var(--line);background:#fbfcfb}.online-pagination{border-top:1px solid var(--line)}.online-detail-fields{margin:16px 0}.online-detail-fields>div{display:grid;grid-template-columns:135px minmax(0,1fr);gap:14px;border-bottom:1px solid #e6ece8;padding:10px 0}.online-detail-fields dt{font-size:11px;color:var(--muted)}.online-detail-fields dd{margin:0;font-size:12px;overflow-wrap:anywhere}
@media(max-width:760px){.shell,.shell.collapsed{grid-template-columns:68px minmax(0,1fr)}.shell>.sidebar,.shell.collapsed>.sidebar{padding-left:10px;padding-right:10px}.shell>.topbar{padding-left:18px}.online-detail-fields>div{grid-template-columns:100px minmax(0,1fr)}}
.online-table-wrap{max-height:none;overflow-x:auto}.online-table th{position:static}.online-table th:last-child{position:sticky;top:auto;z-index:2}
.online-meta>.badge{display:inline-flex;width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* R10: document scrolling and shared fixed pagination. */
.shell{--navigation-width:216px}.shell.collapsed{--navigation-width:68px}
.content.has-fixed-pagination{padding-bottom:calc(30px + var(--pagination-height,88px))}
.fixed-pagination{position:fixed;left:var(--navigation-width);right:0;bottom:0;z-index:25;min-height:68px;padding:12px 24px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #d9e4dc;background:#fff;box-shadow:0 -4px 18px #23472f08;gap:12px 20px}
.fixed-pagination:empty{display:none}.pagination-summary,.pagination-selection{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.pagination-summary{gap:14px 18px}.pagination-selection .btn{min-height:30px;padding:5px 10px}.selection-total{font-size:12px;color:var(--muted);white-space:nowrap}.selection-total b{color:var(--green);font-variant-numeric:tabular-nums}.selection-scope{font-size:10px}.fixed-pagination .pager-controls{gap:12px}.online-table-wrap{max-height:none;overflow-x:auto;overflow-y:hidden}.online-table thead th{top:auto}.online-table thead th:not(:last-child){position:static}.online-table thead th:last-child{position:sticky;right:0;top:auto}
@media(max-width:1000px){.shell{--navigation-width:185px}.shell.collapsed{--navigation-width:68px}.fixed-pagination{padding-left:18px;padding-right:18px;gap:10px}.pagination-summary{gap:10px}}
@media(max-width:760px){.shell,.shell.collapsed{--navigation-width:68px}.fixed-pagination{padding-left:12px;padding-right:12px}.fixed-pagination .pager-controls{gap:9px;justify-content:flex-start}.pagination-selection{gap:8px}.selection-scope{display:none}.content.has-fixed-pagination{padding-bottom:calc(20px + var(--pagination-height,150px))}}

/* R11: paired selection controls with a compact selected/total count. */
.pagination-selection{gap:12px}.selection-segments{display:inline-flex;flex:none;border:1px solid #d5dfd8;border-radius:5px;overflow:hidden;background:#fff}.pagination-selection .selection-segments .btn{border:0;border-radius:0;min-height:32px;min-width:52px;padding:6px 12px;background:#fff;color:#4a5d54;font-weight:600;font-size:13px}.selection-segments .btn+.btn{border-left:1px solid #d5dfd8}.selection-segments .btn:hover{background:#f3f8f5}.selection-segments .btn[aria-pressed=true]{background:var(--soft);color:var(--green)}.selection-segments .btn:focus-visible{outline-offset:-3px}.selection-total{display:inline-flex;align-items:baseline;gap:3px;color:#4f6158;font-size:13px;font-variant-numeric:tabular-nums;font-weight:500}.selection-accent{color:var(--green);font-weight:600}.selection-page-range{white-space:nowrap;font-size:10px}
@media(max-width:760px){.pagination-selection{gap:10px}.pagination-selection .selection-segments .btn{min-width:46px;padding:5px 10px;min-height:30px}.pagination-summary{gap:8px 14px}}

/* R12: video information and prompt variable helpers. */
.online-table{min-width:1317px}.online-video-cell{display:flex;flex-direction:column;align-items:flex-start;gap:7px}.online-video-cell>.btn{font-size:11px;min-height:28px;padding:4px 8px}.online-video-cell>small{font-size:10px}.online-video-thumb{position:relative;width:92px;height:64px;padding:0;border:1px solid var(--line);border-radius:6px;background:#f1f6f3;overflow:hidden}.online-video-thumb img{width:100%;height:100%;object-fit:contain}.online-video-thumb svg{position:absolute;left:36px;top:22px;background:#ffffffda;border-radius:50%;padding:2px;width:21px;height:21px}.online-video-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-top:20px}.online-video-editor>section{min-width:0}.online-video-editor .field{margin-top:15px}.online-video-context{margin-top:0;overflow-wrap:anywhere}.online-video-context small{display:block}.online-current-video video,.online-candidate-video{display:block;width:100%;max-height:260px;object-fit:contain;background:#14251c;border-radius:7px;margin-top:14px}.online-video-progress{margin-top:18px}.task-prompt{min-height:160px}.prompt-actions{display:flex;justify-content:flex-end;margin-top:6px}.prompt-actions .btn{font-size:11px;min-height:28px;padding:4px 8px}.prompt-help{font-size:11px;line-height:1.8;color:var(--muted);margin-top:8px}.prompt-help summary{color:var(--green);cursor:pointer}.prompt-help p{margin:8px 0}.prompt-help>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.prompt-token{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:1px solid #dfe8e2;background:#f7faf8;border-radius:5px;padding:6px 8px;text-align:left;min-width:0}.prompt-token code{color:var(--green);font-size:11px}.prompt-token span{font-size:10px;color:var(--muted)}.prompt-token:hover{border-color:#8eb79e;background:#eff7f2}
@media(max-width:760px){.online-video-editor{grid-template-columns:minmax(0,1fr)}.prompt-help>div{grid-template-columns:minmax(0,1fr)}}

/* R13: separated progress metadata and readable failure actions. */
.progress{min-width:0;width:100%;max-width:100%;padding:8px;border-radius:7px;overflow:hidden}.progress-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#498361;line-height:1.5}.progress-heading>span:first-child{min-width:0}.progress-heading>span:last-child{flex:none;white-space:nowrap;font-variant-numeric:tabular-nums}.progress.failed .progress-heading,.progress.unknown .progress-heading{color:#b95647}.progress-count,.progress-page{font-size:10px;line-height:1.6;color:var(--muted);font-variant-numeric:tabular-nums}.progress-error{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;word-break:normal;margin:6px 0 0;font-size:11px;line-height:1.6;color:#a55a50}.progress-actions{display:flex;flex-wrap:wrap;gap:3px 10px;align-items:center;margin-top:6px}.progress-actions:empty{display:none}.progress-actions .link{display:inline-flex;flex:none;white-space:nowrap;line-height:1.5;font-size:10px;padding:2px 0}.task-error-full{white-space:pre-wrap;overflow-wrap:anywhere}.product-table .col-progress{width:152px}.category-pricing{padding:16px;border:1px solid #dce8df;border-radius:8px;background:#f7fbf8;margin:20px 0}.category-pricing h3{margin-bottom:13px}.category-pricing p{margin:12px 0 0}

.progress.queued:has(.progress-wait){border-color:#ead6a2;background:#fffbef}.progress-wait{font-size:12px;line-height:1.6;color:#946b22;margin:6px 0 0;overflow-wrap:anywhere}

.sku-table .new-sku-row td{background:#fffbef}.sku-summary small{display:inline-block;line-height:1.6;max-width:650px}
/* R19: ordered columns and category selection */
.column-sort-list{display:flex;flex-direction:column;gap:6px;margin:16px 0;max-height:58vh;overflow:auto;padding:2px}
.column-sort-row{display:flex;align-items:center;gap:10px;border:1px solid var(--border,#dce5e0);border-radius:9px;background:#fff;padding:7px 10px;min-height:45px}.column-sort-row label{display:flex;align-items:center;gap:10px;flex:1;min-width:0;cursor:pointer}.column-sort-row small{font-size:11px;white-space:nowrap;color:#84938c}.column-sort-row.dragging{opacity:.45}.column-drag-handle{cursor:grab;display:flex;color:#87988f;touch-action:none;padding:6px}.column-drag-handle svg{width:17px;height:17px}.column-move-buttons{display:flex;gap:4px}.column-move-buttons .icon{width:27px;height:27px}.column-move-buttons svg{transform:rotate(90deg);width:14px;height:14px}.detail-currency-field>span:first-child{display:flex;align-items:center;min-height:34px}.detail-category-heading{gap:8px}.detail-category-heading>label{white-space:nowrap}.detail-category-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto}.detail-category-actions>.category-sync-entry{margin-top:0;white-space:nowrap}.detail-category-actions>.btn{flex:none}.category-sync-entry{display:flex!important;align-items:center;gap:5px;margin-top:5px;font-size:12px}.category-sync-entry svg{width:14px;height:14px}.category-picker{border:1px solid #dce5e0;border-radius:12px;padding:16px;margin:18px 0}.category-picker>.between{gap:16px;align-items:flex-start;flex-wrap:wrap}.category-picker input{width:100%;margin:12px 0 8px}#category-tree-status{font-size:12px;line-height:1.6}.category-options{max-height:270px;overflow:auto;margin-top:9px}.category-option{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:0;border-bottom:1px solid #edf1ee;padding:10px 8px;color:inherit;cursor:pointer}.category-option>span{flex:1;min-width:0;overflow-wrap:anywhere}.category-option small{color:#84938c}.category-option svg{width:16px;height:16px;opacity:0}.category-option:hover,.category-option.selected{background:#edf6f0}.category-option.selected svg{opacity:1;color:#267553}.category-comparison{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:16px 0}.category-comparison>div{border:1px solid #dce5e0;border-radius:10px;padding:16px}.category-comparison p{margin:8px 0;font-weight:600}

.push-shop-section{border:1px solid #dce5e0;border-radius:12px;padding:16px;margin-top:16px}
.push-shop-section p{margin:8px 0 12px}

.brand-home{color:inherit}
.sku-summary{flex-wrap:wrap}
.sku-summary-actions{margin-left:auto}
#sale-price-toolbar:empty{display:none}
#sale-currency-mode{height:34px;padding:6px 8px;font-size:12px}
.sku-table .head-label>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-measurements h3{margin:0}
.measurement-targets,.auto-main-sku{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;margin-top:14px}
.auto-main-sku{padding-top:12px;border-top:1px solid var(--line)}
.auto-main-sku label{font-size:12px}
.sale-price-secondary{display:block;margin-top:4px;color:var(--muted);white-space:nowrap}

.list-media-cell{display:grid;justify-items:start;gap:7px}
.list-media-cell .list-thumbnail{width:36px;height:36px}
.list-media-cell .list-thumbnail:hover,.list-media-cell .list-thumbnail:focus-visible{border-color:#7dac92}
.list-media-caption{display:flex;align-items:center;gap:5px;white-space:nowrap}
.list-media-caption .badge{padding:2px 4px}
.list-media-caption .link{padding:2px 0;font-size:10px}
.media-progress{border:0;border-radius:4px;background:#f0f3f1;color:#52675a;padding:3px 5px;font-size:10px;line-height:1.6;white-space:nowrap;font-variant-numeric:tabular-nums}
.media-progress strong{font-weight:700;color:var(--ink)}
.media-progress span{color:#667a6d}
.media-progress.complete{background:#e6f3e9;color:#34764c}
.media-progress.complete strong{color:inherit}
.media-progress:hover{text-decoration:underline;text-underline-offset:2px}

.modal.workflow-config-modal{display:flex;flex-direction:column;height:min(90dvh,760px);overflow:hidden}
.workflow-config-modal>.modal-head,.workflow-config-modal>.modal-foot{position:static;flex:none}
.workflow-config-modal>.modal-head{margin-bottom:14px}
.workflow-config-modal>.modal-foot{margin-top:10px}
.workflow-config-layout{flex:1;min-height:0;grid-template-columns:205px minmax(0,1fr);gap:20px}
.workflow-config-layout>.config-list{position:static;align-self:stretch;min-height:0;max-height:none;padding-right:14px}
.workflow-config-layout>.config-list h3{margin:0 0 10px}
.config-list-note{margin:8px 0 0}
.workflow-editor{display:flex;flex-direction:column;min-width:0;min-height:0}
.workflow-editor-name,.workflow-tabs{flex:none}
.workflow-editor-name .field{margin-bottom:10px}
.workflow-tabs{display:flex;gap:4px;padding:4px;background:#f2f6f3;border:1px solid var(--line);border-radius:8px}
.workflow-tab{color:inherit;font-size:13px;display:flex;align-items:center;justify-content:center;gap:6px;flex:1;padding:8px 6px;border:1px solid transparent;border-radius:5px;background:transparent;font-weight:600;white-space:nowrap}
.workflow-tab svg{width:15px;height:15px}
.workflow-tab:hover{background:#fff8}
.workflow-tab[aria-selected="true"]{background:#fff;border-color:#d9e6dd;color:var(--green);box-shadow:0 1px 2px #25473312}
.workflow-panels{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;margin-top:12px;padding:2px 8px 8px 2px}
.workflow-panel[hidden]{display:none}
.workflow-panel>.auto-config,.workflow-panel>.profile-rule-section{margin-top:0}
.workflow-panel .settings-tab-intro{margin:0 0 9px}
.category-defaults-panel,.settings-ai-task{border:1px solid var(--line);border-radius:7px;background:#fff}
.category-defaults-panel summary{padding:10px 12px;cursor:pointer;font-weight:600}
.category-defaults-panel textarea{display:block;width:calc(100% - 24px);margin:0 12px 12px}
.settings-ai-tasks{display:grid;gap:6px}
.settings-ai-task>summary{display:flex;align-items:center;gap:8px;min-height:36px;padding:7px 11px;cursor:pointer;list-style:none}
.settings-ai-task>summary::-webkit-details-marker{display:none}
.settings-ai-task>summary:hover,.settings-ai-task[open]>summary{background:#f5f9f6;border-radius:7px}
.settings-ai-task>summary>svg{width:14px;height:14px;color:var(--muted)}
.settings-ai-task[open]>summary>svg{transform:rotate(180deg)}
.settings-ai-meta{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;min-width:0}
.settings-ai-meta small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-ai-meta small:empty{display:none}
.settings-ai-body{display:grid;gap:10px;padding:10px 12px 12px;border-top:1px solid var(--line)}
.settings-ai-body .field{margin:0}
.settings-ai-body .range .checks{margin:7px 0}
.settings-ai-body .task-prompt{min-height:110px}
@media(max-width:760px){
    .modal.workflow-config-modal{height:92dvh;max-height:92dvh;padding:14px}
    .workflow-config-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:10px}
    .workflow-config-layout>.config-list{max-height:120px;padding:0 0 8px}
    .workflow-tab svg{display:none}
    .workflow-panels{padding-right:4px}
}
.workflow-panel .category-pricing{margin-top:16px}
.workflow-panel .category-pricing h3{margin:0 0 10px}
.workflow-panel .auto-config h3{margin:0}
.auto-group{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.auto-group h4{margin:0;font-size:12px}
.auto-group .auto-grid{margin:8px 0 0;gap:8px 12px}
.auto-group>small{display:block;margin-top:5px}

.talent-editor h3{margin:14px 0 4px}
.talent-editor h3 small{margin-left:5px;font-weight:500}
.talent-editor p{margin:0 0 10px}
.talent-reference-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:12px}
.talent-reference-grid:empty{display:none}
.talent-reference-card{position:relative;aspect-ratio:1;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#f6faf7}
.talent-reference-card img{display:block;width:100%;height:100%;object-fit:contain}
.talent-reference-card .icon{position:absolute;top:5px;right:5px;width:25px;height:25px;background:#fff}
.talent-prompt-fields{display:grid;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#f6faf7}
@media(max-width:560px){.talent-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.detail-task-progress{padding:6px 28px;background:#fff}
.detail-task-progress:empty{display:none}
.detail-task-progress .progress{margin:0}
.progress.paused{background:#fff8e9;border-color:#e9d9ad}
.progress.paused .track i{background:#a57729}
@media(max-width:760px){.detail-task-progress{padding:6px 16px}}

.settings-config-row{gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.settings-config-info{min-width:0}
.settings-config-info small{display:block}
.settings-config-name{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;overflow-wrap:anywhere}
.settings-config-row>.actions{flex:none}
.image-worker-settings .settings-config-row:last-child{border-bottom:0}
@media(max-width:560px){.image-worker-settings .settings-config-row{align-items:flex-start;flex-direction:column}}
.storage-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.storage-config-group{min-width:0;padding:14px;border:1px solid var(--line);border-radius:8px}
.storage-config-group .settings-config-row:last-child{border-bottom:0;padding-bottom:2px}
.storage-config-group>p{margin-bottom:0}
@media(max-width:760px){.storage-config-grid{grid-template-columns:minmax(0,1fr);gap:12px}}
.image-output-settings{padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#f6faf7}
.image-output-settings small{display:block;margin-top:6px}
.storage-config-heading{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.storage-config-heading h3{display:flex;align-items:center;gap:7px;margin:0;font-size:14px}

.nav:where(a){color:inherit}
.object-storage-test-status{margin-top:10px;overflow-wrap:anywhere}
.object-storage-test-status:empty{display:none}
.object-storage-test-status.success{color:var(--green)}

.ai-task-detail-title{margin:0 0 9px}
.ai-task-detail-list{display:grid;gap:8px;padding:0;margin:0 0 16px;list-style:none}
.ai-task-detail-list>li{padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#f7faf8;overflow-wrap:anywhere}
.ai-task-detail-heading,.ai-task-detail-model{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.ai-task-detail-model{margin-top:5px;font-size:12px}
.ai-task-detail-list>li>small{display:block;margin-top:4px}.ai-task-detail-model>span{color:var(--muted)}
.ai-task-detail-model>code{max-width:100%;font-size:11px}
.task-raw-record>summary{cursor:pointer;color:var(--green)}
.connection-test-panel{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.connection-test-controls{display:flex;gap:10px;align-items:flex-end;margin-bottom:8px}
.connection-test-controls .field{min-width:140px}
.connection-test-status:not(:empty){margin-top:10px;padding:10px 12px;border-radius:6px;background:#f6f9f7;overflow-wrap:anywhere;white-space:pre-wrap}
.connection-test-status p{margin:6px 0;line-height:1.5}
.connection-test-status>small{display:block;margin-top:5px;white-space:normal}

/* Compact task rows keep the status and actions next to the task identity. */
.heading.task-page-heading{margin-bottom:14px}
.task-page-tabs{margin-bottom:12px}
.shell>.sidebar:has(>.sidebar-bottom-links){overflow-y:auto}
.sidebar-bottom-links{display:flex;flex:none;gap:4px;width:100%;margin-top:auto;padding-top:8px;border-top:1px solid var(--line)}
.shell .sidebar .sidebar-bottom-links>.nav{flex:1;min-width:0;min-height:42px;padding:7px;gap:6px;justify-content:center}
@media(min-width:761px){
    .shell.collapsed .sidebar-bottom-links{flex-direction:column;align-items:center}
}
.task-filters{gap:6px;margin:0 0 12px;flex-wrap:wrap}
.task-filters a[aria-current]{font-weight:650;border-color:#96bba3}
.task-card-list{gap:6px;align-items:stretch}
.task-card{display:grid;grid-template-columns:minmax(135px,.8fr) minmax(150px,1.15fr) minmax(0,auto);align-items:center;gap:8px 18px;padding:9px 14px}
.task-card-identity{min-width:0;display:grid;gap:3px;overflow-wrap:anywhere}
.task-card-identity small{font-size:10px}
.task-card .progress-compact{margin:0;padding:0;border:0;border-radius:0;background:transparent}
.progress-compact .progress-heading{color:var(--muted)}
.progress-compact .track{height:3px;margin:4px 0 0}
.progress-compact .progress-error{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}
.progress-compact .progress-actions{margin-top:3px}
.progress-compact .progress-wait{font-size:10px;margin-top:3px}
.progress-compact .progress-page{margin-top:3px}
.task-card-actions{justify-content:flex-end;gap:6px}
.task-card-actions .btn{min-height:30px;padding:4px 9px;font-size:11px}
.mobile-nav-backdrop,.btn.mobile-bulk-toggle,.mobile-page-position{display:none}

@media(max-width:1000px){
    .task-card{grid-template-columns:minmax(110px,.8fr) minmax(120px,1fr) minmax(0,auto);gap:6px 10px}
}

@media(max-width:760px){
    .shell,.shell.collapsed{--navigation-width:0px;grid-template-columns:minmax(0,1fr)}
    .shell>main{grid-column:1}
    .shell>.topbar{padding:0 12px;gap:10px}
    .shell>.topbar>.icon{width:40px;height:40px}
    .topbar .brand small{display:none}
    .topbar .header-logout{min-height:34px;padding:5px 8px;font-size:11px}
    .shell>.sidebar,.shell.collapsed>.sidebar{display:none;position:fixed;inset:52px auto 0 0;width:min(244px,82vw);height:auto;padding:10px 12px;z-index:31;overflow:auto;align-items:stretch;box-shadow:8px 0 28px #18352522}
    .shell.mobile-nav-open>.sidebar{display:flex}
    .shell.mobile-nav-open .nav{width:100%;height:44px;padding:10px 12px;justify-content:flex-start}
    .shell.mobile-nav-open .nav span{display:inline}
    .shell.mobile-nav-open .nav-title{display:block}
    .mobile-nav-open>.mobile-nav-backdrop{display:block;position:fixed;inset:52px 0 0;z-index:28;background:#16332650}
    body:has(.shell.mobile-nav-open){overflow:hidden}

    .content{padding:14px 12px 20px}
    .heading{gap:9px;margin-bottom:14px}
    .heading h1{font-size:23px}
    .heading .overline{font-size:9px;letter-spacing:.1em;margin-bottom:3px}
    .heading .subtitle{font-size:11px;line-height:1.5;margin:3px 0 0}
    .heading>.actions{gap:5px}
    .heading>.actions>.btn{min-height:36px;padding:6px 8px;font-size:11px}
    .product-list-heading>.actions{flex-wrap:nowrap;overflow:auto;max-width:100%;width:100%;padding:2px;scrollbar-width:thin}
    .product-list-heading [data-act=import]{order:-2}
    .product-list-heading [data-act=sync-common]{order:-1}
    .product-list-notice{display:none}
    .content>.tabs,.product-list-panel .toolbar>.tabs{flex-wrap:nowrap;overflow-x:auto;gap:14px;scrollbar-width:thin;max-width:100%}
    .content>.tabs>.tab,.product-list-panel .toolbar .tab{flex:none;white-space:nowrap;padding-block:8px;min-height:36px}
    .product-list-panel .toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:5px 10px 9px}
    .product-list-panel .toolbar>.actions{display:flex;flex-wrap:nowrap;gap:5px;min-width:0}
    .product-list-panel .toolbar>.actions>.btn{min-height:36px;padding:5px 7px;font-size:11px}
    .product-list-panel #search{order:-1;min-width:0;width:auto;flex:1;min-height:36px;padding:6px 8px;font-size:16px}
    .product-list-panel .bulk{padding:5px 10px;gap:5px}
    .product-list-panel #selected-count{font-size:11px}
    .bulk>.mobile-bulk-toggle{display:inline-flex;min-height:36px;padding:5px 9px;font-size:11px}
    .product-list-panel .bulk>.actions{display:none}
    .product-list-panel .bulk.is-open>.actions{display:flex;width:100%;gap:5px;padding:4px 0}
    .product-list-panel .bulk>.actions .btn{min-height:36px;padding:5px 8px;font-size:11px}

    .mobile-product-card{padding:10px;border-bottom:1px solid var(--line)}
    .mobile-product-card:last-child{border-bottom:0}
    .mobile-product-top{display:flex;align-items:flex-start;gap:8px}
    .mobile-product-check{display:grid;place-items:center;flex:0 0 30px;min-height:42px;cursor:pointer}
    .mobile-product-check input{width:16px;height:16px;margin:0}
    .mobile-product-thumb{display:grid;gap:3px;justify-items:center;flex:0 0 56px;min-width:0;text-align:center}
    .mobile-product-image{padding:0;border:0;background:none;border-radius:7px}
    .mobile-product-thumb .product-thumb{width:56px;height:56px}
    .mobile-product-thumb .source-link{max-width:100%;overflow-wrap:anywhere}
    .mobile-product-info{flex:1;min-width:0;overflow-wrap:anywhere}
    .mobile-product-info .title{line-height:1.4;margin:0}
    .mobile-product-info>small{margin-top:4px!important;line-height:1.4}
    .mobile-product-info .stack{flex-direction:row;flex-wrap:wrap;gap:4px;margin-top:4px}
    .mobile-product-actions{margin:5px 0 0 38px}
    .mobile-product-actions .row-actions{flex-direction:row;flex-wrap:wrap;align-items:center;gap:7px;width:auto}
    .mobile-product-actions .row-actions .edit-btn{width:auto;min-height:36px}
    .mobile-product-actions .action-tail{width:auto;gap:5px}
    .mobile-product-actions .action-tail>.link,.mobile-product-actions .more{min-height:34px}
    .mobile-product-more{margin-left:38px}
    .mobile-product-more>summary{cursor:pointer;color:var(--muted);font-size:11px;padding:7px 0}
    .mobile-product-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:4px}
    .mobile-product-fields>div{padding:7px;background:#f6faf7;border-radius:5px;min-width:0;overflow-wrap:anywhere}
    .mobile-product-fields>div>b{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}
    .mobile-product-fields>div>p{margin:0}
    .mobile-product-fields>div:has(.progress){grid-column:1/-1}

    .fixed-pagination{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 7px;padding:5px 10px calc(5px + env(safe-area-inset-bottom));min-height:0}
    .fixed-pagination .pagination-summary{grid-column:1;grid-row:1;gap:4px;font-size:11px}
    .fixed-pagination .pagination-summary>small,.fixed-pagination .selection-page-range,.fixed-pagination .selection-scope{display:none}
    .fixed-pagination .pagination-selection{gap:5px}
    .fixed-pagination .selection-segments .btn{min-width:34px;min-height:34px;padding:4px;font-size:11px}
    .fixed-pagination .selection-total{font-size:11px}
    .fixed-pagination .pager-controls{display:contents}
    .fixed-pagination .pager-controls select{grid-row:1;grid-column:2;height:34px;max-width:106px;padding:4px 6px;font-size:11px;justify-self:end}
    .fixed-pagination .page-numbers{grid-row:2;grid-column:1}
    .fixed-pagination .page-number,.fixed-pagination .page-ellipsis{display:none}
    .fixed-pagination .page-arrow{min-height:36px;min-width:34px}
    .mobile-page-position{display:inline-block;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
    .fixed-pagination .page-jump{grid-row:2;grid-column:2;gap:4px}
    .fixed-pagination .page-jump input{width:44px;height:34px;font-size:12px}
    .fixed-pagination .page-jump .btn{min-height:34px;font-size:11px}
    .content.has-fixed-pagination{padding-bottom:calc(14px + var(--pagination-height,85px))}

    .heading.task-page-heading{margin-bottom:9px}
    .task-page-tabs{margin-bottom:8px}
    .task-card{grid-template-columns:minmax(110px,.9fr) minmax(0,1fr);padding:7px 9px;gap:4px 8px}
    .task-card-actions{grid-column:1/-1;justify-content:flex-end}
    .task-card-actions .btn,.progress-compact .progress-actions .link{min-height:34px;align-items:center}
    .task-card-identity{align-self:start}
    .task-card-identity small{line-height:1.35}

    .drawer{height:100dvh}
    .drawer-head,.drawer-foot{padding:9px 12px}
    .drawer-head h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;line-height:1.35}
    .drawer-head .icon{width:36px;height:36px;flex:none}
    .section-nav,.detail-tabs{padding-inline:10px;overflow-x:auto;white-space:nowrap}
    .drawer-body .section{padding:12px}
    .drawer-foot .btn{min-height:36px;padding:5px 8px}
    .modal-backdrop>.modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:14px}
    .modal-head{top:-14px;padding:6px 0}
    .modal-foot{bottom:-14px;padding:8px 0 0}
    #hover-preview{display:none}

    .online-table,.online-table tbody{display:block;min-width:0;width:100%}
    .online-table colgroup,.online-table thead{display:none}
    .online-table tbody tr{display:grid;grid-template-columns:minmax(56px,auto) repeat(2,minmax(0,1fr));gap:7px 10px;padding:10px;border-bottom:1px solid var(--line)}
    .online-table tbody tr:last-child{border-bottom:0}
    .online-table tbody td{display:block;min-width:0;padding:0;border:0;background:none;line-height:1.35}
    .online-table tbody td:last-child{position:static;box-shadow:none;background:none}
    .online-table tbody td:nth-child(2){grid-column:2/-1}
    .online-table tbody td:nth-child(3){grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
    .online-table tbody td:nth-child(4){grid-column:1}
    .online-table tbody td:nth-child(7){grid-column:1/3}
    .online-table tbody td:nth-child(8){grid-column:3;text-align:right}
    .online-table tbody td.empty{grid-column:1/-1;padding:12px}
    .online-thumb{width:54px;height:54px;margin-bottom:3px}
    .online-table .online-meta{margin-top:4px}
    .online-table .online-meta:first-child{margin-top:0}
    .online-table .online-meta>span{margin-bottom:1px}
    .online-table .online-video-cell{flex-flow:row wrap;align-items:center;gap:5px}
    .online-table .online-video-thumb{width:65px;height:42px}
    .online-table .online-video-thumb svg{left:22px;top:10px}
}

@media(max-width:360px){
    .content{padding-inline:8px}
    .product-list-panel .toolbar{padding-inline:7px}
    .drawer-foot{flex-wrap:wrap;gap:5px}
    .fixed-pagination .page-jump>label{display:none}
}

/* Image workspace and shared media card controls. */
.media-restore-overlay{position:absolute;bottom:9px;right:8px;z-index:5;display:flex;align-items:center;gap:4px;padding:5px 7px;border:1px solid #d6e0d9;border-radius:5px;background:#fffffff0;font-size:10px;opacity:0;pointer-events:none;transition:opacity .15s}
.media-restore-overlay svg{width:14px;height:14px}.media-frame:hover .media-restore-overlay,.media-frame:focus-within .media-restore-overlay{opacity:1;pointer-events:auto}
.media-restore-overlay{position:static;max-width:100%;flex:none}
.media-frame:has(.media-restore-overlay) .media-frame-labels{max-width:100%}
.media-hover-labels{display:flex;flex-direction:row;align-items:center;gap:4px;width:100%}
.media-editor-credit{display:flex;align-items:center;justify-content:center;gap:4px;padding:3px 6px;background:#f2f5fa;color:#596d8a;font-size:10px;line-height:16px;border-top:1px solid #e8edf4}
.media-editor-credit svg{width:11px;height:11px}
.media-frame:hover .media-restore-overlay,.media-frame:focus-within .media-restore-overlay{opacity:1;pointer-events:auto}
.image-editor-settings{margin-top:20px}.editor-provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.editor-provider-card{padding:18px;border:1px solid var(--line);border-radius:8px}.editor-provider-card.active{border-color:#8db99d;background:#f0f7f2}.editor-provider-card p{margin-bottom:0}.editor-config-layout{display:block!important;max-width:760px;width:100%}.editor-config-layout section{min-width:0}
.image-editor-backdrop{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:16px;background:#18392cd0}.image-editor-window{position:relative;display:flex;flex-direction:column;width:min(1600px,100%);height:calc(100dvh - 32px);background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;box-shadow:0 20px 80px #132e2940}.image-editor-window>header,.image-editor-window>footer{display:flex;align-items:center;gap:16px;padding:12px 18px;flex-shrink:0}.image-editor-window>header{justify-content:space-between;border-bottom:1px solid var(--line)}.image-editor-window>footer{border-top:1px solid var(--line)}.image-editor-status{padding:7px 18px;background:#f3f7f4;font-size:12px;flex-shrink:0;min-height:30px}.image-editor-confirm{position:absolute;inset:0;z-index:2;background:#1b382a88;display:grid;place-items:center;padding:20px}.image-editor-confirm[hidden]{display:none}.image-editor-confirm>div{padding:24px;background:white;border-radius:10px;max-width:460px;box-shadow:0 10px 40px #0002}.image-editor-confirm .actions{justify-content:flex-end;margin-top:20px}
@media(max-width:760px){.editor-provider-grid{grid-template-columns:1fr}.image-editor-backdrop{padding:0}.image-editor-window{height:100dvh;border-radius:0;border:0}.image-editor-window>header,.image-editor-window>footer{padding:10px;gap:8px}.image-editor-window>footer>small{display:none}.media-restore-overlay{opacity:1;pointer-events:auto;font-size:9px;padding:4px}.media-restore-overlay span{display:none}.media-frame:has(.media-restore-overlay) .media-frame-labels{max-width:100%}.media-recovery-controls .watermark-restore{opacity:1;pointer-events:auto;font-size:9px;padding:4px}}@media(max-width:760px){.image-editor-window>footer{flex-wrap:wrap}.image-editor-window>footer .spacer{display:none}.image-editor-window>footer>.btn{flex:1}}
.image-editor-window [hidden]{display:none!important}
@media(max-width:760px){.image-editor-window>footer>.btn{font-size:11px;padding-inline:8px;flex:1 0 auto}}
/* Media library, independent backups and ordered automation. */
.media-library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:18px}
.media-library-bulk{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 18px;border-block:1px solid var(--line);background:#f7faf8}
.media-library-card{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff;min-width:0}
.mm-image{position:relative;aspect-ratio:1;background:#f7f9f8}.mm-image>button{width:100%;height:100%;border:0;background:none;padding:8px}.mm-image img,.mm-image video{width:100%;height:100%;object-fit:contain}.mm-check{position:absolute;left:8px;top:8px;border-radius:5px;background:#fff;padding:4px;display:flex}
.mm-info{padding:12px;display:flex;flex-direction:column;gap:6px}.mm-info strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.mm-info .actions{gap:5px}.mm-info .btn{min-height:27px;padding:4px 7px;font-size:11px}.mm-copy-tags{display:flex;gap:4px;flex-wrap:wrap;min-height:20px}
.backup-settings-panel{margin-top:22px}.backup-settings-panel .panel-head{flex-wrap:wrap;gap:10px}.backup-settings-panel .panel-head>div:first-child{margin-right:auto}.backup-plan-card{padding:16px;border:1px solid var(--line);border-radius:8px;margin-bottom:12px}.backup-plan-card .between{flex-wrap:wrap}.backup-counts{display:flex;gap:16px;flex-wrap:wrap;margin-block:10px}.backup-counts .green{color:var(--green)}
.automation-order-list{display:flex;flex-direction:column;gap:7px}.automation-order-row{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line);border-radius:7px;background:#fff}.automation-order-row.selected{background:#f3f8f4;border-color:#bcd6c5}.automation-order-row[draggable=true]{cursor:grab}.automation-order-row label{display:flex;gap:8px;align-items:center;cursor:pointer}.automation-order-number{display:grid;place-items:center;min-width:23px;height:23px;background:#e5eee8;border-radius:5px;font-size:11px}.automation-order-row .icon{flex:none}.automation-order-row .icon svg{transform:rotate(90deg)}
@media(max-width:1200px){.media-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.media-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px}.mm-info{padding:9px}.media-library-bulk{padding:10px;gap:8px}.backup-plan-card{padding:12px}.backup-counts{gap:10px}.backup-plan-card .actions .btn{flex:1}.automation-order-row{padding:7px;gap:5px}.automation-item-copy{gap:3px}.automation-item-copy>span{gap:3px}}

.backup-current{display:block;color:var(--muted);margin-top:6px;line-height:1.7;overflow-wrap:anywhere}.backup-auto-switch{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;border:1px solid var(--line);border-radius:20px;padding:7px 11px;background:#f5f7f6;color:#66716c;font-size:12px;cursor:pointer}.backup-auto-switch>span{position:relative;display:block;width:30px;height:18px;border-radius:10px;background:#aab4ae}.backup-auto-switch>span:after{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:white}.backup-auto-switch.on{background:#e9f3ec;color:#276747;border-color:#b7d6c2}.backup-auto-switch.on>span{background:#337650}.backup-auto-switch.on>span:after{left:15px}.backup-plan-card .notice{margin:12px 0}.backup-plan-card .between{gap:16px;align-items:flex-start}@media(max-width:760px){.backup-plan-card .between{flex-wrap:wrap}.backup-current{font-size:11px}}

.storage-workspace{margin-top:20px}.storage-mode-tabs{display:flex;gap:24px;margin:0 0 18px}.storage-mode-tabs button{display:flex;align-items:center;gap:7px;padding:16px 2px 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font:inherit;cursor:pointer}.storage-mode-tabs svg{width:16px;height:16px}.storage-mode-tabs button.active{border-bottom-color:var(--green);color:var(--green);font-weight:600}.storage-mode-tabs button:focus-visible{outline:2px solid var(--green);outline-offset:3px}.storage-workspace .backup-settings-panel{margin-top:0}.storage-connections .panel-head,.backup-settings-panel .panel-head{padding:18px 20px}.backup-help{font-size:12px;color:var(--muted);margin:0 0 18px}.backup-help summary{cursor:pointer;width:fit-content}.backup-help p{line-height:1.8;margin-bottom:0}.backup-kind-label{display:block;font-size:10px;letter-spacing:.04em;color:var(--muted);margin-bottom:6px}.backup-plan-heading>div{min-width:0;flex:1}.backup-plan-heading strong{display:block;font-size:14px;overflow-wrap:anywhere}.backup-plan-heading{gap:14px}.backup-plan-heading .backup-auto-switch{flex-shrink:0}.backup-rule-schedule{font-size:11px;margin:12px 0}.backup-plan-card .backup-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:12px 16px;background:var(--bg);border-radius:6px;margin:12px 0}.backup-counts>span{display:flex;gap:10px;align-items:baseline}.backup-counts small{font-size:11px;color:var(--muted)}.backup-counts b{font-size:16px;font-weight:600}.backup-purpose-tabs{display:flex;gap:8px;margin-bottom:14px}.backup-rule-more{position:relative;margin-left:auto}.backup-rule-more summary{cursor:pointer;color:var(--muted);font-size:12px;padding:8px}.backup-rule-more[open]>.btn{position:absolute;right:0;top:32px;z-index:3;background:#fff;white-space:nowrap;box-shadow:0 4px 16px #0002}.backup-switch-line{border-top:1px solid var(--line);margin-top:14px;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:16px}.backup-switch-line strong{font-size:12px}.backup-switch-line small{display:block;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.backup-rule-settings{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}#mm-load-error:empty,#mm-plan-error:empty{display:none}#mm-load-error:not(:empty){padding:18px}.media-library-grid[aria-busy=true]{opacity:.75}.media-library-grid .notice{grid-column:1/-1}.backup-auto-switch[aria-busy=true]{opacity:.6;cursor:wait}@media(max-width:1000px){.backup-counts>span{flex-direction:column;gap:3px}}@media(max-width:760px){.storage-mode-tabs{gap:20px}.backup-switch-line{align-items:flex-start;flex-wrap:wrap}.backup-plan-heading>div{flex-basis:100%}.backup-plan-card .backup-counts{gap:8px;padding:10px}.backup-plan-card{padding:12px}.backup-counts small{font-size:10px}}


.storage-config-heading{display:block}.storage-config-heading h3{margin-bottom:8px}.storage-group-default{display:block;line-height:1.7;overflow-wrap:anywhere;color:var(--muted)}.storage-group-default strong{color:var(--ink);font-weight:500}.storage-workspace .storage-mode-tabs button{padding-top:0}.storage-workspace{margin-top:24px}

.storage-config-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.storage-config-heading>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;min-width:0;flex:1}.storage-config-heading h3{margin-bottom:0;white-space:nowrap}.storage-group-default{line-height:1.7;max-width:100%;font-size:11px}.storage-config-heading>.btn{flex-shrink:0;min-height:30px;padding:6px 9px;font-size:11px}#storage-backup-panel{margin-top:20px;scroll-margin-top:80px}.rehost-panel{margin-top:20px}.rehost-panel .panel-head{gap:12px;flex-wrap:wrap}.rehost-panel .panel-head>div{flex:1}.rehost-panel .panel-content>p{line-height:1.8}.rehost-rule{padding:16px;border:1px solid var(--line);border-radius:8px;margin-top:12px}.rehost-rule .between{gap:12px;flex-wrap:wrap}.rehost-rule .between small{display:block;color:var(--muted);margin-top:5px}.rehost-domains{font-family:ui-monospace,monospace;font-size:11px;overflow-wrap:anywhere;margin:12px 0}.rehost-counts{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-bottom:10px}.rehost-rule>.actions{margin-top:12px;flex-wrap:wrap}.rehost-items{max-height:52vh;overflow:auto;overscroll-behavior:contain}.rehost-items article{padding:12px 0;border-bottom:1px solid var(--line)}.rehost-items p{overflow-wrap:anywhere;white-space:normal;font-size:12px}.rehost-items small{color:var(--muted)}@media(max-width:760px){.storage-config-heading>div{flex-basis:100%}.storage-config-heading{gap:8px}.rehost-rule{padding:12px}.rehost-panel .panel-head>div{flex-basis:100%}}

.storage-config-heading>div{flex-wrap:nowrap;align-items:center}.storage-group-default{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.storage-config-heading h3{flex-shrink:0}

.rehost-scan-summary{color:var(--muted);font-size:11px;line-height:1.8;margin-top:6px;overflow-wrap:anywhere}

/* R60: recycle-bin entry precedes storage options; text search requires submission. */
.media-library-toolbar{gap:12px}
.media-library-filters{margin-left:auto;min-width:0;gap:10px;flex-wrap:wrap}
.media-library-search{display:flex;align-items:center;gap:8px;min-width:0}
.media-library-view-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;white-space:nowrap;min-height:34px;padding:7px 10px;font-size:12px;background:#fff;color:var(--ink);border-color:var(--line)}
.media-library-view-button svg,.media-library-search-button svg{width:15px;height:15px}
.media-library-trash-count{font-size:11px;color:var(--muted);margin-left:2px}
.media-library-search>input{width:180px;min-width:0}
.media-library-search-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;min-height:34px;padding:7px 10px;font-size:12px;white-space:nowrap}
@media(max-width:760px){.media-library-toolbar{padding:12px;gap:10px}.media-library-filters{flex-basis:100%;width:100%;margin-left:0;gap:8px}.media-library-filters>select:not([hidden]){flex:1;width:auto;min-width:0}.media-library-search{width:100%;gap:8px}.media-library-search>input{flex:1;width:0}.media-library-filters.is-trash .media-library-search{flex:1;width:0}.media-library-view-button,.media-library-search-button{min-height:38px;padding:7px 10px}.media-library-toolbar>.tabs{gap:20px}.media-library-toolbar>.tabs>.tab{padding:7px 0}}

/* R63 login verification */
.login-captcha-row{display:flex;gap:10px;align-items:stretch}.login-captcha-row input{flex:1;width:0;min-width:90px}.login-captcha-image{padding:0;border:1px solid var(--line);border-radius:6px;background:#eff5f0;width:170px;height:52px;flex:none;overflow:hidden}.login-captcha-image img{display:block;width:100%;height:100%}.login-captcha-image img[hidden]{display:none}.login-card #login-submit{width:100%}.login-card #login-error:empty{display:none}.login-card .field>small{font-size:11px;line-height:1.5}.login-footer-links{display:flex;align-items:center;justify-content:center;gap:6px;padding-top:4px;font-size:12px}@media(max-width:380px){.login-captcha-image{width:145px}.login-captcha-row{gap:8px}}

.login-card .brand>div:not(.logo){display:block}@media(max-width:380px){.login-card{padding:24px}.login-captcha-image{width:132px}}

/* Built-in editor: the preview and controls remain inside the existing media overlay. */
.editor-provider-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.builtin-editor-window{width:min(1160px,100%);max-height:900px}
.builtin-editor-window>header h2{margin:0;font-size:20px}.builtin-editor-window>header small{display:block;margin-top:3px;color:var(--muted)}
.builtin-editor-content{display:grid;grid-template-columns:minmax(0,1fr) 280px;flex:1;min-height:0;overflow:hidden}
.builtin-workspace{display:flex;flex-direction:column;min-width:0;min-height:0;background:#edf1ee;padding:20px;gap:10px}
.builtin-canvas{flex:1;min-height:120px;position:relative;overflow:hidden;border-radius:6px;background:#e3e9e5}
.builtin-canvas cropper-canvas{height:100%;width:100%;--theme-color:#287754}
.builtin-canvas cropper-selection{outline:1px solid #fff;box-shadow:0 0 0 1px #287754}
.builtin-canvas cropper-handle[action$="resize"]{width:14px;height:14px;background:#fff;border:2px solid #287754;border-radius:3px}
.builtin-source-size{text-align:center;font-size:12px;color:#5d7266;margin:0;min-height:18px}
.builtin-settings{overflow:auto;border-left:1px solid var(--line);padding:20px}
.builtin-settings fieldset{border:0;padding:0;margin:0;min-width:0;display:flex;flex-direction:column;gap:16px}
.builtin-settings label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#365448;min-width:0}
.builtin-settings select,.builtin-settings input{width:100%;min-width:0;background:#fff;padding:9px 10px;border:1px solid var(--line);border-radius:5px;min-height:38px;color:var(--ink)}
.builtin-settings :disabled{opacity:.6}
.builtin-dimensions{display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);align-items:end;gap:8px}
.builtin-dimensions>span{align-self:end;margin-bottom:10px;text-align:center;font-size:12px;color:#87998d}
.builtin-size-note{font-size:11px;margin:-10px 0 0;line-height:1.6}
.builtin-preview{display:flex;flex-direction:column;gap:8px;padding-top:14px;border-top:1px solid var(--line)}
.builtin-preview>span{font-size:12px;font-weight:600}.builtin-preview>img{display:block;max-width:100%;width:auto;height:auto;max-height:180px;object-fit:contain;align-self:center;background:repeating-conic-gradient(#e5eae7 0 25%,#fff 0 50%) 50%/14px 14px;border:1px solid var(--line);border-radius:4px}
.builtin-preview img:not([src]){display:none}.builtin-preview>small{text-align:center;font-size:11px;color:#6d8377}
.builtin-help{font-size:11px;line-height:1.8;margin:0}.builtin-editor-window .image-editor-confirm{z-index:10}
@media(max-width:1000px){.editor-provider-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.editor-provider-grid{grid-template-columns:1fr}.builtin-editor-window{max-height:none}.builtin-editor-content{grid-template-columns:1fr;grid-template-rows:minmax(180px,1fr) auto;overflow:auto}.builtin-workspace{padding:12px;gap:6px;min-height:200px}.builtin-settings{border-left:0;border-top:1px solid var(--line);padding:12px;max-height:42dvh;overflow:auto}.builtin-settings fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.builtin-dimensions,.builtin-size-note,.builtin-help{grid-column:1/-1}.builtin-settings .builtin-preview{grid-column:2;grid-row:3/5;border-top:0;padding-top:0}.builtin-preview>img{max-height:100px}.builtin-editor-window>footer{flex-wrap:nowrap}.builtin-editor-window>footer>.btn{flex:0 0 auto}.builtin-editor-window>footer .spacer{display:block}.builtin-editor-window>header h2{font-size:17px}.builtin-editor-window .image-editor-status{padding-inline:12px;font-size:11px}}
.builtin-settings legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:760px){.builtin-settings .builtin-preview{grid-column:1/-1;grid-row:auto;display:grid;grid-template-columns:1fr 80px;align-items:center;border-top:1px solid var(--line);padding-top:12px}.builtin-preview>img{grid-column:2;grid-row:1/3;max-height:80px;max-width:80px}.builtin-preview>small{text-align:left}}

/* Automation item names and fixed workbench rules. */
.automation-order-row>label{flex:1;min-width:0}.automation-item-copy{display:flex;align-items:baseline;gap:4px;min-width:0;flex-wrap:wrap}.automation-item-copy>span{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}.automation-item-copy>small{font-weight:400;font-size:11px;line-height:1.6;color:var(--muted);white-space:nowrap}.automation-rule-tag{display:inline-block;padding:1px 5px;border-radius:4px;background:#edf2ef;color:#63756a;font-size:10px;font-weight:400;line-height:1.5}.automation-order-row>label>input{flex:none}.automation-order-row>.icon{align-self:center}
.ai-task-detail-model[hidden]{display:none}

.workbench-auto-rules .auto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:760px){.workbench-auto-rules .auto-grid{grid-template-columns:1fr}}

.badge.product-split-badge{margin-left:6px;background:#edf2fb;color:#536f9c;vertical-align:middle}.mobile-product-info .product-split-badge{margin-left:0;margin-bottom:5px}.drawer-head .product-split-badge{margin-left:8px}
/* Image set planning shares the existing task editor and gallery controls. */
.image-mode-settings{border-top:1px solid var(--line);padding-top:16px;margin-top:8px}.image-set-plan{display:flex;flex-direction:column;gap:14px;margin:12px 0 18px;padding:18px;border:1px solid #c9dbd1;border-radius:12px;background:#f5f9f6}.image-set-plan[hidden],.image-set-shot[hidden],.settings-prompt[hidden]{display:none}.image-set-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.image-set-heading small{display:block;margin-top:6px;max-width:650px}.image-set-heading button{flex-shrink:0}.image-set-options{display:grid;grid-template-columns:110px minmax(0,1fr);gap:18px;align-items:start}.image-set-options fieldset{min-width:0;margin:0;padding:8px 12px;border:1px solid var(--line);border-radius:8px}.image-set-options legend{font-size:12px;color:var(--muted);padding:0 5px}.image-set-options .checks{flex-wrap:wrap;gap:10px 18px}.image-set-plan .field,.image-set-plan .notice{margin:0}.image-set-plan .image-set-help{font-size:12px;line-height:1.65;margin:0}.image-set-shots{display:flex;flex-direction:column;gap:10px}.image-set-shot{min-width:0;border:1px solid var(--line);border-radius:9px;background:white;padding:12px}.image-set-shot-head{display:grid;grid-template-columns:26px minmax(0,1fr) 124px auto;align-items:center;gap:8px;margin-bottom:9px}.image-set-shot-head>span{font-size:12px;color:var(--green);font-weight:700}.image-set-shot-head input{font-weight:600;padding:7px 10px;min-width:0}.image-set-shot-head .actions{gap:4px}.image-set-shot-head button{width:30px;height:30px;padding:5px}.image-set-shot textarea{font-size:13px;line-height:1.65;min-height:78px;resize:vertical}.image-set-notice{background:#f0f7f2;border:1px solid #cee0d3;border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:5px;margin-bottom:12px;font-size:12px;line-height:1.65}.image-set-notice b{display:flex;align-items:center;gap:6px;color:var(--green)}.image-set-notice svg{width:15px;height:15px}.image-set-notice small{font-size:11px}.image-set-credit{font-size:10px;line-height:20px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--green);padding:0 2px}
@media(max-width:760px){.image-set-plan{padding:12px;gap:12px}.image-set-heading{flex-wrap:wrap;gap:8px}.image-set-options{grid-template-columns:1fr;gap:8px}.image-set-options>.field{max-width:120px}.image-set-shot{padding:10px}.image-set-shot textarea{min-height:105px}}
.image-set-gallery-hint{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:12px}
.image-set-common{padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:8px}.image-set-common>summary{font-size:12px;font-weight:600;cursor:pointer}.image-set-common[open]>.field{margin-top:12px}
.workflow-config-layout .config-item{display:block}.workflow-config-layout .config-item-actions{justify-content:flex-end;margin-top:7px;gap:12px}.config-copy{display:inline-flex;align-items:center;gap:4px}.config-copy svg{width:13px;height:13px}
@media(max-width:760px){.workflow-config-layout>.config-list{max-height:200px}.workflow-config-layout .config-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.workflow-config-layout .config-list-heading h3{margin:0;font-size:14px}.workflow-config-layout .config-list-heading>.btn{padding:6px 10px}.workflow-config-layout .config-list-note{font-size:11px;margin:5px 0 0}}
.config-item-name{min-width:0}.current-config-label{display:inline;margin-left:6px;white-space:nowrap;font-weight:400}

.image-mode-help{font-size:12px;line-height:1.75;color:var(--muted);margin:10px 0 16px}
.single-image-prompt,.image-set-editor{border:1px solid var(--line);border-radius:10px;background:#fff;margin:10px 0;min-width:0}
.single-image-prompt>summary,.image-set-editor>summary{display:flex;align-items:center;gap:10px;padding:13px 15px;cursor:pointer;list-style:none}
.single-image-prompt>summary::-webkit-details-marker,.image-set-editor>summary::-webkit-details-marker{display:none}
.single-image-prompt>summary>span:first-child,.image-set-editor>summary>span:first-child{flex:1;min-width:0}
.single-image-prompt>summary strong,.image-set-editor>summary strong{font-size:13px}
.single-image-prompt>summary small,.image-set-editor>summary small{display:block;margin-top:4px;font-size:11px;font-weight:400;color:var(--muted);line-height:1.6}
.single-image-prompt>summary>svg,.image-set-editor>summary>svg{width:15px;height:15px;flex:none;transition:transform .15s}
.single-image-prompt[open]>summary>svg,.image-set-editor[open]>summary>svg{transform:rotate(180deg)}
.image-mode-tag{flex:none;white-space:nowrap;font-size:10px;color:var(--green);padding:3px 7px;background:#edf6f0;border-radius:5px;font-weight:500}
.single-image-prompt-body{padding:0 15px 15px;border-top:1px solid var(--line)}
.single-image-prompt-body>p{font-size:12px;line-height:1.75;margin:12px 0}
.image-set-editor .image-set-plan{border:0;border-top:1px solid var(--line);border-radius:0 0 10px 10px;margin:0;padding:15px}
@media(max-width:760px){.single-image-prompt>summary,.image-set-editor>summary{padding:12px 10px;gap:7px}.image-mode-tag{font-size:9px;padding:3px 5px}.single-image-prompt-body{padding:0 10px 12px}.image-set-editor .image-set-plan{padding:12px}}

/* R91: audience and model matching */
.talent-tag-options,.audience-form{border:1px solid var(--line,#dce5e1);border-radius:10px;padding:16px;margin:16px 0;min-width:0}
.talent-tag-options legend,.audience-form legend{font-weight:600;padding:0 6px}
.talent-tag-options>label{display:flex;align-items:center;gap:8px;margin:8px 0;flex-wrap:wrap}
.talent-tag-options small{color:var(--muted,#71847c)}
.talent-auto-fields .two{margin:14px 0}.talent-auto-fields[hidden]{display:none}
.audience-result{background:#f3f8f5;border:1px solid #dce8e1;border-radius:8px;padding:12px;display:grid;gap:6px;margin:12px 0}
.audience-result p{margin:0;font-size:13px}.audience-result small{color:#71847c}
.task-talent-summary{border-top:1px solid #e1e9e4;padding-top:8px;margin-top:6px}.task-talent-summary>small{display:block;margin-top:4px;overflow-wrap:anywhere}.task-talent-summary .audience-result{padding:8px;margin:6px 0}
.audience-detect{margin-top:16px}.audience-detect summary{cursor:pointer;padding:10px 0;font-weight:600}
.detail-tabs .audience-entry{margin-left:auto}.talent-auto-fields{min-width:0}
@media(max-width:600px){.talent-tag-options,.audience-form{padding:10px}.detail-tabs .audience-entry{margin-left:0}.talent-prompt-fields .two,.audience-form .two{grid-template-columns:minmax(0,1fr)}}

.audience-extra summary{cursor:pointer;color:#60796d;font-size:13px;padding:10px 0}.audience-extra+.two{margin-top:12px}

/* R92: temporary image processing configuration */
.media-processing-actions{min-width:0;flex-wrap:wrap;justify-content:flex-end}
.image-profile-toggle{display:flex;align-items:center;gap:7px;width:240px;max-width:280px;min-width:0;height:36px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:0 10px;text-align:left;color:var(--ink);font:inherit;cursor:pointer}
.image-profile-caption{flex:none;color:var(--muted);font-size:12px}.image-profile-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-profile-default{flex:none;background:#eef5ef;color:#48745c;padding:2px 4px;border-radius:4px;font-size:10px}.image-profile-toggle>svg{flex:none;width:14px;height:14px;margin-left:auto}
.popover.image-profile-menu{position:fixed;z-index:1000;max-width:calc(100vw - 24px);padding:10px;display:flex;flex-direction:column;box-shadow:0 8px 30px #173e2929}
.image-profile-menu input{width:100%;flex:none;margin-bottom:6px}.image-profile-options{max-height:min(360px,50vh);overflow:auto;overscroll-behavior:contain}.image-profile-options h4{margin:12px 8px 6px;color:var(--muted);font-size:11px}.image-profile-options button{display:flex;align-items:center;gap:8px;white-space:normal;width:100%;text-align:left;border-radius:6px;padding:9px 8px}.image-profile-options button[aria-selected=true]{background:#edf5ef}.image-profile-options button:disabled{opacity:.55;cursor:not-allowed}.image-profile-options button[hidden],.image-profile-options section[hidden]{display:none}.image-profile-option{display:grid;gap:4px;flex:1;min-width:0;overflow-wrap:anywhere}.image-profile-option strong{font-size:13px;line-height:1.5}.image-profile-option small,.image-profile-help{color:var(--muted);font-size:11px;line-height:1.6}.image-profile-options svg{width:16px;height:16px;flex:none}.image-profile-help{padding:8px 6px 0;border-top:1px solid var(--line);margin-top:6px}.image-profile-no-results{padding:15px;color:var(--muted);font-size:13px}
.image-execution-profile b{overflow-wrap:anywhere}
@media(max-width:1100px){.media-toolbar{align-items:flex-start;gap:12px}.media-processing-actions{flex:1}.image-profile-toggle{width:220px}}
@media(max-width:760px){.media-toolbar{flex-direction:column;align-items:stretch}.media-processing-actions{justify-content:flex-start;width:100%;gap:8px}.media-processing-actions .image-profile-toggle{width:100%;max-width:none;flex-basis:100%}.media-processing-actions .btn{flex:none}.image-profile-toggle{height:38px}.image-profile-help{font-size:12px}}

/* R121: selection and configuration share the description toolbar header */
.description-assets .media-toolbar{flex-direction:column;align-items:stretch;gap:10px}
.description-assets .media-processing-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;flex:none;gap:6px}
.description-media-heading{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;width:100%;min-width:0}.description-media-heading .media-selection-controls{flex-wrap:nowrap}.description-media-heading .media-selection-controls small{white-space:nowrap}.description-media-heading .image-profile-toggle{width:100%;max-width:none;min-width:0;flex-basis:auto;height:32px;padding:0 7px;gap:5px}
.description-assets .media-processing-actions .btn{width:100%;min-width:0;min-height:32px;padding:5px 4px;justify-content:center;white-space:nowrap;line-height:1.4}
@media(max-width:480px){.description-assets .media-processing-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.description-assets .media-processing-actions .btn{font-size:11px;padding:5px 4px}}

.image-set-preview{display:block}.image-set-preview summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none}.image-set-preview summary::-webkit-details-marker{display:none}.image-set-preview summary>b{flex:1}.image-set-preview summary>svg{width:14px;height:14px;flex:none}.image-set-notice-body{display:grid;gap:7px;margin-top:10px}.image-set-preview:not([open])>.image-set-notice-body{display:none}

/* R93: settings configuration metadata */
.config-item .config-item-meta{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.5}

/* R97: compact page help icon and content-only explanation */
.page-title-with-help{display:flex;align-items:center;gap:6px;min-width:0}
.page-help-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:22px;padding:3px;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;vertical-align:middle}.page-help-button svg{width:14px;height:14px}.page-help-button:hover,.page-help-button[aria-expanded=true]{color:var(--green,#287b55);background:#e6f0e9}.page-help-button:focus-visible{outline:2px solid #287b55;outline-offset:2px}
.popover.page-help-popover{z-index:1000;box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:12px 40px 12px 14px;white-space:normal}.page-help-popover p{margin:0;font-size:13px;line-height:1.8;color:var(--text,#294b3c);overflow-wrap:anywhere}.page-help-popover .page-help-close{position:absolute;top:9px;right:8px;display:flex;align-items:center;justify-content:center;width:24px;min-width:24px;height:24px;padding:4px;border:0;background:transparent;color:var(--muted);border-radius:5px}.page-help-close svg{width:16px;height:16px}
@media(max-width:760px){.page-help-button{width:24px;height:26px}.page-help-popover .page-help-close{width:26px;height:26px}}

/* R99: count inside the title field, below its scrollable text area */
.title-input-wrap{display:flex;flex-direction:column;min-width:0;width:100%;height:146px;min-height:100px;resize:vertical;overflow:hidden;border:1px solid #d6e0d9;border-radius:6px;background:#fff}#detail-root .title-input-wrap{height:90px;min-height:80px}#detail-root .description-input-wrap{height:132px;min-height:110px}.quick-description-input-wrap{height:250px}.description-field-head{gap:12px;align-items:center}.description-field-head>label{font-weight:500}.description-field-head .btn{font-size:12px;padding:6px 10px;white-space:nowrap}.title-input-wrap:focus-within{border-color:#80aa90;box-shadow:0 0 0 2px #71a88515}.title-input-wrap textarea{display:block;flex:1;min-height:0;margin:0;border:0;border-radius:0;resize:none;box-shadow:none}.title-input-wrap textarea:focus{border:0;box-shadow:none}.title-input-wrap #quick-text-value{min-height:0;max-height:none}.title-character-count{display:block;flex:none;margin:0;padding:2px 20px 7px 10px;color:var(--muted);font-size:12px;line-height:18px;text-align:right;font-weight:400;white-space:nowrap}.title-character-count[data-over-limit=true]{color:#bf4b42}

/* R100: keep recognition diagnostics readable on narrow screens */
.audience-recognition-trace{overflow-wrap:anywhere}

/* R102: compact multi-age coverage controls and evidence */
.talent-coverage-options{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:7px;background:#fff}.talent-coverage-options>summary{cursor:pointer;font-size:12px;font-weight:500}.talent-coverage-options>.field{margin:12px 0 6px}.talent-coverage-options textarea{font-size:12px;min-height:100px}.talent-coverage-options>small{display:block;line-height:1.7;color:var(--muted)}.audience-coverage{margin-top:8px;display:grid;gap:6px;overflow-wrap:anywhere}.audience-display-group{display:block;color:var(--green);font-size:12px}.audience-coverage-shares{display:flex;flex-wrap:wrap;gap:6px}.audience-coverage-shares>span{display:grid;gap:3px;padding:7px 9px;border:1px solid var(--line);border-radius:6px;font-size:11px;min-width:80px}.audience-coverage-shares b{font-size:14px}.audience-coverage details>summary{cursor:pointer;font-size:11px;color:var(--green)}.audience-coverage ul{margin:6px 0;padding-left:16px;max-height:190px;overflow:auto}.audience-coverage li{margin-bottom:6px;font-size:11px}.audience-coverage li>small{display:block}

.image-set-shot-head select{min-width:0;width:100%;font-size:12px;padding:7px 24px 7px 8px}@media(max-width:760px){.image-set-shot-head{grid-template-columns:22px minmax(0,1fr) auto}.image-set-shot-head>select{grid-column:2/4;grid-row:2}.image-set-shot-head>.actions{grid-column:3;grid-row:1}}

/* Non-blocking target-language checks. */
.language-check-hint{display:inline-flex;align-items:center;gap:5px;max-width:100%;font-size:12px;line-height:1.6;color:#94691f;vertical-align:middle;overflow-wrap:anywhere}
.language-check-hint svg{flex:none;width:13px;height:13px;stroke-width:1.6}
.language-check-hint:focus-visible{outline:2px solid #b99a5f;outline-offset:3px;border-radius:3px}
.language-check-compact{display:flex;width:fit-content;margin-top:5px;font-size:11px;color:#97783e}
.language-check-slot:not(:empty){margin:5px 0 8px}
.language-check-settings{max-width:780px}
.language-check-toggle{display:flex;gap:8px;align-items:center;font-weight:600;margin:4px 0 18px}
.language-check-fields{border:1px solid var(--line);border-radius:7px;overflow:hidden}
.language-check-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(150px,1fr);align-items:center;gap:18px;padding:12px 16px}
.language-check-row+.language-check-row{border-top:1px solid var(--line)}
.language-check-row>label:first-child{display:flex;align-items:center;gap:8px}
.language-check-row select{width:100%}
.language-check-row .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.language-check-limits{display:block;margin-top:16px;line-height:1.8;color:var(--muted)}
.language-check-inherited{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:14px 16px;border:1px solid var(--line);border-radius:7px;background:#f6f9f7}
.language-check-inherited[hidden],[data-language-custom][hidden]{display:none}
@media(max-width:520px){.language-check-row{grid-template-columns:minmax(86px,1fr) minmax(130px,1.3fr);gap:8px;padding:10px}.language-check-toggle{margin-bottom:12px}}

/* Base rules share one settings section; category language rules stay compact. */
.workflow-rule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:16px;align-items:start}
.workflow-rule-card{min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}
.workflow-rule-card>h3{margin:0 0 12px;font-size:15px}
.workflow-rule-card .language-check-row{grid-template-columns:minmax(76px,1fr) minmax(130px,1.3fr);gap:8px;padding:10px}
.workflow-rule-card .settings-tab-intro{margin-top:0}
.language-rule-card{margin-top:20px;padding:0}
.language-rule-card>summary{display:flex;align-items:center;gap:10px;padding:14px 16px;list-style:none;cursor:pointer}
.language-rule-card>summary::-webkit-details-marker{display:none}
.language-rule-card>summary>span{font-weight:600;flex:none}
.language-rule-card>summary>small{flex:1;min-width:0;color:var(--muted);text-align:right;overflow-wrap:anywhere}
.language-rule-card>summary>svg{width:15px;height:15px;flex:none;color:var(--muted);transition:transform .15s}
.language-rule-card[open]>summary>svg{transform:rotate(180deg)}
.workflow-rule-content{padding:0 16px 16px}
@media(max-width:520px){.workflow-rule-card{padding:12px}.language-rule-card{padding:0}.language-rule-card>summary{flex-wrap:wrap;gap:5px 8px;padding:12px}.language-rule-card>summary>small{flex-basis:calc(100% - 24px);order:2;text-align:left}.language-rule-card>summary>svg{margin-left:auto}.workflow-rule-content{padding:0 12px 12px}}

.workflow-rule-grid .profile-rule-section .two{grid-template-columns:repeat(2,minmax(0,1fr))}
.workflow-rule-card .rule-example b{max-width:100%;overflow-wrap:anywhere}

/* Keep document scrolling behind dialogs separate from the dialog's scroll areas. */
html:has(#dialog-root .modal-backdrop){overflow:hidden;overscroll-behavior:none;scrollbar-gutter:stable}
body:has(#dialog-root .modal-backdrop){overflow:hidden;overscroll-behavior:none}
.modal-backdrop,.modal,.config-list{overscroll-behavior:contain}
.workflow-config-layout>.config-list{overflow:auto;scrollbar-width:thin}
.config-list-tools{display:flex;justify-content:flex-end;margin:5px 0}
.config-list-tools .link{font-size:11px}
.config-copy-status{font-size:11px;line-height:1.6;overflow-wrap:anywhere;margin:6px 0}
.config-copy-status:empty{display:none}
.config-copy[aria-busy="true"]{color:var(--green)}

.workflow-config-layout>.config-list{display:flex;flex-direction:column;overflow:hidden}
.workflow-config-layout .config-list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}
.workflow-config-layout .config-list-heading h3{margin:0}
.workflow-config-layout .config-list-note,.workflow-config-layout .config-list-tools,.workflow-config-layout .config-copy-status{flex:none}
.workflow-config-layout .config-saved-items{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}

/* R122: multi-select related product images */
.related-picker-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}.related-picker-heading h3{margin:0}.related-picker-heading small{white-space:nowrap}.related-picker-grid{margin-top:12px}.related-picker-grid .related-image{position:relative;padding:0;overflow:hidden;aspect-ratio:1}.related-picker-grid .related-image img{width:100%;height:100%;object-fit:contain}.related-picker-grid .related-image.selected{border:2px solid var(--green);box-shadow:0 0 0 1px var(--green)}.related-pick-mark,.related-added{position:absolute;top:7px;left:7px;background:var(--green);color:#fff;border-radius:14px;padding:3px 7px;font-size:11px}.related-added{background:#63766a}.related-assignments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.related-assignment{display:grid;gap:5px;min-width:0;font-size:12px}@media(max-width:760px){.related-picker-heading{align-items:flex-start;flex-wrap:wrap}.related-assignments{grid-template-columns:1fr}}

/* R124: compact card controls; image grids use their original six desktop columns */
.media-grid:is([data-grid="product"],[data-grid="sku"],[data-grid="size"]) .media-icons,.list-gallery-grid:is([data-gallery-scope="product"],[data-gallery-scope="sku"],[data-gallery-scope="size"]) .media-icons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:4px 2px}
.media-grid:is([data-grid="product"],[data-grid="sku"],[data-grid="size"]) .media-icons .icon,.list-gallery-grid:is([data-gallery-scope="product"],[data-gallery-scope="sku"],[data-gallery-scope="size"]) .media-icons .icon{width:100%;max-width:25px;min-width:0;height:25px;padding:2px;justify-self:center}
.media-grid:is([data-grid="product"],[data-grid="sku"],[data-grid="size"]) .media-icons .icon svg,.list-gallery-grid:is([data-gallery-scope="product"],[data-gallery-scope="sku"],[data-gallery-scope="size"]) .media-icons .icon svg{width:14px;height:14px}

.sku-code-rule-card{min-width:0;margin-bottom:18px}.workflow-rule-grid .sku-code-rule-card{margin-bottom:0}.sku-code-rule-card fieldset{min-width:0}.sku-code-parts{margin:14px 0;gap:12px;flex-wrap:wrap}.sku-code-overwrite{margin-top:16px}.sku-code-rule-card .rule-example b{display:block;overflow-wrap:anywhere;font-size:.9rem}.sku-code-counter{display:block;text-align:right;font-variant-numeric:tabular-nums;font-size:11px;margin-top:4px;color:var(--muted,#7d8f87)}.sku-code-counter.over-limit,.sku-code-warning:not(:empty){color:#b74735}.sku-code-cell input[aria-invalid="true"]{border-color:#cb6c59}.sku-code-warning:empty{display:none}.sku-code-warning:not(:empty){margin:12px 0;padding:10px 12px;background:#fff4ef;border-radius:8px;font-size:13px}.sku-code-cell{min-width:0}
.sku-code-preview:empty{display:none}.sku-code-preview{margin-top:14px;min-width:0}.sku-code-preview pre{max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;padding:12px}

/* R132: one consistent rule panel per row; explanations stay secondary. */
.workflow-rule-stack{display:flex;flex-direction:column;gap:12px;min-width:0;padding-bottom:8px}
.rules-section-intro{margin:0 0 2px;color:var(--muted);font-size:12px;line-height:1.7}
.workflow-rule-stack>.rule-panel{padding:0;margin:0;background:#fff;border:1px solid var(--line);border-radius:9px;min-width:0;overflow:clip}
.rule-panel>summary{display:flex;align-items:center;gap:16px;padding:17px 18px;list-style:none;cursor:pointer;min-width:0;transition:background .15s}
.rule-panel>summary::-webkit-details-marker{display:none}
.rule-panel>summary:hover{background:#f6f9f7}
.rule-panel>summary:focus-visible{outline:2px solid var(--green);outline-offset:-3px}
.rule-panel-heading{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.rule-panel-heading strong{font-size:14px;font-weight:650;color:var(--ink,#25463b)}
.rule-panel-heading small{font-size:12px;color:var(--muted);line-height:1.6;font-weight:400}
.rule-panel>summary>svg{width:16px;height:16px;flex:none;margin-left:auto;color:var(--muted);transition:transform .15s}
.rule-panel[open]>summary{border-bottom:1px solid var(--line);background:#f8faf9}
.rule-panel[open]>summary>svg{transform:rotate(180deg)}
.rule-panel>.rule-panel-body{padding:18px;min-width:0}
.rule-panel .two{gap:14px 18px;margin:0}
.rule-panel .field{min-width:0}
.rule-panel .field>label{font-size:12px;margin-bottom:7px}
.rule-fieldset{margin:16px 0;padding:12px 14px;border:1px solid var(--line);border-radius:7px;min-width:0}
.rule-fieldset legend{padding:0 5px;font-size:12px;font-weight:600;color:var(--muted)}
.rule-fieldset .checks{margin:0;display:flex;flex-wrap:wrap;gap:10px 22px}
.rule-fieldset .checks label{font-size:12px;line-height:1.8}
.rule-fieldset>small{display:block;margin-top:8px;color:var(--muted);font-size:11px;line-height:1.7}
.rule-switch-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--line)}
.rule-switch-row>div{min-width:0}
.rule-switch-row label{display:block;font-size:12px;font-weight:600;cursor:pointer}
.rule-switch-row small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.6}
.rule-switch-row>.sku-rule-switch{flex:none}
.rule-panel .rule-preview{display:block;margin:16px 0 0;padding:12px 14px;border:1px solid #dce8e1;background:#f4f8f5;border-radius:7px}
.rule-panel .rule-preview small{display:block;font-size:11px;color:var(--muted);line-height:1.7}
.rule-panel .rule-preview b{display:block;margin-top:5px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.rule-help{margin-top:14px;border:0;background:transparent;padding:0}
.rule-help>summary{font-size:11px;color:var(--muted);cursor:pointer;line-height:1.8}
.rule-help p{font-size:12px;color:var(--muted);line-height:1.9;margin:8px 0 0}
.rule-inheritance-note{margin:0 0 14px;padding:10px 12px;background:#f4f8f5;border-radius:6px;color:var(--muted);font-size:12px;line-height:1.8}
.rule-inheritance-note[hidden],[data-sku-code-custom][hidden]{display:none}
.rule-panel .language-check-toggle{margin:0 0 14px;font-size:12px}
.rule-panel .language-check-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rule-panel .language-check-row{padding:10px;gap:10px;grid-template-columns:minmax(78px,1fr) minmax(115px,1.2fr)}
.rule-panel .language-check-row label{font-size:12px}
.rule-panel .settings-tab-intro{font-size:12px;line-height:1.8;margin:0 0 14px}
.rule-panel .language-check-limits{margin-top:8px}
.rule-panel>summary>[data-language-summary]{flex:0 1 auto;font-size:11px;text-align:right;color:var(--muted);margin-left:8px;max-width:40%;overflow-wrap:anywhere}
.rule-panel .category-picker{margin-bottom:0}
.rule-panel .category-pricing,.rule-panel .measurement-targets{margin-top:14px}
@media(max-width:760px){.rule-panel .language-check-fields{grid-template-columns:1fr}.rule-panel>summary{padding:14px;gap:10px}.rule-panel>.rule-panel-body{padding:14px}.rule-panel .two{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rule-panel .rule-field-grid{grid-template-columns:1fr}.rule-panel .rule-switch-row{gap:12px}.rule-panel .language-check-row{grid-template-columns:minmax(95px,1fr) minmax(130px,1.2fr)}.rule-panel>summary>[data-language-summary]{display:none}.rule-panel-heading small{font-size:11px}.rule-fieldset .checks{gap:8px 16px}}
.rule-panel>summary>.rule-panel-heading{flex:1}.rule-panel.category-defaults-panel textarea{width:100%;margin:0;min-height:160px}
.rule-switch-row>.sku-rule-switch{appearance:none;position:relative;width:32px;height:18px;margin:0;padding:0;border:1px solid #bccbc1;border-radius:10px;background:#cbd5ce;cursor:pointer;transition:background .15s,border-color .15s}.rule-switch-row>.sku-rule-switch:checked{background:var(--green);border-color:var(--green)}

/* R133: inline SKU count and more room for the code itself. */
.sku-table .sku-code-cell{position:relative}
.sku-table .sku-code-cell>input{padding-right:64px}
.sku-table .sku-code-counter{position:absolute;right:9px;top:50%;transform:translateY(-50%);display:block;margin:0;line-height:1;white-space:nowrap;pointer-events:none;user-select:none}
.sku-table .sku-measurement-head .head-label>span{display:block;white-space:normal;line-height:1.35;overflow-wrap:normal}

/* R134: catalog measurements have enough room for single-line headers. */
.sku-table.catalog-sku-table .sku-measurement-head .head-label>span{white-space:nowrap}
[data-sku-sequence-settings][hidden],[data-code-sequence-settings][hidden]{display:none}

/* Price adjustment controls shared by SKU batches and category rules. */
.price-rule-form{display:grid;gap:18px;margin:12px 0 20px}
.price-mode-row,.price-option-row{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;align-items:center}
.price-mode-row>label,.price-option-row>span,.price-option-row>label{display:flex;align-items:center;gap:8px;white-space:nowrap}
.price-fixed-value{max-width:360px}.price-ending-value{max-width:280px}
.price-formula{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
.price-formula>select{flex:1 1 150px;width:150px;min-width:0}
.price-formula-amount{display:flex;align-items:center;gap:10px;flex:1 1 135px;min-width:0}
.price-formula-amount .money-input{flex:1;min-width:0}
.price-percentage{display:flex;align-items:center;gap:6px;flex:0 1 105px;min-width:85px}
.price-percentage input{min-width:0}
.price-rule-form .checks{gap:12px 22px;flex-wrap:wrap}
.price-rule-form input[type=radio]{width:auto;flex:none;accent-color:var(--green,#267653)}
@media(max-width:760px){.price-mode-row,.price-option-row{grid-template-columns:minmax(0,1fr);gap:10px}.price-formula{gap:8px}.price-formula>select{flex-basis:100%;width:100%}.price-formula-amount{flex-basis:125px}.price-fixed-value,.price-ending-value{max-width:none}}
.price-rule-form .price-ending-value input[type=number]{width:100%;max-width:none}

.remote-merge-heading,.remote-merge-row{display:grid;grid-template-columns:160px minmax(0,1fr) minmax(0,1fr);gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
.remote-merge-heading{color:var(--muted)}
.remote-merge-row>label{display:flex;align-items:flex-start;gap:8px;font-weight:600}
.remote-merge-row pre{margin:0;max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;background:transparent;padding:0;border:0;border-radius:0;box-shadow:none;line-height:1.6}
.remote-merge-table{margin:16px 0 24px}
@media(max-width:760px){.remote-merge-heading{display:none}.remote-merge-row{grid-template-columns:minmax(0,1fr);gap:10px}.remote-merge-row pre:before{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}.remote-merge-row pre:nth-child(2):before{content:'本地当前值'}.remote-merge-row pre:nth-child(3):before{content:'妙手远端值'}}

.publish-shop-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0;max-height:45vh;overflow:auto}
.publish-shop-option{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.publish-shop-option small{display:block;color:var(--muted);margin-top:4px}
@media(max-width:760px){.publish-shop-list{grid-template-columns:minmax(0,1fr)}}

 .category-sync-entry.attribute-refresh-entry{margin-top:0}.attribute-generate-entry{padding:6px 10px}.category-attribute-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px;margin-top:18px}
.category-attribute-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.category-attribute-field>label{font-weight:500;line-height:1.6}.attribute-english{color:var(--muted);font-weight:400}.attribute-required{color:#bb4b3e}
.attribute-saved-values{display:grid;gap:12px;margin-top:16px}.attribute-saved-values>div{display:flex;flex-wrap:wrap;gap:12px}.attribute-saved-values span{overflow-wrap:anywhere}
.attribute-input{min-width:0;position:relative}.attribute-input-control{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-height:40px;padding:5px 9px;border:1px solid #d6e0d9;border-radius:6px;background:#fff;cursor:text}
.attribute-input-control:focus-within{border-color:#80aa90;box-shadow:0 0 0 2px #71a88515}.attribute-input .attribute-query{flex:1 1 70px;width:70px;min-width:40px;max-width:100%;border:0;border-radius:0;padding:3px 0;min-height:26px;background:transparent;box-shadow:none;outline:0}.attribute-query::placeholder{color:#a5afa9}
.attribute-input-plain .attribute-query{flex-basis:0;width:0}.attribute-input button{background:none;border:0;margin:0;padding:0;display:inline-flex;align-items:center;justify-content:center;box-shadow:none}.attribute-input button:hover{background:#eff6f1}.attribute-input-toggle,.attribute-input-clear{color:#9aa79f;flex:0 0 20px;min-height:26px}.attribute-input-toggle svg{width:16px;height:16px}.attribute-input-clear{font-size:18px}.attribute-input [aria-expanded=true]~.attribute-input-toggle svg{transform:rotate(180deg)}
.attribute-value-tag{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:100%;min-height:26px;padding:2px 5px 2px 8px;background:#edf6f0;border:1px solid #d8eadd;color:var(--green);border-radius:4px;font-size:12px;line-height:1.5}.attribute-value-tag>span{overflow-wrap:anywhere;min-width:0}.attribute-value-tag button{width:20px;height:20px;border-radius:50%;font-size:17px;color:#829b8c;flex-shrink:0}
.attribute-input-popup{position:fixed;z-index:1100;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:6px;background:white;box-shadow:0 6px 22px #203a2b24;overflow:hidden;padding:5px 0}.attribute-input-popup[hidden]{display:none}.attribute-input-options{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1}.attribute-input-options>button{display:flex;justify-content:space-between;gap:12px;text-align:left;width:100%;padding:10px 12px;min-height:38px;overflow-wrap:anywhere;white-space:normal;color:var(--ink)}.attribute-input-options>button[aria-selected=true]{color:var(--green);background:#f2f7f3}.attribute-input-options>button:hover,.attribute-input-options>button.is-active{background:#eaf3ed}.attribute-input-help,.attribute-input-empty{font-size:11px;color:var(--muted);padding:9px 12px;line-height:1.6;margin:0}.attribute-input-help{border-top:1px solid #f0f3f1;flex-shrink:0}
@media(max-width:760px){.category-attribute-grid{grid-template-columns:1fr;gap:18px}.attribute-input-options>button{min-height:44px}.attribute-value-tag button{width:24px;height:24px}}

.attribute-with-unit{display:grid;grid-template-columns:minmax(0,1fr) minmax(94px,28%);min-width:0;border:1px solid #d6e0d9;border-radius:6px;background:#fff;align-items:stretch}.attribute-with-unit:focus-within{border-color:#80aa90;box-shadow:0 0 0 2px #71a88515}.attribute-with-unit>.attribute-input{min-width:0}.attribute-with-unit .attribute-input-control{border:0;border-radius:6px 0 0 6px;min-height:38px;height:100%;box-shadow:none}.attribute-with-unit>[data-attribute-unit]{min-width:0;max-width:100%;min-height:38px;border:0;border-left:1px solid #d6e0d9;border-radius:0 6px 6px 0;padding:8px 10px;background:transparent;box-shadow:none}

.publish-selected-shops{display:flex;flex-wrap:wrap;gap:8px;max-height:25vh;overflow:auto}
.publish-selected-shop{display:inline-flex;align-items:center;gap:8px;padding:5px 8px;background:var(--soft);border:1px solid var(--line);border-radius:6px;overflow-wrap:anywhere}
.publish-selected-shop button{padding:3px 6px;font-size:12px;flex-shrink:0}
.publish-shop-option span{min-width:0;overflow-wrap:anywhere}

.publish-country-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:12px 0}
.publish-country-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px}
.publish-country-options label{display:flex;align-items:center;gap:7px;padding:8px;border:1px solid var(--line);border-radius:6px;cursor:pointer;font-size:12px}
.publish-country-options label:has(input:checked){border-color:#99baa5;background:var(--soft)}
.publish-country-options input{flex-shrink:0}
.publish-country-options span{min-width:0;overflow-wrap:anywhere}
.publish-country-group{border-top:1px solid var(--line);margin-top:14px;padding-top:2px}
.publish-country-group .publish-shop-list{margin:8px 0 14px}
@media(max-width:480px){.publish-country-options{grid-template-columns:repeat(2,minmax(0,1fr))}.publish-country-options label{font-size:11px;padding:6px;gap:4px}}

.submission-check-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.submission-check-options label{display:flex;align-items:flex-start;gap:7px;line-height:1.7;font-size:12px}
.submission-check-options input{flex-shrink:0;margin-top:4px}
.submission-check-reports section{padding:14px 0;border-bottom:1px solid var(--line)}
.submission-check-reports li{line-height:1.9;color:var(--red)}
.submission-preview{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.submission-preview>p{margin:0 0 8px}
.submission-preview .submission-check-reports .between{gap:8px;flex-wrap:wrap;overflow-wrap:anywhere}
.product-task-label{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px;font-weight:600}
.product-task-label .link{font-size:10px;font-weight:400}
.product-task-progress+.product-task-progress{margin-top:10px}
.detail-task-progress{max-height:35vh;overflow:auto}
@media(max-width:760px){.submission-check-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

.platform-options-block{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.platform-options-block>select{width:100%;margin:8px 0}
.platform-options-block>small{display:block;line-height:1.8}
.platform-options-block .two{margin:10px 0}

.watermark-restore{pointer-events:auto;border:1px solid #c9ddd0;border-radius:4px;background:#fffffff2;color:var(--green);padding:3px 6px;font-size:10px;white-space:nowrap}.watermark-restore:hover{background:var(--soft)}.watermark-appearance{margin:18px 0}.watermark-appearance>summary{font-weight:500;margin-bottom:12px}.watermark-template-results{margin:12px 0}.watermark-template-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.automation-order-row .automation-rule-badge{margin-left:8px;font-size:10px;color:var(--muted)}[data-rule-panel="watermark"] .checks{gap:12px 20px;margin:12px 0}[data-rule-panel="watermark"] .flex{margin:12px 0}

.watermark-template-preview{width:32px;height:32px;object-fit:contain}

/* Watermark recovery shares the original-image controls. */
.media-recovery-controls{display:flex;flex-flow:row wrap-reverse;align-items:center;gap:4px;max-width:100%;pointer-events:none}
.media-recovery-controls .watermark-restore{display:inline-flex;align-items:center;padding:5px 7px;min-height:26px;line-height:1.3;opacity:0;pointer-events:none;transition:opacity .15s}
.media-frame:hover .watermark-restore,.media-frame:focus-within .watermark-restore{opacity:1;pointer-events:auto}
@media(max-width:760px){.media-recovery-controls .watermark-restore{opacity:1;pointer-events:auto;font-size:9px;padding:4px}}
.list-watermark-entry{font-size:11px;align-self:flex-start;margin-top:4px}
.task-watermark-diagnostics{margin-top:10px;width:100%;font-size:12px}.task-watermark-diagnostics ul{padding:0 0 0 18px;max-height:240px;overflow:auto}.task-watermark-diagnostics li{margin:8px 0}.task-watermark-diagnostics li>strong,.task-watermark-diagnostics li>span,.task-watermark-diagnostics li>small{display:block;overflow-wrap:anywhere}.task-watermark-diagnostics li>span{color:var(--red);margin-top:4px}

/* Keep bulk actions available while the product list scrolls. */
.product-list-panel{overflow:clip}
.product-list-panel>.bulk{position:sticky;top:52px;z-index:8;box-shadow:0 4px 10px #24453012}
.detail-ai-autosave-note{margin:6px 14px 0;font-size:11px;color:var(--muted)}
.table-scroll-tools{display:none!important}
.product-table th[data-column="actions"],.product-table td[data-column="actions"]{border-left:0;box-shadow:none}
.product-table.freeze-leading th[data-column="image"],.product-table.freeze-leading td[data-column="image"]{position:sticky;left:32px;z-index:3;background:#fff}
.product-table.freeze-leading th[data-column="image"]{z-index:5;background:#f7faf8}
.product-table.freeze-leading th[data-column="title"],.product-table.freeze-leading td[data-column="title"]{position:sticky;left:148px;z-index:3;background:#fff}
.product-table.freeze-leading th[data-column="title"]{z-index:5;background:#f7faf8}
.product-table th[data-column="actions"]::before,.product-table td[data-column="actions"]::before,.product-table.freeze-leading th[data-column="title"]::after,.product-table.freeze-leading td[data-column="title"]::after{content:"";position:absolute;top:0;bottom:-1px;width:12px;border-right:1px solid #d7e1da;background:linear-gradient(to right,transparent,rgba(40,67,57,.015) 35%,rgba(40,67,57,.07));pointer-events:none}
.product-table th[data-column="actions"]::before,.product-table td[data-column="actions"]::before{left:-12px}
.product-table.freeze-leading th[data-column="title"]::after,.product-table.freeze-leading td[data-column="title"]::after{right:-12px;transform:scaleX(-1);opacity:0}
.product-table.freeze-leading.scrolled-x th[data-column="title"]::after,.product-table.freeze-leading.scrolled-x td[data-column="title"]::after{opacity:1}
@media(max-width:1200px){.product-table.freeze-leading th[data-column="title"],.product-table.freeze-leading td[data-column="title"]{position:static;left:auto}.product-table.freeze-leading th[data-column="title"]::after,.product-table.freeze-leading td[data-column="title"]::after{display:none}}
.spec-grip{cursor:grab;user-select:none;-webkit-user-drag:element}
.spec-grip:active{cursor:grabbing}

.online-search-panel{padding:16px 18px}
.online-query-bar{display:grid;grid-template-columns:minmax(160px,250px) minmax(150px,1fr) auto;align-items:end;gap:12px}
.online-query-bar .field,.online-filter-fields .field{min-width:0;margin:0}
.online-query-actions{display:flex;gap:8px}
.online-shop-picker{width:100%;display:flex;justify-content:space-between;gap:8px;text-align:left}
.online-shop-picker span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.online-shop-picker svg{flex:none}
#online-extra-filters:not([hidden]){margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.online-filter-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 12px}
#online-prefetch{margin-top:10px}
.online-applied-filters:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:12px}
.online-applied-filters .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.online-manual-shop .field{margin-top:8px}
.online-item-drawer .drawer-head .between{gap:12px}
.online-item-drawer .drawer-head .icon{flex:none}
.online-item-drawer .section-nav[hidden],.online-drawer-actions[hidden]{display:none}
.online-drawer-actions:not([hidden]){display:flex;justify-content:space-between;align-items:center;gap:8px}
.online-item-drawer .title-input-wrap textarea{width:100%;padding-bottom:28px}
.online-empty-image-list{grid-column:1/-1}
.online-media-area .media-grid .media-icons{grid-template-columns:repeat(3,minmax(0,1fr))}
.online-media-area .media-card[draggable="true"]{cursor:grab}
.online-image-placeholder{display:grid;justify-items:center;gap:6px;color:var(--muted)}
.online-image-placeholder svg{width:20px;height:20px}
.online-related-id{display:grid;place-items:center;min-height:80px;overflow-wrap:anywhere;padding:8px}
.online-description-workspace{margin-top:14px}
.video-preview-hit{display:grid;place-items:center;background:#f3f8f5}
.video-preview-hit :is(img,video){position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.video-preview-play{position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#203a2dcc;color:#fff}
.video-preview-hit:hover .video-preview-play{background:var(--green)}
.detail-video-player{display:block;width:100%;max-height:70dvh;background:#16261f;border-radius:7px}
.media-upload-status{color:var(--green);font-size:12px}
.media-upload-status:empty{margin-top:-6px}
.online-description-workspace .description-preview{min-height:140px;overflow-wrap:anywhere}
.online-description-workspace .description-assets>.btn{margin-top:12px}
.online-text-actions{display:flex;flex-direction:column;align-items:center;gap:3px}
.online-text-actions .icon{width:25px;height:25px}
#section-online-sku .sku-summary{margin:12px 0 8px}
.online-spec-row>.field{min-width:100px;margin:0}
.online-spec-row .spec-values .field{width:142px;margin:0}
.online-spec-row .spec-values input{width:100%;min-width:0}
.online-spec-row .spec-values>label>span{color:var(--muted);font-size:11px}
.online-sku-wrap{max-width:100%;overflow:auto}
.online-sku-table th[scope="row"]{height:auto;overflow-wrap:anywhere;border-bottom:1px solid var(--line);text-align:left}
.online-sku-table th[scope="row"] small{display:block}
.online-sku-table .field{margin:0}
.online-sku-table .field+.field{margin-top:5px}
.online-sku-table td:not(:nth-child(4)) .field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.online-catalog-options:empty,#online-item-error:empty{display:none}
#online-item-error:not(:empty){margin:8px 12px;padding:10px 12px;background:#fff3f0;border-radius:7px}
body:has(.online-item-backdrop,#detail-root .drawer-backdrop){overflow:hidden;overscroll-behavior:none}
@media(max-width:760px){
    .online-search-panel{padding:12px}
    .online-query-bar{grid-template-columns:minmax(0,1fr) auto;gap:8px}
    .online-query-bar>.field:first-child{grid-column:1/-1}
    .online-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .online-query-actions{gap:5px}
    .online-query-actions .btn{padding-inline:8px}
    .online-drawer-actions:not([hidden]){display:grid;gap:4px}
    .online-drawer-actions .actions{justify-content:flex-end}
}

.modal.catalog-settings-modal{display:flex;flex-direction:column;height:min(92dvh,780px);max-height:calc(100dvh - 16px);overflow:hidden}
.catalog-settings-modal>.modal-head{flex:none;margin-bottom:0;padding-bottom:10px}
.catalog-settings-modal>.modal-foot{position:static;flex:none;margin-top:12px;padding-top:10px}
.catalog-settings-tabs{display:flex;flex:none;gap:18px;margin:0 0 16px;border-bottom:1px solid var(--line)}
.catalog-settings-tabs a{display:inline-flex;align-items:center;font-size:13px;min-height:42px;padding:8px 4px;border:0;border-bottom:2px solid transparent;background:transparent;font-weight:600;color:#536a5d;white-space:nowrap}
.catalog-settings-tabs a:hover,.catalog-settings-tabs a[aria-current]{color:var(--green)}
.catalog-settings-tabs a[aria-current]{border-bottom-color:var(--green)}
.catalog-settings-tabs a:focus-visible,.catalog-config-item:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.catalog-settings-modal .catalog-rule-layout,.catalog-settings-modal .catalog-recommendation-layout{flex:1;grid-template-columns:200px minmax(0,1fr);gap:20px;min-height:0}
.catalog-settings-modal .catalog-config-sidebar{display:flex;flex-direction:column;align-self:stretch;position:static;overflow:hidden;min-height:0;max-height:none;padding-right:14px;border-right:1px solid var(--line)}
.catalog-sidebar-heading,.catalog-config-heading,.catalog-recommendation-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.catalog-sidebar-heading{flex:none;margin-bottom:3px}
.catalog-sidebar-heading h3,.catalog-recommendation-heading h3,.catalog-sync-settings h3{margin:0;font-size:14px}
.workflow-config-layout .catalog-sidebar-heading h3{margin:0}
.catalog-sidebar-actions{display:flex;flex:none;align-items:center;gap:5px}
.catalog-sidebar-actions .btn{min-height:30px;padding:5px 8px}
.catalog-sidebar-actions>.icon{width:30px;height:30px;color:var(--green)}
.catalog-settings-modal .catalog-config-sidebar .config-saved-items{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.catalog-settings-modal .catalog-config-item{display:flex;align-items:flex-start;justify-content:flex-start;gap:8px;width:100%;margin:3px 0;padding:9px 10px;border:1px solid transparent;border-radius:6px;text-align:left;background:transparent;cursor:pointer}
.catalog-config-item-copy{display:grid;gap:3px;min-width:0}
.catalog-config-item b,.catalog-config-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.catalog-config-item small{color:var(--muted);font-size:11px}
.catalog-settings-modal .catalog-config-item:hover{background:#f4f8f5}
.catalog-settings-modal .catalog-config-item[data-editing="true"]{border-color:#d5e6da;background:#eaf4ed;color:#21613f}
.catalog-settings-modal .catalog-recommendation-layout .catalog-config-item{display:grid;gap:3px}
.catalog-settings-modal .catalog-recommendation-layout .catalog-config-item[aria-current="true"]{border-color:#d5e6da;background:#eaf4ed;color:#21613f}
.catalog-config-heading{align-items:flex-end;margin-bottom:10px}
.catalog-config-heading .field{flex:1;min-width:0;margin:0}
.workflow-config-layout .work-config-item{display:flex;justify-content:flex-start;width:100%;padding:10px;background:#fff;text-align:left;cursor:pointer}
.workflow-config-layout .work-config-item:hover{background:#f7faf8}
.workflow-config-layout .work-config-item.active{background:var(--soft)}
.work-config-item .current-config-label{display:block;margin:3px 0 0}
.workflow-config-modal .config-delete-footer{gap:6px}
@media(max-width:420px){.workflow-config-modal>.modal-foot{flex-wrap:wrap}.workflow-config-modal>.modal-foot .btn{padding-inline:7px}}
.catalog-settings-modal .catalog-rule-layout .workflow-tabs{gap:4px;padding:4px;border:1px solid var(--line);background:#f2f6f3}
.catalog-settings-modal .catalog-rule-layout .workflow-tab{flex:1;padding:8px 6px;font-weight:600}
.catalog-settings-modal .catalog-rule-layout .workflow-tab[aria-selected="true"]{background:#fff;border-color:#d9e6dd;box-shadow:0 1px 2px #25473312;font-weight:600}
.catalog-settings-modal .catalog-rule-layout .workflow-panels{margin-top:9px}
.catalog-settings-content{flex:1;min-width:0;min-height:0;overflow:auto;padding:2px 6px 6px 0;overscroll-behavior:contain}
.catalog-recommendation-editor,.catalog-sync-settings{display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-radius:9px}
.catalog-sync-settings{max-width:480px}
.catalog-settings-content p,.catalog-settings-content .field{margin:0}
.catalog-recommendation-editor .prompt-help{margin-top:0}
.catalog-recommendation-editor .prompt-help p{margin:8px 0}
.catalog-recommendation-editor textarea{min-height:85px}
.catalog-recommendation-flags{display:grid;gap:9px}
.catalog-recommendation-flags label{display:flex;align-items:center;gap:7px;width:fit-content}
.catalog-delay-presets{display:flex;flex-wrap:wrap;gap:6px}
.catalog-delay-presets .btn[aria-pressed="true"]{color:var(--green);background:#eaf4ed;border-color:#bad7c4}
.catalog-sync-settings>.field{max-width:155px}
@media(max-width:760px){
    .modal.catalog-settings-modal{height:calc(100dvh - 16px);padding:14px}
    .catalog-settings-tabs{gap:12px;margin-bottom:10px}
    .catalog-settings-tabs a{padding-inline:2px}
    .catalog-settings-modal .catalog-rule-layout,.catalog-settings-modal .catalog-recommendation-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:10px}
    .catalog-settings-modal .catalog-config-sidebar{position:relative;top:auto;left:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0 0 9px;border-right:0;border-bottom:1px solid var(--line);min-height:0;max-height:none}
    .catalog-sidebar-actions .btn{min-height:28px;padding:4px 7px}
    .catalog-settings-modal .catalog-config-sidebar .config-saved-items{display:flex;gap:6px;flex:none;max-height:72px;overflow-x:auto;overflow-y:hidden;padding:2px 1px 5px;scroll-snap-type:x proximity;scrollbar-width:none}
    .catalog-settings-modal .catalog-config-sidebar .config-saved-items::-webkit-scrollbar{display:none}
    .catalog-settings-modal .catalog-config-item{flex:0 0 168px;width:168px;min-height:48px;margin:0;padding:8px;scroll-snap-align:start}
    .catalog-settings-modal .catalog-config-item .catalog-config-item-copy{align-self:center}
    .catalog-settings-modal .config-copy-status:empty{display:none}
    .catalog-settings-modal .catalog-rule-layout .workflow-tabs{gap:3px;padding:3px}
    .catalog-settings-modal .catalog-rule-layout .workflow-tab{padding-inline:4px;font-size:11px}
    .catalog-recommendation-editor,.catalog-sync-settings{padding:12px}
}

.modal.product-category-modal{display:flex;flex-direction:column;width:min(760px,calc(100vw - 32px));height:min(78dvh,680px);max-height:calc(100dvh - 24px);overflow:hidden}
.product-category-modal>.modal-head,.product-category-modal>.modal-foot{position:static;flex:none}
.product-category-modal>.modal-head{margin-bottom:12px}
.product-category-modal>.modal-foot{margin-top:12px;padding-top:10px}
.product-category-picker{display:flex;flex:1;flex-direction:column;gap:10px;min-width:0;min-height:0}
.product-category-current{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 10px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#f7faf8}
.product-category-current>span{color:var(--muted);font-size:11px}
.product-category-current>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-category-picker>.field{margin:0}
.product-category-searchbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.product-category-searchbar input{width:100%}
.product-category-status{flex:none;margin:0;color:var(--muted);font-size:11px}
.product-category-results{display:flex;flex:1;flex-direction:column;gap:5px;min-height:90px;overflow:auto;padding:1px 3px 2px 1px;overscroll-behavior:contain}
.product-category-option{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:#fff;text-align:left}
.product-category-option:hover{border-color:#bad7c4;background:#f7faf8}
.product-category-option[aria-pressed="true"]{border-color:#77a98a;background:#edf6f0}
.product-category-option-mark{display:grid;place-items:center;width:20px;height:20px;border:1px solid #cad6ce;border-radius:50%;color:transparent}
.product-category-option[aria-pressed="true"] .product-category-option-mark{border-color:var(--green);background:var(--green);color:#fff}
.product-category-option-mark svg{width:13px;height:13px}
.product-category-option-copy{display:grid;gap:2px;min-width:0}
.product-category-option-copy b,.product-category-option-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-category-option-copy b{font-size:12px}
.product-category-option-copy small{font-size:10px}
.product-category-option-id{color:var(--muted);font-size:10px;white-space:nowrap}
.product-category-empty{display:grid;min-height:100px;place-items:center;color:var(--muted)}
.product-category-selection{display:flex;flex:none;align-items:center;gap:8px;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:#f7faf8}
.product-category-selection>span{flex:none;color:var(--muted);font-size:11px}
.product-category-selection>b,.product-category-selection>small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-category-selection>b{font-size:11px}
.product-category-selection>small{margin-left:auto}
@media(max-width:760px){
    .modal.product-category-modal{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:14px}
    .product-category-option{grid-template-columns:22px minmax(0,1fr);gap:8px}
    .product-category-option-id{display:none}
    .product-category-selection{align-items:flex-start;flex-wrap:wrap;gap:4px 8px}
    .product-category-selection>small{flex-basis:100%;margin-left:0}
}

.system-connections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;margin-top:20px;max-width:1280px}
.system-connections .panel-head{gap:12px;min-height:60px}
.system-connections .panel-content{padding-block:0}
.connection-platform{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 16px;align-items:center;padding:17px 0}
.connection-platform+.connection-platform{border-top:1px solid var(--line)}
.connection-platform h3,.connection-step h3{margin:0}
.connection-platform small{display:block;margin-top:3px}
.connection-provider{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
.connection-accounts .settings-config-row:last-child{border-bottom:0}
.connection-accounts .panel-content>p{margin:0;padding:16px 0;overflow-wrap:anywhere}
.shopee-connection-dialog{display:grid;gap:14px}
.connection-current{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border-radius:7px;background:var(--soft)}
.connection-step{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:8px}
.connection-step>.between{flex-wrap:wrap}
#shopee-connection-form{display:grid;gap:12px}
#shopee-connection-form p{margin:0}
.connection-callback{display:grid;gap:6px}
.connection-callback>label{font-size:11px;color:var(--muted)}
.connection-callback>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.connection-callback input{width:100%;font-size:11px}
.shopee-grants{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.shopee-grants li{border:1px solid var(--line);border-radius:5px;padding:4px 8px;font-size:11px}
.connection-error{margin:0;font-size:12px}
@media(max-width:1100px){.system-connections{grid-template-columns:minmax(0,1fr);max-width:760px}}
@media(max-width:560px){
 .connection-platform{grid-template-columns:minmax(0,1fr) auto}
 .connection-platform>.connection-provider{grid-row:2;grid-column:1/-1}
 .connection-platform>.btn{grid-row:1;grid-column:2}
 .connection-accounts .settings-config-row{flex-wrap:wrap}
 #shopee-connection-form .two{grid-template-columns:minmax(0,1fr);gap:10px}
}

[data-seller-hidden]{display:none!important}

.heading.seller-settings-heading{flex-direction:row;align-items:center}
.seller-settings-panel { margin-top: 0; }
.seller-settings-panel .panel-head { flex-wrap: wrap; gap: 10px; }
.seller-settings-panel .panel-head small { display: block; margin-top: 5px;line-height:1.5 }
#seller-model-custom[hidden], #seller-model-recommended[hidden] { display: none; }

.profile-entry{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:min(210px,26vw);padding:3px 5px;border-radius:7px;color:var(--ink);text-decoration:none}
.profile-entry:hover,.profile-entry[aria-current]{background:var(--soft)}
.profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-avatar{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:linear-gradient(145deg,#31925e,#09645c 75%);color:#fff;box-shadow:inset 0 0 0 1px #ffffff30,0 1px 3px #134e3726}
.profile-avatar svg{width:18px;height:18px}
.profile-security-link{text-decoration:none}
@media(max-width:760px){
    .profile-entry{padding-inline:3px;gap:5px;font-size:11px}
    .profile-avatar{width:26px;height:26px}
    .profile-avatar svg{width:16px;height:16px}
}

.storage-capacity-form{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}
.storage-capacity-form input[name=capacity]{width:9rem;max-width:100%}
.workspace-storage-usage progress{width:100%;height:10px;accent-color:var(--green);display:block;margin-bottom:8px}

.list-empty-state{padding:28px 16px;text-align:center}
.list-empty-state p{margin:0 0 12px}
.list-empty-state .actions{justify-content:center}
.media-library-grid>.list-empty-state{grid-column:1/-1}

.header-centers{display:flex;align-items:center;gap:10px;flex:none}
.center-shortcut,.header-account>.profile-entry{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;border:1px solid #d8e5dd;border-radius:10px;background:#fff;color:var(--ink);padding:5px 10px;text-decoration:none;font-size:12px;font-weight:600}
.center-shortcut:hover,.center-shortcut[aria-current],.header-account[open]>.profile-entry{background:#ebf4ee;color:var(--green);border-color:#c8e2d2}
.header-centers svg{width:17px;height:17px;flex:none}
.header-account{position:relative}
.header-account>.profile-entry{list-style:none;cursor:pointer;max-width:min(230px,30vw)}
.header-account>.profile-entry::-webkit-details-marker{display:none}
.header-account>.profile-entry .profile-avatar{width:26px;height:26px}
.header-account .account-chevron{width:13px;height:13px;color:var(--muted)}
.header-account[open] .account-chevron{transform:rotate(180deg)}
.header-account-panel{position:absolute;z-index:2;top:calc(100% + 10px);right:0;width:min(270px,calc(100vw - 24px));padding:7px;background:#fff;border:1px solid #dbe7df;border-radius:14px;box-shadow:0 15px 36px #163b2824}
.header-account-identity{display:flex;align-items:center;gap:10px;padding:12px 10px;border-bottom:1px solid var(--line);margin-bottom:5px}
.header-account-identity>div{min-width:0}
.header-account-identity strong,.header-account-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header-account-identity small{margin-top:4px;color:var(--muted)}
.header-account-panel nav{display:grid}
.header-account-panel nav a,.header-account-logout{display:flex;align-items:center;gap:9px;min-height:40px;border:0;border-radius:8px;padding:6px 10px;background:none;color:var(--ink);text-decoration:none;font:inherit;text-align:left;width:100%}
.header-account-panel nav a:hover,.header-account-panel nav a[aria-current],.header-account-logout:hover{background:#eff6f1}
.header-account-panel form{border-top:1px solid var(--line);margin-top:5px;padding-top:5px}
.header-account-logout{color:#9e3d3a;cursor:pointer}
.workspace-dashboard{display:grid;gap:12px;margin:0}
.dashboard-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.dashboard-heading h1{margin:0;font-size:18px;font-weight:700;line-height:1.3;letter-spacing:-.2px;color:#173528}
.dashboard-heading #dashboard-updated{color:var(--muted);font-size:12px}
.dashboard-heading .btn{min-height:32px}
.workspace-dashboard a.btn svg{width:15px;height:15px}
.workspace-dashboard>.notice{margin:0}
#dashboard-data{display:grid;gap:18px}
.dashboard-loading,.dashboard-chart-empty{padding:25px 18px;color:var(--muted);text-align:center}
.dashboard-chart-empty{margin:0}
.dashboard-start{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 18px;border-color:#ccdfd3}
.dashboard-start-copy{flex:1 1 220px}
.dashboard-start-copy h2,.settings-guide p{margin:0}
.dashboard-start-copy h2{font-size:15px}
.dashboard-start-copy p{margin:4px 0 0;color:var(--muted);font-size:12px}
.dashboard-start .actions{gap:8px;flex-wrap:wrap}
.list-empty-state strong{display:block;margin-bottom:6px;color:var(--ink);font-size:15px}
.settings-guide{margin:0 0 14px;padding:12px 14px;border-radius:8px;background:var(--soft);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.settings-guide ol{margin:0;padding-inline-start:20px}
.settings-guide li+li{margin-top:3px}
.settings-guide p+p{margin-top:5px}
.settings-guide .btn{margin-top:8px}
.stack>.settings-guide{margin-bottom:0}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.dashboard-metric{display:grid;gap:9px;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:16px 18px;color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.dashboard-metric:hover{border-color:#abcdb9;box-shadow:0 4px 12px #153d2710}
.dashboard-tile-icon{width:34px;height:34px;display:inline-grid;place-items:center;border-radius:9px;background:#eef4f0;color:#23764f;flex:none}
.dashboard-tile-icon svg{width:17px;height:17px}
.dashboard-tile-icon.green{background:#e9f5ef;color:#257b54}
.dashboard-tile-icon.amber{background:#faf2dd;color:#88611a}
.dashboard-tile-icon.blue{background:#eaf3f9;color:#246386}
.dashboard-tile-icon.violet{background:#f0eef7;color:#655092}
.dashboard-metric>.dashboard-tile-icon{grid-column:2;grid-row:1}
.dashboard-metric-label{grid-area:1/1;font-weight:650;font-size:13px}
.dashboard-metric strong{grid-column:1/-1;text-align:left;font-size:clamp(24px,2.8vw,35px);line-height:1.1;font-variant-numeric:tabular-nums}
.dashboard-metric-detail{display:flex;align-items:center;justify-content:space-between;gap:4px;grid-column:1/-1;color:var(--muted);font-size:11px}
.dashboard-metric-detail svg{width:13px;height:13px;flex:none}
.dashboard-overview{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(255px,1fr);gap:14px;align-items:stretch}
.dashboard-section{min-width:0;padding:17px 19px}
.dashboard-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.dashboard-section h2{margin:0;font-size:16px}
.dashboard-section p:not(.dashboard-chart-empty){margin:6px 0 0;color:var(--muted);font-size:12px}
.dashboard-ranges{display:flex;gap:2px;padding:3px;background:#eff4f0;border:1px solid #e5ece7;border-radius:9px}
.dashboard-ranges .btn{padding:5px 8px;min-height:30px;background:transparent;border:1px solid transparent;font-size:11px}
.dashboard-ranges .btn[aria-pressed="true"]{background:#fff;border-color:#d5e5da;color:var(--green)}
.dashboard-chart-summary,.dashboard-chart-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--muted)}
.dashboard-chart-summary strong{font-size:25px;color:var(--ink);font-variant-numeric:tabular-nums}
.dashboard-chart-legend{margin-left:auto}
.dashboard-chart-legend span::before{content:"";display:inline-block;vertical-align:1px;background:#d5e6dc;width:8px;height:8px;margin-right:4px;border-radius:2px}
.dashboard-chart-legend .success::before,.dashboard-chart-bar .success{background:#338761}
.dashboard-chart-legend .failed::before,.dashboard-chart-bar .failed{background:#d48b45}
.dashboard-chart{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;list-style:none;padding:0;margin:12px 0 0}
.dashboard-chart>li{min-width:0;text-align:center}
.dashboard-chart-track{display:flex;align-items:flex-end;justify-content:center;height:clamp(88px,11vw,144px);border-bottom:1px solid #d9e7dd;background:repeating-linear-gradient(0deg,transparent 0 31px,#eef3ef 31px 32px)}
.dashboard-chart-bar{display:flex;flex-direction:column-reverse;justify-content:flex-start;width:min(70%,32px);overflow:hidden;border-radius:4px 4px 0 0;background:#d5e6dc}
.dashboard-chart small{display:block;min-height:17px;margin-top:6px;white-space:nowrap;font-size:9px;color:var(--muted)}
.dashboard-connection,.dashboard-storage>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0;border-top:1px solid #e7efe9}
.dashboard-workspace>header>div{min-width:0;overflow-wrap:anywhere}
.dashboard-storage>div{padding-bottom:8px}
.dashboard-storage strong{font-size:12px;font-variant-numeric:tabular-nums}
.dashboard-storage progress{height:8px;width:100%;accent-color:#348460}
.dashboard-workspace-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.dashboard-workspace-actions a,.dashboard-recent header a{display:inline-flex;gap:4px;align-items:center;text-decoration:none}
.dashboard-recent ul{list-style:none;margin:0;padding:0}
.dashboard-recent li{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #e7efe9}
.dashboard-recent li small{display:block;margin-top:4px;color:var(--muted)}
.dashboard-recent li .btn{min-height:32px}
@media(max-width:880px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-overview{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
    .header-centers{gap:6px}
    .header-account>.profile-entry{gap:5px;padding-inline:6px;max-width:min(160px,36vw)}
    .center-shortcut{padding-inline:8px}
    .center-shortcut span{display:none}
    .workspace-dashboard,#dashboard-data{gap:12px}
    .dashboard-metrics,.dashboard-overview{gap:8px}
    .dashboard-metric,.dashboard-section{padding:12px}
    .dashboard-metric{gap:8px}
    .dashboard-recent li{gap:6px}
}
@media(max-width:360px){.header-account>.profile-entry .profile-name{display:none}.dashboard-recent li>.dashboard-tile-icon{display:none}.dashboard-recent li{grid-template-columns:minmax(0,1fr) auto auto}}
@media(prefers-reduced-motion:reduce){.dashboard-metric{transition:none}}

.video-reference-group{display:grid;align-content:start;gap:10px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#f7faf8}
.video-reference-item{display:flex;align-items:center;gap:8px;min-width:0}
.video-reference-item>span{flex:1;overflow-wrap:anywhere}
.video-reference-item img{width:40px;height:40px;object-fit:cover;border-radius:6px;flex:none}
.video-reference-upload{position:relative;display:inline-flex;min-height:36px;align-items:center;padding:6px 11px;border:1px solid var(--line);border-radius:7px;background:white;cursor:pointer}
.video-reference-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.video-reference-upload:focus-within{outline:2px solid var(--green);outline-offset:2px}
.video-enabled{display:flex;align-items:center;gap:7px}
.video-reference-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin-top:12px}
.video-reference-choice{display:grid;gap:6px;align-content:start;min-width:0;padding:8px;border:1px solid var(--line);border-radius:8px;background:white;color:inherit;text-align:left;cursor:pointer}
.video-reference-choice:hover,.video-reference-choice:focus-visible{border-color:var(--green)}
.video-reference-choice img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:6px;background:#f3f7f4}
.video-reference-choice span{overflow-wrap:anywhere}
@media(max-width:600px){.video-settings-row{flex-direction:column;align-items:flex-start;gap:10px}.video-settings-row .actions{justify-content:flex-start}}

.password-input-wrap{position:relative;display:flex;align-items:center;width:100%}
.password-input-wrap input{width:100%;padding-right:54px}
.password-toggle{position:absolute;right:6px;border:0;background:transparent;color:var(--muted);font-size:11px;padding:4px 7px;border-radius:4px}
.password-toggle:hover{color:var(--green);background:var(--soft)}
.storage-progress.warn{accent-color:#c98a1c}
.storage-progress.danger{accent-color:#bc5148}
.storage-warn-text{color:#9a6b18}
.task-card-product{font-size:12px;color:var(--ink);margin:2px 0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:420px}
.center-shortcut{position:relative}
.center-shortcut .task-indicator{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 5px;border-radius:999px;font-size:10px;font-weight:700;line-height:1;background:var(--green);color:#fff;margin-left:4px}
.center-shortcut .task-indicator[data-tone="attention"]{background:var(--red)}
.field-head-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}
.field-head-row .link{font-size:12px;font-weight:500}
.login-notice{margin:0 0 14px;padding:10px 12px;border:1px solid #c7dfd0;border-radius:8px;background:#eef7f1;color:#1f5b41;font-size:13px;line-height:1.5}
.auth-wechat-card{margin-top:18px;padding:15px 16px;border-radius:14px;background:#ecfdf5;border:1px solid #bbf7d0;text-align:left}
.auth-wechat-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#166534;font-size:14px}
.auth-wechat-badge{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:#16a34a;color:#fff;font-size:12px;font-weight:700;flex-shrink:0}
.auth-wechat-desc{margin:0 0 13px;font-size:13px;line-height:1.6;color:#15803d}
.auth-wechat-desc strong{color:#14532d;font-weight:700}
.auth-wechat-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.auth-wechat-copy{display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;border-radius:999px;border:0;background:#16a34a;color:#fff;font-size:13px;font-weight:600;cursor:pointer}
.auth-wechat-copy:hover{background:#15803d}
.auth-wechat-secondary{display:inline-flex;align-items:center;justify-content:center;padding:7px 15px;border-radius:999px;border:1px solid #d1d5db;background:#fff;color:#374151;font-size:13px;font-weight:500;text-decoration:none}
.auth-wechat-secondary:hover{background:#f9fafb;border-color:#9ca3af}

/* R267: Unified modern SaaS polish, Auth Redesign, WeChat CS Modal & Per-Product AI Billing */
html{scrollbar-gutter:stable}
:root{--bg:#f4f7f5;--line:#dde6e0;--green:#1f7a51;--soft:#eaf5ef}
.panel{border-radius:12px;box-shadow:0 1px 3px rgba(18,42,31,.045),0 1px 2px rgba(18,42,31,.025);border-color:#dde6e0}
.panel-head{background:#fcfefd;padding:15px 20px}
.shell>.topbar{background:rgba(255,255,255,.94);backdrop-filter:blur(8px);box-shadow:0 1px 2px rgba(18,42,31,.04);border-bottom-color:#dde6e0}
.shell>.sidebar{background:#fff;border-right-color:#dde6e0}
.shell .nav{transition:background .15s ease,color .15s ease,transform .12s ease;color:#3a5247;font-weight:500}
.shell .nav:hover{background:#f1f7f3;color:var(--green)}
.shell .nav.active{background:#e7f4ec;color:#186341;font-weight:600;box-shadow:inset 3px 0 0 #1f7a51}
.btn{border-radius:8px;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease}
.btn.primary{background:#1f7a51;border-color:#1f7a51;box-shadow:0 1px 2px rgba(24,99,65,.18)}
.btn.primary:hover:not(:disabled){background:#186341;border-color:#186341;box-shadow:0 3px 10px -2px rgba(24,99,65,.28)}
input,select,textarea{border-radius:8px;border-color:#d2ded6;transition:border-color .15s ease,box-shadow .15s ease}
input:focus,select:focus,textarea:focus{border-color:#1f7a51;box-shadow:0 0 0 3px rgba(31,122,81,.13)}
.product-table tbody tr:hover td{background:#f8fbf9}
.product-table tbody tr:hover td[data-column=actions],.product-table tbody tr:hover td:first-child{background:#f8fbf9}
th{background:#f7faf8;font-weight:600;color:#4a6056}

/* Redesigned Login Page matching Register / Forgot Password */
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px 18px;background:radial-gradient(circle at 12% 10%,rgba(31,122,81,.12),transparent 42%),radial-gradient(circle at 88% 88%,rgba(22,163,74,.09),transparent 45%),linear-gradient(180deg,#f5f8f6 0%,#eef4f0 100%)}
.login-stage{width:min(452px,100%);display:flex;flex-direction:column;gap:18px}
.login-brand-top{display:flex;align-items:center;justify-content:center;gap:12px;text-decoration:none;color:var(--ink)}
.login-brand-top .logo{width:42px;height:42px;flex:none;filter:drop-shadow(0 4px 10px rgba(31,122,81,.16))}
.login-brand-top b{display:block;font-size:22px;letter-spacing:-.4px;line-height:1.15;color:#173528}
.login-brand-top small{display:block;font-size:12px;color:#546b60;margin-top:2px}
.login-card{width:100%;padding:30px 30px 26px;background:#fff;border:1px solid rgba(31,74,54,.09);border-radius:18px;box-shadow:0 18px 48px -18px rgba(17,45,32,.16),0 2px 6px rgba(17,45,32,.04)}
.login-card-head{margin-bottom:20px}
.login-card-head h2{font-size:21px;font-weight:700;letter-spacing:-.3px;color:#173528;margin:0 0 6px}
.login-card-head .subtitle{margin:0;font-size:13px;line-height:1.55;color:#5a7065}
.login-card form{display:flex;flex-direction:column;gap:15px}
.login-card .field{gap:6px;font-size:13px}
.login-card .field>span:first-child,.login-card .field>label{font-weight:600;color:#243d33;font-size:13px}
.login-card input[type=email],.login-card input[type=password],.login-card input[type=text],.login-card input:not([type]){height:42px;padding:9px 12px;font-size:14px;border-radius:10px;border-color:#cfdcd4}
.login-captcha-row{display:flex;align-items:stretch;gap:10px}
.login-captcha-row input{flex:1;min-width:0}
.login-captcha-image{flex:0 0 132px;height:42px;padding:0;border:1px solid #cfdcd4;border-radius:10px;background:#f5f9f6;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted)}
.login-captcha-image:hover{border-color:#1f7a51}
.login-captcha-image img{display:block;width:100%;height:100%;object-fit:cover}
.login-submit-btn{width:100%;height:44px;font-size:14px;font-weight:600;border-radius:10px;margin-top:2px}
.login-footer-links{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:2px;font-size:13px}
.login-footer-links .link{font-size:13px;font-weight:600}
.login-card .auth-wechat-card{margin-top:20px;padding:14px 16px;border-radius:14px;background:linear-gradient(135deg,#ecfdf5 0%,#f0fdf4 100%);border:1px solid #bbf7d0}

/* Persistent Customer Service Header Button & Modal */
.center-support-btn{background:#eef8f2;border:1px solid #cbe5d5;color:#1a6643;border-radius:9px;padding:6px 11px;font-weight:600;transition:background .15s ease,border-color .15s ease}
.center-support-btn:hover{background:#dff2e7;border-color:#9fd0b4;color:#145235}
.center-support-btn svg{color:#1f7a51}
.support-cs-backdrop{position:fixed;inset:0;z-index:1300;background:rgba(15,28,22,.52);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:20px}
.support-cs-backdrop[hidden]{display:none}
.support-cs-dialog{width:min(400px,100%);background:#fff;border-radius:18px;border:1px solid rgba(31,74,54,.1);box-shadow:0 24px 64px -16px rgba(15,35,26,.28);overflow:hidden;animation:supportPop .16s ease-out}
@keyframes supportPop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.support-cs-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 14px;background:linear-gradient(135deg,#eef9f2 0%,#f7fcf9 100%);border-bottom:1px solid #deece3}
.support-cs-badge{display:inline-block;padding:2px 9px;border-radius:999px;background:#1f7a51;color:#fff;font-size:11px;font-weight:600;margin-bottom:5px}
.support-cs-head h3{margin:0;font-size:17px;font-weight:700;color:#173528}
.support-cs-close{width:30px;height:30px;border:0;border-radius:8px;background:rgba(255,255,255,.75);color:#4f665b;font-size:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.support-cs-close:hover{background:#fff;color:#173528}
.support-cs-body{padding:20px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.support-cs-qr-frame{width:212px;height:212px;padding:10px;border-radius:14px;border:1px solid #d5e6dc;background:#fff;box-shadow:0 6px 20px -10px rgba(23,53,40,.18);display:flex;align-items:center;justify-content:center}
.support-cs-qr-img{width:100%;height:100%;object-fit:contain;border-radius:8px}
.support-cs-qr-empty{font-size:12px;line-height:1.6;color:#566b62;padding:12px}
.support-cs-wechat-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;width:100%;padding:10px 12px;border-radius:10px;background:#f5faf7;border:1px solid #dbe9e0;font-size:13px;color:#2b473b}
.support-cs-wechat-row strong{color:#14532d;font-size:14px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.support-cs-copy-btn{border:0;border-radius:999px;background:#1f7a51;color:#fff;padding:5px 13px;font-size:12px;font-weight:600;cursor:pointer}
.support-cs-copy-btn:hover{background:#186341}
.support-cs-notice{margin:0;font-size:12.5px;line-height:1.65;color:#566b62}
.support-cs-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 20px;border-top:1px solid #e6eee9;background:#fbfdfc}
.support-cs-link{font-size:12.5px;font-weight:600;color:#1f7a51;text-decoration:none}
.support-cs-link:hover{text-decoration:underline}
.support-cs-ok-btn{border:1px solid #cfe0d6;background:#fff;color:#243d33;border-radius:8px;padding:6px 16px;font-size:12.5px;font-weight:600;cursor:pointer}
.support-cs-ok-btn:hover{background:#f2f7f4}

/* Per-Product AI Cost Chip & Billing Ledger */
.ai-cost-chip{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:78px;padding:6px 9px;border-radius:8px;border:1px solid #e1eae4;background:#f8fbf9;color:#52695e;text-align:left;transition:border-color .15s ease,background .15s ease,transform .12s ease}
.ai-cost-chip strong{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;color:#3c5449;line-height:1.2}
.ai-cost-chip small{font-size:10px;line-height:1.3;color:#6b8075}
.ai-cost-chip.has-cost{border-color:#c6e2d0;background:#eef8f2}
.ai-cost-chip.has-cost strong{color:#176540}
.ai-cost-chip.has-cost small{color:#2d7a55}
.ai-cost-chip:hover{border-color:#1f7a51;background:#e4f4eb;transform:translateY(-1px)}
.ai-bill-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
.ai-bill-kpi{padding:12px 14px;border-radius:10px;background:#f6faf7;border:1px solid #dde8e1;display:flex;flex-direction:column;gap:4px}
.ai-bill-kpi span{font-size:11px;color:#5a7065}
.ai-bill-kpi strong{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;color:#173d2c}
.ai-bill-kpi:first-child{background:linear-gradient(135deg,#ecf8f1 0%,#f5fcf8 100%);border-color:#c3e3cf}
.ai-bill-kpi:first-child strong{color:#166534}
.ai-bill-table-wrap{border:1px solid #e1eae4;border-radius:10px;overflow-x:auto;background:#fff}
.ai-bill-table th,.ai-bill-table td{padding:10px 12px;vertical-align:middle}
.ai-bill-table td.ai-bill-cost,.ai-bill-table th.ai-bill-cost{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.ai-bill-table td.ai-bill-cost strong{color:#176540;font-size:13px}
.ai-bill-model{display:inline-block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;padding:2px 6px;border-radius:5px;background:#f3f7f4;color:#2e4a3d}
.ai-bill-empty{padding:26px 18px;border-radius:10px;background:#f7faf8;border:1px dashed #d3e1d8;text-align:center;color:#5a7065;font-size:12.5px;line-height:1.7}
.ai-bill-pager{padding:12px 2px 0}
.plan-upgrade-prompt{display:flex;flex-direction:column;gap:12px}
.plan-upgrade-prompt p{margin:0;line-height:1.7}
.plan-upgrade-pills{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.plan-locked-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:24px;border-radius:12px;background:linear-gradient(135deg,#f6faf8 0%,#fbfdfc 100%);border:1px dashed #c2d8ca}
.plan-locked-card h3{margin:0;font-size:16px;color:#173528}
.plan-locked-card p{margin:0;max-width:640px;font-size:13px;line-height:1.7}
.bulk-upgrade-bar{background:#f5faf7;color:#415c4f}

/* R270: Announcements Bell & Modal, Before/After Image Compare, Prohibited Words, Prompt Library */
.center-announce-btn{position:relative;gap:5px}
.announce-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 5px;border-radius:999px;font-size:10px;font-weight:700;background:#dc2626;color:#fff;line-height:1}
.announce-unread-badge[hidden]{display:none}
.announce-dialog{width:min(620px,96vw);max-height:84vh;display:flex;flex-direction:column}
.announce-head-actions{display:flex;align-items:center;gap:8px}
.announce-modal-body{padding:16px 20px 20px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;text-align:left}
.announce-empty{padding:28px 16px;text-align:center;color:#5a7065;font-size:13px;background:#f7faf8;border-radius:10px;border:1px dashed #d3e1d8}
.announce-item{padding:14px 16px;border-radius:12px;border:1px solid #e1eae4;background:#fff;display:flex;flex-direction:column;gap:8px}
.announce-item.is-unread{border-color:#a7d7ba;background:#f6fcf8}
.announce-item-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.announce-item-title-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:14px;color:#173528}
.announce-new-dot{width:8px;height:8px;border-radius:999px;background:#dc2626;flex:none}
.announce-tag{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600}
.announce-tag.pinned{background:#173528;color:#fff}
.announce-tag.lvl-info{background:#e8f1fb;color:#1d4ed8}
.announce-tag.lvl-feature,.announce-tag.lvl-success{background:#e6f6ec;color:#166534}
.announce-tag.lvl-maintenance,.announce-tag.lvl-warning{background:#fef3c7;color:#92400e}
.announce-tag.lvl-urgent{background:#fee2e2;color:#b91c1c}
.announce-time{font-size:12px;color:#6b8075;font-variant-numeric:tabular-nums}
.announce-content{margin:0;font-size:13px;line-height:1.68;color:#344e41;white-space:pre-line;word-break:break-word}

.media-compare-pill{position:absolute;left:7px;bottom:7px;z-index:3;border:0;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:600;background:rgba(20,58,41,.86);color:#fff;cursor:pointer;backdrop-filter:blur(4px);transition:background .15s ease}
.media-compare-pill:hover{background:#1f7a51}
.compare-modal{width:min(820px,96vw)}
.compare-wrap{display:flex;flex-direction:column;gap:12px;align-items:center}
.compare-stage{position:relative;width:100%;max-height:66vh;aspect-ratio:4/3;background:#f3f7f4;border-radius:12px;overflow:hidden;border:1px solid #d5e2da;user-select:none;touch-action:none;cursor:ew-resize}
.compare-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.compare-before-clip{position:absolute;inset:0;overflow:hidden}
.compare-divider{position:absolute;top:0;bottom:0;width:2px;background:#fff;box-shadow:0 0 0 1px rgba(15,35,26,.25),0 2px 10px rgba(0,0,0,.3);transform:translateX(-50%);pointer-events:none}
.compare-knob{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:999px;background:#1f7a51;color:#fff;border:2px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.28);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700}
.compare-pill{position:absolute;top:12px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;background:rgba(15,28,22,.72);color:#fff;backdrop-filter:blur(4px);pointer-events:none}
.compare-pill.before{left:12px}
.compare-pill.after{right:12px;background:rgba(31,122,81,.88)}
.compare-controls{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.compare-range{flex:1;min-width:180px;accent-color:#1f7a51}

.compliance-entry{color:#9a5b13;font-weight:600}
.pw-add-grid{display:grid;grid-template-columns:minmax(140px,1.4fr) 120px 110px minmax(120px,1fr) auto;gap:8px;margin:12px 0;align-items:center}
.pw-table-wrap{max-height:48vh;overflow:auto;margin-top:12px;border:1px solid #e1eae4;border-radius:10px}
.prompt-lib-entry{margin-left:8px;vertical-align:middle}
.prompt-lib-modal{width:min(940px,96vw)}
.prompt-lib-toolbar{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.prompt-lib-cats{display:flex;flex-wrap:wrap;gap:6px}
.prompt-lib-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:58vh;overflow-y:auto;padding-right:2px}
.prompt-lib-card{padding:14px;border-radius:12px;border:1px solid #dce6e0;background:#fff;display:flex;flex-direction:column;gap:8px}
.prompt-lib-card:hover{border-color:#9bc7ae;box-shadow:0 6px 18px -12px rgba(23,53,40,.22)}
.prompt-lib-meta{display:flex;flex-wrap:wrap;gap:6px;font-size:12px;color:#5a7065}
.prompt-lib-preview{margin:0;padding:9px 11px;border-radius:8px;background:#f5f9f6;border:1px solid #e3ece6;font-size:12px;line-height:1.55;color:#2c463a;white-space:pre-wrap;max-height:110px;overflow-y:auto;font-family:inherit}
.prompt-ai-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:13px 16px;margin-bottom:14px;border-radius:12px;background:linear-gradient(135deg,#ecf8f1 0%,#f5fcf8 100%);border:1px solid #c2e2cf}
.prompt-ai-banner strong{display:block;font-size:14px;color:#14532d;margin-bottom:3px}
.prompt-ai-banner p{margin:0;font-size:12.5px}
.prompt-assistant-modal{width:min(760px,96vw)}
.pa-wrap{display:flex;flex-direction:column;gap:12px}
.pa-wrap>p{margin:0;font-size:13px;line-height:1.6}
.pa-chip-group{display:flex;flex-direction:column;gap:7px}
.pa-chip-label{font-size:12.5px;font-weight:600;color:#264236}
.pa-chips{display:flex;flex-wrap:wrap;gap:6px}
.pa-gen-row{display:flex;align-items:center;gap:10px}
.pa-result-card{margin-top:4px;padding:15px 16px;border-radius:12px;background:#f6fbf8;border:1px solid #c4e2d0;display:flex;flex-direction:column;gap:10px}
.pa-summary{margin:0;font-size:12.5px;color:#244736;background:#fff;padding:8px 10px;border-radius:8px;border:1px solid #deece4}
.pa-refine-bar{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.pa-apply-bar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding-top:6px;border-top:1px dashed #d5e6dc}

/* R273/R274: Zero-Gap 52px Topbar, Compact Modern SaaS Header & Unified Page-Level Pill Tabs */
.shell,.shell.collapsed{grid-template-rows:52px minmax(0,1fr)}
.shell>.topbar{height:52px;padding:0 20px}
.center-shortcut,.header-account>.profile-entry{min-height:34px;padding:4px 10px;border-radius:8px}
.shell>.sidebar,.shell.collapsed>.sidebar{top:52px;height:calc(100vh - 52px);padding:14px 12px;gap:3px}
.shell .nav{padding:9px 11px;font-size:13px;border-radius:8px}
.shell .nav-title{margin:8px 10px 4px;font-size:11px;letter-spacing:.03em;color:#6c8076}
.shell .nav-divider{margin-top:12px;padding-top:10px;border-top:1px solid #ebf1ed}
.content{padding:14px 22px 24px}
.heading,.heading.dashboard-heading,.heading.task-page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;padding:0 0 10px;min-height:36px;border-bottom:1px solid #e4ece7}
.heading h1{font-size:18px;font-weight:700;line-height:1.3;margin:0;letter-spacing:-.2px;color:#173528}
.heading-title-group{display:inline-flex;align-items:baseline;gap:10px;flex-wrap:wrap;min-width:0}
.heading-sub{font-size:12px;color:#63786e;font-weight:400}
.heading .btn{min-height:32px;padding:5px 12px;font-size:12px}
.panel-head{padding:11px 16px}
.panel-head h2{font-size:15px}
.panel-content{padding:15px 16px}
.toolbar{padding:9px 14px;gap:10px}
.tab{padding:8px 0;font-size:12.5px}
.content>.seller-settings-tabs,.content>.seller-account-tabs,.content>.admin-subtabs,.content>.platform-settings-tabs,.content>.task-page-tabs,.seller-settings-tabs,.seller-account-tabs,.admin-subtabs,.platform-settings-tabs,.task-page-tabs{display:flex;gap:4px;margin:0 0 12px;padding:4px;background:#eaf1ec;border-radius:10px;width:fit-content;max-width:100%;overflow-x:auto;border:0;flex-wrap:nowrap}
.seller-settings-tabs .tab,.seller-account-tabs .tab,.admin-subtabs .tab,.platform-settings-tabs .tab,.task-page-tabs .tab{padding:6px 13px;border-radius:7px;font-size:12.5px;font-weight:500;color:#465d52;background:transparent;box-shadow:none;white-space:nowrap;text-decoration:none;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.seller-settings-tabs .tab:hover,.seller-account-tabs .tab:hover,.admin-subtabs .tab:hover,.platform-settings-tabs .tab:hover,.task-page-tabs .tab:hover{color:#173528;background:rgba(255,255,255,.65)}
.seller-settings-tabs .tab.active,.seller-account-tabs .tab.active,.admin-subtabs .tab.active,.platform-settings-tabs .tab.active,.task-page-tabs .tab.active{background:#fff;color:#176240;font-weight:600;box-shadow:0 1px 3px rgba(18,42,31,.09)}
.settings-inline-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 13px;margin-bottom:12px;border-radius:9px;background:#f3f9f5;border:1px solid #d5e6dc;font-size:12.5px;color:#2c473b}
.notice,.seller-notice{padding:9px 13px;margin-bottom:10px}
@media(max-width:760px){.shell,.shell.collapsed{grid-template-rows:52px minmax(0,1fr)}}
@media(max-width:720px){.content{padding:12px 14px 20px}.heading,.heading.dashboard-heading{flex-wrap:wrap;padding-bottom:8px}.heading-sub{display:none}.prompt-lib-grid{grid-template-columns:1fr}.pw-add-grid{grid-template-columns:1fr}}
@media(max-width:640px){.ai-bill-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.login-wrap{padding:18px 14px}.login-card{padding:24px 18px}.login-captcha-image{flex:0 0 124px}}
