.hub-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stat-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .035); }
.stat-tile b { font-size: 16px; font-weight: 850; font-variant-numeric: tabular-nums; }
.stat-tile span { color: var(--dim); font-size: 10px; font-weight: 700; }

.hub-body { display: flex; flex-direction: column; gap: 10px; }
.hub-empty, .hub-note { margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 650; line-height: 1.45; }

.quest-list, .badge-list, .history-list, .path-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }

.quest-row { display: flex; flex-direction: column; gap: 7px; padding: 12px 13px; border-radius: var(--r-md); background: rgba(255, 255, 255, .034); }
.quest-row.is-done { background: rgba(134, 224, 138, .1); }
.quest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.quest-head span { font-size: 13.5px; font-weight: 750; }
.quest-head b { flex: none; color: var(--good); font-size: 12px; font-weight: 800; }
.quest-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.quest-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--action); }
.quest-note { color: var(--dim); font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }

.badge-row { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--r-md); background: rgba(255, 255, 255, .028); opacity: .66; }
.badge-row.is-earned { opacity: 1; background: rgba(157, 123, 255, .12); }
.badge-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--violet); font-style: normal; font-size: 13px; }
.badge-row.is-earned .badge-mark { background: rgba(157, 123, 255, .24); }
.badge-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.badge-body b { font-size: 13.5px; font-weight: 800; }
.badge-body span { color: var(--muted); font-size: 11.5px; font-weight: 650; }

.ship-preview { position: sticky; top: -1px; z-index: 3; display: grid; place-items: start center; min-height: 202px; overflow: hidden; border: 1px solid rgba(105,164,224,.13); border-radius: var(--r-md); background: radial-gradient(circle at 50% 34%, rgba(60, 110, 180, .2), transparent 50%), rgba(7, 14, 27, .94); box-shadow: 0 12px 28px rgba(2,6,14,.28); }
.ship-preview .ship-preview-canvas { display: block; width: 100%; height: 158px; }

.tune-budget { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tune-budget b { font-size: 14px; font-weight: 800; }
.tune-budget span { color: var(--dim); font-size: 11.5px; font-weight: 650; }

.tune-row { display: flex; flex-direction: column; gap: 7px; padding: 11px 13px; border-radius: var(--r-md); background: rgba(255, 255, 255, .034); }
.tune-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tune-head b { font-size: 13.5px; font-weight: 800; }
.tune-head span { color: var(--dim); font-size: 11.5px; font-weight: 650; }
.tune-line { display: flex; align-items: center; gap: 9px; }
.tune-dots { flex: 1; display: flex; gap: 4px; }
.tune-dots i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); transition: background .16s ease; }
.tune-dots i.is-on { background: var(--action); }
.tune-step { flex: none; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 9px; background: transparent; color: var(--text); font-size: 17px; font-weight: 700; line-height: 1; }
.tune-step:disabled { opacity: .3; }

