:root {
  --color-primary: #ff8e4f;
  --color-primary-dark: #f0622d;
  --color-primary-shadow: rgba(255, 142, 79, 0.38);
  --color-background-light: #f2f5fc;
  --color-background-dark: #0c1325;
  --color-surface-light: rgba(255, 255, 255, 0.84);
  --color-surface-dark: rgba(17, 28, 51, 0.9);
  --color-border-light: #dce4f5;
  --color-border-dark: #223459;
  --color-text-light: #111934;
  --color-text-dark: #f5f7ff;
  --color-subtext-light: #5e6b8a;
  --color-subtext-dark: #9eabd0;
  --shadow-soft: 0 12px 30px -18px rgba(31, 55, 107, 0.34);
  --shadow-primary: 0 14px 30px -14px var(--color-primary-shadow);
  --shadow-glass: 0 20px 38px -24px rgba(13, 32, 76, 0.42);
}

[data-page="dashboard"] {
  --color-primary: #ff8e4f;
  --color-primary-dark: #f0622d;
  --color-primary-shadow: rgba(255, 142, 79, 0.4);
}

[data-page="weekly"] {
  --color-primary: #4a86ff;
  --color-primary-dark: #2f6df0;
  --color-primary-shadow: rgba(74, 134, 255, 0.42);
}

[data-page="history"] {
  --color-primary: #14b8a6;
  --color-primary-dark: #0f988b;
  --color-primary-shadow: rgba(20, 184, 166, 0.35);
}

[data-page="stats"] {
  --color-primary: #6d5ef6;
  --color-primary-dark: #5948e0;
  --color-primary-shadow: rgba(109, 94, 246, 0.38);
}

[data-page="settings"] {
  --color-primary: #3a84f7;
  --color-primary-dark: #256de0;
  --color-primary-shadow: rgba(58, 132, 247, 0.34);
}

[data-page="new-goal"] {
  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-primary-shadow: rgba(79, 70, 229, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--color-background-light);
  color: var(--color-text-light);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
}

body::before {
  width: min(58vw, 340px);
  height: min(58vw, 340px);
  top: -140px;
  right: -70px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 174, 106, 0.55), rgba(255, 174, 106, 0));
}

body::after {
  width: min(70vw, 400px);
  height: min(70vw, 400px);
  bottom: -180px;
  left: -140px;
  background: radial-gradient(circle at 55% 45%, rgba(91, 144, 255, 0.26), rgba(91, 144, 255, 0));
}

.screen {
  position: relative;
  z-index: 2;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
}

#page-root {
  padding-bottom: 8.4rem;
}

.hidden {
  display: none !important;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid;
  place-items: center;
}

.loader-wrap {
  text-align: center;
}

.loader-wrap p {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--color-subtext-light);
}

.loader {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(74, 134, 255, 0.25);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

header,
section,
article,
nav,
button,
input,
textarea,
select {
  font-family: inherit;
}

.page-header {
  margin: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--color-border-light);
  border-radius: 24px;
  background: var(--color-surface-light);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
}

.page-header h1 {
  margin: 0;
  font-family: "Sora", "Noto Sans KR", sans-serif;
  letter-spacing: -0.02em;
  font-size: 35px;
  line-height: 1.08;
  text-wrap: balance;
}

.page-header p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-subtext-light);
}

.icon-btn {
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: transparent;
  color: var(--color-subtext-light);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

.block {
  margin: 0 16px 12px;
  padding: 16px;
  border: 1px solid var(--color-border-light);
  border-radius: 24px;
  background: var(--color-surface-light);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-subtext-light);
}

.heading {
  margin: 0;
  font-family: "Sora", "Noto Sans KR", sans-serif;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.subtext {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--color-subtext-light);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.grid {
  display: grid;
  gap: 10px;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: calc(50% - 6px);
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--color-subtext-light);
  border-bottom: 3px solid var(--color-subtext-light);
  transform: rotate(45deg);
  pointer-events: none;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-text-light);
  font-size: 16px;
}

