/* INDIV: clear navigation, touch targets and data-led tournament graphics. */
.nav {
  gap: 8px;
}
.nav a {
  font-size: 14px !important;
  font-weight: 600;
  color: #c8c8c8;
  padding: 14px 15px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav a:hover,
.nav a.active {
  color: #fff;
  background: #252525;
  box-shadow: inset 0 -3px #ff704d;
}
.tabs-line {
  gap: 10px;
  overflow-x: auto;
}
.tabs-line button {
  font-size: 13px !important;
  color: #bdbdbd;
  min-height: 48px;
  padding: 12px 16px;
  white-space: nowrap;
}
.tabs-line button.active {
  color: #fff;
  background: #232323;
  border-bottom: 3px solid #ff704d;
}
.btn,
.icon-btn {
  min-height: 44px;
}
.field,
.field input,
.field select,
.field textarea {
  font-size: 14px;
}
.field small,
.notice,
.reg-card p,
.format-description {
  font-size: 12px;
  color: #b5b5b5;
}
.field input,
.field select {
  min-height: 44px;
}
.field input[type="checkbox"],
.registration-consent input {
  width: 20px;
  min-height: 20px;
  accent-color: #ff784f;
}
.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.reg-card-head {
  flex-wrap: wrap;
}
.team-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.roster-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 12px;
}
.roster-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.roster-person {
  padding: 16px;
  border: 1px solid #383838;
  border-radius: 8px;
  background: #1b1b1b;
}
.roster-person strong {
  font-size: 14px;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.qualified {
  color: #75f3c6;
  background: #123b30;
  border: 1px solid #27775d;
}
.eliminated {
  color: #ffb2a5;
  background: #441f24;
  border: 1px solid #86414b;
}
.withdrawn {
  color: #d4d4d4;
  background: #383838;
  border: 1px solid #666;
}
.qualification-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.qualification-strip > div,
.qualification-strip > section {
  padding: 12px;
  border: 1px solid #383838;
  border-radius: 6px;
  font-size: 13px;
  background: #171717;
}
.journey-intro p {
  font-size: 13px;
  color: #b5b5b5;
  line-height: 1.8;
}
.bracket {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding: 20px 8px 36px;
  scroll-snap-type: x proximity;
  min-height: 250px;
  background:
    radial-gradient(ellipse at top left, #202734 0, transparent 60%), #101114;
  border: 1px solid #333;
  border-radius: 12px;
}
.bracket-round {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 20px;
}
.bracket-round > h3 {
  position: sticky;
  top: 0;
  font-size: 14px;
  letter-spacing: 1px;
  color: #d8e5f3;
  background: #202631;
  padding: 13px;
  margin: 0;
  border-top: 2px solid #ff784f;
}
.bracket-node {
  position: relative;
  border: 1px solid #404b5a;
  background: linear-gradient(135deg, #222833, #15191f);
  border-radius: 8px;
  padding: 13px;
  box-shadow: 0 8px 20px #0003;
}
.bracket-node:after {
  content: "→";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 40px;
  text-align: center;
  font-size: 24px;
  color: #8296b0;
}
.bracket-round:last-child .bracket-node:after {
  display: none;
}
.bracket-node > small {
  display: block;
  color: #aab7c9;
  font-size: 10px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.bracket-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  min-height: 50px;
  border-bottom: 1px solid #ffffff12;
  font-size: 13px;
}
.bracket-team span {
  flex: 1;
}
.bracket-team b {
  font-size: 20px;
  min-width: 24px;
  text-align: right;
}
.bracket-team.winner {
  color: #8bf3cb;
}
.bracket-node .btn {
  width: 100%;
  margin-top: 10px;
  background: #ffffff09;
}
.bracket-node.decided {
  border-left: 3px solid #62c7a3;
}
.bracket-node.skipped {
  opacity: 0.4;
}
.branch-source {
  margin-top: 10px;
  font-size: 9px;
}
.proposal {
  min-width: 0;
  padding: 15px;
  border: 1px solid #444;
  display: grid;
  gap: 12px;
}
.proposal > label {
  font-size: 14px;
}
.proposal small {
  line-height: 1.7;
  font-size: 12px;
}
.portrait {
  position: relative;
  overflow: hidden;
  background: #222;
  width: 100%;
  height: 240px;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-list {
  width: 52px;
  height: 58px;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
.portrait-profile {
  height: 340px;
  max-width: 360px;
}
.player-art > .portrait {
  position: absolute;
  inset: 0;
  height: 100%;
}
.player-art:has(.portrait) .jersey-shape,
.player-art:has(.portrait) .jersey-number {
  display: none;
}
.crop-editors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.crop-editors fieldset {
  min-width: 0;
  padding: 12px;
  border: 1px solid #444;
}
.crop-editors .portrait {
  height: 200px;
  width: 100%;
  max-width: 100%;
}
.crop-editors .portrait-list {
  height: 100px;
  width: 100px;
}
.crop-editors input[type="range"] {
  padding: 0;
  accent-color: #ff784f;
}
.highlight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #424242;
  background: #171717;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.highlight-card:hover,
.highlight-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.highlight-art {
  position: relative;
  height: 240px;
  background: radial-gradient(
    ellipse at top right,
    color-mix(in srgb, var(--accent) 30%, #181818),
    #111
  );
}
.highlight-art:after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #171717);
}
.highlight-art .portrait {
  height: 100%;
}
.highlight-number {
  font-family: var(--display);
  position: absolute;
  right: 20px;
  font-size: 180px;
  color: var(--accent);
  opacity: 0.22;
}
.highlight-emblem {
  position: absolute;
  bottom: 10px;
  left: 18px;
  font-size: 45px;
  color: var(--accent);
  z-index: 1;
}
.highlight-rank {
  position: absolute;
  top: 15px;
  left: 18px;
  font-size: 14px;
  color: #ddd;
}
.highlight-body {
  padding: 20px;
}
.highlight-body > small {
  font-size: 11px;
  color: #aaa;
}
.highlight-body h3 {
  font-size: 19px;
  margin: 9px 0;
}
.highlight-title {
  display: block;
  font-family: var(--display);
  font-size: 27px;
  color: var(--accent);
}
.highlight-value {
  font-size: 42px;
  font-family: var(--display);
  margin-top: 18px;
}
.highlight-value small {
  font-size: 15px;
  color: #bbb;
}
.highlight-body p {
  font-size: 12px;
  color: #b7b7b7;
  line-height: 1.7;
}
.registration-consent {
  padding: 18px;
  border: 1px solid #444;
  background: #1b1b1b;
  margin: 24px 0;
}
.registration-consent label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
}
.registration-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
}
.registration-consent p {
  font-size: 12px;
  color: #bbb;
  line-height: 1.8;
}
.roster-row input[type="file"] {
  grid-column: 1/-1;
}
.roster-row {
  padding-bottom: 12px;
  border-bottom: 1px solid #333;
}
.reg-actions {
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .nav a {
    padding: 12px 8px;
    font-size: 12px !important;
  }
  .header-inner {
    gap: 15px;
  }
  .brand-label small {
    display: block;
  }
}
@media (max-width: 760px) {
  .mobile-nav a {
    font-size: 16px;
    min-height: 48px;
  }
  .mobile-nav a.active {
    color: #fff;
    background: #272727;
    border-left: 3px solid #ff784f;
    padding-left: 12px;
  }
  .tabs-line {
    gap: 4px;
  }
  .tabs-line button {
    font-size: 12px !important;
    padding: 12px;
  }
  .bracket {
    gap: 28px;
    padding: 14px 8px 24px;
  }
  .bracket-round {
    flex-basis: 260px;
  }
  .bracket-node:after {
    width: 28px;
  }
  .player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .highlight-art {
    height: 200px;
  }
  .highlight-body {
    padding: 13px;
  }
  .highlight-body h3 {
    font-size: 16px;
  }
  .highlight-title {
    font-size: 23px;
  }
  .highlight-value {
    font-size: 34px;
  }
  .highlight-value small {
    display: block;
    font-size: 13px;
  }
  .highlight-body p {
    font-size: 11px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .crop-editors {
    grid-template-columns: 1fr;
  }
  .roster-row .nickname-input {
    display: block;
    grid-column: 1/-1;
  }
  .roster-row {
    grid-template-columns: 1fr 65px 44px;
  }
  .field input,
  .field select,
  .roster-row input {
    font-size: 16px;
  }
  .reg-card p {
    font-size: 13px;
  }
  .reg-actions .btn {
    flex: 1;
  }
  .header-actions .search-toggle {
    display: inline-grid;
  }
  .header-actions > .btn {
    display: none;
  }
  .modal-foot {
    flex-wrap: wrap;
  }
  .portrait-profile {
    max-width: 100%;
    height: 280px;
  }
}
@media (max-width: 390px) {
  .player-grid {
    grid-template-columns: 1fr;
  }
  .highlight-art {
    height: 280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .highlight-card {
    transition: none;
  }
  .highlight-card:hover {
    transform: none;
  }
}
.bracket {
  position: relative;
  max-height: 78vh;
  overflow: auto;
  align-items: flex-start;
}
.bracket-links {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 0;
}
.bracket-round {
  z-index: 1;
  position: relative;
}
.bracket-node:after {
  display: none;
}
.bracket-team > .team-mark {
  flex: 0 0 34px;
  width: 34px;
  height: 38px;
}
.bracket-team > span:not(.team-mark) {
  flex: 1;
}
.journey-intro > label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.journey-intro .select {
  max-width: 260px;
}
.detail-banner > .portrait-profile {
  width: 200px;
  flex-shrink: 0;
  height: 240px;
}
.portrait {
  touch-action: none;
  cursor: grab;
}
.portrait:active {
  cursor: grabbing;
}
.highlight-controls {
  grid-column: 1/-1;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}
.highlight-controls small {
  max-width: 520px;
  color: #aaa;
  line-height: 1.7;
}
.highlight-controls label {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .bracket {
    max-height: 72vh;
  }
  .detail-banner > .portrait-profile {
    width: 110px;
    height: 160px;
  }
  .detail-banner:has(.portrait-profile) {
    flex-wrap: wrap;
  }
  .journey-intro > label {
    align-items: flex-start;
    flex-direction: column;
  }
}
.nav a::after,.nav a::before,.mobile-nav a::after{content:none!important;display:none!important}
.nav a.active{border-bottom:0!important;box-shadow:inset 0 -3px #ff704d}
.team-mark.has-logo{background:transparent!important;border:0!important;clip-path:none!important;box-shadow:none!important;border-radius:0!important}
.team-mark.has-logo::before,.team-mark.has-logo::after{display:none!important}
.team-mark.has-logo img{object-fit:contain}
.withdrawn-player{opacity:.5}.withdrawn-player .badge{opacity:1;white-space:normal}
.preview-frame{max-width:100%;overflow:hidden;border:1px solid #444;background:#111;margin:10px 0}
.preview-frame .portrait{margin:0;border-radius:0;display:block;max-width:100%}
.preview-frame .portrait>span{display:flex;align-items:center;justify-content:center;height:100%;color:#aaa;font-size:13px;padding:16px}
.preview-frame .portrait-list{width:70px;height:78px}
.preview-frame .portrait-coverCard{height:auto;aspect-ratio:16/9}
.preview-frame .portrait-coverBanner{height:auto;aspect-ratio:3/1}
.preview-controls{display:flex;gap:10px;flex-wrap:wrap}
[data-preview-device=mobile] .preview-frame{max-width:230px}
[data-preview-device=mobile] .portrait-coverBanner{aspect-ratio:1/1}
.cover-image{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none}
.cover-image img{width:100%;height:100%;object-fit:cover}
.cover-image:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#111d,transparent 80%)}
.tour-cover:has(.cover-image)>span,.comp-banner:has(.cover-image)>:not(.cover-image){position:relative;z-index:1}
.comp-banner:has(.cover-image):before{display:none}
.preview-frame .portrait-logo{width:110px;height:110px;background:transparent}
.preview-frame .portrait-coverCard{aspect-ratio:360/175}
.preview-frame .portrait-coverBanner{aspect-ratio:1160/285}
[data-preview-device=mobile] .portrait-coverCard{aspect-ratio:350/175}
[data-preview-device=mobile] .portrait-coverBanner{aspect-ratio:350/285}
.tour-cover:has(.cover-image){background-image:none!important}
.tour-cover:has(.cover-image)>.tour-watermark{display:none!important}

/* Organizer workspace and statistics */
.admin-competition-grid{display:grid;grid-template-columns:minmax(16rem,1fr) minmax(0,3fr);gap:1.25rem;align-items:start}
.admin-competition-grid>section,.admin-filters{min-width:0}
.ops-panel h3{font-size:1.45rem}
.ops-panel h4{font-size:1rem;margin:1.25rem 0 .3rem}
.ops-panel p,.ops-panel dd{color:#e3e0dc}
.ops-panel dt{color:#bfbcb7}
.ops-panel dl{display:grid;grid-template-columns:auto 1fr;gap:.65rem}
.ops-panel dd{margin:0}
.ops-task{border-inline-start:2px solid var(--orange,#ff7048);padding:.5rem .75rem;margin:.6rem 0;background:#1f1e1d}
.ops-task p{margin:0 0 .4rem}
.admin-details{margin-top:.75rem}
.admin-details>summary{cursor:pointer;color:#efedea;line-height:1.6;padding:.25rem 0}
.admin-details:not([open]) .when-open,.admin-details[open] .when-closed{display:none}
.admin-details>.roster-cards{margin-top:.75rem}
.soft-deleted{background:#181818!important}
.soft-deleted>strong,.soft-deleted>img{opacity:.6}
.admin-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.75rem;margin:.75rem 0}
.admin-filter-grid>*{min-width:0}
.admin-filters .action-row{margin-top:.65rem}
.admin-filters [aria-pressed="true"]{color:#fff;border-color:#ff7048}
.admin-filters p,.registration-group>p{color:#c9c5c0;font-size:.9rem}
.admin-match-table th{color:#ccc;font-size:.75rem}
.admin-match-table td{font-size:.88rem}
.admin-match-table td small{display:block;color:#bdbab6;font-size:.72rem}
.admin-match-table .admin-pair .cell-person{margin:.2rem 0}
.admin-match-score{font-weight:700}
.match-menu>summary{font-size:.75rem}
.match-menu .btn{margin:.15rem}
.password-field{display:flex;align-items:stretch;gap:.5rem}
.password-field input{min-width:0;flex:1}
.password-field button{white-space:nowrap}
.registration-group{margin-block:1.2rem}
.registration-group .reg-card{margin-bottom:.6rem}
.registration-group ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.6rem}
.registration-group ul li{display:flex;align-items:center;gap:.35rem}
.player-mobile-stats{display:none}
@media(max-width:820px){
 .admin-competition-grid{grid-template-columns:1fr}
 .admin-match-table,.admin-match-table tbody{display:block;min-width:0;width:100%}
 .admin-match-table thead{display:none}
 .admin-match-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem;padding:.85rem;border-bottom:1px solid #373737}
 .admin-match-table td{display:block;padding:0;border:0;text-align:left}
 .admin-match-table td:first-child,.admin-match-table td:last-child{grid-column:1/-1}
 .admin-match-table .admin-pair{grid-row:2}
 .admin-match-table .admin-match-score{align-self:center}
 .admin-match-table .match-menu{display:inline-block;margin-left:.65rem}
 .player-stat-table{min-width:0!important;width:100%}
 .player-stat-table td,.player-stat-table th{padding:.5rem .3rem}
 .player-stat-table .player-secondary,.player-stat-table th:first-child,.player-stat-table td:first-child,.player-stat-table th:last-child,.player-stat-table td:last-child{display:none}
 .player-stat-table .cell-person{gap:.3rem}
 .player-mobile-stats{display:flex;flex-wrap:wrap;gap:.15rem .45rem;font-size:.7rem;color:#e0ddda;margin-top:.35rem}
}
.btc-confirmation{
 width:min(34rem,calc(100% - 2rem));max-height:calc(100% - 2rem);overflow:auto;
 padding:clamp(1rem,4vw,1.75rem);background:#171717;color:#f4f1ec;border:1px solid #555
}
.btc-confirmation::backdrop{background:rgba(0,0,0,.75)}
.btc-confirmation h2{font-size:1.55rem;margin:0 0 .75rem}
.btc-confirmation-question{white-space:pre-wrap;overflow-wrap:anywhere;color:#dedbd5}
.btc-confirmation .field[hidden]{display:none}
.btc-delete-check:not([hidden]){display:flex;align-items:center;gap:.65rem;min-height:2.75rem;cursor:pointer}
.btc-delete-check input{width:1.15rem;height:1.15rem;accent-color:#ff7048}
.btc-confirmation .action-row{margin-top:1rem;justify-content:flex-end}
.scorebook-modal.wide {
  width: min(1320px, calc(100vw - 32px));
  max-width: 1320px;
}
.scorebook-meta, .scorebook-actions, .scorebook-recent, .scorebook-bench-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.scorebook-meta, .scorebook-actions { padding-block: 10px; }
.scorebook-meta [role="status"] { color: #d8d0c8; font-size: .9rem; }
.scorebook-board {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid #5a463c;
  background: #161311;
  padding: 8px 16px;
  text-align: center;
}
.scorebook-board > div { display: grid; gap: 3px; overflow-wrap: anywhere; }
.scorebook-side-toggle.btn { display: none; }
.scorebook-board strong { font: 800 clamp(2rem, 5vw, 3.7rem)/1 Barlow, sans-serif; font-variant-numeric: tabular-nums; color: #fff; }
.scorebook-recent { justify-content: space-between; padding-block: 8px; }
.scorebook-tools { align-items: center; padding-block: 4px 10px; }
.scorebook-tools input { width: 82px; }
.scorebook-courts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 12px; }
.scorebook-team { min-width: 0; padding: 12px; border: 1px solid #383735; background: #171716; }
.scorebook-team h3 { margin-top: 0; font-size: 1.1rem; line-height: 1.2; }
.scorebook-team h3 + p { color: #ddd4cc; margin: 6px 0; }
.scorebook-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 5px 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #353331;
}
.scorebook-person { display: flex; align-items: center; gap: 8px; }
.scorebook-person > b { color: #ff936e; flex-shrink: 0; font-size: 1.42rem; font-variant-numeric: tabular-nums; }
.scorebook-person > span { font-size: .95rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; line-height: 1.28; }
.scorebook-person small { display: inline-block; color: #c1b9ae; font-size: .72rem; }
.scorebook-points, .scorebook-fouls { white-space: nowrap; color: #ddd4cc; font-size: .76rem; }
.scorebook-points b, .scorebook-fouls b { color: #fff; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.scorebook-fouls.at-limit { background: #582318; color: #fff; padding: 4px; }
.scorebook-player-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.scorebook-player-actions .btn { padding-inline: 3px; min-height: 44px; font-size: .78rem; white-space: nowrap; }
.scorebook-player-actions .score-tap { background: #35231b; color: #ffd3ba; border-color: #775344; font-variant-numeric: tabular-nums; }
.scorebook-player-actions .score-tap:hover { background: #4e3325; }
.scorebook-player-actions .foul-tap { background: #302022; color: #ffe1e4; border-color: #744f54; }
.scorebook-extra { padding: 12px; border: 1px solid #805742; display: grid; gap: 8px; margin-block: 8px; background: #211915; }
.scorebook-bench-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.scorebook-timeout { display: grid; justify-items: center; gap: 5px; padding: 14px 8px; margin-bottom: 8px; border: 1px solid #fa855b; background: #35231b; color: #fff3e9; text-align: center; }
.scorebook-timeout strong { font: 800 clamp(1.65rem, 3vw, 2.3rem)/1.08 var(--display); text-transform: uppercase; }
.scorebook-board .scorebook-timeout-mobile { display: none; }
.scorebook-openers:empty { display: none; }
.scorebook-openers { padding: 8px 12px; background: #1d1c1a; border-bottom: 1px solid #4c433c; }
.scorebook-openers p { margin: 2px 0; }
.scorebook-openers summary { cursor: pointer; }
.scorebook-openers .field { display: inline-grid; margin: 5px 12px 5px 0; }
.scorebook-clock-error { color: #ffb89d; }
.scorebook-audit-label { color: #ffb89d; white-space: nowrap; }
.scorebook-fields { margin-block: 10px; padding: 8px 10px; border: 1px solid #423f3a; }
.scorebook-fields summary { cursor: pointer; font-weight: 600; color: #f1e6d9; }
.scorebook-fields .form-grid { padding-top: 10px; }
.scorebook-fields fieldset { min-width: 0; margin: 8px 0; border: 1px solid #423f3a; }
.scorebook-fields li { margin: 6px 0; }
.scorebook-bench-row, .lineup-pick, .scorebook-log li { padding: 7px 0; border-bottom: 1px solid #3a3733; }
.lineup-pick { display: grid; grid-template-columns: minmax(0, 1fr) 9rem; gap: 5px 10px; align-items: center; }
.scorebook-log { max-height: 250px; overflow: auto; padding: 0 10px 0 24px; }
.scorebook-log li > span.action-row { display: inline-flex; margin-left: 6px; }
.scorebook-paper-head, .scorebook-paper-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.2rem 4.2rem; gap: 7px; align-items: center; }
.scorebook-paper-head { padding: 6px 0; color: #d4c7ba; }
.scorebook-paper-row { padding: 7px 0; border-top: 1px solid #3a3733; }
.scorebook-paper-row select { display: block; margin-top: 4px; width: min(100%, 12rem); }
.scorebook-modal input:not([type=file]), .scorebook-modal select { max-width: 100%; min-height: 40px; }
.scorebook-paper-row input, .scorebook-tools input { text-align: center; }
.score-periods caption { text-align: left; font-weight: 700; padding: 10px; }
.score-periods th, .score-periods td { text-align: center; padding: 8px; }
.scorebook-print table { width: 100%; }
.scorebook-print th, .scorebook-print td { text-align: left; padding: 5px; }
.scorebook-print th, .scorebook-print td { color: #ece7df; font-size: .78rem; letter-spacing: 0; }
.scorebook-print h4 { overflow-wrap: anywhere; }
.player-stat-table .cell-person small { display: none; }
@media (max-width: 850px) {
  .scorebook-courts { grid-template-columns: 1fr; }
  .scorebook-court:not(.mobile-side-active), .scorebook-side-name { display: none; }
  .scorebook-side-toggle.btn { display: inline-flex; min-height: 42px; padding: 5px; }
  .scorebook-side-toggle[aria-pressed="true"] { border-color: #fa855b; background: #35231b; }
  .scorebook-board .scorebook-timeout-mobile { display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; background: #35231b; padding: 4px; }
  .scorebook-timeout-end { display: none; }
}
@media (max-width: 620px) {
  .scorebook-modal.wide { width: 100%; }
  .scorebook-modal .modal-body { padding: 12px; }
  .scorebook-modal .modal-head { padding: 10px 12px; }
  .scorebook-team { padding: 8px; }
  .scorebook-player-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scorebook-paper-head, .scorebook-paper-row { grid-template-columns: minmax(0, 1fr) 3.4rem 3.4rem; }
  .player-stat-table .player-team-col { display: none; }
  .player-stat-table .cell-person small { display: block; }
}
@media print {
  body:has(.scorebook-print) { overflow: visible !important; background: white; color: black; }
  body:has(.scorebook-print) #app, body:has(.scorebook-print) #toast,
  body:has(.scorebook-print) .modal-head, body:has(.scorebook-print) .scorebook-meta,
  #scorebook-content > :not(.scorebook-print) { display: none; }
  .overlay:has(.scorebook-print), .scorebook-modal:has(.scorebook-print), .scorebook-modal .modal-body:has(.scorebook-print) {
    position: static; display: block; width: 100%; height: auto; max-height: none; overflow: visible;
    padding: 0; background: white; color: black; border: 0;
  }
  .scorebook-print .scorebook-courts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scorebook-print th, .scorebook-print td { color: black; border: 1px solid #777; }
  .scorebook-print .scorebook-log { max-height: none; overflow: visible; }
}
