/* V7.8 owner mobile reliability: crop editor, stable actions and safe-area fit. */
.trust-duration{display:grid;gap:7px;margin:10px 0 14px;font-weight:800}
.trust-duration select{min-height:48px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);padding:0 12px;font-size:16px}
.v780-editor-actions{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom));z-index:5;padding:10px;border:1px solid var(--border);border-radius:16px;background:color-mix(in srgb,var(--surface) 94%,transparent);box-shadow:0 10px 28px rgba(15,47,39,.12);backdrop-filter:blur(12px)}
.v780-editor-actions>*{min-height:48px;flex:1 1 145px}
.v780-cancel{border:0;border-radius:12px;background:#f59e0b;color:#251505;font-weight:850;padding:11px 16px}
.v780-image-dialog form{width:min(94vw,480px)}
.v780-image-editor{position:relative;width:min(78vw,360px);aspect-ratio:1;margin:8px auto 14px;border:2px solid color-mix(in srgb,var(--brand) 70%,#fff);border-radius:18px;overflow:hidden;background:repeating-conic-gradient(#f7f5ed 0 25%,#fff 0 50%) 50%/24px 24px;touch-action:none;user-select:none}
.v780-image-editor canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.v780-image-editor canvas:active{cursor:grabbing}
.v780-image-empty{position:absolute;inset:0;display:grid;place-items:center;padding:24px;color:var(--muted);font-weight:800;text-align:center;pointer-events:none}
.v780-image-source,.v780-image-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
.v780-image-source .photo-label,.v780-image-tools button{display:grid;place-items:center;min-height:48px;margin:0;text-align:center}
.v780-money-input{font-variant-numeric:tabular-nums}
.rx-rev-card[data-revenue-action]{cursor:pointer;border:1px solid var(--border);transition:transform .15s ease,box-shadow .15s ease}
.rx-rev-card[data-revenue-action]:active{transform:scale(.985)}
.revenue-drilldown{margin:14px 0;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.revenue-drilldown[hidden]{display:none}
.revenue-drilldown-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.revenue-payment-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:11px 0;border-top:1px solid var(--border)}
.revenue-payment-row small{color:var(--muted)}
@media(max-width:430px){
  .v780-editor-actions{bottom:calc(70px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr}
  .v780-editor-actions .danger{grid-column:1/-1}
  .v780-image-editor{width:min(82vw,340px)}
  .v780-image-source,.v780-image-tools{gap:8px}
}

/* Product edits use a calm amber notice for recoverable input/image issues. */
.toast.warning{background:#9a6518;color:#fff}
.v790-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;opacity:0;pointer-events:none}
.v790-photo-zone{display:grid;gap:12px;padding:12px;border:1px solid var(--border);border-radius:16px;background:color-mix(in srgb,var(--surface) 92%,var(--bg,#f8fafc));margin-bottom:14px}
.v790-photo-head{display:flex;align-items:center;gap:12px}
.v790-photo-preview{width:96px;height:96px;flex:0 0 96px;border-radius:14px;border:1px solid var(--border);background:#fff;display:grid;place-items:center;overflow:hidden;font-size:32px}
.v790-photo-preview img{width:100%;height:100%;object-fit:contain;display:block;background:#fff}
.v790-photo-meta{min-width:0;flex:1}
.v790-photo-meta strong{display:block;font-size:15px;margin-bottom:4px}
.v790-photo-meta p{margin:0;font-size:12.5px;color:var(--muted);line-height:1.45}
.v790-photo-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.v790-photo-btn{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font-size:13.5px;font-weight:750;cursor:pointer;text-align:center;line-height:1.25;user-select:none;-webkit-tap-highlight-color:transparent}
.v790-photo-btn:active{transform:scale(.98)}
.v790-photo-btn.camera-primary{grid-column:1/-1;background:#102f27;color:#fff;border-color:#102f27}
.v790-photo-btn.danger-outline{color:#b91c1c;border-color:color-mix(in srgb,#b91c1c 35%,var(--border))}
.v790-photo-btn[hidden]{display:none}
.v790-compliance-note{margin:10px 0;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,#0f766e 8%,var(--surface));border:1px solid color-mix(in srgb,#0f766e 25%,var(--border));color:var(--text);font-size:13px;line-height:1.5}
.v790-optional-details{margin:12px 0;padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.v790-optional-details summary{cursor:pointer;font-weight:750;font-size:14px;padding:4px 0}
.v790-optional-details[open] summary{margin-bottom:10px}
.v790-action-bar{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.v790-action-bar .btn-save-publish{grid-column:1/-1;min-height:48px;border:0;border-radius:12px;background:#15803d;color:#fff;font-size:15px;font-weight:850;padding:12px 16px;cursor:pointer}
.v790-action-bar .btn-save-publish:hover{background:#166534}
.v790-action-bar .btn-save-publish:disabled{opacity:.65;cursor:not-allowed}
.v790-action-bar .btn-save-draft{min-height:46px;border:0;border-radius:12px;background:#64748b;color:#fff;font-size:14.5px;font-weight:800;padding:11px 14px;cursor:pointer}
.v790-action-bar .btn-save-draft:hover{background:#475569}
.v790-action-bar .btn-save-draft:disabled{opacity:.65;cursor:not-allowed}
.v790-action-bar .btn-cancel-changes{min-height:46px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font-size:14.5px;font-weight:750;padding:11px 14px;cursor:pointer}
.v790-action-bar .danger{grid-column:1/-1;min-height:44px}
.v790-image-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.v790-image-source-grid .v790-photo-btn{margin:0}
.v780-image-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0}
@media(max-width:430px){
  .v790-photo-preview{width:84px;height:84px;flex:0 0 84px}
  .v790-photo-actions{gap:7px}
  .v790-photo-btn{font-size:13px;padding:8px 6px}
}
@media(prefers-reduced-motion:reduce){.rx-rev-card[data-revenue-action],.v790-photo-btn{transition:none}}

/* V7.9.8 structured pricing unit, spec & live preview */
.v798-price-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:6px 0}
.v798-price-grid label{margin:0}
.v798-price-preview{margin:8px 0 10px;padding:9px 12px;border-radius:12px;background:color-mix(in srgb,#15803d 10%,var(--surface));border:1px solid color-mix(in srgb,#15803d 28%,var(--border));font-size:14px;font-weight:800;color:#14532d}
[data-theme="dark"] .v798-price-preview{color:#86efac}
@media(max-width:430px){.v798-price-grid{grid-template-columns:1fr;gap:8px}}


/* V7.11.0 Manual Pin & Undo Recent Action Bar + Pinned Badge */
.v711-action-bar{position:fixed;left:50%;bottom:calc(74px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:1200;width:min(calc(100vw - 24px),540px);padding:12px 14px;border:1.5px solid #bfdbfe;border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 16px 40px rgba(15,23,42,.20);backdrop-filter:blur(12px);display:grid;gap:10px}
.v711-action-bar[hidden]{display:none!important}
.v711-action-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.v711-action-msg{font-size:13.5px;font-weight:800;color:#0f172a;line-height:1.4}
.v711-action-close{border:0;background:#f1f5f9;color:#475569;width:30px;height:30px;border-radius:999px;font-size:18px;line-height:1;cursor:pointer;flex:none}
.v711-action-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.v711-btn-pin{min-height:44px;padding:9px 14px;border:0;border-radius:12px;background:#2563eb;color:#fff;font-size:14.5px;font-weight:900;cursor:pointer;box-shadow:0 6px 16px rgba(37,99,235,.28)}
.v711-btn-pin:active,.v711-btn-pin:hover{background:#1d4ed8}
.v711-btn-pin.is-pinned{background:#1e40af}
.v711-btn-undo{min-height:44px;padding:9px 14px;border:2px solid #ea580c;border-radius:12px;background:#fff7ed;color:#c2410c;font-size:14.5px;font-weight:900;cursor:pointer}
.v711-btn-undo:active,.v711-btn-undo:hover{background:#ffedd5}
.v711-btn-pin:disabled,.v711-btn-undo:disabled{opacity:.55;cursor:wait}
.v711-pin-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:11.5px;font-weight:900}
.v711-card-pin-btn{border-color:#93c5fd!important;background:#eff6ff!important;color:#1d4ed8!important}
.v711-card-pin-btn.is-pinned{border-color:#2563eb!important;background:#2563eb!important;color:#fff!important}
html[data-theme="dark"] .v711-action-bar{background:rgba(15,23,42,.96);border-color:#1d4ed8}
html[data-theme="dark"] .v711-action-msg{color:#f8fafc}
html[data-theme="dark"] .v711-btn-undo{background:#2c1810;color:#fdba74;border-color:#f97316}
@media(min-width:761px){.v711-action-bar{bottom:22px}}

.v711-just-saved{outline:2.5px solid #16a34a!important;box-shadow:0 0 0 4px rgba(22,163,74,.18)!important;transition:box-shadow .35s ease,outline-color .35s ease}

.v711-load-more-wrap{display:flex;justify-content:center;padding:12px 0 20px}
.v711-load-more-btn{width:100%;min-height:46px;border-radius:14px;font-weight:800}


/* V7.11.3–V7.11.4 Per-Category Live Count Bar & Compact Thumbnail Grid View */
.v7113-cat-stats{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;margin-bottom:8px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.v7113-cat-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:7px 12px;border:1.5px solid #d4e2d7;border-radius:14px;background:#f7fbf8;color:#14382d;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap;transition:all .15s ease}
.v7113-cat-chip .cat-count{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;background:#dcfce7;color:#15803d;font-size:12px;font-weight:900}
.v7113-cat-chip .cat-total{font-size:11.5px;color:#64748b;font-weight:700}
.v7113-cat-chip.is-active{border-color:#1f684c;background:#1f684c;color:#fff;box-shadow:0 6px 14px rgba(31,104,76,.22)}
.v7113-cat-chip.is-active .cat-count{background:rgba(255,255,255,.22);color:#fff}
.v7113-cat-chip.is-active .cat-total{color:rgba(255,255,255,.82)}
.products-column .filters{display:grid;grid-template-columns:minmax(150px,1.25fr) minmax(135px,1.1fr) auto minmax(100px,.7fr) auto;gap:8px;align-items:center}
.products-column .filters input[type="search"],.products-column .filters select{width:100%!important;min-width:0;margin-top:0!important}
.v715-incomplete-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:0 12px;margin:0!important;border:1.5px solid #cbd9ce;border-radius:14px;background:#f7fbf8;color:#14382d;font-size:13px;font-weight:850;cursor:pointer;white-space:nowrap;user-select:none}
.v715-incomplete-toggle input{width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;accent-color:#d97706}
.v715-incomplete-toggle:has(input:checked){border-color:#d97706;background:#fffbeb;color:#92400e;box-shadow:0 4px 12px rgba(217,119,6,.16)}
.v715-incomplete-summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 8px;padding:8px 12px;border:1px solid #fde68a;border-radius:12px;background:#fffbeb;color:#78350f;font-size:12.5px;font-weight:750}
.v715-incomplete-summary strong{color:#92400e;font-weight:900}
.v715-tag{display:inline-flex;align-items:center;min-height:22px;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:850;line-height:1.25;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.v715-tag.tag-missing-price{background:#fee2e2;color:#b91c1c}
.v715-tag.tag-missing-image{background:#ffedd5;color:#c2410c}
.v715-tag.tag-pending{background:#fef3c7;color:#92400e}
.v715-tag.tag-complete{background:#dcfce7;color:#15803d}
html[data-theme="dark"] .v715-incomplete-toggle{background:#162d24;border-color:#2e4e41;color:#e4f1ea}
html[data-theme="dark"] .v715-incomplete-toggle:has(input:checked){background:#332410;border-color:#f59e0b;color:#fde68a}
html[data-theme="dark"] .v715-incomplete-summary{background:#2a1f10;border-color:#92400e;color:#fde68a}
html[data-theme="dark"] .v715-incomplete-summary strong{color:#fcd34d}
.v7113-view-switch{display:inline-grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1.5px solid #cbd9ce;border-radius:14px;background:#f1f6f2;min-height:48px}
.v7113-view-btn{border:0;border-radius:10px;background:transparent;color:#3b574c;font-size:13px;font-weight:850;padding:6px 10px;cursor:pointer;white-space:nowrap}
.v7113-view-btn.active{background:#1f684c;color:#fff;box-shadow:0 3px 10px rgba(31,104,76,.22)}
@media(max-width:760px){
  .products-column .filters{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .products-column .filters #searchProducts{grid-column:1/-1}
  .products-column .filters #productArchiveView{grid-column:1/2}
  .products-column .filters .v7113-view-switch{grid-column:1/-1;width:100%}
}

/* Prevent long structured prices from overflowing in narrow list cards too */
@media(max-width:430px){
  .v761-product-card .v761-price{white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.25}
}

/* V7.11.5 Direct Rename button in quick actions (5-button responsive grid) */
.v761-product-card .product-quick-actions.v761-actions{width:100%!important;grid-template-columns:repeat(5,minmax(0,1fr))}
.v761-product-card .product-quick-actions.v761-actions button[data-quick-product="toggle"]{grid-column:auto!important}
@media(max-width:760px){
  .v761-product-card .product-quick-actions.v761-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v761-product-card .product-quick-actions.v761-actions button[data-quick-product="name"]{grid-column:1/-1}
}

/* Compact Thumbnail Grid Mode (independent card heights + strict anti-overflow) */
.product-list.view-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start;max-height:none!important;overflow:visible!important}
.product-list.view-grid .v711-load-more-wrap,.product-list.view-grid .v761-empty{grid-column:1/-1}
.product-list.view-grid .list-item-wrap.v761-product-card{margin-bottom:0;display:flex;flex-direction:column;width:100%;min-width:0;max-width:100%;border-radius:16px;overflow:hidden;box-sizing:border-box}
.product-list.view-grid .v761-product-card .list-item{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:8px;margin:0;width:100%;min-width:0;max-width:100%;flex:0 0 auto;overflow:hidden;box-sizing:border-box}
.product-list.view-grid .v761-product-card .thumb{width:100%;max-width:100%;height:auto;aspect-ratio:1/1;border-radius:11px;background:#fff;border:1px solid #edf2ed;flex:0 0 auto;overflow:hidden}
.product-list.view-grid .v761-product-card .thumb img{width:100%;height:100%;object-fit:contain;padding:4px}
.product-list.view-grid .v761-product-main{width:100%;min-width:0;max-width:100%;display:flex;flex-direction:column;gap:5px;overflow:hidden}
.product-list.view-grid .v761-product-top{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;min-width:0;max-width:100%}
.product-list.view-grid .v761-product-top .prodname{width:100%;min-width:0;max-width:100%;font-size:13.5px;line-height:1.3;min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;word-break:break-word}
.product-list.view-grid .v761-price{width:100%;min-width:0;max-width:100%;font-size:15px;line-height:1.25;white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}
.product-list.view-grid .v761-product-meta{display:flex;flex-wrap:wrap;gap:4px;width:100%;min-width:0;max-width:100%}
.product-list.view-grid .v761-status,.product-list.view-grid .v761-stock,.product-list.view-grid .v711-pin-badge{font-size:11px;line-height:1.25;min-height:20px;padding:2px 6px;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.product-list.view-grid .archived-product-card small{display:block;width:100%;min-width:0;max-width:100%;font-size:11.5px;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}
.product-list.view-grid .product-quick-actions.v761-actions{width:100%!important;min-width:0;max-width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:0 8px 8px;box-sizing:border-box}
.product-list.view-grid .product-quick-actions.v761-actions button[data-quick-product="name"]{grid-column:1/-1}
.product-list.view-grid .product-quick-actions.v761-actions button[data-quick-product="toggle"]{grid-column:auto!important}
.product-list.view-grid .product-quick-actions.v761-actions>button{width:100%;min-width:0;max-width:100%;min-height:36px;font-size:12px;line-height:1.2;border-radius:9px;padding:5px 3px;white-space:normal!important;overflow-wrap:anywhere;text-align:center}
.product-list.view-grid .v761-more{width:100%;min-width:0;max-width:100%;padding:0 8px 8px;box-sizing:border-box}
.product-list.view-grid .v761-more summary{min-height:34px;font-size:12px;user-select:none;-webkit-tap-highlight-color:transparent}
.product-list.view-grid .v761-more-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding-top:4px;width:100%;min-width:0;max-width:100%}
.product-list.view-grid .v761-more-actions button{width:100%;min-width:0;max-width:100%;min-height:36px;font-size:11.5px;line-height:1.25;padding:5px 4px;border-radius:9px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:center}
.product-list.view-grid .v761-more-actions .v711-card-pin-btn,.product-list.view-grid .v761-more-actions .v761-advanced-action{grid-column:1/-1}
@media(min-width:640px){.product-list.view-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(min-width:1024px){.product-list.view-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
html[data-theme="dark"] .v7113-cat-chip{background:#162d24;border-color:#2e4e41;color:#e4f1ea}
html[data-theme="dark"] .v7113-cat-chip .cat-count{background:#153e2b;color:#86efac}
html[data-theme="dark"] .v7113-cat-chip.is-active{background:#1f684c;border-color:#34d399;color:#fff}
html[data-theme="dark"] .v7113-view-switch{background:#142820;border-color:#2e4e41}
html[data-theme="dark"] .v7113-view-btn{color:#a9c4b7}
html[data-theme="dark"] .product-list.view-grid .v761-product-card .thumb{border-color:#2e4e41}

/* V7.12.0 Archived Orders One-Click Clear Bar */
.v712-archive-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px;padding:12px 14px;border:1.5px solid #fecaca;border-radius:16px;background:#fef2f2;color:#7f1d1d}
.v712-archive-bar>div{min-width:0;display:grid;gap:3px}
.v712-archive-bar strong{font-size:15px;font-weight:900;color:#991b1b}
.v712-archive-bar small{font-size:12px;line-height:1.4;color:#9a3412}
.v712-archive-bar button{flex:0 0 auto;min-height:44px;padding:8px 14px;border-radius:12px;font-size:13.5px;font-weight:850;white-space:nowrap}
@media(max-width:560px){.v712-archive-bar{flex-direction:column;align-items:stretch}.v712-archive-bar button{width:100%}}
html[data-theme="dark"] .v712-archive-bar{background:#2a1416;border-color:#7f1d1d;color:#fecaca}
html[data-theme="dark"] .v712-archive-bar strong{color:#fca5a5}
html[data-theme="dark"] .v712-archive-bar small{color:#fdba74}

/* V7.13.0 Dedicated Full-Screen Secondary Product Editor Page (No Bottom Nav Overlap) */
.two-col.v761-product-layout{grid-template-columns:minmax(0,1fr)!important}
body.v713-editor-open .owner-primary-nav,
body.v713-editor-open .heading,
body.v713-editor-open .stat-row,
body.v713-editor-open .approval-gate,
body.v713-editor-open #productsListStage{display:none!important}
.v713-editor-page{display:grid;gap:14px;padding-bottom:calc(180px + env(safe-area-inset-bottom))}
.v713-editor-page[hidden]{display:none!important}
.v713-editor-topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:10px;padding:10px 12px;margin:-4px -4px 4px;border:1px solid var(--border,#d6e3d8);border-radius:16px;background:color-mix(in srgb,var(--surface,#fff) 96%,transparent);backdrop-filter:blur(12px);box-shadow:0 6px 20px rgba(15,47,39,.08)}
.v713-back-btn{flex:0 0 auto;min-height:42px;padding:8px 13px;border:1.5px solid #cbd9ce;border-radius:12px;background:#f4f8f5;color:#14382d;font-size:14px;font-weight:850;cursor:pointer;white-space:nowrap}
.v713-editor-title-wrap{min-width:0;flex:1;display:grid;gap:2px}
.v713-editor-title-wrap h2{margin:0;font-size:17px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v713-mode-badge{display:inline-flex;align-items:center;width:fit-content;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:900}
.v713-mode-badge.is-edit{background:#dbeafe;color:#1d4ed8}
.v713-mode-badge.is-new{background:#dcfce7;color:#15803d}
.v713-editor-error{padding:12px 14px;border:1.5px solid #fca5a5;border-radius:14px;background:#fef2f2;color:#991b1b;font-size:13.5px;font-weight:800;line-height:1.5}
.v713-editor-loading{padding:12px 14px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff;color:#1d4ed8;font-size:13.5px;font-weight:800;text-align:center}
.v713-editor-page .v713-full-editor{display:block!important;margin:0;padding-bottom:24px}
.v713-editor-page .v713-advanced-subpanel{display:block;margin-top:4px}
.v713-editor-page .v713-advanced-subpanel[hidden]{display:none!important}
.v713-editor-page .v780-editor-actions.v790-action-bar{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:60!important;margin:0!important;border-radius:18px 18px 0 0!important;border:0;border-top:1.5px solid var(--border,#d6e3d8);padding:10px 14px calc(12px + env(safe-area-inset-bottom))!important;background:color-mix(in srgb,var(--surface,#fff) 98%,transparent)!important;box-shadow:0 -10px 30px rgba(15,47,39,.14)!important;max-width:1240px;margin-inline:auto!important}
html[data-theme="dark"] .v713-back-btn{background:#183027;border-color:#2e4e41;color:#e4f1ea}
html[data-theme="dark"] .v713-editor-error{background:#2a1416;border-color:#7f1d1d;color:#fecaca}
html[data-theme="dark"] .v713-editor-loading{background:#12243b;border-color:#1d4ed8;color:#93c5fd}

/* V7.14.0 Work Progress Memory & Quick Resume Bar */
.v714-resume-bar{display:grid;gap:8px;margin-bottom:10px;padding:10px 12px;border:1.5px solid #cfe2d5;border-radius:16px;background:linear-gradient(135deg,#f3faf5,#f8fbf9)}
.v714-resume-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.v714-resume-btn{min-height:42px;padding:8px 10px;border:1.5px solid #bfd6c6;border-radius:12px;background:#fff;color:#14382d;font-size:13.5px;font-weight:850;cursor:pointer;text-align:center;transition:all .15s ease}
.v714-resume-btn.primary-resume{background:#1f684c;border-color:#1f684c;color:#fff;box-shadow:0 4px 12px rgba(31,104,76,.18)}
.v714-resume-btn:disabled{opacity:.5;cursor:not-allowed}
.v714-resume-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:12.5px;color:#415c50;line-height:1.4}
.v714-resume-meta strong{color:#14382d;font-weight:850}
.v714-draft-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:11.5px;font-weight:850}
.v714-out-of-filter{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border:1px solid #fdba74;border-radius:12px;background:#fff7ed;color:#9a3412;font-size:12.5px;font-weight:750}
.v714-out-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.v714-mini-btn{min-height:34px;padding:5px 10px;border:1px solid #fb923c;border-radius:9px;background:#fff;color:#c2410c;font-size:12px;font-weight:850;cursor:pointer}
.v714-mini-btn.accent{background:#2563eb;border-color:#2563eb;color:#fff}
.v714-mini-close{border:0;background:transparent;color:#9a3412;font-size:18px;line-height:1;padding:2px 6px;cursor:pointer}
html[data-theme="dark"] .v714-resume-bar{background:linear-gradient(135deg,#132720,#172e26);border-color:#2e4e41}
html[data-theme="dark"] .v714-resume-btn{background:#183027;border-color:#2e4e41;color:#e4f1ea}
html[data-theme="dark"] .v714-resume-btn.primary-resume{background:#1f684c;border-color:#34d399;color:#fff}
html[data-theme="dark"] .v714-resume-meta{color:#a9c4b7}
html[data-theme="dark"] .v714-resume-meta strong{color:#e4f1ea}
html[data-theme="dark"] .v714-out-of-filter{background:#2c1810;border-color:#c2410c;color:#fed7aa}
.v714-recent-card{display:flex;align-items:center;gap:8px;min-width:0;cursor:pointer;padding:4px 8px 4px 4px;border-radius:10px;background:rgba(255,255,255,.72);border:1px solid #d4e3d9}
.v714-recent-thumb{width:32px;height:32px;flex:0 0 32px;border-radius:8px;background:#fff;border:1px solid #e2ebe5;display:grid;place-items:center;overflow:hidden;font-size:16px}
.v714-recent-thumb img{width:100%;height:100%;object-fit:contain}
.v714-recent-info{min-width:0;display:grid;gap:1px}
.v714-recent-info strong{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}
.v714-recent-info small{font-size:11px;color:#5b7367}
.v714-floating-dock{position:fixed;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:45;display:flex;gap:6px;padding:6px;border-radius:999px;background:rgba(255,255,255,.95);border:1.5px solid #bfd6c6;box-shadow:0 10px 28px rgba(15,47,39,.18);backdrop-filter:blur(10px)}
.v714-floating-dock[hidden],body.v713-editor-open .v714-floating-dock{display:none!important}
.v714-fab-btn{min-height:36px;padding:6px 11px;border:1px solid #cbd9ce;border-radius:999px;background:#fff;color:#14382d;font-size:12px;font-weight:850;cursor:pointer;white-space:nowrap}
.v714-fab-btn.primary{background:#1f684c;border-color:#1f684c;color:#fff}
.v717-back-to-top{position:fixed;right:12px;bottom:calc(138px + env(safe-area-inset-bottom));z-index:46;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:40px;padding:0 14px;border:1.5px solid rgba(255,255,255,.28);border-radius:999px;background:#102f27;color:#fff;font-size:13px;font-weight:850;letter-spacing:.02em;box-shadow:0 8px 22px rgba(16,47,39,.28);cursor:pointer;transition:transform .15s ease,opacity .15s ease}
.v717-back-to-top:active{transform:scale(.95)}
.v717-back-to-top[hidden],body.v713-editor-open .v717-back-to-top{display:none!important}
#productList{padding-bottom:130px}
@media(min-width:761px){.v714-floating-dock{bottom:20px;right:20px}.v717-back-to-top{bottom:76px;right:20px}#productList{padding-bottom:96px}}
html[data-theme="dark"] .v717-back-to-top{background:#1f684c;border-color:#34d399;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.4)}
html[data-theme="dark"] .v714-recent-card{background:#172e26;border-color:#2e4e41}
html[data-theme="dark"] .v714-recent-info small{color:#a9c4b7}
html[data-theme="dark"] .v714-floating-dock{background:rgba(19,35,29,.95);border-color:#2e4e41}
html[data-theme="dark"] .v714-fab-btn{background:#183027;border-color:#2e4e41;color:#e4f1ea}
html[data-theme="dark"] .v714-fab-btn.primary{background:#1f684c;border-color:#34d399;color:#fff}