select {
  appearance: none;
  padding-right: 38px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -1px;
}

.history-value-input,
.history-note-input {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.metric-card {
  margin: 0 16px 12px;
  padding: 20px;
  border-radius: 36px;
  color: #fff;
  background: linear-gradient(140deg, #1bb9a8 0%, #12a69a 44%, #0f9288 100%);
  box-shadow: var(--shadow-primary);
}

.metric-card.weekly {
  background: linear-gradient(140deg, #5a95ff 0%, #4a85ff 45%, #3a73ef 100%);
}

.metric-card.stats {
  background: linear-gradient(140deg, #7a6af9 0%, #6a5ef2 45%, #584adb 100%);
}

.metric-card .value {
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 2px;
}

.metric-card .small {
  margin: 0;
  opacity: 0.84;
}

.metric-card .right {
  text-align: right;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.progress-bg {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #fff;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 2px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  border: 1px solid var(--color-border-light);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-subtext-light);
  background: var(--color-surface-light);
  white-space: nowrap;
}

.chip.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: var(--shadow-primary);
}

.task-card {
  margin: 0 16px 10px;
  padding: 14px;
  border: 1px solid var(--color-border-light);
  border-radius: 24px;
  background: var(--color-surface-light);
  box-shadow: var(--shadow-soft);
}

.task-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check {
  appearance: none;
  margin-top: 2px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border-light);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}

.check:checked {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.check:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.dark .check {
  border-color: var(--color-border-dark);
}

.task-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.task-desc {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--color-subtext-light);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.tag.ok {
  background: #d8f6ec;
  color: #0f8b6c;
}

.tag.mute {
  background: rgba(255, 255, 255, 0.7);
  color: #7c8aa8;
}

.toast {
  position: fixed;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 120;
  background: #1f2937;
  color: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 18px 28px -22px rgba(17, 24, 39, 0.7);
}

.toast.error {
  background: #ef4444;
}

.toast.success {
  background: #10b981;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: calc(100% - 1.4rem);
  max-width: 430px;
  border: 1px solid var(--color-border-light);
  border-radius: 28px;
  background: var(--color-surface-light);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-glass);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px;
  z-index: 30;
}

.nav-item {
  border: 0;
  background: transparent;
  color: var(--color-subtext-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  cursor: pointer;
}

.nav-item span:last-child {
  font-size: 11px;
  font-weight: 700;
}

.nav-item.active {
  color: var(--color-primary);
}

.fab {
  position: fixed;
  right: max(18px, calc(50vw - 215px + 18px));
  bottom: 92px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-primary);
  cursor: pointer;
  z-index: 25;
}

.safe-area-pb {
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.empty {
  margin: 0 16px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--color-border-light);
  border-radius: 24px;
  background: var(--color-surface-light);
  color: var(--color-subtext-light);
}

.auth-wrap {
  padding: 24px 16px 90px;
}

.auth-card {
  border: 1px solid var(--color-border-light);
  border-radius: 26px;
  background: var(--color-surface-light);
  padding: 24px;
  box-shadow: var(--shadow-glass);
}

.auth-card h1 {
  margin: 8px 0;
  font-family: "Sora", "Noto Sans KR", sans-serif;
  letter-spacing: -0.02em;
}

.btn-row {
  display: flex;
  gap: 8px;
}

.btn {
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text-light);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: var(--shadow-primary);
}

.btn.text {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  padding: 0;
}

.table-wrap {
  margin: 0 16px;
  overflow: auto;
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  background: var(--color-surface-light);
}

.table {
  min-width: 700px;
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(220, 228, 245, 0.8);
  padding: 10px;
  text-align: center;
}

.table th:first-child,
.table td:first-child {
  text-align: left;
}

.stat-grid {
  margin: 0 16px;
  display: grid;
  gap: 10px;
}

.stat-item {
  padding: 14px;
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  background: var(--color-surface-light);
  box-shadow: var(--shadow-soft);
}

.stat-item .progress-fill {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}

.badge {
  display: inline-block;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(20, 184, 166, 0.18);
  color: #0f988b;
}

.week-nav {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border-radius: 20px;
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-light);
  box-shadow: var(--shadow-soft);
}

.week-nav button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--color-border-light);
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--color-subtext-light);
  cursor: pointer;
}

