@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Jua&display=swap");

:root {
  --ink: #111111;
  --muted: #8b8b8b;
  --line: #e8e8e8;
  --soft: #f7f7f7;
  --panel: #ffffff;
  --black: #000000;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.05);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--ink);
}

body.dark-mode {
  --ink: #f5f5f5;
  --muted: #a8a8a8;
  --line: #2b2b2b;
  --soft: #242424;
  --panel: #181818;
  --black: #ffffff;
  --white: #111111;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  background: #0f0f0f;
}

@keyframes bear-bob {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-2px) rotate(-1.6deg);
  }
  50% {
    transform: translateX(2px) rotate(1.6deg);
  }
  75% {
    transform: translateX(-1px) rotate(-0.8deg);
  }
}

@keyframes bear-bob-soft {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-1px) rotate(-0.7deg);
  }
  50% {
    transform: translateX(1px) rotate(0.7deg);
  }
  75% {
    transform: translateX(-0.5px) rotate(-0.35deg);
  }
}

@keyframes flame-wiggle {
  0%,
  100% {
    transform: rotate(-0.8deg) scale(var(--flame-scale, 1));
  }
  50% {
    transform: rotate(1.2deg) scale(calc(var(--flame-scale, 1) + 0.015));
  }
}

@keyframes soft-pop {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes checkin-nudge {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, calc(-50% - 4px)) scale(1.04);
  }
}

@keyframes confetti-throw {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(calc(var(--scale) * 0.35));
  }
  14% {
    opacity: 1;
  }
  82% {
    opacity: 1;
    transform: translate(calc(var(--x) * 1.58), var(--y)) rotate(calc(var(--spin) * 0.52)) scale(var(--scale));
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--x) * 2.36), calc(var(--y) + 176px)) rotate(var(--spin)) scale(calc(var(--scale) * 0.9));
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(calc(var(--scale) * 0.8));
  }
  16% {
    opacity: 1;
  }
  86% {
    opacity: 1;
    transform: translate(calc(var(--x) * 1.94), calc(var(--y) * 0.82)) rotate(calc(var(--spin) * 0.48)) scale(var(--scale));
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--x) * 3.1), var(--y)) rotate(var(--spin)) scale(calc(var(--scale) * 0.9));
  }
}

@keyframes wave-flow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(140px);
  }
}

@keyframes guide-card-drag {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(44px);
  }
}

@keyframes guide-hand-drag {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  45% {
    transform: translate(0, 42px) scale(1.04);
  }
}

@keyframes sleepy-bg {
  0%,
  100% {
    background-position: 0 0;
  }
  50% {
    background-position: 14px 10px;
  }
}

@keyframes helper-bear-lean {
  0%,
  100% {
    transform: rotate(-5deg) translate(0, 0);
  }
  50% {
    transform: rotate(-9deg) translate(-1px, 1px);
  }
}

@keyframes helper-paw-tap {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(1px, -1px) scale(1.05);
  }
}

@keyframes helper-motion-float {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(1px);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-2px);
  }
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 14px 14px, rgba(17, 17, 17, 0.035) 0 2px, transparent 2px 100%),
    #ffffff;
  background-size: 28px 28px;
  animation: sleepy-bg 12s ease-in-out infinite;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

body.dark-mode .app-shell {
  background:
    radial-gradient(circle at 14px 14px, rgba(255, 255, 255, 0.055) 0 2px, transparent 2px 100%),
    #111111;
}

.screen {
  min-height: 100vh;
  padding: 20px 18px 118px;
  position: relative;
}

.home-admin-entry {
  min-height: 32px;
  padding: 0 12px;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  font-size: 12px;
  font-weight: 950;
}

.attendance-fireworks {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  width: 10px;
  height: 14px;
  position: absolute;
  bottom: 96px;
  background: var(--c);
  opacity: 0;
  border-radius: 2px;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.08);
  will-change: transform, opacity;
  animation: confetti-throw 5.25s cubic-bezier(0.18, 0.45, 0.2, 1) var(--delay) forwards;
}

.confetti-left {
  left: var(--offset);
}

.confetti-right {
  right: var(--offset);
}

.confetti-upper-left {
  top: 88px;
  bottom: auto;
  left: var(--offset);
}

.confetti-upper-right {
  top: 88px;
  right: var(--offset);
  bottom: auto;
}

.confetti-center {
  left: var(--offset);
}

.confetti-top {
  top: -24px;
  bottom: auto;
  left: var(--offset);
  animation-name: confetti-fall;
  animation-duration: 5.8s;
  animation-timing-function: cubic-bezier(0.18, 0.44, 0.22, 1);
}

.confetti-ribbon {
  width: 8px;
  height: 22px;
  background: var(--c);
}

.confetti-paper {
  width: 12px;
  height: 14px;
}

.confetti-star {
  width: 12px;
  height: 12px;
  background: var(--c);
  clip-path: none;
  box-shadow: none;
}

.confetti-streamer {
  width: 7px;
  height: 20px;
  background: var(--c);
}

.confetti-diamond {
  width: 13px;
  height: 13px;
  background: var(--c);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 54px;
}

.brand-home {
  width: 58px;
  height: 58px;
  padding: 0;
  display: grid;
  place-items: center start;
  background: transparent;
  border-radius: 8px;
  transition: transform 160ms ease;
}

.brand-home:active {
  transform: translateY(1px) scale(0.99);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  animation: soft-pop 4.8s ease-in-out infinite;
}

.topbar-title {
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", "NanumSquareRound", "Jua", "BM Hanna 11yrs Old", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.today-chip,
.pill {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero {
  display: grid;
  place-items: center start;
  width: min(92%, 408px);
  min-height: 92px;
  margin: 0 auto;
  padding: 10px 0 4px;
}

.hero-brand,
.signup-brand {
  width: fit-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: 84px auto;
  align-items: center;
  gap: 9px;
  margin: 0;
}

.hero .hero-brand {
  grid-template-columns: 42px auto;
  gap: 6px;
}

.mascot-3d {
  width: 88px;
  height: auto;
  display: block;
  animation: bear-bob 3.8s ease-in-out infinite;
  transform-origin: center bottom;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.08));
}

.hero .mascot-3d {
  width: 44px;
  animation-name: bear-bob-soft;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.07));
}

.hero-wordmark {
  display: grid;
  justify-items: start;
  gap: 2px;
  color: var(--ink);
  line-height: 0.96;
}

.hero .hero-wordmark strong {
  font-size: 15px;
  text-shadow: 0 1.5px 0 #eeeeee;
}

