:root{--team-dock-height:264px}
body.has-team-board #viewport{width:100%;height:calc(100dvh - var(--office-header-height) - var(--office-footer-height) - var(--team-dock-height))}
#teamBoard{position:fixed;left:12px;right:12px;bottom:calc(var(--office-footer-height) + 8px);height:248px;display:flex;align-items:center;gap:12px;padding:8px 12px;background:#fffdf6f5;border:1px solid #c4d7ca;border-radius:24px;box-shadow:0 8px 30px #234e3b1c;z-index:4;min-width:0}
.dock-shop{flex:0 0 145px}.dock-shop #accountButton{width:100%;min-height:108px;border-radius:18px;background:#235e50;color:#fffdf0;font-size:14px;font-weight:750;box-shadow:0 4px 0 #163f37;padding:12px}.dock-shop #accountButton::before{content:'▧';display:block;font-size:30px;margin-bottom:7px}
.team-owner{flex:0 0 84px;min-width:0}.team-people{display:grid;grid-template-rows:1fr 1fr;gap:5px;min-width:0;flex:1;height:100%}.team-lane{display:flex;flex-direction:column;min-width:0;min-height:0}.team-lane-title{font-size:10px;font-weight:650;line-height:14px;color:#4c6b55;margin:0 4px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-strip{display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;align-items:stretch;min-width:0;min-height:0;flex:1;padding:1px 3px 4px;scrollbar-width:thin;scroll-snap-type:x proximity}
.team-row{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px;flex:0 0 126px;min-width:126px;box-sizing:border-box;padding:3px 5px;border:1px solid #c9d9ca;border-radius:13px;background:#e7eee4;color:#263c35;scroll-snap-align:start}.team-row strong{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:12px;margin:0}.team-caption{font-size:9px;line-height:11px;color:#526d58;width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;min-height:22px;text-align:center}.team-portrait{display:block;width:44px;height:44px;background-repeat:no-repeat;background-color:#d7e5d5;border-radius:10px;image-rendering:pixelated;flex:none}
.team-row.player{width:84px;min-width:84px;min-height:116px;justify-content:center;position:relative;left:auto;background:#fff0c8;border-color:#ccaa60;box-shadow:3px 0 10px #294d3510}.team-row.player .team-portrait{width:56px;height:56px}.team-row.player .team-caption{font-size:9px}.team-state{position:absolute;right:35px;top:37px;width:8px;height:8px;border:2px solid #fffdf6;border-radius:100%;background:#8b978e}.team-row.work .team-state{background:#218b65}.team-row.rest .team-state{background:#d89b3f}.team-row.player .team-state{background:#397b9d;right:8px;top:58px}.team-row:focus-visible{outline:3px solid #df795c;outline-offset:1px}.team-row.unknown{background:#edf0e9;border-style:dashed}.team-empty,.team-unknown-divider{align-self:center;flex:0 0 135px;font-size:10px;line-height:1.5;color:#71836d;padding:5px}.team-unknown-divider{flex-basis:100px;border-left:1px solid #b9c9b1;margin-left:5px}
body.shop-open #teamBoard{display:none}
@media(max-width:700px){#teamBoard{left:6px;right:6px;gap:6px;padding:7px;border-radius:18px}.dock-shop{flex-basis:86px}.dock-shop #accountButton{font-size:10px;min-height:100px;padding:6px}.team-owner{flex-basis:72px}.team-row.player{width:72px;min-width:72px}.team-row{flex-basis:112px;min-width:112px}.team-strip{gap:5px}.team-lane-title{font-size:9px}}

#teamBoard .team-lane .team-strip{padding:1px 3px 4px}
