
:root {
  --paper: #f5f1e8;
  --paper-deep: #ebe2d2;
  --ink: #1c2725;
  --muted: #66716c;
  --line: #d8d0c2;
  --green: #246354;
  --green-deep: #173f36;
  --green-soft: #dcebe5;
  --red: #a74842;
  --red-soft: #f3ddda;
  --gold: #b88838;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(38, 51, 46, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; background:
  radial-gradient(circle at 85% 0%, rgba(184,136,56,.13), transparent 28rem),
  linear-gradient(180deg, #faf7f0 0%, var(--paper) 54%, #efe8dc 100%);
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(36,99,84,.26);
  outline-offset: 3px;
}
.hidden { display: none !important; }

.site-header {
  height: 76px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(84,92,87,.15);
  background: rgba(250,247,240,.82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 0;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  color: #fff; background: var(--green-deep);
  font-size: 22px; font-weight: 900;
  box-shadow: 0 8px 20px rgba(23,63,54,.18);
}
.brand strong { display: block; font-size: 18px; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.header-actions { display: flex; gap: 8px; }
.ghost-button, .icon-button, .secondary-button, .primary-button {
  border: 0; cursor: pointer; transition: .18s ease;
}
.ghost-button {
  padding: 10px 13px; border-radius: 999px; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 700;
}
.ghost-button:hover { background: rgba(36,99,84,.08); color: var(--green-deep); }
.danger-text:hover { color: var(--red); background: var(--red-soft); }

.view { width: min(1480px, 92vw); margin: 0 auto; }
.hero {
  min-height: 380px; padding: 64px 0 52px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end;
}
.eyebrow {
  margin: 0 0 10px; text-transform: uppercase; letter-spacing: .13em;
  color: var(--green); font-size: 12px; font-weight: 850;
}
.hero h1 {
  margin: 0; font-family: "Iropke Batang", "Noto Serif KR", Georgia, serif;
  font-size: clamp(42px, 6vw, 78px); line-height: 1.08; letter-spacing: -.065em;
  font-weight: 700;
}
.hero-copy {
  margin: 24px 0 0; max-width: 700px; color: var(--muted);
  font-size: 18px; line-height: 1.75;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.hero-stats article {
  min-height: 150px; background: rgba(255,253,248,.78);
  border: 1px solid rgba(83,91,87,.14); border-radius: var(--radius-md);
  padding: 22px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 10px 30px rgba(52,66,59,.05);
}
.hero-stats span { color: var(--muted); font-size: 12px; font-weight: 800; }
.hero-stats strong {
  margin-top: 14px; font-family: Georgia, serif; font-size: 42px; line-height: 1;
}
.hero-stats small { margin-top: 4px; color: var(--muted); }

.dashboard-grid {
  display: grid; grid-template-columns: 350px minmax(0,1fr); gap: 24px;
  padding-bottom: 80px;
}
.era-panel, .unit-panel, .typing-card, .study-sidebar, .quiz-card {
  background: rgba(255,253,248,.88);
  border: 1px solid rgba(82,91,86,.14);
  box-shadow: var(--shadow);
}
.era-panel, .unit-panel { border-radius: var(--radius-lg); padding: 28px; }
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.panel-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.045em; }
.panel-heading > span { color: var(--muted); font-size: 13px; font-weight: 800; }

.era-list { display: grid; gap: 7px; margin-top: 26px; }
.era-item {
  width: 100%; display: grid; grid-template-columns: 38px 1fr auto;
  align-items: center; gap: 10px; border: 0; border-radius: 14px;
  background: transparent; padding: 12px 13px; text-align: left; cursor: pointer;
}
.era-item:hover { background: var(--green-soft); }
.era-item.active { color: #fff; background: var(--green-deep); }
.era-number { font-family: Georgia, serif; font-size: 19px; opacity: .75; }
.era-name { font-weight: 850; letter-spacing: -.025em; }
.era-check {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px;
  background: rgba(255,255,255,.16);
}
.era-item:not(.active) .era-check { background: var(--paper-deep); color: var(--muted); }
.era-item.done:not(.active) .era-check { background: var(--green); color: #fff; }

.legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.complete { background: var(--green); }
.dot.progress { background: var(--gold); }

.unit-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px;
  margin-top: 26px;
}
.unit-card {
  min-height: 190px; padding: 22px; border: 1px solid var(--line);
  border-radius: 18px; background: var(--white); cursor: pointer; text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
.unit-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(38,51,46,.1); border-color: #9fb9ae; }
.unit-card::after {
  content: ""; position: absolute; right: -42px; top: -42px; width: 105px; height: 105px;
  border-radius: 50%; background: var(--paper-deep); opacity: .65;
}
.unit-card.done::after { background: var(--green-soft); }
.unit-card .unit-index { color: var(--gold); font: 700 18px Georgia, serif; }
.unit-card h3 { margin: 18px 0 8px; max-width: 82%; font-size: 21px; line-height: 1.35; letter-spacing: -.045em; }
.unit-card p { margin: 0; color: var(--muted); font-size: 13px; }
.unit-card .unit-bottom {
  position: absolute; bottom: 19px; left: 22px; right: 22px;
  display: flex; justify-content: space-between; align-items: center;
}
.mini-progress { width: 45%; height: 5px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }

.study-topbar {
  display: grid; grid-template-columns: 52px 1fr minmax(180px,320px);
  gap: 18px; align-items: center; padding: 34px 0 24px;
}
.icon-button {
  width: 46px; height: 46px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--line); font-size: 22px;
}
.icon-button:hover { background: var(--green-soft); }
.study-heading p { margin: 0 0 5px; color: var(--green); font-size: 12px; font-weight: 800; }
.study-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.article-progress { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 800; }
.progress-track { height: 8px; flex: 1; background: var(--paper-deep); border-radius: 999px; overflow: hidden; }
.progress-track div, .quiz-progress div { height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .3s ease; }

.metric-strip {
  display: grid; grid-template-columns: repeat(5,1fr); margin-bottom: 18px;
  border: 1px solid rgba(82,91,86,.14); border-radius: 20px;
  background: rgba(255,253,248,.75); overflow: hidden;
}
.metric-strip article { min-height: 92px; padding: 18px 20px; border-right: 1px solid var(--line); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.metric-strip article:last-child { border: 0; }
.metric-strip span { width: 100%; color: var(--muted); font-size: 11px; font-weight: 800; }
.metric-strip strong { font: 700 30px Georgia, serif; }
.metric-strip small { color: var(--muted); font-size: 11px; }

.typing-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 18px; padding-bottom: 60px; }
.typing-card { border-radius: var(--radius-lg); padding: clamp(24px,4vw,54px); }
.study-sidebar { border-radius: var(--radius-lg); padding: 24px; align-self: start; position: sticky; top: 98px; }
.article-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.article-meta h1 { margin: 0; font-size: 31px; letter-spacing: -.05em; }
.key-terms { color: var(--muted); font-size: 12px; line-height: 1.6; text-align: right; max-width: 42%; }
.target-text {
  margin: 38px 0 30px; padding: 28px; border-radius: 18px;
  background: #f0ece3; font-family: "Noto Serif KR", "Batang", serif;
  font-size: clamp(22px,2.25vw,31px); line-height: 1.95; letter-spacing: .015em;
  white-space: pre-wrap; word-break: keep-all;
}
.target-char { border-radius: 4px; transition: background .08s ease, color .08s ease; }
.target-char.correct { color: #8a928e; }
.target-char.wrong {
  color: #fff;
  background: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  box-shadow: 0 0 0 2px rgba(167,72,66,.18);
}
.target-char.current {
  color: var(--green-deep);
  background: #cfe6dc;
  box-shadow: inset 0 -3px var(--green);
  animation: typing-cursor 1s step-end infinite;
}
@keyframes typing-cursor {
  50% { box-shadow: inset 0 -3px transparent; }
}
.target-char.linebreak::after { content: "↵"; color: var(--gold); font-size: .65em; }
.typing-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 800; }
#typingInput {
  width: 100%; min-height: 166px; resize: vertical; border-radius: 18px;
  border: 2px solid var(--line); background: var(--white); padding: 22px;
  font-size: 21px; line-height: 1.75; color: var(--ink);
}
#typingInput:focus { border-color: var(--green); }
.typing-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 16px; }
.typing-message { margin: 0; color: var(--muted); font-size: 13px; }
.typing-message.error { color: var(--red); font-weight: 800; }
.typing-actions { display: flex; gap: 8px; }
.secondary-button, .primary-button {
  padding: 13px 18px; border-radius: 13px; font-weight: 850;
}
.secondary-button { color: var(--green-deep); background: var(--green-soft); }
.secondary-button:hover { background: #c9dfd6; }
.primary-button { color: #fff; background: var(--green-deep); box-shadow: 0 8px 20px rgba(23,63,54,.16); }
.primary-button:hover { background: #0f352d; transform: translateY(-1px); }
.primary-button.wide { width: 100%; min-height: 54px; font-size: 16px; }
kbd { padding: 3px 7px; border-radius: 6px; border: 1px solid #c8c0b3; background: #eee8dd; color: var(--ink); font: inherit; font-size: 11px; font-weight: 850; }

.article-step-list { display: grid; gap: 7px; }
.article-step {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center;
  padding: 9px 10px; border-radius: 11px; color: var(--muted); font-size: 12px;
}
.article-step i {
  width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-deep); font-style: normal; font-size: 10px; font-weight: 800;
}
.article-step.active { background: var(--green-soft); color: var(--green-deep); font-weight: 800; }
.article-step.active i { color: #fff; background: var(--green); }
.article-step.done i { color: #fff; background: var(--green-deep); }
.tip-card { margin-top: 24px; padding: 17px; border-radius: 15px; background: #f3e8cf; }
.tip-card strong { font-size: 13px; }
.tip-card p { margin: 8px 0 0; color: #74654d; font-size: 12px; line-height: 1.7; }

.quiz-shell { max-width: 900px; margin: 0 auto; padding: 46px 0 80px; }
.quiz-header { display: grid; grid-template-columns: 54px 1fr auto; gap: 15px; align-items: center; }
.quiz-header h2 { margin: 0; font-size: 23px; }
.quiz-header > span { color: var(--muted); font-weight: 850; }
.quiz-progress { height: 8px; margin: 22px 0 28px; background: var(--paper-deep); border-radius: 999px; overflow: hidden; }
.quiz-card { border-radius: var(--radius-lg); padding: clamp(32px,6vw,70px); text-align: center; }
.type-badge { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-size: 12px; font-weight: 850; }
.quiz-card h1 { max-width: 720px; margin: 25px auto 12px; font-size: clamp(28px,4vw,45px); line-height: 1.35; letter-spacing: -.055em; }
.quiz-guide { color: var(--muted); }
#quizInput {
  display: block; width: min(520px,100%); height: 68px; margin: 30px auto 14px;
  border: 2px solid var(--line); border-radius: 16px; background: var(--white);
  text-align: center; font-size: 25px; font-weight: 850;
}
#quizInput:focus { border-color: var(--green); }
.quiz-feedback { width: min(620px,100%); margin: 18px auto; padding: 18px; border-radius: 15px; text-align: left; line-height: 1.65; }
.quiz-feedback.correct { background: var(--green-soft); color: var(--green-deep); }
.quiz-feedback.wrong { background: var(--red-soft); color: #702e29; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 20px; background: rgba(18,30,27,.58); backdrop-filter: blur(8px);
}
.result-modal {
  width: min(520px,100%); border-radius: 30px; padding: 38px;
  background: var(--white); text-align: center; box-shadow: 0 30px 90px rgba(0,0,0,.25);
}
.result-icon { width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); font-size: 31px; font-weight: 900; }
.result-modal h2 { margin: 0; font-size: 30px; }
.result-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 28px 0; }
.result-stats article { padding: 16px 8px; border-radius: 13px; background: var(--paper); }
.result-stats span { display: block; color: var(--muted); font-size: 11px; }
.result-stats strong { display: block; margin-top: 7px; font: 700 24px Georgia,serif; }
.result-message { color: var(--muted); line-height: 1.65; }
.result-modal small { display: block; margin-top: 12px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 200; transform: translateX(-50%);
  padding: 13px 18px; border-radius: 999px; color: #fff; background: var(--green-deep);
  box-shadow: 0 12px 36px rgba(0,0,0,.18); font-size: 13px; font-weight: 800;
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .era-list { grid-template-columns: repeat(3,1fr); }
  .era-item { grid-template-columns: 30px 1fr; }
  .era-check { display: none; }
  .typing-layout { grid-template-columns: 1fr; }
  .study-sidebar { position: static; }
}
@media (max-width: 720px) {
  .site-header { height: 66px; padding: 0 18px; }
  .header-actions .danger-text { display: none; }
  .view { width: min(94vw,100%); }
  .hero { padding: 42px 2vw 34px; }
  .hero h1 { font-size: 43px; }
  .hero-copy { font-size: 15px; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
  .hero-stats article { min-height: 106px; padding: 13px; }
  .hero-stats strong { font-size: 30px; }
  .era-panel, .unit-panel { padding: 20px; }
  .era-list { grid-template-columns: 1fr 1fr; }
  .unit-grid { grid-template-columns: 1fr; }
  .legend { display: none; }
  .study-topbar { grid-template-columns: 45px 1fr; padding: 20px 0 14px; }
  .article-progress { grid-column: 1 / -1; }
  .metric-strip { grid-template-columns: repeat(3,1fr); }
  .metric-strip article { min-height: 74px; padding: 12px; }
  .metric-strip article:nth-child(3) { border-right: 0; }
  .metric-strip article:nth-child(n+4) { border-top: 1px solid var(--line); }
  .metric-strip strong { font-size: 24px; }
  .typing-card { padding: 24px 17px; border-radius: 21px; }
  .article-meta { display: block; }
  .key-terms { display: block; max-width: none; text-align: left; margin-top: 9px; }
  .target-text { padding: 19px; font-size: 21px; line-height: 1.8; margin: 26px 0 20px; }
  #typingInput { min-height: 150px; padding: 17px; font-size: 18px; }
  .typing-footer { align-items: stretch; flex-direction: column; }
  .typing-actions button { flex: 1; }
  .study-sidebar { display: none; }
  .quiz-shell { padding: 24px 0 60px; }
  .quiz-card { padding: 38px 20px; }
  .result-modal { padding: 30px 22px; }
}

#typingInput.has-error {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(167,72,66,.10);
}


.article-meta-right {
  display: grid;
  justify-items: end;
  gap: 10px;
  max-width: 46%;
}
.article-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.level-badge.core { color: #fff; background: var(--green); }
.level-badge.standard { color: var(--green-deep); background: var(--green-soft); }
.level-badge.extended { color: #79500e; background: #f3e8cf; }
.source-link {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.source-link:hover { color: var(--green); text-decoration: underline; }
.target-char.numeric-separator { color: var(--gold); }
.article-step small {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 6px;
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 9px;
  font-weight: 850;
}
@media (max-width: 720px) {
  .article-meta-right {
    max-width: none;
    justify-items: start;
    margin-top: 11px;
  }
  .article-badges { justify-content: flex-start; }
}


/* v3 dashboard density */
.hero {
  min-height: 238px;
  padding: 26px 0 22px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(35px, 4.1vw, 56px);
  line-height: 1.05;
}
.hero-copy {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
}
.hero-stats article {
  min-height: 106px;
  padding: 15px 17px;
}
.hero-stats strong {
  margin-top: 8px;
  font-size: 33px;
}
.dashboard-grid {
  padding-bottom: 42px;
}

.record-button {
  color: var(--green-deep);
  background: var(--green-soft);
}
.record-button:hover {
  color: #fff;
  background: var(--green-deep);
}
.danger-button {
  color: var(--red);
  background: var(--red-soft);
}
.danger-button:hover {
  color: #fff;
  background: var(--red);
}

.record-modal {
  width: min(920px, 96vw);
  max-height: min(88vh, 880px);
  overflow: auto;
  border-radius: 28px;
  padding: 30px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0,0,0,.26);
}
.record-modal-header,
.record-section-heading,
.record-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.record-modal-header h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.045em;
}
.record-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.record-summary-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 25px 0;
}
.record-summary-card {
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.record-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}
.record-summary-card strong {
  display: block;
  margin-top: 12px;
  font: 700 27px Georgia, serif;
}
.record-summary-card small {
  color: var(--muted);
}
.record-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.record-section-heading h3 {
  margin: 0;
  font-size: 19px;
}
.record-section-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.record-unit-list,
.record-quiz-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}
.record-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(76px, .45fr));
  gap: 10px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 13px;
  background: #f3efe6;
}
.record-row.quiz-row {
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(82px, .5fr));
}
.record-row strong {
  font-size: 13px;
  line-height: 1.4;
}
.record-row span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.record-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.record-modal-footer {
  margin-top: 26px;
}
@media (max-width: 900px) {
  .record-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .record-row,
  .record-row.quiz-row {
    grid-template-columns: 1fr 1fr;
  }
  .record-row strong {
    grid-column: 1 / -1;
  }
  .record-row span {
    text-align: left;
  }
}
@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding: 26px 2vw 20px;
  }
  .hero h1 {
    font-size: 37px;
  }
  .record-modal {
    padding: 22px 16px;
  }
  .record-summary-cards {
    grid-template-columns: 1fr 1fr;
  }
  .record-modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .record-modal-footer button {
    width: 100%;
  }
}


