*{box-sizing:border-box}body{margin:0;background:var(--color-paper);color:var(--color-ink);font-family:var(--font-body)}button,input,select{font:inherit;color:inherit}button{cursor:pointer;background:var(--color-surface);border:1px solid var(--color-rule);min-height:36px;padding:6px 12px}button:hover{background:var(--color-shelf)}:focus-visible{outline:3px solid var(--color-focus);outline-offset:2px}main{max-width:1040px;margin:auto;padding:26px 24px}.heading{display:flex;align-items:center;justify-content:space-between;gap:12px}h1{font-size:28px;margin:0}h1 span{font-size:12px;color:var(--color-muted);font-weight:500}.hint{font-size:12px;color:var(--color-muted);margin:8px 0 16px}#status{font-size:13px}#status:empty{display:none}.member{border:1px solid var(--color-rule);border-left:4px solid var(--tone);background:var(--color-surface);padding:10px 14px;margin-bottom:8px}.member-head{display:flex;align-items:center;gap:12px;margin-bottom:6px}.selected-name{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.member-body{display:grid;grid-template-columns:190px 130px minmax(0,1fr);align-items:center;gap:16px}.slots{display:flex;gap:8px}.slot{display:flex;border:0}.slot button{border:0;background:transparent;padding:2px;min-height:44px}.slot .choose{width:56px;display:flex;flex-direction:column;align-items:center;font-size:10px;line-height:1}.slot img{width:36px;height:32px;object-fit:contain}.empty-icon{height:32px;display:grid;place-items:center;font-size:23px}.kit{display:flex;align-items:flex-start;gap:10px}.kit button{border:0;padding:0;display:flex;flex-direction:column;align-items:center;background:transparent;font-size:10px;min-width:40px}.kit img{width:34px;height:34px;object-fit:contain}.kit b{font-size:11px;white-space:nowrap}.ranges{min-width:0}.range{display:block;border:0;background:transparent;width:100%;padding:0;min-height:0;text-align:left}.range-label{display:flex;justify-content:space-between;gap:4px;font-size:11px;line-height:1.4}.range-label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-muted)}.range-label b{white-space:nowrap;font-weight:600}.track{height:7px;margin:3px 0;background:repeating-linear-gradient(to right,var(--color-rule) 0 1px,transparent 1px calc(100% / 7)),var(--color-shelf);border-right:1px solid var(--color-rule)}.track i{display:block;height:100%;background:var(--tone);opacity:.8}.empty-note{font-size:12px;color:var(--color-muted)}#summary{border-top:2px solid var(--color-ink);margin-top:14px;padding-top:6px}.summary-row{display:flex;align-items:center;gap:10px;min-height:38px}.summary-row>span{font-size:12px;width:52px;flex:none;color:var(--color-muted)}.summary-row button{display:flex;align-items:center;gap:3px;padding:0 4px;min-height:32px;border:0;font-size:12px}.summary-row img{width:28px;height:28px;object-fit:contain}footer{display:flex;justify-content:space-between;align-items:start;gap:16px;font-size:11px;color:var(--color-muted);margin-top:12px}footer details{max-width:65%;text-align:right}footer p{text-align:left;line-height:1.7}a{color:inherit}summary{cursor:pointer}dialog{width:min(620px,calc(100% - 24px));max-height:85dvh;padding:20px;border:1px solid var(--color-rule);background:var(--color-paper);color:inherit}dialog::backdrop{background:var(--color-backdrop)}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}h2{font-size:18px;margin:0}.search-tools{display:flex;gap:8px}.search-tools input{width:100%;min-width:0}.search-tools input,.search-tools select{padding:10px;border:1px solid var(--color-rule);background:var(--color-surface);font-size:14px}.search-tools select{max-width:120px}.picker-actions{display:flex;align-items:center;justify-content:space-between;margin:10px 0;font-size:12px}#results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:55dvh;overflow:auto}.result{display:grid;grid-template-columns:48px 1fr;text-align:left;gap:6px;align-items:center;padding:6px}.result>img{width:48px;height:48px;object-fit:contain}.result strong{font-size:12px;display:block}.result small{display:flex;align-items:center;gap:4px;font-size:10px}.result small img{width:20px;height:20px;object-fit:contain}#info-body{line-height:1.8;font-size:14px}#info-body img{width:56px;height:56px;object-fit:contain}.info-kit{display:flex;align-items:center;gap:10px}.info-kit img{width:32px;height:32px}button:disabled{opacity:.5;cursor:default}
@media(max-width:650px){main{padding:12px 10px}.heading h1{font-size:23px}.heading button{font-size:12px}.hint{font-size:10px;margin:5px 0 9px}.member{padding:5px 7px;margin-bottom:5px}.member-head{gap:8px;margin-bottom:3px}.selected-name{font-size:11px}.member-body{grid-template-columns:113px 72px minmax(0,1fr);gap:5px}.slots{gap:4px}.slot .choose{width:36px}.slot img{width:30px;height:28px}.slot button{min-height:40px}.empty-icon{height:28px}.kit{gap:2px}.kit button{min-width:34px}.kit img{width:28px;height:28px}.kit b{font-size:10px}.range-label{font-size:9px}.track{height:5px;margin:2px 0}.range+.range{margin-top:3px}#summary{margin-top:9px;padding-top:3px}.summary-row{min-height:32px;gap:5px}.summary-row>span{font-size:11px;width:46px}.summary-row img{width:24px;height:24px}footer{font-size:10px;margin-top:8px}.empty-note{font-size:10px}dialog{padding:14px}.masthead .site-tabs{height:36px;margin-top:4px}.masthead{min-height:0;padding-top:8px;padding-inline:12px}.masthead .brand img{height:32px;width:32px}.masthead .brand{font-size:18px}.masthead .site-tabs a{font-size:12px}}
@media(min-width:651px){.member{min-height:108px}}
.track{display:block}
@media(max-width:650px) and (max-height:620px){main{padding-top:8px}.member{padding-block:3px;margin-bottom:3px}.hint{margin-bottom:6px}.summary-row{min-height:29px}.summary-row button{min-height:29px}footer{margin-top:5px}}
@media(max-width:650px){.member-body{grid-template-columns:121px 72px minmax(0,1fr)}.slot .choose{width:32px}}
#status:not(:empty){position:fixed;bottom:12px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 24px);width:max-content;background:var(--color-ink);color:var(--color-paper);padding:10px 14px;z-index:10}

.slots{align-items:flex-end;gap:5px}.slot.primary .choose{width:76px;min-height:70px}.slot.primary img{width:72px;height:66px}.slot.secondary .choose{width:42px;min-height:44px}.slot.secondary img{width:38px;height:40px}.swap{width:30px;min-height:36px;padding:0;border:0;background:transparent;font-size:22px;flex:none}.slot.primary .empty-icon{height:54px}.slot.secondary .empty-icon{height:30px}
@media(max-width:650px){.member-body{grid-template-columns:121px 72px minmax(0,1fr)}.slots{gap:2px}.slot.primary .choose{width:56px;min-height:55px}.slot.primary img{width:52px;height:51px}.slot.secondary .choose{width:36px;min-height:36px}.slot.secondary img{width:32px;height:32px}.swap{width:24px;min-height:36px;font-size:21px}.slot.primary .empty-icon{height:40px}.slot.secondary .empty-icon{height:24px}}
@media(max-width:650px) and (max-height:620px){.slot.primary .choose{min-height:46px}.slot.primary img{height:42px}.slot.primary .empty-icon{height:32px}}
/* A quiet backing keeps white and dark kit silhouettes legible. */
.kit img,.summary-row img,.result small img,.info-kit img{background:#34443e;border:1px solid #4b5d54;padding:2px}

.member-head .selected-name{flex:1}

.member-number{flex:none;font-size:12px;font-weight:700;color:var(--tone)}

.member-head .selected-name{font-size:15px;font-weight:750}@media(max-width:650px){.member-head .selected-name{font-size:13px}}

.slot.secondary .empty-icon{font-size:15px}.slots .swap{align-self:flex-end;height:44px;min-height:0;font-size:16px}

@media(max-width:650px){.slots .swap{height:36px;font-size:15px}}

/* Emphasized headings and badges in the original shop palette. */
body{background:radial-gradient(#e2e5da .7px,transparent .7px) 0 0/12px 12px,var(--color-paper)}
.heading h1{font-weight:900;letter-spacing:-.05em}
#share{font-weight:800;box-shadow:2px 2px 0 var(--color-rule)}#share:active{transform:translate(1px,1px);box-shadow:1px 1px 0 var(--color-rule)}
.member{box-shadow:2px 2px 0 var(--color-shelf)}
.member-number{color:white;background:var(--tone);padding:2px 5px;font-size:10px;line-height:1.3;font-weight:800;transform:rotate(-3deg)}
.member-head .selected-name{font-weight:850}.kit b{font-weight:850}.swap:not(:disabled){font-weight:800}.slot .choose:hover{filter:brightness(1.06)}
#summary{padding-inline:8px}.summary-row>span{font-weight:800}
dialog{border:2px solid var(--color-rule);box-shadow:4px 4px 0 var(--color-shelf)}.dialog-top h2{font-weight:850}
@media(max-width:650px){.member-head{gap:7px}.member-number{padding:1px 4px}}

.heading-actions{display:flex;gap:8px;align-items:center}.heading-actions button{white-space:nowrap}#export-image{display:block;width:100%;height:auto}#download-image{display:block;text-align:center;margin-top:12px;padding:12px;background:var(--color-ink);color:var(--color-paper);font-weight:750;text-decoration:none}@media(max-width:650px){.heading-actions{gap:5px}.heading-actions button{padding-inline:8px}}
#export-image{max-height:calc(85dvh - 150px);object-fit:contain}
