@layer legacy {
/* ── 2단계 D2 수정 기록: 위 150px부터 흰 시트, 타임라인(점 · 세로선), 맨 아래 고른 버전으로 되돌리기 ── */
.view-routes .route-notes-workspace[data-panel="history"] .route-notes-sheet {
  top:150px; display:flex; flex-direction:column; height:auto; max-height:none; border:0; border-radius:26px; background:var(--panel); box-shadow:var(--shadow-modal);
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
.view-routes .route-notes-workspace[data-panel="history"] .route-notes-sheet-body {
  display:flex; flex:1 1 auto; flex-direction:column; min-height:0; gap:16px; padding:31px 20px calc(28px + env(safe-area-inset-bottom));
}
.view-routes .route-notes-workspace[data-panel="history"] .route-notes-sheet-body > * { margin:0; }
.view-routes .route-notes-workspace[data-panel="history"] .route-notes-sheet-body > .route-notes-section-head { align-items:flex-start; margin:0; }
.view-routes .route-notes-workspace[data-panel="history"] .route-notes-panel-title { margin:0; color:var(--text); font:700 18px/1.35 var(--font-ui); letter-spacing:-.02em; }
.view-routes .route-notes-workspace[data-panel="history"] .route-notes-panel-subtitle { font-size:12px; font-weight:500; }
.view-routes .route-notes-workspace[data-panel="history"] .route-notes-panel-close { margin:0; }
.view-routes .route-notes-workspace .route-notes-history { display:grid; gap:0; margin:0; padding:0; list-style:none; }
.view-routes .route-notes-workspace .route-notes-history > li {
  position:relative; display:grid; grid-template-columns:14px minmax(0,1fr); column-gap:12px; align-items:start;
  min-height:0; margin:0; padding:0 0 14px; border:0; border-radius:0; background:transparent; box-shadow:none;
}
.view-routes .route-notes-workspace .route-notes-history > li + li { box-shadow:none; }
.view-routes .route-notes-workspace .route-notes-history > li:last-child { padding-bottom:0; }
.view-routes .route-notes-workspace .route-notes-history > li:not(:last-child)::before {
  content:""; position:absolute; top:17px; bottom:-1px; left:6px; width:2px; border-radius:1px; background:var(--line-strong);
}
.view-routes .route-notes-workspace .route-notes-history > li > .route-notes-history-dot {
  box-sizing:border-box; width:12px; height:12px; margin:3px 1px 0; border:2px solid var(--map-dot); border-radius:50%; background:var(--panel); box-shadow:none;
}
.view-routes .route-notes-workspace .route-notes-history > li > .route-notes-history-dot[data-now="true"] { border:0; background:var(--gold); box-shadow:none; }
.view-routes .route-notes-workspace .route-notes-history :is(.route-notes-history-copy, .route-notes-history-pick) { display:grid; gap:4px; min-width:0; }
.route-notes-history-pick {
  margin:-8px -10px; padding:8px 10px; border:0; border-radius:12px; background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer;
}
.route-notes-history-pick[aria-pressed="true"] { background:color-mix(in srgb, var(--gold) 8%, transparent); box-shadow:inset 0 0 0 2px var(--gold); }
.route-notes-history-pick:focus-visible { outline:3px solid color-mix(in srgb, var(--gold) 36%, transparent); outline-offset:0; }
.route-notes-history-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; min-width:0; }
.route-notes-history-name { min-width:0; overflow:hidden; color:var(--text); font-size:12px; font-weight:700; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.route-notes-history-when { flex:none; color:var(--muted); font-size:12px; font-weight:500; line-height:1.4; }
.route-notes-history-body { margin:0; color:var(--text); font-size:13px; font-weight:500; line-height:1.55; overflow-wrap:anywhere; }
.view-routes .route-notes-workspace[data-panel="history"] .route-notes-history-hint { margin:auto 4px 0; color:var(--muted); font-size:12px; font-weight:500; }
.view-routes .route-notes-workspace[data-panel="history"] .route-notes-history-revert { width:100%; height:var(--btn-h); min-height:var(--btn-h); margin-top:-8px; }
.view-routes .route-notes-workspace[data-panel="history"] .route-notes-history-more { width:100%; min-height:44px; margin:0; }
.view-routes .route-notes-workspace[data-panel="history"] .route-notes-sheet-body > .route-notes-page-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
/* 넓은 화면: 입력 시트·수정 기록, B2 위 줄과 바는 모두 왼쪽 열(폭 420px) */

}
