/* ==========================================================
   WehamWrite — 한지와 먹, 낙관의 붉은 점
   ========================================================== */

:root {
  --ink: #1b1712;
  --ink-soft: #4a4238;
  --ink-faint: #8a7f70;
  --paper: #f7f1e6;
  --paper-deep: #efe6d5;
  --line: rgba(27, 23, 18, 0.14);
  --seal: #c2401c;          /* 낙관 주홍 */
  --seal-soft: rgba(194, 64, 28, 0.12);
  --font-display: "Hahmlet", serif;
  --font-body: "Gowun Dodum", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }
[hidden] { display: none !important; }

/* ----------------------------------------------------------
   공용: 브랜드 / 버튼
   ---------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.35rem;
  background: var(--seal);
  color: #fff6ec;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 2px 10px rgba(194, 64, 28, 0.35);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: #f5efe4;
}

.brand-dark .brand-name { color: var(--ink); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.2rem;
  background: var(--seal);
  color: #fff6ec;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  border: none;
  border-radius: 999px;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 6px 24px rgba(194, 64, 28, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #a93615;
  box-shadow: 0 10px 32px rgba(194, 64, 28, 0.45);
}

.btn-primary .btn-arrow { transition: transform 0.25s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-small { padding: 0.55rem 1.3rem; font-size: 0.95rem; box-shadow: none; }

.btn-ghost {
  padding: 0.5rem 1.2rem;
  background: transparent;
  color: #f5efe4;
  border: 1px solid rgba(245, 239, 228, 0.4);
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover { background: rgba(245, 239, 228, 0.12); border-color: rgba(245, 239, 228, 0.7); }

.btn-ghost-dark {
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost-dark:hover { background: var(--seal-soft); border-color: var(--seal); color: var(--seal); }

/* ----------------------------------------------------------
   랜딩 (첫 페이지)
   ---------------------------------------------------------- */

body.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #12100d;
  color: #f5efe4;
  overflow: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(18, 16, 13, 0.55) 0%, rgba(18, 16, 13, 0.35) 40%, rgba(18, 16, 13, 0.78) 100%);
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 3rem;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: rgba(245, 239, 228, 0.75);
  margin-bottom: 1.6rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-title span { display: block; }

.seal-dot { font-style: normal; color: var(--seal); }

.hero-sub {
  margin-top: 1.8rem;
  font-size: 1.05rem;
  color: rgba(245, 239, 228, 0.85);
  line-height: 1.9;
}

.hero-actions { margin-top: 2.8rem; }

.landing-footer {
  padding: 1.4rem 3rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(245, 239, 228, 0.5);
}

/* 순차 등장 애니메이션 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.r1 { animation-delay: 0.15s; }
.r2 { animation-delay: 0.35s; }
.r3 { animation-delay: 0.5s; }
.r4 { animation-delay: 0.75s; }
.r5 { animation-delay: 0.95s; }
.r6 { animation-delay: 1.2s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   두 번째 페이지 (일차별 주제)
   ---------------------------------------------------------- */

body.paper {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--seal-soft), transparent 60%),
    var(--paper);
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 3rem;
  background: rgba(247, 241, 230, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.user-chip {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.user-chip b { color: var(--seal); font-weight: 600; }

/* 나의 문장 보기 체크박스 */
.my-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.my-filter input { position: absolute; opacity: 0; pointer-events: none; }

.my-filter-box {
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--ink-faint);
  border-radius: 0.3rem;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.my-filter-box::after {
  content: "";
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid #fff6ec;
  border-bottom: 2px solid #fff6ec;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s ease;
}

.my-filter input:checked + .my-filter-box {
  background: var(--seal);
  border-color: var(--seal);
}
.my-filter input:checked + .my-filter-box::after { transform: rotate(-45deg) scale(1); }
.my-filter input:checked ~ * { color: var(--seal); }

.topics-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 6rem;
}

.topics-heading { margin-bottom: 2.8rem; }

.topics-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--seal);
  margin-bottom: 0.7rem;
}

.topics-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.01em;
}

.topics-desc {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* 3열 그리드 — 새 일차가 아래로 계속 쌓인다 */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

@media (max-width: 760px) { .topics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .topics-grid { grid-template-columns: 1fr; } }

.topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  text-align: left;
  box-shadow: 0 1px 3px rgba(27, 23, 18, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 64, 28, 0.45);
  box-shadow: 0 14px 34px rgba(27, 23, 18, 0.12);
}

