diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css
index e7006adb..fd706415 100644
--- a/frontend/src/assets/main.css
+++ b/frontend/src/assets/main.css
@@ -1019,6 +1019,26 @@ body,
padding-inline: 0.65rem;
}
+ /* The heading has gone up to the top bar, so the row keeps the caption, the info button and the
+ actions, all on one middle. */
+ .view-header {
+ align-items: center;
+ }
+
+ .view-header__caption {
+ margin: 0;
+ }
+
+ .view-header__info {
+ width: var(--touch-target);
+ height: var(--touch-target);
+ }
+
+ /* First in its row, its icon starts on the cards' left edge. */
+ .view-header__info:first-child {
+ margin-left: calc((1rem - var(--touch-target)) / 2);
+ }
+
.sidebar-meta .app-footer__meta {
flex-wrap: wrap;
gap: 0.5rem;
diff --git a/frontend/src/assets/map.css b/frontend/src/assets/map.css
index f193984b..2ca5590e 100644
--- a/frontend/src/assets/map.css
+++ b/frontend/src/assets/map.css
@@ -60,6 +60,55 @@
margin-bottom: 0;
}
+/* Only a wrapper to fold: the list's rows stay the sidebar's own flex items. */
+.trip-sidebar__body {
+ display: contents;
+}
+
+/* Above the map the title folds the list away: drawn as the title itself across the header, with
+ a chevron at the end that points down while the list is open. */
+.trip-sidebar__title:has(.trip-sidebar__toggle) {
+ flex: 1;
+}
+
+.trip-sidebar__toggle {
+ display: flex;
+ align-items: center;
+ gap: inherit;
+ width: 100%;
+ min-height: var(--touch-target);
+ margin-block: calc((1lh - var(--touch-target)) / 2);
+ padding: 0;
+ border: none;
+ background: none;
+ color: inherit;
+ font: inherit;
+ letter-spacing: inherit;
+ text-align: left;
+ text-transform: inherit;
+ cursor: pointer;
+}
+
+.trip-sidebar__chevron {
+ margin-left: auto;
+ transition: transform 0.2s ease;
+}
+
+.trip-sidebar__toggle[aria-expanded='false'] .trip-sidebar__chevron {
+ transform: rotate(-90deg);
+}
+
+/* Folded, the sidebar is its title row and the map takes the rest. */
+.trip-sidebar--folded {
+ padding-bottom: 0;
+ overflow: hidden;
+}
+
+.trip-sidebar--folded .trip-sidebar__header {
+ border-bottom: none;
+ padding-bottom: 1rem;
+}
+
.trip-list {
list-style: none;
display: flex;
@@ -388,6 +437,23 @@
color: var(--color-text);
}
+.map-control-btn:disabled {
+ background: var(--color-surface) padding-box;
+ color: var(--color-text-muted);
+ cursor: not-allowed;
+}
+
+/* The map's own buttons on the right, level with the zoom control on the left: Find car. */
+.map-controls-end {
+ position: absolute;
+ top: 10px;
+ right: 10px;
+ z-index: var(--z-map-overlay);
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+}
+
/* Status overlays on the map canvas: POI loading, trip snapping. Stacked in one column so two
of them never land on top of each other. */
.map-pill-stack {
diff --git a/frontend/src/assets/shell.css b/frontend/src/assets/shell.css
index 9ed2cd6d..bf1050a0 100644
--- a/frontend/src/assets/shell.css
+++ b/frontend/src/assets/shell.css
@@ -76,17 +76,39 @@
background: var(--color-surface-2);
}
+/* The app's car, the way home. The page's heading beside it says where you are. */
.mobile-brand {
display: flex;
align-items: center;
- gap: 0.5rem;
- font-size: 1rem;
- font-weight: 700;
+ justify-content: center;
+ width: var(--touch-target);
+ height: var(--touch-target);
+ flex-shrink: 0;
+ margin-left: calc(-1 * var(--topbar-icon-inset));
+ font-size: var(--topbar-icon-size);
color: var(--color-primary);
+ border-radius: 6px;
text-decoration: none;
+}
+
+.mobile-brand:hover {
+ background: var(--color-surface-2);
+}
+
+/* The page's heading (ViewHeader moves it here on a phone), on one line: a long one ends in an
+ ellipsis rather than pushing the buttons off the bar. */
+.mobile-topbar__title {
flex: 1;
min-width: 0;
+}
+
+.mobile-topbar__title h1 {
+ margin: 0;
overflow: hidden;
+ font-size: 1.05rem;
+ font-weight: 700;
+ line-height: 1.3;
+ text-overflow: ellipsis;
white-space: nowrap;
}
@@ -201,10 +223,27 @@
margin: 0.15rem 0 0;
}
-/* A line about the page, tucked under its title rather than spaced like a section of its own. */
-.view-subtitle {
- margin-top: -1rem;
- margin-bottom: 1.5rem;
+/* The button that opens the line about the page, close beside the heading and as tall as its
+ line, so the actions keep their place on the right. */
+.view-header__info {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: var(--page-title-height);
+ height: var(--page-title-height);
+ margin-left: -0.5rem;
+ padding: 0;
+ border: none;
+ border-radius: 6px;
+ background: none;
+ color: var(--color-text-muted);
+ font-size: 1rem;
+ cursor: pointer;
+}
+
+.view-header__info:hover {
+ background: var(--color-surface-2);
+ color: var(--color-text);
}
/* ── App footer ───────────────────────────────────────────── */
diff --git a/frontend/src/components/ViewHeader.vue b/frontend/src/components/ViewHeader.vue
index 3bc9e6a8..223ac31f 100644
--- a/frontend/src/components/ViewHeader.vue
+++ b/frontend/src/components/ViewHeader.vue
@@ -1,27 +1,56 @@