/* Manrope, SIL Open Font License. Local assets only. */
@font-face{font-family:Manrope;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/manrope/manrope-0.ttf) format('truetype')}
@font-face{font-family:Manrope;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/manrope/manrope-1.ttf) format('truetype')}
@font-face{font-family:Manrope;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/manrope/manrope-2.ttf) format('truetype')}
@font-face{font-family:Manrope;font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/manrope/manrope-3.ttf) format('truetype')}
@font-face{font-family:Manrope;font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/manrope/manrope-4.ttf) format('truetype')}

/* Shared shell is scoped to redesigned screens; unrelated screens retain their theme. */
:is(.sortirumba-page,.home-page,.scan-page,.journey-page){--bg:#faf9f5;--ink:#202936;--dark:#202936;--green:#55753d;--green2:#b8cf96;--primary:#b8cf96;--primary-ink:#263c27;--primary-hover:#c5dba8;--link:#326b26;--focus:#63804a;--band:#eff1eb;--line:#d4d9d0;--muted:#667164;--brand-blue:#0078c8;--brand-orange:#f76a0a;--brand-sage:#aabb9f;background:var(--bg);color:var(--ink)}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page),:is(.sortirumba-page,.home-page,.scan-page,.journey-page) *{font-family:Manrope,system-ui,-apple-system,'Segoe UI',sans-serif}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .page{max-width:480px;padding:21px 22px 110px;background:var(--bg);border:0;box-shadow:none;min-height:100vh;min-height:100dvh}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar{position:relative;min-height:42px;margin:0 0 26px;padding:0;background:transparent;gap:12px}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-brand{display:inline-flex;align-items:center;min-width:0;white-space:nowrap}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .home-wordmark{display:block;width:190px;max-width:100%;height:auto;flex-shrink:1}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-actions{gap:8px;flex:0 0 auto}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar .topbar-stats{display:flex;gap:5px;align-items:center}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-balance{order:0;padding:0;min-height:32px;border:0;background:transparent;border-radius:0}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-balance-n{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--dark)}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-league{order:1}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-league img,:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-league-badge{width:27px;height:27px;box-shadow:none}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .account-menu-toggle{width:36px;height:36px;border-radius:10px;background:transparent;border:0;color:var(--ink)}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .account-menu-links{background:var(--bg);border-color:var(--line)}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) a:focus-visible,:is(.sortirumba-page,.home-page,.scan-page,.journey-page) button:focus-visible,:is(.sortirumba-page,.home-page,.scan-page,.journey-page) summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .nav{padding:7px 8px max(8px,env(safe-area-inset-bottom));border:1px solid var(--line);border-bottom:0;border-radius:22px 22px 0 0;background:#eff1eb}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .nav a{position:relative;min-height:57px;padding:8px 0 5px;border-radius:14px;font-size:10px;font-weight:600;line-height:1.4;color:#4c554e}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .nav a svg,:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .nav a .home-nav-icon{position:relative;display:block;width:23px;height:23px;margin:0 auto 5px}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .nav a.active{color:#496937;background:#e5edda}
:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .nav a.active::before{content:none}
.home-page .home-intro h1{font-size:clamp(30px,9.6vw,40px);font-weight:600;line-height:1.15;letter-spacing:-1.6px;color:var(--ink);margin:0 0 15px}
.home-page .home-visual{width:100%;height:auto;aspect-ratio:635/454;margin:6px auto 16px;border-radius:0;background:transparent;display:block;overflow:hidden}
.home-page .home-illustration{display:block;width:100%;height:100%;object-fit:contain}
.home-page .home-visual.live{border-radius:20px;background:#202936}
.home-page .home-visual.live .home-illustration{visibility:hidden}
.home-page .home-visual .cam-note{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.home-page .home-camera-actions{display:flex;align-items:stretch;flex-direction:column;gap:0}
.home-page .home-scan{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;min-height:60px;padding:15px 18px;border:0;border-radius:18px;background:var(--brand-blue);color:#fff;font-size:19px;font-weight:600;line-height:1.4;box-shadow:none;cursor:pointer}
.home-page .home-scan::before{content:'';width:25px;height:25px;flex:0 0 25px;background:currentColor;mask:url(../img/home/camera.svg) center/contain no-repeat;-webkit-mask:url(../img/home/camera.svg) center/contain no-repeat}
.home-page .home-scan:hover{background:#006bb3}
.home-page #cam-btn:disabled{background:#dfe5d6;color:#69745e;cursor:wait;opacity:1}
.home-page .home-upload{align-self:center;min-height:44px;margin:4px 0 0;padding:8px 14px;border:0;background:transparent;color:var(--brand-blue);font-size:15px;font-weight:600;cursor:pointer}
.home-page .home-upload:hover{text-decoration:underline}
.home-page .home-camera-status:empty{display:none}
.home-page .home-camera-status{font-size:13px;line-height:1.5;margin:0 0 12px;color:var(--dark)}
.home-page .home-shortcuts{margin:9px 0 0;border-top:1px solid var(--line)}
.home-page .home-shortcut{display:flex;align-items:center;gap:13px;min-height:68px;padding:14px 5px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none;font-size:19px;font-weight:500;line-height:1.4}
.home-page .home-shortcut:last-child{border-bottom:0}
.home-page .home-shortcut svg{display:block;flex:0 0 39px;width:39px;height:39px;padding:8px;background:#eff1eb;border-radius:50%;box-sizing:border-box}
.home-page .home-shortcut:first-child svg{color:#7b992f}
.home-page .home-shortcut>span:first-of-type{flex:1;min-width:0}
.home-page .home-shortcut-chevron{flex:0 0 7px;width:7px;height:7px;margin-right:5px;border-top:1.5px solid #a4b19e;border-right:1.5px solid #a4b19e;transform:rotate(45deg)}
.home-page .home-shortcut:hover{color:var(--brand-blue);background:#eff1eb}
.home-page .home-day{margin-top:35px;padding-top:20px;border-top:1px solid var(--line)}
.home-page .home-day h2{margin:0 0 13px;font-size:20px;font-weight:800;letter-spacing:-.5px}
.home-page .home-balance{background:#eff1eb;border:0;border-radius:18px;padding:14px 16px;color:var(--dark)}
.home-page .home-balance .n{font-size:26px}
.home-page .home-balance .lvl{max-width:65%;background:transparent;color:var(--muted);padding:0;font-size:12px;line-height:1.5;text-align:right;text-decoration:none}
.home-page .home-day .card:not(.home-balance){background:#fff;border-color:var(--line)}
.home-page .home-day .strip{margin-top:10px;border:0;border-left:3px solid var(--brand-orange);background:#eff1eb;line-height:1.5}
.home-page .home-day .sect{margin-top:20px;color:var(--muted);letter-spacing:.04em}
@media(max-width:370px){:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .page{padding-left:18px;padding-right:18px}:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-actions{gap:6px}:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-balance-n{font-size:12px}:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .account-menu-toggle{width:32px}:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .home-wordmark{width:180px}.home-page .home-shortcut{font-size:18px}.home-page .home-scan{min-height:56px;font-size:18px}}
@media(max-width:340px){:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar{gap:8px}:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-actions,:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar .topbar-stats{gap:5px}:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-balance-n{font-size:11px}:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-league img,:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .topbar-league-badge{width:24px;height:24px}:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .account-menu-toggle{width:30px}:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .home-wordmark{width:148px}}
@media(min-width:768px){:is(.sortirumba-page,.home-page,.scan-page,.journey-page){background:#ecefe8}:is(.sortirumba-page,.home-page,.scan-page,.journey-page) .nav{max-width:480px}}
@media(prefers-reduced-motion:reduce){.home-page .home-visual video{transition:none}}
