:root {
  --accent: #ff6b2c;
  --accent-dark: #d94c13;
  --accent-soft: #fff0e7;
  --paper: #fffaf3;
  --paper-deep: #f7f0e7;
  --ink: #282522;
  --muted: #817b73;
  --line: #e9e0d6;
  --green: #239968;
  --green-soft: #e7f7ef;
  --red: #d94b42;
  --red-soft: #fff0ed;
  --yellow: #f2b32d;
  --blue: #4d7ac7;
  --shadow: 0 14px 38px rgba(61, 43, 24, 0.11);
  --soft-shadow: 0 7px 24px rgba(65, 47, 29, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper-deep);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper-deep);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #174a8a;
  outline-offset: 3px;
}

button:active {
  transform: scale(0.98);
}

.prototype-stage {
  min-height: 100vh;
}

.phone-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 250, 243, 0.93), rgba(255, 250, 243, 0.93)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(104, 78, 51, 0.035) 24px);
}

#app-main {
  min-height: 100svh;
}

.screen {
  min-height: 100svh;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(104px + env(safe-area-inset-bottom, 0px));
  animation: screen-in 0.32s ease-out both;
}

.screen[hidden] {
  display: none;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

h1,
h2,
h3,
strong {
  letter-spacing: -0.025em;
}

.eyebrow {
  margin-bottom: 3px;
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 18px;
}

.date-label {
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

.home-header h1 {
  margin-bottom: 5px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 25px;
  line-height: 1.2;
}

.home-header .muted {
  margin-bottom: 0;
  font-size: 11px;
}

.avatar-button {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 3px;
  border: 2px solid #fff;
  border-radius: 16px;
  background: var(--accent-soft);
  box-shadow: 0 4px 13px rgba(124, 62, 30, 0.18);
}

.avatar-button span,
.profile-avatar {
  display: grid;
  height: 100%;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff8c56, var(--accent));
  color: #fff;
  font-family: "STKaiti", serif;
  font-size: 20px;
  font-weight: 800;
}

.avatar-button i {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #36b778;
}

.streak-card {
  position: relative;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 44, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 95% -10%, rgba(255, 182, 82, 0.36), transparent 10rem),
    linear-gradient(135deg, #fff7ec, #ffead9);
  box-shadow: var(--soft-shadow);
}

.streak-card::after {
  position: absolute;
  top: -29px;
  right: -24px;
  width: 82px;
  height: 82px;
  border: 12px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "";
}

.streak-copy {
  display: flex;
  align-items: center;
}

.flame {
  margin-right: 10px;
  font-size: 30px;
  filter: drop-shadow(0 3px 5px rgba(208, 69, 19, 0.18));
}

.streak-copy strong {
  display: block;
  font-size: 15px;
}

.streak-copy p {
  margin: 2px 0 0;
  color: #806a5a;
  font-size: 10px;
}

.streak-badge {
  z-index: 1;
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 800;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin-top: 14px;
}

.week-row span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.week-row i {
  color: #9a8576;
  font-size: 9px;
  font-style: normal;
}

.week-row b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
}

.week-row .today b {
  border: 1px dashed var(--accent);
  background: #fff;
  color: var(--accent);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 25px 2px 11px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.section-heading > span {
  color: var(--muted);
  font-size: 10px;
}

.plan-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.77);
  box-shadow: var(--soft-shadow);
}

.plan-ring {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}

.plan-ring svg {
  width: 100%;
  transform: rotate(-90deg);
}

.plan-ring circle {
  fill: none;
  stroke: #f0e7dd;
  stroke-width: 4;
}

.plan-ring .ring-progress {
  stroke: var(--accent);
  stroke-dasharray: 42 100;
  stroke-linecap: round;
}

.plan-ring > strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-size: 12px;
}

.plan-copy {
  min-width: 0;
}

.subject-pill {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 6px;
  border-radius: 5px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.subject-pill.math {
  background: var(--accent);
}

.plan-copy > strong {
  display: block;
  font-size: 14px;
}

.plan-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.round-action {
  width: 36px;
  height: 36px;
  margin-left: auto;
  flex: 0 0 36px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 19px;
}

.subjects-scroll {
  display: flex;
  gap: 8px;
  margin: 12px -18px 0;
  padding: 3px 18px 9px;
  overflow: auto;
  scrollbar-width: none;
}

.subjects-scroll::-webkit-scrollbar {
  display: none;
}

.subject-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 10px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 700;
}

