.castle-upload-tools{gap:.45rem;min-width:0;display:grid}.guide-trigger{justify-self:center}.guide-trigger b{border:1px solid;border-radius:50%;place-items:center;width:1.3em;height:1.3em;display:inline-grid}.castle-guide{color:#f5eddb;background:#0e2331;border:1px solid #c29949;border-radius:16px;width:min(840px,94vw);max-width:94vw;max-height:90dvh;margin:auto;padding:0;overflow:auto}.castle-guide::backdrop{background:#03111bd6}.castle-guide>section{padding:1rem 1.3rem}.castle-guide header,.castle-guide nav,.guide-zoom,.guide-samples,.hero-skill-icons,.skill-options,.skill-editor,.skill-star-inputs{flex-wrap:wrap;align-items:center;gap:.55rem;display:flex}.castle-guide header{justify-content:space-between}.castle-guide h2,.castle-guide h3,.hero-skill-row h4{color:#f5ce78;margin:.2rem 0}.castle-guide p{line-height:1.65}.castle-guide [aria-pressed=true],.skill-options [aria-pressed=true]{outline-offset:1px;outline:2px solid #f4bd52}.guide-media{grid-template-columns:minmax(0,1.6fr) minmax(135px,1fr);gap:1rem;margin-top:1rem;display:grid}.guide-viewport{text-align:center;background:#06151f;border-radius:8px;height:min(54dvh,560px);overflow:auto}.guide-viewport>img{vertical-align:top;width:auto;max-width:none;display:inline-block}.guide-samples button,.skill-options button{cursor:pointer;background:#102d3b;border:1px solid #415a67;border-radius:5px;padding:3px}.guide-samples img{object-fit:contain;max-width:50px;height:60px}.guide-zoom{margin-top:1rem}.hero-skill-row{background:#061c2a66;border-top:1px solid #79704966;flex-wrap:wrap;grid-column:1/-1;align-items:center;gap:1rem;min-width:0;padding:.55rem .7rem;display:flex}.hero-skill-row h4{font-size:.9rem}.skill-tile{color:#fff;cursor:pointer;background:#0a1c29;border:1px solid #607888;border-radius:7px;justify-items:center;min-width:50px;padding:3px 6px;display:grid}.skill-tile img,.skill-options img,.review-skill img{object-fit:contain;width:38px;height:38px}.skill-tile.exclusive{background:#332a15;border:2px solid #e4ae46}.skill-tile small,.skill-tile .colored-hero-stars{font-size:.72em}.skill-editor{border:1px solid #536b72;flex-basis:100%;padding:.6rem}.skill-editor label,.skill-star-inputs label{gap:3px;font-size:.8rem;display:grid}.skill-editor input[type=number],.skill-star-inputs input{width:4rem}.skill-editor label:has(input[type=checkbox]){display:flex}.squad-completeness{color:#e0c794;font-size:.75rem}.squad-completeness ul{padding-inline-start:1rem}.squad-reading-date{color:#b4c6cc;font-size:.72rem}.review-skill-list{flex-wrap:wrap;gap:.5rem;display:flex}.review-skill{border:1px solid #526877;border-radius:6px;justify-items:center;gap:.2rem;padding:.5rem;display:grid}.review-skill label{font-size:.8rem}.review-skill input[type=number]{width:4rem}.gear-markers i.marker-partial{background:linear-gradient(90deg,#ffd445 50%,#493317 50%)}.gear-markers i.marker-unknown{background:0 0;border:1px dashed #777}@media (max-width:580px){.guide-media{grid-template-columns:1fr}.guide-viewport{height:37dvh}.guide-media aside{grid-row:1}.guide-samples img{height:38px}.guide-zoom{margin-top:.4rem}}html[lang=en] .castle-metrics,html[lang=en] .upload-center{direction:ltr}html[lang=en] .squad-info,html[lang=en] .import-conflicts th,html[lang=en] .import-conflicts td{text-align:start}html[lang=en] .castle-metrics .metric>.icon{left:auto;inset-inline-end:.5rem}html[lang=en] .import-conflicts td[dir=ltr]:before{content:attr(data-label)}.castle-guide nav .button,.castle-clear-all .button,.section-clear-actions .button{white-space:normal}
.castle-panel{container-type:inline-size}.castle-panel .castle-heading{justify-content:flex-start;margin:0 0 1rem}.castle-panel .castle-summary{direction:inherit;margin-bottom:1.25rem;display:block}.castle-panel .castle-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}.castle-panel .castle-metrics .metric{text-align:center;align-items:center;gap:.2rem;padding:.65rem .5rem}.castle-panel .castle-metrics .metric>.icon{width:1.2rem;height:1.2rem;position:static;transform:none}.castle-panel .castle-metrics .metric>span{font-size:.83rem}.castle-panel .castle-metrics .metric>strong{font-size:1.1rem}.castle-panel .squad-section-actions{justify-content:space-between;align-items:center;gap:.65rem;margin:1rem 0}.castle-panel .squad-section-actions .button{font-size:.85rem}.castle-panel .squads{gap:.8rem;display:grid}.castle-panel .squad-row{direction:inherit;grid-template-columns:minmax(7.5rem,.8fr) minmax(0,2fr) auto;grid-template-areas:"info heroes actions";gap:.9rem;padding:.9rem 1rem}.castle-panel .squad-info{text-align:start;grid-area:info;align-items:flex-start;gap:.12rem}.castle-panel .squad-info h3{font-size:1.07rem;line-height:1.5}.castle-panel .squad-info strong{font-size:1.35rem}.castle-panel .squad-completeness,.castle-panel .squad-reading-date{font-size:.77rem}.castle-panel .squad-heroes{direction:rtl;grid-area:heroes;grid-template-columns:repeat(5,minmax(0,5.1rem));justify-content:center;align-items:stretch;gap:clamp(.19rem,.65cqw,.55rem);display:grid}.castle-panel .squad-heroes .hero-card{aspect-ratio:auto;width:100%;min-width:0;max-width:none}.castle-panel .squad-heroes .hero-card>img,.castle-panel .squad-heroes .hero-card>span[role=img]{aspect-ratio:1;place-items:center;width:100%;height:auto;display:grid}.castle-panel .squad-heroes .hero-card .hero-level{font-size:.72rem;line-height:1.5}.castle-panel .squad-heroes .hero-card .hero-stars{min-height:1.25rem;font-size:clamp(.6rem,1.35cqw,.87rem)}.castle-panel .squad-row-actions{grid-area:actions;gap:.35rem}.castle-panel .squad-row-actions>.button{min-height:32px;padding:.32rem .65rem;font-size:.82rem}.castle-panel .squad-support-label{align-items:center;gap:.3rem;font-size:.8rem;display:inline-flex}.squad-support-label img{object-fit:contain;width:2rem;height:2rem}.castle-panel .castle-detail-section{padding:0;overflow:visible}.detail-heading,.castle-dialog-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.7rem;display:flex}.detail-heading{border-bottom:1px solid #52606a;padding:.85rem 1rem}.detail-heading h2,.castle-dialog-heading h2{color:#ffdc8c;margin:0;font-size:1.16rem}.detail-heading h2{align-items:center;gap:.4rem;display:flex}.detail-heading h2 .icon{width:1.35rem;height:1.35rem}.castle-detail-actions{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.castle-detail-actions .button,.castle-dialog-heading .button,.scoped-dropzone small{font-size:.85rem}.section-clear-scope,.scoped-history{color:#d6c6a9;margin-block:.9rem}.section-clear-scope summary,.scoped-history summary,.scoped-file-list summary{cursor:pointer;padding:.35rem 0}.scoped-history-list{flex-direction:column;align-items:start;gap:.5rem;max-height:14rem;display:flex;overflow:auto}.scoped-history-files{grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:.45rem;max-height:15rem;margin:.65rem 0;display:grid;overflow:auto}.scoped-history-files>div{align-items:center;gap:.5rem;min-width:0;padding:.4rem;display:flex}.scoped-history-files img{object-fit:contain;width:2.4rem;height:3rem}.scoped-history-files span{overflow-wrap:anywhere}.scoped-history-files small{color:#b6cbd4;display:block}.scoped-upload-dialog,.castle-detail-editor{color:#f5f1eb;background:#0a202f;border:1px solid #af8746;border-radius:15px;width:min(760px,94vw);max-width:94vw;max-height:85dvh;margin:auto;padding:1.15rem 1.25rem;overflow:auto}.scoped-upload-dialog::backdrop,.castle-detail-editor::backdrop{background:#03111bd6}.scoped-upload-dialog>p{margin:.6rem 0 1rem;font-size:.92rem}.scoped-upload-dialog .scoped-dropzone{margin:1rem 0}.scoped-dropzone .upload-target{cursor:pointer;text-align:center;background:#0c2334;border:1px dashed #eab554;border-radius:10px;place-items:center;gap:.45rem;min-height:7rem;padding:1.2rem;display:grid}.scoped-dropzone .upload-target>.icon{color:#f4c76c;width:1.75rem;height:1.75rem}.scoped-upload-dialog .image-import-status{margin-bottom:2.4rem}.scoped-upload-dialog .modal-backdrop{z-index:5;position:fixed;inset:0}.scoped-upload-dialog .import-review-dialog{width:min(1060px,95vw);max-width:95vw}.castle-detail-editor .manual-values{grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:.55rem .75rem;margin:1rem 0;display:grid}.manual-values fieldset{border:1px solid #596a70;border-radius:7px;min-width:0;padding:.5rem}.scoped-guide .squad-guide-examples{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:1rem 0 2rem;display:grid}.scoped-guide .guide-example{color:#edf0ed;text-align:start;cursor:zoom-in;background:#0a1e2b;border:1px solid #627079;border-radius:9px;flex-direction:column;align-items:stretch;gap:.4rem;padding:.6rem;display:flex}.guide-example img{object-fit:contain;background:#061520;border-radius:4px;width:100%;height:min(30dvh,230px)}.guide-example strong{color:#ffdc91;font-size:.95rem}.guide-example span{font-size:.84rem;line-height:1.6}@container (max-width:760px){.castle-panel .squad-row{grid-template-columns:minmax(9rem,.8fr) minmax(0,2fr);grid-template-areas:"info heroes""actions heroes";gap:.6rem .7rem}.castle-panel .squad-row-actions{flex-flow:wrap;gap:.3rem}.castle-panel .squad-row-actions>.button{white-space:normal}.castle-panel .castle-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (max-width:530px){.castle-panel .squad-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"info""heroes""actions";gap:.65rem;padding:.8rem}.castle-panel .squad-info{flex-flow:wrap;align-items:center;gap:.35rem .65rem;display:flex}.castle-panel .squad-heroes{justify-content:start}.castle-panel .squad-row-actions>.button{padding:.32rem .55rem!important;font-size:.82rem!important}.castle-panel .squad-row-actions .icon{display:block}}@media (max-width:600px){.scoped-guide .squad-guide-examples{grid-template-columns:1fr}.scoped-guide .guide-example{grid-template-columns:4.3rem 1fr;display:grid}.guide-example img{grid-row:1/3;height:6rem}.scoped-upload-dialog,.castle-detail-editor{padding:.8rem}}.history-file-data{overflow-wrap:anywhere;min-width:0}.original-image-reading{margin-top:.25rem;font-size:.85rem}.original-image-reading ul{padding-inline-start:1.3rem}.original-image-reading dl>div{justify-content:space-between;gap:.45rem;display:flex}.scope-mismatch>div{padding:.55rem 0}
.plan-team-sidebar{color:#f4f0e7;background:#102737;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.plan-rail-header,.plan-team-sidebar footer{background:#102a3a;flex:none;padding:10px 12px}.plan-rail-header{border-bottom:1px solid #375263}.plan-rail-heading,.plan-rail-task,.plan-rail-tools{align-items:center;gap:5px;display:flex}.plan-rail-heading{justify-content:space-between;gap:8px}.plan-team-sidebar .plan-rail-heading h2{color:#ffe0a4;margin:0;font-size:.9rem;line-height:1.5}.plan-rail-heading>span{color:#ffda87;font-variant-numeric:tabular-nums;font-size:.78rem}.plan-rail-tools{flex-wrap:wrap;gap:4px;margin-block:8px}.plan-rail-tool,.plan-rail-task select{color:#f6eee0;background:#0a1e2b;border:1px solid #466173;border-radius:6px}.plan-rail-tool{flex:1;place-items:center;min-width:27px;min-height:32px;padding:4px;display:inline-grid}.plan-rail-tool svg{width:17px;height:17px;display:block}.plan-team-sidebar button:enabled:hover,.plan-team-sidebar button:focus-visible{color:#ffe0a4;border-color:#d8a94d}.plan-rail-tool:disabled,.plan-rail-clear:disabled{opacity:.45}.plan-rail-task{color:#cad7df;justify-content:space-between;font-size:.75rem}.plan-task-field{min-width:0;max-width:62%;display:inline-flex;position:relative}.plan-rail-task select{font:inherit;width:100%;min-height:30px;padding:2px 7px}.plan-task-placeholder{inset-inline-start:8px;pointer-events:none;color:#bdc9d1;position:absolute;top:50%;transform:translateY(-50%)}.plan-rail-scroll{overscroll-behavior:contain;scrollbar-width:thin;flex-direction:column;flex:1;min-height:0;padding:0 10px;display:flex;overflow:auto}.plan-rail-scroll>section{flex-direction:column;min-height:min-content;padding:7px 0;display:flex}.plan-rail-scroll.has-waiting>section:first-child,.plan-rail-scroll.has-reserves>section:last-child{flex:0 auto;min-height:94px}.plan-rail-scroll.has-waiting.has-reserves>section{flex:1 1 0}.plan-rail-scroll>section>:not(.plan-rail-players){flex-shrink:0}.plan-rail-scroll .plan-rail-players{overscroll-behavior:contain;scrollbar-width:thin;min-height:0;overflow:auto}.plan-rail-scroll>section+section{border-top:1px solid #385261}.plan-rail-players{gap:3px;display:grid}.plan-rail-players:not(:empty){margin:5px 0}.plan-rail-player{background:#0a202e;border:1px solid #0000;border-radius:5px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;padding:5px 7px 5px 27px;font-size:.82rem;display:grid;position:relative}.plan-rail-player.active{border-color:#d7ae62}.plan-rail-player .plan-rail-name{color:#f5f4ed;min-width:0;font:inherit;text-align:start;overflow-wrap:anywhere;background:0 0;border:0;padding:0;font-weight:700;line-height:1.4}.plan-rail-name:disabled{opacity:1}.plan-rail-player small{color:#d6b879;white-space:nowrap;font-size:.62rem;line-height:1.4}.plan-rail-player .plan-rail-remove{color:#cec1af;background:0 0;border:1px solid #0000;border-radius:4px;place-items:center;width:20px;height:20px;padding:0;font:17px/1 sans-serif;display:grid;position:absolute;top:3px;left:3px}.plan-rail-empty{color:#b4c2ca;margin:5px 0;font-size:.74rem;line-height:1.5}.plan-rail-clear{color:#f2c7ba;background:#30272b;border:1px solid #805652;border-radius:5px;align-self:flex-end;min-height:27px;margin-top:3px;padding:2px 9px;font-size:.74rem}.plan-team-sidebar footer{border-top:1px solid #375263;justify-content:flex-end;padding:6px 10px;display:flex}.plan-rail-actions{justify-content:flex-end;align-items:stretch;gap:4px;margin-top:3px;display:flex}.plan-rail-actions .plan-rail-clear{flex-shrink:0;align-self:stretch;margin:0;padding-inline:5px}.plan-rail-distribute{color:#172530;background:#efc16b;border:1px solid #e1af52;border-radius:5px;min-height:29px;padding:3px 6px;font-size:.74rem;font-weight:700;line-height:1.45}.plan-team-sidebar .plan-rail-distribute:enabled:hover,.plan-team-sidebar .plan-rail-distribute:focus-visible{color:#13242c;background:#ffda91}.plan-rail-distribute:disabled{opacity:.5}.plan-rail-tactic{gap:4px;margin-block-start:6px;display:grid}.plan-rail-tactic select{width:auto;max-width:65%}.plan-rail-actions{flex-wrap:wrap}.plan-rail-arrange{color:#f3dbac;font:inherit;background:#152e3d;border:1px solid #9a8256;border-radius:5px;min-height:29px;padding:3px 6px;font-size:.74rem;line-height:1.45}.plan-rail-arrange:disabled{opacity:.5}.map-player.selected-marker{outline-offset:2px;outline:2px solid #f4c56a}
