/* 로컬 웹 페이지(가닥 창)의 틀. 위쪽은 docs/design/prototype.css의 사이드바 · 대화 부분을 값 그대로 옮긴 것이고,
   아래 ‘가닥 창에만 있는 것’은 새로 더한 거예요. */
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); letter-spacing: var(--tr-body); font-size: 15px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.logo svg { display: block; overflow: visible; }
.brand b { font-family: var(--display); font-size: 20px; line-height: 1; }
.brand .v { font-size: 11.5px; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; letter-spacing: var(--tr-small); }
.site { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sitebar { background: var(--side); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; font-size: 13px; letter-spacing: var(--tr-small); }
.sitebar .sname { font-weight: 600; font-size: 14px; padding: 2px 8px 10px; color: var(--fg); }
.sitebar .newc { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; height: 30px; font-size: 12.5px; text-align: left; padding: 0 10px; color: var(--fg2); margin-bottom: 10px; letter-spacing: var(--tr-small); }
.sitebar h6 { margin: 10px 8px 4px; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: var(--faint); }
.sitebar h6.pgroup { margin-top: 18px; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.sitebar .crow:first-child h6.pgroup { margin-top: 6px; }
.citem { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--fg2); line-height: 1.35; transition: background .4s; }
.citem span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem small { color: var(--faint); font-size: 11px; flex: none; letter-spacing: var(--tr-small); }
.citem.on { background: var(--bubble); color: var(--fg); font-weight: 500; }
.citem.flash { background: var(--flash); }
.citem.rep span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--accent); margin-right: 6px; vertical-align: 1px; }
/* 가운데: 왼쪽 기둥에 노선도 카드와 그 아래 대화, 오른쪽 기둥에 목록(할 일 · 정한 것 · 산출물 · 앞길)을 위에서 아래까지 */
.sitemain { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; min-width: 0; background: var(--surface); }
.maincol { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.maincol .chat { padding-right: 24px; }
/* 노선도 카드의 머리줄은 한 줄로: 자리가 모자라면 제목과 상태 글이 줄어들어요 */
.maincol .dhead { flex-wrap: nowrap; }
.maincol .dhead > * { flex: none; }
.maincol .dhead .map-title, .maincol .dhead .map-status { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maincol .dhead .sp { flex: 1 1 0; }
.maincol .nudge-web { right: 20px; }
.sidecol { width: 380px; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--surface); }
.sidecol[hidden] { display: none; }
@media (max-width: 1180px) { .sidecol { width: 320px; } }
/* 접어 둔 노선도 카드를 다시 펴는 버튼 */
.unfold { align-self: flex-start; margin: 10px 16px 0; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 12.5px; color: var(--muted); cursor: pointer; letter-spacing: var(--tr-small); }
.unfold:hover { color: var(--fg); border-color: var(--ring); }
.unfold[hidden] { display: none; }
.chatwrap { position: relative; flex: 1; min-height: 0; }
.chat { position: absolute; inset: 0; overflow-y: auto; padding: 22px calc(var(--railw) + 24px) 24px 24px; }
.appmain .chat { padding-right: 28px; }
.thread { max-width: 660px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.turn { display: flex; flex-direction: column; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--radius); transition: background .6s; }
.turn.flash { background: var(--flash); }
.turn.enter { animation: rise .35s ease-out; }
.u { align-self: flex-end; display: flex; align-items: center; gap: 8px; max-width: 88%; }
.u .tag { font-size: 11px; color: var(--faint); white-space: nowrap; letter-spacing: var(--tr-small); }
.u .tag.g { color: var(--accent); }
/* 내 질문: 연회색 사각 말풍선 + 왼쪽에 프로젝트 색 굵은 띠 (그 노선의 한 구간처럼) */
.u p { margin: 0; padding: 10px 14px 10px 13px; border-radius: var(--radius); border-left: 5px solid var(--route, var(--fg)); background: var(--bubble); line-height: 1.6; font-size: 14.5px; }
.pager { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: var(--tr-small); }
.pager button { border: 0; background: transparent; padding: 0 4px; font-size: 13px; color: var(--muted); cursor: pointer; letter-spacing: var(--tr-small); }
.pager button:hover { color: var(--accent); }
.a { margin: 0; line-height: 1.7; color: var(--fg); max-width: 62ch; font-size: 14.5px; }
.a p { margin: 0; }
.a.old { color: var(--muted); }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.file { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; letter-spacing: var(--tr-small); }
.part { border-radius: 6px; transition: background .6s; }
.part.flash { background: var(--flash); }
/* 답의 구획: 제목 줄 = 역, 왼쪽 세로선 = 프로젝트 노선 (레일과 같은 문법) */
.part.blocks { display: flex; flex-direction: column; gap: 18px; }
.blk { position: relative; padding-left: 26px; }
.blk.blk-st::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: -18px; width: 4px; background: var(--route, var(--rail)); }
.blk.blk-st:last-child::before { display: none; }
.blk-h { position: relative; display: block; padding: 0; margin: 0 0 4px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--fg); text-align: left; }
.blk-h::before { content: ""; position: absolute; left: -25px; top: 7px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--fg); box-shadow: 0 0 0 2px var(--surface); }
.blk.shut .blk-h::before { background: var(--surface); box-shadow: inset 0 0 0 2px var(--fg), 0 0 0 2px var(--surface); }
.blk.shut .blk-h { margin-bottom: 0; }
/* 접힌 구획: 본문을 숨기고, 펼칠 때는 살짝 내려오며 나타나요 */
.blk.shut .rt { display: none; }
.blk:not(.shut) > .rt { animation: blkin .3s var(--ease); }
@keyframes blkin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.blk-h:hover { text-decoration: underline; text-underline-offset: 3px; }
.blk-h:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.rt b { font-weight: 700; }
.rt code { font-family: var(--mono); font-size: 0.9em; padding: 1px 4px; border-radius: 3px; background: var(--bubble); }
.rt pre.code { margin: 8px 0; padding: 10px 12px; border-radius: var(--radius); background: var(--bubble); overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.55; white-space: pre; }
.rt .tbl { margin: 8px 0; overflow-x: auto; }
.rt table { border-collapse: collapse; font-size: 13.5px; line-height: 1.5; white-space: normal; }
.rt th, .rt td { padding: 5px 12px 5px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
  overflow-wrap: normal; word-break: keep-all; }   /* 단어 중간에서 줄을 바꾸지 않고, 넓으면 옆으로 스크롤 */
