/* Ride Card's editor uses the existing Rider Workspace tokens. Canvas artwork is unchanged. */
:root{font:16px Arial,Helvetica,sans-serif;color:#F4F7F9;background:#18162F;color-scheme:dark}
*{box-sizing:border-box}
body.tgl-ridecard-workspace{margin:0;min-height:100vh;background:radial-gradient(ellipse at 100% 0,#282941,transparent 45%),var(--tgl-workspace-bg)}
.tgl-ridecard-workspace a{color:#F4F7F9;text-underline-offset:3px}
.tgl-ridecard-workspace>header{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--tgl-workspace-line);padding:16px}
.tgl-ridecard-workspace header nav{display:flex;gap:16px;font-size:14px}
.tgl-ridecard-workspace main{max-width:1200px;margin:auto;padding:32px 24px 40px}
.tgl-ridecard-workspace .eyebrow{font-size:12px;line-height:1.5;letter-spacing:.11em;font-weight:700;text-transform:uppercase;color:var(--tgl-workspace-muted)}
.tgl-ridecard-workspace h1{font-size:clamp(34px,4.5vw,52px);line-height:1.05;letter-spacing:-.04em;margin:8px 0 12px}
.tgl-ridecard-workspace .intro{font-size:17px;line-height:1.5;max-width:680px;color:var(--tgl-workspace-muted);margin:0}
.tgl-ridecard-workspace .workspace-heading{margin-bottom:24px}
.tgl-ridecard-workspace .workspace-steps{display:flex;gap:24px;border-block:1px solid var(--tgl-workspace-line);margin-bottom:28px;flex-wrap:wrap}
.tgl-ridecard-workspace .workspace-steps a{display:flex;align-items:center;gap:8px;min-height:48px;font-size:14px;font-weight:700;text-decoration:none}
.tgl-ridecard-workspace .workspace-steps a:hover{text-decoration:underline;text-decoration-color:#E6007E}
.tgl-ridecard-workspace .workspace-steps span{font-size:12px;font-weight:400;color:var(--tgl-workspace-muted)}
.tgl-ridecard-workspace main>.layout{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,1fr);gap:40px;align-items:start}
.tgl-ridecard-workspace .ride-editor{min-width:0}
.tgl-ridecard-workspace .workspace-section{scroll-margin-top:16px;min-width:0}
.tgl-ridecard-workspace .workspace-section+.workspace-section{margin-top:16px;padding-top:16px;border-top:1px solid var(--tgl-workspace-line)}
.tgl-ridecard-workspace h2{font-size:23px;line-height:1.2;letter-spacing:-.025em;margin:0 0 20px}
.tgl-ridecard-workspace h3{font-size:17px;margin:20px 0 12px}
.tgl-ridecard-workspace .workspace-section>h2{border-left:3px solid #E6007E;padding-left:12px}
.tgl-ridecard-workspace .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tgl-ridecard-workspace .field{min-width:0}
.tgl-ridecard-workspace .full{grid-column:1/-1}
.tgl-ridecard-workspace label,.tgl-ridecard-workspace .selection-label,.tgl-ridecard-workspace .duration-label{display:block;font-size:14px;font-weight:700;line-height:1.4;margin-bottom:6px}
.tgl-ridecard-workspace .optional{font-weight:400}
.tgl-ridecard-workspace input,.tgl-ridecard-workspace select{width:100%;min-width:0;min-height:46px;border:1px solid var(--tgl-workspace-edge);border-radius:8px;background:var(--tgl-workspace-deep);color:#F4F7F9;font:inherit;padding:10px;max-width:100%}
.tgl-ridecard-workspace input[type=file]{font-size:14px;padding:10px 8px;overflow:hidden}
.tgl-ridecard-workspace input::file-selector-button{font:inherit;color:#F4F7F9;background:var(--tgl-workspace-steel);border:0;border-radius:4px;margin-right:8px;padding:5px 8px;cursor:pointer}
.tgl-ridecard-workspace input[type=checkbox]{width:18px;height:18px;min-height:0;flex:0 0 18px;margin:0;accent-color:#E6007E}
.tgl-ridecard-workspace input[type=range]{padding-inline:0;accent-color:#E6007E}
.tgl-ridecard-workspace .duration-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tgl-ridecard-workspace .duration-fields label{font-size:12px;min-height:34px;display:flex;flex-wrap:wrap;align-content:end;gap:0 4px}
.tgl-ridecard-workspace .duration-fields input{text-align:center;padding-inline:4px}
.tgl-ridecard-workspace small,.tgl-ridecard-workspace .note{display:block;font-size:14px;line-height:1.5;color:var(--tgl-workspace-muted)}
.tgl-ridecard-workspace small{margin-top:6px}
.tgl-ridecard-workspace .note{margin:10px 0 0}
.tgl-ridecard-workspace p{line-height:1.5}
.tgl-ridecard-workspace button{font:700 14px/1.35 Arial,sans-serif;min-height:44px;max-width:100%;border:1px solid transparent;border-radius:8px;padding:10px 14px;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.tgl-ridecard-workspace .actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}
.tgl-ridecard-workspace .strava-ride-choice .actions a{font-size:14px;display:inline-flex;align-items:center;min-height:44px}
.tgl-ridecard-workspace .strava-ride-choice{margin-bottom:12px}
.tgl-ridecard-workspace #stravaRideStatus{margin:8px 0 0;overflow-wrap:anywhere}
.tgl-ridecard-workspace .selected-ride{border-left:3px solid #E6007E;background:var(--tgl-workspace-surface);padding:14px 16px;margin:16px 0;overflow-wrap:anywhere}
.tgl-ridecard-workspace .selected-ride small{margin:0;font-size:12px}
.tgl-ridecard-workspace .selected-ride strong{display:block;font-size:18px;line-height:1.35;margin:4px 0}
.tgl-ridecard-workspace .selected-ride span{font-size:14px;line-height:1.5;color:var(--tgl-workspace-muted)}
.tgl-ridecard-workspace details{min-width:0}
.tgl-ridecard-workspace summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:14px;line-height:1.45;font-weight:700}
.tgl-ridecard-workspace summary span{font-weight:400;color:var(--tgl-workspace-muted);font-size:12px;margin-left:6px}
.tgl-ridecard-workspace .workspace-disclosure,.tgl-ridecard-workspace .ride-details{border-top:1px solid var(--tgl-workspace-line)}
.tgl-ridecard-workspace :is(.ride-details,.figure-disclosure,.optional-note,.source-help)>summary{font-size:14px;line-height:1.45;font-weight:700;padding:12px 0;list-style:disclosure-closed inside}
.tgl-ridecard-workspace :is(.ride-details,.figure-disclosure,.optional-note,.source-help)[open]>summary{list-style:disclosure-open inside}
.tgl-ridecard-workspace :is(.ride-details,.figure-disclosure,.optional-note,.source-help):not([open]){padding-bottom:0}
.tgl-ridecard-workspace .ride-reset{margin:16px 0 0}
.tgl-ridecard-workspace .ride-reset #reset{border-radius:999px;padding:10px 18px;font-weight:600;text-decoration:none;min-height:44px}
.tgl-ridecard-workspace .workspace-disclosure[open],.tgl-ridecard-workspace .ride-details[open]{padding-bottom:16px}
.tgl-ridecard-workspace .ride-details .grid{margin-top:4px}
.tgl-ridecard-workspace .file-guide{margin-top:8px}
.tgl-ridecard-workspace .file-guide summary{font-weight:400;text-decoration:underline;text-underline-offset:3px}
.tgl-ridecard-workspace .file-guide strong{font-size:14px}
.tgl-ridecard-workspace .file-guide ol{padding-left:22px;font-size:14px;line-height:1.5;color:var(--tgl-workspace-muted);margin:8px 0 16px}
.tgl-ridecard-workspace .file-guide li{margin:6px 0}
.tgl-ridecard-workspace .source-help .note{margin:0}
.tgl-ridecard-workspace .share-choice{margin:0 0 16px}
.tgl-ridecard-workspace .share-choice select{font-weight:700}
.tgl-ridecard-workspace .ride-figures{margin:16px 0}
.tgl-ridecard-workspace .choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 8px}
.tgl-ridecard-workspace .choices label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;font-weight:400;border:1px solid var(--tgl-workspace-edge);border-radius:8px;padding:10px;margin:0;cursor:pointer}
.tgl-ridecard-workspace .choices label:has(input:checked){background:var(--tgl-workspace-surface)}
.tgl-ridecard-workspace .choices label:has(input:disabled){color:var(--tgl-workspace-muted);cursor:default}
.tgl-ridecard-workspace .mode-fields{margin:16px 0}
.tgl-ridecard-workspace #segmentFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tgl-ridecard-workspace #stravaSegments,.tgl-ridecard-workspace #segmentEvidenceStatus{grid-column:1/-1}
.tgl-ridecard-workspace #segmentEvidenceStatus{margin-top:0}
.tgl-ridecard-workspace .display-options{margin-top:16px}
.tgl-ridecard-workspace .display-options>.full{grid-column:auto}
.tgl-ridecard-workspace .image-options{display:grid;gap:8px;margin:16px 0}
.tgl-ridecard-workspace .optional-note{margin-top:16px}
.tgl-ridecard-workspace .image-options .field+.field{margin-top:0}
.tgl-ridecard-workspace .highlight-results{display:flex;gap:16px;flex-wrap:wrap;margin:16px 0}
.tgl-ridecard-workspace .highlight-results div{min-width:80px}
.tgl-ridecard-workspace .highlight-results strong{display:block;font-size:20px;margin-top:4px}
.tgl-ridecard-workspace .highlight-results small{font-size:12px}
.tgl-ridecard-workspace .ride-preview{min-width:0;padding:24px;border:1px solid var(--tgl-workspace-line);border-top:3px solid #E6007E;background:var(--tgl-workspace-surface);border-radius:14px;scroll-margin-top:16px}
.tgl-ridecard-workspace .preview{max-width:460px;margin:auto;min-width:0}
.tgl-ridecard-workspace .preview canvas{display:block;width:100%;height:auto;border-radius:10px;background:#201F38;box-shadow:0 8px 24px #08081560;touch-action:none;cursor:grab}
.tgl-ridecard-workspace .preview canvas:active{cursor:grabbing}
.tgl-ridecard-workspace .preview.transparent canvas{background:repeating-conic-gradient(#30414b 0% 25%,#1a2a35 0% 50%) 50%/30px 30px}
.tgl-ridecard-workspace .card-description{margin-top:8px}
.tgl-ridecard-workspace .card-description summary,.tgl-ridecard-workspace .photo-position summary{font-weight:400;color:var(--tgl-workspace-muted)}
.tgl-ridecard-workspace .card-description p{font-size:14px;color:var(--tgl-workspace-muted);margin:4px 0 12px;overflow-wrap:anywhere}
.tgl-ridecard-workspace .photo-controls{border-top:1px solid var(--tgl-workspace-line);padding:16px 0;margin-top:8px}
.tgl-ridecard-workspace .photo-controls p{font-size:14px;color:var(--tgl-workspace-muted);margin:4px 0 12px}
.tgl-ridecard-workspace .photo-position{margin-top:8px}
.tgl-ridecard-workspace .photo-directions{display:flex;flex-wrap:wrap;gap:8px}
.tgl-ridecard-workspace .photo-directions button{min-width:44px;padding:8px}
.tgl-ridecard-workspace .export-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;margin:16px auto 0;max-width:460px;scroll-margin-top:16px}
.tgl-ridecard-workspace .export-actions button{min-height:48px;font-size:16px;flex:1 1 auto}
.tgl-ridecard-workspace .status{font-size:14px;line-height:1.5;margin:12px 0 0;overflow-wrap:anywhere}
.tgl-ridecard-workspace .status:empty{display:none}
.tgl-ridecard-workspace .related,.tgl-ridecard-workspace .tgl-about{border-top:1px solid var(--tgl-workspace-line);padding:24px 0 0;margin-top:28px;background:transparent;border-radius:0;border-left:0}
.tgl-ridecard-workspace .related strong,.tgl-ridecard-workspace .tgl-about strong{font-size:18px}
.tgl-ridecard-workspace .related p,.tgl-ridecard-workspace .tgl-about p{font-size:14px;color:var(--tgl-workspace-muted);margin:8px 0 4px;max-width:680px}
.tgl-ridecard-workspace .related a,.tgl-ridecard-workspace .tgl-about a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:700}
.tgl-ridecard-workspace footer{max-width:1200px;margin:auto;padding:0 24px 32px;font-size:14px;line-height:1.6;color:var(--tgl-workspace-muted)}
.tgl-ridecard-workspace [hidden]{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1000px){.tgl-ridecard-workspace .ride-preview{position:sticky;top:16px}}
@media(max-width:900px){.tgl-ridecard-workspace main>.layout{grid-template-columns:1fr;gap:28px}.tgl-ridecard-workspace .ride-preview{padding:24px}.tgl-ridecard-workspace .preview,.tgl-ridecard-workspace .export-actions{max-width:480px}}
@media(max-width:600px){.tgl-ridecard-workspace main{padding:24px 16px 32px}.tgl-ridecard-workspace .intro{font-size:16px}.tgl-ridecard-workspace .workspace-heading{margin-bottom:20px}.tgl-ridecard-workspace .workspace-steps{gap:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:24px}.tgl-ridecard-workspace .workspace-steps a{font-size:12px;gap:4px;flex-wrap:wrap;align-content:center;padding:8px 2px}.tgl-ridecard-workspace .workspace-steps span{font-size:10px}.tgl-ridecard-workspace .ride-preview{padding:16px}.tgl-ridecard-workspace .grid{gap:14px 12px}.tgl-ridecard-workspace h2{font-size:21px}.tgl-ridecard-workspace footer{padding-inline:16px}}
@media(max-width:420px){.tgl-ridecard-workspace .display-options,.tgl-ridecard-workspace #segmentFields{grid-template-columns:1fr}.tgl-ridecard-workspace .duration-fields{gap:6px}.tgl-ridecard-workspace .choices{grid-template-columns:1fr}.tgl-ridecard-workspace .workspace-steps a{flex-direction:column;align-items:flex-start;gap:0;justify-content:center}.tgl-ridecard-workspace .workspace-steps span{font-size:11px}.tgl-ridecard-workspace .export-actions button{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.tgl-ridecard-workspace *{scroll-behavior:auto!important}}
/* Keep feedback available without covering provider text, controls or artwork. */
.tgl-ridecard-workspace>.tgl-report-tab{position:static;display:flex;align-items:center;writing-mode:horizontal-tb;transform:none;min-height:44px;width:max-content;max-width:calc(100% - 32px);margin:0 max(16px,calc((100vw - 1152px)/2)) 24px auto;padding:10px 14px;border:1px solid var(--tgl-workspace-edge);border-radius:8px;box-shadow:none;font:700 14px Arial,sans-serif}

/* F1 mobile workflow only; desktop layout and canvas dimensions unchanged. */
@media(max-width:767px){
 .tgl-ridecard-workspace .image-options{margin:20px 0 0}
 .tgl-ridecard-workspace .ride-preview .photo-controls{border:0;margin:16px 0;padding:0}
 .tgl-ridecard-workspace .photo-position>summary{min-height:44px;cursor:pointer;font-size:14px;padding:10px 0}
 .tgl-ridecard-workspace .source-help{margin:16px 0 0;padding:0}
 .tgl-ridecard-workspace :is(.source-help,.ride-details):not([open]){margin-bottom:0;padding-bottom:0;border-bottom:0}
 .tgl-ridecard-workspace .source-help .note{margin:8px 0 0}
}
