.member-vocabulary-zone {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 20px;
  border-top: 1px solid #d9e8e7;
}

.member-vocabulary-zone-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.member-vocabulary-zone-head h2 {
  margin: 4px 0 8px;
  color: #173b5c;
  font-size: clamp(24px, 3vw, 34px);
}

.member-vocabulary-zone-head p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: #60717d;
  line-height: 1.75;
}

.member-vocabulary-zone-status {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid #d7e5e5;
  border-radius: 999px;
  color: #376e67;
  background: #f3faf8;
  font-size: 13px;
  font-weight: 800;
}

.member-vocabulary-plan-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid #d8e5e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fbfcfd;
}

.member-vocabulary-plan-compare > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 82px;
  padding: 12px 14px;
  border-left: 1px solid #e0e9ea;
  color: #657883;
}

.member-vocabulary-plan-compare > div:first-child {
  border-left: 0;
}

.member-vocabulary-plan-compare span {
  font-size: 11px;
  font-weight: 850;
}

.member-vocabulary-plan-compare strong {
  color: #214156;
  font-size: 15px;
}

.member-vocabulary-plan-compare small {
  color: #788993;
  font-size: 12px;
  line-height: 1.5;
}

.member-vocabulary-plan-compare > div.is-current {
  color: #276e62;
  background: #edf8f5;
  box-shadow: inset 0 3px 0 #2f8978;
}

.member-vocabulary-plan-compare > div.is-current strong {
  color: #1d675b;
}

.member-vocabulary-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.member-vocabulary-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  min-height: 242px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #d2e3e3;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffffff 0%, #f7fbfb 100%);
  box-shadow: 0 12px 28px rgba(22, 61, 83, 0.07);
}

.member-vocabulary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #45a391;
}

.member-vocabulary-card[data-level="intermediate"]::before {
  background: #3f82b2;
}

.member-vocabulary-card[data-level="advanced"]::before {
  background: #c7853c;
}

.member-vocabulary-card-head,
.member-vocabulary-card-title,
.member-vocabulary-card-meta,
.member-vocabulary-card-actions {
  display: flex;
  align-items: center;
}

.member-vocabulary-card-head,
.member-vocabulary-card-title {
  justify-content: space-between;
  gap: 12px;
}

.member-vocabulary-level-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #ffffff;
  background: #278672;
  font-size: 20px;
  font-weight: 900;
}

[data-level="intermediate"] .member-vocabulary-level-mark {
  background: #3476a8;
}

[data-level="advanced"] .member-vocabulary-level-mark {
  background: #b26f29;
}

.member-vocabulary-badge {
  padding: 5px 8px;
  border: 1px solid #d6e4e2;
  border-radius: 999px;
  color: #427068;
  background: #f4fbf9;
  font-size: 11px;
  font-weight: 850;
}

.member-vocabulary-card h3 {
  margin: 0;
  color: #183d59;
  font-size: 22px;
}

.member-vocabulary-card-description {
  min-height: 48px;
  margin: 0;
  color: #647581;
  line-height: 1.65;
}

.member-vocabulary-card-meta {
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: #415968;
  font-size: 13px;
  font-weight: 750;
}

.member-vocabulary-card-meta span {
  padding: 4px 7px;
  border-radius: 5px;
  background: #edf5f5;
}

.member-vocabulary-card-actions {
  gap: 8px;
  margin-top: auto;
}

.member-vocabulary-card-actions .button {
  min-width: 0;
  flex: 1;
  justify-content: center;
}

.member-vocabulary-card.is-locked {
  border-color: #d9e0e3;
  background: #fbfcfd;
  box-shadow: none;
}

.member-vocabulary-card.is-locked::after {
  content: "会员专属";
  position: absolute;
  top: 16px;
  right: -30px;
  width: 120px;
  padding: 5px 0;
  transform: rotate(42deg);
  color: #617481;
  background: #edf2f4;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.member-vocabulary-lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #d8e4e6;
  border-left: 4px solid #2f8b78;
  background: #f8fbfb;
}