.rt th { font-weight: 700; border-bottom-color: var(--stem); }
.rt .qt { display: block; margin: 2px 0; padding-left: 12px; border-left: 2px solid var(--stem); color: var(--fg2); }
.seam { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.04em; color: var(--faint); }
.seam::before, .seam::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tool { margin-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: var(--tr-small); }
.tool summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; list-style: none; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; }
.tool summary::-webkit-details-marker { display: none; }
.tool summary svg { display: block; }
.tool pre { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--bubble); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; overflow-x: auto; color: var(--fg2); }
.empty-chat { margin: 12vh auto 0; text-align: center; color: var(--faint); font-size: 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty-chat b { font-family: var(--display); font-size: 22px; color: var(--fg2); font-weight: 600; }

/* ---------- 가닥 창에만 있는 것 ---------- */
.shell { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--surface); }
.sitebar { gap: 2px; }
.sitebar .brand { padding: 2px 6px 12px; }
.sitebar .logo b { font-family: var(--display); font-size: 20px; line-height: 1; }
button.citem { width: 100%; border: 0; background: transparent; font: inherit; font-size: 13px; text-align: left; cursor: pointer; letter-spacing: var(--tr-small); }
button.citem:hover { background: var(--viewport); }
button.citem.on:hover { background: var(--bubble); }
.sitebar .lists { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.sitebar .foot { display: flex; flex-direction: column; gap: 8px; padding: 10px 6px 0; border-top: 1px solid var(--line); }

/* 목록에서 빼기: 줄에 마우스를 올리면 ×가 보여요 */
.crow { position: relative; }
.crow .cx { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--side); color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer; opacity: 0; }
.crow:hover .cx, .crow .cx:focus-visible { opacity: 1; }
.crow .cx:hover { background: var(--line); color: var(--fg); }
.crow:has(.cx):hover .citem small { visibility: hidden; }   /* ×와 날짜가 겹치지 않게 */
.sitebar .hhead { margin: 12px 8px 4px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 11px; letter-spacing: 0.06em; color: var(--faint); text-align: left; cursor: pointer; }
.sitebar .hhead:hover { color: var(--fg2); }
.sitebar .hall { align-self: flex-start; margin: 4px 8px; }