.hero-wordmark strong {
  font-family: "Arial Rounded MT Bold", "NanumSquareRound", "Jua", "BM Hanna 11yrs Old", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 3px 0 #eeeeee;
}

.hero-wordmark strong:first-child {
  transform: rotate(-1.5deg);
}

.hero-wordmark strong:last-child {
  transform: rotate(1deg);
}

@media (min-width: 390px) {
  .hero-wordmark strong {
    font-size: 34px;
  }

  .hero .hero-wordmark strong {
    font-size: 17px;
  }
}

.signup-screen {
  min-height: calc(100vh - 138px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
}

.signup-brand {
  grid-template-columns: 52px auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 8px;
  margin: 0 auto;
}

.signup-brand .mascot-3d {
  width: 52px;
  animation-name: bear-bob-soft;
  animation-duration: 6.8s;
  filter: drop-shadow(0 6px 9px rgba(0, 0, 0, 0.07));
}

.signup-brand .hero-wordmark {
  justify-items: center;
  line-height: 1;
}

.signup-brand .hero-wordmark strong {
  font-family: "Fredoka", "Jua", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 0 #f0f0f0;
  transform: none;
}

.signup-logo {
  width: min(96vw, 430px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.signup-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.signup-card .section-head h2 {
  font-size: 20px;
  line-height: 1.2;
}

.auth-switch {
  min-height: 46px;
  margin: 12px 0 18px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f7;
}

.auth-switch button {
  min-height: 36px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 950;
}

.auth-switch button.active {
  background: #111;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.auth-divider {
  margin: 18px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.auth-divider.compact {
  margin: 14px 0 8px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.google-auth-button {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
}

.auth-choice-stack {
  display: grid;
  gap: 10px;
}

.email-auth-button {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
}

.email-auth-button span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f6f6f6;
  color: #111;
  font-size: 15px;
  font-weight: 950;
}

.email-auth-button strong {
  text-align: center;
}

.google-auth-button strong {
  text-align: center;
}

.google-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.1);
}

.google-mark svg {
  width: 18px;
  height: 18px;
  display: block;
}

.auth-consent-row {
  margin-top: 8px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  background: rgba(255, 122, 24, 0.04);
}

.auth-consent-row.compact {
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 34px;
  padding: 6px 9px;
}

.auth-consent-modal .auth-consent-row {
  margin-top: 8px;
}

.auth-consent-row.required {
  background: rgba(255, 122, 24, 0.06);
  border-color: rgba(255, 122, 24, 0.24);
}

.auth-consent-row.optional {
  background: #fff;
}

.auth-consent-row input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin-top: 0;
  border-radius: 4px;
  accent-color: #ff7a18;
}

.auth-consent-row span {
  display: grid;
  gap: 4px;
}

.auth-consent-row strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
}

.auth-consent-row strong b {
  min-width: 30px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.12);
  color: #ff7a18;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.auth-consent-row em,
.auth-legal-links {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.auth-legal-links {
  margin-top: 12px;
  text-align: center;
}

.auth-legal-links a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-consent-row a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-consent-view {
  min-width: 34px;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.02);
  color: #777;
  font-size: 11px;
  font-weight: 800;
}

.legal-doc-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(82vh, 720px);
}

.legal-doc-frame {
  width: 100%;
  height: 100%;
  margin-top: 12px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  background: #fff;
}

.full-button {
  width: 100%;
}

.logout-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.logout-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #777;
  font-size: 14px;
  font-weight: 900;
}

