#view-landing{position:fixed;inset:0;z-index:10;display:flex;flex-direction:column;overflow:hidden;}
#view-lab{position:fixed;inset:0;z-index:10;display:none;flex-direction:column;overflow:hidden;}

/* ─────────────────────────────────────
   RESET & BASE
───────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg:       #C8C8DC;
  --bg-deep:  #9898B8;
  --surface:  rgba(255,255,255,0.18);
  --surface2: rgba(255,255,255,0.28);
  --border:   rgba(255,255,255,0.38);
  --border2:  rgba(255,255,255,0.22);
  --ink:      #1A1A2E;
  --ink2:     #3A3A5C;
  --ink3:     #6A6A8A;
  --accent:   #4A4A7A;
  --accent2:  #5B5B9E;
  --white:    #FFFFFF;
  --pill-bg:  rgba(255,255,255,0.32);
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Pretendard', 'Noto Sans KR', sans-serif;
}

html, body {
  width: 100%; min-height: 100vh;
  font-family: var(--sans);
  background:
    radial-gradient(circle at 14% 22%, rgba(255,255,255,.9), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(239,154,106,.08), transparent 27%),
    linear-gradient(135deg, #f7f5f0 0%, #f0ede7 100%);
  overflow-x: hidden;
  color: var(--ink);
}
/* 종이 질감 노이즈 */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  opacity: .18; mix-blend-mode: multiply; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

/* ─────────────────────────────────────
   BACKGROUND ELEMENTS
───────────────────────────────────── */

/* 우측 원형 장식 */
.bg-ring {
  position: fixed;
  right: -12vw; top: 50%;
  transform: translateY(-50%);
  width: 55vw; height: 55vw;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  pointer-events: none; z-index: 0;
}
.bg-ring::before {
  content: '';
  position: absolute; inset: 7%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
}
.bg-ring::after {
  content: '';
  position: absolute; inset: 17%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}
/* 원형 눈금선 */
.ring-ticks {
  position: absolute; inset: 0;
  border-radius: 50%; overflow: hidden;
}
.ring-tick {
  position: absolute;
  top: 50%; left: 50%;
  width: 50%; height: 1px;
  background: rgba(255,255,255,0.18);
  transform-origin: left center;
}

/* ─────────────────────────────────────
   NAVIGATION
───────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 64px;
  display: flex; align-items: center;
  padding: 0 40px;
  z-index: 100;
}

#view-landing .nav-logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; text-decoration: none;
  flex-shrink: 0;
}
#view-landing .nav-logo-mark {
  width: 30px; height: 30px;
  background: transparent;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#view-landing .nav-logo-text {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  color: var(--ink); letter-spacing: 1px;
}

#view-landing .nav-tabs {
  display: flex; gap: 4px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
#view-landing .nav-tab {
  padding: 7px 20px;
  font-size: 14px; font-weight: 400;
  color: rgba(26,26,46,0.55);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  letter-spacing: 0.3px;
}
#view-landing .nav-tab:hover { color: var(--ink); }
#view-landing .nav-tab::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}
#view-landing .nav-tab:hover::after { opacity: 1; }
/* active도 흐리게 — hover 때만 진해짐 */
.nav-tab.active { color: rgba(26,26,46,0.55); font-weight: 400; }

#view-landing .nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
}
.nav-login-btn {
  background: var(--ink);
  color: white;
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-login-btn:hover { opacity: 0.85; }

/* 로그인 후 유저 칩 */
.nav-user-chip {
  display: none;
  align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px;
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
  border-radius: 30px;
  cursor: pointer;
  position: relative;
}
.nav-user-chip.visible { display: flex; }
.nav-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink);
  color: white; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-user-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.nav-user-arrow { font-size: 9px; color: var(--ink3); }
