:root { color-scheme: light; font-family: "Segoe UI", sans-serif; color: #23352d; background: #f3f5ef; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.page { width: min(1440px, 100%); margin: 0 auto; padding: 24px; }
.topbar { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px 16px; }
.brand { font-family: Georgia, serif; font-size: 1.2rem; text-decoration: none; color: #23352d; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; border: 0; border-radius: 999px; padding: .85rem 1.2rem; font: inherit; font-size: .92rem; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { color: #23352d; background: #fff; border: 1px solid #d9e1d7; }
.button-dark { color: #fff; background: #31563a; }
.button-dark:hover { background: #24452d; }
.hero { min-height: min(680px, 76vh); position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; border-radius: 20px; color: #fff; background: #334338; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center 54%; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, rgb(11 27 19 / 72%) 0%, rgb(11 27 19 / 40%) 44%, rgb(11 27 19 / 2%) 100%), linear-gradient(0deg, rgb(11 27 19 / 35%), transparent 34%); }
.hero-copy { padding: clamp(2rem, 8vw, 7.5rem); max-width: 780px; }
.eyebrow { color: #657d68; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.hero .eyebrow { color: #e1ebd9; }
h1 { margin: .7rem 0 .5rem; font-family: Georgia, serif; font-size: clamp(3.4rem, 9vw, 7.2rem); font-weight: 500; letter-spacing: -.045em; line-height: .96; }
.intro { color: #f0f2ea; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.photo-credit { position: absolute; right: 24px; bottom: 16px; margin: 0; color: #fff; font-size: .8rem; text-shadow: 0 1px 8px #000; }
.archive { padding: clamp(2rem, 6vw, 5rem) clamp(.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1fr minmax(280px, .8fr); align-items: center; gap: 3rem; }
.archive h2 { margin: .5rem 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.03em; }
.archive-copy { color: #617067; font-size: 1.05rem; }
.archive-map-wrap { margin-top: 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1rem; }
.archive-map { grid-column: 1 / -1; height: 340px; width: 100%; overflow: hidden; border: 1px solid #d9e1d7; border-radius: 12px; background: #e9eee7; box-shadow: 0 10px 28px #253a2a0b; }
.archive-map-caption { margin: .55rem 0 0; color: #617067; font-size: .78rem; }
.archive-map-actions { margin-top: .55rem; text-align: right; }
.archive-map-actions a { color: #315f82; font-size: .82rem; text-decoration: underline; }
.archive-map-fullscreen-page { width: 100vw; height: 100vh; overflow: hidden; background: #e9eee7; }
.archive-map-fullscreen { position: fixed; inset: 0; z-index: 1; width: 100vw; height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
.archive-map-back { position: fixed; top: 14px; left: 58px; z-index: 2000; padding: .6rem .85rem; border: 1px solid #d9e1d7; border-radius: 9px; background: #fff; color: #23352d; font-size: .86rem; text-decoration: none; box-shadow: 0 2px 9px #182b2020; }
.archive-map-hint { position: fixed; right: 14px; bottom: 32px; z-index: 2000; margin: 0; padding: .55rem .75rem; border: 1px solid #d9e1d7; border-radius: 8px; background: #fff; color: #44564a; font-size: .8rem; box-shadow: 0 2px 9px #182b2020; }
.archive-map-photo-popup .leaflet-popup-content { max-height: 300px; margin: 8px; overflow: auto; }
.archive-map-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 6px; }
.archive-map-photo-grid a { display: block; overflow: hidden; border-radius: 5px; background: #e9eee7; }
.archive-map-photo-grid img { display: block; width: 150px; height: 112px; object-fit: cover; }
.archive:has(.archive-map-wrap) { align-items: start; }
.empty-state { padding: 1.4rem 1.5rem; border: 1px solid #d9e1d7; border-radius: 14px; background: #fff; display: flex; align-items: center; gap: 1rem; box-shadow: 0 12px 35px #253a2a0b; }
.empty-state p { margin: 0; }
@media (max-width: 700px) { .photo-viewer { width: 100vw; height: 100dvh; padding: 50px 48px 20px; border-radius: 0; } .photo-viewer-nav { width: 40px; height: 50px; } .photo-viewer-prev { left: 4px; } .photo-viewer-next { right: 4px; } }
@media (max-width: 700px) { .day-summary-panel { padding: 12px; } .day-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .day-stat-grid > div { padding: 8px; border-bottom: 1px solid #e6eaee; } .day-stat-grid > div:nth-child(2n) { border-right: 0; } .day-stat-grid > div:nth-last-child(-n+2) { border-bottom: 0; } .day-stat-grid > div:first-child { padding-left: 8px; } .elevation-profile svg { height: 120px; } }
.empty-state span { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 50%; background: #eaf0e5; color: #496b4d; font-size: 1.4rem; }
.trip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.trip-card { display: grid; grid-template-columns: 6rem 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem 1.35rem; border: 1px solid #d9e1d7; border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease; }
.trip-card:hover { border-color: #a9bac6; box-shadow: 0 3px 10px #162c3b0d; }
.trip-date, .trip-card span:last-child { color: #617067; font-size: .88rem; }
.trip-card strong { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 500; }
.form-page { display: grid; min-height: 100vh; place-items: center; padding: 2rem; }
.form-shell { width: min(680px, 100%); }
.back-link { display: inline-block; margin-bottom: 3rem; color: #52675a; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.form-title { margin: .6rem 0 .8rem; font-family: Georgia, serif; font-size: clamp(2.6rem, 8vw, 5.2rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.form-intro { max-width: 520px; margin-bottom: 2rem; color: #617067; font-size: 1.05rem; line-height: 1.6; }
.upload-form { display: grid; gap: .7rem; padding: 1.5rem; border: 1px solid #d9e1d7; border-radius: 16px; background: #fff; }
.upload-form label { margin-top: .4rem; font-size: .92rem; font-weight: 650; }
.upload-form input[type=text], .upload-form input[type=file] { width: 100%; padding: .95rem; border: 1px solid #ccd6cb; border-radius: 9px; background: #fcfdfb; color: #23352d; font: inherit; }
.upload-form input[type=file] { padding: .8rem; }
.field-hint { margin: 0 0 .75rem; color: #6b786e; font-size: .82rem; line-height: 1.5; }
.form-error { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid #efc3b5; border-radius: 10px; background: #fff2ec; color: #783f2e; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: .75rem; margin: 2rem 0; }
.stat { min-height: 100px; display: flex; flex-direction: column; justify-content: center; gap: .25rem; padding: 1rem; border: 1px solid #d9e1d7; border-radius: 12px; background: #fff; }
.stat strong { font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.stat span { color: #617067; font-size: .85rem; }
.result-shell > .button { margin-top: .5rem; }
.trip-detail-page { min-height: 100vh; background: #f3f5f7; color: #26333e; }
.trip-detail-shell { width: min(1280px, 100%); margin: 0 auto; padding: 0 28px 56px; }
.trip-heading { padding: 25px 0 18px; }
.trip-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 19px 0 20px; }
.detail-eyebrow { margin: 0 0 5px; color: #77848e; font-size: .76rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.trip-title-row h1 { margin: 0; color: #243541; font-family: "Segoe UI", sans-serif; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.2; }
.trip-title-block { min-width: 0; }
.trip-title-row { align-items: center; }
.trip-title-block { flex: 1 1 auto; }
.trip-title-display, .trip-title-edit { display: flex; align-items: center; flex-wrap: nowrap; gap: 12px; }
.trip-title-display[hidden], .trip-title-edit[hidden], .trip-title-edit-toggle[hidden] { display: none !important; }
.trip-title-edit-toggle, .trip-title-edit-cancel { padding: 0; border: 0; background: none; color: #315f82; font: inherit; font-size: .84rem; text-decoration: underline; cursor: pointer; }
.trip-title-edit { gap: 10px; }
.trip-title-edit input { width: min(520px, 42vw); min-width: 180px; min-height: 44px; padding: .35rem .55rem; border: 1px solid #9eafb9; border-radius: 5px; color: #243541; font: 650 clamp(1.7rem, 4vw, 2.3rem)/1.2 "Segoe UI", sans-serif; letter-spacing: -.025em; }
.trip-title-edit .button { min-height: 38px; margin: 0; padding: .5rem .8rem; white-space: nowrap; }
.trip-title-edit-cancel { white-space: nowrap; }
.trip-title-notice { margin: 8px 0 0; color: #315f4a; font-size: .84rem; }
.trip-title-row .button { min-height: 40px; border-radius: 5px; padding: .65rem 1rem; font-size: .86rem; }
.summary-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid #dce2e7; border-radius: 7px; background: #fff; }
.summary-item { min-height: 74px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 16px; border-right: 1px solid #e7ebef; }
.summary-item:last-child { border-right: 0; }
.summary-item span { color: #77848e; font-size: .76rem; }
.summary-item strong { color: #304452; font-size: .95rem; font-weight: 650; }
.detail-panel { margin-top: 18px; padding: 20px; border: 1px solid #dce2e7; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px #162c3b08; }
.map-panel { scroll-margin-top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 15px; }
.section-heading h2 { margin: 0 0 4px; color: #263743; font-size: 1rem; font-weight: 650; }
.section-heading p { margin: 0; color: #74808a; font-size: .82rem; }
.map-legend { display: flex; align-items: center; gap: 7px; color: #6c7983; font-size: .75rem; white-space: nowrap; }
.map-legend i { width: 9px; height: 9px; display: inline-block; margin-left: 5px; border-radius: 50%; }
.map-legend .legend-route { width: 15px; height: 3px; border-radius: 2px; background: #548153; }
.map-legend .legend-photo { background: #315f82; }
.map-legend .legend-video { background: #ba653e; }
.trip-map { z-index: 0; height: min(72vh, 760px); min-height: 480px; border: 1px solid #dce2e7; border-radius: 5px; background: #edf1f3; }
.map-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 16px; align-items: stretch; }
.map-workspace.is-empty { grid-template-columns: minmax(0, 1fr); }
.map-workspace.is-empty .map-preview { display: none; }
.map-column { min-width: 0; }
.map-preview { height: min(72vh, 760px); min-height: 480px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dce2e7; border-radius: 5px; background: #f5f7f8; }
.map-preview-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; color: #77848e; text-align: center; }
.map-preview-empty[hidden] { display: none; }
.map-preview-empty span { color: #9aa7b0; font-size: 2rem; }
.map-preview-empty p { max-width: 210px; margin: 0; font-size: .84rem; line-height: 1.5; }
.map-preview-image-link { min-width: 0; min-height: 0; height: 0; flex: 1 1 auto; display: grid; place-items: center; overflow: hidden; background: #e8edf0; }
.map-preview-image-link[hidden], .map-preview-caption[hidden] { display: none; }
.map-preview-image-link img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.map-preview-caption { display: block; margin: 5px 0 0; text-align: right; color: #66747e; font-size: .72rem; }
.map-preview-caption a { color: #315f82; font-weight: 600; text-decoration: none; }
.map-preview-caption a:hover { text-decoration: underline; }
.map-status { margin: 9px 0 0; color: #77848e; font-size: .78rem; }
.map-credit { margin: 5px 0 0; text-align: right; font-size: .72rem; }
.map-credit a { color: #71808b; }
.map-workspace-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 16px; align-items: baseline; }
.map-workspace-footer.is-empty { grid-template-columns: minmax(0, 1fr); }
.map-workspace-footer p { margin-top: 5px; }
.day-view-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 20px 0 12px; }
.day-view-toggle { display: inline-flex; align-items: center; gap: 9px; color: #344754; font-size: .88rem; font-weight: 650; cursor: pointer; }
.day-view-toggle input { width: 17px; height: 17px; margin: 0; accent-color: #315f82; }
.day-selector { display: flex; flex-wrap: wrap; gap: 7px; }
.day-selector[hidden] { display: none; }
.day-selector-button { padding: 6px 12px; border: 1px solid #cbd5dc; border-radius: 4px; background: #fff; color: #52636e; font: inherit; font-size: .78rem; cursor: pointer; }
.day-selector-button:hover { border-color: #7994a7; color: #315f82; }
.day-selector-button.is-active { border-color: #315f82; background: #315f82; color: #fff; }
.day-summary-panel { margin: 0 0 16px; padding: 15px 18px 12px; border: 1px solid #dce2e7; border-radius: 7px; background: #fff; }
.day-summary-heading { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.day-summary-heading h2 { margin: 0; color: #344754; font-size: .95rem; }
.day-summary-heading span { color: #77848e; font-size: .78rem; }
.day-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #e6eaee; border-bottom: 1px solid #e6eaee; }
.day-stat-grid > div { display: grid; gap: 3px; padding: 9px 12px; border-right: 1px solid #e6eaee; }
.day-stat-grid > div:first-child { padding-left: 0; }
.day-stat-grid > div:last-child { border-right: 0; }
.day-stat-grid span { color: #78858e; font-size: .72rem; }
.day-stat-grid strong { color: #293b47; font-size: .9rem; font-weight: 650; }
.elevation-profile { margin: 12px 0 0; }
.elevation-profile[hidden] { display: none; }
.elevation-profile figcaption { margin-bottom: 5px; color: #596975; font-size: .76rem; font-weight: 600; }
.elevation-profile svg { display: block; width: 100%; height: 150px; overflow: visible; }
.elevation-profile svg[hidden] { display: none; }
.profile-gridline { stroke: #e8edf0; stroke-width: 1; }
.profile-line { fill: none; stroke: #315f82; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.profile-axis-label { fill: #81909a; font-size: 11px; }
.elevation-profile > p { margin: 6px 0; color: #78858e; font-size: .78rem; }
.elevation-profile > p[hidden] { display: none; }
.profile-axis { display: flex; justify-content: space-between; color: #85919a; font-size: .68rem; }
.gallery-day-list { display: grid; gap: 24px; }
.gallery-day-section { min-width: 0; }
.gallery-day-section h3 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid #e3e8ec; color: #344754; font-size: .94rem; font-weight: 650; }
.gallery-day-empty { margin: 0; color: #77848e; font-size: .82rem; }
.photo-viewer { position: fixed; width: min(1200px, 96vw); max-width: none; height: min(900px, 94vh); max-height: none; padding: 48px 64px 24px; overflow: hidden; border: 0; border-radius: 8px; background: #111820; color: #fff; }
.photo-viewer::backdrop { background: rgb(8 14 19 / 88%); }
.photo-viewer-figure { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin: 0; }
.photo-viewer-figure img, .photo-viewer-figure video { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-viewer-figure [hidden] { display: none; }
.photo-viewer-figure figcaption { flex: 0 0 auto; color: #d3dce2; font-size: .85rem; text-align: center; }
.photo-viewer-content { width: 100%; height: 100%; display: flex; align-items: stretch; gap: 14px; }
.photo-viewer-content .photo-viewer-figure { flex: 1 1 0; min-width: 0; }
.photo-viewer-map-panel { flex: 0 0 42%; min-width: 280px; min-height: 0; overflow: hidden; border: 1px solid rgb(255 255 255 / 25%); border-radius: 7px; background: #e9eef0; }
.photo-viewer-map-panel[hidden] { display: none; }
.photo-viewer-map { width: 100%; height: 100%; min-height: 0; }
.photo-viewer-map-toggle { position: absolute; top: 12px; right: 68px; z-index: 1000; min-height: 42px; padding: .55rem .85rem; border: 1px solid rgb(255 255 255 / 35%); border-radius: 7px; background: rgb(18 29 38 / 92%); color: #fff; font: inherit; font-size: .85rem; cursor: pointer; }
.photo-viewer-map-toggle[hidden] { display: none; }
.photo-viewer-map-toggle:hover { background: #315f82; }
.photo-viewer.has-map .photo-viewer-next { right: calc(42% + 72px); }
.photo-viewer-close, .photo-viewer-nav { position: absolute; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; background: rgb(18 29 38 / 85%); color: white; cursor: pointer; }
.photo-viewer-close { top: 12px; right: 14px; width: 42px; height: 42px; font-size: 1.8rem; }
.photo-viewer-nav { top: 50%; width: 48px; height: 58px; transform: translateY(-50%); border-radius: 8px; font-size: 2.2rem; line-height: 1; }
.photo-viewer-prev { left: 10px; }
.photo-viewer-next { right: 10px; }
.photo-viewer-close:hover, .photo-viewer-nav:hover { background: #315f82; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid #dce2e7; border-radius: 6px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.media-card:hover { border-color: #a9bac6; }
.media-card.is-selected { border-color: #527d9c; box-shadow: 0 0 0 3px #527d9c22; }
.media-visual { height: 205px; display: grid; place-items: center; overflow: hidden; background: #edf1f3; }
.photo-link { width: 100%; height: 100%; display: grid; place-items: center; }
.photo-link img, .media-visual video { width: 100%; height: 100%; object-fit: cover; }
.media-visual video { background: #111; }
.media-placeholder { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #87949d; font-size: .78rem; }
.media-placeholder span:first-child { font-size: 1.5rem; }
.media-caption { display: grid; gap: 7px; padding: 11px 12px 12px; color: #63717c; font-size: .76rem; }
.media-caption > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.media-caption time { overflow: hidden; color: #3d4b56; font-size: .78rem; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.media-meta-row form { flex: 0 0 auto; margin-left: auto; }
.delete-photo { width: 28px; height: 28px; display: grid; place-items: center; padding: 5px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #8b5650; cursor: pointer; }
.delete-photo svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.delete-photo:hover { border-color: #e0c4c0; background: #fbf1ef; color: #a33f33; }
.delete-photo:focus-visible { outline: 2px solid #315f82; outline-offset: 2px; }
.media-kind { padding: 3px 6px; border-radius: 3px; background: #e9f0f5; color: #395d78; font-size: .69rem; font-weight: 650; }
.media-kind.kind-video { background: #f7ece6; color: #995633; }
.map-focus { justify-self: start; padding: 0; border: 0; background: transparent; color: #416f8d; font: inherit; font-size: .75rem; cursor: pointer; }
.map-focus:disabled { color: #8b969d; cursor: default; }
.gallery-empty { padding: 34px 12px; border: 1px dashed #cbd5dc; border-radius: 5px; color: #77848e; text-align: center; font-size: .88rem; }
.map-popup { width: 170px; }
.map-popup-preview { width: 100%; height: 98px; display: grid; place-items: center; overflow: hidden; padding: 0; border: 0; border-radius: 3px; background: #eef1f3; color: #415562; cursor: pointer; }
.map-popup-preview img { width: 100%; height: 100%; object-fit: cover; }
.map-popup-caption { display: flex; justify-content: space-between; gap: 8px; padding-top: 7px; color: #6f7c86; font-size: .72rem; }
.map-popup-caption strong { color: #364a58; }
.settings-page { min-height: 100vh; padding: 0; background: #f3f5f7; color: #26333e; }
.settings-shell { width: min(1060px, 100%); margin: 0 auto; padding: 0 32px 56px; }
.app-header { min-height: 68px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-bottom: 1px solid #dce2e7; }
.app-header .brand { color: #253644; font-family: "Segoe UI", sans-serif; font-size: 1rem; font-weight: 650; }
.header-context { justify-self: center; color: #697783; font-size: .84rem; }
.header-back { justify-self: end; color: #526576; font-size: .86rem; text-decoration: none; }
.header-back:hover, .breadcrumbs a:hover { text-decoration: underline; }
.page-heading { padding: 34px 0 25px; }
.breadcrumbs { display: flex; gap: .55rem; align-items: center; color: #788590; font-size: .8rem; }
.breadcrumbs a { color: #526576; text-decoration: none; }
.page-heading h1 { margin: 18px 0 6px; color: #243541; font-family: "Segoe UI", sans-serif; font-size: 1.8rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.page-heading > p { margin: 0; color: #687783; font-size: .92rem; }
.settings-form { display: grid; gap: 16px; }
.settings-panel { padding: 22px 24px 24px; border: 1px solid #dce2e7; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px #162c3b08; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid #e7ebef; }
.panel-heading h2 { margin: 0 0 5px; color: #263743; font-size: 1rem; font-weight: 650; }
.panel-heading p { margin: 0; color: #74808a; font-size: .84rem; }
.panel-number { color: #87939d; font-size: .78rem; font-variant-numeric: tabular-nums; }
.settings-fields { width: min(640px, 100%); display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 10px 16px; padding-top: 20px; }
.settings-fields > label { color: #3d4b56; font-size: .88rem; font-weight: 600; }
.required-mark { color: #bc4d43; }
.settings-fields input[type=text] { min-height: 40px; width: 100%; padding: .6rem .75rem; border: 1px solid #bec9d1; border-radius: 5px; color: #26333e; background: #fff; font: inherit; font-size: .9rem; }
.settings-fields input[type=text]:focus-visible { outline: 3px solid #8bb3d533; border-color: #527d9c; }
.settings-fields .field-hint { grid-column: 2; margin: -4px 0 0; color: #7a8791; font-size: .78rem; }
.file-picker { position: relative; min-height: 126px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; overflow: hidden; border: 1px dashed #9cabb6; border-radius: 6px; background: #fafbfd; text-align: center; }
.file-picker:focus-within { outline: 3px solid #8bb3d533; border-color: #527d9c; }
.file-picker input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-picker-icon { color: #526f83; font-size: 1.4rem; line-height: 1.2; }
.file-picker-title { color: #344957; font-size: .9rem; font-weight: 600; }
.file-picker-types { color: #7b8892; font-size: .76rem; }
.file-selection { grid-column: 2; margin: 0; color: #465c6b; font-size: .82rem; font-weight: 600; }
.form-actions { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; color: #76838d; font-size: .78rem; }
.form-actions > div { display: flex; gap: 8px; }
.form-actions .button { min-height: 39px; border-radius: 5px; padding: .65rem 1rem; font-size: .86rem; }
.form-actions button:disabled { opacity: .62; cursor: wait; transform: none; }
.button-cancel { color: #44535e; background: #fff; border: 1px solid #c8d1d8; }
.settings-page .form-error { margin: 0; border-radius: 6px; }
.import-progress { padding: 18px 20px; border: 1px solid #dce2e7; border-radius: 8px; background: #fff; }
.import-progress[hidden] { display: none; }
.progress-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 10px; color: #344957; font-size: .86rem; }
.progress-meta { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; color: #687783; }
.progress-file { max-width: min(55vw, 700px); overflow: hidden; color: #526573; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.progress-meta > span:last-child { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.progress-file[hidden] { display: none; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e7edf1; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: #527d9c; transition: width .16s ease; }
.progress-track.is-indeterminate .progress-fill { width: 34% !important; animation: progress-slide 1.2s ease-in-out infinite alternate; }
.progress-track.has-error .progress-fill { background: #b94e44; animation: none; }
.import-progress > p { margin: 9px 0 0; color: #788590; font-size: .78rem; }
@keyframes progress-slide { from { transform: translateX(-10%); } to { transform: translateX(210%); } }
@media (max-width: 700px) { .page { padding: 12px; } .topbar { padding: 0 4px 12px; } .hero { min-height: 68vh; border-radius: 14px; } .hero-image { object-position: 59% center; } .hero-shade { background: linear-gradient(90deg, rgb(11 27 19 / 66%), rgb(11 27 19 / 10%)), linear-gradient(0deg, rgb(11 27 19 / 42%), transparent 35%); } .hero-copy { padding: 2rem 1.6rem; } .photo-credit { right: 14px; bottom: 12px; } .archive { grid-template-columns: 1fr; gap: 1rem; padding: 2.5rem .5rem; } .archive-map { height: 280px; } .trip-card { grid-template-columns: 1fr auto; gap: .4rem .8rem; } .trip-date { grid-column: 1 / -1; } .trip-card span:last-child { grid-column: 1 / -1; } .form-page { padding: 1.25rem; } .back-link { margin-bottom: 2rem; } .upload-form { padding: 1rem; } }
@media (max-width: 700px) { .archive-map-wrap { grid-template-columns: minmax(0, 1fr); } .archive-map-caption { margin-bottom: 0; } }
@media (max-width: 700px) { .settings-shell { padding: 0 16px 36px; } .app-header { grid-template-columns: 1fr auto; min-height: 58px; } .header-context { display: none; } .page-heading { padding: 26px 0 20px; } .settings-panel { padding: 18px 16px; } .settings-fields { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; } .settings-fields .field-hint, .file-selection { grid-column: 1; margin-top: 0; } .form-actions { align-items: flex-start; gap: 14px; flex-direction: column; } .form-actions > div { width: 100%; justify-content: flex-end; } }
@media (max-width: 700px) { .trip-detail-shell { padding: 0 14px 36px; } .trip-heading { padding-top: 18px; } .trip-title-row { align-items: flex-start; flex-direction: column; margin: 15px 0; } .trip-title-display, .trip-title-edit { flex-wrap: wrap; } .trip-title-edit input { width: min(100%, 420px); } .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .summary-item { min-height: 64px; border-bottom: 1px solid #e7ebef; } .summary-item:nth-child(2n) { border-right: 0; } .summary-item:last-child { border-bottom: 0; } .detail-panel { padding: 15px 12px; } .section-heading { align-items: flex-start; flex-direction: column; } .map-legend { flex-wrap: wrap; } .map-workspace { grid-template-columns: 1fr; gap: 10px; } .map-workspace-footer { grid-template-columns: 1fr; gap: 0; } .trip-map { min-height: 360px; height: 60vh; } .map-preview { height: 60vh; min-height: 360px; } .map-preview-image-link img { max-height: 100%; } .media-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 9px; } .media-visual { height: 160px; } }
.empty-state p { margin: 0; }

.topbar-actions,
.trip-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions form,
.trip-actions form { margin: 0; }
.access-user { border-top: 1px solid #dce3e8; padding-top: 20px; margin-top: 20px; }
.access-user h3 { margin: 0; font-size: 1.05rem; }
.access-trip-list { display: grid; gap: 10px; }
.access-trip-list label { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.access-trip-list input { width: auto; }
.admin-trip-list { list-style: none; margin: 0; padding: 0; }
.admin-trip-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #dce3e8; padding: 12px 0; }
.button-danger { color: #9a3428; border-color: #e5c2bd; }
@media (max-width: 680px) {
  .topbar-actions, .trip-actions { flex-wrap: wrap; justify-content: flex-end; }
}
.topbar { justify-content: flex-end; }
.login-entry { min-height: 42px; gap: 8px; padding-inline: 20px; border-radius: 999px; font-weight: 650; }
.login-entry span { color: #56765f; font-size: 1.1em; transition: transform .16s ease; }
.login-entry:hover span { transform: translateX(3px); }
.password-field { position: relative; width: 100%; }
.password-field input { width: 100%; min-height: 46px; padding: 10px 50px 10px 13px; border: 1px solid #bec9d1; border-radius: 6px; color: #26333e; background: #fff; font: inherit; font-size: .95rem; }
.password-field input:focus-visible { outline: 3px solid #8bb3d533; border-color: #527d9c; }
.password-toggle { position: absolute; top: 50%; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; padding: 5px; transform: translateY(-50%); border: 0; border-radius: 5px; background: transparent; color: #667782; cursor: pointer; }
.password-toggle:hover { background: #eef3f5; color: #315f82; }
.password-toggle:focus-visible { outline: 2px solid #527d9c; outline-offset: 1px; }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle svg[hidden] { display: none; }
.login-back { color: #526576; font-size: .86rem; text-decoration: none; }
.login-back:hover { text-decoration: underline; }
.admin-breadcrumb-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-breadcrumb-row form { margin: 0; }
.admin-logout { padding: 0; border: 0; background: transparent; color: #526576; font: inherit; font-size: .86rem; cursor: pointer; }
.admin-logout:hover { text-decoration: underline; }
.admin-logout:focus-visible { outline: 2px solid #527d9c; outline-offset: 3px; border-radius: 2px; }
.auth-page { min-height: 100svh; color: #26332a; background: #18241c; }
.auth-stage { min-height: 100svh; position: relative; isolation: isolate; display: grid; place-items: center; padding: 36px 20px 56px; overflow: hidden; }
.auth-stage::before,
.auth-stage::after { position: absolute; inset: 0; z-index: -1; content: ""; }
.auth-stage::before { background: linear-gradient(115deg, rgb(12 23 16 / 78%), rgb(21 35 24 / 42%) 56%, rgb(14 24 17 / 58%)), url("/static/images/start-ride.jpg") center 54% / cover no-repeat; transform: scale(1.015); }
.auth-stage::after { background: radial-gradient(ellipse at 50% 45%, transparent 20%, rgb(7 14 9 / 34%) 100%); }
.auth-card { width: min(100%, 460px); padding: 40px 42px 26px; border: 1px solid rgb(255 255 255 / 68%); border-radius: 20px; background: rgb(255 255 255 / 96%); box-shadow: 0 28px 90px rgb(0 0 0 / 28%); backdrop-filter: blur(14px); }
.auth-mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid #d9e5d8; border-radius: 14px; background: #f0f5ee; color: #416447; }
.auth-mark svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.auth-eyebrow { margin: 0 0 8px; color: #6a806b; font-size: .69rem; font-weight: 750; letter-spacing: .15em; }
.auth-card h1 { margin: 0; color: #23352a; font-family: Georgia, serif; font-size: clamp(2rem, 6vw, 2.45rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.12; }
.auth-intro { margin: 11px 0 26px; color: #718075; font-size: .94rem; line-height: 1.55; }
.auth-form { display: grid; gap: 9px; }
.auth-form > label { margin-top: 5px; color: #39483d; font-size: .81rem; font-weight: 650; }
.auth-form > input,
.auth-password-field input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #d5ddd4; border-radius: 8px; background: #fff; color: #26332a; font: inherit; font-size: .91rem; transition: border-color .15s ease, box-shadow .15s ease; }
.auth-password-field input { padding-right: 51px; }
.auth-form > input::placeholder,
.auth-password-field input::placeholder { color: #a0aaa1; }
.auth-form > input:focus,
.auth-password-field input:focus { outline: 0; border-color: #6a8b6d; box-shadow: 0 0 0 3px rgb(106 139 109 / 15%); }
.auth-password-field .password-toggle { right: 7px; width: 36px; height: 36px; color: #7b897d; }
.auth-password-field .password-toggle:hover { background: #f0f4ef; color: #416447; }
.auth-submit { min-height: 49px; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 0 17px; border: 0; border-radius: 8px; background: #31563a; color: #fff; font: inherit; font-size: .91rem; font-weight: 650; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.auth-submit:hover { transform: translateY(-1px); background: #24452d; }
.auth-submit span { font-size: 1.2rem; transition: transform .16s ease; }
.auth-submit:hover span { transform: translateX(3px); }
.auth-error { margin: -9px 0 18px; padding: 11px 13px; border: 1px solid #efd0c4; border-radius: 8px; background: #fff5f0; color: #8b4c37; font-size: .84rem; line-height: 1.4; }
.auth-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 23px; padding-top: 17px; border-top: 1px solid #edf0eb; }
.auth-card-footer a { color: #66776a; font-size: .77rem; text-decoration: none; }
.auth-card-footer a:hover { color: #31563a; text-decoration: underline; }
.auth-card-footer > span { display: flex; align-items: center; gap: 5px; color: #849085; font-size: .71rem; white-space: nowrap; }
.auth-card-footer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.auth-caption { position: absolute; bottom: 15px; left: 20px; right: 20px; margin: 0; color: rgb(255 255 255 / 78%); font-family: Georgia, serif; font-size: .92rem; font-style: italic; text-align: center; text-shadow: 0 1px 10px rgb(0 0 0 / 50%); }
@media (max-width: 540px) { .auth-stage { padding: 20px 14px 50px; } .auth-card { padding: 30px 24px 22px; border-radius: 17px; } .auth-card-footer { align-items: flex-start; flex-direction: column; } }
.home-image-settings { display: grid; grid-template-columns: minmax(220px, 380px) minmax(260px, 1fr); align-items: center; gap: 24px; padding-top: 20px; }
.home-image-preview { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #dce3e8; border-radius: 7px; background: #edf1ed; }
.home-image-preview-wrap { min-width: 0; margin: 0; }
.home-image-preview-wrap figcaption { margin-top: 7px; color: #74808a; font-size: .76rem; line-height: 1.4; }
.home-image-form { display: grid; justify-items: start; gap: 11px; }
.home-image-form label { color: #3d4b56; font-size: .88rem; font-weight: 650; }
.home-image-form input[type=file] { width: 100%; min-height: 42px; padding: 8px; border: 1px solid #c8d1d8; border-radius: 5px; background: #fbfcfd; color: #52616b; font: inherit; font-size: .82rem; }
.home-image-form p { margin: 0 0 4px; color: #7a8791; font-size: .78rem; line-height: 1.5; }
.home-image-form .button { min-height: 40px; border-radius: 5px; padding: .65rem 1rem; font-size: .86rem; }
.image-success { margin-top: 16px; padding: 10px 13px; border: 1px solid #c6ddc7; border-radius: 6px; background: #f1f8f0; color: #39613d; font-size: .84rem; }
.image-error { margin: 16px 0 0 !important; }
@media (max-width: 700px) { .home-image-settings { grid-template-columns: 1fr; gap: 17px; } .home-image-preview { max-width: 480px; } }
@media (max-width: 700px) { .photo-viewer.has-map .photo-viewer-content { flex-direction: column; gap: 8px; } .photo-viewer.has-map .photo-viewer-figure { flex: 1 1 0; min-height: 0; } .photo-viewer.has-map .photo-viewer-map-panel { flex: 0 0 40%; width: 100%; min-width: 0; min-height: 150px; } .photo-viewer.has-map .photo-viewer-next { right: 4px; } .photo-viewer-map-toggle { right: 58px; min-height: 38px; padding: .45rem .6rem; } }
