:root{--ink:#171916;--paper:#f3f0e8;--white:#fffdf7;--muted:#6d7068;--line:#d9d8d0;--green:#b8f22e;--green-dark:#84b900;--orange:#ff6a3d;--blue:#4865ff;--shadow:0 18px 50px rgba(23,25,22,.12);--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--paper);color:var(--ink);font-family:Inter,"Helvetica Neue",Arial,sans-serif}button,input,select,textarea{font:inherit}button{color:inherit}button,a{touch-action:manipulation}.is-hidden{display:none!important}.public-site .dev-only{display:none!important}.content-width{width:min(1440px,calc(100% - 48px));margin-inline:auto}.empty-routes{margin:6px 0 0;padding:22px 14px;border:1px dashed var(--line);border-radius:13px;color:var(--muted);text-align:center;font-size:13px;line-height:1.5}
.app-header{height:72px;padding:0 30px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;background:var(--ink);color:white;position:sticky;top:0;z-index:30}.app-brand{display:flex;align-items:center;gap:14px;color:white;text-decoration:none;width:max-content}.app-brand img{width:130px;max-height:34px;object-fit:contain}.app-brand span{font-size:10px;letter-spacing:.18em;border-left:1px solid #555;padding-left:14px}.app-nav{display:flex;height:100%;gap:30px}.nav-button{border:0;background:none;color:#a9aba5;font-weight:700;font-size:14px;position:relative;padding:0 4px;cursor:pointer}.nav-button.is-active,.nav-button:hover{color:white}.nav-button.is-active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--green)}.profile-button{justify-self:end;display:flex;align-items:center;gap:9px;border:0;background:none;color:white;font-weight:700;cursor:pointer}.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--green);color:var(--ink);font-size:12px;font-weight:900}.avatar.small{width:34px;height:34px;flex:0 0 auto}.avatar.large{width:72px;height:72px;margin:0 auto 16px;font-size:20px}
.mobile-nav{display:none}
.wall-header{display:flex;justify-content:space-between;align-items:end;padding-top:38px;padding-bottom:25px}.back-link,.text-button{border:0;background:none;padding:0;color:var(--muted);font-weight:700;cursor:pointer}.back-link{display:block;margin-bottom:18px}.gym-kicker,.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;color:var(--muted);margin:0 0 8px}.verified-dot{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--green);color:var(--ink);letter-spacing:0;margin-right:6px}.wall-header h1,.directory-heading h1{font-family:Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif;text-transform:uppercase;font-size:52px;line-height:.95;letter-spacing:.01em;margin:0}.wall-header h1 span,.directory-heading h1 span{color:var(--green-dark)}.wall-switcher{display:flex;gap:8px;margin-top:22px}.wall-tab{border:1px solid var(--line);background:transparent;border-radius:100px;padding:9px 13px;font-size:13px;font-weight:750;cursor:pointer}.wall-tab span{color:var(--muted);margin-left:5px}.wall-tab.is-active{background:var(--ink);color:white;border-color:var(--ink)}.primary-action,.secondary-action{border:0;border-radius:100px;min-height:48px;padding:0 20px;font-weight:850;cursor:pointer;transition:transform .15s,background .15s}.primary-action{background:var(--green)}.primary-action:hover{background:#cafb4f;transform:translateY(-1px)}.primary-action:disabled{opacity:.35;cursor:not-allowed;transform:none}.secondary-action{background:#ecece5}.wide{width:100%}
.workspace{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(315px,.75fr);gap:20px;padding-bottom:120px}.wall-stage-card,.route-panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.stage-toolbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--line)}.route-summary{display:flex;align-items:center;gap:11px}.route-summary strong{display:block;font-size:15px}.route-summary small{display:block;color:var(--muted);margin-top:4px}.grade-badge{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:var(--orange);color:white;font-weight:950;font-size:15px;transform:rotate(-3deg)}.stage-actions{display:flex;align-items:center;border:1px solid var(--line);border-radius:100px;overflow:hidden}.icon-button,.zoom-label,.filter-button{border:0;background:transparent;cursor:pointer}.icon-button{width:38px;height:36px;font-size:18px}.zoom-label{height:36px;padding:0 5px;color:var(--muted);font-size:11px}.wall-viewport{position:relative;overflow:hidden;background:#252824;aspect-ratio:1586/992;touch-action:pan-y;cursor:grab}.wall-viewport.is-zoomed{touch-action:none}.wall-viewport.is-dragging{cursor:grabbing}.wall-canvas{position:absolute;inset:0;transform-origin:center;will-change:transform}.wall-canvas img,.holds-overlay{position:absolute;inset:0;width:100%;height:100%;display:block}.wall-canvas img{object-fit:fill;user-select:none}.holds-overlay{overflow:visible}.wall-hit-surface{fill:transparent;pointer-events:all}.hold-group{transition:opacity .15s}.hold-group.review-deleted{opacity:.16}.hold-preview,.review-outline,.hold-outline,.hold-hit{vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}.hold-preview{fill:transparent;stroke:transparent;stroke-width:2;pointer-events:none}.hold-hit{fill:rgba(255,255,255,0);stroke:transparent;stroke-width:0;pointer-events:all;cursor:pointer}.review-mode .hold-group:hover .hold-preview{fill:rgba(184,242,46,.1);stroke:rgba(184,242,46,.9)}.hold-hit:focus-visible{outline:none;stroke:var(--green);stroke-width:2.5}.review-outline{fill:rgba(184,242,46,.08);stroke:var(--green);stroke-width:2;pointer-events:none}.hold-outline{fill:none;pointer-events:none}.hold-outline-shadow{stroke:rgba(0,0,0,.88);stroke-width:3}.hold-outline-white{stroke:#fff;stroke-width:1.5}.hold-finish-gap{stroke:rgba(0,0,0,.92);stroke-width:1.5}.hold-finish-inner{stroke:#fff;stroke-width:.7}.start-mark,.start-mark-shadow{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:none}.start-mark-shadow{stroke:rgba(0,0,0,.9);stroke-width:3.5}.start-mark{stroke:#fff;stroke-width:1.75}.wall-tip{position:absolute;right:12px;bottom:12px;background:rgba(23,25,22,.8);color:white;border-radius:99px;padding:7px 10px;font-size:10px;pointer-events:none}.legend{min-height:52px;display:flex;align-items:center;justify-content:center;gap:24px;font-size:11px;color:var(--muted)}.legend span{display:flex;gap:7px;align-items:center}.legend-hold{display:inline-block;width:17px;height:12px;border-radius:50%;border:2px solid var(--ink)}.legend-hold.start{position:relative}.legend-hold.start:before,.legend-hold.start:after{content:"";position:absolute;width:2px;height:7px;background:var(--ink);top:10px}.legend-hold.start:before{left:2px;transform:rotate(22deg)}.legend-hold.start:after{right:2px;transform:rotate(-22deg)}.legend-hold.finish{box-shadow:0 0 0 2px var(--paper),0 0 0 3px var(--ink)}
.wall-viewport.lighthouse-wall{aspect-ratio:3/4}
.route-panel{padding:22px;align-self:start;max-height:calc(100vh - 100px);position:sticky;top:92px}.panel-heading{display:flex;align-items:center;justify-content:space-between}.panel-heading h2{font-size:22px;margin:0}.filter-button{width:40px;height:40px;border:1px solid var(--line);border-radius:50%}.filter-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.filter-row label{display:block;border:1px solid var(--line);padding:7px 10px;border-radius:10px}.filter-row span{display:block;font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}.filter-row select{width:100%;border:0;background:transparent;font-size:12px;font-weight:700;outline:0}.route-list{display:grid;gap:8px;overflow:auto;max-height:540px}.route-card{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;border:1px solid transparent;background:#f2f1eb;border-radius:13px;padding:12px;text-align:left;cursor:pointer}.route-card:hover,.route-card.is-active{border-color:var(--ink);background:white}.route-card .grade{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;background:var(--ink);color:white;font-weight:900;font-size:12px}.route-card:nth-child(3n+2) .grade{background:var(--blue)}.route-card:nth-child(3n) .grade{background:var(--orange)}.route-card strong{display:block;font-size:13px}.route-card small{color:var(--muted);font-size:10px}.route-card .comments{font-size:11px;color:var(--muted)}
.filter-row{grid-template-columns:minmax(0,1.55fr) minmax(150px,.85fr);align-items:stretch}.grade-slider-card{grid-row:span 2;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,#171916,#30342c);box-shadow:0 10px 24px rgba(23,25,22,.12);color:white}.grade-slider-head{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px}.grade-slider-head>span{color:#b9bdb4}.grade-slider-head output{font-size:16px;font-weight:950;color:var(--green)}.grade-all{min-height:28px;padding:0 10px;border:1px solid #5b6254;border-radius:99px;background:transparent;color:#d7d9d3;font-size:10px;font-weight:850;cursor:pointer}.grade-all.is-active{border-color:var(--green);background:var(--green);color:var(--ink)}.grade-slider-card input[type="range"]{width:100%;height:24px;margin:8px 0 1px;appearance:none;background:transparent;cursor:pointer}.grade-slider-card input[type="range"]::-webkit-slider-runnable-track{height:7px;border-radius:99px;background:linear-gradient(90deg,var(--green),#e7ff9d)}.grade-slider-card input[type="range"]::-webkit-slider-thumb{width:23px;height:23px;margin-top:-8px;appearance:none;border:4px solid white;border-radius:50%;background:var(--green);box-shadow:0 0 0 2px #171916,0 5px 14px rgba(0,0,0,.35)}.grade-slider-card input[type="range"]::-moz-range-track{height:7px;border-radius:99px;background:linear-gradient(90deg,var(--green),#e7ff9d)}.grade-slider-card input[type="range"]::-moz-range-thumb{width:17px;height:17px;border:4px solid white;border-radius:50%;background:var(--green);box-shadow:0 0 0 2px #171916}.grade-scale{display:flex;justify-content:space-between}.grade-scale span{color:#aeb2a9}.setter-filter,.sort-filter{min-width:0}.filter-row label input,.filter-row label select{width:100%;min-width:0;margin:2px 0 0;padding:3px 0;border:0;background:transparent;outline:0;font-size:12px;font-weight:750}.setter-filter input::placeholder{color:#9b9d96}
body:not(.creator-mode):not(.review-mode) .workspace{display:block;width:min(760px,calc(100% - 40px))}body:not(.creator-mode):not(.review-mode) .wall-stage-card{display:none}body:not(.creator-mode):not(.review-mode) .route-panel{position:static;max-height:none;padding:0;border:0;background:transparent;overflow:visible}.creator-mode .workspace,.review-mode .workspace{display:block;width:min(920px,calc(100% - 40px))}.route-list{gap:28px;max-height:none;overflow:visible}.feed-card{overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--white);box-shadow:0 14px 36px rgba(23,25,22,.08);scroll-margin-top:90px}.feed-card-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 16px}.feed-card-header>div{min-width:0}.feed-card-header strong,.feed-card-header small{display:block}.feed-card-header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px}.feed-card-header small{margin-top:3px;color:var(--muted);font-size:12px}.feed-delete{min-height:40px;padding:0 13px;border:1px solid #e4b8ad;border-radius:99px;background:#fff4f0;color:#b43b24;font-size:12px;font-weight:800;cursor:pointer}.feed-delete:hover{background:#ffe5dc}.feed-wall{position:relative;display:block;width:100%;aspect-ratio:3/4;padding:0;overflow:hidden;border:0;background:#222;cursor:pointer}.feed-wall img,.feed-wall svg{position:absolute;inset:0;width:100%;height:100%;display:block}.feed-wall img{object-fit:fill}.feed-wall svg{pointer-events:none}.feed-card-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 16px 16px}.feed-card-footer p{margin:0;line-height:1.45;font-size:14px}.feed-card-footer span{flex:0 0 auto;color:var(--muted);font-size:11px;font-weight:750;white-space:nowrap}
.directory-hero{background:var(--ink);color:white;padding:64px 0 46px}.directory-heading h1{font-size:70px}.directory-heading h1 span{color:var(--green)}.directory-heading>p:not(.eyebrow){color:#b5b7b2;max-width:540px;line-height:1.6}.directory-actions{display:flex;gap:12px;margin-top:28px}.search-box{display:flex;align-items:center;gap:10px;background:white;color:var(--ink);border-radius:99px;padding:0 18px;width:min(480px,100%)}.search-box input{border:0;background:transparent;height:50px;outline:0;width:100%}.directory-body{padding-block:32px 80px}.directory-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;margin-bottom:18px}.directory-meta strong{color:var(--ink)}.gym-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.gym-card{border:1px solid var(--line);border-radius:16px;background:var(--white);padding:22px;text-align:left;cursor:pointer;min-height:190px;display:flex;flex-direction:column}.gym-card:hover{border-color:var(--ink);transform:translateY(-2px)}.gym-card .city{font-size:10px;letter-spacing:.13em;color:var(--muted);font-weight:800}.gym-card h3{font-size:22px;margin:14px 0 5px}.gym-card p{margin:0;color:var(--muted);font-size:13px}.gym-card footer{border-top:1px solid var(--line);margin-top:auto;padding-top:16px;display:flex;justify-content:space-between;font-size:11px;font-weight:750}.gym-card .verified{color:#609000}
.creator-dock{position:fixed;left:50%;bottom:18px;z-index:25;transform:translateX(-50%);width:min(960px,calc(100% - 32px));background:var(--ink);color:white;border-radius:17px;min-height:82px;padding:13px 16px;box-shadow:0 22px 60px rgba(0,0,0,.35);display:grid;grid-template-columns:1.5fr 1fr auto;align-items:center;gap:18px}.creator-progress{display:flex;align-items:center;gap:11px}.creator-progress strong,.creator-progress small{display:block}.creator-progress small{color:#9da098;margin-top:3px;font-size:11px}.step-pill{display:grid;place-items:center;background:var(--green);color:var(--ink);border-radius:9px;width:34px;height:34px;font-weight:900}.selection-totals{display:flex;gap:16px;color:#c7c9c2;font-size:11px}.selection-totals span{display:flex;align-items:center;gap:5px}.selection-totals b{color:white}.dot{width:9px;height:9px;border-radius:50%;background:white}.dot.start{background:var(--green)}.dot.finish{background:var(--orange)}.dock-actions{display:flex;align-items:center;gap:14px}.dock-actions .text-button{color:#bbb}
.creator-mode .wall-stage-card,.review-mode .wall-stage-card{grid-column:1/-1}.review-dock{background:#252824}
.app-dialog{width:min(520px,calc(100% - 28px));border:0;border-radius:20px;padding:32px;background:var(--white);color:var(--ink);box-shadow:var(--shadow)}.app-dialog::backdrop{background:rgba(10,12,9,.72);backdrop-filter:blur(5px)}.app-dialog h2{font-family:Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif;text-transform:uppercase;font-size:40px;line-height:1;margin:0 0 10px}.dialog-close{position:absolute;right:16px;top:16px;border:0;background:#e9e8e2;border-radius:50%;width:36px;height:36px;font-size:22px;cursor:pointer}.dialog-copy,.handle{color:var(--muted);line-height:1.5}.app-dialog form{display:grid;gap:16px}.app-dialog label{font-size:12px;font-weight:800}.app-dialog label span{float:right;color:var(--muted);font-weight:500}.app-dialog input,.app-dialog select,.app-dialog textarea{display:block;width:100%;margin-top:7px;border:1px solid var(--line);background:white;border-radius:11px;padding:13px;outline:0}.app-dialog input:focus,.app-dialog select:focus,.app-dialog textarea:focus{border-color:var(--ink);box-shadow:0 0 0 3px rgba(184,242,46,.35)}.app-dialog textarea{min-height:90px;resize:vertical}.form-error{color:#c33;font-size:12px;min-height:15px;margin:0}.route-dialog{width:min(600px,calc(100% - 28px))}.route-detail-head{display:flex;align-items:center;gap:18px}.route-detail-head h2{font-size:34px;margin:0}.route-detail-head p{margin:0}.route-description{padding:20px 0;color:var(--muted);line-height:1.55}.detail-stats{display:flex;gap:25px;border-block:1px solid var(--line);padding:15px 0;font-size:12px}.comments-section{margin-top:22px}.comments-head{display:flex;justify-content:space-between;align-items:center}.comments-head h3{margin:0}.comments-head span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#ecece5;font-size:11px}.comments-list{display:grid;gap:13px;margin:15px 0;max-height:180px;overflow:auto}.comment{display:grid;grid-template-columns:auto 1fr auto;gap:10px;font-size:12px}.comment p{margin:3px 0 0;color:var(--muted);line-height:1.4}.comment time{color:#999;font-size:9px}.comment-form{display:flex!important;align-items:center;gap:8px;background:#efeee8;border-radius:99px;padding:6px}.comment-form input{margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.comment-form button{width:34px;height:34px;flex:0 0 auto;border-radius:50%;border:0;background:var(--ink);color:white;cursor:pointer}.duplicate-warning{background:#fff4d8;border:1px solid #ebcc75;border-radius:12px;padding:14px}.duplicate-warning p{margin:5px 0}.duplicate-warning button{border:0;background:none;padding:0;font-weight:800;cursor:pointer}.account-dialog{text-align:center}.profile-stats{display:flex;justify-content:center;gap:30px;margin:24px 0;padding:18px;border-block:1px solid var(--line);font-size:12px}.profile-stats b{display:block;font-size:19px}.account-dialog .text-button{margin-top:18px}.toast{position:fixed;z-index:60;left:50%;top:90px;transform:translate(-50%,-20px);background:var(--ink);color:white;border-radius:99px;padding:12px 18px;font-size:12px;font-weight:750;opacity:0;pointer-events:none;transition:.25s}.toast.is-visible{opacity:1;transform:translate(-50%,0)}
.beta-videos-section{margin-top:22px;padding:18px;border-radius:17px;background:#171916;color:white}.beta-videos-section .comments-head{align-items:flex-start}.beta-videos-section .comments-head .eyebrow{margin:0 0 4px;color:var(--green)}.beta-videos-section .comments-head h3{font-size:19px}.beta-videos-section .comments-head>span{background:#30332e;color:white}.beta-videos-list{display:grid;gap:12px;margin:15px 0}.beta-video{overflow:hidden;border:1px solid #3a3e37;border-radius:14px;background:#252823}.beta-video video{display:block;width:100%;max-height:420px;background:#000;object-fit:contain}.beta-video figcaption{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;color:#dfe1dc;font-size:11px}.beta-video figcaption span{color:#959990}.beta-video-empty{margin:14px 0;color:#aeb2a9;font-size:12px;line-height:1.45}.video-form{gap:8px!important}.video-file-button{display:flex!important;align-items:center;justify-content:center;min-height:46px;border:1px dashed #66705c;border-radius:12px;color:var(--green);cursor:pointer}.video-file-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.video-file-button.has-file{border-style:solid;background:#30382a}.video-form>input{margin:0!important;border-color:#4c5049!important;background:#252823!important;color:white}.video-form .primary-action{min-height:44px}.video-form .form-error{color:#ff9176}.comments-section .form-error{margin:7px 8px 0}
.focus-mode .app-header,.focus-mode .wall-header,.focus-mode .route-panel,.focus-mode .legend{display:none}.focus-mode .workspace{display:block;width:100%;padding:0}.focus-mode .wall-stage-card{border:0;border-radius:0}.focus-mode .wall-viewport{height:calc(100vh - 72px);aspect-ratio:auto}.focus-mode .stage-toolbar{height:72px}
@media(max-width:900px){.content-width{width:min(100% - 28px,720px)}.app-header{grid-template-columns:1fr auto;padding:0 16px}.app-nav{display:none}.workspace{grid-template-columns:1fr}.route-panel{position:static;max-height:none}.route-list{max-height:none}.gym-grid{grid-template-columns:1fr 1fr}.creator-dock{grid-template-columns:1fr auto}.selection-totals{grid-column:1/-1;grid-row:2}.wall-header h1{font-size:42px}}
@media(max-width:600px){.app-header{height:62px}.app-brand img{width:104px}.app-brand span,.profile-label{display:none}.wall-header{padding-top:22px;align-items:start}.wall-header h1{font-size:36px;max-width:8ch}.wall-header>.primary-action{min-height:42px;padding-inline:14px;font-size:12px}.wall-switcher{max-width:calc(100vw - 28px);overflow:auto}.workspace{width:100%;gap:10px}.wall-stage-card,.route-panel{border-radius:0;border-left:0;border-right:0}.stage-toolbar{height:62px}.route-summary small{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stage-actions .zoom-label{display:none}.wall-viewport{aspect-ratio:1/1.05}.wall-canvas{width:168%;height:105%;left:-34%;top:-2.5%}.legend{gap:14px}.route-panel{padding:18px 14px}.directory-hero{padding:42px 0 34px}.directory-heading h1{font-size:54px}.directory-actions{flex-direction:column}.directory-actions .primary-action{width:100%}.directory-meta{align-items:start;gap:5px;flex-direction:column}.gym-grid{grid-template-columns:1fr}.creator-dock{bottom:8px;min-height:122px;padding:12px;width:calc(100% - 16px)}.creator-progress small{max-width:210px}.selection-totals{gap:10px}.dock-actions .primary-action{padding:0 16px}.app-dialog{padding:26px 20px}.app-dialog h2{font-size:34px}.focus-mode .wall-viewport{height:calc(100vh - 62px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:600px){.wall-canvas{width:168%;height:100%;left:-34%;top:0}}

/* Admin upload and AI-assisted segmentation */
.admin-nav{color:var(--green)}
.admin-header{background:var(--ink);color:white;padding:54px 0 48px}
.admin-heading h1{font-family:Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif;font-size:62px;line-height:.95;text-transform:uppercase;margin:0}
.admin-heading h1 span{color:var(--green)}
.admin-heading>p:last-child{max-width:690px;color:#b7bab3;line-height:1.6;margin:18px 0 0}
.admin-workspace{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px;padding:28px 0 80px;align-items:start}
.admin-controls,.segmentation-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius)}
.admin-controls{padding:20px;display:grid;gap:15px}
.admin-step{display:flex;align-items:center;gap:11px;padding-top:3px}
.admin-step:not(:first-child){border-top:1px solid var(--line);padding-top:18px;margin-top:3px}
.admin-step>span{display:grid;place-items:center;width:31px;height:31px;flex:0 0 auto;border-radius:9px;background:var(--ink);color:white;font-size:12px;font-weight:900}
.admin-step strong,.admin-step small,.model-status strong,.model-status small{display:block}
.admin-step strong{font-size:13px}.admin-step small{font-size:10px;color:var(--muted);margin-top:3px}
.admin-label{font-size:11px;font-weight:800}.admin-label input{width:100%;margin-top:6px;border:1px solid var(--line);border-radius:10px;padding:12px;background:white}
.segment-tools{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:11px;padding:3px;background:#efeee8}.segment-tools button{border:0;border-radius:8px;background:transparent;min-height:42px;font-size:10px;font-weight:850;cursor:pointer}.segment-tools button.is-active{background:var(--ink);color:white}
.candidate-action{border-color:var(--green-dark);background:#f2fbdc;color:var(--ink)}.candidate-action:not(:disabled):hover{background:var(--green)}
.phase-one-set{display:grid;gap:6px;padding:11px;border:1px solid var(--line);border-radius:12px;background:#f5f4ee}.phase-one-set header{display:flex;align-items:center;justify-content:space-between;margin-bottom:2px}.phase-one-set header strong{font-size:11px}.phase-one-set header span{font-size:9px;color:var(--muted);font-weight:800}.phase-one-set button{display:flex;align-items:center;justify-content:space-between;text-align:left;border:1px solid transparent;border-radius:9px;background:white;padding:9px 10px;cursor:pointer}.phase-one-set button:hover,.phase-one-set button.is-active{border-color:var(--green-dark)}.phase-one-set button span,.phase-one-set button b,.phase-one-set button small{display:block}.phase-one-set button b{font-size:10px}.phase-one-set button small{font-size:8px;color:var(--muted);margin-top:2px}.phase-one-set button i{font-style:normal;font-size:8px;font-weight:850;color:var(--muted)}.phase-one-set button i.is-reviewed{color:var(--green-dark)}
.dataset-import{display:grid;grid-template-columns:28px 1fr;column-gap:8px;align-items:center;border:1px dashed #aeb0a8;border-radius:9px;background:#fff;padding:9px 10px;cursor:pointer}.dataset-import:hover{border-color:var(--green-dark);background:#f2fbdc}.dataset-import input{position:absolute;opacity:0;pointer-events:none}.dataset-import>span{grid-row:1/3;display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--green);color:var(--ink);font-weight:950}.dataset-import strong,.dataset-import small{display:block}.dataset-import strong{font-size:10px}.dataset-import small{font-size:8px;color:var(--muted)}
.trace-panel{display:grid;gap:9px;padding:11px;border:1px solid #c9c7bd;border-radius:12px;background:#f6f5ef}.trace-kind,.trace-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.trace-kind{padding:3px;border-radius:9px;background:#e8e7df}.trace-kind button,.trace-actions button{min-height:36px;border:0;border-radius:7px;font-size:9px;font-weight:850;cursor:pointer}.trace-kind button{background:transparent}.trace-kind button.is-active{background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.08)}.trace-actions button{background:#e6e5dd;color:var(--ink)}.trace-actions button:disabled{opacity:.45}.trace-panel p{margin:0;color:var(--muted);font-size:9px;line-height:1.4}
.annotation-note{margin:0;padding:11px;border-radius:11px;background:#f2fbdc;border:1px solid #d9edaa}.annotation-note strong,.annotation-note span{display:block}.annotation-note strong{font-size:10px}.annotation-note span{font-size:8px;color:var(--muted);line-height:1.4;margin-top:3px}
.upload-dropzone{min-height:155px;border:1.5px dashed #aeb0a8;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px;cursor:pointer;background:#f5f4ee;transition:.15s}
.upload-dropzone:hover,.upload-dropzone.is-dragging{border-color:var(--green-dark);background:#f2fbdc}.upload-dropzone input{position:absolute;opacity:0;pointer-events:none}.upload-dropzone strong{font-size:12px}.upload-dropzone small{font-size:9px;color:var(--muted);margin-top:5px}.upload-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--green);font-size:20px;margin-bottom:9px}
.model-status{display:flex;align-items:center;gap:10px;padding:11px;border-radius:11px;background:#efeee8}.model-status i{width:10px;height:10px;border-radius:50%;background:#aaa;flex:0 0 auto}.model-status.is-working i{background:var(--orange);animation:pulse 1s infinite}.model-status.is-ready i{background:var(--green-dark)}.model-status.is-error i{background:#d43c30}.model-status strong{font-size:11px}.model-status small{font-size:9px;color:var(--muted);margin-top:2px}.admin-review-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.admin-review-actions button{padding:0 12px}.account-dialog .primary-action+.secondary-action{margin-top:9px}
.segmentation-card{overflow:hidden}.segmentation-toolbar{min-height:72px;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line)}.segmentation-toolbar strong{font-size:14px}.detection-count{display:flex;align-items:center;gap:8px}.detection-count b{font-size:24px}.detection-count span{max-width:45px;font-size:9px;color:var(--muted);line-height:1.1;text-transform:uppercase}
.segmentation-empty{min-height:550px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#292c29;color:white}.segmentation-empty>span{font-size:54px;color:var(--green)}.segmentation-empty h2{margin:15px 0 5px;font-size:22px}.segmentation-empty p{margin:0;color:#aeb1aa;font-size:12px}
.segmentation-viewport{position:relative;background:#20221f;line-height:0;cursor:pointer;overflow:hidden}.segmentation-viewport.is-remove-mode{cursor:not-allowed}.segmentation-viewport.is-trace-mode{cursor:crosshair}.segmentation-viewport img{display:block;width:100%;height:100%;object-fit:fill}.segmentation-viewport svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.ai-contour-shadow,.ai-contour-white{fill:rgba(184,242,46,.06);vector-effect:non-scaling-stroke;stroke-linejoin:round}.ai-contour-shadow{stroke:rgba(0,0,0,.8);stroke-width:6}.ai-contour-white{stroke:#fff;stroke-width:3}.ai-contour-white.is-accepted{stroke:var(--green)}.ai-contour-white.is-manual{stroke:var(--orange)}.ai-contour-white.is-replacing{stroke:#ff4d3d;stroke-dasharray:7 5}.ai-contour-index{font:800 12px Inter,Arial,sans-serif;fill:var(--ink);paint-order:stroke;stroke:var(--green);stroke-width:5;stroke-linejoin:round}.ai-contour-index.is-pending{stroke:#fff}.segmentation-viewport.is-trace-mode .ai-contour-shadow{stroke-width:2;opacity:.28}.segmentation-viewport.is-trace-mode .ai-contour-white{fill:transparent;stroke-width:1.25;opacity:.42}.segmentation-viewport.is-trace-mode .ai-contour-white.is-replacing{stroke-width:2;opacity:1}.segmentation-viewport.is-trace-mode .ai-contour-index{display:none}.trace-preview{fill:rgba(255,107,68,.08);stroke:var(--orange);stroke-width:2;stroke-linejoin:round;vector-effect:non-scaling-stroke}.trace-line{fill:none;stroke:var(--orange);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.trace-node{fill:#fff;stroke:var(--orange);stroke-width:1.5;vector-effect:non-scaling-stroke}.trace-node.is-first{fill:var(--green);stroke:#fff;stroke-width:2}.segmenting-indicator{position:absolute;left:50%;top:18px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;background:rgba(23,25,22,.88);color:white;padding:10px 14px;border-radius:99px;font-size:11px;font-weight:800;line-height:1;z-index:2}.segmenting-indicator span{width:10px;height:10px;border:2px solid #666;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}.segmenting-indicator em{font-style:normal}.segmentation-help{min-height:52px;display:flex;align-items:center;justify-content:center;gap:22px;padding:10px;color:var(--muted);font-size:10px}.segmentation-help span{display:flex;align-items:center;gap:6px}.segmentation-help b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ink);color:white;font-size:9px}
.ai-prompt-ring{fill:rgba(255,107,68,.14);stroke:var(--orange);stroke-width:4;vector-effect:non-scaling-stroke}.ai-prompt-dot{fill:var(--orange);stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}
.hold-group.is-finish .hold-outline-shadow{stroke-width:4.5}.hold-group.is-finish .hold-outline-white{stroke-width:3}.hold-group.is-finish .hold-finish-gap{stroke-width:1.75}.hold-group.is-finish .hold-finish-inner{stroke-width:.8}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.35}}
@media(max-width:900px){.admin-workspace{grid-template-columns:1fr}.admin-controls{order:2}.segmentation-card{order:1}.segmentation-empty{min-height:420px}}
@media(max-width:600px){.admin-header{padding:38px 0 34px}.admin-heading h1{font-size:46px}.admin-workspace{width:100%;padding-top:12px}.admin-controls,.segmentation-card{border-radius:0;border-left:0;border-right:0}.segmentation-help{align-items:flex-start;gap:8px}.segmentation-help span{line-height:1.25}.segmentation-toolbar{padding-inline:14px}}

/* Phone-first community experience */
@media(max-width:600px){
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom));overflow-x:hidden}
  .app-header{padding-top:env(safe-area-inset-top);height:calc(62px + env(safe-area-inset-top))}
  .profile-button{min-width:44px;min-height:44px;justify-content:flex-end}
  .mobile-nav{position:fixed;z-index:45;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,1fr);min-height:60px;padding:5px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(23,25,22,.96);box-shadow:0 16px 45px rgba(0,0,0,.32);backdrop-filter:blur(18px)}
  .public-site .mobile-nav{grid-template-columns:1fr}
  .mobile-nav-button{min-width:0;min-height:50px;display:grid;place-content:center;justify-items:center;gap:3px;border-radius:13px;padding:4px;color:#9da098;font-size:18px}
  .mobile-nav-button small{font-size:9px;font-weight:800;letter-spacing:.04em}
  .mobile-nav-button.is-active{background:#30332e;color:#fff}
  .mobile-nav-button.is-active span{color:var(--green)}
  .mobile-nav-button.is-active:after{display:none}
  .wall-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:20px 14px 16px}
  .back-link{min-height:44px;margin:0 0 4px;text-align:left}
  .gym-kicker{font-size:9px}
  .wall-header h1{font-size:33px;max-width:10ch}
  .wall-header>.primary-action{position:sticky;top:calc(70px + env(safe-area-inset-top));z-index:8;align-self:start;min-height:46px;padding-inline:13px;box-shadow:0 9px 24px rgba(98,139,9,.22)}
  .wall-switcher{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.8fr);width:100%;max-width:none;margin-top:14px;padding-bottom:2px;overflow:visible;scrollbar-width:none}
  .wall-switcher::-webkit-scrollbar{display:none}
  .wall-tab{width:100%;min-width:0;min-height:42px;padding-inline:9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .stage-toolbar{height:66px;padding:0 12px;gap:8px}
  .route-summary{min-width:0;gap:8px}.route-summary>div{min-width:0}.route-summary strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:34vw}.route-summary small{max-width:34vw}
  .grade-badge{width:42px;height:42px;flex:0 0 auto}
  .stage-actions{flex:0 0 auto}.icon-button{width:42px;height:42px}
  .wall-viewport{width:100%;aspect-ratio:1586/992;overscroll-behavior:auto}
  .wall-canvas{inset:0;width:100%;height:100%;left:0;top:0}
  .wall-tip{right:8px;bottom:8px;max-width:calc(100% - 16px);font-size:9px}
  .legend{min-height:48px;gap:12px;font-size:9px;overflow-x:auto;justify-content:flex-start;padding:0 14px}.legend span{white-space:nowrap}
  .route-panel{padding:20px 14px calc(26px + env(safe-area-inset-bottom))}
  body:not(.creator-mode):not(.review-mode) .workspace{width:100%}body:not(.creator-mode):not(.review-mode) .route-panel{padding:18px 0 calc(88px + env(safe-area-inset-bottom))}.route-panel>.panel-heading,.route-panel>.filter-row{margin-inline:14px}.route-list{gap:14px;scroll-snap-type:y proximity}.feed-card{border-left:0;border-right:0;border-radius:0;scroll-snap-align:start}.feed-card-header{padding:12px 14px}.feed-card-header strong{font-size:16px}.feed-wall{aspect-ratio:3/4}.feed-card-footer{padding:12px 14px 16px;flex-direction:column;gap:8px}.feed-card-footer p{font-size:14px}.feed-delete{min-height:44px}.creator-mode .workspace,.review-mode .workspace{width:100%}
  .filter-row label{min-height:50px}.filter-row select{font-size:14px}
  .filter-row{grid-template-columns:1fr 1fr}.grade-slider-card{grid-column:1/-1;grid-row:auto}.grade-slider-head output{font-size:18px}.setter-filter,.sort-filter{min-height:58px!important}.beta-videos-section{margin-inline:-4px;padding:16px 12px}.beta-video video{max-height:52dvh}.video-form .primary-action{width:100%}
  .route-card{min-height:64px;padding:11px}.route-card strong{font-size:14px}.route-card small{font-size:10px}
  .directory-hero{padding:36px 0 30px}.directory-heading h1{font-size:48px}.directory-heading>p:not(.eyebrow){font-size:14px}.search-box{min-height:52px}.directory-body{padding-bottom:28px}.gym-card{min-height:170px}
  .creator-mode .mobile-nav,.review-mode .mobile-nav,.focus-mode .mobile-nav{display:none}
  .creator-mode,.review-mode,.focus-mode{padding-bottom:0}
  .creator-dock{bottom:calc(8px + env(safe-area-inset-bottom));grid-template-columns:minmax(0,1fr) auto;gap:10px;min-height:136px;padding:12px 12px calc(12px + env(safe-area-inset-bottom));border-radius:16px}
  .creator-progress{min-width:0}.creator-progress strong{font-size:13px}.creator-progress small{max-width:52vw;font-size:10px;line-height:1.25}.step-pill{flex:0 0 auto}
  .selection-totals{width:100%;justify-content:space-between;gap:6px}.selection-totals span{font-size:10px}
  .dock-actions{gap:8px}.dock-actions .text-button{min-height:44px;padding:0 8px}.dock-actions .primary-action{min-height:46px;padding:0 14px}
  .app-dialog{max-height:calc(100dvh - 24px);overflow:auto;padding:28px 18px calc(24px + env(safe-area-inset-bottom));border-radius:18px}.dialog-close{width:44px;height:44px}.app-dialog h2{font-size:32px;padding-right:36px}.app-dialog input,.app-dialog select,.app-dialog textarea{min-height:48px;font-size:16px}.comment-form input{font-size:16px}.comment-form button{width:42px;height:42px}.comments-list{max-height:28dvh}.route-detail-head{gap:12px}.route-detail-head h2{font-size:29px}.detail-stats{gap:14px;flex-wrap:wrap}
  .toast{top:auto;bottom:calc(82px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 24px);text-align:center}
  .admin-header{padding:32px 14px 28px}.admin-heading h1{font-size:42px}.admin-heading>p:last-child{font-size:13px;margin-top:13px}
  .admin-workspace{display:flex;flex-direction:column;padding-bottom:28px}.admin-controls{order:1;width:100%;padding:16px}.segmentation-card{order:2;width:100%}.upload-dropzone{min-height:130px}.phase-one-set button,.segment-tools button,.trace-panel button{min-height:46px}.admin-label input{min-height:48px;font-size:16px}.segmentation-empty{min-height:300px}.segmentation-toolbar{min-height:66px}.segmentation-help{overflow-x:auto;justify-content:flex-start;padding-inline:14px}.segmentation-help span{min-width:max-content}
  .focus-mode .wall-viewport{height:calc(100dvh - 66px);aspect-ratio:auto}.focus-mode .wall-canvas{width:100%;height:100%}
}

@media(max-width:380px){
  .app-brand img{width:94px}.wall-header h1{font-size:30px}.wall-header>.primary-action{font-size:11px;padding-inline:10px}.wall-tab{font-size:11px;padding-inline:7px}.route-summary strong,.route-summary small{max-width:29vw}.stage-actions .icon-button:first-child{display:none}.directory-heading h1{font-size:43px}.creator-progress small{max-width:46vw}
}

/* Route roles and the three-step setter share the existing contour geometry. */
.hold-group.is-foot .hold-outline-white{stroke:#42a5ff}
.legend-hold.foot{border-color:#258be8}
.dot.foot{background:#42a5ff}
.feed-post-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.feed-comments{min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:99px;background:#f0f2e9;color:var(--ink);font-size:14px;font-weight:800;cursor:pointer}
.feed-comments:hover{background:var(--green)}
.route-dialog{max-height:calc(100dvh - 32px);overflow-y:auto}
.comments-section{scroll-margin:20px}
.creator-progress small{line-height:1.45}
@media(max-width:600px){
  #creatorDock{grid-template-columns:1fr;gap:10px}
  #creatorDock .creator-progress small{max-width:none;font-size:12px}
  #creatorDock .creator-progress strong{font-size:14px}
  #creatorDock .selection-totals{grid-row:auto}
  #creatorDock .dock-actions{justify-content:flex-end;gap:6px}
  #creatorDock .dock-actions .primary-action{flex:1;max-width:220px;font-size:14px}
  .creator-mode .workspace{padding-bottom:260px}
  .feed-post-actions{width:100%;justify-content:space-between}
}

.feed-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:14px;border:1px solid #dbbc7b;border-radius:12px;background:#fff5dc;font-size:14px}
.feed-status p{margin:0;line-height:1.5}
.feed-status button{min-height:44px;padding:8px 16px;border:0;border-radius:99px;background:var(--ink);color:white;font-weight:800;cursor:pointer}

/* Keep touch selection feedback on the hold contour, not a browser rectangle. */
.holds-overlay,.holds-overlay *{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.hold-hit:focus{outline:none}
.creator-mode .hold-hit:focus-visible{outline:none;stroke:#fff;stroke-width:1.5;stroke-dasharray:3 3}
.creator-mode .hold-group:hover .hold-preview{fill:transparent;stroke:transparent}
#creatorDock .dock-actions{flex-wrap:wrap}
#resetCreator{min-width:58px;min-height:44px}
#resetCreator:disabled{opacity:.4;cursor:default}