.nav-user-dropdown {
  display: none; position: absolute;
  top: calc(100% + 8px); right: 0;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  min-width: 140px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden; z-index: 200;
}
.nav-user-dropdown.open { display: block; }
.nav-dropdown-item {
  padding: 11px 16px;
  font-size: 13px; color: var(--ink2);
  cursor: pointer;
  transition: background 0.12s;
}
.nav-dropdown-item:hover { background: #F5F5FA; }
.nav-dropdown-item.danger { color: #B84040; }
.nav-dropdown-hr { border: none; border-top: 1px solid rgba(0,0,0,0.06); }

/* ─────────────────────────────────────
   HERO CONTENT
───────────────────────────────────── */
.hero {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 0 0 8vh 8vw;
  padding-top: 0;
}
.hero-left {
  display: flex; flex-direction: column;
  max-width: 560px;
  margin-top: -8vh;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 6px 16px; border-radius: 20px;
  font-size: 12px; color: rgba(26,26,46,0.65);
  margin-bottom: clamp(14px, 2vh, 22px);
  width: fit-content;
}
.hero-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(54px, 6.7vw, 92px);
  font-weight: 700;
  color: var(--ink);
  line-height: 0.92;
  letter-spacing: -2px;
  margin-bottom: clamp(4px, 0.6vh, 8px);
}
.hero-title-italic {
  font-family: var(--serif);
  font-size: clamp(54px, 6.7vw, 92px);
  font-weight: 700;
  font-style: italic;
  color: var(--accent2);
  line-height: 0.92;
  letter-spacing: -2px;
  margin-bottom: clamp(12px, 2vh, 22px);
  display: block;
}

.hero-sub {
  font-size: clamp(14px, 1.3vw, 16px);
  color: rgba(26,26,46,0.52);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: clamp(20px, 3vh, 32px);
  white-space: nowrap;
}

.hero-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn-start {
  background: var(--ink);
  color: white;
  padding: clamp(10px,1.2vh,13px) clamp(22px,2vw,30px);
  border-radius: 30px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; border: none;
  font-family: var(--sans);
  transition: opacity 0.2s;
  display: none;
}
.btn-start.visible { display: inline-flex; align-items: center; gap: 8px; }
.btn-start:hover { opacity: 0.85; }

/* ─────────────────────────────────────
   우측 위젯 영역 — 가로 3열 배치
───────────────────────────────────── */
.hero-widgets {
  position: fixed;
  /* 히어로 텍스트 상단(pill 위)과 맞추기 */
  right: clamp(28px, 4vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  /* 텍스트 왼쪽과 top-line 맞춤은 JS에서 처리 */
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
  /* 3카드 가로 너비 = 카드3 * 너비 + gap2 */
  width: clamp(480px, 40vw, 580px);
  margin-top: -8vh; /* hero-left의 margin-top과 동일하게 */
}

/* 상단 행: 시계 + 달력 나란히 */
.widgets-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

/* 공통 위젯 카드 */
.widget-card {
  background: rgba(255,255,255,0.26);
  border: 1px solid rgba(255,255,255,0.48);
  backdrop-filter: blur(24px);
  border-radius: 18px;
  overflow: hidden;
  flex: 1;
}

/* ── 시계 위젯 ── */
.widget-clock {
  padding: 22px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.clock-face {
  width: 124px; height: 124px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.clock-tick {
  position: absolute;
  top: 50%; left: 50%;
  width: 50%; height: 1px;
  transform-origin: left center;
}
.clock-tick-mark {
  position: absolute;
  right: 6px;
  width: 4px; height: 1px;
  background: rgba(26,26,46,0.2);
  top: 0; transform: translateY(-50%);
  border-radius: 1px;
}
.clock-tick.major .clock-tick-mark {
  width: 8px; height: 1.5px;
  background: rgba(26,26,46,0.38);
}
.clock-hand {
  position: absolute;
  bottom: 50%; left: 50%;
  transform-origin: bottom center;
  border-radius: 3px;
}
.clock-hand-hour {
  width: 3px; height: 34px;
  background: var(--ink);
  margin-left: -1.5px;
}
.clock-hand-min {
  width: 2px; height: 46px;
  background: var(--ink2);
  margin-left: -1px;
}
.clock-hand-sec {
  width: 1.2px; height: 50px;
  background: var(--accent2);
  margin-left: -0.6px;
}
.clock-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); z-index: 10;
}
.clock-digital { text-align: center; }
.clock-time {
  font-family: var(--serif);
  font-size: 34px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.5px; line-height: 1;
}
.clock-date {
  font-size: 12px; color: rgba(26,26,46,0.5);
  margin-top: 5px; font-weight: 300; letter-spacing: 0.2px;
}

/* ── 달력 위젯 ── */
.widget-cal {
  padding: 14px 13px 12px;
  flex: 1.45; /* 달력이 시계보다 약간 넓게 */
}
.wcal-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.wcal-month {
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.wcal-nav { display: flex; gap: 3px; }
.wcal-arr {
  width: 20px; height: 20px; border-radius: 5px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--ink2);
  cursor: pointer; transition: background 0.15s;
}
.wcal-arr:hover { background: rgba(255,255,255,0.65); }
.wcal-dow {
  display: grid; grid-template-columns: repeat(7,1fr);
  margin-bottom: 2px;
}
.wcal-dow-cell {
  text-align: center;
  font-size: 8.5px; font-weight: 600;
  color: rgba(26,26,46,0.35); padding: 2px 0;
}
.wcal-grid {
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 1px;
}
.wcal-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; color: var(--ink2);
  border-radius: 5px; cursor: pointer;
  transition: background 0.12s;
  font-weight: 400; position: relative;
}
.wcal-cell:hover { background: rgba(255,255,255,0.45); }
.wcal-cell.other { color: rgba(26,26,46,0.22); }
.wcal-cell.sun { color: #C04040; }
.wcal-cell.sat { color: #3060B0; }
.wcal-cell.other.sun { color: rgba(192,64,64,0.35); }
.wcal-cell.other.sat { color: rgba(48,96,176,0.35); }
.wcal-cell.today {
  background: var(--ink); color: white !important; font-weight: 700;
}

/* 온도 + 아이콘 배지 가로 배치 */
.weather-temp-row {
  display: flex; align-items: center; gap: 0;
  margin: 4px 0 6px;
}
/* 파이프로 구분된 세 섹션 */
.wtr-section {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 14px;
  position: relative;
}
.wtr-section:first-child { padding-left: 0; }
.wtr-section:last-child  { padding-right: 0; }
/* 구분선 */
.wtr-section + .wtr-section::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 28px;
  background: rgba(26,26,46,0.14);
}
.wtr-label {
  font-size: 9px; font-weight: 600;
  color: rgba(26,26,46,0.38); letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 3px;
}
.wtr-main {
  display: flex; align-items: center; gap: 4px; line-height: 1;
}
.wtr-temp-val {
  font-family: var(--serif);
  font-size: 34px; font-weight: 600;
  color: var(--ink); letter-spacing: -1px; line-height: 1;
}
.wtr-temp-val sup {
  font-size: 14px; font-weight: 400;
  vertical-align: super; letter-spacing: 0;
}
.wtr-dust-icon { font-size: 18px; line-height: 1; }
.wtr-dust-grade {
  font-size: 12px; font-weight: 700; line-height: 1;
}
.wtr-rain-icon { font-size: 18px; line-height: 1; }
.wtr-rain-pct {
  font-size: 14px; font-weight: 700;
  color: var(--ink2); letter-spacing: -0.3px; line-height: 1;
}
.wtr-hint {
  font-size: 9.5px; color: rgba(26,26,46,0.45);
  margin-top: 3px; font-weight: 400; line-height: 1.3;
  text-align: center; min-height: 14px;
}

/* 기존 badge 스타일 정리 */
.weather-badges { display: none; }
.weather-dust   { display: none; }
.dust-badge, .dust-val { display: none; }

/* ── 날씨 위젯 (하단 전체 너비) ── */
.widget-weather {
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
}
.weather-left {
  display: flex; flex-direction: column; flex: 1;
}
.weather-location {
  font-size: 10.5px; font-weight: 600;
  color: rgba(26,26,46,0.5); letter-spacing: 0.3px;
  margin-bottom: 3px;
  display: flex; align-items: center; gap: 4px;
}
.weather-location-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent2); flex-shrink: 0;
}
.weather-temp {
  font-family: var(--serif);
  font-size: 36px; font-weight: 600;
  color: var(--ink); line-height: 1;
  letter-spacing: -1px;
}
.weather-temp sup {
  font-size: 16px; font-weight: 400;
  vertical-align: super; letter-spacing: 0;
}
.weather-desc {
  font-size: 11px; color: rgba(26,26,46,0.5);
  margin-top: 4px; font-weight: 300;
}
.weather-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.weather-icon { font-size: 36px; line-height: 1; }
.weather-extras {
  display: flex; gap: 10px;
}
.weather-extra-item {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.weather-extra-lbl { font-size: 9px; color: rgba(26,26,46,0.4); font-weight: 500; }
.weather-extra-val { font-size: 11px; font-weight: 600; color: var(--ink2); }

/* ── 오늘의 QT 위젯 (하단 전체 너비, 한 줄) ── */
.widget-qt {
  padding: 13px 18px;
  display: flex; align-items: center;
  cursor: pointer;
  position: relative;
  transition: background .18s;
}
.widget-qt:hover { background: rgba(255,255,255,0.34); }
.qt-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; width: 100%; min-width: 0;
}
.qt-label {
  font-size: 9px; font-weight: 600;
  color: rgba(26,26,46,0.38); letter-spacing: .5px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.qt-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent2); flex-shrink: 0;
}
.qt-ref {
  font-size: 13px; font-weight: 600;
  color: var(--ink2);
  letter-spacing: -0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: right;
}
.qt-ref.qt-empty {
  font-weight: 500; color: rgba(26,26,46,0.4);
  font-size: 11.5px;
}
/* 설정(＋) 버튼 — 항상 노출, 은은하게. hover 시 또렷 */
.qt-set-btn {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.28);
  color: rgba(26,26,46,0.4); font-size: 14px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; opacity: 0.55; transition: opacity .15s, background .15s;
}
.qt-set-btn:hover { opacity: 1; background: rgba(255,255,255,0.5); color: rgba(26,26,46,0.7); }
/* 참조가 설정버튼과 겹치지 않도록 우측 여백 확보 */
.widget-qt .qt-ref { margin-right: 24px; }

