/* MOVEA: consistent mobile type, icon and spacing scale. */
.movea-icon{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;color:#087eff}.movea-icon .icon-underlay{stroke:#bfe5ff;stroke-width:4;opacity:.6}.ring-wrap>.ring-track-svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.ring-wrap .ring-center{inset:18%;gap:3px;overflow:hidden}.ring-center .movea-icon{position:static;width:28px;height:28px;transform:none;flex:0 0 28px;margin:0}.ring-center strong{font-size:34px;letter-spacing:-1px;max-width:100%;line-height:1.15;white-space:nowrap;font-variant-numeric:tabular-nums}.ring-center span{margin:0;font-size:12px}.ring-center small{font-size:11px;color:#6b7d99;white-space:nowrap}.ring-value{stroke:#0785ff}.ring-wrap{width:190px;height:190px}.activity-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.activity-tile{position:relative;isolation:isolate;overflow:hidden;border-radius:17px;min-height:145px;color:white}.activity-tile>img{position:absolute;width:100%;height:100%;object-fit:cover;inset:0;z-index:-2}.activity-tile:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0b22322b,#0b1b33d9);z-index:-1}.activity-tile>div{padding:12px;display:flex;flex-direction:column;gap:5px}.activity-tile .icon{color:#fff;width:21px;height:21px}.activity-tile strong{font-size:24px;letter-spacing:-.5px;white-space:nowrap;margin-top:9px}.activity-tile span{font-size:12px;font-weight:650}.activity-tile small{font-size:10px;color:#e0e9f6}.activity-day{display:grid;grid-template-columns:1.6fr 1fr .8fr .8fr;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.activity-day>div:not(:first-child){text-align:right}.activity-day small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.activity-day:last-child{border:0}.ranking-row{display:grid;grid-template-columns:27px 32px minmax(0,1fr) auto;gap:9px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.ranking-row:last-child{border:0}.ranking-row .avatar{width:32px;height:32px;font-size:10px}.ranking-person{min-width:0}.ranking-person>strong{font-size:13px;display:block;overflow-wrap:anywhere}.ranking-score{text-align:right;max-width:90px}.ranking-score b{font-size:16px;white-space:nowrap;letter-spacing:-.3px}.ranking-score small{display:block;color:var(--muted);font-size:10px}.place-medal{width:26px;height:33px;display:block}.place-medal svg{width:100%;height:100%}.place-1{color:#f1c347}.place-2{color:#bdc8d6}.place-3{color:#d49b72}.place-number{text-align:center;color:var(--muted);font-size:12px}.goal-progress{margin-top:7px}.goal-progress .progress{height:4px;margin:0}.goal-progress small{display:flex;align-items:center;gap:3px;font-size:9px;color:#7b8ca5;line-height:1.4;margin-top:4px}.goal-progress.achieved .progress>i{background:#12ad81}.goal-progress.achieved small{color:#119c74}.goal-progress .icon{width:11px;height:11px;color:#119c74}.leader-summary{display:flex;gap:12px;align-items:center;padding:12px 14px;background:#eaf3ff;border-radius:14px;margin-bottom:16px;font-size:12px;color:#365778}.leader-summary>.icon{width:30px;height:30px}.leader-summary small{display:block;color:#7288a7;margin-top:3px}.metric-tabs{display:flex;overflow:auto;scrollbar-width:none;gap:5px}.metric-tabs a{flex:1;min-width:60px;white-space:nowrap;padding:10px 8px}.sync-strip{min-height:50px}.sync-copy{flex:1}.sync-sources:empty{display:none}.source-chip{width:auto;min-width:45px}.photo-type .icon{width:15px;height:15px}.photo-copy h3{margin-top:0}.device-card h3{font-size:15px}.admin .movea-icon{color:#8cbbff}.admin .icon-underlay{opacity:.2}.admin .goal-progress small{color:#b2d6c5}
@media(max-width:800px){body:not(.admin) .content{padding:12px 16px 100px}body.home-view .content{padding-top:20px}.topbar{height:58px;padding:0 18px}.mobile-brand{font-size:20px}.page-head{margin-bottom:16px;align-items:flex-start;gap:10px}.page-head h1{font-size:23px;letter-spacing:-.6px;line-height:1.2}.page-head p{font-size:12px;line-height:1.5;margin-top:6px}.card{padding:16px;border-radius:18px}.card-head{margin-bottom:13px}.card h2{font-size:16px;line-height:1.3}.card h3{font-size:14px}.mt{margin-top:15px}.mb{margin-bottom:15px}.stack{gap:12px}.welcome{margin:0 2px 14px}.welcome h1{font-size:27px;letter-spacing:-.8px}.welcome p{font-size:12px}.welcome-avatar .avatar{width:44px;height:44px;font-size:17px}.reference-daily{padding:13px 13px 8px}.daily-heading{gap:5px;align-items:flex-start}.daily-heading h2{font-size:16px;max-width:60%;line-height:1.2}.daily-heading>a{font-size:10px;gap:1px;padding-top:2px}.daily-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px}.reference-ring .ring-wrap{margin:4px 0;width:100%;height:auto;aspect-ratio:1}.reference-home .reference-ring .ring-center strong{font-size:27px;letter-spacing:-.7px}.reference-ring .ring-center>span{font-size:11px}.reference-ring .ring-center .movea-icon{width:23px;height:23px;flex-basis:23px;margin:0}.reference-ring .ring-center small{font-size:9px}.reference-metric{gap:8px;padding:7px 0}.metric-symbol{width:29px;height:29px}.metric-symbol .icon{width:18px;height:18px}.reference-metric strong{font-size:16px;line-height:1.2}.reference-metric small{font-size:10px;line-height:1.3;margin-top:2px}.reference-home .section-heading{margin:16px 2px 9px}.reference-home .section-heading h2,.home-leaderboard h2{font-size:19px}.reference-home .link{font-size:11px}.sync-strip{padding:8px 11px;min-height:47px}.sync-copy{font-size:11px}.sync-copy small{font-size:10px}.sync-sources{max-width:50%;overflow:auto}.source-chip small{font-size:9px}.source-chip{padding:3px 5px}.home-challenges{gap:10px}.photo-cover{height:143px}.photo-copy{left:11px;right:11px;bottom:12px}.photo-copy h3{font-size:15px;line-height:1.2;margin:0 0 5px;max-width:100%}.photo-copy p{font-size:10px;line-height:1.3;max-width:80%}.photo-arrow{height:25px;width:25px;right:9px;bottom:11px}.photo-footer{min-height:40px;padding:7px 9px;gap:4px}.photo-footer>span{font-size:9px;gap:4px}.photo-footer .icon{width:15px;height:15px}.photo-type{top:9px;left:9px;padding:4px 7px;font-size:8px;gap:5px}.home-leaderboard{padding:13px 12px 6px;margin-top:14px}.home-leaderboard .ranking-row{padding:10px 0}.ranking-row.me{border-radius:12px;background:#f0f6ff}.ranking-person>strong{font-size:12px}.ranking-score b{font-size:15px}.ring-center strong{font-size:32px}.activity-tile{min-height:136px}.activity-tile>div{padding:10px 9px}.activity-tile strong{font-size:21px}.activity-tile span{font-size:11px}.activity-tile small{font-size:9px}.activity-tiles{gap:8px}.activity-day{font-size:11px;gap:6px}.chart{height:135px}.stat-number{font-size:27px;margin:10px 0 3px}.notice{padding:12px 14px;font-size:12px;margin-bottom:14px}.detail-cover{height:145px;border-radius:18px;margin-bottom:14px}.btn{min-height:42px}.field input,.field select,.field textarea{font-size:16px;min-height:44px}.field label{font-size:12px}dialog{padding:20px 17px;max-height:calc(100dvh - 32px);width:calc(100% - 24px);border-radius:20px}.bottom-nav{min-height:65px;padding:8px 6px max(10px,env(safe-area-inset-bottom))}.bottom-nav .icon{width:23px;height:23px}.bottom-nav a{font-size:10px;gap:4px}.profile-head{padding:16px}.section-heading{margin:18px 0 10px}.section-heading h2{font-size:18px}.group-cover{width:calc(100% + 32px);margin:-16px -16px 14px;height:130px}.table-wrap{font-size:11px}.home-ranks .ranking-row{grid-template-columns:26px 28px minmax(0,1fr) auto;gap:7px}.home-ranks .avatar{width:28px;height:28px}.home-ranks .goal-progress small{font-size:8px}}
@media(max-width:360px){.reference-home .reference-ring .ring-center strong{font-size:23px}.reference-ring .ring-center .movea-icon{width:18px;height:18px;flex-basis:18px}.reference-metric strong{font-size:14px}.activity-tile strong{font-size:18px}.ranking-row{gap:6px}.ranking-score b{font-size:13px}.daily-heading h2{font-size:14px}.daily-heading>a{font-size:9px}}

.metric-tabs a{flex:0 0 auto;min-width:72px;min-height:40px;display:grid;place-items:center;padding:9px 12px}.ring-center>.icon{width:25px!important;height:25px!important;transform:none!important}.reference-ring .ring-center>.icon{width:23px!important;height:23px!important}

/* Photographs remain uncropped. Copy sits outside the image. */
.photo-cover{height:auto!important;background:#eaf1f6;isolation:auto}
.photo-cover>img{position:static!important;display:block;width:100%;height:auto!important;aspect-ratio:auto;object-fit:contain!important;z-index:auto}
.photo-cover:after{display:none}
.photo-type{top:8px;left:8px;font-size:9px;padding:5px 8px}
.photo-copy{position:static!important;color:#102345;padding:13px 14px 6px}
.photo-copy h3{color:#102345;font-size:17px;max-width:none;margin:0 0 6px}
.photo-copy p{color:#64758d;font-size:12px;max-width:none}
.photo-arrow{display:none}.photo-footer{padding:10px 14px;min-height:45px}
.group-cover{display:block;width:calc(100% + 32px);height:auto!important;object-fit:contain!important;margin:-16px -16px 14px;max-width:none}
.detail-cover{height:auto!important;max-height:none;background:#eaf1f6}
.detail-cover img{display:block;width:100%;height:auto!important;max-height:420px;object-fit:contain!important}
.home-challenges .photo-copy{padding:9px 10px 4px}.home-challenges .photo-copy h3{font-size:13px}.home-challenges .photo-copy p{font-size:10px}.home-challenges .photo-type{font-size:7px;gap:3px;padding:4px 6px}.home-challenges .photo-footer{padding:8px}
.activity-tile{background:#fff!important;color:#102345;display:flex;flex-direction:column}.activity-tile>img{position:static!important;width:100%;height:auto!important;object-fit:contain!important}.activity-tile:after{display:none!important}.activity-tile>div{position:static!important;background:#fff;color:#102345}.activity-tile small,.activity-tile span{color:#536982!important}
body.auth-view{background:#102438}
.auth-screen{min-height:100svh;max-width:480px;margin:auto;padding: max(35px,env(safe-area-inset-top)) 18px max(10px,env(safe-area-inset-bottom));display:flex;flex-direction:column;position:relative;isolation:isolate;background:#102438}
.auth-screen:before{content:'';position:absolute;inset:0;z-index:-2;background:url('/assets/auth-runner.png') center top/cover no-repeat}
.auth-screen:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#07152818 0%,transparent 30%,#07152833 45%,#071528ee 100%)}
.auth-register:before{background-image:url('/assets/auth-friends.png');background-position:center -65px;background-size:auto 100%}
.auth-wordmark{text-align:center;font-size:28px;font-weight:800;color:white;letter-spacing:1px;text-shadow:0 2px 10px #142c3855}
.auth-content{margin-top:auto;padding-top:270px}.auth-register .auth-content{padding-top:135px}
.auth-heading{color:#fff;text-align:center;margin-bottom:24px;text-shadow:0 2px 12px #00142e44}
.auth-heading h1{font-size:clamp(25px,7vw,32px);line-height:1.1;letter-spacing:-.8px;color:#fff}.auth-heading p{font-size:18px;color:#e8f0ff;margin-top:8px}
.auth-form-panel{background:#f7faffdf;backdrop-filter:blur(16px);border:1px solid #ffffff88;border-radius:22px;padding:24px 20px 20px;box-shadow:0 8px 30px #00102122;color:#0b183b}
.auth-form-panel h2{font-size:27px;margin:0 0 16px;letter-spacing:-.5px}.auth-form-panel .field{margin-bottom:16px}.auth-form-panel .field label{font-size:13px;font-weight:650;color:#0b183b;margin-bottom:5px}
.auth-form-panel input:not([type=checkbox]){background:#fff;border:1px solid #e6eaf1;border-radius:12px;min-height:44px;width:100%;padding:11px 12px;font-size:14px}.auth-form-panel input::placeholder{color:#8b94a7}
.password-input{position:relative}.password-input input{padding-right:42px!important}.password-toggle{position:absolute;right:3px;top:0;height:44px;width:40px;border:0;background:none;color:#8a95aa}.password-toggle .icon{width:19px}
.auth-form-panel .btn{background:#0865ff;border-radius:13px;min-height:47px;font-size:17px;font-weight:650;justify-content:center}.auth-forgot{display:block;margin:0 0 18px auto;font-size:13px}.auth-switch{border-top:1px solid #b8c6d5;margin-top:20px;padding-top:17px;text-align:center;font-size:13px}.auth-switch .link{font-size:13px}
.auth-consent{display:flex;align-items:center;gap:9px;font-size:12px;margin:7px 0 18px}.auth-consent input{width:19px;height:19px;accent-color:#0865ff}.auth-consent .link{font-size:12px;text-decoration:underline}
.auth-language{display:block;margin:10px auto 0;background:transparent;border:0;color:#dceaff;font-size:10px;padding:3px 12px}
.auth-form-panel .form-error:empty{display:none}.auth-register .field{margin-bottom:12px}.auth-register .auth-heading{margin-bottom:20px}
@media(min-width:801px){.auth-screen{min-height:900px;border-radius:25px;overflow:hidden;margin:30px auto}.group-cover{width:calc(100% + 48px);margin:-24px -24px 18px}}
@media(max-width:380px){.auth-content{padding-top:220px}.auth-register .auth-content{padding-top:115px}.auth-heading h1{font-size:24px}.auth-form-panel{padding:20px 16px}}
.course-map{height:330px;min-width:0;border-radius:16px;overflow:hidden;background:#dfe9ec;touch-action:none}.course-map .maplibregl-ctrl-attrib{font-size:10px}.checkpoint-marker{width:34px;height:34px;border-radius:50%;border:3px solid white;background:#1675ff;color:white;box-shadow:0 2px 6px #001a4844;font-weight:750}.checkpoint-marker.passed{background:#0d9c71}.checkpoint-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e4ebf4;font-size:13px}.checkpoint-row>span{width:25px;height:25px;border-radius:50%;background:#eaf2ff;display:grid;place-items:center}.checkpoint-row.passed{color:#07835b}.checkpoint-row small{margin-left:auto;white-space:nowrap}.checkpoint-edit{display:grid;grid-template-columns:20px 1fr 70px 55px 30px 30px;gap:5px;align-items:end;margin:12px 0}.checkpoint-edit label{font-size:10px}.checkpoint-edit input{width:100%;min-width:0;padding:8px 5px;font-size:13px}.checkpoint-edit button{min-height:36px;border:0;border-radius:7px;background:#eaf2ff}.checkpoint-rank{display:flex;align-items:center;gap:10px;padding:12px 0;font-size:13px}.checkpoint-rank>span:last-child{margin-left:auto;text-align:right}.checkpoint-rank small{display:block;color:#64758d;margin-top:3px}@media(max-width:420px){.checkpoint-edit{grid-template-columns:18px 1fr 60px 50px 26px 26px;gap:3px}.checkpoint-edit input{font-size:12px}.course-map{height:300px}}

.auth-form-panel .field{gap:0}.auth-form-panel .field label{margin-bottom:5px}.auth-register .field{margin-bottom:10px}.auth-register .auth-form-panel{padding-top:18px;padding-bottom:16px}.auth-register .auth-form-panel h2{margin-bottom:12px}.auth-register .auth-switch{margin-top:16px;padding-top:14px}.auth-consent{margin:4px 0 14px}.auth-register .auth-heading h1{font-size:32px}.auth-form-panel input:not([type=checkbox]){font-size:16px}.auth-form-panel .btn{background:#0865ff!important}
.photo-cover>img{max-height:180px}.home-challenges .photo-cover>img{max-height:140px}.group-cover{max-height:180px}.detail-cover img{max-height:240px}.page-head:has(>.row){flex-direction:column;align-items:stretch}.page-head>.row{flex-wrap:wrap}.page-head>.row>.btn{flex:1}
/* Reserve image space before lazy images load; contain preserves the entire source photograph. */
.photo-cover>img,.group-cover{height:180px!important;max-height:180px;object-fit:contain!important;background:#eaf1f6}.home-challenges .photo-cover>img{height:120px!important}.detail-cover img{height:240px!important;object-fit:contain!important}.activity-tile>img{height:85px!important;object-fit:contain!important;background:#eaf1f6}

.activity-tile .icon{color:#1675ff!important;opacity:1}

/* Restore reference photo-overlay cards; keep the entire source image visible. */
.photo-cover{position:relative;background:#14273c;min-height:230px;isolation:isolate}
.photo-cover>img{height:230px!important;object-fit:contain!important;position:relative!important;z-index:0}
.photo-cover:after{display:block;content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 25%,#06142645 50%,#061426e8 100%);z-index:1;pointer-events:none}
.photo-copy{position:absolute!important;left:14px;right:14px;bottom:13px;padding:0!important;z-index:2;color:white}
.photo-copy h3{color:white;font-size:19px;text-shadow:0 1px 4px #0008}.photo-copy p{color:#f2f6ff;font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.photo-type{z-index:3}.home-challenges .photo-cover{min-height:190px}.home-challenges .photo-cover>img{height:190px!important}.home-challenges .photo-copy{left:10px;right:10px;bottom:10px}.home-challenges .photo-copy h3{font-size:15px}.home-challenges .photo-copy p{font-size:10px}

.photo-cover>img,.home-challenges .photo-cover>img{max-height:none!important;background:#14273c}.auth-code-button{display:block;margin:10px auto 0}.auth-invite-note{font-size:11px;line-height:1.4;margin:0 0 10px;color:#365474}.auth-register:has(.auth-invite-note){padding-top:20px}.auth-register:has(.auth-invite-note) .auth-content{margin-top:auto;padding-top:110px}

/* The photo defines its frame: no letterboxing, stretching, or subject cropping. */
.photo-cover,.home-challenges .photo-cover,.detail-cover{height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;background:transparent;line-height:0}
.photo-cover>img,.home-challenges .photo-cover>img,.detail-cover img,.group-cover,.activity-tile>img{display:block;width:100%;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:initial!important;background:transparent!important}
.group-cover{width:calc(100% + 32px)}
.photo-copy{line-height:1.3}.photo-copy h3{margin:0 0 5px;line-height:1.2}.photo-copy p{line-height:1.35}.photo-type{line-height:1.2}
.photo-cover:after{background:linear-gradient(180deg,transparent 42%,#06142614 55%,#061426b8 100%)}
.home-challenges{align-items:start}.home-challenges .photo-copy{bottom:8px;left:9px;right:9px}.home-challenges .photo-copy h3{font-size:13px;line-height:1.15;margin:0 0 3px;overflow-wrap:anywhere}.home-challenges .photo-copy p{font-size:9px;line-height:1.25;-webkit-line-clamp:1}.home-challenges .photo-type{top:6px;left:6px;font-size:7px;padding:3px 5px}.home-challenges .photo-type .icon{width:11px;height:11px}
@media(min-width:801px){.group-cover{width:calc(100% + 48px)}}

/* MOVEA•GO identity and reference auth composition only. */
.moveago-logo{display:block;width:180px;height:auto;overflow:hidden;flex-shrink:0}.mobile-brand .moveago-logo{width:116px}.admin .brand .moveago-logo,.auth-wordmark .moveago-logo,.login-art .moveago-logo{filter:brightness(0) invert(1)}
.auth-wordmark .moveago-logo{width:180px;margin:auto}.auth-screen{padding-top:max(38px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom));min-height:100svh}
.auth-screen:before,.auth-register:before{background-size:cover;background-position:center top}
.auth-screen:after{background:linear-gradient(180deg,#07152812,transparent 45%,#07152877 100%)}
.auth-content{padding-top:320px}.auth-register .auth-content,.auth-register:has(.auth-invite-note) .auth-content{padding-top:215px}
.auth-heading{margin-bottom:18px}.auth-heading h1{font-size:28px}.auth-heading p{font-size:17px;margin-top:6px}.auth-register .auth-heading{margin-bottom:14px}.auth-register .auth-heading h1{font-size:30px}
.auth-form-panel,.auth-register .auth-form-panel{padding:17px 17px 13px;background:#f7faffd9;backdrop-filter:blur(10px)}
.auth-form-panel h2{font-size:25px;margin-bottom:10px}.auth-form-panel .field,.auth-register .field{margin-bottom:9px}.auth-form-panel .field label{font-size:12px;margin-bottom:4px}
.auth-form-panel input:not([type=checkbox]){min-height:40px;height:40px;padding:8px 11px}.password-toggle{height:40px}.auth-form-panel .btn{min-height:44px;font-size:16px}
.auth-forgot{margin-bottom:12px;font-size:12px}.auth-consent{font-size:11px;line-height:1.45;align-items:flex-start;margin:6px 0 12px}.auth-consent .link{font-size:11px;line-height:inherit}.auth-consent input{flex:0 0 18px;margin-top:2px}
.auth-switch,.auth-register .auth-switch{margin-top:10px;padding-top:10px;font-size:12px}.auth-switch .link,.auth-code-button{font-size:12px}.auth-code-button{margin:8px auto 0}.auth-language{margin-top:6px}.auth-form-panel #registration-policy:empty{display:none}
.legal-document{display:block;white-space:pre-wrap;line-height:1.65;color:var(--text);font-size:13px}.legal-editor{min-height:50vh!important;line-height:1.6}.auth-form-panel input[aria-invalid=true]{border-color:#c63737}
@media(max-width:380px){.auth-content{padding-top:285px}.auth-register .auth-content{padding-top:185px}}
/* Lift the runners within a full-bleed background; no exposed band at the bottom. */
.auth-register:before{inset:-90px 0 0;background-position:center bottom}
dialog:has(.legal-document) button[hidden]{display:none!important}

.checkpoint-clock{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-radius:14px;background:#eaf3ff;color:#163b68;font-size:14px}.checkpoint-clock strong{font-size:25px;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:.3px;white-space:nowrap}.checkpoint-clock.finished{background:#e6f7ef;color:#08764f}

.qr-card{text-align:center;padding:16px 0;border-bottom:1px solid var(--line)}.qr-card h3{margin-bottom:12px}.qr-image{background:white;padding:10px;max-width:280px;margin:0 auto 12px;border-radius:12px}.qr-image svg{display:block;width:100%;height:auto}.qr-card .btn{margin:auto}#qr-camera{width:100%;max-height:50vh;object-fit:cover;background:#14273c;border-radius:14px;margin-top:12px}

/* Challenge detail: approved translucent progress ring inside the photo. */
.detail-cover{position:relative}
.detail-photo-progress{position:absolute;left:10px;bottom:10px;width:clamp(108px,36%,150px);aspect-ratio:1;line-height:1.2;color:#031039;isolation:isolate}
.detail-photo-progress .ring-wrap{width:100%;height:100%;margin:0}
.detail-photo-progress .ring-wrap:before{content:"";position:absolute;inset:6%;border-radius:50%;background:linear-gradient(135deg,#ffffff38,#ffffff1a);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);box-shadow:inset 0 0 0 1px #ffffff38;z-index:-1}
.detail-photo-progress .ring-track{stroke:#ffffff94}
.detail-photo-progress .ring-value{stroke:#0785ff}
.detail-photo-progress .ring-center{inset:13%;gap:2px;overflow:hidden;text-shadow:0 1px 3px #ffffff99}
.detail-photo-progress .ring-center>.icon{width:22px;height:22px;flex:0 0 22px;margin:0;color:#0785ff}
.detail-photo-progress .ring-center strong{color:#031039;letter-spacing:-.6px;line-height:1.1}
.detail-photo-progress .ring-center span{color:#16335b;font-size:11px;line-height:1.2}
.detail-photo-progress .ring-center small{color:#16335b;font-size:10px;line-height:1.2}
@media(min-width:801px){.detail-photo-progress{left:18px;bottom:18px;width:170px}.detail-photo-progress .ring-center small{font-size:12px}.detail-photo-progress .ring-center span{font-size:13px}}

/* Keep the goal caption inside the narrower lower part of the photo circle. */
.detail-photo-progress .ring-center{gap:0;inset:15%;text-align:center}
.detail-photo-progress .ring-center>.icon{width:18px;height:18px;flex-basis:18px}
.detail-photo-progress .ring-center small{font-size:9px;line-height:1.08;white-space:normal;text-align:center;margin-top:2px}
.detail-photo-progress .ring-center span{font-size:10px;line-height:1.1}
.competition-filters{gap:8px;flex-wrap:wrap}
.competition-filters .tabs{gap:4px;flex-wrap:nowrap}
.competition-filters .tab{display:inline-flex;align-items:center;min-height:36px;padding:7px 10px;font-size:11px;white-space:nowrap}
.competition-filters .join-code-button{flex:0 0 auto;min-height:36px;padding:7px 10px;font-size:11px;line-height:1.2;border-radius:9px;white-space:nowrap}

/* iPhone: full-bleed background, fixed tab bar, and leaderboard scores that stay inside the card. */
@media(max-width:800px){
html,body:not(.auth-view){background:var(--bg)}
body:not(.auth-view):not(.landing-view){min-height:100%;overflow-x:hidden;overflow-y:visible}
body:not(.auth-view):not(.landing-view) .topbar{height:calc(58px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px)}
body:not(.auth-view):not(.landing-view) .content{overflow:visible;padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
body.home-view .content{padding-top:max(16px,env(safe-area-inset-top,0px))}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;transform:none;padding-bottom:max(10px,env(safe-area-inset-bottom,0px))}
body.auth-view{height:100%;overflow:hidden;background:#102438}
body.auth-view #app{height:100%;overflow:hidden}
body.auth-view .auth-screen{width:100%;max-width:none;height:100%;min-height:0;max-height:100%;margin:0;overflow:hidden}
body.auth-view .auth-wordmark,body.auth-view .auth-content{position:relative;z-index:2}
body.auth-view .auth-wordmark{flex:0 0 auto}
body.auth-view .auth-content{display:flex;flex-direction:column;justify-content:flex-end;flex:1 1 auto;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(max(8px,env(safe-area-inset-bottom,0px)) + var(--keyboard-inset,0px))}
body.auth-view .auth-screen:before,body.auth-view .auth-screen:after{position:fixed;inset:auto;left:0;right:0;width:100%;top:var(--auth-bg-shift,0px);bottom:auto;height:100lvh}
body.auth-view .auth-register:before{top:calc(var(--auth-bg-shift,0px) - 90px);height:calc(100lvh + 90px);background-position:center bottom;background-size:cover}
}
.ranking-row{display:flex;align-items:center;gap:9px;width:100%;max-width:100%;min-width:0}
.ranking-row>.place-number,.ranking-row>.place-medal{flex:0 0 27px}
.ranking-row>.avatar{flex:0 0 32px}
.ranking-person{flex:1 1 auto;min-width:0;overflow:hidden}
.ranking-person>strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
.ranking-score{flex:0 0 auto;max-width:none;margin-left:auto;text-align:right;padding-right:10px}
.ranking-score b{font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:0}
.ranking-score small{display:block;font-size:11px;line-height:1.2;white-space:nowrap}
.home-ranks,.home-leaderboard{min-width:0;max-width:100%}

/* Approved activity-card reference, 2026-10-11. Isolated from other cards. */
.reference-home .today-activity{container-type:inline-size;padding:16px 15px 15px;border:0;border-radius:20px;background:#03152f url("assets/today-activity-nature.png") center/100% 100% no-repeat;color:#f7faff;box-shadow:inset 0 0 0 1px #438aff55,0 10px 30px #3781c80b;max-width:100%;}
.today-activity .today-activity-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px;}
.today-activity .today-activity-heading h2{font-size:clamp(15px,5.1cqw,23px);font-weight:800;letter-spacing:-.5px;line-height:1.25;color:#f7faff;}
.today-activity .today-activity-heading a{flex-shrink:0;color:#a2b8d9;font-size:clamp(10px,3.2cqw,14px);white-space:nowrap;}
.today-activity .today-activity-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:20px;}
.today-activity .today-step-ring{position:relative;width:100%;max-width:220px;aspect-ratio:1;}
.today-activity .today-ring-art{display:block;width:100%;height:100%;overflow:visible;transform:rotate(-90deg);}
.today-activity .today-ring-art circle{fill:none;stroke-width:14;}
.today-activity .today-ring-track{stroke:#c6e1ff;}
.today-activity .today-ring-progress{stroke:#087cff;stroke-linecap:round;}
.today-activity .today-ring-content{position:absolute;inset:19%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;}
.today-activity .today-shoe{display:block;width:clamp(27px,9cqw,42px);height:clamp(27px,9cqw,42px);color:#0087ff;margin-bottom:2px;}
.today-activity .today-shoe svg{width:100%;height:100%;}
.today-activity .today-ring-content strong{font-size:clamp(16px,calc(48cqw / var(--digits)),42px);line-height:1.1;font-weight:800;letter-spacing:-1px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#ffffff;}
.today-activity .today-ring-content>span:last-child{font-size:clamp(12px,4cqw,18px);color:#b2c6e2;line-height:1.3;}
.today-activity .today-goal{display:flex;flex-direction:column;align-items:flex-start;min-width:0;}
.today-activity .today-percent{font-size:clamp(24px,calc(46cqw / var(--percent-digits)),68px);line-height:1.07;font-weight:800;letter-spacing:-2px;color:#0878ff;font-variant-numeric:tabular-nums;white-space:nowrap;}
.today-activity .today-goal-label{font-size:clamp(13px,4.55cqw,20px);line-height:1.25;letter-spacing:-.4px;margin-top:2px;max-width:100%;color:#f7faff;}
.today-activity .today-goal-target{color:#91a6c5;font-size:clamp(12px,4cqw,18px);line-height:1.4;margin-top:6px;max-width:100%;overflow-wrap:anywhere;}
.today-activity .today-goal-remaining{display:block;margin-top:9px;padding:7px 10px;border-radius:25px;background:#e5f4ff;color:#007aff;font-size:clamp(11px,3.7cqw,17px);font-weight:550;line-height:1.25;text-align:center;max-width:100%;overflow-wrap:anywhere;}
.today-activity .today-goal-remaining.is-complete{background:#e4f8f0;color:#087d5c;}
.today-activity .today-activity-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #b9cbe099;margin-top:14px;padding-top:16px;}
.today-activity .today-metric{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;padding:0 7px;color:#f7faff;}
.today-activity .today-metric:first-child{padding-left:0;justify-content:flex-start;}
.today-activity .today-metric:last-child{padding-right:0;justify-content:flex-end;}
.today-activity .today-metric+.today-metric{border-left:1px solid #b9cbe099;}
.today-activity .today-metric>svg{width:clamp(17px,6.3cqw,29px);height:clamp(23px,8cqw,35px);flex-shrink:0;color:#0782ff;}
.today-activity .today-metric-calories>svg{color:#ff810f;}
.today-activity .today-metric-minutes>svg{color:#00b9bf;}
.today-activity .today-metric>span{min-width:0;}
.today-activity .today-metric strong{display:block;font-size:clamp(11px,4.25cqw,19px);font-weight:750;line-height:1.2;letter-spacing:-.45px;white-space:nowrap;}
.today-activity .today-metric small{display:block;color:#b8c8e0;font-size:clamp(10px,3.3cqw,15px);line-height:1.3;margin-top:5px;}
@media(min-width:801px){.reference-home .today-activity{padding:24px;}.today-activity .today-activity-main{grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:30px;}.today-activity .today-activity-heading{margin-bottom:20px;}}
@media(max-width:360px){.reference-home .today-activity{padding:14px 12px;}.today-activity .today-activity-main{gap:12px;}.today-activity .today-metric{gap:4px;padding-inline:5px;}.today-activity .today-goal-remaining{padding:6px 7px;}}

/* Challenges list matches the phone layout: action card, text filters, photo cards with progress. */
.page-head:has(+ .challenge-actions),
.page-head:has(+ .challenge-filters){flex-direction:column;align-items:stretch;margin-bottom:14px}
.challenge-actions{display:flex;gap:10px;padding:10px;margin:0 0 14px;background:#fff;border:1px solid #e7eef8;border-radius:22px;box-shadow:0 8px 28px #315c9012}
.challenge-actions{flex-wrap:nowrap}.challenge-actions .btn{flex:1 1 0;min-width:0;min-height:48px;border-radius:16px;padding:8px 8px;font-size:13px;font-weight:750;white-space:normal;text-align:center;line-height:1.15;gap:6px}
.challenge-actions .btn .icon{width:18px;height:18px;flex:0 0 18px}
.challenge-actions .icon-underlay,.challenge-join .icon-underlay,.challenge-board .photo-type .icon-underlay{display:none}
.challenge-actions .challenge-create{background:#1677ff;color:#fff}
.challenge-actions .challenge-create .movea-icon{color:#fff}
.challenge-actions .challenge-gps{background:#fff;color:#1a2b4a;border:1px solid #e4ecf6;box-shadow:none}
.challenge-actions .challenge-gps .movea-icon{color:#1677ff}
.challenge-filters{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 14px;flex-wrap:wrap}
.challenge-filter-tabs{display:flex;align-items:center;gap:14px;min-width:0;flex-wrap:wrap}
.card-head:has(.activity-range){flex-wrap:nowrap;gap:8px}
.card-head:has(.activity-range) h2{min-width:0;white-space:nowrap}
.activity-range{margin:0 0 0 auto;flex:0 0 auto;gap:4px;flex-wrap:nowrap}
.activity-range .challenge-filter{font-size:11px;padding:4px 1px}
.activity-range .challenge-filter.active{padding:4px 8px}
.challenge-filter{color:#8b97ab;font-size:14px;font-weight:650;line-height:1.2;padding:8px 2px;border-radius:12px;white-space:nowrap}
.challenge-filter.active{background:#1677ff;color:#fff;padding:8px 14px}
.challenge-join{flex:0 0 auto;margin-left:auto;min-height:40px;border-radius:14px;padding:8px 12px;font-size:13px;font-weight:750;background:#fff;color:#1c2d4a;border:1px solid #e4ecf6;white-space:nowrap;gap:6px}
.challenge-join .icon{width:16px;height:16px;color:#1677ff}
.challenge-join .movea-icon{color:#1677ff}
.challenge-board{display:flex;flex-direction:column;gap:14px}
.challenge-board .challenge-tile{display:block;padding:0!important;border:0;border-radius:22px;overflow:hidden;box-shadow:0 10px 28px #1c3d6618;background:#14273c}
.challenge-board .photo-cover{position:relative!important;display:block;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;background:transparent;isolation:isolate;line-height:0}
.challenge-board .photo-cover>img{position:static!important;inset:auto;display:block;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:initial!important;object-position:center;z-index:auto;background:transparent!important}
.home-challenges .photo-cover>img[src$="team.png"],.challenge-board .photo-cover>img[src$="team.png"],.group-cover[src$="team.png"]{aspect-ratio:3/2!important;object-fit:cover!important;object-position:center}
.challenge-board .photo-cover:after{display:block;content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 32%,#0614262e 52%,#061426d6 100%);z-index:1;pointer-events:none}
.challenge-board .photo-type{position:absolute;top:12px;left:12px;z-index:3;background:#fff;color:#3d5678;border-radius:20px;padding:6px 10px;font-size:11px;font-weight:750;letter-spacing:.2px;gap:6px;line-height:1.2}
.challenge-board .photo-type .icon{width:16px;height:16px}
.challenge-board .photo-type .movea-icon{color:#1677ff}
.challenge-board .challenge-meta .icon-underlay,.challenge-board .challenge-open .icon-underlay{display:none}
.challenge-board .photo-copy{position:absolute!important;left:12px;right:12px;bottom:12px;z-index:2;padding:0!important;color:#fff;line-height:1.3}
.challenge-board .photo-copy h3{color:#fff;font-size:22px;font-weight:800;letter-spacing:-.45px;line-height:1.15;margin:0 0 4px;max-width:none;text-shadow:none;-webkit-line-clamp:2}
.challenge-board .photo-copy p{color:#f4f7fb;font-size:13px;line-height:1.35;max-width:none;-webkit-line-clamp:2}
.challenge-board .challenge-progress{margin-top:8px}
.challenge-board .challenge-amount{display:block;color:#fff;font-size:13px;font-weight:750;line-height:1.2}
.challenge-board .challenge-meter{display:flex;align-items:center;gap:8px;margin-top:4px}
.challenge-board .challenge-bar{width:44%;max-width:168px;flex:0 0 auto;height:6px;border-radius:99px;background:#ffffff55;overflow:hidden}
.challenge-board .challenge-bar>span{display:block;height:100%;border-radius:99px;background:#2f89ff}
.challenge-board .challenge-meter b{flex:0 0 auto;color:#fff;font-size:13px;font-weight:800}
.challenge-board .challenge-meta{display:flex;align-items:center;gap:8px;margin-top:10px;color:#fff;font-size:11px;font-weight:650;line-height:1.2}
.challenge-board .challenge-meta>span{display:inline-flex;align-items:center;gap:4px;min-width:0;flex:0 1 auto}
.challenge-board .challenge-meta .icon{width:14px;height:14px;flex:0 0 14px}
.challenge-board .challenge-meta .movea-icon{color:#fff}
.challenge-board .challenge-meta>span:not(.challenge-open){flex:0 0 auto}
.challenge-board .challenge-meta>span:not(.challenge-open) span{white-space:nowrap}
.challenge-board .challenge-open{margin-left:auto;flex:0 0 auto;background:#fff;color:#163056;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:750;white-space:nowrap;gap:3px}
.challenge-board .challenge-open .movea-icon{color:#163056}
@media(max-width:370px){
.challenge-actions .btn{font-size:12px;padding:10px 8px;gap:5px}
.challenge-filter{font-size:12px}
.challenge-filter.active{padding:7px 10px}
.challenge-join{font-size:11px;padding:7px 8px}
.challenge-board .photo-copy h3{font-size:18px}
.challenge-board .photo-copy p,.challenge-board .challenge-amount,.challenge-board .challenge-meter b{font-size:12px}
.challenge-board .challenge-open{font-size:11px;padding:6px 9px}
}

/* Create challenge: one white card, fields stacked, matching the chosen layout. */
dialog.create-challenge{width:min(440px,calc(100% - 28px));max-height:92vh;margin:auto;padding:8px 0 16px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:auto}
dialog.create-challenge::backdrop{background:#14274950;backdrop-filter:blur(4px)}
dialog.create-challenge .card-head{margin:2px 2px 8px}
dialog.create-challenge .card-head h2{font-size:28px;font-weight:800;letter-spacing:-.9px;line-height:1.1;color:#121826}
dialog.create-challenge .icon-btn{width:32px;height:32px;background:transparent;color:#121826}
dialog.create-challenge .icon-btn .icon{width:22px;height:22px}
dialog.create-challenge .create-card{background:#fff;border:1px solid #e7eef8;border-radius:22px;padding:14px 14px 12px;box-shadow:0 10px 28px #315c9014}
dialog.create-challenge .field{margin-bottom:8px;gap:4px}
dialog.create-challenge .field label{font-size:13px;font-weight:650;color:#1c2d4a}
dialog.create-challenge .field input,
dialog.create-challenge .field select,
dialog.create-challenge .field textarea{background:#fff;border:1px solid #e4ecf6;border-radius:12px;min-height:44px;padding:10px 12px;font-size:15px;color:#172b4d}
dialog.create-challenge .field select{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238492a8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
dialog.create-challenge .field:has(textarea)>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
dialog.create-challenge textarea{height:44px;min-height:44px;resize:none;line-height:1.4}
dialog.create-challenge textarea::placeholder{color:#8b97ab}
dialog.create-challenge .create-cover-note{margin:-2px 0 8px;color:#8b97ab;font-size:12px;line-height:1.35}
dialog.create-challenge .create-dates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
dialog.create-challenge .create-dates .field{min-width:0;margin-bottom:8px;overflow:hidden}
dialog.create-challenge .create-dates input[type=date]{min-width:0;width:100%;max-width:100%;font-size:12px;padding:10px 2px}
dialog.create-challenge .create-dates input[type=date]::-webkit-datetime-edit{padding:0;min-width:0}
dialog.create-challenge .create-dates input[type=date]::-webkit-calendar-picker-indicator{margin:0;padding:0;width:14px}
dialog.create-challenge .field.check{flex-direction:row;align-items:flex-start;gap:10px;margin-bottom:8px}
dialog.create-challenge .field.check input{width:18px;height:18px;min-height:18px;margin:1px 0 0;padding:0;accent-color:#1677ff;flex:0 0 18px}
dialog.create-challenge .field.check label{font-size:14px;font-weight:550;line-height:1.35;color:#1c2d4a}
dialog.create-challenge .form-error:empty{display:none;margin:0}
dialog.create-challenge .form-error:not(:empty){margin:0 0 10px}
dialog.create-challenge .form-actions{display:flex;justify-content:stretch;gap:10px;margin-top:6px}
dialog.create-challenge .form-actions .btn{flex:1 1 0;min-height:46px;margin:0;border-radius:14px;font-size:16px;font-weight:750}
dialog.create-challenge .form-actions .btn.ghost{background:#fff;color:#1677ff;border:1px solid #d5e2f2}
dialog.create-challenge .form-actions .btn:not(.ghost){background:#1677ff;color:#fff}
@media(max-width:800px){
dialog.create-challenge{position:fixed;inset:calc(58px + env(safe-area-inset-top,0px)) 0 0 0;width:100%;max-width:none;height:auto;max-height:none;margin:0;padding:8px 16px calc(16px + env(safe-area-inset-bottom,0px));background:var(--bg);border-radius:0}
dialog.create-challenge::backdrop{background:transparent;backdrop-filter:none}
}
html[lang=en] .challenge-actions .btn{font-size:12px;padding:8px 6px;gap:4px}
html[lang=en] .challenge-actions .btn .icon{width:16px;height:16px;flex-basis:16px}

/* GPS checkpoint creation matches the blue-notice, map, then form layout. */
dialog.create-course{width:min(440px,calc(100% - 28px));max-height:92vh;margin:auto;padding:8px 16px 16px;border:0;border-radius:0;background:#fff;box-shadow:none;overflow:auto;color:#172b4d}
dialog.create-course::backdrop{background:#14274950;backdrop-filter:blur(4px)}
dialog.create-course .card-head{margin:2px 0 10px}
dialog.create-course .card-head h2{font-size:22px;font-weight:800;letter-spacing:-.4px;line-height:1.15;color:#1565e0}
html[lang=en] dialog.create-course .card-head h2{font-size:18px}
dialog.create-course .icon-btn{width:32px;height:32px;background:transparent;color:#1565e0}
dialog.create-course .icon-btn .icon{width:22px;height:22px}
dialog.create-course .course-notice{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;padding:12px 14px;background:#e7f0ff;border-radius:14px;color:#24344d;font-size:13px;line-height:1.35}
dialog.create-course .course-notice-mark{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#1677ff;color:#fff;display:grid;place-items:center;font-size:14px;font-weight:750;font-style:italic;line-height:1}
dialog.create-course .course-map{height:220px;border-radius:16px;margin:0}
dialog.create-course .course-map-hint{margin:6px 2px 8px;color:#8b97ab;font-size:12px;line-height:1.35}
dialog.create-course .checkpoint-edit{display:grid;grid-template-columns:40px minmax(0,1.35fr) minmax(0,1fr) minmax(0,.8fr);gap:8px;align-items:end;margin:0 0 12px;padding:8px;border:1px solid #e4ecf6;border-radius:14px;background:#fff}
dialog.create-course .checkpoint-edit-side{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:4px;align-self:stretch}
dialog.create-course .checkpoint-edit-side b{width:28px;height:28px;border:1px solid #d5e0ee;border-radius:8px;display:grid;place-items:center;font-size:14px;color:#172b4d}
dialog.create-course .checkpoint-edit-side button{width:28px;height:22px;min-height:0;padding:0;border:0;border-radius:6px;background:#eef4ff;color:#1677ff;font-size:14px;line-height:1}
dialog.create-course .checkpoint-edit-side button:disabled{opacity:.35}
dialog.create-course .checkpoint-edit label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:11px;font-weight:650;color:#5c6d86}
dialog.create-course .checkpoint-edit input{width:100%;min-width:0;border:1px solid #e4ecf6;border-radius:8px;background:#fff;padding:8px 6px;font-size:14px;color:#172b4d}
dialog.create-course .course-fields .field{position:relative;display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;padding:11px 16px 11px 0;border-bottom:1px solid #e6edf5}
dialog.create-course .course-fields .field::after{content:'';position:absolute;right:2px;top:50%;width:7px;height:7px;border-right:1.5px solid #9aa8bc;border-bottom:1.5px solid #9aa8bc;transform:translateY(-60%) rotate(-45deg)}
dialog.create-course .course-fields .field>label{flex:1 1 auto;min-width:0;margin:0;font-size:14px;font-weight:650;line-height:1.25;color:#1c2d4a}
dialog.create-course .course-fields .field select,
dialog.create-course .course-fields .field input:not([type=checkbox]),
dialog.create-course .course-fields .field textarea{flex:1 1 42%;min-width:0;width:auto;max-width:58%;border:0;border-radius:0;background:transparent;box-shadow:none;min-height:0;height:auto;padding:0;font-size:13px;line-height:1.25;color:#5c6b82;text-align:right}
dialog.create-course .course-fields .field select{appearance:none}
dialog.create-course .course-fields .field textarea{resize:none;height:20px;min-height:20px}
dialog.create-course .course-fields .field.check{align-items:flex-start}
dialog.create-course .course-fields .field.check input{flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:1px 0 0;padding:0;accent-color:#1677ff}
dialog.create-course .course-fields .field.check label{flex:1;text-align:left}
dialog.create-course .course-fields .field.check input:disabled+label{color:#b0bac8}
dialog.create-course .form-error:empty{display:none;margin:0}
dialog.create-course .form-error:not(:empty){margin:8px 0}
dialog.create-course .form-actions{display:flex;gap:10px;margin-top:14px}
dialog.create-course .form-actions .btn{flex:1 1 0;min-height:48px;margin:0;border-radius:14px;font-size:16px;font-weight:750}
dialog.create-course .form-actions .btn.ghost{background:#fff;color:#1677ff;border:1px solid #d5e2f2}
dialog.create-course .form-actions .btn:not(.ghost){background:#1677ff;color:#fff}
@media(max-width:800px){
dialog.create-course{position:fixed;inset:calc(58px + env(safe-area-inset-top,0px)) 0 0 0;width:100%;max-width:none;height:auto;max-height:none;margin:0;padding:8px 16px calc(16px + env(safe-area-inset-bottom,0px));border-radius:0}
dialog.create-course::backdrop{background:transparent;backdrop-filter:none}
}
dialog.create-course .course-fields .note-open{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;width:100%;background:transparent;color:#1c2d4a;font-size:14px;font-weight:650;text-align:left;padding:0}
dialog.create-course .course-fields .note-preview{margin-left:auto;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;font-size:13px;color:#5c6b82}
dialog.create-challenge .note-open{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;border:1px solid #e4ecf6;border-radius:12px;background:#fff;padding:10px 12px;text-align:left;color:#8b97ab;font-size:15px;font-weight:500}
dialog.create-challenge .note-preview:not(:empty){margin-left:auto;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172b4d;font-weight:650;font-size:14px}
dialog.create-challenge textarea[hidden],dialog.create-course textarea[hidden]{display:none}
#note-box{width:min(420px,calc(100vw - 32px));max-height:none;margin:auto;border:0;border-radius:22px;padding:16px;background:#fff;box-shadow:0 24px 80px #14274930}
#note-box::backdrop{background:#14274955}
#note-box .card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px}
#note-box h2{margin:0;font-size:17px;color:#1565e0}
#note-box textarea{display:block;width:100%;height:160px;min-height:160px;max-height:160px;resize:none;overflow:auto;border:1px solid #e4ecf6;border-radius:12px;padding:12px;font:inherit;line-height:1.4;box-sizing:border-box}
#note-box .btn{width:100%;margin-top:12px}
