/* 모담: 함께 나누는 시간에 안성맞춤 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink); background-color: var(--bg); background-image: var(--pattern); background-size: 80px 80px;
  min-height: 100vh; -webkit-font-smoothing: antialiased; letter-spacing: -0.2px; word-break: keep-all;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 로고 */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { position: relative; width: 38px; height: 30px; flex: none; }
.logo-mark i { position: absolute; display: block; border-radius: 12px; }
.logo-mark i:nth-child(1) { left: 0; top: 0; width: 26px; height: 20px; background: var(--accent); }
.logo-mark i:nth-child(1)::after { content: ""; position: absolute; left: 5px; bottom: -5px; border: 5px solid transparent; border-top-color: var(--accent); border-left-color: var(--accent); }
.logo-mark i:nth-child(2) { right: 0; bottom: 0; width: 22px; height: 17px; background: var(--n1); border: 2.5px solid var(--surface); }
.logo-word { font-weight: 900; font-size: 20px; color: var(--ink); letter-spacing: -0.5px; line-height: 1; }
.logo-tag { font-size: 11.5px; color: var(--sub); font-weight: 500; margin-top: 3px; }

/* 공통 버튼·입력 */
.btn { text-decoration: none; height: 40px; padding: 0 15px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.btn:hover { border-color: var(--sub); }
.btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.btn.dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn.big { height: 54px; border-radius: 16px; font-size: 17px; width: 100%; }
.btn.danger { color: #C0392B; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .5; cursor: default; }
.icon-btn { width: 40px; padding: 0; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.field small { display: block; color: var(--sub); font-size: 12.5px; margin-top: 5px; line-height: 1.5; }
.input, select.input, textarea.input { width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 15px; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.input:focus { border-color: var(--accent); outline: none; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--sub); }
.err { color: #C0392B; font-size: 14px; margin-top: 10px; min-height: 20px; }

/* 스위치 */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 42px; height: 24px; border-radius: 20px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 36px; padding: 0 12px 0 9px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }

/* 상단 바 */
.topbar { position: sticky; top: 0; z-index: 20; min-height: 68px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 10px 24px; flex-wrap: wrap; }
.topbar .sep { width: 1px; height: 32px; background: var(--line); }
.topbar .title h1 { font-size: 19px; font-weight: 700; letter-spacing: -0.5px; }
.topbar .title p { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.topbar .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.tab { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--sub); text-decoration: none; display: inline-flex; align-items: center; }
.tab.on { background: var(--bg); color: var(--ink); font-weight: 700; }

.page { max-width: 1120px; margin: 0 auto; padding: 28px 24px 80px; }
.page h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.7px; }
.page .lead { color: var(--sub); margin-top: 6px; font-size: 14.5px; line-height: 1.6; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card + .card { margin-top: 16px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.banner { margin-bottom: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 12px 16px; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner.warn { border-color: #F2B544; background: #FFF8E6; color: #5B4300; }

/* 로그인·입장 */
.center { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 48px 18px; }
.panel { width: 100%; max-width: 420px; background: var(--surface); border-radius: 26px; padding: 28px 24px; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(30, 35, 80, .08); }
.panel h1 { font-size: 24px; font-weight: 900; letter-spacing: -0.7px; line-height: 1.35; margin-top: 22px; }
.panel .cls { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--bg); padding: 4px 10px; border-radius: 20px; }
.panel h3 { font-size: 14.5px; font-weight: 700; margin: 22px 0 10px; }
.slots { display: flex; gap: 10px; }
.slot { width: 58px; height: 58px; border-radius: 16px; background: var(--bg); border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 28px; }
.slot.now { border: 2px solid var(--accent); }
.keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.key { height: 52px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; font-size: 25px; border: 1px solid var(--line); }
.key.txt { font-size: 13px; color: var(--sub); }
.pin { letter-spacing: 12px; text-align: center; font-size: 24px; height: 56px; }

/* 보드 목록 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 22px; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px; text-align: left; display: flex; flex-direction: column; }
.bcard:hover { border-color: var(--sub); }
.bcard .prev { height: 120px; border-radius: 13px; background-color: var(--bg); background-image: var(--pattern); background-size: 60px; padding: 14px; display: flex; gap: 8px; align-items: flex-start; overflow: hidden; }
.bcard .prev i { display: block; flex: 1; height: 34px; border-radius: 10px 10px 10px 4px; }
.bcard .prev i:nth-child(2) { margin-top: 22px; }
.bcard .meta { padding: 12px 6px 6px; }
.bcard .meta b { display: block; font-size: 16px; line-height: 1.4; }
.bcard .meta span { font-size: 12.5px; color: var(--sub); }
.bcard.new { align-items: center; justify-content: center; min-height: 190px; border: 2px dashed var(--line); background: transparent; font-weight: 700; color: var(--sub); font-size: 15px; gap: 8px; }

/* 보드 화면 */
.notice { margin: 16px 24px 0; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; padding: 8px 8px 8px 14px; gap: 10px; font-size: 13.5px; flex-wrap: wrap; }
.notice span { color: var(--sub); }
.notice .btn { margin-left: auto; height: 34px; }
.board-wrap { padding: 20px 24px 120px; }
.board-desc { margin: 14px 24px 0; color: var(--sub); font-size: 14px; }
.cols { display: flex; gap: 22px; align-items: flex-start; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.col { flex: 1 0 300px; max-width: 440px; min-width: 0; scroll-snap-align: start; }
.col h2 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0 0 14px 4px; }
.col h2 .dot { width: 10px; height: 10px; border-radius: 50%; }
.col h2 em { font-style: normal; font-weight: 500; color: var(--sub); font-size: 13px; }
.wall { columns: 300px; column-gap: 22px; }
.wall .post { break-inside: avoid; }
.empty { text-align: center; color: var(--sub); padding: 60px 20px; font-size: 15px; line-height: 1.7; }

/* 말풍선 */
.post { margin-bottom: 20px; position: relative; }
.bubble { position: relative; background: var(--c); color: var(--note-ink); border-radius: 18px 18px 18px 6px; padding: 14px 15px 13px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble::after { content: ""; position: absolute; left: 0; bottom: -9px; border: 9px solid transparent; border-top-color: var(--c); border-left-color: var(--c); border-bottom: 0; border-right-width: 7px; }
.bubble.media { padding: 6px 6px 12px; }
.bubble.media .txt { padding: 10px 9px 0; }
.bubble.media.only .txt { display: none; }
.bubble.media.only { padding-bottom: 6px; }
.post.pending .bubble { outline: 2px dashed #E8553F; outline-offset: 3px; }
.post .flag { font-size: 12px; font-weight: 700; color: #C0392B; margin: 0 0 6px 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.post .flag .btn { height: 28px; font-size: 12.5px; padding: 0 10px; }
.who { display: flex; align-items: center; gap: 7px; margin: 13px 0 0 4px; font-size: 12.5px; color: var(--sub); flex-wrap: wrap; }
.who .face { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--surface); border: 1px solid var(--line); }
.who b { color: var(--ink); font-weight: 700; }
.who .heart { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--sub); font-size: 13px; padding: 4px 6px; border-radius: 8px; }
.who .heart svg { width: 16px; height: 16px; fill: none; stroke: #E8607A; stroke-width: 2; }
.who .heart.on svg { fill: #E8607A; }
.who .del { color: var(--sub); font-size: 12px; padding: 4px 6px; border-radius: 8px; }
.who .del:hover { color: #C0392B; }
.anon-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 2px 8px; border-radius: 20px; background: var(--surface); border: 1px dashed var(--sub); }

/* 미리보기 */
.pv { border-radius: 13px; overflow: hidden; position: relative; display: block; background: rgba(0,0,0,.06); width: 100%; }
.pv img, .pv video { display: block; width: 100%; max-height: 360px; object-fit: cover; min-height: 80px; }
.pv-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4px; border-radius: 13px; overflow: hidden; }
.pv-grid .pv { border-radius: 0; }
.pv-grid .pv img { height: 100%; max-height: 220px; min-height: 140px; }
.pv-grid .side { display: grid; gap: 4px; }
.pv .more { position: absolute; inset: 0; background: rgba(20,22,40,.45); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.pv .play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none; }
.pv .play i { display: block; width: 0; height: 0; border-left: 14px solid #1E2350; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.pv .vph { height: 160px; display: grid; place-items: center; color: var(--note-ink); font-size: 13px; }
.file { display: block; background: var(--surface); border-radius: 13px; padding: 10px; text-align: left; width: 100%; color: var(--ink); }
.file .fi { display: flex; gap: 12px; align-items: center; white-space: normal; }
.file + .file, .pv + .file, .file + .pv { margin-top: 6px; }
.file .page { display: block; width: 46px; height: 58px; border-radius: 6px; background: #fff; border: 1px solid var(--line); position: relative; padding: 7px 6px; flex: none; }
.file .page i { display: block; height: 3px; border-radius: 2px; background: #D5D9E8; margin-bottom: 4px; }
.file .tag { position: absolute; right: -6px; bottom: 5px; background: #E8553F; color: #fff; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.file b { display: block; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.file small { font-size: 12px; color: var(--sub); }

/* 글쓰기 버튼 */
.fab { position: fixed; right: 26px; bottom: 26px; height: 58px; padding: 0 24px 0 20px; border-radius: 29px; background: var(--accent); color: var(--on-accent); font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 15; }
.fab svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }

/* 가림 */
.lockbox { position: relative; min-height: 360px; }
.lockbox .blur { filter: blur(8px); opacity: .8; pointer-events: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.lockbox .blur div { height: 90px; border-radius: 18px 18px 18px 6px; }
.lockbox .msg { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); width: min(92%, 380px); background: var(--surface); border-radius: 20px; padding: 22px; text-align: center; box-shadow: 0 10px 30px rgba(30,35,80,.14); }
.lockbox .msg .ic { font-size: 30px; }
.lockbox .msg b { display: block; font-size: 17px; margin-top: 6px; }
.lockbox .msg p { font-size: 13.5px; color: var(--sub); margin-top: 4px; }

/* 모달 */
.modal-bg { position: fixed; inset: 0; background: rgba(15,18,40,.45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal { background: var(--surface); color: var(--ink); border-radius: 24px; width: 100%; max-width: 520px; max-height: calc(100vh - 36px); overflow: auto; padding: 24px; position: relative; }
.modal.wide { max-width: 820px; }
.modal h2 { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 16px; padding-right: 36px; }
.modal .close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; font-size: 22px; color: var(--sub); }
.modal .foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.seg label b { display: block; font-size: 15px; }
.seg label small { color: var(--sub); font-size: 12.5px; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.themes label { cursor: pointer; border-radius: 13px; border: 2px solid transparent; padding: 3px; }
.themes label:has(input:checked) { border-color: var(--accent); }
.themes input { position: absolute; opacity: 0; }
.themes .sw { height: 54px; border-radius: 10px; background-color: var(--bg); background-image: var(--pattern); background-size: 50px; display: flex; gap: 4px; align-items: center; justify-content: center; }
.themes .sw i { width: 16px; height: 16px; border-radius: 6px 6px 6px 2px; }
.themes span { display: block; text-align: center; font-size: 12.5px; margin-top: 4px; }
.opts { display: grid; gap: 12px; }
.opts .switch small { display: block; color: var(--sub); font-size: 12.5px; }

/* 글쓰기 창 */
.sheet-bg { align-items: flex-end; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } }
.compose .text { width: 100%; min-height: 120px; border: 0; border-radius: 16px 16px 16px 6px; padding: 14px; font-size: 16px; line-height: 1.6; background: var(--c); color: var(--note-ink); resize: vertical; }
.compose .text:focus { outline: 2px solid var(--accent); }
.compose .tools { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.compose .tool { height: 40px; padding: 0 12px; border-radius: 12px; background: var(--bg); display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.compose .tool svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compose .tool.rec { background: #FFE3E6; color: #B0283C; }
.atts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.att { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--bg); display: grid; place-items: center; font-size: 11px; text-align: center; padding: 4px; border: 1px solid var(--line); }
.att img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.att button { position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 1; z-index: 1; }

/* 표 (명단) */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--sub); font-weight: 500; padding: 6px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl .input { height: 40px; font-size: 14px; }
.tbl .emo { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); font-size: 20px; }
.pwshow { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row b { font-size: 16px; }

/* AI 결과 */
.result { background: var(--bg); border-radius: 16px; padding: 18px; margin-top: 14px; line-height: 1.75; font-size: 14.5px; }
.result h4 { font-size: 16px; margin: 12px 0 4px; }
.result h4:first-child { margin-top: 0; }
.result ul { padding-left: 20px; }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 240px; overflow: auto; padding: 4px; }
.checklist label { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 6px 8px; border-radius: 8px; background: var(--bg); }

/* QR */
.qr-box { text-align: center; }
.qr-box .qr { width: min(100%, 320px); margin: 0 auto; background: #fff; padding: 12px; border-radius: 16px; }
.qr-box .qr svg { width: 100%; height: auto; display: block; }
.qr-box .link { margin-top: 14px; font-size: 12.5px; color: var(--sub); overflow-wrap: anywhere; }
.qr-full { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; color: #1E2350; }
.qr-full h1 { font-size: clamp(24px, 4vw, 48px); font-weight: 900; text-align: center; }
.qr-full .qr { width: min(70vh, 80vw); }
.qr-full .qr svg { width: 100%; height: auto; }

/* 사진 크게 보기 */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(10,10,20,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox img, .lightbox video, .lightbox iframe { max-width: 100%; max-height: 100%; border-radius: 10px; background: #fff; }
.lightbox iframe { width: min(960px, 100%); height: 80vh; border: 0; }
.lightbox .close { position: absolute; right: 16px; top: 16px; color: #fff; font-size: 30px; width: 48px; height: 48px; }

/* 알림 */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: #1E2350; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; z-index: 90; max-width: 90vw; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 휴대폰 */
@media (max-width: 760px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar .sep, .logo-tag { display: none; }
  .topbar .title h1 { font-size: 16.5px; }
  .topbar .tools .lbl { display: none; }
  .topbar .tools .btn { padding: 0 11px; }
  .tabs { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .notice { margin: 12px 14px 0; }
  .board-wrap { padding: 16px 14px 120px; }
  .board-desc { margin: 12px 14px 0; }
  .col { flex: 0 0 82vw; max-width: none; }
  .fab { right: 16px; bottom: 18px; }
  .page { padding: 20px 14px 80px; }
  .themes { grid-template-columns: repeat(3, 1fr); }
  .seg { grid-template-columns: 1fr; }
}

/* 인쇄 (PDF 저장) */
#print { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; }
  body > *:not(#print) { display: none !important; }
  #print { display: block; color: #111; font-size: 11pt; }
  .pr-page { break-after: page; }
  .pr-page:last-child { break-after: auto; }
  .pr-h { border-bottom: 2px solid #222; padding-bottom: 6px; margin-bottom: 12px; }
  .pr-h h1 { font-size: 18pt; }
  .pr-h p { font-size: 10pt; color: #555; margin-top: 3px; }
  .pr-sec { margin-top: 14px; }
  .pr-sec h2 { font-size: 12.5pt; margin-bottom: 6px; }
  .pr-grid { columns: 2; column-gap: 8mm; }
  .pr-post { break-inside: avoid; border: 1px solid #bbb; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
  .pr-post p { white-space: pre-wrap; line-height: 1.5; }
  .pr-post .pr-who { font-size: 9pt; color: #555; margin-top: 4px; }
  .pr-post img { max-width: 100%; max-height: 60mm; border-radius: 4px; margin-bottom: 4px; display: block; }
  .pr-card { display: inline-block; width: 85mm; height: 52mm; border: 1.5px dashed #888; border-radius: 4mm; margin: 0 4mm 6mm 0; padding: 6mm; vertical-align: top; break-inside: avoid; }
  .pr-card .n { font-size: 18pt; font-weight: 900; }
  .pr-card .p { font-size: 20pt; margin-top: 4mm; letter-spacing: 2px; }
  .pr-card .s { font-size: 9pt; color: #555; margin-top: 3mm; }
}

/* ───────── 메인 페이지 ─────────
   VOICE: 교실 칠판 옆에 붙은 환한 안내판. 크고 또렷하게.
   IDEA: 말풍선이 붙어 가는 진짜 보드가 곧 그림이다.
   COLOUR: 달빛 바탕, 쪽빛 #3A47B8 주색, 치자·연지·청포 메모색, 먹쪽 #1E2350 마무리.
   TYPE: Noto Sans KR 900/700/400 한 가족, 이름은 아주 크게.
   LAYOUT: 왼쪽 큰 글, 오른쪽 움직이는 보드 → 사실 4개 → 기능 → 쪽빛 설치 띠 → 안심 → 질문 → 먹쪽 바닥. */
.lp { overflow-x: clip; }
.lp-nav { max-width: 1240px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; }
.lp-nav .logo-word { font-size: 24px; }
.lp-nav nav { display: flex; gap: 22px; margin-left: auto; }
.lp-nav nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.lp-nav nav a:hover { color: var(--accent); }
.lp-hero { max-width: 1240px; margin: 0 auto; padding: 28px 24px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.lp-tag { display: inline-block; font-size: clamp(17px, 2vw, 22px); font-weight: 700; color: var(--accent); background: var(--surface); border: 2px solid var(--accent); padding: 6px 16px; border-radius: 999px 999px 999px 8px; }
.lp-name { font-size: clamp(96px, 15vw, 188px); font-weight: 900; line-height: .95; letter-spacing: -6px; margin: 18px 0 8px; color: var(--ink); position: relative; display: inline-block; }
.lp-name::after { content: ""; position: absolute; right: -0.3em; top: 0.02em; width: .28em; height: .2em; border-radius: .08em .08em .08em .02em; background: var(--n1); }
.lp-name::before { content: ""; position: absolute; right: -0.12em; top: 0.2em; border: .045em solid transparent; border-top-color: var(--n1); border-left-color: var(--n1); }
.lp-sub { font-size: clamp(24px, 3.1vw, 38px); font-weight: 900; letter-spacing: -1px; line-height: 1.25; }
.lp-desc { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--sub); line-height: 1.75; margin-top: 18px; max-width: 34em; }
.lp-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.lp-main { height: 64px; padding: 0 30px; font-size: 19px; font-weight: 900; border-radius: 18px; background: var(--accent); color: var(--on-accent); border: 0; box-shadow: 0 6px 0 #1F266E; text-decoration: none; }
.lp-main:hover { transform: translateY(1px); box-shadow: 0 5px 0 #1F266E; }
.lp-main:active { transform: translateY(5px); box-shadow: 0 1px 0 #1F266E; }
.lp-sec { height: 64px; padding: 0 26px; font-size: 18px; font-weight: 700; border-radius: 18px; border: 2px solid var(--ink); text-decoration: none; }
.lp-mini { margin-top: 18px; font-size: 14.5px; color: var(--sub); }
.lnk { color: var(--accent); text-decoration: underline; font-weight: 700; padding: 4px 2px; }

/* 움직이는 보드 그림 */
.lp-pic { position: relative; }
.lp-win { position: relative; background: var(--surface); border-radius: 26px; box-shadow: 0 30px 60px rgba(30, 35, 80, .16), 0 0 0 1px var(--line); padding: 0 0 22px; }
.lp-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lp-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.lp-bar b { margin-left: 10px; font-size: 15px; }
.lp-bar span { margin-left: auto; font-size: 12.5px; color: var(--sub); }
.lp-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px 16px 0; background-color: var(--bg); background-image: var(--pattern); background-size: 64px; margin: 0 0 0; min-height: 380px; border-radius: 0 0 26px 26px; }
.lp-cols h4 { font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.lp-cols h4 em { width: 9px; height: 9px; border-radius: 50%; }
.lp-b { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: var(--d); margin-bottom: 14px; }
.lp-b p { background: var(--c); color: var(--note-ink); border-radius: 14px 14px 14px 5px; padding: 10px 11px; font-size: 13px; line-height: 1.5; position: relative; }
.lp-b p::after { content: ""; position: absolute; left: 0; bottom: -7px; border: 7px solid transparent; border-top-color: var(--c); border-left-color: var(--c); border-bottom: 0; border-right-width: 5px; }
.lp-b span { display: block; font-size: 11.5px; color: var(--sub); margin: 9px 0 0 3px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.94); } }
.lp-qr { position: absolute; left: -34px; bottom: -40px; background: var(--surface); border-radius: 20px; padding: 12px 18px 12px 12px; display: flex; align-items: center; gap: 12px; box-shadow: 0 16px 36px rgba(30, 35, 80, .18); animation: pop .6s 1.6s cubic-bezier(.2, 1.4, .4, 1) both; }
.lp-qrbox { width: 64px; height: 64px; }
.lp-qrbox svg { width: 100%; height: 100%; display: block; }
.lp-qr b { display: block; font-size: 16px; }
.lp-qr span { font-size: 12.5px; color: var(--sub); }

/* 사실 4개 */
.lp-facts { max-width: 1240px; margin: 36px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-facts div { background: var(--surface); border-radius: 22px; padding: 24px 22px; border: 1px solid var(--line); }
.lp-facts b { display: block; font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; color: var(--accent); letter-spacing: -1.5px; line-height: 1.1; }
.lp-facts span { display: block; margin-top: 6px; font-size: 15.5px; color: var(--sub); font-weight: 500; }

/* 공통 구획 */
.lp-sec-wrap { max-width: 1240px; margin: 0 auto; padding: 96px 24px 0; }
.lp-h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; letter-spacing: -1.6px; line-height: 1.15; text-wrap: balance; }
.lp-lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--sub); margin-top: 12px; line-height: 1.7; }
.lp-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.lp-feat article { background: var(--surface); border-radius: 24px; padding: 14px 14px 24px; border: 1px solid var(--line); }
.lp-feat h3 { font-size: 21px; font-weight: 900; letter-spacing: -0.5px; margin: 18px 8px 6px; }
.lp-feat p { font-size: 16px; color: var(--sub); line-height: 1.65; margin: 0 8px; }
.lp-more { margin-top: 22px; font-size: 16px; color: var(--sub); line-height: 1.7; }
.fx { height: 130px; border-radius: 16px; background-color: var(--bg); background-image: var(--pattern); background-size: 56px; display: grid; place-items: center; overflow: hidden; position: relative; }
.fx-blur { position: relative; width: 82%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fx-blur i { height: 58px; border-radius: 12px 12px 12px 4px; background: var(--n1); filter: blur(5px); }
.fx-blur i:nth-child(2) { background: var(--n3); } .fx-blur i:nth-child(3) { background: var(--n2); }
.fx-blur b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--surface); padding: 8px 14px; border-radius: 12px; font-size: 13.5px; white-space: nowrap; box-shadow: 0 6px 16px rgba(30,35,80,.12); }
.fx-pic { display: flex; gap: 10px; }
.fx-pic span { width: 58px; height: 58px; border-radius: 16px; background: var(--surface); border: 2px solid var(--accent); display: grid; place-items: center; font-size: 30px; }
.fx-anon { display: grid; gap: 10px; justify-items: start; }
.fx-anon span { background: var(--n4); border-radius: 12px 12px 12px 4px; padding: 8px 14px; font-size: 14px; font-weight: 700; }
.fx-anon .t { background: var(--surface); border: 1.5px dashed var(--sub); font-weight: 500; font-size: 13px; }
.fx-flag { display: flex; align-items: center; gap: 8px; background: var(--n2); padding: 16px 16px; border-radius: 14px 14px 14px 4px; outline: 2px dashed #E8553F; outline-offset: 4px; }
.fx-flag b { color: #B0283C; font-size: 14px; }
.fx-flag span { background: var(--surface); border-radius: 8px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; }
.fx-ai { width: 74%; background: var(--surface); border-radius: 14px; padding: 16px; display: grid; gap: 9px; }
.fx-ai i { display: block; height: 9px; border-radius: 5px; background: var(--n4); }
.fx-ai i:first-child { background: var(--accent); }
.fx-pdf { position: relative; width: 90px; height: 100px; }
.fx-pdf i { position: absolute; width: 74px; height: 92px; background: var(--surface); border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 4px 10px rgba(30,35,80,.08); }
.fx-pdf i:nth-child(1) { left: 0; top: 8px; transform: rotate(-8deg); }
.fx-pdf i:nth-child(2) { left: 8px; top: 4px; transform: rotate(-2deg); }
.fx-pdf i:nth-child(3) { left: 16px; top: 0; transform: rotate(5deg); background: linear-gradient(var(--n1) 0 26%, var(--surface) 26%); }

/* 1분 설치 (쪽빛 띠) */
.lp-install { margin-top: 110px; background: var(--accent); color: #fff; }
.lp-in { max-width: 1240px; margin: 0 auto; padding: 84px 24px 90px; }
.lp-install .lp-lead { color: #D6DBFF; }
.lp-steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 40px 0 36px; }
.lp-steps li { counter-increment: st; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.22); border-radius: 24px; padding: 26px 24px; }
.lp-steps li::before { content: counter(st); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px 16px 16px 5px; background: var(--n1); color: #1E2350; font-size: 26px; font-weight: 900; margin-bottom: 18px; }
.lp-steps b { display: block; font-size: 23px; font-weight: 900; }
.lp-steps p { margin-top: 8px; font-size: 16px; line-height: 1.65; color: #E4E7FF; }
.lp-main.inv { background: #fff; color: var(--accent); box-shadow: 0 6px 0 #1F266E; }
.lp-note { margin-top: 36px; background: rgba(0,0,0,.14); border-radius: 18px; padding: 18px 22px; font-size: 15px; line-height: 1.7; }
.lp-note ul { margin: 6px 0 0 20px; }
.lp-note a { color: #fff; }

/* 안심 */
.lp-safe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 36px; margin-top: 36px; }
.lp-safe h3 { font-size: 19px; font-weight: 900; padding-top: 16px; border-top: 3px solid var(--ink); }
.lp-safe p { margin-top: 8px; font-size: 16px; color: var(--sub); line-height: 1.7; }

/* 질문 */
.lp-faq { margin-top: 30px; display: grid; gap: 10px; max-width: 880px; }
.lp-faq details { background: var(--surface); border-radius: 18px; border: 1px solid var(--line); padding: 0 22px; }
.lp-faq summary { cursor: pointer; font-size: 18px; font-weight: 700; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { padding: 0 0 20px; font-size: 16px; line-height: 1.75; color: var(--sub); }

/* 바닥 */
.lp-foot { margin-top: 110px; background: #1E2350; color: #fff; padding: 56px max(24px, calc((100% - 1192px) / 2)) 64px; }
.lp-fb { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lp-foot .logo-word { color: #fff; font-size: 30px; }
.lp-foot .logo-mark i:nth-child(2) { border-color: #1E2350; }
.lp-fb p { font-size: 17px; color: #C9CEF2; }
.lp-credit { margin-top: 18px; font-size: 14px; font-weight: 400; color: #C9CEF2; line-height: 1.6; }
.lp-links { margin-top: 16px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14.5px; color: #A9B0E0; }
.lp-links a { color: #fff; }

@media (max-width: 960px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 48px; }
  .lp-qr { left: 12px; bottom: -34px; }
  .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
  .lp-feat, .lp-steps, .lp-safe { grid-template-columns: minmax(0, 1fr); }
  .lp-nav nav { display: none; }
  .lp-nav .btn { margin-left: auto; }
}
@media (max-width: 600px) {
  .lp-name { letter-spacing: -3px; }
  .lp-bar span { display: none; }
  .lp-cols { grid-template-columns: repeat(3, minmax(170px, 1fr)); overflow-x: auto; }
  .lp-main, .lp-sec { width: 100%; }
  .lp-sec-wrap { padding-top: 72px; }
  .lp-install { margin-top: 80px; }
  .lp-in { padding: 64px 18px 70px; }
}
@media (prefers-reduced-motion: reduce) { .lp-b, .lp-qr { animation: none; } .lp-main:hover, .lp-main:active { transform: none; } }

/* ── 새 보드 만들기: 단계 안내 ── */
.wz-steps { list-style: none; display: flex; gap: 6px; margin: -4px 0 18px; padding: 0; counter-reset: w; }
.wz-steps li { counter-increment: w; flex: 1; font-size: 13px; font-weight: 700; color: var(--sub); padding: 8px 10px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; gap: 7px; }
.wz-steps li::before { content: counter(w); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; background: var(--line); color: var(--sub); flex: none; }
.wz-steps li.now { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.wz-steps li.now::before { background: var(--accent); color: var(--on-accent); }
.wz-steps li.done::before { content: '✓'; background: color-mix(in srgb, var(--accent) 70%, var(--surface)); color: #fff; }
.wz-lead { color: var(--sub); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.tpls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tpl { position: relative; cursor: pointer; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 12px 12px; background: var(--surface); transition: border-color .15s, transform .15s; }
.tpl:hover { transform: translateY(-2px); }
.tpl input { position: absolute; opacity: 0; }
.tpl:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.tpl:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.tpl .ic { font-size: 26px; display: block; margin-bottom: 6px; }
.tpl b { display: block; font-size: 14.5px; }
.tpl small { display: block; font-size: 12px; color: var(--sub); margin-top: 3px; line-height: 1.45; }

/* ── 색상 테마 카드 ── */
.field > span .muted { display: inline; font-weight: 400; color: var(--sub); margin-left: 6px; font-size: 12.5px; }
.tcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tcard { position: relative; cursor: pointer; border-radius: 18px; border: 1.5px solid var(--line); overflow: hidden; background: var(--surface); transition: transform .15s; }
.tcard:hover { transform: translateY(-2px); }
.tcard input { position: absolute; opacity: 0; }
.tcard:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.tcard:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.tcard:has(input:checked)::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 13px; font-weight: 900; z-index: 2; }
.tc-prev { position: relative; height: 118px; background: var(--bg); color: var(--ink); overflow: hidden; }
.tc-bar { position: absolute; inset: 0 0 auto; height: 22px; display: flex; align-items: center; gap: 4px; padding: 0 10px; background: color-mix(in srgb, var(--surface) 85%, transparent); z-index: 1; font-size: 9.5px; color: var(--sub); }
.tc-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--n2); }
.tc-bar i:first-child { background: var(--accent); }
.tc-bar span { margin-left: 10px; }
.tc-bar span:first-of-type { margin-left: auto; }
.tc-scene, .tc-scene svg { position: absolute; inset: 22px 0 0; width: 100%; height: calc(100% - 22px); display: block; }
.tc-scene svg { inset: 0; height: 100%; }
.tc-over { position: absolute; inset: 22px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; z-index: 1; padding: 0 12px; }
.tc-title { font-size: 15px; font-weight: 900; letter-spacing: -0.4px; color: var(--ink); background: color-mix(in srgb, var(--surface) 72%, transparent); padding: 2px 10px; border-radius: 8px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-pill { font-size: 10.5px; font-weight: 700; background: var(--accent); color: var(--on-accent); padding: 4px 11px; border-radius: 999px; }
.tc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.tc-meta b { display: block; font-size: 14.5px; }
.tc-meta small { display: block; font-size: 12px; color: var(--sub); margin-top: 1px; }
.tc-meta .dots { display: flex; gap: 4px; flex: none; }
.tc-meta .dots i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }

/* ── 보드 머리 그림 ── */
.board-hero { position: relative; height: 150px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.bh-in { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(3px); border-radius: 18px; padding: 10px 20px; max-width: min(720px, 92%); }
.bh-in h2 { font-size: clamp(19px, 2.6vw, 26px); font-weight: 900; letter-spacing: -0.6px; color: var(--ink); line-height: 1.3; }
.bh-in p { font-size: 14px; color: var(--sub); margin-top: 3px; line-height: 1.5; }
@media (max-width: 720px) {
  .tpls { grid-template-columns: repeat(2, 1fr); }
  .tcards { grid-template-columns: 1fr; }
  .wz-steps li { font-size: 0; justify-content: center; }
  .wz-steps li::before { font-size: 11.5px; }
  .wz-steps li.now { font-size: 12px; }
  .board-hero { height: 104px; }
  .bh-in { padding: 8px 14px; }
}
@media print { .board-hero { height: 90px; } }

/* ── 설치 안내 페이지 ── */
.gs-page { max-width: 1080px; margin: 0 auto; padding: 18px 20px 40px; }
.gs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gs-hero { background: var(--surface); border-radius: 24px; padding: 26px 28px; margin-bottom: 18px; border: 1px solid var(--line); }
.gs-hero h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; letter-spacing: -1px; line-height: 1.25; }
.gs-hero p { color: var(--sub); font-size: 16px; margin: 8px 0 14px; line-height: 1.6; }
.gs-hero small { display: block; color: var(--sub); font-size: 13.5px; margin-top: 8px; line-height: 1.6; }
.gs-grid { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.gs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: g; position: sticky; top: 14px; }
.gs-list li { counter-increment: g; }
.gs-list button { width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14.5px; color: var(--ink); }
.gs-list button::before { content: counter(g); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; background: var(--bg); color: var(--sub); }
.gs-list li.now button { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.gs-list li.now button::before { background: var(--accent); color: var(--on-accent); }
.gs-list li.done button::before { content: '✓'; background: color-mix(in srgb, var(--accent) 70%, var(--surface)); color: #fff; }
.gs-cur { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px; }
.gs-cur h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.6px; margin: 2px 0 14px; }
.gs-num { font-size: 13px; font-weight: 700; color: var(--accent); }
.gs-d { font-size: 15.5px; line-height: 1.75; color: var(--ink); margin: 14px 0 16px; }
.gs-d b { color: var(--accent); }
.gs-nav { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; }
.gs-go { display: flex; width: 100%; justify-content: center; }
.gs-wait { display: inline-flex; align-items: center; gap: 8px; color: var(--sub); font-size: 14px; }
.gs-wait .spin, .gs-cur .spin { width: 16px; height: 16px; border: 2.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: gspin .8s linear infinite; flex: none; }
@keyframes gspin { to { transform: rotate(360deg); } }
.gs-cur.done { text-align: center; padding: 40px 24px; }
.gs-party { font-size: 56px; animation: gpop .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes gpop { from { transform: scale(.3); opacity: 0; } }
.gs-foot { color: var(--sub); font-size: 13.5px; margin-top: 18px; text-align: center; }
.gs-cur.compact { border: 0; padding: 4px 2px; background: transparent; }
.gs-cur.compact h3 { font-size: 18px; margin-bottom: 10px; }
.gs-cur.compact .gs-d { font-size: 14px; margin: 10px 0 12px; }
body.gs-pip { background: var(--bg, #F2F4FA); padding: 14px; margin: 0; }
.gs-pip-in { max-width: 420px; margin: 0 auto; }
@media (max-width: 760px) { .gs-grid { grid-template-columns: 1fr; } .gs-list { position: static; grid-template-columns: repeat(3, 1fr); } .gs-list button { font-size: 12.5px; padding: 9px; } }

/* ── 움직이는 안내 그림(구글 화면을 닮게 그린 그림) ── */
.gs-mock { border-radius: 16px; background: #E9ECF4; padding: 14px; }
.gs-mock.sm { padding: 8px; border-radius: 12px; }
.gm-gif { display: block; width: 100%; border-radius: 10px; }
.gm { background: #fff; border-radius: 10px; box-shadow: 0 6px 18px rgba(20,30,70,.12); overflow: hidden; font-size: 12.5px; color: #202124; font-family: inherit; }
.gm-top { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #F1F3F4; border-bottom: 1px solid #E3E5E8; }
.gm-top i { width: 8px; height: 8px; border-radius: 50%; background: #D4D7DC; }
.gm-top span { margin-left: 8px; font-size: 11px; color: #5F6368; background: #fff; border-radius: 999px; padding: 2px 10px; }
.gm-body { position: relative; padding: 14px; min-height: 150px; }
.gm-ed { display: flex; gap: 10px; margin: -14px; min-height: 164px; }
.gm-rail { display: flex; flex-direction: column; gap: 10px; padding: 12px 8px; background: #F8F9FA; border-right: 1px solid #E8EAED; }
.gm-ico { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: #5F6368; font-size: 14px; }
.gm-main { flex: 1; padding: 12px 14px 12px 0; }
.gm-bar { display: flex; align-items: center; gap: 8px; }
.gm-bar b { font-size: 13px; }
.gm-sp { flex: 1; }
.gm-run { color: #5F6368; font-size: 11.5px; }
.gm-blue, .gm-btn { position: relative; display: inline-block; background: #1A73E8; color: #fff; border-radius: 6px; padding: 6px 14px; font-weight: 700; font-size: 12px; }
.gm-btn.ghost { background: #fff; color: #1A73E8; border: 1px solid #DADCE0; }
.gm-copy, .gm-key { position: relative; border: 1px solid #DADCE0; border-radius: 6px; padding: 5px 10px; font-size: 11.5px; color: #3C4043; }
.gm-code { margin-top: 14px; display: grid; gap: 7px; }
.gm-code i { display: block; height: 7px; border-radius: 4px; background: #E8EAED; }
.gm-dlg { max-width: 330px; margin: 4px auto; border: 1px solid #E3E5E8; border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; text-align: center; }
.gm-dlg.left { text-align: left; }
.gm-dlg b { font-size: 13.5px; }
.gm-dlg p { color: #5F6368; font-size: 12px; margin: 0; }
.gm-dlg .gm-btn { justify-self: end; }
.gm-dlg:not(.left) .gm-btn { justify-self: center; }
.gm-two { display: flex; gap: 8px; justify-content: flex-end; }
.gm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #F1F3F4; padding-bottom: 6px; }
.gm-row.sm { font-size: 11.5px; color: #5F6368; }
.gm-row.sm b { color: #202124; font-size: 11.5px; }
.gm-row.col { flex-direction: column; align-items: flex-start; }
.gm-gear { position: relative; font-size: 15px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.gm-list { display: grid; gap: 2px; border: 1px solid #E3E5E8; border-radius: 8px; padding: 4px; }
.gm-list span { position: relative; padding: 5px 8px; border-radius: 6px; font-size: 12px; }
.gm-link { position: relative; color: #1A73E8; text-decoration: underline; font-size: 11.5px; word-break: break-all; }
.gm-menu { display: flex; gap: 14px; font-size: 12.5px; padding-bottom: 8px; border-bottom: 1px solid #E8EAED; }
.gm-menu span { position: relative; }
.gm-drop { display: grid; gap: 2px; width: 150px; margin: 8px 0 0 110px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.15); padding: 6px; background: #fff; }
.gm-drop.right { margin: 8px 0 0 auto; }
.gm-drop span { position: relative; padding: 6px 8px; border-radius: 6px; font-size: 12px; }
.gm-ring { position: absolute; inset: -6px; border: 3px solid #EA4335; border-radius: 10px; opacity: 0; animation: gring 3.6s infinite; pointer-events: none; }
.gm-hand { position: absolute; right: -14px; bottom: -22px; font-style: normal; font-size: 22px; opacity: 0; animation: ghand 3.6s infinite; pointer-events: none; }
.gm-ring.d2, .gm-hand.d2 { animation-delay: 1.2s; }
.gm-ring.d3, .gm-hand.d3 { animation-delay: 2.4s; }
.tg, .tg2, .tg3 { position: relative; }
@keyframes gring { 0% { opacity: 0; transform: scale(1.25); } 8% { opacity: 1; transform: scale(1); } 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes ghand { 0% { opacity: 0; transform: translate(14px, 14px); } 8% { opacity: 1; transform: translate(0, 0); } 18% { transform: scale(.85); } 24% { transform: scale(1); } 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gm-ring { animation: none; opacity: 1; } .gm-hand { animation: none; opacity: 1; } .gm-ring.d2, .gm-ring.d3, .gm-hand.d2, .gm-hand.d3 { opacity: .55; } }
.gs-upd { display: grid; gap: 10px; }
.gs-ucard { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.gs-ucard p { color: var(--sub); font-size: 13.5px; line-height: 1.65; margin-top: 4px; }
.gs-ucard .gm-body { min-height: 0; padding: 10px; }
@media (max-width: 640px) { .gs-ucard { grid-template-columns: 1fr; } }
.gm-ed .gm-main:first-child { padding-left: 14px; }

.gm-ro { font-size: 10.5px; color: #5F6368; background: #F1F3F4; border-radius: 4px; padding: 1px 6px; }
.gm-icobtn { position: relative; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #3C4043; background: #F1F3F4; }
.gm-tip { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 10.5px; color: #fff; background: #3C4043; border-radius: 4px; padding: 3px 7px; z-index: 1; }
.gm-pair { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; align-items: start; }
.gm-pair .gm-dlg { margin: 0; max-width: none; }
.gm-pair .gm-dlg b { font-size: 12px; line-height: 1.4; }
.gm-wait20 { font-size: 12px; font-weight: 700; color: #B06000; background: #FEF7E0; border-radius: 6px; padding: 5px 8px; justify-self: start; }
@media (max-width: 560px) { .gm-pair { grid-template-columns: 1fr; } }


.gm-ico.on { background: #E8F0FE; color: #1A73E8; }
.gs-cur.compact .gs-nav .btn.primary { flex: 1; justify-content: center; padding: 14px 16px; font-size: 16px; }
.gs-cur.compact .gs-go { padding: 14px 16px; }

.pw-more { margin-top: 16px; font-size: 13.5px; color: var(--sub); }
.pw-more summary { cursor: pointer; }
.pw-more .input { margin-top: 8px; }
