.book-panel-full{min-width:0;display:grid;gap:.8rem}
.book-panel-full>.title-row{margin-bottom:0}
.book-controls,.book-teams{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap}
.book-controls{justify-content:space-between}
.book-teams{min-width:0;flex:1 1 290px}
.book-teams button{white-space:normal;max-width:100%;overflow-wrap:anywhere}
.book-teams button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}
.book-choose{display:flex;align-items:center;gap:.3rem;white-space:nowrap}
.book-choose select{border:1px solid #afc2b5;color:var(--navy);background:white;border-radius:7px;padding:.45rem;min-height:44px}
.book-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(232px,285px);gap:.85rem;align-items:start}
.book-main,.book-selection{min-width:0}
.book-scroll{position:relative;isolation:isolate;overflow:auto;max-width:100%;border:1px solid #718a77;border-radius:7px;scrollbar-color:#63897b #e7eee4}
.book-grid{--plate:108px;--roster:106px;--bracket:24px;width:max-content;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed;text-align:center;background:#fffaf0}
.book-grid-large{--plate:150px}
.book-grid th,.book-grid td{padding:0;text-align:center;border-right:1px solid #879d8c;border-bottom:1px solid #879d8c;vertical-align:middle}
.book-grid tr:last-child td,.book-grid tbody tr:last-child th{border-bottom:0}
.book-grid th:last-child,.book-grid td:last-child{border-right:0}
.book-grid .book-sticky{position:sticky;left:0;z-index:3;min-width:var(--roster);width:var(--roster);background:#e5eee3;color:#284e3d}
.book-grid .book-roster{text-align:left}
.book-grid .book-head{min-width:var(--plate);width:var(--plate);background:#e5eee3;color:#284e3d;padding:.25rem 0;height:44px}
.book-grid .book-has-bracket{min-width:calc(var(--plate) + var(--bracket));width:calc(var(--plate) + var(--bracket))}
.book-grid .book-head-active{background:#205a47;color:white}
.book-inning,.book-head small{display:block}
.book-head small{font-size:.7rem;line-height:1.1;min-height:.75rem;font-weight:550}
.book-head-active small{color:#e4f1e7}
.book-order{display:inline-grid;place-items:center;width:1.45rem;min-height:1.45rem;margin:0 .15rem;background:#d0e3d6;border-radius:3px;font:700 .89rem Georgia,serif}
.book-person{display:inline-block;max-width:calc(var(--roster) - 2rem);padding-right:3px;font-size:.78rem;vertical-align:middle;overflow-wrap:anywhere}
.book-person small{display:block;color:#4e6c60}
.book-grid td{position:relative}
.book-guide,.book-cell{display:block;width:var(--plate);aspect-ratio:126/100}
.book-guide{pointer-events:none}
.book-cell{padding:0;min-height:0;border:0;border-radius:0;background:transparent}
.book-cell canvas{display:block;width:100%;height:auto}
.book-cell:hover,.book-cell-active{background:#f5edd6}
.book-cell[aria-current=true]{position:relative;z-index:1;box-shadow:inset 0 0 0 2px #a06720;background:#fff3d7}
.book-cell:focus-visible{outline-offset:-3px}
.book-brace{position:absolute;z-index:2;top:22%;left:var(--plate);width:var(--bracket);height:153%;pointer-events:none}
.book-dp{position:absolute;top:36%;left:calc(var(--plate) + 4px);padding:0 1px;font:700 .57rem Georgia,serif;pointer-events:none}
.book-legend{margin:.55rem 1px .15rem}
.book-detail{display:grid;gap:.55rem;padding:.7rem;align-content:start;overflow-wrap:anywhere}
.book-detail h3{font-size:1rem;min-width:0}
.book-return{display:none;font-size:.79rem;padding-inline:.45rem}
.book-detail-tile{display:block;width:100%;height:auto;aspect-ratio:126/100;background:#fffaf0;border:1px solid #819685;border-radius:6px}
.book-cell-label{font-size:.88rem;font-weight:650}
.book-detail-pitches,.book-events{margin:0;padding:0;list-style:none;font-size:.84rem}
.book-detail-pitches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.18rem}
.book-detail-pitches :is(button,span),.book-play{display:block;width:100%;text-align:left;font-size:.83rem;white-space:normal;overflow-wrap:anywhere}
.book-detail-pitches span{padding:.3rem .45rem}
.book-events li{border-bottom:1px solid #e6eee7;padding:.25rem .2rem}
.book-half-notes{margin-top:.2rem}
@media(max-width:800px){
  .book-content{grid-template-columns:minmax(0,1fr)}
  .book-grid{--plate:96px;--roster:83px}
  .book-grid-large{--plate:133px}
  .book-detail-tile{max-width:390px}
  .book-return{display:inline-block}
}
@media(max-width:400px){.book-controls{justify-content:flex-start}.book-controls button{padding-inline:.55rem}}
