.court-step { display: flex; align-items: center; gap: 4px; flex: 1 1 0; min-width: 0; }
.court-step > .btn { padding: 0; }
.court-step .now { display: flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; height: 30px; padding: 0 8px; background: var(--tile); color: var(--value); }
.court-step .words { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.court-chip { width: 12px; height: 12px; flex: none; }

.section.court .btn { justify-content: flex-start; }
[data-section] + [data-section="court"] > .section { border-top: 4px solid var(--ground); padding-top: 8px; }
[data-section="court-piece"] .row.stack > .label { color: var(--text); }
[data-section="court-piece"] .field input:disabled { color: var(--disabled-text); }

.court-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; gap: 6px; padding: 6px 8px 8px; background: var(--panel); }
.court-bar[hidden], .viewport.alone ~ .court-bar { display: none; }
.court-bar .head { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 30px; }
.court-bar .who { flex: 1 1 0; min-width: 0; padding-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.court-bar .sets { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.court-bar .sets .court-step { flex: 1 1 150px; max-width: calc(50% - 3px); }
.viewport.court-barred .line { bottom: calc(var(--court-bar, 0px) + 10px); }
[data-section] + [data-section="ctf"] > .section { border-top: 4px solid var(--ground); padding-top: 8px; }
[data-section="ctf-piece"] .row.stack > .label { color: var(--text); }
.viewport.ctf-barred .line { bottom: calc(var(--ctf-bar, 0px) + 10px); }