.add-mission-banner {
  width: min(52%, 214px);
  min-height: 48px;
  margin: 30px auto 18px;
  padding: 0 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #e75f00 0%, #f27c00 50%, #ffb323 100%);
  color: #fff;
  border: 1px solid rgba(211, 83, 0, 0.72);
  border-radius: 999px;
  font-weight: 950;
  text-align: left;
  box-shadow: 0 12px 24px rgba(214, 82, 0, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.add-mission-banner:active {
  transform: translateY(2px) scale(0.99);
}

.add-mission-banner span {
  font-size: 15px;
  letter-spacing: 0;
  transform: translate(6px, -1px);
}

.add-mission-banner strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  font-size: 20px;
  line-height: 1;
  transform: translate(-2px, -1px);
}

.home-mission-list {
  width: min(92%, 408px);
  display: grid;
  gap: 10px;
  margin: 0 auto 16px;
}

.home-mission-card {
  min-height: 86px;
  padding: 12px 12px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.home-mission-card:active {
  transform: translateY(2px) scale(0.99);
}

.home-mission-card.done {
  border-color: rgba(255, 122, 24, 0.42);
  background: linear-gradient(90deg, rgba(255, 159, 26, 0.1), #fff 70%);
}

.home-mission-card.paused {
  background: #f7f7f7;
  border-color: rgba(17, 17, 17, 0.1);
}

.home-mission-icon,
.mission-order-icon {
  display: grid;
  place-items: center;
}

.home-mission-icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.mission-emoji-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 159, 26, 0.1);
  border: 1px solid rgba(17, 17, 17, 0.08);
  font-size: 30px;
  line-height: 1;
}

.home-mission-copy {
  display: grid;
  gap: 4px;
}

.home-mission-copy strong,
.mission-order-copy strong {
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
}

.home-mission-copy em,
.mission-order-copy em {
  color: #ff7a18;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.home-mission-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.home-mission-state {
  min-width: 42px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.home-mission-card.done .home-mission-state {
  background: #ff7a18;
}

.home-mission-card.paused .home-mission-state {
  background: #777;
}

.english-home-mission .home-mission-state {
  min-width: 48px;
  min-height: 34px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #fff;
  color: #111;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  font-size: 12px;
}

.english-home-mission.done .home-mission-state {
  border-color: rgba(255, 122, 24, 0.36);
  background: #fff;
  color: #ff7a18;
}

.home-wave-divider {
  width: calc(100% + 36px);
  height: 28px;
  margin: 4px -18px 34px;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.home-wave-divider svg {
  width: calc(100% + 280px);
  height: 100%;
  display: block;
  transform: translateX(-140px);
}

.personal-scheduler {
  width: min(92%, 408px);
  margin: 0 auto 34px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

.scheduler-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.scheduler-month-nav {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
}

.scheduler-month-button {
  min-height: 36px;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.scheduler-month-button b {
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.scheduler-add {
  width: 64px;
  min-width: 64px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.scheduler-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.scheduler-today-small {
  width: 64px;
  min-width: 64px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.scheduler-icon-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
  font-size: 20px;
  line-height: 0.82;
  transform: translateY(-1px);
}

.scheduler-mission-stack {
  width: min(92%, 408px);
  margin: 0 auto 18px;
  padding-top: 18px;
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.scheduler-mission-add {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.scheduler-mission-list {
  display: grid;
  gap: 6px;
}

.scheduler-mission-item {
  min-height: 42px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: #fff8f0;
  color: var(--ink);
  cursor: grab;
  text-align: left;
  touch-action: none;
  user-select: none;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.scheduler-mission-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.scheduler-mission-copy strong,
.scheduler-mission-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scheduler-mission-copy strong {
  font-size: 13px;
  font-weight: 950;
}

.scheduler-mission-copy em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.scheduler-mission-grip {
  color: rgba(17, 17, 17, 0.4);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.scheduler-mission-item.dragging,
.scheduler-mission-item.touch-dragging {
  opacity: 0.52;
  transform: scale(0.99);
}

.scheduler-mission-item.drag-over {
  border-color: rgba(255, 122, 24, 0.58);
  background: #fff1df;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  margin-top: 10px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.calendar-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  gap: 1px;
}

.calendar-day {
  min-height: 74px;
  padding: 5px 4px;
  display: grid;
  grid-template-rows: 20px 1fr;
  gap: 3px;
  background: #fff;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.calendar-day.muted {
  background: #fafafa;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px rgba(255, 122, 24, 0.44);
}

.calendar-day.drag-over {
  background: #fff6eb;
  box-shadow: inset 0 0 0 2px #ff7a18;
}

.calendar-date-button {
  width: 24px;
  min-height: 20px;
  padding: 0;
  justify-self: end;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.calendar-day.today .calendar-date-button {
  background: #111;
  color: #fff;
}

.calendar-events {
  display: grid;
  gap: 3px;
  align-content: start;
  min-width: 0;
}

.calendar-event {
  width: 100%;
  min-height: 18px;
  padding: 2px 4px;
  display: block;
  overflow: hidden;
  border-left: 4px solid var(--event-color);
  border-radius: 4px;
  background: #fff8f0;
  color: var(--ink);
  text-align: left;
  line-height: 1.1;
  touch-action: none;
  user-select: none;
}

.calendar-event.dragging {
  opacity: 0.45;
}

.calendar-event span,
.calendar-event strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event span {
  font-size: 9px;
  font-weight: 900;
  opacity: 0.68;
}

.calendar-event strong {
  font-size: 10px;
  font-weight: 950;
}

.calendar-more {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.wave-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: wave-flow 6.4s ease-in-out infinite alternate;
}

.wave-back {
  stroke: rgba(255, 179, 35, 0.32);
  stroke-width: 5;
  animation-duration: 8.2s;
}

.wave-front {
  stroke: rgba(231, 95, 0, 0.66);
  stroke-width: 3.2;
  animation-duration: 6.6s;
}

.attendance-card {
  width: min(92%, 408px);
  min-height: 86px;
  margin: 8px auto 30px;
  padding: 8px 13px;
  display: block;
  position: relative;
  overflow: visible;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(17, 17, 17, 0.055);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.055);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.attendance-card:active {
  transform: translateY(2px) scale(0.99);
}

.attendance-content {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 66px;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.attendance-card.needs-checkin .attendance-content {
  filter: blur(2px);
  opacity: 0.38;
  transform: scale(0.99);
}

.attendance-card.needs-checkin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.28);
}

.attendance-cta {
  min-height: 38px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  border-radius: 999px;
  background: #111;
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
  animation: checkin-nudge 1.35s ease-in-out infinite;
}

.flame-stage {
  width: 70px;
  height: 64px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
  transform: translateY(-3px);
}

.flame-stage::before {
  content: "";
  width: 40px;
  height: 8px;
  position: absolute;
  bottom: 5px;
  border-radius: 999px;
  background: rgba(255, 136, 0, 0.18);
  filter: blur(10px);
}

.flame-stage::after {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 30px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7a3c16, #d47124, #8f4619);
  opacity: 0.72;
}

.flame-icon {
  --flame-size: 64px;
  --flame-outer: #ff8b22;
  --flame-mid: #ffd154;
  --flame-core: #fff5b8;
  --flame-side: #ff6a18;
  --flame-spark: #ffb02e;
  --flame-shadow: rgba(255, 122, 0, 0.22);
  width: var(--flame-size);
  height: var(--flame-size);
  display: block;
  overflow: visible;
  animation: flame-wiggle 1.6s ease-in-out infinite;
  transform-origin: center bottom;
  filter: drop-shadow(0 8px 12px var(--flame-shadow));
}

.attendance-card .flame-icon {
  --flame-size: 50px;
  filter: drop-shadow(0 5px 8px var(--flame-shadow));
}

.flame-ground {
  fill: var(--flame-shadow);
}

.flame-outer {
  fill: var(--flame-outer);
}

.flame-mid {
  fill: var(--flame-mid);
}

.flame-core {
  fill: var(--flame-core);
}

.match-stick,
.match-smoke,
.torch-handle,
.torch-wrap,
.flame-logs path,
.flame-arm,
.flame-leg {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.match-stick {
  stroke: #a86932;
  stroke-width: 7;
}

.match-head {
  fill: #2c2722;
  stroke: #111;
  stroke-width: 2;
}

.flame-kind-2 .match-head,
.flame-kind-3 .match-head {
  fill: #5a2417;
}

.match-smoke {
  stroke: #a9a9a9;
  stroke-width: 4;
  opacity: 0.75;
}

.torch-handle {
  stroke: #75431f;
  stroke-width: 10;
}

.torch-head {
  fill: #5b351c;
  stroke: #111;
  stroke-width: 2;
}

.torch-wrap {
  stroke: #f3c063;
  stroke-width: 4;
}

.flame-logs .log-main,
.flame-logs .log-cross {
  stroke: #8a4a20;
  stroke-width: 10;
}

.flame-logs .log-back {
  stroke: #b86429;
  stroke-width: 8;
}

.flame-logs circle {
  fill: #d18a45;
  stroke: #6b3517;
  stroke-width: 2;
}

.flame-shape {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.flame-blue-core {
  fill: #67d9ff;
  opacity: 0.9;
}

.flame-side {
  fill: var(--flame-side);
  opacity: 0.9;
}

.flame-crown,
.flame-orbit,
.flame-confetti,
.flame-ray,
.flame-mouth,
.flame-eye-line,
.flame-sleepy-wick,
.flame-echo,
.flame-underbar,
.flame-shrug,
.flame-side-pop,
.flame-check-mark,
.flame-ribbon,
.flame-megaphone,
.flame-infinity,
.flame-arm,
.flame-leg {
  fill: none;
  stroke: var(--flame-accent, var(--flame-spark));
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flame-mood {
  font-family: "Arial Rounded MT Bold", "NanumSquareRound", "Jua", "BM Hanna 11yrs Old", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: var(--flame-mood-size, 11px);
  font-weight: 950;
  fill: var(--flame-mood, #111);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3px;
  paint-order: stroke;
}

.flame-crown {
  stroke-width: 4;
}

.flame-orbit {
  stroke-width: 3;
  opacity: 0.68;
}

.flame-confetti {
  stroke-width: 4;
}

.flame-ray {
  stroke-width: 4;
  opacity: 0.7;
}

.flame-spark,
.flame-ember,
.flame-star,
.flame-confetti-dot,
.flame-medal-dot {
  fill: var(--flame-spark);
}

.flame-eye {
  fill: var(--flame-face, #111);
}

.flame-cheek {
  fill: #ff8e75;
  opacity: 0.82;
}

.flame-mouth,
.flame-eye-line {
  stroke-width: 3.4;
  stroke: var(--flame-face, #111);
}

.flame-sleepy-wick,
.flame-echo,
.flame-underbar,
.flame-shrug,
.flame-side-pop,
.flame-ribbon,
.flame-megaphone,
.flame-infinity,
.flame-arm,
.flame-leg {
  stroke-width: 4;
}

.flame-check-mark {
  stroke-width: 5;
  stroke: #111;
}

.flame-bang {
  font-size: 15px;
  font-weight: 950;
  fill: var(--flame-spark);
  stroke: #111;
  stroke-width: 0.8px;
  paint-order: stroke;
}

.flame-medal,
.flame-trophy {
  fill: none;
  stroke: var(--flame-spark);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flame-halo {
  fill: none;
  stroke: var(--flame-spark);
  stroke-width: 3;
  opacity: 0.36;
}

.lighter-glow,
.camp-glow,
.bonfire-glow,
.flame-character-glow {
  fill: var(--flame-shadow, rgba(255, 118, 37, 0.2));
}

.lighter-glow {
  opacity: 0.54;
}

.lighter-body {
  fill: #f0ad32;
  stroke: #111;
  stroke-width: 2.2;
}

.lighter-front {
  fill: #ffd35b;
  opacity: 0.76;
}

.lighter-shine,
.lighter-groove,
.lighter-spark-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lighter-shine {
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 3.4;
}

.lighter-metal {
  fill: #dfe7ef;
  stroke: #111;
  stroke-width: 2;
}

.lighter-groove {
  stroke: #79858f;
  stroke-width: 2.2;
}

.lighter-wheel {
  fill: #222;
  stroke: #111;
  stroke-width: 1.8;
}

.lighter-spark-line {
  stroke: var(--flame-spark);
  stroke-width: 3;
}

.lighter-core {
  opacity: 0.88;
}

.camp-glow {
  opacity: 0.62;
}

.camp-smoke {
  fill: none;
  stroke: #c8c2b8;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.42;
}

.camp-stone {
  fill: #ddd7ce;
  stroke: #82776c;
  stroke-width: 1.8;
}

.camp-log,
.bonfire-log,
.bonfire-stick {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.camp-log.back,
.camp-log.front {
  stroke: #8c4c23;
  stroke-width: 9;
}

.camp-log.base {
  stroke: #bd6b2f;
  stroke-width: 7;
}

.camp-log-end,
.bonfire-log-end {
  fill: #d8904b;
  stroke: #633014;
  stroke-width: 2;
}

.camp-core,
.bonfire-core {
  opacity: 0.84;
}

.bonfire-glow {
  opacity: 0.58;
}

.bonfire-log.back,
.bonfire-log.front {
  stroke: #78401e;
  stroke-width: 10;
}

.bonfire-log.floor {
  stroke: #aa5a26;
  stroke-width: 8;
}

.bonfire-stick {
  stroke: #5d3219;
  stroke-width: 6;
}

.bonfire-rays {
  opacity: 0.72;
}

.flame-character-glow {
  opacity: 0.5;
}

.flame-character-sparkle {
  fill: var(--flame-spark);
  stroke: #111;
  stroke-width: 1.2;
}

.flame-character-body {
  fill: url("#flameCharBodyGrad");
  stroke: #111;
  stroke-width: 2.2;
  filter: url("#flameCharSoftDepth");
}

.flame-character-inner {
  fill: url("#flameCharInnerGrad");
  opacity: 0.94;
}

.flame-character-core {
  fill: url("#flameCharCoreGrad");
}

.flame-character-gloss {
  fill: none;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.82;
}

.flame-character-rim {
  fill: none;
  stroke: rgba(123, 30, 16, 0.36);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.66;
}

.flame-character-blush-light {
  fill: rgba(255, 255, 255, 0.45);
  opacity: 0.72;
}

.flame-face-panel {
  fill: url("#flameCharFaceGrad");
  opacity: 0.48;
}

.flame-eye-shine {
  fill: #fff;
}

.flame-character-arm,
.flame-character-leg {
  fill: none;
  stroke: #111;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flame-character-hand,
.flame-character-foot {
  fill: var(--flame-mid);
  stroke: #111;
  stroke-width: 2;
}

.flame-mouth.cute {
  stroke-width: 3.2;
}

.flame-level-1 {
  --flame-size: 58px;
  --flame-outer: #ffb03b;
  --flame-mid: #ffe078;
  --flame-core: #fff8c9;
  --flame-spark: #ffb03b;
  --flame-accent: #d36a13;
  --flame-mood-size: 18px;
}

.flame-level-2 {
  --flame-size: 64px;
  --flame-outer: #ff8b20;
  --flame-mid: #ffd24c;
  --flame-core: #fff3a4;
  --flame-spark: #ff6e2f;
  --flame-accent: #c65418;
  --flame-mood-size: 17px;
}

.flame-level-3 {
  --flame-size: 72px;
  --flame-outer: #ff6c27;
  --flame-mid: #ffc331;
  --flame-core: #fff29a;
  --flame-spark: #ff7d47;
  --flame-accent: #111;
  --flame-mood-size: 12px;
}

.flame-level-4 {
  --flame-size: 78px;
  --flame-outer: #ff5841;
  --flame-mid: #ffb22a;
  --flame-core: #fff09a;
  --flame-spark: #43d7ff;
  --flame-accent: #2f9fc2;
  --flame-mood-size: 11px;
}

.flame-level-5 {
  --flame-size: 86px;
  --flame-outer: #ff423e;
  --flame-mid: #ffad1f;
  --flame-core: #fff08d;
  --flame-side: #ff7b1e;
  --flame-spark: #ffcc45;
  --flame-accent: #9c2d20;
  --flame-mood-size: 13px;
}

.flame-level-6 {
  --flame-size: 90px;
  --flame-outer: #f63b42;
  --flame-mid: #ff9f1a;
  --flame-core: #ffef82;
  --flame-spark: #69d7ff;
  --flame-accent: #111;
  --flame-mood-size: 13px;
}

.flame-level-7 {
  --flame-size: 96px;
  --flame-outer: #ff6235;
  --flame-mid: #ffb531;
  --flame-core: #fff3a6;
  --flame-spark: #ffd449;
  --flame-accent: #111;
  --flame-shadow: rgba(255, 108, 45, 0.24);
  --flame-mood-size: 12px;
}

.flame-level-8 {
  --flame-size: 104px;
  --flame-outer: #e9482d;
  --flame-mid: #ff981d;
  --flame-core: #ffec85;
  --flame-spark: #ffd05a;
  --flame-accent: #e36f24;
  --flame-shadow: rgba(232, 78, 38, 0.26);
  --flame-mood-size: 12px;
}

.flame-level-9 {
  --flame-size: 112px;
  --flame-outer: #d83b22;
  --flame-mid: #ff8317;
  --flame-core: #ffe25a;
  --flame-side: #ff5e2c;
  --flame-spark: #ffc944;
  --flame-accent: #d7561f;
  --flame-shadow: rgba(216, 59, 34, 0.32);
  --flame-mood-size: 12px;
}

.flame-level-10 {
  --flame-size: 118px;
  --flame-outer: #ff5838;
  --flame-mid: #ff9d24;
  --flame-core: #fff0a0;
  --flame-spark: #ffd85b;
  --flame-accent: #ffb43a;
  --flame-face: #151515;
  --flame-shadow: rgba(255, 83, 45, 0.34);
  --flame-mood-size: 12px;
}

.attendance-copy {
  display: grid;
  gap: 6px;
}

.attendance-card strong {
  font-family: "NanumSquareRound", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
  color: #111;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
}

.attendance-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.attendance-rank-percent {
  color: #ff7a18;
  text-decoration-line: underline;
  text-decoration-color: #ff9f1a;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.attendance-card.checked {
  border-color: rgba(17, 17, 17, 0.055);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.055);
}

.attendance-card.checked i {
  color: #fff;
  background: #111;
  border-color: #111;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 11vw, 54px);
  line-height: 0.96;
  letter-spacing: 0;
}

.subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.mission-grid {
  display: grid;
  gap: 12px;
}

.mission-card,
.panel,
.modal-card,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.mission-card {
  min-height: 98px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 17px 4px 17px 0;
  border-width: 1px;
  text-align: left;
  color: var(--ink);
  background: transparent;
  transition: transform 160ms ease, background-color 160ms ease;
}

.mission-card:active {
  transform: translateX(4px);
  background: var(--soft);
}

.mission-icon,
.nav-icon,
.icon-button,
.arrow-button {
  display: grid;
  place-items: center;
}

.mission-icon {
  width: 52px;
  height: 52px;
  color: var(--ink);
  border-radius: 0;
  border: 0;
  background: transparent;
}

.mission-icon img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
}

.mission-copy h2 {
  font-size: 18px;
}

.mission-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--line);
}

.status-dot.done {
  border-color: var(--black);
  background: var(--black);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 480px);
  min-height: 88px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  z-index: 20;
}

.nav-item {
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
}

.nav-icon {
  width: 56px;
  height: 36px;
  border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease;
}

.nav-icon svg,
.nav-icon img {
  display: block;
  max-width: 42px;
  max-height: 34px;
}

.nav-icon .nav-bears {
  max-width: 60px;
  overflow: visible;
}

.nav-icon .nav-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transform: translateY(-2px);
}

.nav-icon .nav-flame {
  --flame-size: 32px !important;
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  animation: none;
  filter: none;
  transform: translateY(-1px);
}

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

.nav-item.active .nav-icon {
  color: var(--ink);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  animation: soft-pop 2.4s ease-in-out infinite;
}

.nav-item[data-tab="home"].active .nav-icon {
  background: transparent;
  box-shadow: none;
}

.nav-icon .nav-flame .flame-ground {
  display: none;
}

.nav-icon .nav-flame .flame-mood {
  display: none;
}

.panel {
  padding: 18px;
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 22px;
}

.dashboard-tabs {
  width: min(92%, 408px);
  margin: 16px auto 0;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 10px;
  background: #fff;
}

.dashboard-tab {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.dashboard-tab.active {
  background: #111;
  color: #fff;
}

.mission-setup-panel {
  display: grid;
}

.mission-setup-head {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.mission-setup-head img,
.mission-setup-icon {
  width: 72px;
  height: 72px;
}

.mission-setup-head img {
  object-fit: contain;
}

.mission-setup-icon.mission-emoji-icon {
  border-radius: 20px;
  font-size: 38px;
}

.emoji-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.emoji-option {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  padding: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.emoji-option.selected {
  border-color: rgba(255, 122, 24, 0.75);
  background: rgba(255, 159, 26, 0.14);
  box-shadow: 0 10px 22px rgba(255, 122, 24, 0.14);
}

.mission-setup-head span,
.mission-order-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mission-setup-head strong {
  font-family: "Arial Rounded MT Bold", "NanumSquareRound", "Jua", "BM Hanna 11yrs Old", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.mission-setup-head em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.english-setup-panel {
  gap: 16px;
}

.english-setup-copy {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", "NanumSquareRound", "Jua", "BM Hanna 11yrs Old", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 23px;
  font-weight: 950;
  line-height: 1.45;
  letter-spacing: 0;
}

.english-setup-steps {
  display: grid;
  gap: 10px;
}

.english-step {
  min-height: 66px;
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 159, 26, 0.22);
  border-radius: 18px;
  background: rgba(255, 159, 26, 0.08);
}

.english-step b {
  color: #ff7a18;
  font-size: 15px;
  font-weight: 950;
}

.english-step span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.mission-order-list {
  display: grid;
}

.mission-order-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: grab;
  transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.mission-order-row:active {
  cursor: grabbing;
}

.mission-order-row.dragging {
  opacity: 0.42;
  transform: scale(0.985);
}

.mission-order-row.touch-dragging {
  opacity: 0.72;
  transform: scale(0.99);
  background: rgba(255, 159, 26, 0.06);
}

.mission-order-row.drag-over {
  background: rgba(255, 159, 26, 0.08);
}

.mission-order-row.paused {
  background: rgba(17, 17, 17, 0.025);
}

.mission-order-row:last-child {
  border-bottom: 0;
}

.mission-order-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.mission-order-icon.mission-emoji-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 25px;
}

.mission-order-actions {
  display: flex;
  gap: 6px;
}

.mission-order-tools {
  grid-column: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mission-reminder-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.mission-reminder-controls input,
.mission-reminder-controls select {
  width: 88px;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.mission-reminder-controls select {
  width: 104px;
  appearance: none;
  padding-right: 18px;
  background:
    linear-gradient(45deg, transparent 50%, rgba(17, 17, 17, 0.55) 50%) right 12px center / 5px 5px no-repeat,
    linear-gradient(135deg, rgba(17, 17, 17, 0.55) 50%, transparent 50%) right 8px center / 5px 5px no-repeat,
    #fff;
}

.mission-reminder-controls .pill {
  min-height: 30px;
  padding: 6px 9px;
}

.reminder-toggle.on {
  border-color: rgba(255, 122, 24, 0.28);
  background: rgba(255, 159, 26, 0.14);
  color: #ff7a18;
}

.mission-drag-handle {
  color: rgba(17, 17, 17, 0.34);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -4px;
  transform: rotate(90deg);
}

button:disabled {
  cursor: default;
  opacity: 0.35;
}

.sleep-menu-card {
  width: 100%;
  min-height: 68px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.sleep-menu-card span {
  display: grid;
  gap: 5px;
}

.sleep-menu-card strong {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
}

.sleep-menu-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.sleep-menu-card b {
  font-size: 28px;
  line-height: 1;
}

.sleep-settings-panel .section-head h2 {
  font-family: "Arial Rounded MT Bold", "NanumSquareRound", "Jua", "BM Hanna 11yrs Old", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.48;
  letter-spacing: 0;
  text-shadow: 0 2px 0 #eeeeee;
}

.sleep-time-field {
  margin-top: 18px;
}

.sleep-time-field input {
  min-height: 60px;
  text-align: center;
  color: var(--ink);
  font-size: 25px;
  font-weight: 950;
}

.sleep-confirm-actions {
  margin-top: 12px;
}

.sleep-note {
  margin-top: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
}

.sleep-wink {
  margin-top: 6px;
  color: #ff7a18;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.4;
}

.sleep-alert-box,
.sleep-push-panel {
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
  background: #fff;
}

.sleep-alert-box strong,
.sleep-push-panel strong {
  display: block;
  font-size: 16px;
  font-weight: 950;
}

.sleep-alert-box p,
.sleep-push-panel p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.thinking-menu-card strong {
  color: #ff7a18;
}

.thinking-settings-panel {
  display: grid;
  gap: 14px;
}

.thinking-preview-card {
  padding: 16px;
  border: 1px solid rgba(255, 122, 24, 0.18);
  border-radius: 16px;
  background: #fff8f0;
}

.thinking-preview-card strong {
  display: block;
  color: #ff7a18;
  font-size: 12px;
  font-weight: 950;
}

.thinking-preview-card p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
}

.thinking-permission-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sleep-alert-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sleep-alert-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 122, 24, 0.12);
  color: #ff7a18;
}

.sleep-alert-icon svg {
  width: 21px;
  height: 21px;
}

.usage-help-button {
  width: 100%;
  min-height: 66px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.usage-help-button span {
  display: grid;
  gap: 5px;
}

.usage-help-button strong {
  font-size: 17px;
  font-weight: 950;
}

.usage-help-button em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.usage-help-button b {
  font-size: 28px;
  line-height: 1;
}

.flame-current {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 2px 0 4px;
}

.flame-guide-panel {
  position: relative;
  padding-bottom: 60px;
}

.flame-guide-title {
  margin-bottom: 10px;
}

.flame-guide-title h2 {
  font-family: "Arial Rounded MT Bold", "NanumSquareRound", "Jua", "BM Hanna 11yrs Old", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: 0;
  text-shadow: 0 2px 0 #eeeeee;
}

.mission-order-panel .section-head h2,
.completed-todo-panel .section-head h2 {
  font-size: 18px;
  line-height: 1.2;
}

.flame-level-detail-button {
  position: absolute;
  right: 16px;
  bottom: 14px;
  min-height: 32px;
  padding: 7px 12px;
  color: #555;
  border-color: rgba(17, 17, 17, 0.12);
  background: #f2f2f2;
}

.dashboard-mini-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.dashboard-mini-links button {
  min-height: 30px;
  padding: 0 6px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  background: #fafafa;
  color: #333;
  font-size: 11px;
  font-weight: 900;
}

.dashboard-mini-links button.active {
  color: #fff;
  background: #111;
  border-color: #111;
}

body.dark-mode .panel,
body.dark-mode .signup-card,
body.dark-mode .modal-card,
body.dark-mode .personal-scheduler,
body.dark-mode .attendance-card,
body.dark-mode .home-mission-card,
body.dark-mode .scheduler-mission-item,
body.dark-mode .completed-todo-row,
body.dark-mode .calendar-day,
body.dark-mode .scheduler-mission-add,
body.dark-mode .scheduler-today-small,
body.dark-mode .scheduler-add,
body.dark-mode .scheduler-icon-button,
body.dark-mode .scheduler-month-button,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background-color: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

body.dark-mode .dashboard-mini-links button,
body.dark-mode .pill,
body.dark-mode .ghost,
body.dark-mode .emoji-option,
body.dark-mode .sleep-menu-card,
body.dark-mode .usage-help-button {
  background: #222;
  color: var(--ink);
  border-color: var(--line);
}

body.dark-mode .dashboard-mini-links button.active {
  background: #ff7a18;
  border-color: #ff7a18;
  color: #fff;
}

body.dark-mode .bottom-nav {
  background: rgba(17, 17, 17, 0.94);
  border-color: var(--line);
}

body.dark-mode .empty {
  background: #151515;
}

.flame-current-icon,
.flame-level-icon {
  display: grid;
  place-items: center;
}

.flame-current-svg {
  --flame-size: 64px !important;
}

.flame-current strong,
.flame-level-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
}

.flame-current em,
.flame-level-copy em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.flame-level-list {
  display: grid;
}

.flame-level-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.flame-level-row:last-child {
  border-bottom: 0;
}

.flame-level-row.active {
  border-left: 4px solid #111;
  padding-left: 8px;
  background: linear-gradient(90deg, rgba(255, 176, 46, 0.12), transparent 72%);
}

.flame-mini {
  animation: none;
  filter: none;
}

.flame-mini.flame-level-1 {
  --flame-size: 30px;
}

.flame-mini.flame-level-2 {
  --flame-size: 34px;
}

.flame-mini.flame-level-3 {
  --flame-size: 38px;
}

.flame-mini.flame-level-4 {
  --flame-size: 42px;
}

.flame-mini.flame-level-5 {
  --flame-size: 46px;
}

.flame-mini.flame-level-6 {
  --flame-size: 50px;
}

.flame-mini.flame-level-7 {
  --flame-size: 54px;
}

.flame-mini.flame-level-8 {
  --flame-size: 58px;
}

.flame-mini.flame-level-9 {
  --flame-size: 62px;
}

.flame-mini.flame-level-10 {
  --flame-size: 66px;
}

.sentence {
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
}

.english-info-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.english-lesson-panel .english-info-list {
  margin-top: 0;
}

.english-info-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  background: #fff;
}

.english-lesson-panel .english-info-row {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.english-info-row b {
  color: #ff7a18;
  font-size: 12px;
  font-weight: 950;
}

.english-info-row span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}

.english-dialogue {
  display: grid;
  gap: 12px;
}

.english-dialogue-line {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  align-items: flex-start;
}

.dialogue-bear {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.dialogue-bear-svg {
  width: 36px;
  height: 36px;
  display: block;
}

.dialogue-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.english-dialogue p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}

.english-dialogue small,
.english-word-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.english-word-card {
  display: grid;
  gap: 4px;
}

.english-word-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
}

.today-sentence-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 159, 26, 0.14), #fff 72%);
  border: 1px solid rgba(255, 122, 24, 0.18);
}

.english-lesson-panel .today-sentence-card {
  margin-top: 22px;
  padding: 18px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.english-detail-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.today-sentence-card em,
.english-answer-card em {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.today-sentence-card .sentence,
.english-answer-card .sentence {
  margin: 0;
}

.english-clear-actions {
  margin-top: 26px;
}

.english-clear-actions .english-clear-button {
  background: linear-gradient(135deg, #df5d00, #ff8a1c);
  border: 1px solid rgba(211, 83, 0, 0.7);
  color: #fff;
  box-shadow: 0 12px 24px rgba(223, 93, 0, 0.2);
}

.mission-delete-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.mission-delete-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  border: 1px solid rgba(17, 17, 17, 0.1);
  color: rgba(17, 17, 17, 0.68);
  font-size: 12px;
  font-weight: 950;
}

.mission-delete-button:active {
  transform: translateY(1px);
}

.answer-dialogue {
  margin-top: 10px;
}

.quiz-right-button {
  background: #111;
  color: #fff;
}

.quiz-wrong-button {
  background: #fff;
  color: var(--muted);
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.quiz-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-result-actions button {
  width: 100%;
  padding: 0 8px;
}

.english-quiz-panel .quiz-answer-button {
  width: 100%;
  min-height: 62px;
  border-radius: 14px;
  font-size: 16px;
  box-shadow: 0 12px 22px rgba(17, 17, 17, 0.14);
}

.quiz-helper-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 0;
  padding: 12px 15px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf5, #f7f7f7);
  border: 1px solid rgba(179, 118, 70, 0.15);
}

.quiz-helper-mascot {
  width: 62px;
  min-height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin: -5px 0 -6px -3px;
}

.quiz-helper-bear {
  width: 62px;
  height: 64px;
  display: block;
  overflow: visible;
}

.quiz-helper-wall {
  fill: #ead9c7;
  stroke: rgba(17, 17, 17, 0.12);
  stroke-width: 1.6;
}

.quiz-helper-wall-mark {
  fill: none;
  stroke: rgba(155, 103, 63, 0.28);
  stroke-width: 2;
  stroke-linecap: round;
}

.quiz-helper-shadow {
  fill: rgba(17, 17, 17, 0.12);
}

.leaning-bear {
  transform-box: fill-box;
  transform-origin: 58px 72px;
  transform: rotate(-6deg);
}

.helper-wall-paw {
  transform-box: fill-box;
  transform-origin: center;
  transform: translate(0, 0);
}

.quiz-helper-motion {
  fill: none;
  stroke: rgba(255, 122, 24, 0.58);
  stroke-width: 3;
  stroke-linecap: round;
  animation: helper-motion-float 2.4s ease-in-out infinite;
}

.quiz-helper-motion.motion-b {
  animation-delay: 0.3s;
}

.quiz-helper-card strong {
  display: block;
  margin-bottom: 5px;
  color: #ff7a18;
  font-size: 12px;
  font-weight: 950;
}

.quiz-helper-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.english-answer-card > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.meaning {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 800;
}

.explain {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
  font-weight: 650;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.actions.quiz-result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.actions.quiz-result-actions button {
  width: 100%;
  min-width: 0;
  padding: 0 8px;
}

.primary,
.secondary,
.danger,
.ghost {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 900;
}

.primary {
  background: var(--ink);
  color: #fff;
}

.secondary {
  background: #111;
  color: #fff;
}

.danger {
  background: #444;
  color: #fff;
}

.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 16px;
  min-height: 46px;
  padding: 12px;
  color: var(--ink);
  outline: none;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

textarea {
  resize: vertical;
  min-height: 92px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(17, 17, 17, 0.42);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.06);
}

.schedule-modal select:focus,
.schedule-modal select:focus-visible,
.schedule-modal .field:focus-within select,
.schedule-modal select.select-focused {
  border-color: rgba(17, 17, 17, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.14);
}

.schedule-modal {
  max-height: min(88vh, 760px);
  overflow: auto;
}

.schedule-two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.schedule-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 3px 2px 6px;
  scrollbar-width: none;
}

.schedule-color-row::-webkit-scrollbar {
  display: none;
}

.schedule-color {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.16);
}

.schedule-color.active {
  box-shadow: 0 0 0 3px #111;
}

.danger-lite {
  background: #f2f2f2;
  color: #111;
}

.complete-todo-button {
  background: #ff7a18;
  color: #fff;
  border: 1px solid rgba(223, 93, 0, 0.42);
  box-shadow: 0 8px 16px rgba(255, 122, 24, 0.18);
}

.completed-todo-list {
  display: grid;
  gap: 8px;
}

.completed-todo-more,
.completed-todo-clear {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 950;
}

.completed-todo-more {
  background: #111;
  color: #fff;
}

.completed-todo-clear {
  margin-top: 0;
  margin-bottom: 12px;
  background: #ff7a18;
  color: #fff;
  border: 1px solid rgba(223, 93, 0, 0.42);
}

.completed-todo-modal .completed-todo-list {
  max-height: 46vh;
  overflow: auto;
  padding-right: 2px;
}

.completed-todo-row {
  min-height: 52px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  background: #fff8f0;
}

.completed-todo-row span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.completed-todo-row strong,
.completed-todo-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.completed-todo-row strong {
  font-size: 14px;
  font-weight: 950;
}

.completed-todo-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.quiz-box {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.answer-card {
  margin-top: 14px;
  padding: 14px;
  background: var(--soft);
  border-radius: 8px;
}

.admin-tab-button {
  width: 100%;
  min-height: 76px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.admin-tab-button + .admin-tab-button {
  border-top: 1px solid var(--line);
}

.admin-tab-button span {
  display: grid;
  gap: 6px;
}

.admin-tab-button strong {
  font-size: 17px;
  font-weight: 950;
}

.admin-tab-button em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.admin-tab-button b {
  font-size: 28px;
  line-height: 1;
}

.admin-page-tools {
  display: flex;
  justify-content: flex-end;
  margin: 0 2px 8px;
}

.admin-page-tools .admin-back-button {
  margin-top: 0;
}

.admin-back-button {
  min-height: 34px;
  margin-top: 2px;
  padding: 0 12px;
  font-size: 12px;
}

.admin-push-message-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-push-message-field {
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.admin-push-message-field label {
  color: #ff7a18;
  font-weight: 950;
}

.admin-thinking-list {
  display: grid;
  gap: 10px;
}

.admin-thinking-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.admin-thinking-row:last-child {
  border-bottom: 0;
}

.admin-thinking-row span {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 8px;
}

.admin-thinking-row strong {
  color: #ff7a18;
  font-size: 13px;
  font-weight: 950;
}

.admin-thinking-row em {
  color: var(--ink);
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.45;
}

.admin-sentence-list {
  display: grid;
  gap: 10px;
}

.admin-sentence-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.admin-sentence-row span {
  display: grid;
  gap: 5px;
}

.admin-sentence-row:last-child {
  border-bottom: 0;
}

.admin-sentence-row strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.admin-sentence-row em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.admin-sentence-row i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-member-search {
  margin-top: 12px;
}

.admin-member-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 8px;
  align-items: end;
}

.admin-member-filters .field {
  margin-top: 12px;
}

.admin-member-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-member-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.admin-member-row:last-child {
  border-bottom: 0;
}

.admin-member-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 159, 26, 0.12);
  color: #ff7a18;
  font-size: 13px;
  font-weight: 950;
}

.admin-member-main,
.admin-member-stats {
  display: grid;
  gap: 4px;
}

.admin-member-main {
  min-width: 0;
}

.admin-member-main strong,
.admin-member-stats strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.admin-member-main em,
.admin-member-main small,
.admin-member-stats em,
.admin-member-stats small {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.admin-member-main em {
  overflow-wrap: anywhere;
}

.admin-member-main i {
  width: fit-content;
  margin-top: 2px;
}

.admin-marketing-pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.admin-marketing-pill.yes {
  background: rgba(255, 122, 24, 0.12);
  color: #ff7a18;
}

.admin-marketing-pill.no {
  background: rgba(17, 17, 17, 0.06);
  color: #666;
}

.admin-marketing-pill.unknown {
  background: #f1f1f1;
  color: #999;
}

.admin-member-stats {
  justify-items: end;
  text-align: right;
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  min-height: 104px;
  padding: 14px;
}

.stat-num {
  font-size: 34px;
  font-weight: 950;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-top: 4px;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.history-row {
  display: grid;
  grid-template-columns: 86px repeat(3, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-state {
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
}

.mini-state.done {
  color: #fff;
  background: var(--black);
  border-color: var(--black);
}

.mini-state.soft-done {
  color: var(--ink);
  background: var(--soft);
  border-color: var(--ink);
}

.friend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.friend-row span {
  display: grid;
  gap: 4px;
}

.friend-row strong {
  font-size: 16px;
}

.friend-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.friend-row.pending strong {
  color: var(--muted);
}

.friend-share-tools {
  display: grid;
  grid-template-columns: 104px auto;
  gap: 6px;
  align-items: end;
  justify-items: end;
}

.friend-share-tools label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.friend-share-tools select {
  min-width: 104px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.empty {
  min-height: 90px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  line-height: 1.4;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  align-items: end;
}

.modal-card {
  width: min(100%, 480px);
  margin: 0 auto;
  border-radius: 18px 18px 0 0;
  padding: 20px;
  max-height: 86vh;
  overflow: auto;
}

.modal-card h2 {
  font-size: 24px;
}

.usage-guide-modal {
  padding-top: 22px;
}

.guide-motion {
  min-height: 118px;
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(255, 159, 26, 0.08);
  overflow: hidden;
}

.guide-card {
  width: min(72%, 270px);
  min-height: 42px;
  display: grid;
  place-items: center;
  position: absolute;
  left: 50%;
  translate: -50% 0;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.guide-card-a {
  top: 18px;
  z-index: 2;
  animation: guide-card-drag 1.7s ease-in-out infinite;
}

.guide-card-b {
  top: 66px;
  color: var(--muted);
}

.guide-hand {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 42px;
  top: 22px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 950;
  animation: guide-hand-drag 1.7s ease-in-out infinite;
}

.guide-body {
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.usage-guide-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.usage-guide-row {
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  background: #fff;
}

.usage-guide-row strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.usage-guide-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.picker-head {
  min-height: 104px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  margin: -4px -4px 16px;
  padding: 20px 16px;
  border-radius: 16px;
  background: rgba(255, 159, 26, 0.1);
}

.picker-head img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.picker-head h2 {
  font-family: "Arial Rounded MT Bold", "NanumSquareRound", "Jua", "BM Hanna 11yrs Old", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 3px 0 #eeeeee;
  transform: rotate(-1deg);
}

.mission-picker-list {
  display: grid;
  gap: 0;
}

.mission-choice {
  min-height: 86px;
  display: grid;
  grid-template-columns: 52px 1fr 34px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  text-align: left;
}

.mission-choice:last-child {
  border-bottom: 0;
}

.mission-next {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.mission-next img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.mission-choice h3 {
  font-family: "Arial Rounded MT Bold", "NanumSquareRound", "Jua", "BM Hanna 11yrs Old", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: 0;
}

.mission-choice p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  z-index: 60;
  width: min(calc(100% - 36px), 420px);
  padding: 14px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 18px;
  font-weight: 850;
  box-shadow: var(--shadow);
}

@media (max-width: 420px) {
  .mission-order-row {
    grid-template-columns: 44px 1fr;
    align-items: start;
  }

  .mission-order-tools {
    grid-column: 2;
    justify-content: space-between;
  }

  .mission-reminder-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .mission-card {
    grid-template-columns: 48px 1fr auto;
    padding: 13px;
  }

  .sentence {
    font-size: 25px;
  }

  .history-row {
    grid-template-columns: 74px repeat(3, 1fr);
  }
}

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