/* Final usability, filtering, picker, and theme refinements. */
.helpfulTipPanel{grid-template-columns:48px minmax(0,1fr)!important;min-height:76px!important;padding:4px 6px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
.helpfulTipPanel::after{content:"";position:absolute;left:60px;right:8%;bottom:-5px;height:1px;background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent2) 45%,transparent),transparent);transform-origin:left;animation:tipLineGlow 4.5s ease-in-out infinite}
.helpfulTipIcon{width:48px!important;height:48px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--accent2)!important;filter:drop-shadow(0 0 9px color-mix(in srgb,var(--accent) 42%,transparent))}
.helpfulTipIcon svg{width:34px!important;height:34px!important;stroke-width:1.65!important}.helpfulTipLabel,.helpfulTipNext{display:none!important}.helpfulTipCopy strong{font-size:.95rem!important;color:var(--accent2)!important}.helpfulTipCopy p{font-size:.8rem!important;max-width:620px}.helpfulTipPanel.tipChanging .helpfulTipCopy{animation:tipCinematic .72s cubic-bezier(.2,.75,.25,1)}.helpfulTipPanel.tipChanging .helpfulTipIcon{animation:tipSpark .72s cubic-bezier(.2,.75,.25,1)}
@keyframes tipCinematic{0%{opacity:0;transform:translateX(18px) rotateX(-9deg);filter:blur(5px)}55%{filter:blur(0)}100%{opacity:1;transform:none;filter:none}}@keyframes tipSpark{0%{opacity:.25;transform:scale(.72) rotate(-10deg);filter:drop-shadow(0 0 0 transparent)}65%{opacity:1;transform:scale(1.12) rotate(3deg)}100%{transform:none}}@keyframes tipLineGlow{0%,100%{opacity:.35;transform:scaleX(.55)}50%{opacity:.9;transform:scaleX(1)}}

.inventoryFormGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px 20px!important}.inventoryFormGrid>div{min-width:0}.inventoryFormGrid label{white-space:nowrap!important}.inventoryColorField{grid-column:1/-1!important}.inventoryFormGrid>div:has(#inventoryAddLocation){grid-column:span 2}.inventoryColorField>label{display:none}.inventoryColorPicker{margin:0!important;padding:12px 14px!important}.inventoryColorPicker:not(.open) .unifiedColorHeader{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important}.inventoryColorPicker .unifiedColorTitle{min-width:0}.inventoryColorPicker .unifiedColorSelected{margin:0!important}.inventoryColorPicker .colorToggle{justify-self:end}.inventoryColorPicker.open .unifiedColorControls{margin-top:14px}.inventoryFormActions{margin-top:20px!important}
.inventoryTableActions>div:last-child{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}.inventoryCsvButton{background:var(--accent)!important;border-color:var(--accent)!important;color:var(--button-text,var(--accent-ink,#fff))!important;font-weight:600!important;white-space:nowrap;box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 20%,transparent)!important}.inventoryCsvButton:hover{filter:brightness(1.08);transform:translateY(-1px)}
.catalogControls{grid-template-columns:minmax(260px,2fr) repeat(3,minmax(145px,1fr))!important;gap:14px!important}.catalogSearch{grid-column:auto!important}.catalogControls label{white-space:normal!important}

body.crimson-light{--bg:#f5f1f0!important;--panel:#fff!important;--panel2:#eee4e2!important;--text:#261415!important;--muted:#725a5b!important;--line:#d8bfbc!important;--accent:#b91c1c!important;--accent2:#7f1d1d!important;--bad:#991b1b!important;background:linear-gradient(180deg,#faf8f7 0,#f5f1f0 48%,#ece5e3 100%)!important}
body.orange{--bg:#140b04;--panel:#21140b;--panel2:#180e07;--text:#fff7ed;--muted:#c9aa8d;--line:#5b361d;--accent:#f97316;--accent2:#fb923c;--good:#86efac;--warn:#facc15;--bad:#fb7185;--button-text:#241006;--accent-ink:#241006;background:linear-gradient(145deg,#2d1608 0,#140b04 42%,#070301 100%)}
body.chrome{--bg:#0e1115;--panel:#1b2026;--panel2:#12171c;--text:#f7f9fb;--muted:#aeb8c3;--line:#56616d;--accent:#b8c4cf;--accent2:#eef4f8;--good:#5ee58a;--warn:#f4cf62;--bad:#ff7d82;--button-text:#11161b;--accent-ink:#11161b;background:linear-gradient(135deg,#080a0d 0,#222a31 28%,#0d1115 52%,#303942 74%,#0a0d10 100%)}
body.chrome .card,body.chrome .hero,body.chrome .nav{background-image:linear-gradient(145deg,rgba(255,255,255,.055),transparent 24%,rgba(255,255,255,.025) 52%,transparent 76%)!important;border-color:color-mix(in srgb,#dbe7ef 36%,var(--line))!important}
body.chrome .btn:not(.secondary):not(.danger),body.chrome .tab.active{background-image:linear-gradient(110deg,#7f8b96 0,#eef4f8 30%,#9ba8b4 52%,#f8fbfd 72%,#74808b 100%)!important;color:#11161b!important}
body.gold{--bg:#120e03;--panel:#211a08;--panel2:#171104;--text:#fff9dc;--muted:#cdbd78;--line:#62521b;--accent:#d4af37;--accent2:#ffe081;--good:#9be564;--warn:#ffd75e;--bad:#ff7979;--button-text:#1c1500;--accent-ink:#1c1500;background:linear-gradient(145deg,#2e2405 0,#120e03 45%,#060400 100%)}
body.gold .card,body.gold .hero,body.gold .nav{background-image:linear-gradient(130deg,rgba(255,224,129,.07),transparent 30%,rgba(255,255,255,.025) 52%,transparent 72%)!important;border-color:color-mix(in srgb,#e6c453 48%,var(--line))!important}
body.gold .btn:not(.secondary):not(.danger),body.gold .tab.active{background-image:linear-gradient(110deg,#9a7512 0,#f8dc73 29%,#c89b20 52%,#ffec9b 73%,#9d7713 100%)!important;color:#1c1500!important}

@media(max-width:900px){.inventoryFormGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.inventoryColorField{grid-column:1/-1!important}.inventoryFormGrid>div:has(#inventoryAddLocation){grid-column:1/-1}.catalogControls{grid-template-columns:repeat(2,minmax(0,1fr))!important}.catalogSearch{grid-column:1/-1!important}}
@media(max-width:620px){.tabs{grid-template-columns:repeat(5,minmax(0,1fr))!important;overflow:visible!important}.tabs .tab{min-width:0!important;width:100%!important;padding:8px 2px!important;font-size:clamp(.56rem,2.45vw,.68rem)!important;white-space:nowrap!important;word-break:normal!important;letter-spacing:0!important}.helpfulTipPanel{grid-template-columns:40px minmax(0,1fr)!important;padding:2px 0!important}.helpfulTipIcon{width:40px!important;height:40px!important}.helpfulTipIcon svg{width:30px!important;height:30px!important}.helpfulTipPanel::after{left:48px!important}.inventoryFormGrid{grid-template-columns:1fr!important}.inventoryFormGrid>div:has(#inventoryAddLocation){grid-column:1}.inventoryFormGrid label{white-space:normal!important}.inventoryColorPicker:not(.open) .unifiedColorHeader{grid-template-columns:minmax(0,1fr) auto!important}.inventoryColorPicker:not(.open) .unifiedColorTitle{grid-column:1}.inventoryColorPicker:not(.open) .unifiedColorSelected{grid-column:1;grid-row:2}.inventoryColorPicker:not(.open) .colorToggle{grid-column:2;grid-row:1/3}.catalogControls{grid-template-columns:1fr!important}.catalogSearch{grid-column:1!important}.inventoryTableActions>div:last-child{justify-content:stretch}.inventoryTableActions .btn{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){.helpfulTipPanel::after{animation:none}.helpfulTipPanel.tipChanging .helpfulTipCopy,.helpfulTipPanel.tipChanging .helpfulTipIcon{animation:none}}
/* Failure-rate pricing, illuminated tips, inventory metrics, and dialog polish. */
.settingIconFailure{display:grid!important;place-items:center!important;color:var(--accent2)!important;background:color-mix(in srgb,var(--accent) 14%,var(--surface-input))!important}.settingIconFailure svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--accent) 35%,transparent))}.settingIconFailure .failureTail{stroke-width:2.15}.failureRateGrid{grid-template-columns:minmax(180px,.75fr) minmax(260px,1.25fr)!important;align-items:end!important}.failureRateHint{align-self:center;margin:0;padding:12px 14px;border-left:2px solid var(--accent);border-radius:0 12px 12px 0;background:color-mix(in srgb,var(--accent) 7%,transparent);color:var(--muted);font-size:.8rem;line-height:1.4}.failureAllowanceLine span,.failureAllowanceLine strong{color:var(--accent2)!important}
.tipLightRays{opacity:0;transform-origin:12px 11px}.helpfulTipPanel.tipChanging .tipLightRays{animation:tipRaysFlash 1.15s ease-out}.helpfulTipPanel.tipChanging .helpfulTipIcon{color:var(--accent2)!important;filter:drop-shadow(0 0 16px color-mix(in srgb,var(--accent2) 85%,transparent))}@keyframes tipRaysFlash{0%{opacity:0;transform:scale(.65)}28%{opacity:1;transform:scale(1.15)}72%{opacity:.95;transform:scale(1)}100%{opacity:0;transform:scale(1.3)}}
.inventoryPageMetrics{order:0;margin:20px 0 10px!important}.inventoryAddForm{margin-top:14px!important}.inventoryCsvButton{padding:8px 12px!important;min-height:38px!important;font-size:.78rem!important;box-shadow:0 6px 14px color-mix(in srgb,var(--accent) 16%,transparent)!important}
.catalogControls{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px 14px!important}.catalogSearch{grid-column:1/-1!important}.catalogControls>div{min-width:0!important}.catalogControls select,.catalogControls input{width:100%!important;min-width:0!important;max-width:100%!important}.catalogControls label{display:block!important;overflow:hidden;text-overflow:ellipsis}.catalogControls>div:has(#profileColorFilter){min-width:0!important}.catalogControls #profileColorFilter{padding-right:46px!important}
.inventoryItemDialog .inventoryDialogClose{background:color-mix(in srgb,var(--accent) 10%,var(--surface-raised))!important;color:var(--accent2)!important;border:1px solid color-mix(in srgb,var(--accent) 45%,var(--edge-strong))!important;box-shadow:0 8px 18px rgba(0,0,0,.14)!important}.inventoryItemDialog .inventoryDialogActions [data-dialog-rename]{background:color-mix(in srgb,var(--accent) 10%,var(--surface-raised))!important;color:var(--accent2)!important;border:1px solid color-mix(in srgb,var(--accent) 42%,var(--edge-strong))!important}.inventoryItemDialog .inventoryDialogActions [data-dialog-edit]{background:var(--accent)!important;color:var(--button-text,var(--accent-ink,#fff))!important;border:1px solid var(--accent)!important;box-shadow:0 8px 18px color-mix(in srgb,var(--accent) 24%,transparent)!important}.inventoryItemDialog .inventoryDialogActions [data-dialog-delete]{background:color-mix(in srgb,var(--bad) 14%,var(--surface-raised))!important;color:var(--bad)!important;border:1px solid color-mix(in srgb,var(--bad) 58%,var(--edge-strong))!important}.inventoryItemDialog .inventoryDialogActions .btn{border-radius:11px!important;font-weight:650!important}.inventoryItemDialog .inventoryDialogActions .btn:hover,.inventoryItemDialog .inventoryDialogClose:hover{transform:translateY(-1px)!important;filter:brightness(1.08)!important}
@media(max-width:700px){.failureRateGrid{grid-template-columns:1fr!important}.catalogControls{grid-template-columns:1fr!important}.catalogSearch{grid-column:1!important}}
@media(prefers-reduced-motion:reduce){.helpfulTipPanel.tipChanging .tipLightRays{animation:none;opacity:1}}
/* Summary placement, Advanced Options help, and final control refinements. */
.summaryPriceEstimates{margin-top:18px!important}
.helpfulTipPanel{grid-template-columns:54px minmax(0,1fr)!important;min-height:86px!important}
.helpfulTipIcon{width:52px!important;height:64px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important}
.helpfulTipIcon svg{flex:0 0 auto!important}
.helpfulTipWord{display:block;color:var(--accent2);font:700 .65rem/1 var(--app-font,system-ui);letter-spacing:.06em;text-transform:none;text-shadow:0 0 10px color-mix(in srgb,var(--accent) 38%,transparent)}
.helpfulTipPanel::after{left:64px!important}
.inventoryFormActions button[type="submit"]{font-weight:500!important}
.advancedCard,.advancedSettingsGrid,.advancedCard .settingGroup{overflow:visible!important}
.advancedCard label:has(.advancedHelp){display:flex!important;align-items:center!important;gap:7px!important;overflow:visible!important}
.advancedHelp{position:relative;display:inline-grid;place-items:center;flex:0 0 19px;width:19px;height:19px;border:1px solid color-mix(in srgb,var(--accent) 58%,var(--edge-strong));border-radius:50%;background:color-mix(in srgb,var(--accent) 12%,var(--surface-raised));color:var(--accent2);font:800 .72rem/1 var(--app-font,system-ui);cursor:help;outline:none;z-index:8;transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.advancedHelp::after{content:attr(data-tooltip);position:absolute;left:50%;top:calc(100% + 9px);width:min(290px,72vw);padding:10px 12px;border:1px solid color-mix(in srgb,var(--accent) 44%,var(--edge-strong));border-radius:11px;background:var(--surface-raised);color:var(--text);box-shadow:0 14px 34px rgba(0,0,0,.28),0 0 0 1px color-mix(in srgb,var(--accent) 8%,transparent);font:500 .76rem/1.45 var(--app-font,system-ui);letter-spacing:0;text-transform:none;text-align:left;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,-4px);transition:opacity .16s ease,transform .16s ease,visibility .16s;z-index:100}
.advancedHelp:hover,.advancedHelp:focus-visible,.advancedHelp:focus-within{background:var(--accent);color:var(--button-text,var(--accent-ink,#fff));box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent);transform:translateY(-1px);z-index:200}
.advancedHelp:hover::after,.advancedHelp:focus-visible::after{opacity:1;visibility:visible;transform:translate(-50%,0)}
.settingIconFailure svg{width:29px!important;height:29px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
@media(max-width:620px){.helpfulTipPanel{grid-template-columns:46px minmax(0,1fr)!important;min-height:82px!important}.helpfulTipIcon{width:44px!important;height:60px!important}.helpfulTipPanel::after{left:52px!important}.advancedHelp::after{left:auto;right:-8px;transform:translateY(-4px)}.advancedHelp:hover::after,.advancedHelp:focus-visible::after{transform:translateY(0)}}.advancedHelp::after{display:none!important}
.advancedTooltipText{position:absolute;left:50%;top:calc(100% + 9px);width:min(290px,72vw);padding:10px 12px;border:1px solid color-mix(in srgb,var(--accent) 44%,var(--edge-strong));border-radius:11px;background:var(--surface-raised);color:var(--text);box-shadow:0 14px 34px rgba(0,0,0,.28),0 0 0 1px color-mix(in srgb,var(--accent) 8%,transparent);font:500 .76rem/1.45 var(--app-font,system-ui);letter-spacing:0;text-transform:none;text-align:left;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,-4px);transition:opacity .16s ease,transform .16s ease,visibility .16s;z-index:100}
.advancedHelp:hover .advancedTooltipText,.advancedHelp:focus-visible .advancedTooltipText{opacity:1;visibility:visible;transform:translate(-50%,0)}
@media(max-width:620px){.advancedTooltipText{left:auto;right:-8px;transform:translateY(-4px)}.advancedHelp:hover .advancedTooltipText,.advancedHelp:focus-visible .advancedTooltipText{transform:translateY(0)}}
/* Technical-view follow-up controls and compositing. */
.settingIconFailure::before{content:none!important;display:none!important;background:none!important;-webkit-mask:none!important;mask:none!important}
.settingIconFailure svg{position:relative!important;z-index:2!important;width:30px!important;height:30px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#inventoryAddToggle{font-weight:500!important;white-space:nowrap!important}
.helpfulTipWord{font-weight:600!important;transform:translate(2px,4px)!important}
.advancedTooltipText{font-weight:400!important;display:grid;gap:6px}
.advancedTooltipText .tipTitle{display:block;margin:0 0 2px;color:var(--accent2);font:800 .78rem/1.2 var(--app-font,system-ui);letter-spacing:.02em}
.advancedTooltipText .tipIntro,.advancedTooltipText p.tipIntro,.advancedTooltipText .marketplaceFeeIntro{display:block;margin:0;color:var(--text);font:500 .74rem/1.42 var(--app-font,system-ui)}
.advancedTooltipText .tipList,.advancedTooltipText ul.tipList{display:grid;gap:3px;margin:2px 0 0;padding:0 0 0 1.1em;list-style:disc}
.advancedTooltipText .tipList li,.advancedTooltipText ul.tipList li{margin:0;color:var(--text);font:500 .72rem/1.35 var(--app-font,system-ui)}
.advancedTooltipText .tipList li::marker,.advancedTooltipText ul.tipList li::marker{color:var(--accent)}
.advancedTooltipText .tipNote,.advancedTooltipText .tipDivider+*,.advancedTooltipText small{display:block;margin:4px 0 0;padding-top:7px;border-top:1px solid color-mix(in srgb,var(--accent) 24%,var(--edge-strong));color:var(--muted);font:500 .66rem/1.4 var(--app-font,system-ui)}
.advancedTooltipText .tipDivider{display:block;height:0;margin:4px 0 0;border:0;border-top:1px solid color-mix(in srgb,var(--accent) 24%,var(--edge-strong))}
.marketplaceFeeTooltip{width:min(390px,82vw);padding:13px 14px}.marketplaceFeeIntro{display:block;margin-bottom:7px;line-height:1.42}.marketplaceFeeList{display:grid;gap:4px;margin:0 0 8px;padding-left:15px}.marketplaceFeeList>[role=listitem]{display:list-item;line-height:1.35}.marketplaceFeeList b{color:var(--accent2);font-weight:800}.marketplaceFeeTooltip small{display:block;padding-top:8px;border-top:1px solid color-mix(in srgb,var(--accent) 24%,var(--edge-strong));color:var(--muted);font-size:.66rem;line-height:1.42}
.filSourceHelp.advancedHelp::after,.filSourceHelp.advancedHelp::before,.rowSaveProfileHelp.advancedHelp::after,.completePrintInfo.advancedHelp::after{content:none!important;display:none!important}
.filSourceHelp.advancedHelp .advancedTooltipText,.rowSaveProfileHelp.advancedHelp .advancedTooltipText{width:min(280px,72vw);z-index:120}
.completePrintInfo.advancedHelp{position:relative;z-index:12}
.completePrintInfo.advancedHelp .advancedTooltipText{left:auto;right:0;top:auto;bottom:calc(100% + 10px);transform:translateY(4px);width:min(280px,72vw)}
.completePrintInfo.advancedHelp:hover .advancedTooltipText,.completePrintInfo.advancedHelp:focus-visible .advancedTooltipText{transform:none}
@media(max-width:620px){.marketplaceFeeTooltip{left:50%;right:auto;width:min(350px,86vw);max-height:min(520px,70vh);overflow:auto;padding:12px;transform:translate(-50%,-4px)}.advancedHelp:hover .marketplaceFeeTooltip,.advancedHelp:focus-visible .marketplaceFeeTooltip{transform:translate(-50%,0)}.marketplaceFeeList{gap:3px}.marketplaceFeeTooltip small{font-size:.63rem}.completePrintInfo.advancedHelp .advancedTooltipText{position:fixed;right:12px;bottom:68px;left:auto;top:auto;width:min(280px,calc(100vw - 24px));transform:none}}
.inventoryDialogActions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;padding:0 22px 22px!important}
.inventoryDialogActions .btn{width:100%!important;min-width:0!important;min-height:52px!important;margin:0!important;border-radius:13px!important;font-weight:600!important;box-shadow:none!important}
.inventoryItemDialog .inventoryDialogActions [data-dialog-rename]{background:var(--surface-raised)!important;color:var(--text)!important;border:1px solid var(--edge-strong)!important}
.inventoryItemDialog .inventoryDialogActions [data-dialog-edit]{background:color-mix(in srgb,var(--accent) 34%,var(--surface-raised))!important;color:var(--text)!important;border:1px solid color-mix(in srgb,var(--accent) 48%,var(--edge-strong))!important;box-shadow:none!important}
.inventoryItemDialog .inventoryDialogActions [data-dialog-delete]{background:color-mix(in srgb,var(--bad) 14%,var(--surface-raised))!important;color:var(--bad)!important;border:1px solid color-mix(in srgb,var(--bad) 58%,var(--edge-strong))!important}
.logoThemeMask{mix-blend-mode:normal!important;opacity:.9!important;filter:none!important;background:linear-gradient(135deg,var(--accent2),var(--accent))!important}
body.theme-light .logoThemeMask,body.arctic .logoThemeMask,body.bright .logoThemeMask,body.light .logoThemeMask{mix-blend-mode:normal!important;opacity:.78!important}
@media(max-width:620px){.inventoryDialogActions{grid-template-columns:1fr!important}.inventoryDialogActions .btn{min-height:48px!important}}