.member-vocabulary-lock-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #c9deda;
  border-radius: 8px;
  color: #2f7567;
  font-size: 12px;
  font-weight: 900;
}

.member-vocabulary-lock strong {
  color: #234455;
}

.member-vocabulary-lock p {
  margin: 4px 0 0;
  color: #667782;
  font-size: 13px;
  line-height: 1.6;
}

.member-vocabulary-lock b {
  color: #1d6357;
}

.member-vocabulary-page {
  min-height: 100vh;
  background: #f7fafb;
}

.member-page-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 80px;
}

.member-page-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d8e5e6;
}

.member-page-hero h1 {
  margin: 4px 0 8px;
  color: #173b5c;
  font-size: clamp(28px, 4vw, 44px);
}

.member-page-hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 0;
  color: #60717d;
  line-height: 1.7;
}

.member-page-status {
  min-height: 24px;
  color: #376e67;
  font-size: 13px;
  font-weight: 800;
}

.member-vocabulary-lock-full {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin-top: 26px;
  padding: 28px;
  border: 1px solid #d5e1e3;
  background: #ffffff;
  text-align: center;
}

.member-vocabulary-lock-full h2 {
  margin: 8px 0;
  color: #1b435a;
}

.member-vocabulary-lock-full p {
  max-width: 560px;
  margin: 0;
  color: #60717d;
  line-height: 1.7;
}

.member-vocabulary-lock-full b {
  color: #1d6357;
}

.member-learning-shell {
  margin-top: 24px;
}

.member-print-resource {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  padding: 15px 17px;
  border: 1px solid #cddfdf;
  border-left: 4px solid #2f8978;
  border-radius: 7px;
  background: #f8fbfb;
}

.member-print-resource__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 54px;
  border: 1px solid #bcd5d1;
  border-radius: 5px;
  color: #226b61;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.member-print-resource__copy {
  min-width: 0;
}

.member-print-resource__copy h3,
.member-print-resource__copy p {
  margin: 0;
}

.member-print-resource__copy h3 {
  color: #183f55;
  font-size: 17px;
}

.member-print-resource__copy p:not(.eyebrow),
.member-print-resource__copy small {
  display: block;
  margin-top: 4px;
  color: #667b82;
  font-size: 12px;
  line-height: 1.45;
}

.member-print-resource__copy small {
  color: #2f746b;
  font-weight: 750;
}

.member-print-resource__actions {
  display: flex;
  gap: 8px;
}

.member-learning-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.member-learning-header h2 {
  margin: 4px 0;
  color: #173b5c;
}

.member-learning-header p {
  margin: 0;
  color: #647581;
}

.member-learning-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.member-learning-controls label {
  color: #536a77;
  font-size: 13px;
  font-weight: 800;
}

.member-learning-controls select {
  min-width: min(380px, 48vw);
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #cbdcdf;
  border-radius: 7px;
  color: #234455;
  background: #ffffff;
  font: inherit;
}

.member-group-directory {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #d6e3e4;
  border-radius: 8px;
  background: #ffffff;
}

.member-group-directory-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.member-group-directory-head .eyebrow {
  margin: 0;
}

.member-group-directory-head h3 {
  margin: 4px 0 0;
  color: #173b5c;
  font-size: 17px;
}

.member-group-directory-head > p {
  max-width: 360px;
  margin: 0;
  color: #687984;
  font-size: 13px;
  line-height: 1.6;
}

.member-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 9px;
}

.member-group-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid #dbe6e7;
  border-radius: 6px;
  background: #fbfcfc;
}

.member-group-card.is-active {
  border-color: #85b9ae;
  background: #f2faf8;
  box-shadow: inset 3px 0 0 #2d8877;
}

.member-group-card-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.member-group-card-copy strong {
  color: #173b5c;
  font-size: 14px;
}

.member-group-card-copy span {
  overflow: hidden;
  color: #526975;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-group-card-copy small {
  color: #758690;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.member-group-card-actions {
  display: grid;
  align-content: start;
  gap: 6px;
}

