.sg-panel{min-width:0}.sg-scroll{max-width:100%;overflow:auto;max-height:75vh;scrollbar-color:#698374 #f0f4f1}.sg-table{border-collapse:separate;border-spacing:0;width:100%;font-variant-numeric:tabular-nums}.sg-table caption{text-align:left;color:var(--tour-muted);font-size:13px;padding:0 0 12px}.sg-table th,.sg-table td{border-right:1px solid #d8e2db;border-bottom:1px solid #d8e2db;vertical-align:top}.sg-table thead th{position:sticky;top:0;z-index:2;background:#edf3ef;border-top:1px solid #d8e2db;text-align:left;padding:12px;min-width:250px}.sg-table th:first-child{position:sticky;left:0;min-width:64px;width:64px;background:#edf3ef;border-left:1px solid #d8e2db;padding:12px;text-align:center}.sg-table thead th:first-child{z-index:3}.sg-table tbody th{z-index:1;font-size:13px}.sg-cell{min-width:250px;max-width:330px;padding:12px;background:#fff}.sg-cell.sg-live{background:#eef8f1}.sg-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#405449;margin-bottom:10px}.sg-match{display:grid;gap:3px;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}.sg-match:hover{text-decoration:underline;text-underline-offset:3px}.sg-match strong{font-size:14px}.sg-versus{font-size:11px;color:#526158}.sg-score{font-size:13px;font-weight:600;line-height:1.5;margin:12px 0 8px}.sg-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #dce6df;padding-top:6px}.sg-foot>span{font-size:11px;color:#405449}.sg-foot .text-btn{font-size:12px;min-height:36px}.sg-empty{background:#f8faf8;min-width:250px}.sg-empty>span{display:block;padding:20px;color:#526158;font-size:13px}.sg-add{display:grid;align-content:center;gap:8px;width:100%;min-height:150px;padding:18px;color:#175d3e;background:transparent;font-weight:600;text-align:center}.sg-add span{font-size:12px;font-weight:400;color:#526158}.sg-add:hover{background:#eaf3ed}.sg-panel :focus-visible,.sg-dialog :focus-visible{outline:2px solid #216548;outline-offset:2px}.sg-dialog{width:min(900px,calc(100vw - 24px));max-width:900px}.sg-plan{border-top:1px solid #d8e2db;margin-top:12px;padding-top:20px}.sg-plan-list{max-height:320px;overflow:auto;margin:12px 0}.sg-plan-list p{border-bottom:1px solid #d8e2db;padding:10px 0;display:grid;gap:4px;font-size:13px}.sg-plan-list span{color:#526158}.sg-dialog [hidden]{display:none}.sg-panel button:disabled{opacity:.55;cursor:not-allowed}.modal:has(.gd-editor){width:min(1080px,calc(100vw - 24px));max-width:1080px}.sg-scroll::selection,.sg-dialog::selection{background:#cee7d7;color:#173f2b}@media(max-width:600px){.sg-table thead th,.sg-cell,.sg-empty{min-width:235px}.sg-table th:first-child{min-width:54px;width:54px;padding:10px 6px}.sg-dialog{padding:16px}.sg-panel .section-head>.btn{width:100%}}@media print{.sg-scroll{max-height:none;overflow:visible}.sg-add,.sg-foot button,.sg-panel>.section-head>.btn{display:none}.sg-table thead th,.sg-table th:first-child{position:static}.sg-table th,.sg-table td{min-width:0!important}.sg-cell{padding:6px}}
.draw-fields{min-width:0;margin:0;padding:0;border:0;width:100%}.draw-fields .gd-setting{min-width:0}.draw-fields .gd-setting input,.draw-fields .gd-setting select{width:100%;min-width:0}.draw-fields .cq-selection{min-width:0}.draw-fields .gd-rebuild:disabled{opacity:.55}.draw-fields .gd-toolbar{min-width:0}

@media (prefers-reduced-motion: no-preference) {
  [data-match-details].sg-reveal {
    animation: sg-show-score 160ms cubic-bezier(.23,1,.32,1);
  }
  @keyframes sg-show-score {
    from { opacity: .55; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
  }
}

.sg-hours { display:grid; gap:12px; }
.sg-hours h3, .sg-hours p { margin:0; }
.sg-hours p, .sg-unrestricted { color:#506763; font-size:14px; }
.sg-category-controls { display:grid; grid-template-columns:minmax(0,24rem) 76px; align-items:end; gap:12px; }
.sg-category-controls label,.sg-single-category { display:grid; gap:4px; font-size:13px; }
.sg-single-category strong { font-size:15px; overflow-wrap:anywhere; }
.sg-category-controls :is(input,select) { width:100%; min-width:0; }
.sg-role-count { margin-top:-6px; color:#506763; font-size:12px; }
.sg-dialog .sg-hours-court { max-height:none; overflow:visible; min-width:0; margin:0; padding:8px 0 0; border:0; border-radius:0; }
.sg-hours-court + .sg-hours-court { margin-top:4px; }
.sg-hours-court legend { width:100%; max-width:100%; padding:0; color:#193633; font-weight:700; }
.sg-court-header { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; }
.sg-court-header > :first-child { min-width:min(16%,116px); overflow-wrap:anywhere; max-width:100%; }
.sg-court-header .cq-role-options { width:min(100%,280px); }
.sg-court-header .cq-role-options span { min-height:32px; }
.sg-hour-row { display:grid; grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,1fr)) auto; align-items:end; gap:8px; margin:4px 0 8px; }
.sg-hour-row label { display:grid; gap:4px; font-size:13px; }
.sg-hour-row input { width:100%; min-width:0; box-sizing:border-box; }
.sg-hours-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.sg-hours-actions .text-btn { margin-inline-start:auto; }
[data-hour-rows]:not(:empty) + .sg-hours-actions .sg-unrestricted { display:none; }
.sg-unassigned { padding-inline-start:20px; margin-block:8px 16px; }
@media (max-width:600px) {
  .sg-category-controls { grid-template-columns:minmax(0,1fr) 76px; }
  .sg-court-header { column-gap:6px; }
  .sg-court-header .cq-role-options { width:min(100%,240px); margin-inline-start:auto; }
  .sg-court-header .cq-role-options span { min-height:44px; }
  .sg-hour-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sg-hour-row label:first-child { grid-column:1; }
  .sg-hour-row label:nth-child(2) { grid-row:2; grid-column:1; }
  .sg-hour-row label:nth-child(3) { grid-row:2; grid-column:2; }
  .sg-hour-row [data-remove-hours] { grid-column:2; grid-row:1; justify-self:end; }
}
