@layer legacy {
/* ── 팁 쓰기(2026-10 시안): 취소·제목·저장 머리, 글 한 칸, 종류는 아이콘 줄, 아래는 조용한 줄 ── */
.view-routes .route-notes-workspace[data-editing="true"] .route-notes-sheet { height:auto; max-height:calc(100% - max(16px, calc(env(safe-area-inset-top) + 8px))); }
.view-routes .route-notes-workspace[data-editing="true"] .route-notes-sheet-head { display:none; }
.view-routes .route-notes-workspace[data-editing="true"] .route-notes-sheet-body { padding:0 14px 14px; }
.view-routes .route-notes-sheet-body .route-notes-tip-form { display:grid; gap:12px; margin:0; padding:0 0 6px; }
.view-routes .route-notes-tip-form .route-notes-tip-head { position:static; display:flex; align-items:center; justify-content:space-between; gap:8px; height:52px; margin:0; padding:0; background:transparent; }
.view-routes .route-notes-tip-form .route-notes-tip-head-title { font-size:var(--fs-title-m); font-weight:700; letter-spacing:-.02em; color:var(--text); }
.view-routes .route-notes-tip-form .route-notes-tip-head-button { min-width:0; min-height:var(--btn-h); padding:0 6px; border:0; background:transparent; color:var(--gold); font-size:var(--btn-fs); font-weight:600; }
.view-routes .route-notes-tip-form .route-notes-tip-head-button.primary-text { font-weight:700; }
/* 글 한 칸: 첫 줄(제목)과 아랫줄(상세)이 한 상자 안에 */
.view-routes .route-notes-tip-box { border-radius:var(--r-lg); background:var(--map-glass-hi); box-shadow:0 0 0 .5px var(--map-hairline-strong); overflow:hidden; }
.view-routes .route-notes-tip-box .route-notes-field { display:block; }
.view-routes .route-notes-tip-box .route-notes-field > span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.view-routes .route-notes-tip-box .route-notes-field input,
.view-routes .route-notes-tip-box .route-notes-field textarea { min-height:0; border:0; border-radius:0; background:transparent; }
.view-routes .route-notes-tip-box .route-notes-field input { height:50px; padding:0 14px; font-size:var(--fs-title-m); font-weight:600; }
.view-routes .route-notes-tip-box .route-notes-field textarea { padding:12px 14px 12px; box-shadow:inset 0 1px 0 var(--map-hairline); font-size:var(--fs-title); font-weight:500; line-height:1.5; resize:none; }
.view-routes .route-notes-tip-box .route-notes-field input:focus-visible,
.view-routes .route-notes-tip-box .route-notes-field textarea:focus-visible { outline:none; }
.view-routes .route-notes-tip-box:focus-within { box-shadow:0 0 0 2px color-mix(in srgb, var(--gold) 45%, transparent); }
/* 종류: 아이콘만, 고른 것은 파란 칠, 이름은 줄 아래 작게 */
.view-routes .route-notes-tip-form .route-notes-marker-field { display:grid; gap:6px; margin:0; padding:0; border:0; }
.view-routes .route-notes-marker-row { display:flex; justify-content:space-between; gap:6px; }
.view-routes .route-notes-marker-row .route-notes-button,
.view-routes .route-notes-marker-row .route-notes-icon-button,
.view-routes .route-notes-marker-more-grid .route-notes-button {
  width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:50%;
  display:grid; place-items:center; background:var(--map-fill); color:var(--text); box-shadow:none;
}
.view-routes .route-notes-marker-row .route-notes-icon-button { background:transparent; box-shadow:inset 0 0 0 1.5px var(--map-outline); color:var(--map-icon); }
.view-routes .route-notes-marker-row .route-notes-button .route-notes-icon,
.view-routes .route-notes-marker-more-grid .route-notes-button .route-notes-icon { width:22px; height:22px; }
.view-routes .route-notes-marker-row .route-notes-button[aria-pressed="true"],
.view-routes .route-notes-marker-more-grid .route-notes-button[aria-pressed="true"] { background:var(--gold); color:var(--gold-ink); }
.view-routes .route-notes-marker-more-grid { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:8px; justify-items:center; margin-top:4px; }
.view-routes .route-notes-marker-more-grid .route-notes-button { border-radius:var(--r-md); }
.view-routes .route-notes-marker-name { margin:0 4px; color:var(--muted); font-size:var(--fs-label); font-weight:600; }
/* 사진: 한 줄로 */
.view-routes .route-notes-tip-form .route-notes-tip-photos-field .route-notes-form-label { margin:0 4px 6px; font-size:var(--fs-label); }
.view-routes .route-notes-tip-form .route-notes-photo-tile,
.view-routes .route-notes-tip-form .route-notes-workspace .route-notes-photo-add,
.view-routes .route-notes-tip-form .route-notes-photo-add { width:64px; height:64px; min-height:64px; }
/* 위치·공개: 조용한 줄 */
.view-routes .route-notes-tip-form .route-notes-form-rows { display:grid; gap:0; border-radius:var(--r-lg); background:var(--map-glass-hi); box-shadow:0 0 0 .5px var(--map-hairline); overflow:hidden; }
.view-routes .route-notes-tip-form .route-notes-tip-location { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; min-height:50px; padding:8px 14px; border:0; border-radius:0; }
.view-routes .route-notes-tip-form .route-notes-tip-location .route-notes-row-copy { flex:1 1 auto; min-width:0; }
.view-routes .route-notes-tip-form .route-notes-tip-location p { margin:0; color:var(--muted); font-size:var(--fs-body); font-weight:500; }
.view-routes .route-notes-tip-form .route-notes-row-link { min-height:36px; padding:0 8px; border:0; background:transparent; color:var(--gold); font-size:var(--fs-body); font-weight:600; }
.view-routes .route-notes-tip-form .route-notes-row-link[aria-pressed="true"] { background:color-mix(in srgb, var(--gold) 12%, transparent); border-radius:var(--r-lg); }
.view-routes .route-notes-tip-form .route-notes-share-toggle { grid-template-columns:auto minmax(0,1fr) auto; column-gap:10px; min-height:50px; padding:4px 14px 8px; box-shadow:inset 0 1px 0 var(--map-hairline); }
.view-routes .route-notes-tip-form .route-notes-share-toggle .route-notes-row-icon { color:var(--gold); }
.view-routes .route-notes-tip-form .route-notes-share-toggle strong { font-size:var(--fs-title); font-weight:600; }
.view-routes .route-notes-tip-form .route-notes-share-toggle small { grid-column:2/-1; }
.view-routes .route-notes-tip-form .route-notes-tip-note { margin:0 4px; font-size:var(--fs-label); }
.view-routes .route-notes-tip-form .route-notes-tip-delete { justify-content:center; min-height:48px; border:0; border-radius:var(--r-lg); background:var(--red-bg); color:var(--red); font-weight:700; }
/* 팁 쓰기 줄의 '공용 팁으로'는 스위치 그림 없이 글자 링크로; 고르면 옅은 칠 */
.view-routes .route-notes-tip-form .route-notes-location-common { position:static; padding:0 8px; }
.view-routes .route-notes-tip-form .route-notes-location-common::before,
.view-routes .route-notes-tip-form .route-notes-location-common::after { content:none; }
.view-routes .route-notes-tip-form .route-notes-tip-photos-field .route-notes-form-label em { display:none; }
.view-routes .route-notes-tip-form .route-notes-tip-photos-field .route-notes-form-hint { font-size:var(--fs-label); }

}
