#companion-editor{grid-area:companions;min-width:0}
#companion-garage>.hint{padding:4px 8px;margin:0;font-size:11px}
.crew-tools input{flex:1;min-width:150px;width:auto}.crew-tools select{width:auto;min-width:100px}
.suite-crew select{max-width:100%}.crew-tools input[type=file]{font:12px Arial,sans-serif;min-width:180px;max-width:100%}
#suite-panel section{margin-top:16px;border:1px solid var(--rule);padding:8px;min-width:0}
#suite-panel select{max-width:100%;margin:6px 0}#suite-panel button{margin:3px;font-size:12px}
#history-list td{font:12px Arial,sans-serif;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
#history-list table{min-width:720px}
.join-tools button{font-size:11px;min-height:28px}.restart-countdown{font-weight:bold}
.crew-tools,.garage-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:5px 7px;border-bottom:1px solid var(--rule)}
.crew-tools .hint{margin:0}.crew-tools button,.garage-head button{font-size:10px;padding:3px 8px;min-height:25px}
#companion-roster{overflow-x:auto}#companion-roster>.hint{padding:4px 8px}
.crew-table{table-layout:fixed}.crew-table th:first-child{width:108px}.crew-table th:nth-child(2){width:21%}.crew-table th:nth-child(3){width:25%}.crew-table th:last-child{width:92px}
.crew-table td{padding:0 4px;vertical-align:middle}.crew-table input,.crew-table select{font-size:16px;min-height:30px;border:0;padding:1px 3px}.crew-table input{text-transform:none}
.crew-table td:first-child{text-align:center}.crew-table small{display:block;font:10px Arial,sans-serif;margin:0 3px 3px}.crew-table button{font-size:10px;padding:3px 6px;min-height:25px;width:100%}.crew-table tr.selected{background:#ffe3a24d;outline:1px solid var(--rule);outline-offset:-1px}
.garage-head{background:var(--heading);font-size:12px;margin-top:8px;border-top:2px solid var(--rule)}.garage-status{padding:6px 8px;margin:0;font-size:12px;border-bottom:1px solid var(--rule)}
.garage-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0}.garage-group{min-width:0;border-right:1px solid var(--rule)}.garage-group:last-child{border-right:0}.garage-group h3{padding:4px 6px;background:var(--heading);border-bottom:1px solid var(--rule);font-size:11px}.garage-grid select{font-size:15px;min-height:28px}.garage-grid label{grid-template-columns:minmax(70px,32%) minmax(0,1fr)}
.garage-defense{margin-top:8px}.garage-defense td{font:11px Arial,sans-serif;padding:2px 5px}.garage-defense input{font-size:16px;min-height:26px;border:0}.garage-defense button{font-size:10px;margin:5px 7px;min-height:25px}
#companion-garage[aria-busy=true]{opacity:.65;pointer-events:none}
@media(max-width:800px){.crew-table{min-width:660px}.garage-grid{grid-template-columns:1fr 1fr}.garage-group:last-child{grid-column:1/-1}.garage-group:nth-child(2){border-right:0}}
@media(max-width:600px){.garage-grid{grid-template-columns:1fr}.garage-group{border-right:0}.crew-table{min-width:650px}.garage-grid select{font-size:17px}.garage-grid label{grid-template-columns:34% 1fr}.garage-head .actions{width:100%}.crew-tools button,.garage-head button,.crew-table button,.garage-defense button{min-height:32px}}
.vehicle-preview{position:relative;width:96px;height:96px;border:1px solid #69592d;background:#d6bb70;margin-top:3px;overflow:hidden}
.vehicle-preview canvas{display:block;width:96px;height:96px;touch-action:none;cursor:grab}
.vehicle-preview canvas:active{cursor:grabbing}
.vehicle-preview canvas:focus-visible{outline:2px solid #302b20;outline-offset:-3px}
.vehicle-preview span{position:absolute;inset:0;display:grid;place-items:center;font:11px sans-serif;pointer-events:none;text-align:center}
.vehicle-preview span[hidden]{display:none}
