@layer legacy {
/* 구역노트는 테마와 관계없이 밝게: 네이버 지도에는 다크가 없고, 밖에서 보는 화면이라 밝은 지도가 잘 읽힌다.
   하단 메뉴만 다른 탭과 같이 앱 테마(다크면 연기 유리)를 따른다. 알림도 라이트와 같다(어두운 판). */
html[data-theme="dark"] .app[data-view="routes"] > :not(.bottom-nav),
body[data-theme="dark"] .app[data-view="routes"] > :not(.bottom-nav) {
  --bg:#F5F5F5; --panel:var(--on-color); --panel2:#F7F7F8; --panel3:#F4F4F5;
  --line:rgba(112,115,124,.18); --line-strong:#DBDCDF;
  --text:#171719; --text-sub:rgba(46,47,51,.88); --muted:#676A72; --soft:#676A72;
  --gold:#1B62D6; --gold-ink:var(--on-color); --gold2:#3B82E8;
  --primary-bg:rgba(26,115,232,.10); --primary-dark:#1558B0; --primary-border:rgba(26,115,232,.28);
  --red:#DC3545; --red-bg:rgba(220,53,69,.10); --red-border:rgba(220,53,69,.20);
  --toast-bg:rgba(28,28,30,.92); --toast-text:#FFFFFF; --toast-shadow:0 8px 24px rgba(0,0,0,.22);
  --blue:#1A73E8; --green:#28A745; --green-bg:rgba(40,167,69,.10);
  --warn:#8E5100; --warn-bg:rgba(142,81,0,.10); --warn-border:rgba(142,81,0,.32);
  --button-secondary:var(--panel2); --button-secondary-text:var(--text); --button-secondary-border:var(--line);
  --shadow-cta:0 4px 12px rgba(26,115,232,.20);
  --nav-glass:linear-gradient(160deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.26) 55%, rgba(255,255,255,.44) 100%);
  --nav-glass-solid:rgba(249,249,251,.96);
  --nav-glass-border:rgba(255,255,255,.6);
  --nav-glass-shadow:0 16px 36px rgba(16,24,40,.2), 0 2px 6px rgba(16,24,40,.08), inset 0 1.5px 0 var(--on-color), inset 0 -1px 0 rgba(255,255,255,.5);
  --nav-glass-filter:blur(14px) saturate(220%) brightness(1.05);
  --nav-lens:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.62));
  --nav-lens-rim:inset 0 1px 0 var(--on-color), inset 0 -1px 0 rgba(16,24,40,.06), 0 3px 10px rgba(16,24,40,.14);
  color-scheme:light; color:var(--text);
}
/* 회색 면 토큰(components.css)은 html에서 다크 글자색으로 계산돼 내려오므로, 밝은 글자색으로 여기서 다시 계산한다. */
html[data-theme="dark"] .app[data-view="routes"] > :not(.bottom-nav),
body[data-theme="dark"] .app[data-view="routes"] > :not(.bottom-nav) {
  --btn-fill:color-mix(in srgb, var(--text) 7%, transparent);
  --btn-fill-pressed:color-mix(in srgb, var(--text) 12%, transparent);
  --field-fill:color-mix(in srgb, var(--text) 6%, transparent);
}
/* 알림은 지도 앱처럼 위쪽, 42px 위쪽 줄 바로 아래에 뜬다(2026-10-13 구역노트 흐름 시안, 1단계에서 줄 높이 42px). */
.app[data-view="routes"] > .toast { top:calc(max(16px, calc(env(safe-area-inset-top) + 8px)) + 54px); bottom:auto; }
/* 구역 만들기의 지도 단계(3단계 A2)에는 위쪽 줄 아래 검은 안내 줄(32px)과 지도 이동(42px)이 있어, 알림은 그 아래에 뜬다. */
.app[data-view="routes"]:has(.route-note-zone-guide:not([hidden])) > .toast { top:calc(max(16px, calc(env(safe-area-inset-top) + 8px)) + 92px); }
.app[data-view="routes"]:has(.route-note-zone-place-bar:not([hidden])) > .toast { top:calc(max(16px, calc(env(safe-area-inset-top) + 8px)) + 140px); }
/* 다크 테마의 밝은 팔레트와 같은 우선순위로 알림 글자색을 복원한다. 종류 색은 앞 원에만. */
html[data-theme="dark"] .app[data-view="routes"] > .toast,
body[data-theme="dark"] .app[data-view="routes"] > .toast { color:var(--toast-text); }
/* 구역노트 — 지도 우선 화면. RouteNote의 조작 방식을 플렉스노트 토큰으로 옮긴다. */
.view-routes { background:var(--bg); color:var(--text); }
[data-route-notes-fullscreen="true"] {
  position:fixed;
  z-index:30;
  inset:0;
  width:100%;
  max-width:none;
  height:100dvh;
  overflow:auto;
  background:var(--bg);
}
body:has([data-route-notes-fullscreen="true"]) { overflow:hidden; }
body:has([data-route-notes-fullscreen="true"]) .bottom-nav,
body:has([data-route-notes-fullscreen="true"]) .fixture-nav { display:none !important; }
[data-route-notes-fullscreen="true"] .route-notes-workspace { height:var(--route-note-viewport-h,100dvh); }
.route-notes-workspace .route-notes-fullscreen-exit {
  position:absolute;
  top:max(12px,env(safe-area-inset-top));
  right:12px;
  z-index:6;
  background:var(--panel);
  border-color:var(--line);
  box-shadow:var(--shadow-card);
}
.route-notes-header,.route-notes-detail-head,.route-notes-section-head,.route-notes-detail-actions,.route-notes-map-actions,.route-notes-form-actions,.route-notes-tip-actions {
  display:flex;
  align-items:center;
  gap:8px;
}
.route-notes-header {
  gap:4px;
  padding:14px 14px 10px;
}
.route-notes-section-head {
  justify-content:space-between;
}
.route-notes-header h2,.route-notes-detail-copy h3,.route-notes-section-head h3,.route-notes-tip h4 {
  margin:0;
  color:var(--text);
  font-weight:700;
  letter-spacing:-.022em;
}
.route-notes-header h2 {
  font-size:var(--fs-title-l);
}
.route-notes-kicker,.route-notes-tip-type {
  margin:0 0 2px;
  color:var(--muted);
  font-size:var(--fs-caption);
  font-weight:500;
  letter-spacing:.08em;
}