/* 대화 찾기 */
.sitebar .findwrap { padding: 0 2px 8px; }
.sitebar .findwrap .qin { background: var(--surface); }
.sitebar .lists .lempty { padding: 6px 8px; }
.fitem { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 13px; text-align: left; color: var(--fg2); line-height: 1.35; cursor: pointer; letter-spacing: var(--tr-small); }
.fitem:hover { background: var(--viewport); }
.fitem.on, .fitem.on:hover { background: var(--bubble); color: var(--fg); }
.fitem .t { display: flex; justify-content: space-between; gap: 8px; }
.fitem .t span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitem .t small { color: var(--faint); font-size: 11px; flex: none; letter-spacing: var(--tr-small); }
.fitem .w { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: var(--tr-small); }
.fitem .s { font-size: 12px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; letter-spacing: var(--tr-small); }
.sitebar .foot .state { font-size: 11.5px; line-height: 1.5; color: var(--faint); letter-spacing: var(--tr-small); }
.sitebar .foot .state.hot { color: var(--accent); }
.sitebar .foot .row { display: flex; flex-wrap: wrap; gap: 6px; }

/* 실제 대화는 줄바꿈과 긴 낱말이 있어요 */
.u p, .a .part { white-space: pre-wrap; overflow-wrap: anywhere; }
.a .more { margin-top: 6px; }
.file.rest { border-style: dashed; }

/* 찾은 곳 */
.srcpop { left: 14px; bottom: 58px; width: min(340px, calc(100vw - 28px)); max-height: calc(100vh - 80px); overflow-y: auto; }
.srcpop .src { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; }
.srcpop .src .k { font-size: 11px; color: var(--faint); letter-spacing: var(--tr-small); }
.srcpop .src .k.on { color: var(--accent); }
.srcpop .src .t { font-size: 13px; font-weight: 600; color: var(--fg); letter-spacing: var(--tr-small); }
.srcpop .src .w { font-size: 12px; line-height: 1.5; color: var(--muted); letter-spacing: var(--tr-small); }
.srcpop .src .btn { align-self: flex-start; margin-top: 4px; }
.gone { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--bg); color: var(--muted); font-size: 14px; }
.gone b { font-family: var(--display); font-size: 22px; color: var(--fg2); font-weight: 600; }

/* AI 연결: 찾은 곳과 같은 자리 · 같은 카드. 지금 쓰는 것은 테두리를 진하게 */
.aipop { width: min(380px, calc(100vw - 28px)); }
.aipop .src.now { border-color: var(--fg); }
.aipop .src .w.fail { color: var(--accent); }
.aipop .src input { flex: 1; min-width: 0; height: 26px; padding: 0 9px; border: 1px solid var(--ring); border-radius: 6px; background: var(--surface); color: var(--fg); font: inherit; font-size: 12px; letter-spacing: var(--tr-small); }
.aipop .src input:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
.aipop > .row { display: flex; flex-wrap: wrap; gap: 6px; }
.aipop .btn:disabled { opacity: .45; cursor: default; }

/* 사용 기록 보내기 */
.srcpop .src .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.srcpop pre.sent { max-height: 150px; overflow: auto; margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--bubble); font-family: var(--mono); font-size: 11px; line-height: 1.55; white-space: pre; }

