/* The armory and training screens extend the existing outpost design system. */
.workspace.growth-workspace{grid-template-columns:minmax(0,1fr)}
.growth-workspace>.right-column{display:none}
.growth-workspace .roster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.workshop-panel .section-intro{align-items:center}
.workshop-panel .section-intro p{max-width:650px}
.workshop-panel .material-grid{margin-bottom:24px}
.workshop-panel .material-card{background:#111f28;border-color:var(--border)}
.workshop-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:20px;border-bottom:1px solid var(--border);margin-bottom:24px}
.workshop-nav>.mono{font-size:11px;color:var(--muted);white-space:nowrap}
.growth-tabs{display:flex;gap:4px;flex-wrap:wrap;background:#0d171f;padding:4px;border:1px solid var(--border);border-radius:6px}
.growth-tabs button{padding:10px 20px;color:var(--muted);font-size:12px;border:1px solid transparent;border-radius:4px;min-height:38px}
.growth-tabs button.active{color:var(--mint);background:#203b34;border-color:#3e6355}
.growth-tabs button:hover{color:var(--text)}
.growth-tabs button>span{display:inline-block;font-family:var(--mono);background:#344d44;border-radius:3px;padding:1px 5px;margin-left:5px;font-size:10px}
.workshop-pane[hidden],.detail-pane[hidden]{display:none}
.arsenal-toolbar,.growth-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.arsenal-toolbar h3,.growth-section-title h3{font-size:13px;font-weight:500}
.growth-section-title>span{font-size:10px;color:var(--muted)}
.gear-filters{display:flex;gap:4px}
.gear-filters button{padding:7px 13px;border:1px solid transparent;border-radius:4px;color:var(--muted);font-size:11px}
.gear-filters button.active{color:var(--text);border-color:#405660;background:#20303b}
.workshop-panel .gear-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.workshop-panel .gear-card{padding:18px;background:#111d26}
.equipment-pixel{width:116px;height:64px;max-width:100%;image-rendering:pixelated}
.gear-art svg.equipment-pixel{width:116px;height:64px}
.gear-card .gear-art{height:100px;background:#17252e;border:0;border-radius:4px;margin-bottom:16px}
.gear-level{position:absolute;left:9px;top:8px;font:10px var(--mono);color:var(--text)}
.gear-card .gear-stack{right:9px;bottom:8px}
.equipment-kind{font-size:9px;color:var(--muted);letter-spacing:.5px;line-height:1.8}
.gear-card h3{font-size:13px;margin:5px 0 12px}
.gear-stat-list{display:flex;gap:7px 12px;flex-wrap:wrap;line-height:1.8;font-size:10px;color:var(--muted)}
.gear-stat-list>span{display:flex;align-items:center;gap:7px}
.gear-stat-list b{color:#c0dfd4;font-family:var(--mono);font-weight:500;white-space:nowrap}
.gear-card .gear-stat-list{min-height:44px}
.gear-card small.gear-owner{font-size:10px;margin-top:15px}
.gear-card .secondary-button{font-size:11px;min-height:37px}
.workshop-footnote{font-size:11px;color:var(--muted);line-height:1.9;margin-top:24px;padding-top:16px;border-top:1px solid var(--border)}
.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.recipe-card{display:flex;flex-direction:column;min-width:0;border:1px solid #385365;background:#111f29;border-radius:6px;padding:20px}
.recipe-card.epic{border-color:#60516d}
.recipe-card.locked{border-style:dashed;border-color:#3d4650}
.recipe-card.locked .recipe-art .equipment-pixel{opacity:.4}
.recipe-art{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;min-height:70px}
.recipe-art .small-tag{font-size:9px;padding:5px 7px;white-space:nowrap}
.recipe-card.locked .small-tag{color:var(--muted);background:#23303a;border-color:#3b4d58}
.recipe-card h3{font-size:15px;font-weight:500;margin:4px 0 14px}
.recipe-card .gear-stat-list{min-height:35px}
.recipe-requirement{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:10px;color:var(--muted);line-height:1.8;margin:14px 0}
.recipe-requirement svg{width:12px;height:12px;color:var(--blue)}
.recipe-requirement>span{display:block;width:100%;padding-left:18px;font-size:9px;color:#a8a2b8}
.recipe-card .growth-cost{margin-top:auto;padding:12px 0;min-height:50px}
.recipe-card .secondary-button{justify-content:space-between;font-size:11px;min-height:40px}
.growth-cost{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin:12px 0;font:13px var(--mono);color:#c3d8d0}
.growth-cost>span{display:flex;gap:5px;align-items:baseline}
.growth-cost small{font-size:10px;font-family:var(--sans);color:var(--muted)}
.growth-cost>span.shortfall{color:#efa49a}
.growth-cost>span.shortfall small{color:#dda49b}
.growth-cost>span.shortfall:after{content:'不足';font-size:8px;font-family:var(--sans);border:1px solid #704d49;padding:1px 3px;border-radius:2px}
.workshop-panel .blueprint-card{padding:22px}
.blueprint-card.locked{background:#151d27;border-style:dashed;border-color:#3c4050}
.blueprint-card.locked>svg,.blueprint-card.locked>span{color:var(--muted)}
.blueprint-card p{line-height:1.8}
dialog.growth-dialog{max-width:720px}
.equipment-hero{display:flex;align-items:center;gap:24px;padding:20px;border:1px solid #385b6b;background:#172a34;border-radius:6px}
.equipment-hero.epic{background:#262331;border-color:#61506e}
.equipment-hero>div:first-child{display:grid;place-items:center;flex:0 0 140px;min-height:100px;border-right:1px solid #41606b}
.equipment-hero .equipment-pixel{width:130px;height:75px}
.equipment-hero>div>strong{display:block;font:30px var(--mono);margin:5px 0}
.equipment-hero strong>small{font-size:13px;color:var(--muted)}
.equipment-hero p{font-size:11px;color:var(--muted)}
.item-serial{font:9px var(--mono);opacity:.7;display:inline-block;margin-left:10px}
.detail-gear-stats{padding:16px 0;border-bottom:1px solid var(--border);font-size:12px}
.enhancement-section,.loadout-section{padding-top:24px}
.upgrade-preview{padding:14px 16px;background:#13261f;border:1px solid #335648;border-radius:5px;margin-bottom:16px}
.upgrade-preview>span{display:flex;align-items:center;gap:12px;font:13px var(--mono);margin-bottom:10px;color:var(--muted)}
.upgrade-preview svg{width:14px;height:14px;color:var(--mint)}
.upgrade-preview b{color:var(--mint);font-weight:500}
.upgrade-preview .gear-stat-list{font-size:11px}
.growth-dialog .full{justify-content:center;gap:10px;min-height:40px;font-size:12px}
.growth-dialog .full svg{width:15px;height:15px}
.growth-note{font-size:11px!important;color:var(--muted)!important;line-height:1.9!important;margin-top:10px}
.comparison-heading{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);padding:16px 0 10px}
.comparison-heading>span{display:flex;align-items:center;gap:6px}
.comparison-heading svg,.comparison-table svg{width:12px;height:12px;color:var(--subtle)}
.comparison-table{background:#0e1921;border:1px solid var(--border);border-radius:5px;padding:5px 14px}
.comparison-table>div{display:grid;grid-template-columns:1fr 65px 20px 65px;align-items:center;gap:12px;font-size:11px;padding:8px 0;border-bottom:1px solid #21333f}
.comparison-table>div:last-child{border:0}
.comparison-table b,.comparison-table strong{font:12px var(--mono);font-weight:400;text-align:right}
.comparison-table b{color:var(--muted)}
.comparison-table .better{color:#a0dfbb}.comparison-table .worse{color:#edb49e}
.loadout-section>.full{margin-top:16px}
.dismantle-link{display:block;color:#c7a99c;font-size:10px;text-decoration:underline;text-underline-offset:4px;margin:25px auto 0;min-height:32px}
.detail-tabs{margin:0 0 20px}
.detail-tabs button{flex:1}
.combat-specialties{font-size:11px;color:var(--blue);margin-bottom:16px;line-height:1.8}
.skill-points-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #42604d;background:#1b3025;padding:15px 18px;border-radius:5px}
.skill-points-strip>span{display:flex;align-items:center;gap:9px;color:#bbd4c1;font-size:12px}
.skill-points-strip svg{width:19px;height:19px;color:var(--mint)}
.skill-points-strip strong{font:25px var(--mono);color:var(--mint)}
.skill-points-strip small{font-size:10px;color:#9eb8a8}
.skill-tree{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.skill-card{display:flex;flex-direction:column;min-width:0;border:1px solid #3a5c69;border-top:2px solid #79bfc3;background:#13222c;border-radius:5px;padding:18px}
.skill-card.passive{border-color:#62533e;border-top-color:#c7a573;background:#26231d}
.skill-card-head{display:flex;gap:10px;align-items:center}
.skill-symbol{display:grid;place-items:center;width:35px;height:38px;border:1px solid #3e5967;border-radius:3px;background:#1d3342;color:var(--blue);flex-shrink:0}
.skill-symbol svg{height:20px;width:20px}
.passive .skill-symbol{color:var(--amber);background:#372d20;border-color:#62503b}
.skill-card-head .equipment-kind{font-size:8px}
.skill-card-head h3{font-size:14px;font-weight:500;margin-top:3px}
.skill-card-head>strong{font:20px var(--mono);margin-left:auto;color:var(--text);white-space:nowrap}
.skill-card-head>strong small{font-size:10px;color:var(--muted)}
.skill-ranks{display:flex;gap:5px;margin:18px 0 14px}
.skill-ranks>span{display:grid;place-items:center;flex:1;height:24px;border:1px solid #3b4c55;background:#0f1b23;font:10px var(--mono);color:var(--subtle)}
.skill-ranks>span.learned{background:#35584f;border-color:#6baf98;color:#d0ede0}
.passive .skill-ranks>span.learned{background:#5b4728;border-color:#ad8a54;color:#f2d5a7}
.skill-description{font-size:11px;line-height:1.9;color:#b6cbd0;min-height:64px}
.passive .skill-description{color:#d0c0a8}
.skill-cooldown{margin:10px 0 0;font-size:9px;color:var(--blue);line-height:1.8}
.skill-cooldown>div{height:3px;margin-top:5px;background:#263e4a;overflow:hidden}
.skill-cooldown>div>span{display:block;height:100%;background:var(--blue);transition:width .2s linear}
.skill-next{margin:16px 0 0;border-top:1px solid #3a4b54;padding-top:12px}
.skill-next>small{font-size:9px;color:#95bfb9}
.skill-next p{font-size:10px;color:var(--muted);line-height:1.9;margin-top:5px}
.skill-card>.growth-cost{padding-top:12px;margin-top:auto;min-height:42px;font-size:12px}
.skill-card>.full{margin-top:4px;font-size:10px;justify-content:space-between;min-height:40px}
.skill-card>.full svg{height:12px;width:12px}
.skill-maxed{font-size:11px;color:var(--mint);margin-top:auto;padding:20px 0}
.retrain-row{margin-top:20px;border-top:1px solid var(--border);padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.retrain-row p{font-size:10px;color:var(--muted);line-height:1.9;max-width:380px}
.retrain-row .text-button{font-size:10px;color:#d0bda1;white-space:nowrap}
.roster-skills{margin:18px 0 12px;border-top:1px solid var(--border);padding-top:12px}
.roster-skills>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;padding:5px 0;color:var(--muted)}
.roster-skills b{font:10px var(--mono);color:var(--blue)}
.roster-skills>div+div b{color:var(--amber)}
.roster-card .training-button{display:flex;align-items:center;gap:8px;font-size:11px;min-height:42px}
.training-button svg{width:15px;height:15px;color:var(--mint)}
.training-button>span{margin-left:auto;font-size:9px;color:var(--mint)}
.roster-card>.text-button{margin-top:14px;font-size:10px}
@media(max-width:1190px){.workshop-panel .gear-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.growth-workspace .roster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){.workshop-panel .gear-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-card{padding:16px}.recipe-art{flex-wrap:wrap;gap:8px}.recipe-art .equipment-pixel{height:58px}.growth-tabs button{padding:9px 14px}}
@media(max-width:650px){.growth-workspace .roster-grid{grid-template-columns:1fr}.workshop-panel .section-intro h2{font-size:20px;line-height:1.6}.workshop-panel .section-intro .small-tag{display:none}.workshop-panel .material-grid{margin-bottom:20px}.workshop-nav{flex-wrap:wrap;gap:12px;margin-bottom:20px;padding-bottom:16px}.workshop-nav>.mono{margin-left:auto;font-size:10px}.workshop-nav .growth-tabs{width:100%}.workshop-nav .growth-tabs button{flex:1;padding:9px 8px;font-size:11px}.arsenal-toolbar h3{font-size:12px}.gear-filters button{padding:7px 9px;font-size:10px}.workshop-panel .gear-grid{grid-template-columns:1fr;gap:12px}.workshop-panel .gear-card{padding:16px}.gear-card .gear-art{height:100px}.gear-card h3{font-size:15px}.gear-stat-list{font-size:12px}.gear-card .gear-stat-list{min-height:0}.gear-card small.gear-owner{font-size:11px}.gear-card .secondary-button{font-size:12px;min-height:42px}.equipment-kind{font-size:10px}.recipe-grid{grid-template-columns:1fr}.recipe-art{flex-wrap:nowrap;min-height:60px}.recipe-card{padding:18px}.recipe-card .gear-stat-list{min-height:0;font-size:11px}.recipe-card .growth-cost{font-size:14px;padding:14px 0}.recipe-card .secondary-button{font-size:12px;min-height:42px}.workshop-footnote{font-size:10px}.growth-section-title{align-items:flex-start}.growth-section-title h3{font-size:12px}.growth-section-title>span{font-size:9px;line-height:1.8}.growth-dialog .dialog-inner{padding:22px 18px}.equipment-hero{padding:15px;gap:16px}.equipment-hero>div:first-child{flex-basis:100px;min-height:90px}.equipment-hero .equipment-pixel{width:92px}.equipment-hero strong{font-size:27px}.equipment-hero p{font-size:10px}.equipment-hero .equipment-kind{font-size:9px}.detail-gear-stats{font-size:11px}.growth-cost small{font-size:10px}.comparison-table{padding:5px 10px}.comparison-table>div{gap:8px;grid-template-columns:1fr 48px 12px 48px;font-size:10px}.comparison-table b,.comparison-table strong{font-size:11px}.comparison-heading{font-size:9px;gap:8px}.skill-tree{grid-template-columns:1fr}.skill-description{min-height:0;font-size:12px}.skill-card-head h3{font-size:16px}.skill-card-head .equipment-kind{font-size:9px}.skill-ranks>span{font-size:11px;height:28px}.skill-next p{font-size:11px}.skill-next>small{font-size:10px}.skill-card>.growth-cost{font-size:14px}.skill-card>.full{font-size:12px;min-height:44px}.skill-points-strip{padding:13px}.skill-points-strip>span{font-size:11px}.retrain-row{flex-wrap:wrap}.retrain-row p{max-width:none}.retrain-row .text-button{margin-left:auto}.roster-card .training-button{font-size:12px}.roster-skills>div{font-size:12px}.workshop-panel .blueprint-card{padding:16px;gap:10px}.blueprint-card>svg{flex-shrink:0}.blueprint-card strong{font-size:12px}.blueprint-card p{font-size:10px}.blueprint-card>span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.skill-cooldown>div>span{transition:none}}
/* Stamina remains readable in both roster cards and live character details. */
.stamina-readout { margin: 18px 0; padding: 13px 0; border-block: 1px solid var(--line, #24303a); }
.stamina-readout > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12px; }
.stamina-readout > div > span { display: flex; align-items: center; gap: 6px; color: var(--muted, #98a8b3); }
.stamina-readout svg { width: 15px; height: 15px; }
.combat-bar.stamina > span { background: #d6b774; }
.stamina-readout small { display: block; margin-top: 7px; font-size: 10px; line-height: 1.7; color: var(--muted, #98a8b3); }
.stamina-readout.tired strong { color: #f0bc80; }
.stamina-readout .text-button { margin-top: 8px; }
.service-building-note { padding: 15px; margin: 18px 0; border: 1px solid var(--border); border-radius: 5px; color: var(--muted, #98a8b3); font-size: 12px; line-height: 1.9; }
.service-building-note p { font-size: 11px; margin: 8px 0; }

.gear-card.magic,.equipment-hero.magic{border-color:#4e7596}.gear-card.legendary,.equipment-hero.legendary{border-color:#9d8153;background:#29271f}.gear-card.legendary .equipment-kind{color:#efc475}.gear-card.magic .equipment-kind{color:#83bdea}
