/* kidrun — 공통 테마 (스카이블루, 둥근 카드, 사이드바)
   참고: pickcare(부드러운 보육 톤) + foreducator Workmate(도구 카드 UX) */
:root {
    --primary: #4A90D9;
    --primary-dark: #3A78BD;
    --primary-soft: #EAF2FB;
    --bg: #F6F8FC;
    --card: #FFFFFF;
    --text: #1C2430;
    --muted: #8A93A2;
    --border: #E9EDF4;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 30px -12px rgba(16,24,40,.12);
    --shadow-lg: 0 24px 50px -18px rgba(16,24,40,.22);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Pretendard", "Malgun Gothic", -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.02em;   /* 자간 약 -2% (제목·본문 공통) */
}

/* ---- 배경 (살아있는 오로라 + 미세 도트 — UX 영향 없음: 콘텐츠 뒤 고정, 클릭 불가) ---- */
/* 부드러운 색 번짐(오로라) — 천천히 떠다님 */
body::before {
    content: "";
    position: fixed;
    inset: -10%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(620px 620px at 14% 16%, rgba(74,144,217,.22), transparent 60%),
        radial-gradient(560px 560px at 86% 10%, rgba(108,196,176,.18), transparent 60%),
        radial-gradient(640px 640px at 80% 86%, rgba(146,134,232,.16), transparent 62%),
        radial-gradient(520px 520px at 16% 88%, rgba(255,176,122,.13), transparent 60%);
    animation: auroraFloat 26s ease-in-out infinite alternate;
}
@keyframes auroraFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(0, -26px, 0) scale(1.05); }
}
h1, h2, h3, .page-head h1, .login-card .brand { letter-spacing: -0.03em; }  /* 제목은 조금 더 타이트(-3%) */
a { color: inherit; text-decoration: none; }

