/* ============================================================
   lapt-shell.css: 랩트 공통 헤더 · 판 · 토스트 · 대화상자

   일곱 서비스가 글자 하나 다르지 않게 같은 파일을 쓴다. 같은 회사의
   제품으로 보이게 만드는 근거는 로고가 아니라 이 파일과 shell.js다.
   여기 있는 이름은 모두 gnb · pop · ann · lapt- 로 시작한다.

   lapt.css 다음, 서비스 CSS보다 먼저 읽는다. 토큰은 lapt.css가 정의하고,
   빠뜨리기 쉬운 몇 개(--bar-h, --float-*)에는 var()의 바닥값을 적어 둔다.

   판 번호: 아래 --lapt-shell-v는 shell.js의 SHELL_CSS_V와 같아야 한다.
   shell.js가 기대하는 클래스나 크기를 바꾸면 두 번호를 함께 올린다.
   번호가 다르면 shell.js가 이 파일을 한 번 더 읽는다(옛 캐시 비껴 가기).

   움직임의 규칙 (DESIGN.md §5)
   - 판은 누른 단추 쪽 모서리에서 열린다. 대화상자만 가운데서 열린다.
   - 들어올 때는 조금 느리게, 나갈 때는 빠르게.
   - 키보드로 연 판은 움직이지 않는다(is-instant).
   ============================================================ */

/* 블랙 테마의 덮어쓰기. lapt.css에도 같은 값이 있으나, 옛 기본 CSS를
   아직 쓰는 화면에서도 헤더가 같게 보이도록 여기에도 둔다. */
:root[data-theme="black"] {
  --ink:        #000000;
  --ink-2:      #08090b;
  --ink-3:      #101217;
  --ink-4:      #181b21;
  --line:       rgba(236,238,242,.15);
  --line-soft:  rgba(236,238,242,.09);
  --line-hard:  rgba(236,238,242,.26);
  --float-bg:   rgba(10,11,14,.97);
  --float-line: rgba(236,238,242,.14);
  --overlay:    rgba(0,0,0,.76);
}

[hidden] { display: none !important; }

/* 서비스의 화면 CSS가 링크에 밑줄을 그어 두는 경우가 있다. 헤더는 되돌린다. */
.gnb a, .pop a, .ann-bar a, .lapt-modal a, .lapt-toast a {
  text-decoration: none;
  color: inherit;
}
.gnb *, .pop *, .ann-bar *, .lapt-modal *, .lapt-toasts * { box-sizing: border-box; }

/* 그림 한 벌: Phosphor Regular를 옮겨 왔다. 굵기와 크기를 여기서만 정한다. */
:root { --lapt-shell-v: 4; }

.lapt-ico { display: inline-flex; align-items: center; flex-shrink: 0; }
.lapt-ico svg { width: 18px; height: 18px; display: block; fill: currentColor; }

/* ── 전역 헤더 ───────────────────────────────────────────── */

