.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-tab-scroll {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin-bottom: 16px;
  --comp-tab-fade-left: 0px;
  --comp-tab-fade-right: 0px;
}

.comp-tab-scroll-glass {
  padding: 2px 5px;
  border: 1px solid #fffc;
  border-radius: 20px;
  background: #eef1f1cc;
  box-shadow: inset 0 1px 1px #fff, 0 4px 12px -8px #343d43a8;
}

.comp-tab-scroll > .comp-tab-row {
  flex: 1 1 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.comp-tab-scroll > .comp-tab-row[data-glass-tabs] {
  padding: 3px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.comp-tab-row[data-glass-tabs] > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-inline: 11px;
  font-size: clamp(13px, 3.6vw, 14px);
}

.comp-tab-row[data-glass-tabs] > [data-glass-lens] {
  box-shadow: var(--glass-lens-rim), 0 2px 5px -2px #4a453d66;
}

.comp-tab-row > button:focus-visible { outline-offset: -3px; }

.comp-tab-arrow {
  display: none;
  flex: 0 0 38px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 15px;
  color: #41494c;
  background: transparent;
}

.comp-tab-scroll.has-overflow > .comp-tab-arrow { display: grid; }
.comp-tab-arrow[data-comp-tab-scroll="left"] svg { transform: rotate(180deg); }
.comp-tab-arrow[aria-disabled="true"] { opacity: .33; cursor: default; }
.comp-tab-arrow[aria-disabled="false"]:hover { background: #ffffff75; }
.comp-tab-arrow:focus-visible { outline-offset: -3px; }

.comp-tab-scroll:has(> [data-comp-tab-scroll="left"][aria-disabled="false"]) { --comp-tab-fade-left: 9px; }
.comp-tab-scroll:has(> [data-comp-tab-scroll="right"][aria-disabled="false"]) { --comp-tab-fade-right: 9px; }

.comp-tab-scroll.has-overflow > .comp-tab-row {
  mask-image: linear-gradient(to right, transparent, #000 var(--comp-tab-fade-left), #000 calc(100% - var(--comp-tab-fade-right)), transparent);
}

@media (prefers-reduced-transparency: reduce) {
  .comp-tab-scroll-glass { background: #eff1f1; }
}

.comp-tab-scroll-links {
  margin-bottom: 12px;
  border-bottom: 1px solid #3d464d55;
}

.comp-subtabs {
  display: flex;
}

.comp-subtabs > button {
  display: inline-flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  min-height: 40px;
  padding: 2px 2px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--bike-ink);
  font-size: clamp(13px, 3.6vw, 14px);
  font-weight: 650;
  white-space: nowrap;
}

.comp-subtab-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px clamp(3px, .8vw, 6px);
  border-radius: 5px;
  outline: 1px solid #a6afb2;
  outline-offset: -1px;
}

.comp-subtabs > button:not([aria-current="page"]):hover .comp-subtab-label {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.comp-subtabs > button[aria-current="page"] {
  border-bottom-color: currentColor;
  font-weight: 700;
}

.comp-tab-scroll-links > .comp-tab-arrow {
  flex-basis: 32px;
  min-height: 40px;
  border-radius: 4px;
}

.comp-nav-count,.comp-checklist-tab-count{
  flex:none;padding:2px 6px;border-radius:5px;
  background:var(--bike-soft);color:var(--comp-accent);
  font-size:11px;font-weight:650;font-variant-numeric:tabular-nums;
}
.comp-workspace-content{min-width:0}
.comp-workspace-content:focus{outline:none}
.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:10px 14px;margin:0 0 14px;min-width:0}
.comp-race-header h1{min-width:0;margin:5px 0 0;font-size:clamp(21px,3vw,32px);line-height:1.2;letter-spacing:-.025em;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: 550px) {
}
@media (max-width: 700px), (pointer: coarse) {
  .competitions .field :is(input,select,textarea),#sheet .field :is(input,select,textarea){font-size:16px}
}