.feedback-modal {
  width: min(720px, 96vw);
  max-height: min(90vh, 900px);
  overflow: auto;
  border-radius: 28px;
  padding: 30px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0,0,0,.26);
}
.feedback-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.feedback-modal-header h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.045em;
}
.feedback-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.feedback-form {
  display: grid;
  gap: 17px;
  margin-top: 25px;
}
.feedback-form label {
  display: grid;
  gap: 8px;
}
.feedback-form label > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}
.feedback-form em {
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fffdf8;
  color: var(--ink);
  padding: 13px 14px;
}
.feedback-form textarea {
  resize: vertical;
  line-height: 1.65;
}
.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  border-color: var(--green);
}
.feedback-form label > small {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
}
.feedback-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
  padding: 2px 0;
}
.feedback-checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.feedback-checkbox span {
  color: var(--muted) !important;
  font-weight: 700 !important;
}
.feedback-email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 15px;
  border-radius: 14px;
  background: var(--paper);
}
.feedback-email-box span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}
.feedback-email-box strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}
.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 4px;
}
@media (max-width: 720px) {
  .feedback-modal {
    padding: 22px 16px;
  }
  .feedback-actions {
    flex-direction: column-reverse;
  }
  .feedback-actions button {
    width: 100%;
  }
  .feedback-email-box {
    align-items: stretch;
    flex-direction: column;
  }
}