.topic-card-day {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--seal);
}

.topic-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--ink);
  word-break: keep-all;
}

.topic-card-preview {
  font-size: 0.88rem;
  color: var(--ink-faint);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-card-foot {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.topic-card-count b { color: var(--seal); font-weight: 600; }

.topic-card-mine {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--seal);
  box-shadow: 0 0 0 4px var(--seal-soft);
}

.topics-empty {
  margin-top: 3rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.95rem;
}

/* ----------------------------------------------------------
   모달 (일차 상세 + 글쓰기)
   ---------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(27, 23, 18, 0.45);
  backdrop-filter: blur(4px);
}

.modal {
  position: relative;
  width: min(620px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  background: #fffdf8;
  border-radius: 1.1rem;
  padding: 2.2rem 2.2rem 1.8rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: rise 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-faint);
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--seal); }

.modal-day {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--seal);
  margin-bottom: 0.5rem;
}

.modal-topic {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.5;
  word-break: keep-all;
  margin-bottom: 1.6rem;
}

.write-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 0.7rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.write-form textarea:focus { outline: none; border-color: var(--seal); }

.modal-auth { width: min(420px, 100%); }

.auth-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 0.7rem;
  transition: border-color 0.2s ease;
}

.auth-input:focus { outline: none; border-color: var(--seal); }

/* ----------------------------------------------------------
   궤도 무대 — 정중앙 질문, 둘레를 떠도는 문장들
   ---------------------------------------------------------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, #fffdf8 0%, var(--paper) 46%, #ece0ca 100%);
  animation: stage-in 0.5s ease;
}

/* 한지 질감 */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

@keyframes stage-in { from { opacity: 0; } to { opacity: 1; } }

.stage-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.stage-close:hover { color: var(--seal); border-color: var(--seal); transform: rotate(90deg); }

.stage-orbits {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 정중앙의 질문 */
.stage-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(24rem, 74vw);
  text-align: center;
  pointer-events: none;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
}

/* 질문 둘레의 종이 후광 — 뒤로 지나가는 문장을 살짝 가려 가독성을 지킨다 */
.stage-center::before {
  content: "";
  position: absolute;
  inset: -4.5rem -3.5rem;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(250, 245, 235, 0.97) 0%,
    rgba(250, 245, 235, 0.85) 55%,
    rgba(250, 245, 235, 0) 78%);
}

.stage-day {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--seal);
  margin-bottom: 0.9rem;
}

.stage-topic {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.55;
  word-break: keep-all;
  color: var(--ink);
}

.stage-count {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* 궤도를 떠도는 문장 칩 — 이름도 날짜도 없이 문장만 */
.orbit-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  max-width: 15rem;
  will-change: transform;
}

.orbit-chip-inner {
  padding: 0.85rem 1.05rem;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: 0 8px 26px rgba(27, 23, 18, 0.1);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink-soft);
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: chip-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.orbit-chip:hover { z-index: 4; }
.orbit-chip:hover .orbit-chip-inner {
  transform: scale(1.06);
  border-color: rgba(194, 64, 28, 0.45);
  box-shadow: 0 16px 40px rgba(27, 23, 18, 0.18);
  -webkit-line-clamp: unset;   /* 멈춰 서면 문장 전체가 읽힌다 */
}

@keyframes chip-rise {
  from { opacity: 0; margin-top: 30px; }
  to   { opacity: 1; margin-top: 0; }
}

/* 하단 글쓰기 독 */
.stage-dock {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: min(34rem, 92vw);
  text-align: center;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s backwards;
}

.stage-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem 0.45rem 0.45rem 1.2rem;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(27, 23, 18, 0.12);
}

.stage-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.stage-form input:focus { outline: none; }
.stage-form input:disabled { cursor: not-allowed; }

.stage-form .btn-primary { flex-shrink: 0; }

.stage-dock .write-hint {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

@media (max-width: 640px) {
  .orbit-chip { max-width: 10.5rem; }
  .orbit-chip-inner { font-size: 0.78rem; padding: 0.65rem 0.8rem; }
}

/* ----------------------------------------------------------
   설문 (사전/사후)
   ---------------------------------------------------------- */

.survey-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  background:
    radial-gradient(900px 380px at 85% -8%, var(--seal-soft), transparent 60%),
    var(--paper);
  animation: stage-in 0.4s ease;
}

.survey-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 3.2rem 1.4rem 4.5rem;
}

