.cmt-panel {
  --cmt-green: #0fb486;
  --cmt-green-deep: #087e62;
  --cmt-text: #1c3831;
  --cmt-muted: #718780;
  --cmt-line: #dcebe6;
  position: fixed;
  inset: 0;
  z-index: 10020;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--cmt-text);
  background: #eef8f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.cmt-panel[hidden],
.cmt-panel [hidden] {
  display: none !important;
}

.cmt-panel *,
.cmt-panel *::before,
.cmt-panel *::after {
  box-sizing: border-box;
}

.cmt-panel button {
  margin: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cmt-panel button:focus-visible {
  outline: 3px solid rgba(46, 112, 255, .34);
  outline-offset: 2px;
}

.cmt-shell {
  width: min(100%, 430px);
  min-height: 100%;
  margin: 0 auto;
  background: #eef8f5;
  box-shadow: 0 0 50px rgba(20, 54, 44, .12);
}

.cmt-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  min-height: calc(48px + env(safe-area-inset-top));
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: end;
  padding: env(safe-area-inset-top) 10px 6px;
  border-bottom: 1px solid rgba(210, 229, 222, .92);
  background: rgba(249, 253, 251, .96);
  box-shadow: 0 4px 18px rgba(27, 73, 60, .045);
  backdrop-filter: blur(18px);
}

.cmt-topbar-title {
  align-self: center;
  overflow: hidden;
  color: #1c3831;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmt-topbar-spacer {
  width: 44px;
  height: 36px;
}

.cmt-icon-button {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid #dcebe6 !important;
  border-radius: 50%;
  color: #41665c !important;
  background: rgba(255, 255, 255, .9) !important;
  font-size: 28px !important;
  font-weight: 350 !important;
  line-height: 1 !important;
}

.cmt-close {
  justify-self: end;
  font-size: 23px !important;
}

.cmt-body {
  width: 100%;
  min-height: calc(100vh - 52px);
}

.cmt-catalog-page {
  display: grid;
  gap: 12px;
  padding: 14px 14px calc(32px + env(safe-area-inset-bottom));
}

.cmt-tests-hero {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #e5f8f1, #d9f3e9);
}

.cmt-hero-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--cmt-green-deep);
  font-size: 12px;
  font-weight: 650;
}

.cmt-tests-hero h1 {
  margin: 10px 0 0;
  color: var(--cmt-green-deep);
  font-size: 25px;
  font-weight: 750;
  line-height: 1.3;
}

.cmt-tests-hero p {
  margin: 6px 0 0;
  color: #55766d;
  font-size: 13px;
  line-height: 1.55;
}

.cmt-test-picker {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.cmt-picker-head {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.cmt-picker-head > div,
.cmt-picker-head strong,
.cmt-picker-head small {
  display: block;
  min-width: 0;
}

.cmt-picker-head strong {
  color: #244b40;
  font-size: 15px;
  font-weight: 750;
}

.cmt-picker-head small {
  margin-top: 2px;
  color: var(--cmt-muted);
  font-size: 11px;
}

.cmt-picker-head > span {
  flex: 0 0 auto;
  color: #7a918a;
  font-size: 11px;
}

.cmt-test-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.cmt-test-card {
  position: relative;
  display: grid !important;
  width: 100%;
  min-width: 0;
  min-height: 80px;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  gap: 10px;
  align-items: center;
  padding: 11px 10px 11px 12px !important;
  overflow: hidden;
  border: 1px solid #dfece7 !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: 0 5px 13px rgba(29, 82, 67, .045);
  text-align: left;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.cmt-test-card:active {
  transform: scale(.985);
}

.cmt-test-card.is-selected {
  border-color: #5cc6a3 !important;
  background: linear-gradient(135deg, #f4fcf9 0%, #e9f8f2 100%) !important;
  box-shadow: 0 6px 16px rgba(15, 180, 134, .11);
}

.cmt-test-icon {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #087e62;
  background: #e2f7ef;
  font-size: 14px;
  font-weight: 750;
}

.tone-pro .cmt-test-icon {
  color: #a66f10;
  background: #fff3d3;
}

.tone-personality .cmt-test-icon {
  color: #7255ad;
  background: #f0eafd;
}

.cmt-test-card.is-selected .cmt-test-icon {
  background: #d5f3e8;
  box-shadow: inset 0 0 0 1px rgba(15, 180, 134, .12);
}

.cmt-test-content {
  display: block;
  min-width: 0;
}

.cmt-test-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.cmt-test-title-row strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #24483e;
  font-size: 15px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmt-test-content > small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #788d87;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmt-access {
  display: inline-flex;
  min-height: 19px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #087e62;
  background: #e4f7f0;
  font-size: 9px;
  white-space: nowrap;
}

.cmt-access.is-vip {
  color: #97640c;
  background: #fff1c6;
}

.cmt-test-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  overflow: hidden;
}

.cmt-test-meta span {
  display: inline-flex;
  min-width: 0;
  height: 18px;
  align-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #617872;
  background: #f0f5f3;
  font-size: 9px;
  white-space: nowrap;
}

.cmt-test-card.is-selected .cmt-test-meta span {
  color: #487267;
  background: rgba(255, 255, 255, .82);
}

.cmt-test-check {
  display: flex;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid #d4e4de;
  border-radius: 50%;
  color: #8aa099;
  background: #fff;
  font-size: 14px;
}

.cmt-test-card.is-selected .cmt-test-check {
  border-color: var(--cmt-green);
  color: #fff;
  background: var(--cmt-green);
  font-size: 11px;
  font-weight: 800;
}

.cmt-selected-card {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--cmt-line);
  border-radius: 18px;
  color: var(--cmt-muted);
  background: #fff;
  font-size: 12px;
  line-height: 1.55;
}

.cmt-selected-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 6px;
}

