.road-journal-page { min-width: 0; background: var(--asphalt); }
.road-journal-page [hidden] { display: none !important; }
.journal-shell { width: min(100%, 1180px); min-height: 100vh; margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px) calc(4rem + env(safe-area-inset-bottom, 0px)); }
.journal-loading { padding: clamp(3rem, 10vw, 7rem) 0; color: var(--steel); }
.journal-loading p { font-size: clamp(1.2rem, 4vw, 1.7rem); }
.journal-failure { max-width: 720px; padding: clamp(3rem, 10vw, 7rem) 0; }
.journal-failure h1 { margin: .7rem 0 1rem; font-size: clamp(2.35rem, 7vw, 4rem); }
.journal-failure p { color: #ff9b7a; overflow-wrap: anywhere; }
[data-journal-state="loading"] .save-strip, [data-journal-state="failure"] .save-strip, [data-journal-state="loading"] [data-view], [data-journal-state="failure"] [data-view] { display: none !important; }
.journal-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; border-bottom: 1px solid rgba(244, 180, 26, 0.42); }
.journal-topbar .site-brand, .journal-shell .btn, .journal-shell button, .journal-shell .auth-link { min-height: 44px; }
.journal-topbar > div { display: flex; align-items: center; gap: 1rem; }
.private-mark { color: var(--road-yellow); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-align: right; }
.quiet-button, .quiet-link, .day-nav button, .photo-card button, .speak-button { min-height: 44px; padding: .6rem .75rem; border: 1px solid rgba(243,240,232,.3); border-radius: 4px; background: #111718; color: var(--warm-white); font: 700 .86rem/1.2 var(--body-font); text-decoration: none; cursor: pointer; }
.quiet-button:hover, .quiet-link:hover, .day-nav button:hover, .photo-card button:hover, .speak-button:hover { border-color: var(--road-yellow); color: var(--road-yellow); }
.save-strip { position: sticky; top: 0; z-index: 20; min-height: 44px; margin: 0 calc(clamp(18px, 4vw, 36px) * -1); padding: .6rem clamp(18px, 4vw, 36px); background: rgba(11,13,13,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.save-strip > * { min-width: 0; overflow-wrap: anywhere; }
.save-strip span { color: var(--steel); font-size: .88rem; font-weight: 700; }
.save-strip span[data-state="success"] { color: var(--road-yellow); }
.save-strip span[data-state="error"] { color: #ff9b7a; }
.save-strip span[data-state="local"]::before { content: "On device: "; color: var(--road-yellow); }
.save-strip span[data-state="conflict"] { color: #ffcf70; }
.journal-nav { display: flex; flex-wrap: wrap; gap: .2rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.journal-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .7rem; border-radius: 3px; color: var(--steel); font-weight: 800; text-decoration: none; }
.journal-nav a:hover, .journal-nav a:focus-visible, .journal-nav a[aria-current="page"] { background: #111718; color: var(--road-yellow); }
.journal-view { padding: clamp(1.75rem, 4vw, 3rem) 0 0; }
.journal-view > h1, .view-heading h1 { max-width: 900px; margin: .35rem 0 .7rem; font-size: clamp(2.15rem, 5vw, 4rem); }
.home-card, .journal-form, .privacy-reminder, .story-layout > article { background: var(--charcoal); border: 1px solid var(--line); border-top: 4px solid var(--road-yellow); border-radius: 5px; }
.home-card { margin-top: 1rem; padding: clamp(1rem, 3vw, 1.5rem); }
.home-card h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.5rem); }
.home-card p { margin: .3rem 0 .75rem; color: var(--steel); }
.home-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.home-card__actions .btn { min-height: 46px; margin: 0; }
.home-utilities { margin: .7rem 0 0; }
.front-door { display: grid; gap: .65rem; max-width: 42rem; margin-top: .85rem; }
.front-door__primary { justify-self: start; min-height: 48px; margin: 0; }
.front-door__context { margin: -.25rem 0 0; color: var(--steel); font-size: .92rem; }
.front-door__secondary { display: flex; flex-wrap: wrap; gap: .55rem; }
.front-door__secondary .btn { min-height: 44px; margin: 0; }
.front-door__trips { justify-self: start; min-height: 44px; }
.front-door__chooser { padding: .8rem; background: var(--charcoal); border-left: 4px solid var(--road-yellow); }
.front-door__chooser h2 { margin: 0 0 .45rem; font-size: 1rem; }
.front-door__chooser > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.journal-list { display: grid; gap: .45rem; }
.journal-utilities { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.journal-utilities .quiet-link { background: transparent; }
.journal-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .75rem .85rem; background: var(--charcoal); border: 1px solid var(--line); border-left: 4px solid var(--road-yellow); }
.journal-row h2, .journal-row p { margin: 0; }
.journal-row h2 { font-size: 1.2rem; }
.journal-row p { color: var(--steel); }
.journal-row__context { font-size: .82rem; }
.journal-row .btn { min-height: 44px; margin: 0; }
.journal-row__story { margin-top: .35rem !important; color: var(--road-yellow) !important; font-size: .88rem; font-weight: 800; }
.journal-row__actions { display: grid; justify-items: stretch; gap: .35rem; min-width: 9rem; }
.journal-row__story-action { min-height: 44px; margin: 0; padding: .6rem .75rem; border: 0; background: transparent; text-align: center; cursor: pointer; }
.entry-story { margin-top: 1rem; }
.entry-story textarea { min-height: 15rem; font-size: 1.08rem; line-height: 1.55; }
.writing-recovery-actions, .local-draft-recovery > div { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.writing-recovery-actions .btn, .local-draft-recovery .btn { min-height: 44px; margin: 0; }
.local-draft-recovery { margin-bottom: 1rem; padding: 1rem; border: 2px solid var(--road-yellow); background: #111718; }
.local-draft-recovery h2 { margin: .35rem 0; font-size: clamp(1.4rem,4vw,2rem); }
.local-draft-recovery p { color: var(--steel); }
.entry-photos { margin: 1.25rem 0; }
.entry-more { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.entry-more > summary, .trip-membership > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.trip-membership [data-trip-available-entries] { display: grid; gap: .5rem; margin-top: .75rem; }
.trip-membership form > .btn { margin-top: .75rem; }
.trip-entry-choice { display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .6rem .7rem; background: #111718; border: 1px solid rgba(243,240,232,.22); border-radius: 4px; cursor: pointer; }
.trip-entry-choice input { width: 22px; height: 22px; flex: 0 0 auto; }
.trip-entry-choice span { display: grid; gap: .2rem; }
.trip-entry-choice strong { color: var(--road-yellow); font-size: .82rem; }
.trip-membership-empty { margin-top: .75rem; }
.entry-save-actions { position: static; margin: .5rem 0 1rem; padding: .75rem 0; background: transparent; border-top: 0; }
.grouping-panel { margin-top: 1rem; padding: 1rem; background: var(--charcoal); border: 1px solid var(--line); border-top: 4px solid var(--road-yellow); }
.grouping-choices { display: grid; gap: .4rem; margin-bottom: .8rem; }
.grouping-choice { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .55rem; background: #111718; }
.grouping-choice input { width: 22px; height: 22px; }
.standalone-fields { margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.standalone-fields h2, .standalone-fields p { margin-top: 0; }
.day-organization { margin: .6rem 0; color: var(--steel); font-size: .9rem; }
.owner-tools { margin-top: 1.5rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.owner-tools .kicker { display: inline; margin-right: .7rem; }
.owner-tools .quiet-link { min-height: 44px; padding: .45rem .6rem; background: transparent; }
.btn-large { min-height: 56px; padding: 1rem 1.4rem; font-size: 1rem; }
.recent-days { margin-top: 1.5rem; }
.recent-days h2, .photo-section h2, .story-layout h2 { margin-bottom: .7rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.recent-days > div { display: grid; gap: .75rem; }
.day-card { display: block; min-height: 54px; padding: 1rem; background: #111718; border-left: 4px solid var(--road-yellow); color: var(--warm-white); font-weight: 700; text-decoration: none; }
.trip-list, [data-trip-days] { display: grid; gap: .8rem; }
.trip-card, .trip-day-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; padding: 1rem; background: var(--charcoal); border: 1px solid var(--line); border-left: 4px solid var(--road-yellow); }
.trip-card { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.trip-card > :not(.btn) { grid-column: 1; }
.trip-card .btn { grid-column: 2; grid-row: 1 / span 4; }
.trip-card h2, .trip-card p, .trip-day-card h3, .trip-day-card p { margin: 0; }
.trip-card h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.trip-card strong { color: var(--road-yellow); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.trip-card p, .trip-day-card p, .trip-overview__dates, .trip-overview__route { color: var(--steel); }
.trip-overview__dates { margin: 0; font-size: 1.15rem; }
.trip-overview__route { margin: .2rem 0 1rem; }
.trip-days { margin-top: 1rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem,4vw,2.7rem); }
.view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.explanation { max-width: 760px; margin: 0 0 1rem; color: var(--steel); font-size: 1rem; }
.journal-form { padding: clamp(1.2rem, 4vw, 3rem); }
.trip-danger { margin-top: 2rem; padding: clamp(1.2rem, 4vw, 2rem); background: #171313; border: 1px solid rgba(255, 132, 98, .55); border-left: 5px solid #ff8462; }
.trip-danger h2 { margin-bottom: .65rem; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.trip-danger p { max-width: 760px; color: var(--steel); }
.danger-link { min-height: 48px; padding: .75rem 1rem; border: 1px solid #ff8462; border-radius: 4px; background: transparent; color: #ffb29d; font: 800 1rem/1.2 var(--body-font); cursor: pointer; }
.danger-link:hover { background: #2b1714; color: var(--warm-white); }
.trip-delete-dialog { width: min(620px, calc(100% - 2rem)); max-height: min(760px, calc(100dvh - 2rem)); padding: 0; overflow: auto; border: 2px solid #ff8462; border-top-width: 6px; border-radius: 6px; background: var(--charcoal); color: var(--warm-white); }
.trip-delete-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(3px); }
.trip-delete-dialog form { padding: clamp(1.25rem, 5vw, 2.25rem); }
.trip-delete-dialog h2 { margin: .55rem 0 .8rem; font-size: clamp(1.8rem, 6vw, 3rem); overflow-wrap: anywhere; }
.trip-delete-dialog p { color: var(--steel); }
.trip-delete-actions { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: .75rem; margin-top: 1.25rem; }
.trip-delete-actions .btn { min-height: 54px; margin: 0; }
.danger-button { background: #b63c22; border-color: #e85c3d; color: #fff; }
.danger-button:hover:not(:disabled) { background: #d1482a; border-color: #ff8462; }
.danger-button:disabled { opacity: .42; cursor: not-allowed; }
.journal-form .field label span { color: var(--steel); font-size: .82rem; font-weight: 400; }
.journal-form .field { min-width: 0; }
.journal-form .field input, .journal-form .field select, .journal-form .field textarea { min-width: 0; max-width: 100%; }
.journal-form input[type="date"] { display: block; box-sizing: border-box; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; -webkit-appearance: none; appearance: none; }
.journal-form input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.trip-context { margin-bottom: 1rem; padding: 1rem; background: #111718; border-left: 4px solid var(--road-yellow); }
.trip-context summary { display: flex; align-items: center; min-height: 44px; color: var(--road-yellow); font-size: 1rem; font-weight: 800; cursor: pointer; }
.trip-context summary::after { content: "+"; margin-left: auto; font-size: 1.25rem; }
.trip-context[open] summary::after { content: "−"; }
.trip-context dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem 1rem; margin: 0; }
.trip-context:not([open]) dl { display: none; }
.trip-context dl > div { min-width: 0; }
.trip-context dt { color: var(--steel); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.trip-context dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.day-orientation { margin: -.7rem 0 1.2rem; color: var(--steel); font-weight: 700; }
.day-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.25rem; }
.day-actions .btn { min-height: 48px; margin: 0; }
.entry-story-summary { align-self: center; display: grid; gap: .1rem; margin-left: .25rem; }
.entry-story-summary__title { color: var(--road-yellow); font-family: var(--body-font); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.entry-story-summary__state { color: var(--muted); font-size: .95rem; }
.context-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.journal-form fieldset { min-width: 0; margin: 0 0 1.5rem; padding: 0; border: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.choice-row label { display: flex; align-items: center; gap: .55rem; min-height: 50px; padding: .6rem 1rem; background: #111718; border: 1px solid var(--line); }
.choice-row input { width: 22px; height: 22px; accent-color: var(--road-yellow); }
.odometer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) minmax(180px,.7fr); gap: 1rem; align-items: stretch; }
.mileage-result { display: flex; flex-direction: column; justify-content: center; min-height: 94px; margin-bottom: 1rem; padding: 1rem; background: #111718; border-left: 4px solid var(--road-yellow); }
.mileage-result span { color: var(--steel); font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.mileage-result strong { color: var(--road-yellow); font-size: 1.25rem; }
.journal-form details { margin: 0 0 1.5rem; padding: 1rem; background: #111718; }
.journal-form summary { min-height: 44px; color: var(--road-yellow); font-weight: 800; cursor: pointer; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .45rem; }
.label-row label { margin: 0; }
.speak-button[data-listening="true"] { background: var(--burnt-orange); border-color: var(--burnt-orange); }
.highlights > p { margin-top: 0; color: var(--steel); }
.highlights > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; }
.highlight-chip { position: relative; min-width: 0; }
.highlight-chip input { position: absolute; opacity: 0; }
.highlight-chip span { display: grid; place-items: center; min-height: 54px; padding: .7rem; border: 1px solid rgba(243,240,232,.3); border-radius: 4px; background: #111718; font-size: .9rem; font-weight: 800; text-align: center; cursor: pointer; }
.highlight-chip input:checked + span { background: var(--road-yellow); border-color: var(--road-yellow); color: var(--asphalt); }
.highlight-chip input:focus-visible + span { outline: 3px solid var(--road-yellow); outline-offset: 3px; }
.photo-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.photo-section:focus { outline: 3px solid var(--road-yellow); outline-offset: 6px; }
.photo-section > p { color: var(--steel); }
.upload-button { position: relative; overflow: hidden; }
.upload-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.photo-card { min-width: 0; padding: .75rem; background: #111718; border: 1px solid var(--line); }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-card > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; margin-top: .65rem; }
.photo-card input { grid-column: 1/-1; width: 100%; min-height: 48px; padding: .75rem; background: var(--asphalt); border: 1px solid var(--line); color: var(--warm-white); font: 1rem var(--body-font); }
.photo-card--pending { border-style: dashed; }
.photo-card--pending[data-upload-state="Failed"] { border-color: #ff9b7a; }
.photo-upload-state { grid-column: 1/-1; color: var(--road-yellow); }
.sticky-actions { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 15; display: flex; justify-content: flex-end; gap: .75rem; margin: 2rem -1rem -1rem; padding: .75rem 1rem; background: rgba(19,27,26,.97); border-top: 1px solid var(--line); }
.day-nav { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 1rem; margin: 0 0 1rem; }
.day-nav button:last-child { justify-self: end; }
.day-nav button:disabled { opacity: .42; cursor: default; }
.save-conflict { margin-bottom: 1.5rem; padding: clamp(1.2rem,4vw,2rem); background: var(--charcoal); border: 2px solid var(--road-yellow); border-top-width: 6px; }
.save-conflict > h2 { margin: .5rem 0 .75rem; font-size: clamp(1.8rem,5vw,3rem); }
.save-conflict > p { color: var(--steel); }
.conflict-copies { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.conflict-copies > section { min-width: 0; padding: 1rem; background: #111718; border: 1px solid var(--line); }
.conflict-copies h3 { margin-bottom: .75rem; color: var(--road-yellow); font-size: 1.15rem; }
.conflict-copies pre { max-height: 42vh; margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--warm-white); font: 1rem/1.55 var(--body-font); }
.conflict-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.recommended-action { flex-direction: column; gap: .2rem; min-height: 58px; }
.recommended-action span { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.privacy-reminder { margin-bottom: 1rem; padding: .9rem 1rem; }
.privacy-reminder strong { color: var(--road-yellow); text-transform: uppercase; letter-spacing: .1em; }
.privacy-reminder p { margin: .35rem 0 0; color: var(--steel); }
.story-layout { display: block; }
.story-layout > article { width: min(100%, 860px); min-width: 0; margin: 0 auto; padding: clamp(1.2rem,4vw,2.5rem); }
.story-version-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin: .55rem 0 1rem; }
.story-version-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: inherit; }
.story-version-nav a[aria-current="page"] { border-color: var(--road-yellow); color: var(--road-yellow); }
.story-layout-revision-help { margin: .7rem 0 0; color: var(--muted); }
.story-layout-revision-dialog { width: min(calc(100% - 2rem), 34rem); border: 1px solid var(--line); border-radius: 5px; padding: 1.25rem; background: var(--charcoal); color: var(--warm-white); }
.story-layout-revision-dialog::backdrop { background: rgb(0 0 0 / .58); }
.story-layout-revision-dialog h2 { margin-top: 0; }
.story-layout label { display: block; margin: 1rem 0 .4rem; font-weight: 800; }
.story-layout input, .story-layout textarea { width: 100%; min-height: 48px; padding: .85rem; border: 1px solid rgba(243,240,232,.35); border-radius: 3px; background: #111718; color: var(--warm-white); font: 1rem/1.5 var(--body-font); }
.story-title-field { margin: .55rem 0 .7rem; }
.story-title-field label { display: block; margin: 0 0 .4rem; color: var(--road-yellow); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story-review .story-headline { width: 100%; min-height: 48px; padding: .35rem .5rem; color: var(--warm-white); font: 700 clamp(2rem,5vw,3.6rem)/1.08 var(--display-font); overflow-wrap: anywhere; }
.story-review .story-headline[readonly] { padding-inline: 0; border-color: transparent; background: transparent; }
.story-original { margin: .75rem 0 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-original > summary { display: flex; align-items: center; min-height: 44px; color: var(--road-yellow); font-weight: 800; cursor: pointer; }
.story-original > div { margin-bottom: 1rem; padding: 1rem; background: #111718; white-space: pre-wrap; }
.story-original h2 { margin: 0 0 .75rem; font-size: 1.25rem; }
.story-layout #story-draft { height: 12rem; }
.story-text-editor { margin-top: 1rem; }
.story-text-editor summary { min-height: 44px; padding: .65rem 0; color: var(--road-yellow); font-weight: 800; cursor: pointer; }
.story-photo-layout { display: grid; gap: 1rem; margin: 1.25rem 0 2rem; }
.story-photo-layout > p { width: 100%; max-width: 68ch; margin: 0 auto; font-family: var(--display-font); font-size: clamp(1.08rem,2vw,1.22rem); line-height: 1.75; }
.story-placed-photo { margin: .35rem 0 1rem; }
.story-placed-photo--lead { margin-top: 0; }
.story-photo-trigger { display: block; width: 100%; min-height: 44px; padding: 0; border: 1px solid var(--line); background: #111718; color: inherit; cursor: pointer; }
.story-photo-trigger:focus-visible, .story-insertion-target:focus-visible { outline: 3px solid var(--road-yellow); outline-offset: 3px; }
.story-photo-trigger img { display: block; width: 100%; max-height: 34rem; object-fit: cover; }
.story-placed-photo figcaption { padding: .55rem .15rem .15rem; color: var(--steel); background: transparent; font-size: .92rem; line-height: 1.45; }
.story-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.story-review-tools { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.story-review-tools > h2 { font-size: 1rem; color: var(--steel); letter-spacing: .08em; text-transform: uppercase; }
.story-review-tools > h3 { margin: 1rem 0 .4rem; font-size: 1.2rem; }
.story-share-panel { margin-top: 1.25rem; padding: clamp(1rem,3vw,1.35rem); border: 1px solid var(--line); border-left: 4px solid var(--road-yellow); border-radius: 5px; background: #111718; }
.story-share-panel h2 { margin: .25rem 0 .35rem; font-size: clamp(1.45rem,3vw,1.9rem); }
.story-share-panel > p { margin: 0; color: var(--steel); }
.story-share-panel .btn[disabled] { opacity: .55; cursor: not-allowed; }
.story-publication-summary { display: grid; gap: .5rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.story-publication-summary > strong { color: var(--road-yellow); font-size: 1.05rem; }
.story-workflow-actions { margin-top: .75rem; }
.story-email-note { margin-top: .75rem !important; font-size: .92rem; }
.story-layout-revision-action { margin-top: 1rem; }
.story-photo-menu { position: sticky; z-index: 3; bottom: calc(.75rem + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: .5rem; padding: .8rem; border: 1px solid var(--road-yellow); background: #111718; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.story-photo-menu[hidden] { display: none; }
.story-photo-menu strong { flex-basis: 100%; }
.story-photo-menu button { min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); background: var(--asphalt); color: var(--warm-white); }
.story-photo-menu label { display: grid; flex: 1 1 100%; gap: .35rem; }
.story-photo-menu input { min-height: 44px; }
.story-insertion-target { width: 100%; min-height: 48px; border: 2px dashed var(--road-yellow); background: rgba(244,184,0,.08); color: var(--road-yellow); font-weight: 700; }
.story-meta { color: var(--road-yellow); font-weight: 800; }
.review-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.publication-candidates { margin-top: clamp(1.25rem,4vw,2rem); padding: clamp(1rem,3vw,1.5rem); border: 1px solid var(--line); border-left: 4px solid var(--road-yellow); border-radius: 5px; background: rgba(17,23,24,.72); }
.publication-candidates h2 { margin: .25rem 0 .4rem; font-size: clamp(1.45rem,3vw,2rem); }
.publication-candidates__intro { max-width: 68ch; margin: 0 0 .75rem; color: var(--steel); }
.publication-candidates__list { display: grid; gap: .75rem; }
.publication-candidate { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .35rem 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 4px; background: var(--charcoal); }
.publication-candidate h3, .publication-candidate p { margin: 0; }
.publication-candidate h3, .publication-candidate__context, .publication-candidate__facts, .publication-candidate__status, .publication-candidate__reason { grid-column: 1; }
.publication-candidate__context, .publication-candidate__facts, .publication-candidate__reason { color: var(--steel); }
.publication-candidate__status { color: var(--road-yellow); }
.publication-candidate > .publication-candidate__story-link { grid-column: 2; grid-row: 1 / span 5; min-height: 44px; align-self: center; }
.publication-prepare, .publication-review { grid-column: 1 / -1; min-width: 0; margin-top: .75rem; padding: clamp(1rem,3vw,1.5rem); border-top: 1px solid var(--line); background: #111718; }
.publication-boundary, .publication-review p, .publication-prepare__photos > p { color: var(--steel); }
.publication-prepare .field { min-width: 0; margin-bottom: 1rem; }
.publication-prepare .field label, .publication-prepare__choices label { display: block; margin-bottom: .35rem; font-weight: 800; }
.publication-prepare input:not([type="checkbox"]), .publication-prepare textarea, .publication-prepare select { width: 100%; min-width: 0; min-height: 48px; padding: .8rem; border: 1px solid rgba(243,240,232,.35); border-radius: 3px; background: var(--asphalt); color: var(--warm-white); font: 1rem/1.45 var(--body-font); }
.publication-prepare textarea { min-height: 96px; resize: vertical; }
.publication-prepare__choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.publication-prepare__choices label { min-width: 0; }
.publication-prepare__choices label:first-child { display: flex; align-items: center; gap: .65rem; min-height: 48px; }
.publication-prepare__choices input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--road-yellow); }
.publication-prepare__photos { margin: 1.25rem 0; }
.publication-prepare__photos h4 { margin-bottom: .35rem; font-size: 1.3rem; }
.publication-prepare__photo-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.publication-prepare__photo { min-width: 0; padding: .8rem; border: 1px solid var(--line); background: var(--charcoal); }
.publication-prepare__photo img { display: block; width: 100%; aspect-ratio: 4/3; margin-bottom: .75rem; object-fit: contain; background: #080a0a; }
.publication-prepare__photo strong { display: block; margin-bottom: .75rem; color: var(--road-yellow); }
.publication-prepare__approved-caption { color: var(--steel); overflow-wrap: anywhere; }
.publication-prepare > .btn, .publication-review .btn { min-height: 48px; }
.publication-review > strong { display: block; color: var(--road-yellow); font-size: 1.15rem; }
.signed-out { display: grid; place-items: center; }
.signed-out .access-panel { width: min(680px, 100%); margin: 4rem auto; padding: clamp(2rem, 5vw, 3.5rem); background: var(--charcoal); border-top: 4px solid var(--road-yellow); }
.signed-out .access-panel h1 { margin: .65rem 0 1rem; font-size: clamp(2.35rem, 7vw, 4rem); }
.signed-out .access-panel > p { color: var(--steel); }
.access-form { margin-top: 2rem; }
.access-form .btn { width: 100%; margin: 0; }
.auth-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: .7rem; padding: .65rem .85rem; border: 0; background: transparent; color: var(--road-yellow); font: 800 .95rem/1 var(--body-font); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.auth-link:hover { color: var(--warm-white); }

@media (max-width: 760px) {
  .private-mark { display: none; }
  .journal-view { padding-top: 1.35rem; }
  .journal-view > h1, .view-heading h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .journal-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .journal-nav::-webkit-scrollbar { display: none; }
  .journal-nav a { flex: 0 0 auto; padding-inline: .5rem; font-size: .8rem; }
  .view-heading { display: block; }
  .view-heading .quiet-link { display: inline-flex; margin-bottom: .8rem; }
  .view-heading > .btn { width: auto; margin: .25rem 0 .8rem; }
  .trip-card, .trip-day-card { gap: .6rem; padding: .85rem; }
  .trip-card .btn, .trip-day-card .btn { min-height: 44px; margin: 0; }
  .context-links { justify-content: flex-start; }
  .odometer-grid, .story-layout, .conflict-copies, .trip-context dl { grid-template-columns: 1fr; }
  .story-gallery { grid-template-columns: 1fr; }
  .story-photo-menu { bottom: calc(.5rem + env(safe-area-inset-bottom)); }
  .story-share-panel .review-actions { display: grid; grid-template-columns: 1fr; }
  .story-share-panel .btn { width: 100%; min-height: 44px; }
  .publication-candidate { grid-template-columns: 1fr; }
  .publication-candidate > .publication-candidate__story-link { grid-column: 1; grid-row: auto; width: 100%; margin-top: .35rem; }
  .publication-prepare__choices, .publication-prepare__photo-list { grid-template-columns: 1fr; }
  .publication-prepare > .btn, .publication-review .btn { width: 100%; }
  .highlights > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photo-list { grid-template-columns: 1fr; }
  .sticky-actions { justify-content: stretch; }
  .sticky-actions .btn { flex: 1; margin: 0; }
}

@media (max-width: 420px) {
  .journal-topbar > div { gap: .5rem; }
  .journal-shell { padding-right: 16px; padding-left: 16px; }
  .save-strip { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; }
  .journal-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .journal-nav::-webkit-scrollbar { display: none; }
  .journal-nav a { flex: 0 0 auto; justify-content: center; padding-inline: .65rem; }
  .home-card__actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-card__actions .btn { width: 100%; padding-inline: .6rem; }
  .trip-card, .trip-day-card { display: grid; grid-template-columns: 1fr; }
  .trip-card .btn { grid-column: 1; grid-row: auto; width: 100%; }
  .trip-day-card .btn { width: 100%; }
  .day-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .entry-story-summary { grid-column: 1 / -1; grid-row: 1; margin: 0; }
  .journal-row { grid-template-columns: 1fr; }
  .journal-row__actions { grid-template-columns: 1fr 1fr; min-width: 0; }
  .day-actions .btn { width: 100%; }
  .day-nav { gap: .45rem; }
  .day-nav button { padding: .6rem; font-size: .78rem; }
  .highlights > div { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .highlight-chip span { min-height: 58px; padding: .55rem; }
  .photo-card > div { grid-template-columns: 1fr; }
  .photo-card input { grid-column: auto; }
  .sticky-actions { flex-direction: column; padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); }
  .writing-recovery-actions, .local-draft-recovery > div { display: grid; grid-template-columns: 1fr; }
  .conflict-actions { display: grid; }
  .conflict-actions .btn { width: 100%; margin: 0; }
  .trip-delete-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem - env(safe-area-inset-bottom)); }
  .trip-delete-dialog form { padding: 1.2rem 1rem calc(1.2rem + env(safe-area-inset-bottom)); }
  .trip-delete-actions { grid-template-columns: 1fr; }
  .trip-delete-actions .btn { width: 100%; min-height: 56px; }
}

.journal-form .entry-save-actions { position: static; bottom: auto; margin: .5rem 0 1rem; padding: .75rem 0; background: transparent; border-top: 0; }
