/* Desktop competition layouts. Phone components keep their existing styles. */
@media (max-width:800px) {
  .participants-table .participant-desktop-cell,.participant-desktop-detail { display:none!important; }
}

@media (min-width:801px) {
  .waiting-push-option {
    margin:18px 0 0;padding:14px 16px;border:1px solid var(--line);border-radius:7px;background:#fffefa;
  }
  .waiting-push-option legend { padding:0 6px;color:var(--gold-deep);font:700 10px var(--sans);letter-spacing:.08em;text-transform:uppercase; }
  .waiting-push-option>label { display:flex;align-items:flex-start;gap:11px;cursor:pointer; }
  .waiting-push-option input { width:18px;height:18px;margin:2px 0 0;flex:none;accent-color:var(--gold-deep); }
  .waiting-push-option label span { display:grid;gap:4px; }
  .waiting-push-option label strong { font:700 12px/1.4 var(--sans);color:var(--ink); }
  .waiting-push-option label small { font:400 10px/1.5 var(--sans);color:var(--muted); }
  .waiting-push-preview { margin:12px 0 0 29px;padding:10px 12px;border-left:2px solid var(--gold);background:#f8f6ef;color:var(--muted);font:400 11px/1.5 var(--sans); }

  /* Desktop participant rows show six concise columns and one combined editor. */
  .participants-table { width:100%;min-width:700px;table-layout:fixed; }
  .participants-table thead { display:table-header-group; }
  .participants-table .participant-compact-row { display:table-row; }
  .participants-table .participant-mobile-cell { display:none!important; }
  .participants-table .participant-compact-row>.participant-desktop-cell {
    display:table-cell;
    padding:10px;
    border:0;
    border-bottom:1px solid var(--line);
    vertical-align:middle;
    font-size:11px;
    line-height:1.45;
    overflow-wrap:anywhere;
  }
  .participants-table th { padding:12px 10px;white-space:normal;vertical-align:top; }
  .participants-table th:nth-child(1) { width:19%; }
  .participants-table th:nth-child(2) { width:14%; }
  .participants-table th:nth-child(3) { width:12%; }
  .participants-table th:nth-child(4) { width:22%; }
  .participants-table th:nth-child(5) { width:16%; }
  .participants-table th:nth-child(6) { width:17%; }
  .participants-table .person { align-items:flex-start;min-width:0; }
  .participants-table .person>div:last-child { min-width:0; }
  .participants-table .person-link { height:auto;min-height:0;text-align:left; }
  .participants-table .person-name { color:var(--ink);white-space:normal; }
  .participants-table .person-sub { line-height:1.5;overflow-wrap:anywhere; }
  .participants-table .person-sub a { color:inherit; }
  .participants-table .person-avatar { flex-shrink:0; }
  .participants-table .participant-desktop-stack { display:flex;flex-direction:column;align-items:flex-start;gap:7px; }
  .participants-table .participant-desktop-actions { display:flex;flex-wrap:wrap;gap:7px; }
  .participants-table .participant-request { color:var(--red); }
  .participants-table .pony-list { margin:0;line-height:1.4; }
  .participants-table .participant-desktop-cell .text-action,
  .participants-table .participant-desktop-cell .btn { padding-inline:8px;font-size:10px;max-width:100%; }
  .participants-table .participant-desktop-cell .text-action {
    display:inline-flex;align-items:center;justify-content:center;
    height:40px;min-height:40px;border:1px solid var(--line);border-radius:5px;
    background:#fff;color:var(--ink);font:600 10px var(--sans);text-decoration:none;
  }
  .participants-table .participant-desktop-cell .text-action:hover { border-color:var(--gold);box-shadow:var(--hover-shadow); }

  .modal:has(>#participantEditForm) { display:flex;flex-direction:column;width:min(680px,calc(100vw - 48px));overflow:hidden; }
  #participantEditForm { display:flex;flex-direction:column;min-height:0;max-height:inherit; }
  #participantEditForm .modal-head,#participantEditForm .modal-foot { flex:none; }
  #participantEditForm .modal-body { min-height:0;overflow-y:auto; }
  #participantEditForm .field select { width:100%; }
  .participant-editor-preferences { margin:20px 0; }
  .participant-editor-preferences h3 { margin-bottom:10px; }
  .participant-editor-error { margin:14px 0 0;padding:10px;border:1px solid var(--red);border-radius:5px;background:var(--red-pale);color:var(--red);font-size:12px;line-height:1.4; }

  /* Flatten only the desktop wrappers: time, rider, horse, edit, and arrows
     occupy fixed columns, while the phone retains its nested rider/horse row. */
  .schedule-row:not(.break-schedule-row) {
    grid-template-columns:49px minmax(140px,1.2fr) minmax(100px,.8fr) 76px 86px;
    grid-template-areas:none;
    column-gap:10px;
    row-gap:4px;
    align-items:center;
    padding:10px 0;
  }
  .schedule-row:not(.break-schedule-row)>.slot-time { grid-column:1;grid-row:1 / 3;align-self:center;padding:0; }
  .schedule-row:not(.break-schedule-row)>.row-person,
  .schedule-row .row-person-main,
  .schedule-row .schedule-actions,
  .schedule-row .schedule-edit-desktop,
  .schedule-row .schedule-move { display:contents; }
  .schedule-row .row-person-main>strong {
    grid-column:2;grid-row:1;
    align-self:start;
    color:var(--ink);
    font:700 12px/1.4 var(--sans);
  }
  .schedule-row:not(.break-schedule-row)>.row-person .row-horse {
    grid-column:3;grid-row:1;
    align-self:start;
    margin:0;
    min-width:0;
    font:700 12px/1.4 var(--sans);
  }
  .schedule-row .slot-time .slot-class { display:none; }
  .schedule-row .row-person-main>strong::after {
    content:attr(data-exam-label);display:block;margin-top:2px;color:var(--muted);font:400 10px/1.3 var(--sans);
  }
  .schedule-row .row-horse .horse-current { color:var(--ink);font:inherit;font-weight:700; }
  .schedule-row .schedule-edit-desktop .exam-edit-action {
    grid-column:2;grid-row:2;justify-self:start;align-self:start;
    width:auto;height:40px;min-height:40px;padding:0 9px;font-size:10px;
  }
  .schedule-row .schedule-edit-desktop .horse-action {
    grid-column:4;grid-row:1 / 3;align-self:center;justify-self:center;
    display:inline-flex;width:auto;min-width:64px;height:40px;min-height:40px;padding:0 9px;font-size:10px;
  }
  .schedule-row .schedule-move .row-buttons { grid-column:5;grid-row:1 / 3;align-self:center;justify-self:end;gap:4px; }
  .schedule-row .schedule-move .row-buttons button { flex-basis:40px;width:40px;min-width:40px;height:40px;min-height:40px; }
  .schedule-row .schedule-move .horse-warning-slot { grid-column:3 / 6;grid-row:3;min-width:0; }
  .schedule-row .horse-warning-slot .horse-row-warning { margin:2px 0 0;text-align:left;font-size:10px;line-height:1.4; }
  .schedule-row .horse-warning-slot .horse-warning-detail { display:block; }
  .schedule-row .horse-warning-slot .horse-warning-label { display:none; }
  .schedule-row.break-schedule-row { grid-template-columns:49px minmax(0,1fr) 86px;min-height:60px; }
  .schedule-row.break-schedule-row>.row-buttons { gap:4px; }
}

/* Desktop refinement: compact rows, one editor and one planning entry point. */
@media (min-width:801px) {
  .participants-table th:nth-child(1) { width:20%; }
  .participants-table th:nth-child(2) { width:11%; }
  .participants-table th:nth-child(3) { width:12%; }
  .participants-table th:nth-child(4) { width:18%; }
  .participants-table th:nth-child(5) { width:17%; }
  .participants-table th:nth-child(6) { width:22%; }
  .participants-table .participant-desktop-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:center; }
  .participants-table .participant-desktop-actions :is(.btn,.text-action) { width:100%;margin:0;height:40px;min-height:40px;padding:0 5px;font:600 10px var(--sans); }
  .participants-table .participant-desktop-actions [data-action="promote-waiting"] { grid-column:1 / -1;background:#111;color:white;border-color:#111; }
  .participants-table .participant-desktop-actions :is([data-action="approve"],[data-action="reject"]) { width:40px;justify-self:center;font-size:18px; }
  .participants-table .participant-desktop-cell { vertical-align:middle; }
  .startlist-mobile-settings { display:flex;gap:10px;margin:0 0 16px; }
  .schedule-controls { display:none; }
  .modal:has(>#mobileStartlistAdjustments) { display:flex;flex-direction:column;width:min(720px,calc(100vw - 48px));overflow:hidden; }
  #mobileStartlistAdjustments { display:flex;flex-direction:column;min-height:0;max-height:inherit; }
  #mobileStartlistAdjustments :is(.modal-head,.modal-foot) { flex:none; }
  #mobileStartlistAdjustments .modal-body { min-height:0;overflow:auto; }
  #mobileStartlistAdjustments .field :is(input,select) { width:100%; }
  .desktop-rubric-intervals,.mobile-planning-actions { display:grid;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line); }
  .desktop-rubric-intervals p { font-size:11px;color:var(--muted); }
  .mobile-planning-actions .btn { justify-content:flex-start; }
  .schedule-row:not(.break-schedule-row) {
    grid-template-columns:58px minmax(125px,1fr) minmax(100px,.8fr) 65px 66px 68px;
    padding:9px 0;row-gap:0;column-gap:8px;min-height:60px;
  }
  .schedule-row:not(.break-schedule-row)>.slot-time { grid-column:1;grid-row:1; }
  .schedule-row .row-person-main>strong { grid-column:2;grid-row:1;align-self:center;white-space:normal;overflow-wrap:anywhere; }
  .schedule-row .row-person-main>strong::after { display:none; }
  .schedule-row:not(.break-schedule-row)>.row-person .row-horse { grid-column:3;grid-row:1;align-self:center;overflow-wrap:anywhere; }
  .schedule-row .slot-time .slot-class { display:block;grid-column:4;grid-row:1;font:600 11px var(--sans);color:var(--ink);margin:0;align-self:center; }
  .schedule-row:not(.break-schedule-row)>.slot-time { display:contents; }
  .schedule-row .slot-time>.slot-clock { grid-column:1;grid-row:1;align-self:center; }
  .schedule-row .schedule-edit-desktop .horse-action { grid-column:5;grid-row:1;min-width:60px; }
  .schedule-row .schedule-move .row-buttons { grid-column:6;grid-row:1;gap:4px; }
  .schedule-row .schedule-move .row-buttons button { flex-basis:32px;width:32px;min-width:32px;height:32px;min-height:32px; }
  .schedule-row .schedule-move .horse-warning-slot { grid-column:5;grid-row:2;text-align:center; }
  .schedule-row .horse-warning-slot .horse-warning-detail { display:none; }
  .schedule-row .horse-warning-slot .horse-warning-label { display:inline;font:500 10px var(--sans);color:var(--red); }
  .schedule-row .horse-warning-slot .horse-row-warning { text-align:center; }
}
@media (min-width:801px) {
  .participants-table { min-width:900px; }
  .participants-table th:nth-child(1) { width:18%; }
  .participants-table th:nth-child(2) { width:12%; }
  .participants-table th:nth-child(3) { width:11%; }
  .participants-table th:nth-child(4) { width:15%; }
  .participants-table th:nth-child(5) { width:18%; }
  .participants-table th:nth-child(6) { width:26%; }
  .participants-table .participant-desktop-actions { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px 40px;gap:4px; }
  .participants-table .participant-desktop-actions [data-action="promote-waiting"] { grid-column:3 / 5; }
  .schedule-row .horse-warning-slot .horse-warning-label {
    height:auto;min-height:0;width:auto;min-width:0;padding:0;border:0;border-radius:0;
    background:transparent;box-shadow:none;line-height:14px;
  }
}

@media (min-width:801px) {
  #scheduleBody .toggle:has([data-rubric-interval]) { display:none; }
}

@media (min-width:801px) {
  .rubric-heading { position:relative;border-bottom:0;padding-bottom:14px;margin-bottom:2px; }
  .rubric-heading::after { content:"";position:absolute;right:0;bottom:4px;left:0;height:1px;background:#eeece5;pointer-events:none; }
}

/* Desktop startlist order: warning, then edit, then the existing move controls. */
@media (min-width:801px) {
  .schedule-row:not(.break-schedule-row) { grid-template-columns:58px minmax(125px,1fr) minmax(100px,.8fr) 65px 48px 64px 68px!important; }
  .schedule-row .schedule-move .horse-warning-slot { grid-column:5!important;grid-row:1!important;align-self:center;text-align:center; }
  .schedule-row .schedule-edit-desktop .horse-action { grid-column:6!important;grid-row:1!important; }
  .schedule-row .schedule-move .row-buttons { grid-column:7!important;grid-row:1!important; }
}

/* FNRS approval actions use the same palette as their status badges. */
.participants-table button[data-action="approve"]{background:var(--green-pale);color:var(--green);border-color:var(--green-pale)}
.participants-table button[data-action="reject"]{background:#f8e4e3;color:#8e302b;border-color:#f8e4e3}
.participants-table button:is([data-action="approve"],[data-action="reject"]) svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

@media(min-width:801px){
 .desktop-results .desktop-result-group{margin:16px 0;overflow:visible}
 .desktop-result-group>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 16px;border-bottom:1px solid var(--line)}
 .desktop-result-group>header>div{display:flex;gap:12px;flex-wrap:wrap}
 .desktop-release-switch{display:flex;align-items:center;gap:7px;font:600 11px var(--sans)}
 .desktop-release-switch input{appearance:none;width:32px;height:18px;border-radius:12px;background:#aaa;position:relative;cursor:pointer;flex:none}
 .desktop-release-switch input:checked{background:var(--green)}
 .desktop-release-switch input:before{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:white}
 .desktop-release-switch input:checked:before{left:17px}
 .desktop-result-group table{width:100%;table-layout:fixed;border-collapse:collapse}
 .desktop-result-group :is(th,td){padding:11px 12px;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere;font-size:12px;vertical-align:middle}
 .desktop-result-group th{color:var(--muted);font-size:10px;text-transform:uppercase}
 .desktop-result-group th:nth-last-child(2){width:140px}.desktop-result-group th:last-child{width:64px}
 .desktop-result-score{font-weight:700}
 .desktop-result-group td .btn{white-space:nowrap}
 .desktop-result-menu{width:36px;height:36px;padding:0;justify-content:center}
 .desktop-result-popover{position:fixed;inset:0;margin:auto;padding:22px;width:min(420px,90vw);border:1px solid var(--line);border-radius:5px;background:#fffefa;color:var(--ink)}
 .desktop-result-popover::backdrop{background:#0004}
 .desktop-result-popover p{margin:10px 0}
 .desktop-print-group{margin:14px 0;padding:12px;border:1px solid var(--line)}
 .desktop-print-group>label{display:flex;align-items:center;gap:8px;margin:8px 0}
 #desktopResultGroups .field{margin:12px 0}
}

@media(min-width:801px){
 #modal:has(.fast-score-list){width:min(980px,calc(100vw - 48px));max-width:min(980px,calc(100vw - 48px));display:flex;flex-direction:column;overflow:hidden}
 #modal:has(.fast-score-list) .modal-body{flex:1;min-height:0;overflow:auto}
 #modal:has(.fast-score-list) :is(.modal-head,.modal-foot){flex:none}
 .fast-score-list{gap:12px;max-height:350px;padding:4px}
 .fast-score-row.fast-score-points-row{grid-template-columns:minmax(220px,1fr) 100px 115px;gap:22px;padding:12px 16px}
 .fast-score-row.fast-score-points-row.has-notes{grid-template-columns:minmax(170px,1fr) 90px 100px minmax(150px,1fr)}
 .fast-score-heading{margin:18px 0 12px;gap:24px}
 .fast-score-field{gap:8px}.fast-score-field input{min-height:40px}
 .desktop-score-controls{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
 .desktop-score-controls p{margin:10px 0;font-size:11px;color:var(--muted)}
 .desktop-score-controls .fast-score-pad[hidden]{display:none}
 .active-score-row{border-color:var(--gold-deep);background:var(--gold-pale)}
 .score-mode-options{gap:18px;padding:8px 0}.score-mode-option{padding:22px 24px;gap:10px}
 .score-mode-option strong{line-height:1.5}.score-mode-option span{line-height:1.7}
 .desktop-result-menu svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
 .saved-total-notice{margin:14px 0}.saved-total-notice p{margin-top:6px}
}

@media(min-width:801px){
 #modal:has(.fast-score-list){width:min(900px,calc(100vw - 32px));max-width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 24px)}
 #modal:has(.fast-score-list) .modal-head{padding:12px 18px}
 #modal:has(.fast-score-list) .modal-head .eyebrow{display:none}
 #modal:has(.fast-score-list) .modal-body{display:flex;flex-direction:column;padding:10px 18px;gap:6px}
 #modal:has(.fast-score-list) .modal-body>.field{margin-bottom:0!important}
 #modal:has(.fast-score-list) .modal-body>.field>small,
 #modal:has(.fast-score-list) :is(.fast-score-notice,.fast-score-heading>span,.saved-total-notice p,.fast-score-complete-banner){display:none}
 #modal:has(.fast-score-list) .fast-score-heading{margin:4px 0;flex:none}
 #modal:has(.fast-score-list) .fast-score-rule-note{margin:0;font-size:10px;flex:none}
 #modal:has(.fast-score-list) .saved-total-notice{margin:0;padding:6px 9px;flex:none}
 #modal:has(.fast-score-list) .fast-score-list{flex:1;min-height:90px;max-height:none;gap:6px;padding:2px;overflow:auto}
 #modal:has(.fast-score-list) .fast-score-row.fast-score-points-row{grid-template-columns:minmax(160px,1fr) 75px 85px 65px;gap:12px;padding:7px 10px}
 #modal:has(.fast-score-list) .fast-score-row.fast-score-points-row.has-notes{grid-template-columns:minmax(150px,1fr) 65px 75px 60px minmax(130px,.8fr)}
 #modal:has(.fast-score-list) .fast-score-field{gap:3px}
 #modal:has(.fast-score-list) .fast-score-field input{min-height:34px}
 .component-points{display:block;text-align:center;font-weight:700;color:var(--ink)}
 #modal .modal-foot:has(.desktop-score-controls){display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px 18px;background:#fffefa;border-top:1px solid var(--line);position:sticky;bottom:0}
 .desktop-score-controls{margin:0;padding:0;border:0;display:grid;grid-template-columns:minmax(210px,1fr) auto;gap:7px;align-items:end}
 .desktop-score-controls>.field{max-width:300px}
 .desktop-score-controls .fast-score-pad{grid-column:1/-1;display:grid;gap:5px}
 .desktop-score-keyrow{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}
 .desktop-score-keyrow .fast-score-key{min-height:32px;font-size:12px}
 .desktop-score-controls .desktop-score-clear[hidden]{display:none}
 .desktop-score-footer-actions{display:flex;justify-content:flex-end;gap:8px}
 #modal:has(.desktop-score-controls) .fast-score-total{margin:0;padding:5px 0;gap:12px;flex-wrap:wrap}
 #modal:has(.desktop-score-controls) .fast-score-total strong{font-size:12px}
 .desktop-print-help{font-size:11px;color:var(--muted);line-height:1.6;margin:18px 0 12px}
 .desktop-print-selection-actions{display:flex;gap:7px;margin-bottom:12px}
 .desktop-print-class{padding:9px 0;border-bottom:1px solid var(--line);display:flex;align-items:start;justify-content:space-between;gap:12px;font-size:12px}
 .desktop-print-class label{display:flex;gap:8px;align-items:center}
 .desktop-print-class details{min-width:160px;font-size:11px;color:var(--muted)}
 .desktop-print-class details label{margin:8px 0;color:var(--ink)}
 .result-group-editor-card{border:1px solid var(--line);border-radius:5px;margin-bottom:12px;overflow:hidden}
 .result-group-editor-card>header{display:flex;justify-content:space-between;align-items:center;padding:10px;background:var(--gold-pale);gap:12px}
 .result-group-editor-class{padding:10px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}
 .result-group-editor-class>div{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
 .result-group-editor-card>p{padding:12px;font-size:11px;color:var(--muted)}
 #modal:has(#desktopResultGroups){width:min(860px,calc(100vw - 40px));max-width:min(860px,calc(100vw - 40px))}
}
@media(min-width:801px){
 .desktop-score-controls .fast-score-pad{grid-template-columns:minmax(0,1fr);width:100%}
 .desktop-score-keyrow{width:100%;min-width:0}
 #modal:has(.fast-score-list) .fast-score-list{grid-auto-rows:minmax(68px,auto);align-content:start}
 #modal:has(.fast-score-list) .fast-score-row{min-height:68px;flex-shrink:0}
}

@media(min-width:801px){
 #modal:has(#desktopResultGroups){display:flex;flex-direction:column;overflow:hidden}
 #desktopResultGroups{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 #desktopResultGroups>.modal-body{flex:1;min-height:0;overflow:auto}
 #desktopResultGroups>.modal-foot{flex:none}
 #desktopResultGroups [data-group-edit="add"]{margin-bottom:12px}
}

@media(min-width:801px){
 #desktopResultGroups .result-group-editor-card{margin-bottom:8px;border:1px solid #e4e1d8;border-radius:3px;box-shadow:none}
 #desktopResultGroups .result-group-editor-card>header{padding:6px 9px;background:#f4f0e5;gap:8px}
 #desktopResultGroups .result-group-editor-card>header strong{font:600 11px var(--sans)}
 #desktopResultGroups .result-group-editor-card>header>div{display:flex;gap:4px}
 #desktopResultGroups .result-group-editor-class{padding:6px 9px;border-top:1px solid #eeeae2;gap:8px}
 #desktopResultGroups .result-group-editor-class>strong{font:600 11px var(--sans)}
 #desktopResultGroups [data-group-edit]:not([data-group-edit="add"]){width:30px;min-width:30px;height:30px;min-height:30px;padding:0;border:1px solid #ddd9d0;border-radius:3px;justify-content:center;font-size:13px;box-shadow:none}
 #desktopResultGroups [data-group-edit="split"]{width:auto;min-width:65px;padding:0 7px;font:600 10px var(--sans)}
 #modal:has(.pd1-rating-list) .pd1-rating-list{grid-auto-rows:auto;gap:5px}
 #modal .pd1-rating-row,.pd1-rating-legend{display:grid;grid-template-columns:minmax(160px,1fr) repeat(3,minmax(65px,90px));gap:12px;padding:7px 10px;align-items:center}
 #modal:has(.pd1-rating-list) .pd1-rating-row{min-height:56px}
 .pd1-rating-options{display:contents}
 .pd1-rating-legend{position:sticky;top:0;z-index:2;background:#f4f0e5;border-bottom:1px solid var(--line);font-size:10px;line-height:1.4}
 .pd1-rating-legend>span{text-align:center}
 .pd1-rating-legend>span strong{display:block;font-size:13px}
 .pd1-rating-choice{position:relative;display:flex;align-items:center;justify-content:center;min-height:36px;border:1px solid #dedad0;border-radius:3px;background:white;cursor:pointer;font:600 14px var(--sans)}
 .pd1-rating-choice input{position:absolute;opacity:0;width:1px;height:1px}
 .pd1-rating-choice:has(input:checked){background:var(--gold-pale);border-color:var(--gold-deep);color:var(--gold-deep)}
 .pd1-rating-choice:focus-within{outline:2px solid var(--gold-deep);outline-offset:2px}
}

@media(min-width:801px){
 #desktopResultGroups [data-group-edit="split"]:not([data-group-edit="add"]){width:auto;min-width:65px;padding:0 7px;font:600 10px var(--sans)}
}
@media(min-width:801px){
 .list-toolbar:has(.startlist-desktop-toolbar-actions){flex-wrap:wrap;gap:12px}
 .startlist-desktop-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
 .startlist-desktop-toolbar-actions>.btn{white-space:nowrap}
}

/* Startlist rubrics use the same separate surfaces as the desktop results. */
@media(min-width:801px){
 .schedule-layout>.panel:has(>#scheduleBody){border:0;background:transparent;box-shadow:none;overflow:visible}
 .schedule-layout>.panel:has(>#scheduleBody)>.panel-head{border:1px solid var(--line);border-radius:5px;background:#fffefa}
 #scheduleBody{display:grid;gap:16px;margin:16px 0;padding:0;min-width:0}
 #scheduleBody>.schedule-group{width:100%;min-width:0;padding:0;border:1px solid var(--line);border-radius:5px;background:#fffefa;box-shadow:0 3px 12px #231f1005;overflow:visible}
 #scheduleBody>.schedule-group>.rubric-heading{margin:0;padding:14px 12px;border-bottom:1px solid var(--line);gap:8px;border-radius:5px 5px 0 0}
 #scheduleBody>.schedule-group>.rubric-heading::after{display:none}
 #scheduleBody .rubric-name{font:600 20px var(--serif);gap:8px;color:var(--ink)}
 #scheduleBody .rubric-name>.line{display:none}
 #scheduleBody .rubric-name small{font:600 10px var(--sans);color:var(--muted)}
 #scheduleBody .schedule-row{margin:0;padding:10px 12px;column-gap:8px;border-bottom:1px solid var(--line)}
 #scheduleBody .schedule-row:last-child{border-bottom:0;border-radius:0 0 5px 5px}
 .schedule-layout>.panel:has(>#scheduleBody)>.publish-box{border:1px solid var(--line);border-radius:5px;background:#fffefa}
}

/* Approval requests remain available through the participant status filter. */
@media (min-width:801px) {
  #viewRoot .approval-box:has([data-action="focus-pending"]) { display:none; }
}

@media(min-width:801px){#scheduleBody .schedule-row.break-schedule-row{grid-template-columns:49px minmax(0,1fr) 128px}#scheduleBody .break-schedule-row>.row-buttons{justify-content:flex-end;gap:4px}}

/* Compact desktop start-list controls; rider and horse typography stays intact. */
@media (min-width:801px) {
  #scheduleBody { gap:12px; }
  #scheduleBody>.schedule-group>.rubric-heading { padding:10px 12px; }
  #scheduleBody .schedule-row { min-height:44px;padding:6px 12px; }
  #scheduleBody .schedule-row:not(.break-schedule-row) {
    grid-template-columns:58px minmax(125px,1fr) minmax(100px,.8fr) 65px 44px 28px 60px!important;
  }
  #scheduleBody .schedule-edit-desktop .horse-action,
  #scheduleBody .schedule-inline-edit,
  #scheduleBody .row-buttons button {
    display:inline-flex;align-items:center;justify-content:center;
    flex:0 0 28px;width:28px;min-width:28px;height:28px;min-height:28px;
    padding:0;border:1px solid var(--line);border-radius:5px;
    color:#77756c;background:#fffefa;font-size:14px;
  }
  #scheduleBody .schedule-edit-desktop .horse-action svg,
  #scheduleBody .schedule-inline-edit svg {
    width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;
    stroke-linecap:round;stroke-linejoin:round;
  }
  #scheduleBody .row-buttons { gap:4px; }
  #scheduleBody .rubric-heading .judge-label .text-action { height:28px;min-height:28px;padding:0 8px; }
  #scheduleBody .schedule-row.break-schedule-row { grid-template-columns:58px minmax(0,1fr) 96px; }
  #scheduleBody .break-schedule-row>.row-buttons { align-items:center; }
  #scheduleBody .schedule-prize-ceremony { min-height:0;padding:6px 10px;gap:8px;flex-wrap:nowrap; }
  #scheduleBody .schedule-prize-ceremony>span { min-width:0;overflow-wrap:anywhere; }
  #scheduleBody .schedule-prize-ceremony>.schedule-inline-edit { margin-left:auto; }
  #scheduleBody :is(.schedule-edit-desktop .horse-action,.schedule-inline-edit,.row-buttons button):hover {
    color:var(--gold-deep);border-color:var(--gold);
  }
}

/* Keep pause actions on the exact same columns as rider actions. */
@media (min-width:801px) {
  #scheduleBody .break-schedule-row>.row-buttons { width:96px; }
  #scheduleBody .break-schedule-row>.row-buttons>.schedule-inline-edit { margin-right:4px; }
  #scheduleBody .schedule-row:not(.break-schedule-row):has(.horse-warning-label) { background:#fbe5e3; }
}

/* Match the spacing between rubric cards in the desktop start-list sidebar. */
@media (min-width:801px) {
  .schedule-aside { display:grid;gap:12px;align-content:start; }
  .schedule-aside> :is(.panel,.notice) { margin-block:0; }
}
@media(min-width:801px){
 /* Only the score keys leave the protocol-width modal. */
 #modalBackdrop.open:has(.desktop-score-controls.is-wide-score-pad){padding-bottom:86px}
 #modalBackdrop.open:has(.desktop-score-controls.is-wide-score-pad) #modal{max-height:calc(100dvh - 110px)}
 .desktop-score-controls.is-wide-score-pad .fast-score-pad{position:fixed;left:16px;right:16px;bottom:12px;width:auto;z-index:1100;padding:10px;background:#fffefa;border:1px solid var(--line);border-radius:5px;box-shadow:0 4px 20px #0002}
 .desktop-score-controls.is-wide-score-pad .desktop-score-keyrow{grid-template-columns:repeat(19,minmax(0,1fr)) minmax(56px,1.2fr);gap:4px}
 .desktop-score-controls.is-wide-score-pad .fast-score-key{height:44px;min-height:44px;min-width:0;padding:4px 1px;font-size:13px;white-space:nowrap}
}