.cmt-selected-head > div,
.cmt-selected-head small,
.cmt-selected-head strong {
  display: block;
  min-width: 0;
}

.cmt-selected-head small {
  color: #8aa099;
  font-size: 10px;
}

.cmt-selected-head strong {
  margin-top: 2px;
  color: var(--cmt-text);
  font-size: 15px;
  font-weight: 750;
}

.cmt-selected-head > span {
  display: inline-flex;
  min-height: 22px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--cmt-green-deep);
  background: #e4f7f0;
  font-size: 10px;
  white-space: nowrap;
}

.cmt-selected-card p {
  margin: 0;
}

.cmt-membership-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 2px 5px;
  color: #687f78;
  font-size: 11px;
  line-height: 1.5;
}

.cmt-membership-note > span:first-child {
  color: var(--cmt-green);
  font-size: 14px;
}

.cmt-start-button,
.cmt-primary-button,
.cmt-secondary-button,
.cmt-ghost-button {
  display: flex !important;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 750 !important;
}

.cmt-start-button,
.cmt-primary-button {
  color: #fff !important;
  background: var(--cmt-green) !important;
  box-shadow: 0 8px 18px rgba(15, 180, 134, .18);
}

.cmt-start-button:disabled {
  opacity: .68;
  cursor: wait;
}

.cmt-spinner {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cmt-spin .75s linear infinite;
}

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

.cmt-history-card {
  overflow: hidden;
  border: 1px solid var(--cmt-line);
  border-radius: 20px;
  background: #fff;
}

.cmt-history-card h2 {
  margin: 0;
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 750;
}

.cmt-history-card > button {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr) auto 10px;
  gap: 8px;
  align-items: center;
  padding: 11px 13px;
  border-top: 1px solid var(--cmt-line);
  text-align: left;
}

.cmt-history-number {
  display: flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--cmt-green-deep);
  background: #e5f8f1;
  font-size: 11px;
}

.cmt-history-copy {
  display: block;
  min-width: 0;
}

.cmt-history-copy strong,
.cmt-history-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmt-history-copy strong {
  color: #263f38;
  font-size: 13px;
  font-weight: 700;
}

.cmt-history-copy small,
.cmt-history-card time {
  margin-top: 3px;
  color: var(--cmt-muted);
  font-size: 10px;
}

.cmt-history-card time {
  white-space: nowrap;
}

.cmt-history-chevron {
  color: #8aa099;
  font-size: 18px;
}

