#modal:has(#team-panel){width:min(1050px,calc(100vw - 24px));max-width:1050px;padding:24px;background:linear-gradient(150deg,#123744,#0d2632);border:1px solid #c7c39b55}#team-panel{color:#eee8cf}#team-panel *{box-sizing:border-box}#team-panel h2{font-size:32px;line-height:1.1;margin:10px 0 4px}#team-panel h3{font-size:24px;color:#e8e4cb;margin:12px 0}#team-panel p{color:#c5d4c6;line-height:1.55;font-size:13px}#team-panel button,#team-panel input{font:inherit}#team-panel button{min-height:44px;border:1px solid #a9bea166;border-radius:9px;background:#254b4d;color:#f1edd5;padding:10px 14px;font-size:13px;cursor:pointer}#team-panel button:hover{background:#355c59}#team-panel button:disabled{opacity:.5;cursor:default}#team-panel button:focus-visible,#team-panel input:focus-visible,#team-panel canvas:focus-visible{outline:2px solid #efdda3;outline-offset:3px}.team-top{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-right:40px}.team-top span{font-size:10px;letter-spacing:1px;color:#d0c392}.team-top button{background:none!important;border:0!important;padding:0!important}.team-intro{margin:5px 0 16px}.team-lobby{text-align:center;padding:30px 24px;background:radial-gradient(ellipse at top,#8db5a125,transparent 70%),#0b2832;border:1px solid #a3bc9d44;border-radius:16px}.team-lobby>p{max-width:560px;margin:12px auto}.team-emblem{font-size:55px;font-weight:800;letter-spacing:-3px;color:#d6d9b2;text-shadow:0 3px #0a1c25}.team-lobby-actions{display:flex;gap:10px;justify-content:center;margin-top:22px}#team-queue,#team-account{background:#dbe4bf!important;color:#28483e!important;font-weight:750}.team-party{padding:20px;border:1px solid #c9c79d66;border-radius:12px;background:#213c3b}.team-party>span{display:block;font-size:12px;color:#becbbb}.team-party>strong{display:block;font-size:26px;letter-spacing:3px;margin:8px}.team-party>div{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}.team-member{padding:7px 10px;border-radius:6px;background:#c2d3b61c;font-size:12px}#team-join{max-width:440px;text-align:left;margin:25px auto 0}#team-join label{font-size:12px;color:#cdd4bd;display:block;margin-bottom:8px}#team-join>div{display:flex;gap:8px}#team-code{width:100%;min-width:0;font-size:16px;color:#edf0df;background:#08232d;border:1px solid #a0b49b66;border-radius:8px;padding:12px}.team-score{display:flex;justify-content:space-between;font-size:12px;padding:12px 14px;background:#213f40;border-radius:10px 10px 0 0}.team-score span{color:#c2d1c0}.team-canvas-host{position:relative;overflow:hidden;border:1px solid #c5c7a65c;border-radius:0 0 12px 12px;background:#b7c4b8}.team-canvas-host canvas{display:block;width:100%;touch-action:pan-y}.team-canvas-host>p{position:absolute;left:12px;right:12px;top:0;padding:10px;background:#0c2b32dd;color:#f1ead4!important;text-align:center;pointer-events:none}.team-canvas-host>p:empty{display:none}.team-targets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:12px 0}.team-targets button{min-width:0;text-align:left;padding:9px!important}.team-targets b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.team-targets span{display:block;font-size:10px;color:#b9cdb9;margin-top:4px}.team-targets [aria-pressed=true]{background:#deddbd!important;color:#243f38!important;border-color:#f3e7b8!important}.team-targets [aria-pressed=true] span{color:#466149}.team-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.team-actions button{background:#d1dfbb!important;color:#234237!important;font-weight:750}.team-rule{margin:10px 0;font-size:12px!important}.team-feedback{padding:10px 14px;background:#b5cba91a;border-left:2px solid #cbd6ad}.team-result{padding:18px;background:#adc09720;border:1px solid #d5cda555;border-radius:10px;margin-top:12px}.team-subtle{background:none!important;border-color:#91a79544!important}.team-error{padding:14px;background:#a8693420;border:1px solid #d1ae7970;color:#f1d2a7;line-height:1.5;border-radius:10px;font-size:13px;margin-top:15px}.team-error button{display:block;margin-top:9px}.team-fine{font-size:11px!important;color:#a9bfad!important;margin-bottom:0}.team-empty{padding:30px;text-align:center;background:#153740;border-radius:14px}@media(max-width:600px){#modal:has(#team-panel){padding:14px 10px;width:calc(100vw - 12px);max-width:calc(100vw - 12px)}#team-panel h2{font-size:26px}.team-top{padding-right:42px}.team-top span{font-size:8px;max-width:140px;text-align:right}.team-intro{font-size:12px!important;margin-bottom:10px}.team-lobby{padding:20px 13px}.team-lobby-actions{flex-direction:column}.team-targets{gap:4px}.team-targets button{padding:7px 4px!important}.team-targets b{font-size:10px}.team-targets span{font-size:9px}.team-actions button{padding:10px 4px!important;font-size:12px!important}.team-score{font-size:11px}.team-empty{padding:20px}.team-rule{font-size:11px!important}#team-join>div{flex-wrap:wrap}#team-join button{width:100%}}
@media(prefers-reduced-motion:reduce){#team-panel *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
#modal:has(#team-panel){padding:16px 20px}#team-panel h2{font-size:26px;margin:2px 0 4px}.team-top{min-height:36px}.team-top button{min-height:36px!important}.team-intro{font-size:12px!important;margin:0 0 9px}.team-score{padding:9px 12px}.team-targets{margin:8px 0}.team-rule{margin:6px 0}.team-feedback{margin:7px 0;padding:7px 10px}@media(max-width:600px){#modal:has(#team-panel){padding:12px 10px}#team-panel h2{font-size:23px}.team-intro{font-size:11px!important}.team-top{padding-right:42px}}
/* Resolved command feedback only; the arena and semantic HP colors stay unchanged. */
#team-panel .team-selected{margin:8px 0;padding:9px 12px;background:#1d4050;border:1px solid #8fbcc666;border-radius:9px;color:#e7f2ee;font-size:13px;overflow-wrap:anywhere}
#team-panel .team-clock{margin:5px 0;color:#cbdde5;font-size:12px;font-variant-numeric:tabular-nums}
#team-panel .team-recap{margin-top:12px;padding:12px;border:1px solid #8ebbbd66;border-radius:12px;background:linear-gradient(145deg,#213e54,#152e41);box-shadow:inset 0 1px #c5e2ee22,0 3px 0 #071d2b}
#team-panel .team-recap h3{font-size:16px;margin:0 0 7px;color:#eaf3ed}
#team-panel .team-recap p{font-size:12px;color:#d5e4e6;margin:5px 0;overflow-wrap:anywhere}
#team-panel .team-recap summary{min-height:44px;padding:12px 0;cursor:pointer;color:#b7eadf;font-size:13px}
#team-panel .team-recap summary:focus-visible{outline:2px solid #efdda3;outline-offset:3px}
#team-panel .team-recap ol{padding-left:22px;margin:2px 0;font-size:12px;line-height:1.5;color:#d5e4e6}
#team-panel .team-recap li{margin:7px 0;overflow-wrap:anywhere}
/* Narrow commands retain full participant names and 44px touch targets. */
@media(max-width:400px){#team-panel .team-targets{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#team-panel .team-targets button{min-height:52px;padding:8px!important}#team-panel .team-targets b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:11px;line-height:1.35}#team-panel .team-targets span{font-size:10px}}
