:root{font-family:Inter,"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#102646;background:#f2f6fc;font-synthesis:none;--ink:#102646;--muted:#516789;--line:#dce6f4;--blue:#1958dd}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.48;cursor:default}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:3px solid #699aff;outline-offset:3px}.wrap{max-width:1312px;margin:auto;padding:0 32px}.top{background:#fff;border-bottom:1px solid var(--line)}.top-inner{display:flex;align-items:center;justify-content:space-between;min-height:68px;gap:16px}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-weight:800}.mark{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--blue);color:white;font-size:24px;line-height:1}.top nav{display:flex;gap:16px;align-items:center;font-size:.875rem}.top nav a{font-weight:750}
.hero{position:relative;isolation:isolate;overflow:hidden;margin:30px 0 14px;min-height:226px;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:32px 42px;border:1px solid #c7d9f8;border-radius:19px;background:linear-gradient(105deg,#eaf3ff 12%,#dbeaff 63%,#c7dcff 100%)}.hero:before{content:"";position:absolute;z-index:-1;inset:0 0 0 54%;background:linear-gradient(90deg,#dceaff,transparent 60%),repeating-linear-gradient(0deg,transparent 0 31px,#6d94d326 31px 32px),repeating-linear-gradient(90deg,transparent 0 31px,#6d94d326 31px 32px)}.hero:after{content:"";position:absolute;z-index:-1;right:100px;top:-58px;width:305px;height:305px;border:1px solid #739ada60;border-radius:50%;box-shadow:0 0 0 23px #749ada1d,0 0 0 55px #749ada18,inset 0 0 0 40px #749ada18}.eyebrow{display:flex;gap:10px;align-items:center;font-size:.9rem;font-weight:750;color:#2456a6;margin:0 0 13px}.eyebrow span{width:8px;height:8px;background:#2664e7;transform:rotate(45deg)}h1{font-size:clamp(2rem,5vw,3.5rem);letter-spacing:-.065em;line-height:1.12;margin:0 0 15px}.hero-copy>p:last-child{margin:0;color:#3d5980;line-height:1.6}.hero-rules{min-width:174px;padding:16px 20px;border:1px solid #ffffffcc;border-radius:14px;background:#f7fbffd9;display:grid;gap:7px}.hero-rules>span,.hero-rules a{font-size:.875rem}.hero-rules strong{color:#1945a0;font-size:2.5rem;line-height:1;font-variant-numeric:tabular-nums}.hero-rules strong span{font-size:1rem}
.notice{display:flex;align-items:flex-start;gap:10px;padding:12px 16px;margin:0 0 20px;background:#e7efff;border:1px solid #d7e5ff;border-radius:11px;color:#254778;font-size:.875rem}.notice>span{font-size:1.05rem}.notice p{display:inline;margin:0 0 0 10px;line-height:1.55}.layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,1fr);gap:20px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;min-width:0;box-shadow:0 8px 25px #183a7207}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.overline{font-size:.75rem;font-weight:800;letter-spacing:.105em;color:#456397;margin:0 0 4px}h2,h3{margin:0}h2{font-size:1.4rem}h3{font-size:1rem}.quiet,.outline,.primary,.add{border-radius:8px;padding:9px 12px;font-size:.875rem;font-weight:700;white-space:nowrap}.quiet{border:0;background:transparent;color:#415e85}.quiet:hover{background:#eff4fc}.outline{background:#fff;border:1px solid #c8d8ef;color:#214780}.outline:hover,.add:hover{background:#edf4ff}.primary{background:var(--blue);border:1px solid var(--blue);color:#fff}.primary:hover{background:#174bb8}
.filters{display:flex;gap:8px}.search{display:flex;align-items:center;min-width:0;flex:1;gap:8px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:#f7faff;color:var(--muted)}.search span{font-size:1.35rem}.search input{min-width:0;width:100%;border:0;background:none;padding:9px 0;color:var(--ink)}select,.field input{max-width:100%;border:1px solid var(--line);border-radius:8px;padding:8px 9px;color:var(--ink);background:#fff}.filters select{font-size:.875rem}.tabs{display:flex;gap:6px;overflow:auto;padding:11px 3px 6px;margin:0 -3px}.tabs button{flex-shrink:0;border:0;border-radius:7px;background:#f0f4fa;color:#425c81;padding:7px 11px;font-size:.875rem}.tabs button[aria-pressed=true]{background:#e1ecff;color:#164bb5;font-weight:750}.library-info{display:flex;justify-content:space-between;margin:10px 0;font-size:.875rem;color:var(--muted)}.catalog{display:grid;gap:8px}.item{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px;border:1px solid #e3ebf6;border-radius:10px}.item-icon{width:42px;height:42px;border-radius:8px;display:grid;place-items:center;background:#ebf3ff;color:#2a56a1;font-size:.875rem;font-weight:800}.item strong,.selected strong{overflow-wrap:anywhere}.meta{color:var(--muted);font-size:.875rem;line-height:1.65}.tag{color:#274f9d}.add{border:1px solid #d3e0f6;background:#f5f9ff;color:#2157bd}
.budget{background:#ecf4ff;border:1px solid #dceaff;border-radius:12px;padding:15px}.budget-head,.cost{display:flex;justify-content:space-between;align-items:center;gap:8px}.status{font-size:.875rem;font-weight:700;color:#1854b5}.status.bad,.violations{color:#a5293a}.total{margin:7px 0 10px;font-variant-numeric:tabular-nums;color:#40577a}.total strong{font-size:clamp(1.65rem,3.25vw,2.25rem);color:#153a84;letter-spacing:-.05em}.track{height:7px;border-radius:10px;background:#d6e5fd;overflow:hidden}.track div{height:100%;width:0;background:#2466ed;border-radius:inherit}.track div.bad{background:#c23d4e}.remaining{font-size:.875rem;color:#40577a;margin-top:8px}.cost{padding:12px 0;margin:0 0 11px;border-bottom:1px solid var(--line);font-size:.9rem}.cost strong{font-variant-numeric:tabular-nums}.violations{font-size:.875rem;line-height:1.55}.violations:empty{display:none}.violations:not(:empty){margin-bottom:10px}h3 span{color:var(--muted);font-size:.875rem;font-weight:500}.selection{margin-top:6px}.selected{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #edf2fa}.selected input{width:64px;padding:6px 2px 6px 7px;border:1px solid var(--line);border-radius:7px}.selected-controls{display:flex;align-items:center;gap:4px}.empty{padding:18px 0;color:var(--muted);margin:0}.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
footer{display:flex;justify-content:space-between;gap:12px;color:var(--muted);padding:24px 0;font-size:.875rem}dialog{border:1px solid var(--line);border-radius:15px;padding:20px;width:min(440px,calc(100% - 28px));color:var(--ink);max-height:85vh}dialog::backdrop{background:#11274477}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.field{display:grid;gap:5px;margin:9px 0}.dialog-actions{margin-top:14px}.saved-row{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}#toast{position:fixed;bottom:18px;right:18px;max-width:calc(100% - 36px);background:#132b53;color:white;border-radius:9px;padding:10px 14px;z-index:5}#toast:empty{display:none}
@media(max-width:760px){.wrap{padding:0 14px}.hero{margin-top:17px;padding:22px;min-height:auto}.layout{grid-template-columns:1fr}.panel{padding:15px}.plan{grid-row:1}footer{flex-direction:column}}@media(max-width:460px){.hero{display:block}.hero-rules{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:15px;padding:10px}.hero-rules strong{font-size:1.65rem}.top nav a{display:none}.notice p{display:block;margin:2px 0 0}.filters select{max-width:46%}}
[hidden]{display:none!important}.layout{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-areas:"fit library" "plan library";gap:16px}.fitting{grid-area:fit}.library{grid-area:library}.plan{grid-area:plan}.hero{min-height:166px}.fit-hint{margin:-8px 0 12px;font-size:.875rem;color:var(--muted);line-height:1.55}.fitting-grid{display:grid;grid-template-columns: minmax(0,1fr) minmax(110px,1.05fr) minmax(0,1fr);grid-template-areas:"helmet figure primary" "armor figure secondary" "rig figure ammo" "pack figure med";gap:6px;padding:8px;border:1px solid #d6e4f9;border-radius:12px;background:#eaf2ff}.figure{grid-area:figure;position:relative;isolation:isolate;display:grid;place-items:center;overflow:hidden;min-height:245px;border:1px dashed #a5bfe7;border-radius:9px;background:radial-gradient(ellipse at 50% 49%,#d6e6ff,#eaf3ff);color:#3c5f93}.figure-orbit{position:absolute;inset:11% 5%;border:1px solid #9fb8df80;border-radius:48%;background:repeating-linear-gradient(0deg,transparent 0 24px,#8da8d330 24px 25px)}.equip-slot{display:flex;align-items:center;justify-content:flex-start;gap:6px;min-height:57px;min-width:0;padding:6px;border:1px dashed #b4c9ea;border-radius:8px;text-align:left;background:#f7faff;color:var(--ink)}.equip-slot:hover,.part-slot:hover{background:#e0ecff}.equip-slot.equipped{border-style:solid;border-color:#9ebcec;background:#fff}.equip-slot[data-slot=helmet]{grid-area:helmet}.equip-slot[data-slot=armor]{grid-area:armor}.equip-slot[data-slot=rig]{grid-area:rig}.equip-slot[data-slot=pack]{grid-area:pack}.equip-slot[data-slot=primary]{grid-area:primary}.equip-slot[data-slot=secondary]{grid-area:secondary}.equip-slot[data-slot=ammo]{grid-area:ammo}.equip-slot[data-slot=med]{grid-area:med}.slot-copy{min-width:0}.slot-copy strong,.part-slot strong{display:block;font-size:.82rem;overflow-wrap:anywhere}.slot-label,.slot-extra{display:block;color:#456391;font-size:.75rem;font-weight:700}.slot-plus{color:#2c61b5;font-size:1rem}.workbench{margin-top:18px}.workbench .panel-head{margin-bottom:8px}.gun-tabs{display:flex;gap:4px}.gun-tabs .outline{padding:5px 8px}.gun-tabs [aria-pressed=true]{background:#e3eeff;border-color:#99b8f0}.gun-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#eff5ff;border:1px solid #dce7fa;border-radius:8px;padding:6px 8px;margin-bottom:6px}.gun-summary .meta{flex:1;min-width:165px}.part-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.part-box{position:relative;min-width:0;border-radius:8px}.part-slot{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;height:100%;min-height:50px;text-align:left;border:1px dashed #aebfe0;background:#f7faff;color:var(--ink);padding:5px;border-radius:8px}.part-remove{position:absolute;top:0;right:0;padding:2px 6px}.item{grid-template-columns:72px minmax(0,1fr) auto;cursor:grab}.item:active{cursor:grabbing}.item-art{display:block;flex:none;width:68px;aspect-ratio:1.33;background:#e9f2ff url(equipment-art.png) no-repeat;background-size:400% 300%;border-radius:5px;overflow:hidden}.item-art img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.art-button{border:0;background:none;padding:0;justify-self:start}.equip-slot .item-art,.part-slot .item-art{width:34px}.gun-summary .item-art{width:46px}.is-dragging .equip-slot,.is-dragging .part-slot{border-color:#6592dc}.figure.drag-over,.equip-slot.drag-over,.part-box.drag-over{outline:2px solid #275fe4;outline-offset:-2px;background:#d8e7ff}.targeting{display:flex;align-items:center;justify-content:space-between;gap:7px;background:#e4efff;color:#214989;border-radius:8px;padding:5px 8px;margin-bottom:8px;font-size:.875rem;font-weight:700}.field input[type=checkbox]{justify-self:start}
@media(max-width:940px){.layout{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.equip-slot .item-art{display:none}.part-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.item{grid-template-columns:53px minmax(0,1fr) auto}.art-button .item-art{width:50px}}
@media(max-width:760px){.layout{grid-template-columns:1fr;grid-template-areas:"fit" "library" "plan"}.equip-slot .item-art{display:block}.catalog{max-height:62vh;overflow:auto;padding:2px}.fitting-grid{grid-template-columns:minmax(0,1fr) minmax(75px,.8fr) minmax(0,1fr)}}
@media(max-width:390px){.equip-slot .item-art{display:none}.part-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.figure{min-height:230px}}
@media(min-width:761px){.catalog{max-height:730px;overflow:auto;padding:2px}}
.fit-total{font-size:.875rem;font-weight:750;font-variant-numeric:tabular-nums;padding:6px 9px;border-radius:7px;background:#eaf2ff;color:#204eaa}.fit-total.bad{color:#a5293a;background:#ffedf0}.plan{scroll-margin-top:14px}
.workbench{margin:0 0 16px}.workbench-drop{width:100%;min-height:76px;padding:10px;border:1px dashed #a7bfe7;border-radius:10px;background:#f3f8ff;color:#29558d;font-weight:700}.workbench-drop.drag-over,.gun-summary.drag-over{outline:2px solid #275fe4;outline-offset:-2px}.gun-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.bench-gun{display:grid;grid-template-columns:minmax(60px,110px) minmax(0,1fr);grid-template-rows:auto auto;gap:3px 9px;align-items:center;cursor:grab;min-width:0}.bench-gun .item-art{grid-row:span 2;width:100%;background-color:#e2edfe}.bench-gun .meta{min-width:0;line-height:1.35}.bench-controls{display:grid;gap:5px}.bench-hint{grid-column:1/-1;margin:0}.fit-hint{margin:0 0 8px}.part-choice{margin:0 7px 7px 0}.subfilters{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:.875rem;color:var(--muted)}.subfilters select{margin-right:auto;font-size:.875rem;padding:4px 7px}.blocked-toggle{display:flex;align-items:center;gap:4px}.value-edit{border:0;border-radius:4px;padding:0 2px;background:#f0f5ff;color:#23529a;cursor:pointer}.value-edit:hover{text-decoration:underline}.price-basis{margin-left:5px;font-size:.75rem;color:var(--muted)}.source-links{display:flex;gap:12px;flex-wrap:wrap}.more{justify-self:stretch}.item-art img{max-width:100%;max-height:100%}
@media(max-width:440px){.gun-summary{grid-template-columns:1fr}.bench-controls{display:flex;flex-wrap:wrap}.bench-gun{grid-template-columns:68px minmax(0,1fr)}}
.fitting-grid{grid-template-areas:"helmet figure primary" "armor figure secondary" "rig figure sidearm" "pack figure ammo" "med figure ammo"}.equip-slot[data-slot=sidearm]{grid-area:sidearm}
.figure {
  background: radial-gradient(ellipse at 50% 44%, #695039 0%, #25272d 49%, #101a2b 88%);
  border-color: #a89166;
  color: #fff6e8;
}
.figure-orbit {
  inset: 13% 5% 25%;
  border: 1px solid #e3b57555;
  background: repeating-linear-gradient(0deg, transparent 0 24px, #e3b57516 24px 25px);
  pointer-events: none;
}
.figure-portrait {
  position: absolute;
  left: 50%;
  bottom: 19%;
  transform: translateX(-51%);
  width: auto;
  height: 70%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 5px 14px #07081066);
}
.figure-caption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 28px 3px 11px;
  background: linear-gradient(transparent, #101a2b 42%);
  pointer-events: none;
}
.figure-caption span { color: #e9c895; font-size: .8125rem; }
.figure-caption strong { font-size: clamp(.875rem, 2.3vw, 1.125rem); }
.figure.drag-over {
  background: radial-gradient(ellipse at 50% 44%, #865f39 0%, #383039 48%, #142b50 88%);
  outline-color: #ffd990;
  outline-offset: -3px;
}
