.ee-dock {display:grid;gap:10px;font:16px/1.4 var(--ts-font);color:var(--ts-ink)}
.ee-dock section,.ee-dock details {padding:12px;border:1px solid var(--ts-line);border-radius:10px;background:var(--ts-panel-2);min-width:0}
.ee-dock h2 {margin:0 0 8px;font:800 18px var(--ts-font);color:var(--ts-accent)}
.ee-dock p {margin:6px 0;overflow-wrap:anywhere}
.ee-dock ul {padding:0;list-style:none;margin:0;display:grid;gap:5px}
.ee-dock label {display:block;font-weight:700;margin:4px 0}
.ee-dock select {width:100%;min-height:48px;background:var(--ts-panel);color:var(--ts-ink);border:2px solid var(--ts-line);border-radius:6px;font:16px var(--ts-font);padding:8px}
.ee-dock button {min-height:48px;width:100%;margin:4px 0;font-size:18px;white-space:normal}
.ee-dock summary {min-height:44px;cursor:pointer;font-weight:700}
.ee-dock :focus-visible {outline:3px solid var(--ts-focus);outline-offset:3px}
.ee-dock table {border-collapse:collapse;width:100%;font:16px var(--ts-mono);margin:10px 0}
.ee-dock td,.ee-dock th {padding:6px 3px;text-align:left;border-bottom:1px solid var(--ts-line)}
.ee-dock caption {text-align:left;font:700 16px var(--ts-font);margin-bottom:6px}
#ee-report {overflow-x:auto}
[hidden] {display:none!important}
@media(min-width:901px){#topic-game .ts-panel{width:374px;padding:10px}}
@media(max-width:900px){
 #topic-game {height:auto!important;min-height:0!important}
 #topic-game .ts-play {min-height:100dvh}
 #topic-game .ts-play>* {flex-shrink:0}
 #topic-game .ts-body {flex:none;flex-direction:column}
 #topic-game .ts-stage {flex:none;min-height:350px;height:calc(100vw * .667 + 16px);overflow:auto;justify-content:flex-start}
 #topic-game .ts-canvas {min-width:900px;min-height:600px}
 #topic-game .ts-stage {min-height:620px}
 #topic-game .ts-panel {overflow:visible}
 .ee-dock {grid-template-columns:repeat(2,minmax(0,1fr))}
 .ee-dock section:first-child,.ee-dock section:nth-child(5),.ee-dock details {grid-column:1/-1}
}
@media(max-width:540px){.ee-dock {grid-template-columns:1fr}}
/* Local workaround: keep shell dialogs inside the viewport after panel/page scrolling.
   The game-core contract prohibits patching the shared shell. */
#topic-game .ts-overlay {position:fixed;top:72px;bottom:0;left:0;right:0;max-height:calc(100dvh - 72px)}