.gnb {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; gap: 4px;
  height: var(--bar-h, 56px);
  padding: 0 clamp(8px, 3vw, 20px);
  padding-top: env(safe-area-inset-top);
  font-family: var(--sans);
  background: color-mix(in srgb, var(--ink) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .gnb { background: var(--ink); }
}
@media (prefers-reduced-transparency: reduce) {
  .gnb { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* 브랜드: 원장 표지 + 랩트 + 지금 있는 서비스 */
.gnb__mark {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; min-height: 40px; padding: 0 8px 0 4px;
  border-radius: var(--r-sm, 8px);
  flex-shrink: 0;
}
.gnb__logo { width: 18px; height: 18px; flex-shrink: 0; }
.gnb__brand {
  font-size: 16px; font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: var(--text);
  /* 한글은 음절마다 줄을 바꿀 수 있다. 이름이 세로로 서지 않게 붙잡는다. */
  white-space: nowrap; flex-shrink: 0;
}
.gnb__sep { color: var(--line-hard); font-size: 15px; line-height: 1; font-weight: 300; }
.gnb__service {
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  color: var(--mute-2); white-space: nowrap;
}

.gnb__spacer { flex: 1; }
.gnb__act { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }

/* 헤더 안의 조작 단추: 조용하게, 그러나 누르면 들어간다 */
.gnb__btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 6px 10px;
  border: 0; border-radius: var(--r-sm, 8px);
  background: transparent; color: var(--mute-2);
  font-size: 13.5px; font-weight: 500; letter-spacing: -.01em;
  cursor: pointer;
  transition: color var(--t-fast, 160ms) var(--ease-out, ease-out),
              background-color var(--t-fast, 160ms) var(--ease-out, ease-out),
              transform var(--t-press, 140ms) var(--ease-out, ease-out);
}
.gnb__btn:active { transform: scale(.97); }
.gnb__btn[aria-expanded="true"] { color: var(--text); background: var(--press, rgba(236,238,242,.08)); }
@media (hover: hover) and (pointer: fine) {
  .gnb__btn:hover { color: var(--text); background: var(--hover, rgba(236,238,242,.05)); }
  .gnb__mark:hover .gnb__brand { color: #fff; }
}

.gnb__caret { display: inline-flex; color: var(--mute); transition: transform var(--t-pop, 180ms) var(--ease-out, ease-out); }
.gnb__caret svg { width: 12px; height: 12px; fill: currentColor; }
.gnb__btn[aria-expanded="true"] .gnb__caret { transform: rotate(180deg); }

/* 넓은 화면에서는 글자만, 좁은 화면에서는 그림만 쓴다. */
.gnb__ico { display: none; }

/* 잔액: 라임 · 자릿수 고정. 헤더 오른쪽에 항상 있다. */
.gnb__balance {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 5px;
  min-height: 34px; padding: 7px 11px; margin: 0 4px;
  border: 1px solid var(--credit-line, rgba(201,245,96,.28));
  border-radius: var(--r-pill, 999px);
  color: var(--credit);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2;
  white-space: nowrap;
  transition: border-color var(--t-fast, 160ms) var(--ease-out, ease-out),
              background-color var(--t-fast, 160ms) var(--ease-out, ease-out),
              transform var(--t-press, 140ms) var(--ease-out, ease-out);
}
.gnb__balance:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .gnb__balance:hover { background: var(--credit-wash, rgba(201,245,96,.10)); border-color: rgba(201,245,96,.5); }
}
.gnb__balance small { font-size: 11.5px; font-weight: 500; opacity: .72; }
.gnb__balance.is-unknown { color: var(--mute); border-color: var(--line); }
.gnb__num { display: inline-block; transition: opacity 200ms var(--ease-out, ease-out), filter 200ms var(--ease-out, ease-out); }
/* 숫자가 바뀌는 순간: 옛 숫자와 새 숫자가 겹쳐 보이지 않게 잠깐 흐린다. */
.gnb__num.is-changing { opacity: .35; filter: blur(2px); }

/* 차감 표시: 교통카드 단말기처럼, 빠진 만큼을 잠깐 보여 주고 사라진다.
   축하가 아니라 정보다. 크기도 색도 잔액보다 앞서지 않는다. */
.gnb__delta {
  position: absolute; right: 100%; top: 50%;
  margin-right: 6px;
  padding: 3px 7px;
  border-radius: var(--r-pill, 999px);
  background: var(--ink-3);
  border: 1px solid var(--line);
  color: var(--mute-2);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(4px, -50%);
  transition: opacity 220ms var(--ease-out, ease-out), transform 260ms var(--ease-out, ease-out);
}
.gnb__delta.is-plus { color: var(--credit); border-color: var(--credit-line, rgba(201,245,96,.28)); }
.gnb__delta.is-shown { opacity: 1; transform: translate(0, -50%); }
.gnb__delta.is-leaving { opacity: 0; transform: translate(0, -110%); transition-duration: 180ms; }

/* 읽지 않은 공지: 실제 상태를 말하는 점이므로 허용한다 */
.gnb__dot { position: relative; }
.gnb__dot[data-unread]:not([data-unread="0"])::after {
  content: ""; position: absolute; top: 7px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 2px var(--ink);
}

/* ── 떠 있는 판 ──────────────────────────────────────────── */

.pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  min-width: 280px; max-width: min(360px, calc(100vw - 16px));
  background: var(--float-bg, rgba(17,19,24,.96));
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--float-line, rgba(236,238,242,.11));
  border-radius: var(--r, 12px);
  box-shadow: var(--float-shadow, 0 18px 40px -12px rgba(0,0,0,.7));
  overflow: hidden;
  font-family: var(--sans);
  /* 누른 단추가 있는 모서리에서 열린다 */
  transform-origin: top right;
  opacity: 1; scale: 1;
  transition: opacity 140ms var(--ease-out, ease-out), scale var(--t-pop, 180ms) var(--ease-out, ease-out);
}
@starting-style { .pop { opacity: 0; scale: .96; } }
.pop.is-instant { transition: none; }