/* 지역 설정 */
.weather-setup {
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center;
  text-align: center;
}
.weather-setup-txt {
  font-size: 12px; color: rgba(26,26,46,0.5); font-weight: 300;
}
.weather-setup-row {
  display: flex; gap: 6px; width: 100%;
}
.weather-setup-input {
  flex: 1;
  padding: 7px 12px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 10px;
  font-size: 12px; color: var(--ink);
  outline: none; font-family: var(--sans);
}
.weather-setup-input::placeholder { color: rgba(26,26,46,0.35); }
.weather-setup-btn {
  padding: 7px 14px;
  background: var(--ink); color: white;
  border: none; border-radius: 10px;
  font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: var(--sans);
  transition: opacity 0.2s; white-space: nowrap;
}
.weather-setup-btn:hover { opacity: 0.85; }

/* ─────────────────────────────────────
   로그인 모달
───────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10,10,20,0.4);
  backdrop-filter: blur(6px);
  z-index: 500;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: white;
  border-radius: 24px;
  padding: 36px 32px 28px;
  width: 100%; max-width: 380px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-close {
  float: right; font-size: 18px;
  color: #AAA; cursor: pointer;
  line-height: 1; background: none; border: none;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--ink); }
.modal-logo {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 22px;
}
.modal-logo-mark {
  width: 28px; height: 28px;
  background: var(--ink); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 13px; color: white;
}
.modal-logo-text { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }

.modal-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.5px; }
.modal-sub { font-size: 12.5px; color: #999; margin-bottom: 22px; line-height: 1.6; font-weight: 300; }
.modal-mode-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  background: #EEF0FD; color: var(--accent2);
  margin-bottom: 18px;
}

.modal-field { margin-bottom: 14px; }
.modal-field label {
  display: block; font-size: 11px; font-weight: 600;
  color: #888; letter-spacing: 0.4px; margin-bottom: 5px;
}
.modal-field input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #E8E8F0;
  border-radius: 10px;
  font-size: 14px; color: var(--ink);
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #FAFAFE;
}
.modal-field input:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(91,91,158,0.1);
  background: white;
}

.modal-error {
  font-size: 12px; color: #C04040;
  margin-bottom: 12px;
  display: none;
}
.modal-error.show { display: block; }

.modal-btn {
  width: 100%; padding: 12px;
  background: var(--ink); color: white;
  border: none; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  font-family: var(--sans); cursor: pointer;
  transition: opacity 0.2s;
}
.modal-btn:hover { opacity: 0.85; }

.modal-switch {
  text-align: center; margin-top: 16px;
  font-size: 12.5px; color: #999;
}
.modal-switch span {
  color: var(--accent2); font-weight: 600;
  cursor: pointer; text-decoration: underline;
}

/* 자동 로그인 체크박스 */
.modal-autologin {
  margin: 0 0 14px;
}
.autologin-label {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
}
.autologin-check {
  display: none; /* 네이티브 체크박스 숨기기 */
}
.autologin-box {
  width: 17px; height: 17px;
  border: 1.5px solid #D0D0E0;
  border-radius: 5px;
  background: #FAFAFE;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.autologin-box::after {
  content: '';
  width: 9px; height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0; transition: opacity 0.15s;
}
.autologin-check:checked + .autologin-box {
  background: var(--accent2);
  border-color: var(--accent2);
}
.autologin-check:checked + .autologin-box::after {
  opacity: 1;
}
.autologin-txt {
  font-size: 12.5px; color: #888; font-weight: 400;
}