.subject-chip span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 8px;
  background: var(--paper-deep);
  color: var(--accent-dark);
  font-size: 9px;
}

.subject-chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 15px rgba(255, 107, 44, 0.22);
}

.subject-chip.is-active span {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.subject-chip.coming {
  border-style: dashed;
  color: var(--muted);
}

.task-heading {
  margin-top: 18px;
}

.text-button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 800;
}

.task-list {
  display: grid;
  gap: 9px;
}

.task-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.task-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
}

.task-icon.orange { background: var(--accent-soft); color: var(--accent-dark); }
.task-icon.yellow { background: #fff3d8; color: #b37800; }
.task-icon.green { background: var(--green-soft); color: var(--green); }

.task-item strong,
.task-item small {
  display: block;
}

.task-item strong {
  font-size: 12px;
}

.task-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.task-item em {
  padding: 5px 7px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.mini-progress {
  display: block;
  width: 70%;
  height: 3px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #eee5dc;
}

.mini-progress b {
  display: block;
  height: 100%;
  background: var(--accent);
}

.task-item.is-done {
  opacity: 0.77;
}

.task-item.is-done em {
  background: var(--green-soft);
  color: var(--green);
}

.score-card {
  position: relative;
  display: flex;
  min-height: 126px;
  margin-top: 20px;
  padding: 19px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: white;
}

.score-card::before {
  position: absolute;
  right: -45px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border: 24px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  content: "";
}

.score-card .eyebrow {
  color: #ffb18d;
}

.score-card h2 {
  margin: 6px 0;
  font-size: 14px;
}

.score-card h2 strong {
  margin-left: 5px;
  color: #ff9667;
  font-size: 30px;
}

.score-card h2 small {
  color: #aaa39d;
  font-size: 10px;
}

.score-card p:last-child {
  width: 225px;
  margin-bottom: 0;
  color: #c5bfba;
  font-size: 9px;
  line-height: 1.7;
}

.score-card p span {
  color: #69dca3;
}

.spark-bars {
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 72px;
  height: 70px;
  margin: auto 0 2px auto;
}

.spark-bars i {
  width: 7px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(#ff9b6d, #f66124);
}

/* Practice */
.practice-screen {
  padding-right: 16px;
  padding-left: 16px;
  background: #fffaf4;
}

.practice-header {
  display: grid;
  grid-template-columns: 38px 1fr 74px;
  align-items: center;
  text-align: center;
}

.practice-header span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
}

.practice-header strong {
  display: block;
  font-size: 13px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 23px;
  line-height: 1;
}

.icon-button.bookmark {
  margin-left: auto;
  font-size: 19px;
}

.practice-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.practice-tools > span {
  color: var(--accent-dark);
  font-size: 7px;
  font-weight: 800;
  white-space: nowrap;
}

.icon-button.bookmark.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.question-progress {
  height: 5px;
  margin: 16px 1px 20px;
  overflow: hidden;
  border-radius: 9px;
  background: #e8dfd6;
}

.question-progress i {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffad65);
  transition: width 0.25s ease;
}

.question-meta {
  display: flex;
  gap: 6px;
  margin: 0 2px 10px;
}

.question-meta span {
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--paper-deep);
  color: #746b63;
  font-size: 8px;
  font-weight: 700;
}