/* 헤더 왼쪽의 단추(서비스 전환기)의 판은 오른쪽으로 열린다.
   오른쪽 끝을 넘으면 shell.js가 넘친 만큼만 되민다. */
.pop--start { left: 0; right: auto; transform-origin: top left; }

.pop__head {
  padding: 12px 14px 8px;
  font-size: 12px; font-weight: 500; color: var(--mute);
}
.pop__body { max-height: min(60svh, 440px); overflow-y: auto; padding: 4px; }
.pop__head + .pop__body { padding-top: 0; }
.pop__foot { padding: 8px; border-top: 1px solid var(--line-soft); }

.pop__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 44px; padding: 9px 10px;
  border: 0; border-radius: var(--r-sm, 8px);
  background: transparent; color: var(--text);
  text-align: left; cursor: pointer;
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  transition: background-color 120ms var(--ease-out, ease-out);
}
.pop__item:active { background: var(--press, rgba(236,238,242,.08)); }
@media (hover: hover) and (pointer: fine) {
  .pop__item:hover { background: var(--hover, rgba(236,238,242,.05)); }
  .pop__item.is-soon:hover, .pop__item.is-current:hover { background: transparent; }
}
.pop__item .lapt-ico { color: var(--mute); }
.pop__item.is-current { cursor: default; }
.pop__item.is-soon { color: var(--mute); cursor: default; }
.pop__item__main { flex: 1; min-width: 0; }
.pop__item__sub { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 400; color: var(--mute); line-height: 1.45; }
.pop__item__tag { font-size: 11.5px; font-weight: 500; color: var(--mute); flex-shrink: 0; }
.pop__item.is-current .pop__item__tag { color: var(--text); }
.pop__sep { height: 1px; margin: 4px 6px; background: var(--line-soft); border: 0; }

/* 서비스 메뉴의 묶음. 할 일로 묶고, 묶음 안은 쓰는 순서대로 둔다. */
.pop__group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.pop__group-head { padding: 6px 10px 2px; font-size: 12px; font-weight: 500; color: var(--mute); }
/* 메뉴의 설명은 한 줄. 넘치면 말줄임으로 끊어 목록이 판 안에 들어오게 한다. */
.pop__item__sub--one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 서비스 메뉴는 스크롤 없이 한 번에 보여야 고르기 쉽다. 화면이 허락하는 만큼 늘린다. */
.pop--start .pop__body { max-height: min(calc(100svh - var(--bar-h, 56px) - 72px), 620px); }
.pop__group .pop__item { min-height: 44px; padding-top: 7px; padding-bottom: 7px; }

/* 서비스 전환기의 색 표: 그 서비스의 액센트를 그대로 쓴다 */
.pop__swatch {
  width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0;
  background: var(--sw, var(--mute));
  box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset;
}

/* 판 안의 계정 요약 */
.pop__who { padding: 12px 12px 10px; }
.pop__who-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.pop__who-sub { margin-top: 2px; font-size: 12.5px; color: var(--mute); }

/* 공지 한 건 */
.ann {
  padding: 12px 12px;
  border-radius: var(--r-sm, 8px);
  font-size: 13.5px;
}
.ann + .ann { border-top: 1px solid var(--line-soft); border-radius: 0; }
.ann__top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ann__title { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; color: var(--text); }
.ann__body { color: var(--mute-2); font-size: 13px; white-space: pre-wrap; line-height: 1.6; }
.ann__meta { margin-top: 6px; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.ann.is-unread .ann__title { font-weight: 650; }
.ann.is-unread .ann__title::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 6px; height: 6px; border-radius: 50%; background: var(--warn);
  margin-right: 7px; margin-top: -2px;
}
.ann__level {
  flex-shrink: 0;
  padding: 1px 7px; border-radius: var(--r-pill, 999px);
  font-size: 11.5px; font-weight: 600;
}
.ann__level--info { color: var(--mute); background: var(--ink-3); }
.ann__level--warn { color: var(--warn); background: var(--warn-wash, rgba(255,193,74,.1)); }
.ann__level--critical { color: var(--danger); background: var(--danger-wash, rgba(255,100,100,.1)); }