/* ── 공통 버튼 ─────────────────────────────────────────────── */
.route-notes-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:48px;
  padding:0 14px;
  border:1px solid var(--line-strong);
  border-radius:var(--r-full);
  background:var(--button-secondary);
  color:var(--button-secondary-text);
  font:600 var(--fs-label) var(--font-ui);
  cursor:pointer;
}
.route-notes-button:active,.route-notes-icon-button:active {
  opacity:.72;
}
.route-notes-button:disabled,.route-notes-icon-button:disabled {
  opacity:.45;
  cursor:not-allowed;
}
.route-notes-button.primary {
  border-color:transparent;
  background:var(--gold);
  color:var(--gold-ink);
}
.route-notes-button.danger {
  color:var(--red);
}
.route-notes-icon-button {
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid transparent;
  border-radius:var(--r-md);
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}
.route-notes-icon-button[hidden] { display:none; }
.route-notes-workspace [hidden] { display:none !important; }
.route-notes-icon-button:hover {
  background:var(--panel2);
  color:var(--text);
}
.route-notes-icon-button[aria-pressed="true"] {
  color:var(--gold);
}
.route-notes-icon {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.route-notes-star[aria-pressed="true"] .route-notes-icon {
  fill:color-mix(in srgb,var(--gold) 26%,transparent);
}
.route-notes-button:focus-visible,.route-notes-icon-button:focus-visible,.route-notes-searchbar:focus-within,
.route-notes-zone-main:focus-visible,.route-notes-suggest-row:focus-visible,
.route-notes-field input:focus-visible,.route-notes-field textarea:focus-visible,.route-notes-field select:focus-visible {
  outline:3px solid color-mix(in srgb,var(--gold) 36%,transparent);
  outline-offset:2px;
}

/* ── 지도 작업 공간 ─────────────────────────────────────────── */
.route-notes-workspace {
  --route-note-glass:color-mix(in srgb,var(--panel) 90%,transparent);
  --route-note-panel-w:min(390px,38vw);
  position:relative;
  isolation:isolate;
  height:calc(var(--route-note-viewport-h, 100dvh) - var(--nav-h) - var(--safe-b));
  min-height:0;
  overflow:hidden;
  background:var(--panel2);
}
.route-notes-workspace .route-notes-overview-map {
  position:absolute !important;
  z-index:0;
  inset:0;
  width:100%;
  height:100%;
  min-height:0;
  overflow:hidden !important;
  background:var(--panel2);
}
.route-notes-workspace .route-notes-overview-map > * { max-width:100%; }
/* ── 지도 위 검색·필터 ──────────────────────────────────────── */
.route-notes-topbar {
  position:absolute;
  z-index:5;
  top:max(12px, env(safe-area-inset-top));
  right:12px;
  left:12px;
  display:grid;
  gap:8px;
  pointer-events:none;
}
.route-notes-topbar > * { pointer-events:auto; }
.route-notes-searchbar {
  display:flex;
  align-items:center;
  gap:10px;
  height:52px;
  padding:0 6px 0 14px;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:var(--route-note-glass);
  color:var(--muted);
  box-shadow:var(--shadow-card);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.route-notes-searchbar > .route-notes-icon { flex:0 0 auto; }
.route-notes-search {
  flex:1;
  min-width:0;
  height:100%;
  border:0;
  background:transparent;
  color:var(--text);
  font:500 var(--fs-body-l) var(--font-ui);
}
.route-notes-search::placeholder { color:var(--muted); opacity:1; }
.route-notes-search:focus { outline:none; }
.route-notes-search::-webkit-search-cancel-button,.route-notes-search::-webkit-search-decoration { display:none; }
.route-notes-search-clear { width:48px; height:48px; border-radius:var(--r-full); }
.route-notes-searchbar:not([data-filled="true"]) .route-notes-search-clear { display:none; }
.route-notes-suggest {
  max-height:min(46dvh,340px);
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:var(--route-note-glass);
  box-shadow:var(--shadow-raise);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.route-notes-suggest-row {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:56px;
  padding:10px 14px;
  border:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  text-align:left;
  cursor:pointer;
}
.route-notes-suggest-row:last-child { border-bottom:0; }
.route-notes-suggest-row:active { background:var(--panel2); }
.route-notes-suggest-glyph {
  display:grid;
  flex:0 0 auto;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:var(--r-full);
  background:var(--panel2);
  color:var(--muted);
}
.route-notes-suggest-copy { display:grid; gap:4px; min-width:0; }
.route-notes-suggest-title-row { display:flex; align-items:center; gap:8px; min-width:0; }
.route-notes-badge {
  flex:0 0 auto;
  padding:2px 6px;
  border:1px solid var(--line-strong);
  border-radius:var(--r-xs);
  color:var(--muted);
  font-size:var(--fs-caption);
  font-style:normal;
  font-weight:700;
  line-height:1.3;
}
.route-notes-suggest-title-row strong {
  overflow:hidden;
  color:var(--text);
  font-size:var(--fs-body-l);
  font-weight:700;
  letter-spacing:-.02em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.route-notes-suggest-copy small {
  overflow:hidden;
  color:var(--muted);
  font-size:var(--fs-label);
  text-overflow:ellipsis;
  white-space:nowrap;
}
.route-notes-suggest-empty { margin:0; padding:18px; color:var(--muted); font-size:var(--fs-body); text-align:center; }
.route-notes-tabs {
  display:flex;
  gap:4px;
  width:max-content;
  max-width:100%;
  overflow:auto;
  padding:4px;
  border-radius:var(--r-full);
  background:var(--route-note-glass);
  box-shadow:var(--shadow-card);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  scrollbar-width:none;
}
.route-notes-tabs::-webkit-scrollbar { display:none; }
.route-notes-tabs .route-notes-button {
  flex:0 0 auto;
  min-height:48px;
  border:0;
  background:transparent;
  color:var(--muted);
  white-space:nowrap;
}
.route-notes-tabs .route-notes-button.active {
  background:var(--panel);
  color:var(--text);
  font-weight:700;
  box-shadow:var(--shadow-card);
}

/* ── 지도 모서리 버튼 ───────────────────────────────────────── */
.route-notes-fabs {
  position:absolute;
  z-index:3;
  right:12px;
  bottom:calc(var(--route-note-sheet-h, 0px) + 12px);
  display:grid;
  gap:8px;
  transition:bottom var(--route-sheet-move) var(--motion-ease-out);
}
.route-notes-fab {
  min-width:48px;
  height:48px;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:var(--route-note-glass);
  color:var(--text);
  box-shadow:var(--shadow-card);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.route-notes-fab:hover { background:var(--panel); color:var(--text); }
.route-notes-fab.primary {
  border-color:transparent;
  background:var(--gold);
  color:var(--gold-ink);
}

/* ── 바텀시트 ──────────────────────────────────────────────── */
.route-notes-sheet {
  position:absolute;
  z-index:4;
  right:0;
  bottom:0;
  left:0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  height:var(--route-note-sheet-size, var(--route-note-sheet-h, 40%));
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:var(--r-xl) var(--r-xl) 0 0;
  background:var(--panel);
  box-shadow:var(--shadow-raise);
  transition:
    height var(--route-sheet-move) var(--motion-ease-out),
    transform var(--route-sheet-in) var(--motion-ease-out),
    opacity var(--route-sheet-in) var(--motion-ease-out),
    display var(--route-sheet-in) allow-discrete;
}
.route-notes-sheet-head {
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:50px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.route-notes-sheet-heading { display:grid; grid-column:1/-1; grid-row:1; min-width:0; gap:4px; text-align:left; }
.route-notes-sheet-back { grid-column:2; grid-row:2; }
.route-notes-workspace[data-selected="false"] .route-notes-sheet { grid-template-rows:auto minmax(0,1fr); }
.route-notes-workspace[data-selected="false"] .route-notes-sheet-body { display:block; }
.route-notes-workspace[data-selected="false"] .route-notes-sheet-head { padding:12px 16px; }
.route-notes-create-zone { width:100%; margin-bottom:12px; }
.route-notes-workspace[data-editing="true"] .route-notes-sheet { grid-template-rows:auto minmax(0,1fr); }
.route-notes-workspace[data-editing="true"] .route-notes-sheet-head { padding-top:14px; }
.route-notes-workspace[data-editing="true"] .route-notes-sheet-body { scroll-padding-block:12px 72px; }
.route-notes-sheet-title {
  overflow:hidden;
  color:var(--text);
  font-size:var(--fs-title);
  font-weight:700;
  letter-spacing:-.022em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
/* 구역코드는 자릿수가 고정된 문자열이라 모노로 둔다. */
.route-notes-sheet-title[data-code="true"] { font-family:var(--font-code); letter-spacing:.01em; }
.route-notes-sheet-subtitle {
  overflow:hidden;
  color:var(--muted);
  font-size:var(--fs-caption);
  text-overflow:ellipsis;
  white-space:nowrap;
}
.route-notes-sheet-body {
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:12px 14px calc(18px + env(safe-area-inset-bottom));
}

/* ── 구역 목록 ─────────────────────────────────────────────── */
.route-notes-list,.route-notes-tips { display:grid; gap:8px; }
.route-notes-zone-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  padding-right:6px;
  border-radius:var(--r-lg);
  background:var(--panel2);
}
.route-notes-zone-main {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-width:0;
  min-height:64px;
  padding:12px 4px 12px 16px;
  border:0;
  background:transparent;
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
.route-notes-zone-main > .route-notes-icon { flex:0 0 auto; color:var(--muted); }
.route-notes-zone-copy { display:grid; flex:1; gap:4px; min-width:0; }
.route-notes-zone-copy strong {
  font-family:var(--font-code);
  font-size:var(--fs-body-l);
  font-weight:700;
  letter-spacing:.01em;
}
.route-notes-zone-copy small {
  overflow:hidden;
  color:var(--muted);
  font-size:var(--fs-label);
  font-weight:500;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.route-notes-empty,.route-notes-loading {
  margin:0;
  padding:24px 16px;
  color:var(--muted);
  font-size:var(--fs-body);
  line-height:1.55;
  text-align:center;
}
.route-notes-state {
  display:grid;
  justify-items:center;
  gap:12px;
  padding:40px 20px;
  color:var(--muted);
  text-align:center;
}
.route-notes-state.error,.route-notes-map-error { color:var(--red); }

/* ── 구역 상세 ─────────────────────────────────────────────── */
.route-notes-detail-head {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:6px;
  margin-bottom:12px;
}
.route-notes-detail-copy { min-width:0; padding-top:6px; }
.route-notes-detail-copy p {
  max-width:62ch;
  margin:0;
  color:var(--muted);
  font-size:var(--fs-body);
  line-height:1.55;
}
.route-notes-detail-copy .route-notes-no-polygon { color:var(--warn); }
.route-notes-detail-actions { align-self:start; flex-wrap:wrap; justify-content:flex-end; }
.route-notes-section-head { margin-top:18px; margin-bottom:8px; }
.route-notes-section-head h3 { font-size:var(--fs-body-l); }
.route-notes-zone-photos { margin:18px 0 14px; }
.route-notes-zone-photos summary { min-height:48px; align-content:center; color:var(--text); font-size:var(--fs-body); cursor:pointer; }
.route-notes-zone-photos h3 { margin:0; color:var(--text); font-size:var(--fs-body); }
.route-notes-zone-photo-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(124px,1fr)); gap:8px; margin-top:10px; }
.route-notes-zone-photo { display:block; min-height:44px; border-radius:var(--r-md); outline-offset:3px; }
.route-notes-zone-photo:focus-visible { outline:3px solid color-mix(in srgb,var(--gold) 36%,transparent); }
.route-notes-zone-photo img { display:block; width:100%; aspect-ratio:4/3; border-radius:var(--r-md); background:var(--panel2); object-fit:cover; }

/* ── 현장 팁 카드 ──────────────────────────────────────────── */
.route-notes-tip {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  padding:14px;
  border-radius:var(--r-lg);
  background:var(--panel2);
}
.route-notes-tip-glyph {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:var(--r-full);
  background:var(--panel);
  color:var(--muted);
}
.route-notes-tip-glyph[data-alert="true"] { background:var(--red-bg); color:var(--red); }
.route-notes-tip-copy { min-width:0; overflow-wrap:anywhere; }
.route-notes-tip h4 { font-size:var(--fs-body-l); }
.route-notes-tip p:not(.route-notes-tip-type) {
  margin:6px 0 0;
  color:var(--muted);
  font-size:var(--fs-label);
  line-height:1.55;
  white-space:pre-wrap;
}
.route-notes-tip .route-notes-author { color:var(--soft); font-size:var(--fs-caption); }
.route-notes-tip-actions { align-self:start; flex-wrap:wrap; justify-content:flex-end; }
.route-notes-tip > .route-notes-photos { grid-column:1/-1; }
.route-notes-photos {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(112px,1fr));
  gap:8px;
  margin-top:10px;
}
.route-notes-photos img {
  width:100%;
  aspect-ratio:1/1;
  border-radius:var(--r-md);
  background:var(--panel2);
  object-fit:cover;
}
.route-notes-photo { display:grid; gap:6px; margin:0; }
.route-notes-photo .photo-delete { min-height:48px; padding-inline:10px; font-size:var(--fs-caption); }
.route-notes-existing-photos > p { margin:0; color:var(--muted); font-size:var(--fs-label); font-weight:500; }

/* ── 입력 폼 ───────────────────────────────────────────────── */
.route-notes-form {
  display:grid;
  gap:14px;
  margin:0 14px 24px;
  padding:18px;
  border-radius:var(--r-lg);
  background:var(--panel);
  box-shadow:var(--shadow-card);
}
.route-notes-sheet-body .route-notes-form { margin:0; padding:14px 0 18px; box-shadow:none; }
.route-notes-field {
  display:grid;
  gap:6px;
  color:var(--muted);
  font-size:var(--fs-label);
  font-weight:500;
}
.route-notes-field input,.route-notes-field textarea,.route-notes-field select {
  box-sizing:border-box;
  width:100%;
  min-height:48px;
  padding:10px 12px;
  border:1px solid var(--line-strong);
  border-radius:var(--r-md);
  background:var(--panel2);
  color:var(--text);
  font:500 var(--fs-body) var(--font-ui);
  resize:vertical;
}
.route-notes-coordinate-help { margin:0; color:var(--muted); font-size:var(--fs-label); line-height:1.5; }
.route-notes-coordinate-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.route-notes-form-actions { flex-wrap:wrap; justify-content:flex-end; padding-top:4px; }
.route-notes-sheet-body .route-notes-form-actions { position:sticky; bottom:0; padding:10px 0; background:var(--panel); }
.route-notes-form-actions .route-notes-button { min-width:106px; }
.route-notes-map-card {
  overflow:hidden;
  border-radius:var(--r-lg);
  background:var(--panel2);
}
.route-notes-map-card .route-notes-coordinate-help { padding:0 10px 10px; }
.route-notes-map-actions { flex-wrap:wrap; justify-content:flex-end; padding:10px; }
.route-notes-map { position:relative; min-height:280px; background:var(--panel2); }
.route-notes-map-status,.route-notes-map-error {
  display:grid;
  min-height:280px;
  place-items:center;
  margin:0;
  padding:18px;
  color:var(--muted);
  font-size:var(--fs-label);
  text-align:center;
}
.route-notes-workspace .route-notes-map-error,
.route-notes-workspace .route-notes-map-status { min-height:100%; }

/* ── 화면 크기 ─────────────────────────────────────────────── */
@media (max-width:430px) {
  .route-notes-coordinate-grid { grid-template-columns:1fr; }
  .route-notes-form-actions .route-notes-button { flex:1; }
  .route-notes-map { min-height:240px; }
}
@media (max-height:520px) and (orientation:landscape) {
  .route-notes-searchbar { height:48px; }
  .route-notes-sheet-subtitle { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .route-notes-sheet,.route-notes-fabs { transition:none; }
}
.route-notes-zone-editor-host { min-height:0; overflow:auto; overscroll-behavior:contain; }
.route-notes-location-menu { display:grid; gap:10px; padding:4px 0; }
.route-notes-location-menu .route-notes-button { justify-content:center; min-height:48px; }
.route-notes-marker-field { min-width:0; padding:0; margin:0; border:0; }
.route-notes-marker-field legend { font-weight:600; margin-bottom:8px; }
.route-notes-marker-picker summary { display:flex; align-items:center; gap:10px; list-style:none; min-height:48px; padding:8px 12px; border:1px solid var(--line-strong); border-radius:var(--r-md); cursor:pointer; }
.route-notes-marker-picker summary::-webkit-details-marker { display:none; }
.route-notes-marker-picker summary span { flex:1; }
.route-notes-marker-picker[open] .route-notes-marker-grid { margin-top:8px; }
.route-notes-marker-picker summary:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.route-notes-marker-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.route-notes-marker-grid .route-notes-button { display:flex; flex-direction:column; min-height:64px; padding:8px 4px; text-align:center; font-size:var(--fs-label); }
.route-notes-marker-grid [aria-pressed="true"] { border-color:var(--gold); color:var(--gold); background:var(--primary-bg); }
.route-notes-tip-location { display:grid; gap:8px; padding:12px; border:1px solid var(--line); border-radius:var(--r-md); }
.route-notes-tip-location p { margin:0; }

}
