/* 가이드: 시작 화면, 소개, 가이드 줄, 알림, 반짝 안내 */

/* 시작 화면 · 소개 */
.guide-welcome { position: fixed; inset: 0; background: rgba(20, 26, 36, .55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.gw-card { box-sizing: border-box; width: 560px; max-width: 100%; max-height: 100%; overflow: auto; background: #fff; border: 1px solid #aab2bf; border-radius: 8px; padding: 26px 28px 22px; box-shadow: 0 12px 32px rgba(20, 26, 36, .28); }
.gw-card h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.35; }
.gw-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.gw-personas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.gw-persona { text-align: left; border: 1px solid var(--line-strong); background: #fff; border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.gw-persona b { font-size: 15px; font-weight: 600; }
.gw-persona span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.gw-persona:hover { border-color: #8c96a6; }
.gw-persona.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.gw-actions { display: flex; gap: 8px; }
.gw-actions .btn { height: 38px; padding: 0 18px; font-size: 14px; }
.gw-note { margin: 16px 0 0 !important; font-size: 13px !important; }
/* 소개 4장 */
.gi-card { width: 480px; }
.gi-card .gw-actions { justify-content: flex-end; }
.gi-skip { margin-right: auto; }
.gi-dots { display: flex; gap: 6px; margin: 0 0 18px; }
.gi-dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); }
.gi-dots i.is-on { background: var(--accent); }
.gi-art { position: relative; height: 120px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; font-weight: 600; overflow: hidden; }
.gi-zones span { width: 26%; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; }
.gi-zones i { width: 20px; height: 20px; border-radius: 50%; background: var(--text); color: #fff; font-style: normal; font-size: 12px; line-height: 20px; text-align: center; }
.gi-btn { padding: 8px 26px; background: var(--accent); color: #fff; border-radius: 4px; }
.gi-ring { position: absolute; left: 50%; top: 50%; width: 104px; height: 46px; margin: -23px 0 0 -52px; border: 2px solid var(--accent); border-radius: 7px; animation: gs-pulse 1.5s ease-out infinite; }
.gi-tip { position: absolute; left: 50%; top: 86px; transform: translateX(-50%); padding: 3px 9px; background: var(--text); color: #fff; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.gi-spot .gi-btn { margin-top: -22px; }
.gi-spot .gi-ring { margin-top: -34px; }
.gi-bar { justify-content: flex-start; padding: 0 16px; }
.gi-bar .gi-count { padding: 2px 8px; background: var(--text); color: #fff; border-radius: 4px; font-size: 12px; }
.gi-bar .gi-chip { margin-left: auto; padding: 4px 10px; background: var(--accent); color: #fff; border-radius: 4px; font-size: 12px; }
.gi-paper span { width: 54px; height: 76px; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); background-image: linear-gradient(#c9d0da 2px, transparent 2px); background-size: 100% 12px; background-position: 0 14px; background-origin: content-box; background-clip: content-box; padding: 8px 7px; }

/* 가이드 창: 화면 왼쪽에 세로로 놓인다(세 칸 옆에 자리를 잡아 칸의 내용을 가리지 않는다).
   위에서부터 지금 단계와 진행 막대, 지금 할 일, 이번 체험에서 확인할 것, 진행 순서, 방금 기록된 작업, 도입 상담. */
#guide-root { min-width: 0; min-height: 0; display: flex; }
.guide-panel { flex: none; width: 292px; min-height: 0; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); font-size: 13px; }
.gd-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 12px; white-space: nowrap; }
.gd-count { flex: none; padding: 2px 8px; border-radius: 4px; background: var(--text); color: #fff; font-size: 12px; font-weight: 700; }
.gd-head b { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.gd-bar { flex: none; height: 4px; margin: 0 12px; border-radius: 2px; background: var(--line); overflow: hidden; }
.gd-bar i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.gd-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.gd-now { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent-soft); }
.gd-todo { font-size: 14px; font-weight: 500; line-height: 1.55; }
.gd-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-account { display: grid; grid-template-columns: auto auto 1fr; justify-items: start; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.gd-account span { grid-column: 1; }
.gd-account small { grid-column: 2 / -1; white-space: normal; font-size: 11px; }
.gd-account code, .gd-chip { height: 22px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; color: var(--text); font-size: 12px; font-weight: 500; line-height: 20px; }
.gd-chip { cursor: pointer; border-color: var(--accent); color: var(--accent); }
.gd-chip:hover { background: #fff; box-shadow: 0 0 0 1px var(--accent); }
.gd-sec h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.gd-goals, .gd-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.gd-goals { gap: 6px; }
.gd-goals li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: start; gap: 6px; font-size: 13px; line-height: 1.45; }
.gd-goals i, .gd-steps i { flex: none; width: 16px; height: 16px; margin-top: 2px; border: 1px solid var(--line-strong); border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700; line-height: 14px; text-align: center; color: var(--muted); }
.gd-goals li.is-done i, .gd-steps .is-done i { border-color: var(--text); background: var(--text) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.300l2.600 2.600L12 5.500' fill='none' stroke='white' stroke-width='1.800'/></svg>") center/14px no-repeat; }
.gd-goals em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.gd-goals li:not(.is-done) span { color: var(--text); }
.gd-steps button { width: 100%; display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 6px; border: 0; border-radius: 4px; background: none; font-size: 13px; color: var(--text); text-align: left; }
.gd-steps button i { margin-top: 0; }
.gd-steps button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-steps button:hover { background: var(--bg); }
.gd-steps .is-done span { color: var(--muted); }
.gd-steps .is-cur { background: var(--accent-soft); font-weight: 700; }
.gd-steps .is-cur i { border-color: var(--accent); background-color: var(--accent); color: #fff; }
.gd-toggle { width: 100%; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; font-size: 13px; font-weight: 500; color: var(--text); }
.gd-toggle span { flex: 1; text-align: left; }
.gd-toggle i { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; line-height: 16px; text-align: center; }
.gd-toggle em { font-style: normal; font-size: 12px; color: var(--accent); }
.gd-history { margin-top: 6px; font-size: 12px; }
.gd-history ul { margin: 0; padding: 0; list-style: none; }
.gd-history li { display: flex; flex-direction: column; padding: 5px 6px; border-top: 1px solid var(--line); }
.gd-history li span { color: var(--muted); }
.gd-history li b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-history li.is-new { background: var(--warn-bg); }
.gd-more { display: none; }
/* 설명 화면(m.html) 링크: 좁은 화면에서만 보인다 */
.gd-explain, .gw-mobile { display: none; text-decoration: none; }
.gd-sumrow { display: contents; }
.gd-foot { flex: none; display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.gd-foot .btn { flex: 1; padding: 0 6px; }
.gd-goalsum, .gd-pinmini { display: none; }
/* 접었을 때: 세 칸 위의 한 줄(지금 단계, 할 일 한 줄, 확인한 목표 수, 진행 막대) */
.guide-panel.is-collapsed { position: relative; width: auto; flex: 1; flex-direction: row; align-items: center; gap: 12px; height: 38px; padding: 0 10px 0 12px; border-right: 0; border-bottom: 1px solid var(--line); }
.guide-panel.is-collapsed .gd-head { padding: 0; }
.guide-panel.is-collapsed .gd-head b { flex: none; font-size: 14px; }
.guide-panel.is-collapsed .gd-head .btn { order: 0; }
.guide-panel.is-collapsed .gd-todo { flex: 1; min-width: 0; font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-panel.is-collapsed .gd-goalsum { display: block; flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.guide-panel.is-collapsed .gd-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; margin: 0; border-radius: 0; background: transparent; }

/* 시작 화면의 제품 소개, 체험 완료 화면 */
.gw-effects { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.gw-effects li { font-size: 13px; line-height: 1.5; }
.gw-effects b { font-weight: 600; margin-right: 6px; }
.gw-effects span { color: var(--muted); }
.gw-ask { margin: 0 0 10px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.gd-done { width: 600px; }
.gd-done h3 { margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.gd-process { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gd-process li { display: flex; align-items: center; gap: 6px; padding: 9px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.gd-process i { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--text); color: #fff; font-style: normal; font-size: 12px; line-height: 18px; text-align: center; }
.gd-env { margin: 0; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 10px; font-size: 13px; line-height: 1.5; }
.gd-env dt { color: var(--muted); }
.gd-env dd { margin: 0; }
.gd-done .gd-opt { margin: 10px 0 12px; font-size: 13px; }
.gd-contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 16px; padding: 10px 12px; background: var(--bg); border-radius: 6px; font-size: 14px; }
.gd-contact span { font-size: 13px; color: var(--muted); }
.gd-contact b { font-weight: 600; }
.gd-done .gw-actions { flex-wrap: wrap; }

/* 알림: 가이드 창을 펼쳐 두면 가이드 창 안에 끼워 넣고(.gd-notice), 접었거나 가이드가 없을 때만 화면 위에 띄운다.
   띄울 때는 오른쪽 아래에 둔다. 왼쪽 아래는 직원 PC 의 작업 표시줄(창 전환 버튼) 자리라 가리면 안 된다. */
.guide-popup { position: fixed; right: 8px; bottom: 40px; z-index: 45; pointer-events: none; }
body.has-guide:not(.guide-collapsed) .guide-popup { bottom: 92px; }
body.has-guide:not(.guide-collapsed) .gp-card { width: 276px; }
.gp-card { pointer-events: auto; width: 360px; max-width: calc(100vw - 24px); background: #232a37; color: #fff; border-radius: 6px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(20, 26, 36, .3); display: flex; flex-direction: column; gap: 4px; }
/* 펼친 가이드 창 안에 끼워 넣은 알림: 다른 버튼을 가리지 않도록 겹치지 않고 자리를 차지한다. */
body.has-guide .gd-notice .gp-card { width: auto; max-width: none; box-shadow: none; }
.gp-kicker { font-size: 12px; color: #aeb7c6; }
.gp-title { font-size: 15px; font-weight: 600; }
.gp-body { font-size: 13px; line-height: 1.55; color: #dfe4ec; }
.gp-why { font-size: 13px; line-height: 1.55; color: #f3cf7a; }
.gp-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }

/* 지금 조작할 칸 */
.zone.is-dim { opacity: .62; transition: opacity .2s; }
.zone.is-dim:hover { opacity: 1; }
.zone.is-focus { border-color: var(--accent); }

/* 반짝 안내: 지금 누를 곳 위에 고리와 한 줄 말풍선을 겹친다. 클릭을 가로채지 않는다. */
.guide-spot { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.gs-ring { position: absolute; border: 2px solid var(--accent); border-radius: 6px; }
.gs-ring.is-pulse { animation: gs-pulse 1.5s ease-out infinite; }
.gs-ring.is-zone { border-style: dashed; border-radius: 8px; animation: none; }
@keyframes gs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); }
  70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}
.gs-tip { position: absolute; padding: 4px 10px; background: var(--accent); color: #fff; border-radius: 4px; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; box-shadow: 0 2px 6px rgba(20, 26, 36, .25); }
.gs-tip.is-zone { background: var(--text); font-weight: 500; }
/* 말풍선을 대상에서 떨어뜨려 둔 경우(가까운 자리가 모두 다른 단추를 덮을 때): 작은 화살표로 대상 쪽을 가리킨다. */
.gs-tip.has-arrow::after { content: ""; position: absolute; width: 0; height: 0; border: 6px solid transparent; }
.gs-tip.has-arrow.is-right::after { left: -12px; top: 50%; margin-top: -6px; border-right-color: var(--accent); }
.gs-tip.has-arrow.is-left::after { right: -12px; top: 50%; margin-top: -6px; border-left-color: var(--accent); }
.gs-tip.has-arrow.is-below::after { top: -12px; left: 50%; margin-left: -6px; border-bottom-color: var(--accent); }
.gs-tip.has-arrow.is-above::after { bottom: -12px; left: 50%; margin-left: -6px; border-top-color: var(--accent); }
.gs-tip.is-zone.has-arrow.is-right::after { border-right-color: var(--text); }
.gs-tip.is-zone.has-arrow.is-left::after { border-left-color: var(--text); }
.gs-tip.is-zone.has-arrow.is-below::after { border-bottom-color: var(--text); }
.gs-tip.is-zone.has-arrow.is-above::after { border-top-color: var(--text); }
/* 진행 순서: 지금 단계(자유 체험이면 아직 안 해 본 다음 단계)의 번호가 반짝인다. 위에는 권유 한 줄. */
.gd-cheer { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: var(--accent); font-weight: 500; }
.gd-cheer.is-done { color: var(--muted); }
.gd-steps .is-next i { border-color: var(--accent); animation: gs-pulse 1.5s ease-out infinite; }
/* 가이드 창 머리: [가이드 끄기/켜기]와 작은 메뉴(⋯). 좁은 화면에서는 [가이드 끄기]가 메뉴 안에만 있다. */
.gd-head { flex-wrap: wrap; }
.gd-head b { flex: 1 1 110px; }
.gd-tools { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.gd-head .btn { flex: none; }
.guide-panel.is-collapsed .gd-head { flex-wrap: nowrap; }
.gd-menu { position: relative; flex: none; display: inline-flex; }
.gd-menu-btn { padding: 0 7px; font-weight: 700; letter-spacing: 1px; }
.gd-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; display: flex; flex-direction: column; gap: 4px; min-width: 150px; padding: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 6px 18px rgba(20, 26, 36, .18); }
.gd-menu-list .btn { justify-content: flex-start; white-space: nowrap; }
.guide-panel.is-collapsed .gd-menu-list { right: auto; left: 0; }
/* 1단계에 처음 들어갔을 때 한 번 보이는 안내: 안내가 필요 없으면 끌 수 있다 */
.gd-offhint { font-size: 12px; line-height: 1.5; color: var(--muted); }
.guide-panel.is-collapsed .gd-offhint { display: none; }
/* 알림의 [다시 보지 않기]: 단추 줄 왼쪽의 작은 링크 */
.gp-mute { margin-right: auto; padding: 0; border: 0; background: none; color: #aeb7c6; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.gp-mute:hover { color: #fff; }
/* 움직임을 줄이도록 설정한 경우: 반짝임 없이 굵은 테두리로 표시한다. */
@media (prefers-reduced-motion: reduce) {
  .gs-ring.is-pulse, .gi-ring, .gd-steps .is-next i { animation: none; border-width: 3px; }
  .gd-steps .is-next i { border-width: 2px; }
  .zones { transition: none; }
}

/* ── 좁은 화면(휴대폰, 태블릿 세로): 가이드는 아래쪽 시트가 된다. 접으면 머리(단계, 진행 막대, 할 일 한 줄)만 보인다 ── */
@media (max-width: 1000px) {
  .guide-panel, .guide-panel.is-collapsed { position: relative; width: auto; flex: 1; flex-direction: column; align-items: stretch; gap: 0; height: auto; max-height: 55vh; max-height: 55dvh; padding: 0; border-right: 0; border-bottom: 0; border-top: 1px solid var(--line-strong); box-shadow: 0 -4px 14px rgba(20, 26, 36, .12); }
  .gd-head, .guide-panel.is-collapsed .gd-head { padding: 4px 6px 4px 12px; }
  .gd-head .btn { height: 44px; padding: 0 14px; font-size: 13px; }
  .gd-head .gd-off { display: none; }
  .gd-menu-btn { padding: 0 12px; }
  .gd-menu-list .btn { height: 44px; }
  /* 휴대폰에서는 [⋯]가 오른쪽 끝에 있으므로 목록을 오른쪽에 맞춘다(왼쪽에 맞추면 화면 밖으로 나가 가로로 밀림) */
  .guide-panel.is-collapsed .gd-menu-list { left: auto; right: 0; }
  .guide-panel.is-collapsed .gd-offhint { display: block; order: 3; padding: 4px 12px 0; }
  .guide-panel.is-collapsed .gd-bar { position: static; height: 4px; margin: 0 12px; border-radius: 2px; background: var(--line); }
  .guide-panel.is-collapsed .gd-todo { flex: none; padding: 6px 12px 0; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--text); }
  .guide-panel.is-collapsed .gd-goalsum { padding: 2px 12px 8px; }
  .guide-panel.is-collapsed .gd-head { order: 1; } .guide-panel.is-collapsed .gd-bar { order: 2; } .guide-panel.is-collapsed .gd-todo { order: 3; } .guide-panel.is-collapsed .gd-goalsum { order: 4; }
  .gd-account code, .gd-chip { height: 40px; padding: 0 10px; font-size: 13px; line-height: 38px; }
  .gd-actions .btn, .gd-more .btn, .gd-foot .btn { height: 44px; font-size: 14px; }
  .gd-more { display: flex; flex-wrap: wrap; gap: 6px; }
  .gd-more .btn { flex: 1; text-decoration: none; }
  .gd-explain { display: inline-flex; }
  /* 알림은 시트 맨 위에 끼워 넣는다(화면 위에 띄우면 칸의 내용을 가린다) */
  .guide-panel.is-collapsed .gd-notice { padding: 8px 8px 2px; }
  /* 시트에 끼운 알림은 낮게: 단추를 제목 줄 오른쪽에 둔다 */
  .gd-notice .gp-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 8px 10px 10px 12px; }
  .gd-notice .gp-card > * { grid-column: 1 / -1; }
  .gd-notice .gp-card > .gp-title { grid-column: 1; grid-row: 1; }
  .gd-notice .gp-card > .gp-actions { grid-column: 2; grid-row: 1; margin-top: 0; }
  /* 접힌 시트의 마지막 줄: 확인한 목표 수와 [설명 보기] */
  .guide-panel.is-collapsed .gd-sumrow { order: 4; display: flex; align-items: center; gap: 8px; padding: 2px 6px 4px 0; }
  .guide-panel.is-collapsed .gd-sumrow .gd-goalsum { flex: 1; min-width: 0; padding: 0 12px; }
  .gd-sumrow .gd-explain { height: 40px; padding: 0 12px; font-size: 13px; }
  .gw-mobile { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; background: var(--bg); border-radius: 6px; font-size: 13px; line-height: 1.5; }
  .gw-mobile span { flex: 1; min-width: 0; }
  .gw-mobile .btn { flex: none; height: 40px; }
  .gd-steps button { height: 44px; font-size: 14px; }
  .gd-steps i { width: 20px; height: 20px; font-size: 12px; line-height: 18px; }
  .gd-toggle { height: 44px; }
  /* 알림은 상단 줄 바로 아래 얇은 띠(guide.js inlineNotice): 제목과 단추 한 줄, 본문은 두 줄까지. 아래쪽 시트와 칸의 단추를 가리지 않는다 */
  .guide-popup, body.has-guide:not(.guide-collapsed) .guide-popup { left: 6px; right: 6px; top: 50px; bottom: auto; }
  .gp-card, body.has-guide:not(.guide-collapsed) .gp-card { width: auto; max-width: none; }
  .guide-popup .gp-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; padding: 6px 6px 8px 12px; }
  .guide-popup .gp-card > * { grid-column: 1 / -1; }
  .guide-popup .gp-card > .gp-title { grid-column: 1; grid-row: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .guide-popup .gp-card > .gp-actions { grid-column: 2; grid-row: 1; margin-top: 0; }
  .guide-popup .gp-body { font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .guide-popup .gp-why, .guide-popup .gp-kicker { display: none; }
  .guide-popup .gp-mute { min-height: 40px; }
  .guide-popup .gp-actions .btn { height: 40px; padding: 0 12px; font-size: 13px; }
  /* 접힌 시트의 복합기 PIN 한 줄(guide.js pinMini) */
  .guide-panel.is-collapsed .gd-pinmini { flex: none; display: inline-flex; margin-left: 12px; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
  .gp-actions .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .gw-personas { grid-template-columns: minmax(0, 1fr); }
  .gw-card { padding: 20px 18px 18px; }
  .gw-actions { flex-wrap: wrap; }
  .gw-actions .btn { height: 46px; flex: 1; }
  /* 안내 카드가 화면보다 길면 카드 안에서 스크롤되고, 아래쪽 버튼 줄은 카드 아래에 붙어 늘 보인다 */
  /* bottom 은 카드 아래 안쪽 여백(18px)만큼 내려야 단추 줄 아래로 내용이 비쳐 보이지 않는다 */
  .gw-card > .gw-actions { position: sticky; bottom: -18px; z-index: 1; margin: 0 -18px; padding: 10px 18px 12px; background: #fff; }
  .gi-skip { flex: none !important; margin-right: 0; }
  .gd-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone.is-dim { opacity: 1; }
}
/* 가로로 눕힌 휴대폰: 세로 공간이 모자라므로 접힌 가이드는 머리와 진행 막대만 보인다. */
@media (max-width: 1000px) and (max-height: 480px) {
  .guide-panel.is-collapsed .gd-todo, .guide-panel.is-collapsed .gd-goalsum, .guide-panel.is-collapsed .gd-sumrow { display: none; }
  /* 시트에 끼운 알림도 짧게: 제목, 본문, 단추만 */
  .gd-notice .gp-why, .gd-notice .gp-kicker { display: none; }
  .guide-panel { max-height: 84vh; max-height: 84dvh; }
}
/* 세로가 짧은 휴대폰(보이는 높이 700px 이하): 접힌 시트의 한 번만 보이는 "가이드 끄기" 안내는 숨기고, 시트는 보이는 높이의 45% 까지만 쓴다. */
@media (max-width: 1000px) and (min-height: 481px) and (max-height: 700px) {
  .guide-panel.is-collapsed .gd-offhint { display: none; }
  .guide-panel, .guide-panel.is-collapsed { max-height: 45vh; max-height: 45dvh; }
  .guide-panel.is-collapsed .gd-todo { padding-top: 4px; }
}
