.army-builder-route{
  --ab-bg:var(--surface);--ab-shell:var(--surface);--ab-panel:var(--surface);--ab-panel-2:#2d2c2a;
  --ab-card:#30302e;--ab-line:var(--line);--ab-soft:#b9b4ac;--ab-text:var(--surface);
  --ab-accent:#d99a51;--ab-accent-2:var(--accent);--ab-danger:#e67865;
  color:var(--ab-text);background:var(--surface)
}
.army-builder-route .site-header{border-color:#383633;background:rgba(22,22,22,.96);box-shadow:0 1px 0 #0008}
.army-builder-route .brand,.army-builder-route .header-nav a{color:#ece8df}
.army-builder-route .header-nav a.active{border-color:#77522c;color:var(--accent);background:#2b241c}
.army-builder-route .brand-shield{border-color:#8e6234;background:#9f6331}
.army-builder-route .header-search{border-color:var(--line);background:var(--surface)}
.army-builder-route .header-search select,.army-builder-route .header-search input{color:var(--surface);background:var(--surface)}
.army-builder-route .header-search button{background:#a86632}
.army-builder-route .theme-toggle,.army-builder-route .mobile-search-button{border-color:var(--line);color:#eee8dc;background:var(--surface)}
.army-builder-route #app{width:min(1200px,calc(100% - 32px));max-width:none;margin:0 auto;padding:34px 0 72px}
.army-builder-route .site-footer{border-color:#34312e;color:#8f8a82;background:var(--surface)}

.ab-page{max-width:1200px;margin:0 auto;color:var(--ab-text);font-size:14px}
.ab-page *{box-sizing:border-box}
.ab-page button,.ab-page input,.ab-page select,.ab-page textarea{font:inherit}
.ab-page button{transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease}

.ab-banner{position:relative;min-height:290px;overflow:hidden;border:1px solid #4c4135;border-radius:18px;background:radial-gradient(circle at 72% 42%,#5d342e 0,transparent 24%),radial-gradient(circle at 90% 10%,#23615e 0,transparent 29%),linear-gradient(125deg,#2c2119 0%,#222a29 53%,#172426 100%);box-shadow:0 28px 70px #0006}
.ab-banner:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#1d1915 0%,#1d1915e8 31%,transparent 67%),repeating-linear-gradient(120deg,transparent 0 55px,#fff02 56px 57px);pointer-events:none}
.ab-banner-copy{position:relative;z-index:3;width:55%;padding:42px 48px}
.ab-banner-copy>span{display:block;margin-bottom:12px;color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.22em}
.ab-banner-copy h1{margin:0;color:#fffaf0;font-size:clamp(38px,5vw,64px);line-height:.92;letter-spacing:-.055em;text-shadow:0 4px 20px #0008}
.ab-banner-copy p{max-width:470px;margin:20px 0 0;color:#c7c1b7;font-size:15px;line-height:1.6}
.ab-banner-art{position:absolute;z-index:2;right:30px;bottom:-40px;display:flex;align-items:flex-end;filter:drop-shadow(0 20px 22px #000b)}
.ab-banner-art .ab-unit-image{width:138px;height:230px;margin-left:-26px;overflow:visible}
.ab-banner-art .ab-unit-image:nth-child(1),.ab-banner-art .ab-unit-image:nth-child(4){width:112px;height:195px;opacity:.7;filter:saturate(.8)}
.ab-banner-art .ab-unit-image img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.ab-banner-art .ab-unit-image i,.ab-banner-art .ab-level-badge{display:none}
.ab-banner-glow{position:absolute;right:8%;bottom:-80px;width:480px;height:180px;border-radius:50%;background:#e48b3540;filter:blur(45px)}

.ab-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0 14px;padding:0 2px}
.ab-top>div:first-child>span{color:var(--ab-accent);font-size:10px;font-weight:900;letter-spacing:.17em}
.ab-top h1,.ab-top h2{margin:3px 0 0;font-size:24px;line-height:1.1;letter-spacing:-.025em}
.ab-top-actions{display:flex;align-items:center;gap:8px}
.ab-top button,.ab-actions button,.ab-saved header button,.ab-library-link{display:inline-flex;min-height:39px;align-items:center;justify-content:center;border:1px solid var(--ab-line);border-radius:7px;padding:0 14px;color:var(--ab-text);background:var(--surface);cursor:pointer;font-size:11px;font-weight:800;text-decoration:none}
.ab-top button:hover,.ab-actions button:hover,.ab-saved header button:hover,.ab-library-link:hover{border-color:#98663a;color:#ffc47e;background:#312820}

.ab-notice,.ab-warning{margin:12px 0;padding:12px 14px;border:1px solid #70502f;border-left:4px solid var(--ab-accent);border-radius:7px;color:#f1dfc9;background:#2d241b;font-size:12px}
.ab-warning{border-color:#704039;border-left-color:var(--ab-danger);color:#ffd0c7;background:#2e1e1b}
.ab-share-result{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:-8px 0 18px;padding:10px 0;border-bottom:1px solid var(--line);font-size:11px}
.ab-share-result strong{color:var(--ab-soft);font-size:10px}
.ab-share-result a{min-width:0;overflow-wrap:anywhere;color:var(--ab-accent);text-decoration:underline;text-underline-offset:2px}
.ab-share-result button{min-height:30px;border:1px solid var(--ab-line);border-radius:5px;padding:0 9px;color:var(--ab-text);background:var(--surface);cursor:pointer;font-size:10px}

.ab-profile-bar{margin:0 0 14px;border:1px solid var(--ab-line);border-radius:12px;background:linear-gradient(105deg,#272521,#222625);box-shadow:0 10px 26px #0003}
.ab-profile-bar form{display:grid;grid-template-columns:minmax(350px,.95fr) minmax(330px,1.05fr);align-items:stretch}
.ab-profile-bar form>label{display:grid;gap:8px;padding:18px 20px;border-right:1px solid var(--ab-line)}
.ab-profile-bar form>label>span{color:#d8a360;font-size:9px;font-weight:900;letter-spacing:.16em}
.ab-profile-bar form>label>div{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;overflow:hidden;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
.ab-profile-bar form>label i{display:grid;height:42px;place-items:center;color:#9b958b;font-style:normal;font-weight:900}
.ab-profile-bar input{width:100%;height:42px;border:0;outline:0;padding:0 6px;color:#fff;background:transparent;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.ab-profile-bar button{height:42px;border:0;padding:0 18px;color:#24170e;background:linear-gradient(180deg,#efb269,#ca8241);cursor:pointer;font-size:11px;font-weight:900}
.ab-profile-bar button:disabled{opacity:.6;cursor:wait}
.ab-profile-hint,.ab-profile-loaded{display:flex;align-items:center;gap:13px;padding:16px 20px}
.ab-profile-hint{display:grid;align-content:center}
.ab-profile-hint strong,.ab-profile-loaded strong{font-size:13px}
.ab-profile-hint small,.ab-profile-loaded small{display:block;margin-top:4px;color:var(--ab-soft);font-size:10px}
.ab-profile-th{display:grid;width:48px;height:48px;flex:none;place-items:center;border:1px solid #a16b3b;border-radius:12px;color:#ffd39c;background:linear-gradient(145deg,#7d4c29,#39271c);font-size:13px;font-weight:900;box-shadow:inset 0 0 16px #ef9d3b2e}
.ab-profile-loaded>div{min-width:0;flex:1}
.ab-profile-loaded>b{border:1px solid #4e704f;border-radius:999px;padding:6px 9px;color:#a9d5a8;background:#223324;font-size:9px;white-space:nowrap}
.ab-profile-bar>p{margin:0;padding:0 20px 12px;font-size:10px}.ab-profile-bar>p.success{color:#9bc79d}.ab-profile-bar>p.error{color:#ff9f91}

.ab-basics{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;margin-bottom:14px;padding:20px;border:1px dashed var(--line);border-radius:12px;background:var(--surface)}
.ab-basics>label,.ab-editor>label,.ab-hero-fields>label{display:grid;gap:7px;color:var(--ab-soft);font-size:11px;font-weight:700}
.ab-basics input,.ab-basics select,.ab-editor input,.ab-editor textarea{width:100%;min-height:42px;border:1px solid var(--ab-line);border-radius:7px;outline:0;padding:9px 11px;color:var(--ab-text);background:var(--surface)}
.ab-basics input:focus,.ab-editor input:focus,.ab-editor textarea:focus{border-color:#a56e3d;box-shadow:0 0 0 3px #d99a511a}
.ab-name-field{align-self:end}
.ab-th-field{min-width:0}.ab-th-field>span{display:block;margin-bottom:7px;color:var(--ab-soft);font-size:11px;font-weight:700}
.ab-th-list{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px}
.ab-th-list button{display:grid;min-width:0;height:48px;grid-template-columns:auto auto;align-items:center;justify-content:center;gap:3px;border:1px solid var(--ab-line);border-radius:7px;color:#b8b3aa;background:var(--surface);cursor:pointer}
.ab-th-list button span{font-size:7px;font-weight:900;letter-spacing:.05em}.ab-th-list button b{font-size:13px}
.ab-th-list button:hover{border-color:#916137;color:#f3bb77}.ab-th-list button.active{border-color:#bd7b42;color:#28170d;background:linear-gradient(180deg,#efa95d,#bf7337);box-shadow:0 6px 18px #d78a3a2d}
.ab-tag-field{grid-column:1/-1}.ab-tag-field>span{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:var(--ab-soft);font-size:11px;font-weight:700}.ab-tag-field>span small{font-size:9px;font-weight:500}
.ab-tag-field>div{display:flex;flex-wrap:wrap;gap:7px}.ab-tag-field button{min-height:31px;border:1px solid var(--ab-line);border-radius:999px;padding:0 12px;color:#c5c0b7;background:var(--surface);cursor:pointer;font-size:10px}.ab-tag-field button:hover,.ab-tag-field button.active{border-color:#a96f3d;color:#ffd09a;background:#3a2a1e}

.ab-section{margin:0 0 14px;padding:20px;border:1px dashed #514e49;border-radius:12px;background:var(--surface)}
.ab-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:38px;margin-bottom:16px}
.ab-section-head>div:first-child{display:flex;align-items:center;gap:10px}.ab-section-head>div:first-child>span{display:grid;width:28px;height:28px;place-items:center;border-radius:6px;color:#efb36e;background:#4a2e1c;font-size:9px;font-weight:900}
.ab-section-head h2{margin:0;font-size:18px;letter-spacing:-.02em}
.ab-capacities{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.ab-capacities b{display:flex;align-items:center;gap:3px;min-height:29px;border:1px solid var(--ab-line);border-radius:7px;padding:4px 9px;color:#fff;background:var(--surface);font-size:11px;font-variant-numeric:tabular-nums}.ab-capacities b small{color:var(--muted);font-size:9px}.ab-capacities b.over{border-color:var(--ab-danger);color:#ffaea0}
.ab-help{margin:0 0 13px;color:var(--ab-soft);font-size:11px}

.ab-selected-empty{display:grid;min-height:100px;place-items:center;align-content:center;gap:3px;margin-bottom:20px;border:1px dashed var(--line);border-radius:9px;color:#a8a39b;background:var(--surface);text-align:center}.ab-selected-empty>span{display:grid;width:32px;height:32px;place-items:center;border:1px solid #5e5951;border-radius:50%;font-size:19px}.ab-selected-empty b{font-size:11px}.ab-selected-empty small{font-size:9px}
.ab-selected-tray{display:flex;min-height:105px;align-items:flex-start;gap:8px;margin-bottom:20px;overflow-x:auto;border:1px dashed var(--line);border-radius:9px;padding:12px;background:var(--surface);scrollbar-color:#5d5145 transparent}
.ab-selected-tray button{position:relative;display:grid;width:70px;flex:0 0 70px;justify-items:center;gap:2px;border:0;border-radius:7px;padding:5px 3px;color:#eee9df;background:#2c2b29;cursor:pointer}.ab-selected-tray button:hover{background:#3a2d22;transform:translateY(-1px)}
.ab-selected-tray .ab-unit-image{width:52px;height:52px}.ab-selected-tray .ab-unit-image img{width:50px;height:50px}.ab-selected-tray button>b{position:absolute;top:3px;right:3px;z-index:3;border-radius:999px;padding:2px 5px;color:#24160c;background:#efad62;font-size:9px}.ab-selected-tray button>span{max-width:65px;overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap}

.ab-picker{margin:14px 0 24px}.ab-picker:last-child{margin-bottom:0}.ab-picker>header{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}.ab-picker h3{margin:0;color:#f1ede4;font-size:15px}.ab-picker>header>b{color:var(--ab-soft);font-size:10px}
.ab-unit-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px}
.ab-unit{position:relative;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
.ab-unit:hover{border-color:#8b5f38;background:#302a24;transform:translateY(-1px)}.ab-unit.selected{border-color:#c27e43;background:#3a2b20;box-shadow:inset 0 0 0 1px #d99a5126}
.ab-unit-main{display:grid;width:100%;min-height:87px;justify-items:center;align-content:start;gap:2px;border:0;padding:6px 3px 0;color:var(--ab-text);background:transparent;cursor:pointer;text-align:center}
.ab-unit-image{position:relative;display:grid;width:52px;height:52px;place-items:center;overflow:hidden}.ab-unit-image>i{position:absolute;color:#74706a;font-size:18px;font-style:normal;font-weight:900}.ab-unit-image>img{position:relative;width:50px;height:50px;object-fit:contain}
.ab-level-badge{position:absolute;z-index:4;right:0;bottom:0;display:grid;min-width:18px;height:18px;place-items:center;border:1px solid #f8d49c;border-radius:5px;padding:0 3px;color:#fff8e9;background:#9b5b25;box-shadow:0 2px 4px #0008;font-size:9px;font-style:normal;font-weight:900;line-height:1}
.ab-unit-main strong{width:100%;overflow:hidden;color:#eeeae2;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.ab-unit-main small{color:#9d9890;font-size:7px}
.ab-stepper{display:grid;grid-template-columns:1fr 24px 1fr;align-items:center;justify-items:center;min-height:25px;border-top:1px solid var(--line);background:var(--surface)}.ab-stepper button{display:grid;width:100%;height:24px;place-items:center;border:0;color:var(--muted);background:transparent;cursor:pointer;font-size:14px}.ab-stepper button:hover{color:var(--accent);background:#49301e}.ab-stepper b{font-size:9px}.ab-stepper button:disabled{opacity:.2;cursor:default}
.ab-unit.locked{opacity:.32;filter:grayscale(1)}.ab-unit.locked:hover{border-color:var(--line);transform:none}.ab-unit .ab-siege-use{width:100%;min-height:23px;border:0;border-top:1px solid var(--line);color:var(--muted);background:var(--surface);cursor:pointer;font-size:8px}.ab-unit .ab-siege-use.active{color:var(--accent);background:#3a2b20;font-weight:900}

.ab-add-section{display:flex;width:100%;min-height:70px;align-items:center;justify-content:center;border:1px dashed var(--line);border-radius:8px;color:#e5b176;background:#262522;cursor:pointer;font-size:12px;font-weight:900}.ab-add-section:hover{border-color:#a66e3b;color:#ffd19c;background:#34281e}
.ab-collapsible>.ab-section-head{margin-bottom:12px}

.ab-active-siege-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:7px}.ab-active-siege-choice{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:62px;border:1px solid var(--ab-line);border-radius:7px;padding:7px 9px;color:var(--ab-text);background:var(--surface);text-align:left;cursor:pointer}.ab-active-siege-choice .ab-unit-image{width:40px;height:40px}.ab-active-siege-choice .ab-unit-image img{width:38px;height:38px}.ab-active-siege-choice>span{display:grid;gap:3px;min-width:0}.ab-active-siege-choice strong{font-size:10px}.ab-active-siege-choice small,.ab-active-siege-choice>b{color:var(--ab-soft);font-size:8px}.ab-active-siege-choice.active{border-color:#b6753e;background:#3a2b20}.ab-active-siege-choice.active>b{color:var(--accent)}

.ab-hero-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ab-hero{min-width:0;border:1px solid var(--ab-line);border-radius:9px;padding:9px;background:var(--surface)}.ab-hero-select{display:grid;width:100%;grid-template-columns:52px minmax(0,1fr) 24px;align-items:center;gap:10px;border:0;padding:5px;color:var(--ab-text);background:transparent;text-align:left;cursor:pointer}.ab-hero-select .ab-unit-image{width:50px;height:50px}.ab-hero-select .ab-unit-image img{width:48px;height:48px}.ab-hero-select>span:nth-child(2){display:grid;gap:3px}.ab-hero-select strong{font-size:12px}.ab-hero-select small{color:var(--ab-soft);font-size:9px}.ab-hero-select>b{display:grid;width:22px;height:22px;place-items:center;border:1px solid #5d5850;border-radius:50%;color:var(--muted)}.ab-hero-select.selected>b{border-color:#c98343;color:#25150b;background:#e7a65c}.ab-hero.active{border-color:#8b5c35;background:#312920}.ab-hero.locked{opacity:.36;filter:grayscale(1)}
.ab-hero-fields{display:grid;gap:13px;margin:10px 0 2px;padding-top:12px;border-top:1px solid var(--line)}.ab-visual-field{display:grid;gap:6px;min-width:0}.ab-visual-field>span{color:var(--ab-soft);font-size:9px;font-weight:800}.ab-choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:5px}.ab-choice{display:grid;min-width:0;min-height:72px;justify-items:center;align-content:center;gap:2px;border:1px solid var(--line);border-radius:7px;padding:4px 3px;color:var(--ab-text);background:var(--surface);cursor:pointer}.ab-choice .ab-unit-image{width:38px;height:38px}.ab-choice .ab-unit-image img{width:36px;height:36px}.ab-choice strong{width:100%;overflow:hidden;font-size:7px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ab-choice small{color:var(--ab-soft);font-size:7px}.ab-choice.selected{border-color:#bd7a40;background:#3a2b20}.ab-choice.locked{opacity:.35;filter:grayscale(1)}.ab-choice-empty{display:grid;width:34px;height:34px;place-items:center;border:1px dashed var(--line);border-radius:50%;color:var(--muted)}.ab-mode-grid{display:flex;gap:5px}.ab-mode-grid button{min-width:78px;min-height:31px;border:1px solid var(--ab-line);border-radius:6px;color:var(--muted);background:var(--surface);cursor:pointer;font-size:9px}.ab-mode-grid button.selected{border-color:#b87840;color:#ffd19a;background:#3a2b20}

.ab-editor{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,.7fr);gap:18px;margin-bottom:12px}.ab-editor textarea{min-height:170px;resize:vertical;line-height:1.55}.ab-editor small{color:var(--ab-soft);font-size:9px}
.ab-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:8px 0 22px}.ab-actions>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.ab-actions>a{color:var(--ab-soft);font-size:11px;text-decoration:none}.ab-actions .ab-create,.ab-actions .ab-game-link{display:inline-flex;min-height:39px;align-items:center;justify-content:center;border:1px solid #d38a47;border-radius:7px;padding:0 15px;color:#24160d;background:linear-gradient(180deg,#efb268,#ce8744);font-size:11px;font-weight:900;text-decoration:none}.ab-actions .ab-game-link.disabled{border-color:var(--ab-line);color:#79756f;background:var(--surface);cursor:not-allowed}.ab-actions button:disabled{opacity:.45;cursor:not-allowed}.ab-imported-link{text-align:right;font-size:11px}.ab-imported-link a{color:var(--accent);text-decoration:none}

.ab-saved{margin-top:8px;padding-top:18px;border-top:1px solid var(--ab-line)}.ab-saved>header,.ab-library-section>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.ab-saved h2,.ab-library-section h2{margin:0;font-size:16px}.ab-saved>p,.ab-library-help,.ab-library-empty{color:var(--ab-soft);font-size:11px}.ab-saved article,.ab-library-list article{padding:14px 2px;border-bottom:1px solid var(--line)}.ab-saved article>div:first-child{display:flex;align-items:center;gap:12px}.ab-saved article strong{font-size:11px}.ab-saved article span{color:var(--ab-soft);font-size:9px}.ab-saved article>a,.ab-saved article>button,.ab-library-actions>a,.ab-library-actions>button{display:inline-flex;min-height:31px;align-items:center;justify-content:center;border:1px solid var(--ab-line);border-radius:6px;padding:0 10px;color:var(--ab-text);background:var(--surface);cursor:pointer;font-size:9px;text-decoration:none}

.ab-library-list{border-top:1px solid var(--ab-line)}.ab-library-list article>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.ab-library-list article>header>div:first-child{display:grid;gap:5px}.ab-library-list article strong{font-size:13px}.ab-library-list article span{color:var(--ab-soft);font-size:10px}.ab-library-actions{display:flex;gap:7px}.ab-build-preview{display:grid;gap:12px;padding-top:10px}.ab-preview-section{padding-top:10px;border-top:1px solid var(--line)}.ab-preview-section>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.ab-preview-section h3{margin:0;font-size:12px}.ab-preview-section>header>span,.ab-preview-group>header>span{color:var(--ab-soft);font-size:9px}.ab-preview-groups{display:flex;flex-wrap:wrap;gap:14px 24px}.ab-preview-group{min-width:min(100%,250px)}.ab-preview-group>header{display:flex;align-items:center;gap:8px;margin-bottom:6px}.ab-preview-group>header strong{font-size:10px}.ab-preview-units{display:flex;flex-wrap:wrap;gap:7px}.ab-preview-unit{display:grid;grid-template-columns:30px auto;align-items:center;gap:4px;min-width:68px}.ab-preview-unit .ab-unit-image{width:29px;height:29px}.ab-preview-unit .ab-unit-image img{width:27px;height:27px}.ab-preview-unit>b{color:var(--accent);font-size:10px}.ab-preview-unit>small{grid-column:1/3;max-width:74px;overflow:hidden;color:var(--ab-soft);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.ab-preview-none{color:var(--ab-soft);font-size:10px}.ab-preview-heroes{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:7px 18px}.ab-preview-hero{display:grid;grid-template-columns:minmax(100px,auto) minmax(0,1fr);gap:8px;padding:6px 0;border-bottom:1px solid var(--line)}.ab-preview-hero-name{display:flex;align-items:center;gap:7px}.ab-preview-hero-name .ab-unit-image{width:36px;height:36px}.ab-preview-hero-name .ab-unit-image img{width:34px;height:34px}.ab-preview-loadout{display:flex;flex-wrap:wrap;gap:5px}.ab-preview-loadout-item{display:grid;width:48px;justify-items:center;gap:2px}.ab-preview-loadout-item .ab-unit-image{width:29px;height:29px}.ab-preview-loadout-item .ab-unit-image img{width:27px;height:27px}.ab-preview-loadout-item small{max-width:48px;overflow:hidden;color:var(--ab-soft);font-size:7px;text-overflow:ellipsis;white-space:nowrap}.ab-active-siege-preview{display:flex;align-items:center;gap:8px}.ab-detail-tags{display:flex;flex-wrap:wrap;gap:6px}.ab-detail-tags span{border:1px solid #78512e;border-radius:999px;padding:5px 9px;color:#e8b477;background:#38291e;font-size:9px}.ab-detail-guide{color:#d1ccc3;line-height:1.65}.ab-detail-video a{color:var(--accent)}

@media(max-width:1050px){
  .ab-unit-grid{grid-template-columns:repeat(9,minmax(0,1fr))}.ab-banner-art{right:-20px}.ab-banner-copy{width:62%}.ab-th-list{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:760px){
  .army-builder-route #app{width:min(100% - 20px,1200px);padding-top:18px}.ab-banner{min-height:245px}.ab-banner-copy{width:72%;padding:30px}.ab-banner-copy h1{font-size:42px}.ab-banner-art{right:-50px;opacity:.65}.ab-banner-art .ab-unit-image{width:100px;height:170px}.ab-banner-art .ab-unit-image:nth-child(1),.ab-banner-art .ab-unit-image:nth-child(4){display:none}
  .ab-top{align-items:flex-start}.ab-top-actions{flex-wrap:wrap;justify-content:flex-end}.ab-profile-bar form{grid-template-columns:1fr}.ab-profile-bar form>label{border-right:0;border-bottom:1px solid var(--ab-line)}.ab-basics{grid-template-columns:1fr}.ab-tag-field{grid-column:auto}.ab-th-list{grid-template-columns:repeat(6,minmax(0,1fr))}
  .ab-section{padding:14px}.ab-section-head{align-items:flex-start;flex-direction:column}.ab-capacities{justify-content:flex-start}.ab-unit-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.ab-hero-grid,.ab-editor{grid-template-columns:1fr}.ab-actions{flex-direction:column}.ab-actions>div{justify-content:flex-start}.ab-library-list article>header{align-items:flex-start;flex-direction:column}
}
@media(max-width:500px){
  .ab-banner{min-height:215px;border-radius:12px}.ab-banner-copy{width:82%;padding:24px 20px}.ab-banner-copy h1{font-size:34px}.ab-banner-copy p{margin-top:12px;font-size:11px}.ab-banner-art{right:-65px}.ab-banner-art .ab-unit-image{width:82px;height:140px}
  .ab-top{flex-direction:column}.ab-top-actions{justify-content:flex-start}.ab-profile-bar form>label{padding:14px}.ab-profile-bar form>label>div{grid-template-columns:27px minmax(0,1fr)}.ab-profile-bar form>label button{grid-column:1/-1;width:100%}.ab-profile-hint,.ab-profile-loaded{padding:14px}.ab-profile-loaded>b{display:none}.ab-basics{padding:14px}.ab-th-list{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ab-unit-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.ab-unit-main{min-height:84px}.ab-unit-image{width:48px;height:48px}.ab-unit-image>img{width:46px;height:46px}.ab-selected-tray button{width:64px;flex-basis:64px}.ab-hero-select{grid-template-columns:45px minmax(0,1fr) 22px}.ab-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ab-active-siege-choices{grid-template-columns:1fr}.ab-actions>div{width:100%}.ab-actions>div>*{flex:1;min-width:calc(50% - 4px)}
}

/* Clash Armies reference layout */
html[data-theme]:has(body.army-builder-route),html[data-theme] body.army-builder-route{color-scheme:inherit;background:var(--paper)!important}
html[data-theme] body.army-builder-route .site-header{border-color:var(--line)!important;background:var(--surface)!important;box-shadow:none!important}
html[data-theme] body.army-builder-route .site-header .brand,html[data-theme] body.army-builder-route .site-header .header-nav a{color:var(--ink)!important}
html[data-theme] body.army-builder-route .site-header .header-nav a.active{color:var(--accent)!important;background:var(--surface-2)!important}
html[data-theme] body.army-builder-route .site-footer{border-color:var(--line)!important;color:var(--muted)!important;background:var(--surface)!important}
html[data-theme] body.army-builder-route .ab-profile-bar input,html[data-theme] body.army-builder-route .ab-basics input,html[data-theme] body.army-builder-route .ab-editor input,html[data-theme] body.army-builder-route .ab-editor textarea{border-color:var(--line)!important;color:var(--ink)!important;background:var(--paper)!important;box-shadow:none}
html[data-theme] body.army-builder-route .ab-profile-bar input::placeholder,html[data-theme] body.army-builder-route .ab-basics input::placeholder,html[data-theme] body.army-builder-route .ab-editor input::placeholder,html[data-theme] body.army-builder-route .ab-editor textarea::placeholder{color:var(--muted)!important}
.army-builder-route{--ab-bg:var(--paper);--ab-shell:var(--paper);--ab-panel:var(--surface);--ab-panel-2:var(--paper);--ab-card:var(--surface-2);--ab-line:var(--line);--ab-soft:var(--muted);--ab-text:var(--ink);--ab-accent:var(--accent);background:var(--paper)}
.army-builder-route .site-header,.army-builder-route .site-footer{background:var(--surface);border-color:var(--line)}
.army-builder-route #app{width:min(1200px,calc(100% - 32px));padding-top:24px}
.ab-page{max-width:1200px}
.ab-banner{min-height:140px;border:0;border-radius:7px;background:var(--surface) url('/static/img/army-builder/banner.webp') center/cover no-repeat;box-shadow:none}
.ab-banner:before,.ab-banner-copy,.ab-banner-art,.ab-banner-glow{display:none}
.ab-top{margin:20px 0 10px;padding:0}
.ab-top>div:first-child>span{color:var(--muted)}.ab-top h1,.ab-top h2{font-size:21px}
.ab-top button,.ab-actions button,.ab-saved header button,.ab-library-link{min-height:36px;border-radius:4px;background:var(--surface-2)}
.ab-profile-bar{border:1px dashed var(--line);border-radius:6px;background:var(--surface);box-shadow:none}
.ab-profile-bar form>label{padding:14px 16px}.ab-profile-hint,.ab-profile-loaded{padding:12px 16px}
.ab-basics{display:grid;grid-template-columns:1fr;gap:14px;margin-bottom:22px;padding:22px 32px;border:1px dashed var(--line);border-radius:6px;background:var(--surface)}
.ab-name-field{width:235px;max-width:100%}
.ab-basics input,.ab-editor input,.ab-editor textarea{border-radius:5px;background:var(--paper)}
.ab-th-list{display:flex;flex-wrap:wrap;gap:8px}
.ab-th-list button{display:flex;width:auto;height:40px;align-items:center;gap:5px;border:0;border-radius:5px;padding:3px 9px;color:var(--ink);background:var(--surface-2)}
.ab-th-list button img{width:31px;height:31px;object-fit:contain}.ab-th-list button b{font-size:14px}
.ab-th-list button:hover{color:#fff;background:var(--surface-2)}.ab-th-list button.active{outline:1px dashed var(--muted);color:#fff;background:var(--surface-2);box-shadow:none}
.ab-tag-field button{border:1px dashed var(--line);border-radius:4px;background:var(--surface)}.ab-tag-field button.active{border-style:solid;background:var(--line)}
.ab-section{position:relative;margin-top:34px;margin-bottom:24px;padding:20px 32px;border:1px dashed var(--line);border-radius:6px;background:var(--surface)}
.ab-section-head{margin-top:-39px;margin-bottom:18px}.ab-section-head>div:first-child{padding:0 10px;background:var(--surface)}.ab-section-head>div:first-child>span{display:none}.ab-section-head h2{font-size:16px;letter-spacing:.08em;text-transform:uppercase}
.ab-capacities b{border:1px dashed var(--line);border-radius:4px;background:var(--surface)}
.ab-selected-empty{display:grid;min-width:100%;min-height:68px;place-items:center;margin:0;border:0;background:var(--surface);color:var(--muted)}
.ab-selected-tray{display:flex;min-height:84px;align-items:flex-start;gap:8px;margin:0 -32px 20px;overflow-x:auto;padding:8px 32px;border-width:1px 0;border-radius:0;background:var(--surface)}
.ab-selected-tray button{width:70px;flex-basis:70px;padding:0;background:transparent}
.ab-selected-tray .ab-unit-image{width:70px;height:70px}.ab-selected-tray .ab-unit-image img{width:68px;height:68px;object-fit:cover;border-radius:5px}
.ab-selected-tray button>b{top:1px;left:2px;right:auto;padding:0;color:#fff;background:transparent;font-size:15px;text-shadow:0 2px 3px #000,1px 0 #000}
.ab-picker{margin:18px 0}.ab-picker h3{font-size:14px}
.ab-unit-grid{display:flex;flex-wrap:wrap;gap:6px}
.ab-unit{width:70px;height:70px;flex:0 0 70px;border:0;border-radius:5px;background:var(--surface-2)}
.ab-unit:hover{border:0;background:var(--surface-2);transform:none}.ab-unit.selected{border:0;background:var(--surface-2);box-shadow:none}
.ab-unit-main{position:relative;display:block;min-height:70px;padding:0}
.ab-unit-main .ab-unit-image{width:70px;height:70px}.ab-unit-main .ab-unit-image>img{width:68px;height:68px;object-fit:cover;border-radius:5px}
.ab-unit-main .ab-unit-image>img{filter:grayscale(1);opacity:.72}.ab-unit.selected .ab-unit-main .ab-unit-image>img{filter:none;opacity:1}
.ab-unit-main strong{display:none}.ab-unit-main small{display:none}
.ab-tile-count{position:absolute;z-index:5;top:2px;left:3px;color:#fff;font-size:14px;text-shadow:0 2px 3px #000,1px 0 #000}
.ab-level-badge{right:auto;bottom:2px;left:2px;border:0;border-radius:4px;background:#707070;font-size:10px}
.ab-stepper{position:absolute;inset:0;display:none}.ab-unit .ab-siege-use{position:absolute;z-index:6;right:2px;bottom:2px;width:auto;min-height:20px;border:0;border-radius:3px;padding:0 5px;background:#333d;font-size:7px}
.ab-unit.locked:not(.selected){opacity:.36;background:var(--surface-2)}.ab-unit.selected.locked{opacity:1;filter:none}.ab-unit.locked:hover{transform:none}
.ab-add-section{min-height:44px;border-radius:3px;background:var(--paper)}
.ab-active-siege-choice{border-radius:4px;background:var(--surface-2)}
.ab-hero-grid{display:block}.ab-hero{display:grid;grid-template-columns:106px minmax(0,1fr);gap:24px;border:0;border-bottom:1px dashed var(--line);border-radius:0;padding:18px 0;background:transparent}
.ab-hero.active{min-height:190px;border-color:var(--line);background:transparent}.ab-hero-select{display:flex;align-self:start;flex-direction:column;gap:5px;padding:0;text-align:center}
.ab-hero-select .ab-unit-image{width:82px;height:106px}.ab-hero-select .ab-unit-image img{width:80px;height:104px;object-fit:cover;border-radius:5px}
.ab-hero-select>span:nth-child(2){gap:2px}.ab-hero-select>span small{display:none}.ab-hero-select>b{width:auto;height:25px;border:0;border-radius:3px;padding:0 9px;color:#ff6767;background:#553536;font-size:10px}.ab-hero-select.selected>b{border:0;color:#ff7373;background:#553536}
.ab-hero-fields{display:grid;grid-template-columns:340px minmax(0,1fr);align-items:start;gap:24px;margin:0;padding:0;border:0}.ab-gear-area{display:grid;gap:10px}
.ab-equipment-field,.ab-pet-field{display:grid;gap:7px}.ab-visual-field>span{color:var(--muted);font-size:9px;font-weight:800}.ab-loadout-picker{display:grid;grid-template-columns:70px minmax(0,1fr);gap:14px}.ab-loadout-slots{display:grid;align-content:start;gap:8px}.ab-loadout-slot{display:grid;width:70px;height:70px;place-items:center;border:1px dashed var(--line);border-radius:5px;padding:0;color:var(--muted);background:var(--paper);cursor:pointer}.ab-loadout-slot.filled{border:0;background:#129ddd}.ab-loadout-slot .ab-unit-image{width:70px;height:70px}.ab-loadout-slot .ab-unit-image img{width:68px;height:68px;object-fit:cover;border-radius:5px}.ab-loadout-slot .ab-choice-empty{width:68px;height:68px}
.ab-choice-grid{display:flex;max-height:146px;flex-wrap:wrap;gap:6px;overflow-y:auto;padding-right:5px}.ab-equipment-grid{display:grid;grid-template-columns:repeat(3,70px);align-content:start}.ab-choice{width:70px;min-height:70px;flex:0 0 70px;border:0;border-radius:5px;padding:0;background:var(--surface-2)}
.ab-choice .ab-unit-image{width:70px;height:70px}.ab-choice .ab-unit-image img{width:68px;height:68px;object-fit:cover;border-radius:5px}.ab-choice strong,.ab-choice small{display:none}.ab-choice.selected{outline:2px solid #28a9e8;background:#129ddd}.ab-choice-empty{width:68px;height:68px;border-radius:4px}.ab-equipment-field.full .ab-choice:not(.selected) img{filter:grayscale(1);opacity:.58}
.ab-hero:not(.active){display:inline-grid;width:112px;grid-template-columns:1fr;margin-right:10px;border-bottom:0;vertical-align:top}.ab-hero:not(.active) .ab-hero-select .ab-unit-image{width:72px;height:86px}.ab-hero:not(.active) .ab-hero-select .ab-unit-image img{width:70px;height:84px}
@media(max-width:1000px){.ab-hero-fields{grid-template-columns:1fr}}
@media(max-width:760px){.ab-basics,.ab-section{padding:16px}.ab-selected-tray{margin:0 -16px 18px;padding:8px 16px}.ab-unit-grid{gap:5px}.ab-unit{width:62px;height:62px;flex-basis:62px}.ab-unit-main{min-height:62px}.ab-unit-main .ab-unit-image{width:62px;height:62px}.ab-unit-main .ab-unit-image>img{width:60px;height:60px}.ab-equipment-grid{grid-template-columns:repeat(auto-fill,minmax(54px,1fr))}.ab-equipment-grid .ab-choice{width:auto;min-width:54px}}
@media(max-width:500px){.army-builder-route #app{width:calc(100% - 16px)}.ab-banner{min-height:100px}.ab-basics{grid-template-columns:1fr}.ab-th-list button{padding:3px 7px}.ab-th-list button img{width:27px;height:27px}.ab-section{padding:12px}.ab-selected-tray{margin:0 -12px 15px;padding:7px 12px}.ab-unit{width:56px;height:56px;flex-basis:56px}.ab-unit-main{min-height:56px}.ab-unit-main .ab-unit-image{width:56px;height:56px}.ab-unit-main .ab-unit-image>img{width:54px;height:54px}.ab-hero{grid-template-columns:82px minmax(0,1fr);gap:12px}.ab-hero-select .ab-unit-image{width:70px;height:90px}.ab-hero-select .ab-unit-image img{width:68px;height:88px}.ab-loadout-picker{grid-template-columns:54px minmax(0,1fr);gap:8px}.ab-loadout-slot{width:54px;height:54px}.ab-loadout-slot .ab-unit-image{width:54px;height:54px}.ab-loadout-slot .ab-unit-image img{width:52px;height:52px}.ab-loadout-slot .ab-choice-empty{width:52px;height:52px}.ab-choice{width:54px;min-height:54px;flex-basis:54px}.ab-choice .ab-unit-image{width:54px;height:54px}.ab-choice .ab-unit-image img{width:52px;height:52px}}

/* Compact public army composition */
.ab-library:not(.ab-army-admin) .ab-build-preview,.ab-army-detail .ab-build-preview{display:flex;flex-wrap:wrap;align-items:flex-start;gap:0;margin-top:10px;padding:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ab-library:not(.ab-army-admin) .ab-preview-section,.ab-army-detail .ab-preview-section{min-width:0;padding:9px 12px;border:0;border-right:1px solid var(--line)}
.ab-library:not(.ab-army-admin) .ab-preview-army,.ab-army-detail .ab-preview-army{flex:1 1 100%;padding-left:0;border-right:0;border-bottom:1px solid var(--line)}
.ab-library:not(.ab-army-admin) .ab-preview-hero-section,.ab-army-detail .ab-preview-hero-section{flex:1 1 570px}
.ab-library:not(.ab-army-admin) .ab-preview-castle,.ab-army-detail .ab-preview-castle{flex:1 1 360px;border-right:0}
.ab-library:not(.ab-army-admin) .ab-preview-section>header,.ab-army-detail .ab-preview-section>header{height:15px;margin:0 0 5px}
.ab-library:not(.ab-army-admin) .ab-preview-section>header h3,.ab-army-detail .ab-preview-section>header h3{color:var(--muted);font-size:8px;line-height:1;text-transform:uppercase;letter-spacing:.08em}
.ab-library:not(.ab-army-admin) .ab-preview-section>header>span,.ab-army-detail .ab-preview-section>header>span{font-size:9px}
.ab-library:not(.ab-army-admin) .ab-preview-groups,.ab-army-detail .ab-preview-groups{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:12px}
.ab-library:not(.ab-army-admin) .ab-preview-group,.ab-army-detail .ab-preview-group{position:relative;min-width:auto}
.ab-library:not(.ab-army-admin) .ab-preview-group>header,.ab-army-detail .ab-preview-group>header{height:13px;margin:0 0 3px;white-space:nowrap}
.ab-library:not(.ab-army-admin) .ab-preview-group>header strong,.ab-army-detail .ab-preview-group>header strong{font-size:7px;text-transform:uppercase}
.ab-library:not(.ab-army-admin) .ab-preview-group>header span,.ab-army-detail .ab-preview-group>header span{font-size:9px}
.ab-library:not(.ab-army-admin) .ab-preview-units,.ab-army-detail .ab-preview-units{display:flex;flex-wrap:nowrap;gap:3px}
.ab-library:not(.ab-army-admin) .ab-preview-unit,.ab-army-detail .ab-preview-unit{position:relative;display:block;min-width:42px;width:42px;height:50px}
.ab-library:not(.ab-army-admin) .ab-preview-unit .ab-unit-image,.ab-army-detail .ab-preview-unit .ab-unit-image{width:42px;height:42px}
.ab-library:not(.ab-army-admin) .ab-preview-unit .ab-unit-image img,.ab-army-detail .ab-preview-unit .ab-unit-image img{width:40px;height:40px;border-radius:4px;object-fit:cover}
.ab-library:not(.ab-army-admin) .ab-preview-unit>b,.ab-army-detail .ab-preview-unit>b{position:absolute;z-index:2;top:1px;left:2px;color:#fff;font-size:11px;line-height:1;text-shadow:0 1px 2px #000,1px 0 #000}
.ab-library:not(.ab-army-admin) .ab-preview-unit>small,.ab-army-detail .ab-preview-unit>small{display:block;max-width:42px;margin-top:1px;overflow:hidden;color:var(--muted);font-size:6px;line-height:7px;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.ab-library:not(.ab-army-admin) .ab-preview-unit>i,.ab-army-detail .ab-preview-unit>i{position:absolute;z-index:3;right:1px;bottom:9px;width:7px;height:7px;overflow:hidden;border:1px solid #ffd08c;border-radius:50%;color:transparent;background:#e99b45;box-shadow:0 0 0 1px #1d1d1d}
.ab-library:not(.ab-army-admin) .ab-preview-heroes,.ab-army-detail .ab-preview-heroes{display:flex;flex-wrap:nowrap;gap:7px}
.ab-library:not(.ab-army-admin) .ab-preview-hero,.ab-army-detail .ab-preview-hero{display:flex;min-width:auto;align-items:flex-start;gap:2px;padding:0;border:0}
.ab-library:not(.ab-army-admin) .ab-preview-hero-name,.ab-army-detail .ab-preview-hero-name{display:block;width:48px}
.ab-library:not(.ab-army-admin) .ab-preview-hero-name .ab-unit-image,.ab-army-detail .ab-preview-hero-name .ab-unit-image{width:48px;height:50px}
.ab-library:not(.ab-army-admin) .ab-preview-hero-name .ab-unit-image img,.ab-army-detail .ab-preview-hero-name .ab-unit-image img{width:46px;height:48px;border-radius:4px;object-fit:cover}
.ab-library:not(.ab-army-admin) .ab-preview-hero-name strong,.ab-army-detail .ab-preview-hero-name strong{display:none}
.ab-library:not(.ab-army-admin) .ab-preview-loadout,.ab-army-detail .ab-preview-loadout{display:grid;grid-template-columns:repeat(2,24px);gap:2px;width:50px}
.ab-library:not(.ab-army-admin) .ab-preview-loadout-item,.ab-army-detail .ab-preview-loadout-item{display:block;width:24px;height:24px}
.ab-library:not(.ab-army-admin) .ab-preview-loadout-item .ab-unit-image,.ab-army-detail .ab-preview-loadout-item .ab-unit-image{width:24px;height:24px}
.ab-library:not(.ab-army-admin) .ab-preview-loadout-item .ab-unit-image img,.ab-army-detail .ab-preview-loadout-item .ab-unit-image img{width:22px;height:22px;border-radius:3px;object-fit:cover}
.ab-library:not(.ab-army-admin) .ab-preview-loadout-item small,.ab-army-detail .ab-preview-loadout-item small{display:none}
@media(max-width:760px){.ab-library:not(.ab-army-admin) .ab-build-preview,.ab-army-detail .ab-build-preview{display:block;width:100%;max-width:100%;min-width:0;overflow:hidden}.ab-library:not(.ab-army-admin) .ab-preview-section,.ab-army-detail .ab-preview-section{width:100%;max-width:100%;min-width:0;padding:8px 0;border-right:0;border-bottom:1px solid var(--line)}.ab-library:not(.ab-army-admin) .ab-preview-section:last-child,.ab-army-detail .ab-preview-section:last-child{border-bottom:0}.ab-library:not(.ab-army-admin) .ab-preview-groups,.ab-army-detail .ab-preview-groups,.ab-library:not(.ab-army-admin) .ab-preview-heroes,.ab-army-detail .ab-preview-heroes{box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;padding-bottom:5px}.ab-library:not(.ab-army-admin) .ab-preview-group,.ab-army-detail .ab-preview-group{flex:none}.ab-library:not(.ab-army-admin) .ab-preview-hero,.ab-army-detail .ab-preview-hero{flex:none}}

/* Army Builder stays dark; the site wide theme control applies on other routes. */
html[data-theme] body.army-builder-route .site-header{grid-template-columns:auto minmax(0,1fr) auto}
html[data-theme] body.army-builder-route .theme-toggle{display:none!important}

/* The army library keeps every composition image-first and free of repeated names. */
.ab-library:not(.ab-army-admin) .ab-library-list article{padding:11px 0 13px}
.ab-library:not(.ab-army-admin) .ab-build-preview{margin-top:7px;background:#292929}
.ab-library:not(.ab-army-admin) .ab-preview-section>header h3{width:18px;color:transparent;font-size:0}
.ab-library:not(.ab-army-admin) .ab-preview-section>header h3:before{color:var(--muted);font-size:12px;line-height:1}
.ab-library:not(.ab-army-admin) .ab-preview-army>header h3:before{content:'⚔'}
.ab-library:not(.ab-army-admin) .ab-preview-hero-section>header h3:before{content:'♛'}
.ab-library:not(.ab-army-admin) .ab-preview-castle>header h3:before{content:'▣'}
.ab-library:not(.ab-army-admin) .ab-preview-group>header strong{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ab-library:not(.ab-army-admin) .ab-preview-group>header span{font-size:0}
.ab-library:not(.ab-army-admin) .ab-preview-group>header span:after{content:attr(data-compact-summary);font-size:9px}
.ab-library:not(.ab-army-admin) .ab-preview-unit{width:52px;min-width:52px;height:59px}
.ab-library:not(.ab-army-admin) .ab-preview-unit .ab-unit-image{width:52px;height:52px}
.ab-library:not(.ab-army-admin) .ab-preview-unit .ab-unit-image img{width:50px;height:50px}
.ab-library:not(.ab-army-admin) .ab-preview-unit>small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ab-library:not(.ab-army-admin) .ab-preview-unit>i{bottom:2px}
.ab-library:not(.ab-army-admin) .ab-preview-hero-name{width:58px}
.ab-library:not(.ab-army-admin) .ab-preview-hero-name .ab-unit-image{width:58px;height:59px}
.ab-library:not(.ab-army-admin) .ab-preview-hero-name .ab-unit-image img{width:56px;height:57px}
.ab-library:not(.ab-army-admin) .ab-preview-loadout{grid-template-columns:repeat(2,28px);width:58px}
.ab-library:not(.ab-army-admin) .ab-preview-loadout-item,.ab-library:not(.ab-army-admin) .ab-preview-loadout-item .ab-unit-image{width:28px;height:28px}
.ab-library:not(.ab-army-admin) .ab-preview-loadout-item .ab-unit-image img{width:26px;height:26px}
@media(max-width:760px){.ab-library:not(.ab-army-admin) .ab-library-list>article>header{display:flex;width:100%;align-items:flex-start;flex-direction:column}.ab-library:not(.ab-army-admin) .ab-library-actions{width:100%;flex-wrap:wrap;justify-content:flex-start}.ab-library:not(.ab-army-admin) .ab-preview-section{box-sizing:border-box;padding:7px 8px}.ab-library:not(.ab-army-admin) .ab-preview-groups{gap:10px}}

/* Keep equipment slots stacked and place the pet alongside them in army previews. */
.ab-preview-loadout{display:grid;grid-template-columns:48px 48px;grid-template-rows:repeat(2,48px);align-items:center;gap:5px;width:101px}
.ab-preview-loadout-pet{grid-column:2;grid-row:1/3;align-self:center}
.ab-preview-loadout-equipment[data-slot="0"]{grid-column:1;grid-row:1}
.ab-preview-loadout-equipment[data-slot="1"]{grid-column:1;grid-row:2}
.ab-preview-loadout-kind{display:none}
.ab-library:not(.ab-army-admin) .ab-preview-loadout,.ab-army-detail .ab-preview-loadout{grid-template-columns:repeat(2,28px);grid-template-rows:repeat(2,28px);gap:2px;width:58px}
.ab-library:not(.ab-army-admin) .ab-preview-loadout-pet,.ab-army-detail .ab-preview-loadout-pet{position:relative}
.ab-library:not(.ab-army-admin) .ab-preview-loadout-kind,.ab-army-detail .ab-preview-loadout-kind{position:absolute;top:-2px;right:-2px;display:grid;min-width:15px;height:9px;place-items:center;border:1px solid #24342b;border-radius:999px;padding:0 2px;color:#16291e;background:#a8d49d;font-size:5px;font-weight:900;line-height:1}

/* Public army collection: warm paper, clear composition, direct game actions. */
html[data-theme]:has(body.army-copy-route),html[data-theme] body.army-copy-route{color-scheme:inherit;background:var(--paper)!important;color:var(--ink)}
html[data-theme] body.army-copy-route .site-header{background:var(--paper)!important;border-color:var(--line)!important;box-shadow:none!important}
html[data-theme] body.army-copy-route .site-header .brand,html[data-theme] body.army-copy-route .site-header .header-nav a{color:var(--ink)!important}
html[data-theme] body.army-copy-route .site-header .header-nav a.active{border-color:var(--accent)!important;color:var(--accent)!important;background:transparent!important}
body.army-copy-route .brand-shield{border-color:var(--accent);background:var(--accent);color:#fff8ee}
body.army-copy-route .mobile-search-button{border-color:var(--line);color:var(--ink);background:transparent}
html[data-theme] body.army-copy-route .site-footer{background:var(--paper)!important;border-color:var(--line)!important;color:var(--muted)!important}
body.army-copy-route #app{width:min(1240px,calc(100% - 64px));padding:48px 0 72px}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail){--ab-soft:var(--muted);--ab-text:var(--ink);--ab-line:var(--line);max-width:1240px;color:var(--ink)}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) a{color:inherit}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) :is(a,button,input,select):focus-visible{outline:2px solid var(--accent);outline-offset:4px}
body.army-copy-route .ab-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-top{align-items:flex-end;gap:28px;margin:0 0 36px}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-top>div:first-child>span{color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.17em}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-top h1{margin:12px 0 10px;color:var(--ink);font-family:Georgia,'Times New Roman',serif;font-size:clamp(36px,5vw,60px);font-weight:400;line-height:1.08;letter-spacing:-.04em}
body.army-copy-route .ab-catalog .ab-top h1>span{color:var(--accent)}
body.army-copy-route .ab-catalog .ab-top p{margin:0;color:#73766b;font-size:13px;line-height:1.6}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-top-actions{gap:12px;flex-wrap:wrap}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) :is(.ab-top-actions a,.ab-top-actions button,.ab-library-actions a,.ab-library-actions button){display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:12px;border:1px solid var(--line);border-radius:4px;padding:0 15px;color:var(--ink);background:transparent;font-size:11px;font-weight:600;text-decoration:none;box-shadow:none;cursor:pointer}
body.army-copy-route .ab-catalog .ab-top-actions .ab-manage-link{border-color:transparent;color:var(--muted);padding:0 4px;font-weight:400}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) :is(.ab-library-actions,.ab-top-actions) .ab-open-game{border-color:var(--accent);color:#fff8f1;background:var(--accent)}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) :is(.ab-library-actions,.ab-top-actions) .ab-open-game:hover{border-color:#843b27;background:#843b27}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) :is(.ab-top-actions button,.ab-library-actions button):hover{border-color:#777d68;background:var(--surface-2)}
body.army-copy-route .ab-catalog .ab-library-section{margin-top:0;border:0;padding:0}
body.army-copy-route .ab-catalog .ab-catalog-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
body.army-copy-route .ab-catalog-filters{display:flex;flex-wrap:wrap;align-items:flex-end;flex:1;gap:16px 24px}
body.army-copy-route .ab-catalog-filters label{display:grid;min-width:135px;gap:8px}
body.army-copy-route .ab-catalog-filters label>span{color:var(--muted);font-size:10px;font-weight:500}
body.army-copy-route .ab-catalog-filters .ab-search-field{flex:1;max-width:400px}
body.army-copy-route .ab-catalog-filters :is(input,select){box-sizing:border-box;width:100%;height:38px;border:1px solid var(--line);border-radius:4px;padding:0 11px;color:var(--ink);background:var(--surface);font:inherit;font-size:12px}
body.army-copy-route .ab-catalog-filters input::placeholder{color:var(--muted)}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-copy-status{color:#566245;font-size:12px;line-height:1.6}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-copy-status:not(:empty){padding:12px 0}
body.army-copy-route .ab-catalog .ab-library-list{border:0}
body.army-copy-route .ab-catalog .ab-library-list>.ab-army-card{margin:0;padding:26px 0 28px;border:0;border-bottom:1px solid var(--line);background:transparent}
body.army-copy-route .ab-catalog .ab-army-card>header{display:flex;align-items:center;justify-content:space-between;gap:24px}
body.army-copy-route .ab-catalog .ab-army-card>header>.ab-card-heading{display:flex;align-items:center;gap:18px;min-width:0}
body.army-copy-route .ab-hall-mark{display:grid;flex:none;width:52px;justify-items:center;gap:2px}
body.army-copy-route .ab-hall-mark img{width:42px;height:38px;object-fit:contain}
body.army-copy-route .ab-hall-mark span{color:#69715b;font-size:9px;font-weight:700;letter-spacing:.08em}
body.army-copy-route .ab-card-title{min-width:0}
body.army-copy-route .ab-card-title h3{margin:0 0 8px;color:var(--ink);font-family:Georgia,'Times New Roman',serif;font-size:24px;font-weight:400;line-height:1.2;letter-spacing:-.025em;overflow-wrap:anywhere}
body.army-copy-route .ab-card-title h3 a{text-decoration:none}
body.army-copy-route .ab-card-title h3 a:hover{color:var(--accent)}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-detail-tags{gap:7px;align-items:center}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-detail-tags span{border:0;border-radius:3px;padding:3px 7px;color:#606a50;background:var(--surface-2);font-size:10px;font-weight:400}
body.army-copy-route .ab-catalog .ab-library-actions{display:flex;flex-wrap:wrap;flex:none;align-items:center;gap:8px}
body.army-copy-route .ab-catalog .ab-library-actions .ab-card-detail{border-color:transparent;padding:0 3px;margin-left:6px;color:#717669;font-size:10px;font-weight:400}
body.army-copy-route .ab-catalog .ab-library-actions .ab-card-detail:hover{text-decoration:underline;text-underline-offset:4px}
/* Public compositions use aligned rows and consistent icon sizes. */
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-build-preview{--ab-icon:46px;--ab-label:86px;display:grid;gap:10px;margin:14px 0 0;padding:12px 0 0;border:0;border-top:1px solid #e2dfd5;background:transparent;overflow:visible}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-section{box-sizing:border-box;display:grid;grid-template-columns:var(--ab-label) minmax(0,1fr);align-items:start;gap:10px;min-width:0;width:100%;max-width:100%;padding:0;border:0}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-section>header{display:flex;flex-direction:column;align-items:flex-start;gap:4px;height:auto;margin:0;padding-top:5px}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-section>header h3{width:auto;margin:0;color:#51584a;font-size:11px;font-weight:600;line-height:1.35;letter-spacing:0;text-transform:none}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-section>header h3:before{content:none}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-section>header>span{color:var(--muted);font-size:10px;line-height:1.3}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-army{display:block;padding:0;border:0}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-army>header{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-army>.ab-preview-groups{display:flex;flex-wrap:wrap;gap:10px 24px;width:100%;max-width:100%;padding:0;overflow:visible}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-group{box-sizing:border-box;display:grid;grid-template-columns:var(--ab-label) minmax(0,1fr);align-items:start;gap:10px;min-width:0;max-width:100%;flex:none}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-army .ab-preview-troops{flex-basis:100%;width:100%}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-army :is(.ab-preview-spells,.ab-preview-sieges){flex:0 1 auto;width:max-content}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-army :is(.ab-preview-spells,.ab-preview-sieges) .ab-preview-units{display:flex;flex-wrap:wrap;width:auto}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-group>header{display:flex;flex-direction:column;align-items:flex-start;gap:4px;height:auto;margin:0;padding-top:5px;white-space:normal}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-group>header strong{position:static;display:block;width:auto;height:auto;overflow:visible;clip:auto;color:#51584a;font-size:11px;font-weight:600;line-height:1.35;text-transform:none;white-space:normal}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-group>header span{color:var(--muted);font-size:10px;line-height:1.3;font-variant-numeric:tabular-nums}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-group>header span:after{content:none}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-units{display:grid;grid-template-columns:repeat(auto-fill,var(--ab-icon));align-content:start;align-items:start;gap:6px;width:100%;min-width:0}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-unit{position:relative;display:block;box-sizing:border-box;min-width:0;width:var(--ab-icon);height:var(--ab-icon);padding:0}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-unit .ab-unit-image{width:var(--ab-icon);height:var(--ab-icon)}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-unit .ab-unit-image img{width:calc(var(--ab-icon) - 2px);height:calc(var(--ab-icon) - 2px);border-radius:4px;object-fit:contain}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-unit>b{position:absolute;top:-1px;left:-1px;z-index:2;min-width:15px;border-radius:3px;padding:2px 3px;color:#37422d;background:#eef0e4;font-size:11px;font-weight:700;line-height:1;text-shadow:none}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-unit>small{position:absolute;display:block;width:1px;height:1px;max-width:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-unit>i{position:absolute;right:1px;bottom:1px;display:block;width:6px;height:6px;overflow:hidden;border:1px solid #fff7ec;border-radius:50%;padding:0;color:transparent;background:var(--accent);font-size:0;box-shadow:none}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-heroes{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;min-width:0;max-width:100%;gap:8px 18px;padding:0;overflow:visible}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-hero{display:flex;flex:0 0 auto;align-items:flex-start;gap:4px;min-width:0;padding:0;border:0;background:transparent}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-hero-name{display:block;width:var(--ab-icon)}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-hero-name .ab-unit-image{width:var(--ab-icon);height:var(--ab-icon)}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-hero-name .ab-unit-image img{width:calc(var(--ab-icon) - 2px);height:calc(var(--ab-icon) - 2px);border-radius:4px;object-fit:contain}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-hero-name strong{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-loadout{display:grid;grid-template-columns:repeat(2,22px);grid-template-rows:repeat(2,22px);width:46px;gap:2px}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-loadout-item,body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-loadout-item .ab-unit-image{display:block;width:22px;height:22px}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-loadout-item .ab-unit-image img{width:20px;height:20px;object-fit:contain}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-loadout-item small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-loadout-pet{grid-column:2;grid-row:1/3;align-self:center}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-loadout-equipment[data-slot="0"]{grid-column:1;grid-row:1}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-loadout-equipment[data-slot="1"]{grid-column:1;grid-row:2}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-loadout-kind{border:0;color:#546045;background:var(--surface-2);font-size:5px}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-none{align-self:center;margin:0;color:#72786a;font-size:11px;line-height:1.5}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-castle>.ab-preview-groups{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 18px;min-width:0;width:100%;max-width:100%;padding:0;overflow:visible}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-castle .ab-preview-group{display:flex;flex-direction:column;gap:4px;max-width:100%}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-castle .ab-preview-group>header{flex-direction:row;align-items:baseline;gap:6px;padding:0}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-castle .ab-preview-group>header strong{font-size:9px;color:var(--muted);font-weight:400}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-castle .ab-preview-group>header span{font-size:9px}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-castle .ab-preview-units{display:flex;flex-wrap:wrap;gap:6px;width:auto;max-width:100%}
body.army-copy-route .ab-catalog .ab-library-empty{margin:20px 0;padding:32px 0;color:var(--muted);font-size:13px;text-align:center}
body.army-copy-route .ab-catalog .ab-drafts{margin-top:32px;border-top:1px solid var(--line);padding:18px 0}
body.army-copy-route .ab-drafts summary{color:#545c49;font-size:13px;cursor:pointer}
body.army-copy-route .ab-drafts summary>span{margin-left:10px;color:#878b7e;font-size:10px}
body.army-copy-route .ab-drafts>p{margin:20px 0;text-align:left}
body.army-copy-route .ab-copy-detail .ab-detail-nav{display:flex;justify-content:space-between;gap:20px;margin:0 0 32px;font-size:12px}
body.army-copy-route .ab-detail-nav a{text-decoration:none;color:var(--muted)}
body.army-copy-route .ab-copy-detail .ab-top h1{max-width:760px;font-size:clamp(32px,4.5vw,52px)}
body.army-copy-route .ab-copy-detail .ab-top .ab-detail-tags{margin-top:18px}
body.army-copy-route .ab-copy-detail .ab-top-actions{flex:none;align-items:flex-end}
body.army-copy-route .ab-guide-section{max-width:760px;padding:26px 0}
body.army-copy-route .ab-guide-section h2{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:24px;font-weight:400}
body.army-copy-route .ab-detail-guide{color:#73766a;font-size:13px;line-height:1.8}
body.army-copy-route .ab-detail-footer{display:flex;gap:24px;align-items:center;padding:24px 0;border-top:1px solid var(--line)}
body.army-copy-route .ab-detail-footer button,body.army-copy-route .ab-detail-footer a{border:0;padding:0;color:var(--muted);background:transparent;font:inherit;font-size:11px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
@media(max-width:1000px){
 body.army-copy-route .ab-catalog .ab-army-card>header{align-items:flex-start;flex-wrap:wrap}
 body.army-copy-route .ab-copy-detail .ab-top{align-items:flex-start;flex-direction:column}
}
@media(max-width:760px){
 body.army-copy-route #app{width:calc(100% - 32px);padding-top:30px}
 body.army-copy-route .ab-catalog .ab-top{align-items:flex-start;flex-direction:column;margin-bottom:24px;gap:18px}
 body.army-copy-route .ab-catalog .ab-top h1{font-size:44px}
 body.army-copy-route .ab-catalog-filters{display:grid;grid-template-columns:1fr 1fr;gap:14px;width:100%}
 body.army-copy-route .ab-catalog-filters .ab-search-field{grid-column:1/-1;max-width:none}
 body.army-copy-route .ab-catalog .ab-catalog-toolbar{display:block;padding:16px 0}
 body.army-copy-route .ab-catalog .ab-army-card>header{flex-direction:column;gap:18px}
 body.army-copy-route .ab-catalog .ab-army-card>header>.ab-card-heading{flex-direction:row;gap:12px}
 body.army-copy-route .ab-card-title h3{font-size:23px}
 body.army-copy-route .ab-catalog .ab-library-actions{width:100%;justify-content:flex-start}
}
@media(prefers-reduced-motion:no-preference){body.army-copy-route :is(.ab-catalog,.ab-copy-detail) :is(a,button){transition:background-color .15s,color .15s,border-color .15s}}
body.army-copy-route .ab-catalog .ab-preview-loadout>.ab-preview-none{grid-column:1/-1;font-size:9px}
/* Keep paper controls legible when the surrounding site's saved theme is dark. */
html[data-theme] body.army-copy-route .ab-catalog-filters :is(input,select){border-color:var(--line)!important;color:var(--ink)!important;background:var(--surface)!important;box-shadow:none!important}
html[data-theme] body.army-copy-route .ab-catalog-filters input::placeholder{color:var(--muted)!important}
html[data-theme] body.army-copy-route :is(.mobile-search-button,.header-search){border-color:var(--line)!important;color:var(--ink)!important;background:var(--surface)!important}
html[data-theme] body.army-copy-route .site-header .brand-shield{border-color:var(--accent)!important;color:#fff8ee!important;background:var(--accent)!important}

/* Compact row rhythm for the collection and responsive compositions. */
body.army-copy-route #app{padding-top:30px}
body.army-copy-route .ab-catalog .ab-top{margin-bottom:22px}
body.army-copy-route .ab-catalog .ab-top h1{margin:0;font-family:inherit;font-size:36px;font-weight:650;letter-spacing:-.03em}
body.army-copy-route .ab-catalog .ab-catalog-toolbar{padding:14px 0}
body.army-copy-route .ab-catalog .ab-library-list>.ab-army-card{padding:18px 0 20px}
body.army-copy-route .ab-catalog .ab-card-title h3{margin:0 0 6px;font-family:inherit;font-size:17px;font-weight:600;line-height:1.35;letter-spacing:-.015em}
body.army-copy-route .ab-catalog .ab-army-card>header>.ab-card-heading{gap:12px}
body.army-copy-route .ab-catalog .ab-library-actions :is(a,button){min-height:34px;padding:0 12px}
body.army-copy-route .ab-catalog .ab-library-actions .ab-card-detail{padding:0 2px}
body.army-copy-route .ab-copy-detail .ab-build-preview{--ab-icon:54px;--ab-label:100px;margin-top:0;gap:14px;padding-top:18px}
body.army-copy-route .ab-copy-detail .ab-preview-unit{height:84px}
body.army-copy-route .ab-copy-detail .ab-preview-unit>small{position:static;width:100%;max-width:none;height:28px;margin-top:3px;overflow:hidden;clip-path:none;color:var(--muted);font-size:9px;line-height:14px;text-align:center;white-space:normal;overflow-wrap:normal}
body.army-copy-route .ab-copy-detail .ab-preview-hero-name strong{position:static;display:block;width:100%;height:28px;margin-top:3px;overflow:hidden;clip-path:none;color:var(--muted);font-size:9px;font-weight:400;line-height:14px;text-align:center;white-space:normal}
body.army-copy-route .ab-copy-detail .ab-preview-loadout{grid-template-columns:repeat(2,26px);grid-template-rows:repeat(2,26px);width:54px}
body.army-copy-route .ab-copy-detail .ab-preview-loadout-item,body.army-copy-route .ab-copy-detail .ab-preview-loadout-item .ab-unit-image{width:26px;height:26px}
body.army-copy-route .ab-copy-detail .ab-preview-loadout-item .ab-unit-image img{width:24px;height:24px}
@media(max-width:1000px){
}
@media(max-width:760px){
 body.army-copy-route .ab-catalog .ab-army-card>header{gap:10px}
 body.army-copy-route .ab-catalog .ab-library-actions{padding-left:64px;gap:6px}
 body.army-copy-route .ab-catalog .ab-card-title h3{font-size:16px}
 body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-build-preview{--ab-icon:42px;--ab-label:72px;gap:10px;margin-top:12px}
 body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-army>.ab-preview-groups{flex-direction:column;gap:10px}
 body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-army :is(.ab-preview-spells,.ab-preview-sieges){width:100%}
 body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-heroes{gap:8px 12px}
 body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-group>header :is(strong,span),body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-preview-section>header h3{font-size:10px}
 body.army-copy-route .ab-copy-detail .ab-preview-unit{height:73px}
 body.army-copy-route .ab-copy-detail .ab-preview-loadout{grid-template-columns:repeat(2,22px);grid-template-rows:repeat(2,22px);width:46px}
 body.army-copy-route .ab-copy-detail .ab-preview-loadout-item,body.army-copy-route .ab-copy-detail .ab-preview-loadout-item .ab-unit-image{width:22px;height:22px}
 body.army-copy-route .ab-copy-detail .ab-preview-loadout-item .ab-unit-image img{width:20px;height:20px}
}

body.army-copy-route .ab-copy-detail .ab-detail-guide{overflow-wrap:anywhere}

body.army-copy-route .ab-copy-detail .ab-top h1{max-width:100%;font-family:inherit;font-size:clamp(24px,3vw,32px);font-weight:600;line-height:1.25;letter-spacing:-.02em}

/* Composition conditions share a flat toolbar and combine with catalog filters. */
body.army-copy-route .ab-content-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
body.army-copy-route .ab-content-filters>label:not(.ab-content-castle){display:grid;gap:6px}
body.army-copy-route .ab-content-filters label>span{color:var(--muted);font-size:10px}
body.army-copy-route .ab-content-picker{flex:0 1 240px;min-width:0}
body.army-copy-route .ab-content-minimum{flex:0 0 70px}
html[data-theme] body.army-copy-route .ab-content-filters :is(select,input[type=number]){box-sizing:border-box;width:100%;height:36px;border:1px solid var(--line)!important;border-radius:4px;padding:0 9px;color:var(--ink)!important;background:var(--surface)!important;box-shadow:none!important;font:inherit;font-size:12px}
body.army-copy-route .ab-content-filters>button{height:36px;border:1px solid var(--line);border-radius:4px;padding:0 14px;color:var(--ink);background:transparent;font:inherit;font-size:11px;font-weight:600;cursor:pointer}
body.army-copy-route .ab-content-filters>button:disabled{opacity:.4;cursor:default}
body.army-copy-route .ab-content-castle{display:flex;align-items:center;gap:7px;min-height:36px;margin-left:4px;cursor:pointer}
body.army-copy-route .ab-content-castle input{width:14px;height:14px;margin:0;accent-color:var(--accent)}
body.army-copy-route .ab-content-conditions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;min-width:0}
body.army-copy-route .ab-content-condition{display:flex;align-items:center;gap:6px;min-height:32px;border-radius:4px;padding:0 5px 0 9px;color:#515b43;background:var(--surface-2);font-size:11px}
body.army-copy-route .ab-content-condition label{display:flex;align-items:center;gap:4px}
html[data-theme] body.army-copy-route .ab-content-condition input[type=number]{width:50px;height:25px;padding:0 4px;border-color:transparent!important;background:var(--surface-2)!important;font-size:11px}
body.army-copy-route .ab-content-condition button{width:27px;height:30px;border:0;padding:0;color:#656c5b;background:transparent;font-size:17px;cursor:pointer}
body.army-copy-route .ab-content-hint{color:#73796a;font-size:10px}
body.army-copy-route .ab-content-clear{height:30px;border:0;padding:0 3px;color:#73796a;background:transparent;font:inherit;font-size:10px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media(max-width:760px){body.army-copy-route .ab-content-filters{gap:10px}body.army-copy-route .ab-content-filters .ab-content-picker{flex:1 1 160px}body.army-copy-route .ab-content-filters .ab-content-minimum{flex-basis:60px}body.army-copy-route .ab-content-filters .ab-content-castle{flex-basis:100%;min-height:26px;margin-left:0}}

/* Manual meta selection shares the existing flat filter layout. */
body.army-copy-route .ab-detail-tags .ab-meta-badge{color:#7c3825;background:#f1e4db;font-weight:600}
.ab-admin-filters{display:flex;flex-wrap:wrap;align-items:end;gap:16px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--line,var(--line))}
.ab-admin-filters label{display:grid;min-width:130px;gap:8px;font-size:12px}
.ab-admin-filters label>span{color:var(--muted,var(--muted));font-size:11px}
.ab-admin-filters .ab-admin-search{flex:1;max-width:400px;min-width:180px}
.ab-admin-filters :is(input,select){box-sizing:border-box;width:100%;min-width:0;height:40px;padding:0 10px;border:1px solid var(--line,var(--line));border-radius:4px;background:var(--surface,var(--surface));color:inherit;font:inherit}
.ab-army-admin .ab-meta-toggle[aria-pressed="true"]{border-color:var(--accent);color:var(--accent)}
.ab-library-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;color:var(--ab-soft);font-size:12px}
body.army-copy-route .ab-catalog .ab-library-pagination .ab-library-actions{width:auto;max-width:100%;padding-left:0}
.ab-library-pagination button:disabled{opacity:.45;cursor:default}
.ab-army-admin .ab-library-actions{flex-wrap:wrap;max-width:100%;min-width:0}
.ab-army-admin .ab-library-list article>header>div:first-child{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){.ab-admin-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ab-admin-filters label{min-width:0}.ab-admin-filters .ab-admin-search{grid-column:1/-1;max-width:none;min-width:0}}

/* Saved armies and player availability use flat, compact controls. */
body.army-copy-route .ab-library-profile{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0;padding:0 0 22px}
body.army-copy-route .ab-library-profile>label{display:grid;flex:1 1 220px;max-width:300px;min-width:0;gap:8px;font-size:10px;color:var(--muted)}
html[data-theme] body.army-copy-route .ab-library-profile input{box-sizing:border-box;width:100%;height:38px;padding:0 11px;border:1px solid var(--line)!important;border-radius:4px;background:var(--surface)!important;color:var(--ink)!important;box-shadow:none!important;font:inherit;font-size:12px}
body.army-copy-route .ab-library-profile>button{min-height:38px;border:1px solid var(--line);border-radius:4px;padding:0 14px;color:var(--ink);background:transparent;font:inherit;font-size:11px;cursor:pointer}
body.army-copy-route .ab-library-profile .ab-profile-clear{border-color:transparent;color:var(--muted);padding:0 4px}
body.army-copy-route .ab-library-profile-status{display:grid;flex:1 1 200px;min-width:0;gap:4px;padding-bottom:2px;overflow-wrap:anywhere;font-size:11px;color:var(--muted)}
body.army-copy-route .ab-library-profile-status strong{font-size:12px;font-weight:600;color:var(--ink)}
body.army-copy-route .ab-library-profile-status .ab-profile-message{color:#924630}
body.army-copy-route .ab-library-switches{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;grid-column:1/-1}
body.army-copy-route .ab-catalog-filters .ab-library-switches label{display:inline-flex;align-items:center;min-width:0;gap:8px;min-height:38px;cursor:pointer}
html[data-theme] body.army-copy-route .ab-library-switches input[type=checkbox]{width:15px;height:15px;margin:0;padding:0;accent-color:var(--accent);flex:none}
body.army-copy-route .ab-library-switches label:has(input:disabled){opacity:.5;cursor:default}
body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-favorite-button[aria-pressed="true"]{color:var(--accent);border-color:var(--accent);background:transparent}
body.army-copy-route .ab-profile-match{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 16px;margin-top:12px;color:var(--muted);font-size:10px;line-height:1.6;overflow-wrap:anywhere}
body.army-copy-route .ab-profile-match>strong{color:#546244;font-weight:600}
body.army-copy-route .ab-profile-match.is-missing>strong{color:#924630}
body.army-copy-route .ab-profile-match>span{flex-basis:100%}
body.army-copy-route .ab-profile-match details{min-width:0;max-width:100%}
body.army-copy-route .ab-profile-match summary{cursor:pointer;color:var(--muted)}
body.army-copy-route .ab-profile-match ul{margin:6px 0 0;padding-left:16px}
@media(max-width:760px){body.army-copy-route .ab-library-profile>label{flex-basis:100%;max-width:none}body.army-copy-route .ab-library-profile-status{flex-basis:100%}body.army-copy-route .ab-catalog-filters .ab-library-switches label{min-height:28px}}

/* Profile advice shares the library's flat layout and restrained separators. */
body.army-copy-route .ab-recommend{margin:0 0 28px;padding:20px 0 28px;border-bottom:1px solid var(--line);color:var(--ink)}
body.army-copy-route .ab-recommend form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px}
body.army-copy-route .ab-recommend form>label{display:grid;gap:8px;min-width:0;flex:0 1 240px;color:var(--muted);font-size:11px}
html[data-theme] body.army-copy-route .ab-recommend :is(input,select){height:40px;width:100%;padding:0 11px;border:1px solid var(--line)!important;border-radius:4px;background:var(--surface)!important;color:var(--ink)!important;font-size:13px;box-shadow:none!important}
body.army-copy-route .ab-recommend button{min-height:40px;padding:8px 14px;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--ink);font-size:12px;cursor:pointer}
body.army-copy-route .ab-recommend button:disabled{opacity:.6;cursor:wait}
body.army-copy-route .ab-recommend-message{flex-basis:100%;min-height:1em;margin:0;color:var(--muted);font-size:12px}
body.army-copy-route .ab-recommend-context{display:flex;flex-wrap:wrap;gap:8px 24px;margin:24px 0 12px;color:var(--muted);font-size:12px}
body.army-copy-route .ab-recommend-context strong{color:var(--ink);font-size:14px}
body.army-copy-route .ab-recommend-row{padding:24px 0;border-top:1px solid var(--line);min-width:0;overflow-wrap:anywhere}
body.army-copy-route .ab-recommend-row>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
body.army-copy-route .ab-recommend-row h3{margin:7px 0 0;font-size:17px;font-weight:600;color:var(--ink);line-height:1.4}
body.army-copy-route .ab-recommend-status{font-size:11px;font-weight:600}
body.army-copy-route .ab-recommend-conditional,body.army-copy-route .ab-recommend-ready{color:#526f4b}
body.army-copy-route .ab-recommend-upgrade{color:#a85431}
body.army-copy-route .ab-recommend-unknown{color:var(--muted)}
body.army-copy-route .ab-recommend-score{flex:none;padding-top:4px;color:var(--muted);font-size:11px}
body.army-copy-route .ab-recommend :is(p,li){font-size:12px;line-height:1.7}
body.army-copy-route .ab-recommend-reason{max-width:900px;margin:12px 0 6px;color:var(--muted)}
body.army-copy-route .ab-recommend-priority{margin:6px 0 12px}
body.army-copy-route .ab-recommend summary{padding:8px 0;cursor:pointer;font-size:12px;font-weight:600;color:var(--ink)}
body.army-copy-route .ab-recommend h4{margin:24px 0 10px;font-size:13px;font-weight:600}
body.army-copy-route .ab-recommend :is(ul,ol){margin:8px 0;padding-left:20px}
body.army-copy-route .ab-recommend li{margin:7px 0}
body.army-copy-route .ab-recommend-upgrades li :is(span,small){display:block;color:var(--muted)}
body.army-copy-route .ab-recommend-note{margin:16px 0;color:var(--muted)}
body.army-copy-route .ab-recommend-table-scroll{max-width:100%;overflow-x:auto}
body.army-copy-route .ab-recommend table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}
body.army-copy-route .ab-recommend :is(th,td){padding:10px 12px 10px 0;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.6}
body.army-copy-route .ab-recommend th{font-weight:600;color:var(--muted)}
body.army-copy-route .ab-recommend-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin:20px 0 0}
body.army-copy-route .ab-recommend-actions a{color:var(--ink);font-size:12px}
body.army-copy-route .ab-recommend-warnings{color:#a85431}
@media(max-width:600px){
  body.army-copy-route .ab-recommend form>label{flex-basis:calc(50% - 7px)}
  body.army-copy-route .ab-recommend form>button{width:100%}
  body.army-copy-route .ab-recommend-row>header{flex-wrap:wrap;gap:4px}
  body.army-copy-route .ab-recommend-levels td:last-child{min-width:170px}
  body.army-copy-route .ab-top-actions [data-recommend-toggle]{max-width:100%;white-space:normal}
}

/* Public composition advice uses the library's warm, flat visual language. */
body.army-copy-route .ab-army-ask{margin:0 0 28px;padding:20px 0 24px;border-block:1px solid var(--line);color:var(--ink)}
body.army-copy-route .ab-army-ask>h2{margin:0 0 16px;font-family:inherit;font-size:18px;font-weight:600;letter-spacing:-.02em}
body.army-copy-route .ab-army-ask form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
body.army-copy-route .ab-army-ask form>label{display:grid;gap:7px;min-width:0;font-size:12px;color:var(--muted)}
body.army-copy-route .ab-army-ask .ab-ask-query{flex:1 1 300px}
body.army-copy-route .ab-army-ask .ab-ask-th{flex:0 0 90px}
html[data-theme] body.army-copy-route .ab-army-ask :is(input,select){box-sizing:border-box;width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--line)!important;border-radius:4px;background:var(--surface)!important;color:var(--ink)!important;font:inherit;font-size:13px;box-shadow:none!important}
html[data-theme] body.army-copy-route .ab-army-ask input::placeholder{color:var(--muted)!important}
body.army-copy-route .ab-army-ask button{min-height:44px;padding:9px 16px;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--ink);font:inherit;font-size:12px;cursor:pointer}
body.army-copy-route .ab-army-ask button[type=submit]{border-color:var(--accent);background:var(--accent);color:var(--surface)}
body.army-copy-route .ab-army-ask button:disabled{opacity:.55;cursor:wait}
body.army-copy-route .ab-army-ask .ab-ask-status{flex-basis:100%;min-height:1em;margin:0;overflow-wrap:anywhere;color:var(--muted);font-size:12px;line-height:1.6}
body.army-copy-route .ab-army-ask>.ab-library-help{margin:10px 0 0;line-height:1.6}
@media(max-width:600px){body.army-copy-route :is(.ab-catalog,.ab-copy-detail) .ab-build-preview{--ab-label:90px}}
body.army-copy-route .ab-ask-result{padding:22px 0;border-top:1px solid var(--line);min-width:0;overflow-wrap:anywhere}
body.army-copy-route .ab-ask-result:first-child{margin-top:22px}
body.army-copy-route .ab-ask-result>header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:14px}
body.army-copy-route .ab-ask-result .ab-card-title{min-width:0;flex:1 1 200px}
body.army-copy-route .ab-ask-result .ab-card-title>span{color:var(--muted);font-size:11px}
body.army-copy-route .ab-army-ask .ab-library-actions{padding-left:0}
body.army-copy-route .ab-ask-explanation{max-width:900px;margin:14px 0 10px;color:var(--muted);font-size:13px;line-height:1.7}
body.army-copy-route .ab-ask-warnings{margin:14px 0;padding-left:20px;color:var(--muted);font-size:12px;line-height:1.7}
body.army-copy-route .ab-model-status{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 12px;margin-top:9px;min-width:0;color:var(--muted);font-size:11px;line-height:1.6;font-variant-numeric:tabular-nums}
body.army-copy-route .ab-model-status>strong{font-size:12px;font-weight:600}
body.army-copy-route .ab-model-status.is-scored>strong{color:var(--ink)}
body.army-copy-route .ab-model-status>small{flex-basis:100%;font-size:10px;line-height:1.6}
@media(max-width:760px){body.army-copy-route .ab-army-ask{padding-top:18px}body.army-copy-route .ab-army-ask .ab-ask-query{flex-basis:100%}body.army-copy-route .ab-army-ask .ab-ask-th{flex:1 1 90px}body.army-copy-route .ab-army-ask form>button{flex:1 1 180px}body.army-copy-route .ab-ask-result>header{flex-direction:column}body.army-copy-route .ab-ask-result .ab-card-title{flex-basis:auto}body.army-copy-route .ab-model-status{gap:3px 8px}body.army-copy-route .ab-model-status>span{flex-basis:100%}}

/* Daily intake stays within the existing cream, olive and terracotta palette. */
.ab-automatic-summary{margin:0 0 24px;padding:16px 0;border-block:1px solid var(--ab-line,var(--line));color:var(--ab-soft,var(--muted));font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.ab-automatic-summary>div{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:baseline}
.ab-automatic-summary strong{color:var(--ab-ink,var(--ink));font-size:14px;font-weight:600}
.ab-automatic-summary p{margin:5px 0 0}.ab-automatic-summary details{margin-top:10px}.ab-automatic-summary summary{cursor:pointer}.ab-daily-coverage{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:7px}.ab-daily-warning{color:#924630}
.ab-automatic-source{display:flex;flex-wrap:wrap;gap:3px 12px;margin-top:8px;min-width:0;font-size:11px;line-height:1.6;color:var(--ab-soft,var(--muted));overflow-wrap:anywhere}
.ab-automatic-source strong{color:var(--ab-accent,var(--accent));font-weight:600}.ab-automatic-source span{flex-basis:100%}
.ab-admin-import{margin:0 0 24px;padding:20px 0;border-bottom:1px solid var(--ab-line,var(--line))}.ab-admin-import h2{font-family:inherit;font-size:18px;font-weight:600;line-height:1.3;margin:0 0 15px}.ab-admin-import form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}.ab-admin-import label{display:grid;gap:7px;min-width:0;font-size:12px;color:var(--ab-soft,var(--muted))}.ab-admin-import .ab-import-url{flex:1 1 300px}.ab-admin-import input,.ab-admin-import select{box-sizing:border-box;width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--ab-line,var(--line));border-radius:4px;color:var(--ab-ink,var(--ink));background:var(--ab-surface,var(--surface));font:inherit;font-size:13px}.ab-admin-import button{min-height:44px;padding:9px 16px;border:1px solid var(--ab-accent,var(--accent));border-radius:4px;background:var(--ab-accent,var(--accent));color:var(--ab-surface,var(--surface));font:inherit;font-size:12px;cursor:pointer}.ab-admin-import button:disabled{opacity:.55;cursor:wait}.ab-admin-import p{margin:10px 0 0;color:var(--ab-soft,var(--muted));font-size:12px}
@media(max-width:600px){.ab-admin-import .ab-import-url{flex-basis:100%}.ab-admin-import label:not(.ab-import-url){flex:1 1 100px}.ab-admin-import button{flex:1 1 200px}.ab-automatic-summary>div{gap:3px 12px}}
/* Publication controls and intake history belong to the protected army manager. */
.ab-army-admin :is(.ab-admin-thresholds,.ab-admin-recent){margin:0 0 24px;padding:18px 0 22px;border-bottom:1px solid var(--ab-line,var(--line));overflow-wrap:anywhere}
.ab-army-admin :is(.ab-admin-thresholds,.ab-admin-recent) h2{margin:0 0 15px;font-family:inherit;font-size:18px;font-weight:600;line-height:1.4}
.ab-army-admin :is(.ab-admin-thresholds,.ab-admin-rename) form,.ab-army-admin .ab-admin-rename{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.ab-army-admin :is(.ab-admin-thresholds,.ab-admin-rename) label{display:grid;gap:7px;min-width:0;flex:1 1 165px;font-size:12px;color:var(--ab-soft,var(--muted))}
html[data-theme] .ab-army-admin :is(.ab-admin-thresholds,.ab-admin-rename) input{box-sizing:border-box;width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--ab-line,var(--line))!important;border-radius:4px;background:var(--ab-surface,var(--surface))!important;color:var(--ab-ink,var(--ink))!important;font:inherit;font-size:13px;box-shadow:none!important}
.ab-army-admin :is(.ab-admin-thresholds,.ab-admin-rename) button{min-height:44px;padding:9px 16px;border:1px solid var(--ab-accent,var(--accent));border-radius:4px;background:var(--ab-accent,var(--accent));color:var(--ab-surface,var(--surface));font:inherit;font-size:12px;cursor:pointer}
.ab-army-admin :is(.ab-admin-thresholds,.ab-admin-rename) button:disabled{opacity:.55;cursor:wait}
.ab-army-admin .ab-admin-thresholds p{margin:10px 0 0;max-width:900px;color:var(--ab-soft,var(--muted));font-size:12px;line-height:1.7}
.ab-army-admin .ab-admin-recent ol{margin:0;padding-left:20px}.ab-army-admin .ab-admin-recent li{padding:5px 0;font-size:12px;line-height:1.6}.ab-army-admin .ab-admin-recent li a{color:var(--ab-ink,var(--ink))}.ab-army-admin .ab-admin-recent li span{display:block;color:var(--ab-soft,var(--muted));font-variant-numeric:tabular-nums}
.ab-army-admin .ab-admin-rename{margin:15px 0}.ab-army-admin .ab-admin-rename label{flex:1 1 250px}.ab-army-admin .ab-admin-rename [data-admin-rename-cancel]{background:transparent;color:var(--ab-ink,var(--ink));border-color:var(--ab-line,var(--line))}
@media(max-width:600px){.ab-army-admin .ab-admin-thresholds label{flex-basis:calc(50% - 6px)}.ab-army-admin .ab-admin-thresholds button{flex:1 1 100%}.ab-army-admin .ab-admin-rename label{flex-basis:100%}.ab-army-admin .ab-admin-rename button{flex:1 1 100px}}

.ab-ask-options{display:flex;flex-direction:column;gap:10px;grid-column:1/-1;min-width:0}.ab-ask-options label{display:flex;align-items:center;gap:9px;flex-direction:row!important;font-weight:500}.ab-ask-options input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;accent-color:var(--ab-accent)}.ab-ask-options small{color:var(--ab-soft);overflow-wrap:anywhere}

.ab-admin-insights{padding:20px;border:1px solid var(--ab-line);border-radius:18px;background:var(--ab-surface);margin:18px 0;min-width:0}.ab-admin-insights h2,.ab-admin-insights h3{color:var(--ab-ink)}.ab-admin-insights p{color:var(--ab-soft);line-height:1.6;overflow-wrap:anywhere}.ab-admin-insights table{width:100%;border-collapse:collapse}.ab-admin-insights td,.ab-admin-insights th{padding:10px;text-align:left;border-bottom:1px solid var(--ab-line);min-width:110px}.ab-admin-insights td:first-child{min-width:190px}.ab-admin-insights small{display:block;color:var(--ab-soft);margin-top:5px}.ab-admin-insight-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:14px 0}.ab-admin-insight-controls label{display:grid;gap:7px;flex:1 1 150px;min-width:0}.ab-admin-insight-controls input,.ab-admin-insight-controls select{width:100%;min-width:0;min-height:42px}.ab-admin-insight-check{display:flex;gap:9px;align-items:center;margin:15px 0}.ab-admin-insights .ab-recommend-table-scroll{max-width:100%;overflow-x:auto}
.ab-admin-game-patch{margin:22px 0;padding:18px 0;border-block:1px solid var(--ab-line);min-width:0;overflow-wrap:anywhere}.ab-admin-game-patch h3{margin-top:0}.ab-admin-game-patch a{color:var(--ab-accent);font-size:12px}.ab-admin-patch-status{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:16px;margin:16px 0}.ab-admin-patch-status>div{min-width:0;border-left:2px solid var(--ab-line);padding-left:12px}.ab-admin-patch-status dt{font-size:12px;color:var(--ab-soft);margin-bottom:6px}.ab-admin-patch-status dd{margin:0;font-size:14px;line-height:1.5;color:var(--ab-ink)}.ab-admin-patch-note{border-top:1px solid var(--ab-line);padding:13px 0;min-width:0}.ab-admin-patch-note summary{cursor:pointer;line-height:1.5;color:var(--ab-ink)}.ab-admin-patch-note summary>span{font-weight:600}.ab-admin-patch-note summary small{font-weight:400}.ab-admin-patch-note p{font-size:12px;margin:10px 0}.ab-admin-patch-units{padding-left:20px;margin:12px 0;display:grid;gap:12px}.ab-admin-patch-units li{min-width:0;font-size:13px}.ab-admin-patch-units p{margin:5px 0}.ab-admin-patch-note:not([open]){padding-bottom:13px}

.ab-admin-patch-rules{margin:14px 0;padding:12px 14px;background:var(--ab-surface);border:1px solid var(--ab-line);border-radius:8px;font-size:12px;line-height:1.6}.ab-admin-patch-rules p{margin:0 0 8px}.ab-admin-patch-rules p:last-child{margin-bottom:0}.ab-admin-patch-rules summary{cursor:pointer}.ab-admin-patch-rules ul{padding-left:20px;margin:8px 0 0}