.question-meta span:first-child {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.question-card {
  position: relative;
  padding: 22px 17px 17px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.question-number {
  position: absolute;
  top: -11px;
  left: 16px;
  padding: 5px 11px;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.question-card > p:first-of-type {
  margin-bottom: 19px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.9;
}

.formula {
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.answer-list {
  display: grid;
  gap: 9px;
}

.answer-list button {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  border: 1.5px solid #e6ddd3;
  border-radius: 15px;
  background: #fffefa;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.answer-list button b {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 11px;
  background: var(--paper-deep);
  color: #625b54;
  font-size: 11px;
}

.answer-list button span {
  font-family: Georgia, "Songti SC", serif;
  font-size: 14px;
}

.answer-list button i {
  width: 16px;
  height: 16px;
  border: 1.5px solid #cfc3b7;
  border-radius: 50%;
}

.answer-list button.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.answer-list button.is-selected b {
  background: var(--accent);
  color: white;
}

.answer-list button.is-selected i {
  border: 5px solid var(--accent);
  background: white;
}

.answer-list button.is-correct {
  border-color: var(--green);
  background: var(--green-soft);
}

.answer-list button.is-correct b {
  background: var(--green);
  color: white;
}

.answer-list button.is-correct i::after {
  display: block;
  color: var(--green);
  font-style: normal;
  content: "✓";
  transform: translate(2px, -4px);
}

.answer-list button.is-wrong {
  border-color: var(--red);
  background: var(--red-soft);
}

.answer-list button.is-wrong b {
  background: var(--red);
  color: white;
}

.answer-list[aria-multiselectable="true"] button i {
  border-radius: 5px;
}

.answer-list[aria-multiselectable="true"] button.is-selected i {
  position: relative;
  border: 0;
  background: var(--accent);
}

.answer-list[aria-multiselectable="true"] button.is-selected i::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 9px;
  font-style: normal;
  content: "✓";
}

.selection-hint {
  margin: 12px 0 9px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.selection-hint.is-warning {
  color: var(--red);
  font-weight: 800;
}

.primary-button {
  width: 100%;
  min-height: 47px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff7841, #f45a1c);
  box-shadow: 0 8px 17px rgba(220, 75, 17, 0.23);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.primary-button:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.55;
}

.feedback {
  margin-top: 14px;
  padding: 16px;
  border: 1.5px solid var(--red);
  border-left-width: 5px;
  border-radius: 21px;
  background: var(--red-soft);
}

.feedback-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.feedback-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 19px;
}

.feedback-heading strong {
  display: block;
  color: #a82f29;
  font-size: 13px;
}

.feedback-heading p {
  margin: 2px 0 0;
  color: #9a6863;
  font-size: 8px;
}

.answer-badge {
  margin-left: auto;
  padding: 5px 7px;
  border-radius: 7px;
  background: white;
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
}

.explanation,
.knowledge-points {
  margin-top: 14px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.explanation h3,
.knowledge-points h3 {
  margin-bottom: 10px;
  font-size: 11px;
}

.explanation ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: explanation-step;
}

.explanation li {
  position: relative;
  padding-left: 25px;
  counter-increment: explanation-step;
}

.explanation li::before {
  position: absolute;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 8px;
  font-weight: 900;
  content: counter(explanation-step);
}

.explanation li b,
.explanation li span {
  display: block;
}

.explanation li b {
  margin-bottom: 2px;
  font-size: 9px;
}

.explanation li span {
  color: #6f6760;
  font-family: "STSong", serif;
  font-size: 9px;
  line-height: 1.7;
}

.knowledge-points button {
  margin: 0 5px 5px 0;
  padding: 6px 8px;
  border: 1px solid #f0d8cf;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 8px;
  font-weight: 800;
}

.knowledge-points button span {
  margin-left: 4px;
  color: var(--accent-dark);
  font-weight: 600;
}

.feedback-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.success-feedback .feedback-icon {
  background: var(--green);
}

.success-feedback .feedback-heading strong {
  color: #16764f;
}

.success-feedback .feedback-heading p {
  color: #55806d;
}

.feedback-actions button {
  min-height: 40px;
  border: 1px solid #e7c9c2;
  border-radius: 12px;
  background: white;
  font-size: 10px;
  font-weight: 800;
}

.feedback-actions button:last-child {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.feedback-actions button.is-active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.question-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 7px;
  margin-top: 16px;
}

.question-navigation button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  font-size: 9px;
  font-weight: 800;
}

.question-navigation button:last-child {
  background: var(--ink);
  color: white;
}

.question-navigation button:nth-child(2) {
  border-style: dashed;
  color: var(--accent-dark);
}

.training-report {
  position: absolute;
  z-index: 10;
  inset: 0;
  min-height: 100svh;
  padding: calc(70px + env(safe-area-inset-top, 0px)) 20px calc(105px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
}

.report-hero {
  padding: 28px 16px;
  border-radius: 27px;
  background: linear-gradient(145deg, #292621, #3f3932);
  color: white;
  text-align: center;
}

.report-hero > span {
  font-size: 42px;
}

.report-hero p {
  margin: 8px 0 1px;
  color: #ffc4a9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.report-hero h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.report-hero > strong {
  display: block;
  color: #ff8a56;
  font-family: Georgia, serif;
  font-size: 44px;
}

.report-hero small {
  color: #c3bbb4;
  font-size: 9px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0;
  padding: 16px 4px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: white;
}

.report-grid span {
  text-align: center;
}

.report-grid span + span {
  border-left: 1px solid var(--line);
}

.report-grid strong,
.report-grid small {
  display: block;
}

.report-grid strong {
  color: var(--accent-dark);
  font-size: 18px;
}

.report-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

/* AI */
.screen-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 5px;
}

.screen-title h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 23px;
}

.ai-orb {
  display: inline-grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(145deg, #ff9b64, var(--accent));
  box-shadow: 0 7px 15px rgba(255, 107, 44, 0.25);
  color: white;
  font-size: 15px;
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}

.online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(35, 153, 104, 0.12);
}

.ai-greeting {
  margin: 17px 0 13px;
  color: #6d665f;
  font-family: "STKaiti", serif;
  font-size: 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.quick-grid button {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  text-align: left;
}

.quick-grid button > span {
  display: grid;
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 900;
}

.quick-grid button:nth-child(2) > span { background: #fff3d5; color: #a66d00; }
.quick-grid button:nth-child(3) > span { background: #e8f0ff; color: var(--blue); }
.quick-grid button:nth-child(4) > span { background: var(--green-soft); color: var(--green); }

.quick-grid strong {
  align-self: end;
  font-size: 10px;
}

.quick-grid small {
  align-self: start;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.context-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed #e5b79f;
  border-radius: 19px;
  background: linear-gradient(135deg, #fff8f0, #ffefe4);
}

.context-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.context-label span {
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-size: 7px;
  font-weight: 900;
}

.context-label strong {
  color: var(--accent-dark);
  font-size: 9px;
}

.context-card > p {
  margin: 10px 0 3px;
  color: var(--muted);
  font-size: 8px;
}

.context-card blockquote {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.context-card > div:last-child {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.context-card > div:last-child span {
  padding: 4px 6px;
  border-radius: 6px;
  background: white;
  color: #766b63;
  font-size: 7px;
}

.context-card > div:last-child span:last-child {
  color: var(--green);
}

.chat-thread {
  margin-top: 18px;
}

.user-message {
  width: 80%;
  margin-left: auto;
  padding: 10px 12px;
  border-radius: 15px 15px 4px 15px;
  background: var(--ink);
  color: white;
  font-size: 10px;
  line-height: 1.6;
}

.ai-message {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px 20px 20px 20px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.message-author {
  display: flex;
  align-items: center;
  gap: 7px;
}

.message-author .ai-orb {
  width: 26px;
  height: 26px;
  border-radius: 9px 9px 9px 3px;
  font-size: 10px;
}

.message-author strong {
  font-size: 10px;
}

.message-author small {
  margin-left: auto;
  color: var(--muted);
  font-size: 7px;
}

.ai-message > p {
  margin: 11px 0;
  color: #57514c;
  font-family: "STSong", serif;
  font-size: 10px;
  line-height: 1.75;
}

.step-guide {
  padding: 12px;
  border-radius: 14px;
  background: #faf5ee;
}

.step-guide h3 {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 10px;
}

.step-guide p {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 8px;
  line-height: 1.6;
}

.step-guide p:last-child {
  margin-bottom: 0;
}

.step-guide p b {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-size: 7px;
}

.ai-message footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  color: #9a928b;
  font-size: 7px;
}

.ai-message footer button {
  border: 0;
  background: transparent;
  font-size: 14px;
}

.follow-up {
  margin: 14px 0 78px;
}

.follow-up p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.follow-up > div {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.follow-up button {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid #e5d7cb;
  border-radius: 99px;
  background: white;
  font-size: 8px;
}

.composer {
  position: fixed;
  z-index: 15;
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  left: max(14px, calc((100vw - 430px) / 2 + 14px));
  display: flex;
  gap: 7px;
  max-width: 402px;
  margin: auto;
  padding: 6px 6px 6px 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 24px rgba(40, 30, 20, 0.14);
  backdrop-filter: blur(14px);
}

.composer input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
}

.composer button {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-size: 17px;
  font-weight: 900;
}

/* Profile */
.profile-header {
  padding: 5px 2px 12px;
}

.profile-header h1 {
  margin-bottom: 0;
  font-family: "STKaiti", serif;
  font-size: 26px;
}

.member-card {
  padding: 15px;
  border-radius: 24px;
  background: linear-gradient(145deg, #302d29, #484039);
  box-shadow: var(--shadow);
  color: white;
}

.member-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.profile-avatar {
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
}

.member-top strong,
.member-top p {
  display: block;
}

.member-top strong {
  font-size: 14px;
}

.member-top p {
  margin: 3px 0 0;
  color: #c9c0b8;
  font-size: 8px;
}

.member-top > button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: white;
  font-size: 25px;
}

.member-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2c56e, #d99b31);
  color: #4e381c;
}

.member-banner > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-banner > div > span {
  font-size: 21px;
}

.member-banner p {
  margin: 0;
}

.member-banner strong,
.member-banner small {
  display: block;
}

.member-banner strong {
  font-size: 10px;
}

.member-banner small {
  margin-top: 2px;
  font-size: 7px;
}

.member-banner button {
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(75, 50, 18, 0.15);
  color: #4e381c;
  font-size: 8px;
  font-weight: 900;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 13px 0 17px;
  padding: 14px 5px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.stats-row span {
  text-align: center;
}

.stats-row span + span {
  border-left: 1px solid var(--line);
}

.stats-row strong,
.stats-row small {
  display: block;
}

.stats-row strong {
  font-family: Georgia, serif;
  font-size: 18px;
}

.stats-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.profile-block {
  margin-top: 13px;
}

.profile-block h2 {
  margin: 0 2px 10px;
  font-size: 15px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.profile-grid button {
  display: grid;
  grid-template-columns: 37px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  text-align: left;
}

.menu-icon {
  display: grid;
  grid-row: 1 / 3;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
}

.menu-icon.coral { background: var(--red-soft); color: var(--red); }
.menu-icon.amber { background: #fff4da; color: #b87b00; }
.menu-icon.blue { background: #eaf1ff; color: var(--blue); }
.menu-icon.green { background: var(--green-soft); color: var(--green); }

.profile-grid strong {
  align-self: end;
  font-size: 10px;
}

.profile-grid small {
  align-self: start;
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.settings-block {
  padding: 14px 14px 3px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.settings-block h2 {
  margin-left: 0;
}

.settings-block > button {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #f0e9e1;
  background: transparent;
  text-align: left;
}

.setting-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--paper-deep);
  color: var(--accent-dark);
  font-weight: 900;
}

.settings-block strong,
.settings-block small {
  display: block;
}

.settings-block strong {
  font-size: 10px;
}

.settings-block small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.settings-block b {
  padding: 3px 5px;
  border-radius: 5px;
  background: #fff1c9;
  color: #9b6600;
  font-size: 6px;
}

.settings-block em {
  color: #aaa098;
  font-size: 18px;
  font-style: normal;
}

.version {
  margin: 18px 0 0;
  color: #a59d95;
  font-size: 8px;
  text-align: center;
}

.data-page-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.data-page-header > button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.data-page-header h1 {
  margin: 2px 0 0;
  font-size: 24px;
}

.data-summary,
.report-overview,
.report-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

.data-summary,
.report-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.data-summary strong,
.report-overview strong {
  display: block;
  font-size: 20px;
}

.data-summary small,
.report-overview small {
  color: var(--muted);
  font-size: 9px;
}

.record-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.record-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.record-item p,
.record-item small,
.report-section p {
  margin: 0;
}

.record-item small,
.record-item time {
  color: var(--muted);
  font-size: 10px;
}

.record-result {
  grid-row: span 2;
  align-self: center;
  color: var(--red);
  font-weight: 800;
}

.record-result.correct {
  color: var(--green);
}

.empty-data {
  padding: 36px 18px;
  color: var(--muted);
  text-align: center;
}

.report-section {
  margin-top: 12px;
}

.report-section h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.subject-performance-row {
  display: grid;
  grid-template-columns: 70px 1fr 48px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
}

.subject-performance-row i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.subject-performance-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.mobile-state-demo {
  margin-top: 13px;
  border: 1px dashed #d8c8b9;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
}

.mobile-state-demo summary {
  padding: 11px 12px;
  color: #6d6259;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  list-style-position: inside;
}

.mobile-state-demo summary span {
  float: right;
  color: #a0968e;
  font-size: 7px;
  font-weight: 600;
}

.mobile-state-demo > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 0 9px 9px;
}

.mobile-state-demo button {
  min-height: 31px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--accent-dark);
  font-size: 7px;
  font-weight: 800;
}

/* Persistent navigation and state surfaces */
.bottom-nav {
  position: fixed;
  z-index: 30;
  right: max(0px, calc((100vw - 430px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 430px) / 2));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 430px;
  min-height: calc(65px + env(safe-area-inset-bottom, 0px));
  margin: auto;
  padding: 7px 7px env(safe-area-inset-bottom, 0px);
  border-top: 1px solid rgba(216, 203, 190, 0.75);
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 -8px 22px rgba(60, 43, 26, 0.07);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #90877f;
  font-size: 8px;
  font-weight: 700;
}

.bottom-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bottom-nav button.is-active {
  color: var(--accent-dark);
}

.bottom-nav button.is-active::before {
  position: absolute;
  top: -7px;
  width: 23px;
  height: 3px;
  border-radius: 0 0 5px 5px;
  background: var(--accent);
  content: "";
}

.bottom-nav .ai-nav i {
  display: grid;
  width: 37px;
  height: 37px;
  margin-top: -19px;
  place-items: center;
  border: 4px solid var(--paper);
  border-radius: 14px 14px 14px 5px;
  background: linear-gradient(145deg, #ff8a51, #f35b1f);
  box-shadow: 0 7px 14px rgba(209, 77, 25, 0.25);
  color: white;
  font-size: 14px;
  font-style: normal;
}

.bottom-nav .ai-nav.is-active::before {
  display: none;
}

.status-demo {
  position: fixed;
  z-index: 50;
  top: 50%;
  left: 50%;
  width: min(330px, calc(100vw - 36px));
  padding: 24px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fffdf9;
  box-shadow: 0 25px 80px rgba(30, 22, 15, 0.28);
  text-align: center;
  transform: translate(-50%, -50%);
}

.status-demo::before {
  position: fixed;
  z-index: -2;
  inset: -100vh -100vw;
  background: rgba(33, 28, 24, 0.48);
  content: "";
  backdrop-filter: blur(3px);
}

.status-demo::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: #fffdf9;
  content: "";
}

.status-visual {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: var(--accent-soft);
}

.status-demo[data-state="loading"] .status-visual {
  border: 7px solid #ffe0cf;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

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

.status-demo[data-state="empty"] .status-visual::before {
  position: absolute;
  inset: 15px 11px;
  border: 3px solid var(--accent);
  border-radius: 5px;
  content: "";
}

.status-demo[data-state="empty"] .status-visual::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 -8px 0 var(--accent);
  content: "";
}

.status-demo[data-state="network"] .status-visual::before {
  position: absolute;
  inset: 15px;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 26px;
  font-weight: 900;
  content: "!";
}

.status-demo[data-state="membership"] .status-visual {
  background: #fff1cc;
}

.status-demo[data-state="membership"] .status-visual::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #a36c00;
  font-size: 27px;
  content: "♛";
}

.status-demo h2 {
  margin-bottom: 7px;
  font-size: 18px;
}

.status-demo p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.status-demo > button:not(.status-close) {
  min-width: 118px;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.status-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: var(--paper-deep);
  font-size: 18px;
}

.toast {
  position: fixed;
  z-index: 60;
  right: max(24px, calc((100vw - 430px) / 2 + 24px));
  bottom: calc(83px + env(safe-area-inset-bottom, 0px));
  left: max(24px, calc((100vw - 430px) / 2 + 24px));
  max-width: 382px;
  margin: auto;
  padding: 11px 15px;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: white;
  font-size: 9px;
  text-align: center;
}

dialog {
  width: min(330px, calc(100vw - 36px));
  padding: 25px 21px 20px;
  border: 0;
  border-radius: 25px;
  background: #fffdf9;
  color: var(--ink);
  box-shadow: 0 25px 80px rgba(30, 22, 15, 0.28);
  text-align: center;
}

dialog::backdrop {
  background: rgba(33, 28, 24, 0.54);
  backdrop-filter: blur(3px);
}

.dialog-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 17px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 900;
}

dialog h2 {
  margin-bottom: 7px;
  font-size: 17px;
}

dialog p {
  color: var(--muted);
  font-size: 10px;
}

dialog > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 17px;
}

dialog button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 10px;
  font-weight: 800;
}

dialog button:last-child {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

#learning-settings-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  text-align: left;
}

#learning-settings-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

#learning-settings-form select,
#learning-settings-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

#learning-settings-dialog {
  max-height: 88svh;
  overflow-y: auto;
}

#learning-settings-form .checkbox-label {
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: start;
}

#learning-settings-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

#learning-settings-form > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 5px;
}

.feature-sheet {
  width: min(390px, 100vw);
  max-width: 430px;
  margin: auto auto 0;
  padding: 11px 18px calc(23px + env(safe-area-inset-bottom, 0px));
  border-radius: 28px 28px 0 0;
  text-align: left;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 15px;
  border-radius: 99px;
  background: #ddd2c7;
}

.sheet-heading {
  display: grid;
  grid-template-columns: 42px 1fr 32px;
  gap: 10px;
  align-items: center;
}

.sheet-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 900;
}

.sheet-heading p {
  margin-bottom: 1px;
  color: var(--accent-dark);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sheet-heading h2 {
  margin-bottom: 0;
  font-size: 17px;
}

.sheet-heading button {
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 18px;
}

.feature-sheet > p {
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.sheet-preview {
  min-height: 77px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #faf5ee;
  color: #5f5750;
  font-size: 9px;
  line-height: 1.8;
}

.feature-sheet > button:last-child {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.demo-dock {
  display: none;
}

@media (max-width: 340px) {
  .screen {
    padding-right: 12px;
    padding-left: 12px;
  }

  .subjects-scroll {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .home-header h1 {
    font-size: 22px;
  }

  .streak-badge,
  .question-meta span:last-child {
    display: none;
  }

  .plan-card {
    gap: 9px;
    padding: 13px;
  }

  .quick-grid button {
    grid-template-columns: 30px 1fr;
    padding: 9px;
  }

  .quick-grid button > span {
    width: 30px;
    height: 34px;
  }

  .question-card {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (min-width: 720px) {
  .prototype-stage {
    min-height: 100svh;
  }

  .phone-shell {
    max-width: 480px;
    min-height: 100svh;
  }

  .screen {
    min-height: 100svh;
  }

  .bottom-nav,
  .composer,
  .toast {
    position: absolute;
  }

  .bottom-nav {
    right: 0;
    left: 0;
  }

  .composer {
    right: 14px;
    left: 14px;
  }

  .training-report {
    min-height: 804px;
  }

  .demo-dock {
    position: sticky;
    top: 38px;
    display: block;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    color: white;
    backdrop-filter: blur(16px);
  }

  .demo-dock .eyebrow {
    color: #ff9d70;
  }

  .demo-dock strong {
    font-size: 16px;
  }

  .demo-buttons {
    display: grid;
    gap: 8px;
    margin-top: 15px;
  }

  .demo-buttons button {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 9px;
    text-align: left;
  }

  .demo-buttons button:hover {
    background: var(--accent);
  }

.mobile-state-demo {
    display: none;
  }
}

.form-dialog {
  width: min(92vw, 440px);
  max-height: 90svh;
  padding: 22px;
  overflow-y: auto;
  border: 0;
  border-radius: 22px;
}

.form-dialog::backdrop {
  background: rgba(20, 27, 36, 0.58);
  backdrop-filter: blur(4px);
}

.form-dialog > p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.form-dialog form,
.form-dialog label {
  display: grid;
  gap: 8px;
}

.form-dialog form {
  gap: 14px;
}

.form-dialog label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.form-dialog select,
.form-dialog textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.form-dialog form > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.form-dialog form > div button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
}

.form-dialog form > div button[type="submit"] {
  background: var(--accent);
  color: #fff;
}

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