:root {
  --bg: #f6f1e8;
  --ink: #2f3a2e;
  --accent: #c56b4a;
  --card: #fffaf3;
  --line: #d9cfc0;
  --ok: #eef5ea;
  --danger: #f8e8e4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background:
    radial-gradient(circle at top left, #efe4d4 0%, transparent 45%),
    linear-gradient(180deg, #f8f3eb 0%, var(--bg) 100%);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.site-footer,
main,
.flash-wrap {
  width: min(720px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding: 1.5rem 0 0.75rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.brand {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.tagline {
  margin: 0.3rem 0 0;
  color: #6b7468;
  font-size: 0.9rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-user {
  font-size: 0.9rem;
  color: #5f685c;
}

.inline-form {
  display: inline;
  margin: 0;
}

.card,
.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem 1.4rem;
  margin: 1rem 0 2rem;
}

.hero h1,
.card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.25;
}

.lead {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
}

.muted {
  color: #6b7468;
}

.status {
  margin: 0 0 1.2rem;
  padding: 0.75rem 1rem;
  background: var(--ok);
  border-radius: 0.75rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.menu-item {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  font-weight: 600;
  text-align: center;
}

.menu-item:hover {
  border-color: var(--accent);
}

.upcoming {
  margin: 0;
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  background: #fff;
}

.btn-danger {
  background: #b33b2b;
  color: #fff;
}

.danger-status {
  background: #f8e8e4 !important;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.88rem;
}

.btn-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.form-stack {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.form-stack label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-stack input,
.form-stack select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}

.form-error,
.form-error ul {
  margin: 0;
  color: #a94432;
  font-size: 0.9rem;
  font-weight: 500;
  list-style: none;
  padding: 0;
}

.auth-card {
  max-width: 480px;
}

.row-between {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.row-between h1 {
  margin: 0;
}

.member-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.member-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eef5ea;
  font-size: 0.8rem;
  font-weight: 600;
}

.profile-list {
  margin: 1rem 0 0;
}

.profile-list > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-list dt {
  margin: 0;
  color: #6b7468;
  font-weight: 600;
}

.profile-list dd {
  margin: 0;
}

.flash-wrap {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.flash {
  padding: 0.7rem 0.95rem;
  border-radius: 0.75rem;
  background: var(--ok);
  border: 1px solid #d5e4cf;
}

.flash-error {
  background: var(--danger);
  border-color: #efcfc6;
}

.flash-info {
  background: #eef2f7;
  border-color: #d5dde8;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: #6b7468;
  font-size: 0.9rem;
}

.lan-access-hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
}

.lan-access-hint a {
  word-break: break-all;
}
  padding: 0 0 2.5rem;
  color: #7a8176;
  font-size: 0.9rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1rem 0 1.25rem;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.8rem 0.5rem;
  text-align: center;
  display: grid;
  gap: 0.2rem;
}

.stat strong {
  font-size: 1.35rem;
}

.stat span {
  font-size: 0.8rem;
  color: #6b7468;
}

.section-title {
  margin: 0.5rem 0 0.6rem;
  font-size: 1.1rem;
}

.word-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.word-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.2rem;
}

.word-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
}

.word-photo {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
  margin: 0.5rem 0 1rem;
}

.quiz-word {
  text-align: center;
  padding: 1.2rem 0.5rem;
  margin: 0.5rem 0 0.5rem;
  background: var(--ok);
  border-radius: 1rem;
}

.quiz-prompt {
  margin: 0;
  color: #6b7468;
}

.quiz-term {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 750;
  letter-spacing: 0.02em;
}

.small {
  font-size: 0.85rem;
}

.steps {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.pronounce-box {
  margin: 0.8rem 0 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
}

.pronounce-ipa {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.7rem;
}

.ipa,
.ipa-inline {
  font-family: "Segoe UI", "Noto Sans", serif;
  color: #3d5a80;
  font-weight: 650;
}

.ipa {
  font-size: 1.25rem;
}

.ipa-inline {
  font-size: 0.95rem;
}

.pos-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #e8eef5;
  color: #3d5a80;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pos-badge-lg {
  font-size: 0.95rem;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.word-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: baseline;
  line-height: 1.45;
}

.word-head {
  font-weight: 800;
  font-size: 1.05em;
}

.pos-text {
  color: #3d5a80;
  font-weight: 700;
}

.meaning-item {
  color: #4a5248;
}

.word-link {
  display: block;
  flex: 1;
  min-width: 200px;
}

.word-detail-title {
  font-size: clamp(1.35rem, 3.5vw, 1.8rem);
  font-weight: 500;
}

.word-detail-title .word-head {
  font-size: 1.35em;
}

.pronounce-actions {
  margin: 0;
}

.word-list-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.pronounce-inline {
  display: flex;
  gap: 0.35rem;
}

.quiz-listen {
  margin-top: 1.1rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 0.8rem;
  background: #fff;
}

.quiz-listen summary {
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.listening-prompt {
  background: linear-gradient(160deg, #eef5f0 0%, #e7eef8 100%);
}

.listening-number {
  letter-spacing: 0.04em;
}

.listening-play-box {
  text-align: center;
  margin: 0.75rem 0 1.1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.listening-replay {
  min-width: 10rem;
  font-size: 1.05rem;
}

.menu-item-accent {
  border-color: #7ea48a;
  background: #f3faf5;
  font-weight: 700;
}

.is-error {
  color: #b42318;
  font-weight: 650;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #5c6558;
  font-weight: 700;
  font-size: 0.85rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.badge-pass {
  background: #e5f6ea;
  color: #1f7a3f;
}

.badge-fail {
  background: #fdecea;
  color: #b42318;
}

.badge-warn {
  background: #fff6e5;
  color: #9a6700;
}

.exam-pass-banner {
  margin: 0.8rem 0 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
}

.exam-pass-banner.is-pass {
  background: #eefaf1;
  border-color: #b7dfc3;
}

.exam-pass-banner.is-fail {
  background: #fff1f0;
  border-color: #f0c2c0;
}

.exam-pass-banner.is-warn {
  background: #fff9ee;
  border-color: #edd9a8;
}

.pet-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.pet-photo {
  width: 96px;
  height: 96px;
  border-radius: 1.1rem;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.pet-photo-placeholder {
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: #fff;
}

.walk-status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.8rem 0 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
}

.walk-status-ok {
  background: #eefaf1;
  border-color: #b7dfc3;
}

.walk-status-warn {
  background: #fff9ee;
  border-color: #edd9a8;
}

.walk-status-danger {
  background: #fff1f0;
  border-color: #f0c2c0;
}

.status-danger {
  background: var(--danger);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 1rem;
}

.chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
}

.chip.is-active {
  background: #2f3a2e;
  color: #fff;
  border-color: #2f3a2e;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.album-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fff;
}

.album-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eee;
}

.album-card-body {
  padding: 0.55rem 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.album-detail-photo {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: #111;
  margin: 0.75rem 0 1rem;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.check-row input[type="checkbox"] {
  width: auto;
}

.hidden {
  display: none !important;
}

.progress-panel {
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #efe7db;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #c56b4a, #d9855f);
  transition: width 0.25s ease;
}

.progress-log {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  max-height: 160px;
  overflow: auto;
}

.progress-log li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0e7db;
  font-size: 0.88rem;
}

.progress-log li.is-error {
  color: #a94432;
}

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.review-list li {
  display: block;
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.review-row-main {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.review-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.word-edit-panel {
  margin-top: 0.7rem;
  padding: 0.75rem;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.word-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.7rem;
}

.word-edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.word-edit-grid input {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.word-edit-meaning {
  grid-column: 1 / -1;
}

.meaning-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.7rem;
}

.meaning-triple label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.meaning-triple input {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

@media (max-width: 700px) {
  .meaning-triple {
    grid-template-columns: 1fr;
  }
}

.word-edit-actions {
  margin-top: 0.65rem;
}

.js-edit-status.is-error {
  color: #a94432;
}

@media (max-width: 700px) {
  .word-edit-grid {
    grid-template-columns: 1fr;
  }
}

.review-list li.is-warn {
  background: #fff7f2;
  border-radius: 0.6rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.review-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  flex: 1;
  font-weight: 500;
}

.review-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: baseline;
}

.word-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

@media (max-width: 560px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-top {
    flex-direction: column;
  }

  .profile-list > div {
    grid-template-columns: 1fr;
  }
}

/* —— Home: top-down family landing —— */
body.home-page {
  --home-forest: #1e2a22;
  --home-moss: #3d5244;
  --home-sun: #e8c27a;
  --home-cream: #f7f0e6;
}

body.home-page .site-header,
body.home-page .site-footer,
body.home-page .flash-wrap {
  width: min(960px, 92vw);
}

body.home-page main {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.home-page .site-header {
  position: relative;
  z-index: 2;
}

.home-hero {
  position: relative;
  min-height: min(78vh, 640px);
  margin: 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  background-color: var(--home-forest);
  background-image: var(--home-hero-image);
  background-size: cover;
  background-position: center 40%;
  color: #f8f4ec;
  overflow: hidden;
  animation: home-hero-in 0.9s ease-out both;
}

.home-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 28, 22, 0.15) 0%, rgba(18, 28, 22, 0.55) 45%, rgba(18, 28, 22, 0.88) 100%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.home-brand {
  margin: 0 0 0.65rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  animation: home-rise 0.7s ease-out 0.15s both;
}

.home-headline {
  margin: 0 0 0.75rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--home-sun);
  animation: home-rise 0.7s ease-out 0.28s both;
}

.home-sub {
  margin: 0 0 1.4rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(248, 244, 236, 0.9);
  animation: home-rise 0.7s ease-out 0.4s both;
}

.home-hero-cta {
  animation: home-rise 0.7s ease-out 0.52s both;
}

.home-hero-cta .btn-primary {
  background: #f3e6d0;
  color: var(--home-forest);
  border-color: transparent;
}

.home-hero-cta .btn-primary:hover {
  background: #fff6e8;
}

.home-hero-dock {
  position: relative;
  z-index: 1;
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 0 0 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 0.85rem;
  animation: home-rise 0.7s ease-out 0.62s both;
}

.home-dock-card {
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.05rem;
  background: rgba(248, 244, 236, 0.12);
  border: 1px solid rgba(248, 244, 236, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(12, 18, 14, 0.22);
}

.home-dock-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 244, 236, 0.72);
}

.home-dock-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.home-dock-head .home-dock-kicker {
  margin: 0;
}

.home-dock-link {
  font-size: 0.82rem;
  color: var(--home-sun);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.home-dock-link:hover {
  border-bottom-color: rgba(232, 194, 122, 0.55);
}

.home-weather-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.home-weather-emoji {
  font-size: 2rem;
  line-height: 1;
}

.home-weather-place {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8f4ec;
}

.home-weather-condition {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: rgba(248, 244, 236, 0.82);
}

.home-weather-temp {
  margin: 0 0 0 auto;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--home-sun);
}

.home-weather-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin: 0 0 0.55rem;
}

.home-weather-meta div {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.home-weather-meta dt {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(248, 244, 236, 0.62);
}

.home-weather-meta dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f8f4ec;
}

.home-weather-tip {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(248, 244, 236, 0.88);
}

.home-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 9.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(248, 244, 236, 0.35) transparent;
}

.home-schedule-item + .home-schedule-item {
  margin-top: 0.35rem;
}

.home-schedule-item a {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: inherit;
  background: rgba(18, 28, 22, 0.22);
  transition: background 0.15s ease;
}

.home-schedule-item a:hover {
  background: rgba(18, 28, 22, 0.34);
}

.home-schedule-time {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--home-sun);
  line-height: 1.35;
}

.home-schedule-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.home-schedule-body strong {
  font-size: 0.86rem;
  font-weight: 600;
  color: #f8f4ec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-schedule-body span {
  font-size: 0.76rem;
  color: rgba(248, 244, 236, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-schedule-done .home-schedule-body strong {
  opacity: 0.72;
  text-decoration: line-through;
}

.home-schedule-empty {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(248, 244, 236, 0.82);
}

.home-schedule-empty a {
  color: var(--home-sun);
}

.home-section {
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 2.4rem 0 0.5rem;
}

.home-section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7468;
}

.home-section-kicker a {
  color: inherit;
  border-bottom: 1px solid transparent;
}

.home-section-kicker a:hover {
  border-bottom-color: currentColor;
}

.home-section-title {
  margin: 0 0 0.4rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--home-forest);
}

.home-section-lead {
  margin: 0 0 1.4rem;
  color: #5f685c;
  max-width: 32rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1rem;
}

@media (min-width: 720px) {
  .pillar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.35rem 1.1rem 1.25rem;
  border-bottom: 2px solid var(--home-moss);
  background: transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.pillar:hover {
  transform: translateY(-3px);
  background: rgba(61, 82, 68, 0.06);
  border-color: var(--home-forest);
}

.pillar-name {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--home-forest);
}

.pillar-desc {
  font-size: 0.92rem;
  color: #6b7468;
}

.home-today {
  padding-top: 1.8rem;
}

.today-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.today-item {
  border-bottom: 1px solid var(--line);
}

.today-item a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 0.15rem;
  transition: background 0.2s ease;
}

.today-item a:hover {
  background: rgba(61, 82, 68, 0.05);
}

.today-item strong {
  font-size: 1.02rem;
}

.today-item span {
  font-size: 0.9rem;
  color: #6b7468;
}

.today-item.today-warn strong {
  color: #8a5a2b;
}

.today-item.today-danger strong {
  color: #8b3a2f;
}

.today-item.today-ok strong {
  color: var(--home-moss);
}

.home-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  padding: 2rem 0 2.5rem;
  font-size: 0.92rem;
  color: #6b7468;
}

.home-foot-links a:hover {
  color: var(--home-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Hub subpages: professional directory —— */
body.hub-page {
  --home-forest: #1e2a22;
  --home-moss: #3d5244;
  --hub-panel: rgba(255, 250, 243, 0.72);
  --hub-border: rgba(47, 58, 46, 0.12);
}

body.hub-page main {
  width: min(960px, 92vw);
}

.hub-shell {
  padding: 0.4rem 0 2.8rem;
}

.hub-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #6b7468;
}

.hub-crumb a:hover {
  color: var(--home-forest, #1e2a22);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hub-crumb-sep {
  opacity: 0.55;
}

.hub-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hub-border, var(--line));
}

.hub-header-mark {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid var(--hub-border, var(--line));
  background: var(--hub-panel, var(--card));
  color: var(--home-moss, #3d5244);
}

.hub-header-mark .hub-icon {
  width: 1.55rem;
  height: 1.55rem;
}

.hub-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7468;
}

.hub-title {
  margin: 0 0 0.45rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--home-forest, #1e2a22);
}

.hub-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #5f685c;
}