.look-title { margin: 6px 0 0; color: var(--dim); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.look-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.look-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 5px; border: 1px solid transparent; border-radius: var(--r-md); background: rgba(255, 255, 255, .034); color: var(--text); }
.look-tile.is-worn { border-color: var(--line-strong); background: rgba(255, 255, 255, .1); }
.look-tile.is-locked { opacity: .64; }
.look-tile.is-for-sale { border-color: rgba(81, 210, 244, .17); }
.look-tile b { font-size: 12px; font-weight: 750; }
.look-tile span { color: var(--dim); font-size: 10px; font-weight: 650; line-height: 1.3; text-align: center; }
.look-preview { width: 86px; height: 74px; object-fit: contain; filter: drop-shadow(0 0 9px rgba(66, 213, 244, .24)); }
.look-price { margin-top: 3px; padding: 3px 8px; border-radius: 999px; background: rgba(54, 208, 241, .12); color: #8eeaff !important; font-weight: 850 !important; }
.look-weapon { color: #ffd37a !important; }
.look-tile .craft-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 3px; }
.look-tile .craft-stats i { padding: 2px 4px; border-radius: 5px; background: rgba(255,255,255,.055); color: var(--muted); font-size: 8px; font-style: normal; font-weight: 750; }
.preview-rack { position: absolute; inset: auto 8px 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.rack-slot { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; min-height: 32px; padding: 5px 8px; border: 1px solid transparent; border-radius: 9px; background: rgba(3, 11, 23, .76); color: var(--text); text-align: left; }
.rack-slot.is-active { border-color: rgba(57,211,245,.35); background: rgba(39, 154, 190, .15); }
.rack-slot span { color: var(--dim); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.rack-slot b { min-width: 0; overflow: hidden; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

.build-summary { padding: 11px; border: 1px solid rgba(98,230,167,.2); border-radius: var(--r-md); background: linear-gradient(135deg, rgba(98,230,167,.09), rgba(57,211,245,.04)); }
.build-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.build-head b { color: var(--good); font-size: 12px; font-weight: 850; }
.build-head span { color: var(--dim); font-size: 9px; font-weight: 700; }
.build-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.build-stats span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 8px; background: rgba(0,0,0,.16); }
.build-stats b { font-size: 10px; font-weight: 850; font-variant-numeric: tabular-nums; }
.build-stats i { color: var(--dim); font-size: 7px; font-style: normal; font-weight: 700; }

.module-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.module-tabs button { min-height: 38px; padding: 4px; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.034); color: var(--dim); font-size: 9px; font-weight: 800; }
.module-tabs button.is-active { border-color: var(--line-strong); background: rgba(57,211,245,.1); color: var(--text); }
.module-grid { display: flex; flex-direction: column; gap: 7px; }
.module-tile { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 8px 10px; align-items: center; padding: 9px; border: 1px solid transparent; border-radius: var(--r-md); background: rgba(255,255,255,.034); }
.module-tile.is-equipped { border-color: rgba(57,211,245,.35); background: rgba(57,211,245,.08); }
.module-tile.is-locked img { filter: grayscale(.45); opacity: .6; }
.module-tile img { grid-row: 1 / span 2; width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(66,213,244,.23)); }
.module-copy { min-width: 0; }
.module-copy > b { font-size: 12.5px; font-weight: 850; }
.module-copy p { margin: 2px 0 6px; color: var(--muted); font-size: 9px; font-weight: 650; line-height: 1.3; }
.module-trade { display: flex; flex-wrap: wrap; gap: 4px; }
.module-trade span, .modifier-tile > span { padding: 3px 6px; border-radius: 999px; font-size: 8px; font-weight: 800; }
.is-plus { background: rgba(98,230,167,.1); color: #8af0bd; }
.is-minus { background: rgba(255,166,103,.1); color: #ffc08d; }
.module-action { grid-column: 2; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 9px; background: transparent; color: var(--text); font-size: 9.5px; font-weight: 800; }
.module-action.is-primary { border-color: rgba(57,211,245,.3); background: rgba(57,211,245,.12); color: #a7efff; }
.module-action:disabled { opacity: .45; }

.modifier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.modifier-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-height: 108px; padding: 10px; border: 1px solid transparent; border-radius: var(--r-md); background: rgba(255,255,255,.034); color: var(--text); text-align: left; }
.modifier-tile.is-equipped { border-color: rgba(172,122,255,.45); background: rgba(150,90,240,.11); }
.modifier-tile.is-locked { opacity: .45; }
.modifier-tile b { font-size: 11px; font-weight: 850; }
.modifier-tile em { margin-top: auto; color: var(--cyan); font-size: 8px; font-style: normal; font-weight: 800; }

.weapon-grid { display: flex; flex-direction: column; gap: 8px; }
.weapon-tile {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 9px 11px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .034);
}
.weapon-tile.is-equipped { border-color: var(--line-strong); background: rgba(57, 211, 245, .08); }
.weapon-tile.is-locked .weapon-preview { opacity: .62; filter: grayscale(.35); }
.weapon-preview { grid-row: 1 / span 2; align-self: center; width: 82px; height: 82px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(66, 213, 244, .24)); }
.weapon-copy { min-width: 0; }
.weapon-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.weapon-title b { font-size: 13.5px; font-weight: 850; }
.weapon-title span { color: var(--cyan); font-size: 10px; font-weight: 800; white-space: nowrap; }
.weapon-copy p { margin: 3px 0 6px; color: var(--muted); font-size: 10.5px; font-weight: 650; line-height: 1.35; }
.weapon-stats { display: flex; flex-wrap: wrap; gap: 5px; }
.weapon-stats span { padding: 3px 6px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--dim); font-size: 9px; font-weight: 750; }
.weapon-stats span.is-special { background: rgba(239, 77, 255, .12); color: #f3a7ff; }
.craft-stats i.is-role { background: rgba(67, 210, 245, .11); color: #9cecff; }
.weapon-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.weapon-action { min-height: 44px; flex: 1 1 92px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--text); font-size: 10.5px; font-weight: 800; }
.weapon-action.is-primary { border-color: rgba(57,211,245,.3); background: rgba(57,211,245,.12); color: #a7efff; }
.weapon-action:disabled { opacity: .42; }
.weapon-max { align-self: center; color: var(--good); font-size: 10px; font-weight: 800; }

@media (min-width: 700px) {
    .weapon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weapon-tile { grid-template-columns: 74px minmax(0, 1fr); }
    .weapon-preview { width: 74px; height: 74px; }
    .module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.path-list li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .028); font-size: 13px; opacity: .6; }
.path-list li.is-taken { opacity: 1; }
.path-list .lv { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.path-list li.is-taken .lv { background: rgba(237, 243, 255, .2); }
.path-list .what { font-weight: 700; }

.history-row { display: grid; grid-template-columns: 24px 1fr auto auto; align-items: center; gap: 9px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .028); font-size: 12.5px; }
.history-row.is-win { background: rgba(134, 224, 138, .1); }
.history-place { font-weight: 850; font-variant-numeric: tabular-nums; }
.history-terr { font-weight: 700; font-variant-numeric: tabular-nums; }
.history-cuts { color: var(--dim); font-weight: 650; }
.history-row em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.history-row em.is-up { color: var(--good); }
.history-row em.is-down { color: var(--bad); }