.modal-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
}
.modal-divider::before, .modal-divider::after {
  content: ''; flex: 1; height: 1px; background: #EEE;
}
.modal-divider-text { font-size: 11px; color: #CCC; white-space: nowrap; }

/* ─────────────────────────────────────
   TOAST
───────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: white;
  padding: 11px 22px; border-radius: 30px;
  font-size: 13px; font-weight: 500;
  z-index: 9999; opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.toast.show { opacity: 1; }

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding-left: 6vw; }
  .hero-widgets { display: none; }
  .bg-ring { display: none; }
}
@media (max-width: 600px) {
  nav { padding: 0 20px; }
  #view-landing .nav-tabs { display: none; }
  .nav-question { display: none; }
  .hero { padding: 80px 20px 40px; align-items: flex-start; min-height: 100svh; }
}


@keyframes lkjFloat {
  0%,100%{transform:translateY(0) rotate(0deg);}
  25%{transform:translateY(-3px) rotate(-1deg);}
  75%{transform:translateY(-1px) rotate(1deg);}
}
@keyframes lkjGlow {
  0%,100%{text-shadow:0 0 0px transparent;}
  50%{text-shadow:0 0 12px rgba(232,93,4,.5),0 0 24px rgba(232,93,4,.2);}
}

/* ══ alpha-28: 업데이트 배지 + 새 소식 팝업 ══ */
.hero-pill{ cursor:pointer; transition: box-shadow .3s ease, border-color .3s ease, transform .2s ease; position:relative; }
.hero-pill:hover{ transform: translateY(-1px); border-color: rgba(232,93,4,.35); }
.hero-pill:active{ transform: translateY(0); }
.hero-pill-new{
  display:none;
  font-size:9px; font-weight:800; letter-spacing:.8px;
  color:#fff; background:linear-gradient(135deg,#E85D04,#F48C06);
  padding:2px 7px; border-radius:8px; margin-left:2px;
}
/* alpha-28: 글로우와 점 펄스는 항상 유지 (클릭 후에도 효과가 남도록),
   NEW 뱃지만 미확인 업데이트가 있을 때 표시 */
.hero-pill{
  border-color: rgba(232,93,4,.55);
  animation: pillGlow 2.2s ease-in-out infinite;
}
.hero-pill .hero-pill-dot{ background:#E85D04; animation: pillDotPulse 1.6s ease-in-out infinite; }
.hero-pill.has-update .hero-pill-new{ display:inline-block; animation: pillNewPop .5s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes pillGlow{
  0%,100%{ box-shadow: 0 0 0 0 rgba(232,93,4,.0), 0 0 14px rgba(232,93,4,.16); }
  50%    { box-shadow: 0 0 0 4px rgba(232,93,4,.10), 0 0 22px rgba(232,93,4,.30); }
}
@keyframes pillDotPulse{
  0%,100%{ transform:scale(1); opacity:1; }
  50%    { transform:scale(1.5); opacity:.65; }
}
@keyframes pillNewPop{
  from{ transform:scale(.5); opacity:0; }
  to  { transform:scale(1);  opacity:1; }
}

/* 새 소식 팝업 */
.wn-overlay{
  position:fixed; inset:0; background:rgba(26,26,46,.38);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .25s ease;
  z-index:900; padding:24px;
}
.wn-overlay.open{ opacity:1; pointer-events:auto; }
.wn-box{
  position:relative; background:#FFFDF9;
  width:min(560px, 94vw); max-height:min(78vh, 720px);
  border-radius:20px; border:1px solid rgba(232,93,4,.18);
  box-shadow:0 24px 80px rgba(26,26,46,.28);
  display:flex; flex-direction:column; overflow:hidden;
  transform:translateY(14px) scale(.97); opacity:0;
  transition:transform .3s cubic-bezier(.34,1.4,.64,1), opacity .25s ease;
}
.wn-overlay.open .wn-box{ transform:translateY(0) scale(1); opacity:1; }
.wn-head{ padding:24px 28px 14px; border-bottom:1px solid rgba(26,26,46,.07); }
.wn-kicker{
  font-family:'Pretendard',sans-serif; font-size:10px; font-weight:800;
  letter-spacing:2px; color:#E85D04; margin-bottom:6px;
}
.wn-title{ font-family:var(--serif); font-size:24px; font-weight:700; color:#1A1A2E; }
.wn-date{ font-family:'Pretendard',sans-serif; font-size:11px; color:rgba(26,26,46,.45); margin-top:4px; letter-spacing:.3px; }
.wn-body{ padding:14px 22px; overflow-y:auto; flex:1; min-height:0; }
.wn-item{
  display:flex; gap:12px; align-items:flex-start;
  padding:11px 8px; border-radius:12px;
  transition:background .2s ease;
}
.wn-item:hover{ background:rgba(232,93,4,.05); }
.wn-item + .wn-item{ border-top:1px solid rgba(26,26,46,.05); }
.wn-item-icon{ font-size:19px; line-height:1.3; flex:0 0 auto; }
.wn-item-head{ font-family:'Pretendard',sans-serif; font-size:13.5px; font-weight:700; color:#1A1A2E; margin-bottom:2px; }
.wn-item-body{ font-family:'Pretendard',sans-serif; font-size:12.5px; line-height:1.65; color:rgba(26,26,46,.62); word-break:keep-all; }
.wn-foot{ padding:12px 22px 18px; display:flex; justify-content:flex-end; border-top:1px solid rgba(26,26,46,.06); }
.wn-btn{
  font-family:'Pretendard',sans-serif; font-size:13px; font-weight:700;
  color:#fff; background:linear-gradient(135deg,#E85D04,#F48C06);
  border:none; border-radius:12px; padding:9px 26px; cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease;
}
.wn-btn:hover{ transform:translateY(-1px); box-shadow:0 6px 18px rgba(232,93,4,.35); }
.wn-close{
  position:absolute; top:14px; right:14px;
  width:30px; height:30px; border-radius:50%;
  border:none; background:rgba(26,26,46,.06); color:rgba(26,26,46,.55);
  font-size:13px; cursor:pointer; transition:background .2s ease;
}
.wn-close:hover{ background:rgba(26,26,46,.12); }

/* alpha v.01: 업데이트 팝업 - 더보기 / 이전 버전 구분 */
.wn-more-wrap{display:flex;justify-content:center;padding:10px 0 4px;}
.wn-more-btn{
  font-family:'Pretendard',sans-serif;font-size:12px;font-weight:600;
  color:#E85D04;background:rgba(232,93,4,.07);border:1px solid rgba(232,93,4,.25);
  border-radius:20px;padding:7px 18px;cursor:pointer;
  transition:background .2s ease,transform .15s ease;
}
.wn-more-btn:hover{background:rgba(232,93,4,.13);transform:translateY(-1px);}
.wn-ver-sep{
  font-family:'Pretendard',sans-serif;font-size:11px;font-weight:800;
  letter-spacing:1px;color:rgba(26,26,46,.5);
  background:#F0F1F3;border-radius:8px;padding:7px 12px;margin:14px 0 6px;
}

/* ─────────────────────────────────────
   CONTENT 모듈 메인 (alpha_v01 리디자인)
───────────────────────────────────── */
.lm-main {
  position: relative; z-index: 1;
  width: min(1500px, calc(100% - 64px));
  margin: 0 auto;
  padding: 76px 0 140px; /* 하단 여유를 키워 컨텐츠를 위로 (약 1cm 상향) */
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}
.lm-pill { margin-bottom: 26px; align-self: flex-start; }
.lm-head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center; margin-bottom: 40px;
}
.lm-head h1 {
  margin: 0; font-size: clamp(28px, 3.4vw, 50px); line-height: 1;
  letter-spacing: -.045em; font-weight: 800; color: #232323;
}
.lm-head-line { height: 1px; background: rgba(35,35,35,.18); }
.lm-caption {
  color: #77746f; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
}

.modules { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; align-items: stretch; touch-action: pan-y; }
.module {
  position: relative; min-height: 430px; padding: 20px 18px 18px;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(35,35,35,.08);
  background: rgba(255,255,255,.22); backdrop-filter: blur(9px);
  cursor: pointer;
  transition: background .32s ease, box-shadow .32s ease, border-color .32s ease;
}
.module::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 22%, var(--tint), transparent 60%);
  transition: opacity .32s ease; pointer-events: none;
}
.module:hover, .module.touch-hover, .module:focus-within {
  background: var(--hover-bg); border-color: var(--maccent);
  box-shadow: 0 16px 44px rgba(44,39,31,.12), inset 0 0 0 1px var(--ring);
}
.module:hover::before, .module.touch-hover::before { opacity: 1; }

.module-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.number { font-size: clamp(36px, 3vw, 58px); line-height: .9; letter-spacing: -.06em; font-weight: 800; color: #2c2c2c; transition: color .3s ease; }
.module:hover .number, .module.touch-hover .number { color: var(--maccent); }
.module-chip { width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--maccent); opacity: .28; transition: .3s ease; }
.module:hover .module-chip, .module.touch-hover .module-chip { opacity: 1; box-shadow: 0 0 0 6px var(--ring); }

.icon-stage { position: relative; z-index: 2; flex: 1; min-height: 190px; display: grid; place-items: center; padding: 16px 4px 6px; }
.icon-wrap { width: min(100%, 120px); aspect-ratio: 1/1; display: grid; place-items: center; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.module:hover .icon-wrap, .module.touch-hover .icon-wrap { transform: scale(1.06); }
.icon-wrap svg { width: 100%; height: 100%; overflow: visible; }
.il { fill: none; stroke: #2d2d2d; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.module:hover .il, .module.touch-hover .il { stroke: var(--maccent); }
.il-dot { fill: #2d2d2d; transition: fill .3s ease; }
.module:hover .il-dot, .module.touch-hover .il-dot { fill: var(--maccent); }

.module-info { position: relative; z-index: 2; border-top: 1px solid rgba(35,35,35,.12); padding-top: 15px; }
.module-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.module-title h2 { margin: 0; font-size: 22px; line-height: 1; letter-spacing: -.03em; color: #232323; }
.module-title span { font-size: 10px; letter-spacing: .08em; color: #77746f; text-transform: uppercase; }
.module-summary { margin: 9px 0 0; min-height: 38px; color: #7d7974; font-size: 12px; line-height: 1.55; }

.hover-detail { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .36s ease, opacity .28s ease, margin .28s ease; margin-top: 0; }
.module:hover .hover-detail, .module.touch-hover .hover-detail, .module:focus-within .hover-detail { max-height: 140px; opacity: 1; margin-top: 12px; }
.hover-detail p { margin: 0 0 12px; color: #474541; font-size: 12px; line-height: 1.6; }
.enter-link { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--maccent); }
.enter-link .arrow { transition: transform .25s ease; }
.module:hover .enter-link .arrow, .module.touch-hover .enter-link .arrow { transform: translateX(4px); }

/* Q.T 카드: 오늘 본문 표시 */
.qt-today { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--tint); border: 1px solid var(--ring); }
.qt-today .qt-lbl { font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #8a8782; display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.qt-today .qt-dot2 { width: 5px; height: 5px; border-radius: 50%; background: var(--maccent); }
.qt-today .qt-ref2 { font-size: 15px; font-weight: 800; color: #2c2c2c; letter-spacing: -.2px; }
.qt-today .qt-ref2.qt-empty { font-weight: 600; font-size: 12px; color: #8a8782; }
/* Q.T 카드: Quiet Time 링크와 ＋버튼을 한 줄에 (링크 왼쪽, ＋ 오른쪽 끝) */
.qt-enter-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* 모듈 안 관리자 ＋ 버튼 — Quiet Time 줄 오른쪽 끝, 관리자에게만 존재 */
.module .qt-set-btn {
  position: static; top: auto; right: auto; transform: none;
  flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(35,35,35,.15); background: rgba(255,255,255,.6);
  color: #55534e; font-size: 15px; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center; padding: 0;
  opacity: .7; transition: opacity .2s, background .2s;
}
.module .qt-set-btn:hover { opacity: 1; background: rgba(255,255,255,.9); }

/* 카드별 색 */
.module:nth-child(1){ --maccent:#2F6FB2; --tint:rgba(47,111,178,.10); --hover-bg:rgba(255,255,255,.66); --ring:rgba(47,111,178,.24); }
.module:nth-child(2){ --maccent:#4E9A5B; --tint:rgba(78,154,91,.10); --hover-bg:rgba(255,255,255,.66); --ring:rgba(78,154,91,.24); }
.module:nth-child(3){ --maccent:#E08A34; --tint:rgba(224,138,52,.11); --hover-bg:rgba(255,255,255,.66); --ring:rgba(224,138,52,.24); }
.module:nth-child(4){ --maccent:#2FA0A0; --tint:rgba(47,160,160,.10); --hover-bg:rgba(255,255,255,.66); --ring:rgba(47,160,160,.24); }
.module:nth-child(5){ --maccent:#8A5FC4; --tint:rgba(138,95,196,.11); --hover-bg:rgba(255,255,255,.66); --ring:rgba(138,95,196,.24); }

@media (max-width: 1180px){ .modules{ grid-template-columns: repeat(3,1fr); } .module{ min-height: 400px; } }
@media (max-width: 900px){
  .lm-main{ width: calc(100% - 40px); padding-top: 84px; }
  .lm-head{ grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .lm-caption{ display: none; }
  .modules{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px){
  .modules{ grid-template-columns: 1fr; }
  .module{ min-height: auto; }
  .icon-stage{ min-height: 150px; }
  .hover-detail{ max-height: 160px; opacity: 1; margin-top: 12px; }
}

/* Alpha v.02 - iPad 11-inch portrait landing scroll fix
   834px portrait viewport renders the five modules in two columns, so the
   landing view itself must become the vertical scroll container. */
@media (min-width: 561px) and (max-width: 900px) {
  #view-landing{
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    overscroll-behavior-y:contain;
  }
  #view-landing .lm-main{
    min-height:auto;
    justify-content:flex-start;
    padding-top:84px;
    padding-bottom:64px;
  }
  #view-landing .modules{
    touch-action:pan-y;
  }
}

/* Alpha v.02 - iPad 11-inch portrait centered 3+2 landing
   11-inch portrait only. Keep the fixed 64px top navigation untouched and
   center the update pill + CONTENT + 3+2 cards inside the remaining viewport.
   Widths above 900px (including the current 13-inch portrait layout) are not
   changed by this override. */
@media (min-width: 700px) and (max-width: 900px) and (orientation: portrait) {
  #view-landing{
    overflow:hidden;
    touch-action:manipulation;
  }

  #view-landing .lm-main{
    flex:0 0 calc(100dvh - 64px);
    width:calc(100% - 56px);
    height:calc(100dvh - 64px);
    min-height:calc(100vh - 64px);
    margin:64px auto 0;
    padding:24px 0 40px;
    justify-content:center;
    overflow:hidden;
  }

  /* Keep the update badge visible on 11-inch portrait. */
  #view-landing .lm-pill{
    display:inline-flex;
    margin-bottom:16px;
    align-self:flex-start;
  }

  #view-landing .lm-head{
    grid-template-columns:auto 1fr;
    gap:16px;
    align-items:center;
    margin-bottom:20px;
  }

  #view-landing .lm-head h1{
    font-size:32px;
  }

  #view-landing .lm-head-line{
    display:block;
  }

  #view-landing .modules{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:14px 12px;
    align-items:stretch;
    touch-action:manipulation;
  }

  #view-landing .module{
    grid-column:span 2;
    height:246px;
    min-height:246px;
    padding:14px 14px 13px;
    border-radius:14px;
  }

  #view-landing .module:nth-child(4){
    grid-column:2 / span 2;
  }

  #view-landing .module:nth-child(5){
    grid-column:4 / span 2;
  }

  #view-landing .number{
    font-size:32px;
  }

  #view-landing .module-chip{
    width:8px;
    height:8px;
    margin-top:5px;
  }

  #view-landing .icon-stage{
    flex:0 0 94px;
    min-height:94px;
    padding:6px 4px 4px;
  }

  #view-landing .icon-wrap{
    width:74px;
  }

  /* First tap keeps its visual color feedback, but never moves the layout. */
  #view-landing .module:hover .icon-wrap,
  #view-landing .module.touch-hover .icon-wrap,
  #view-landing .module:focus-within .icon-wrap{
    transform:none;
  }

  #view-landing .module-info{
    padding-top:11px;
  }

  #view-landing .module-title h2{
    font-size:18px;
  }

  #view-landing .module-title span{
    font-size:8px;
  }

  #view-landing .module-summary{
    margin-top:7px;
    min-height:30px;
    font-size:11px;
    line-height:1.45;
  }

  #view-landing .hover-detail,
  #view-landing .module:hover .hover-detail,
  #view-landing .module.touch-hover .hover-detail,
  #view-landing .module:focus-within .hover-detail{
    max-height:0;
    opacity:0;
    margin-top:0;
    overflow:hidden;
  }
}