.week-nav button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.measurement-options {
  display: flex;
  gap: 8px;
}

.measurement-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 14px;
  border: 2px solid var(--color-border-light);
  background: var(--color-surface-light);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-subtext-light);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.measurement-option.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(79, 70, 229, 0.06);
}

.measurement-option .material-icons-round {
  font-size: 28px;
}

.btn.primary.full {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  gap: 6px;
}

.circular-progress {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.circular-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-progress .bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 7;
}

.circular-progress .fill {
  fill: none;
  stroke: #fff;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s ease;
}

.circular-progress .label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  display: grid;
  place-items: end center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.modal-overlay.hidden {
  display: none;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--color-surface-light);
  border-radius: 22px 22px 0 0;
  padding: 22px 18px 28px;
  box-shadow: var(--shadow-glass);
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 22px;
  }

  .metric-card .value {
    font-size: 52px;
  }
}

/* ============================
   DARK MODE
   ============================ */

.dark body {
  background: var(--color-background-dark);
  color: var(--color-text-dark);
}

.dark body::before {
  background: radial-gradient(circle at 30% 30%, rgba(69, 132, 255, 0.25), rgba(69, 132, 255, 0));
}

.dark body::after {
  background: radial-gradient(circle at 55% 45%, rgba(91, 144, 255, 0.15), rgba(91, 144, 255, 0));
}

.dark .page-header,
.dark .block,
.dark .task-card,
.dark .empty,
.dark .auth-card,
.dark .week-nav,
.dark .stat-item,
.dark .bottom-nav {
  background: var(--color-surface-dark);
  border-color: var(--color-border-dark);
}

.dark .table-wrap {
  background: var(--color-surface-dark);
  border-color: var(--color-border-dark);
}

.dark .table th,
.dark .table td {
  border-bottom-color: var(--color-border-dark);
}

.dark input,
.dark textarea,
.dark select {
  background: rgba(17, 28, 51, 0.6);
  border-color: var(--color-border-dark);
  color: var(--color-text-dark);
}

.dark input:focus,
.dark textarea:focus,
.dark select:focus {
  background: rgba(17, 28, 51, 0.9);
  border-color: var(--color-primary);
}

.dark .eyebrow,
.dark .subtext,
.dark .task-desc {
  color: var(--color-subtext-dark);
}

.dark .heading,
.dark .task-title {
  color: var(--color-text-dark);
}

.dark .icon-btn {
  color: var(--color-subtext-dark);
}

.dark .icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dark .nav-item {
  color: var(--color-subtext-dark);
}

.dark .chip {
  background: var(--color-surface-dark);
  border-color: var(--color-border-dark);
  color: var(--color-subtext-dark);
}

.dark .btn {
  background: rgba(17, 28, 51, 0.6);
  border-color: var(--color-border-dark);
  color: var(--color-text-dark);
}

.dark .tag.ok {
  background: rgba(20, 184, 166, 0.18);
  color: #34d399;
}

.dark .tag.mute {
  background: rgba(17, 28, 51, 0.6);
  color: var(--color-subtext-dark);
}

.dark .badge {
  background: rgba(20, 184, 166, 0.15);
  color: #34d399;
}

.dark .loading-overlay {
  background: rgba(10, 18, 37, 0.85);
}

.dark .modal-overlay {
  background: rgba(0, 0, 0, 0.65);
}

.dark .modal-sheet {
  background: var(--color-surface-dark);
}

.dark .measurement-option {
  border-color: var(--color-border-dark);
  background: var(--color-surface-dark);
  color: var(--color-subtext-dark);
}

.dark .measurement-option.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(79, 70, 229, 0.15);
}

