/* 그림으로 보는 '데스크톱 앱' 클라이언트 만들기 (desktop-setup.html). style.css 다음에 읽는다 */

.guide-hero { padding-top: 56px !important; padding-bottom: 24px !important; }
.guide-hero h1 { margin: 10px 0 12px; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.25; letter-spacing: -0.03em; }
.guide-hero .lead { max-width: 720px; }
.ready { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.ready li { display: flex; align-items: center; gap: 8px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.ready li::before { content: "✓"; font-weight: 800; color: var(--teal); }

/* 단계 바로가기 */
.jump { position: sticky; top: 61px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 10px max(16px, calc((100% - 1120px) / 2)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.jump a { flex: none; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--fg-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; }
.jump a span { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; }
.jump a:hover { color: var(--fg); border-color: var(--accent); }

/* 단계 카드 */
.guide { padding-top: 32px !important; }
.g-step { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 28px; align-items: start; max-width: 1120px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-bottom: 18px; scroll-margin-top: 120px; }
.g-step > *, .pair > * { min-width: 0; }
.g-step code { overflow-wrap: anywhere; }
.g-num { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--accent); }
.g-num b { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 18px; }
.g-step h2 { margin: 12px 0 10px; font-size: clamp(21px, 3vw, 26px); line-height: 1.35; letter-spacing: -0.02em; }
.g-step ol.do { margin: 0; padding: 0; list-style: none; counter-reset: do; display: grid; gap: 10px; }
.g-step ol.do li { counter-increment: do; position: relative; padding-left: 34px; font-size: 16px; line-height: 1.6; }
.g-step ol.do li::before { content: counter(do); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.g-step ol.do b { background: var(--warn-soft); color: var(--fg); border-radius: 5px; padding: 0 4px; }
.why { margin: 14px 0 0; font-size: 14.5px; color: var(--fg-2); background: var(--surface-2); border-radius: 12px; padding: 10px 14px; }
.why::before { content: "왜 하나요? "; font-weight: 800; color: var(--fg); }
.g-step .warn { font-size: 14.5px; }
.ok { margin: 14px 0 0; font-size: 14.5px; font-weight: 600; color: var(--teal); background: var(--teal-soft); border-radius: 12px; padding: 10px 14px; }

/* 그림: 단순하게 그린 화면 */
.shot { margin: 0; }
.shot-win { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #ffffff; color: #202124; box-shadow: var(--shadow); font-size: 13px; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #f1f3f4; border-bottom: 1px solid #e0e3e7; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dadce0; }
.shot-bar span { margin-left: 8px; flex: 1; font-size: 11.5px; color: #5f6368; background: #ffffff; border-radius: 999px; padding: 3px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 12px; border-bottom: 1px solid #e8eaed; }
.shot-top .logo { font-weight: 700; color: #5f6368; white-space: nowrap; }
.shot-top .proj { border: 1px solid #dadce0; border-radius: 8px; padding: 3px 10px; white-space: nowrap; }
.shot-top .search { flex: 1 1 80px; min-width: 0; background: #f1f3f4; border-radius: 8px; padding: 4px 10px; color: #5f6368; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shot-main { display: grid; grid-template-columns: 120px 1fr; min-height: 210px; }
.shot-main.solo { grid-template-columns: 1fr; }
.shot-side { border-right: 1px solid #e8eaed; padding: 10px 8px; display: grid; align-content: start; gap: 4px; }
.shot-side span { padding: 5px 8px; border-radius: 0 999px 999px 0; color: #3c4043; font-size: 12.5px; }
.shot-side span.on { background: #e8f0fe; color: #1a73e8; font-weight: 700; }
.shot-body { padding: 14px; display: grid; align-content: start; gap: 10px; }
.shot-body h4 { margin: 0; font-size: 15px; font-weight: 600; }
.shot-body p { margin: 0; color: #5f6368; font-size: 12px; }
.field { display: grid; gap: 3px; }
.field small { font-size: 11px; color: #5f6368; }
.field div { border: 1px solid #c4c7c5; border-radius: 6px; padding: 6px 9px; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.field div.typed { border: 2px solid #1a73e8; }
/* 눌러야 할 칸은 안내 말풍선이 잘리지 않게 (긴 글자는 줄바꿈) */
.field div.tap { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.field div.select::after { content: " ▾"; color: #5f6368; float: right; }
.g-btn { justify-self: start; display: inline-block; border-radius: 6px; padding: 6px 14px; font-weight: 600; font-size: 13px; background: #1a73e8; color: #ffffff; }
.g-btn.line { background: #ffffff; color: #1a73e8; border: 1px solid #dadce0; }
.g-btn.text { background: none; color: #1a73e8; padding: 6px 4px; }
.g-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-mini { border: 1px solid #e0e3e7; border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.chk { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #3c4043; }
.chk::before { content: "✓"; flex: none; width: 16px; height: 16px; border-radius: 4px; background: #1a73e8; color: #ffffff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.opt { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 6px; font-size: 12.5px; }
.opt::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #80868b; flex: none; }
.opt.on { background: #e8f0fe; font-weight: 700; color: #1a73e8; }
.opt.on::before { border-color: #1a73e8; background: radial-gradient(#1a73e8 45%, transparent 50%); }
.opt.no { color: #a8abaf; text-decoration: line-through; }
.mask { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.danger-page { background: #fce8e6; }
.danger-page h4 { color: #c5221f; }

/* 눌러야 할 곳 표시 */
.tap { position: relative; outline: 3px solid #f9ab00; outline-offset: 3px; border-radius: 6px; }
.tap::after { content: "여기 눌러요"; position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%); white-space: nowrap; background: #f9ab00; color: #202124; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 9px; z-index: 1; animation: bob 1.6s ease-in-out infinite; }
.tap.up::after { top: auto; bottom: calc(100% + 9px); }
.tap.write::after { content: "여기에 써요"; }
.tap.pick::after { content: "이것을 골라요"; }
.tap.copy::after { content: "복사해요"; }
.tap.paste::after { content: "붙여 넣어요"; }
@keyframes bob { 50% { transform: translate(-50%, -3px); } }
@media (prefers-reduced-motion: reduce) { .tap::after { animation: none; } }
.shot figcaption { margin-top: 10px; font-size: 13px; color: var(--fg-3); text-align: center; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.pair .arrow { font-size: 22px; color: var(--accent); font-weight: 800; }
.hub-win .shot-bar { background: #e8f0fe; }

/* 막혔을 때 */
.stuck { max-width: 1120px; }
.stuck details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.stuck summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 48px; }
.stuck summary::-webkit-details-marker { display: none; }
.stuck summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--fg-3); }
.stuck details[open] summary::after { content: "−"; }
.stuck details p { margin: 0; padding: 0 20px 18px; color: var(--fg-2); }
.done-box { max-width: 1120px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--teal-soft); border-radius: 20px; padding: 24px 28px; margin-bottom: 28px; }
.done-box h2 { margin: 0; font-size: 22px; }
.done-box p { margin: 4px 0 0; color: var(--fg-2); }

@media (max-width: 900px) {
  .g-step { grid-template-columns: 1fr; padding: 22px 18px; }
}
@media (max-width: 640px) {
  .jump { top: 57px; }
  .shot-main { grid-template-columns: 1fr; }
  .shot-side { display: none; }
  .pair { grid-template-columns: 1fr; }
  .pair .arrow { transform: rotate(90deg); justify-self: center; }
  .g-step ol.do li { font-size: 15px; }
}
@media print {
  .top, .jump { display: none; }
  .g-step { break-inside: avoid; box-shadow: none; }
  .tap::after { animation: none; }
}
