.tatari-game-facts{margin-top:12px}.tatari-key-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:7px;margin:0 0 10px}.tatari-key-facts>div{background:rgba(126,193,242,.075);border:1px solid rgba(126,193,242,.16);border-radius:10px;padding:9px}.tatari-key-facts dt{font-size:11px;color:var(--muted,#afc0d5);line-height:1.4}.tatari-key-facts dd{margin:5px 0 0;font-size:15px;font-weight:750;color:var(--text,#dfedfc)}.tatari-all-facts>summary{font-size:13px;color:#92ccf8;cursor:pointer;padding:7px 0}.tatari-fact-group{padding:10px 0;border-top:1px solid var(--border,#30445e)}.tatari-fact-row{display:flex;justify-content:space-between;gap:18px;font-size:12px;line-height:1.6;padding:5px 0}.tatari-fact-row>span{color:var(--muted,#afc0d5)}.tatari-fact-row>strong{text-align:right;max-width:60%}.tatari-effect-definition{margin:4px 0 10px}.tatari-effect-definition>strong{font-size:13px;color:#b3dbfc}.tatari-effect-definition p{font-size:12px!important;line-height:1.6}.tatari-effect-tags{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.tatari-effect-tags span{border:1px solid rgba(131,201,250,.25);border-radius:20px;padding:4px 9px;font-size:11px;color:#bce2ff;background:rgba(131,201,250,.07)}
.tatari-motion-controls{margin:14px 0;text-align:center}.tatari-motion-controls>div{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.tatari-motion-controls button[aria-pressed=true]{border-color:#8acffb;color:#aeddff;background:rgba(127,196,245,.15)}.tatari-motion-controls button:disabled{opacity:.45;cursor:not-allowed}.tatari-motion-controls p{font-size:11px!important;line-height:1.5;margin:8px 0}.official-tatari-modal-art img.is-game-animation{width:300px!important;height:300px!important;object-fit:contain}.horde-detail-art:has(.is-game-animation){height:140px}.horde-detail-head:has(.is-game-animation){grid-template-columns:140px 1fr}.horde-detail-art img.is-game-animation{object-fit:contain;width:100%;height:100%}.tatari-source-note{font-size:11px;color:var(--muted);margin:10px 0}.horde-filters #horde-effect{grid-column:1/-1}.horde-coverage-controls{border:1px solid var(--border,#36516c);border-radius:12px;padding:12px;margin:14px 0}.horde-coverage-controls label{display:grid;gap:8px;font-size:13px;font-weight:650}.horde-coverage-controls select{width:100%;max-width:100%;min-height:42px;background:var(--panel,#142135);color:var(--text,#e4effb);border:1px solid var(--border,#36516c);padding:8px;border-radius:8px}.horde-cell.horde-coverage-range{border-color:#96d8ff;background:rgba(85,177,244,.23);box-shadow:inset 0 0 0 2px #72bbed}.horde-cell.horde-coverage-area{border-color:#81e4b4;background:rgba(82,204,146,.22);box-shadow:inset 0 0 0 2px #61c997}.horde-cell.horde-coverage-origin{outline:3px solid #ffd880;outline-offset:2px}.horde-coverage-controls p{line-height:1.5}.horde-info-panel .horde-skill-list{gap:12px}.horde-info-panel .horde-skill{padding:12px}.horde-info-panel .horde-skill>div{min-width:0}
@media(max-width:650px){.official-tatari-modal-art:has(img.is-game-animation){height:300px!important}.official-tatari-modal-art img.is-game-animation{width:256px!important;height:256px!important}.horde-detail-head:has(.is-game-animation){grid-template-columns:105px 1fr}.horde-detail-art:has(.is-game-animation){height:110px}.tatari-key-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.tatari-fact-row{gap:10px}}

/* v0.14.48: size the planner and its controls to the space they actually have. */
#view-horde-planner{container:horde-planner / inline-size}
#view-horde-planner .horde-planner-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"field" "workspace";gap:14px}
#view-horde-planner .horde-planner-layout>.card,#view-horde-planner .horde-workspace>.card{min-width:0;padding:16px}
#view-horde-planner .horde-info-panel{position:static;top:auto}
.tatari-source-note a{color:#92ccf8;text-underline-offset:3px}
.horde-roster-panel{container:horde-roster / inline-size}
.horde-roster-panel .section-head{align-items:center;flex-wrap:wrap;gap:10px}
.horde-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 8px;min-width:0}
.horde-filters label{display:grid;gap:5px;min-width:0;font-size:11px;font-weight:700;color:var(--muted)}
.horde-filters .horde-search-filter{grid-column:1/-1}
.horde-filters input,.horde-filters select{width:100%;min-width:0;max-width:100%;min-height:40px;padding:9px 10px;font:inherit;font-size:12px}
.horde-filters #horde-effect{grid-column:auto}
.horde-roster-count{margin:8px 0 12px;font-size:11px;color:var(--muted)}
.horde-roster-grid{grid-template-columns:minmax(0,1fr);gap:8px;max-height:clamp(360px,65vh,760px);overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--sky-line,#517291) transparent}
.horde-roster-card{grid-template-columns:52px minmax(0,1fr) 18px;gap:10px;padding:8px;min-width:0;min-height:70px}
.horde-roster-card strong{font-size:13px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
.horde-roster-card small{font-size:11px;line-height:1.4}
.horde-roster-art{height:52px;align-self:center}
.horde-detail-head>div,.horde-priority-row>span{min-width:0;overflow-wrap:anywhere}
.horde-roster-tabs{display:flex;flex-wrap:wrap;gap:6px}
@container horde-roster (min-width:440px){.horde-roster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container horde-planner (min-width:840px){
  #view-horde-planner .horde-planner-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-areas:"field workspace"}
}
