/* compact controls and square-corner builder for mobile-first use. */
#tcModule .tc-builder-view .tc-catalog-panel,#tcModule .tc-builder-view .tc-roster-panel,#tcModule .tc-builder-view .tc-unit-card,#tcModule .tc-builder-view button,#tcModule .tc-builder-view input,#tcModule .tc-builder-view select,#tcModule .tc-builder-view textarea,#tcModule .tc-builder-view .tc-validation,#tcModule .tc-builder-view .tc-catalog-shortcuts a{border-radius:0!important}
#tcModule .tc-category-fold{border:1px solid var(--tc-edge);padding:0;margin:9px 0;background:var(--tc-card)}
#tcModule .tc-category-fold>summary,#tcModule .tc-mercenary-fold>summary,#tcModule .tc-roster-setup>summary,#tcModule .tc-kit-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;font-size:12px;font-weight:850;letter-spacing:.045em;padding:13px 14px;min-height:46px;box-sizing:border-box;user-select:none}
#tcModule .tc-category-fold>summary::-webkit-details-marker,#tcModule .tc-mercenary-fold>summary::-webkit-details-marker,#tcModule .tc-roster-setup>summary::-webkit-details-marker,#tcModule .tc-kit-fold>summary::-webkit-details-marker{display:none}
#tcModule .tc-category-fold>summary:after,#tcModule .tc-mercenary-fold>summary:after,#tcModule .tc-roster-setup>summary:after,#tcModule .tc-kit-fold>summary:after{content:'+';font-size:20px;line-height:1;flex:none;margin-left:auto}
#tcModule .tc-category-fold[open]>summary:after,#tcModule .tc-mercenary-fold[open]>summary:after,#tcModule .tc-roster-setup[open]>summary:after,#tcModule .tc-kit-fold[open]>summary:after{content:'−'}
#tcModule .tc-category-fold>summary small,#tcModule .tc-roster-setup>summary small,#tcModule .tc-kit-fold>summary small{font-size:10px;letter-spacing:0;color:var(--tc-muted,var(--muted));font-weight:600}
#tcModule .tc-category-content,#tcModule .tc-mercenary-content{padding:0 10px 10px}
#tcModule .tc-mercenary-fold{display:block;min-height:0!important}
#tcModule .tc-mercenary-fold>summary{border-bottom:0}
#tcModule .tc-mercenary-fold .tc-catalog-head{margin:0;padding:13px 14px}
#tcModule .tc-roster-setup{border:1px solid var(--tc-edge);margin:10px 0}
#tcModule .tc-roster-setup>.tc-warband-meta{padding:0 12px 12px;margin:0}
#tcModule .tc-kit-fold{margin-top:8px;border:1px solid var(--tc-edge);padding:0}
#tcModule .tc-kit-fold>summary{padding:9px 10px;min-height:42px;font-size:10px}
#tcModule .tc-kit-body{padding:0 10px 10px}
#tcModule .tc-builder-view details>summary:focus-visible{outline:2px solid var(--tc-gold);outline-offset:-2px}
#tcModule .tc-roster-panel .tc-total{position:sticky;top:0;z-index:2;background:var(--tc-card);border:1px solid var(--tc-edge);padding:10px;margin:10px 0}
#tcModule .tc-roster-unit-head strong{font-size:12px}
#tcModule .tc-catalog-shortcuts a{min-height:44px}
@media(max-width:1100px){#tcModule .tc-roster-panel .tc-total{position:static}}
@media(max-width:700px){#tcModule .tc-builder-view .tc-unit-stats{display:none}#tcModule .tc-builder-view .tc-unit-main h4{margin-bottom:3px}#tcModule .tc-builder-view .tc-catalog-panel{padding:8px!important}#tcModule .tc-builder-view .tc-roster-panel{padding:12px!important}#tcModule .tc-builder-view .tc-unit-card{padding:10px}#tcModule .tc-builder-view .tc-unit-foot button,#tcModule .tc-builder-view .tc-model-remove,#tcModule .tc-builder-view .tc-model-eye{min-height:44px;min-width:44px}#tcModule .tc-builder-view .tc-roster-panel .tc-save-warband{min-height:48px}#tcModule .tc-roster-unit{padding:8px 0}#tcModule .tc-catalog-shortcuts{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:6px}#tcModule .tc-catalog-shortcuts a{white-space:nowrap;flex:none}}

/* readable catalogue search with mobile-sized touch targets. */
#tcModule .tc-builder-view .tc-catalog-search{margin:10px 0;padding:10px;background:var(--tc-card);border:1px solid var(--tc-edge);border-radius:0}
#tcModule .tc-catalog-search>label{display:block;font-size:11px;font-weight:800;letter-spacing:.04em;margin-bottom:7px}
#tcModule .tc-catalog-search-row{display:flex;gap:6px}
#tcModule .tc-catalog-search-row input{flex:1;min-width:0;min-height:44px;padding:9px 12px;border:1px solid var(--tc-edge);background:var(--tc-bg,var(--tc-card));color:inherit;border-radius:0}
#tcModule .tc-catalog-search-row button{flex:none;min-width:44px;min-height:44px;border:1px solid var(--tc-edge);border-radius:0;font-size:23px}
#tcModule #tcSearchCount{display:block;font-size:11px;margin-top:5px;color:var(--tc-muted,var(--muted))}
#tcModule .tc-catalog-stack .tc-unit-card[hidden],#tcModule .tc-catalog-stack details[hidden],#tcModule [data-tc-clear-search][hidden]{display:none!important}
#tcModule .tc-catalog-search-row input:focus-visible{outline:2px solid var(--tc-gold);outline-offset:2px}