/* 맨 위 검은 머리띠 (전체 지도 backend/web/map.html의 머리와 같아요). 테마와 상관없이 검은 띠 · 흰 글씨 */
.band { flex: none; height: 60px; padding: 0 20px; background: #111; color: #fff; gap: 14px; }
.band .logo { color: inherit; }
.mac .band { padding-left: 96px; }   /* 가닥 앱: 신호등 버튼 자리 (mac/Gadak.swift placeLights) */
.mac.fullscreen .band { padding-left: 20px; }
.band .logo b { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: var(--tr-title); }
.band .logo b i { font-style: normal; margin-left: 6px; letter-spacing: var(--tr-title); }   /* ‘가닥 GADAK’: 전체 지도 머리와 같게 */
.band .mark { --mark-fg: #fff; --mark-bg: #111; --halo: #4A2A20; }   /* 검은 띠 위의 심볼 A: 흰 본선 · 검은 역 속 (shared/ui/mark.js) */
/* 전체 지도: 머리띠의 심볼 옆 버튼, 가닥 창 위에 겹쳐 열려요 (app.js openMap) */
.band .mapbtn { height: 30px; border: 1px solid rgba(255,255,255,.5); border-radius: 0; background: none; color: #fff; font: 600 13px var(--body); letter-spacing: var(--tr-small); }
.band .mapbtn:hover { background: rgba(255,255,255,.12); }
.band .mapbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.band .bandr { margin-left: auto; display: flex; align-items: center; gap: 22px; }   /* 오른쪽 스위치 (떠 있는 버튼 · 낮 · 밤) */
.band .bandr [hidden] { display: none; }
.mapframe { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 60; background: var(--bg); }

/* 프로젝트 노선 색 동그라미 (app.js pdot) */
.pdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }

/* ── 넉넉하게 (2026-10-08 · 시안 docs/design/window-sian.html): 큰 제목 하나 + 노선 하나 + 조용한 장치. 가닥 창에만 */
.drawer { margin: 20px 24px 0; }
.dhead { padding: 22px 28px 4px; gap: 8px 20px; align-items: baseline; }
.dhead .mk { display: none; }   /* 머리의 검은 띠에 가닥 표시가 이미 있어요 */
.maincol .dhead { flex-wrap: wrap; }
.maincol .dhead .map-title { flex: 1 0 100%; font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--fg); letter-spacing: var(--tr-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* 제목은 한 줄을 다 써요. 장치는 그 아래 줄 */
.dhead .map-status { font-size: 13px; }
/* 머리의 버튼들은 테두리 없는 글자로 */
.dhead .scope { border: 0; gap: 12px; }
.dhead .scope button { height: auto; padding: 0 0 2px; background: none; font-size: 13px; }
.dhead .scope button + button { border-left: 0; }
.dhead .scope button[aria-pressed="true"] { background: none; box-shadow: inset 0 -2px 0 var(--fg); }
.dhead .btn, .dhead .ledbtn { height: auto; padding: 0; border: 0; background: none; font-size: 13px; color: var(--muted); }
.dhead .btn:hover, .dhead .ledbtn:hover { color: var(--fg); }
.dhead .linkbtn { font-size: 13px; }
.map-scroll { padding: 6px 12px 10px; }
/* 왼쪽 아래 버튼들도 테두리 없이 */
.foot .btn:not(.primary) { border-color: transparent; background: none; padding: 0 6px; }
.foot .btn:not(.primary):hover { border-color: transparent; color: var(--fg); }

/* ── 양옆 기둥 접고 펴기 (2026-10-08): 위의 버튼으로 접으면 44px 띠에 펼치는 버튼만 남아요. 폭은 부드럽게 */
.site { transition: grid-template-columns .42s var(--ease); position: relative; }
.site.left-shut { grid-template-columns: 44px minmax(0, 1fr); }
.sitebar > * { transition: opacity .25s; }
.site.left-shut .sitebar { overflow: hidden; }
.site.left-shut .sitebar > * { opacity: 0; pointer-events: none; }
.sitebar .findwrap { display: flex; align-items: center; gap: 4px; }
.sitebar .findwrap .qin { flex: 1; min-width: 0; }
.sidecol { position: relative; transition: width .42s var(--ease); overflow: hidden; }
.sidecol.shut { width: 44px; }
.sidecol .dside { min-width: 336px; transition: opacity .25s; }
.sidecol.shut .dside, .sidecol.shut > .colfold { opacity: 0; pointer-events: none; }
.maincol .ledbtn { display: none; }   /* 목록은 오른쪽 기둥 위의 버튼으로 접고 펴요 */
/* 접기 버튼: 테두리 없는 작은 꺾쇠 */
.colfold { flex: none; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--faint); font-size: 18px; line-height: 1; cursor: pointer; transition: color .2s; }
.colfold:hover { color: var(--fg); }
.sidecol > .colfold { position: absolute; top: 6px; right: 8px; z-index: 1; background: var(--surface); }
/* 접힌 띠의 펼치기 버튼: 꺾쇠 + 세로 글씨 */
.colopen { position: absolute; top: 0; bottom: 0; width: 44px; padding: 14px 0 0; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; z-index: 2; animation: fadein .3s var(--ease) .2s both; }
.colopen[hidden] { display: none; }
.colopen:hover { color: var(--fg); background: var(--side); }
.colopen .vt { writing-mode: vertical-rl; font-size: 13px; letter-spacing: var(--tr-small); }
.site > .colopen { left: 0; }
.sidecol > .colopen { right: 0; }
@media (prefers-reduced-motion: reduce) { .site, .sidecol, .sitebar > *, .sidecol .dside { transition: none; } .colopen { animation: none; } }

/* 오른쪽 아래 사용 한도 게이지 (backend/limits.py) — 노선 한 줄로(색 없이 검정 하나 · 프로젝트 노선과 나눠 보이게): 쓴 만큼 굵은 선 · 남은 만큼 가는 회색 선 · 지금 자리에 빨간 점 · 끝에 종점 고리 */
.sidecol .limits { flex: none; padding: 14px 16px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.sidecol .limits[hidden], .sidecol.shut .limits { display: none; }
.limits .lim + .lim { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.limits .lhead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.limits .bul { width: 20px; height: 20px; border-radius: 50%; background: var(--fg); color: var(--surface); font: 700 12px/20px var(--display); text-align: center; letter-spacing: 0; flex: none; }
.limits .lhead b { font: 700 15px var(--display); letter-spacing: var(--tr-body); color: var(--fg); }
.limits .lk { margin-left: auto; font-size: 13px; color: var(--muted); letter-spacing: var(--tr-small); }
.limits .lrow { display: grid; grid-template-columns: 46px 1fr 44px; align-items: center; gap: 10px; height: 26px; font-size: 13px; letter-spacing: var(--tr-small); }
.limits .ln { color: var(--fg2); }
.limits .lp { text-align: right; font: 700 17px var(--display); letter-spacing: var(--tr-body); color: var(--fg); font-variant-numeric: tabular-nums; }
.limits .lroute { --w: calc(100% - 16px); position: relative; height: 22px; }
.limits .lroute::before { content: ""; position: absolute; left: 0; right: 8px; top: 10px; height: 2px; background: var(--ring); }   /* 남은 길 */
.limits .lroute .f { position: absolute; left: 0; top: 7px; height: 8px; width: calc(var(--w) * var(--p, 0) / 100); background: var(--fg); transition: width .9s var(--ease); }   /* 지나온 길 */
.limits .lroute .e { position: absolute; right: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--fg); background: var(--surface); box-sizing: border-box; }   /* 종점: 한도가 다시 차는 곳 */
.limits .lroute .n { position: absolute; top: 11px; left: calc(var(--w) * var(--p, 0) / 100); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--halo); transition: left .9s var(--ease); }   /* 지금 */
.limits .lsub { margin: -2px 54px 2px 0; text-align: right; font-size: 13px; color: var(--muted); letter-spacing: var(--tr-small); }
/* 마지막 값(몇 시 기준): 노선과 숫자를 흐리게, 지금 점은 빼요 (지금이 아니니까) */
.limits .lim.stale .lroute, .limits .lim.stale .lp { opacity: .45; }
.limits .lim.stale .lroute .n { display: none; }
.limits .lnote { margin-top: 4px; font-size: 13px; color: var(--muted); letter-spacing: var(--tr-small); }
@media (prefers-reduced-motion: reduce) { .limits .lroute .f, .limits .lroute .n { transition: none; } }
