#team-matchup-checklist{display:none!important}.builder-notepad{display:block;width:100%;min-height:220px;resize:vertical;padding:14px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text);font:inherit;line-height:1.6}.dt-dialog{width:96vw;max-width:none;height:94dvh;max-height:94dvh;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);overflow:hidden}.dt-dialog::backdrop,.dt-form::backdrop{background:#000a}.dt-dialog[open]{display:flex;flex-direction:column}.dt-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}.dt-toolbar h2{font-size:18px;margin:0 auto 0 0}.dt-toolbar label{display:flex;gap:6px;align-items:center;font-size:12px}.dt-toolbar button,.dt-toolbar select,.dt-form button,.dt-form select,.dt-form input,.dt-node button{font:inherit;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:5px;padding:8px;cursor:pointer}.dt-toolbar select{max-width:250px}.dt-instructions,.dt-status{margin:6px 16px;font-size:12px;color:var(--muted);line-height:1.5}.dt-viewport{flex:1;min-height:0;overflow:auto;background:#090b0e;overscroll-behavior:contain}.dt-scale{position:relative}.dt-board{position:absolute;left:0;top:0;transform-origin:0 0;background-color:#090b0e;background-image:radial-gradient(#343d4b 1px,transparent 1px);background-size:24px 24px}.dt-links{position:absolute;inset:0;pointer-events:none}.dt-links path{fill:none;stroke:#8291a4;stroke-width:2}.dt-node{position:absolute;box-sizing:border-box;width:280px;background:var(--panel);color:var(--text);border:1px solid #65758b;border-radius:8px;box-shadow:0 4px 18px #0006;overflow:hidden}.dt-node>header{display:flex;align-items:center;gap:8px;padding:9px 12px;background:var(--accent-strong);cursor:grab;touch-action:none;font-size:13px}.dt-node>header span{margin-left:auto}.dt-node>header button{padding:3px;display:flex;margin-left:auto}.dt-node>header svg{width:16px;height:16px}.dt-action-label{font-size:12px;margin:10px 12px;line-height:1.4}.dt-side{padding:0 10px 8px}.dt-side>small{color:var(--muted);font-size:10px}.dt-mon{display:flex;align-items:center;gap:4px;margin-top:5px;font-size:11px}.dt-mon>.builder-pokemon-icon{flex-shrink:0}.dt-mon>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.dt-mon strong{font-size:10px;white-space:nowrap}.dt-hp-track{display:block;height:5px;margin-top:4px;position:relative;background:#39414c;overflow:hidden;border-radius:3px}.dt-hp-track i,.dt-hp-track b{position:absolute;top:0;left:0;height:100%}.dt-hp-track i{background:#9acd9255}.dt-hp-track b{background:#5bbf83}.dt-damage{padding:6px 12px;font-size:10px;border-top:1px solid var(--line)}.dt-damage span{display:block;margin:4px 0}.dt-node .dt-branch{display:block;width:calc(100% - 20px);margin:5px 10px 10px;font-size:12px}.dt-node textarea{width:100%;height:150px;padding:12px;box-sizing:border-box;border:0;resize:vertical;background:var(--panel);color:var(--text);font:inherit}.dt-form{width:min(540px,94vw);box-sizing:border-box;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:20px}.dt-form h3{margin:0 0 16px}.dt-form label{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:13px}.dt-form select,.dt-form input{width:100%;box-sizing:border-box}.dt-form p{font-size:12px;color:var(--muted);line-height:1.5}.dt-form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.dt-leads{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dt-leads fieldset{border:1px solid var(--line);border-radius:5px;padding:8px;min-width:0}.dt-leads legend{font-size:12px;max-width:100%;overflow-wrap:anywhere}.dt-warning{margin:8px 12px;color:var(--muted);font-size:11px}@media(max-width:760px){.dt-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.dt-toolbar{padding:10px;gap:8px}.dt-toolbar h2{width:100%;font-size:16px}.dt-toolbar label{font-size:11px}.dt-toolbar select{max-width:180px}.dt-instructions,.dt-status{font-size:11px;margin:5px 10px}.dt-form{padding:14px}.builder-notepad{font-size:13px;min-height:180px}#builder-team-notes,#builder-decision-tree{font-size:11px;padding:6px 8px}}
.dt-dialog .dt-node>header{min-height:0;height:auto;position:static;box-sizing:border-box;margin:0;justify-content:flex-start}.dt-dialog .dt-node>header button{width:24px;height:24px;min-height:0;padding:3px}.dt-dialog .dt-mon>.builder-pokemon-icon{width:40px;height:30px}
/* Planner chrome must not inherit the site header layout. */
.dt-dialog[open]{position:fixed;inset:0;margin:auto;box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
.dt-dialog>.dt-toolbar{position:static;inset:auto;display:flex;flex:none;min-height:0;height:auto;width:100%;max-width:100%;box-sizing:border-box;margin:0;padding:12px 16px;justify-content:flex-start;overflow:hidden;transform:none;z-index:auto}
.dt-toolbar h2{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 180px}
.dt-toolbar label{min-width:0}.dt-toolbar select{min-width:0;max-width:min(250px,45vw)}
.dt-form{max-height:calc(100dvh - 24px);overflow:auto}.dt-form form{min-width:0}
.dt-team-reference{display:flex;justify-content:space-between;gap:12px;padding:6px 16px;flex:none;border-bottom:1px solid var(--line)}
.dt-team-reference>div{min-width:0;max-width:50%}.dt-team-reference>div:last-child{text-align:right}.dt-team-reference small{font-size:11px;color:var(--muted)}
.dt-team-reference>div>div{display:flex;flex-wrap:wrap;gap:2px}.dt-team-reference>div:last-child>div{justify-content:flex-end}
.dt-team-reference span{display:inline-flex}.dt-team-reference .builder-pokemon-icon{width:40px;height:30px}
.dt-icon-options{display:flex;flex-wrap:wrap;gap:4px}.dt-form .dt-icon-options label{display:block;position:relative;margin:0;cursor:pointer}
.dt-icon-options input,.dt-move-options input{position:absolute;opacity:0;width:1px;height:1px}
.dt-icon-options label>span{display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:5px;padding:3px;min-width:40px;min-height:34px}
.dt-icon-options input:checked+span,.dt-move-options input:checked+span{background:var(--accent-strong);border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}
.dt-icon-options input:focus-visible+span,.dt-move-options input:focus-visible+span{outline:2px solid var(--text);outline-offset:2px}
.dt-lead-label{font-size:12px;margin:10px 0 6px}.dt-turn-form{width:min(820px,94vw)}
.dt-turn-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dt-turn-choices fieldset{min-width:0;border:1px solid var(--line);border-radius:6px;padding:10px}
.dt-turn-choices legend{font-size:12px;max-width:100%;overflow-wrap:anywhere}.dt-turn-choices legend .builder-pokemon-icon{display:inline-block;vertical-align:middle}
.dt-form .dt-move-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.dt-form .dt-move-options label{position:relative;margin:0;cursor:pointer}
.dt-move-options span{display:flex;align-items:center;justify-content:center;min-height:36px;box-sizing:border-box;padding:6px;border:1px solid var(--line);border-radius:5px;text-align:center;font-size:12px}
@media(max-width:760px){.dt-dialog[open]{max-width:100vw;max-height:100dvh;width:100vw;height:100dvh}.dt-dialog>.dt-toolbar{padding:8px;gap:6px}.dt-toolbar h2{font-size:14px;flex-basis:100%}.dt-team-reference{padding:5px 8px;gap:6px}.dt-team-reference .builder-pokemon-icon{width:40px;height:30px}.dt-instructions{max-height:48px;overflow:auto}.dt-leads{gap:8px}.dt-leads fieldset{padding:6px}.dt-turn-choices{grid-template-columns:1fr}.dt-turn-form{width:94vw}}
.dt-form [data-manual-order][hidden]{display:none!important}
.dt-viewport{touch-action:none;cursor:grab}.dt-viewport.dt-panning{cursor:grabbing;user-select:none}.dt-node{cursor:default}
.dt-action-list{margin:10px 12px;padding-left:20px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.dt-action-list li{padding-left:2px;margin:5px 0}
.dt-form textarea[name=tree]{box-sizing:border-box;width:100%;margin-top:12px;padding:10px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:4px;resize:vertical;font:inherit;font-size:12px}
