@charset "UTF-8";
.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"guides guides tools" "routes community tools";gap:18px}
.resource-card{display:flex;flex-direction:column;min-height:220px;padding:26px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink)}
.resource-card h3{margin:0;font-size:18px;font-weight:650}
.resource-status{margin:auto 0 0;padding-top:24px;color:var(--muted);font-size:13px}
.resource-guides{grid-area:guides;background:var(--soft)}
.resource-tools{grid-area:tools}
.resource-routes{grid-area:routes}
.resource-community{grid-area:community;background:var(--bg)}
@media(max-width:1000px){.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"guides guides" "tools routes" "community community"}.resource-card{min-height:190px}}
@media(max-width:540px){.resource-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"guides" "tools" "routes" "community";gap:14px}.resource-card{min-height:170px;padding:22px}}
html:has(dialog[open]),body:has(dialog[open]){overflow:hidden}
dialog{overflow:hidden;overscroll-behavior:contain}
#modal-content{max-height:calc(90dvh - 2px);overflow:auto;overscroll-behavior:contain;border-radius:inherit}
dialog:has(.runner-profile){width:min(940px,calc(100% - 32px));background:var(--surface)}
.runner-profile{color:var(--ink)}
.runner-identity{margin-bottom:24px}
.runner-identity h3{font-size:32px;line-height:1.2;letter-spacing:-.7px;margin:0;overflow-wrap:anywhere}
.runner-identity p{margin:6px 0 0;font-size:13px;color:var(--ink)}
.profile-summary{display:flex;gap:32px;margin:0 0 26px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.profile-summary dt{font-size:13px}.profile-summary dd{margin:4px 0 0;font-size:28px;font-weight:700;font-variant-numeric:tabular-nums}
.profile-views{display:flex;gap:26px;border-bottom:1px solid var(--line)}
.profile-views button{background:transparent;color:var(--ink);padding:10px 0;font-size:14px;border-bottom:2px solid transparent;white-space:nowrap}
.profile-views button[aria-pressed="true"]{border-color:var(--green);font-weight:700}
.profile-filters{display:flex;gap:16px;padding:20px 0}
.profile-filters label,.profile-progress-select{display:grid;gap:5px;font-size:13px;min-width:0}
.profile-filters select,.profile-progress-select select{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:8px 10px;max-width:100%;min-width:0}
.profile-best-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-best{display:grid;gap:16px;text-align:left;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink)}
.profile-best:hover{background:var(--soft);border-color:var(--green)}
.profile-best-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;font-size:14px;font-weight:600}
.profile-place{flex:none;font-variant-numeric:tabular-nums}.profile-record{color:var(--green)}
.profile-best strong{font:700 27px Consolas,"Courier New",monospace;letter-spacing:-.8px;color:var(--green)}
.profile-best-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px}
.profile-history td:first-child{white-space:normal;min-width:190px}
.profile-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;margin-top:18px}.profile-pagination>div{display:flex;gap:8px}
.profile-pagination .button{padding:7px 12px;white-space:nowrap;background:var(--surface);color:var(--ink)}
.profile-progress-summary{display:flex;flex-wrap:wrap;gap:24px;background:var(--soft);padding:18px;margin-top:20px;border-radius:var(--radius)}
.profile-progress-summary span{display:block;font-size:12px}.profile-progress-summary strong{font:700 22px Consolas,monospace;display:block;margin-top:5px}
.profile-note{font-size:12px;margin:16px 0 0}
.profile-back{margin-bottom:18px}
html[data-theme="dark"] .runner-profile :is(.profile-best strong,.profile-record){color:#a6d69b}
@media(max-width:640px){dialog:has(.runner-profile) .modal-body{padding:20px 16px}dialog:has(.runner-profile) .modal-header{padding:18px 16px}.runner-identity h3{font-size:26px}.profile-summary{gap:20px}.profile-summary dt{font-size:12px}.profile-summary dd{font-size:24px}.profile-best-grid{grid-template-columns:1fr}.profile-views{gap:18px}.profile-views button{font-size:13px}.profile-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-pagination{align-items:flex-start;flex-direction:column}.profile-progress-summary{gap:16px}}
:root{--bg:#f6f7f2;--surface:#fff;--ink:#24382f;--muted:#738076;--green:#35784f;--deep:#255d3e;--line:#e5e9df;--soft:#eef4e9;--gold:#ad8033;--pink:#f2ded7;--radius:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #80a982;outline-offset:3px}button{border:0}button:disabled{opacity:.55;cursor:default}.skip-link{position:fixed;left:20px;top:-80px;background:#fff;padding:12px;z-index:50}.skip-link:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:#fafbf7;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;font-size:31px;font-weight:800;letter-spacing:-1.4px;line-height:1}.brand-sub{display:block;font-size:11px;font-weight:700;letter-spacing:2px;margin-top:8px}.egg-mark{width:34px;height:42px;border:2px solid #34754d;border-radius:52% 52% 47% 47%;transform:rotate(-12deg);position:relative;background:#fff;flex-shrink:0}.egg-mark i{position:absolute;background:#4d8957;border-radius:50%;width:11px;height:13px;left:2px;top:10px}.egg-mark i:nth-child(2){left:19px;top:8px;width:8px;height:10px}.egg-mark i:nth-child(3){left:14px;top:27px;width:10px;height:8px}.sidebar-label{font-size:12px;letter-spacing:1.5px;color:#879083;font-weight:700;margin:42px 10px 12px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{padding:11px 12px;display:flex;gap:12px;align-items:center;border-radius:8px;color:#6c786d;font-weight:550}.sidebar nav a span{font-size:21px;line-height:1;width:20px;text-align:center}.sidebar nav a.active{background:#e7eedf;color:#356643}.sidebar nav a:hover,.category-nav a:hover{background:#edf1e8}.category-label{display:flex;justify-content:space-between;margin-top:32px}.category-label span{font-size:12px;letter-spacing:0}.category-nav{display:grid;gap:3px}.category-nav a{padding:9px 12px;color:#788074;border-radius:7px;font-size:14px}.category-nav a.selected{color:#2f6945;font-weight:700}.category-nav a.selected:before{content:"";display:inline-block;width:5px;height:5px;background:#3e7d51;border-radius:50%;margin:0 9px 2px 0}.workspace{margin-left:232px}.topbar{height:81px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 40px;background:#fafbf7}.breadcrumb{font-size:14px;color:#8b9388}.breadcrumb span{margin:0 14px;color:#c0c7ba}.breadcrumb strong{font-weight:600;color:#596b5e}.top-actions{display:flex;align-items:center;gap:24px}.text-button{background:none;color:#506650;padding:6px 0;font-size:14px;font-weight:600}.text-button span{margin-left:8px}main{max-width:1440px;margin:auto;padding:32px 40px 20px}.hero{position:relative;border:1px solid #dde6d3;border-radius:var(--radius);background:#edf2e4;min-height:220px;overflow:hidden;padding:34px 36px;margin-bottom:28px}.hero-copy{position:relative;z-index:1;max-width:100%}.eyebrow{font-size:12px;letter-spacing:1.6px;font-weight:700;color:#6e8862;margin:0 0 12px}.hero h1{font-size:44px;letter-spacing:-1.8px;font-weight:750;line-height:1.12;margin:0 0 12px}.hero p{color:#74816c;font-size:15px;margin:0}.hero-meta{display:flex;gap:20px;margin-top:22px;font-size:13px;color:#5f7759}.hero-meta span+span{border-left:1px solid #cad8c0;padding-left:20px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 22px}.page-heading h2{font-size:26px;letter-spacing:-.65px;margin:0 0 3px;font-weight:700}.subtext{color:var(--muted);font-size:14px;margin:0}.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;background:var(--green);color:white;border:1px solid var(--green);padding:11px 17px;border-radius:7px;font-size:14px;font-weight:600}.button:hover{background:var(--deep)}.button.secondary{background:#fff;color:#566e54;border-color:var(--line)}.button.secondary:hover{background:#f1f5ed}.button.danger{background:#fff4f1;color:#99523e;border-color:#e9c8bd}.layout{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:22px;align-items:start}.board{border:1px solid var(--line);border-radius:var(--radius);background:white;overflow:hidden}.category-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 22px;gap:24px;overflow:auto}.category-tabs button{white-space:nowrap;background:transparent;padding:17px 0;color:#8a9184;font-size:14px;border-bottom:2px solid transparent}.category-tabs button.active{color:var(--green);font-weight:700;border-bottom-color:var(--green)}.board-toolbar{padding:18px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px}.filters{display:flex;align-items:center;gap:8px}.filter-select{border:1px solid var(--line);border-radius:6px;padding:7px 24px 7px 10px;color:#687863;font-size:13px;background:#fff;max-width:150px}.search-wrap{position:relative;min-width:0}.search-wrap span{position:absolute;left:10px;top:5px;color:#8e9a84;font-size:20px}.search-wrap input{width:160px;border:1px solid var(--line);background:#fafbf8;padding:7px 10px 7px 30px;border-radius:6px;font-size:13px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}thead{background:#fafbf7;color:#8b9385;font-size:11px;letter-spacing:.8px}th{padding:12px 16px;font-weight:600}th:first-child,td:first-child{padding-left:24px;width:55px}td{padding:16px;font-size:14px;border-bottom:1px solid #f0f2eb}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcf8}tbody tr.record{background:#f4f8ed}tbody tr.record:hover{background:#edf4e4}.rank{font-size:15px;font-weight:600;color:#829076}.rank.first{color:#aa842e}.runner-button{display:flex;text-align:left;align-items:center;gap:10px;background:none;padding:0;color:var(--ink);font-weight:600;font-size:14px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:10px;font-size:13px;font-weight:700;flex-shrink:0;background:#e8eedf;color:#6d8261}.avatar.large{width:60px;height:60px;font-size:24px;border-radius:19px}.runner-location{display:block;text-align:left;color:#9aa18f;font-size:11px;font-weight:400;line-height:1.3;margin-top:3px}.time-button{font-family:Consolas,"Courier New",monospace;font-size:15px;color:#2f6744;background:none;font-weight:700;letter-spacing:-.3px;padding:0}.platform{display:inline-block;font-size:11px;background:#f1f3ec;border-radius:4px;padding:3px 6px;color:#7a866d}.region,.run-date{color:#879180;font-size:13px}.watch{color:#829176;background:none;font-size:16px;padding:3px}.side-panel{display:grid;gap:18px}.record-card{background:#f1f4e8;border:1px solid #dfe7d0;border-radius:var(--radius);padding:24px}.panel-eyebrow{display:flex;justify-content:space-between;color:#8d9678;font-size:11px;letter-spacing:1.2px;font-weight:700;margin:0 0 19px}.record-title{font-size:13px;color:#80936d;margin-bottom:5px}.record-time{font-family:Consolas,monospace;font-size:30px;letter-spacing:-1.1px;font-weight:700;color:#4b6e3e;line-height:1.2}.record-runner{display:flex;gap:9px;align-items:center;margin-top:19px;font-size:14px;font-weight:600}.record-card .avatar{background:#e0e8ce}.record-card .subtext{font-size:12px;margin:14px 0 18px}.record-card .text-button{border-top:1px solid #dce4ce;width:100%;text-align:left;padding-top:16px;font-size:13px;display:flex;justify-content:space-between}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px}.panel h3{font-size:15px;margin:0 0 18px;font-weight:650}.activity{display:grid;gap:18px}.activity-row{display:flex;gap:10px;font-size:13px}.activity-row .avatar{width:28px;height:28px;border-radius:9px}.activity-row p{margin:0;color:#7d8877;font-size:12px}.activity-row strong{font-size:13px;font-weight:600}.activity-row small{font-size:11px;color:#a2a998}footer{max-width:1440px;margin:20px auto 0;padding:23px 40px;display:flex;align-items:center;gap:16px;border-top:1px solid var(--line);font-size:12px;color:#929b87}footer span{margin-left:auto;font-size:11px}footer button{font-size:11px!important}.empty{padding:45px 25px;text-align:center;color:#7c8974}.empty h3{color:#486244;margin:0 0 8px}.empty p{font-size:14px}.content-card{background:#fff;border:1px solid var(--line);padding:28px;border-radius:var(--radius)}.runner-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.runner-card{text-align:left;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;display:flex;align-items:center;gap:14px;color:var(--ink)}.runner-card:hover{border-color:#9fbb8d;background:#fcfdf9}.runner-card strong{font-size:16px}.runner-card p{font-size:13px;color:var(--muted);margin:4px 0}.rule-block h3{margin:0 0 8px;font-size:18px}.rule-block{padding:22px 0;border-bottom:1px solid var(--line)}.rule-block:last-child{border-bottom:0}.rule-block p{font-size:15px;color:#73816a}.notice{background:#f5eee2;color:#897547;padding:12px 16px;border-radius:7px;font-size:14px;margin-bottom:22px}.status{display:inline-block;font-size:12px;border-radius:5px;padding:4px 8px;background:#f7efd9;color:#987b37}.status.verified{background:#eaf2e2;color:#527640}.status.rejected{background:#f8e9e4;color:#9c6251}dialog{padding:0;border:1px solid var(--line);border-radius:18px;width:min(580px,calc(100% - 32px));max-height:90dvh;color:var(--ink);box-shadow:0 24px 90px #23362530;background:#fbfcf8}dialog::backdrop{background:#23382b60;backdrop-filter:blur(4px)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:22px 28px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:20px;margin:0;letter-spacing:-.4px}.close-button{background:#edf1e6;color:#738064;border-radius:50%;width:29px;height:29px;font-size:22px;line-height:1}.modal-body{padding:26px 28px}.modal-body>p{font-size:14px;color:#7d8974}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:grid;gap:6px;font-size:13px;font-weight:600}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{background:white;border:1px solid #dbe3d3;border-radius:7px;padding:10px 11px;width:100%;font-size:14px;color:#43573c}.field textarea{resize:vertical;min-height:80px}.field small{font-size:12px;font-weight:400;color:#96a087}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.error{color:#a04d38;background:#f6e6df;padding:10px 12px;border-radius:6px;font-size:14px;margin-bottom:15px}.profile-heading{display:flex;align-items:center;gap:16px;margin-bottom:25px}.profile-heading h3{font-size:25px;margin:0}.profile-heading p{font-size:14px;margin:3px 0;color:var(--muted)}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:25px}.metric{background:#edf2e7;padding:14px;border-radius:9px;font-size:12px;color:#7c8d6f}.metric strong{display:block;font-size:22px;color:#4f6f41}.pb-list{display:grid;gap:12px}.pb-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.pb-row strong{font-family:Consolas,monospace;color:#456e3a}.detail-time{font-family:Consolas,monospace;font-size:42px;letter-spacing:-1.7px;color:#456e3a;margin:0 0 8px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.detail-grid dt{font-size:12px;color:#8b987e;margin-bottom:4px}.detail-grid dd{margin:0;font-size:15px}.toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translate(-50%,15px);background:#2f6342;color:#fff;padding:13px 22px;border-radius:9px;box-shadow:0 8px 30px #213a2225;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:100}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1550px){main{padding-top:40px}.hero{min-height:250px}.hero h1{font-size:50px}td{padding-top:20px;padding-bottom:20px}}
@media(max-width:1200px){.sidebar{width:208px;padding:28px 16px}.workspace{margin-left:208px}.topbar{padding:0 26px}main{padding:26px}.layout{grid-template-columns:minmax(0,1fr) 230px;gap:16px}.record-time{font-size:27px}.region-col{display:none}.hero h1{font-size:38px}.category-tabs{gap:18px}.board-toolbar{padding:16px}.search-wrap input{width:130px}td,th{padding-left:12px;padding-right:12px}}
@media(max-width:1000px){.layout{grid-template-columns:minmax(0,1fr)}.side-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.hero h1{font-size:35px}.hero-copy{max-width:100%}.record-time{font-size:25px}.runner-grid{grid-template-columns:repeat(2,1fr)}.activity-row:last-child{display:none}.region-col{display:table-cell}.top-actions{gap:12px}}
@media(max-width:760px){.sidebar{position:static;width:100%;padding:18px 20px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:26px}.egg-mark{width:29px;height:36px}.brand-sub{font-size:10px}.sidebar nav{display:flex;overflow:auto;margin-top:19px;gap:4px}.sidebar nav a{font-size:13px;padding:8px 10px;white-space:nowrap}.sidebar nav a span{display:none}.workspace{margin-left:0}.topbar{height:55px;padding:0 20px}.breadcrumb{font-size:12px}.breadcrumb span{margin:0 7px}main{padding:20px}.hero{min-height:215px;padding:26px 24px}.hero h1{font-size:35px}.hero-copy{max-width:100%}.hero p{max-width:210px;font-size:14px}.hero-meta{gap:12px;font-size:12px}.hero-meta span+span{padding-left:12px}.page-heading h2{font-size:24px}.page-heading .button{padding:10px 12px;font-size:13px}.side-panel{grid-template-columns:1fr 1fr}.activity-row:last-child{display:flex}.region-col{display:none}footer{padding:20px;flex-wrap:wrap}footer span{margin-left:0}.toast{left:50%;width:max-content;max-width:90%}.runner-grid{grid-template-columns:1fr 1fr}.runner-card{padding:15px;gap:9px}.runner-card .avatar.large{width:40px;height:40px;font-size:18px}.runner-card strong{font-size:14px}.category-tabs{padding:0 16px}.board-toolbar{flex-wrap:wrap}.search-wrap{flex:1}.search-wrap input{width:100%}}
@media(max-width:420px){main{padding:16px}.hero{padding:24px 20px}.hero-copy{max-width:100%}.hero h1{font-size:32px}.breadcrumb{font-size:11px}.side-panel{grid-template-columns:1fr}.page-heading{gap:10px}.page-heading .subtext{font-size:12px}.runner-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal-body{padding:22px}.detail-time{font-size:36px}.platform-col{display:none}.topbar .text-button{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sidebar{overflow-y:auto}
.table-wrap{position:relative}.sr-only{left:0;top:0}
.theme-toggle{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:7px 11px;font-size:13px;white-space:nowrap}.theme-toggle:hover{background:var(--soft)}
footer{justify-content:flex-end}footer span{margin-left:0}.hero{min-height:190px}.hero h1{margin-bottom:0}.side-panel{min-width:0}
html[data-theme="dark"]{--bg:#141b17;--surface:#1c2620;--ink:#e1e9df;--muted:#abb8a7;--green:#3a8054;--deep:#326f49;--line:#344238;--soft:#29392c;--gold:#d6b56b;color-scheme:dark}
html[data-theme="dark"] :is(.sidebar,.topbar){background:#18211b}
html[data-theme="dark"] :is(.board,.panel,.content-card,.runner-card,.button.secondary,.filter-select,.field input,.field select,.field textarea,.skip-link){background:var(--surface);color:var(--ink)}
html[data-theme="dark"] :is(.sidebar-label,.breadcrumb,.category-nav a,.sidebar nav a,.category-tabs button,.hero-meta,.eyebrow,.runner-location,.region,.run-date,.record-title,.panel-eyebrow,.activity-row p,.activity-row small,.rule-block p,.modal-body>p,.field small,.detail-grid dt,footer){color:var(--muted)}
html[data-theme="dark"] :is(.breadcrumb strong,.text-button,.watch){color:#c2d0bc}
html[data-theme="dark"] :is(.sidebar nav a.active,.sidebar nav a:hover,.category-nav a:hover,.close-button,.metric){background:var(--soft);color:var(--ink)}
html[data-theme="dark"] :is(.category-nav a.selected,.category-tabs button.active,.time-button,.record-time,.pb-row strong,.detail-time,.metric strong){color:#a6d69b}
html[data-theme="dark"] :is(.hero,.record-card){background:#233124;border-color:#3b4e37}

html[data-theme="dark"] .hero-meta span+span{border-color:var(--line)}
html[data-theme="dark"] .category-tabs button.active{border-bottom-color:#a6d69b}
html[data-theme="dark"] .search-wrap input{background:#18211b;color:var(--ink)}
html[data-theme="dark"] :is(.filter-select,.field input,.field select,.field textarea,.search-wrap input,.runner-card,.record-card .text-button){border-color:var(--line)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8b9a88;opacity:1}
html[data-theme="dark"] thead{background:#18211b;color:var(--muted)}
html[data-theme="dark"] td{border-color:#2a372d}
html[data-theme="dark"] tbody tr:hover{background:#253128}
html[data-theme="dark"] tbody tr.record{background:#29392a}
html[data-theme="dark"] tbody tr.record:hover{background:#304330}
html[data-theme="dark"] .rank{color:#b6c4ad}
html[data-theme="dark"] .rank.first{color:var(--gold)}
html[data-theme="dark"] .avatar{background:#344333!important;color:#cde3bf}
html[data-theme="dark"] .platform{background:#2c382d;color:#c0cdb5}
html[data-theme="dark"] :is(.empty,.metric){color:var(--muted)}
html[data-theme="dark"] .empty h3{color:var(--ink)}
html[data-theme="dark"] .runner-card:hover{background:#253128;border-color:#6e8862}
html[data-theme="dark"] .notice,html[data-theme="dark"] .status{background:#3a3323;color:#e0ce9d}
html[data-theme="dark"] .status.verified{background:#2a402c;color:#b0d9a4}
html[data-theme="dark"] :is(.status.rejected,.error,.button.danger){background:#442d29;color:#efbaaa;border-color:#795047}
html[data-theme="dark"] dialog{background:#1c2620}
html[data-theme="dark"] dialog::backdrop{background:#030806b3}
html[data-theme="dark"] .button.secondary:hover{background:var(--soft)}

html[data-theme="dark"] .egg-mark{background:#e8eddf}
@media(max-width:760px){.sidebar-label,.category-nav{display:none}.top-actions{gap:10px}.breadcrumb{min-width:0}.hero{min-height:175px}}
@media(max-width:420px){.topbar{gap:8px;padding:0 16px}.breadcrumb{font-size:12px}.theme-toggle{padding:6px 8px}.side-panel{grid-template-columns:1fr}}
.breadcrumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;list-style:none;margin:0;padding:0}
.breadcrumb li{display:flex;align-items:baseline;min-width:0}
.breadcrumb a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.topbar{gap:20px}
.top-actions{flex-shrink:0}
.nav-submit{padding:7px 11px;white-space:nowrap}
@media(max-width:760px){.topbar{flex-wrap:wrap}.top-actions{margin-left:auto}}
@media(max-width:760px){.topbar{height:auto;min-height:55px;padding-top:12px;padding-bottom:12px}.breadcrumb .breadcrumb-separator{margin:0 7px}}
.category-group-label{color:var(--muted);font-size:13px;font-weight:600}
.category-nav{gap:14px}
.category-nav .category-group-label{display:block;padding:11px 12px;margin-bottom:5px;border:0;border-radius:8px;background:transparent;color:#6c786d;font-size:16px;font-weight:550;line-height:1.5}
.category-nav .category-group-label:hover{background:#edf1e8}
.category-nav .category-group-items{display:grid;gap:3px}
.category-nav .category-group-items a{position:relative;display:flex;align-items:center;min-height:44px;padding:10px 12px 12px 22px;line-height:20px;font-weight:550}
.category-nav .category-group-items a.selected{background:var(--soft);font-weight:600}
.category-nav .category-group-items a.selected:before{position:absolute;left:9px;top:50%;transform:translateY(-50%);width:3px;height:16px;border-radius:2px;background:currentColor;margin:0}
.subcategory-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:0 20px;padding:7px 22px;border-bottom:1px solid var(--line);background:var(--soft)}

.board-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(88px,1fr);align-items:end;gap:14px 24px;padding:12px 22px;border-bottom:1px solid var(--line);background:var(--soft)}
.run-type-selector{min-width:0;flex:1}
.filter-label,.platform-selector>span{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.board-filters .subcategory-tabs{padding:0;border-bottom:0;background:transparent}
.platform-selector{flex:none;justify-self:end}
.platform-tabs{display:grid;grid-template-columns:44px 24px;gap:20px}
.platform-tabs button{padding:0;font-size:14px;text-align:left;color:var(--muted);background:transparent}
.platform-tabs button>span{display:inline-block;padding:8px 0;border-bottom:2px solid transparent}
.platform-tabs button[aria-pressed="true"]{color:var(--green);font-weight:700}
.platform-tabs button[aria-pressed="true"]>span{border-bottom-color:var(--green)}
html[data-theme="dark"] .platform-tabs button[aria-pressed="true"]{color:#a6d69b}
html[data-theme="dark"] .platform-tabs button[aria-pressed="true"]>span{border-bottom-color:#a6d69b}
.platform-tabs button:hover{color:var(--ink)}
.stats-platform{padding:14px 22px 0}
@media(max-width:760px){.board-filters{padding:12px 16px}.stats-platform{padding-left:16px;padding-right:16px}}
.leaderboard-table{table-layout:fixed;min-width:640px}
.leaderboard-table .rank-column{width:8%}
.leaderboard-table .runner-column{width:28%}
.leaderboard-table .time-column{width:22%}
.leaderboard-table .platform-column{width:14%}
.leaderboard-table .region-column{width:12%}
.leaderboard-table .date-column{width:16%}

.leaderboard-table :is(th,td){padding-left:12px;padding-right:12px}
.leaderboard-table :is(th,td):first-child{padding-left:22px}
.leaderboard-table :is(th,td):last-child{text-align:right;padding-right:22px}
.leaderboard-table .runner-button{max-width:100%}
.leaderboard-table .runner-button>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html{scrollbar-gutter:stable}
main{overflow-anchor:none}
@media(max-width:1200px){.leaderboard-table{min-width:562px}.leaderboard-table .region-column{display:none}}
@media(max-width:760px){.leaderboard-table{min-width:476px}.leaderboard-table .platform-column{display:none}}
@media(max-width:1200px) and (min-width:761px){.leaderboard-table .rank-column{width:9%}.leaderboard-table .runner-column{width:33%}.leaderboard-table .time-column{width:24%}.leaderboard-table .platform-column{width:15%}.leaderboard-table .date-column{width:19%}}
@media(max-width:760px){.leaderboard-table .rank-column{width:10%}.leaderboard-table .runner-column{width:36%}.leaderboard-table .time-column{width:28%}.leaderboard-table .date-column{width:26%}}
@media(max-width:420px){.board-filters{grid-template-columns:minmax(0,1fr)}}
.subcategory-tabs :is(button,a){flex:none;white-space:nowrap}
.subcategory-tabs button{background:transparent;color:var(--muted);font-size:14px;padding:8px 0;border-bottom:2px solid transparent}
.subcategory-tabs button.active{color:var(--green);font-weight:700;border-bottom-color:var(--green)}
html[data-theme="dark"] .subcategory-tabs button.active{color:#a6d69b;border-bottom-color:#a6d69b}
@media(max-width:760px){.subcategory-tabs{padding:6px 16px;gap:0 16px}.category-tabs{gap:24px}}
.category-tabs a{white-space:nowrap;padding:17px 0;color:var(--muted);font-size:14px;border-bottom:2px solid transparent}
.subcategory-tabs a{padding:8px 0;color:var(--muted);font-size:14px;border-bottom:2px solid transparent}
.category-tabs a.active,.subcategory-tabs a.active{color:var(--green);font-weight:700;border-bottom-color:var(--green)}
.category-tabs a:hover,.subcategory-tabs a:hover{color:var(--ink)}
.level-heading{padding:14px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.level-heading h3{font-size:18px;margin:0;overflow-wrap:anywhere}
.category-nav .category-group-label.selected:before{display:none}
.category-nav .category-group-label.selected{background:#e7eedf;color:#356643;font-weight:550}
html[data-theme="dark"] .category-nav .category-group-label{color:var(--muted)}
html[data-theme="dark"] .category-nav .category-group-label:hover,html[data-theme="dark"] .category-nav .category-group-label.selected{background:var(--soft);color:var(--ink)}
html[data-theme="dark"] :is(.category-tabs a.active,.subcategory-tabs a.active){color:#a6d69b;border-bottom-color:#a6d69b}
@media(max-width:760px){.level-heading{padding:13px 16px}.level-tabs{gap:0 18px}}
@media(max-width:760px){.category-nav{display:grid;margin-top:14px}}

/* Collapsed category menus and shared leaderboard navigation. */
.category-nav .category-group-label{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;margin-bottom:0}
.category-group-label::-webkit-details-marker{display:none}

.category-group[open]>.category-group-items{margin-top:5px}
.leaderboard-navigation{display:flex;flex-wrap:wrap;gap:8px 24px;border-bottom:1px solid var(--line);margin-bottom:24px}
.leaderboard-navigation a{padding:10px 0;border-bottom:2px solid transparent;color:var(--muted);font-weight:600}
.leaderboard-navigation a.active{color:var(--ink);border-bottom-color:var(--green)}
.leaderboard-navigation a:hover{color:var(--ink)}
@media(min-width:761px){.sidebar{width:256px}.workspace{margin-left:256px}}
@media(max-width:760px){.category-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-group-items a{display:block}.category-nav .category-group-items a{padding-left:12px}.leaderboard-navigation{gap:8px 20px}}
@media(max-width:760px){.category-nav .category-group-items a{padding-left:22px}}

/* Keep controls aligned even when a field has supporting text. */
.field{align-content:start;min-width:0}
.field input,.field select{height:44px;min-width:0}
.date-control{display:flex;align-items:center;height:44px;background:var(--surface);border:1px solid var(--line);border-radius:7px;overflow:hidden}
.date-control input{border:0;background:transparent;flex:1;width:0;min-width:0}
.date-control input::-webkit-calendar-picker-indicator{display:none}
.date-control button{flex:none;background:transparent;color:var(--ink);width:40px;height:42px;font-size:20px}
.date-control:focus-within{outline:3px solid #80a982;outline-offset:3px}
.date-control input:focus-visible{outline:0}
.date-calendar{position:fixed;inset:auto;margin:0;width:min(300px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 12px 40px #0003}
.calendar-header{display:flex;align-items:center;gap:5px;margin-bottom:14px}
.calendar-header select{min-width:0;border:0;background:var(--soft);color:var(--ink);border-radius:6px;padding:6px;font-size:13px}
.calendar-header select:first-of-type{flex:1;width:auto}.calendar-header select:last-of-type{flex:none;width:78px}.calendar-header button{flex:none}
.calendar-header button,.calendar-days button{background:transparent;color:var(--ink);border-radius:6px;height:34px;min-width:28px}
.calendar-header button{font-size:22px}
.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center;font-size:13px}
.calendar-days span{color:var(--muted);font-size:11px;line-height:30px}
.calendar-days button:hover,.calendar-header button:hover{background:var(--soft)}
.calendar-days button[aria-pressed="true"]{background:var(--green);color:white;font-weight:700}
.calendar-today{display:block;background:var(--soft);color:var(--ink);border-radius:6px;margin-top:12px;padding:7px 12px;width:100%;font-size:13px}
.run-video{margin:20px 0 8px;background:#000;overflow:hidden;border-radius:9px}
.run-video iframe{display:block;border:0;width:100%;aspect-ratio:16/9;min-height:300px}
.video-link{display:inline-block}

/* Board controls and an optically centered close icon. */
.close-button{position:relative;display:grid;place-items:center;padding:0;flex:none;width:32px;height:32px}
.close-button span{position:relative;width:14px;height:14px;pointer-events:none}
.close-button span::before,.close-button span::after{content:'';position:absolute;left:0;top:6px;width:14px;height:2px;border-radius:1px;background:currentColor;transform:rotate(45deg)}
.close-button span::after{transform:rotate(-45deg)}
.close-button:hover{filter:brightness(.92)}
.board-header{display:flex;align-items:center;border-bottom:1px solid var(--line);padding-right:22px;gap:12px}
.board-header .category-tabs{flex:1;min-width:0;border-bottom:0}
.board-actions{display:flex;align-items:center;gap:8px;flex:none}
.board-rules{flex:none;padding:7px 10px;border:0;border-radius:6px;background:var(--soft);color:var(--ink);font-size:14px;font-weight:600}
.board-rules:hover{background:var(--green);color:#fff}
.rules-category{margin-top:0;font-size:18px}
.category-rules{overflow-wrap:anywhere;font-size:14px}.category-rules h4{margin:18px 0 6px;font-size:14px}.category-rules ul{margin:0;padding-left:20px}.category-rules li+li{margin-top:7px}
.category-group[open]>.category-group-items{animation:expand-category .2s ease-out}
@keyframes expand-category{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.category-group[open]>.category-group-items{animation:none}}
@media(max-width:760px){.board-header{padding-right:12px;gap:4px}.board-rules{padding:7px 8px}}

@supports(interpolate-size:allow-keywords){
  .category-group{interpolate-size:allow-keywords}
  .category-group::details-content{block-size:0;overflow:hidden;transition:block-size .2s ease,content-visibility .2s allow-discrete}
  .category-group[open]::details-content{block-size:auto}
}
@media(prefers-reduced-motion:reduce){.category-group::details-content{transition:none}}

/* Verified-run totals and record history share the leaderboard's theme tokens. */
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 28px}
.stat-card{margin:0;padding:20px 22px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0}
.stat-card dt{font-size:14px;color:var(--muted);margin-bottom:8px}
.stat-card dd{margin:0;font-size:30px;font-weight:650;letter-spacing:-.7px;font-variant-numeric:tabular-nums;line-height:1.3;overflow-wrap:anywhere}
.stat-duration{grid-column:1/-1;background:var(--soft)}
.stat-duration dd{font-family:Consolas,"Courier New",monospace;font-size:24px;letter-spacing:-.5px}
.stats-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;border-bottom:1px solid var(--line)}
.stats-heading h3{font-size:18px;letter-spacing:-.3px;margin:0}
.stats-filters{grid-template-columns:minmax(0,1fr) auto;align-items:start;background:transparent;border-bottom:0;padding-top:14px;padding-bottom:0}
.stats-run-types{grid-template-columns:minmax(0,1fr);background:transparent;border-bottom:0;padding-top:10px;padding-bottom:0}
.stats-level-navigation{margin-top:14px}
.stats-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px 8px}
.stats-toolbar .button{padding:7px 11px;font-size:13px}
.stats-views{display:flex;padding:3px;border:1px solid var(--line);background:var(--bg);border-radius:8px;gap:3px}
.stats-views button{padding:6px 14px;border-radius:5px;background:transparent;color:var(--muted);font-size:13px;font-weight:600}
.stats-views button[aria-pressed="true"]{background:var(--soft);color:var(--ink)}
.stats-views button:hover{color:var(--ink)}
.record-chart-scroll{overflow-x:auto;padding:4px 16px 0}
.record-chart{display:block;width:100%;min-width:560px;cursor:grab;touch-action:pan-y;user-select:none}
.record-chart:focus{outline:none}
.record-chart:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.history-chart.is-dragging .record-chart{outline:none}
.history-chart.is-dragging .record-chart,.history-chart.is-dragging .record-point{cursor:grabbing}
.chart-grid{stroke:var(--line);stroke-width:1}
.chart-label{fill:var(--muted);font-size:12px;font-family:"Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums}
.chart-area{fill:var(--green);fill-opacity:.1}
.chart-line{fill:none;stroke:var(--green);stroke-width:1.5;stroke-linejoin:round}
.record-point{stroke:var(--surface);stroke-width:1;cursor:pointer;fill:var(--runner-light,var(--green))}
.record-point:hover,.record-point:focus-visible{stroke:var(--ink);stroke-width:1;outline:none;r:7}
html[data-theme="dark"] .chart-line{stroke:#a6d69b}
html[data-theme="dark"] .chart-area{fill:#a6d69b}
html[data-theme="dark"] .record-point{fill:var(--runner-dark,#a6d69b)}
.chart-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:16px 22px 8px}
.chart-controls span{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.chart-legend{display:flex;flex-wrap:wrap;gap:10px 20px;list-style:none;margin:0;padding:8px 22px 18px;font-size:12px;color:var(--muted)}
.chart-legend li{display:flex;align-items:center;gap:7px}
.runner-swatch{width:10px;height:10px;border-radius:50%;background:var(--runner-light);flex-shrink:0}
html[data-theme="dark"] .runner-swatch{background:var(--runner-dark)}
.record-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding:16px 22px;font-size:13px;color:var(--muted)}
.record-summary .time-button{font-size:14px;margin-left:7px}
.stats-board th:first-child,.stats-board td:first-child{width:auto}
.record-improvement{font-family:Consolas,"Courier New",monospace;color:var(--muted)}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.stats-grid{gap:10px}.stat-card{padding:16px}.stat-card dd{font-size:26px}.stat-duration dd{font-size:18px;letter-spacing:-.3px}.stats-heading,.stats-toolbar{padding-left:16px;padding-right:16px}.record-summary{padding:14px 16px}.record-chart-scroll{padding-left:0;padding-right:0}}

/* Keep the PB delta with its run time, wrapping on narrow screens. */
.detail-time-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin-bottom:12px}
.detail-time-row .detail-time{margin:0;white-space:nowrap}
.pb-improvement{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border-radius:6px;background:#eaf2e2;color:#527640;font-size:12px;white-space:nowrap}
.pb-improvement-value{font-family:Consolas,monospace;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
html[data-theme="dark"] .pb-improvement{background:#2a402c;color:#b0d9a4}

.run-heading{margin-bottom:22px;overflow-wrap:anywhere}
.run-heading h3{margin:0;line-height:1.25}
.run-heading .text-button{padding:0;font-size:26px;font-weight:700;letter-spacing:-.5px;color:var(--ink);text-align:left}
.run-heading p{margin:7px 0 0;font-size:18px;font-weight:600;line-height:1.4;color:var(--muted)}

.runners-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.runners-search{display:grid;gap:6px;width:min(100%,360px);font-size:13px;font-weight:600;color:var(--ink)}
.runners-search input{width:100%;min-width:0;border:1px solid var(--line);border-radius:7px;padding:10px 12px;background:var(--surface);color:var(--ink);font-size:14px}
.runners-search input::placeholder{color:var(--muted);opacity:1}
.runners-toolbar .subtext{padding-bottom:10px}

/* Global scrollbars also cover new scroll containers and form fields. */
[data-run-row]{cursor:pointer}
:root{--scrollbar-thumb:#7b947c;--scrollbar-hover:#35784f}
html[data-theme="dark"]{--scrollbar-thumb:#637f67;--scrollbar-hover:#a6d69b}
*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) transparent}
@supports selector(::-webkit-scrollbar){
  *{scrollbar-width:auto;scrollbar-color:auto}
  *::-webkit-scrollbar{width:10px;height:10px}
  *::-webkit-scrollbar-track{background:transparent}
  *::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border:2px solid transparent;border-radius:10px;background-clip:padding-box}
  *::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-hover)}
  *::-webkit-scrollbar-corner{background:transparent}
}

.brand{justify-content:center}
.brand-logo{display:block;width:100%;max-width:144px;height:auto}
@media(max-width:760px){.brand-logo{max-width:128px}}