.dark .select-wrap::after {
  border-right-color: var(--color-subtext-dark);
  border-bottom-color: var(--color-subtext-dark);
}

/* ============================
   FOCUS STATES
   ============================ */

.icon-btn:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.nav-item:focus-visible,
.fab:focus-visible,
.measurement-option:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================
   TOUCH & MOBILE
   ============================ */

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.modal-overlay {
  overscroll-behavior: contain;
}

/* ============================
   REDUCED MOTION
   ============================ */

/* ============================
   ANIMATIONS & MOTION
   ============================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#page-root > * {
  animation: fadeInUp 0.28s ease forwards;
  opacity: 0;
}

#page-root > *:nth-child(1) { animation-delay: 0.04s; }
#page-root > *:nth-child(2) { animation-delay: 0.08s; }
#page-root > *:nth-child(3) { animation-delay: 0.12s; }
#page-root > *:nth-child(4) { animation-delay: 0.16s; }
#page-root > *:nth-child(5) { animation-delay: 0.20s; }
#page-root > *:nth-child(6) { animation-delay: 0.24s; }
#page-root > *:nth-child(n+7) { animation-delay: 0.28s; }

/* Button press feedback */
.btn,
.fab,
.chip,
.icon-btn {
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active,
.fab:active,
.chip:active {
  transform: scale(0.975);
}

.icon-btn:active {
  transform: scale(0.92);
}

/* Navigation active icon */
.nav-item {
  transition: color 0.15s ease;
}

.nav-item.active .material-icons-round {
  transform: translateY(-1px);
  transition: transform 0.15s ease;
}

/* Progress bar animation */
.progress-fill {
  transition: width 0.4s ease;
}


/* Modal sheet slide-up */
.modal-sheet {
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease;
}

.modal-overlay:not(.hidden) .modal-sheet {
  transform: translateY(0);
  opacity: 1;
}

/* Toast animation */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.toast {
  animation: toastIn 0.25s ease forwards;
}

/* ============================
   USER GUIDE OVERLAY
   ============================ */

.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  animation: guideOverlayIn 0.3s ease forwards;
  overscroll-behavior: contain;
}

.guide-overlay.guide-closing {
  animation: guideOverlayOut 0.3s ease forwards;
}

@keyframes guideOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes guideOverlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.guide-container {
  width: calc(100% - 32px);
  max-width: 380px;
  background: var(--color-surface-light);
  border: 1px solid var(--color-border-light);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: guideCardIn 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.guide-closing .guide-container {
  animation: guideCardOut 0.25s ease forwards;
}

@keyframes guideCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes guideCardOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(16px) scale(0.97); }
}

.guide-skip {
  align-self: flex-end;
  border: 0;
  background: transparent;
  color: var(--color-subtext-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  min-height: 28px;
}

.guide-slides-viewport {
  width: 100%;
  padding: 16px 0 8px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.guide-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: guideSlideFade 0.25s ease forwards;
}

@keyframes guideSlideFade {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.guide-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.2);
}

.guide-icon-circle .material-icons-round {
  font-size: 38px;
  color: #fff;
}

.guide-step-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.guide-title {
  margin: 0 0 10px;
  font-family: "Sora", "Noto Sans KR", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
}

.guide-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-subtext-light);
}

.guide-dots {
  display: flex;
  gap: 8px;
  padding: 16px 0;
}

.guide-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-border-light);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.guide-dot.active {
  width: 24px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.guide-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
}

.guide-btn-prev {
  display: flex;
  align-items: center;
  gap: 4px;
}

.guide-btn-next {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
}

/* Dark mode for guide */
.dark .guide-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.dark .guide-container {
  background: var(--color-surface-dark);
  border-color: var(--color-border-dark);
}

.dark .guide-skip {
  color: var(--color-subtext-dark);
}

.dark .guide-title {
  color: var(--color-text-dark);
}

.dark .guide-desc {
  color: var(--color-subtext-dark);
}

.dark .guide-dot {
  background: var(--color-border-dark);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
