#create { max-width: var(--page-max-width); padding: 32px; box-sizing: border-box; color: #202729; background: #f5f7f7; margin-top: 24px; font-size: 16px; }
#create * { box-sizing: border-box; letter-spacing: 0; }
.pick-page-heading h1 { font-size: 30px; margin: 4px 0 24px; }
.pick-eyebrow { color: #637371; font-size: 11px; font-weight: 700; margin: 0; }
.pick-race-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 24px; }
.mobile-pick-navigation { display: none; }
#pick-sidebar, #race-profile { scroll-margin-top: 20px; }
#create #raceSelect { flex: 1 1 420px; max-width: 640px; min-width: 0; width: 100%; background: white; color: #202729; border: 1px solid #b8c4c2; border-radius: 4px; font-size: 15px; padding: 12px; }
#create #pick-deadline-msg { color: #405a53 !important; white-space: normal !important; font-size: 13px !important; flex: 1 1 220px; }
.pick-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "profile picks"; gap: 40px; align-items: start; }
.race-profile { grid-area: profile; min-width: 0; }
.race-documents { border-block: 1px solid #d7dfdd; padding: 0; margin: 20px 0; }
.race-documents h3 { margin: 0; font-size: 18px; }
#create #open-race-archive { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 0; border: 0; background: transparent; color: #22644f; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
#open-race-archive svg { width: 20px; height: 20px; flex-shrink: 0; }
#open-race-archive svg:last-child { margin-left: auto; }
.race-document-count { color: #63716d; font-size: 13px; font-weight: 400; }
.race-archive-open { overflow: hidden; }
.race-document-dialog { width: min(760px, calc(100% - 24px)); max-width: none; max-height: min(760px, calc(100dvh - 32px)); padding: 0; border: 1px solid #b8c4c2; border-radius: 6px; margin: auto; background: #f5f7f7; color: #202729; box-shadow: 0 16px 64px #0004; }
.race-document-dialog[open] { display: flex; flex-direction: column; }
.race-document-dialog::backdrop { background: #15252299; }
.race-document-dialog > header { display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #d7dfdd; flex-shrink: 0; background: #f5f7f7; }
.race-document-dialog > header > div { min-width: 0; flex: 1; }
#create .race-document-dialog h2 { font-size: 20px; margin: 0; line-height: 1.3; }
.race-document-dialog > header p { margin: 5px 0 0; font-size: 12px; }
#create #close-race-archive { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; padding: 0; margin: -4px -6px 0 0; border: 0; border-radius: 4px; background: transparent; color: #405a53; cursor: pointer; }
#close-race-archive svg { width: 20px; height: 20px; }
#create #close-race-archive:hover { background: #e3ebe7; }
.race-document-body { padding: 4px 20px 16px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.race-document-body h3 { margin: 14px 0 2px; font-size: 13px; color: #405a53; }
.race-documents p { color: #46544f; font-size: 14px; line-height: 1.6; }
.race-documents summary { padding: 12px 0; cursor: pointer; color: #22644f; font-size: 14px; font-weight: 700; }
.race-documents summary span { color: #63716d; margin-left: 8px; font-weight: 400; }
.race-document-list { list-style: none; padding: 0; margin: 0; }
.race-document-list li { padding: 9px 0; border-bottom: 1px solid #d7dfdd; overflow-wrap: anywhere; }
.race-document-list li:last-child { border-bottom: 0; }
.race-document-list a { display: inline-block; color: #22644f; font-size: 14px; font-weight: 700; line-height: 1.4; text-underline-offset: 3px; }
.race-document-list p { margin: 3px 0; font-size: 12px; line-height: 1.4; }
.race-document-meta, .race-document-publisher { font-size: 12px; color: #63716d; line-height: 1.6; }
.race-document-meta { margin-bottom: 4px; }
.race-document-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.venue-kicker { display: flex; align-items: center; gap: 10px; color: #57716a; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.venue-kicker img { width: 30px; height: 20px; object-fit: cover; border: 1px solid #d0d8d6; }
.race-profile h2 { font-size: 34px; line-height: 1.15; margin: 14px 0 8px; overflow-wrap: anywhere; }
.venue-subtitle { color: #63716d; font-size: 15px; margin: 0 0 24px; }
.race-time-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid #d7dfdd; padding: 16px 0 24px; }
.race-time-strip span { display: block; color: #63716d; font-size: 12px; margin-bottom: 6px; }
.race-time-strip strong { font-size: 15px; line-height: 1.6; }
.venue-map { height: 310px; width: 100%; background: #e2ebe6; position: relative; overflow: hidden; border-radius: 4px; }
.map-status { padding: 20px; color: #4a6159; }
.map-caption { font-size: 12px; color: #63716d; margin: 8px 0 28px; }
.venue-story { margin: 24px 0; }
.venue-story h3 { font-size: 19px; margin: 0 0 10px; }
.venue-story p { line-height: 1.7; color: #46544f; margin: 0; font-size: 15px; }
.venue-facts { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid #d7dfdd; padding: 18px 0; gap: 20px; }
.venue-facts dt { font-size: 12px; color: #63716d; margin-bottom: 7px; }
.venue-facts dd { margin: 0; font-size: 14px; line-height: 1.5; }
.venue-history-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.venue-history-table th, .venue-history-table td { padding: 12px 6px; text-align: left; border-bottom: 1px solid #d7dfdd; overflow-wrap: anywhere; }
.venue-history-table th { color: #63716d; font-size: 12px; }
.history-scope { font-size: 12px !important; margin-top: 12px !important; }
.venue-sources summary { cursor: pointer; font-size: 13px; color: #405a53; padding: 12px 0; }
.venue-sources a { color: #286050; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; }
.pick-sidebar { grid-area: picks; position: sticky; top: calc(var(--site-chrome-height, 164px) + 20px); min-width: 0; border-left: 1px solid #d7dfdd; padding-left: 24px; max-height:calc(100dvh - var(--site-chrome-height, 164px) - 40px);overflow-y:auto;scrollbar-width:thin; }
.pick-countdown { border-block:1px solid #d7dfdd;padding:12px 0;margin-bottom:18px; }
#create .pick-countdown h3 { margin:0 0 6px;font-size:16px; }
#create #pick-deadline-msg { display:block;font-size:27px!important;font-variant-numeric:tabular-nums;font-weight:700;min-height:36px;margin:0;color:#22644f!important; }
#create #pick-origin-msg { font-size:12px;line-height:1.6;color:#52645e;margin:8px 0 0; }
@media(max-width:700px){.pick-sidebar{max-height:none;overflow:visible;}}
#create .pick-container { display: block; margin: 0; }
#create .pick-column { background: transparent; padding: 0 0 20px; border-radius: 0; }
#create .pick-column h3 { font-size: 19px; margin: 0 0 16px; }
.athlete-search-label { display: block; font-size: 12px; color: #63716d; margin-bottom: 6px; }
#athlete-search { width: 100%; min-width: 0; padding: 10px; border: 1px solid #b8c4c2; border-radius: 4px; margin-bottom: 6px; font-size: 14px; background: white; color: #202729; }
#create .pick-column + .pick-column { padding-top: 20px; border-top: 1px solid #d7dfdd; }
#create .pick-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; margin: 10px 0; }
#create .pick-row label { width: auto; font-size: 13px; color: #63716d; }
#create .pick-row select { width: 100%; min-width: 0; font-size: 14px; padding: 11px 8px; background: white; border: 1px solid #b8c4c2; border-radius: 4px; color: #202729; }
#create #savePicksBtn { margin-top: 8px; width: 100%; background: #22644f; border: 0; border-radius: 4px; padding: 14px; font-size: 15px; font-weight: 700; }
#create #savePicksBtn:hover { background: #184b3b; }
#create #savePicksBtn:disabled { cursor: not-allowed; }
#create #saveMessage { color: #22644f; }
#create #entryClosedMsg { color: #9f2929; background: #ffe9e5; padding: 12px; margin-bottom: 16px; border-radius: 4px; }
#create select:focus-visible, #create button:focus-visible, #create a:focus-visible { outline: 3px solid #f0b946; outline-offset: 2px; }
@media (max-width: 900px) { .pick-workspace { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; } #create { padding: 24px; } .pick-sidebar { padding-left: 16px; } }
@media (max-width: 700px) {
    #create { padding: 20px 16px calc(88px + env(safe-area-inset-bottom, 0px)); margin-top: 16px; }
    .pick-workspace { display: flex; flex-direction: column; gap: 32px; }
    .race-profile, .pick-sidebar { width: 100%; }
    .pick-sidebar { position: static; border-left: 0; padding: 0; }
    .race-profile { border-top: 1px solid #d7dfdd; padding-top: 24px; }
    .race-profile h2 { font-size: 28px; }
    .venue-map { height: 260px; }
    .race-time-strip, .venue-facts { grid-template-columns: 1fr; gap: 14px; }
    .pick-race-toolbar { gap: 8px; padding-bottom: 16px; }
    .pick-page-heading h1 { margin-bottom: 16px; }
    #create .mobile-pick-navigation { display: flex; position: fixed; inset: auto 0 0; z-index: 30; padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; border-top: 1px solid #c8d4d0; background: #f5f7f7; box-shadow: 0 -3px 12px #1525220d; }
    #create .mobile-pick-navigation a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border-radius: 4px; flex: 1; color: #22644f; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; }
    #create .mobile-pick-navigation a:first-child { background: #22644f; color: white; }
}
