:root {
  --ink: #1d2825;
  --muted: #66736f;
  --forest: #18352f;
  --forest-2: #244940;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --line: #dce1db;
  --terra: #d96f44;
  --terra-dark: #b85431;
  --sage: #b8cbbf;
  --success: #276749;
  --danger: #a83d32;
  --shadow: 0 18px 50px rgba(25, 42, 36, .09);
  --radius: 18px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f7f8f4; font-family: var(--sans); line-height: 1.55; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topbar { position: sticky; z-index: 1000; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; padding: 0 4vw; color: white; background: rgba(24, 53, 47, .97); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; width: fit-content; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: var(--cream); font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: -.08em; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-family: var(--serif); font-size: 20px; letter-spacing: .01em; }
.brand small { margin-top: 4px; color: #b9ccc5; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { position: relative; padding: 27px 0 24px; color: #cedbd6; font-size: 14px; font-weight: 650; }
.main-nav a:hover, .main-nav a[aria-current='page'] { color: white; }
.main-nav a[aria-current='page']::after { position: absolute; right: 0; bottom: 16px; left: 0; height: 2px; content: ''; background: var(--terra); }
.logout { justify-self: end; margin: 0; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: white; background: #3f6258; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-weight: 750; cursor: pointer; }
.avatar.large { flex: 0 0 auto; width: 48px; height: 48px; background: var(--forest); }
.nav-toggle { display: none; }

.page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 90px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.page-head h1, .journal-head h1, .trip-hero h1 { margin: 4px 0 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 62px); line-height: 1.03; letter-spacing: -.035em; }
.page-head p, .trip-hero p { max-width: 690px; margin: 0; color: var(--muted); }
.compact-head { margin-bottom: 26px; }
.compact-head h1 { font-size: clamp(34px, 4vw, 48px); }
.eyebrow { display: block; margin-bottom: 6px; color: var(--terra-dark); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.back-link { display: block; width: fit-content; margin-bottom: 24px; color: var(--muted); font-size: 14px; font-weight: 650; }
.back-link:hover { color: var(--terra-dark); }
.back-link.light { color: rgba(255,255,255,.72); }
.muted { color: var(--muted); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; padding: 0 19px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 750; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--terra); box-shadow: 0 8px 20px rgba(217,111,68,.22); }
.button-primary:hover { background: var(--terra-dark); }
.button-secondary { color: white; background: var(--forest); }
.button-secondary:hover { background: var(--forest-2); }
.button-ghost { color: var(--forest); background: transparent; border-color: var(--line); }
.button-light { color: var(--forest); background: var(--cream); }
.button-wide { width: 100%; }
.button-small { min-height: 36px; padding: 0 13px; font-size: 12px; }
.text-link { color: var(--terra-dark); font-size: 14px; font-weight: 750; }

.flash { position: fixed; z-index: 2000; top: 88px; right: 24px; max-width: min(420px, calc(100% - 48px)); padding: 13px 18px; color: white; background: var(--forest); border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; animation: slide-in .25s ease both; }
.flash-error { background: var(--danger); }
.flash-success { background: var(--success); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } }

.stat-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 16px; margin-bottom: 58px; }
.stat-card { min-height: 166px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-card span, .stat-card small { display: block; color: var(--muted); font-size: 12px; }
.stat-card span { font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.stat-card strong { display: block; margin: 18px 0 3px; font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -.04em; }
.stat-card.stat-feature { color: white; background: var(--forest); border-color: var(--forest); }
.stat-card.stat-feature span, .stat-card.stat-feature small { color: #b9ccc5; }
.three-stats { grid-template-columns: 1.3fr 1fr 1fr; }
.section-block { margin-top: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: 31px; font-weight: 500; letter-spacing: -.025em; }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.story-card { position: relative; padding: 27px 28px 24px 88px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease; }
.story-card:hover, .trip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.story-day { position: absolute; top: 28px; left: 25px; color: var(--terra-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.story-date { color: var(--muted); font-size: 12px; }
.story-card h3 { margin: 8px 0; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.story-card h3 span { color: var(--terra); }
.story-card p { display: -webkit-box; overflow: hidden; margin: 0 0 15px; color: #495652; font-family: var(--serif); font-size: 15px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.story-card small { color: var(--muted); font-size: 11px; font-weight: 700; }
.empty-state { display: grid; justify-items: center; padding: 70px 24px; text-align: center; background: var(--paper); border: 1px dashed #bdc9c2; border-radius: var(--radius); }
.empty-state > span { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px; color: var(--terra-dark); background: #f7e9e1; border-radius: 50%; font-family: var(--serif); font-size: 28px; }
.empty-state h2, .empty-state h3, .empty-state h1 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 30px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }

.trip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.trip-card { display: grid; grid-template-columns: 190px 1fr; min-height: 260px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease; }
.trip-art { position: relative; display: grid; place-items: center; overflow: hidden; color: white; background: linear-gradient(150deg, #4d7066, var(--forest)); }
.trip-art::before, .trip-art::after { position: absolute; width: 220px; height: 80px; content: ''; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; transform: rotate(-24deg); }
.trip-art::after { width: 260px; height: 120px; transform: translateY(40px) rotate(-24deg); }
.trip-art span { z-index: 1; font-family: var(--serif); font-size: 52px; font-style: italic; }
.trip-art i { position: absolute; right: 24px; bottom: 28px; left: 24px; height: 2px; background: var(--terra); transform: rotate(-14deg); }
.trip-card-body { display: flex; flex-direction: column; padding: 29px; }
.trip-card h2 { margin: 4px 0 10px; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.05; }
.trip-card p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.trip-meta { display: flex; gap: 20px; margin-top: auto; padding-top: 18px; color: var(--forest); border-top: 1px solid var(--line); font-size: 12px; font-weight: 750; }

.trip-hero, .journal-head { position: relative; width: calc(100% + 14vw); margin: -58px -7vw 52px; padding: 58px max(7vw, calc((100vw - 1180px) / 2 + 7vw)) 48px; color: white; background: var(--forest); overflow: hidden; }
.trip-hero::after, .journal-head::after { position: absolute; right: -10vw; bottom: -180px; width: 50vw; height: 300px; content: ''; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; transform: rotate(-12deg); }
.trip-hero .eyebrow, .journal-head .eyebrow { color: #dca687; }
.trip-hero p { color: #c6d2ce; font-family: var(--serif); font-size: 18px; }
.hero-meta { display: flex; gap: 30px; margin-top: 30px; color: #c6d2ce; font-size: 13px; font-weight: 650; }
.timeline { position: relative; }
.timeline::before { position: absolute; top: 34px; bottom: 34px; left: 30px; width: 1px; content: ''; background: #cdd6d0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 22px; margin-bottom: 14px; }
.timeline-number { z-index: 1; display: grid; place-items: start center; padding-top: 24px; }
.timeline-number span { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--forest); border: 6px solid #f7f8f4; border-radius: 50%; font-family: var(--serif); font-weight: 700; }
.timeline-content { padding: 23px 27px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; transition: border-color .18s ease, transform .18s ease; }
.timeline-item:hover .timeline-content { border-color: #a8b8af; transform: translateX(3px); }
.timeline-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }
.timeline-content h3 { margin: 6px 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.timeline-content h3 i { color: var(--terra); font-style: normal; }
.timeline-content p { margin: 0 0 11px; color: var(--muted); font-family: var(--serif); font-size: 15px; }
.badges { display: flex; gap: 8px; }
.badges span { padding: 3px 8px; color: #50655d; background: #eef2ee; border-radius: 999px; font-size: 10px; font-weight: 750; }

.editor-card { padding: 30px; margin-bottom: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.editor-section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.editor-section-head > span { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; color: var(--terra-dark); background: #f7e9e1; border-radius: 50%; font-family: var(--serif); font-size: 13px; font-weight: 700; }
.editor-section-head h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.editor-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; gap: 19px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: .6fr .9fr 1.3fr 1.3fr; }
.form-grid.compact { gap: 12px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
label { display: grid; gap: 7px; color: #35443f; font-size: 12px; font-weight: 750; }
label small { color: var(--muted); font-weight: 500; }
input, textarea, select { width: 100%; color: var(--ink); background: #fbfcf8; border: 1px solid #ccd5cf; border-radius: 9px; outline: none; }
input, select { min-height: 45px; padding: 0 12px; }
textarea { padding: 12px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36,73,64,.1); }
.story-input { min-height: 330px; color: #28342f; background: #fffefa; font-family: var(--serif); font-size: 18px; line-height: 1.75; }
.field-note { align-self: end; padding: 10px 12px; color: var(--muted); background: #eef2ee; border-radius: 8px; font-size: 11px; }
.editor-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 20px 4px; }
.check-label { display: flex; align-items: center; gap: 10px; }
.check-label input { width: 18px; min-height: 18px; accent-color: var(--forest); }
.upload-box { display: grid; justify-items: center; padding: 28px; border: 1px dashed #aab8b0; border-radius: 12px; cursor: pointer; }
.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-box span { color: var(--terra-dark); font-weight: 800; }
.upload-box small { margin-top: 4px; }
.photo-strip { display: flex; gap: 9px; margin-bottom: 14px; overflow-x: auto; }
.photo-strip img { width: 100px; height: 76px; object-fit: cover; border-radius: 8px; }

.journal { margin-top: -58px; }
.journal-head { margin-top: 0; margin-bottom: 0; padding-top: 40px; padding-bottom: 52px; }
.journal-kicker { display: flex; gap: 14px; margin-top: 20px; color: #dca687; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.journal-kicker span + span::before { content: '·'; margin-right: 14px; }
.journal-head h1 { max-width: 920px; font-size: clamp(40px, 6vw, 72px); }
.journal-head h1 i { color: var(--terra); font-style: normal; }
.journal-head-actions { position: absolute; right: max(7vw, calc((100vw - 1180px) / 2 + 7vw)); bottom: 54px; z-index: 2; }
.journal-head-actions { display: flex; gap: 9px; }
.button-on-dark { color: white; border-color: rgba(255,255,255,.35); }
.journal-body { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 58px; padding-top: 54px; }
.journal-main > .eyebrow { margin-bottom: 22px; }
.prose { color: #2f3a36; font-family: var(--serif); font-size: clamp(18px, 2vw, 20px); line-height: 1.82; }
.prose::first-letter { float: left; margin: 9px 9px 0 0; color: var(--forest); font-family: var(--serif); font-size: 62px; line-height: .72; }
.journal-aside { display: grid; align-content: start; gap: 14px; }
.journal-aside section { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.journal-aside h3 { margin: 6px 0; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.journal-aside dl { margin: 16px 0 0; }
.journal-aside dl div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid #e8ebe6; }
.journal-aside dt { color: var(--muted); font-size: 12px; }
.journal-aside dd { margin: 0; font-size: 12px; font-weight: 750; }
.big-number { display: block; margin: 8px 0 3px; color: var(--forest); font-family: var(--serif); font-size: 52px; font-weight: 500; line-height: 1; }
.big-number small { font-size: 18px; }
.coordinates { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.gps-card { background: #edf3ef !important; }
.gps-card p { color: var(--muted); font-size: 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 42px 0; }
.photo-grid figure { margin: 0; }
.photo-grid .photo-feature { grid-column: span 2; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.photo-grid .photo-feature img { aspect-ratio: 16 / 8; }
.photo-grid figcaption { margin-top: 6px; color: var(--muted); font-size: 11px; }
.map-section { margin-top: 54px; }
.route-map { height: 440px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.content-split { display: grid; grid-template-columns: 420px 1fr; gap: 42px; align-items: start; }
.log-list { display: grid; gap: 10px; }
.log-list article { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.log-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--terra-dark); background: #f7e9e1; border-radius: 50%; font-weight: 800; }
.log-list article span, .log-list article p { color: var(--muted); font-size: 11px; }
.log-list article h3, .log-list article p { margin: 0; }
.log-list article h3 { font-size: 14px; }
.log-list article > strong { color: var(--forest); font-family: var(--serif); font-size: 17px; white-space: nowrap; }
.empty-mini { padding: 28px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.users-split { grid-template-columns: 370px 1fr; }
.user-list { display: grid; gap: 10px; }
.user-card { display: flex; align-items: center; gap: 14px; padding: 17px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.user-card.inactive { opacity: .58; }
.user-card > div:nth-child(2) { flex: 1; }
.user-card h3, .user-card p { margin: 0; }
.user-card p, .user-card span { color: var(--muted); font-size: 11px; }
.user-card form { margin: 0; }
.share-result { display: grid; grid-template-columns: 1fr 1.35fr; gap: 26px; align-items: center; padding: 26px 30px; margin-bottom: 24px; color: white; background: var(--forest); border-radius: var(--radius); box-shadow: var(--shadow); }
.share-result .eyebrow { color: #dca687; }
.share-result h2 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.share-result p { margin: 4px 0 0; color: #bfd0ca; font-size: 12px; }
.share-url { display: flex; gap: 9px; }
.share-url input { min-width: 0; color: var(--forest); background: white; }
.share-list { display: grid; gap: 10px; }
.share-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 17px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.share-card.inactive { opacity: .58; }
.share-card h3, .share-card p { margin: 0; }
.share-card p, .share-card span { color: var(--muted); font-size: 11px; }
.share-card form { margin: 0; }
.share-status { display: grid; place-items: center; width: 40px; height: 40px; color: white; background: var(--forest); border-radius: 50%; font-size: 18px; }
.share-card.inactive .share-status { background: var(--muted); }
.guest-topbar { grid-template-columns: 1fr auto; }
.guest-label { color: #b9ccc5; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.guest-unlock { width: min(520px, 100%); margin: 8vh auto 0; padding: 42px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.guest-unlock h1 { margin: 4px 0 12px; font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; }
.guest-unlock > p { margin: 0 0 28px; color: var(--muted); }
.guest-trip-hero { margin-bottom: 48px; }
.guest-journal-list { margin-top: 0; }

.auth-shell { min-height: 100vh; background: #e9ece5; }
.auth-page { display: grid; min-height: 100vh; place-items: center; padding: 28px; }
.login-card { display: grid; grid-template-columns: 1.08fr .92fr; width: min(940px, 100%); min-height: 570px; overflow: hidden; background: var(--paper); border: 1px solid rgba(24,53,47,.15); border-radius: 24px; box-shadow: 0 30px 90px rgba(24,53,47,.18); }
.login-visual { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 52px; color: white; background: var(--forest); }
.login-visual::before { position: absolute; top: -100px; right: -170px; width: 470px; height: 470px; content: ''; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.login-visual::after { position: absolute; top: 0; right: 30px; width: 1px; height: 100%; content: ''; background: rgba(255,255,255,.08); transform: rotate(28deg); }
.login-visual .eyebrow { position: absolute; top: 48px; color: #dca687; }
.login-emblem { position: absolute; top: 100px; right: 62px; color: rgba(255,255,255,.08); font-family: var(--serif); font-size: 150px; font-style: italic; font-weight: 700; letter-spacing: -.1em; }
.login-emblem span { color: rgba(217,111,68,.18); }
.login-visual h1 { z-index: 1; max-width: 380px; margin: 0 0 13px; font-family: var(--serif); font-size: 54px; font-weight: 500; line-height: .98; letter-spacing: -.04em; }
.login-visual p { z-index: 1; max-width: 390px; margin: 0; color: #bdcec8; }
.route-line { position: relative; z-index: 1; height: 30px; margin-top: 34px; border-top: 1px solid rgba(255,255,255,.3); }
.route-line i { position: absolute; top: -5px; width: 9px; height: 9px; background: var(--terra); border: 2px solid var(--forest); border-radius: 50%; }
.route-line i:nth-child(1) { left: 0; }.route-line i:nth-child(2) { left: 52%; }.route-line i:nth-child(3) { right: 0; }
.login-form-wrap { display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.login-form-wrap h2 { margin: 2px 0 0; font-family: var(--serif); font-size: 38px; font-weight: 500; }
.login-form-wrap > p { margin: 4px 0 29px; font-size: 13px; }
.stack-form { display: grid; gap: 17px; }
.stack-form .button { margin-top: 6px; }

.error-state { margin: 10vh auto 0; max-width: 660px; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto auto; padding: 0 20px; }
  .nav-toggle { display: grid; gap: 4px; width: 40px; height: 40px; padding: 10px; background: transparent; border: 0; }
  .nav-toggle span:not(.sr-only) { height: 2px; background: white; }
  .main-nav { position: absolute; top: 76px; right: 0; left: 0; display: none; padding: 12px 20px 20px; background: var(--forest); box-shadow: 0 16px 30px rgba(0,0,0,.18); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 11px; }
  .main-nav a[aria-current='page']::after { top: 8px; right: auto; bottom: 8px; left: 0; width: 2px; height: auto; }
  .logout { margin-left: 10px; }
  .stat-grid, .three-stats { grid-template-columns: repeat(2, 1fr); }
  .trip-grid { grid-template-columns: 1fr; }
  .journal-body { grid-template-columns: 1fr; gap: 35px; }
  .journal-aside { grid-template-columns: repeat(2, 1fr); }
  .editor-split, .content-split, .users-split { grid-template-columns: 1fr; }
  .form-grid.four { grid-template-columns: repeat(2, 1fr); }
  .journal-head-actions { position: relative; right: auto; bottom: auto; margin-top: 26px; }
  .share-result { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .page { width: min(100% - 28px, 1180px); padding-top: 36px; }
  .page-head { align-items: start; flex-direction: column; gap: 20px; }
  .welcome-head .button { width: 100%; }
  .stat-grid, .three-stats, .story-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 135px; }
  .story-card { padding-left: 26px; }
  .story-day { position: static; display: block; margin-bottom: 4px; }
  .trip-card { grid-template-columns: 1fr; }
  .trip-art { min-height: 150px; }
  .trip-hero, .journal-head { width: calc(100% + 28px); margin-right: -14px; margin-left: -14px; padding-right: 22px; padding-left: 22px; }
  .hero-meta { flex-wrap: wrap; gap: 10px 20px; }
  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: 42px 1fr; gap: 10px; }
  .timeline-number span { width: 34px; height: 34px; border-width: 4px; }
  .timeline-content { padding: 18px; }
  .timeline-top { display: grid; gap: 2px; }
  .editor-card { padding: 21px; }
  .form-grid.two, .form-grid.three, .form-grid.four { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .journal-aside { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .photo-feature { grid-column: span 1; }
  .route-map { height: 330px; }
  .journal-head-actions, .share-url { align-items: stretch; flex-direction: column; }
  .share-card { grid-template-columns: 40px 1fr; }
  .share-card form { grid-column: 2; }
  .guest-label { display: none; }
  .guest-unlock { margin-top: 3vh; padding: 28px; }
  .login-card { grid-template-columns: 1fr; }
  .login-visual { min-height: 320px; padding: 35px; }
  .login-visual .eyebrow { top: 30px; }
  .login-emblem { top: 45px; right: 30px; font-size: 110px; }
  .login-visual h1 { font-size: 42px; }
  .login-form-wrap { padding: 38px 28px; }
  .auth-page { padding: 14px; }
}
