/* Suite framing only. Native Trench gameplay retains its own presentation. */
#trenchTile{text-align:left;width:100%;font:inherit;background:none;border:0;padding:8px 0;box-shadow:none;letter-spacing:inherit;display:block;grid-column:2;grid-row:1/3;min-width:0}
#futureGames>div:has(#trenchTile){border-left-color:var(--accent)}
#trenchSetup{width:760px;max-width:calc(100% - 24px)}
#trenchParticipants{max-height:190px;overflow:auto;border:1px solid var(--edge)}#trenchParticipants label{display:block;padding:5px}#trenchSetup input{width:20px;height:20px;vertical-align:middle;margin-right:10px}
#trenchSetup .actions{position:sticky;bottom:-24px;background:var(--case);padding:12px 0}#trenchQuestions li{margin-bottom:15px;overflow-wrap:anywhere}#trenchQuestions p{font-size:14px}
#trenchModule{position:fixed;inset:0;height:100dvh;display:flex;flex-direction:column;background:var(--glass)}
#trenchModule>header{padding:6px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--edge);flex:none}
#trenchModule .actions{margin:0;gap:6px}#trenchModule button{padding:8px 10px;font-size:13px;min-height:44px}
#trenchRunLabel{margin:0;flex:1;min-width:140px;font-size:14px;overflow-wrap:anywhere}#trenchFrameSlot{flex:1;min-height:0}#trenchFrame{width:100%;height:100%;border:0;display:block}
#trenchSaveStatus{max-height:20dvh;overflow:auto;padding:0 12px;flex:none}#trenchSaveStatus:empty{display:none}#trenchSaveStatus p{font-size:13px;margin:4px 0}#trenchRecent{margin-top:25px}#trenchRecentList{padding-left:20px}#trenchRecentList li{padding:8px 0;overflow-wrap:anywhere}
@media(max-width:540px){#trenchModule .actions{width:100%}#trenchModule .actions button{flex:1;font-size:12px}#trenchSetup{padding:18px}#trenchSetup .actions{bottom:-18px}}

/* Keep the existing native button as the entire instrument tile hit target. */
#trenchTile::after{content:"";position:absolute;inset:0;cursor:pointer}
#futureGames>div:has(#trenchTile:focus-visible){outline:3px solid var(--accent);outline-offset:3px}

#trenchSetup select{display:block;width:100%;margin:8px 0 16px}#trenchQuestions p,#trenchSaveStatus details{white-space:pre-wrap}#trenchSaveStatus details{font-size:14px}#trenchSaveStatus summary{cursor:pointer}

#trenchSetup textarea{width:100%;min-height:140px;white-space:pre-wrap}#trenchSetup input[type=file]{width:100%;height:auto}#trenchSource{margin-bottom:16px}#trenchModule #trenchSaveStatus{max-height:12dvh}#trenchUploadFields{padding:12px;border:1px solid var(--edge)}#trenchRecent{margin-top:24px}
#trenchTile .game-name{color:var(--ink)}#futureGames>div:has(#trenchTile){--game-accent:var(--accent)}#trenchQuestions{max-height:45dvh;overflow:auto}
.trench-match-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;margin-top:20px}#trenchModeRules{border-left:3px solid var(--accent);padding:10px 14px;background:var(--glass)}
@media(max-width:540px){.trench-match-fields{grid-template-columns:1fr}}