.survey-close { position: fixed; top: 1.2rem; right: 1.6rem; }

.survey-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--seal);
  margin-bottom: 0.7rem;
}

.survey-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--ink);
}

.survey-desc {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.survey-section { margin-top: 2.4rem; }

.survey-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}
.survey-h3 em { font-style: normal; font-size: 0.8rem; color: var(--ink-faint); }

.survey-note {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.7;
}

.q-block {
  margin-top: 0.9rem;
  padding: 1.2rem 1.3rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.q-label { font-size: 0.95rem; line-height: 1.7; word-break: keep-all; margin-bottom: 0.8rem; }
.q-label em { font-style: normal; font-size: 0.8rem; color: var(--ink-faint); }

.q-textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 0.6rem;
  resize: vertical;
}
.q-textarea:focus { outline: none; border-color: var(--seal); }

/* 라디오 공통 점 */
.dot {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--ink-faint);
  border-radius: 50%;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}
input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
input[type="radio"]:checked + .dot {
  background: var(--seal);
  border-color: var(--seal);
  box-shadow: inset 0 0 0 3px #fffdf8;
}

/* 세로 선택지 */
.opt-list { display: flex; flex-direction: column; gap: 0.45rem; }
.optlabel {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.25rem 0;
}
.optlabel:hover .dot { border-color: var(--seal); }

/* 리커트 표 */
.q-table { padding: 0.9rem 1rem; }

.likert-row {
  display: grid;
  grid-template-columns: 1fr repeat(5, 2.6rem);
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.3rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
}
.likert-row + .likert-row { border-top-color: transparent; }
.likert-row:nth-child(even) { background: rgba(27, 23, 18, 0.025); }

.likert-head {
  position: sticky;
  top: 0;
  background: #fffdf8;
  z-index: 1;
  font-size: 0.62rem;
  text-align: center;
  color: var(--ink-faint);
  line-height: 1.3;
  border-bottom: 1px solid var(--line);
}

.likert-q { font-size: 0.86rem; line-height: 1.55; word-break: keep-all; padding-right: 0.4rem; }

.dotlabel { display: flex; justify-content: center; cursor: pointer; }
.dotlabel:hover .dot { border-color: var(--seal); }

/* 1~10 선택 */
.seg10 { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.seglabel { cursor: pointer; }
.seglabel span {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1.5px solid var(--line);
  border-radius: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.seglabel:hover span { border-color: var(--seal); }
.seglabel input:checked + span {
  background: var(--seal);
  border-color: var(--seal);
  color: #fff6ec;
  font-weight: 700;
}
.seg10-ends {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 0.3rem;
}

/* 미응답 표시 */
.unanswered { border-color: var(--seal) !important; background: var(--seal-soft) !important; }

.survey-invalid {
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  background: var(--seal-soft);
  border: 1px solid rgba(194, 64, 28, 0.45);
  border-radius: 0.6rem;
  font-size: 0.88rem;
  color: var(--seal);
}

.survey-actions { margin-top: 2rem; text-align: center; }

/* 결과 카드 */
.survey-result { text-align: center; padding-top: 2rem; }

.score-card {
  margin: 2rem auto 0;
  max-width: 26rem;
  text-align: left;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.1rem 1.3rem;
}

.score-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 0.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.score-row:last-child { border-bottom: none; }
.score-row > span { flex: 1; }
.score-row b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.score-row b small { color: var(--ink-faint); font-weight: 400; }
.score-row em { font-style: normal; font-size: 0.7rem; color: var(--ink-faint); }
.score-row.total {
  background: rgba(27, 23, 18, 0.03);
  border-radius: 0.5rem;
  padding: 0.6rem 0.6rem;
  border-bottom: none;
  font-weight: 700;
  color: var(--ink);
}
.chg { font-style: normal; font-size: 0.8rem; font-weight: 700; color: var(--ink-faint); }
.chg.up { color: #2e7d46; }
.chg.down { color: var(--seal); }

@media (max-width: 560px) {
  .likert-row { grid-template-columns: 1fr repeat(5, 2.1rem); }
  .likert-q { font-size: 0.8rem; }
}

.write-form-foot {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.write-hint { font-size: 0.82rem; color: var(--ink-faint); }

@media (max-width: 640px) {
  .landing-header, .page-header { padding-left: 1.2rem; padding-right: 1.2rem; }
  .header-tools { gap: 0.7rem; }
  .modal { padding: 1.6rem 1.3rem 1.4rem; }
}
