@layer legacy {
/* ── 검색 결과(2026-10 시안): 구역·팁 묶음, 색 점 + 코드, 맞은 글자는 강조 ── */
.view-routes .route-notes-suggest { padding:10px 8px 8px; border-radius:24px; }
.view-routes .route-notes-suggest-label { display:block; margin:2px 6px 6px; color:var(--muted); font-size:var(--fs-label); font-weight:600; }
.view-routes .route-notes-suggest-row + .route-notes-suggest-label { margin-top:10px; }
.view-routes :is(.route-notes-suggest-row, .route-notes-suggest-place) { display:flex; align-items:center; gap:12px; width:100%; text-align:left; cursor:pointer; background:transparent; min-height:54px; padding:6px 10px; border:0; border-radius:var(--r-md); box-shadow:inset 0 1px 0 var(--map-hairline); }
.view-routes .route-notes-suggest-label + .route-notes-suggest-row { box-shadow:none; }
.view-routes :is(.route-notes-suggest-row, .route-notes-suggest-place):active { background:color-mix(in srgb, var(--muted) 12%, transparent); }
.view-routes .route-notes-suggest-swatch { flex:none; width:12px; height:12px; border-radius:var(--r-xs); }
.view-routes .route-notes-suggest-glyph { width:28px; height:28px; background:transparent; color:var(--muted); }
.view-routes .route-notes-suggest-glyph .route-notes-icon { width:18px; height:18px; }
.view-routes .route-notes-suggest-copy { gap:2px; }
.view-routes .route-notes-suggest-copy > strong { overflow:hidden; color:var(--text); font-size:var(--fs-title); font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.view-routes .route-notes-suggest-row[data-kind="zone"] .route-notes-suggest-copy > strong { font-family:var(--font-code); letter-spacing:.01em; }
.view-routes .route-notes-suggest-copy mark { background:transparent; color:var(--gold); }
.view-routes .route-notes-suggest-copy small { font-size:var(--fs-label); font-weight:500; }
.view-routes .route-notes-suggest-place .route-notes-suggest-copy > strong { font-weight:600; }
.view-routes .route-notes-suggest-empty { padding:12px; font-size:var(--fs-body); }

/* ── 시트 머리(변경 기록·팀): 제목 아래 조용한 한 줄 ── */
.view-routes .route-notes-panel-heading { flex:1 1 auto; min-width:0; display:grid; gap:2px; }
.view-routes .route-notes-panel-subtitle { display:block; overflow:hidden; color:var(--muted); font-size:var(--fs-label); font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.view-routes .route-notes-panel-back { flex:none; min-height:36px; margin:0; padding:0 14px; border:0; border-radius:var(--r-lg); background:var(--map-fill); color:var(--text); font-size:var(--fs-body); font-weight:600; }

/* ── 변경 기록(2026-10 시안): 지금 내용은 파란 점, 이전 시점은 회색 점, 되돌리기는 줄 끝 알약 ── */
.view-routes .route-notes-history-card { margin:0 0 12px; 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-history { gap:0; }
.view-routes .route-notes-history-now,
.view-routes .route-notes-history-row { display:flex; align-items:center; gap:12px; min-height:60px; padding:8px 14px; border-radius:0; background:transparent; }
.view-routes .route-notes-history-now + .route-notes-history > .route-notes-history-row,
.view-routes .route-notes-history-row + .route-notes-history-row { box-shadow:inset 0 1px 0 var(--map-hairline); }
.view-routes .route-notes-history-dot { flex:none; width:10px; height:10px; border-radius:50%; background:var(--map-dot); }
.view-routes .route-notes-history-dot[data-now="true"] { background:var(--gold); box-shadow:0 0 0 4px color-mix(in srgb, var(--gold) 16%, transparent); }
.view-routes .route-notes-history-copy { flex:1 1 auto; min-width:0; display:grid; gap:2px; }
.view-routes .route-notes-history-copy strong { color:var(--text); font-size:var(--fs-body-l); font-weight:700; }
.view-routes .route-notes-history-copy small,
.view-routes .route-notes-history-copy p { margin:0; color:var(--muted); font-size:var(--fs-label); font-weight:500; line-height:1.45; }
.view-routes .route-notes-history-copy p { color:var(--soft); overflow-wrap:anywhere; }
.view-routes .route-notes-history-restore { flex:none; height:36px; min-height:36px; margin:0; padding:0 14px; border:0; border-radius:var(--r-lg); background:var(--map-fill); color:var(--text); font-size:var(--fs-body); font-weight:600; }
.view-routes .route-notes-history-hint { margin:-4px 4px 12px; font-size:var(--fs-label); font-weight:500; }
.view-routes .route-notes-history-more { width:100%; min-height:44px; margin:0 0 8px; border:0; border-radius:var(--r-lg); background:var(--map-fill); color:var(--text); font-weight:600; }
.view-routes .route-notes-sheet-body > .route-notes-page-status { margin:0 4px; font-size:var(--fs-label); }

/* ── 팀 관리(2026-10 시안): 머리글자 동그라미 줄, 초대 링크는 강조 줄, 팀 나가기는 빨간 줄 ── */
.view-routes .route-notes-team { gap:0; margin:0; }
.view-routes .route-notes-team-group { margin:0 0 12px; 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-members { gap:0; }
.view-routes .route-notes-member { flex-wrap:wrap; gap:8px 12px; min-height:56px; padding:8px 14px; border-radius:0; background:transparent; font-size:var(--fs-title); }
.view-routes .route-notes-member + .route-notes-member { box-shadow:inset 0 1px 0 var(--map-hairline); }
.view-routes .route-notes-member > span { flex:none; }
.view-routes .route-notes-member-avatar { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--gold); color:var(--gold-ink); font-size:var(--fs-body); font-weight:700; overflow:hidden; }
.view-routes .route-notes-member-avatar img { width:100%; height:100%; object-fit:cover; }
.view-routes .route-notes-member-avatar[data-tone="1"] { background:var(--tone-1); color:var(--on-color); }
.view-routes .route-notes-member-avatar[data-tone="2"] { background:var(--tone-2); color:var(--on-color); }
.view-routes .route-notes-member-avatar[data-tone="3"] { background:var(--tone-3); color:var(--on-color); }
.view-routes .route-notes-member > .route-notes-member-name { flex:1 1 auto; min-width:0; overflow:hidden; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.view-routes .route-notes-member em { color:var(--muted); font-size:var(--fs-body); font-weight:500; }
.view-routes .route-notes-member-actions { flex:0 0 100%; display:flex; gap:6px; padding:0 0 4px 44px; }
.view-routes .route-notes-member-actions .route-notes-button { height:32px; min-height:32px; padding:0 12px; border:0; border-radius:var(--r-lg); background:var(--map-fill); color:var(--text); font-size:var(--fs-label); font-weight:600; }
.view-routes .route-notes-team-row { display:flex; align-items:center; gap:12px; width:100%; min-height:52px; margin:0; padding:8px 14px; border:0; border-radius:0; background:transparent; color:var(--text); font-size:var(--fs-title); font-weight:500; text-align:left; box-shadow:none; }
.view-routes .route-notes-team-row > span { flex:1 1 auto; text-align:left; }
.view-routes .route-notes-team-row .route-notes-icon { flex:none; width:28px; height:28px; padding:4px; border-radius:var(--r-sm); background:var(--map-fill); box-sizing:border-box; }
.view-routes .route-notes-team-row.accent { color:var(--gold); font-weight:600; }
.view-routes .route-notes-team-row.accent .route-notes-icon { background:color-mix(in srgb, var(--gold) 12%, transparent); }
.view-routes .route-notes-team-row.danger { color:var(--red); }
.view-routes .route-notes-team-row:active { background:color-mix(in srgb, var(--muted) 12%, transparent); }
.view-routes .route-notes-team-hint { margin:-4px 14px 12px 54px; /* under the row label: 14 padding + 28 icon + 12 gap */ font-size:var(--fs-label); font-weight:500; line-height:1.5; }
.view-routes .route-notes-team-invite .route-notes-invite-link { margin:0; padding:12px 14px; border-radius:0; background:transparent; font-size:var(--fs-label); }
.view-routes .route-notes-team-invite .route-notes-team-row { box-shadow:inset 0 1px 0 var(--map-hairline); }
/* 팀 만들기·초대 링크로 가입: 글칸은 흰 묶음, 단추는 옅은 알약 */
.view-routes .route-notes-team-create,
.view-routes .route-notes-team-join { gap:8px; margin:0 0 14px; }
.view-routes .route-notes-team-create .route-notes-field,
.view-routes .route-notes-team-join .route-notes-field { display:grid; gap:6px; }
.view-routes .route-notes-team-create .route-notes-field > span,
.view-routes .route-notes-team-join .route-notes-field > span { margin:0 6px; color:var(--muted); font-size:var(--fs-label); font-weight:600; }
.view-routes .route-notes-team-create .route-notes-field input,
.view-routes .route-notes-team-join .route-notes-field input { min-height:50px; padding:0 14px; border:0; border-radius:var(--r-lg); background:var(--map-glass-hi); box-shadow:0 0 0 .5px var(--map-hairline-strong); font-size:var(--fs-title-m); font-weight:500; }
/* 팀 만들기·가입(2026-10-20): one field and one full-width primary button, nothing under it. */
.view-routes .route-notes-team-create,
.view-routes .route-notes-team-join { gap:12px; margin:0; padding:8px 0 0; }
.view-routes .route-notes-team-create .route-notes-field input,
.view-routes .route-notes-team-join .route-notes-field input { min-height:46px; font-size:16px; }
.view-routes .route-notes-team-create > .route-notes-button,
.view-routes .route-notes-team-join > .route-notes-button { justify-self:stretch; width:100%; }

/* ── 첫 사용(2026-10 시안): 지도 그림, 한 줄 제목, 하는 법, 구역 만들기 ── */
.view-routes .route-notes-empty-state { display:grid; justify-items:center; gap:10px; padding:6px 4px 8px; text-align:center; }
.view-routes .route-notes-empty-art { display:grid; place-items:center; width:56px; height:56px; border-radius:var(--r-lg); background:color-mix(in srgb, var(--gold) 10%, transparent); color:var(--gold); }
.view-routes .route-notes-empty-art .route-notes-icon { width:28px; height:28px; stroke-width:1.8; }
.view-routes .route-notes-empty-state .route-notes-empty { display:grid; gap:6px; padding:0 8px; }
.view-routes .route-notes-empty-state .route-notes-empty strong { color:var(--text); font-size:var(--fs-title-l); font-weight:700; letter-spacing:-.02em; }
.view-routes .route-notes-empty-state .route-notes-empty span { color:var(--muted); font-size:var(--fs-body-l); font-weight:500; line-height:1.55; }
.view-routes .route-notes-empty-state .route-notes-empty-actions { width:100%; gap:4px; margin:6px 0 4px; }
.view-routes .route-notes-empty-state .route-notes-create-zone { width:100%; min-height:var(--btn-h); margin:0; border:0; border-radius:var(--r-full); background:var(--gold); color:var(--gold-ink); font-size:var(--btn-fs); font-weight:700; box-shadow:inset 0 1px 0 var(--map-glass-rim); }
.view-routes .route-notes-empty-state .route-notes-empty-ghost { width:100%; min-height:var(--btn-h); margin:0; border:0; border-radius:var(--r-full); background:transparent; color:var(--gold); font-size:var(--btn-fs); font-weight:600; box-shadow:none; }

/* 팁 쓰기: 옛 폼 규칙(입력칸 ID 테두리, 고른 종류 아이콘의 회색 사각, ⋯ 칸의 긴 알약)이 이기지 않게 같은 세기로 덮는다 */
.view-routes .route-notes-tip-form .route-notes-tip-box #routeNoteTipTitle,
.view-routes .route-notes-tip-form .route-notes-tip-box #routeNoteTipMemo { border:0; border-radius:0; background:transparent; box-shadow:none; }
.view-routes .route-notes-tip-form .route-notes-tip-box #routeNoteTipTitle { min-height:0; height:50px; padding:0 14px; font-size:var(--fs-title-m); font-weight:600; }
.view-routes .route-notes-tip-form .route-notes-tip-box #routeNoteTipMemo { min-height:0; 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-form .route-notes-marker-row .route-notes-button .route-notes-icon,
.view-routes .route-notes-tip-form .route-notes-marker-more-grid .route-notes-button .route-notes-icon { width:22px; height:22px; padding:0; border-radius:0; background:none; color:inherit; }
.view-routes .route-notes-tip-form .route-notes-marker-row .route-notes-button[aria-pressed="true"] .route-notes-icon,
.view-routes .route-notes-tip-form .route-notes-marker-more-grid .route-notes-button[aria-pressed="true"] .route-notes-icon { background:none; color:inherit; }
.view-routes .route-notes-tip-form .route-notes-marker-more-grid { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:8px 6px; justify-items:center; margin:6px 0 0; padding:0; }
.view-routes .route-notes-tip-form .route-notes-marker-more-grid[hidden] { display:none; }
.view-routes .route-notes-tip-form .route-notes-marker-more-grid .route-notes-button {
  width:44px; height:44px; min-width:0; 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-tip-form .route-notes-marker-more-grid .route-notes-button[aria-pressed="true"] { background:var(--gold); color:var(--gold-ink); border:0; }
.view-routes .route-notes-tip-form .route-notes-marker-row .route-notes-button[aria-pressed="true"] { background:var(--gold); color:var(--gold-ink); }
.view-routes .route-notes-tip-form .route-notes-marker-row { align-items:center; }
.view-routes .route-notes-tip-form .route-notes-marker-row .route-notes-marker-more { margin:0; }

}
