:where([hidden]){display:none!important}
#routeAuthorToggle{border-radius:100px}
.route-author-workspace{max-width:1440px;margin:auto;padding:38px 40px 80px}
.route-heading{max-width:780px;margin-bottom:32px}
.route-heading h1{margin:4px 0 8px;font-size:clamp(32px,4.3vw,57px);line-height:1.08;letter-spacing:-.045em}
.route-heading p{margin:10px 0;color:var(--muted);font-size:16px}
.route-heading .eyebrow{color:var(--accent);font-size:11px}
.route-author-grid{display:grid;grid-template-columns:minmax(285px,350px) minmax(0,1fr);gap:24px;align-items:start}
.route-author-side,.route-author-main{display:grid;gap:22px;min-width:0}
.route-author-workspace .panel{min-width:0}
.route-author-workspace h2{margin:0 0 14px;font-size:21px;letter-spacing:-.03em}
.route-author-workspace p{line-height:1.5}
.route-author-workspace p>label{display:inline-block;margin:4px 10px 10px 0;vertical-align:bottom;max-width:100%}
.route-author-workspace p>label>input,.route-author-workspace p>label>select{display:block;width:100%;min-width:0}
.route-author-workspace input[type=file]{width:100%;font-size:13px}
.route-author-workspace label{margin-top:10px}
.route-author-workspace button{margin:5px 7px 5px 0;white-space:normal}
.route-author-workspace .view-step{border:1px solid var(--line);min-width:0;border-radius:9px;margin:22px 0;padding:16px}
.route-author-workspace .view-step legend{padding:0 8px;color:var(--accent);font-size:14px;font-weight:750}
.route-author-workspace .view-step small,.route-author-workspace small{display:block;font-size:12px;line-height:1.55;color:var(--muted)}
.route-author-workspace .view-step p{margin:11px 0}
.route-author-workspace .route-author-view>p:has(#playPause),.route-author-workspace .view-step p:has(#drawMode){display:flex;gap:7px;flex-wrap:wrap;align-items:end}
.route-author-workspace .route-author-view>p:has(#playPause) label{flex:1 1 130px}
.route-author-workspace .view-step p:has(#pointU){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.route-author-workspace .view-step p:has(#pointU)>button{grid-column:1/-1;justify-self:start}
.route-author-workspace .view-step p:has(#pointU)>label{margin:0;display:block}
.route-author-workspace #stage{position:relative;width:100%;margin:8px 0 12px;background:#03080c;border:1px solid var(--line);overflow:hidden;border-radius:8px}
.route-author-workspace #stage video{display:block;width:100%;height:auto;min-height:190px}
.route-author-workspace #stage canvas{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair}
.route-author-workspace #status{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 ui-monospace,monospace;background:#0b1a22;border-left:3px solid var(--cyan);padding:14px;margin:20px 0 0;max-height:300px;overflow:auto}
.route-author-workspace #draftStatus,.route-author-workspace #draftEditStatus{color:var(--cyan)}
.route-author-workspace input[type=checkbox]{width:19px;min-height:19px;vertical-align:middle}
.route-author-workspace #export,.route-author-workspace #add{background:var(--accent);color:#122018;border-color:var(--accent)}
@media(max-width:830px){
/* The footage remains in sight while a phone rider enters points below it.
   A loaded clip is required; an empty player must not follow the author. */
.route-author-workspace .route-author-view:has(#video[src]){overflow:visible}
.route-author-workspace #stage:has(video[src]){position:sticky;top:max(10px,env(safe-area-inset-top));z-index:2;box-shadow:0 12px 30px #0009}
.route-author-grid{display:flex;flex-direction:column;gap:16px}
.route-author-side,.route-author-main{display:contents}
.route-author-grid>.route-author-side>.route-author-source{order:1}
.route-author-grid>.route-author-main>.route-author-view{order:2}
.route-author-grid>.route-author-side>.route-author-draft{order:3}
.route-author-grid>.route-author-side>.route-author-metadata{order:4}
.route-author-grid>.route-author-main>.route-author-registration{order:5}
.route-author-grid .panel{width:100%}
.route-author-workspace{padding:24px 18px 60px}
}
@media(max-width:430px){.route-author-workspace{padding:18px 12px 50px}.route-author-workspace .panel{padding:16px}.route-author-workspace button{max-width:100%}.route-heading p{font-size:14px}.route-author-workspace #stage video{min-height:130px}}