.member-group-card-actions button {
  min-width: 48px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #c9dcda;
  border-radius: 5px;
  color: #276f63;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.member-group-card-actions button + button {
  border-color: #cddbe4;
  color: #2b628e;
  background: #f5f9fc;
}

.member-group-card-actions button:hover,
.member-group-card-actions button:focus-visible {
  color: #ffffff;
  border-color: #2f8978;
  background: #2f8978;
  outline: none;
}

.member-mode-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid #d5e4e4;
  border-radius: 8px;
  background: #eef6f5;
}

.member-mode-tabs button {
  min-height: 38px;
  padding: 7px 16px;
  border: 0;
  border-radius: 5px;
  color: #58717a;
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.member-mode-tabs button.is-active {
  color: #194c51;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(35, 86, 83, 0.1);
}

.member-group-note {
  margin: 0 0 12px;
  color: #60717d;
  font-size: 13px;
  line-height: 1.65;
}

.member-word-list {
  display: grid;
  gap: 8px;
}

.member-word-row {
  display: grid;
  grid-template-columns: 44px minmax(170px, 0.9fr) minmax(100px, 0.45fr) minmax(150px, 0.8fr) minmax(210px, 1.5fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #dbe6e7;
  border-radius: 7px;
  background: #ffffff;
}

.member-word-number {
  color: #81929a;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.member-word-korean {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.member-word-korean strong {
  color: #143b55;
  font-size: 22px;
}

.member-word-korean small,
.member-word-pos,
.member-word-origin,
.member-word-detail {
  color: #6b7e87;
  font-size: 12px;
  line-height: 1.55;
}

.member-word-pos {
  color: #376e67;
  font-weight: 800;
}

.member-word-meaning {
  min-width: 0;
  color: #202f38;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.5;
}

.member-word-detail {
  min-width: 0;
}

.member-word-detail strong {
  color: #4e6470;
}

.member-word-detail span {
  display: block;
  overflow-wrap: anywhere;
}

.member-word-audio {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #cfe0df;
  border-radius: 50%;
  color: #277467;
  background: #f4fbf9;
  cursor: pointer;
}

.member-word-audio:hover,
.member-word-audio:focus-visible {
  color: #ffffff;
  background: #2f8978;
  outline: none;
}

.member-word-row.is-learned {
  border-color: #b9d9ca;
  background: #f6fcf8;
}

.member-memorize-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
  min-height: 430px;
  padding: 34px 22px;
  border: 1px solid #d7e5e6;
  background: #ffffff;
}

.member-memorize-progress {
  color: #637780;
  font-size: 13px;
  font-weight: 800;
}

.member-memorize-card {
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(620px, 100%);
  min-height: 250px;
  padding: 28px;
  border: 1px solid #cfe0de;
  border-top: 5px solid #2f8978;
  background: linear-gradient(150deg, #f9fdfc, #ffffff);
  text-align: center;
}

.member-memorize-card h3 {
  margin: 10px 0 2px;
  color: #143b55;
  font-size: clamp(38px, 8vw, 68px);
}

.member-memorize-card > p {
  margin: 0;
  color: #6b7e87;
}

.member-memorize-gloss {
  margin-top: 18px;
  color: #22353e;
  font-size: 22px;
  font-weight: 900;
}

.member-memorize-origin {
  margin-top: 8px;
  color: #52706d;
  font-size: 13px;
}

.member-memorize-definition {
  max-width: 560px;
  margin: 10px 0 0;
  color: #5e7079;
  line-height: 1.7;
}

.member-memorize-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.member-quiz-shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid #d7e4e5;
  border-top: 4px solid #2f8978;
  border-radius: 8px;
  background: #ffffff;
}

.member-quiz-progress {
  display: grid;
  gap: 8px;
  color: #60737d;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.member-quiz-progress i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: #e3ecec;
}

.member-quiz-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2f8978;
  transition: width 180ms ease;
}

.member-quiz-question {
  margin: 28px 0 20px;
  text-align: center;
}

.member-quiz-question > p {
  margin: 0 0 10px;
  color: #6c7d86;
  font-size: 13px;
}

