.max-calculator{overflow-wrap:anywhere;max-width:1200px;margin:40px auto;padding:20px}.max-calculator h1{font-size:clamp(1.7rem,4vw,3rem)}.max-calculator form,.max-stats,.max-items{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;display:grid}.max-calculator label{flex-direction:column;gap:8px;display:flex}.max-calculator input,.max-calculator select,.max-calculator textarea{box-sizing:border-box;color:#f7f4e9;background:#111820;border:1px solid #45505d;border-radius:8px;width:100%;min-width:0;padding:12px}.max-json{grid-column:1/-1}.max-json textarea{height:220px}.max-calculator button{color:#15120a;background:#e6b44c;border-radius:8px;padding:14px}.max-calculator article,.max-calculator aside{background:#10161e;border:1px solid #3d454e;border-radius:12px;padding:18px}.max-stats strong,.max-stats span{display:block}.max-stats strong{margin-top:8px;font-size:1.35rem}.max-calculator section{margin-top:24px}.max-calculator aside{border-color:#bd944a;margin-bottom:20px}.max-calculator progress{accent-color:#e6b44c;width:100%}.max-calculator article h3{margin-top:0}.max-calculator [role=alert]{color:#ffb6b6}.max-item-icon{object-fit:contain;justify-content:center;align-items:center;width:48px;height:48px;display:inline-flex}.max-items{margin-top:20px}.max-items article{content-visibility:auto;contain-intrinsic-size:auto 240px}.max-stats h4{margin:0}.max-items h4{margin:8px 0}.max-calculator select{max-width:100%}.max-result .max-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.max-main-duration{color:#f2ca78;font-size:clamp(1.6rem,4vw,3rem);font-weight:800;line-height:1.2}.max-modifiers{border:1px solid #59616b;border-radius:12px;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;min-width:0;margin:24px 0;padding:20px;display:grid}.max-modifiers label{justify-content:center}.max-modifiers input[type=checkbox]{accent-color:#e6b44c;width:22px;height:22px}.max-stock{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.max-stock label{background:#111820;border:1px solid #45505d;border-radius:8px;min-width:0;padding:14px}.max-category-list{gap:12px;margin:24px 0;display:grid}.max-category{background:#10161e;border:1px solid #45505d;border-radius:12px;padding:16px}.max-category summary{cursor:pointer;flex-direction:column;gap:8px;min-height:48px;display:flex}.max-category summary strong{color:#f2ca78}.max-applied{color:#81d9ac}.max-result small{margin-top:6px;display:block}.max-result details{margin-top:14px}.max-result button,.max-result select,.max-result input{min-height:44px}.max-result fieldset legend{padding:0 8px}.max-result article{min-width:0}@media (max-width:760px){.max-result .max-stats,.max-modifiers,.max-stock{grid-template-columns:repeat(2,minmax(0,1fr))}.max-calculator{margin:20px auto;padding:14px}.max-modifiers{padding:14px}}@media (max-width:430px){.max-stock,.max-modifiers{grid-template-columns:minmax(0,1fr)}.max-result .max-stats{gap:10px}.max-result .max-stats article{padding:12px}.max-result .max-stats strong{font-size:1.05rem}.max-category{padding:12px}}.max-category summary{grid-template-columns:124px minmax(0,1fr) minmax(150px,auto) 24px;align-items:center;column-gap:16px;display:grid}.max-category-visual{grid-area:1/1/4;justify-content:center;align-items:center;min-width:0;height:80px;display:flex}.max-category-visual img{object-fit:contain;filter:drop-shadow(0 5px 8px #0008);width:56px;height:66px}.max-category-visual img+img{margin-left:-20px}.max-category-visual span{font-size:36px}.max-category summary>strong{grid-area:1/2}.max-category summary>span:not(.max-category-arrow){grid-area:2/2}.max-category summary>small{text-align:right;grid-area:1/3/3;max-width:260px}.max-category-arrow{grid-area:1/4/3;font-size:24px}.max-category[open]>summary>.max-category-arrow{transform:rotate(180deg)}.max-inventory-trigger{gap:10px;display:grid}.max-inventory-dialog{box-sizing:border-box;color:#f5f2e8;overflow-wrap:anywhere;background:#0d131c;border:1px solid #6b5b35;border-radius:18px;width:min(960px,100% - 32px);max-height:90dvh;padding:24px;overflow:auto}.max-inventory-dialog::backdrop{background:#000c}.max-inventory-dialog header{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.max-inventory-dialog h2{margin:0;font-size:clamp(1.1rem,4vw,1.6rem);line-height:1.4}.max-inventory-dialog label{gap:8px;display:grid}.max-inventory-dialog select{color:#fff;background:#141922;border:1px solid #45505d;border-radius:8px;width:100%;min-width:0;min-height:44px}.max-inventory-dialog .inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.max-inventory-dialog .inventory-stepper{grid-template-columns:44px minmax(0,1fr) 44px}.max-inventory-dialog .inventory-stepper input,.max-inventory-dialog button{min-height:44px}.max-inventory-dialog footer{flex-wrap:wrap;gap:12px;margin-top:20px;display:flex}.max-inventory-dialog button{color:#f2ca78;cursor:pointer;background:#181d26;border:1px solid #6b5b35;border-radius:8px;padding:10px 14px}.max-inventory-dialog footer button:last-child{color:#12151a;background:#e6b44c}.max-simulation-badge{color:#f2ca78;border:1px solid #cead64;border-radius:12px;margin:4px;padding:3px 8px;font-size:11px;display:inline-block}.max-inventory-warning,.max-inventory-dialog [role=alert]{color:#ffda8c;border:1px solid #8e6b30;border-radius:8px;padding:12px}.max-inventory-dialog .inventory-item{min-width:0}.max-inventory-dialog .inventory-category{margin-top:18px}@media (max-width:760px){.max-category summary{grid-template-columns:76px minmax(0,1fr) 24px;gap:8px}.max-category summary>small{text-align:left;grid-area:3/2}.max-category-arrow{grid-area:1/3/4}.max-category-visual img{width:42px;height:54px}.max-category-visual img+img{margin-left:-23px}.max-inventory-dialog .inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:430px){.max-inventory-dialog{border-radius:0;width:100%;height:100dvh;max-height:100dvh;margin:0;padding:16px}.max-inventory-dialog .inventory-grid{grid-template-columns:minmax(0,1fr)}.max-inventory-dialog footer{flex-direction:column}.max-inventory-dialog .inventory-category{padding:12px}}.max-lane-overview{background:#10171c;border:1px solid #354537;border-radius:14px;margin:20px 0;padding:18px}.max-lane-overview h3{margin-top:22px}.max-lane-overview h3:first-child{margin-top:0}.max-lane-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0;display:grid}.max-lane-metrics>div{background:#0d131b;border:1px solid #343c45;border-radius:10px;min-width:0;padding:12px}.max-lane-metrics dt{color:#b4becb;overflow-wrap:anywhere;font-size:11px;line-height:1.5}.max-lane-metrics dd{overflow-wrap:anywhere;margin:8px 0 0;font-weight:700}.max-category-explanation{color:#b4becb;line-height:1.7}.max-category>p{overflow-wrap:anywhere}@media (max-width:760px){.max-lane-metrics{grid-template-columns:minmax(0,1fr)}.max-lane-overview{padding:12px}}.max-simple-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.max-simple-heading h2{margin:8px 0;font-size:clamp(1.2rem,3vw,1.8rem)}.max-simple-heading p,.max-simple-heading small{color:#aab5c4;font-size:12px}.max-simple-heading .max-info-trigger,.max-new-import{color:#f2ce87;background:#1c2430;border:1px solid #645333}.max-new-import{margin-bottom:12px}.max-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:18px;margin-top:22px;display:grid}.max-card-grid>.max-category-card{background:radial-gradient(at 20% 0,#b8922d12,#0000 75%),#10161e;border:1px solid #3e454d;border-radius:16px;flex-direction:column;min-width:0;min-height:310px;padding:22px;display:flex}.max-card-grid .max-category-visual{flex-shrink:0;justify-content:flex-start;height:76px}.max-category-card h3{letter-spacing:.08em;margin:14px 0;font-size:13px}.max-category-duration{color:#f7db92;overflow-wrap:anywhere;font-size:clamp(1.35rem,2.2vw,1.85rem);line-height:1.35}.max-category-card>small{color:#aab5c4;min-height:32px;margin-top:8px;font-size:10px;line-height:1.6;display:block}.max-category-card>p{color:#c0cad4;font-size:12px}.max-category-card>button{cursor:pointer;width:100%;min-height:44px;margin-top:auto}.max-category-detail{overflow-wrap:anywhere;border-top:1px solid #414651;min-width:0;margin-top:18px;padding-top:12px}.max-category-detail .max-items{grid-template-columns:minmax(0,1fr);gap:10px;display:grid}.max-category-detail .max-detail-item{min-width:0;padding:12px}.max-category-detail section{margin-top:10px}.max-info-dialog{box-sizing:border-box;color:#edf0f4;overflow-wrap:anywhere;background:#10161e;border:1px solid #8c7342;border-radius:18px;width:min(600px,100% - 32px);max-height:85dvh;padding:24px;overflow:auto}.max-info-dialog::backdrop{background:#000c}.max-info-dialog header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.max-info-dialog h2{margin:0;font-size:1.3rem}.max-info-dialog li{margin:12px 0;line-height:1.7}.max-info-dialog button{cursor:pointer;min-height:44px}.max-info-dialog header button{padding:6px 14px}.max-data-warning{border:1px solid #8d713d;border-radius:10px;margin:16px 0;padding:12px}.max-wall-cost{margin-top:20px}.max-wall-cost h3{font-size:12px}.max-import-help{margin-bottom:18px}.max-inventory-active{color:#91deba;font-size:12px}@media (max-width:1000px){.max-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:600px){.max-card-grid{grid-template-columns:minmax(0,1fr)}.max-simple-heading{flex-direction:column}.max-simple-heading button{width:100%;min-height:44px}.max-card-grid>.max-category-card{min-height:290px}.max-category-duration{font-size:1.75rem}.max-info-dialog{border-radius:0;width:100%;height:100dvh;max-height:100dvh;margin:0;padding:18px}}.max-category-dialog{box-sizing:border-box;color:#edf0f4;background:#0e151e;border:1px solid #8c7342;border-radius:18px;width:94vw;max-width:94vw;height:90dvh;max-height:90dvh;margin:auto;padding:0;position:fixed;inset:0;overflow:hidden;box-shadow:0 20px 80px #000a}.max-category-dialog[open]{flex-direction:column;display:flex}.max-category-dialog::backdrop{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#000c}.max-category-dialog>header{background:#121b26;border-bottom:1px solid #3c4550;flex-shrink:0;align-items:center;gap:18px;padding:18px 24px;display:flex}.max-category-dialog>header>div:not(.max-category-visual){flex:1;min-width:0}.max-category-dialog h2{margin:0 0 6px;font-size:clamp(1.2rem,3vw,1.8rem)}.max-category-dialog header p{color:#aab5c4;margin:6px 0 0;font-size:12px}.max-category-dialog .max-category-visual{flex-shrink:0;min-width:90px;height:76px}.max-category-dialog button.max-category-close{cursor:pointer;color:#fff;background:#232d3a;border:1px solid #4d5968;align-self:flex-start;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:28px}.max-category-dialog-body{overscroll-behavior:contain;overflow-wrap:anywhere;flex:1;min-height:0;padding:20px 24px;overflow:auto}.max-category-dialog .max-items{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.max-category-dialog .max-detail-item{min-width:0;padding:14px}.max-category-dialog section{margin-top:10px}.max-category-dialog-body>p{margin-top:0}:is(.max-category-card .max-category-visual:has(img:only-child) img,.max-category-dialog .max-category-visual:has(img:only-child) img){object-fit:contain;width:88px;height:76px}@media (min-width:1600px){.max-category-dialog .max-items{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (max-width:1100px){.max-category-dialog .max-items{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:760px){.max-category-dialog{border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0}.max-category-dialog>header{gap:10px;padding:12px}.max-category-dialog .max-category-visual{min-width:60px}.max-category-dialog .max-category-visual:has(img:only-child) img{width:60px;height:64px}.max-category-dialog-body{padding:14px}.max-category-dialog .max-items{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:430px){.max-category-dialog .max-items{grid-template-columns:minmax(0,1fr)}}.max-category-dialog .max-detail-item{--item-accent:#a6afbc;--item-halo:#a6afbc18;box-sizing:border-box;border:1px solid var(--item-accent);box-shadow:inset 0 1px 0 var(--item-halo);overflow-wrap:anywhere;background:#111923;border-radius:14px;position:relative}.max-category-dialog .max-detail-item[data-tone=mid]{--item-accent:#64d5a1;--item-halo:#64d5a118}.max-category-dialog .max-detail-item[data-tone=high]{--item-accent:#f2bd59;--item-halo:#f2bd5918}.max-category-dialog .max-detail-item[data-tone=max]{--item-accent:#f47788;--item-halo:#f4778818}.max-category-dialog .max-item-icon{object-fit:contain;width:64px;max-width:100%;height:64px;color:var(--item-accent);justify-content:center;align-items:center;margin-bottom:10px;display:flex}.max-category-dialog .max-detail-item h4{overflow-wrap:anywhere;margin:8px 0;font-size:1rem;line-height:1.5}.max-category-dialog .max-detail-item p{color:#c4cdd8;margin:8px 0;font-size:12px;line-height:1.65}.max-category-dialog .max-item-complete{border:1px solid var(--item-accent);min-height:24px;color:var(--item-accent);background:var(--item-halo);letter-spacing:.05em;box-sizing:border-box;border-radius:6px;align-items:center;max-width:100%;margin-bottom:8px;padding:2px 8px;font-size:11px;font-weight:800;display:inline-flex}.max-item-progress{background:#26313e;border-radius:8px;height:5px;margin:10px 0;overflow:hidden}.max-item-progress>span{border-radius:inherit;background:var(--item-accent);max-width:100%;height:100%;box-shadow:0 0 7px var(--item-halo);display:block}.max-item-filters{flex-wrap:wrap;gap:8px;margin:0 0 18px;display:flex}.max-item-filters button{color:#d2d9e3;cursor:pointer;background:#172230;border:1px solid #465367;border-radius:9px;min-width:70px;min-height:44px;padding:8px 14px}.max-item-filters button[aria-pressed=true]{color:#ffe0a2;background:#2a3442;border-color:#e3bd72}.max-item-filters button:focus-visible{outline-offset:3px;outline:2px solid #ffe0a2}.max-filter-empty{color:#bdc8d5;font-size:14px}.max-import-help{overflow-wrap:anywhere;line-height:1.7}.max-import-help summary{cursor:pointer;min-height:44px;font-weight:700}.max-import-help p{max-width:72ch}@media (hover:hover) and (prefers-reduced-motion:no-preference){.max-category-dialog .max-detail-item{transition:transform .16s,box-shadow .16s}.max-category-dialog .max-detail-item:hover{box-shadow:0 4px 16px var(--item-halo);transform:translateY(-2px)}}.max-premium-gate{overflow-wrap:anywhere;background:radial-gradient(at 0 0,#d7ab3415,#0000 70%),#111923;border:1px solid #8c7342;border-radius:18px;margin:24px 0;padding:clamp(20px,5vw,44px)}.max-premium-label{color:#f5d68e;letter-spacing:.08em;border:1px solid #8c7342;border-radius:8px;padding:6px 10px;font-size:12px;display:inline-block}.max-premium-gate h2{font-size:clamp(1.25rem,4vw,1.9rem);line-height:1.4}.max-premium-gate p{color:#c5cfdd;max-width:65ch;line-height:1.7}.max-premium-cta{box-sizing:border-box;color:#10151d;text-align:center;background:#edc36c;border-radius:10px;justify-content:center;align-items:center;max-width:100%;min-height:48px;padding:12px 20px;font-weight:800;text-decoration:none;display:inline-flex}.max-premium-cta:focus-visible{outline-offset:4px;outline:2px solid #fff}@media (max-width:430px){.max-premium-cta{width:100%}}