.hub-group + .hub-group {
  margin-top: 1.85rem;
}

.hub-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.hub-group-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-forest, #1e2a22);
}

.hub-group-desc {
  margin: 0;
  font-size: 0.85rem;
  color: #7a8376;
}

.hub-tiles {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .hub-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hub-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.1rem 1.05rem;
  border: 1px solid var(--hub-border, var(--line));
  background: var(--hub-panel, var(--card));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hub-tile:hover {
  border-color: rgba(30, 42, 34, 0.35);
  background: #fffdf8;
  transform: translateY(-2px);
}

.hub-tile > .hub-icon {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.18rem;
  color: var(--home-moss, #3d5244);
}

.hub-tile-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.hub-tile-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--home-forest, #1e2a22);
  letter-spacing: -0.01em;
}

.hub-tile-desc {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #6b7468;
}

.hub-tile-meta {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a9286;
}

.hub-tile-arrow {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  font-size: 1.05rem;
  color: #8a9286;
  transition: transform 0.2s ease, color 0.2s ease;
}

.hub-tile:hover .hub-tile-arrow {
  color: var(--home-forest, #1e2a22);
  transform: translateX(3px);
}

.hub-icon {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
}

.hub-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hub-tile,
  .hub-tile-arrow {
    transition: none;
  }

  .hub-tile:hover {
    transform: none;
  }
}

.todo-checklist li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.todo-checklist li.is-done .todo-text {
  text-decoration: line-through;
  color: #8a9286;
}

.todo-toggle-form {
  margin: 0;
}

.todo-check {
  border: none;
  background: transparent;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.todo-cat {
  font-size: 0.75rem;
  color: #6b7468;
  min-width: 2.5rem;
}

.todo-text {
  flex: 1 1 auto;
  min-width: 8rem;
}

.todo-page .todo-shell {
  max-width: 42rem;
  margin: 0 auto;
}

.todo-progress-wrap {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #f3f7ef, #fffdf8);
  border: 1px solid var(--line);
}

.todo-progress-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.todo-progress-head strong {
  font-size: 1.15rem;
  color: var(--home-moss, #3d5244);
}

.todo-done-badge {
  margin-left: auto;
  font-size: 0.85rem;
}

.todo-progress-bar {
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(61, 82, 68, 0.12);
  overflow: hidden;
}

.todo-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5a7a62, #3d5244);
  transition: width 0.35s ease;
}

.todo-progress-sub {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
}

.todo-theme-form input[type="text"],
.todo-theme-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.todo-checklist-done {
  opacity: 0.85;
}

.summer-weeks {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.summer-week {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
}

.summer-week.is-current {
  border-color: var(--home-moss, #3d5244);
  background: #fffdf8;
}

.summer-week h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.summer-week ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

@keyframes home-hero-in {
  from {
    opacity: 0.65;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero,
  .home-brand,
  .home-headline,
  .home-sub,
  .home-hero-cta,
  .home-hero-dock,
  .pillar {
    animation: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  .home-hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-dock {
    grid-template-columns: 1fr;
    padding-bottom: 1.25rem;
  }

  .home-schedule-list {
    max-height: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— 요일별 하루 계획표 —— */
.day-plan-page {
  --day-hero-from: #e8f0e4;
  --day-hero-to: #f7f3ea;
  --day-accent: #3d5244;
}

.day-plan-page.wd-mon { --day-hero-from: #dce8f5; --day-hero-to: #eef4fb; --day-accent: #3a5a7a; }
.day-plan-page.wd-tue { --day-hero-from: #e4ecf8; --day-hero-to: #f0f4fc; --day-accent: #4a5f8c; }
.day-plan-page.wd-wed { --day-hero-from: #fff3d6; --day-hero-to: #fff9ed; --day-accent: #9a6b2e; }
.day-plan-page.wd-thu { --day-hero-from: #e5f2e8; --day-hero-to: #f3faf4; --day-accent: #3f6b52; }
.day-plan-page.wd-fri { --day-hero-from: #fde8f0; --day-hero-to: #fff5f8; --day-accent: #8c4a62; }
.day-plan-page.wd-sat { --day-hero-from: #ebe4ff; --day-hero-to: #f7f3ff; --day-accent: #5c4a8c; }
.day-plan-page.wd-sun { --day-hero-from: #f5ebe3; --day-hero-to: #fdf8f4; --day-accent: #7a5a48; }

.day-plan-shell {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
}

.day-plan-hero {
  text-align: center;
  padding: 1.75rem 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, var(--day-hero-from), var(--day-hero-to));
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 28px rgba(45, 55, 45, 0.08);
}

.day-plan-emoji {
  font-size: 2.2rem;
  margin: 0 0 0.35rem;
  line-height: 1;
}

.day-plan-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7468;
}

.day-plan-title {
  margin: 0.25rem 0 0.15rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  color: var(--day-accent);
}

.day-plan-date {
  margin: 0;
  color: #5a6358;
}

.day-plan-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.day-plan-stat strong {
  color: var(--day-accent);
}

.day-plan-date-pick {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.day-plan-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.65rem;
  border-left: 2px solid rgba(61, 82, 68, 0.15);
}

.day-plan-slot {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.65rem 0.85rem;
  padding: 0 0 1.1rem 0.85rem;
}

.day-plan-slot::before {
  content: "";
  position: absolute;
  left: -0.72rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--slot-dot, var(--day-accent));
  box-shadow: 0 0 0 3px var(--card, #fff);
}

.day-plan-slot-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: #5a6358;
  line-height: 1.35;
  padding-top: 0.15rem;
}

.day-plan-slot-body {
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.day-plan-slot.is-done .day-plan-slot-body {
  opacity: 0.72;
}

.day-plan-slot.is-done .day-plan-input {
  text-decoration: line-through;
}

.day-plan-slot-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.day-plan-slot-hint {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: #6b7468;
}

.day-plan-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px dashed rgba(61, 82, 68, 0.25);
  border-radius: 0.55rem;
  background: #fffdf8;
  font: inherit;
}

.day-plan-input:focus {
  outline: 2px solid rgba(61, 82, 68, 0.25);
  border-color: var(--day-accent);
}

.day-plan-done {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: #5a6358;
  cursor: pointer;
}

.day-plan-actions {
  margin-top: 0.5rem;
  text-align: center;
}

.day-plan-arc {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

.day-plan-textarea {
  resize: vertical;
  min-height: 2.75rem;
  font: inherit;
  line-height: 1.45;
}

.day-plan-slot.is-sleep .day-plan-slot-body {
  background: linear-gradient(135deg, #f3f0fa, #ebe6f5);
  border-color: rgba(122, 106, 154, 0.25);
}

.day-plan-slot.is-sleep .day-plan-slot-title {
  color: #5a4a72;
}

.day-plan-slot.is-child-plan .day-plan-slot-body {
  border-color: rgba(61, 82, 68, 0.2);
}

.day-plan-title-input {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.day-plan-edit-times {
  margin-bottom: 0.5rem;
}

.day-plan-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  line-height: 1.6;
}

.day-plan-add-extra {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
}

.day-plan-extra-form textarea,
.day-plan-extra-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
}

.day-plan-extra-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.day-plan-extra-del {
  display: inline-block;
  margin-top: 0.35rem;
  margin-right: 0.5rem;
}

.day-plan-extra-actions {
  margin-top: 0.45rem;
}

.day-plan-nav {
  margin-top: 1.25rem;
  justify-content: center;
}

.accent-dawn { --slot-dot: #c4a882; }
.accent-sleep { --slot-dot: #7a6a9a; }
.accent-morning { --slot-dot: #d4a574; }
.accent-study { --slot-dot: #5a7a9a; }
.accent-lunch { --slot-dot: #c9956a; }
.accent-afternoon { --slot-dot: #6a9a7a; }
.accent-evening { --slot-dot: #8a6a9a; }
.accent-rest { --slot-dot: #9aaa8a; }
.accent-family { --slot-dot: #c47a8a; }

/* —— 부모 시간표 편집 —— */
.timetable-weekdays {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.timetable-day {
  overflow: hidden;
}

.timetable-day-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.timetable-day-head h2 {
  margin: 0;
  flex: 1;
  font-size: 1.1rem;
}

.timetable-day-emoji {
  font-size: 1.35rem;
}

.timetable-slot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timetable-slot-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.35rem 0.65rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.timetable-slot-hint {
  grid-column: 2 / -1;
  font-size: 0.8rem;
  color: #6b7468;
}

.timetable-slot-actions {
  display: flex;
  gap: 0.25rem;
}

.timetable-add {
  margin-top: 0.65rem;
}

.timetable-add summary {
  cursor: pointer;
  color: var(--home-moss, #3d5244);
  font-weight: 600;
  font-size: 0.9rem;
}

.timetable-slot-form input,
.timetable-slot-form select {
  max-width: 100%;
}

.timetable-edit-panel {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px dashed var(--line);
  border-radius: 0.65rem;
  background: #fffdf8;
}

@media (max-width: 520px) {
  .day-plan-slot {
    grid-template-columns: 1fr;
    padding-left: 0.65rem;
  }

  .timetable-slot-row {
    grid-template-columns: 1fr;
  }

  .timetable-slot-actions {
    grid-column: 1;
  }
}

/* —— 하루 계획표: 완성 미리보기 —— */
.day-plan-layout {
  display: block;
  max-width: 72rem;
  margin: 0 auto;
}

.day-plan-showcase-panel {
  display: none;
}

.day-plan-showcase-btn {
  margin-top: 0.75rem;
}

.showcase-inner {
  --show-from: var(--day-hero-from, #e8f0e4);
  --show-to: var(--day-hero-to, #f7f3ea);
  --show-accent: var(--day-accent, #3d5244);
}

.showcase-inner.wd-mon { --show-from: #dce8f5; --show-to: #eef4fb; --show-accent: #3a5a7a; }
.showcase-inner.wd-tue { --show-from: #e4ecf8; --show-to: #f0f4fc; --show-accent: #4a5f8c; }
.showcase-inner.wd-wed { --show-from: #fff3d6; --show-to: #fff9ed; --show-accent: #9a6b2e; }
.showcase-inner.wd-thu { --show-from: #e5f2e8; --show-to: #f3faf4; --show-accent: #3f6b52; }
.showcase-inner.wd-fri { --show-from: #fde8f0; --show-to: #fff5f8; --show-accent: #8c4a62; }
.showcase-inner.wd-sat { --show-from: #ebe4ff; --show-to: #f7f3ff; --show-accent: #5c4a8c; }
.showcase-inner.wd-sun { --show-from: #f5ebe3; --show-to: #fdf8f4; --show-accent: #7a5a48; }

.showcase-hero {
  text-align: center;
  padding: 1.5rem 1rem 1.25rem;
  background: linear-gradient(155deg, var(--show-from), var(--show-to));
  border-radius: 1.1rem 1.1rem 0 0;
}

.showcase-emoji {
  font-size: 2.5rem;
  margin: 0;
  line-height: 1;
  animation: showcase-pop 0.55s ease-out;
}

.showcase-eyebrow {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7468;
}

.showcase-name {
  margin: 0.2rem 0 0;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  color: var(--show-accent);
}

.showcase-date {
  margin: 0.15rem 0 0;
  color: #5a6358;
  font-size: 0.95rem;
}

.showcase-progress {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: #5a6358;
}

.showcase-progress-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--show-accent);
  background: conic-gradient(var(--show-accent) calc(var(--pct) * 1%), rgba(255,255,255,0.85) 0);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.9);
  vertical-align: middle;
}

.showcase-timeline {
  list-style: none;
  margin: 0;
  padding: 1rem 1rem 0.5rem 1.35rem;
  border-left: 3px solid rgba(61, 82, 68, 0.12);
  margin-left: 1.25rem;
}

.showcase-item {
  position: relative;
  margin-bottom: 0.85rem;
  padding-left: 0.85rem;
  animation: showcase-rise 0.45s ease-out both;
}

.showcase-item:nth-child(1) { animation-delay: 0.04s; }
.showcase-item:nth-child(2) { animation-delay: 0.08s; }
.showcase-item:nth-child(3) { animation-delay: 0.12s; }
.showcase-item:nth-child(4) { animation-delay: 0.16s; }
.showcase-item:nth-child(5) { animation-delay: 0.2s; }
.showcase-item:nth-child(n+6) { animation-delay: 0.24s; }

.showcase-item::before {
  content: "";
  position: absolute;
  left: -1.48rem;
  top: 0.55rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--show-accent);
  box-shadow: 0 0 0 4px #fff;
}

.showcase-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--show-accent);
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.showcase-card {
  position: relative;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 16px rgba(45, 55, 45, 0.07);
}

.showcase-item.is-done .showcase-card {
  opacity: 0.65;
}

.showcase-item.is-done .showcase-title {
  text-decoration: line-through;
}

.showcase-check {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  font-size: 0.85rem;
  color: var(--show-accent);
  font-weight: 700;
}

.showcase-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  padding-right: 1.25rem;
}

.showcase-memo {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #6b7468;
  line-height: 1.45;
}

.showcase-footer {
  text-align: center;
  padding: 0.85rem 1rem 1.1rem;
  font-size: 0.78rem;
  color: #8a9286;
  letter-spacing: 0.04em;
}

.showcase-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.showcase-panel-label {
  margin: 0;
  font-weight: 600;
  color: var(--day-accent, #3d5244);
}

.day-plan-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.day-plan-overlay[hidden] {
  display: none !important;
}

.day-plan-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 42, 35, 0.55);
  backdrop-filter: blur(4px);
}

.day-plan-overlay-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: 100vh;
  overflow-y: auto;
  margin: 0 auto;
  background: #fffdf8;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: showcase-sheet-in 0.35s ease-out;
}

.day-plan-overlay-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.day-plan-overlay-actions {
  padding: 0 1rem 1.25rem;
  text-align: center;
}

body.day-plan-overlay-open {
  overflow: hidden;
}

@keyframes showcase-pop {
  from { transform: scale(0.85); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes showcase-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes showcase-sheet-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 960px) {
  .day-plan-page.has-showcase .day-plan-layout {
    display: grid;
    grid-template-columns: 1fr min(22rem, 38vw);
    gap: 1.25rem;
    align-items: start;
    padding: 0 1rem 2rem;
  }

  .day-plan-edit .day-plan-shell {
    max-width: none;
    padding-right: 0;
  }

  .day-plan-showcase-panel {
    display: block;
    position: sticky;
    top: 1rem;
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 40px rgba(45, 55, 45, 0.12);
    background: #fff;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
  }

  .day-plan-showcase-panel.is-highlight {
    box-shadow: 0 16px 48px rgba(61, 82, 68, 0.22);
    transform: scale(1.02);
  }

  .day-plan-showcase-panel .showcase-inner {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .day-plan-showcase-panel .showcase-panel-head {
    padding: 0.75rem 0.85rem 0;
  }

  .day-plan-hero .day-plan-showcase-btn {
    display: none;
  }

  .day-plan-overlay-sheet {
    width: min(92vw, 32rem);
    max-height: 92vh;
    margin: auto;
    border-radius: 1.25rem;
  }
}

@media (max-width: 959px) {
  .day-plan-showcase-panel {
    display: none !important;
  }

  .day-plan-overlay-sheet {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-emoji,
  .showcase-item,
  .day-plan-overlay-sheet {
    animation: none;
  }

  .day-plan-showcase-panel.is-highlight {
    transform: none;
  }
}

/* —— Travel (Phase 1) —— */
.travel-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.travel-plan-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: inherit;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.travel-plan-link:hover strong {
  text-decoration: underline;
}

.chip.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.travel-chip-btn {
  border: none;
  cursor: pointer;
  font: inherit;
  background: transparent;
}

.travel-day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}

.travel-timeline {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.travel-stop {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #ddd) 80%, transparent);
}

.travel-stop:last-child {
  border-bottom: none;
}

.travel-stop-order {
  flex: 0 0 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent, #2f5d50) 18%, transparent);
  color: var(--accent, #2f5d50);
}

.travel-stop-body {
  flex: 1;
  min-width: 0;
}

.travel-stop-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
}

.travel-type-badge {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted, #888) 16%, transparent);
  color: var(--text, #222);
}

.travel-visit-badge {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--home-moss, #3d5244) 14%, transparent);
  color: var(--home-moss, #3d5244);
  font-weight: 600;
}

.travel-stop-actions {
  flex-shrink: 0;
}

.travel-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.travel-check-item {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #ddd) 80%, transparent);
}

.travel-check-form {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.travel-check-delete-form {
  margin: 0;
  flex-shrink: 0;
}

.travel-check-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.travel-check-row:hover .travel-check-mark {
  border-color: var(--home-moss, #3d5244);
}

.travel-check-item.is-done .travel-check-body strong {
  text-decoration: line-through;
  opacity: 0.65;
}

.travel-check-mark {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border, #ccc) 90%, transparent);
  background: transparent;
  font-size: 1rem;
  line-height: 2rem;
  text-align: center;
}

.travel-check-item.is-done .travel-check-mark {
  background: color-mix(in srgb, var(--home-moss, #3d5244) 12%, transparent);
  border-color: var(--home-moss, #3d5244);
  color: var(--home-moss, #3d5244);
}

.travel-checklist-done {
  opacity: 0.88;
}

.travel-check-progress {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #f3f7ef, #fffdf8);
  border: 1px solid var(--line, #e5e8e3);
}

.travel-check-progress-head {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.travel-check-progress-bar {
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(61, 82, 68, 0.12);
  overflow: hidden;
}

.travel-check-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5a7a62, #3d5244);
  transition: width 0.35s ease;
}

/* legacy class kept for older markup */
.travel-check-toggle {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border, #ccc) 90%, transparent);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.travel-check-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.form-stack textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--border, #ccc) 90%, transparent);
  font: inherit;
  resize: vertical;
}

/* —— Travel map (Phase 2) —— */
body.page-travel-map main,
body.page-travel-map .flash-wrap {
  width: min(1120px, 96vw);
}

body.page-travel-map .travel-detail-head .btn-row {
  flex-wrap: wrap;
}

.travel-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
}

.travel-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(200px, 0.75fr);
  gap: 0.85rem;
  align-items: stretch;
  min-height: 580px;
}

.travel-map-canvas {
  width: 100%;
  min-height: 580px;
  height: min(72vh, 820px);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border, #ccc) 85%, transparent);
  background: #e8eee9;
  z-index: 1;
  position: relative;
}

.travel-route-aside {
  border: 1px solid color-mix(in srgb, var(--border, #ccc) 85%, transparent);
  border-radius: 0.75rem;
  padding: 0.85rem;
  max-height: min(72vh, 820px);
  overflow: auto;
  background: color-mix(in srgb, var(--card, #fff) 92%, #f3f6f4);
}

.travel-route-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.travel-route-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.45rem 0.5rem;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.travel-route-item:hover {
  background: color-mix(in srgb, var(--accent, #2f5d50) 8%, transparent);
}

.travel-route-item.is-active {
  border-color: color-mix(in srgb, var(--accent, #2f5d50) 45%, transparent);
  background: color-mix(in srgb, var(--accent, #2f5d50) 12%, transparent);
}

.travel-route-item.is-past {
  opacity: 0.55;
}

.travel-route-num {
  flex: 0 0 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent, #2f5d50) 18%, transparent);
  color: var(--accent, #2f5d50);
}

.travel-route-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.travel-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.travel-marker {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--marker-color, #2f5d50);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  border: 2px solid #fff;
}

.travel-marker.is-active {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--marker-color, #2f5d50) 35%, transparent);
}

.travel-car {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  transition: transform 0.05s linear;
}

.travel-speed-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.travel-speed-label select {
  font: inherit;
  padding: 0.2rem 0.35rem;
  border-radius: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--border, #ccc) 90%, transparent);
}

.place-search-box {
  padding: 0.75rem;
  border-radius: 0.65rem;
  border: 1px dashed color-mix(in srgb, var(--border, #ccc) 90%, transparent);
  background: color-mix(in srgb, var(--accent, #2f5d50) 5%, transparent);
}

.place-search-row {
  display: flex;
  gap: 0.4rem;
}

.place-search-row input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--border, #ccc) 90%, transparent);
  font: inherit;
}

.place-search-results {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
  max-height: 220px;
  overflow: auto;
}

.place-search-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--border, #ccc) 80%, transparent);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.place-search-item:hover {
  border-color: var(--accent, #2f5d50);
}

.flash-warning {
  background: #fff6e5;
  color: #6a4b12;
  border: 1px solid #f0d9a0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.55rem;
}

@media (max-width: 860px) {
  body.page-travel-map main,
  body.page-travel-map .flash-wrap {
    width: min(720px, 92vw);
  }

  .travel-map-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .travel-map-canvas {
    height: min(58vh, 560px);
    min-height: 360px;
  }

  .travel-route-aside {
    max-height: 320px;
  }
}

/* —— Travel album & journal (Phase 3) —— */
.travel-album-grid {
  margin-top: 1rem;
}

.travel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(12, 16, 14, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 0.75rem;
}

.travel-lightbox[hidden] {
  display: none !important;
}

.travel-lightbox img {
  max-width: min(96vw, 960px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.travel-lightbox-meta {
  color: #f4f4f4;
  text-align: center;
  max-width: 36rem;
}

.travel-lightbox-meta .muted {
  color: rgba(244, 244, 244, 0.75);
}

.travel-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

body.travel-lightbox-open {
  overflow: hidden;
}

.travel-day-section {
  padding-bottom: 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #ddd) 70%, transparent);
}

.travel-day-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.travel-day-jump {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface, #fff);
  padding: 0.35rem 0 0.75rem;
}

.travel-stop-name {
  font-weight: 700;
  color: var(--home-moss, #3d5244);
}

.travel-spot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.travel-spot-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line, #e5e8e3);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--surface, #fff) 92%, var(--home-moss, #3d5244) 8%);
}

.travel-spot-link {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.travel-spot-link:hover .travel-spot-name {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--home-moss, #3d5244) 45%, transparent);
}

.travel-spot-link-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.travel-spot-name {
  color: var(--home-moss, #3d5244);
  font-size: 1.05rem;
}

.travel-spot-link-sub {
  line-height: 1.45;
}

.travel-spot-badge-direct {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--home-moss, #3d5244) 12%, transparent);
}

.travel-spot-actions {
  flex-shrink: 0;
  margin: 0;
}

.travel-stop-name-btn {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--home-moss, #3d5244);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--home-moss, #3d5244) 35%, transparent);
  text-underline-offset: 0.15em;
}

.travel-stop-name-btn:hover {
  text-decoration-color: var(--home-moss, #3d5244);
}

.travel-place-info {
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: rgba(12, 16, 14, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.travel-place-info[hidden] {
  display: none !important;
}

.travel-place-info-dialog {
  position: relative;
  width: min(96vw, 34rem);
  max-height: 88vh;
  overflow: auto;
  background: var(--surface, #fff);
  border-radius: 1rem;
  border: 1px solid var(--line, #e5e8e3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  padding: 1.25rem 1.25rem 1.5rem;
}

.travel-place-info-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.travel-place-info-image {
  width: 100%;
  max-height: 12rem;
  object-fit: cover;
  border-radius: 0.65rem;
  margin: 0.75rem 0;
}

.travel-place-info-description {
  margin: 0.75rem 0 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.travel-place-info-facts {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.travel-place-info-blogs {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.travel-place-info-blogs a {
  color: var(--home-moss, #3d5244);
}

.travel-place-info-actions {
  position: relative;
  z-index: 2;
}

.travel-place-info-actions a {
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}

.travel-place-info-actions a.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

body.travel-place-info-open {
  overflow: hidden;
}

.travel-journal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.travel-journal-card {
  padding: 0.85rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #ddd) 80%, transparent);
}

.travel-journal-card:last-child {
  border-bottom: none;
}

.travel-journal-head {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.45rem;
}

.travel-journal-mood {
  font-size: 1.5rem;
  line-height: 1;
}

.travel-journal-highlight {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--accent, #2f5d50);
}

.travel-journal-body {
  margin: 0 0 0.65rem;
  white-space: pre-wrap;
  line-height: 1.55;
}

.travel-budget-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.travel-budget-total {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
}

.travel-budget-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.travel-weather-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.travel-weather-day {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #ddd) 80%, transparent);
}

.travel-weather-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

/* 영어 모의고사 */
.eng .eng-ok {
  color: #2f7a3d;
}

.eng .eng-ng {
  color: #b2432a;
}

.eng-near {
  color: #a26a00;
}

.eng-learner-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.eng-learner-pick select {
  margin-left: 0.35rem;
}

.eng-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--ok);
  color: #2f7a3d;
  vertical-align: middle;
}

.eng-exam-list,
.eng-note-list,
.eng-history,
.eng-bars,
.eng-q-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eng-exam-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.eng-exam-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
}

.eng-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.5rem 0 0.75rem;
}

.eng-bar {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.eng-bar-track {
  height: 0.6rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.eng-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #d39b2a;
}

.eng-bar-strong .eng-bar-fill {
  background: #3f8f4f;
}

.eng-bar-weak .eng-bar-fill {
  background: #c4512f;
}

.eng-bar-value {
  white-space: nowrap;
  font-size: 0.82rem;
}

.eng-weak-box {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--danger);
  margin: 0.5rem 0;
}

.eng-weak-box ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.eng-weak-box li + li {
  margin-top: 0.3rem;
}

.eng-details {
  margin-top: 1rem;
}

.eng-details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.4rem 0;
}

.eng-note-list li,
.eng-history li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.eng-history li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.eng-q {
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
}

.eng-q.is-answered {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.eng-q.is-ng {
  border-left: 4px solid #c4512f;
}

.eng-q.is-ok {
  border-left: 4px solid #3f8f4f;
}

.eng-q-meta {
  margin: 0 0 0.3rem;
}

.eng-prompt {
  margin: 0 0 0.6rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.eng-choices {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eng-choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  line-height: 1.45;
}

label.eng-choice {
  cursor: pointer;
}

label.eng-choice:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
}

.eng-choice input {
  margin: 0;
  flex-shrink: 0;
}

.eng-choice-no {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.eng-choices-result .eng-choice.is-answer {
  border-color: #3f8f4f;
  background: var(--ok);
}

.eng-choices-result .eng-choice.is-picked-wrong {
  border-color: #c4512f;
  background: var(--danger);
}

.eng-write {
  width: 100%;
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
}

.eng-explain {
  margin: 0.6rem 0 0;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--line) 35%, #fff);
}

.eng-submit-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  background: var(--card);
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .eng-bar {
    grid-template-columns: 1fr auto;
  }

  .eng-bar-label {
    grid-column: 1 / -1;
  }
}