/* ---- 상단 가로 메뉴 ---- */
.topnav {
    display: flex; align-items: center; gap: 16px;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid rgba(16,24,40,.06);
    padding: 0 24px; height: 64px; position: sticky; top: 0; z-index: 20;
}
.topnav .brand { transition: transform .3s var(--ease); }
.topnav .brand:hover { transform: translateY(-1px); }
.nav-item { transition: background .18s var(--ease), color .18s var(--ease); }
.topnav .brand { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.topnav .brand img.logo-ico { height: 48px; }
.topnav .brand img.logo-word { height: 48px; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav-item {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 9px;
    color: #4a5160; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.nav-item:hover { background: var(--primary-soft); color: var(--primary-dark); }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item img.ico { width: 22px; height: 22px; object-fit: contain; }
.nav-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 13px; color: var(--muted); }
.page-head h1 img.head-ico { height: 30px; vertical-align: -7px; margin-right: 6px; }

/* ---- 도구 메뉴 호버 드롭다운 (반 선택) ---- */
.nav-drop { position: relative; display: inline-flex; }
.nav-drop .caret { font-size: 10px; opacity: .65; }
.nav-menu {
    display: none; position: absolute; left: 0; top: 100%; margin-top: 2px; min-width: 150px;
    background: var(--card); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: var(--shadow); padding: 6px; z-index: 40;
}
/* 라벨~메뉴 사이 hover 끊김 방지(투명 다리) */
.nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; }
.nav-drop:hover .nav-menu { display: block; }
.nav-menu a {
    display: block; padding: 8px 12px; border-radius: 7px;
    font-size: 13px; font-weight: 600; color: #4a5160; white-space: nowrap;
}
.nav-menu a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.nav-menu-empty { display: block; padding: 8px 12px; font-size: 12px; color: var(--muted); }

.page { min-height: calc(100vh - 64px); }
.content { padding: 28px; max-width: 1160px; margin: 0 auto; }

@media (max-width: 720px) {
    .topnav { height: auto; flex-wrap: wrap; padding: 10px 16px; }
    .nav { order: 3; width: 100%; }
}

/* ---- 대시보드 통계 패널 (접기/가로/스크롤 애니메이션) ---- */
.stat-panel {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 16px;
}
.stat-panel > summary {
    cursor: pointer; font-weight: 700; font-size: 16px; list-style: none;
    display: flex; align-items: center; gap: 8px;
}
.stat-panel > summary::-webkit-details-marker { display: none; }
.stat-panel > summary img.h2-ico { height: 22px; }
.stat-panel > summary .count { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-panel > summary .arrow { margin-left: auto; color: var(--muted); transition: transform .2s; }
.stat-panel[open] > summary .arrow { transform: rotate(180deg); }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stat-chip {
    display: flex; flex-direction: column; gap: 5px; min-width: 150px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px;
}
.stat-chip .cname { font-weight: 700; font-size: 14px; }
.stat-chip .cval { font-size: 13px; color: var(--muted); }

/* ---- 우리반 아이 카드 (접기/펼치기) ---- */
.student-item {
    border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px;
}
.student-item > summary {
    cursor: pointer; list-style: none; padding: 14px;
    display: flex; align-items: center; gap: 10px; font-weight: 700;
}
.student-item > summary::-webkit-details-marker { display: none; }
.student-item > summary .student-name { font-size: 15px; }
.student-item > summary .count { color: var(--muted); font-size: 13px; font-weight: 600; }
.student-item > summary .arrow { margin-left: auto; color: var(--muted); transition: transform .2s; }
.student-item[open] > summary { border-bottom: 1px solid var(--border); }
.student-item[open] > summary .arrow { transform: rotate(180deg); }
.student-item .student-body { padding: 14px; }

/* 스크롤 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.show { opacity: 1; transform: none; }

/* ---- 페이지 헤더 ---- */
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0 0 6px; font-size: 24px; }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---- 도구 카드 그리드 ---- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tool-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
    display: flex; flex-direction: column; gap: 10px;
}
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #D4E2F4; }
.tool-card .emoji {
    width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    transition: transform .4s var(--ease);
}
.tool-card:hover .emoji { transform: scale(1.08) rotate(-2deg); }
.tool-card .go { transition: transform .3s var(--ease); }
.tool-card:hover .go { transform: translateX(5px); }
.tool-card .emoji img { width: 34px; height: 34px; object-fit: contain; }
.card h2 img.h2-ico { height: 22px; vertical-align: -5px; margin-right: 4px; }
.tool-card h3 { margin: 4px 0 0; font-size: 16px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; }
.tool-card .go { color: var(--primary); font-weight: 700; font-size: 13px; }
.tool-card.soon { opacity: .6; }
.badge-soon { font-size: 11px; background: #f0f0f3; color: #999; padding: 2px 8px; border-radius: 20px; align-self: flex-start; }

/* ---- 카드(일반) ---- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.card h2 { margin: 0 0 16px; font-size: 17px; }
.card-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .card-split { grid-template-columns: 1fr; } }

/* ---- 폼 ---- */
label.fld { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 13px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=month], input[type=datetime-local], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px;
    font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
}
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ---- 버튼 ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 9px; border: 0; cursor: pointer; font-size: 14px; font-weight: 700; font-family: inherit; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--primary-soft); color: var(--primary-dark); }
.btn-ghost:hover { background: #dceaf9; }
.btn-line { background: #fff; border: 1px solid var(--border); color: #4a5160; }
.btn-danger { background: #fde8e8; color: #d64545; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }

/* ---- 소셜 로그인 브랜드 버튼 (각 사 브랜딩 가이드 — 로고/색 변형 금지) ---- */
.social-list { display: flex; flex-direction: column; gap: 8px; }
.btn-social { position: relative; width: 100%; justify-content: center; min-height: 44px; gap: 0; font-weight: 600; }
.btn-social .social-ico { position: absolute; left: 14px; display: inline-flex; align-items: center; }
.btn-social .social-txt { display: block; text-align: center; }
/* 네이버 — 브랜드 그린 #03C75A, 흰 N 로고 */
.btn-social--naver { background: #03C75A; color: #fff; }
.btn-social--naver:hover { background: #02b351; }
/* 구글 — 흰 배경 + #747775 보더, 4색 G 로고 */
.btn-social--google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.btn-social--google:hover { background: #f7f8f8; }
/* 카카오 — 브랜드 옐로우 #FEE500, 검정 심볼 */
.btn-social--kakao { background: #FEE500; color: rgba(0,0,0,.85); }
.btn-social--kakao:hover { background: #f4d800; }

/* ---- 테이블 ---- */
table.tbl { border-collapse: collapse; width: 100%; }
table.tbl th, table.tbl td { border-bottom: 1px solid var(--border); padding: 11px 12px; text-align: left; font-size: 14px; }
table.tbl th { background: #fafbfc; color: var(--muted); font-weight: 600; font-size: 12px; }
table.tbl tr:hover td { background: #fafcff; }

/* ---- 기타 ---- */
.flash { background: #e7f6ec; color: #1f8a4c; border: 1px solid #c3e9d1; padding: 12px 16px; border-radius: 9px; margin-bottom: 18px; font-size: 14px; }
.tag { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 20px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.tag.infant { background: #fdeede; color: #c97b1e; }
.tag.toddler { background: #e6f0ff; color: #3a78bd; }
.muted { color: var(--muted); }
.gen-output { background: var(--primary-soft); border: 1px dashed var(--primary); border-radius: 9px; padding: 4px; }
.gen-output textarea { background: #fff; border: 0; }

/* ---- 월/주차 선택 버튼 (보육일지 기간) ---- */
.pick-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.pick-btn {
    min-width: 52px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 9px;
    background: #fff; color: #4a5160; font-size: 14px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: background .12s, border-color .12s, color .12s;
}
.pick-btn:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.pick-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 레이아웃 마스터(구글 시트 양식) 렌더 표 */
.layout-sheet { border-collapse: collapse; background: #fff; }
.layout-sheet td { vertical-align: middle; }

/* ===== 프리미엄 인터랙션 (스태거 등장 · 부드러운 호버 · 접근성) ===== */
html { scroll-behavior: smooth; }

/* 통계 패널·일반 카드: 호버 시 그림자 깊어짐 */
.stat-panel, .card { transition: box-shadow .4s var(--ease); }
.stat-panel:hover, .card:hover { box-shadow: var(--shadow-lg); }

/* 도구 카드 — 그리드가 보이면 순차적으로 떠오름 */
.tool-grid .tool-card { opacity: 0; transform: translateY(18px); }
.tool-grid.show .tool-card {
    opacity: 1; transform: none;
    transition: opacity .55s var(--ease), transform .55s var(--ease),
                box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.tool-grid.show .tool-card:nth-child(1) { transition-delay: .06s; }
.tool-grid.show .tool-card:nth-child(2) { transition-delay: .12s; }
.tool-grid.show .tool-card:nth-child(3) { transition-delay: .18s; }
.tool-grid.show .tool-card:nth-child(4) { transition-delay: .24s; }
.tool-grid.show .tool-card:nth-child(5) { transition-delay: .30s; }
.tool-grid.show .tool-card:nth-child(6) { transition-delay: .36s; }

/* 현황 칩 — 패널이 보이면 순차적으로 떠오름 */
.stat-panel.reveal .stat-row > * { opacity: 0; transform: translateY(12px); }
.stat-panel.reveal.show .stat-row > * {
    opacity: 1; transform: none;
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.stat-panel.reveal.show .stat-row > *:nth-child(1) { transition-delay: .05s; }
.stat-panel.reveal.show .stat-row > *:nth-child(2) { transition-delay: .10s; }
.stat-panel.reveal.show .stat-row > *:nth-child(3) { transition-delay: .15s; }
.stat-panel.reveal.show .stat-row > *:nth-child(4) { transition-delay: .20s; }
.stat-panel.reveal.show .stat-row > *:nth-child(5) { transition-delay: .25s; }
.stat-panel.reveal.show .stat-row > *:nth-child(n+6) { transition-delay: .30s; }

/* 도구 카드 아이콘 타일 — 카드마다 다른 파스텔 그라데이션으로 생기 부여 */
.tool-card .emoji { box-shadow: inset 0 1px 0 rgba(255,255,255,.65); }
.tool-grid .tool-card:nth-child(1) .emoji { background: linear-gradient(135deg, #FFE7D2, #FFD0AB); }
.tool-grid .tool-card:nth-child(2) .emoji { background: linear-gradient(135deg, #D9F1E1, #BBE7CA); }
.tool-grid .tool-card:nth-child(3) .emoji { background: linear-gradient(135deg, #DBEAFB, #BFD9F6); }
.tool-grid .tool-card:nth-child(4) .emoji { background: linear-gradient(135deg, #ECE4FB, #D9CCF6); }
.tool-grid .tool-card:nth-child(5) .emoji { background: linear-gradient(135deg, #FCE1EB, #F6C6D8); }

/* 카드 표면 — 얇아 보이지 않게 미세한 윗면 하이라이트 + 살짝의 결 */
.tool-card, .card, .stat-panel {
    background-image: linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,250,253,.9));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.7);
}

/* 접근성: 모션 최소화를 켠 사용자에겐 애니메이션 끔 */
@media (prefers-reduced-motion: reduce) {
    .reveal, .tool-grid .tool-card, .stat-panel.reveal .stat-row > * {
        opacity: 1 !important; transform: none !important; transition: none !important;
    }
    body::before { animation: none !important; }
    html { scroll-behavior: auto; }
}

/* =====================================================================
   🍇 포도 포인트 위젯 · 보상 · 스포트라이트 온보딩 투어
   ===================================================================== */
:root {
    --grape: #7b4ea3;
    --grape-deep: #5f3a86;
    --grape-soft: #f1e9f7;
}

/* ----- 좌하단 코너 FAB: 튜토리얼 버튼(위) + 포도 위젯(아래) 세로 스택 ----- */
.corner-fab { position: fixed; left: 24px; bottom: 24px; z-index: 55; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tour-fab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: .82rem; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); white-space: nowrap; }
.tour-fab:hover { background: var(--bg); border-color: var(--primary); color: var(--primary-dark); }
.grape-widget { position: static; }
.grape-widget[hidden] { display: none; }
.grape-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 15px 8px 9px; border-radius: 18px; background: var(--card);
    border: 1px solid var(--border); box-shadow: 0 10px 26px -12px rgba(60,30,90,.4);
    cursor: pointer; transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.grape-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(60,30,90,.5); }
.grape-art { width: 38px; height: 42px; flex: 0 0 auto; display: block; }
.grape-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.grape-num { font-size: 1.05rem; font-weight: 800; color: var(--grape-deep); letter-spacing: -.01em; }
.grape-cap { font-size: .68rem; font-weight: 700; color: var(--muted); }

/* ----- 포도 상세 / 보상 (SweetAlert2 내부 커스텀) ----- */
.grape-pop-art { width: 84px; height: 94px; margin: 2px auto 8px; }
.grape-pop-num { font-size: 1.2rem; font-weight: 800; color: var(--grape-deep); }
.grape-pop-sub { margin: 4px 0 12px; font-size: .88rem; color: var(--muted); }
.grape-pop-bar { height: 9px; border-radius: 999px; background: var(--grape-soft); overflow: hidden; }
.grape-pop-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #9b6bc4, #6a3f99); }
.grape-pop-meta { display: flex; justify-content: space-between; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--grape-soft); font-size: .84rem; }
.grape-pop-meta span { color: var(--muted); font-weight: 600; } .grape-pop-meta b { color: var(--grape-deep); }

.reward-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--grape); color: #fff; font-size: .76rem; font-weight: 800; }
.reward-img { width: 100%; max-width: 240px; margin: 12px auto 0; aspect-ratio: 1/1; border-radius: 16px; background: #faf7f2; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.reward-img img { width: 100%; height: 100%; object-fit: contain; }
.reward-name { margin: 12px 0 2px; font-size: .92rem; font-weight: 700; color: var(--text); }
.reward-qr { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px auto 0; padding: 10px 14px; max-width: 260px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.reward-qr img { width: 84px; height: 84px; flex: 0 0 auto; border-radius: 8px; background: #fff; }
.reward-qr-cap { font-size: .78rem; color: var(--muted); line-height: 1.5; text-align: left; }
.reward-qr-cap b { color: var(--text); font-size: .82rem; }
.reward-note { margin: 8px 0 0; font-size: .74rem; color: var(--muted); line-height: 1.5; }

/* 포도 패널 안 '받을 수 있는 쿠폰' 미리보기 카드 */
.grape-preview { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--grape-soft); border: 1px solid #e6d8f0; cursor: pointer; text-align: left; transition: box-shadow .15s, transform .15s; }
.grape-preview:hover { box-shadow: 0 6px 18px rgba(123, 78, 163, .18); transform: translateY(-1px); }
.grape-preview .grp-head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 800; color: var(--grape-deep); }
.grape-preview .grp-more { font-size: .74rem; font-weight: 700; color: var(--grape); }
.grape-preview .grp-body { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.grape-preview .grp-thumb { width: 76px; height: 76px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.grape-preview .grp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.grape-preview .grp-info { flex: 1 1 auto; min-width: 0; }
.grape-preview .grp-name { font-size: .84rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.grape-preview .grp-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.grape-preview .grp-mark { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--muted); border: 1px solid var(--border); }
.grape-preview .grp-mark.done { background: #eaf7ee; color: #1f7a3d; border-color: #bfe3c9; }
.grape-preview .grp-mark.ready { background: var(--grape); color: #fff; border-color: var(--grape); }

/* ----- 스포트라이트 투어 ----- */
.tour { position: fixed; inset: 0; z-index: 1250; } /* 우하단 피드백 위젯(z1200) 위로 — 투어 카드 버튼이 안 가려지게 */
.tour[hidden] { display: none; }
.tour-mask { position: absolute; inset: 0; }
.tour-mask.full { background: rgba(16,24,40,.74); }
.tour-ring { position: absolute; border-radius: 14px; border: 2px solid var(--primary); box-shadow: 0 0 0 9999px rgba(16,24,40,.74); pointer-events: none; transition: all .28s var(--ease); }
/* 투어 중 상단 메뉴를 마스크 위로 띄워 전체 탭 노출 + 현재 탭 강조 */
.topnav.tour-navlift { z-index: 1260; pointer-events: none; }
.nav-item.tour-nav-hi { animation: tourPulse 1.4s ease-in-out infinite; outline: 2px solid #fff; outline-offset: 2px; border-radius: 10px; }
.tour-navchip { display: inline-block; margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: .74rem; font-weight: 800; }
.tour-card {
    position: absolute; width: min(92vw, 348px); background: var(--card); border-radius: 18px;
    border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 18px 18px 14px;
    /* 위치 전환(top/left) 애니메이션 없음 — 카드가 화면을 가로질러 '날아오는' 느낌 제거(집중력 유지) */
}
.tour-x { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border: none; background: none; border-radius: 9px; color: var(--muted); font-size: 1.05rem; cursor: pointer; }
.tour-x:hover { background: var(--bg); color: var(--text); }
.tour-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: .74rem; font-weight: 800; }
.tour-head { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
.tour-ic { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.tour-head h3 { margin: 0; padding-top: 5px; font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--text); }
.tour-body { margin: 11px 0 0; font-size: .86rem; line-height: 1.55; color: var(--text); }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.tour-dots { display: flex; align-items: center; gap: 6px; }
.tour-dot { height: 6px; width: 6px; border: none; padding: 0; border-radius: 999px; background: var(--border); cursor: pointer; transition: all .18s var(--ease); }
.tour-dot.on { width: 16px; background: var(--primary); }
.tour-nav { display: flex; align-items: center; gap: 7px; }
.tour-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 13px; border-radius: 11px; font-size: .82rem; font-weight: 700; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
.tour-btn:hover { background: var(--bg); }
.tour-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.tour-btn.primary:hover { background: var(--primary-dark); }
.tour-skip { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: .76rem; color: var(--muted); cursor: pointer; }
.tour-skip input { width: 14px; height: 14px; accent-color: var(--primary); }

/* 회원가입 약관 동의 항목 — signup.jsp·signup-agree.jsp 공용(_consent-items.jsp) */
.agree-all { display:flex; align-items:center; gap:10px; padding:14px; border:1px solid var(--border); border-radius:11px; background:#fafbfc; font-weight:700; cursor:pointer; margin-bottom:10px; }
.agree-item { border:1px solid var(--border); border-radius:11px; margin-bottom:8px; overflow:hidden; }
.agree-item summary { display:flex; align-items:center; gap:10px; padding:13px 14px; cursor:pointer; list-style:none; font-size:14px; }
.agree-item summary::-webkit-details-marker { display:none; }
.agree-item summary .chev { margin-left:auto; color:var(--muted); font-size:12px; white-space:nowrap; }
.agree-item[open] summary .chev { color:var(--primary); }
.agree-item .req { font-size:11px; font-weight:700; color:var(--primary); }
.agree-item .opt { font-size:11px; font-weight:700; color:var(--muted); }
.terms-frame { display:block; width:100%; height:280px; border:0; border-top:1px dashed var(--border); background:#f9fafb; }
.terms-body { font-size:12px; color:#5a6170; line-height:1.7; padding:12px 14px 14px; white-space:pre-line; border-top:1px dashed var(--border); }
.agree-item input[type=checkbox], .agree-all input[type=checkbox] { width:18px; height:18px; accent-color:var(--primary); flex:none; }

/* 체험형 액션: 펄스 버튼 · 진행중/진행률 · 결과 완료 태그 */
.tour-btn.pulse { animation: tourPulse 1.4s ease-in-out infinite; }
@keyframes tourPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 144, 217, .55); }
  70% { box-shadow: 0 0 0 9px rgba(74, 144, 217, 0); }
}
.tour-busy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 18px; margin: 0 0 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; font-weight: 700; color: var(--text); }
.tour-spin { width: 18px; height: 18px; flex: 0 0 auto; border: 3px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; animation: tourSpin .7s linear infinite; }
@keyframes tourSpin { to { transform: rotate(360deg); } }
.tour-bar { flex: 1 1 100%; height: 8px; background: var(--primary-soft); border-radius: 6px; overflow: hidden; }
.tour-bar i { display: block; height: 100%; background: var(--primary); border-radius: 6px; transition: width .35s ease; }
.tour-roster { padding: 12px 14px; margin-top: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; font-size: .92rem; }
.tour-done-tag { margin-top: 14px; padding: 10px 14px; background: #eaf7ee; border: 1px solid #bfe3c9; border-radius: 10px; color: #1f7a3d; font-weight: 700; font-size: .9rem; }