/* 테마 선택: 두 칸 세그먼트 */
.theme-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 4px 4px 4px 6px;
}
.theme-row__label { font-size: 13px; color: var(--mute); }
.theme-seg {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--ink-3);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm, 8px);
}
.theme-seg button {
  min-height: 30px; padding: 4px 12px;
  border: 0; border-radius: var(--r-xs, 6px); background: transparent;
  color: var(--mute-2); font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: background-color var(--t-fast, 160ms) var(--ease-out, ease-out), color var(--t-fast, 160ms) var(--ease-out, ease-out);
}
.theme-seg button[aria-pressed="true"] { background: var(--ink-4); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* ── 헤더 아래에 붙는 주의 · 긴급 공지 띠 ────────────────── */

.ann-bar {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
  padding: 6px clamp(12px, 3vw, 20px);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--sans);
  font-size: 13.5px; color: var(--mute-2);
  background: var(--ink-2);
}
.ann-bar .lapt-ico svg { width: 17px; height: 17px; }
.ann-bar--warn { background: color-mix(in srgb, var(--warn) 9%, var(--ink-2)); border-bottom-color: var(--warn-line, rgba(255,193,74,.32)); }
.ann-bar--warn .lapt-ico { color: var(--warn); }
.ann-bar--critical { background: color-mix(in srgb, var(--danger) 10%, var(--ink-2)); border-bottom-color: var(--danger-line, rgba(255,100,100,.34)); }
.ann-bar--critical .lapt-ico { color: var(--danger); }
.ann-bar__title { flex: 1; min-width: 0; color: var(--text); font-weight: 500; }
.ann-bar__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  border: 0; border-radius: var(--r-sm, 8px);
  background: transparent; color: var(--mute); cursor: pointer;
  transition: color var(--t-fast, 160ms) var(--ease-out, ease-out), background-color var(--t-fast, 160ms) var(--ease-out, ease-out);
}
.ann-bar__close .lapt-ico svg { width: 16px; height: 16px; }
/* 카카오톡 안의 브라우저 안내. 경고가 아니라 안내라 색을 쓰지 않는다. */
.ann-bar--inapp .lapt-ico { color: var(--mute-2); }
.ann-bar--inapp .ann-bar__title { font-size: 13px; font-weight: 400; color: var(--mute-2); word-break: keep-all; line-height: 1.5; }
.ann-bar__act { flex-shrink: 0; color: var(--text); border: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) {
  .ann-bar__close:hover { color: var(--text); background: var(--hover, rgba(236,238,242,.05)); }
}

/* ── 토스트: 동작의 결과를 한 줄로 ────────────────────────── */

/* 아래에서 들어와 아래로 나간다. 들어온 방향과 나가는 방향이 같아야
   어디서 왔고 어디로 갔는지가 읽힌다. 키프레임이 아니라 전환을 쓰므로
   연달아 쌓여도 끊기지 않는다. */
.lapt-toasts {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 300;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: min(440px, calc(100vw - 24px));
  pointer-events: none;
}
.lapt-toast {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: var(--float-bg, rgba(17,19,24,.96));
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--float-line, rgba(236,238,242,.11));
  border-radius: var(--r, 12px);
  box-shadow: var(--float-shadow, 0 18px 40px -12px rgba(0,0,0,.7));
  font-family: var(--sans);
  font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--text);
  pointer-events: auto;
  opacity: 1; transform: translateY(0);
  transition: opacity var(--t-toast, 320ms) ease, transform var(--t-toast, 320ms) ease;
}
@starting-style { .lapt-toast { opacity: 0; transform: translateY(100%); } }
.lapt-toast.is-leaving { opacity: 0; transform: translateY(60%); transition-duration: 200ms; }
.lapt-toast .lapt-ico { margin-top: 1px; }
.lapt-toast--error .lapt-ico { color: var(--danger); }
.lapt-toast--success .lapt-ico { color: var(--success); }
.lapt-toast--info .lapt-ico { color: var(--mute-2); }
.lapt-toast__text { flex: 1; min-width: 0; word-break: keep-all; }

