@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{color-scheme:dark;--bg:#0c1928;--panel:#132538;--panel-hover:#172d42;--border:#294052;--muted:#a5b6c5;--text:#f0f5f2;--green:#b1df87;--green-dark:#213c35;--blue:#96c7e7;--danger:#ffb4b0;font-family:'DM Sans',system-ui,sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);background-image:radial-gradient(ellipse at 85% 8%,#15364966,transparent 42%);min-height:100vh}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--blue);outline-offset:4px}button{border:0}button,input,select,textarea{transition:background .15s,border-color .15s}input,select,textarea{min-width:0}input,textarea{width:100%}.shell{width:min(1120px,calc(100% - 80px));margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;padding:28px 0;border-bottom:1px solid #29405299;gap:24px}.brand{display:flex;align-items:center;gap:12px;font-size:.82rem;font-weight:700;letter-spacing:.1em}.brand-icon{display:grid;place-items:center;border:1px solid #395641;background:#203a3466;border-radius:12px;width:44px;height:44px}.brand-icon svg{width:30px;fill:none;stroke:var(--green);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.brand-dots{color:var(--green)}.top-note{font-size:.875rem;color:var(--muted)}.hero{position:relative;display:grid;grid-template-columns:1fr 1.05fr;align-items:center;padding:65px 0 49px;gap:8px}.eyebrow{font-size:.75rem;letter-spacing:.16em;font-weight:700;color:var(--green);display:inline-flex;align-items:center;gap:9px}.tiny-mountain{font-size:1.4rem;line-height:1}h1,h2,h3{font-family:Manrope,system-ui,sans-serif}h1{font-size:clamp(2.8rem,5.2vw,4.25rem);letter-spacing:-.065em;line-height:1.12;margin:22px 0 18px;font-weight:800}h1>span{color:var(--green)}.hero-copy>p{font-size:1.125rem;color:var(--muted);line-height:1.65;margin:0 0 27px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 21px;border-radius:9px;font-weight:700;font-size:.9rem;min-height:46px}.button>span{font-size:1.25rem;line-height:1}.primary{background:var(--green);color:#162c24}.primary:hover{background:#c5eca4}.secondary{border:1px solid #365348;background:#1c3734;color:#c8e9b3}.secondary:hover{background:#26463c}.ghost{background:transparent;color:var(--muted);border:1px solid var(--border)}.ghost:hover{background:var(--panel-hover);color:var(--text)}.landscape{position:relative}.landscape svg{width:115%;max-width:none;margin-left:-4%;display:block}.altitude-note{position:absolute;right:4%;bottom:3%;font-size:.75rem;line-height:1.6;color:#93abae;text-align:right;transform:rotate(-5deg)}.stats{display:flex;align-items:center;padding:25px 30px;background:linear-gradient(110deg,#18312f99,#142a3c99);border:1px solid var(--border);border-radius:14px;gap:0}.stats>div{padding:0 37px;border-right:1px solid #36504f;min-width:22%}.stats>div:first-child{padding-left:0}.stats>div>span{font-family:Manrope,system-ui,sans-serif;font-size:2rem;line-height:1.2;font-weight:700;color:#d6edc7}.stats p{margin:5px 0 0;color:var(--muted);font-size:.875rem}.stats .stats-aside{line-height:1.6;margin:0 0 0 auto;padding-left:24px;font-size:.8rem}.stats-aside strong{color:#d4dfe3;font-weight:500}.collection{margin-top:51px;scroll-margin-top:24px}.collection-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--border);padding-bottom:17px}.tabs{display:flex;gap:24px}.tabs button{position:relative;display:flex;align-items:center;gap:10px;background:transparent;padding:14px 0;font-size:1rem;font-weight:600;color:var(--muted);white-space:nowrap}.tabs button[aria-selected=true]{color:var(--text)}.tabs button[aria-selected=true]:after{content:'';position:absolute;bottom:-18px;height:3px;left:0;right:0;background:var(--green);border-radius:3px}.tabs button>span{background:#233749;padding:3px 8px;border-radius:6px;font-size:.75rem;color:#bad0df;min-width:25px}.tabs button[aria-selected=true]>span{background:#2b4339;color:var(--green)}.filters{display:flex;align-items:center;gap:12px;margin:24px 0}.search{flex:1;position:relative}.search svg{position:absolute;left:14px;top:14px;width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.7}.search input{padding-left:42px}input,textarea,select{background:#112233;color:var(--text);border:1px solid var(--border);border-radius:8px;padding:12px 13px;line-height:1.35;font-size:.9rem;min-height:46px}input::placeholder,textarea::placeholder{color:#889eaf;opacity:1}input:hover,select:hover,textarea:hover{border-color:#4f6a7f}textarea{resize:vertical;min-height:100px}select{appearance:none;padding-right:35px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23adbdcc' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.filters select{max-width:200px}.icon-button{display:inline-grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:8px;background:transparent;color:var(--muted);font-size:1.3rem}.icon-button:hover{background:#294052;color:var(--text)}.icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#refresh{border:1px solid var(--border);height:46px;width:46px}#hikes{display:grid;gap:13px}.hike{background:var(--panel);border:1px solid var(--border);border-radius:12px;display:flex;gap:20px;padding:23px;transition:border-color .2s,background .2s}.hike:hover{background:var(--panel-hover);border-color:#3c566b}.hike-main{flex:1;min-width:0}.hike-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.hike h3{font-size:1.2rem;margin:0;letter-spacing:-.025em;overflow-wrap:anywhere}.flag{font-family:system-ui,sans-serif;font-size:1.3rem;line-height:1;white-space:nowrap}.difficulty{margin-left:auto;font-size:.75rem;padding:5px 10px;display:inline-flex;gap:7px;align-items:center;border-radius:6px;white-space:nowrap;font-weight:600}.difficulty svg{width:14px;height:12px;stroke:currentColor;fill:none;stroke-width:1.6}.difficulty.easy{color:#c5e7af;background:#264335}.difficulty.medium{color:#edcf9a;background:#433c2e}.difficulty.hard{color:#f0b5b1;background:#45323c}.hike-notes{font-size:.9rem;line-height:1.65;color:#b2c2cf;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.hike-bottom{display:flex;align-items:center;gap:10px;margin-top:16px;flex-wrap:wrap}.source-link{font-size:.8rem;display:inline-flex;gap:7px;align-items:center;padding:7px 10px;border-radius:6px;background:#20374a;color:#c7dce9;border:1px solid #30495c;min-height:34px}.source-link:hover{background:#2c4860}.source-link svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5}.source-link.strava{color:#ffc5a8;border-color:#634638;background:#3c302e}.hike-actions{display:flex;margin-left:auto;gap:3px}.hike-actions .icon-button{width:34px;height:34px}.complete-button{flex-shrink:0;background:transparent;border:1.5px solid #587080;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;margin-top:1px;color:transparent}.complete-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.3}.complete-button:hover{background:var(--green);color:#1e392a;border-color:var(--green)}.complete-button.done{background:#2c4839;color:var(--green);border-color:#53784d}.complete-button.done:hover{background:#395647}.hike .empty-note{color:#8299aa;font-size:.8rem;margin:9px 0 0}.empty{padding:47px 20px;text-align:center;border:1px dashed #375165;border-radius:12px;background:#11223488}.empty-icon{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 18px;border:1px solid #36554c;border-radius:22px;background:#1d393580;color:var(--green)}.empty-icon svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.empty h3{font-size:1.3rem;margin:0 0 10px}.empty p{color:var(--muted);font-size:.9rem;line-height:1.7;margin:0 0 22px}.result-count{font-size:.8rem;color:#8ca3b4;margin:16px 0 0;min-height:20px}footer{border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:20px;color:#8ca3b4;font-size:.8rem;padding:25px 0;margin-top:48px}.loading{display:flex;gap:12px;align-items:center;justify-content:center;color:var(--muted);padding:65px 0}.spinner{height:20px;width:20px;border:2px solid #385466;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-banner{background:#3e2c35;border:1px solid #8f5b63;color:#ffd6d0;border-radius:8px;padding:15px;margin-bottom:18px;font-size:.9rem}dialog{color:var(--text);background:#132537;border:1px solid #3c5669;border-radius:18px;width:min(560px,calc(100% - 28px));padding:28px;max-height:calc(100dvh - 40px);box-shadow:0 30px 100px #0009;overscroll-behavior:contain}dialog::backdrop{background:#04101bd9;backdrop-filter:blur(6px)}body:has(dialog[open]){overflow:hidden}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.dialog-heading h2{font-size:1.7rem;letter-spacing:-.04em;margin:10px 0 0}.dialog-heading>.icon-button{margin:-6px -7px 0 0}.form-hint{font-size:.875rem;color:var(--muted);margin:16px 0 23px}form label{display:block;font-size:.875rem;font-weight:500;line-height:1.6;margin-top:17px}form label>input,form label>select,form label>textarea{display:block;margin-top:7px;width:100%}.required{color:var(--green)}.optional{color:#8fa7b7;font-size:.75rem;font-weight:400;margin-left:5px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--border);margin-top:25px;padding-top:20px}.form-error{color:var(--danger);font-size:.875rem;line-height:1.6;margin-bottom:0}.field-help{font-size:.8rem;line-height:1.6;color:var(--muted);font-weight:400;display:block;margin-top:8px}#action-description{color:var(--muted);line-height:1.7;font-size:.95rem;overflow-wrap:anywhere}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:15px;background:#23453e;color:#ecf5e7;border:1px solid #537765;border-radius:12px;padding:14px 16px;max-width:calc(100% - 28px);width:max-content;box-shadow:0 8px 40px #0006;font-size:.875rem}.toast button{background:transparent;color:var(--green);font-weight:700;min-height:28px}#dismiss-toast{color:#a8c8bb;font-weight:400}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:fixed;top:0;left:16px;transform:translateY(-150%);padding:14px;background:var(--green);color:#112820;z-index:10;border-radius:0 0 8px 8px}.skip:focus{transform:translateY(0)}[hidden]{display:none!important}
@media(min-width:1500px){.hero{padding-top:80px;padding-bottom:65px}.collection{margin-top:60px}}
@media(max-width:900px){.shell{width:calc(100% - 48px)}.hero{padding:47px 0 40px}.stats>div{padding:0 25px;min-width:28%}.stats .stats-aside{display:none}.stats>div:last-of-type{border:0}.filters{flex-wrap:wrap}.search{flex-basis:100%}.filters>label:not(.search){flex:1}.filters select{width:100%;max-width:none}.altitude-note{bottom:-3%}.hero-copy>p{font-size:1rem}}
@media(max-width:600px){.shell{width:calc(100% - 32px)}.topbar{padding:19px 0}.brand{font-size:.67rem;gap:10px;letter-spacing:.07em}.brand-icon{height:36px;width:36px;border-radius:10px}.top-note{display:none}.hero{display:block;padding:34px 0 22px;overflow:hidden}h1{font-size:3.1rem;margin-top:19px}.hero-copy{position:relative;z-index:1}.hero-copy>p{font-size:1rem}.landscape{position:relative;margin:-75px -45px 0 75px;opacity:.7;pointer-events:none}.landscape svg{width:100%;margin:0}.altitude-note{display:none}.hero .primary{position:relative;z-index:2}.stats{padding:18px 15px;border-radius:11px}.stats>div{padding:0 12px;min-width:0;width:33.333%;text-align:center}.stats>div:first-child{padding-left:0}.stats>div:last-of-type{padding-right:0}.stats>div>span{font-size:1.6rem}.stats p{font-size:.7rem;line-height:1.5}.collection{margin-top:29px}.collection-heading{padding-bottom:11px}.collection-heading>.button{display:none}.tabs{gap:22px}.tabs button{font-size:.92rem;padding:12px 0}.tabs button[aria-selected=true]:after{bottom:-12px}.filters{margin:20px 0;gap:8px}.filters select{font-size:.8rem;padding-left:10px}.hike{padding:18px 14px;gap:12px}.hike h3{font-size:1.12rem}.hike-title-row{gap:8px}.difficulty{margin-left:0;font-size:.7rem;padding:4px 8px}.hike-notes{font-size:.875rem}.flag{font-size:1.2rem}.complete-button{width:27px;height:27px}.hike-actions{gap:0}.source-link{font-size:.75rem;padding:6px 8px}.hike-bottom{gap:6px}.empty{padding:37px 15px}.empty p{font-size:.875rem}footer{font-size:.7rem;padding:22px 0;gap:12px;margin-top:32px}footer span:last-child{text-align:right}dialog{padding:23px 20px;max-height:calc(100dvh - 24px)}.dialog-actions .button{padding:12px 15px;font-size:.85rem}.toast{bottom:16px;gap:9px;padding:12px;font-size:.8rem}.form-grid{gap:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Compact shared list */
.shell{width:min(1120px,calc(100% - 48px))}
.topbar{padding:18px 0;gap:16px}
.brand{gap:10px;letter-spacing:0}
.brand h1{font-size:1.35rem;line-height:1.25;letter-spacing:-.035em;margin:0;font-weight:800}
.brand-icon{width:36px;height:36px;border-radius:10px}
.brand-icon svg{width:27px}
.button{padding:10px 16px;min-height:42px}
.stats{padding:12px 0;background:none;border:0;border-radius:0;gap:22px;flex-wrap:wrap}
.stats>div,.stats>div:first-child,.stats>div:last-of-type{display:flex;align-items:baseline;gap:7px;min-width:0;width:auto;padding:0;border:0;text-align:left}
.stats>div>span{font-size:1.05rem}
.stats p{margin:0;font-size:.8rem}
.stats .stats-aside{display:none}
.collection{margin-top:6px}
.collection-heading{padding-bottom:9px}
.tabs button{padding:9px 0}
.tabs button[aria-selected=true]:after{bottom:-10px}
.filters{margin:14px 0;gap:10px}
#hikes{gap:7px}
.hike{padding:11px 14px;gap:12px;border-radius:9px}
.hike-title-row{gap:9px}
.hike h3{font-size:1rem}
.flag{font-size:1.1rem}
.country-text{font-size:.8rem;color:var(--muted)}
.difficulty{margin-left:0;padding:4px 8px;font-size:.75rem}
.hike-bottom{margin:0 0 0 auto;gap:7px}
.source-link{min-height:32px;padding:5px 8px;font-size:.8rem}
.hike-actions{margin-left:3px}
.hike-notes{font-size:.875rem;line-height:1.5;margin:5px 0 0}
.complete-button{width:28px;height:28px;margin-top:2px}
.empty{padding:26px 18px}
.empty-icon{width:48px;height:48px;margin-bottom:12px;border-radius:14px}
.empty-icon svg{width:30px;height:30px}
.empty h3{font-size:1.1rem}
.empty p{margin-bottom:15px}
.result-count{margin-top:11px}
footer{margin-top:24px;padding:18px 0}
@media(max-width:760px){
.hike-title-row{gap:8px}
.hike-bottom{flex-basis:100%;margin:3px 0 0}
.hike-actions{margin-left:auto}
.filters{flex-wrap:wrap}
.search{flex-basis:100%}
.filters>label:not(.search){flex:1}
.filters select{width:100%;max-width:none}
}
@media(max-width:600px){
.shell{width:calc(100% - 24px)}
.topbar{padding:13px 0;gap:10px}
.brand h1{font-size:1.1rem}
.brand-icon{width:30px;height:30px}
.brand-icon svg{width:24px}
.topbar .button{font-size:.8rem;padding:9px 10px}
.stats{gap:8px 15px;padding:12px 0}
.stats>div>span{font-size:1rem}
.stats p{font-size:.75rem}
.collection{margin-top:2px}
.hike{padding:10px;gap:10px}
.hike h3{font-size:1rem}
.source-link{font-size:.8rem}
}