.member-quiz-question > div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 22px 56px;
  border: 1px solid #dbe7e6;
  border-radius: 7px;
  background: #f8fcfb;
}

.member-quiz-question h3 {
  margin: 0;
  color: #153d59;
  font-size: 38px;
}

.member-quiz-question span {
  color: #697d87;
  font-size: 13px;
}

.member-quiz-audio {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #c9dfdb;
  border-radius: 50%;
  color: #2d776b;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transform: translateY(-50%);
}

.member-quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.member-quiz-options button {
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #cedde0;
  border-radius: 6px;
  color: #253844;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.member-quiz-options button:hover:not(:disabled),
.member-quiz-options button:focus-visible:not(:disabled) {
  border-color: #2f8978;
  background: #f2faf8;
  outline: none;
}

.member-quiz-options button:disabled {
  cursor: default;
}

.member-quiz-options button.is-correct {
  border-color: #4caa73;
  color: #1d663f;
  background: #edf9f0;
}

.member-quiz-options button.is-wrong {
  border-color: #d88376;
  color: #963e34;
  background: #fff2ef;
}

.member-quiz-feedback {
  min-height: 22px;
  margin: 14px 0 0;
  color: #60727d;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.member-quiz-feedback.is-correct {
  color: #297144;
}

.member-quiz-feedback.is-wrong {
  color: #a6463b;
}

.member-quiz-result {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 12px;
  text-align: center;
}

.member-quiz-result > span {
  color: #31796c;
  font-size: 13px;
  font-weight: 850;
}

.member-quiz-result h3 {
  margin: 0;
  color: #173b5c;
  font-size: 38px;
}

.member-quiz-result p {
  margin: 0;
  color: #61737e;
}

.member-quiz-result > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.member-learning-empty {
  padding: 34px;
  border: 1px dashed #c9dadd;
  color: #637780;
  background: #ffffff;
  text-align: center;
}

@media (max-width: 860px) {
  .member-vocabulary-card-grid {
    grid-template-columns: 1fr;
  }

  .member-vocabulary-card {
    min-height: 0;
  }

  .member-word-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .member-word-pos,
  .member-word-meaning,
  .member-word-detail {
    grid-column: 2 / -1;
  }

  .member-group-directory-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .member-vocabulary-zone,
  .member-page-main {
    width: min(100% - 28px, 1120px);
  }

  .member-vocabulary-zone-head,
  .member-page-hero,
  .member-learning-header {
    align-items: start;
    flex-direction: column;
  }

  .member-vocabulary-zone-status {
    align-self: start;
  }

  .member-vocabulary-plan-compare {
    grid-template-columns: 1fr;
  }

  .member-vocabulary-plan-compare > div {
    min-height: 0;
    border-top: 1px solid #e0e9ea;
    border-left: 0;
  }

  .member-vocabulary-plan-compare > div:first-child {
    border-top: 0;
  }

  .member-vocabulary-lock {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .member-vocabulary-lock .button {
    grid-column: 2;
    justify-self: start;
  }

  .member-learning-controls {
    width: 100%;
    align-items: start;
    flex-direction: column;
  }

  .member-learning-controls select {
    width: 100%;
    min-width: 0;
  }

  .member-print-resource {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .member-print-resource__actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .member-print-resource__actions .button {
    flex: 1;
  }

  .member-word-row {
    gap: 8px;
    padding: 12px 10px;
  }

  .member-word-korean strong {
    font-size: 20px;
  }

  .member-group-directory,
  .member-quiz-shell {
    padding: 14px;
  }

  .member-group-grid,
  .member-quiz-options {
    grid-template-columns: 1fr;
  }

  .member-quiz-question > div {
    padding: 18px 50px 18px 16px;
  }

  .member-quiz-question h3 {
    font-size: 31px;
  }
}
.member-load-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  color: #9b3131;
}

.member-load-error[hidden] { display: none; }
.member-load-error p { margin: 0; flex: 1 1 240px; overflow-wrap: anywhere; }
.member-load-error button { flex: 0 0 auto; }
