/* Exact old-gear transfers reuse the existing portraits and equipment artwork. */
dialog:has(.secondhand-dialog){width:calc(100vw - 40px);max-width:1060px}
.secondhand-dialog,.secondhand-confirm{min-width:0}
.secondhand-intro>p{font-size:12px;line-height:1.9;color:var(--muted);margin:12px 0 20px}
.secondhand-field{display:block;font-size:10px;line-height:1.9;color:var(--muted);margin-bottom:18px}
.secondhand-field select{display:block;width:100%;max-width:100%;min-width:0;height:42px;padding:0 12px;margin-top:8px;border:1px solid var(--border);border-radius:5px;background:var(--bg);color:var(--text);font:inherit;font-size:12px}
.secondhand-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.secondhand-summary>div{padding:16px;border:1px solid var(--border);border-radius:6px;background:var(--bg);min-width:0}
.secondhand-summary span{display:block;font-size:10px;color:var(--subtle);line-height:1.9}
.secondhand-summary strong{display:block;font-size:23px;line-height:1.8;font-weight:500;color:var(--mint);margin:7px 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.secondhand-summary strong small{font-size:11px;margin-left:6px}
.secondhand-summary>div>small{font-size:9px;line-height:1.9;color:var(--subtle)}
.secondhand-clock,.secondhand-note{font-size:10px;line-height:1.9;color:var(--subtle);margin:12px 0}
.secondhand-owner{padding:20px;border:1px solid var(--border);border-radius:6px;background:var(--bg);margin:20px 0;min-width:0}
.secondhand-owner>header{display:flex;align-items:flex-start;gap:13px;min-width:0}
.secondhand-owner>header>.portrait{width:40px;height:46px;flex-shrink:0}
.secondhand-owner>header>.portrait>svg{width:36px;height:42px}
.secondhand-owner>header>div{min-width:0}
.secondhand-owner h3{font-size:16px;line-height:1.8;font-weight:500;overflow-wrap:anywhere}
.secondhand-owner h3 small{font-size:11px;font-weight:400;color:var(--subtle);margin-left:6px}
.secondhand-owner header p{font-size:10px;line-height:1.9;color:var(--muted);margin-top:5px}
.secondhand-owner>header>span{margin-left:auto;font-size:10px;line-height:1.9;color:var(--mint);flex-shrink:0}
.secondhand-loadout{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.secondhand-loadout>div{padding:10px;border:1px solid var(--border);border-radius:4px;min-width:0}
.secondhand-loadout span{display:block;font-size:9px;line-height:1.9;color:var(--subtle);margin-bottom:6px}
.secondhand-loadout strong{font-size:11px;line-height:1.9;font-weight:400;overflow-wrap:anywhere}
.secondhand-item{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:16px;align-items:start;padding:18px 0;border-top:1px solid var(--border);min-width:0}
.secondhand-gear-art{display:grid;place-items:center;width:58px;height:64px;border:1px solid var(--border);border-radius:5px;color:var(--mint);background:var(--surface);flex-shrink:0}
.secondhand-gear-art>svg{width:46px;height:50px}
.secondhand-item-info{min-width:0}
.secondhand-item h4{font-size:13px;line-height:1.9;font-weight:500;overflow-wrap:anywhere}
.secondhand-item h4 small{font-size:10px;color:var(--subtle);font-weight:400}
.secondhand-item code,.secondhand-history code,.secondhand-confirm code{font:9px var(--mono);line-height:1.9;color:var(--subtle);overflow-wrap:anywhere}
.secondhand-item-info>p{font-size:10px;line-height:1.9;color:var(--muted);margin-top:7px;overflow-wrap:anywhere}
.secondhand-item dl{display:flex;flex-wrap:wrap;gap:12px 20px;margin:14px 0 0}
.secondhand-item dt{font-size:9px;line-height:1.9;color:var(--subtle)}
.secondhand-item dd{font-size:14px;line-height:1.9;color:var(--mint);font-variant-numeric:tabular-nums;margin:3px 0 0}
.secondhand-item>button{font-size:10px;padding:9px 11px;margin-top:4px}
.secondhand-reason{font-size:10px;line-height:1.9;color:var(--muted);margin-top:12px;overflow-wrap:anywhere}
.secondhand-reason.unavailable,.secondhand-item-info>.secondhand-reason.unavailable{color:var(--amber)}
.secondhand-warning{padding:14px 16px;border:1px solid var(--amber);border-radius:5px;font-size:11px;line-height:1.9;color:var(--amber);margin-bottom:18px}
.secondhand-rules,.secondhand-history{padding:18px;border:1px solid var(--border);border-radius:6px;background:var(--bg);margin:20px 0}
.secondhand-rules h3{font-size:13px;line-height:1.9;font-weight:500;margin-bottom:10px}
.secondhand-rules p{font-size:10px;line-height:1.9;color:var(--muted);margin-top:9px}
.secondhand-loss-note,.secondhand-rules .secondhand-loss-note{font-size:10px;line-height:1.9;color:var(--amber);margin-top:14px;overflow-wrap:anywhere}
.secondhand-history>summary{font-size:12px;line-height:1.9;color:var(--muted);cursor:pointer}
.secondhand-history-list{max-height:360px;overflow:auto;overscroll-behavior:contain;margin-top:16px}
.secondhand-history article{padding:14px 0;border-top:1px solid var(--border)}
.secondhand-history header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:10px;line-height:1.9}
.secondhand-history header strong{font-weight:500}
.secondhand-history time{font:9px var(--mono);line-height:1.9;color:var(--subtle);text-align:right}
.secondhand-history p{font-size:11px;line-height:1.9;color:var(--muted);margin:8px 0;overflow-wrap:anywhere}
.secondhand-empty{text-align:center;padding:32px 20px;border:1px solid var(--border);border-radius:6px;margin:20px 0;background:var(--bg)}
.secondhand-empty>svg{width:28px;height:28px;color:var(--mint);margin:0 auto 14px}
.secondhand-empty h3{font-size:14px;font-weight:500;line-height:1.9}
.secondhand-empty p{font-size:11px;line-height:1.9;color:var(--subtle);margin-top:12px}
.secondhand-confirm h3{font-size:19px;line-height:1.8;font-weight:500;margin:12px 0}
.secondhand-confirm>p{font-size:11px;line-height:1.9;color:var(--muted)}
.secondhand-confirm-item{display:flex;align-items:center;gap:16px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:16px 0;margin:18px 0}
.secondhand-confirm-item strong{display:block;font-size:14px;font-weight:500;line-height:1.9;overflow-wrap:anywhere}
.secondhand-confirm-item p{font-size:10px;line-height:1.9;color:var(--muted);margin-top:6px}
.secondhand-confirm-price{padding:16px;border:1px solid var(--border);border-radius:5px;background:var(--bg);margin:18px 0}
.secondhand-confirm-price>span,.secondhand-confirm-price>small{display:block;font-size:10px;color:var(--subtle);line-height:1.9}
.secondhand-confirm-price strong{display:block;font-size:24px;line-height:1.8;font-weight:500;color:var(--mint);margin:7px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.secondhand-confirm-balances{padding:12px 16px;border:1px solid var(--border);border-radius:5px;margin:16px 0}
.secondhand-confirm-balances>div{display:flex;justify-content:space-between;gap:14px;padding:7px 0;font-size:11px;line-height:1.9}
.secondhand-confirm-balances span{color:var(--subtle)}
.secondhand-confirm-balances strong{font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:900px){.secondhand-loadout{grid-template-columns:repeat(2,minmax(0,1fr))}.secondhand-item{grid-template-columns:58px minmax(0,1fr)}.secondhand-item>button{grid-column:2;justify-self:start}}
@media(max-width:650px){.secondhand-intro>p{font-size:11px}.secondhand-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.secondhand-summary>div{padding:10px}.secondhand-summary span{font-size:9px;line-height:1.7}.secondhand-summary strong{font-size:20px;margin:5px 0}.secondhand-summary strong small{font-size:9px;margin-left:3px}.secondhand-summary>div>small{display:none}.secondhand-owner{padding:16px}.secondhand-owner>header{gap:10px;flex-wrap:wrap}.secondhand-owner h3{font-size:14px}.secondhand-owner>header>span{font-size:9px}.secondhand-item{gap:12px;grid-template-columns:46px minmax(0,1fr)}.secondhand-item>.secondhand-gear-art{width:46px;height:52px}.secondhand-item>.secondhand-gear-art>svg{width:38px;height:44px}.secondhand-item dl{gap:10px 16px}.secondhand-item h4{font-size:12px}.secondhand-rules,.secondhand-history{padding:16px}.secondhand-history header{flex-wrap:wrap}.secondhand-confirm h3{font-size:17px}.secondhand-confirm-price strong{font-size:21px}.secondhand-confirm-balances>div{flex-direction:column;gap:4px}.secondhand-confirm .dialog-actions{flex-wrap:wrap}.secondhand-dialog>.dialog-actions>button,.secondhand-confirm .dialog-actions>button{font-size:11px}}
