/* 프로그램 화면을 HTML로 그린 가이드용 목업.
   실제 프로그램(검정 + 주황 테마)과 같은 색·구도를 쓰되, 설명에 필요한 부분만 간결하게 그린다.
   만들어지는 곳: scripts/build_program_guides.py (이 CSS를 쓰는 가이드 페이지를 한꺼번에 다시 만든다) */

.gm-stage { position: relative; width: 100%; min-height: 200px; margin: 0 auto; overflow: hidden; border-radius: 16px; }
/* 안쪽 그림은 흐름에서 빼서(절대 위치) 920px 폭이 바깥 칸을 넓히지 않게 하고, 크기는 스크립트가 맞춘다 */
.gm-stage__inner { position: absolute; left: 0; top: 0; width: 920px; transform-origin: top left; }

/* 앱 창 */
.gm-win { position: relative; width: 920px; color: #fff; background: #000; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(15, 23, 42, .28); font: 500 13px/1.5 Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -.01em; }
.gm-win * { box-sizing: border-box; }
.gm-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #121212; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gm-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.gm-bar i:nth-child(1) { background: #ff5f57; } .gm-bar i:nth-child(2) { background: #febc2e; } .gm-bar i:nth-child(3) { background: #28c840; }
.gm-bar b { margin-left: 10px; font-size: 12px; font-weight: 600; color: #b0b0b0; }
.gm-app { display: grid; grid-template-columns: 188px 1fr; min-height: 470px; }
.gm-side { padding: 16px 12px; background: #1a1a1a; border-right: 1px solid rgba(255, 255, 255, .06); }
.gm-brand { display: flex; align-items: center; gap: 8px; margin: 0 4px 18px; font-size: 14px; font-weight: 800; }
.gm-brand span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #bd4e14; font-size: 12px; }
.gm-brand em { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #b0b0b0; font-size: 10px; font-style: normal; font-weight: 700; }
.gm-nav { display: grid; gap: 4px; }
.gm-nav div { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; border-radius: 9px; color: #b0b0b0; font-size: 13px; font-weight: 600; }
.gm-nav div::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .55; }
.gm-nav div.is-on { background: rgba(189, 78, 20, .22); color: #fff; box-shadow: inset 0 0 0 1px rgba(189, 78, 20, .45); }
.gm-nav div.is-on::before { background: #e0642a; opacity: 1; }
.gm-side__foot { margin-top: 22px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: #b0b0b0; font-size: 11.5px; line-height: 1.5; }
.gm-side__foot b { display: block; color: #fff; font-size: 12.5px; }
.gm-main { position: relative; padding: 18px 20px 22px; background: #000; }
.gm-title { margin: 0 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.gm-sub { margin: -6px 0 12px; color: #808080; font-size: 12px; }

/* 카드·입력·버튼 */
.gm-card { margin-bottom: 12px; padding: 14px 16px; background: #1e1e1e; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; }
.gm-card h4 { margin: 0 0 10px; font-size: 13.5px; font-weight: 800; }
.gm-card h4 small { margin-left: 8px; color: #808080; font-size: 11.5px; font-weight: 600; }
.gm-row { display: flex; align-items: center; gap: 10px; }
.gm-row--between { justify-content: space-between; }
.gm-grid { display: grid; gap: 10px; }
.gm-grid--2 { grid-template-columns: repeat(2, 1fr); } .gm-grid--3 { grid-template-columns: repeat(3, 1fr); } .gm-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gm-label { display: block; margin-bottom: 5px; color: #b0b0b0; font-size: 11.5px; font-weight: 700; }
.gm-input { display: flex; align-items: center; min-height: 34px; padding: 0 12px; background: #252525; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; color: #e8e8e8; font-size: 12.5px; }
.gm-input.is-ph { color: #707070; }
.gm-input--area { align-items: flex-start; min-height: 64px; padding: 9px 12px; line-height: 1.55; }
.gm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 16px; border-radius: 8px; background: #bd4e14; color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 12px rgba(189, 78, 20, .3); }
.gm-btn--ghost { background: #2a2a2a; color: #e8e8e8; box-shadow: none; border: 1px solid rgba(255, 255, 255, .1); }
.gm-btn--green { background: #03a94d; box-shadow: none; }
.gm-btn--danger { background: #3a1d1d; color: #ff8d8d; box-shadow: none; }
.gm-btn--sm { min-height: 28px; padding: 0 12px; font-size: 11.5px; }
.gm-btn--block { width: 100%; }
.gm-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #c8c8c8; font-size: 11px; font-weight: 700; }
.gm-pill--ok { background: rgba(3, 169, 77, .2); color: #5fe39a; }
.gm-pill--warn { background: rgba(254, 188, 46, .18); color: #ffd36b; }
.gm-pill--accent { background: rgba(189, 78, 20, .28); color: #ffab80; }
.gm-muted { color: #808080; }
.gm-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.gm-tabs span { padding: 6px 14px; border-radius: 8px; background: #1e1e1e; color: #b0b0b0; font-size: 12px; font-weight: 700; }
.gm-tabs span.is-on { background: #bd4e14; color: #fff; }
.gm-toggle { position: relative; display: inline-block; width: 34px; height: 19px; border-radius: 999px; background: #3a3a3a; vertical-align: middle; }
.gm-toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.gm-toggle.is-on { background: #bd4e14; } .gm-toggle.is-on::after { left: 17px; }
.gm-check { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; background: #2a2a2a; border: 1px solid rgba(255, 255, 255, .2); font-size: 11px; font-weight: 900; }
.gm-check.is-on { background: #bd4e14; border-color: #bd4e14; }

/* 숫자 칸 */
.gm-stat { padding: 12px 14px; background: #252525; border: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; }
.gm-stat span { display: block; color: #9a9a9a; font-size: 11px; font-weight: 700; }
.gm-stat b { display: block; margin-top: 3px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.gm-stat small { color: #808080; font-size: 11px; }
.gm-stat--accent b { color: #ff9a62; }

/* 표 */
.gm-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gm-table th, .gm-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.gm-table th { color: #808080; font-size: 11px; font-weight: 700; }

/* 안에 겹쳐 뜨는 창 */
.gm-dim { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(0, 0, 0, .66); }
.gm-modal { width: min(520px, 86%); padding: 18px 20px; background: #1e1e1e; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.gm-modal h3 { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.gm-modal h3 span { color: #808080; font-weight: 400; }
.gm-modal p { margin: 0 0 12px; color: #b0b0b0; font-size: 12px; }
.gm-modal__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.gm-spin { width: 34px; height: 34px; margin: 6px auto 10px; border: 3px solid rgba(255, 255, 255, .15); border-top-color: #e0642a; border-radius: 50%; }
.gm-choice { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 11px 14px; background: #252525; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; }
.gm-choice.is-on { border-color: #bd4e14; box-shadow: 0 0 0 1px rgba(189, 78, 20, .5); }
.gm-choice b { display: block; font-size: 13px; }
.gm-choice small { color: #9a9a9a; font-size: 11.5px; }

/* 설명 핀 */
.gm-pin { position: absolute; z-index: 5; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ff6a1f; color: #fff; font: 800 12px/1 Pretendard, sans-serif; box-shadow: 0 0 0 2px rgba(0, 0, 0, .75), 0 4px 10px rgba(255, 106, 31, .5); transition: opacity .25s, transform .25s; }
.gm-ring { position: absolute; z-index: 4; border: 2px dashed #ff6a1f; border-radius: 10px; pointer-events: none; }

/* 그림 아래 설명 */
.gm-legend { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: gm; }
.gm-legend li { position: relative; padding: 10px 14px 10px 46px; border-radius: 12px; background: #fff; border: 1px solid rgba(15, 23, 42, .08); font-size: 14px; line-height: 1.6; color: #2b3548; }
.gm-legend li::before { counter-increment: gm; content: counter(gm); position: absolute; left: 12px; top: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ff6a1f; color: #fff; font-size: 12px; font-weight: 800; }
.gm-legend b { color: #0b1220; }
.guide-media .gm-stage { background: #e9edf5; padding: 22px 0; }
@media (max-width: 720px) { .gm-legend li { font-size: 13.5px; } }

/* 핀을 요소 모서리에 붙이는 방식(그림이 바뀌어도 위치가 어긋나지 않음) */
.gm-anchor { position: relative; }
.gm-anchor > .gm-pin { right: -12px; top: -12px; }
.gm-anchor > .gm-pin.is-tl { right: auto; left: -10px; }
.gm-anchor > .gm-pin.is-mid { top: calc(50% - 13px); }
.gm-anchor.is-ring { box-shadow: 0 0 0 2px #ff6a1f; }

/* 브라우저·설치 창(앱 밖 화면) */
.gm-browser { width: 100%; overflow: hidden; border: 1px solid rgba(15, 23, 42, .15); border-radius: 12px; background: #fff; color: #0b1220; box-shadow: 0 14px 40px rgba(15, 23, 42, .2); font: 500 13px/1.5 Pretendard, -apple-system, "Malgun Gothic", sans-serif; }
.gm-browser__bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: #eef1f6; border-bottom: 1px solid #dde3ee; }
.gm-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c5ccd9; }
.gm-browser__url { flex: 1; max-width: 360px; margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: #fff; color: #5b667a; font-size: 11.5px; }
.gm-browser__body { padding: 22px 26px 26px; }
.gm-browser__body h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.gm-browser__body p { margin: 0 0 14px; color: #5b667a; font-size: 12.5px; }
.gm-social { display: grid; gap: 8px; max-width: 280px; }
.gm-social div { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 10px; font-size: 13px; font-weight: 800; }
.gm-social .k { background: #fee500; color: #191600; } .gm-social .n { background: #03c75a; color: #fff; } .gm-social .g { background: #fff; color: #333; border: 1px solid #d6dbe6; }
.gm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; width: 920px; padding: 0 12px; }
.gm-two .gm-win { width: 100%; }
.gm-two .gm-app { grid-template-columns: 1fr; min-height: 300px; }
.gm-os { width: 380px; padding: 20px 22px; border-radius: 12px; background: #fff; color: #111; box-shadow: 0 14px 40px rgba(15, 23, 42, .22); font: 500 13px/1.55 "Segoe UI", Pretendard, "Malgun Gothic", sans-serif; }
.gm-os h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #0f3d8c; }
.gm-os p { margin: 0 0 14px; color: #444; }
.gm-os .gm-os__btns { display: flex; justify-content: flex-end; gap: 8px; }
.gm-os .gm-os__btn { padding: 7px 18px; border-radius: 4px; border: 1px solid #aaa; background: #f3f3f3; font-size: 12.5px; }
.gm-os .gm-os__btn.is-pri { background: #0067c0; border-color: #0067c0; color: #fff; }
.gm-os--mac h3 { color: #111; }
.gm-flow { display: flex; align-items: center; justify-content: center; gap: 22px; width: 920px; padding: 6px 20px; }
.gm-flow__arrow { color: #ff6a1f; font-size: 26px; font-weight: 800; }
.gm-pin.gm-pin--inline { position: static; display: inline-grid; margin-right: 8px; vertical-align: middle; }
.gm-spin-wrap { width: 44px; margin: 6px auto 10px; }
.gm-spin-wrap .gm-spin { margin: 5px; }

/* 가이드 글 스타일(제목·굵은 글씨 색)이 그림 안으로 새어 들어오지 않게 고정 */
.gm-win h2, .gm-win h3, .gm-win h4, .gm-win b, .gm-win strong { color: #fff; font-family: inherit; letter-spacing: -.02em; text-transform: none; }
.gm-win .gm-card h4 small, .gm-win .gm-muted, .gm-win .gm-sub { color: #808080; }
.gm-win .gm-stat b { color: #fff; } .gm-win .gm-stat--accent b { color: #ff9a62; }
.gm-win .gm-modal p { color: #b0b0b0; }
.gm-win .gm-btn, .gm-win .gm-btn b { color: #fff; }
.gm-win .gm-btn--ghost { color: #e8e8e8; } .gm-win .gm-btn--danger { color: #ff8d8d; }
.gm-win .gm-pill--ok { color: #5fe39a; } .gm-win .gm-pill--accent { color: #ffab80; }
.gm-browser h3, .gm-browser b { color: #0b1220; } .gm-browser p { color: #5b667a; }
.gm-os h3 { color: #0f3d8c; } .gm-os--mac h3 { color: #111; } .gm-os p, .gm-os b { color: #444; }
.gm-legend li b { color: #0b1220; }
.gm-win h2, .gm-win h3, .gm-win h4 { margin-top: 0; padding: 0; border: 0; background: none; }
.gm-win h2, .gm-win h3, .gm-win h4 { color: #fff !important; font-size: inherit; }
.gm-win h2.gm-title { font-size: 18px; margin: 0 0 12px !important; }
.gm-win .gm-card h4 { font-size: 13.5px; margin: 0 0 10px !important; }
.gm-win .gm-card h4[style*="margin:0"] { margin: 0 !important; }
.gm-win .gm-modal h3 { font-size: 15px; margin: 0 0 6px !important; }
.gm-browser h3 { color: #0b1220 !important; } .gm-os h3 { color: #0f3d8c !important; } .gm-os--mac h3 { color: #111 !important; }

.gm-hint { display: none; margin: 8px 0 0; color: #6b7686; font-size: 12.5px; font-weight: 600; text-align: center; }
@media (max-width: 719px) { .gm-hint { display: block; } .gm-stage { -webkit-overflow-scrolling: touch; } }

/* 움직이는 그림 */
.gm-off { opacity: 0; visibility: hidden; }
.gm-win .gm-off, .gm-os .gm-off, .gm-browser .gm-off { transition: opacity .3s; }
.gm-dim.gm-off { pointer-events: none; }
.gm-anchor--inline { display: inline-block; }
.gm-os__link { color: #0067c0; }
.gm-os__detail { margin: 8px 0 10px; padding: 8px 10px; background: #f3f3f3; border-radius: 4px; font-size: 12px; color: #555; }
.gm-dimmed { opacity: .45; filter: grayscale(.4); transition: opacity .4s, filter .4s; }
.gm-dimmed.is-live { opacity: 1; filter: none; }
.gm-browser__done { margin-top: 14px; padding: 9px 12px; border-radius: 8px; background: #e3f6ec; color: #067a3f; font-size: 12.5px; font-weight: 700; transition: opacity .3s; }
.gm-toggle { transition: background .25s; }
.gm-choice, .gm-check { transition: border-color .25s, background .25s, box-shadow .25s; }
.gm-cursor { position: absolute; z-index: 9; width: 26px; height: 26px; margin: -3px 0 0 -4px; pointer-events: none; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45)); transition: left .75s cubic-bezier(.4, 0, .2, 1), top .75s cubic-bezier(.4, 0, .2, 1), transform .12s; }
.gm-cursor.is-down { transform: scale(.82); }
.gm-ripple { position: absolute; z-index: 8; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgba(255, 106, 31, .55); pointer-events: none; animation: gm-rip .6s ease-out forwards; }
@keyframes gm-rip { to { transform: scale(3.2); opacity: 0; } }
/* 움직이는 중에는 번호 대신 커서와 강조 테두리로 가리켜서 글자를 가리지 않는다 */
.gm-stage.is-anim .gm-pin { display: none; }
.gm-anchor.is-ring-now { outline: 2px solid #ff6a1f; outline-offset: 3px; border-radius: 10px; transition: outline-color .2s; }
.gm-ctl { position: absolute; right: 10px; bottom: 10px; z-index: 12; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(11, 18, 32, .78); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; opacity: .65; transition: opacity .2s; }
.gm-ctl:hover { opacity: 1; }
.gm-legend li { transition: border-color .25s, box-shadow .25s, background .25s; }
.gm-legend li.is-now { border-color: #ff6a1f; background: #fff7f2; box-shadow: 0 0 0 2px rgba(255, 106, 31, .25); }
/* 단계 목록(스토어 테마가 안쪽 여백을 줄여서 번호가 글자를 가리던 것 바로잡기) */
.store-page .guide-article .guide-steps > li { padding-left: 66px !important; }
.store-page .guide-article .guide-steps > li::before { left: 18px; top: 16px; }
@media (prefers-reduced-motion: reduce) { .gm-cursor, .gm-ripple { display: none; } }

/* 가이드 본문의 글자색이 그림 안 글자로 새어 들어오지 않게(검은 화면 위 어두운 글씨 문제) */
.gm-win p { color: #b8b8b8 !important; }
.gm-win p.gm-muted, .gm-win .gm-muted, .gm-win small { color: #9a9a9a !important; }
.gm-win .gm-label { color: #b8b8b8 !important; }
.gm-win .gm-input { color: #ececec !important; }
.gm-win .gm-input.is-ph { color: #8e8e8e !important; }
.gm-win .gm-card h4 small { color: #8f8f8f !important; }
.gm-win .gm-stat span { color: #a5a5a5 !important; }
.gm-win td, .gm-win th { color: #e6e6e6; }
.gm-win th { color: #8f8f8f; }
.gm-btn--green { background: #028f44 !important; }
.gm-social .n { background: #04a84b; }
.gm-social > div { width: 100%; }
.gm-social .gm-anchor > .gm-pin { right: -12px; top: -12px; }

.store-page .guide-article .gm-win p, .store-page .gm-win p { color: #b8b8b8 !important; }
.store-page .guide-article .gm-win p.gm-muted, .store-page .gm-win .gm-muted, .store-page .gm-win small { color: #9a9a9a !important; }
.store-page .guide-article .gm-modal p { color: #b8b8b8 !important; }
.gm-social .n { background: #039545; }

/* 실제 프로그램 화면(iframe) 그림 */
.gm-stage--scene .gm-stage__inner { width: 960px; }
.gm-appwin { overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: #000; box-shadow: 0 18px 50px rgba(15, 23, 42, .28); }
.gm-appwin .gm-bar { color: #b0b0b0; }
.gm-frame { display: block; width: 100%; border: 0; background: #000; }
.gm-solo { display: grid; place-items: center; padding: 8px 0; }
.gm-browser--solo { width: 560px; }
