/* A game-art workbench with explicit current and target planning controls. */
.planner[data-planner="armor"] { max-width:1180px; padding:24px 0 30px; }
.armor-workshop { color:var(--text); }
.armor-page-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.armor-page-header>div { display:flex; align-items:center; flex-wrap:wrap; gap:18px; min-width:0; }
.armor-page-header .p-back { display:inline-flex; align-items:center; min-height:44px; margin:0; padding:7px 0; border:0; background:none; }
.planner .armor-page-header h1 { margin:0; color:var(--text); font:600 clamp(24px,3vw,31px)/1.2 Inter,system-ui,sans-serif; letter-spacing:-.025em; text-transform:none; }
.armor-page-header>span { color:var(--muted); font-size:12px; white-space:nowrap; }
.armor-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--tool-border); border-radius:5px; overflow:hidden; margin-bottom:20px; background:var(--tool-base); }
.planner .armor-tabs button { min-width:0; min-height:47px; padding:11px 15px; border:0; border-right:1px solid var(--tool-border); border-bottom:2px solid transparent; border-radius:0; background:none; color:var(--muted); font:500 14px/1.4 Inter,system-ui,sans-serif; }
.planner .armor-tabs button:last-child { border-right:0; }
.planner .armor-tabs button[aria-pressed=true] { color:var(--text); background:var(--tool-raised); border-bottom-color:var(--tool-highlight); }
.planner .armor-tabs button:hover { color:var(--text); background:var(--tool-surface); }
.armor-workbench { display:grid; grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr); align-items:start; gap:20px; }
.armor-scene-column { min-width:0; position:sticky; top:24px; }
.armor-scene-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:65px; padding:0 2px 14px; }
.planner .armor-scene-heading h2,.planner .armor-troops-panel>header h2 { margin:0; color:var(--text); font:600 22px/1.3 Inter,system-ui,sans-serif; letter-spacing:-.02em; text-transform:none; }
.armor-scene-heading p,.armor-troops-panel>header p { color:var(--muted); font-size:12px; line-height:1.5; margin:5px 0 0; }
.armor-overview-button { flex-shrink:0; min-height:44px; padding:9px 0 9px 10px; border:0; background:none; color:var(--text); font:400 12px/1.45 Inter,system-ui,sans-serif; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.armor-stage { position:relative; display:grid; place-items:center; isolation:isolate; min-width:0; height:570px; overflow:hidden; border:1px solid #c5a46d6b; border-radius:6px; background:radial-gradient(ellipse at 50% 38%,#414253,#11171c 70%); box-shadow:inset 0 0 0 5px #090e1470; }
.armor-stage::after { content:''; position:absolute; z-index:-1; inset:0; pointer-events:none; background:linear-gradient(180deg,#080e1520 35%,#080e1500 53%,#080e15dd 100%); }
.armor-stage-background.game-icon { position:absolute; z-index:-2; inset:0; width:100%; height:100%; max-width:none; max-height:none; object-fit:cover; border:0; border-radius:0; background:none; opacity:.72; }
.armor-stage-visual { display:grid; place-items:center; width:100%; height:100%; min-width:0; padding:24px 20px 115px; }
.armor-stage-object.game-icon { display:block; width:100%; height:100%; max-width:460px; max-height:430px; border:0; border-radius:0; background:none; object-fit:contain; filter:drop-shadow(0 20px 25px #0008); }
.armor-stage--full .armor-stage-visual { padding:0; }
.armor-stage--full .armor-stage-object.game-icon { max-width:none; max-height:none; object-fit:cover; filter:none; }
.armor-stage-visual video { display:block; width:100%; height:100%; object-fit:contain; background:#0b1015; }
.armor-scene-caption { position:absolute; z-index:2; left:22px; right:22px; bottom:20px; display:grid; gap:8px; padding-top:20px; color:#fff2d2; text-align:center; text-shadow:0 2px 5px #0009; }
.armor-scene-caption>strong { font-size:21px; font-weight:600; line-height:1.3; }
.armor-scene-caption>span { color:#e1d2b7; font-size:12px; line-height:1.5; }
.armor-stage-track { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:6px; max-width:300px; width:100%; margin:3px auto 0; }
.armor-stage-track span { height:7px; border:1px solid #d6b98175; background:#0d151dc9; transform:skewX(-12deg); }
.armor-stage-track .is-complete { border-color:#a4d1a0; background:#79ab7b; }
.armor-stage-track .is-planned { border-color:#ffe1a2; background:#dfb55e; }
.armor-scene-caption progress { width:100%; height:7px; max-width:300px; margin:3px auto 0; accent-color:#dfb55e; }
.armor-cinematic { justify-self:center; min-height:35px; padding:7px 10px; border:1px solid #ffffff48; border-radius:4px; background:#0c131bc9; color:#f5e5c5; font:400 11px/1.4 Inter,system-ui,sans-serif; cursor:pointer; }
.armor-part-picker { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; margin-top:12px; }
.armor-part-button { position:relative; display:flex; flex-direction:column; align-items:center; gap:4px; min-width:0; min-height:105px; padding:9px 3px; border:1px solid var(--tool-border); border-radius:4px; background:var(--tool-surface); color:var(--muted); cursor:pointer; font-family:inherit; }
.armor-part-button .game-icon { width:50px; height:50px; object-fit:contain; border:0; background:none; }
.armor-part-button>span { max-width:100%; overflow-wrap:anywhere; font-size:11px; line-height:1.35; }
.armor-part-button>small { margin-top:auto; font-size:10px; line-height:1.2; font-variant-numeric:tabular-nums; }
.armor-part-button[aria-pressed=true] { border-color:var(--tool-highlight); background:var(--tool-raised); color:var(--text); box-shadow:inset 0 -2px var(--tool-highlight); }
.armor-control-panel { min-width:0; padding:23px; border:1px solid var(--tool-border); border-radius:6px; background:var(--tool-base); }
.armor-control-panel>header { margin-bottom:23px; }
.armor-mode-label { display:block; margin-bottom:7px; color:var(--muted); font-size:11px; line-height:1.5; }
.planner .armor-control-panel h2 { margin:0; color:var(--text); font:600 26px/1.25 Inter,system-ui,sans-serif; letter-spacing:-.025em; text-transform:none; }
.armor-control-panel>header p { color:var(--muted); font-size:13px; line-height:1.6; margin:8px 0 0; }
.planner .armor-control-panel h3 { margin:0; color:var(--text); font:600 16px/1.4 Inter,system-ui,sans-serif; letter-spacing:0; text-transform:none; }
.armor-control-panel h4 { margin:12px 0 7px; color:var(--text); font:500 13px/1.5 Inter,system-ui,sans-serif; }
.armor-stage-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.armor-stepper { display:grid; gap:8px; min-width:0; color:var(--muted); font-size:12px; }
.armor-stepper-input { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; min-width:0; border:1px solid var(--tool-border); border-radius:4px; overflow:hidden; background:var(--tool-surface); }
.armor-stepper-input button { display:grid; place-items:center; min-width:0; min-height:46px; border:0; background:none; color:var(--text); font:400 21px/1 Inter,system-ui,sans-serif; cursor:pointer; }
.armor-stepper-input button:hover:not(:disabled) { background:var(--tool-raised); }
.armor-stepper-input input { width:100%; min-width:0; min-height:46px; padding:8px 3px; appearance:textfield; border:0; border-left:1px solid var(--tool-border); border-right:1px solid var(--tool-border); border-radius:0; background:none; color:var(--text); text-align:center; font:600 18px/1.4 Inter,system-ui,sans-serif; font-variant-numeric:tabular-nums; }
.armor-stepper-input input::-webkit-inner-spin-button,.armor-stepper-input input::-webkit-outer-spin-button { appearance:none; margin:0; }
.armor-workshop button:disabled { opacity:.4; cursor:default; }
.armor-stat-changes { display:grid; gap:0; margin:22px 0; }
.armor-stat-changes>div { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:13px 0; border-bottom:1px solid var(--tool-border); }
.armor-stat-changes dt { color:var(--muted); font-size:13px; line-height:1.5; }
.armor-stat-changes dd { display:flex; flex-shrink:0; align-items:center; gap:9px; margin:0; color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums; }
.armor-stat-changes dd strong { color:var(--text); font-size:16px; font-weight:600; }
.armor-stat-changes dd small { color:#acd6a0; font-size:11px; }
.armor-material-preview { margin-top:23px; padding:18px; border:1px solid var(--tool-border); border-radius:4px; background:var(--tool-surface); }
.planner .armor-material-preview h3 { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:8px; font-size:14px; }
.armor-material-preview h3 small { color:var(--muted); font-size:11px; font-weight:400; }
.armor-costs { margin:0!important; padding:0!important; list-style:none; display:grid; gap:0; }
.armor-costs li { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:11px 0; border-bottom:1px solid var(--tool-border); color:var(--text); font-size:13px; }
.armor-costs li:last-child { border-bottom:0; }
.armor-cost-name { display:flex; align-items:center; gap:9px; min-width:0; line-height:1.45; }
.armor-cost-name .game-icon { flex:0 0 30px; width:30px; height:30px; object-fit:contain; border:0; background:none; }
.armor-costs strong { flex-shrink:0; color:var(--text); font-weight:600; font-variant-numeric:tabular-nums; }
.armor-costs--compact li { padding:6px 0; font-size:12px; }
.planner .armor-primary-action { width:100%; min-height:49px; margin-top:17px; padding:12px 18px; border:1px solid #e2c27e; border-radius:4px; background:linear-gradient(180deg,#efd58b,#caa454); color:#292213; font:600 14px/1.4 Inter,system-ui,sans-serif; box-shadow:inset 0 1px #fff1bc6b,0 3px 0 #705528; cursor:pointer; }
.planner .armor-primary-action:hover:not(:disabled) { background:linear-gradient(180deg,#ffe7a6,#e1b866); }
.armor-plan-status { min-height:18px; margin:11px 0 0; color:#b2d6a7; font-size:12px; line-height:1.5; }
.armor-requirements,.armor-details { margin-top:20px; border-top:1px solid var(--tool-border); }
.armor-requirements summary,.armor-details summary { min-height:44px; padding:13px 0; color:var(--text); font-size:13px; line-height:1.5; cursor:pointer; }
.armor-requirements ul { margin:0 0 10px; padding-left:18px; color:var(--muted); font-size:12px; line-height:1.65; }
.armor-requirements li+li { margin-top:5px; }
.armor-details p,.armor-muted,.armor-recipe-scope { color:var(--muted); font-size:12px; line-height:1.65; }
.armor-stage-cost-list { display:grid; gap:12px; padding:4px 0 12px; }
.armor-stage-cost-list article { padding:10px 13px; background:var(--tool-surface); border-radius:4px; }
.armor-stage-cost-list h4 { margin:0 0 5px; }
.armor-saved-plan { margin-top:24px; padding-top:22px; border-top:1px solid var(--tool-border); }
.armor-saved-plan>ul { margin:9px 0 17px; padding:0; list-style:none; }
.armor-saved-plan>ul>li { display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid var(--tool-border); color:var(--text); font-size:13px; }
.armor-saved-plan li small { display:inline-block; margin-left:7px; color:var(--muted); }
.armor-saved-plan li button { min-height:44px; padding:7px 0 7px 12px; border:0; background:none; color:var(--muted); font:400 11px/1.4 Inter,system-ui,sans-serif; cursor:pointer; }
.armor-select { display:grid; gap:8px; min-width:0; color:var(--muted); font-size:12px; }
.armor-select select { width:100%; min-width:0; min-height:46px; padding:10px 12px; border:1px solid var(--tool-border); border-radius:4px; background:var(--tool-surface); color:var(--text); font:400 13px/1.4 Inter,system-ui,sans-serif; }
.armor-enhancement-controls { display:grid; gap:18px; }
.armor-step-preview { display:flex; align-items:center; gap:13px; padding:17px 0 0; margin-top:20px; border-top:1px solid var(--tool-border); }
.armor-step-preview>.game-icon { width:53px; height:53px; flex-shrink:0; object-fit:contain; }
.armor-step-preview>div { flex:1; min-width:0; }
.armor-step-preview p { color:var(--muted); font-size:11px; line-height:1.5; margin:4px 0 0; }
.armor-step-preview>strong { text-align:right; color:var(--text); font-size:24px; font-weight:600; }
.armor-step-preview>strong small { display:block; color:var(--muted); font-size:10px; font-weight:400; line-height:1.4; }
.armor-stage--forge { height:660px; background:#10121b; }
.armor-stage--forge .armor-stage-background { opacity:1; }
.armor-stage--forge .armor-scene-caption { bottom:22px; }
.armor-forge-output { position:absolute; top:42%; left:50%; transform:translate(-50%,-50%); display:grid; justify-items:center; gap:8px; width:140px; color:#f8dfb3; text-align:center; }
.armor-forge-output>.game-icon { width:88px; height:88px; object-fit:contain; filter:drop-shadow(0 0 20px #eab1605c); }
.armor-forge-output>span { color:#f3dbae; font-size:11px; line-height:1.5; text-shadow:0 2px 4px #000; }
.armor-heat-control { margin:22px 0; }
.armor-heat-levels { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:10px; }
.armor-heat-levels button { display:grid; place-items:center; gap:4px; min-height:72px; min-width:0; padding:10px 5px; border:1px solid var(--tool-border); border-radius:4px; background:var(--tool-surface); color:var(--muted); cursor:pointer; font-family:inherit; }
.armor-heat-levels button>span { font-size:21px; font-weight:600; line-height:1; }
.armor-heat-levels button>small { font-size:10px; line-height:1.4; }
.armor-heat-levels button[aria-pressed=true] { border-color:var(--tool-highlight); background:var(--tool-raised); color:var(--text); box-shadow:inset 0 -3px var(--tool-highlight); }
.armor-output-preview { display:flex; align-items:center; gap:12px; padding:16px; margin-bottom:22px; background:var(--tool-surface); border:1px solid var(--tool-border); border-radius:4px; }
.armor-output-preview>.game-icon { width:48px; height:48px; flex-shrink:0; }
.armor-output-preview>div { min-width:0; }
.armor-output-preview span { display:block; color:var(--muted); font-size:11px; line-height:1.5; }
.armor-output-preview strong { display:block; color:var(--text); font-size:15px; font-weight:600; line-height:1.5; margin-top:4px; }
.armor-recipe-scope { margin:8px 0 0; font-size:11px; }
.armor-reward-chances { margin:0; padding:0; list-style:none; }
.armor-reward-chances li { display:flex; justify-content:space-between; gap:15px; padding:9px 0; border-bottom:1px solid var(--tool-border); font-size:12px; color:var(--muted); }
.armor-reward-chances strong { color:var(--text); font-weight:500; }
.armor-risk { color:var(--muted); font-size:11px; line-height:1.65; margin-top:14px; }
.armor-troops-panel>header { margin:10px 0 20px; }
.armor-troop-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.armor-item-heading { display:flex; align-items:center; gap:12px; }
.armor-item-heading .game-icon { width:60px; height:60px; object-fit:contain; flex-shrink:0; }
.armor-troop-card .armor-item-heading { font-size:16px; }
.armor-troop-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:22px 0; }
.armor-troop-stats>div { padding-bottom:10px; border-bottom:1px solid var(--tool-border); }
.armor-troop-stats dt { color:var(--muted); font-size:11px; }
.armor-troop-stats dd { margin:5px 0 0; color:var(--text); font-size:22px; font-weight:600; font-variant-numeric:tabular-nums; }
.armor-troop-card .armor-costs li { font-size:11px; gap:10px; }
.armor-troop-card .armor-cost-name .game-icon { width:24px; height:24px; flex-basis:24px; }
.armor-troop-card .armor-details p { margin-top:12px; }
.armor-inline-links { display:flex; gap:20px; margin-top:20px; }
.armor-inline-links a,.armor-source-note a { color:var(--muted); font-size:12px; text-underline-offset:4px; }
.armor-source-note { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top:24px; padding-top:17px; border-top:1px solid var(--tool-border); }
.armor-source-note>span { color:var(--muted); font-size:11px; }
.armor-empty { padding:30px 0; color:var(--text); }
.armor-empty p { margin-top:12px; color:var(--muted); font-size:13px; }
.armor-workshop :is(button,input,select,summary,a):focus-visible { outline:2px solid var(--tool-highlight); outline-offset:3px; }
@media(max-width:950px) { .armor-workbench { gap:15px; } .armor-control-panel { padding:18px; } .armor-stage-controls { gap:10px; } .armor-stepper-input { grid-template-columns:38px minmax(0,1fr) 38px; } .armor-stage { height:530px; } .armor-stage--forge { height:620px; } .armor-stat-changes>div { flex-wrap:wrap; gap:7px; } .armor-troop-grid { grid-template-columns:1fr; } }
@media(max-width:700px) {
 .planner[data-planner="armor"] { padding:15px 0 25px; }
 .armor-page-header { gap:10px; margin-bottom:13px; }
 .armor-page-header>div { gap:10px; }
 .planner .armor-page-header h1 { font-size:24px; }
 .armor-page-header>span { display:none; }
 .armor-page-header .p-back { font-size:12px; }
 .armor-tabs { margin-bottom:16px; }
 .planner .armor-tabs button { min-height:45px; padding:10px 5px; font-size:12px; }
 .armor-workbench { grid-template-columns:minmax(0,1fr); gap:20px; }
 .armor-scene-column { position:static; }
 .armor-scene-heading { min-height:60px; padding-bottom:12px; gap:12px; }
 .planner .armor-scene-heading h2 { font-size:19px; }
 .armor-scene-heading p { font-size:11px; }
 .armor-overview-button { max-width:110px; font-size:11px; }
 .armor-stage { height:410px; }
 .armor-stage--forge { height:490px; }
 .armor-stage-visual { padding:20px 18px 95px; }
 .armor-stage-object.game-icon { max-width:310px; max-height:300px; }
 .armor-scene-caption { left:18px; right:18px; bottom:17px; gap:7px; }
 .armor-scene-caption>strong { font-size:20px; }
 .armor-scene-caption>span { font-size:11px; }
 .armor-part-picker { gap:5px; margin-top:9px; }
 .armor-part-button { min-height:83px; padding:7px 2px; gap:3px; }
 .armor-part-button .game-icon { width:35px; height:35px; }
 .armor-part-button>span { font-size:9px; line-height:1.35; }
 .armor-part-button>small { font-size:9px; }
 .armor-control-panel { padding:19px 16px; }
 .armor-control-panel>header { margin-bottom:20px; }
 .planner .armor-control-panel h2 { font-size:24px; }
 .armor-stage-controls { gap:12px; }
 .armor-stepper-input { grid-template-columns:40px minmax(0,1fr) 40px; }
 .armor-stat-changes>div { flex-wrap:nowrap; gap:10px; }
 .armor-stat-changes dt { font-size:12px; }
 .armor-stat-changes dd { gap:7px; font-size:12px; }
 .armor-stat-changes dd strong { font-size:15px; }
 .armor-stat-changes dd small { font-size:10px; }
 .armor-material-preview { padding:15px; }
 .armor-costs li { font-size:12px; }
 .armor-forge-output { top:42%; }
 .armor-forge-output>.game-icon { width:70px; height:70px; }
 .armor-troop-grid { gap:14px; }
 .armor-item-heading .game-icon { width:66px; height:66px; }
 .armor-source-note { margin-top:20px; }
}
@media(max-width:350px) { .planner .armor-page-header h1 { font-size:21px; } .armor-stage { height:370px; } .armor-stage--forge { height:450px; } .armor-stage-controls { grid-template-columns:1fr; } .armor-part-picker { grid-template-columns:repeat(3,minmax(0,1fr)); } .armor-part-button { min-height:76px; } .armor-part-button>span { font-size:10px; } .armor-stat-changes>div { flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce) { .armor-workshop *, .armor-workshop { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
.armor-part-requirement { margin:0 0 14px; color:var(--muted); font-size:12px; line-height:1.6; }
.armor-path-option { display:flex; align-items:center; gap:9px; min-height:44px; color:var(--muted); font-size:12px; line-height:1.5; cursor:pointer; }
.armor-path-option input { width:17px; height:17px; accent-color:var(--tool-highlight); }
.armor-secondary-action { display:block; width:100%; min-height:44px; margin-top:7px; padding:10px; border:0; background:none; color:var(--text); font:400 12px/1.5 Inter,system-ui,sans-serif; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.armor-stage--full .armor-stage-object.game-icon { object-fit:contain; }
.armor-stage-door.game-icon { position:absolute; z-index:1; top:0; bottom:0; width:19%; height:100%; object-fit:cover; border:0; border-radius:0; background:none; opacity:.88; pointer-events:none; }
.armor-stage-door--left { left:0; object-position:right center; }
.armor-stage-door--right { right:0; object-position:left center; }
.armor-stage--forge .armor-stage-background { object-fit:contain; opacity:1; background:#10121b; }
/* Workbench controls override the older generic planner button treatment. */
.planner .armor-overview-button { min-height:44px; max-width:150px; padding:8px 0 8px 10px; border:0; border-radius:0; background:none; box-shadow:none; color:var(--text); font:400 12px/1.4 Inter,system-ui,sans-serif; text-decoration:underline; text-underline-offset:4px; }
.planner .armor-part-button { min-width:0; min-height:105px; padding:9px 3px; border:1px solid var(--tool-border); border-radius:4px; background:var(--tool-surface); box-shadow:none; color:var(--muted); font:400 11px/1.4 Inter,system-ui,sans-serif; }
.planner .armor-part-button[aria-pressed=true] { border-color:var(--tool-highlight); background:var(--tool-raised); color:var(--text); box-shadow:inset 0 -2px var(--tool-highlight); }
.planner .armor-part-button>span { overflow-wrap:normal; word-break:normal; }
.planner .armor-secondary-action { min-height:44px; margin:7px 0 0; padding:10px; border:0; border-radius:0; background:none; box-shadow:none; color:var(--text); font:400 12px/1.5 Inter,system-ui,sans-serif; text-decoration:underline; text-underline-offset:4px; }
.planner .armor-cinematic { justify-self:end; width:auto; min-height:44px; margin:0; padding:8px 11px; border:1px solid #ffffff48; border-radius:4px; background:#0c131bc9; box-shadow:none; color:#f5e5c5; font:400 11px/1.4 Inter,system-ui,sans-serif; }
.planner .armor-stepper-input { grid-template-columns:44px minmax(0,1fr) 44px; }
.planner .armor-stepper-input input { border-radius:0; background:none; box-shadow:none; }
.planner .armor-stepper-input button { min-height:46px; min-width:0; padding:8px 0; border:0; border-radius:0; background:none; box-shadow:none; font:400 21px/1 Inter,system-ui,sans-serif; }
.planner .armor-saved-plan li button { min-height:44px; padding:7px 0 7px 12px; border:0; border-radius:0; background:none; box-shadow:none; color:var(--muted); font:400 11px/1.4 Inter,system-ui,sans-serif; }
.armor-stage--full { grid-template-rows:minmax(0,1fr) auto; }
.armor-stage--full .armor-stage-visual { min-height:0; padding:0; }
.armor-stage--full .armor-stage-object.game-icon { object-fit:cover; object-position:50% 65%; }
.armor-stage--full .armor-scene-caption { position:relative; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px 12px; inset:auto; width:100%; padding:13px 18px 15px; background:#10161fe8; text-align:left; }
.armor-stage--full .armor-scene-caption>strong { grid-column:1; grid-row:1; font-size:18px; }
.armor-stage--full .armor-scene-caption>span { grid-column:1; grid-row:2; font-size:11px; }
.armor-stage--full .armor-scene-caption>.armor-stage-track,.armor-stage--full .armor-scene-caption>progress { grid-column:1/-1; grid-row:3; max-width:none; }
.armor-stage--full .armor-scene-caption>.armor-cinematic { grid-column:2; grid-row:1/3; }
@media(max-width:700px) { .planner .armor-part-button { min-height:83px; padding:7px 2px; font-size:10px; } .planner .armor-part-button>span { font-size:9px; } .planner .armor-overview-button { font-size:11px; } }
@media(max-width:350px) { .planner .armor-part-button { min-height:76px; } .planner .armor-part-button>span { font-size:10px; } }
.armor-stage--full .armor-stage-visual { position:relative; display:block; overflow:hidden; }
.armor-stage--full .armor-stage-object.game-icon,.armor-stage--full .armor-stage-visual video { position:absolute; inset:0; width:100%!important; height:100%!important; max-width:none; max-height:none; }
.planner .armor-overview-button:hover,.planner .armor-secondary-action:hover { background:none; box-shadow:none; transform:none; color:var(--text); }
.armor-enhancement-path { min-width:0; margin-top:13px; }
.armor-enhancement-path>span { display:block; margin-bottom:9px; color:var(--muted); font-size:11px; }
.armor-enhancement-path>ol { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(58px,1fr); gap:7px; min-width:0; margin:0; padding:0 0 7px; list-style:none; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
.armor-enhancement-path li { min-width:0; }
.planner .armor-enhancement-path button { display:grid; justify-items:center; align-items:center; gap:4px; width:100%; min-height:103px; padding:9px 3px; border:1px solid var(--tool-border); border-radius:4px; background:var(--tool-surface); box-shadow:none; color:var(--muted); font:400 10px/1.4 Inter,system-ui,sans-serif; }
.armor-enhancement-path .game-icon { width:42px; height:42px; object-fit:contain; }
.armor-enhancement-path button small { font-size:9px; }
.planner .armor-enhancement-path button[aria-pressed=true] { border-color:var(--tool-highlight); background:var(--tool-raised); color:var(--text); box-shadow:inset 0 -2px var(--tool-highlight); }
.planner .armor-enhancement-path button[aria-current=step]>span { color:#b2d6a7; }

/* Compact source-order enhancement controls. No changes to calculation styles. */
.armor-enhancement-selections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:20px 0 14px; }
.armor-enhancement-selection { min-width:0; }
.planner .armor-enhancement-selection > h3 { margin:0 0 10px; font-size:14px; font-weight:600; color:var(--text); }
.armor-enhancement-entry { display:flex; align-items:center; gap:9px; min-height:57px; margin-bottom:13px; }
.armor-enhancement-entry > img { width:43px; height:43px; object-fit:contain; }
.armor-enhancement-entry > div { display:grid; gap:5px; min-width:0; }
.armor-enhancement-entry strong { color:var(--text); font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.armor-enhancement-entry span { color:var(--muted); font-size:11px; }
.armor-enhancement-position { display:grid; gap:8px; margin-bottom:14px; }
.armor-enhancement-position > span:first-child { display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-size:12px; }
.armor-enhancement-position small { font-size:11px; }
.armor-enhancement-position-input { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; }
.planner .armor-enhancement-position-input button { min-width:0; width:44px; min-height:44px; padding:0; border:1px solid var(--tool-border); border-radius:3px; background:var(--tool-surface); color:var(--text); font-size:18px; font-weight:400; box-shadow:none; transform:none; }
.planner .armor-enhancement-position-input input { min-width:0; min-height:44px; width:100%; padding:7px 2px; border:1px solid var(--tool-border); border-radius:0; background:var(--tool-base); color:var(--text); text-align:center; font-size:15px; font-variant-numeric:tabular-nums; }
.armor-enhancement-selection .armor-stepper { margin:0; }
.armor-enhancement-selection .armor-stepper-input { grid-template-columns:44px minmax(0,1fr) 44px; }
.planner .armor-enhancement-selection .armor-stepper-input button { min-width:0; width:44px; }
.armor-enhancement-selection .armor-stepper > span:first-child { min-height:31px; font-size:11px; line-height:1.4; }
.armor-enhancement-action-limit { margin:8px 0 0!important; color:var(--muted); font-size:10px; line-height:1.5; }
.armor-enhancement-finder { margin:8px 0 20px; border-top:1px solid var(--tool-border); border-bottom:1px solid var(--tool-border); }
.armor-enhancement-finder > summary { min-height:46px; padding:14px 0; color:var(--text); font-size:12px; cursor:pointer; }
.armor-enhancement-find-controls { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:10px; padding:0 0 12px; }
.armor-enhancement-find-controls label { display:grid; gap:7px; min-width:0; color:var(--muted); font-size:11px; }
.planner .armor-enhancement-find-controls input,.planner .armor-enhancement-find-controls select { width:100%; min-width:0; min-height:44px; padding:9px; border:1px solid var(--tool-border); border-radius:3px; background:var(--tool-base); color:var(--text); font:400 12px Inter,system-ui,sans-serif; }
.armor-enhancement-find-status { color:var(--muted); font-size:10px; padding-bottom:3px; }
.armor-enhancement-results { list-style:none; margin:0!important; padding:0!important; }
.armor-enhancement-results > li { display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:8px; align-items:center; padding:10px 0; border-top:1px solid var(--tool-border); }
.armor-enhancement-results > li > img { width:30px; height:30px; object-fit:contain; }
.armor-enhancement-results > li > div:not(.armor-enhancement-result-actions) { display:grid; gap:5px; min-width:0; }
.armor-enhancement-results strong { color:var(--text); font-size:11px; font-weight:500; overflow-wrap:anywhere; }
.armor-enhancement-results span { color:var(--muted); font-size:10px; line-height:1.4; }
.armor-enhancement-result-actions { display:flex; gap:4px; }
.planner .armor-enhancement-result-actions button,.planner .armor-enhancement-find-pages button { min-width:0; min-height:44px; padding:7px; border:1px solid var(--tool-border); border-radius:3px; color:var(--text); background:var(--tool-surface); font-size:10px; font-weight:500; box-shadow:none; transform:none; }
.armor-enhancement-find-pages { display:flex; justify-content:space-between; gap:12px; padding:6px 0 12px; }
.planner .armor-enhancement-find-pages button { padding:9px 12px; }
.armor-enhancement-panel > .armor-material-preview { margin-top:16px; }
@media(max-width:360px) {
  .armor-enhancement-selections { grid-template-columns:minmax(0,1fr); gap:20px; }
  .armor-enhancement-entry { gap:5px; }
  .armor-enhancement-entry > img { width:33px; height:33px; }
  .armor-enhancement-find-controls { grid-template-columns:minmax(0,1fr); }
  .armor-enhancement-results > li { grid-template-columns:25px minmax(0,1fr) auto; gap:6px; }
  .armor-enhancement-results > li > img { width:25px; height:25px; }
  .planner .armor-enhancement-result-actions button { padding:6px; font-size:9px; }
}

/* Scoped to the T11 reference panel and its related navigation. */
.armor-workshop .armor-t11-panel { padding:22px; background:var(--tool-base); border:1px solid var(--tool-border); border-radius:8px; }
.armor-workshop .armor-t11-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:7px 20px; margin-bottom:20px; }
.armor-workshop .armor-t11-heading h2 { margin:0; color:var(--text); font-size:23px; line-height:1.3; }
.armor-workshop .armor-t11-heading p { margin:0; color:var(--muted); font-size:12px; }
.armor-workshop .armor-t11-common { display:grid; grid-template-columns:1fr 1.05fr; gap:24px; margin-bottom:17px; padding-bottom:20px; border-bottom:1px solid var(--tool-border); }
.armor-workshop .armor-t11-common h3,.armor-workshop .armor-t11-training h4 { margin:0 0 13px; color:var(--muted); font-size:12px; font-weight:500; }
.armor-workshop .armor-t11-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0; }
.armor-workshop .armor-t11-stats div { min-width:0; }
.armor-workshop .armor-t11-stats dt { color:var(--muted); font-size:11px; line-height:1.5; }
.armor-workshop .armor-t11-stats dd { margin:5px 0 0; color:var(--text); font-size:23px; font-weight:600; font-variant-numeric:tabular-nums; line-height:1.2; }
.armor-workshop .armor-t11-training .armor-costs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin:0; padding:0; }
.armor-workshop .armor-t11-training .armor-costs li { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-width:0; margin:0; padding:0; border:0; background:none; }
.armor-workshop .armor-t11-training .armor-cost-name { display:flex; align-items:center; gap:5px; min-width:0; color:var(--muted); font-size:11px; line-height:1.4; }
.armor-workshop .armor-t11-training .armor-cost-name img { flex:0 0 20px; width:20px; height:20px; object-fit:contain; }
.armor-workshop .armor-t11-training .armor-costs strong { color:var(--text); font-size:16px; font-weight:600; line-height:1.3; font-variant-numeric:tabular-nums; }
.armor-workshop .armor-t11-time { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:12px 0 0; color:var(--muted); font-size:11px; }
.armor-workshop .armor-t11-time strong { color:var(--text); font-size:12px; font-weight:500; font-variant-numeric:tabular-nums; }
.armor-workshop .armor-t11-requirement { margin-bottom:18px; color:var(--muted); font-size:12px; line-height:1.6; }
.armor-workshop .armor-t11-requirement p { margin:0; }
.armor-workshop .armor-t11-units { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.armor-workshop .armor-t11-unit { min-width:0; padding:15px; background:var(--tool-surface); border:1px solid var(--tool-border); border-radius:6px; }
.armor-workshop .armor-t11-unit-heading { display:flex; align-items:center; gap:10px; }
.armor-workshop .armor-t11-unit-heading > div { min-width:0; }
.armor-workshop .armor-t11-unit-art { flex:0 0 76px; width:76px; height:95px; object-fit:contain; }
.armor-workshop .armor-t11-unit h3 { margin:6px 0 0; color:var(--text); font-size:15px; font-weight:600; line-height:1.45; }
.armor-workshop .armor-t11-faction { display:flex; align-items:center; gap:5px; margin:0; color:var(--muted); font-size:11px; }
.armor-workshop .armor-t11-faction img { width:19px; height:19px; object-fit:contain; }
.armor-workshop .armor-t11-unit > .armor-t11-stats { margin-top:15px; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.armor-workshop .armor-t11-unit > .armor-t11-stats dd { margin-top:3px; font-size:18px; }
.armor-workshop .armor-t11-unit-requirements { margin-top:12px; padding-top:12px; border-top:1px solid var(--tool-border); }
.armor-workshop .armor-t11-buildings { list-style:none; margin:0; padding:0; }
.armor-workshop .armor-t11-buildings li { display:flex; align-items:center; gap:8px; min-height:40px; color:var(--text); font-size:12px; line-height:1.4; }
.armor-workshop .armor-t11-building-art { flex:0 0 37px; width:37px; height:37px; object-fit:contain; }
.armor-workshop .armor-t11-buildings li > span { flex:1; min-width:0; }
.armor-workshop .armor-t11-buildings strong { color:var(--tool-highlight); font-size:12px; font-weight:500; white-space:nowrap; }
.armor-workshop .armor-t11-unit-requirements > p { margin:9px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.armor-workshop .armor-t11-unit-training { margin-top:15px; padding-top:12px; border-top:1px solid var(--tool-border); }
.armor-workshop .armor-related-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:20px 0 0; }
.armor-workshop .armor-related-nav a { display:flex; align-items:center; justify-content:center; gap:11px; min-width:0; min-height:65px; padding:10px 13px; border:1px solid var(--tool-border); border-radius:5px; background:var(--tool-surface); color:var(--text); font-size:13px; font-weight:500; line-height:1.4; text-decoration:none; }
.armor-workshop .armor-related-nav a:hover { border-color:var(--tool-highlight); background:var(--tool-raised); }
.armor-workshop .armor-related-nav a:focus-visible { outline:2px solid var(--tool-highlight); outline-offset:3px; }
.armor-workshop .armor-related-nav img { flex:0 0 38px; width:38px; height:38px; object-fit:contain; }
@media(max-width:900px) {
 .armor-workshop .armor-t11-common { grid-template-columns:1fr; gap:20px; }
 .armor-workshop .armor-t11-units { grid-template-columns:1fr; gap:10px; }
 .armor-workshop .armor-t11-unit { padding:12px 14px; }
 .armor-workshop .armor-t11-unit-art { flex-basis:59px; width:59px; height:73px; }
 .armor-workshop .armor-t11-unit h3 { font-size:15px; }
 .armor-workshop .armor-t11-unit-requirements { margin-top:8px; padding-top:8px; }
}
@media(max-width:600px) {
 .armor-workshop .armor-t11-panel { padding:17px 13px; border-radius:6px; }
 .armor-workshop .armor-t11-heading { margin-bottom:18px; }
 .armor-workshop .armor-t11-heading h2 { font-size:21px; }
 .armor-workshop .armor-t11-common { padding-bottom:17px; }
 .armor-workshop .armor-t11-stats { gap:8px; }
 .armor-workshop .armor-t11-stats dd { font-size:21px; }
 .armor-workshop .armor-t11-training .armor-costs { gap:8px; }
 .armor-workshop .armor-t11-training .armor-cost-name { gap:3px; font-size:10px; }
 .armor-workshop .armor-t11-training .armor-cost-name img { flex-basis:17px; width:17px; height:17px; }
 .armor-workshop .armor-t11-training .armor-costs strong { font-size:15px; }
 .armor-workshop .armor-t11-units { gap:9px; }
 .armor-workshop .armor-related-nav { gap:8px; margin-top:16px; }
 .armor-workshop .armor-related-nav a { flex-direction:column; gap:6px; padding:9px 6px; min-height:87px; font-size:11px; text-align:center; }
 .armor-workshop .armor-related-nav img { flex:0 0 28px; width:28px; height:28px; }
}

/* Shorter game stages keep the controls close to the selected part. */
.armor-scene-heading { min-height:0; padding-bottom:12px; }
.armor-stage { height:410px; }
.armor-stage--forge { height:440px; }
.armor-control-panel { padding:20px; }
.armor-control-panel > header { margin-bottom:17px; }
.planner .armor-control-panel h2 { font-size:23px; }
.armor-stat-changes { margin:16px 0; }
.armor-stat-changes > div { padding:10px 0; }
.armor-material-preview { margin-top:16px; padding:14px; }
.armor-material-preview .armor-costs li { padding:8px 0; }
.armor-plan-status:empty { display:none; }
.armor-requirements,.armor-details { margin-top:14px; }
.armor-workbench--forge { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); }
.armor-forge-settings { display:grid; grid-template-columns:1fr 1fr; align-items:end; gap:16px; }
.planner .armor-forge-version h3 { margin:0 0 8px; color:var(--muted); font-size:12px; font-weight:400; }
.armor-forge-version > div { display:flex; border:1px solid var(--tool-border); border-radius:4px; overflow:hidden; background:var(--tool-surface); }
.planner .armor-forge-version button { flex:1; min-width:0; min-height:46px; padding:9px 8px; border:0; border-radius:0; box-shadow:none; background:none; color:var(--muted); font:500 12px/1.5 Inter,system-ui,sans-serif; }
.planner .armor-forge-version button + button { border-left:1px solid var(--tool-border); }
.planner .armor-forge-version button[aria-pressed=true] { color:var(--text); background:var(--tool-raised); box-shadow:inset 0 -2px var(--tool-highlight); }
.armor-forge-panel .armor-heat-control { margin:17px 0; }
.planner .armor-forge-panel .armor-heat-control h3 { color:var(--muted); font-size:12px; font-weight:400; }
.armor-forge-panel .armor-heat-levels { gap:7px; margin-top:8px; }
.planner .armor-forge-panel .armor-heat-levels button { min-height:44px; padding:9px 5px; color:var(--muted); font:500 12px/1.5 Inter,system-ui,sans-serif; box-shadow:none; }
.planner .armor-forge-panel .armor-heat-levels button[aria-pressed=true] { color:var(--text); box-shadow:inset 0 -2px var(--tool-highlight); }
.armor-forge-rewards { padding:15px 0; border-top:1px solid var(--tool-border); border-bottom:1px solid var(--tool-border); }
.armor-forge-rewards > header { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 14px; margin-bottom:12px; }
.planner .armor-forge-rewards h3 { font-size:14px; }
.armor-forge-rewards > header > span { color:var(--muted); font-size:11px; }
.armor-forge-panel .armor-reward-chances { display:grid; grid-template-columns:repeat(auto-fit,minmax(56px,1fr)); gap:7px; }
.armor-forge-panel .armor-reward-chances li { position:relative; display:grid; justify-items:center; gap:4px; min-width:0; padding:9px 4px 11px; overflow:hidden; border:1px solid var(--tool-border); border-radius:4px; background:var(--tool-surface); }
.armor-forge-panel .armor-reward-chances li > span { display:flex; align-items:center; gap:3px; color:var(--muted); font-size:12px; }
.armor-forge-panel .armor-reward-chances .game-icon { width:21px; height:21px; border:0; background:none; object-fit:contain; }
.armor-forge-panel .armor-reward-chances b { font-weight:500; }
.armor-forge-panel .armor-reward-chances strong { color:var(--text); font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; }
.armor-forge-panel .armor-reward-chances li::after { content:''; position:absolute; bottom:0; left:0; width:var(--chance); height:2px; background:var(--tool-highlight); }
.armor-forge-panel .armor-material-preview { margin-top:15px; }
.armor-forge-panel .armor-risk { margin:11px 0 0; }
@media(max-width:950px) {
 .armor-control-panel { padding:17px; }
 .armor-stage { height:370px; }
 .armor-stage--forge { height:400px; }
 .armor-forge-settings { gap:11px; }
}
@media(max-width:700px) {
 .armor-workbench,.armor-workbench--forge { grid-template-columns:minmax(0,1fr); gap:16px; }
 .armor-scene-heading { min-height:0; padding-bottom:10px; }
 .armor-stage { height:280px; }
 .armor-stage--forge { height:290px; }
 .armor-stage-visual { padding:12px 18px 85px; }
 .armor-stage-object.game-icon { max-width:250px; max-height:200px; }
 .armor-scene-caption { left:14px; right:14px; bottom:13px; }
 .armor-control-panel { padding:17px 14px; }
 .planner .armor-control-panel h2 { font-size:21px; }
 .armor-stage-controls { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .armor-stepper-input input { font-size:16px; }
 .armor-forge-settings { grid-template-columns:1fr; gap:13px; }
 .armor-forge-settings > .armor-stepper { grid-template-columns:1fr minmax(140px,1fr); align-items:center; }
 .armor-forge-panel .armor-heat-control { margin:15px 0; }
 .armor-forge-rewards { padding:13px 0; }
 .armor-forge-output { top:40%; gap:4px; }
 .armor-forge-output > .game-icon { width:56px; height:56px; }
 .armor-forge-output > span { font-size:10px; }
 .armor-stage--forge .armor-scene-caption { bottom:12px; }
}

.armor-stage--model { grid-template-rows:minmax(0,1fr) auto; place-items:stretch; }
.armor-model-display { position:relative; width:100%; height:100%; min-height:0; overflow:hidden; }
.armor-model-display .armor-stage-background.game-icon { z-index:0; opacity:1; object-fit:contain; }
.armor-model-display .armor-stage-object.game-icon { position:absolute; inset:0; width:100%; height:100%; max-width:none; max-height:none; object-fit:contain; filter:none; }
.armor-idle-loop { opacity:0; }
.armor-idle-loop.is-ready { opacity:1; }
.armor-model-display:has(.armor-idle-loop.is-ready) .armor-idle-still { opacity:0; }
.armor-stage--model .armor-scene-caption { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; inset:auto; gap:5px 12px; width:100%; padding:12px 15px; background:#10161ff2; text-align:left; }
.armor-stage--model .armor-scene-caption > strong { grid-column:1; grid-row:1; font-size:17px; }
.armor-stage--model .armor-scene-caption > span { grid-column:1; grid-row:2; font-size:11px; }
.armor-stage--model .armor-stage-track,.armor-stage--model .armor-scene-caption > progress { grid-column:1/-1; grid-row:3; max-width:none; width:100%; margin:2px 0 0; }
.armor-idle-control { display:flex; align-items:center; gap:7px; grid-column:2; grid-row:1/3; min-height:44px; color:var(--muted); font-size:11px; line-height:1.4; cursor:pointer; }
.armor-idle-control input { width:16px; height:16px; margin:0; accent-color:var(--tool-highlight); }
.armor-idle-control:has(input:disabled) { opacity:.65; cursor:default; }
@media(max-width:700px) { .armor-stage--model { height:330px; } .armor-stage--model .armor-scene-caption { padding:10px 12px; gap:5px 9px; } .armor-stage--model .armor-scene-caption > strong { font-size:16px; } .armor-idle-control { font-size:10px; } }
.armor-forge-panel .armor-reward-chances:has(> li:nth-child(6):last-child) { grid-template-columns:repeat(3,minmax(0,1fr)); }
.armor-forge-panel .armor-reward-chances:has(> li:nth-child(8):last-child) { grid-template-columns:repeat(4,minmax(0,1fr)); }
.armor-enhancement-position-input input { appearance:textfield; }
.armor-enhancement-position-input input::-webkit-inner-spin-button,.armor-enhancement-position-input input::-webkit-outer-spin-button { appearance:none; margin:0; }
.planner .armor-workshop .armor-stepper-input input[type=number][data-path],.planner .armor-workshop .armor-enhancement-position-input input[type=number][data-armor-enhance-position] { padding:8px 2px; font:600 15px/1.4 Inter,system-ui,sans-serif; text-align:center; }
@media(max-width:360px) {
 .armor-enhancement-selections { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .armor-enhancement-entry { min-height:72px; align-items:center; }
 .armor-enhancement-entry strong { font-size:11px; }
 .armor-enhancement-entry span { font-size:10px; }
 .armor-enhancement-position small { font-size:10px; }
}

/* Investment assessment: a single instrument panel above the workbench. */
.armor-investment {
 --armor-value-edge:color-mix(in srgb,var(--tool-highlight) 37%,var(--tool-border));
 position:relative; isolation:isolate; min-width:0; margin:0 0 20px; padding:20px 22px 0;
 border:1px solid var(--armor-value-edge); border-radius:5px;
 background:linear-gradient(125deg,color-mix(in srgb,var(--tool-raised) 74%,var(--tool-base)),var(--tool-base) 78%);
 box-shadow:inset 0 1px 0 #fff2,inset 0 -1px 0 #0007,0 5px 16px #0002;
}
.armor-investment::before { content:''; position:absolute; z-index:-1; inset:4px; pointer-events:none; border:1px solid color-mix(in srgb,var(--tool-highlight) 8%,transparent); border-radius:2px; }
.armor-investment::after { content:''; position:absolute; top:-1px; left:22px; width:76px; height:2px; background:var(--tool-highlight); box-shadow:0 0 12px color-mix(in srgb,var(--tool-highlight) 20%,transparent); pointer-events:none; }
.armor-investment-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; min-width:0; margin-bottom:19px; }
.armor-investment-heading > div:first-child { min-width:0; }
.planner .armor-investment-heading h2 { margin:0; color:var(--text); font:600 19px/1.3 Inter,system-ui,sans-serif; letter-spacing:-.02em; text-transform:none; }
.planner .armor-investment-scope { margin:5px 0 0; color:var(--muted); font:400 11px/1.5 Inter,system-ui,sans-serif; }
.armor-quote-tabs { display:inline-flex; flex:0 0 auto; align-items:stretch; min-width:0; border:1px solid var(--tool-border); border-radius:3px; overflow:hidden; background:var(--tool-base); box-shadow:inset 0 1px 3px #0003; }
.planner .armor-quote-tabs button { position:relative; min-width:0; min-height:42px; padding:9px 14px; border:0; border-radius:0; background:none; box-shadow:none; color:var(--muted); font:500 11px/1.35 Inter,system-ui,sans-serif; white-space:nowrap; transform:none; }
.planner .armor-quote-tabs button + button { border-left:1px solid var(--tool-border); }
.planner .armor-quote-tabs button[aria-pressed=true] { color:var(--text); background:linear-gradient(180deg,var(--tool-raised),color-mix(in srgb,var(--tool-raised) 75%,var(--tool-base))); box-shadow:inset 0 -2px 0 var(--tool-highlight); }
.planner .armor-quote-tabs button:hover { color:var(--text); background:var(--tool-raised); box-shadow:none; transform:none; }
.planner .armor-quote-tabs button[aria-pressed=true]:hover { box-shadow:inset 0 -2px 0 var(--tool-highlight); }
.armor-investment-grid { display:grid; grid-template-columns:1fr 1.12fr 1.18fr; min-width:0; gap:0; padding:0 0 19px; }
.armor-investment-metric { display:grid; grid-template-columns:45px minmax(0,1fr); align-items:center; gap:12px; min-width:0; padding:2px 20px; border-left:1px solid var(--tool-border); }
.armor-investment-metric:first-child { padding-left:0; border-left:0; }
.armor-investment-metric:last-child { padding-right:0; }
.armor-investment-metric > .game-icon { width:45px; height:50px; flex-shrink:0; padding:0; border:0; border-radius:0; background:none; object-fit:contain; filter:drop-shadow(0 3px 4px #0004); }
.armor-investment-metric > div { min-width:0; }
.armor-investment-metric > div > span { display:block; color:var(--muted); font-size:11px; line-height:1.4; }
.armor-investment-metric > div > strong { display:block; margin:5px 0 4px; color:var(--text); font:600 clamp(23px,2.15vw,29px)/1.15 Inter,system-ui,sans-serif; letter-spacing:-.035em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.armor-investment-metric > div > small { display:block; color:var(--muted); font-size:10px; line-height:1.45; }
.armor-investment-benefits dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; margin:6px 0 0; }
.armor-investment-benefits > dl { grid-column:1/-1; }
.armor-investment-benefits dl > div { min-width:0; }
.armor-investment-benefits dt { color:var(--muted); font-size:10px; line-height:1.4; }
.armor-investment-benefits dd { margin:4px 0 0; color:var(--text); font-size:17px; font-weight:600; line-height:1.25; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.armor-investment-footer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:3px 18px; min-width:0; margin:0 -22px; padding:12px 22px; border-top:1px solid var(--tool-border); border-radius:0 0 4px 4px; background:color-mix(in srgb,var(--tool-base) 88%,transparent); }
.planner .armor-investment-footer > p { grid-column:1; grid-row:1; margin:0; color:var(--tool-highlight); font:600 13px/1.4 Inter,system-ui,sans-serif; letter-spacing:-.01em; }
.armor-investment-footer > small,.armor-investment-footer p > small { display:block; color:var(--muted); font-size:10px; font-weight:400; line-height:1.45; }
.armor-investment-footer > small { grid-column:1; grid-row:2; }
.armor-investment-footer p > small { margin-top:3px; }
.planner .armor-value-details { grid-column:2; grid-row:1/3; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; min-width:0; padding:9px 12px; border:1px solid var(--tool-border); border-radius:3px; background:linear-gradient(180deg,var(--tool-surface),var(--tool-base)); box-shadow:inset 0 1px 0 #ffffff0a; color:var(--text); font:500 11px/1.4 Inter,system-ui,sans-serif; white-space:nowrap; transform:none; }
.armor-value-details svg { width:15px; height:15px; flex:0 0 15px; color:var(--tool-highlight); }
.planner .armor-value-details:hover { border-color:var(--armor-value-edge,var(--tool-highlight)); background:var(--tool-raised); box-shadow:inset 0 1px 0 #ffffff0a; transform:none; }
.armor-investment :is(button,a):focus-visible { outline:2px solid var(--tool-highlight); outline-offset:3px; }

/* The detailed quote reads like the rest of the workshop, with one scroll area. */
.armor-value-dialog { box-sizing:border-box; width:min(850px,calc(100vw - 32px)); max-width:850px; max-height:calc(100dvh - 32px); margin:auto; padding:0; overflow:hidden; border:1px solid color-mix(in srgb,var(--tool-highlight) 38%,var(--tool-border)); border-radius:6px; background:var(--tool-base); color:var(--text); box-shadow:0 24px 90px #0008,inset 0 1px 0 #ffffff0a; }
.armor-value-dialog[open] { display:flex; flex-direction:column; }
.armor-value-dialog::backdrop { background:#080d14bf; backdrop-filter:blur(4px); }
.armor-value-dialog-head { display:flex; flex-shrink:0; align-items:center; justify-content:space-between; gap:18px; padding:15px 21px; border-bottom:1px solid var(--tool-border); background:linear-gradient(110deg,var(--tool-raised),var(--tool-surface)); }
.armor-value-dialog-head > div { min-width:0; }
.planner .armor-value-dialog-head h2,.armor-value-dialog-head h2 { margin:0; color:var(--text); font:600 20px/1.3 Inter,system-ui,sans-serif; letter-spacing:-.025em; text-transform:none; }
.armor-value-dialog-head p { margin:5px 0 0; color:var(--muted); font-size:11px; line-height:1.45; }
.planner .armor-value-dialog-head button,.armor-value-dialog-head button { display:grid; place-items:center; flex:0 0 44px; width:44px; min-height:44px; height:44px; padding:0; border:1px solid var(--tool-border); border-radius:3px; background:var(--tool-base); box-shadow:none; color:var(--muted); font:400 23px/1 Inter,system-ui,sans-serif; transform:none; }
.planner .armor-value-dialog-head button:hover,.armor-value-dialog-head button:hover { background:var(--tool-raised); color:var(--text); box-shadow:none; transform:none; }
.armor-value-dialog-head button svg { width:18px; height:18px; }
.armor-value-dialog-body { display:grid; gap:21px; min-width:0; padding:21px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--tool-border) var(--tool-base); }
.armor-value-dialog-body > section { min-width:0; }
.armor-value-dialog-body > section + section { padding-top:20px; border-top:1px solid var(--tool-border); }
.planner .armor-value-dialog-body h3,.armor-value-dialog-body h3 { margin:0 0 11px; color:var(--text); font:600 15px/1.4 Inter,system-ui,sans-serif; letter-spacing:-.01em; text-transform:none; }
.armor-value-dialog-body p { margin:0 0 10px; color:var(--muted); font-size:12px; line-height:1.65; }
.armor-value-dialog-body p:last-child { margin-bottom:0; }
.armor-value-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; min-width:0; margin:0; }
.armor-value-facts > :is(article,div) { min-width:0; padding:0 17px; border-left:1px solid var(--tool-border); }
.armor-value-facts > :is(article,div):first-child { padding-left:0; border-left:0; }
.armor-value-facts > :is(article,div):last-child { padding-right:0; }
.armor-value-facts :is(span,small,dt) { display:block; color:var(--muted); font-size:11px; line-height:1.45; }
.armor-value-facts :is(strong,dd) { display:block; margin:5px 0 4px; color:var(--text); font-size:22px; font-weight:600; line-height:1.25; font-variant-numeric:tabular-nums; letter-spacing:-.025em; overflow-wrap:anywhere; }
.armor-value-facts .game-icon { width:34px; height:34px; margin-bottom:8px; border:0; border-radius:0; background:none; object-fit:contain; }
.armor-benefit-example { min-width:0; padding:15px 17px; border:1px solid var(--tool-border); border-left:2px solid var(--tool-highlight); border-radius:3px; background:var(--tool-surface); }
.armor-benefit-example form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 18px; align-items:end; min-width:0; margin:12px 0; }
.armor-benefit-example label { display:grid; gap:7px; min-width:0; color:var(--muted); font-size:11px; line-height:1.4; }
.planner .armor-value-dialog .armor-benefit-example :is(input,select),.armor-value-dialog .armor-benefit-example :is(input,select) { box-sizing:border-box; width:100%; min-width:0; min-height:44px; margin:0; padding:9px 11px; border:1px solid var(--tool-border); border-radius:3px; background:var(--tool-base); box-shadow:inset 0 1px 3px #0002; color:var(--text); font:500 14px/1.4 Inter,system-ui,sans-serif; font-variant-numeric:tabular-nums; }
.armor-benefit-example output { color:var(--text); font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; }
.armor-value-comparison { min-width:0; max-width:100%; overflow-x:auto; border:1px solid var(--tool-border); border-radius:3px; }
.armor-value-comparison table,table.armor-value-comparison { width:100%; min-width:0; margin:0; border-collapse:collapse; table-layout:fixed; background:var(--tool-base); color:var(--text); font-size:12px; line-height:1.45; }
.armor-value-comparison :is(th,td) { padding:11px 12px; border:0; border-bottom:1px solid var(--tool-border); text-align:right; overflow-wrap:anywhere; }
.armor-value-comparison th:first-child,.armor-value-comparison td:first-child { width:32%; text-align:left; }
.armor-value-comparison thead th { background:var(--tool-surface); color:var(--muted); font-size:10px; font-weight:500; }
.armor-value-comparison tbody th { color:var(--muted); font-size:11px; font-weight:500; }
.armor-value-comparison tbody tr:last-child > * { border-bottom:0; }
.armor-value-comparison :is(td strong,td b) { color:var(--tool-highlight); font-weight:600; }
.planner .armor-value-formulas,.armor-value-formulas { margin:0; padding:0; border-top:1px solid var(--tool-border); border-radius:0; background:none; }
.planner .armor-value-formulas > summary,.armor-value-formulas > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:46px; margin:0; padding:11px 0; color:var(--text); font:500 12px/1.5 Inter,system-ui,sans-serif; list-style:none; cursor:pointer; }
.armor-value-formulas > summary::-webkit-details-marker { display:none; }
.armor-value-formulas > summary::after { content:'+'; color:var(--muted); font-size:19px; line-height:1; }
.armor-value-formulas[open] > summary::after { content:'−'; }
.armor-value-formulas :is(p,li) { color:var(--muted); font-size:11px; line-height:1.7; }
.armor-value-formulas :is(ul,ol) { margin:0 0 12px; padding-left:18px; }
.armor-value-formulas :is(code,pre) { max-width:100%; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text); font:11px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace; }
.armor-value-dialog :is(button,input,select,summary,a):focus-visible { outline:2px solid var(--tool-highlight); outline-offset:3px; }
@media(max-width:950px) {
 .armor-investment { padding:17px 17px 0; }
 .armor-investment-heading { gap:12px; margin-bottom:16px; }
 .armor-investment-metric { grid-template-columns:35px minmax(0,1fr); gap:9px; padding:2px 13px; }
 .armor-investment-metric > .game-icon { width:35px; height:42px; }
 .armor-investment-metric > div > strong { font-size:25px; }
 .armor-investment-benefits dl { gap:7px 10px; }
 .armor-investment-benefits dd { font-size:15px; }
 .armor-investment-footer { margin:0 -17px; padding:11px 17px; }
}
@media(max-width:700px) {
 .armor-investment { margin-bottom:16px; padding:16px 14px 0; }
 .armor-investment::after { left:14px; width:56px; }
 .armor-investment-heading { align-items:stretch; flex-direction:column; gap:12px; margin-bottom:16px; }
 .planner .armor-investment-heading h2 { font-size:18px; }
 .planner .armor-investment-scope { font-size:10px; }
 .armor-quote-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
 .planner .armor-quote-tabs button { min-height:44px; padding:9px 7px; font-size:11px; white-space:normal; }
 .armor-investment-grid { grid-template-columns:repeat(2,minmax(0,1fr)); padding-bottom:13px; }
 .armor-investment-metric { grid-template-columns:31px minmax(0,1fr); gap:8px; padding:0 0 0 12px; }
 .armor-investment-metric > .game-icon { width:31px; height:36px; }
 .armor-investment-metric > div > span { font-size:10px; }
 .armor-investment-metric > div > strong { margin-top:5px; font-size:22px; }
 .armor-investment-metric > div > small { font-size:9px; line-height:1.5; }
 .armor-investment-benefits { grid-column:1/-1; grid-template-columns:31px minmax(0,1fr); margin-top:15px; padding:13px 0 0; border-left:0; border-top:1px solid var(--tool-border); }
 .armor-investment-benefits dl { display:flex; flex-wrap:wrap; align-items:baseline; gap:9px 20px; margin-top:7px; }
 .armor-investment-benefits dl > div { flex:1 1 80px; }
 .armor-investment-benefits dd { margin-top:3px; font-size:16px; }
 .armor-investment-footer { margin:0 -14px; padding:11px 14px; gap:4px 12px; }
 .planner .armor-investment-footer > p { font-size:12px; }
 .armor-investment-footer > small,.armor-investment-footer p > small { font-size:9px; }
 .planner .armor-value-details { gap:5px; min-height:44px; padding:8px 9px; font-size:11px; }
 .armor-value-details svg { width:14px; height:14px; flex-basis:14px; }
 .armor-value-dialog { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); border-radius:5px; }
 .armor-value-dialog-head { padding:11px 14px; gap:12px; }
 .planner .armor-value-dialog-head h2,.armor-value-dialog-head h2 { font-size:18px; }
 .armor-value-dialog-head p { font-size:10px; }
 .armor-value-dialog-body { gap:18px; padding:17px 14px; }
 .armor-value-dialog-body > section + section { padding-top:17px; }
 .planner .armor-value-dialog-body h3,.armor-value-dialog-body h3 { font-size:14px; }
 .armor-value-dialog-body p { font-size:11px; }
 .armor-value-facts > :is(article,div) { padding:0 10px; }
 .armor-value-facts :is(span,small,dt) { font-size:10px; }
 .armor-value-facts :is(strong,dd) { font-size:18px; }
 .armor-value-facts .game-icon { width:28px; height:28px; }
 .armor-benefit-example { padding:13px; }
 .armor-benefit-example form { gap:11px; }
 .armor-benefit-example label { font-size:10px; }
 .armor-value-comparison :is(th,td) { padding:9px 7px; font-size:11px; }
 .armor-value-comparison thead th { font-size:9px; }
 .armor-value-comparison tbody th { font-size:10px; }
}
@media(max-width:350px) {
 .armor-investment { padding:15px 12px 0; }
 .armor-investment-metric { grid-template-columns:minmax(0,1fr); gap:7px; align-content:start; padding-left:12px; }
 .armor-investment-metric:first-child { padding-left:0; }
 .armor-investment-metric > .game-icon { width:30px; height:30px; }
 .armor-investment-metric > div > strong { font-size:23px; }
 .armor-investment-benefits { grid-template-columns:30px minmax(0,1fr); align-items:center; padding-left:0; }
 .armor-investment-benefits dl { gap:8px 12px; }
 .armor-investment-footer { margin:0 -12px; padding:11px 12px; gap:3px 8px; }
 .planner .armor-value-details { font-size:10px; padding:8px 7px; }
 .armor-value-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 0; }
 .armor-value-facts > :is(article,div):nth-child(3) { grid-column:1/-1; padding:12px 0 0; border-left:0; border-top:1px solid var(--tool-border); }
 .armor-benefit-example form { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { .armor-value-dialog,.armor-investment { scroll-behavior:auto; } }

/* Quote controls stay grouped with the result they change. */
body:has(.armor-value-dialog[open]) { overflow:hidden; }
.armor-value-controls { display:grid; grid-template-columns:minmax(100px,.8fr) repeat(2,minmax(0,1fr)); align-items:end; gap:12px; min-width:0; margin:12px 0 18px; }
.armor-value-controls > label,.armor-value-dialog-body > section > label { display:grid; gap:7px; min-width:0; margin:0; color:var(--muted); font-size:11px; line-height:1.45; }
.armor-value-controls > label > span { min-height:16px; }
.armor-benefit-example .armor-value-controls { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:17px; }
.armor-value-dialog-body > section > label { grid-template-columns:minmax(0,1fr) minmax(100px,155px); align-items:center; gap:14px; max-width:390px; margin:11px 0 16px; }
.planner .armor-value-dialog .armor-value-controls :is(input,select),.armor-value-dialog .armor-value-controls :is(input,select),.planner .armor-value-dialog-body > section > label > input,.armor-value-dialog-body > section > label > input { box-sizing:border-box; width:100%; min-width:0; min-height:44px; margin:0; padding:9px 10px; border:1px solid var(--tool-border); border-radius:3px; background:var(--tool-base); box-shadow:inset 0 1px 3px #0002; color:var(--text); font:500 12px/1.4 Inter,system-ui,sans-serif; font-variant-numeric:tabular-nums; }
.armor-value-dialog-body [data-armor-value-materials] > .armor-value-facts { margin-top:2px; }
.armor-value-dialog-body .armor-value-method { margin:16px 0 10px; color:var(--muted); font-size:11px; line-height:1.65; }
.armor-value-dialog-body [data-armor-value-bonuses] > .armor-value-facts { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:14px; }
.armor-value-dialog-body [data-armor-value-bonuses] .armor-value-facts strong { font-size:21px; }
.armor-value-dialog-body [data-armor-value-bonuses] .armor-value-facts small { margin-top:6px; font-size:10px; }
.armor-value-dialog-body [data-armor-value-bonuses] > dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 22px; min-width:0; margin:0 0 17px; padding:0; }
.armor-value-dialog-body [data-armor-value-bonuses] > dl:not(:has(> div:nth-child(2))) { grid-template-columns:minmax(0,1fr); }
.armor-value-dialog-body [data-armor-value-bonuses] > dl > div { display:flex; align-items:center; justify-content:space-between; gap:14px; min-width:0; padding:11px 0; border-bottom:1px solid var(--tool-border); }
.armor-value-dialog-body [data-armor-value-bonuses] > dl dt { min-width:0; color:var(--muted); font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.armor-value-dialog-body [data-armor-value-bonuses] > dl dd { flex-shrink:0; margin:0; color:var(--text); font-size:17px; font-weight:600; line-height:1.3; font-variant-numeric:tabular-nums; }
.armor-value-dialog-body .armor-value-rating { margin-top:12px; padding-top:12px; border-top:1px solid var(--tool-border); font-size:11px; }
.armor-value-rating strong { color:var(--text); font-weight:600; font-variant-numeric:tabular-nums; }
.armor-value-dialog-body [data-armor-value-troops] > .armor-value-facts { grid-template-columns:minmax(0,1fr); margin:17px 0 13px; }
.armor-value-dialog-body [data-armor-value-troops] .armor-value-facts strong { font-size:21px; }
.armor-value-comparison caption { padding:0 0 10px; color:var(--muted); font-size:10px; line-height:1.5; text-align:left; }
.armor-value-priority { display:flex; align-items:flex-start; flex-wrap:wrap; gap:0 17px; }
.armor-value-priority > :is(h3,p) { flex:0 0 100%; }
.armor-value-priority > a { display:inline-flex; align-items:center; min-height:44px; color:var(--tool-highlight); font-size:11px; font-weight:500; text-underline-offset:4px; text-decoration-thickness:1px; }
.armor-value-priority > a:hover { color:var(--text); }
.armor-value-details > span[aria-hidden] { color:var(--tool-highlight); font-size:15px; line-height:1; }
@media(max-width:700px) {
 .armor-value-controls { grid-template-columns:minmax(0,1fr); align-items:center; gap:9px; margin:12px 0 17px; }
 .armor-value-controls > label { grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); align-items:center; gap:10px; font-size:10px; }
 .armor-value-controls > label > span { min-height:0; }
 .armor-benefit-example .armor-value-controls { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
 .armor-benefit-example .armor-value-controls > label { grid-template-columns:minmax(0,1fr); align-items:end; gap:7px; }
 .planner .armor-value-dialog .armor-value-controls :is(input,select),.armor-value-dialog .armor-value-controls :is(input,select),.planner .armor-value-dialog-body > section > label > input,.armor-value-dialog-body > section > label > input { padding:8px; font-size:12px; }
 .armor-value-dialog-body [data-armor-value-bonuses] .armor-value-facts strong { font-size:18px; }
 .armor-value-dialog-body [data-armor-value-bonuses] > dl { grid-template-columns:minmax(0,1fr); gap:0; margin-bottom:15px; }
 .armor-value-dialog-body [data-armor-value-bonuses] > dl > div { padding:10px 0; }
 .armor-value-dialog-body [data-armor-value-bonuses] > dl dt { font-size:11px; }
 .armor-value-dialog-body [data-armor-value-bonuses] > dl dd { font-size:16px; }
 .armor-value-dialog-body .armor-value-method { margin-top:13px; font-size:10px; }
 .armor-value-dialog-body > section > label { gap:11px; font-size:11px; }
 .armor-value-priority { gap:0 14px; }
 .armor-value-priority > a { font-size:10px; }
}
