:root {
  font-family: "Noto Sans Thai", "Noto Sans SC", sans-serif;
  color: #2f292d;
  background: #fffaf7;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #fffaf7;
}
button,
a {
  font: inherit;
}
.fill-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(232, 194, 177, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 194, 177, 0.11) 1px, transparent 1px);
  background-size: 42px 42px;
}
.fill-brand-bar {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 54px 14px;
  border-bottom: 1px solid #f6ebe7;
  background: rgba(255, 255, 255, 0.82);
}
.fill-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #373238;
  text-decoration: none;
}
.fill-brand > img {
  width: 74px;
  height: 65px;
  object-fit: contain;
}
.fill-brand > span {
  display: flex;
  flex-direction: column;
}
.fill-brand strong {
  font-size: 43px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}
.fill-brand strong span {
  color: #ee6d91;
}
.fill-brand small {
  margin-top: 7px;
  color: #9c9397;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
}
.fill-brand-bar > p {
  margin: 0;
  color: #765c56;
  text-align: center;
  font-size: 20px;
  line-height: 1.35;
  transform: rotate(-4deg);
}
.fill-brand-bar > p span {
  color: #eb7696;
}
.fill-stage {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 760px;
  padding: 20px 4vw 26px;
}
.fill-card {
  position: relative;
  z-index: 2;
  width: min(1220px, 82vw);
  min-height: 680px;
  padding: 36px 48px 30px;
  border: 1px solid #f1e8e9;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(120, 75, 72, 0.11);
}
.fill-progress-row {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) 92px 190px;
  align-items: center;
  gap: 22px;
}
.fill-level-badge,
.fill-exit {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 18px;
}
.fill-level-badge {
  color: #fff;
  background: #eb7194;
  font-size: 22px;
  font-weight: 600;
}
.fill-level-badge i {
  font-style: normal;
  font-size: 26px;
}
.fill-progress-track {
  height: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #ececf4;
}
.fill-progress-track span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: #ec6f93;
  transition: width 0.25s ease;
}
.fill-progress-row > strong {
  color: #77737b;
  font-size: 23px;
}
.fill-exit {
  color: #39343a;
  background: #f3f3f7;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.fill-exit span {
  font-size: 28px;
  font-weight: 300;
}
.fill-mode-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 18px;
}
.fill-mode-tabs button {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid #eadfe2;
  border-radius: 999px;
  color: #766a6e;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.fill-mode-tabs button.is-active {
  color: #d83e68;
  border-color: #f0a9bd;
  background: #fff2f6;
}
.fill-mode-tabs b {
  min-width: 24px;
  display: inline-grid;
  place-items: center;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f4e9ed;
}
.fill-question-heading {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 6px 0 22px;
}
.fill-review-back {
  position: absolute;
  left: 0;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #efb7c5;
  border-radius: 12px;
  color: #d83e68;
  background: #fff7fa;
  cursor: pointer;
  font-weight: 800;
}
.fill-review-back[hidden] {
  display: none;
}
.fill-question-heading h1 {
  margin: 0;
  color: #161418;
  font-size: 31px;
  line-height: 1.3;
  text-align: center;
}
.fill-question-heading > span {
  font-size: 32px;
}
.fill-sentence-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px 140px;
  border-radius: 22px;
  background: #fff4f6;
}
.fill-sentence-card p {
  margin: 0;
  color: #101010;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.fill-sentence-card small {
  margin-top: 20px;
  color: #89858a;
  font-size: 20px;
}
.fill-save-button {
  position: absolute;
  right: 22px;
  top: 22px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #efb7c5;
  border-radius: 12px;
  color: #db3f65;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.fill-save-button.is-saved {
  color: #fff;
  background: #e9476d;
}
.fill-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin: 26px 45px 0;
}
.fill-option {
  min-height: 88px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid var(--option-border, #bfd7fb);
  border-radius: 18px;
  color: #111;
  background: var(--option-bg, #f1f6ff);
  cursor: pointer;
  text-align: left;
}
.fill-option:nth-child(2) {
  --option-border: #f3d49c;
  --option-bg: #fff8e9;
}
.fill-option:nth-child(3) {
  --option-border: #bfe4c8;
  --option-bg: #f0fbf3;
}
.fill-option:nth-child(4) {
  --option-border: #d8c6f5;
  --option-bg: #f7f1ff;
}
.fill-option b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--option-dot, #8fb8f5);
  font-size: 22px;
}
.fill-option:nth-child(2) b {
  --option-dot: #f4c464;
}
.fill-option:nth-child(3) b {
  --option-dot: #7fd095;
}
.fill-option:nth-child(4) b {
  --option-dot: #bb96ef;
}
.fill-option span {
  justify-self: center;
  padding-right: 48px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 33px;
  font-weight: 600;
}
.fill-option:hover,
.fill-option.is-selected {
  box-shadow: 0 0 0 3px rgba(235, 111, 148, 0.18);
  transform: translateY(-1px);
}
.fill-option.is-correct {
  border-color: #54ad6e;
  background: #eaf8ee;
}
.fill-option.is-wrong {
  border-color: #e95b75;
  background: #fff0f3;
}
.fill-feedback {
  min-height: 26px;
  margin: 14px 0 2px;
  color: #b54b32;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}
.fill-feedback.is-correct {
  color: #2d8b4a;
}
.fill-submit {
  min-width: 315px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 6px auto 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #eb7194;
  cursor: pointer;
  font-size: 23px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(224, 74, 116, 0.18);
}
.fill-submit:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.fill-submit span {
  font-size: 33px;
  font-weight: 300;
}
.fill-review-list[hidden] {
  display: none;
}
.fill-review-list {
  padding-top: 4px;
}
.fill-review-list > header {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, .85fr);
  align-items: center;
  gap: 22px;
  padding: 18px 20px;
  border: 1px solid #f2dce3;
  border-radius: 18px;
  background: #fff9fb;
}
.fill-review-list > header > div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
#fill-review-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #ec527d;
  font-size: 25px;
  font-weight: 900;
}
.fill-review-list h1 {
  margin: 0;
  color: #633c4b;
  font-size: 24px;
}
.fill-review-list header p {
  margin: 3px 0 0;
  color: #88736a;
  font-weight: 700;
}
.fill-review-search {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #e5dadd;
  border-radius: 13px;
  background: #fff;
}
.fill-review-search span {
  color: #8d8588;
  font-size: 27px;
}
.fill-review-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #443a3f;
  background: transparent;
  font: inherit;
  font-weight: 700;
}
.fill-review-items {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.fill-review-item {
  min-height: 74px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(190px, .34fr) 142px;
  align-items: center;
  gap: 14px;
  padding: 10px 13px;
  border: 1px solid #f0dfe3;
  border-radius: 14px;
  background: #fff;
}
.fill-review-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #bb496a;
  background: #fff0f4;
  font-weight: 900;
}
.fill-review-sentence {
  min-width: 0;
  color: #171316;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.fill-review-answer {
  min-width: 0;
}
.fill-review-answer b,
.fill-review-answer span,
.fill-review-answer small {
  display: block;
  overflow-wrap: anywhere;
}
.fill-review-answer b {
  color: #4b8b4b;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 19px;
}
.fill-review-answer span {
  color: #897b80;
  font-size: 13px;
}
.fill-review-answer small {
  color: #765d54;
  font-size: 13px;
  font-weight: 700;
}
.fill-review-practice {
  min-height: 44px;
  border: 1px solid #ed9db4;
  border-radius: 12px;
  color: #d83e68;
  background: #fff5f8;
  cursor: pointer;
  font-weight: 900;
}
.fill-review-practice:hover {
  color: #fff;
  background: #e9476d;
}
.fill-review-list-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #88777d;
  border: 1px dashed #eccbd5;
  border-radius: 16px;
  background: #fffafb;
  text-align: center;
  font-weight: 800;
}
.fill-review-list > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  color: #85777c;
  font-weight: 700;
}
.fill-review-pages {
  display: flex;
  align-items: center;
  gap: 9px;
}
.fill-review-pages button {
  width: 40px;
  height: 40px;
  border: 1px solid #ead4db;
  border-radius: 11px;
  color: #d44269;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}
.fill-review-pages button:disabled {
  cursor: default;
  opacity: .35;
}
.fill-empty {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.fill-empty[hidden] {
  display: none !important;
}
.fill-empty > span {
  color: #e66b8d;
  font-size: 64px;
}
.fill-empty h2 {
  margin: 8px 0;
  color: #382f34;
}
.fill-empty p {
  max-width: 520px;
  margin: 0;
  color: #83777c;
}
.fill-empty button {
  margin-top: 22px;
  padding: 12px 24px;
  border: 1px solid #e9a7ba;
  border-radius: 999px;
  color: #d53c63;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.fill-study-cat {
  position: absolute;
  z-index: 1;
  left: -40px;
  bottom: -10px;
  width: min(470px, 32vw);
  filter: drop-shadow(0 16px 26px rgba(104, 60, 44, 0.13));
}
.fill-cheer,
.fill-note {
  position: absolute;
  z-index: 3;
  color: #785d58;
  background: #fff2f4;
  font-size: 25px;
  transform: rotate(-8deg);
}
.fill-cheer {
  left: 3vw;
  top: 255px;
  padding: 18px 26px;
  border-radius: 44% 56% 51% 49%;
}
.fill-cheer b {
  color: #eb6d91;
}
.fill-note {
  right: 1.5vw;
  top: 285px;
  padding: 20px 22px;
  text-align: center;
  transform: rotate(6deg);
}
.fill-footer {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 54px;
  color: #958d90;
  border-top: 1px solid #f3e9e6;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}
@media (max-width: 1100px) {
  .fill-card {
    width: min(920px, 92vw);
    padding-inline: 28px;
  }
  .fill-study-cat {
    opacity: 0.14;
  }
  .fill-cheer,
  .fill-note {
    display: none;
  }
  .fill-progress-row {
    grid-template-columns: 130px minmax(150px, 1fr) 78px 165px;
  }
  .fill-options {
    margin-inline: 0;
  }
}
@media (max-width: 700px) {
  .fill-brand-bar {
    height: 82px;
    padding: 12px 16px;
  }
  .fill-brand > img {
    width: 49px;
    height: 43px;
  }
  .fill-brand strong {
    font-size: 27px;
  }
  .fill-brand small {
    display: none;
  }
  .fill-brand-bar > p {
    font-size: 12px;
  }
  .fill-stage {
    display: block;
    min-height: 0;
    padding: 12px;
  }
  .fill-card {
    width: 100%;
    min-height: calc(100vh - 126px);
    padding: 16px 13px 24px;
    border-radius: 22px;
  }
  .fill-progress-row {
    grid-template-columns: 92px minmax(80px, 1fr) 58px;
  }
  .fill-level-badge {
    min-height: 44px;
    border-radius: 13px;
    font-size: 15px;
  }
  .fill-level-badge i {
    font-size: 18px;
  }
  .fill-progress-track {
    height: 12px;
  }
  .fill-progress-row > strong {
    font-size: 14px;
  }
  .fill-exit {
    grid-column: 1/-1;
    min-height: 40px;
    font-size: 13px;
  }
  .fill-mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    margin: 12px 0;
  }
  .fill-mode-tabs button {
    min-width: 0;
    padding: 7px 4px;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
  }
  .fill-mode-tabs b {
    min-width: 18px;
    margin-left: 1px;
    padding-inline: 4px;
  }
  .fill-question-heading {
    margin: 8px 0 14px;
  }
  .fill-question-heading h1 {
    font-size: 20px;
  }
  .fill-question-heading > span {
    font-size: 22px;
  }
  .fill-review-back {
    position: static;
    order: 3;
    width: 100%;
    margin-top: 2px;
    font-size: 12px;
  }
  .fill-question-heading:has(.fill-review-back:not([hidden])) {
    flex-wrap: wrap;
  }
  .fill-sentence-card {
    min-height: 180px;
    padding: 58px 16px 24px;
  }
  .fill-sentence-card p {
    font-size: 34px;
  }
  .fill-sentence-card small {
    font-size: 15px;
    text-align: center;
  }
  .fill-save-button {
    right: 10px;
    top: 10px;
    min-height: 40px;
    font-size: 12px;
  }
  .fill-options {
    gap: 9px;
    margin-top: 14px;
  }
  .fill-option {
    min-height: 68px;
    grid-template-columns: 34px 1fr;
    padding: 8px 10px;
    border-radius: 14px;
  }
  .fill-option b {
    width: 31px;
    height: 31px;
    font-size: 16px;
  }
  .fill-option span {
    padding-right: 34px;
    font-size: 24px;
  }
  .fill-submit {
    min-width: 0;
    width: 100%;
    min-height: 58px;
    font-size: 18px;
  }
  .fill-footer {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 10px;
  }
  .fill-footer span:last-child {
    display: none;
  }
  .fill-study-cat {
    display: none;
  }
  .fill-review-list > header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px;
  }
  #fill-review-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 21px;
  }
  .fill-review-list h1 {
    font-size: 19px;
  }
  .fill-review-list header p {
    font-size: 12px;
  }
  .fill-review-search {
    min-height: 46px;
    padding-inline: 11px;
  }
  .fill-review-search input {
    font-size: 12px;
  }
  .fill-review-item {
    grid-template-columns: 34px minmax(0, 1fr) 104px;
    gap: 8px;
    padding: 10px 9px;
  }
  .fill-review-number {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .fill-review-sentence {
    font-size: 17px;
  }
  .fill-review-answer {
    grid-column: 2 / -1;
    display: flex;
    align-items: baseline;
    gap: 7px;
  }
  .fill-review-answer b {
    font-size: 16px;
  }
  .fill-review-answer span,
  .fill-review-answer small {
    font-size: 11px;
  }
  .fill-review-practice {
    grid-column: 3;
    grid-row: 1;
    min-height: 40px;
    padding: 5px;
    font-size: 11px;
  }
  .fill-review-list > footer {
    align-items: flex-start;
    flex-direction: column;
    font-size: 12px;
  }
  .fill-review-pages {
    align-self: center;
  }
}