/* ── 확인 대화상자 ───────────────────────────────────────── */

/* 대화상자는 누른 곳이 아니라 화면 한가운데에 선다. 그래서 가운데에서 열린다. */
.lapt-modal {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  font-family: var(--sans);
  background: var(--overlay);
  opacity: 1;
  transition: opacity 200ms var(--ease-out, ease-out);
}
@starting-style { .lapt-modal { opacity: 0; } }
.lapt-modal.is-leaving { opacity: 0; transition-duration: 150ms; }
.lapt-modal__box {
  width: min(420px, 100%);
  background: var(--ink-2);
  border: 1px solid var(--float-line, rgba(236,238,242,.11));
  border-radius: var(--r-lg, 16px);
  box-shadow: var(--float-shadow, 0 18px 40px -12px rgba(0,0,0,.7));
  padding: 22px;
  scale: 1;
  transition: scale var(--t-modal, 240ms) var(--ease-out, ease-out);
}
@starting-style { .lapt-modal__box { scale: .96; } }
.lapt-modal.is-leaving .lapt-modal__box { scale: .98; transition-duration: 150ms; }
.lapt-modal__title { font-size: 17px; font-weight: 650; letter-spacing: -.02em; line-height: 1.35; margin-bottom: 8px; color: var(--text); }
.lapt-modal__body { font-size: 14px; line-height: 1.6; color: var(--mute-2); margin-bottom: 22px; }
.lapt-modal__act { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ── 고정 공지: 들어오자마자 확인을 받는다 ───────────────── */
/* 글이 길어도 확인 단추가 밀려나지 않게 목록만 스크롤한다. */
.lapt-pin {
  display: flex; flex-direction: column;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: hidden;
}
.lapt-pin__head { display: flex; gap: 12px; align-items: flex-start; padding: 20px 22px 16px; border-bottom: 1px solid var(--line-soft); }
.lapt-pin__head .lapt-ico { margin-top: 2px; color: var(--mute-2); }
.lapt-pin__head .lapt-ico svg { width: 22px; height: 22px; }
.lapt-pin--warn .lapt-pin__head .lapt-ico { color: var(--warn); }
.lapt-pin--critical .lapt-pin__head .lapt-ico { color: var(--danger); }
.lapt-pin__head .lapt-modal__title { margin-bottom: 4px; }
.lapt-pin__note { font-size: 13px; color: var(--mute); line-height: 1.55; }
.lapt-pin__list {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
}
.lapt-pin__list:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 0; }
.lapt-pin__item { padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.lapt-pin__item:last-child { border-bottom: 0; }
.lapt-pin__title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.lapt-pin .ann__body { font-size: 14px; overflow-wrap: anywhere; }
.lapt-pin__act { padding: 14px 22px; margin: 0; border-top: 1px solid var(--line-soft); }
.lapt-pin__act .btn { flex: 1 1 auto; }

/* ── 무대용 헤더 ─────────────────────────────────────────── */
/* 소개 화면에서는 헤더가 첫 화면 위에 얹힌다. 스크롤이 시작되면
   stage.js가 is-stuck을 붙여 면이 생긴다. */
.gnb--stage {
  position: fixed; left: 0; right: 0; top: 0;
  box-sizing: border-box;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background-color 240ms var(--ease-out, ease-out), border-color 240ms var(--ease-out, ease-out);
}
.gnb--stage.is-stuck {
  background: color-mix(in srgb, var(--ink) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line-soft);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .gnb--stage.is-stuck { background: var(--ink); }
}
/* 헤더가 흐름에서 빠졌으니 공지 띠도 고정해 헤더 바로 아래에 세운다.
   헤더보다 한 단계 낮게 두어야 헤더의 판이 띠를 덮는다. */
.gnb--stage + .ann-bar {
  position: fixed; left: 0; right: 0;
  top: var(--bar-h, 56px);
  z-index: 89;
}

/* ── 주요 메뉴 (소개 화면, shell-config의 nav) ─────────────── */
/* 방문자가 무엇을 고를 수 있는지 한 줄로 보인다. 지금 보는 곳만 글자가 밝다.
   넓으면 줄로 서고, 좁으면 "메뉴" 판 하나로 접힌다. */
.gnb__nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; min-width: 0; }
.gnb__link {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 6px 12px;
  border-radius: var(--r-xs, 6px);
  font-size: 14px; font-weight: 500; color: var(--mute-2);
  white-space: nowrap;
  transition: color var(--t-fast, 160ms) ease, background-color var(--t-fast, 160ms) ease;
}
.gnb__link[aria-current="page"] { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .gnb__link:hover { color: var(--text); background: var(--hover, rgba(236,238,242,.05)); }
}
.gnb__menu-wrap { display: none; }
.pop__item[aria-current="page"] { color: var(--text); font-weight: 600; }
.gnb__login { font-size: 14px; }
.gnb__cta { margin-left: 6px; white-space: nowrap; }
/* `.gnb a { color: inherit }`가 단추 글자색을 덮어 라임 바탕에 흰 글자가 되던 것을 되돌린다. */
.gnb a.btn--lime { color: var(--on-credit, #0b0d06); }

@media (max-width: 900px) {
  .gnb__nav { display: none; }
  .gnb__menu-wrap { display: block; }
}

/* ── 좁은 화면 ───────────────────────────────────────────── */

@media (max-width: 640px) {
  /* 로그인은 메뉴 판 안으로 들어간다. 시작 단추는 남긴다. */
  .gnb__login { display: none; }
  .gnb__cta { margin-left: 4px; padding: 6px 10px; }
  .gnb { gap: 0; padding: 0 6px; }
  /* 좁은 화면에서도 지금 어느 서비스에 있는지는 남긴다. 제목만으로 짐작하게
     두면 서비스를 오가는 사람이 길을 잃는다. 이름이 길면 말줄임으로 끊는다. */
  .gnb__mark { gap: 6px; flex-shrink: 1; }
  .gnb__service { font-size: 13.5px; min-width: 0; max-width: 72px; overflow: hidden; text-overflow: ellipsis; }

  /* 글자를 감추는 대신 그림을 세운다. 캐럿만 남기면 무엇을 여는지 모른다. */
  .gnb__btn--ico .gnb__label { display: none; }
  .gnb__btn--ico .gnb__ico { display: inline-flex; }
  .gnb__btn--ico .gnb__caret { display: none; }
  .gnb__btn--ico { padding: 6px 10px; min-width: 42px; justify-content: center; }

  /* 계정 이름은 길면 화면을 밀어낸다. 잘라서 한 줄로 붙잡는다. */
  .gnb__acct-name { display: block; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .pop { right: -2px; }
  .pop--start { left: -2px; right: auto; }
}

/* 아주 좁은 기기에서는 잔액의 "크레딧" 꼬리표를 접는다. 숫자는 감추지 않는다. */
@media (max-width: 380px) {
  /* 브랜드는 표지가 대신 말한다. 글자 "랩트"와 빗금을 접고 서비스 이름을 남긴다. */
  .gnb__mark:has(.gnb__service:not([hidden])) .gnb__brand,
  .gnb__mark:has(.gnb__service:not([hidden])) .gnb__sep { display: none; }
  .ann-bar__act { padding: 6px 8px; }
  .gnb__balance small { display: none; }
  .gnb__balance { margin: 0 2px; padding: 7px 9px; }
  .gnb__btn { padding: 6px 7px; }
  .gnb__acct-name { max-width: 60px; }
}

/* 320px 기기: 계정 단추의 캐럿까지 접어야 헤더가 화면 안에 든다.
   단추는 눌린 면으로 열림을 말하므로 캐럿 없이도 무엇인지 안다. */
@media (max-width: 360px) {
  .gnb__mark { padding-right: 4px; }
  .gnb__acct-name + .gnb__caret { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pop, .lapt-toast, .lapt-modal__box, .gnb__delta { transition-property: opacity; }
  .gnb__btn:active, .gnb__balance:active { transform: none; }
  @starting-style { .lapt-toast { transform: none; } .lapt-modal__box { scale: 1; } .pop { scale: 1; } }
  .lapt-toast.is-leaving, .gnb__delta.is-leaving { transform: none; }
}
