:root{--bg:#111315;--panel:#303233;--panel2:#383b3c;--line:#61686c;--text:#fff;--muted:#c7cdd0;--gold:#91bdce;--gold2:#bbdce8;--blue:#437b91}
body{background:#111315;font-size:16px}.app{display:block}header{background:#303233}.header-in{max-width:1120px;min-height:76px}.brand h1{font-size:20px}.brand p{font-size:13px}.sigil{display:none}.btn{min-height:44px;font-size:14px}.btn[hidden],[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #eabf4a;outline-offset:3px}button{touch-action:manipulation}body[data-view=army] .layout,body[data-view=catalogue] .layout{display:none}.sidebar{display:none}.layout{max-width:1080px;display:block;padding:20px 16px 120px}.army{max-width:1080px;width:100%;padding:0;margin:0 auto 120px;border:0;border-radius:0;background:transparent;overflow:visible}.army-top{padding:24px 20px 12px}.army-top h2{font-size:24px}.army-tools{padding:8px 20px}.army-help{padding:0 20px;font-size:13px}.army progress{width:calc(100% - 40px);margin:8px 20px}.army>details>summary{padding:14px 20px;font-size:14px}.army input,.army select{background:#fff;color:#202529;border-color:#d3d7d9}.army input{min-width:180px}#armyStatus{padding:4px 20px;font-size:14px}#armyTotal{font-size:15px}.section-heading{display:flex;align-items:center;gap:14px;background:#303233;padding:18px 20px}.section-heading h3{margin:0;flex:1;text-transform:uppercase;font-size:18px;letter-spacing:.025em}.section-heading>span{font-size:14px;white-space:nowrap}.section-add,.catalogue-add>button{width:48px;height:48px;background:transparent;color:inherit;border:2px solid currentColor;border-radius:6px;font-size:32px;line-height:1;cursor:pointer}.section-empty{margin:0;background:#f8f9fa;color:#68737b;padding:28px 20px;font-size:14px}.roster-row{background:white;color:#161a1d;display:flex;align-items:center;border-bottom:1px solid #d9dfe2;padding:0 12px 0 0;gap:4px}.roster-open{border:0;background:none;color:inherit;flex:1;min-width:0;display:flex;text-align:left;align-items:flex-start;gap:16px;padding:24px 20px;cursor:pointer}.roster-open:hover,.catalogue-open:hover{background:#f1f6f8}.unit-mark{display:grid;place-items:center;flex:0 0 48px;height:64px;border:1px solid #a3bac4;background:#eef3f5;color:#477b90;font-weight:900;font-family:Georgia,serif;font-size:22px;border-radius:5px}.roster-description{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.roster-description b,.catalogue-open b{font-family:Georgia,serif;font-size:18px;line-height:1.4}.roster-description>span{font-size:14px;color:#43515b;line-height:1.5}.roster-description small{font-size:14px;line-height:1.4;color:#53616a}.point-pill{display:block;flex-shrink:0;padding:8px 12px;border-radius:6px;background:#437b91;color:white;font-weight:700;font-size:14px;white-space:nowrap}.remove-unit{border:0;background:transparent;color:#66737a;font-size:25px;width:40px;height:48px;cursor:pointer}.remove-unit:hover{color:#9a2d31;background:#fbeff0}#catalogue{max-width:1080px;margin:auto;padding:0 16px 120px}.catalogue-head{position:sticky;top:76px;z-index:5;background:#111315;padding:20px 0 10px}.catalogue-head h2{font-size:28px;margin:6px 0 18px}#catalogueSearch{width:100%;background:#f4f5f6;color:#23292d;padding:16px;border-radius:12px;border:1px solid #b9c4cb;font-size:16px}#catalogueCount{font-size:14px;color:#c7cdd0;min-height:20px}.catalogue-row{display:flex;align-items:center;gap:8px;background:#fff;color:#171b1d;border-radius:10px;margin:0 0 16px;overflow:hidden;padding:8px 16px 8px 0}.catalogue-open{display:flex;align-items:center;gap:18px;text-align:left;background:transparent;border:0;color:inherit;flex:1;min-width:0;padding:20px;cursor:pointer}.catalogue-open small{display:block;font-size:14px;color:#5d6d76;margin-top:8px}.catalogue-add{text-align:center;flex:0 0 102px}.catalogue-add>button{color:#222}.catalogue-add>button:disabled{color:#abb4b9;cursor:not-allowed}.catalogue-add>span{display:block;font-size:12px;margin-top:8px;color:#527381}.no-results{padding:30px 10px;color:#ccd6da}#budgetDock{position:fixed;bottom:16px;left:max(16px,calc((100vw - 1080px)/2));z-index:25;display:flex;background:#437b91;box-shadow:0 3px 15px #0005;border-radius:8px;overflow:hidden;color:white;pointer-events:none}#budgetDock>b{display:grid;place-items:center;width:46px;background:#315e70;font-size:22px}#budgetDock.incomplete>b{background:#edbf33;color:#292419}#budgetDock>span{padding:10px 16px;font-size:16px;font-weight:800}#budgetDock small{display:block;font-weight:400;font-size:12px;margin-top:3px}.hero{background:#303233;border-radius:0;border:0;box-shadow:none}.hero-band{height:5px;background:#437b91}.hero-head{padding:24px}.hero-head h2{font-size:30px}.eyebrow{font-size:12px}.stats{grid-template-columns:repeat(7,1fr)}.stat{background:white;color:#161d21;border:2px solid #6f9bac;border-radius:0}.stat .k{color:#4a626e;font-size:12px}.stat .v{font-size:23px}.page{font-size:13px}.weapon-fold{background:white;color:#172127;margin:0 0 2px}.weapon-fold>summary{background:#437b91;color:white;padding:20px;font-family:Georgia,serif;font-size:18px;font-weight:700;cursor:pointer}.weapon-fold .scroll{padding:10px 0}.weapon-fold th{background:#eaf0f3;color:#48616e;font-size:12px}.weapon-fold td{font-size:14px;border-color:#d9e1e5}.weapon-fold .trait{color:#426579;border-color:#afc4ce;font-size:12px}.points-card{background:white;color:#172127;border:0;border-radius:0;margin:0;padding:22px}.points-card h3{font-size:18px}.points-card .badge{font-size:12px;color:#4c6674;border-color:#c1cfd5}.points-card .point-note,.gear-grid small{color:#596c75;font-size:14px}.points-card select,.points-card input{background:#f5f8f9;color:#182a34;border-color:#acbdc6;min-height:44px;font-size:16px}.points-card .btn{background:#437b91;color:white;border-color:#437b91}.gear-grid label{font-size:14px}.equipment-fold{margin-top:18px}.main .grid{gap:0;margin-top:0}.footer-note{font-size:13px;line-height:1.6}#sourcePage{display:inline-block;color:white;text-decoration:none}header .head-actions .btn.secondary{display:none}header .head-actions{flex-wrap:nowrap}#forgeBack{background:#437b91}body[data-view=detail] .brand p{display:none}
@media(max-width:600px){.header-in{padding:12px;gap:8px;min-height:70px;align-items:center}.brand h1{font-size:16px}.brand p{display:none}.head-actions{gap:5px}.head-actions .btn{padding:8px;font-size:13px}#jsonBtn{display:none}.catalogue-head{top:70px}.army-top{padding:20px 16px 8px;align-items:flex-start;flex-direction:column;gap:8px}.army-tools{padding:8px 16px}.army-tools>*{flex:1 1 40%;min-width:0}.army-help{padding:0 16px}.section-heading{padding:16px;gap:10px}.section-heading h3{font-size:16px}.section-heading>span{font-size:12px}.roster-open{padding:20px 10px 20px 16px;gap:12px;flex-wrap:wrap}.roster-open .unit-mark{display:none}.roster-description{flex-basis:65%}.roster-description b{font-size:17px}.point-pill{font-size:13px;padding:7px 9px}.remove-unit{width:30px}.catalogue-open{padding:18px 12px;gap:12px}.catalogue-open .unit-mark{flex-basis:32px;height:52px;font-size:18px}.catalogue-open b{font-size:16px}.catalogue-open small{font-size:12px}.catalogue-add{flex-basis:80px}.catalogue-row{padding-right:10px}.catalogue-add>span{font-size:12px}.catalogue-add>button{width:44px;height:44px}.hero-head{padding:20px 16px;display:block}.hero-head h2{font-size:26px}.hero-head .page{display:inline-block;margin-top:14px}.stats{padding:4px 16px 20px;grid-template-columns:repeat(4,1fr);gap:8px}.stat .v{font-size:20px}.layout{padding:12px 0 120px}.points-card{padding:18px 16px}.point-controls label{align-items:flex-start;flex-direction:column;font-size:14px}.weapon-fold>summary{padding:20px 16px;font-size:16px}.footer-note{padding:16px}#sourcePage{margin-left:16px}#budgetDock{bottom:12px}.army{margin-bottom:110px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.quick-save{display:flex;gap:8px;padding:8px 20px}.quick-save input{flex:1;min-width:0}.quick-save button{background:#437b91;border-color:#437b91}.save-options{margin:4px 20px 8px;font-size:14px}.save-options>summary{color:#c7dce6;cursor:pointer;padding:10px 0}.save-options .army-tools{padding:8px 0}.save-options .army-help{padding:0}.save-options select{width:100%;flex-basis:100%}.save-options .army-tools>*{flex:1}.army>.save-options>summary{padding:8px 0}.main .empty{color:#596c75}@media(max-width:600px){.quick-save{padding:8px 16px}.save-options{margin-left:16px;margin-right:16px}.save-options .army-tools{flex-wrap:wrap}.save-options .army-tools>*{flex:1 1 40%}}
/* Compact roster and datasheets: shared spacing at every viewport. */
.header-in{min-height:56px;padding:6px 12px}.brand h1{font-size:16px}.brand p{display:none}.head-actions .btn{padding:6px 10px;font-size:13px}.army-top{padding:12px 14px 4px;flex-direction:row;align-items:center;gap:8px}.army-top h2{font-size:18px}.army-top>strong{font-size:12px;max-width:55%;text-align:right}.army progress{height:5px;margin:6px 14px;width:calc(100% - 28px)}.quick-save{padding:4px 14px;gap:6px}.quick-save input{padding:6px 9px;font-size:16px;min-height:38px}.quick-save button{min-height:38px;padding:6px 10px}.save-options{margin:0 14px 2px}.army>.save-options>summary{padding:4px 0;font-size:12px}.army>details>summary{padding:6px 14px;font-size:12px}#armyStatus{padding:2px 14px;font-size:12px}#armyStatus:empty{display:none}.section-heading{padding:7px 14px;gap:8px;min-height:54px}.section-heading h3{font-size:14px}.section-heading>span{font-size:12px}.section-add{width:40px;height:40px;font-size:26px;border-radius:3px}.section-empty{padding:13px 14px;font-size:13px}.roster-open{padding:12px 10px 12px 14px;gap:10px;flex-wrap:nowrap}.roster-description{flex:1;gap:3px}.roster-description b{font-size:15px;line-height:1.25}.roster-description small{font-size:12px;line-height:1.3}.roster-description>span{font-size:13px;line-height:1.35}.point-pill{font-size:12px;padding:6px 8px;border-radius:4px}.roster-row{padding-right:4px}.remove-unit{width:28px;flex:0 0 28px;font-size:20px}.catalogue-head{top:56px;padding:12px 0 4px}.catalogue-head .eyebrow{margin:0 0 4px}.catalogue-head h2{font-size:20px;margin:0 0 10px}#catalogueSearch{padding:10px 12px;border-radius:7px}#catalogueCount{margin:7px 0;font-size:12px;min-height:16px}#catalogue{padding:0 10px 88px}.catalogue-row{margin-bottom:7px;border-radius:6px;padding:3px 8px 3px 0;gap:4px}.catalogue-open{padding:12px;gap:0}.catalogue-open b{font-size:15px;line-height:1.25}.catalogue-open small{font-size:12px;margin-top:4px;line-height:1.3}.catalogue-open .inline-stats{color:#476c80}.catalogue-add{flex:0 0 76px}.catalogue-add>button{width:38px;height:38px;font-size:27px;border-radius:3px}.catalogue-add>span{font-size:12px;margin-top:4px}#budgetDock{bottom:8px;border-radius:5px}#budgetDock>b{width:32px;font-size:16px}#budgetDock>span{padding:6px 10px;font-size:13px}#budgetDock small{font-size:12px;margin-top:1px}.layout{padding:10px 0 92px}.hero-head{padding:14px;display:flex;align-items:center;gap:10px}.hero-head h2{font-size:22px;line-height:1.12}.hero-head .page{margin:0;font-size:12px;padding:5px 7px}.hero-head .eyebrow{font-size:12px}.stats{padding:0 14px 12px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.stat{padding:7px 2px;border-width:1px}.stat .v{font-size:18px}.stat .k{font-size:12px;margin-top:2px}.stat.na{opacity:.6}#invulnerable{display:flex;justify-content:space-between;align-items:center;background:#437b91;padding:10px 14px;border-bottom:1px solid #ffffff80;font-family:Georgia,serif;font-weight:700;font-size:14px}#invulnerable strong{background:white;color:#437b91;padding:5px 8px;border-radius:3px;font-family:inherit}.weapon-fold>summary{padding:13px 14px;font-size:14px;min-height:44px;text-transform:uppercase}.equipment-fold{margin-top:2px}.points-card{padding:14px}.points-card h3{font-size:16px;margin-bottom:8px}.points-card .point-note{font-size:12px;margin:8px 0}.gear-grid{gap:8px;margin:10px 0}.gear-grid label{font-size:14px}.point-controls{gap:8px}.point-controls label{font-size:14px}.weapon-fold table{min-width:0;table-layout:fixed}.weapon-fold th:first-child{width:40%}.weapon-fold th.n,.weapon-fold td.n{width:10%}.weapon-fold th,.weapon-fold td{padding:8px 3px}.weapon-fold td{font-size:12px}.weapon-fold th{font-size:12px;letter-spacing:0}.weapon-fold .weapon{font-size:13px;overflow-wrap:anywhere}.weapon-fold .trait{font-size:12px;padding:3px 5px}.weapon-fold .traits{gap:3px}.rule-content{padding:12px 14px;font-size:14px;line-height:1.5}.rule-content p{margin:4px 0 10px}.rule-item{padding:8px 0;border-bottom:1px solid #dde3e7}.rule-item:first-child{padding-top:0}.rule-item:last-of-type{border-bottom:0}.rule-content h4{font-size:14px;margin:0 0 4px;color:#315c70}.keyword-list{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0 12px}.keyword-list>span{padding:3px 7px;border:1px solid #b8cbd4;background:#edf3f5;border-radius:3px;font-size:12px;font-weight:600}.core-rules{margin-bottom:8px}.core-rules>b{font-size:12px;text-transform:uppercase;color:#567181}.rule-content .rule-source{font-size:12px;color:#657983;margin-top:10px}.footer-note{padding:12px 14px;font-size:12px;line-height:1.4}#sourcePage{margin-left:14px;font-size:12px;min-height:36px}.main .grid{margin:0}
@media(max-width:380px){.brand h1{font-size:14px}.hero-head h2{font-size:20px}.hero-head .page{font-size:12px}.stats{gap:4px;padding-left:10px;padding-right:10px}.stat .v{font-size:16px}.army-top{flex-wrap:wrap}.army-top>strong{max-width:100%;text-align:left}}
@media(min-width:800px){.roster-description>span{font-size:14px}.roster-description b,.catalogue-open b{font-size:16px}.roster-open{padding-top:13px;padding-bottom:13px}.hero-head h2{font-size:26px}.stats{max-width:650px}.weapon-fold td{font-size:14px}}
.unit-portrait{display:block;flex:0 0 48px;width:48px;height:60px;object-fit:cover;object-position:center;border:1px solid #c4cbd0;border-radius:4px;background:#272729}.catalogue-open{gap:10px}.roster-open{align-items:center}.roster-description{min-width:0}#detailPortrait{display:block;flex:0 0 86px;width:86px;height:100px;object-fit:cover;border-radius:4px;border:1px solid #6c7780}.hero-head>div:first-of-type{flex:1;min-width:0}.hero-head .page{flex-shrink:0}@media(max-width:600px){.unit-portrait{flex-basis:42px;width:42px;height:56px}.catalogue-open{gap:8px}.roster-open{gap:8px}.hero-head{flex-wrap:wrap;gap:10px}#detailPortrait{flex-basis:66px;width:66px;height:78px}.hero-head>div:first-of-type{flex-basis:calc(100% - 90px)}.hero-head .page{margin-left:76px;margin-top:-4px}.roster-description b,.catalogue-open b{overflow-wrap:anywhere}}@media(max-width:360px){.unit-portrait{flex-basis:36px;width:36px;height:48px}.roster-open{padding-left:10px;gap:6px}.point-pill{padding:5px}.catalogue-open{padding-left:9px}}
.price-origin{display:block;font-size:10px;font-weight:400;margin-top:2px;text-align:center}input[readonly]{opacity:.8;cursor:default}#priceMode{max-width:210px}
