
:root{--ink:#242820;--muted:#73776e;--line:#e5e2da;--paper:#fff;--bg:#f6f4ef;--green:#425b49;--green2:#304637;--red:#a23f36;--gold:#b28b53;--radius:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:9px;padding:9px 13px;font-weight:600}button:hover{border-color:#9ba79a}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:var(--red)}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{width:100%;padding:10px 11px;border:1px solid #dcded7;border-radius:9px;background:#fff;color:var(--ink);outline-color:#819886}textarea{min-height:90px;resize:vertical}.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.side{background:#202a22;color:#f6f4ee;padding:22px 15px;display:flex;flex-direction:column;gap:18px}.brand{padding:3px 10px 20px;border-bottom:1px solid #ffffff20}.brand strong{font-family:Georgia,serif;font-size:22px;letter-spacing:.3px}.brand small{display:block;color:#b9c4b8;margin-top:3px}.nav-label{font-size:10px;letter-spacing:1.5px;color:#9da99c;padding:0 10px;text-transform:uppercase}.nav{display:grid;gap:5px}.nav button{background:transparent;color:#dce4d9;border-color:transparent;text-align:left;display:flex;justify-content:space-between}.nav button.active,.nav button:hover{background:#ffffff13;color:#fff}.sidefoot{margin-top:auto;font-size:11px;color:#aeb9ad;line-height:1.7}.main{min-width:0;padding:25px clamp(14px,3vw,36px) 45px}.top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.eyebrow{color:var(--gold);font-size:11px;letter-spacing:1.7px;font-weight:800;text-transform:uppercase}.top h1{font-size:clamp(24px,3vw,33px);font-weight:650;letter-spacing:-.8px;margin:3px 0}.status{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.dot{width:8px;height:8px;border-radius:50%;background:#c58a36}.dot.ok{background:#45855c}.dot.bad{background:#b34a41}.actions{display:flex;gap:8px;flex-wrap:wrap}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:16px;box-shadow:0 2px 10px #252b2010}.panelhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.panelhead h2{font-size:16px;margin:0}.muted{color:var(--muted)}.small{font-size:12px}.toolbar{display:grid;grid-template-columns:minmax(180px,1fr) 170px 170px auto;gap:9px;margin-bottom:14px}.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:10px}table{border-collapse:collapse;width:100%;min-width:650px}th,td{text-align:left;padding:12px 13px;border-bottom:1px solid var(--line);vertical-align:middle}th{font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);background:#faf9f6}tr:last-child td{border-bottom:0}td strong{font-weight:650}.tag{display:inline-block;background:#edf1eb;color:#425b49;padding:3px 8px;border-radius:20px;font-size:11px}.rowactions{display:flex;gap:5px}.rowactions button{padding:6px 9px;font-size:12px}.pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:13px}.empty{text-align:center;padding:34px 15px;color:var(--muted)}.notice{padding:12px 14px;border-radius:10px;margin-bottom:15px;font-size:13px;background:#f8f0dc;border:1px solid #eadab2}.notice.error{background:#fff0ee;border-color:#f0c6c1;color:#8d3028}.notice.ok{background:#edf5ed;border-color:#cfe0ce;color:#315b37}.hidden{display:none!important}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.full{grid-column:1/-1}.field label{font-weight:650;font-size:12px}.field .hint{font-size:11px;color:var(--muted)}.required{color:var(--red)}.formfoot{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.formfoot .right{display:flex;gap:8px}.editorhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.images{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:10px}.imagecard{border:1px solid var(--line);border-radius:10px;overflow:hidden;position:relative}.imagecard img{width:100%;height:105px;object-fit:cover;display:block;background:#f2f1ec}.imagecard .imeta{padding:7px}.imagecard input{padding:6px;font-size:11px}.imagecard button{position:absolute;top:5px;right:5px;padding:2px 7px;color:#8c3029}.jsonhint{font-size:11px;color:var(--muted);margin-top:4px}.detailpre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f8f7f3;padding:14px;border-radius:10px;font:12px/1.6 ui-monospace,monospace;max-height:55vh;overflow:auto}.toastwrap{position:fixed;right:16px;bottom:16px;display:grid;gap:8px;z-index:20;max-width:min(390px,calc(100vw - 32px))}.toast{padding:12px 15px;background:#26372b;color:white;border-radius:10px;box-shadow:0 6px 22px #0002}.toast.error{background:#8f342c}.modalback{position:fixed;inset:0;background:#151a16a6;display:flex;align-items:center;justify-content:center;padding:15px;z-index:10}.modal{background:white;border-radius:14px;width:min(850px,100%);max-height:92vh;overflow:auto;padding:22px}.modal.smallmodal{width:min(500px,100%)}.modalhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}.modalhead h2{font-size:19px;margin:0}.progress{height:4px;background:#e8e8e2;border-radius:5px;overflow:hidden}.progress span{display:block;height:100%;width:0;background:var(--gold);transition:width .2s}.mobilemenu{display:none}.readonly{background:#f5f4f0;color:#777}.schemafoot{font-size:12px;color:var(--muted);line-height:1.6}
@media(max-width:850px){.shell{grid-template-columns:1fr}.side{padding:12px;gap:10px}.brand{padding:4px 8px 10px;border:0}.brand strong{font-size:19px}.nav-label,.sidefoot{display:none}.nav{display:flex;overflow:auto;padding-bottom:3px}.nav button{white-space:nowrap;padding:8px 10px}.main{padding:16px 12px 30px}.toolbar{grid-template-columns:1fr 1fr}.toolbar input{grid-column:1/-1}.top{align-items:flex-start}.formgrid{grid-template-columns:1fr}.field.full{grid-column:auto}.panel{padding:13px}.actions{justify-content:flex-end}}
@media(max-width:470px){.top{display:block}.top .actions{margin-top:12px}.toolbar{grid-template-columns:1fr}.toolbar input{grid-column:auto}.pagination{align-items:flex-start;flex-direction:column}.formfoot{align-items:flex-start;flex-direction:column}.formfoot .right{width:100%}.formfoot button{flex:1}}

/* Mobile-first responsive refinements */
html{width:100%;min-width:0;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{width:100%;min-width:0;overflow-x:hidden}.shell,.main,.side{min-width:0;max-width:100%}img{max-width:100%}button,input,select,textarea{max-width:100%;min-width:0}button{min-height:40px}.tablewrap{max-width:100%;-webkit-overflow-scrolling:touch}.tablewrap table{width:100%}.modal{min-width:0;overflow-wrap:anywhere}.formgrid>*{min-width:0}
@media(max-width:850px){
 .shell{display:flex;flex-direction:column;min-height:100dvh}
 .side{position:sticky;top:0;z-index:8;width:100%;padding:10px 12px 8px;gap:8px;box-shadow:0 2px 12px #18251b18}
 .brand{padding:0 3px 5px;display:flex;align-items:baseline;justify-content:space-between;gap:8px}
 .brand strong{font-size:20px;line-height:1.25}.brand small{margin:0;font-size:11px}
 .nav{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;max-width:100%;padding:1px 0 4px;scrollbar-width:thin;overscroll-behavior-x:contain}
 .nav button{flex:0 0 auto;white-space:nowrap;min-height:38px;padding:8px 11px;font-size:12px}
 .main{width:100%;padding:15px 12px 28px}
 .top{display:flex;align-items:flex-start;flex-wrap:wrap;gap:10px;margin-bottom:15px}.top>div:first-child{flex:1 1 180px;min-width:0}.top h1{font-size:clamp(23px,6vw,30px);overflow-wrap:anywhere}.top .actions{width:100%;justify-content:flex-start}.top .actions button{flex:1 1 auto}
 .panel{padding:13px;margin-bottom:12px;border-radius:12px}.panelhead{align-items:flex-start;flex-wrap:wrap}.toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.toolbar input:first-child{grid-column:1/-1}.toolbar input,.toolbar select{min-height:42px}
 .formgrid{grid-template-columns:minmax(0,1fr);gap:13px}.field.full{grid-column:auto}.field input:not([type=checkbox]),.field select,.field textarea{font-size:16px;min-height:43px}.field textarea{min-height:88px}
 .images{grid-template-columns:repeat(2,minmax(0,1fr))}.imagecard img{height:125px}.imagecard .imeta input{font-size:14px}
 .modalback{align-items:flex-end;justify-content:center;padding:0}.modal{width:100%;max-width:none;max-height:94dvh;border-radius:18px 18px 0 0;padding:17px 14px calc(18px + env(safe-area-inset-bottom));overflow-y:auto}.modalhead{position:sticky;top:-17px;background:#fff;padding:10px 0 12px;margin:0 0 13px;z-index:2;border-bottom:1px solid var(--line)}.modalhead h2{font-size:17px;overflow-wrap:anywhere}.modal .formfoot{position:sticky;bottom:calc(-18px - env(safe-area-inset-bottom));background:#fff;padding:12px 0 calc(6px + env(safe-area-inset-bottom));z-index:2}.formfoot .right{width:100%}.formfoot .right button{flex:1}
 .detailpre{max-height:60dvh;font-size:11px;overflow-wrap:anywhere}.toastwrap{right:10px;bottom:calc(10px + env(safe-area-inset-bottom));left:10px;max-width:none}.toast{font-size:13px}
}
@media(max-width:560px){
 .top{display:block}.top .actions{display:grid;grid-template-columns:1fr 1fr;margin-top:12px}.top .actions button{padding:10px 8px;font-size:13px}
 .toolbar{grid-template-columns:minmax(0,1fr)}.toolbar input:first-child{grid-column:auto}
 .tablewrap{border:0;overflow:visible}.tablewrap table,.tablewrap tbody{display:block;width:100%;min-width:0}.tablewrap thead{display:none}.tablewrap tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 10px;padding:10px 12px;margin:0 0 10px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 1px 4px #20282008}.tablewrap td{display:block;min-width:0;padding:7px 0;border:0;overflow-wrap:anywhere;word-break:break-word;font-size:12px}.tablewrap td:first-child{grid-column:1/-1;padding-bottom:9px;border-bottom:1px solid var(--line);margin-bottom:4px;font-size:13px}.tablewrap td:nth-child(2),.tablewrap td:nth-child(3),.tablewrap td:nth-child(4){min-width:0}.tablewrap td:nth-last-child(2){grid-column:1/-1}.tablewrap td:last-child{grid-column:1/-1;padding-top:9px;border-top:1px solid var(--line);margin-top:4px}.rowactions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.rowactions button{padding:8px 5px;min-height:38px;font-size:12px}.pagination{flex-direction:column;align-items:stretch}.pagination .actions{display:grid;grid-template-columns:1fr 1fr}.pagination .actions button{min-width:0;padding:8px 5px;font-size:12px}.panelhead .tag{max-width:100%;overflow-wrap:anywhere}
 .images{grid-template-columns:repeat(2,minmax(0,1fr))}.imagecard img{height:105px}.formfoot{gap:9px}.formfoot .right{display:grid;grid-template-columns:1fr 1fr}.schemafoot{overflow-wrap:anywhere}
}
@media(max-width:360px){.brand strong{font-size:18px}.brand small{font-size:10px}.main{padding-left:9px;padding-right:9px}.panel{padding:10px}.top .actions{grid-template-columns:1fr}.tablewrap tr{padding:8px}.images{grid-template-columns:minmax(0,1fr)}.imagecard img{height:150px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Quill article editor */
.article-editor-field{grid-column:1/-1!important}.quill-shell{position:relative;border:1px solid #dcded7;border-radius:12px;overflow:visible;background:#fff;min-width:0;box-shadow:0 2px 10px #20282008}.quill-shell .ql-toolbar.ql-snow{border:0;border-bottom:1px solid var(--line);background:linear-gradient(#fff,#faf9f6);padding:10px;display:flex;align-items:center;align-content:flex-start;flex-wrap:wrap;gap:5px;position:relative;z-index:2;border-radius:12px 12px 0 0}.quill-shell .ql-toolbar .ql-formats{display:inline-flex;align-items:center;gap:2px;margin:0 5px 2px 0;padding:2px 5px;border:1px solid #ebe9e3;border-radius:8px;background:#fff;max-width:100%}.quill-shell .ql-toolbar button,.quill-shell .ql-toolbar select{float:none;margin:0}.quill-shell .ql-toolbar button{width:28px;height:28px;padding:3px}.quill-shell .ql-toolbar select{height:28px;max-width:115px;font-size:12px}.quill-shell .ql-toolbar .ql-header{width:82px}.quill-shell .ql-toolbar .ql-size{width:84px}.quill-shell .ql-toolbar .ql-font{width:105px}.quill-shell .ql-toolbar button:hover,.quill-shell .ql-toolbar button.ql-active{background:#edf2eb;border-radius:5px}.quill-shell .ql-toolbar button.editor-undo,.quill-shell .ql-toolbar button.editor-redo{font-size:17px;font-weight:700;color:#425b49}.quill-shell .ql-container.ql-snow{border:0;font-size:16px;border-radius:0 0 12px 12px}.quill-shell .ql-editor{min-height:420px;line-height:1.8;padding:22px clamp(14px,2.5vw,28px);overflow-wrap:anywhere}.quill-shell .ql-editor.ql-blank::before{font-style:normal;color:#9a9c94;left:22px;right:22px}.quill-shell .ql-editor h1{font-size:2em}.quill-shell .ql-editor h2{font-size:1.65em}.quill-shell .ql-editor h3{font-size:1.35em}.quill-shell .ql-editor h4{font-size:1.15em}.quill-shell .ql-editor blockquote{border-left:4px solid #8a9d8b;color:#555f54;background:#f7f8f5;padding:9px 14px}.quill-shell .ql-editor pre.ql-syntax{background:#202820;color:#f5f5f0;border-radius:8px;padding:14px;white-space:pre-wrap}.quill-shell .ql-editor .ql-font-serif{font-family:Georgia,serif}.quill-shell .ql-editor .ql-font-monospace{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.quill-shell .ql-editor .ql-size-12px{font-size:12px}.quill-shell .ql-editor .ql-size-14px{font-size:14px}.quill-shell .ql-editor .ql-size-16px{font-size:16px}.quill-shell .ql-editor .ql-size-18px{font-size:18px}.quill-shell .ql-editor .ql-size-20px{font-size:20px}.quill-shell .ql-editor .ql-size-24px{font-size:24px}.quill-shell .ql-editor .ql-size-28px{font-size:28px}.quill-shell .ql-editor .ql-size-32px{font-size:32px}.quill-shell .ql-editor .ql-size-36px{font-size:36px}.quill-shell .ql-modura-image{display:block;clear:both;margin:16px auto;text-align:center;max-width:100%}.quill-shell .ql-modura-image img{display:inline-block;max-width:100%;height:auto;border-radius:8px;box-shadow:0 2px 12px #00000012}.quill-shell .ql-modura-image.align-left{text-align:left}.quill-shell .ql-modura-image.align-right{text-align:right}.quill-shell .ql-modura-image.align-center{text-align:center}.quill-extras{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 12px;border-top:1px solid var(--line);background:#faf9f6;border-radius:0 0 12px 12px}.quill-extras button{font-size:12px;padding:7px 10px;min-height:34px}.quill-stats{margin-left:auto;color:var(--muted);font-size:11px;white-space:nowrap}.quill-delta-preview{display:none;margin:0;padding:12px;background:#202820;color:#e7eee5;max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}.quill-delta-preview.open{display:block}.product-mention-menu{position:fixed;z-index:1000;width:min(360px,calc(100vw - 24px));max-height:260px;overflow:auto;background:#fff;border:1px solid #d9ded5;border-radius:10px;box-shadow:0 12px 35px #17201728;padding:5px;display:grid;gap:3px}.product-mention-menu button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:9px 10px;border:0;border-radius:7px;min-height:42px}.product-mention-menu button:hover,.product-mention-menu button:focus{background:#edf2eb;outline:0}.product-mention-menu small{display:block;color:var(--muted);font-size:10px;font-weight:400;overflow-wrap:anywhere}.product-picker{position:fixed;inset:0;z-index:40;background:#101510a8;display:flex;align-items:center;justify-content:center;padding:14px}.product-picker-card{background:#fff;border-radius:14px;width:min(650px,100%);max-height:85vh;display:flex;flex-direction:column;padding:17px;box-shadow:0 16px 50px #0003}.product-picker-list{overflow:auto;display:grid;gap:7px;margin-top:12px}.product-choice{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;padding:12px;border:1px solid var(--line);border-radius:9px}.product-choice small{display:block;color:var(--muted);font-weight:400;overflow-wrap:anywhere}.product-choice:hover{background:#f5f7f3;border-color:#9eae9e}@media(max-width:650px){.quill-shell .ql-toolbar.ql-snow{padding:7px;gap:3px}.quill-shell .ql-toolbar .ql-formats{margin:0 2px 3px 0;padding:2px 3px}.quill-shell .ql-toolbar button{width:27px;height:27px}.quill-shell .ql-toolbar select{max-width:95px}.quill-shell .ql-editor{min-height:340px;padding:16px}.quill-extras{gap:6px;padding:8px}.quill-stats{flex-basis:100%;margin-left:0}.product-mention-menu{max-height:220px}}


/* ModuraSpace professional brand system */
:root{--ink:#202720;--muted:#697268;--line:#e1e5dd;--paper:#fff;--bg:#f5f6f2;--green:#314d3a;--green2:#233b2b;--gold:#c5a16b;--radius:15px;--focus:#77937b}
body{font-family:Inter,"Aptos",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.01em}
.side{background:linear-gradient(180deg,#1c2b21 0%,#25382b 100%);padding:22px 14px;box-shadow:8px 0 28px #1523180a}
.brand{display:flex;align-items:center;gap:11px;padding:4px 8px 20px}.brand img{width:42px;height:42px;flex:0 0 42px;display:block}.brand strong{font-family:Georgia,"Times New Roman",serif;font-size:21px;letter-spacing:-.45px}.brand small{font-size:11px;letter-spacing:.03em}
.nav-label{margin-top:2px}.nav button{min-height:42px;border-radius:9px;font-weight:550;letter-spacing:0}.nav button.active{background:#ffffff19;box-shadow:inset 3px 0 0 var(--gold)}
.main{padding-top:30px}.panel{box-shadow:0 5px 24px #20282008;border-color:#e5e8e1}.top h1{font-weight:680;letter-spacing:-1.1px}.eyebrow{letter-spacing:1.4px}
button,input,select,textarea{transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #8ca58e;outline-offset:2px}
.quill-shell{overflow:visible;border:1px solid #d7ded5;border-radius:13px;box-shadow:0 6px 24px #1b2a1d0b}
.quill-shell .ql-toolbar.ql-snow{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:7px;padding:10px;background:#fbfcfa;border-radius:13px 13px 0 0}
.quill-shell .ql-toolbar .ql-formats{display:flex;align-items:center;justify-content:flex-start;flex:0 0 auto;gap:2px;float:none;margin:0;padding:3px 5px;border:1px solid #e5e9e2;border-radius:9px;background:#fff;min-height:36px}
.quill-shell .ql-toolbar button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 29px;width:29px;height:29px;min-height:29px;padding:4px;border-radius:6px}
.quill-shell .ql-toolbar select{display:inline-block;flex:0 0 auto;width:auto!important;min-width:0;height:30px;min-height:30px;max-width:100%;padding:2px 22px 2px 7px;border:1px solid #e5e9e2;border-radius:6px;background-color:#fff;font-size:12px;line-height:1.2}
.quill-shell .ql-toolbar .ql-header{width:112px!important}.quill-shell .ql-toolbar .ql-font{width:88px!important}.quill-shell .ql-toolbar .ql-size{width:82px!important}.quill-shell .ql-toolbar .ql-color,.quill-shell .ql-toolbar .ql-background{width:35px!important;padding-right:3px}
.quill-shell .ql-toolbar .ql-picker{flex:0 0 auto}.quill-shell .ql-toolbar .ql-picker-label{height:29px;display:flex;align-items:center}.quill-shell .ql-toolbar button:hover,.quill-shell .ql-toolbar button.ql-active{background:#eaf1e8}.quill-shell .ql-container.ql-snow{border:0;border-radius:0 0 12px 12px}.quill-shell .ql-editor{min-height:440px;padding:24px clamp(16px,3vw,34px);font-size:16px;line-height:1.82;color:#2b312b}
.quill-shell .ql-editor .ql-product-mention{display:inline-flex;align-items:center;vertical-align:baseline;padding:2px 8px;margin:0 2px;border:1px solid #cbd8c9;border-radius:6px;background:#edf4eb;color:#294d32;font-size:.92em;font-weight:650;white-space:nowrap;cursor:default}
.quill-shell .ql-editor .ql-modura-image{padding:4px;border-radius:9px}.quill-shell .ql-editor .ql-modura-image img{max-width:100%;object-fit:contain}
.quill-extras{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:11px 13px;background:#f8faf7;border-top:1px solid #e6eae3;border-radius:0 0 13px 13px}.quill-extras button{min-height:36px;padding:7px 11px;font-size:12px;border-color:#dce3da;background:white}.quill-extras button[data-quill-action=product]{background:#304d39;border-color:#304d39;color:#fff}.quill-stats{font-variant-numeric:tabular-nums}
.product-mention-menu{border-color:#d7e0d5;border-radius:12px;padding:6px;box-shadow:0 16px 44px #14201630}.product-mention-menu button{min-width:0;width:100%;background:white}.product-mention-menu button strong{flex:0 0 auto;font-size:11px;color:#35533a;background:#edf4eb;padding:4px 6px;border-radius:5px}
@media(max-width:850px){.side{box-shadow:0 5px 18px #15231812}.brand{padding:0 3px 5px}.brand img{width:34px;height:34px;flex-basis:34px}.brand strong{font-size:19px}.nav button.active{box-shadow:inset 0 -2px 0 var(--gold)}.main{padding-top:17px}}
@media(max-width:650px){.quill-shell .ql-toolbar.ql-snow{gap:6px;padding:8px}.quill-shell .ql-toolbar .ql-formats{min-height:34px;padding:2px 4px}.quill-shell .ql-toolbar button{flex-basis:28px;width:28px;height:28px;min-height:28px}.quill-shell .ql-toolbar .ql-header{width:100px!important}.quill-shell .ql-toolbar .ql-font{width:76px!important}.quill-shell .ql-toolbar .ql-size{width:72px!important}.quill-shell .ql-editor{min-height:340px;padding:17px 14px}.quill-extras{gap:6px}.quill-extras button{flex:0 0 auto}.quill-stats{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){button,input,select,textarea{transition:none!important}}

/* Article editor and SEO fields are intentionally separate sections. */
.form-section-heading{grid-column:1/-1;display:flex;flex-direction:column;gap:4px;padding:15px 17px;margin:12px 0 2px;border:1px solid #e4e7df;border-left:4px solid #3d5b43;border-radius:10px;background:linear-gradient(110deg,#f5f7f2,#fff);min-width:0}.form-section-heading strong{font-size:14px;letter-spacing:.01em;color:#263b2b}.form-section-heading span{font-size:12px;line-height:1.55;color:#687267}.seo-section-heading{margin-top:22px;border-left-color:#9b8a63;background:linear-gradient(110deg,#faf8f1,#fff)}.seo-section-heading strong{color:#55492f}
.product-thumb{width:44px;height:44px;flex:0 0 44px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #e4e7df;border-radius:8px;background:#f3f5f0;color:#53664f;font-size:15px;font-weight:700}.product-thumb img{width:100%;height:100%;display:block;object-fit:cover}.product-thumb.is-fallback{background:linear-gradient(135deg,#edf2e9,#f8f7f2)}.product-mention-menu button{justify-content:flex-start;min-height:58px}.product-option-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;text-align:left}.product-option-copy strong{font-size:12px;line-height:1.35;overflow-wrap:anywhere}.product-option-copy small{font-size:10px;line-height:1.4;overflow-wrap:anywhere}.product-mention-id{font:10px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;color:#52664f;overflow-wrap:anywhere;max-width:34%;text-align:right}.mention-thumb{width:38px;height:38px;flex-basis:38px}.product-choice{justify-content:flex-start;min-height:66px}.picker-thumb{width:48px;height:48px;flex-basis:48px}.product-choice-action{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:0 0 auto}.product-choice-action small{font-size:10px;color:var(--muted)}.product-choice .tag{max-width:150px;overflow-wrap:anywhere;white-space:normal}
@media(max-width:520px){.form-section-heading{padding:12px}.product-thumb{width:38px;height:38px;flex-basis:38px}.product-choice{padding:9px;gap:8px}.product-choice .tag{font-size:10px;max-width:110px}.product-mention-id{max-width:29%;font-size:9px}}

/* Article-body insertion tools live in Quill's own toolbar, not in the SEO form. */
.quill-shell .ql-toolbar .ql-insert-tools{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:4px 6px;background:#f4f7f2;border-color:#dfe7dc}
.quill-shell .ql-toolbar .ql-insert-tools button{width:auto;min-width:0;height:30px;min-height:30px;padding:5px 9px;border:1px solid #d9e2d6;border-radius:7px;background:#fff;color:#304a36;font-size:11px;font-weight:650;white-space:nowrap}
.quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="product"],.quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="article"],.quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="newsletter"]{background:#304d39;border-color:#304d39;color:#fff}
.quill-shell .ql-toolbar .ql-insert-tools button:hover,.quill-shell .ql-toolbar .ql-insert-tools button:focus-visible{background:#e7efe4;color:#263f2d;outline:2px solid #b8cbb4;outline-offset:1px}
.quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="product"]:hover,.quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="article"]:hover,.quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="newsletter"]:hover{background:#42664b;color:#fff}
.quill-shell .ql-toolbar .ql-stats-wrap{margin-left:auto;max-width:100%;border-color:transparent;background:transparent}
.quill-shell .ql-toolbar .quill-stats{font-size:10px;color:#687568;white-space:nowrap}
.quill-shell .ql-article-mention{display:inline-flex;align-items:center;vertical-align:baseline;padding:2px 8px;margin:0 2px;border:1px solid #d5c9e8;border-radius:6px;background:#f2ecfa;color:#5b3e83;font-size:.92em;font-weight:650;white-space:nowrap;cursor:default}
.picker-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.article-choice{min-height:62px}
@media(max-width:650px){.quill-shell .ql-toolbar .ql-insert-tools{flex-basis:100%;margin:2px 0 0;padding:5px}.quill-shell .ql-toolbar .ql-insert-tools button{font-size:10px;padding:5px 7px}.quill-shell .ql-toolbar .ql-stats-wrap{margin-left:0}.quill-shell .ql-toolbar .ql-stats-wrap .quill-stats{white-space:normal}}

/* Article body tools: one cohesive toolbar group, with all insert actions scoped to description. */
.quill-shell .ql-toolbar .ql-insert-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:5px 7px;background:#f1f5ef;border:1px solid #dce5d9;border-radius:10px}
.quill-shell .ql-toolbar .ql-insert-tools button{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;height:32px;min-height:32px;padding:6px 10px;border:1px solid #d6dfd3;border-radius:7px;background:#fff;color:#304a36;font-size:11px;font-weight:680;line-height:1.1;white-space:nowrap;box-shadow:0 1px 1px #14201608}
.quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="product"],.quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="article"]{background:#304d39;border-color:#304d39;color:#fff}
.quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="newsletter"]{background:#fffdf8;border-color:#d8cda9;color:#64552f}
.quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="delta"]{background:#25352a;border-color:#25352a;color:#fff}
.quill-shell .ql-toolbar .ql-insert-tools button:hover,.quill-shell .ql-toolbar .ql-insert-tools button:focus-visible{filter:brightness(.97);outline:2px solid #b7c9b4;outline-offset:1px}
.quill-shell .ql-toolbar .ql-stats-wrap{margin-left:auto;max-width:100%;border-color:transparent;background:transparent}
.quill-shell .ql-toolbar .quill-stats{font-size:10px;color:#687568;white-space:nowrap}
.quill-shell .ql-article-mention{display:inline-flex;align-items:center;vertical-align:baseline;padding:2px 8px;margin:0 2px;border:1px solid #d5c9e8;border-radius:6px;background:#f2ecfa;color:#5b3e83;font-size:.92em;font-weight:650;white-space:nowrap;cursor:default}
.delta-json-backdrop{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:18px;background:#101510a8;backdrop-filter:blur(3px)}
.delta-json-card{display:flex;flex-direction:column;width:min(900px,100%);max-height:min(86dvh,900px);overflow:hidden;border:1px solid #dfe5dc;border-radius:16px;background:#fff;box-shadow:0 24px 80px #0004}
.delta-json-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 19px;border-bottom:1px solid #e7ebe4;background:#fbfcfa}
.delta-json-head>div{display:grid;gap:4px;min-width:0}.delta-json-head strong{font-size:15px;color:#263b2b}.delta-json-head span{font-size:12px;line-height:1.45;color:#6d776a}
.delta-json-close{flex:0 0 auto;min-height:34px;padding:7px 13px;border:1px solid #d8dfd5;border-radius:8px;background:#fff;color:#304a36;font-size:12px;font-weight:650}
.delta-json-content{margin:0;padding:18px;overflow:auto;white-space:pre;tab-size:2;background:#202820;color:#e8eee5;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:normal}
@media(max-width:650px){.quill-shell .ql-toolbar .ql-insert-tools{flex-basis:100%;margin:3px 0 0;padding:6px}.quill-shell .ql-toolbar .ql-insert-tools button{flex:1 1 auto;font-size:10px;padding:6px 8px}.quill-shell .ql-toolbar .ql-stats-wrap{margin-left:0}.quill-shell .ql-toolbar .ql-stats-wrap .quill-stats{white-space:normal}.delta-json-backdrop{padding:9px}.delta-json-card{max-height:90dvh;border-radius:12px}.delta-json-head{padding:13px}.delta-json-content{padding:13px;font-size:11px}}

.image-settings-form{padding:18px;display:grid;gap:18px}.image-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.image-setting-field{display:grid;gap:7px;min-width:0}.image-setting-field>span{font-size:12px;font-weight:650;color:#38473a}.image-setting-field select{width:100%;min-height:40px;padding:8px 10px;border:1px solid #dce2d8;border-radius:8px;background:#fff;color:#29372c}.image-settings-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:14px;border-top:1px solid #e7ebe4}.image-settings-actions button{min-height:37px;padding:8px 13px;border:1px solid #d8dfd5;border-radius:8px;background:#fff;color:#304a36;font-size:12px;font-weight:650}.image-settings-actions button.primary{background:#304d39;color:#fff;border-color:#304d39}
@media(max-width:650px){.image-settings-form{padding:13px}.image-settings-grid{grid-template-columns:1fr;gap:11px}.image-settings-actions button{flex:1}}


/* CMS 2.0: login, display modes, accessible bottom sheet and theme system */
:root{color-scheme:light;--surface-2:#f8faf7;--surface-3:#eef2ec;--sheet-shadow:0 -18px 60px #14201630}
html[data-theme="dark"]{color-scheme:dark;--ink:#edf1eb;--muted:#aeb9ad;--line:#39463b;--paper:#202a22;--bg:#141b16;--green:#78967d;--green2:#304637;--surface-2:#202a22;--surface-3:#2a372c;--focus:#a8c5a9}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] button,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#202a22;color:var(--ink);border-color:#465448}
html[data-theme="dark"] .panel,html[data-theme="dark"] .modal,html[data-theme="dark"] .bottom-sheet,html[data-theme="dark"] .product-picker-card,html[data-theme="dark"] .delta-json-card{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .top,html[data-theme="dark"] .modalhead,html[data-theme="dark"] .formfoot,html[data-theme="dark"] .delta-json-head{background:var(--bg);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .document-tile,html[data-theme="dark"] .document-card,html[data-theme="dark"] .tablewrap tr,html[data-theme="dark"] .guide-content section,html[data-theme="dark"] .custom-setting-row{background:#202a22;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .document-thumb,html[data-theme="dark"] .thumb-fallback{background:#2a372c;color:#d9e5d8}
html[data-theme="dark"] .sheet-field,html[data-theme="dark"] .sheet-description,html[data-theme="dark"] .sheet-meta{border-color:var(--line);background:#202a22}
html[data-theme="dark"] .sheet-field strong,html[data-theme="dark"] .guide-content h2,html[data-theme="dark"] .guide-content h3{color:var(--ink)}
html[data-theme="dark"] .quill-shell,html[data-theme="dark"] .quill-shell .ql-toolbar.ql-snow,html[data-theme="dark"] .quill-shell .ql-toolbar .ql-formats,html[data-theme="dark"] .quill-shell .ql-container.ql-snow{background:#202a22;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .quill-shell .ql-editor{color:#edf1eb}
html[data-theme="dark"] .quill-shell .ql-toolbar button,html[data-theme="dark"] .quill-shell .ql-toolbar select{color:var(--ink)}
html[data-theme="dark"] .notice{background:#302b1d;color:#f1e5c5;border-color:#665b3b}
html[data-theme="dark"] .notice.ok{background:#1e3324;color:#d5ebd6;border-color:#3e6245}
html[data-theme="dark"] .detailpre,html[data-theme="dark"] .delta-json-content{background:#101712;color:#e7eee5}
.login-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 10%,#dce8d9,transparent 34%),linear-gradient(145deg,#f4f6f1,#e8eee6)}
.login-card{width:min(430px,100%);display:grid;gap:12px;padding:34px;border:1px solid #dce4d9;border-radius:22px;background:#fff;box-shadow:0 22px 70px #1c30201b}
.login-logo{width:64px;height:64px;margin-bottom:6px}.login-card h1{margin:0;font:600 30px/1.2 Georgia,serif;color:#263b2b}.login-card p{margin:0 0 7px}.login-card label{font-size:12px;font-weight:700;color:#354638}.login-card input{min-height:48px;font-size:16px}.login-submit{min-height:48px;margin-top:4px}.login-error{min-height:18px;color:#a23f36;font-size:12px}
.viewbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 13px}.viewbar>span{font-size:12px;font-weight:700;color:var(--muted);margin-right:4px}.view-choice{min-height:34px;padding:6px 11px;font-size:12px}.view-choice.active{background:var(--green);border-color:var(--green);color:#fff}
.document-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:13px}
.document-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:13px}
.document-tile{min-width:0;padding:0;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;text-align:left;border:1px solid var(--line);border-radius:13px;background:var(--paper);color:var(--ink);box-shadow:0 3px 14px #1523180a;transition:transform .16s ease,box-shadow .16s ease}
.document-tile:hover{transform:translateY(-2px);box-shadow:0 9px 24px #15231816;border-color:#a8b8a5}
.document-thumb{width:100%;aspect-ratio:3/2;display:grid;place-items:center;overflow:hidden;background:#f0f3ed;color:#667b65;font:600 42px Georgia,serif}
.document-thumb img,.document-thumb video{width:100%;height:100%;object-fit:cover;display:block}
.document-tile-copy{display:grid;gap:4px;padding:10px 11px;min-width:0}.document-tile-copy strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere}.document-tile-copy small{font-size:10px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.card-tile{display:grid;grid-template-columns:112px minmax(0,1fr);flex-direction:row;align-items:center;min-height:100px}.card-tile .document-thumb{width:112px;height:100%;min-height:100px;aspect-ratio:auto}.card-tile .document-tile-copy{padding:13px}
.sheet-backdrop{position:fixed;inset:0;z-index:10020;display:flex;align-items:flex-end;justify-content:center;background:#1118119c;backdrop-filter:blur(3px);animation:sheetFade .18s ease}
.bottom-sheet{width:min(850px,100%);max-height:min(91dvh,920px);overflow:auto;padding:10px 22px calc(20px + env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:22px 22px 0 0;background:var(--paper);color:var(--ink);box-shadow:var(--sheet-shadow);animation:sheetRise .24s cubic-bezier(.2,.75,.25,1)}
.sheet-grip{width:42px;height:5px;border-radius:9px;background:#aab4a8;margin:2px auto 13px}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--line)}.sheet-head h2{font-size:19px;margin:0;overflow-wrap:anywhere}.sheet-hero{display:block;width:100%;max-height:260px;aspect-ratio:16/7;object-fit:cover;border-radius:13px;margin:14px 0}.sheet-meta{display:flex;flex-wrap:wrap;gap:8px;padding:9px 11px;border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:11px}.sheet-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:13px 0}.sheet-field{display:grid;gap:4px;min-width:0;padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2)}.sheet-field span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.sheet-field strong{font-size:12px;font-weight:600;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.sheet-description{grid-column:1/-1;padding:13px;border:1px solid var(--line);border-radius:10px}.sheet-description p{margin:6px 0 0;line-height:1.65;white-space:pre-wrap}.sheet-image-list{grid-column:1/-1;display:grid;gap:9px}.sheet-image-item{display:grid;grid-template-columns:92px minmax(0,1fr);gap:11px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:8px;min-width:0}.sheet-image-item img{width:92px;height:68px;object-fit:cover;border-radius:7px}.sheet-image-item>div{display:grid;gap:5px;min-width:0}.sheet-image-item small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.sheet-image-item button{justify-self:start;min-height:30px;padding:5px 9px;font-size:11px}.sheet-actions{position:sticky;bottom:-20px;display:flex;gap:8px;justify-content:flex-end;padding:12px 0 calc(4px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line)}.sheet-actions button{min-width:100px}.cloudinary-url{display:block;max-height:36px;overflow:hidden;overflow-wrap:anywhere;font-size:9px;color:var(--muted)}
.custom-settings-fields{grid-column:1/-1;border:1px solid var(--line);border-radius:12px;padding:15px;background:var(--surface-2)}.custom-settings-fields h3{margin:0 0 5px;font-size:15px}.custom-settings-list{display:grid;gap:8px;margin:12px 0}.custom-setting-row{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(0,1.3fr) auto;gap:8px;align-items:start;padding:9px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
.guide-content{max-width:980px;margin:auto;display:grid;gap:14px}.guide-content>header{padding:12px 3px 8px}.guide-content h2{font-size:25px;margin:5px 0;color:#293d2e}.guide-content header p:last-child{max-width:760px;color:var(--muted);line-height:1.7}.guide-toc{display:flex;gap:8px;flex-wrap:wrap;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.guide-toc a{font-size:12px;color:var(--green);font-weight:650;text-decoration:none;padding:5px 8px;border-radius:6px}.guide-content section{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--paper);scroll-margin-top:100px}.guide-content h3{margin:0 0 8px;color:#304d39;font-size:16px}.guide-content section p{margin:7px 0;line-height:1.75;color:var(--muted)}
.app-footer{position:sticky;bottom:0;margin:22px calc(-1 * clamp(14px,3vw,36px)) -45px;padding:12px 18px;text-align:center;border-top:1px solid var(--line);background:var(--paper);color:var(--muted);font-size:11px;z-index:6}
.top{position:sticky;top:0;z-index:7;padding:10px 0;background:var(--bg)}
@keyframes sheetFade{from{opacity:0}to{opacity:1}}@keyframes sheetRise{from{transform:translateY(35px);opacity:.7}to{transform:translateY(0);opacity:1}}
@media(max-width:850px){.side{position:sticky;top:0;z-index:10}.nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;overflow:visible;max-width:100%;padding:3px 0}.nav button{min-width:0;white-space:normal;text-align:center;justify-content:center;min-height:39px;padding:6px 4px;font-size:11px;line-height:1.2}.brand{justify-content:flex-start;align-items:center}.main{padding-bottom:52px}.app-footer{margin:20px -12px -28px}.top{top:0}}
@media(max-width:560px){.document-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.document-cards{grid-template-columns:1fr}.document-tile-copy{padding:8px}.document-tile-copy strong{font-size:12px}.card-tile{grid-template-columns:92px minmax(0,1fr)}.card-tile .document-thumb{width:92px;min-height:84px}.bottom-sheet{padding:8px 13px calc(14px + env(safe-area-inset-bottom));max-height:94dvh}.sheet-fields{grid-template-columns:1fr}.sheet-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-actions button{min-width:0;padding:8px 5px;font-size:12px}.custom-setting-row{grid-template-columns:1fr}.login-card{padding:25px 20px}.app-footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){.document-tile,.sheet-backdrop,.bottom-sheet{animation:none!important;transition:none!important}}

.skip-link{position:fixed;top:8px;left:8px;z-index:20000;transform:translateY(-150%);padding:10px 14px;border-radius:8px;background:#233b2b;color:white}.skip-link:focus{transform:translateY(0)}
.top-brand{display:flex;align-items:center;gap:8px;margin-bottom:5px;color:var(--ink)}.top-brand img{width:27px;height:27px}.top-brand strong{font:600 17px Georgia,serif;letter-spacing:-.2px}
.document-thumb video{pointer-events:none}.sheet-hero:where(video){object-fit:contain;background:#101712}
.ql-font-arial{font-family:Arial,sans-serif}.ql-font-georgia{font-family:Georgia,serif}.ql-font-times-new-roman{font-family:"Times New Roman",serif}.ql-font-verdana{font-family:Verdana,sans-serif}.ql-font-trebuchet-ms{font-family:"Trebuchet MS",sans-serif}.ql-font-lato{font-family:Lato,Arial,sans-serif}.ql-font-playfair-display{font-family:"Playfair Display",Georgia,serif}.ql-font-merriweather{font-family:Merriweather,Georgia,serif}
.quill-shell .ql-modura-image.wrap-left{float:left;clear:none;margin:7px 20px 12px 0;max-width:55%}.quill-shell .ql-modura-image.wrap-right{float:right;clear:none;margin:7px 0 12px 20px;max-width:55%}.quill-shell .ql-modura-image.wrap-left img,.quill-shell .ql-modura-image.wrap-right img{display:block}.quill-shell .ql-modura-image:not(.wrap-left):not(.wrap-right){clear:both}.quill-shell .ql-editor table{width:100%;border-collapse:collapse;margin:14px 0}.quill-shell .ql-editor td,.quill-shell .ql-editor th{border:1px solid #d7ded5;padding:8px;min-width:60px}
.version-dashboard{display:grid;gap:13px}.version-intro{display:grid;gap:4px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.version-intro strong{font-size:15px}.version-intro span{font-size:12px;color:var(--muted)}.version-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:11px}.version-card{padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:0 3px 14px #15231808}.version-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.version-card-top strong{font-size:13px}.version-number{font-size:36px;line-height:1.15;font-weight:750;letter-spacing:-1.5px;margin-top:15px;color:var(--green)}.version-card>small,.version-date{font-size:11px;color:var(--muted)}.version-date{margin-top:10px;padding-top:9px;border-top:1px solid var(--line);overflow-wrap:anywhere}
@media(max-width:560px){.top-brand{margin-bottom:8px}.top-brand strong{font-size:16px}}

.app-footer{position:fixed;left:248px;right:0;bottom:0;margin:0;padding:11px 18px}.main{padding-bottom:76px}@media(max-width:850px){.app-footer{left:0}.main{padding-bottom:76px}}

.sheet-offer-card{display:grid;gap:5px;padding:11px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}.sheet-offer-card p{margin:0;font-size:12px;color:var(--muted)}.sheet-offer-card small{font-size:10px;overflow-wrap:anywhere;color:var(--muted)}.sheet-offer-card button{justify-self:start;min-height:30px;padding:5px 9px;font-size:11px}

.auth-loading{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--bg);color:var(--ink)}.auth-loading img{width:52px;height:52px}.auth-loading strong{font:600 16px Georgia,serif}

@media(min-width:851px){.side{position:sticky;top:0;height:100vh;align-self:start;overflow-y:auto}}

.dashboard-content{display:grid;gap:15px}.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(115deg,var(--surface-2),var(--paper));box-shadow:0 4px 20px #15231808}.dashboard-welcome h2{margin:3px 0 6px;font:600 clamp(20px,3vw,27px) Georgia,serif;color:var(--ink)}.dashboard-welcome p:last-child{margin:0;color:var(--muted);font-size:13px}.dashboard-live{display:flex;align-items:center;gap:7px;white-space:nowrap;padding:8px 11px;border:1px solid #d6e5d5;border-radius:20px;background:#edf5ed;color:#315b37;font-size:11px;font-weight:700}.dashboard-live i{width:7px;height:7px;border-radius:50%;background:#4c9b60;box-shadow:0 0 0 4px #4c9b601a}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:11px}.dashboard-card{display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;align-items:center;gap:5px 10px;padding:14px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);box-shadow:0 3px 13px #15231808}.dashboard-card:hover{border-color:#a6b9a3;transform:translateY(-1px)}.dashboard-icon{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--surface-3);color:var(--green);font-size:18px}.dashboard-card strong{font-size:12px}.dashboard-card b{font-size:25px;line-height:1.1}.dashboard-card small{grid-column:2;color:var(--muted);font-size:10px}.dashboard-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.dashboard-footer>div{display:grid;gap:2px}.dashboard-footer strong{font-size:20px}.dashboard-footer span{font-size:11px;color:var(--muted)}
html[data-theme="dark"] .dashboard-live{background:#1e3324;border-color:#3e6245;color:#d5ebd6}
@media(max-width:560px){.dashboard-welcome{align-items:flex-start;flex-direction:column;padding:16px}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dashboard-card{padding:10px;grid-template-columns:30px 1fr;gap:4px 8px}.dashboard-icon{width:30px;height:30px}.dashboard-footer{align-items:flex-start;flex-direction:column}.dashboard-footer button{width:100%}}

@media(max-width:850px){.top{position:relative;top:auto}}

/* November refinement: unified sticky header, cache status, settings, and readable cards */
:root{--surface-2:#f0f3ed;--surface-3:#e8eee5}
html[data-theme="dark"]{--ink:#edf2eb;--muted:#b3beb2;--line:#3b493d;--paper:#1d2820;--bg:#121a14;--surface-2:#263329;--surface-3:#304033;--green:#b8d0b8;--green2:#d4e2d2}
.shell{display:block;min-height:100vh}.main{width:100%;max-width:none;margin:0;padding:0 clamp(12px,2.8vw,36px) 82px}.side{display:none!important}
.top{position:sticky!important;top:0!important;z-index:100;background:var(--bg);padding:9px 0 10px;border-bottom:1px solid var(--line);box-shadow:0 5px 18px #1420160b}
.header-main{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px}.top-brand{display:flex;align-items:center;gap:9px;margin:0;text-decoration:none;color:var(--ink)}.top-brand img{width:37px;height:37px}.top-brand strong{font:700 19px Georgia,serif}.brand-caption{font-size:10px;color:var(--muted);padding-left:9px;border-left:1px solid var(--line)}.header-actions{display:flex;align-items:center;gap:7px}.icon-button{display:inline-grid;place-items:center;width:38px;height:38px;min-width:38px;padding:0;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--ink);font-size:19px;line-height:1}.icon-button:hover{border-color:var(--green);background:var(--surface-2)}.new-document-button{min-height:38px;padding:8px 13px}.header-context{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 2px 10px}.header-context h1{margin:1px 0 0;font-size:clamp(20px,2.3vw,27px);line-height:1.2}.header-context .eyebrow{font-size:9px}.nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:6px;padding:8px 0 2px;overflow:visible}.nav button{min-width:0;min-height:36px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font-size:11px;font-weight:650;line-height:1.2;text-align:center}.nav button.active{border-color:#91a68f;background:var(--surface-2);box-shadow:inset 0 -2px 0 var(--gold)}.nav-toggle{display:none}.nav-collapsed{display:grid}
.notice{margin:14px 0}.panel{margin-top:0;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 7px 25px #1824190c}.panelhead{border-bottom:1px solid var(--line)}.document-tile{border:1px solid color-mix(in srgb,var(--line) 78%,var(--green) 22%);background:var(--paper);box-shadow:0 4px 15px #17231812}.document-tile:hover{border-color:#8da58c;box-shadow:0 10px 25px #17231820}.document-tile-copy strong{font-weight:750}.document-tile-copy small{color:var(--muted)}.document-thumb{background:var(--surface-2)}.social-thumb{display:grid;place-items:center;background:var(--surface-2)}.social-thumb img{width:42px;height:42px;object-fit:contain;padding:6px;filter:none}.gallery-tile .social-thumb img{width:54px;height:54px}.trash-group{margin:14px 0 22px}.trash-group h3{margin:0 0 10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);font-size:14px;font-weight:750;color:var(--ink)}
.sheet-fields{gap:10px}.sheet-field{padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}.sheet-field>span{font-weight:750;color:var(--ink);font-size:11px}.sheet-field strong{font-weight:650}.sheet-value{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:13px;line-height:1.55;overflow-wrap:anywhere}.relation-chip{display:inline-flex;align-items:center;max-width:100%;padding:5px 9px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);font-size:12px;font-weight:650;overflow-wrap:anywhere}.sheet-nested,.sheet-nested-line{padding:7px 9px;margin:3px 0;border-radius:7px;background:var(--paper);font-size:12px;overflow-wrap:anywhere}.sheet-description,.sheet-image-list,.sheet-offers,.sheet-extra-fields{padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.sheet-description h3,.sheet-image-list h3,.sheet-offers h3,.sheet-extra-fields h3{margin:0 0 10px;font-size:14px;font-weight:800;color:var(--ink)}.sheet-description p{color:var(--ink);font-size:13px;line-height:1.75}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}.sheet-head h2{flex:1;min-width:0;margin:0;font-size:19px;line-height:1.3;overflow-wrap:anywhere}.sheet-head button{flex:0 0 38px;width:38px;height:38px;padding:0;font-size:22px}.sheet-meta{display:flex;flex-wrap:wrap;gap:7px}.sheet-meta span{max-width:100%;overflow-wrap:anywhere}.sheet-actions button{font-weight:700}
.settings-dashboard{display:grid;gap:15px}.settings-intro{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.settings-intro strong{font-size:16px;font-weight:800}.settings-intro p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.settings-document{padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--paper);box-shadow:0 4px 16px #1523180b}.settings-document-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid var(--line)}.settings-document-head>div{display:grid;gap:4px;min-width:0}.settings-document-head strong{font-size:14px;font-weight:800;overflow-wrap:anywhere}.settings-document-head small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.settings-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;padding-top:13px}.settings-group-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);min-width:0}.settings-group-card h3{margin:0;font-size:12px;font-weight:800;color:var(--ink)}.settings-group-card>strong{font-size:15px;font-weight:750;overflow-wrap:anywhere}.settings-group-card p{flex:1;margin:0;color:var(--muted);font-size:11px;line-height:1.55;overflow-wrap:anywhere}.settings-group-card img{width:100%;max-height:130px;object-fit:cover;border-radius:8px}.settings-group-card button{min-height:33px;padding:6px 12px;font-size:11px}.version-card{border-color:var(--line);background:var(--paper)}.version-card button{margin-top:10px;min-height:34px;padding:7px 11px;font-size:11px}.article-order-row{background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}.article-order-row small{color:var(--muted)!important}
.modalhead{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:13px 18px;border-bottom:1px solid var(--line)}.modalhead h2{flex:1;min-width:0;margin:0;font-size:19px;line-height:1.3;overflow-wrap:anywhere}.modalhead button{flex:0 0 auto;min-width:64px;min-height:35px}.modal{overflow:hidden}.modal form{min-width:0}.form-section-heading{background:var(--surface-2);border-color:var(--line);border-left-color:var(--green)}.form-section-heading strong,.seo-section-heading strong{color:var(--ink)}.form-section-heading span{color:var(--muted)}.seo-section-heading{background:var(--surface-2);border-left-color:var(--gold)}
.quill-shell .ql-modura-table{clear:both;margin:14px 0;padding:5px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.quill-shell .ql-modura-table table{width:100%;border-collapse:collapse;table-layout:fixed}.quill-shell .ql-modura-table td{min-width:55px;padding:9px;border:1px solid var(--line);color:var(--ink);overflow-wrap:anywhere}.quill-shell .ql-modura-table tr:first-child td{font-weight:800;background:var(--surface-2)}.table-editor-backdrop{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:16px;background:#101810a8}.table-editor-card{width:min(680px,100%);max-height:90dvh;overflow:auto;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:0 22px 70px #0005}.table-editor-card h2{margin:0 0 7px;font-size:19px}.table-editor-card p{font-size:12px;line-height:1.6;color:var(--muted)}.table-editor-card textarea{width:100%;min-height:200px;font-family:ui-monospace,monospace;white-space:pre;tab-size:4}.table-editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.table-editor-actions button{min-height:38px;padding:8px 13px}.quill-shell.quill-fullscreen{position:fixed!important;inset:0!important;z-index:11000!important;display:flex!important;flex-direction:column;overflow:auto!important;padding:12px!important;background:var(--paper)!important;border:0!important;border-radius:0!important;box-shadow:none!important}.quill-shell.quill-fullscreen .ql-toolbar{position:sticky;top:0;z-index:3;max-height:38vh;overflow:auto}.quill-shell.quill-fullscreen [data-quill-area]{flex:1;min-height:0!important}.quill-shell.quill-fullscreen .ql-container{flex:1;min-height:0;overflow:auto}.quill-shell.quill-fullscreen .ql-editor{min-height:70vh;padding:28px clamp(20px,8vw,110px);font-size:17px}
html[data-theme="dark"] .quill-shell .ql-toolbar.ql-snow,html[data-theme="dark"] .quill-shell .ql-toolbar .ql-formats,html[data-theme="dark"] .quill-shell .ql-toolbar .ql-insert-tools{background:#202c23!important;border-color:#465548!important;color:#f3f7f1!important}html[data-theme="dark"] .quill-shell .ql-toolbar button{color:#f5f8f3!important}html[data-theme="dark"] .quill-shell .ql-toolbar button .ql-stroke{stroke:#f5f8f3!important}html[data-theme="dark"] .quill-shell .ql-toolbar button .ql-fill{fill:#f5f8f3!important}html[data-theme="dark"] .quill-shell .ql-toolbar .ql-picker-label,html[data-theme="dark"] .quill-shell .ql-toolbar .ql-picker-item{color:#f5f8f3!important}html[data-theme="dark"] .quill-shell .ql-toolbar .ql-picker-options{background:#202c23!important;border-color:#526454!important}html[data-theme="dark"] .quill-shell .ql-toolbar .ql-insert-tools button{background:#2d3b30!important;color:#f4f7f2!important;border-color:#596a5b!important}html[data-theme="dark"] .quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="product"],html[data-theme="dark"] .quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="article"]{background:#456b4d!important;color:#fff!important}html[data-theme="dark"] .quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="newsletter"]{background:#374431!important;color:#fff!important}html[data-theme="dark"] .quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="delta"]{background:#121a14!important;color:#fff!important}html[data-theme="dark"] .quill-shell .ql-toolbar .ql-insert-tools button:hover{background:#536c56!important;color:#fff!important}html[data-theme="dark"] .quill-shell .ql-toolbar .ql-stats-wrap{background:transparent!important}html[data-theme="dark"] .quill-shell .ql-toolbar .quill-stats{color:#d0dbcf!important}html[data-theme="dark"] .form-section-heading,html[data-theme="dark"] .seo-section-heading{background:#263329!important;border-color:#465548!important}html[data-theme="dark"] .form-section-heading strong,html[data-theme="dark"] .seo-section-heading strong{color:#f2f6ef!important}html[data-theme="dark"] .form-section-heading span{color:#c3cec1!important}html[data-theme="dark"] .settings-group-card{background:#263329;border-color:#465548}html[data-theme="dark"] .settings-intro{background:#263329;border-color:#465548}html[data-theme="dark"] .settings-document{background:#1d2820;border-color:#465548}html[data-theme="dark"] .article-order-row{background:#202a22!important;color:#f0f4ee!important;border-color:#465548!important}html[data-theme="dark"] .article-order-row small{color:#c0cbbf!important}
.app-footer{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:80;margin:0!important;padding:10px 16px calc(10px + env(safe-area-inset-bottom))!important;background:var(--paper)!important;border-top:1px solid var(--line);color:var(--muted);text-align:center;font-size:11px;box-shadow:0 -4px 16px #1420160a}.app-footer span{margin:0 4px}.main{padding-bottom:85px!important}
@media(max-width:850px){.main{padding:0 12px 88px}.top{top:0!important}.header-context{padding:7px 2px}.nav-toggle{display:inline-grid}.nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:7px 0 3px}.nav button{min-height:37px;padding:6px 4px;font-size:10px}.nav.nav-collapsed{display:none}.brand-caption{display:none}.top-brand img{width:33px;height:33px}.top-brand strong{font-size:17px}.header-actions{gap:5px}.icon-button{width:35px;height:35px;min-width:35px}.new-document-button{min-height:35px;padding:6px 9px;font-size:11px}.settings-groups{grid-template-columns:1fr 1fr}.settings-intro{align-items:flex-start;flex-direction:column}.settings-intro button{width:100%}}
@media(max-width:560px){.header-context .status{max-width:47%;font-size:10px}.header-context h1{font-size:20px}.nav{grid-template-columns:repeat(4,minmax(0,1fr))}.settings-groups{grid-template-columns:1fr}.settings-document{padding:11px}.settings-document-head{align-items:flex-start;flex-direction:column}.settings-document-head button{width:100%}.sheet-fields{grid-template-columns:1fr}.sheet-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-actions button{font-size:11px}.modalhead{padding:11px 13px;min-height:52px}.modalhead h2{font-size:16px}.quill-shell.quill-fullscreen{padding:6px!important}.quill-shell.quill-fullscreen .ql-editor{padding:18px 14px}.table-editor-card{padding:14px}.app-footer{font-size:9px}}
@media(min-width:851px){.nav.nav-collapsed{display:grid}.nav-toggle{display:none}}
html[data-theme="dark"] .field>label,html[data-theme="dark"] .field label{color:#f0f4ee!important;font-weight:750}html[data-theme="dark"] .field .hint{color:#c0cbbf!important}html[data-theme="dark"] .formgrid input,html[data-theme="dark"] .formgrid textarea,html[data-theme="dark"] .formgrid select,html[data-theme="dark"] .custom-setting-row input,html[data-theme="dark"] .custom-setting-row textarea{background:#172119!important;color:#f2f6ef!important;border-color:#526253!important}html[data-theme="dark"] .modalhead{background:#1d2820;color:#f2f6ef;border-color:#465548}html[data-theme="dark"] .modalhead h2{color:#f2f6ef}html[data-theme="dark"] .settings-group-card h3,html[data-theme="dark"] .settings-group-card>strong{color:#f2f6ef}html[data-theme="dark"] .settings-group-card p{color:#c0cbbf}html[data-theme="dark"] .sheet-head h2,html[data-theme="dark"] .sheet-description h3,html[data-theme="dark"] .sheet-image-list h3,html[data-theme="dark"] .sheet-offers h3,html[data-theme="dark"] .sheet-extra-fields h3{color:#f2f6ef}
.quill-shell .ql-toolbar button[data-quill-action="table"],.quill-shell .ql-toolbar button[data-quill-action="edit-table"],.quill-shell .ql-toolbar button[data-quill-action="copy-image"],.quill-shell .ql-toolbar button[data-quill-action="delete-image"],.quill-shell .ql-toolbar button[data-quill-action="fullscreen"]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:34px;height:32px;min-height:32px;padding:5px 9px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap}
html[data-theme="dark"] .quill-shell .ql-toolbar button[data-quill-action="table"],html[data-theme="dark"] .quill-shell .ql-toolbar button[data-quill-action="edit-table"],html[data-theme="dark"] .quill-shell .ql-toolbar button[data-quill-action="copy-image"],html[data-theme="dark"] .quill-shell .ql-toolbar button[data-quill-action="delete-image"],html[data-theme="dark"] .quill-shell .ql-toolbar button[data-quill-action="fullscreen"]{background:#2d3b30!important;color:#f4f7f2!important;border-color:#596a5b!important}
html[data-theme="dark"] .guide-content h2,html[data-theme="dark"] .guide-content h3{color:#f0f5ed!important}html[data-theme="dark"] .guide-content header p:last-child,html[data-theme="dark"] .guide-content section p{color:#c4cec2!important}html[data-theme="dark"] .guide-toc a{color:#c7dec5!important}
@media(max-width:560px){.new-document-button{width:35px;min-width:35px;height:35px;padding:0;font-size:0!important}.new-document-button::before{content:'+';font-size:23px;line-height:1}.header-context .status{display:flex;align-items:center;gap:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-context .status span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.order-controls{display:flex;gap:4px;flex:0 0 auto}.order-controls button{width:31px;min-width:31px;height:31px;min-height:31px;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--surface-2);color:var(--ink);font-weight:800}.order-handle{color:var(--muted)}html[data-theme="dark"] .order-controls button{background:#2a382d;border-color:#526253;color:#f0f5ed}
.settings-custom-list-preview{display:grid;gap:6px;width:100%;max-height:155px;overflow:auto}.settings-custom-list-preview>div{display:grid;gap:3px;padding:7px 8px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.settings-custom-list-preview b{font-size:10px;font-weight:800;color:var(--ink);overflow-wrap:anywhere}.settings-custom-list-preview span{font-size:10px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}html[data-theme="dark"] .settings-custom-list-preview>div{background:#172119;border-color:#465548}html[data-theme="dark"] .settings-custom-list-preview b{color:#f0f5ed}
html[data-theme="dark"] .social-thumb{background:#f5f6f2;border-color:#dce2d8}

/* Final layout corrections: natural footer flow, scroll-safe forms and sheets. */
.app-footer{position:static!important;inset:auto!important;z-index:auto!important;margin:24px 0 0!important;padding:16px 12px calc(16px + env(safe-area-inset-bottom))!important;background:var(--paper)!important;border-top:1px solid var(--line);box-shadow:none!important;color:var(--muted);text-align:center;font-size:11px}
.main{padding-bottom:0!important;min-height:100vh;display:flex;flex-direction:column}
#appShell{min-height:100vh}
#appShell>.main>.panel{flex:0 0 auto}
.top{z-index:100!important}
.nav{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch}
.nav button,.nav button:hover,.nav button.active{color:var(--ink)!important}
.nav button.active{background:var(--surface-2)!important;border-color:var(--green)!important}
html[data-theme="dark"] .nav button,html[data-theme="dark"] .nav button:hover,html[data-theme="dark"] .nav button.active{color:var(--ink)!important}
@media(min-width:851px){.nav-toggle{display:none!important}.nav.nav-collapsed{display:grid!important}.header-context{padding:12px 2px}.nav{gap:8px;padding:9px 0 2px}.nav button{min-height:39px;font-size:12px}}
@media(max-width:850px){.app-footer{margin:22px 0 0!important}.main{padding:0 12px!important}.nav-toggle{display:inline-grid!important}.nav.nav-collapsed{display:none!important}.nav:not(.nav-collapsed){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:560px){.app-footer{font-size:10px}.nav button{min-height:40px;font-size:10px;padding:6px 3px}}

/* Overlays must sit above the sticky header and remain independently scrollable. */
.sheet-backdrop{z-index:10030!important;align-items:center!important;padding:24px 14px!important;overflow-y:auto!important}
.bottom-sheet{position:relative;width:min(980px,100%)!important;min-height:min(34dvh,320px);max-height:92dvh!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding:14px 24px calc(22px + env(safe-area-inset-bottom))!important;border-radius:20px!important;align-self:center;box-shadow:0 24px 80px #0005!important}
.sheet-actions{position:sticky!important;bottom:-22px!important;z-index:2;background:var(--paper)!important;padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
@media(max-width:850px){.sheet-backdrop{align-items:flex-end!important;padding:0!important}.bottom-sheet{width:100%!important;min-height:35dvh;max-height:96dvh!important;border-radius:20px 20px 0 0!important;padding:10px 16px calc(18px + env(safe-area-inset-bottom))!important}}

/* Editor dialog uses one scroll region; action buttons stay in normal document flow. */
.modalback{z-index:10040!important;align-items:center!important;padding:18px!important;overflow-y:auto!important}
.modal{display:flex!important;flex-direction:column!important;width:min(1040px,100%)!important;max-height:94dvh!important;min-height:0!important;overflow:hidden!important;padding:0!important;border:1px solid var(--line);background:var(--paper)!important;color:var(--ink)!important}
.modalhead{position:relative!important;top:auto!important;flex:0 0 auto!important;margin:0!important;padding:15px 20px!important;background:var(--paper)!important;color:var(--ink)!important;z-index:2}
.modal>p{flex:0 0 auto;margin:10px 20px!important}
.modal form{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
.modal .formgrid{display:grid!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;padding:8px 20px 18px!important;scrollbar-gutter:stable}
.modal .formfoot{position:static!important;inset:auto!important;flex:0 0 auto!important;margin:0!important;padding:13px 20px calc(13px + env(safe-area-inset-bottom))!important;background:var(--paper)!important;border-top:1px solid var(--line);z-index:1}
.modal .formfoot .right{width:auto!important;display:flex!important;gap:8px!important}
.modal .formfoot .right button{flex:0 0 auto!important;min-width:112px}
@media(max-width:850px){.modalback{align-items:flex-end!important;padding:0!important}.modal{width:100%!important;max-height:96dvh!important;border-radius:19px 19px 0 0!important}.modalhead{padding:12px 15px!important}.modal>p{margin:8px 15px!important}.modal .formgrid{grid-template-columns:1fr!important;padding:8px 15px 16px!important}.modal .formfoot{padding:11px 15px calc(11px + env(safe-area-inset-bottom))!important;flex-wrap:wrap}.modal .formfoot .note,.modal .formfoot>span{display:none}.modal .formfoot .right{width:100%!important}.modal .formfoot .right button{flex:1 1 0!important;min-width:0}}

/* Toasts and copied-state feedback remain visible above every overlay. */
.toastwrap{z-index:30000!important;bottom:calc(16px + env(safe-area-inset-bottom))!important;max-height:45dvh;overflow-y:auto;pointer-events:none}
.toast{pointer-events:auto;overflow-wrap:anywhere;box-shadow:0 8px 28px #0004}
.toast.success{background:#285b37;color:#fff}
button.is-copied{background:#285b37!important;border-color:#285b37!important;color:#fff!important}

/* Quill toolbar controls are touch-sized, readable and never clip their labels. */
.quill-shell .ql-toolbar.ql-snow{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:10px!important}
.quill-shell .ql-toolbar .ql-formats{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:0 5px 5px 0!important}
.quill-shell .ql-toolbar button[data-quill-action],.quill-shell .ql-toolbar .ql-insert-tools button{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:auto!important;min-width:42px!important;min-height:38px!important;height:auto!important;padding:8px 11px!important;line-height:1.25!important;font-size:12px!important;white-space:normal!important;overflow-wrap:anywhere!important;vertical-align:middle}
.quill-shell .ql-toolbar button[data-quill-action="table"],.quill-shell .ql-toolbar button[data-quill-action="edit-table"],.quill-shell .ql-toolbar button[data-quill-action="copy-image"],.quill-shell .ql-toolbar button[data-quill-action="delete-image"],.quill-shell .ql-toolbar button[data-quill-action="fullscreen"]{min-height:38px!important}
html[data-theme="dark"] .quill-shell .ql-toolbar,html[data-theme="dark"] .quill-shell .ql-toolbar .ql-formats,html[data-theme="dark"] .quill-shell .ql-toolbar .ql-insert-tools{background:#202c23!important;color:#f5f8f3!important;border-color:#526253!important}
html[data-theme="dark"] .quill-shell .ql-toolbar button,html[data-theme="dark"] .quill-shell .ql-toolbar .ql-insert-tools button,html[data-theme="dark"] .quill-shell .ql-toolbar .ql-picker-label{color:#f5f8f3!important}
html[data-theme="dark"] .quill-shell .ql-toolbar button .ql-stroke{stroke:#f5f8f3!important}
html[data-theme="dark"] .quill-shell .ql-toolbar button .ql-fill{fill:#f5f8f3!important}
html[data-theme="dark"] .quill-shell .ql-container.ql-snow,html[data-theme="dark"] .quill-shell .ql-editor{background:#172119!important;color:#f2f6ef!important}
.quill-shell.quill-fullscreen{position:fixed!important;inset:0!important;z-index:20000!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:12px!important;background:var(--paper)!important;border:0!important;border-radius:0!important}
.quill-shell.quill-fullscreen .ql-toolbar{position:relative!important;top:auto!important;flex:0 0 auto!important;max-height:32dvh!important;overflow:auto!important}
.quill-shell.quill-fullscreen [data-quill-area]{display:flex!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important}
.quill-shell.quill-fullscreen .ql-container{display:flex!important;flex:1 1 auto!important;min-height:0!important;overflow:auto!important}
.quill-shell.quill-fullscreen .ql-editor{flex:1 1 auto!important;min-height:100%!important;padding:30px clamp(18px,9vw,140px)!important;font-size:17px!important;line-height:1.8!important}

/* Structured table builder. */
.table-editor-card{display:flex!important;flex-direction:column!important;gap:12px!important;width:min(900px,100%)!important;max-height:92dvh!important}
.table-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.table-editor-heading h2{margin:0!important}
.table-editor-heading button{width:38px;height:38px;padding:0;font-size:22px}
.table-dimensions{display:flex;gap:12px;flex-wrap:wrap}
.table-dimensions label{display:grid;gap:5px;font-size:12px;font-weight:750;color:var(--ink)}
.table-dimensions input{width:100px;min-height:38px}
.table-grid-controls{display:flex;flex-wrap:wrap;gap:7px}
.table-grid-controls button{min-height:36px;padding:7px 10px;font-size:12px}
.table-grid-wrap{max-height:48dvh;overflow:auto;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.table-input-grid{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}
.table-input-grid td{min-width:150px;padding:5px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.table-input-grid tr:first-child td{background:var(--surface-2)}
.table-input-grid input{min-width:130px;min-height:38px;padding:7px 9px;font-size:12px}
.table-editor-actions{display:flex!important;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.table-editor-actions button{min-height:40px}
@media(max-width:560px){.quill-shell .ql-toolbar button[data-quill-action],.quill-shell .ql-toolbar .ql-insert-tools button{min-height:40px!important;padding:8px 9px!important;font-size:11px!important}.quill-shell.quill-fullscreen{padding:5px!important}.quill-shell.quill-fullscreen .ql-editor{padding:18px 13px!important}.table-input-grid td{min-width:130px}.table-input-grid input{min-width:115px}}

/* V5 stability: keep the primary editor scroll container unique. Nested offer grids must not capture vertical touch scrolling. */
.modal .formgrid{overflow:visible!important;flex:0 0 auto!important;min-height:auto!important;touch-action:pan-y;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch}
.modal form>.formgrid{overflow-x:hidden!important;overflow-y:auto!important;flex:1 1 auto!important;min-height:0!important;touch-action:pan-y;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.modal,.modal form,.modalback,.offer-editor,.offer-list,.form-section-heading{min-height:0}
.modalback{touch-action:pan-y;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.modal .offer-editor,.modal .offer-list,.modal .offer-card{overflow:visible!important;touch-action:pan-y}

/* Document image gallery: horizontal swipe, desktop arrows and keyboard navigation. */
.sheet-gallery-controls{display:flex;justify-content:flex-end;gap:6px;margin:-3px 0 7px}
.sheet-gallery-nav{display:inline-grid;place-items:center;width:34px;height:32px;min-width:34px;padding:0;font-size:22px;line-height:1;border:1px solid var(--line);background:var(--surface-2);color:var(--ink)}
.sheet-image-viewport{width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;outline-offset:3px}
.sheet-image-track{display:flex;align-items:stretch;gap:10px;width:max-content;min-width:100%;padding:2px 1px 9px}
.sheet-image-track .sheet-image-item{display:grid;grid-template-columns:96px minmax(0,1fr);flex:0 0 min(390px,82vw);min-width:0;scroll-snap-align:start;align-items:center}
.sheet-image-track .sheet-image-item img{width:96px;height:76px;object-fit:cover}
.sheet-image-track .sheet-image-item>div{min-width:0;overflow:hidden}
.sheet-image-track .sheet-image-item small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.sheet-image-track .sheet-image-item button{min-height:30px}

/* Mention pickers must render above the editor modal, not behind it. */
.product-picker{z-index:30020!important}
.product-picker-card{max-height:min(86dvh,780px)!important;min-height:180px}
.product-picker-list{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.product-mention-menu{z-index:30030!important;max-height:min(42dvh,340px)!important}
.table-editor-backdrop{z-index:30040!important}
.delta-json-backdrop{z-index:30040!important}
.image-settings-backdrop{z-index:30040!important}

/* Compact table embeds inside Quill; do not inherit the CMS-wide 650px table minimum. */
.quill-shell .ql-modura-table{display:block;max-width:100%;width:100%;overflow-x:auto;overflow-y:hidden;margin:10px 0;padding:4px;clear:both}
.quill-shell .ql-modura-table table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse}
.quill-shell .ql-modura-table td{min-width:0!important;width:auto;padding:6px 8px!important;font-size:13px;line-height:1.45;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.quill-shell .ql-modura-table tr:first-child td{font-weight:750}
.quill-shell .ql-editor .ql-modura-table{max-width:100%;box-sizing:border-box}

/* Small, explicit image removal control and reliable URL-copy feedback. */
.imagecard{position:relative;min-width:0}
.imagecard>button[aria-label^="Remove"]{position:absolute;top:6px;right:6px;z-index:2;display:grid;place-items:center;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border:1px solid #e4b8b4;border-radius:50%;background:#fff;color:#a22f29;font-size:18px;font-weight:800;line-height:1;box-shadow:0 2px 8px #0002}
.imagecard .imeta{display:grid;gap:6px;min-width:0}
.imagecard .imeta button{position:static;width:100%;min-height:32px;padding:6px 8px;font-size:11px;overflow-wrap:anywhere}
.imagecard .cloudinary-url{overflow-wrap:anywhere;word-break:break-all}

/* Desktop header: brand/actions first, full navigation rows second, page/status context third. */
@media(min-width:851px){
 .top{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;padding:12px 0 14px!important;margin-bottom:22px!important;border-bottom:1px solid var(--line);box-shadow:0 5px 18px #18251b08}
 .header-main{order:1;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px;min-height:58px;padding:0 2px 12px;border-bottom:1px solid var(--line)}
 .top-brand{display:flex!important;align-items:center!important;gap:11px!important;margin:0!important;text-decoration:none;min-width:0}
 .top-brand img{width:42px!important;height:42px!important;flex:0 0 42px}
 .top-brand strong{font-size:21px!important;letter-spacing:-.35px}
 .brand-caption{display:inline!important;padding-left:10px;border-left:1px solid var(--line);font-size:11px;color:var(--muted);font-weight:600;letter-spacing:.04em}
 .header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex:0 0 auto}
 .header-actions .icon-button{width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;border-radius:12px!important;font-size:19px!important}
 .header-actions .new-document-button{display:grid!important;place-items:center!important;width:42px!important;min-width:42px!important;height:42px!important;padding:0!important;font-size:0!important;border-radius:12px!important}
 .header-actions .new-document-button::before{content:'+';font-size:27px;line-height:1;font-weight:400}
 .header-actions .nav-toggle{display:none!important}
 .nav{order:2;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:7px!important;align-items:stretch!important;padding:12px 0!important;margin:0!important;border-bottom:1px solid var(--line)}
 .nav button{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:40px!important;padding:8px 10px!important;border:1px solid var(--line)!important;border-radius:9px!important;background:var(--paper)!important;color:var(--ink)!important;text-align:center!important;font-size:12px!important;font-weight:650!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
 .nav button:hover{background:var(--surface-2)!important;color:var(--ink)!important;border-color:var(--green)!important}
 .nav button.active{background:var(--green)!important;color:#fff!important;border-color:var(--green)!important;box-shadow:0 2px 8px #243b2a24}
 .header-context{order:3;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;padding:12px 2px 0!important;margin:0!important}
 .header-context>div:first-child{display:flex;align-items:baseline;gap:14px;min-width:0}
 .header-context .eyebrow{margin:0;white-space:nowrap;font-size:10px}
 .header-context h1{margin:0!important;font-size:23px!important;line-height:1.2!important}
 .header-context .status{max-width:48%;font-size:12px;white-space:nowrap}
}
@media(min-width:851px) and (max-width:1120px){.nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:850px){
 .sheet-gallery-nav{display:none}
 .sheet-image-track .sheet-image-item{flex-basis:min(330px,86vw)}
 .modal form>.formgrid{overscroll-behavior-y:contain;touch-action:pan-y}
}
@media(max-width:560px){.sheet-image-track .sheet-image-item{grid-template-columns:82px minmax(0,1fr);flex-basis:88vw}.sheet-image-track .sheet-image-item img{width:82px;height:66px}}

/* Final touch/scroll safeguards for tall edit forms and detail sheets. */
.bottom-sheet{touch-action:pan-y;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
.bottom-sheet .sheet-fields{min-height:0;overflow:visible}
.sheet-image-viewport{touch-action:pan-x pan-y;cursor:grab}
.sheet-image-viewport:active{cursor:grabbing}
.modal .formgrid .formgrid{overflow:visible!important;flex:0 0 auto!important;min-height:auto!important;max-height:none!important}
.modal form>.formgrid{max-height:calc(94dvh - 150px)}
@media(max-width:850px){.modal form>.formgrid{max-height:calc(96dvh - 150px)}.bottom-sheet{max-height:96dvh!important}}


/* V6: persistent theme on authentication screens and correctly separated article sections. */
html[data-theme="dark"] .login-screen,html[data-theme="dark"] .auth-loading{background:radial-gradient(circle at 15% 10%,#263b2c,transparent 34%),linear-gradient(145deg,#141b16,#1c2920);color:#edf1eb}
html[data-theme="dark"] .login-card{background:#202a22;border-color:#39463b;color:#edf1eb;box-shadow:0 22px 70px #0006}
html[data-theme="dark"] .login-card h1,html[data-theme="dark"] .login-card label{color:#edf1eb}
html[data-theme="dark"] .login-card .muted{color:#aeb9ad}
html[data-theme="dark"] .login-card input{background:#141b16;color:#edf1eb;border-color:#465448}
html[data-theme="dark"] .login-error{color:#ffaaa2}
html[data-theme="dark"] .form-section-heading{background:linear-gradient(110deg,#26352a,#202a22);border-color:#435445;border-left-color:#88a88a}
html[data-theme="dark"] .form-section-heading strong{color:#edf1eb}
html[data-theme="dark"] .form-section-heading span{color:#b7c2b6}
html[data-theme="dark"] .seo-section-heading{background:linear-gradient(110deg,#332f24,#202a22);border-left-color:#bba477}
html[data-theme="dark"] .seo-section-heading strong{color:#f0e5c9}
.article-editor-field{display:flex;flex-direction:column;gap:9px;margin:0 0 14px!important;min-width:0}
.article-editor-field>.quill-shell{display:block;width:100%;min-width:0;max-width:100%;height:auto!important;min-height:0;overflow:visible!important}
.quill-shell [data-quill-area]{display:block;width:100%;height:auto!important;min-height:460px!important;overflow:visible!important}
.quill-shell .ql-container.ql-snow{display:block;width:100%;height:auto!important;min-height:460px!important;overflow:visible!important}
.quill-shell .ql-editor{display:block;width:100%;height:auto!important;min-height:440px!important;max-height:none!important;overflow:visible!important;overflow-wrap:anywhere;white-space:pre-wrap}
.quill-shell .ql-editor p:last-child{margin-bottom:0}
.seo-section-heading{grid-column:1/-1!important;clear:both;margin:24px 0 2px!important;padding:15px 17px!important}
.formgrid>.field[data-field="seoTitle"],.formgrid>.field[data-field="seoDescription"],.formgrid>.field[data-field="tags"]{grid-column:1/-1!important;margin:0 0 8px!important}
/* Keep every toolbar action horizontal and sized to its label on desktop. */
@media(min-width:851px){
 .quill-shell .ql-toolbar.ql-snow{align-items:center;align-content:flex-start;gap:8px;min-width:0}
 .quill-shell .ql-toolbar .ql-formats{display:inline-flex!important;flex:0 1 auto!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;width:auto!important;max-width:100%!important;min-width:0!important;gap:5px!important}
 .quill-shell .ql-toolbar button[data-quill-action],.quill-shell .ql-toolbar .ql-insert-tools button{display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:max-content!important;max-width:100%!important;height:34px!important;min-height:34px!important;padding:6px 10px!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;line-height:1.15!important;font-size:11px!important}
 .quill-shell .ql-toolbar .ql-insert-tools{flex:1 1 100%!important;width:100%!important;gap:7px!important}
 .quill-shell .ql-toolbar .ql-insert-tools button{min-width:0!important}
}
/* The navigation contains 15 destinations: exactly two compact desktop rows. */
@media(min-width:851px){
 .top{padding-top:8px!important;padding-bottom:9px!important;margin-bottom:16px!important}
 .header-main{min-height:48px!important;padding-bottom:8px!important;gap:16px!important}
 .top-brand img{width:36px!important;height:36px!important;flex-basis:36px!important}
 .top-brand strong{font-size:19px!important}
 .header-actions{gap:7px!important}
 .header-actions .icon-button,.header-actions .new-document-button{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;border-radius:9px!important}
 .nav{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:5px!important;padding:8px 0!important}
 .nav button{min-height:32px!important;height:34px!important;padding:5px 6px!important;border-radius:7px!important;font-size:10.5px!important;font-weight:620!important;line-height:1.12!important;letter-spacing:0!important}
 .header-context{padding-top:8px!important;gap:14px!important}
 .header-context h1{font-size:20px!important}
 .header-context .eyebrow{font-size:9px!important}
 .header-context .status{font-size:11px!important}
}
/* Combined @ mention menu: search + type switch + scrollable results. */
.product-mention-menu.mention-combined-menu{display:flex;flex-direction:column;gap:7px;width:min(430px,calc(100vw - 24px));max-height:min(390px,70dvh);padding:9px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:13px;box-shadow:0 16px 46px #10181040;overflow:hidden}
.mention-combined-menu .mention-search{flex:0 0 auto;width:100%;height:38px;min-height:38px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--ink);font-size:12px}
.mention-tabs{display:flex;flex:0 0 auto;gap:5px;padding:2px}
.mention-tabs button{flex:1 1 0;min-height:30px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:var(--surface-2);color:var(--ink);font-size:11px;font-weight:650}
.mention-tabs button.active{background:var(--green);border-color:var(--green);color:#fff}
.mention-results{display:grid;gap:4px;min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:2px}
.mention-results .mention-result{display:flex;align-items:center;gap:8px;width:100%;min-width:0;min-height:52px;padding:7px 8px;border:1px solid transparent;border-radius:8px;background:var(--paper);color:var(--ink);text-align:left}
.mention-results .mention-result:hover,.mention-results .mention-result:focus-visible{background:var(--surface-2);border-color:var(--line)}
.mention-type{flex:0 0 52px;padding:4px 5px;border-radius:5px;background:#eaf1e8;color:#35533a;font-size:8px;font-weight:800;text-align:center;letter-spacing:.04em}
.mention-result.article .mention-type{background:#f0eaf8;color:#644889}
.mention-result .product-option-copy{flex:1 1 auto;min-width:0}
.mention-result .product-option-copy strong{display:block;overflow-wrap:anywhere;font-size:11px;line-height:1.3}
.mention-result .product-option-copy small{display:block;overflow-wrap:anywhere;font-size:9px;line-height:1.3}
.mention-result .product-mention-id{flex:0 1 90px;max-width:90px;font-size:9px}
html[data-theme="dark"] .mention-type{background:#2b402e;color:#d8ead7}
html[data-theme="dark"] .mention-result.article .mention-type{background:#3a2d4b;color:#e4d5f6}
@media(max-width:850px){.quill-shell [data-quill-area],.quill-shell .ql-container.ql-snow{min-height:360px!important}.quill-shell .ql-editor{min-height:340px!important}.seo-section-heading{margin-top:17px!important}}

/* V7: independent SEO metadata block; fields never share the Quill editor grid. */
.seo-fields-section{grid-column:1/-1!important;display:flex!important;flex-direction:column!important;gap:13px!important;min-width:0!important;width:100%!important;margin:12px 0 8px!important;padding:16px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface-2,var(--paper))!important;clear:both!important;isolation:isolate}
.seo-fields-section>.seo-section-heading{display:flex!important;flex-direction:column!important;gap:5px!important;width:100%!important;min-width:0!important;margin:0!important;padding:13px 15px!important;box-sizing:border-box!important}
.seo-fields-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;width:100%!important;min-width:0!important;align-items:start!important}
.seo-fields-grid>.field{display:flex!important;flex-direction:column!important;gap:7px!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;grid-column:1/-1!important;clear:both!important;position:relative!important}
.seo-fields-grid>.field>label{display:block!important;position:static!important;margin:0!important;line-height:1.4!important;white-space:normal!important}
.seo-fields-grid>.field>input,.seo-fields-grid>.field>textarea{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;position:static!important;margin:0!important}
.seo-fields-grid>.field>.hint{display:block!important;position:static!important;margin:0!important;line-height:1.55!important;white-space:normal!important;overflow-wrap:anywhere!important}
html[data-theme="dark"] .seo-fields-section{background:#1c2820!important;border-color:#465548!important}
html[data-theme="dark"] .seo-fields-section>.seo-section-heading{background:#29362b!important;border-color:#526253!important}
html[data-theme="dark"] .seo-fields-grid>.field>label{color:#f2f6ef!important}
html[data-theme="dark"] .seo-fields-grid>.field>.hint{color:#c2cec0!important}
html[data-theme="dark"] .seo-fields-grid>.field input,html[data-theme="dark"] .seo-fields-grid>.field textarea{background:#121b15!important;color:#f2f6ef!important;border-color:#526253!important}

/* V7: full-screen Quill has a non-scrolling, fully visible toolbar and one scrolling editor. */
.quill-shell.quill-fullscreen{position:fixed!important;inset:0!important;z-index:50000!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;display:flex!important;flex-direction:column!important;gap:0!important;overflow:hidden!important;padding:12px!important;box-sizing:border-box!important;background:var(--paper)!important;border:0!important;border-radius:0!important}
.quill-shell.quill-fullscreen>.ql-toolbar.ql-snow{position:relative!important;inset:auto!important;top:auto!important;z-index:5!important;display:flex!important;flex:0 0 auto!important;flex-wrap:wrap!important;align-content:flex-start!important;align-items:center!important;gap:7px!important;width:100%!important;max-width:100%!important;max-height:none!important;height:auto!important;overflow:visible!important;padding:10px!important;border:1px solid var(--line)!important;border-radius:10px!important}
.quill-shell.quill-fullscreen>.ql-toolbar .ql-formats{display:inline-flex!important;flex:0 0 auto!important;flex-wrap:wrap!important;align-items:center!important;max-width:100%!important}
.quill-shell.quill-fullscreen>[data-quill-area]{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;width:100%!important;min-height:0!important;height:auto!important;overflow:hidden!important;margin-top:10px!important;border:1px solid var(--line)!important;border-radius:10px!important}
.quill-shell.quill-fullscreen [data-quill-area]>.ql-container.ql-snow{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
.quill-shell.quill-fullscreen .ql-editor{display:block!important;flex:1 1 auto!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;padding:28px clamp(18px,8vw,120px)!important;box-sizing:border-box!important;line-height:1.8!important}
.quill-shell.quill-fullscreen .ql-toolbar .ql-insert-tools{flex:0 0 auto!important;width:auto!important;max-width:100%!important}
html[data-theme="dark"] .quill-shell.quill-fullscreen{background:#172119!important}
html[data-theme="dark"] .quill-shell.quill-fullscreen [data-quill-area],html[data-theme="dark"] .quill-shell.quill-fullscreen .ql-container{border-color:#465548!important}

/* V7: the autocomplete popup is a real, visible top-level dialog above sheets and full-screen editors. */
.product-mention-menu.mention-combined-menu{position:fixed!important;z-index:80000!important;display:flex!important;visibility:visible!important;flex-direction:column!important;gap:7px!important;width:min(440px,calc(100vw - 24px))!important;max-height:min(440px,72dvh)!important;min-height:120px!important;overflow:hidden!important;pointer-events:auto!important}
.product-mention-menu.mention-combined-menu .mention-search{display:block!important;flex:0 0 auto!important;width:100%!important;min-height:38px!important}
.product-mention-menu.mention-combined-menu .mention-tabs{display:flex!important;flex:0 0 auto!important;width:100%!important}
.product-mention-menu.mention-combined-menu .mention-results{display:grid!important;flex:1 1 auto!important;min-height:0!important;max-height:320px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}
.product-mention-menu.mention-combined-menu .mention-result{display:flex!important;visibility:visible!important;pointer-events:auto!important}

/* V7: compact formatting controls for table cells. */
.table-cell-format-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 10px;padding:9px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2)}
.table-cell-format-toolbar button{min-width:38px;min-height:34px;padding:6px 10px;font-size:12px}
.table-cell-format-toolbar button.active{background:var(--green)!important;border-color:var(--green)!important;color:#fff!important}
.table-input-grid input{width:100%;min-width:115px;box-sizing:border-box}
.table-input-grid input:focus{outline:2px solid #809b82;outline-offset:-2px}
html[data-theme="dark"] .table-cell-format-toolbar{background:#263329;border-color:#465548}
html[data-theme="dark"] .table-cell-format-toolbar button{background:#172119;color:#f2f6ef;border-color:#526253}
@media(max-width:850px){.seo-fields-section{padding:12px!important;gap:11px!important}.quill-shell.quill-fullscreen{padding:6px!important}.quill-shell.quill-fullscreen>.ql-toolbar.ql-snow{padding:7px!important;gap:5px!important}.quill-shell.quill-fullscreen .ql-editor{padding:18px 13px!important}}

/* Dialog layering: pickers and table tools remain above the full-screen Quill surface. */
.product-picker,.table-editor-backdrop,.delta-json-backdrop,.image-settings-backdrop{z-index:70000!important}
.toastwrap{z-index:90000!important}

/* Safe inline table links in editor preview. */
.quill-shell .ql-modura-table td a{color:#315f9a;text-decoration:underline;overflow-wrap:anywhere}
html[data-theme="dark"] .quill-shell .ql-modura-table td a{color:#a8c9ff}

/* V8: keep the article-body heading, Quill label and editor in one clearly bounded section. */
.article-body-section{grid-column:1/-1!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:4px 0 20px!important;padding:0 0 15px!important;border:1px solid var(--line)!important;border-radius:13px!important;background:var(--paper)!important;overflow:visible!important;box-sizing:border-box!important;}
.article-body-section>.article-body-heading{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;width:100%!important;min-width:0!important;margin:0 0 14px!important;padding:14px 17px!important;border:0!important;border-bottom:1px solid var(--line)!important;border-left:4px solid var(--green)!important;border-radius:12px 12px 0 0!important;background:var(--surface-2)!important;box-sizing:border-box!important;}
.article-body-section>.article-editor-field{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;width:100%!important;min-width:0!important;margin:0!important;padding:0 15px!important;box-sizing:border-box!important;}
.article-body-section>.article-editor-field>label{display:block!important;position:static!important;width:100%!important;margin:0!important;padding:0!important;font-size:12px!important;line-height:1.45!important;font-weight:750!important;}
.article-body-section>.article-editor-field>.quill-shell{display:block!important;position:relative!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;}
.article-body-section>.article-editor-field>.hint{display:block!important;margin:0!important;padding:0!important;line-height:1.5!important;}
html[data-theme="dark"] .article-body-section{background:#1c2820!important;border-color:#465548!important;}
html[data-theme="dark"] .article-body-section>.article-body-heading{background:#263329!important;border-bottom-color:#465548!important;border-left-color:#88a88a!important;}
html[data-theme="dark"] .article-body-section>.article-body-heading strong{color:#f2f6ef!important;}
html[data-theme="dark"] .article-body-section>.article-body-heading span{color:#c2cec0!important;}
html[data-theme="dark"] .article-body-section>.article-editor-field>label{color:#f2f6ef!important;}
@media(max-width:850px){.article-body-section{margin-bottom:16px!important;padding-bottom:12px!important}.article-body-section>.article-body-heading{padding:12px 13px!important;margin-bottom:12px!important}.article-body-section>.article-editor-field{padding:0 11px!important}}

/* ModuraSpace CMS enhancements */
@media(min-width:851px){.bottom-sheet{width:100vw!important;max-width:100vw!important;left:0!important;right:0!important;border-radius:18px 18px 0 0!important;animation:sheet-rise .28s ease-out both}.sheet-backdrop{align-items:flex-end!important}.sheet-head{position:sticky!important;top:0!important;z-index:30!important;background:var(--paper)!important;padding:14px 20px!important;border-bottom:1px solid var(--line)!important}.sheet-head>button{position:sticky!important;top:0!important;flex:0 0 auto!important}}
@keyframes sheet-rise{from{transform:translateY(45px);opacity:.7}to{transform:translateY(0);opacity:1}}
.field-character-count{display:block;text-align:right;color:var(--muted);font-size:11px;margin-top:4px;font-variant-numeric:tabular-nums}
.image-field-guidance,.image-metadata{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin:5px 0}
.image-metadata{font-variant-numeric:tabular-nums}
.offer-button-suggestions{display:flex;flex-wrap:wrap;gap:5px;margin:4px 0 10px}.offer-button-suggestions button{font-size:11px;padding:5px 8px;border-radius:7px}
.operations-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.operation-card{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:16px;display:grid;gap:9px;min-width:0}.operation-card h3{margin:0}.operation-card p{overflow-wrap:anywhere;white-space:pre-wrap}.operation-card .rowactions{display:flex;flex-wrap:wrap;gap:7px}.newsletter-export{display:grid;gap:14px}.subscriber-table{width:100%;border-collapse:collapse}.subscriber-table td,.subscriber-table th{padding:11px;border-bottom:1px solid var(--line);text-align:left}.trash-bulk-actions{display:flex;justify-content:flex-end;margin:0 0 14px}.quill-shell{position:relative}.quill-selection-bubble{display:none;position:absolute;z-index:1200;max-width:min(94%,720px);padding:6px;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px #0002;gap:4px;align-items:center;flex-wrap:wrap}.quill-selection-bubble.visible{display:flex}.quill-selection-bubble button,.quill-selection-bubble select{width:auto;min-width:32px;height:30px;padding:4px 7px;font-size:12px}.quill-shell.ribbon-collapsed>.ql-toolbar .ql-formats:not(:has([data-quill-action="ribbon-toggle"])){display:none!important}.quill-shell.ribbon-collapsed>.ql-toolbar .ql-formats:has([data-quill-action="ribbon-toggle"]){display:flex!important}.quill-shell.ribbon-collapsed>.ql-toolbar{min-height:46px!important;padding:6px!important}.quill-shell .ql-toolbar button[title],.quill-shell .ql-toolbar select[title]{position:relative}.quill-shell .ql-toolbar button:hover:after{content:attr(title);position:absolute;z-index:3000;left:50%;top:calc(100% + 7px);transform:translateX(-50%);white-space:nowrap;padding:5px 8px;background:#202820;color:#fff;border-radius:5px;font-size:10px;pointer-events:none}
@media(max-width:850px){.quill-selection-bubble{max-width:98%;left:1%!important}.operations-cards{grid-template-columns:1fr}}

.date-filter-label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;white-space:nowrap}.date-filter-label input{width:auto;min-width:130px;padding:8px}.trash-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px}.trash-group-head h3{margin:0}.trash-group-head button{font-size:11px;padding:6px 9px}
@media(max-width:850px){.date-filter-label{width:100%;justify-content:space-between}.date-filter-label input{flex:1}.trash-group-head{align-items:flex-start;flex-direction:column}}

.trash-item{position:relative;min-width:0}.trash-item-select{position:absolute;z-index:5;top:8px;left:8px;width:20px!important;height:20px;accent-color:var(--accent);background:var(--paper);box-shadow:0 1px 5px #0003}.trash-item .document-tile{width:100%}.trash-bulk-actions{gap:8px;flex-wrap:wrap}

.editor-dock{position:fixed;right:18px;bottom:18px;z-index:60000;display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:min(360px,90vw)}.editor-dock-item{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:11px 16px;box-shadow:0 8px 26px #0003;font-weight:700}.editor-minimize-button{font-size:22px!important;line-height:1!important;min-width:34px!important;padding:4px 10px!important}

.toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important}.toolbar>#search{flex:1 1 220px!important;min-width:180px}.toolbar>.date-filter-label{flex:0 1 auto}.toolbar>button{flex:0 0 auto}.toolbar>.date-filter-label input{min-height:38px}
@media(max-width:850px){.toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.toolbar>#search{grid-column:1/-1!important}.toolbar>.date-filter-label{grid-column:1/-1;display:flex}.toolbar>.date-filter-label input{flex:1}}
@media(max-width:470px){.toolbar{grid-template-columns:1fr!important}.toolbar>#search,.toolbar>.date-filter-label{grid-column:auto!important}}

.quill-shell.ribbon-collapsed>.ql-toolbar .ql-insert-tools button:not([data-quill-action="ribbon-toggle"]){display:none!important}.quill-shell.ribbon-collapsed>.ql-toolbar .ql-stats-wrap{display:none!important}

/* ModuraSpace CMS v1.7.1 visual system: editorial workspace, crisp contrast, and consistent surfaces. */
:root{--ink:#202a23;--muted:#657267;--line:#dce4dc;--paper:#ffffff;--bg:#f1f5f1;--green:#315b40;--green2:#244832;--red:#b43e3e;--gold:#a57c43;--surface-2:#f5f8f4;--surface-3:#eaf0e9;--sheet-shadow:0 -18px 60px #17261b30;color-scheme:light}
html[data-theme="dark"]{--ink:#edf4ed;--muted:#b5c2b6;--line:#3b4b3e;--paper:#1c2820;--bg:#111a14;--green:#80a887;--green2:#9bbca0;--red:#ff7777;--gold:#d0b27c;--surface-2:#243228;--surface-3:#2c3b30;--sheet-shadow:0 -18px 60px #0009;color-scheme:dark}
body{background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",system-ui,sans-serif;letter-spacing:.005em}
.shell{background:var(--bg)}
.main{max-width:1720px;width:100%;margin:0 auto;padding-top:26px}
.top{display:block;padding:18px 20px 15px;margin:0 0 20px;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 26px #17261b0b}
.header-main,.header-context{display:flex;align-items:center;justify-content:space-between;gap:18px}
.header-context{margin:20px 0 14px;padding-top:16px;border-top:1px solid var(--line)}
.top-brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:17px;font-weight:800;letter-spacing:-.03em}
.top-brand img{width:38px;height:38px;padding:5px;border-radius:11px;background:var(--surface-2)}
.brand-caption{font-size:11px;color:var(--muted);font-weight:600;letter-spacing:.04em}
.header-actions{display:flex;align-items:center;gap:8px}
.header-actions button,.top button{border-radius:10px;min-height:39px}
.header-context h1{font-size:clamp(25px,3vw,34px);letter-spacing:-.045em;font-weight:760;color:var(--ink)}
.nav{display:flex;flex-wrap:wrap;gap:6px;padding:10px 0 0;border-top:1px solid var(--line)}
.nav button{background:transparent;color:var(--muted);border:1px solid transparent;border-radius:9px;padding:8px 11px;font-size:12px;font-weight:700}
.nav button.active{background:var(--surface-3);color:var(--green2);border-color:var(--line);box-shadow:inset 0 -2px 0 var(--green)}
.nav button:hover{background:var(--surface-2);color:var(--ink)}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:21px;box-shadow:0 10px 32px #17261b0a}
.panelhead{padding-bottom:14px;border-bottom:1px solid var(--line)}
.panelhead h2{font-size:17px;font-weight:760;letter-spacing:-.02em}
.tag{background:var(--surface-3);color:var(--green2);font-weight:750;padding:5px 10px}
.toolbar{padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);grid-template-columns:minmax(210px,1.5fr) minmax(130px,.8fr) minmax(150px,.8fr) auto;align-items:center}
input,select,textarea{background:var(--paper);color:var(--ink);border-color:var(--line);box-shadow:0 1px 2px #17261b05}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:.86}
input:focus,select:focus,textarea:focus{outline:3px solid color-mix(in srgb,var(--green) 22%,transparent);border-color:var(--green)}
button{background:var(--paper);color:var(--ink);border-color:var(--line);transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease}
button:hover{border-color:var(--green);box-shadow:0 4px 12px #17261b10;transform:translateY(-1px)}
button.primary{background:var(--green);border-color:var(--green);color:#fff}
button.primary:hover{background:var(--green2);border-color:var(--green2)}
button.danger{color:var(--red);border-color:color-mix(in srgb,var(--red) 30%,var(--line))}
.viewbar{display:flex;align-items:center;gap:7px;margin:0 0 14px;color:var(--muted);font-size:12px}
.view-choice{background:transparent;color:var(--muted)}.view-choice.active{background:var(--surface-3);color:var(--green2);border-color:var(--line)}
.document-tile,.operation-card,.analytics-article-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 16px #17261b08}
.document-tile:hover,.operation-card:hover,.analytics-article-card:hover{border-color:color-mix(in srgb,var(--green) 45%,var(--line));box-shadow:0 10px 24px #17261b12}
.document-tile-copy strong,.operation-card h3{color:var(--ink);font-weight:760}
.document-tile-copy small,.operation-card .muted{color:var(--muted)}
.tablewrap{border-color:var(--line);border-radius:13px}
th{background:var(--surface-2);color:var(--muted)}td,th{border-color:var(--line)}
.modalback{background:#101912b8;backdrop-filter:blur(7px)}
.modal{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 28px 90px #0003}
.modalhead{border-color:var(--line)}
.modalhead h2{color:var(--ink);font-weight:780;letter-spacing:-.03em}
@media(min-width:851px){.modalback{padding:24px}.modalback>.modal{width:min(94vw,1600px);max-width:1600px;max-height:calc(100dvh - 48px);padding:28px 32px}.modalback:has(.modal form)>.modal{width:min(94vw,1600px)}}
@media(min-width:851px){.modal:has(.article-body-section){width:min(96vw,1680px);max-width:1680px}}
.form-section-heading,.article-body-section,.seo-fields-section{background:var(--surface-2)!important;border-color:var(--line)!important}
.field label{color:var(--ink)}.field .hint,.field-character-count{color:var(--muted)}
.formfoot{background:var(--paper);border-color:var(--line)}
.toastwrap{position:fixed;left:50%;right:auto;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(460px,calc(100vw - 28px));max-width:min(460px,calc(100vw - 28px));display:flex;flex-direction:column;align-items:center;gap:9px;pointer-events:none;z-index:90000}
.toast{width:100%;text-align:center;padding:13px 18px;border:1px solid #ffffff24;border-radius:13px;background:#243a2b;color:#fff;box-shadow:0 14px 38px #0b160e40;animation:toast-rise .28s cubic-bezier(.2,.8,.2,1) both;pointer-events:auto;font-weight:650}
.toast.error{background:#8d302e;color:#fff}.toast.success{background:#24583a;color:#fff}
.toast.toast-out{animation:toast-fade .26s ease forwards}
@keyframes toast-rise{from{opacity:0;transform:translateY(22px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes toast-fade{to{opacity:0;transform:translateY(-10px) scale(.98)}}
/* Remove the duplicate custom CSS hover tooltip. Native title tooltips remain the single shortcut hint. */
.quill-shell .ql-toolbar button:hover:after{content:none!important;display:none!important}
.quill-shell .ql-toolbar .ql-manage-tools{margin-left:auto!important;padding-left:12px;border-left:1px solid var(--line);display:inline-flex;align-items:center;gap:6px}
.quill-shell .ql-toolbar .ql-manage-tools button{width:auto;min-width:94px;padding:5px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--ink);font-size:11px;font-weight:750}
.quill-shell .ql-toolbar .ql-insert-tools{background:var(--surface-2);border-color:var(--line)}
.quill-shell .ql-toolbar .ql-insert-tools button{background:var(--paper);color:var(--ink);border-color:var(--line)}
.quill-shell .ql-toolbar .ql-list[value="ordered"],.quill-shell .ql-toolbar .ql-list[value="bullet"],.quill-shell .ql-toolbar .ql-list[value="check"]{border-radius:7px}
.quill-shell .ql-toolbar button[data-quill-action="arrow-list"],.quill-shell .ql-toolbar button[data-quill-action="tick-list"]{width:28px;min-width:28px;height:28px;min-height:28px;padding:2px 4px;background:var(--paper);border:1px solid var(--line);border-radius:6px;color:var(--green2);font-size:15px;font-weight:800}
.quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="ribbon-toggle"],.quill-shell .ql-toolbar .ql-insert-tools button[data-quill-action="fullscreen"]{display:none!important}
.quill-shell .ql-toolbar .ql-saved-style-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;border:1px solid var(--line);border-radius:9px;padding:4px 7px;background:var(--surface-2)}
.saved-styles-label{font-size:10px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.quill-shell .ql-toolbar .ql-saved-style-tools button{width:auto;min-width:0;padding:4px 8px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font-size:10px}
.quill-shell .ql-selection-bubble{background:var(--paper);color:var(--ink);border-color:var(--line);box-shadow:0 14px 38px #0003}
.quill-selection-bubble button,.quill-selection-bubble select{background:var(--paper);color:var(--ink);border:1px solid var(--line)}
.quill-style-backdrop{position:fixed;inset:0;z-index:85000;display:flex;align-items:center;justify-content:center;padding:18px;background:#0c160fb8;backdrop-filter:blur(6px)}
.quill-style-card{width:min(900px,100%);max-height:min(90dvh,950px);display:flex;flex-direction:column;overflow:hidden;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 90px #0005}
.quill-style-head,.quill-style-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border-bottom:1px solid var(--line)}.quill-style-head strong{font-size:16px}.quill-style-actions{border-top:1px solid var(--line);border-bottom:0;justify-content:flex-end}
.quill-style-body{padding:18px;display:grid;gap:14px;overflow:auto}.quill-style-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.quill-style-controls label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:750}.quill-style-preview{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.quill-style-preview small{display:block;margin-bottom:6px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.08em}.quill-style-preview p{margin:0;min-height:54px}
.quill-saved-styles{display:grid;gap:7px}.quill-saved-style{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px;border:1px solid var(--line);border-radius:9px}.quill-saved-style button:first-child{flex:1;text-align:left}
.operations-cards{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:13px}.operation-card{cursor:pointer;min-height:120px}.operation-card h3{font-size:15px}.operation-card .rowactions{margin-top:6px}.newsletter-export{display:flex;justify-content:flex-end;align-items:center;margin:0 0 12px}.newsletter-export-button{min-height:34px!important;padding:7px 12px!important;font-size:11px!important;border-radius:8px!important}.subscriber-table{min-width:720px}.subscriber-table th{white-space:nowrap}.subscriber-table td{overflow-wrap:anywhere}
.analytics-list{display:grid;gap:12px}.analytics-article-card{width:100%;padding:16px;text-align:left;display:grid;gap:12px;color:var(--ink)}.analytics-article-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.analytics-article-head strong{font-size:15px}.analytics-article-head small,.analytics-total{font-size:11px;color:var(--muted)}.analytics-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.analytics-metrics span{display:grid;gap:3px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}.analytics-metrics b{font-size:16px;font-weight:850}.analytics-metrics small{font-size:10px;color:var(--muted)}.analytics-like b{color:#18834a}.analytics-dislike b{color:#c44343}.analytics-engagement b{color:var(--green2)}.engagement-bar{height:8px;border-radius:99px;background:#d85b5b30;overflow:hidden}.engagement-bar span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#16854a,#58ad70)}
html[data-theme="dark"] .analytics-metrics span{background:var(--surface-2)}html[data-theme="dark"] .analytics-like b{color:#65d995}html[data-theme="dark"] .analytics-dislike b{color:#ff8585}html[data-theme="dark"] .engagement-bar{background:#c75b5b55}
html[data-theme="dark"] body,html[data-theme="dark"] .main{background:var(--bg);color:var(--ink)}html[data-theme="dark"] .top,html[data-theme="dark"] .panel,html[data-theme="dark"] .modal,html[data-theme="dark"] .bottom-sheet,html[data-theme="dark"] .operation-card,html[data-theme="dark"] .analytics-article-card{background:var(--paper);color:var(--ink);border-color:var(--line)}html[data-theme="dark"] .nav button{color:var(--muted)}html[data-theme="dark"] .nav button.active{background:var(--surface-3);color:var(--ink)}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#121c15;color:#f0f5ef;border-color:#465749}html[data-theme="dark"] button{background:#243329;color:var(--ink);border-color:var(--line)}html[data-theme="dark"] button.primary{background:#426b4d;color:#fff;border-color:#426b4d}html[data-theme="dark"] th{background:#26362a;color:#c3d0c4}html[data-theme="dark"] td{border-color:var(--line)}html[data-theme="dark"] .toolbar{background:#19251d;border-color:var(--line)}html[data-theme="dark"] .view-choice.active,html[data-theme="dark"] .tag{background:#304735;color:#e5f2e5}html[data-theme="dark"] .quill-style-card{background:var(--paper);color:var(--ink)}
@media(max-width:850px){.main{padding:12px 10px 28px}.top{padding:14px;border-radius:14px}.header-main{align-items:flex-start}.header-context{margin:14px 0 10px}.nav{flex-wrap:nowrap;overflow-x:auto}.panel{padding:14px}.quill-style-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.quill-shell .ql-toolbar .ql-manage-tools{margin-left:0!important;border-left:0;padding-left:0}.toastwrap{bottom:calc(16px + env(safe-area-inset-bottom))}}
@media(max-width:520px){.header-main{flex-wrap:wrap}.top-brand{font-size:15px}.brand-caption{display:none}.header-actions{width:100%;justify-content:flex-start}.header-actions .new-document-button{flex:1}.header-context{align-items:flex-start;flex-direction:column}.quill-style-controls{grid-template-columns:1fr}.quill-style-backdrop{padding:8px}.quill-style-card{max-height:94dvh;border-radius:13px}.quill-style-body{padding:12px}.analytics-metrics{grid-template-columns:1fr 1fr}.analytics-engagement{grid-column:1/-1}.operations-cards{grid-template-columns:1fr}.newsletter-export{justify-content:flex-start}}
.badge-picker{position:relative;display:grid;gap:7px}.badge-picker-trigger{width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center;background:var(--paper);color:var(--ink);border:1px solid var(--line)}.badge-picker-trigger:after{content:'⌄';color:var(--muted)}.badge-value-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;left:-10000px!important}.badge-picker-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:1200;max-height:320px;overflow:auto;padding:6px;background:var(--paper);border:1px solid var(--line);border-radius:11px;box-shadow:0 14px 38px #0002}.badge-picker-menu[hidden]{display:none}.badge-picker-option{display:grid;width:100%;gap:3px;text-align:left;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:var(--ink)}.badge-picker-option:hover{background:var(--surface-2);transform:none;box-shadow:none}.badge-picker-option strong{font-size:12px}.badge-picker-option small{font-size:10px;line-height:1.45;color:var(--muted);white-space:normal}
.operations-gallery{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.operations-card-view{grid-template-columns:1fr}.operations-card-view .operation-card{grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:0}.operations-card-view .operation-card h3,.operations-card-view .operation-card>p{grid-column:1}.operations-card-view .operation-card .rowactions{grid-column:2;grid-row:1/3;justify-content:flex-end}.operations-card-view .operation-card .rowactions button{font-size:11px;padding:6px 8px}
html[data-theme="dark"] .modalhead,html[data-theme="dark"] .modal .formfoot{background:var(--paper)!important;color:var(--ink)!important}
html[data-theme="dark"] .tablewrap tr{background:var(--paper)!important;border-color:var(--line)!important;box-shadow:none!important}
html[data-theme="dark"] .quill-shell{background:var(--paper)!important;border-color:var(--line)!important}
html[data-theme="dark"] .quill-shell .ql-toolbar.ql-snow{background:#202e24!important;border-color:var(--line)!important}
html[data-theme="dark"] .quill-shell .ql-toolbar .ql-formats{background:#26372b!important;border-color:#465749!important}
html[data-theme="dark"] .quill-shell .ql-toolbar button,html[data-theme="dark"] .quill-shell .ql-toolbar select{color:#edf4ed!important}
html[data-theme="dark"] .quill-shell .ql-toolbar .ql-insert-tools button,html[data-theme="dark"] .quill-shell .ql-toolbar .ql-manage-tools button,html[data-theme="dark"] .quill-shell .ql-toolbar .ql-saved-style-tools button{background:#1a271e!important;color:#edf4ed!important;border-color:#506353!important}
html[data-theme="dark"] .quill-shell .ql-toolbar button:hover,html[data-theme="dark"] .quill-shell .ql-toolbar button.ql-active{background:#38523d!important}
html[data-theme="dark"] .quill-shell .ql-editor blockquote{background:#26362a!important;color:#dbe6db!important}
html[data-theme="dark"] .product-picker-card,html[data-theme="dark"] .product-mention-menu,html[data-theme="dark"] .delta-json-card,html[data-theme="dark"] .image-settings-form{background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .product-mention-menu button,html[data-theme="dark"] .delta-json-head,html[data-theme="dark"] .image-settings-actions button{background:#243329!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .delta-json-content{background:#101812!important;color:#eaf2e9!important}
html[data-theme="dark"] .detailpre{background:#111a14!important;color:#eaf2e9!important}
html[data-theme="dark"] .badge-picker-menu{background:var(--paper)!important;border-color:var(--line)!important}
html[data-theme="dark"] .badge-picker-option{background:transparent!important;color:var(--ink)!important}
html[data-theme="dark"] .badge-picker-option:hover{background:var(--surface-2)!important}
html[data-theme="dark"] .imagecard{background:var(--paper)!important;border-color:var(--line)!important}
html[data-theme="dark"] .imagecard>button[aria-label^="Remove"]{background:#3a2423!important;color:#ffb2ab!important;border-color:#74423d!important}

/* v1.7.3 corrective refinements */
.quill-shell .ql-toolbar .ql-saved-style-tools{display:flex;align-items:center;flex-wrap:nowrap;gap:5px;max-width:100%;min-width:0;overflow-x:auto;scrollbar-width:thin}
.quill-shell .ql-toolbar .ql-saved-style-tools .saved-styles-label{flex:0 0 auto;font-size:10px;font-weight:800;color:var(--muted);padding:0 5px}
.quill-shell .ql-toolbar .ql-saved-style-tools button.saved-style-button{display:block;flex:0 1 150px;width:auto;min-width:72px;max-width:150px;height:29px;min-height:29px;padding:4px 9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;line-height:19px;font-size:11px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink)}
.quill-shell .ql-toolbar .ql-saved-style-tools button.saved-style-button:hover{background:var(--surface-2);border-color:var(--green)}
.quill-shell .ql-toolbar .ql-saved-style-tools button.saved-style-button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.quill-selection-bubble{z-index:8;max-width:calc(100% - 16px);}
.quill-selection-bubble button.is-active{background:var(--surface-3)!important;color:var(--green2)!important;border-color:var(--green)!important;box-shadow:inset 0 -2px 0 var(--green)}
.quill-selection-bubble button.bubble-copy-format,.quill-selection-bubble button.bubble-paste-format{font-size:16px;font-weight:800;min-width:32px}
.quill-style-card.quill-style-editor-dialog{width:min(1320px,96vw);max-height:min(92dvh,1000px)}
.quill-style-editor-dialog .quill-style-body{gap:12px}
.quill-style-editor-dialog .quill-style-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.8fr);gap:14px;align-items:start}
.quill-style-editor-dialog .quill-style-toolbar{display:flex;flex-wrap:wrap;gap:5px;align-content:flex-start;max-height:62dvh;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.quill-style-editor-dialog .quill-style-toolbar .ql-formats{display:flex;align-items:center;gap:2px;margin:0 3px 4px 0;padding:3px;border:1px solid var(--line);border-radius:7px;background:var(--paper)}
.quill-style-editor-dialog .quill-style-toolbar button{width:28px;height:28px;padding:3px}
.quill-style-editor-dialog .quill-style-toolbar select{height:29px;max-width:112px;font-size:11px}
.quill-style-preview-panel{position:sticky;top:0;min-width:0;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}
.quill-style-preview-panel>small{display:block;margin-bottom:10px;color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.09em}
.quill-style-preview-editor{min-height:180px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}
.quill-style-preview-editor .ql-editor{min-height:150px;padding:10px;line-height:1.55}
.quill-style-update-all{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid color-mix(in srgb,var(--green) 30%,var(--line));border-radius:9px;background:var(--surface-2);color:var(--ink);font-size:12px;font-weight:650}
.quill-style-update-all input{width:17px;height:17px;flex:0 0 auto;margin:0}
.quill-saved-style-list{display:grid;gap:6px;max-height:170px;overflow:auto}
.quill-saved-style{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px;padding:7px;border:1px solid var(--line);border-radius:8px}
.quill-saved-style button:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.analytics-list{display:grid;gap:5px}
.analytics-article-row{width:100%;min-height:42px;display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(130px,auto);align-items:center;gap:12px;padding:8px 12px;text-align:left;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);box-shadow:none}
.analytics-article-row:hover{background:var(--surface-2);border-color:var(--green);transform:none;box-shadow:none}
.analytics-article-row>strong{font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.analytics-row-metrics{display:flex;align-items:center;gap:12px;font-size:11px;font-weight:750;white-space:nowrap}
.analytics-article-row>small{color:var(--muted);font-size:10px;text-align:right;white-space:nowrap}
.analytics-like{color:#16834a}.analytics-dislike{color:#c13d3d}.analytics-engagement{color:var(--green2)}
html[data-theme="dark"] button:active,html[data-theme="dark"] .nav button:active,html[data-theme="dark"] .header-actions button:active{background:#050806!important;color:#fff!important;border-color:#050806!important}
html[data-theme="dark"] .nav button.active{background:#26372b!important;color:#f3f7f2!important}
html[data-theme="dark"] .quill-style-editor-dialog .quill-style-toolbar .ql-formats{background:#26372b;border-color:#465749}
html[data-theme="dark"] .quill-style-editor-dialog .quill-style-toolbar button,html[data-theme="dark"] .quill-style-editor-dialog .quill-style-toolbar select{background:#1a271e;color:#edf4ed;border-color:#506353}
html[data-theme="dark"] .quill-style-preview-editor{background:#111a14;color:#edf4ed}
html[data-theme="dark"] .quill-style-preview-editor .ql-editor{color:#edf4ed}
html[data-theme="dark"] .analytics-article-row{background:var(--paper);color:var(--ink)}
@media(max-width:850px){.nav{justify-content:flex-start;align-items:center;width:100%;padding-inline:4px;scroll-padding-inline:4px}.side{width:100%;min-width:0}.quill-style-editor-dialog .quill-style-workspace{grid-template-columns:1fr}.quill-style-preview-panel{position:relative;order:-1}.quill-style-editor-dialog .quill-style-toolbar{max-height:38dvh}}
@media(max-width:600px){.analytics-article-row{grid-template-columns:minmax(0,1fr) auto;gap:6px}.analytics-row-metrics{grid-column:1;grid-row:2;gap:9px}.analytics-article-row>small{grid-column:2;grid-row:2}.quill-style-saved-styles{max-width:100%}.quill-shell .ql-toolbar .ql-saved-style-tools button.saved-style-button{max-width:120px}}

/* Reliable typed confirmation for destructive Firestore actions */
.danger-confirm-backdrop{position:fixed;inset:0;z-index:100500;display:grid;place-items:center;padding:18px;background:#0b130dcc;backdrop-filter:blur(5px)}
.danger-confirm-dialog{width:min(460px,100%);display:grid;gap:12px;padding:22px;border:1px solid var(--line);border-radius:15px;background:var(--paper);color:var(--ink);box-shadow:0 24px 80px #0006}
.danger-confirm-dialog h3{margin:0;font-size:17px}.danger-confirm-dialog p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.danger-confirm-dialog label{display:grid;gap:6px;font-size:12px;font-weight:750}.danger-confirm-dialog input{width:100%;padding:11px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--ink);font-weight:750;letter-spacing:.08em}.danger-confirm-error{min-height:15px;color:var(--red);font-size:11px}.danger-confirm-actions{display:flex;justify-content:flex-end;gap:8px}.danger-confirm-actions .danger{background:var(--red);border-color:var(--red);color:#fff}.danger-confirm-actions .danger:disabled{opacity:.45}
.quill-shell .ql-editor li::before,.quill-shell .ql-editor li::marker{font-size:inherit!important;line-height:inherit!important;font-weight:inherit;color:currentColor}
.quill-shell .ql-editor li{font-size:inherit;line-height:inherit}
.quill-shell .ql-editor .ql-font-arial{font-family:Arial,Helvetica,sans-serif}.quill-shell .ql-editor .ql-font-georgia{font-family:Georgia,serif}.quill-shell .ql-editor .ql-font-times-new-roman{font-family:"Times New Roman",serif}.quill-shell .ql-editor .ql-font-verdana{font-family:Verdana,sans-serif}.quill-shell .ql-editor .ql-font-trebuchet-ms{font-family:"Trebuchet MS",sans-serif}.quill-shell .ql-editor .ql-font-lato{font-family:Lato,sans-serif}.quill-shell .ql-editor .ql-font-playfair-display{font-family:"Playfair Display",Georgia,serif}.quill-shell .ql-editor .ql-font-merriweather{font-family:Merriweather,Georgia,serif}
html[data-theme="dark"] .nav button.active{background:#050806!important;color:#fff!important;border-color:#050806!important}
@media(max-width:850px){.nav{justify-content:center;padding-inline:8px;scroll-padding-inline:8px}.nav button{margin-inline:1px}}

.quill-selection-bubble svg{display:block;width:17px;height:17px;stroke:currentColor;fill:none}

html[data-theme="dark"] button:focus{background:#050806!important;color:#fff!important;border-color:#050806!important}
.quill-style-update-all[hidden]{display:none!important}

/* v1.7.3 final editor and header corrections */
/* Saved styles flow in horizontal rows instead of stacking as a vertical ribbon. */
.quill-shell .ql-toolbar .ql-saved-style-tools{display:flex!important;flex:1 1 100%;flex-wrap:wrap!important;align-items:center;gap:6px;min-width:0;max-width:100%;overflow:visible!important}
.quill-shell .ql-toolbar .ql-saved-style-tools button.saved-style-button{flex:0 1 160px;min-width:90px;max-width:160px}

/* The style dialog uses the full native Quill toolbar. Keep picker palettes above
   scroll containers and the modal surface rather than clipping them. */
.quill-style-editor-dialog{overflow:visible!important}
.quill-style-editor-dialog .quill-style-body{overflow:visible!important;max-height:calc(92dvh - 112px);overflow-y:auto!important;overflow-x:visible!important;scrollbar-gutter:stable}
.quill-style-editor-dialog .quill-style-workspace{overflow:visible!important;align-items:start}
.quill-style-editor-dialog .quill-style-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;align-content:flex-start!important;gap:7px!important;max-height:none!important;overflow:visible!important;padding:12px!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-formats{display:inline-flex!important;flex:0 0 auto!important;flex-wrap:wrap!important;align-items:center!important;gap:3px!important;margin:0!important;padding:4px!important;min-height:40px}
.quill-style-editor-dialog .quill-style-toolbar button{width:30px!important;height:30px!important;min-width:30px!important;padding:4px!important}
.quill-style-editor-dialog .quill-style-toolbar select{height:32px!important;max-width:150px!important;min-width:70px!important;font-size:12px!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker{position:relative;z-index:1}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker.ql-expanded{z-index:100101!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker-options{z-index:100102!important;max-height:55vh;overflow:auto;box-shadow:0 10px 28px #0003}
.quill-style-editor-dialog .quill-style-preview-panel{min-width:0;z-index:0}
.quill-style-editor-dialog .quill-style-preview-editor .ql-container{border:0}
.quill-style-editor-dialog .quill-style-preview-editor .ql-editor{min-height:160px;overflow-wrap:anywhere}
.quill-style-editor-dialog .ql-toolbar .ql-picker-label{min-height:30px}
.quill-style-editor-dialog .ql-toolbar .ql-picker-options .ql-picker-item{min-height:24px}

/* Floating quick tools: native arbitrary colour pickers and reliable selection placement. */
.quill-selection-bubble{z-index:1200;isolation:isolate;max-width:min(96%,760px);align-items:center}
.quill-selection-bubble input[type="color"]{display:block;width:34px!important;min-width:34px!important;height:30px!important;padding:2px!important;border:1px solid var(--line)!important;border-radius:7px!important;background:var(--paper)!important;cursor:pointer}
.quill-selection-bubble select{max-width:120px}
.quill-selection-bubble button,.quill-selection-bubble select,.quill-selection-bubble input{flex:0 0 auto}

/* List markers inherit the actual formatted text size, including inline font-size spans. */
.quill-shell .ql-editor li{font-size:inherit;line-height:inherit}
.quill-shell .ql-editor li>.ql-ui:before{font-size:var(--ql-list-marker-size,1em)!important;line-height:inherit!important;font-weight:inherit!important;color:currentColor!important}
.quill-shell .ql-editor li::before,.quill-shell .ql-editor li::marker{font-size:var(--ql-list-marker-size,1em)!important;line-height:inherit!important;font-weight:inherit!important;color:currentColor!important}

/* Full-screen toolbar prioritises the content workflow row and keeps normal/mobile
   toolbar order untouched. */
@media(min-width:851px){
 .quill-shell.quill-fullscreen>.ql-toolbar.ql-snow{display:flex!important;flex-wrap:wrap!important;align-content:flex-start!important;align-items:center!important;gap:6px!important;padding:8px 10px!important}
 .quill-shell.quill-fullscreen>.ql-toolbar>.ql-insert-tools{order:-2!important;flex:1 1 100%!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px!important;padding:4px 0!important;margin:0!important;border:0!important}
 .quill-shell.quill-fullscreen>.ql-toolbar>.ql-formats:not(.ql-insert-tools){order:0;flex:0 1 auto!important;margin:0 4px 0 0!important}
 .quill-shell.quill-fullscreen>.ql-toolbar>.ql-manage-tools{order:2;margin-left:auto!important}
 .quill-shell.quill-fullscreen>.ql-toolbar>.ql-stats-wrap{order:3;margin-left:auto!important}
}

/* Header content has consistent inset padding; navigation is centred within the
   header container rather than visually sticking to viewport edges. */
.main{width:min(100%,1800px)!important;max-width:1800px!important;margin-inline:auto!important;padding-inline:clamp(14px,2.2vw,36px)!important}
.top{padding-inline:clamp(16px,2.5vw,34px)!important}
.nav{justify-content:center!important;align-items:center!important;padding-inline:clamp(2px,1vw,12px)!important;gap:7px!important}
.nav button{margin:0!important;min-width:0}
@media(max-width:850px){
 .main{padding-inline:12px!important}
 .top{padding:13px 14px 12px!important}
 .nav{grid-template-columns:repeat(4,minmax(0,1fr))!important;justify-content:stretch!important;align-items:stretch!important;padding:9px 2px 3px!important;gap:6px!important}
 .nav button{width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .quill-style-editor-dialog{max-height:94dvh!important;width:min(96vw,760px)!important;overflow:hidden!important}
 .quill-style-editor-dialog .quill-style-body{max-height:calc(94dvh - 105px)!important;overflow-y:auto!important;overflow-x:hidden!important}
 .quill-style-editor-dialog .quill-style-workspace{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 .quill-style-editor-dialog .quill-style-preview-panel{position:relative!important;order:0!important}
 .quill-style-editor-dialog .quill-style-toolbar{max-height:none!important}
 .quill-shell .ql-toolbar .ql-saved-style-tools{flex-basis:100%!important}
}
@media(max-width:560px){
 .quill-style-editor-dialog .quill-style-toolbar .ql-formats{flex:1 1 auto!important;justify-content:flex-start!important}
 .quill-style-editor-dialog .quill-style-toolbar select{max-width:118px!important}
 .quill-style-editor-dialog .quill-style-toolbar .ql-picker{max-width:100%}
 .quill-shell .ql-toolbar .ql-saved-style-tools button.saved-style-button{flex:0 1 calc(50% - 4px);max-width:calc(50% - 4px);min-width:0}
}

/* V1.8.0 multi-user administration */
.user-switcher-wrap{display:flex;align-items:center;gap:7px;min-width:0;padding:5px 8px;border:1px solid var(--line);border-radius:10px;background:var(--paper);}
.user-switcher-wrap label{font-size:11px;font-weight:700;color:var(--muted);white-space:nowrap;}
.user-switcher-wrap select{min-width:145px;max-width:220px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:12px;padding:5px 22px 5px 4px;outline-offset:2px;}
.user-management-intro{padding:16px 18px;margin-bottom:16px;border:1px solid var(--line);border-radius:14px;background:var(--paper);}
.user-management-intro h3{margin:0 0 6px;font-size:17px;}
.user-management-intro p{margin:0;color:var(--muted);font-size:13px;line-height:1.6;}
.user-profile-list{display:grid;gap:10px;}
.user-profile-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:13px;background:var(--paper);}
.user-profile-identity{display:grid;gap:3px;min-width:0;}
.user-profile-identity strong{overflow-wrap:anywhere;}
.user-profile-identity small{color:var(--muted);overflow-wrap:anywhere;font-size:11px;}
.user-profile-card .tag{white-space:nowrap;}
.permission-matrix{display:grid;gap:0;margin:16px 0;border:1px solid var(--line);border-radius:12px;overflow:hidden;}
.permission-row{display:grid;grid-template-columns:minmax(150px,1.7fr) repeat(4,minmax(48px,.55fr));align-items:center;min-height:48px;border-bottom:1px solid var(--line);}
.permission-row:last-child{border-bottom:0;}
.permission-row>strong{padding:10px 12px;font-size:12px;}
.permission-header{background:var(--surface-2,var(--bg));}
.permission-header>strong{text-align:center;font-size:11px;}
.permission-header>strong:first-child{text-align:left;}
.permission-cell{display:flex;align-items:center;justify-content:center;height:100%;cursor:pointer;}
.permission-cell input{width:17px;height:17px;accent-color:var(--accent);cursor:pointer;}
.user-permission-modal{width:min(760px,calc(100vw - 28px));}
.audit-log-list{display:grid;gap:8px;}
.audit-log-row{display:grid;gap:5px;padding:12px 15px;border:1px solid var(--line);border-radius:11px;background:var(--paper);}
.audit-log-row strong{font-size:13px;overflow-wrap:anywhere;}
.audit-log-row small{color:var(--muted);font-size:11px;overflow-wrap:anywhere;}
@media(max-width:760px){.user-switcher-wrap{order:5;width:100%;justify-content:space-between;}.user-switcher-wrap select{max-width:none;flex:1;}.user-profile-card{grid-template-columns:minmax(0,1fr) auto;}.user-profile-card .tag{grid-column:2;grid-row:1;}.user-profile-card button{grid-column:1/-1;width:100%;}.permission-row{grid-template-columns:minmax(105px,1.4fr) repeat(4,minmax(38px,.55fr));}.permission-row>strong{padding:8px 6px;font-size:10px;}.permission-header>strong{font-size:9px;}}
@media(max-width:760px){.header-actions{flex-wrap:wrap}.user-switcher-wrap{flex:1 0 100%;grid-column:1/-1}}
@media(max-width:520px){.header-actions{flex-wrap:wrap}.user-switcher-wrap{width:100%;flex:1 0 100%}}
.user-profile-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.user-profile-actions button{white-space:nowrap}
@media(max-width:760px){.user-profile-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:7px}.user-profile-actions button{width:100%}}

/* v1.8.4: responsive access editor and review queue */
.user-permission-modal{display:flex;flex-direction:column;width:min(760px,calc(100vw - 28px))!important;max-height:calc(100dvh - 28px);overflow:hidden;padding:clamp(16px,3vw,24px);gap:12px;}
.user-permission-modal .modalhead{flex:0 0 auto;margin:0;padding:15px 20px!important;}
.user-permission-modal .user-management-intro,.user-permission-modal>p,.user-permission-modal>.field{margin-left:20px;margin-right:20px;}
.user-permission-modal>.field{margin-top:0;margin-bottom:0;}
.user-permission-modal .permission-matrix{margin-left:20px;margin-right:20px;}
.user-permission-modal .permission-matrix{flex:1 1 auto;min-height:0;max-height:min(48dvh,460px);overflow:auto;overscroll-behavior:contain;margin:8px 0;}
.user-permission-modal .permission-row{min-width:590px;}
.user-permission-modal .formfoot{flex:0 0 auto;padding:13px 20px!important;margin-top:0;}
.user-permission-modal .muted{line-height:1.55;}
.review-queue-list{display:grid;gap:11px;}
.review-queue-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:13px;background:var(--paper);box-shadow:0 3px 12px #17261b08;min-width:0;}
.review-queue-info{display:grid;gap:5px;min-width:0;}
.review-queue-info strong{font-size:14px;overflow-wrap:anywhere;}
.review-queue-info small{font-size:11px;color:var(--muted);overflow-wrap:anywhere;}
.review-queue-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
@media(max-width:680px){.review-queue-card{grid-template-columns:1fr;padding:14px;gap:11px}.review-queue-actions{display:grid;grid-template-columns:1fr 1fr}.review-queue-actions button{width:100%;font-size:11px;padding:8px 6px}.user-permission-modal{max-height:calc(100dvh - 16px);padding:13px;}.user-permission-modal .permission-matrix{max-height:46dvh;}}

/* v1.8.5: identity, read-only cards and per-collection ownership filters */
.welcome-name{font-size:12px;font-weight:800;letter-spacing:.015em;color:var(--green);margin:0 0 2px}
.my-content-filter{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px 12px;margin:0 0 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.my-content-filter>span{font-size:11px;font-weight:700;color:var(--muted);margin-right:3px}
.my-content-filter button{min-height:30px;padding:6px 11px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font-size:11px;font-weight:650}
.my-content-filter button.active{border-color:var(--green);background:var(--green);color:#fff}
.shared-readonly-tile{cursor:default;opacity:.96}
.shared-readonly-tile:hover{transform:none;box-shadow:0 4px 15px #17231812}
.sheet-identity{display:grid;gap:8px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.sheet-identity h3{margin:0 0 2px;font-size:13px}
.sheet-identity-row{display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;align-items:start;font-size:12px}
.sheet-identity-row strong{color:var(--muted)}.sheet-identity-row span{overflow-wrap:anywhere}
.review-queue-actions{display:flex;gap:7px;flex-wrap:wrap}
@media(max-width:560px){.my-content-filter{gap:6px;padding:8px}.my-content-filter button{flex:1}.sheet-identity-row{grid-template-columns:1fr;gap:2px}}


/* v1.8.7 final refinement */
.brand-welcome-group{display:flex;align-items:center;gap:clamp(12px,2vw,24px);min-width:0;flex:1 1 auto}
.header-welcome{display:block;margin:0;padding:0 0 0 clamp(12px,2vw,22px);border-left:1px solid var(--line);font-size:clamp(16px,2vw,22px);line-height:1.2;font-weight:850;letter-spacing:-.025em;color:var(--ink);overflow-wrap:anywhere}
.header-context{padding-top:10px}
.sheet-primary-preview{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:88px;margin:12px 0 4px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.sheet-primary-preview-media{display:block;width:auto;max-width:min(220px,42vw);height:auto;max-height:150px;object-fit:contain;border-radius:8px}
.sheet-primary-preview-media:where(video){width:min(220px,42vw);background:#101712}
.product-picker-card{gap:12px;padding:20px!important;border:1px solid var(--line);box-shadow:0 20px 60px #0003}
.product-picker-card>input,.product-picker-card .mention-search{margin:0!important;width:100%;min-width:0}
.product-picker-list{padding:2px 3px 4px;gap:8px;margin-top:0}
.product-choice{padding:12px 14px!important;gap:12px;align-items:center;min-width:0}
.product-choice-action{padding-left:8px}
.product-mention-menu.mention-combined-menu{padding:12px!important;gap:9px!important}
.mention-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:2px 0}
.mention-tabs button{padding:7px 12px!important;border:1px solid var(--line)!important;border-radius:8px!important}
.mention-results{padding:3px!important;gap:7px!important}
.mention-results .mention-result{padding:10px 12px!important;gap:10px!important;min-height:56px!important;border:1px solid var(--line)!important}
.mention-result .mention-type{flex:0 0 auto;padding:4px 6px;border-radius:6px;font-size:9px;font-weight:800}
.mention-result .product-option-copy small{font-size:10px!important}
.mention-result .product-mention-id{display:none!important}
.quill-style-editor-dialog{width:min(1180px,96vw)!important;max-height:min(92dvh,920px)!important;overflow:hidden!important}
.quill-style-editor-dialog .quill-style-body{min-height:0;max-height:calc(92dvh - 118px)!important;overflow:auto!important;overflow-x:hidden!important;padding:clamp(12px,2vw,20px)!important;gap:14px!important}
.quill-style-editor-dialog .quill-style-workspace{min-width:0;gap:14px!important;overflow:visible!important}
.quill-style-editor-dialog .quill-style-toolbar{min-width:0;max-height:none!important;overflow:visible!important;padding:12px!important;gap:8px!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-formats{min-width:0;max-width:100%;flex-wrap:wrap;align-items:center;justify-content:flex-start;margin:0!important;padding:5px!important;gap:4px!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker{position:relative!important;max-width:100%;z-index:2}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker.ql-expanded{z-index:100110!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker-options{position:fixed!important;left:auto;right:auto;z-index:100120!important;max-width:min(250px,80vw)!important;max-height:220px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;box-shadow:0 10px 28px #0003!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker-item{min-height:28px;padding:5px 10px!important;white-space:normal!important}
.quill-style-editor-dialog .quill-style-preview-panel{min-width:0;position:relative!important}
.quill-style-editor-dialog .quill-style-preview-editor{min-width:0;overflow-wrap:anywhere}
.quill-style-editor-dialog .quill-style-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;padding:12px 18px calc(12px + env(safe-area-inset-bottom))!important;border-top:1px solid var(--line)}
@media(max-width:850px){.quill-style-editor-dialog .quill-style-workspace{grid-template-columns:minmax(0,1fr)!important}.quill-style-editor-dialog .quill-style-preview-panel{order:0}.quill-style-editor-dialog .quill-style-toolbar{max-height:none!important}}
@media(max-width:600px){.brand-welcome-group{width:100%;flex:1 1 100%;gap:10px}.header-welcome{font-size:16px;padding-left:10px}.header-main{align-items:center}.quill-style-backdrop{padding:8px!important;align-items:center}.quill-style-editor-dialog{width:100%!important;max-height:94dvh!important;border-radius:14px!important}.quill-style-editor-dialog .quill-style-body{max-height:calc(94dvh - 112px)!important;padding:11px!important}.quill-style-editor-dialog .quill-style-toolbar .ql-formats{flex:1 1 100%!important}.sheet-primary-preview{min-height:72px;padding:8px}.sheet-primary-preview-media{max-width:48vw;max-height:120px}}

/* v1.8.8: compact, readable Quill picker popups in the Styles dialog */
.quill-style-editor-dialog .quill-style-toolbar .ql-picker-options.quill-style-picker-popup{
 display:none!important;inline-size:max-content!important;width:max-content!important;min-width:0!important;
 max-width:min(260px,calc(100vw - 16px))!important;box-sizing:border-box!important;
 padding:5px!important;margin:0!important;border:1px solid #d8ddd6!important;border-radius:9px!important;
 background:#fff!important;color:#171c18!important;box-shadow:0 12px 30px #10181035!important;
 white-space:nowrap!important;overflow-x:hidden!important;overflow-y:auto!important;
}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker.ql-expanded .ql-picker-options.quill-style-picker-popup{
 display:block!important;
}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker:not(.ql-color-picker) .ql-picker-options.quill-style-picker-popup .ql-picker-item{
 display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;
 min-height:27px!important;padding:5px 10px!important;margin:0!important;border-radius:5px!important;
 color:#171c18!important;font-size:12px!important;line-height:1.35!important;
 text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker:not(.ql-color-picker) .ql-picker-options.quill-style-picker-popup .ql-picker-item:hover,
.quill-style-editor-dialog .quill-style-toolbar .ql-picker:not(.ql-color-picker) .ql-picker-options.quill-style-picker-popup .ql-picker-item.ql-selected{
 color:#111!important;background:#edf2ed!important;
}
.quill-style-editor-dialog .quill-style-toolbar .ql-color-picker .ql-picker-options.quill-style-picker-popup{width:152px!important;max-width:min(152px,calc(100vw - 16px))!important;padding:5px!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker-options.quill-style-picker-popup .ql-picker-item:before{color:inherit!important}
html[data-theme="dark"] .quill-style-editor-dialog .quill-style-toolbar .ql-picker-options.quill-style-picker-popup{
 background:#1b261e!important;color:#f0f5ef!important;border-color:#526454!important;box-shadow:0 12px 32px #0009!important;
}
html[data-theme="dark"] .quill-style-editor-dialog .quill-style-toolbar .ql-picker:not(.ql-color-picker) .ql-picker-options.quill-style-picker-popup .ql-picker-item,
html[data-theme="dark"] .quill-style-editor-dialog .quill-style-toolbar .ql-picker-options.quill-style-picker-popup .ql-picker-item:before{
 color:#f0f5ef!important;
}
html[data-theme="dark"] .quill-style-editor-dialog .quill-style-toolbar .ql-picker:not(.ql-color-picker) .ql-picker-options.quill-style-picker-popup .ql-picker-item:hover,
html[data-theme="dark"] .quill-style-editor-dialog .quill-style-toolbar .ql-picker:not(.ql-color-picker) .ql-picker-options.quill-style-picker-popup .ql-picker-item.ql-selected{
 color:#fff!important;background:#344a38!important;
}


/* v1.8.9: dismissible, top-layer Quill style pickers */
.quill-style-backdrop{z-index:99990!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker.ql-expanded{z-index:100010!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker-options.quill-style-picker-popup{z-index:100020!important;pointer-events:auto!important;isolation:isolate}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker-options.quill-style-picker-popup .ql-picker-item{cursor:pointer!important;pointer-events:auto!important}


/* v1.8.10: popup visibility is controlled only by Quill's expanded state */
.quill-style-editor-dialog .quill-style-toolbar .ql-picker:not(.ql-expanded) .ql-picker-options.quill-style-picker-popup{display:none!important;visibility:hidden!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker.ql-expanded .ql-picker-options.quill-style-picker-popup{display:block!important;visibility:visible!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker.ql-expanded{z-index:100110!important}
.quill-style-editor-dialog .quill-style-toolbar .ql-picker-options.quill-style-picker-popup{z-index:100120!important;pointer-events:auto!important}

/* v1.8.10: refreshed ModuraSpace brand mark sizing */
.top-brand img{width:38px;height:38px;object-fit:contain;flex:0 0 auto}
.login-logo{width:68px;height:68px;object-fit:contain}
.auth-loading img{width:42px;height:42px;object-fit:contain}