/* Quiz */
.cmt-quiz-page {
  min-height: calc(100vh - 52px);
  padding: 14px 12px calc(30px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 12% 0%, rgba(105, 199, 255, .18), transparent 34%),
    linear-gradient(180deg, #eef7ff 0%, #f6fbf8 48%, #eef8f4 100%);
}

.cmt-quiz-panel {
  padding: 20px 17px 18px;
  border: 1px solid rgba(220, 232, 241, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 14px 32px rgba(43, 91, 125, .12);
}

.cmt-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.cmt-status-pill {
  display: flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #bdd8ff;
  border-radius: 999px;
  color: #2458ce;
  background: #f6fbff;
  box-shadow: inset 0 -1px 0 rgba(46, 112, 255, .05);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.cmt-status-pill.timer {
  border-color: #a9e2ec;
  color: #075f70;
  background: #effdff;
}

.cmt-status-pill.urgent {
  border-color: #ffc4ae;
  color: #d94b2a;
  background: #fff2ec;
}

.cmt-progress-track {
  position: relative;
  height: 9px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.cmt-answer-progress,
.cmt-time-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  transition: width .2s ease;
}

.cmt-answer-progress {
  z-index: 2;
  max-width: 100%;
  background: linear-gradient(90deg, #7259ff, #11b985);
}

.cmt-time-progress {
  z-index: 1;
  opacity: .28;
  background: linear-gradient(90deg, #12c99a, #49a7ff);
}

.cmt-time-progress.urgent {
  opacity: .5;
  background: linear-gradient(90deg, #ffb242, #ef4c34);
}

.cmt-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.cmt-meta-row span {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 12px;
  border: 2px solid #ffd0a0;
  border-radius: 999px;
  color: #89401d;
  background: #fff9f2;
  font-size: 13px;
  font-weight: 800;
}

.cmt-question-card {
  margin-top: 15px;
}

.cmt-question-index {
  color: #2c64dc;
  font-size: 13px;
  font-weight: 850;
}

.cmt-question-card h1 {
  margin: 10px 0 0;
  color: #111827;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: .3px;
  line-height: 1.55;
}

.cmt-mbti-style .cmt-question-card h1,
.cmt-quiz-page.mbti-style .cmt-question-card h1 {
  font-size: 19px;
}

.cmt-visual-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
  padding: 12px;
  border: 1px solid #dde8f5;
  border-radius: 16px;
  background: #f7fbff;
}

.cmt-visual-board.matrix {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cmt-visual-cell {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe9f4;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(45, 84, 120, .05);
}

.cmt-shape {
  overflow-wrap: anywhere;
  color: #0f766e;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 1px;
  line-height: 1.2;
  text-align: center;
}

.cmt-option-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.cmt-option {
  display: flex !important;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 11px 14px !important;
  border: 2px solid #e3eaf2 !important;
  border-radius: 18px !important;
  color: #111827 !important;
  background: #fff !important;
  box-shadow: 0 5px 12px rgba(43, 78, 112, .04);
  text-align: left;
  transition: border-color .14s ease, transform .14s ease, background .14s ease;
}

.cmt-option:active {
  transform: scale(.99);
}

.cmt-option.active {
  border-color: #2e70ff !important;
  background: linear-gradient(180deg, #f4f9ff, #eefcff) !important;
  box-shadow: 0 8px 18px rgba(46, 112, 255, .12);
}

.cmt-option-label {
  min-width: 38px;
  flex: 0 0 auto;
  color: #111827;
  font-size: 19px;
  font-weight: 850;
}

.cmt-option.active .cmt-option-label {
  color: #2e70ff;
}

.cmt-option-copy {
  display: block;
  min-width: 0;
  flex: 1;
}

.cmt-option-text {
  color: #111827;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
}

.cmt-option-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.cmt-option-visual-cell {
  display: flex;
  min-width: 31px;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1px solid #dfe9f4;
  border-radius: 8px;
  background: #f7fbff;
}

.cmt-option-visual .cmt-shape {
  font-size: 17px;
}

.cmt-quiz-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.cmt-nav-button,
.cmt-submit-button {
  display: flex !important;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  border-radius: 15px !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.cmt-nav-button {
  color: #2458ce !important;
  background: linear-gradient(180deg, #eff6ff, #e2efff) !important;
}

.cmt-nav-button.primary {
  color: #fff !important;
  background: linear-gradient(135deg, #2f74ff, #05b5cf) !important;
  box-shadow: 0 7px 14px rgba(22, 132, 222, .2);
}

.cmt-nav-button:disabled {
  opacity: .48;
  cursor: default;
}

.cmt-submit-button {
  width: 112px;
  margin-top: 13px !important;
  color: #1c2430 !important;
  background: linear-gradient(135deg, #ffb236, #ffd915) !important;
  box-shadow: 0 7px 15px rgba(255, 173, 36, .22);
}

.cmt-answer-sheet {
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid #edf2f6;
}

.cmt-sheet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4d6274;
  font-size: 12px;
  font-weight: 800;
}

.cmt-sheet-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.cmt-sheet-number {
  display: flex !important;
  min-width: 0;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 2px solid #dfe9f2 !important;
  border-radius: 9px !important;
  color: #344255 !important;
  background: #f2f7fb !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.cmt-sheet-number.answered {
  border-color: #b8ead8 !important;
  color: #0f766e !important;
  background: #e9fbf4 !important;
}

.cmt-sheet-number.current {
  border-color: #5ba0ff !important;
  color: #2458ce !important;
  background: #eef6ff !important;
  box-shadow: 0 4px 10px rgba(46, 112, 255, .12);
}

.cmt-sheet-number.current.answered {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(135deg, #2f74ff, #10b981) !important;
}

.cmt-quiz-note {
  margin: 13px 0 0;
  color: #6e8290;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* Results */
.cmt-result-page {
  display: grid;
  gap: 12px;
  padding: 14px 14px calc(32px + env(safe-area-inset-bottom));
  background: #eef8f5;
}

.cmt-card {
  border: 1px solid var(--cmt-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(29, 82, 67, .055);
}

.cmt-result-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 23px 15px;
  text-align: center;
}

.cmt-result-label {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--cmt-green);
  background: #e6fbf3;
  font-size: 12px;
  font-weight: 800;
}

.cmt-result-hero h1 {
  margin: 10px 0 0;
  color: var(--cmt-green-deep);
  font-size: 21px;
  font-weight: 850;
}

.cmt-score-ring {
  display: flex;
  width: 114px;
  height: 114px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  border: 12px solid var(--cmt-green);
  border-right-color: #ffae42;
  border-radius: 50%;
}

.cmt-score-ring strong {
  color: #173f35;
  font-size: 30px;
  font-weight: 900;
}

.cmt-score-ring small {
  color: var(--cmt-muted);
  font-size: 10px;
}

.cmt-result-level {
  margin: 10px 0 0;
  color: var(--cmt-muted);
  font-size: 12px;
  font-weight: 700;
}

.cmt-time-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--cmt-green-deep);
  background: #e9fbf4;
  font-size: 11px;
  font-weight: 800;
}

.cmt-time-summary strong {
  color: var(--cmt-green);
  font-size: 14px;
}

.cmt-time-summary.timeout {
  color: #c84d28;
  background: #fff0ea;
}

.cmt-time-summary.timeout strong {
  color: #c84d28;
}

.cmt-result-card {
  padding: 15px;
}

.cmt-result-card h2 {
  margin: 0;
  color: #1e3731;
  font-size: 17px;
  font-weight: 850;
}

.cmt-body-copy {
  margin: 8px 0 0;
  color: #425b55;
  font-size: 13px;
  line-height: 1.75;
}

.cmt-soft-tip,
.cmt-disclaimer,
.cmt-career-note {
  margin: 9px 0 0;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.6;
}

.cmt-soft-tip {
  color: var(--cmt-green-deep);
  background: #ecfbf5;
}

.cmt-disclaimer,
.cmt-career-note {
  color: #8a6a22;
  background: #fff8e8;
}

.cmt-skill-row {
  margin-top: 12px;
}

.cmt-skill-row > div:first-child,
.cmt-dimension-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 750;
}

.cmt-skill-row > div:first-child span:last-child,
.cmt-dimension-row > div:first-child span:last-child {
  color: var(--cmt-muted);
  font-weight: 600;
  text-align: right;
}

.cmt-skill-bar,
.cmt-dimension-meter {
  height: 7px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f1;
}

.cmt-skill-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb15d, #0eae7b);
}

.cmt-difficulty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.cmt-difficulty-grid > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 11px 5px;
  border: 1px solid var(--cmt-line);
  border-radius: 11px;
  background: #f7fbf9;
}

.cmt-difficulty-grid small,
.cmt-difficulty-grid span {
  color: var(--cmt-muted);
  font-size: 10px;
}

.cmt-difficulty-grid strong {
  margin: 5px 0 2px;
  color: var(--cmt-green);
  font-size: 19px;
  font-weight: 850;
}

.cmt-mix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  color: var(--cmt-text);
  background: #f7fbf9;
  font-size: 12px;
}

.cmt-mix-row span:last-child {
  color: var(--cmt-muted);
  text-align: right;
}

.cmt-tag-section {
  margin-top: 11px;
}

.cmt-tag-section h3 {
  margin: 0 0 7px;
  color: var(--cmt-muted);
  font-size: 11px;
  font-weight: 750;
}

.cmt-tag-section > div,
.cmt-mbti-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cmt-pill,
.cmt-mbti-chips span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.cmt-pill.good,
.cmt-mbti-chips .group-green {
  color: #08764f;
  background: #e5fbf3;
}

.cmt-pill.warn {
  color: #d57617;
  background: #fff4e3;
}

.cmt-suggestion {
  display: flex;
  gap: 7px;
  margin: 9px 0 0;
  color: #425b55;
  font-size: 12px;
  line-height: 1.6;
}

.cmt-suggestion span {
  color: var(--cmt-green);
  font-weight: 900;
}

.cmt-plan-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  margin-top: 11px;
}

.cmt-plan-row > span {
  display: flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--cmt-green);
  font-size: 11px;
  font-weight: 850;
}

.cmt-plan-row strong {
  color: var(--cmt-text);
  font-size: 13px;
}

.cmt-plan-row p {
  margin: 3px 0 0;
  color: var(--cmt-muted);
  font-size: 11px;
  line-height: 1.55;
}

.cmt-result-hero.group-green { background: linear-gradient(145deg, #eefbef, #fff); }
.cmt-result-hero.group-blue { background: linear-gradient(145deg, #eafbff, #fff); }
.cmt-result-hero.group-purple { background: linear-gradient(145deg, #fbecff, #fff); }
.cmt-result-hero.group-gold { background: linear-gradient(145deg, #fff8d8, #fff); }

.cmt-mbti-avatar {
  display: flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border-radius: 23px;
  font-size: 42px;
  box-shadow: 0 9px 20px rgba(30, 80, 70, .12);
}

.cmt-mbti-avatar.group-green { background: linear-gradient(145deg, #dff7e6, #98dfad); }
.cmt-mbti-avatar.group-blue { background: linear-gradient(145deg, #ddfbff, #8bdde3); }
.cmt-mbti-avatar.group-purple { background: linear-gradient(145deg, #f4dcff, #d49be4); }
.cmt-mbti-avatar.group-gold { background: linear-gradient(145deg, #fff5b8, #f2c24b); }

.cmt-mbti-type {
  margin-top: 15px;
  color: var(--cmt-green-deep);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1;
}

.cmt-mbti-role {
  margin-top: 5px;
  color: var(--cmt-green-deep);
  font-size: 19px;
  font-weight: 850;
}

.cmt-mbti-slogan {
  margin: 9px 0 0;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--cmt-green);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.group-blue .cmt-mbti-slogan,
.cmt-mbti-profile.group-blue blockquote { background: #2fbec4; }
.group-purple .cmt-mbti-slogan,
.cmt-mbti-profile.group-purple blockquote { background: #8a249c; }
.group-gold .cmt-mbti-slogan,
.cmt-mbti-profile.group-gold blockquote { background: #a77a05; }

.cmt-mbti-profile {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border-width: 2px;
}

.cmt-mbti-profile.group-green { border-color: #a9ddb7; background: #f1fbf2; }
.cmt-mbti-profile.group-blue { border-color: #9fe2e8; background: #effdff; }
.cmt-mbti-profile.group-purple { border-color: #dea2e7; background: #fff0ff; }
.cmt-mbti-profile.group-gold { border-color: #e2c06d; background: #fff9df; }

.cmt-profile-watermark {
  position: absolute;
  top: 2px;
  right: 10px;
  color: rgba(255, 255, 255, .76);
  font-size: 58px;
  font-weight: 900;
  letter-spacing: 2px;
}

.cmt-profile-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmt-profile-head > div {
  display: flex;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(40, 80, 70, .1);
  font-size: 36px;
}

.cmt-profile-head p {
  min-width: 0;
  margin: 0;
}

.cmt-profile-head strong,
.cmt-profile-head span {
  display: block;
}

.cmt-profile-head strong {
  color: #111827;
  font-size: 19px;
  font-weight: 850;
}

.cmt-profile-head span {
  margin-top: 4px;
  color: #60756f;
  font-size: 12px;
  font-weight: 750;
}

.cmt-mbti-profile blockquote {
  position: relative;
  z-index: 1;
  margin: 13px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  background: var(--cmt-green);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}

.cmt-mbti-profile .cmt-body-copy {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #263c36;
  font-size: 13px;
}

.cmt-dimension-row {
  margin-top: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--cmt-line);
}

.cmt-dimension-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cmt-dimension-row p {
  margin: 4px 0 0;
  color: var(--cmt-muted);
  font-size: 11px;
}

.cmt-dimension-meter {
  display: flex;
}

.cmt-dimension-meter span:first-child { background: #12b985; }
.cmt-dimension-meter span:last-child { background: #ffb15d; }

.cmt-mbti-chips .group-blue { color: #087b87; background: #e1fbff; }
.cmt-mbti-chips .group-purple { color: #7a188b; background: #fae8ff; }
.cmt-mbti-chips .group-gold { color: #956800; background: #fff2bf; }

.cmt-career-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.cmt-career-grid > div {
  display: flex;
  min-width: 0;
  min-height: 39px;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--cmt-line);
  border-radius: 10px;
  color: #223d36;
  background: #f7fbf9;
  font-size: 12px;
  font-weight: 750;
}

.cmt-career-grid > div span {
  color: var(--cmt-green);
  font-weight: 900;
}

.cmt-growth-card.group-green { border-color: #bfe9cc; background: #f3fcf5; }
.cmt-growth-card.group-blue { border-color: #afe7ed; background: #f1fdff; }
.cmt-growth-card.group-purple { border-color: #e8b7ee; background: #fff5ff; }
.cmt-growth-card.group-gold { border-color: #e8cb76; background: #fffbe8; }

.cmt-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 3px;
}

.cmt-ghost-button {
  border: 1px solid #b9ddd1 !important;
  color: var(--cmt-green-deep) !important;
  background: #fff !important;
}

.cmt-secondary-button {
  border: 1px solid #f0c76a !important;
  color: #8c650a !important;
  background: #fff8dc !important;
}

/* Modal and fallback toast */
.cmt-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cmt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 34, 29, .48);
  backdrop-filter: blur(3px);
}

.cmt-modal-card {
  position: relative;
  width: min(100%, 350px);
  padding: 22px 20px 18px;
  border: 1px solid rgba(220, 235, 230, .95);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 43, 35, .25);
}

.cmt-modal-card > strong {
  display: block;
  color: #1a3930;
  font-size: 19px;
  font-weight: 850;
}

.cmt-modal-card > p {
  margin: 10px 0 0;
  color: #617872;
  font-size: 14px;
  line-height: 1.65;
}

.cmt-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.cmt-modal-actions.single {
  grid-template-columns: 1fr;
}

.cmt-modal-actions button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
}

.cmt-modal-cancel {
  border: 1px solid #d8e8e2 !important;
  color: #557169 !important;
  background: #f7fbf9 !important;
}

.cmt-modal-confirm {
  color: #fff !important;
  background: var(--cmt-green) !important;
}

.cmt-toast {
  position: fixed;
  z-index: 120;
  bottom: calc(30px + env(safe-area-inset-bottom));
  left: 50%;
  max-width: min(82vw, 360px);
  transform: translateX(-50%);
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  background: rgba(22, 45, 39, .92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 360px) {
  .cmt-catalog-page,
  .cmt-result-page { padding-right: 10px; padding-left: 10px; }
  .cmt-status-grid { gap: 5px; }
  .cmt-status-pill { padding: 0 3px; font-size: 11px; }
  .cmt-question-card h1 { font-size: 20px; }
  .cmt-option-text { font-size: 15px; }
  .cmt-quiz-panel { padding-right: 13px; padding-left: 13px; }
  .cmt-sheet-grid { gap: 6px; }
  .cmt-test-card { grid-template-columns: 42px minmax(0, 1fr) 20px; gap: 8px; }
  .cmt-test-icon { width: 42px; height: 42px; }
}

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