/* Legacy account/admin forms retain app.css; revision tokens follow below. */
.v2-shell {
  --rail-width: 184px;
  --header-height: 76px;
  --sidebar-width: 380px;
  --blue: #0672dc;
  --blue-dark: #0354a9;
  --green: #138c76;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.v2-shell.user-workspace { --sidebar-width: 560px; }
.v2-shell.admin-workspace { --sidebar-width: 660px; }
.v2-shell.panel-compact { --sidebar-width: 380px; }
.v2-topbar {
  position: absolute; inset: 0 0 auto; height: var(--header-height); z-index: 30;
  display: flex; align-items: center; gap: 18px; padding: 0 24px 0 20px;
  border-bottom: 1px solid #e3e8ef; background: #fff;
}
.v2-logo { display: flex; align-items: center; gap: 10px; flex: 0 0 146px; font-size: 25px; font-weight: 800; border: 0; background: none; color: #192536; cursor: pointer; padding: 0; }
.v2-logo > span { display: grid; place-items: center; width: 34px; height: 36px; background: #e5f3ec; color: #138c76; border-radius: 8px; }
.v2-global-search { position: relative; display: flex; align-items: center; gap: 10px; width: min(540px, 52vw); height: 46px; border: 1px solid #dce3eb; border-radius: 8px; padding: 0 14px; background: #f9fbfd; }
.v2-global-search > svg { width: 20px; height: 20px; color: #69788c; flex-shrink: 0; }
.v2-global-search input { width: 100%; min-width: 0; background: transparent; border: none; outline: none; color: #243247; font-size: 14px; font-weight: 500; }
.v2-global-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #0672dc15; }
.v2-global-search .dropdown { top: calc(100% + 8px); max-height: min(60vh, 450px); overflow: auto; }
.v2-route-shortcut, .v2-account { background: #f3f6fa; border: 1px solid #e4e9f0; border-radius: 8px; padding: 10px 18px; cursor: pointer; color: #27364b; font-size: 13px; font-weight: 650; min-height: 44px; }
.v2-account { margin-left: auto; max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v2-navigation { position: absolute; inset: var(--header-height) auto 0 0; z-index: 20; width: var(--rail-width); display: flex; flex-direction: column; gap: 6px; padding: 18px 12px; background: #fff; border-right: 1px solid #e3e8ef; }
.v2-navigation button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: #5e6c80; cursor: pointer; text-align: left; font-size: 13px; font-weight: 600; }
.v2-navigation button svg { width: 22px; height: 22px; flex-shrink: 0; }
.v2-navigation button.is-active { background: #e9f3ff; color: #0363c4; }
.v2-navigation button:hover { background: #f1f5fa; }
.v2-navigation button:nth-child(6) { margin-top: 16px; border-top: 1px solid #e8edf3; }
.v2-shell .sidebar { inset: calc(var(--header-height) + 12px) auto 16px calc(var(--rail-width) + 12px); width: min(var(--sidebar-width), calc(100vw - var(--rail-width) - 110px)); border: 1px solid #e0e6ed; border-radius: 8px; background: #fff; box-shadow: 0 6px 22px #1d365514; transform: translateX(calc(-100% - var(--rail-width) - 30px)); }
.v2-shell .sidebar.is-open { transform: translateX(0); }
.v2-shell .brand-bar { min-height: 44px; padding: 8px 16px; justify-content: flex-end; }
.v2-shell .brand { display: none; }
.v2-shell .select-row select { min-height: 28px; font-size: 11px; border-radius: 6px; background: #f5f7fa; }
.v2-shell .panel { padding: 16px; min-height: 0; overflow-x: hidden; }
.v2-shell .footer { padding: 10px; }
.v2-shell .footer .woh, .v2-shell .footer-links { display: none; }
.v2-shell .sidebar-toggle { left: calc(var(--rail-width) + 12px); right: auto; top: calc(var(--header-height) + 20px); width: 36px; height: 36px; z-index: 21; }
.v2-shell.sidebar-open .sidebar-toggle { display: none; }
.v2-shell .map-toolbar { inset: auto 82px 24px auto; width: auto; padding: 6px; border-radius: 8px; background: white; box-shadow: 0 4px 20px #1d36551c; }
.v2-shell .map-tool { border-radius: 6px; }
.v2-shell .maplibregl-ctrl-top-right { top: calc(var(--header-height) + 16px); right: 16px; bottom: auto; }
.v2-shell .maplibregl-ctrl-attrib { font-size: 10px; }
.v2-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v2-panel-heading h2 { margin: 0; color: #1d293b; font-size: 17px; line-height: 1.4; font-weight: 750; }
.v2-panel-heading button { flex-shrink: 0; width: 34px; height: 34px; font-size: 22px; border: 1px solid #e2e8f0; border-radius: 6px; background: white; color: var(--blue); cursor: pointer; }
.v2-category-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.v2-category-filters button { flex: 0 0 auto; padding: 8px 11px; min-height: 36px; border: 1px solid #e2e8f0; border-radius: 6px; color: #526074; background: white; font-size: 12px; font-weight: 600; cursor: pointer; }
.v2-category-filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }
.v2-place-row { display: grid; grid-template-columns: 94px minmax(0, 1fr); width: 100%; gap: 14px; border: 0; border-bottom: 1px solid #e9edf3; padding: 14px 0; background: #fff; color: #27364b; text-align: left; cursor: pointer; }
.v2-place-row:hover { background: #f8fbff; }
.v2-place-row img, .v2-place-no-photo { width: 94px; height: 88px; border-radius: 8px; object-fit: cover; background: #e8f2ef; }
.v2-place-no-photo { display: grid; place-items: center; color: #138c76; font-size: 30px; }
.v2-place-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.v2-place-copy strong { font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.v2-place-copy small { color: #65748a; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.v2-promoted { display: inline-block; width: fit-content; padding: 2px 6px; border-radius: 4px; background: #fff0bd; color: #805209; font-size: 10px; font-weight: 650; }
.v2-shell .map-tool.is-active { background: var(--blue); color: white; }
.v2-area-marker .layer-object-marker-label { display: none; }
.v2-shell .layer-object-marker { z-index: 2; }
.v2-area-marker.is-promoted .layer-object-marker-pin { border-color: #ffce5d; }
.v2-marker-preview { display: grid; gap: 8px; padding: 6px; color: #27364b; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.v2-marker-preview img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; }
.v2-marker-preview strong { font-size: 14px; overflow-wrap: anywhere; }
.v2-marker-preview small { font-size: 11px; color: #65748a; }
.v2-marker-preview > div { display: flex; gap: 6px; }
.v2-marker-preview button { border: 0; border-radius: 6px; background: var(--blue); color: white; padding: 8px; cursor: pointer; font-size: 12px; }
.v2-shell .object-popup { display: flex; flex-direction: column; overflow: visible; width: 100%; }
.v2-shell .object-popup-body { display: grid; max-height: none; overflow: visible; padding: 0; }
.v2-shell .object-popup-body > strong { font-size: 22px; line-height: 1.35; font-weight: 750; }
.v2-shell .object-popup p, .v2-shell .object-popup a { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.v2-shell .object-popup-img { width: 100%; height: 184px; border-radius: 0; }
.v2-shell .object-popup-media { margin: 0 -16px; }
.v2-shell .object-popup-gallery { padding: 0 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v2-shell .object-popup-layer { font-weight: 600; }
.v2-place-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 14px; border-bottom: 1px solid #e6ebf1; padding-right: 45px; }
.v2-place-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; min-height: 48px; flex-shrink: 0; padding: 0 8px; font-size: 11px; color: #65748a; cursor: pointer; }
.v2-place-tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.v2-place-extra { display: none; }
.v2-place-extra h3 { font-size: 17px; }
.v2-place-extra button:not(.v2-place-row), .v2-claim button { cursor: pointer; color: var(--blue); border: 0; background: #eaf4ff; border-radius: 6px; padding: 8px; font-size: 12px; }
.v2-claim { margin-top: 20px; background: #f5f8fb; border-radius: 8px; padding: 12px; font-size: 12px; color: #526074; }
.v2-claim button:disabled { cursor: default; color: #65748a; }
.v2-shell .object-quick-actions { flex-shrink: 0; margin: 0; padding: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-shell .object-quick-actions button { font-size: 11px; font-weight: 650; }
.v2-shell .route-workbench { gap: 16px; }
.v2-route-future { display: grid; gap: 5px; border-top: 1px solid #e2e8f0; padding: 12px 0; color: #526074; }
.v2-route-future span { font-size: 13px; font-weight: 650; }
.v2-route-future small { font-size: 11px; line-height: 1.5; }
.v2-shell .route-options-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.v2-shell .map-toast { left: auto; right: 20px; bottom: 80px; }
.v2-sheet-handle { display: none; }
.v2-shell button:focus-visible { outline: 3px solid #1686de; outline-offset: 2px; }
@media (min-width: 768px) and (max-width: 1199px) {
  .v2-shell { --rail-width: 76px; --sidebar-width: 340px; }
  .v2-shell.user-workspace, .v2-shell.admin-workspace { --sidebar-width: 440px; }
  .v2-navigation button { flex-direction: column; gap: 5px; padding: 8px 0; }
  .v2-navigation button span { font-size: 9px; }
  .v2-topbar { padding-left: 12px; gap: 10px; }
  .v2-logo { flex-basis: 150px; }
}
@media (max-width: 767px) {
  .v2-shell { --header-height: 116px; --rail-width: 0px; --sidebar-width: 100vw; }
  .v2-topbar { height: 116px; padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
  .v2-logo { font-size: 22px; flex-basis: auto; }
  .v2-logo > span { width: 28px; height: 30px; }
  .v2-account { font-size: 12px; padding: 7px 10px; min-height: 34px; max-width: 130px; }
  .v2-route-shortcut { display: none; }
  .v2-global-search { order: 3; flex: 0 0 100%; width: 100%; height: 44px; }
  .v2-navigation { inset: auto 0 0; height: calc(64px + env(safe-area-inset-bottom)); width: 100%; flex-direction: row; justify-content: space-around; gap: 0; padding: 5px 2px env(safe-area-inset-bottom); border-top: 1px solid #e3e8ef; }
  .v2-navigation button { width: auto; flex: 1; min-height: 54px; flex-direction: column; gap: 4px; padding: 7px 2px; font-size: 10px; text-align: center; border-radius: 6px; }
  .v2-navigation button[data-v2-nav="maps"], .v2-navigation button[data-v2-nav="explore"] { display: none; }
  .v2-navigation button:nth-child(6) { margin-top: 0; border-top: 0; }
  .v2-shell .sidebar { inset: auto 0 calc(64px + env(safe-area-inset-bottom)); width: 100%; height: min(47dvh, 550px); max-height: calc(100dvh - 184px); border-radius: 16px 16px 0 0; transform: translateY(calc(100% - 50px)); }
  .v2-shell .sidebar.is-open { transform: translateY(0); }
  .v2-shell .sidebar::before { display: none; }
  .v2-sheet-handle { display: grid; place-items: center; min-height: 28px; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; flex-shrink: 0; touch-action: none; }
  .v2-sheet-handle span { width: 38px; height: 4px; border-radius: 4px; background: #c4cfdb; }
  .v2-shell .brand-bar { min-height: 26px; padding: 0 12px 4px; }
  .v2-shell .panel { padding: 10px 14px 20px; }
  .v2-panel-heading h2 { font-size: 16px; }
  .v2-shell .sidebar-toggle { display: none; }
  .v2-shell .map-toolbar { inset: 128px auto auto 10px; width: auto; max-width: calc(100vw - 68px); padding: 4px; gap: 3px; }
  .v2-shell .map-toolbar-group { background: #f3f7fb; }
  .v2-shell .map-tool { min-width: 48px; padding: 0 5px; font-size: 10px; height: 32px; }
  .v2-shell .map-icon-tool { width: 30px; height: 32px; flex-basis: 30px; font-size: 12px; }
  .v2-shell .maplibregl-ctrl-top-right { inset: 128px 10px auto auto; }
  .v2-shell .maplibregl-ctrl-top-right .maplibregl-ctrl button { width: 32px; height: 32px; }
  .v2-shell .object-popup-img { height: 158px; }
  .v2-shell .object-popup-body > strong { font-size: 20px; }
  .v2-shell .map-toast { inset: auto 12px 80px; }
  .v2-shell .footer { display: none; }
  .v2-shell .layer-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Stage 1 UI correction: shared design tokens and reference proportions. */
.v2-shell {
  --primary: #1677E8; --primary-soft: #EAF4FF; --teal: #0DB69F; --orange: #FF8A24;
  --violet: #8B5CF6; --green: #12A36D; --text: #182230; --muted: #667085;
  --border: #E5EAF0; --surface: #fff; --bg-soft: #F7F9FC;
  --radius-sm: 10px; --radius-md: 14px; --radius-lg: 18px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px;
  --font-xs: 11px; --font-sm: 12px; --font-base: 14px; --font-md: 16px;
  --font-lg: 20px; --font-xl: 24px; --shadow: 0 8px 28px rgba(31,50,73,.10);
  --rail-width: 92px; --header-height: 62px; --sidebar-width: 330px;
  --blue: var(--primary); --blue-dark: #0963cb; --line: var(--border);
  font-family: Inter, system-ui, sans-serif; color: var(--text);
}
.v2-shell * { letter-spacing: 0; }
.v2-shell input, .v2-shell button, .v2-shell select { font-family: inherit; }
.v2-shell.user-workspace { --sidebar-width: 520px; }
.v2-shell.admin-workspace { --sidebar-width: 640px; }
.v2-shell.panel-compact { --sidebar-width: 330px; }
.v2-shell.v2-routing { --sidebar-width: 440px; }
.v2-shell.v2-routing .brand-bar { display: none; }
.v2-shell .route-line { min-height: 46px; }
.v2-shell .route-line label { padding-right: 34px; }
.v2-shell .route-line small { font-size: var(--font-xs); text-transform: none; font-weight: 400; }
.v2-shell .route-workbench { gap: var(--space-3); }
.v2-shell .route-options-grid { padding: 0; border: 0; background: none; }
.v2-shell .location-inline-btn { min-height: 28px; padding: var(--space-1) var(--space-2); font-size: var(--font-xs); font-weight: 500; }
.v2-shell .route-panel-head { margin-bottom: 0; }
.v2-shell.v2-home .brand-bar { display: none; }
.v2-shell.v2-home .sidebar { height: auto; bottom: auto; max-height: calc(100dvh - var(--header-height) - var(--space-8)); }
.v2-shell.v2-home .panel { flex: 0 1 auto; }
.v2-shell.v2-home .footer { display: none; }
.v2-shell .v2-instructions { margin-top: var(--space-3); }
.v2-shell .v2-instructions summary { cursor: pointer; color: var(--primary); font-size: var(--font-sm); }
.v2-shell .route-card .v2-mini-map { margin-top: var(--space-3); }
.v2-shell .mode-btn svg { width: 20px; height: 20px; }
.v2-topbar { gap: var(--space-5); padding: 0 var(--space-6); z-index: 40; border-color: var(--border); }
.v2-logo { flex: 0 0 auto; font-size: var(--font-xl); font-weight: 700; gap: var(--space-2); }
.v2-logo > span { width: 30px; height: 32px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--teal); }
.v2-global-search { flex: 1; width: auto; max-width: 510px; height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-sm); border-color: var(--border); background: var(--bg-soft); }
.v2-global-search input { font-size: var(--font-base); font-weight: 400; }
.v2-top-actions { display: flex; align-items: center; gap: var(--space-2); }
.v2-top-actions button { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 0; border-radius: 999px; background: var(--bg-soft); color: var(--text); font-size: var(--font-sm); font-weight: 500; white-space: nowrap; cursor: pointer; }
.v2-top-actions button[data-v2-nav="explore"] { background: var(--primary); color: white; }
.v2-top-actions svg { width: 18px; height: 18px; }
.v2-account { width: 38px; height: 38px; min-height: 0; padding: 0; flex-shrink: 0; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: var(--font-xs); }
.v2-top-tool { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; margin-left: auto; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.v2-top-tool svg { width: 20px; height: 20px; }
.v2-account { margin-left: 0; }
.v2-navigation { padding: var(--space-3) var(--space-2); gap: var(--space-1); overflow-y: auto; border-color: var(--border); }
.v2-navigation button { flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); min-height: 57px; padding: var(--space-2) var(--space-1); border-radius: var(--radius-sm); font-size: var(--font-xs); font-weight: 500; color: var(--muted); }
.v2-navigation button span { display: block; width: 100%; font-size: var(--font-xs); line-height: 1.35; text-align: center; }
.v2-navigation button.is-active { background: var(--primary-soft); color: var(--primary); }
.v2-navigation button:nth-child(6) { margin-top: var(--space-3); }
.v2-shell .sidebar { border-radius: var(--radius-md); box-shadow: var(--shadow); border-color: var(--border); }
.v2-shell .brand-bar { min-height: 36px; padding: var(--space-2) var(--space-4); }
.v2-shell .panel { padding: var(--space-4); }
.v2-shell .stack { gap: var(--space-4); }
.v2-shell .footer { padding: var(--space-2); }
.v2-shell .map-toolbar { padding: var(--space-1); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.v2-shell .map-tool { border-radius: var(--radius-md); min-width: 64px; font-weight: 500; }
.v2-panel-heading h2 { font-size: var(--font-md); font-weight: 600; color: var(--text); }
.v2-panel-heading button { width: 28px; height: 28px; border: 0; background: none; font-size: var(--font-lg); }
.v2-category-filters { gap: var(--space-2); scrollbar-width: none; }
.v2-category-filters button { padding: var(--space-2) var(--space-3); border-radius: 999px; font-size: var(--font-sm); font-weight: 500; border-color: var(--border); }
.v2-place-row { grid-template-columns: 80px minmax(0,1fr); gap: var(--space-3); padding: var(--space-3) 0; border-color: var(--border); }
.v2-place-row img, .v2-place-no-photo { width: 80px; height: 76px; border-radius: var(--radius-sm); background: var(--primary-soft); }
.v2-place-copy strong { font-size: var(--font-base); font-weight: 600; line-height: 1.35; }
.v2-place-copy small { color: var(--muted); font-size: var(--font-xs); }
.v2-promoted { border-radius: 6px; background: #FFF0C2; color: #936314; font-size: var(--font-xs); font-weight: 500; }
.v2-marker-preview { font-family: Inter,system-ui,sans-serif; gap: var(--space-2); }
.v2-marker-preview img { height: 130px; border-radius: var(--radius-sm); }
.v2-marker-preview strong { font-size: var(--font-md); }
.v2-marker-preview button { border-radius: var(--radius-sm); }
.v2-shell .object-popup { font-family: inherit; }
.v2-shell .object-popup-media { margin: 0 calc(-1 * var(--space-5)); position: relative; }
.v2-shell .object-popup-img { height: 230px; }
.v2-shell .object-popup-gallery { position: absolute; bottom: var(--space-2); right: var(--space-2); display: flex; gap: var(--space-1); padding: 0; }
.v2-shell .object-popup-gallery button { width: 66px; height: 52px; border: 2px solid white; border-radius: var(--radius-sm); overflow: hidden; }
.v2-shell .object-popup-gallery img { width: 100%; height: 100%; object-fit: cover; }
.v2-shell .object-popup-body { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5) 0 0; }
.v2-place-heading { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.v2-place-heading { padding-right: var(--space-8); }
.v2-place-heading strong { font-size: var(--font-lg); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.v2-place-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font-size: var(--font-sm); color: var(--muted); }
.v2-shell .object-rating { color: var(--orange); font-size: var(--font-sm); font-weight: 500; }
.v2-shell .object-quick-actions { position: sticky; top: 0; z-index: 3; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-2); margin: 0 calc(-1 * var(--space-5)); padding: var(--space-3) var(--space-5); background: white; border-top: 0; border-bottom: 1px solid var(--border); }
.v2-shell .object-quick-actions button { min-width: 0; min-height: 38px; padding: var(--space-2) var(--space-1); border: 1px solid var(--border); background: white; color: var(--text); border-radius: var(--radius-sm); font-size: var(--font-xs); font-weight: 500; }
.v2-shell .object-quick-actions button:first-child { background: var(--primary); color: white; border-color: var(--primary); }
.v2-shell .object-quick-actions button:last-child { background: var(--primary-soft); color: var(--primary); }
.v2-place-tabs { justify-content: space-between; margin: 0 calc(-1 * var(--space-5)); padding: 0 var(--space-4); gap: var(--space-1); }
.v2-place-tabs button { min-height: 42px; padding: var(--space-3) var(--space-1); font-size: var(--font-sm); }
.v2-contact-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-2); }
.v2-contact-grid > div { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.v2-contact-grid svg { width: 20px; height: 20px; color: var(--muted); }
.v2-contact-grid small { font-size: var(--font-sm); }
.v2-shell .v2-contact-grid span, .v2-shell .v2-contact-grid a { font-size: var(--font-xs); line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.v2-shell .object-popup p { margin: 0; font-size: var(--font-base); line-height: 1.7; color: var(--muted); }
.v2-description { display: grid; gap: var(--space-4); }
.v2-description-excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.v2-description-text:has(details[open]) .v2-description-excerpt { display: none; }
.v2-description-text summary { margin-top: var(--space-2); color: var(--primary); font-size: var(--font-sm); cursor: pointer; }
.v2-mini-map { width: 100%; height: 168px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); flex-shrink: 0; }
.v2-claim { border-radius: var(--radius-sm); background: var(--bg-soft); }
.v2-shell .review-rotator { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.v2-shell .route-box { border-radius: var(--radius-sm); background: var(--bg-soft); box-shadow: none; padding: var(--space-3); }
.v2-shell .route-box input { font-weight: 400; font-size: var(--font-base); }
.v2-shell .route-panel-head strong { font-size: var(--font-lg); font-weight: 600; }
.v2-shell .mode-grid { padding: var(--space-1); border-radius: 999px; background: var(--bg-soft); }
.v2-shell .mode-btn { min-height: 44px; border-radius: 999px; padding: var(--space-2) var(--space-1); }
.v2-shell .mode-btn span { display: none; }
.v2-shell .mode-btn.is-active { background: var(--primary); color: white; box-shadow: none; }
.v2-shell .v2-find-route { width: 100%; border-radius: var(--radius-sm); padding: var(--space-3); font-size: var(--font-base); font-weight: 500; box-shadow: none; }
.v2-shell .pref-row { display: flex; gap: var(--space-1); padding: var(--space-1); background: var(--bg-soft); border-radius: 999px; }
.v2-shell .pill-btn { flex: 1; min-height: 34px; padding: var(--space-2) var(--space-1); border-radius: 999px; font-size: var(--font-xs); font-weight: 500; }
.v2-shell .pill-btn.is-active { background: var(--primary); color: white; }
.v2-shell .pill-btn:disabled { color: var(--muted); cursor: default; opacity: .55; }
.v2-shell .route-card { border-radius: var(--radius-sm); padding: var(--space-3); box-shadow: none; }
.v2-shell .route-metrics { font-size: var(--font-lg); font-weight: 600; }
.v2-shell .route-summary { font-size: var(--font-sm); font-weight: 400; }
.v2-route-future { padding: var(--space-3) 0; font-weight: 500; }
.v2-route-future small { float: right; font-size: var(--font-xs); font-weight: 400; color: var(--muted); }
.v2-selected-point { position: absolute; bottom: 84px; left: calc(var(--rail-width) + var(--sidebar-width) + 32px); z-index: 22; display: flex; align-items: center; gap: var(--space-3); max-width: 360px; padding: var(--space-3); background: white; border-radius: var(--radius-md); box-shadow: var(--shadow); font-size: var(--font-sm); }
.v2-selected-point strong { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.v2-selected-point button { flex-shrink: 0; padding: var(--space-2); border: 0; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary); cursor: pointer; }
.v2-selected-point svg { width: 16px; height: 16px; }
.v2-saved-item { display: grid; grid-template-columns: minmax(0,1fr) 40px; align-items: center; gap: var(--space-1); border-bottom: 1px solid var(--border); }
.v2-saved-item .v2-place-row { border-bottom: 0; }
.v2-remove-saved { display: grid; place-items: center; width: 40px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer; }
.v2-remove-saved svg { width: 18px; height: 18px; }
.v2-remove-saved:hover { background: #FFF1F1; color: #C43D3D; }
.v2-unavailable { padding: var(--space-4) 0; color: var(--muted); font-size: var(--font-base); }

@media (min-width: 768px) and (max-width: 1199px) {
  .v2-shell { --rail-width: 92px; --sidebar-width: 330px; }
  .v2-shell.user-workspace, .v2-shell.admin-workspace { --sidebar-width: 460px; }
  .v2-topbar { gap: var(--space-3); padding: 0 var(--space-3); }
  .v2-top-actions button { padding: var(--space-2); font-size: var(--font-xs); }
  .v2-top-actions button[data-v2-nav="maps"], .v2-top-actions button[data-v2-nav="saved"] { display: none; }
}
@media (max-width: 767px) {
  .v2-shell { --header-height: 96px; --rail-width: 0px; --sidebar-width: 100vw; --bottom-nav: calc(64px + env(safe-area-inset-bottom)); }
  .v2-shell.v2-routing { --sidebar-width: 100vw; }
  .v2-shell .sidebar { z-index: 30; }
  .v2-topbar { height: var(--header-height); padding: var(--space-2) var(--space-3); gap: var(--space-1) var(--space-2); }
  .v2-logo { font-size: var(--font-lg); }
  .v2-logo > span { width: 26px; height: 28px; }
  .v2-account { width: 30px; height: 30px; min-height: 0; padding: 0; }
  .v2-top-actions { display: none; }
  .v2-global-search { height: 40px; max-width: none; flex: 0 0 100%; }
  .v2-navigation { height: var(--bottom-nav); padding: var(--space-1) 0 env(safe-area-inset-bottom); z-index: 45; }
  .v2-navigation button { min-height: 54px; padding: var(--space-1); }
  .v2-navigation button span { font-size: 10px; }
  .v2-navigation button[data-v2-nav="explore"] { display: flex; }
  .v2-navigation button[data-v2-nav="maps"], .v2-navigation button[data-v2-nav="map"], .v2-navigation button[data-v2-nav="objects"], .v2-navigation button[data-v2-nav="business"] { display: none; }
  .v2-shell .sidebar { inset: auto 0 var(--bottom-nav); width: 100%; max-height: calc(100dvh - var(--header-height) - var(--bottom-nav)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: none; transition: height .22s ease; }
  .v2-shell .sidebar[data-sheet-state="collapsed"] { height: 28dvh; }
  .v2-shell .sidebar[data-sheet-state="half"] { height: 56dvh; }
  .v2-shell .sidebar[data-sheet-state="expanded"] { height: calc(100dvh - 160px - env(safe-area-inset-bottom)); }
  .v2-sheet-handle { min-height: 22px; height: 22px; flex-shrink: 0; touch-action: none; cursor: ns-resize; }
  .v2-shell .brand-bar { min-height: 0; height: 0; padding: 0; overflow: hidden; }
  .v2-shell:not(.v2-home) .brand-bar { height: auto; min-height: 28px; padding: 0 var(--space-3) var(--space-1); }
  .v2-shell.v2-home .sidebar { bottom: var(--bottom-nav); }
  .v2-shell.v2-home .panel { flex: 1; }
  .v2-shell .panel { padding: var(--space-2) var(--space-4) var(--space-4); }
  .v2-shell .map-toolbar { inset: 108px auto auto var(--space-3); max-width: calc(100vw - 64px); }
  .v2-shell .map-tool { min-width: 44px; height: 30px; padding: 0 var(--space-1); font-size: 10px; }
  .v2-shell .map-icon-tool { width: 28px; height: 30px; flex-basis: 28px; }
  .v2-shell .maplibregl-ctrl-top-right { inset: 108px var(--space-2) auto auto; }
  .v2-shell .maplibregl-ctrl-top-right .maplibregl-ctrl button { width: 30px; height: 30px; }
  .v2-shell .object-popup-img { height: 170px; }
  .v2-shell .object-popup-body { gap: var(--space-3); padding-top: var(--space-3); }
  .v2-contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v2-selected-point { left: var(--space-3); bottom: calc(28dvh + var(--bottom-nav) + var(--space-3)); max-width: calc(100vw - var(--space-6)); }
}

/* Final polish: presentation only, shared tokens across map surfaces. */
.v2-shell {
  --font-family: "Inter", system-ui, sans-serif; --font-2xl: 28px;
  --color-primary: #1677E8; --color-primary-hover: #0F67CD; --color-primary-soft: #EAF4FF;
  --color-teal: #0DB69F; --color-success: #12A36D; --color-warning: #F5A524;
  --color-danger: #E5484D; --color-violet: #8B5CF6; --color-text: #182230;
  --color-text-secondary: #475467; --color-muted: #667085;
  --color-border: #E4E7EC; --color-bg: #fff; --color-bg-soft: #F7F9FC;
  --radius-xs: 8px; --radius-sm: 10px; --radius-md: 12px; --radius-lg: 16px;
  --radius-xl: 20px; --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(16,24,40,.05);
  --shadow-sm: 0 4px 12px rgba(16,24,40,.08);
  --shadow-md: 0 10px 30px rgba(16,24,40,.12);
  --primary: var(--color-primary); --primary-soft: var(--color-primary-soft);
  --text: var(--color-text); --muted: var(--color-muted); --border: var(--color-border);
  --bg-soft: var(--color-bg-soft); --shadow: var(--shadow-md);
  font-family: var(--font-family);
}
.v2-shell button { transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.v2-shell button:not(:disabled):active { filter: brightness(.97); }
.v2-shell button:disabled { cursor: not-allowed; opacity: .55; }
.v2-shell button:focus-visible, .v2-shell input:focus-visible, .v2-shell select:focus-visible, .v2-shell summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: 0 0 0 2px white; }
.v2-topbar { height: var(--header-height); align-items: center; }
.v2-logo { font-size: 22px; font-weight: 600; }
.v2-logo > span { width: 28px; height: 30px; }
.v2-global-search { border-color: #EEF1F5; border-radius: var(--radius-md); background: white; }
.v2-global-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px #1677E810; }
.v2-top-actions button, .v2-top-actions button[data-v2-nav="explore"] { min-height: 36px; background: none; color: var(--color-text-secondary); border-radius: var(--radius-md); }
.v2-top-actions button:hover { background: #F4F7FA; }
.v2-top-actions button.is-active, .v2-top-actions button.is-active[data-v2-nav="explore"] { background: var(--primary-soft); color: var(--primary); }
.v2-top-tool:hover, .v2-account:hover { background: var(--primary-soft); }
.v2-navigation button { border-radius: var(--radius-md); text-align: center; }
.v2-navigation button:nth-child(6) { border: 0; }
.v2-panel-heading { align-items: flex-start; }
.v2-panel-heading h2 { max-width: 190px; font-size: var(--font-md); font-weight: 600; }
.v2-panel-heading .v2-see-all { width: auto; height: auto; min-height: 28px; max-width: 82px; padding: 0; font-size: var(--font-sm); line-height: 1.4; font-weight: 500; text-align: right; }
.v2-see-all:hover { text-decoration: underline; }
.v2-category-filters button { height: 32px; min-height: 32px; padding: 0 var(--space-3); background: var(--bg-soft); color: var(--color-text-secondary); border: 0; }
.v2-place-row { transition: transform .16s ease, box-shadow .16s ease, background .16s ease; border-radius: var(--radius-md); padding: var(--space-3) 0; }
.v2-place-row:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); background: white; }
.v2-place-row img, .v2-place-no-photo { border-radius: var(--radius-md); }
.v2-place-no-photo svg { width: 24px; height: 24px; color: #98A2B3; }
.v2-place-copy strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-row-rating { display: flex; gap: var(--space-1); align-items: center; }
.v2-row-rating svg { width: 12px; height: 12px; color: var(--color-warning); fill: #F5A52418; }
.v2-promoted { background: #FFF3D8; color: #946B20; padding: 2px var(--space-1); font-size: 10px; }
.v2-shell .layer-object-marker { width: 34px; height: 42px; background: transparent; border: 0; padding: 0; }
.v2-shell .layer-object-marker-pin { position: absolute; inset: 0; width: 34px; height: 42px; transform: none; border: 0; border-radius: 0; background: var(--marker-color); clip-path: path('M17 0C7.61 0 0 7.61 0 17C0 29 17 42 17 42S34 29 34 17C34 7.61 26.39 0 17 0Z'); box-shadow: none; display: flex; justify-content: center; align-items: flex-start; padding-top: 8px; }
.v2-shell .layer-object-marker-pin svg { width: 18px; height: 18px; color: white; }
.v2-shell .layer-object-marker-pin span { transform: none; }
.v2-shell .layer-object-marker { filter: drop-shadow(0 2px 3px #18223035); }
.v2-shell .layer-object-marker.is-promoted { filter: drop-shadow(0 0 3px #F5A524B0) drop-shadow(0 2px 3px #18223025); }
.v2-shell .layer-object-marker.is-selected .layer-object-marker-pin { transform: scale(1.12); transform-origin: center bottom; }
.v2-shell .layer-object-marker.is-selected { filter: drop-shadow(1px 0 white) drop-shadow(-1px 0 white) drop-shadow(0 -1px white) drop-shadow(0 3px 5px #18223035); }
.v2-shell .layer-object-marker:hover .layer-object-marker-pin { transform: scale(1.08); transform-origin: center bottom; }
.v2-shell .layer-object-marker-label { font-size: var(--font-xs); font-weight: 500; box-shadow: var(--shadow-xs); }
.v2-shell .maplibregl-popup-content { padding: var(--space-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.v2-marker-preview { width: 280px; max-width: 100%; padding: 0; }
.v2-marker-preview img { height: 136px; border-radius: var(--radius-md); }
.v2-marker-preview strong { font-weight: 600; }
.v2-marker-preview small { font-size: var(--font-sm); }
.v2-marker-preview button { display: flex; align-items: center; justify-content: center; gap: var(--space-1); flex: 1; height: 36px; padding: 0 var(--space-2); font-weight: 500; }
.v2-marker-preview button:hover { background: var(--color-primary-hover); }
.v2-preview-rating { display: flex; gap: var(--space-1); align-items: center; }
.v2-preview-rating svg { color: var(--color-warning); }
.v2-shell .object-popup-img { height: auto; aspect-ratio: 1.9; }
.v2-shell .object-popup-gallery button { border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); }
.v2-shell .object-popup-gallery button:hover { filter: brightness(1.06); box-shadow: var(--shadow-sm); }
.v2-shell .object-popup-image-btn { position: relative; }
.v2-shell .object-popup-image-btn.is-loading::after { content: ''; position: absolute; inset: 0; background: #EDF1F5; animation: v2-pulse 1.3s ease-in-out infinite alternate; }
.v2-place-heading strong { font-size: var(--font-xl); }
.v2-shell .object-quick-actions button { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-1); height: 40px; font-size: var(--font-xs); }
.v2-shell .object-quick-actions button:hover { background: var(--bg-soft); }
.v2-shell .object-quick-actions button:first-child:hover { background: var(--color-primary-hover); }
.v2-shell .object-quick-actions button:last-child { background: white; border-color: #0DB69F55; color: #087E70; }
.v2-shell .object-popup p { line-height: 1.6; }
.v2-claim { background: #F0FAF8; color: #22695F; padding: var(--space-3); }
.v2-shell .route-box { border: 0; background: none; padding: 0; }
.v2-shell .route-line { grid-template-columns: 24px minmax(0,1fr); gap: var(--space-2); min-height: 64px; }
.v2-shell .route-line label { gap: var(--space-1); padding-right: 40px; }
.v2-shell .route-line input { width: 100%; height: 42px; padding: 0 var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: white; font-size: var(--font-base); }
.v2-shell .route-line input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #1677E810; }
.v2-shell .route-rail { left: 12px; top: 42px; height: 48px; }
.v2-shell .route-swap-btn { right: 0; top: 60px; width: 32px; height: 36px; border: 0; border-radius: var(--radius-sm); background: var(--bg-soft); box-shadow: none; }
.v2-shell .mode-btn.is-active { background: var(--primary-soft); color: var(--primary); }
.v2-shell .mode-btn:hover { background: #EDF2F7; }
.v2-shell .v2-find-route { height: 44px; min-height: 44px; padding: 0 var(--space-3); }
.v2-shell .route-card { border: 0; border-bottom: 1px solid var(--border); background: white; }
.v2-shell .route-card.is-active { border-color: var(--border); background: white; }
.v2-shell .route-metrics span:first-child { color: var(--text); font-size: var(--font-xl); }
.v2-shell .route-metrics span:last-child { font-size: var(--font-base); font-weight: 400; }
.v2-shell .back-btn, .v2-shell .read-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-2); }
.map-style-menu-btn { display: none; }
.v2-shell .map-icon-tool svg { width: 18px; height: 18px; }
.v2-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) 0; color: var(--muted); font-size: var(--font-sm); }
.v2-empty p { margin: 0; line-height: 1.6; }
.v2-skeleton-row { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: var(--space-3); padding: var(--space-3) 0; }
.v2-skeleton-row > span, .v2-skeleton-row b, .v2-route-skeleton > * { display: block; background: #EDF1F5; border-radius: var(--radius-md); animation: v2-pulse 1.3s ease-in-out infinite alternate; }
.v2-skeleton-row > span { height: 76px; }
.v2-skeleton-row b { height: 12px; margin: var(--space-2) 0; }
.v2-skeleton-row b:last-child { width: 60%; }
.v2-route-skeleton { display: grid; gap: var(--space-3); min-height: 240px; }
.v2-route-skeleton span { height: 20px; width: 60%; }
.v2-route-skeleton div { height: 168px; }
@keyframes v2-pulse { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .v2-shell *, .v2-shell *::before { animation: none !important; transition: none !important; } }
@media (max-width: 767px) {
  .v2-shell { --header-height: calc(68px + env(safe-area-inset-top)); }
  .v2-topbar { height: var(--header-height); padding: env(safe-area-inset-top) var(--space-3) 0; flex-wrap: nowrap; align-items: center; gap: var(--space-2); }
  .v2-logo { font-size: 18px; flex: 0 0 auto; }
  .v2-logo > span { display: none; }
  .v2-global-search { order: 0; flex: 1; min-width: 0; height: 40px; }
  .v2-global-search input { font-size: var(--font-sm); }
  .v2-global-search > svg { width: 16px; height: 16px; }
  .v2-account { width: 28px; height: 28px; }
  .v2-top-tool { display: none; }
  .v2-shell .sidebar { max-height: calc(100dvh - var(--header-height) - var(--bottom-nav)); border-radius: 24px 24px 0 0; box-shadow: 0 -4px 24px #18223012; transition: height .25s ease-out; }
  .v2-shell .sidebar[data-sheet-state="expanded"] { height: calc(100dvh - var(--header-height) - var(--bottom-nav)); }
  .v2-shell .panel { overscroll-behavior: contain; }
  .v2-sheet-handle { height: 28px; min-height: 28px; }
  .v2-sheet-handle span { width: 42px; height: 4px; background: #D0D5DD; }
  .v2-shell .object-quick-actions { top: var(--space-2); }
  .v2-shell .object-quick-actions button { flex-direction: column; gap: 2px; padding: var(--space-1); }
  .v2-place-heading strong { font-size: var(--font-lg); }
  .v2-shell .map-toolbar { inset: calc(var(--header-height) + var(--space-3)) auto auto var(--space-3); max-width: none; border-radius: var(--radius-md); gap: var(--space-1); padding: var(--space-1); }
  .map-style-menu-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-sm); background: white; color: var(--color-text-secondary); cursor: pointer; }
  .map-style-menu-btn svg { width: 20px; height: 20px; }
  .v2-shell .map-toolbar .map-toolbar-group { display: none; }
  .v2-shell .map-toolbar.style-menu-open .map-toolbar-group { display: flex; position: absolute; left: 0; top: calc(100% + var(--space-2)); padding: var(--space-1); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-md); }
  .v2-shell .map-toolbar.style-menu-open .map-tool { height: 36px; min-width: 64px; padding: 0 var(--space-2); font-size: var(--font-sm); }
  .v2-shell .map-icon-tool { width: 36px; height: 36px; flex-basis: 36px; background: white; color: var(--color-text-secondary); border-radius: var(--radius-sm); }
  .v2-shell .map-icon-tool.is-active { background: var(--primary-soft); color: var(--primary); }
  .v2-shell .maplibregl-ctrl-top-right { inset: calc(var(--header-height) + var(--space-3)) var(--space-3) auto auto; }
  .v2-shell .maplibregl-ctrl-top-right .maplibregl-ctrl { display: flex; flex-direction: column; }
  .v2-shell .maplibregl-ctrl-top-right .maplibregl-ctrl button { width: 36px; height: 36px; }
  .v2-shell .maplibregl-ctrl-compass { display: none; }
}
