[hidden]{display:none!important}
:root{color-scheme:light;--bg:#f5f7fb;--panel:#fff;--line:#e1e7f0;--muted:#52647c;--accent:#2563eb;--ink:#17243b}
body{background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}button,a.primary{border-radius:12px;transition:background .16s,box-shadow .16s,transform .16s}button{background:#fff;color:#334155;border-color:var(--line);font-weight:600}button:hover{background:#f0f5ff;border-color:#b5c9f8}button.primary,a.primary,.mod-download-ready a.primary{background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:0 4px 10px #2563eb18}button.primary:hover,a.primary:hover{background:#1d4ed8}button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}input,select,header .actions select{background:#f8faff;color:#17243b;border:1px solid #dce4ef;border-radius:11px;min-height:44px;padding:11px 13px}input:focus,select:focus{border-color:#7da7f8;background:#fff;outline:3px solid #2563eb12;outline-offset:1px}input[type=checkbox]{min-height:0;accent-color:#2563eb}label{color:#52627a;font-weight:550}
header{background:#fff;border-bottom:1px solid var(--line);padding:26px max(24px,calc((100vw - 1440px)/2));gap:24px}header h1{color:#152544;font-size:27px;letter-spacing:-.9px}header .eyebrow,.eyebrow{color:#2563eb;font-weight:750;letter-spacing:1.8px}header #version,header .actions>label{color:#596b82}header>.actions{gap:12px}header .actions>label{width:170px;font-size:11px}header .actions select{height:42px;padding:8px 12px;font-size:13px}header #settingsButton{background:#f3f6fc;color:#53657d;border-color:var(--line);min-height:42px;width:42px;margin-top:15px}.gold-balance{color:#925c08;background:#fff7df;border:1px solid #f4dfaa;border-radius:100px;padding:8px 13px;font-weight:750}.account-identity b{color:#925c08}
nav.mainnav{background:#fff;border-bottom:1px solid var(--line);padding:12px max(20px,calc((100vw - 1440px)/2));gap:6px}.mainnav button{border-radius:10px;color:#66758b;padding:12px 18px;min-height:44px}.mainnav button.active{background:#edf3ff;border-color:#d9e6ff;color:#1d4ed8;font-weight:750}.mainnav button:hover{background:#f6f8fc}
#workspace{max-width:1440px;padding:36px 28px 64px}.workspace-head{margin-bottom:26px}.workspace-head h2{font-size:30px;letter-spacing:-1px;color:#17243b;margin:7px 0 10px}.workspace-head p{color:#596b82}.workspace-head>.actions button{padding:12px 22px;min-height:46px}.mod-row{background:#fff;border-color:#e1e7f0;border-radius:20px;padding:22px;box-shadow:0 5px 22px #20345604;margin-bottom:20px}.mod-row>.toolbar>strong{color:#263951;font-size:14px}.mod-row .weapon-picker,.weapon-picker{background:#fafbfe;border-color:#e5ebf3;border-radius:15px;padding:18px}.mod-row .weapon-picker h3{color:#61738e;font-size:12px;letter-spacing:.2px}.weapon-preview strong{color:#17243b}.weapon-preview img,.character-summary img,#detail .resource-heading img{background:#edf2fa;border-radius:14px}.weapon-preview button.weapon-empty-icon,.weapon-empty-icon{color:#5375b2;background:#f0f5ff;border:1px dashed #b6cbef;border-radius:13px}.weapon-preview button.weapon-empty-icon:hover{background:#e8f0ff;color:#2563eb;border-color:#2563eb}.mod-row [data-add-weapon]{background:#eef4ff;border-color:#d2e2ff;color:#245bc1}.mod-row [data-delete-mod-row],.mod-row [data-remove-weapon]{color:#8b4b58;background:transparent}.notice{background:#edf4ff;border-color:#d8e6fb;color:#4d668d;padding:16px 18px;border-radius:13px}.muted,small,summary{color:#52647c}.vfx-item{background:#fff;border-color:#e1e7f0}.vfx-choice{color:#384b66}.vfx-choice small{color:#52647c}
.card{background:#fff;border-color:#e2e8f0;border-radius:16px;box-shadow:0 3px 10px #20345604;color:#17243b;transition:transform .16s,box-shadow .16s}.card:hover{box-shadow:0 8px 22px #2034560c;border-color:#bdcff0}.card .art{background:radial-gradient(ellipse at 50% 40%,#fff 0,#edf2f9 100%)}.card .body{padding:15px}.card strong{color:#263951}.placeholder{color:#65748a}.badge{background:#f2f5fa;border-color:#e3e9f2;color:#596b82}.category-quick button.selected,.tabs button.active,.file-sources .selected{background:#eaf1ff;border-color:#cbdcfc;color:#245bc1}
dialog{background:#fff;color:#17243b;border-color:#e1e7f0;border-radius:22px;box-shadow:0 24px 90px #12243b26;padding:28px}dialog::backdrop{background:#182c4866;backdrop-filter:blur(4px)}dialog h2{color:#17243b}dialog .close{background:#f4f6fb;color:#66758b;border-color:#e3e9f2}.detailbox,.stat,.filelist,.inspector,.langcard,.partbox,.resource-group{background:#fff;border-color:#e1e7f0}.resource-row:nth-child(even),pre{background:#f4f7fc;color:#455a76}.resource-group h3{border-color:#e1e7f0}.resource-row[data-kind] b,.asset b{color:#2563eb}.resource-file,.version-info{color:#657893!important}.gender-title{background:#edf3ff;border-color:#d9e5fa;color:#365788}.file-row:hover{background:#f3f6fc}.state-ready{color:#16835c}.state-warning{color:#956507}.version-info b{color:#2563eb}.account-row{border-color:#e5ebf3}.account-row small{color:#596b82}.gold-task-card{background:#fff;border-color:#e1e7f0;padding:22px;border-radius:16px;box-shadow:0 3px 15px #20345604}.gold-task-card small{color:#596b82}.mod-download-ready{background:#edf9f3;border-color:#c5e7d6}.mod-download-ready strong{color:#196d4a}.mod-download-ready small{color:#4b7463}.mod-download-error,#task.error{background:#fff1f2;border-color:#f1cdd2;color:#9d3447}.mod-download-error strong{color:#ad354a}.mod-download-error small{color:#995362}#task{background:#eaf1ff;color:#365788}#task.done{background:#eaf8f0;color:#196d4a}#error,#accountError,#passwordError{color:#bc3451}.account-link{font-size:12px;text-decoration:none;color:#526882;padding:10px 12px;border:1px solid var(--line);border-radius:10px;white-space:nowrap}.account-link:hover{background:#f0f5ff}
@media(max-width:720px){header{padding:20px 16px;flex-wrap:wrap;gap:16px}header>div:first-child{flex-basis:100%}header>.actions{width:100%;justify-content:space-between;gap:8px;flex-wrap:wrap}.gold-balance{width:auto;font-size:12px}header .actions>label{width:140px;margin-left:auto}header h1{font-size:25px}header #version{font-size:11px}header .eyebrow{display:block!important;font-size:9px}header .actions select{font-size:12px;min-height:40px}nav.mainnav{padding:10px 12px!important;gap:6px}nav.mainnav button{font-size:12px;border-radius:10px;min-height:44px}#workspace{padding:26px 14px 48px}.workspace-head h2{font-size:26px;line-height:1.25}.workspace-head p{font-size:13px;line-height:1.7}.workspace-head>.actions{gap:10px}.workspace-head>.actions button{padding:12px 8px}.mod-row{padding:14px;border-radius:18px;margin-bottom:16px}.mod-row .weapon-picker{padding:14px;border-radius:12px}.mod-row .weapon-pickers{gap:12px}.mod-row .weapon-preview small:last-child{display:block}.mod-row .weapon-picker h3{font-size:12px}.weapon-preview img{width:64px;height:64px}.notice{font-size:12px;line-height:1.7}dialog{padding:20px 14px;border-radius:20px}#weaponPicker .card .art{height:115px}.gold-task-card{padding:18px}.account-link{font-size:11px;padding:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Compact item selection: keep paired choices side by side on phones. */
#workspace{padding-top:22px}.workspace-head{margin-bottom:16px}.workspace-head h2{font-size:26px}.workspace-head p{margin:4px 0 12px}.workspace-head>.actions button{min-height:42px;padding:9px 16px}
.mod-row{padding:14px;border-radius:15px;margin-bottom:12px}.mod-row>.toolbar{margin-bottom:10px}.mod-row>.toolbar>strong{font-size:12px}.mod-row .weapon-pickers{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:0;margin-top:10px!important}.mod-row .weapon-picker{padding:12px;border-radius:11px;min-width:0}.mod-row .weapon-picker h3{margin:0 0 8px;font-size:11px}.mod-row .weapon-preview{min-height:44px;gap:9px;margin:0 0 8px;align-items:center}.mod-row .weapon-preview img{width:46px;height:46px;flex:0 0 46px;border-radius:9px}.mod-row .weapon-preview strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.mod-row .weapon-preview small{font-size:10px;line-height:1.4;margin-top:3px}.mod-row .weapon-preview .muted{font-size:12px}.mod-row .weapon-empty-icon,.mod-row .weapon-preview button.weapon-empty-icon{width:40px;height:40px;min-height:40px;flex:0 0 40px;font-size:21px;border-radius:9px}.mod-row .actions{gap:6px}.mod-row .weapon-picker .actions button{min-height:38px;padding:7px 11px;font-size:11px;border-radius:8px}.mod-row>.weapon-picker .weapon-preview{margin-bottom:0}.mod-row>.weapon-picker .weapon-preview>[data-add-weapon]{margin-left:auto;padding:8px 12px;font-size:11px;min-height:38px}.mod-row .vfx-item{padding:9px;margin:8px 0}.mod-row .vfx-choice{font-size:12px;margin:8px 0}.mod-row .weapon-picker>small{font-size:10px;line-height:1.5;display:block;margin-top:6px}#sectionPrices{padding:10px 13px;margin-bottom:12px}.mod-download-ready{padding:13px;gap:12px;margin-bottom:12px}
@media(max-width:720px){#workspace{padding:18px 12px 32px}.workspace-head h2{font-size:23px}.workspace-head p{font-size:12px;margin-bottom:12px}.workspace-head>.actions button{min-height:42px;padding:9px 8px}.mod-row{padding:10px;border-radius:13px}.mod-row .weapon-pickers{gap:8px;margin-top:8px!important}.mod-row .weapon-picker{padding:10px 9px}.mod-row .weapon-preview{gap:7px;min-height:40px;flex-wrap:wrap}.mod-row .weapon-preview>div{flex:1;min-width:65px}.mod-row .weapon-preview strong{font-size:12px;line-height:1.35}.mod-row .weapon-preview small{font-size:9px;line-height:1.4}.mod-row .weapon-preview img{width:40px;height:40px;flex-basis:40px}.mod-row .weapon-preview .muted{font-size:11px}.mod-row .weapon-picker .actions{display:flex;flex-wrap:wrap;gap:5px}.mod-row .weapon-picker .actions button{min-height:40px;flex:1 1 auto;padding:6px;font-size:10px}.mod-row .weapon-picker h3{font-size:11px;margin-bottom:7px}.mod-row>.weapon-picker .weapon-preview{flex-wrap:nowrap}.mod-row>.weapon-picker .weapon-preview>[data-add-weapon]{flex:0 0 auto;font-size:10px;padding:7px}.mod-row>.weapon-picker .weapon-preview>div{min-width:0}.mod-row .weapon-preview button.weapon-empty-icon{width:36px;height:40px;min-height:40px;flex-basis:36px}.mod-row .weapon-picker>small{font-size:9px}.mod-row .weapon-picker[style]{margin-top:10px!important}.vfx-item summary{font-size:11px;line-height:1.5}.mod-download-ready strong{font-size:14px}.mod-download-ready small{font-size:11px}}
@media(max-width:340px){.mod-row .weapon-preview img{width:34px;height:34px;flex-basis:34px}.mod-row .weapon-preview>div{min-width:52px}.mod-row .weapon-picker{padding:9px 7px}}

/* Readable text on the light surfaces, including disabled states. */
body{color:#17243b}input::placeholder,textarea::placeholder{color:#65748a;opacity:1}input:disabled,select:disabled{color:#5a677b;-webkit-text-fill-color:#5a677b;opacity:1;background:#edf1f7}button:disabled{opacity:1;color:#5a677b;background:#edf1f7;border-color:#dce3ed}button.primary:disabled{background:#e0e8f7;color:#52647c;border-color:#d3def0;box-shadow:none}.muted,small,summary,.card .body small,.badge,.account-row small,.gold-task-card small{color:#52647c}.badge{background:#eef2f8}header #version,header .actions>label,.mod-row .weapon-picker h3{color:#52647c}.notice{color:#425c80}.resource-file,.version-info{color:#52647c!important}.admin-user-tools{flex-wrap:wrap;margin-bottom:14px}.admin-user-tools input{min-width:180px}.admin-user-tools span{font-size:12px;color:#52647c}.admin-account-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0 16px}.admin-account-summary>div{border:1px solid #dce5f3;border-radius:12px;padding:14px;background:#f2f6ff}.admin-account-summary strong{display:block;font-size:26px;font-weight:750;line-height:1.3;color:#17479e}.admin-account-summary span{display:block;margin-top:4px;font-size:11px;font-weight:600;color:#445b7d}@media(max-width:480px){.admin-account-summary{gap:7px}.admin-account-summary>div{padding:12px 9px}.admin-account-summary strong{font-size:23px}.admin-account-summary span{font-size:10px}}
