.comp-event-card{padding:17px;border-radius:16px}
.comp-event-card h3{font-size:22px;margin:16px 0 8px}
.comp-event-card p{margin-bottom:16px}
.comp-card-top time,.comp-card-bottom{font-size:12px}
.comp-segments{gap:6px;margin-bottom:16px}
.comp-segments button{min-height:44px;font-size:12px;padding:9px 12px}
.comp-section-tabs{gap:6px;overflow-x:auto;overflow-y:hidden;display:flex;flex-wrap:nowrap;max-width:100%;min-width:0;overscroll-behavior-x:contain;scrollbar-width:thin;padding:4px;background:var(--bike-soft,#e9ece6);border:1px solid var(--comp-line);border-radius:12px;margin:0 0 18px}
.comp-section-tabs button{flex:1 0 auto;min-width:max-content;min-height:44px;border:0;border-radius:8px;font-size:13px;padding:8px 5px;line-height:1.35;white-space:nowrap;overflow-wrap:normal}
.comp-section-tabs button.active{background:#fff;box-shadow:0 1px 4px #20282012;border:0}
.comp-main-tabs button{min-width:104px;padding-inline:20px;font-size:14px}
.comp-backrow{margin-bottom:16px}
.comp-backrow .button{min-height:44px;font-size:13px}
.comp-title h2{font-size:28px;line-height:1.2;margin:10px 0}
.comp-title p{margin-bottom:16px}
.comp-panel{padding:17px}
.comp-summary{margin-bottom:16px;padding:16px 7px}
.comp-entry .button,.comp-mark .button,.comp-post-close .button,.comp-detail-row .button{min-height:44px;font-size:12px}
.comp-table td,.comp-table th{font-size:13px}
.comp-entry{flex-wrap:wrap;gap:10px}
.comp-entry>div{flex-basis:160px}
.comp-entry .button{flex:0 1 auto}
.comp-heading>div{min-width:0;flex:1 1 180px;overflow-wrap:anywhere}
.comp-heading h2,.comp-heading h3,.comp-heading h4,.comp-title h2{min-width:0;overflow-wrap:anywhere}
.comp-heading>.button{flex:0 1 auto;max-width:100%}
.comp-title-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.comp-title-actions .button{font-size:13px}
.comp-actions .button{flex:1 1 160px;min-width:0}
.comp-post-close{flex-wrap:wrap;gap:8px}
.comp-post-close>span{min-width:0;flex:1 1 90px;overflow-wrap:anywhere}
.comp-post-close .button{flex:0 1 auto;max-width:100%}
.comp-detail-row>span{min-width:0;overflow-wrap:anywhere}
.comp-card-top{flex-wrap:wrap}
.comp-form-grid .field{min-width:0}
.comp-form-grid input,.comp-form-grid select{min-width:0;max-width:100%}
.comp-race-header{display:flex;align-items:flex-start;gap:8px;margin:0 0 12px;min-width:0}
.comp-race-header h1{min-width:0;margin:7px 0 0;font-size:22px;line-height:1.3;letter-spacing:-.45px;font-weight:750;overflow-wrap:anywhere}
.comp-overview-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 14px;color:var(--comp-muted);font-size:13px;line-height:1.45}
.comp-kp-row{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;padding:2px 0 6px}
.comp-kp-button,.comp-kp-chip{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-height:44px;padding:9px 12px;border:1px solid var(--comp-line,#d9dcd6);border-radius:10px;background:#fff;color:var(--bike-ink,#292c2a);font-size:13px;line-height:1.3;font-weight:600;white-space:nowrap}
.comp-kp-chip{background:var(--bike-soft,#e9ece6)}
.comp-kp-control{width:44px;padding:0;font-size:24px;line-height:1;position:sticky;left:0;z-index:1}
.comp-kp-plus{position:sticky;left:auto;right:0;background:var(--bike-accent-ink,#454b48);border-color:var(--bike-accent-ink,#454b48);color:#fff}
.comp-kp-button.selected{background:var(--bike-accent-ink,#454b48);border-color:var(--bike-accent-ink,#454b48);color:#fff}
.comp-route-label{display:block;font-size:13px;font-weight:550;margin:0 0 7px}
.comp-route-preview{margin:8px 0 18px;padding:10px 12px;border-radius:10px;background:var(--bike-soft,#e9ece6);font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.comp-kp-note{margin:8px 0 0;color:#8b3d28}
.comp-race-header>.button{flex:0 0 auto;white-space:nowrap}
.comp-loop-boundaries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 0}
.comp-loop-boundaries .field{min-width:0;margin-bottom:0}
.comp-loop-boundaries select{min-width:0;max-width:100%}
.comp-entry-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px;margin:0 0 16px}
.comp-entry-filters .field{min-width:0;margin-bottom:0}
.comp-entry-filters select,.comp-entry-filters input{width:100%;min-width:0;min-height:44px;height:44px;margin:0;padding:9px 10px;font-size:13px;line-height:1.35}
.comp-detail-row+[data-comp-action="add-staff"]{margin-top:16px}
.comp-wide-action{margin-top:12px}.comp-wide-action>.button{display:flex;justify-content:center;width:100%}
.comp-overview-link{position:relative}.comp-overview-link:hover{border-color:var(--comp-accent)}
.comp-overview-link>.comp-edit-hit{position:absolute;inset:0;z-index:1;width:100%;height:100%;min-height:0;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer}
.comp-overview-link a{position:relative;z-index:2}
#comp-event-information,.comp-class-editor,.comp-locked-class{scroll-margin-top:16px}
.comp-locked-class{margin-top:16px;padding-top:16px;border-top:1px solid var(--comp-line)}
#c-markBib.comp-bib-valid{border-color:#55945d;background:#f0f8ef;box-shadow:0 0 0 2px #55945d22}
#c-markBib.comp-bib-invalid{border-color:#bd5548;background:#fff3f0;box-shadow:0 0 0 2px #bd554822}
.comp-mark-preview.is-valid{color:#356a3c}.comp-mark-preview.is-invalid{color:#a13d32}
.comp-duration-input{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.85fr);gap:8px}
.comp-duration-input input,.comp-duration-input select{min-width:0;max-width:100%;margin:0}
.comp-form-grid>.comp-duration-field{grid-column:1/-1}
.comp-checkpoint-copy{display:grid;gap:4px;min-width:0;flex:1}.comp-checkpoint-copy span{font-size:13px;color:var(--comp-muted)}.comp-checkpoint-copy strong{font-size:14px;line-height:1.4}.comp-checkpoint-copy small{color:#8b4b32}
.comp-checkpoint-detail>.button{flex:0 0 auto}
.comp-queue-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.comp-queue-summary>div{display:flex;flex-direction:column;gap:4px;min-width:0}.comp-queue-summary strong{font-size:21px;line-height:1.2}.comp-queue-summary span{font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.comp-queue-help{font-size:12px;margin:8px 0 12px}
@media (max-width: 610px) {
 .comp-table-wrap{border:0;background:transparent;overflow:visible;margin:16px 0}
 .comp-table,.comp-table tbody{display:block;white-space:normal;width:100%}
 .comp-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
 .comp-table tbody{display:grid;gap:12px}
 .comp-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--comp-line);border-radius:15px;background:#fff;padding:14px;gap:12px}
 .comp-table tbody td{display:block;border:0;padding:0;min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.4}
 .comp-table tbody .result-position{grid-column:1;grid-row:1;font-size:24px}
 .comp-table tbody .result-person{grid-column:2/4;grid-row:1;min-width:0}
 .comp-table tbody .result-person>strong{font-size:15px}
 .comp-table tbody td[data-label]:before{content:attr(data-label);display:block;font-size:11px;font-weight:500;color:var(--comp-muted);margin-bottom:5px}
 .comp-table tbody .result-total{color:var(--comp-accent)}
 .comp-table tbody .result-detail{grid-column:1/-1;border-top:1px solid var(--comp-line);padding-top:3px}
 .comp-table .text-button{width:100%;justify-content:flex-start;font-size:13px}
}

@media (max-width: 560px) {
  .comp-main-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible }
  .comp-main-tabs button { min-width: 0; padding-inline: 5px; font-size: 13px }
}
