/* Source-first viewport. Original source and every overlay share one SVG space. */
html,body{overscroll-behavior:none;overflow:hidden}body.source-loading .app{visibility:hidden}body.source-loading:after{content:'OfHorse · Laddar originalskissen…';position:fixed;inset:0;display:grid;place-items:center;color:#d2c895;background:#181818}
.app{--map-top:calc(env(safe-area-inset-top) + 102px);--dock-height:162px;min-height:0!important;height:100dvh;max-width:1440px}
.top{padding:calc(env(safe-area-inset-top) + 8px) 12px 0!important;background:linear-gradient(#181818 75%,transparent)}.top-row{height:40px}.wordmark-logo{width:102px!important;max-height:29px}.event{font-size:11px}.round{height:40px;width:40px}.top-sub{margin-top:1px!important}.top-sub span{font-size:10px!important;padding:4px 8px!important}.top-sub span b{font-size:10px!important}
.map-layer,.app.custom .map-layer{inset:var(--map-top) 72px calc(var(--dock-height) + 3px) 6px!important;border-radius:15px;background:radial-gradient(ellipse at center,#373737,#1f1f1f);border:1px solid #80808022}
.course-svg{touch-action:none!important}.course-svg .source-highlight{fill:#88b89e16;stroke:#616161;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}.course-svg .source-hit{fill:transparent;stroke:none;cursor:pointer}
.map-view-switch{position:absolute!important;left:9px!important;right:76px!important;top:calc(env(safe-area-inset-top) + 77px)!important;bottom:auto!important;height:25px!important;display:flex;gap:3px;transform:none!important;background:transparent!important;padding:0!important;border:0!important;justify-content:center;z-index:8}
.map-view-switch button{padding:3px 7px!important;font-size:9px!important;min-height:25px!important;white-space:nowrap;border:1px solid #6e6e6e55!important;border-radius:7px!important;background:#272727!important;color:#b7c1b5}.map-view-switch button[aria-pressed=true]{background:#d2c895!important;color:#1d1d1d!important;border-color:#d2c895!important}
.map-actions,.app.custom .map-actions{position:absolute!important;left:auto!important;right:6px!important;top:calc(var(--map-top) + 2px)!important;bottom:calc(var(--dock-height) + 4px)!important;max-width:none!important;width:60px!important;display:flex!important;flex-direction:column!important;gap:8px!important;justify-content:center;align-items:stretch;overflow:visible}
.map-actions .big-strides,.map-actions .walk-counter{display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;flex:none;width:60px!important;min-width:60px!important;height:auto!important;min-height:158px;padding:3px 3px!important;margin:0!important;gap:1px!important;border-radius:15px!important;background:#2b2b2b!important;border:1px solid #b9b78b55!important;box-shadow:none!important;backdrop-filter:none!important}
.map-actions .stride-float-btn,.map-actions #walkStepsPlus,.map-actions #walkStepsMinus{width:48px!important;height:44px!important;min-height:44px!important;display:grid!important;place-items:center;background:#ffffff08!important;border:0!important;border-radius:9px!important;font-size:25px!important;line-height:1!important;padding:0!important}
.map-actions .big-strides>span{display:block!important;order:-2;font-size:8px!important;letter-spacing:0!important;text-align:center;padding-top:4px;white-space:nowrap;color:#d2c895}
.map-actions .big-strides>small{display:block!important;font-size:8px!important;line-height:1.15;color:#b0bcae;text-align:center}
.map-actions .big-strides>b,.map-actions #walkStepsValue{display:block;font-size:25px!important;font-weight:600!important;line-height:1.15!important;font-variant-numeric:tabular-nums}
.map-actions .walk-counter .walk-counter-value{display:flex!important;flex-direction:column!important;justify-content:center;align-items:center;min-height:42px!important;width:52px!important;height:auto!important;padding:0!important;background:transparent!important;border:0!important;gap:0!important}
#walkStepsLabel{font-size:8px!important;line-height:1.25!important;white-space:nowrap;position:absolute;top:6px;left:0;right:0}.walk-counter{position:relative;padding-top:23px!important}.map-actions .walk-counter:before{content:'👣 STEG';font-size:8px;color:#a0d4bd;order:-2;height:14px;visibility:hidden}#walkStepsMeta{display:block!important;font-size:8px!important;color:#b0bcae}.map-actions #rotate{position:absolute!important;top:auto!important;bottom:0!important;right:7px!important;width:44px!important;height:36px!important;min-height:36px!important;font-size:20px!important;border-radius:10px!important;display:grid!important;background:#2b2b2b!important}
.zoom-actions{position:absolute!important;left:12px!important;right:auto!important;bottom:calc(var(--dock-height) + 10px)!important;top:auto!important;height:38px!important;display:flex!important;gap:2px!important;padding:2px!important;border-radius:10px!important;background:#242424dd!important;z-index:9}.zoom-actions button{width:44px!important;height:34px!important;min-height:34px!important;font-size:22px!important;border-radius:7px!important}.zoom-actions output{min-width:26px!important;font-size:10px!important}
.geometry-status{position:absolute!important;top:auto!important;bottom:calc(var(--dock-height) + 54px)!important;left:12px!important;right:auto!important;max-width:calc(100% - 95px);font-size:9px!important;padding:3px 6px!important;line-height:1.25!important;background:#252525e8!important;transform:none!important;border-radius:5px!important}.pill-note{display:none!important}
.dock,.app.custom .dock{display:block!important;position:absolute;left:6px!important;right:6px!important;bottom:calc(env(safe-area-inset-bottom) + 5px)!important;width:auto!important;border-radius:16px!important;padding:9px!important;background:#222222!important;border:1px solid #72727266!important;box-shadow:none!important;backdrop-filter:none!important}.dock-top{min-height:32px!important;margin-bottom:5px!important;gap:7px}.progress{min-width:44px!important;width:44px;height:36px!important;font-size:10px!important;border-radius:9px}.segment strong{font-size:20px!important}.segment small{font-size:10px!important}.leg-time{font-size:10px!important}.dock-top .round{width:36px;height:36px}.progress-track{margin-bottom:6px!important;gap:3px}.turn-bottom{display:grid!important;grid-template-columns:70px minmax(0,1fr) 70px!important;min-height:32px!important;margin:0 0 6px!important;padding:0!important;background:#383838!important;border-radius:9px!important}.turn-bottom button{height:32px!important;min-height:32px!important;display:flex!important;flex-direction:row!important;gap:4px!important;padding:0 4px!important;font-size:16px!important}.turn-bottom .turn-label{font-size:10px!important}.turn-bottom .center{padding:1px!important}.turn-bottom .center small{display:none!important}.turn-bottom .center b{font-size:11px!important}.bottom-actions{grid-template-columns:42px minmax(0,1fr) 42px!important;gap:6px!important}.bottom-actions button{height:40px!important;border-radius:10px!important;font-size:12px!important}.bottom-actions #prev,.bottom-actions #next{font-size:23px!important}.options,.pace-row,.mini-actions{display:none!important}.dock .walk-inline:not([hidden]){max-height:35dvh;overflow:auto}
.sheet{position:absolute!important;max-height:calc(100dvh - env(safe-area-inset-top) - 12px)!important;bottom:0!important;padding-bottom:calc(env(safe-area-inset-bottom) + 20px)!important;overscroll-behavior:contain}.sheet-head{position:sticky;top:-16px;background:#262626;z-index:2;padding-top:4px;padding-bottom:4px}.sheet input{font-size:16px}.review-image{max-height:none!important;overflow:visible!important}.review-image>img{height:auto!important;max-height:none!important;object-fit:fill!important;display:block}.review-markers{inset:0!important}.review-cta{position:static!important}.source-note{font-size:12px;color:#b2c1b0;line-height:1.55}.source-link{color:#d2c895;display:block;margin:10px 0}.saved-count{color:#9ad6c6!important}.source-scale{padding:12px;background:#1e1e1e;border-radius:12px}.source-scale input[type=checkbox]{width:18px;height:18px;vertical-align:middle;margin-right:6px}.source-scale .field{margin:7px 0}
.welcome{inset:0!important;max-width:none!important;width:auto!important;padding:calc(env(safe-area-inset-top) + 40px) 24px calc(env(safe-area-inset-bottom) + 24px)!important;border:0!important;border-radius:0!important;background:radial-gradient(ellipse at 80% 15%,#444444 0%,#222222 45%,#181818 100%)!important;display:flex;flex-direction:column;justify-content:center;overflow:auto;box-shadow:none!important}.welcome:before{content:'';position:absolute;top:4%;left:45%;width:85%;height:85%;background:url('/sport/course-walk/assets/agst72-arena.svg') center/contain no-repeat;transform:rotate(-18deg);opacity:.045;pointer-events:none}.welcome>*{position:relative;max-width:440px;width:100%;margin-left:auto!important;margin-right:auto!important}.welcome h1{font-size:42px!important;font-weight:400;letter-spacing:-.04em;line-height:1.02!important;max-width:440px;margin-top:16px!important}.welcome .welcome-intro{font-size:14px!important;max-width:440px;margin-top:12px!important;margin-bottom:26px!important;line-height:1.6}.welcome .eyebrow{letter-spacing:.19em!important;font-size:11px!important}.welcome .start-choice{min-height:70px!important;border-radius:12px!important}.welcome .start-choice b{font-size:14px!important}.welcome .start-choice small{font-size:11px!important}.welcome .home-info{margin-top:26px!important;background:transparent!important;border:0!important;padding:0!important}.welcome .briefing{grid-template-columns:repeat(4,1fr)!important;gap:10px!important;background:transparent!important}.welcome .briefing>div{padding:0!important;background:transparent!important;border:0!important}.welcome .briefing .full{display:none}.welcome .briefing b{font-size:13px!important}.welcome .briefing span{font-size:8px!important;letter-spacing:.05em}.welcome-foot{margin-top:20px!important;font-size:10px!important;opacity:.8}.welcome-choices{display:grid;gap:9px}.home-info-title{margin-bottom:9px!important;font-size:9px!important;letter-spacing:.12em}
@media(min-width:850px){.app{--map-top:105px;--dock-height:160px}.top{padding:20px 24px 0!important}.event{font-size:13px}.map-layer,.app.custom .map-layer{left:24px!important;right:115px!important}.map-actions,.app.custom .map-actions{right:27px!important;width:70px!important;top:105px!important}.map-actions .big-strides,.map-actions .walk-counter{width:70px!important;min-width:70px!important}.map-view-switch{top:77px!important;left:24px!important;right:115px!important;justify-content:flex-start}.map-view-switch button{font-size:11px!important;height:29px!important;padding:4px 12px!important}.dock,.app.custom .dock{left:24px!important;right:24px!important;max-width:760px!important;margin:auto!important}.geometry-status{left:31px!important}.zoom-actions{left:31px!important}.sheet{right:24px!important;left:auto!important;width:480px!important}.welcome h1{font-size:58px!important}.welcome{justify-content:center!important}}
@media(max-height:590px){.app{--map-top:76px}.top-sub{display:none!important}.map-view-switch{top:49px!important}.map-actions,.app.custom .map-actions{top:78px!important;bottom:8px!important;gap:5px;justify-content:flex-start}.map-actions .big-strides,.map-actions .walk-counter{min-height:136px!important}.map-actions .stride-float-btn,.map-actions #walkStepsPlus,.map-actions #walkStepsMinus{height:44px!important;min-height:44px!important}.map-actions .big-strides>b,.map-actions #walkStepsValue{font-size:20px!important}.map-actions #rotate{bottom:4px!important}.map-actions .big-strides>small,#walkStepsMeta{font-size:7px!important}.map-actions .walk-counter .walk-counter-value{min-height:28px!important}.dock,.app.custom .dock{right:77px!important}.welcome{padding:20px!important}.welcome h1{font-size:30px!important}.welcome .home-info{display:none}.welcome .welcome-intro{margin-bottom:10px!important}.welcome .start-choice{min-height:54px!important}}
.app.custom .welcome:not(.hide),.welcome:not(.hide){display:flex!important;max-height:none!important;transform:none!important}.zoom-actions{flex-direction:row!important;align-items:center!important;width:auto!important;transform:none!important}.zoom-actions output{order:0!important;padding:0 2px!important}.zoom-actions button{order:0!important}
.map-view-switch button{min-width:0!important;flex:1}.geometry-status{display:block!important}.welcome{overflow-x:hidden!important}
.mark-preview{max-height:none!important}.mark-preview>img{height:auto!important;max-height:none!important}.source-scale .input{min-width:0}
.app{overflow:clip!important}.sheet:not(.show){visibility:hidden;pointer-events:none}.sheet.show{visibility:visible}.source-scale .input{width:100%}
@media(max-height:590px){.map-actions,.app.custom .map-actions{gap:5px!important}.map-actions .big-strides,.map-actions .walk-counter{min-height:136px!important}.map-actions #rotate{height:32px!important;min-height:32px!important;bottom:0!important}}
.top-row>#rotate{width:40px;height:40px;min-height:40px;border-radius:50%;font-size:22px;background:#262626;border:1px solid #6e6e6e6b;display:grid;place-items:center}
.top-row>#rotate{display:grid!important;position:static!important}
/* The map has a dedicated paper viewport and a separate, compact toolbar. */
.map-layer,.app.custom .map-layer{display:flex!important;flex-direction:column!important;background:#242424!important}
.map-layer>.course-svg{flex:1 1 0!important;min-height:0!important;height:0!important;max-height:none!important;width:100%!important;background:#242424;isolation:isolate}
#sourceImage{filter:none;mix-blend-mode:normal}
.course-svg .source-highlight{fill:#f2dda10c;stroke:#f2dda1;stroke-width:2}
.map-toolbar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:44px;padding:2px 5px;background:#242424;border-top:1px solid #80808033;z-index:9}
.map-toolbar .geometry-status{position:static!important;inset:auto!important;transform:none!important;max-width:none!important;min-height:38px!important;padding:4px 7px!important;font-size:10px!important;white-space:nowrap;background:transparent!important;border:0!important;backdrop-filter:none!important}
.map-toolbar .zoom-actions{position:static!important;inset:auto!important;transform:none!important;max-width:none!important;height:38px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;gap:0!important}
.map-toolbar .zoom-actions button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;background:#ffffff08!important}
.map-toolbar .zoom-actions output{min-width:26px!important;font-size:10px!important}
#recenterMap{flex:none;width:38px;height:38px;min-height:38px;border:1px solid #80808055;border-radius:8px;background:#ffffff08;color:#d2c895;font-size:25px;line-height:1}
.map-toolbar button:focus-visible{outline-offset:-3px}
.editable-checklist{display:flex;flex-direction:column;gap:8px}
.editable-checkrow{display:grid;grid-template-columns:32px minmax(52px,1fr) 64px 64px;gap:5px 7px;align-items:center;padding:9px 8px;border:1px solid #80808044;border-radius:12px;background:#ffffff04}
.editable-checkrow .tick{width:32px;height:36px;border-radius:8px}
.editable-checkrow .tick.yes{background:#d2c895;color:#1f1f1f}
.editable-checkrow .check-leg{padding:4px 0;background:transparent;text-align:left;min-height:44px}
.editable-checkrow .check-leg b{display:block;font-size:14px;white-space:nowrap}
.editable-checkrow .check-leg small{display:block;font-size:10px;color:#b7c1b5;margin-top:4px}
.editable-checkrow label{font-size:10px;color:#c7cbb9;min-width:0}
.editable-checkrow input{display:block;width:100%;height:40px;min-width:0;margin-top:4px;padding:5px 6px;background:#1f1f1f;color:#f3f2e9;border:1px solid #80808077;border-radius:7px;font-size:16px;font-variant-numeric:tabular-nums}
.editable-checkrow input::placeholder{color:#a4b8aa;opacity:1}
.editable-checkrow input[aria-invalid=true]{border-color:#efb18a;outline-color:#efb18a}
.check-save-status{grid-column:2/-1;font-size:10px;color:#9fc8b4;min-height:13px}
.check-save-status.error{color:#efb18a}
@media(max-width:355px){.editable-checkrow{grid-template-columns:29px minmax(40px,1fr) 57px 57px;padding:8px 5px;gap:5px}.editable-checkrow .tick{width:29px}.editable-checkrow .check-leg b{font-size:12px}}
@media(min-width:600px) and (max-height:440px){
 .map-layer,.app.custom .map-layer{right:calc(44vw + 84px)!important;bottom:8px!important}
 .dock,.app.custom .dock{left:auto!important;right:77px!important;top:76px!important;bottom:auto!important;width:44vw!important;max-height:calc(100dvh - 84px);overflow:auto}
 .map-toolbar{padding:2px 4px}
}
.turn-control.turn-bottom{display:none!important}
.stride-outcomes{display:grid;grid-template-columns:1fr 1fr;gap:3px 12px;margin:3px 0 7px;padding:8px 10px 5px;border:1px solid #80808044;background:#ffffff04;border-radius:10px}
.stride-outcomes>div{min-width:0}.stride-outcomes small{display:block;font-size:8px;letter-spacing:.05em;color:#b9c9bb}
.stride-outcomes b{display:block;margin:2px 0;font-size:18px;font-weight:600;line-height:1.15;white-space:nowrap;font-variant-numeric:tabular-nums;color:#f1e8c8}
.stride-outcomes p{grid-column:1/-1;margin:1px 0;font-size:9px;line-height:1.3;color:#a5d6c0}
.stride-outcomes>button{grid-column:1/-1;text-align:left;padding:4px 0;min-height:24px;background:transparent;font-size:9px;color:#c2caba}
.map-view-switch button{flex:1}.map-actions .big-strides{border-color:#d2c89599!important}
@media(min-width:850px){.stride-outcomes b{font-size:21px}.stride-outcomes small,.stride-outcomes p,.stride-outcomes>button{font-size:10px}}
@media(max-width:355px){.stride-outcomes{gap:3px 7px;padding:7px}.stride-outcomes b{font-size:16px}.stride-outcomes small{font-size:7px}}
