body.newhighcode-page {
  --nh-primary: #007aff;
  --nh-bg: #f5f5f7;
  --nh-surface: #ffffff;
  --nh-surface-low: #f5f5f7;
  --nh-on-surface: #1d1d1f;
  --nh-on-surface-variant: #86868b;
  --nh-outline: rgba(0, 0, 0, 0.1);
  --nh-secondary-container: #e8e8ed;
  --nh-error: #ff3b30;
  --nh-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  --nh-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.08);
  --nh-hover: rgba(0, 0, 0, 0.05);
  --nh-elevated: #ffffff;
  --nh-elevated-soft: #f8fafc;
  --nh-elevated-muted: #f7f9fc;
  --nh-contrast-surface: rgba(255, 255, 255, 0.96);
  --nh-contrast-surface-soft: rgba(255, 255, 255, 0.78);
  --nh-tooltip: rgba(15, 23, 42, 0.92);
  --nh-shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.06);
  --nh-shadow-panel: 0 16px 34px rgba(24, 34, 54, 0.08);
  color-scheme: light;

  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  color: var(--nh-on-surface);
  background: var(--nh-bg);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body.newhighcode-page.dark-theme {
  --nh-primary: #7ba7ff;
  --nh-bg: #0f1115;
  --nh-surface: #171a21;
  --nh-surface-low: #11151b;
  --nh-on-surface: #edf2fb;
  --nh-on-surface-variant: #9aa7bb;
  --nh-outline: rgba(255, 255, 255, 0.12);
  --nh-secondary-container: #232a36;
  --nh-error: #ff7b72;
  --nh-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
  --nh-shadow-hover: 0 18px 42px rgba(0, 0, 0, 0.54);
  --nh-hover: rgba(255, 255, 255, 0.08);
  --nh-elevated: #1b2028;
  --nh-elevated-soft: #202632;
  --nh-elevated-muted: #1a1f29;
  --nh-contrast-surface: rgba(24, 29, 38, 0.96);
  --nh-contrast-surface-soft: rgba(24, 29, 38, 0.78);
  --nh-tooltip: rgba(5, 8, 13, 0.94);
  --nh-shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.32);
  --nh-shadow-panel: 0 20px 40px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

body.newhighcode-page * {
  box-sizing: border-box;
}

body.newhighcode-page.dark-theme .toolbar-title-filter input,
body.newhighcode-page.dark-theme .toolbar-popover,
body.newhighcode-page.dark-theme #batchBar #batchDeleteBtn,
body.newhighcode-page.dark-theme .note-card,
body.newhighcode-page.dark-theme .custom-workspace-article-btn,
body.newhighcode-page.dark-theme .custom-workspace-create-btn,
body.newhighcode-page.dark-theme .custom-workspace-advanced>summary,
body.newhighcode-page.dark-theme .pdf-workspace-frame-actions .soft-btn,
body.newhighcode-page.dark-theme .tool-workspace-frame,
body.newhighcode-page.dark-theme .tile-highlight-note,
body.newhighcode-page.dark-theme .quiz-section,
body.newhighcode-page.dark-theme .flashcard-summary-card,
body.newhighcode-page.dark-theme .quiz-summary-card,
body.newhighcode-page.dark-theme .quiz-single-screen,
body.newhighcode-page.dark-theme .quiz-summary-breakdown li,
body.newhighcode-page.dark-theme .pdf-workspace-status-inline,
body.newhighcode-page.dark-theme .weread-workspace-switch-btn.active,
body.newhighcode-page.dark-theme #wereadWorkspaceBackBtn,
body.newhighcode-page.dark-theme .weread-workspace-step-list,
body.newhighcode-page.dark-theme .weread-workspace-source-panel-compact .weread-workspace-step-list,
body.newhighcode-page.dark-theme .weread-workspace-action-band,
body.newhighcode-page.dark-theme .weread-workspace-source-panel-compact .weread-workspace-action-band,
body.newhighcode-page.dark-theme .weread-workspace-action-row .soft-btn,
body.newhighcode-page.dark-theme .weread-workspace-source-panel-compact .weread-workspace-action-row .soft-btn {
  background: var(--nh-elevated);
  box-shadow: var(--nh-shadow-soft);
}

body.newhighcode-page.dark-theme .quiz-generate-card,
body.newhighcode-page.dark-theme .flashcard-generate-card,
body.newhighcode-page.dark-theme .flashcard-practice-card,
body.newhighcode-page.dark-theme .quiz-practice-card {
  background: color-mix(in srgb, var(--nh-surface-low) 86%, var(--nh-surface));
  box-shadow: var(--nh-shadow-panel);
}

body.newhighcode-page.dark-theme .quiz-generate-head,
body.newhighcode-page.dark-theme .flashcard-generate-head,
body.newhighcode-page.dark-theme .flashcard-practice-head,
body.newhighcode-page.dark-theme .flashcard-practice-foot {
  background: linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
}

body.newhighcode-page.dark-theme .flashcard-summary-ring::before,
body.newhighcode-page.dark-theme .quiz-summary-ring::before {
  background: var(--nh-surface);
}

body.newhighcode-page.dark-theme #detailTitle[data-full-title]:hover::after {
  background: var(--nh-tooltip);
}

body.newhighcode-page.dark-theme .quiz-generate-close:hover,
body.newhighcode-page.dark-theme .flashcard-generate-close:hover,
body.newhighcode-page.dark-theme .flashcard-practice-close:hover,
body.newhighcode-page.dark-theme .quiz-practice-close:hover,
body.newhighcode-page.dark-theme .flashcard-nav-btn:hover,
body.newhighcode-page.dark-theme .quiz-single-option:hover,
body.newhighcode-page.dark-theme .quiz-answer-input:focus,
body.newhighcode-page.dark-theme .quiz-answer-textarea:focus,
body.newhighcode-page.dark-theme .quiz-explain-toggle:hover,
body.newhighcode-page.dark-theme .quiz-summary-action-btn:hover,
body.newhighcode-page.dark-theme .flashcard-nav-btn:hover {
  background: var(--nh-elevated);
  s
}

body.newhighcode-page .curator-topbar {
  height: 64px;
  flex: 0 0 64px;
  position: relative;
  background: color-mix(in srgb, var(--nh-surface) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nh-outline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  z-index: 200;
}

body.newhighcode-page .curator-top-left,
body.newhighcode-page .curator-top-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

body.newhighcode-page .curator-top-left {
  gap: 16px;
}

body.newhighcode-page .curator-top-right {
  margin-left: auto;
  gap: 10px;
}

body.newhighcode-page .curator-notify-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--nh-on-surface-variant);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.newhighcode-page .curator-notify-btn:hover {
  background: var(--nh-hover);
  color: var(--nh-on-surface);
}

body.newhighcode-page .curator-notify-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

body.newhighcode-page .curator-notify-btn svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.newhighcode-page .curator-notify-dot {
  position: absolute;
  top: 9px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--nh-error);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.newhighcode-page .curator-notify-dot[hidden] {
  display: none;
}

body.newhighcode-page .curator-notify-btn.is-attention .curator-notify-dot {
  opacity: 1;
  transform: scale(1);
}

body.newhighcode-page .curator-notify-btn.is-attention {
  background: color-mix(in srgb, var(--nh-primary) 10%, #fff);
  color: var(--nh-primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 18%, transparent);
}

body.newhighcode-page .curator-notify-btn.is-attention:hover {
  background: color-mix(in srgb, var(--nh-primary) 16%, #fff);
  color: var(--nh-primary);
}

body.newhighcode-page .curator-top-divider {
  width: 1px;
  height: 20px;
  background: color-mix(in srgb, var(--nh-outline) 80%, transparent);
}

body.newhighcode-page .curator-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.newhighcode-page .curator-brand-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

body.newhighcode-page .curator-brand-name {
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 21px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--nh-primary);
}

body.newhighcode-page .curator-brand-sep {
  width: 1px;
  height: 20px;
  background: color-mix(in srgb, var(--nh-outline) 65%, transparent);
}

body.newhighcode-page .curator-brand-slogan {
  margin: 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--nh-on-surface-variant) 84%, transparent);
  font-weight: 500;
  white-space: nowrap;
}

body.newhighcode-page .curator-search-box {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  flex: 0 0 320px;
  position: relative;
  border-radius: 12px;
  background: var(--nh-hover);
  border: none;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.newhighcode-page .curator-search-box>span {
  width: 18px;
  height: 18px;
  color: var(--nh-on-surface-variant);
  display: grid;
  place-items: center;
}

body.newhighcode-page .curator-search-box>span svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.newhighcode-page .curator-search-box>span svg circle,
body.newhighcode-page .curator-search-box>span svg line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.newhighcode-page .curator-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  min-width: 0;
  height: 36px;
  font-size: 14px;
  color: var(--nh-on-surface);
}

body.newhighcode-page .curator-search-box:focus-within {
  background: var(--nh-surface);
  box-shadow: 0 0 0 1px var(--nh-primary);
}

body.newhighcode-page .curator-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

body.newhighcode-page .curator-user-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
}

body.newhighcode-page .curator-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--nh-on-surface);
}

body.newhighcode-page .curator-user-plan {
  font-size: 10px;
  font-weight: 700;
  color: #596270;
  background: #eceff3;
  border-radius: 6px;
  padding: 2px 6px;
  letter-spacing: 0.2px;
}

body.newhighcode-page .curator-user-plan[data-account-state="paid_active"] {
  color: #5a3b00;
  background: #f7d76d;
}

body.newhighcode-page.dark-theme .curator-user-plan {
  background: rgba(123, 167, 255, 0.16);
  color: #d7e6ff;
  border: 1px solid rgba(123, 167, 255, 0.28);
}

body.newhighcode-page.dark-theme .curator-user-plan[data-account-state="paid_active"] {
  background: rgba(247, 215, 109, 0.22);
  color: #ffe8a3;
  border-color: rgba(247, 215, 109, 0.38);
}

body.newhighcode-page.dark-theme .curator-user-plan[data-account-state="downgraded_free"] {
  background: rgba(245, 158, 11, 0.18);
  color: #ffd48a;
  border-color: rgba(245, 158, 11, 0.32);
}

body.newhighcode-page .curator-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--nh-outline);
  background: var(--nh-hover);
  display: grid;
  place-items: center;
}

body.newhighcode-page .curator-user-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.newhighcode-page .curator-user-avatar-fallback {
  font-size: 12px;
  font-weight: 700;
  color: var(--nh-on-surface-variant);
}

body.newhighcode-page .app-shell {
  flex: 1;
  height: calc(100vh - 64px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 80px 208px 320px minmax(420px, 1fr);
  background: var(--nh-surface);
}

body.newhighcode-page .rail {
  position: relative;
  z-index: 30;
  border-right: 1px solid var(--nh-outline);
  background: var(--nh-surface-low);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0;
}

body.newhighcode-page .rail-top,
body.newhighcode-page .rail-bottom {
  display: grid;
  justify-items: center;
}

body.newhighcode-page .rail-top {
  gap: 8px;
}

body.newhighcode-page .rail-bottom {
  gap: 24px;
}

body.newhighcode-page .logo {
  display: none;
}

body.newhighcode-page .view-switch {
  display: grid;
  gap: 8px;
}

body.newhighcode-page .rail-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--nh-on-surface-variant);
  cursor: pointer;
  font-size: 0;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.newhighcode-page .rail-menu-btn {
  position: relative;
}

body.newhighcode-page .rail-btn svg {
  width: 32px;
  height: 32px;
  display: block;
}

body.newhighcode-page .rail-menu-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

body.newhighcode-page .rail-theme-btn .theme-icon-sun {
  display: none;
}

body.newhighcode-page .rail-theme-btn[data-theme-target="light"] .theme-icon-moon {
  display: none;
}

body.newhighcode-page .rail-theme-btn[data-theme-target="light"] .theme-icon-sun {
  display: block;
}

body.newhighcode-page .rail-btn svg.rail-feature-icon {
  width: 32px;
  height: 32px;
}

body.newhighcode-page .rail-btn::before,
body.newhighcode-page .rail-menu-btn::before {
  content: none !important;
  display: none !important;
}

body.newhighcode-page .rail-btn::after,
body.newhighcode-page .rail-menu-btn::after {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 80;
  min-width: max-content;
  max-width: 180px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--nh-tooltip);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(4px, -50%);
  transition: opacity 0.14s ease, transform 0.14s ease;
  white-space: nowrap;
}

body.newhighcode-page .rail-btn:hover::before,
body.newhighcode-page .rail-btn:focus-visible::before,
body.newhighcode-page .rail-menu-btn:hover::before,
body.newhighcode-page .rail-menu-btn:focus-visible::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  z-index: 81;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 7px solid var(--nh-tooltip);
  transform: translateY(-50%);
  pointer-events: none;
}

body.newhighcode-page .rail-btn:hover::after,
body.newhighcode-page .rail-btn:focus-visible::after,
body.newhighcode-page .rail-menu-btn:hover::after,
body.newhighcode-page .rail-menu-btn:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

body.newhighcode-page .rail-btn svg path,
body.newhighcode-page .rail-btn svg rect,
body.newhighcode-page .rail-btn svg line,
body.newhighcode-page .rail-btn svg circle,
body.newhighcode-page .rail-btn svg text,
body.newhighcode-page .rail-menu-btn svg path,
body.newhighcode-page .rail-menu-btn svg rect,
body.newhighcode-page .rail-menu-btn svg line,
body.newhighcode-page .rail-menu-btn svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

body.newhighcode-page .rail-menu-btn svg path,
body.newhighcode-page .rail-menu-btn svg rect,
body.newhighcode-page .rail-menu-btn svg line,
body.newhighcode-page .rail-menu-btn svg circle {
  stroke-width: 1.75;
}

body.newhighcode-page .pdf-rail-icon .pdf-letter-text {
  fill: currentColor;
  stroke: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 5.7px;
  font-weight: 700;
  letter-spacing: 0;
}

body.newhighcode-page .rail-menu-btn .settings-icon path {
  fill: currentColor;
  stroke: none;
}

body.newhighcode-page .rail-btn:hover {
  background: var(--nh-hover);
}

body.newhighcode-page .rail-btn.active {
  background: color-mix(in srgb, var(--nh-primary) 10%, transparent);
  color: var(--nh-primary);
}

body.newhighcode-page[data-view-mode="home"] .rail-btn[data-view-mode="home"],
body.newhighcode-page[data-view-mode="article"] .rail-btn[data-view-mode="article"],
body.newhighcode-page[data-view-mode="card"] .rail-btn[data-view-mode="card"],
body.newhighcode-page[data-view-mode="tile"] .rail-btn[data-view-mode="tile"],
body.newhighcode-page[data-view-mode="weread"] .rail-btn[data-view-mode="weread"],
body.newhighcode-page[data-view-mode="pdf"] .rail-btn[data-view-mode="pdf"],
body.newhighcode-page[data-view-mode="custom"] .rail-btn[data-view-mode="custom"],
body.newhighcode-page[data-view-mode="ai"] .rail-btn[data-view-mode="ai"] {
  background: color-mix(in srgb, var(--nh-primary) 10%, transparent);
  color: var(--nh-primary);
}

body.newhighcode-page .rail-menu-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: var(--nh-on-surface-variant);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0;
  display: grid;
  place-items: center;
}

body.newhighcode-page .rail-menu-btn:hover {
  background: var(--nh-hover);
}

body.newhighcode-page .rail-menu-btn.is-active {
  background: color-mix(in srgb, var(--nh-primary) 12%, transparent);
  color: var(--nh-primary);
}

body.newhighcode-page .nav-panel {
  border-right: 1px solid var(--nh-outline);
  background: var(--nh-surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
}

body.newhighcode-page .stats-grid {
  display: none;
}

body.newhighcode-page .side-block {
  border: none;
  background: transparent;
  padding: 0;
}

body.newhighcode-page .side-block.fill {
  flex: 1;
}

body.newhighcode-page .side-title-row {
  margin-bottom: 10px;
}

body.newhighcode-page .side-title-row h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: color-mix(in srgb, var(--nh-on-surface-variant) 72%, transparent);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

body.newhighcode-page .mini-btn {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: var(--nh-hover);
  color: var(--nh-on-surface-variant);
}

body.newhighcode-page .nav-list,
body.newhighcode-page .sub-list,
body.newhighcode-page .tag-list {
  display: grid;
  gap: 3px;
}

body.newhighcode-page .nav-item,
body.newhighcode-page .sub-item,
body.newhighcode-page .tag-item {
  border: none;
  min-height: 36px;
  border-radius: 8px;
  background: transparent;
  color: var(--nh-on-surface-variant);
  padding: 0 10px 0 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

body.newhighcode-page .nav-item:hover,
body.newhighcode-page .sub-item:hover,
body.newhighcode-page .tag-item:hover {
  background: var(--nh-hover);
}

body.newhighcode-page .nav-item.active,
body.newhighcode-page .sub-item.active,
body.newhighcode-page .tag-item.active {
  background: color-mix(in srgb, var(--nh-primary) 6%, transparent);
  color: var(--nh-primary);
  font-weight: 500;
}

body.newhighcode-page .nav-item>span:first-child,
body.newhighcode-page .sub-item>span:first-child,
body.newhighcode-page .tag-item>span:first-child {
  position: static;
  padding-left: 0;
}

body.newhighcode-page .nav-item>span:first-child::before,
body.newhighcode-page .sub-item>span:first-child::before,
body.newhighcode-page .tag-item>span:first-child::before {
  content: none;
  display: none;
}

body.newhighcode-page #navFilterList .nav-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.newhighcode-page #cardNavList .nav-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.newhighcode-page #navFilterList .nav-main>span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.newhighcode-page #cardNavList .nav-main>span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.newhighcode-page #navFilterList .nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

body.newhighcode-page #cardNavList .nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

body.newhighcode-page #navFilterList .nav-icon path,
body.newhighcode-page #navFilterList .nav-icon line,
body.newhighcode-page #navFilterList .nav-icon rect,
body.newhighcode-page #navFilterList .nav-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.newhighcode-page #cardNavList .nav-icon path,
body.newhighcode-page #cardNavList .nav-icon line,
body.newhighcode-page #cardNavList .nav-icon rect,
body.newhighcode-page #cardNavList .nav-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.newhighcode-page #navFilterList .nav-item[data-nav-filter="starred"] .nav-icon path {
  fill: currentColor;
  stroke: none;
}

body.newhighcode-page #cardNavList .nav-item[data-card-nav="starred"] .nav-icon path {
  fill: currentColor;
  stroke: none;
}

/* 覆盖 all-highlights.css 里 cardNav 的旧偏移规则，保证与状态菜单左对齐 */
body.newhighcode-page #cardNavList .nav-item>span:first-child {
  position: static;
  padding-left: 0;
}

body.newhighcode-page #cardNavList .nav-item>span:first-child::before {
  content: none;
  display: none;
}

body.newhighcode-page .nav-item em,
body.newhighcode-page .sub-item em,
body.newhighcode-page .tag-item em {
  font-style: normal;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
  opacity: 0.85;
}

body.newhighcode-page #tagsList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.newhighcode-page #tagsList .tag-item {
  min-height: 0;
  height: 20px;
  border-radius: 6px;
  padding: 0 8px;
  background: var(--nh-hover);
  color: var(--nh-on-surface-variant);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  justify-content: center;
}

body.newhighcode-page #tagsList .tag-item em {
  display: none;
}

body.newhighcode-page #tagsList .tag-item.active {
  background: color-mix(in srgb, var(--nh-primary) 12%, transparent);
  color: var(--nh-primary);
}

body.newhighcode-page .card-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.newhighcode-page .card-color-chip {
  width: 14px;
  height: 14px;
}

body.newhighcode-page .list-panel {
  border-right: 1px solid var(--nh-outline);
  background: var(--nh-surface);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.newhighcode-page .list-toolbar,
body.newhighcode-page .card-toolbar,
body.newhighcode-page .tile-toolbar {
  border-bottom: 1px solid var(--nh-outline);
  background: var(--nh-surface);
  padding: 10px 12px;
  margin: 0;
  border-radius: 0;
  position: relative;
  z-index: 80;
  overflow: visible;
}

body.newhighcode-page .curator-search-wrap {
  z-index: 210;
}

body.newhighcode-page .curator-search-menu {
  z-index: 220;
}

body.newhighcode-page .list-toolbar-main,
body.newhighcode-page .toolbar-row,
body.newhighcode-page .card-toolbar-left,
body.newhighcode-page .tile-toolbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.newhighcode-page .toolbar-pop-wrap {
  position: relative;
}

body.newhighcode-page .toolbar-pop-wrap[hidden] {
  display: none;
}

body.newhighcode-page .toolbar-title-filter {
  position: relative;
  width: min(320px, 38vw);
  min-width: 180px;
  margin-left: 6px;
  z-index: 1;
  isolation: isolate;
}

body.newhighcode-page .toolbar-title-filter:focus-within {
  z-index: 160;
}

body.newhighcode-page .toolbar-title-filter input {
  width: 100%;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--nh-outline) 78%, transparent);
  border-radius: 9px;
  background: var(--nh-elevated);
  color: var(--nh-on-surface);
  font-size: 12px;
  padding: 0 10px;
  outline: none;
}

body.newhighcode-page .toolbar-title-filter input:focus {
  border-color: color-mix(in srgb, var(--nh-primary) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nh-primary) 16%, transparent);
}

body.newhighcode-page .toolbar-title-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--nh-outline) 85%, transparent);
  border-radius: 10px;
  background: var(--nh-surface);
  box-shadow: 0 18px 36px rgba(20, 26, 40, 0.22), 0 0 0 1px rgba(20, 26, 40, 0.04);
  z-index: 180;
  padding: 4px;
}

body.newhighcode-page .toolbar-title-filter-menu[hidden] {
  display: none !important;
}

body.newhighcode-page .toolbar-title-filter-option {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  padding: 7px 8px;
  cursor: pointer;
  display: grid;
  gap: 2px;
}

body.newhighcode-page .toolbar-title-filter-option:hover {
  background: var(--nh-hover);
}

body.newhighcode-page .toolbar-title-filter-option.active {
  background: color-mix(in srgb, var(--nh-primary) 8%, transparent);
}

body.newhighcode-page .toolbar-title-filter-option .title {
  font-size: 12px;
  color: var(--nh-on-surface);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.newhighcode-page .toolbar-title-filter-option .meta {
  font-size: 10px;
  color: var(--nh-on-surface-variant);
  opacity: 0.9;
}

body.newhighcode-page .toolbar-title-filter-empty {
  padding: 8px 10px;
  color: var(--nh-on-surface-variant);
  font-size: 12px;
}

body.newhighcode-page .toolbar-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 136px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--nh-outline) 90%, transparent);
  background: var(--nh-elevated);
  box-shadow: 0 14px 24px rgba(20, 26, 40, 0.12);
  display: grid;
  gap: 2px;
  z-index: 30;
}

body.newhighcode-page .toolbar-popover[hidden] {
  display: none !important;
}

body.newhighcode-page .toolbar-pop-item {
  border: none;
  background: transparent;
  border-radius: 8px;
  min-height: 30px;
  text-align: left;
  font-size: 12px;
  padding: 0 10px;
  color: var(--nh-on-surface-variant);
  cursor: pointer;
}

body.newhighcode-page .toolbar-pop-item:hover {
  background: var(--nh-hover);
  color: var(--nh-on-surface);
}

body.newhighcode-page .toolbar-pop-item.active {
  background: color-mix(in srgb, var(--nh-primary) 8%, transparent);
  color: var(--nh-primary);
  font-weight: 600;
}

body.newhighcode-page .icon-btn,
body.newhighcode-page .soft-btn,
body.newhighcode-page .column-btn,
body.newhighcode-page .batch-btn {
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--nh-on-surface-variant);
  min-height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

body.newhighcode-page .icon-btn {
  width: 31px;
  min-width: 31px;
  padding: 0;
  font-size: 15px;
}

body.newhighcode-page .icon-btn[hidden] {
  display: none;
}

body.newhighcode-page .toolbar-icon-btn {
  border-radius: 8px;
}

body.newhighcode-page .toolbar-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.newhighcode-page .toolbar-icon-btn svg path,
body.newhighcode-page .toolbar-icon-btn svg line,
body.newhighcode-page .toolbar-icon-btn svg rect,
body.newhighcode-page .toolbar-icon-btn svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.newhighcode-page .icon-btn:hover,
body.newhighcode-page .soft-btn:hover,
body.newhighcode-page .column-btn:hover,
body.newhighcode-page .batch-btn:hover {
  background: var(--nh-hover);
  color: var(--nh-on-surface);
}

body.newhighcode-page .legacy-toolbar-controls {
  display: none !important;
}

body.newhighcode-page .list-subheader {
  background: var(--nh-surface);
  padding: 10px 12px 12px;
  display: flex;
  gap: 8px;
}

body.newhighcode-page .list-subheader-tip {
  align-items: center;
  gap: 12px;
}

body.newhighcode-page .list-subheader-tip-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--nh-primary) 12%, #fff);
  color: var(--nh-primary);
}

body.newhighcode-page .list-subheader-tip-icon svg {
  width: 18px;
  height: 18px;
}

body.newhighcode-page .list-subheader-tip-icon svg path,
body.newhighcode-page .list-subheader-tip-icon svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.newhighcode-page .rail-btn svg.rail-feature-icon path,
body.newhighcode-page .rail-btn svg.rail-feature-icon rect,
body.newhighcode-page .rail-btn svg.rail-feature-icon line,
body.newhighcode-page .rail-btn svg.rail-feature-icon circle {
  stroke-width: 1.95;
}

body.newhighcode-page .list-subheader-tip-copy {
  min-width: 0;
}

body.newhighcode-page .list-subheader-tip-copy strong {
  display: block;
  color: var(--nh-on-surface);
  font-size: 13px;
  font-weight: 700;
}

body.newhighcode-page .list-subheader-tip-copy p {
  margin: 4px 0 0;
  color: var(--nh-on-surface-variant);
  font-size: 12px;
  line-height: 1.5;
}

body.newhighcode-page #wereadImportBtn svg path,
body.newhighcode-page #wereadImportBtn svg polyline,
body.newhighcode-page #wereadImportBtn svg line,
body.newhighcode-page #pdfReaderBtn svg path,
body.newhighcode-page #pdfReaderBtn svg polyline,
body.newhighcode-page #pdfReaderBtn svg line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.newhighcode-page .sort-box,
body.newhighcode-page .tile-sort-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--nh-on-surface-variant);
}

body.newhighcode-page .sort-box select,
body.newhighcode-page .tile-sort-box select {
  border: none;
  border-radius: 8px;
  background: var(--nh-hover);
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--nh-on-surface);
}

body.newhighcode-page .tile-search-box {
  width: min(420px, 44vw);
  min-width: 180px;
  border: none;
  border-radius: 10px;
  background: var(--nh-hover);
  padding: 0 10px;
}

body.newhighcode-page .tile-search-box input {
  border: none;
  background: transparent;
  outline: none;
}

body.newhighcode-page .article-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 14px;
  display: grid;
  gap: 2px;
  align-content: start;
}

body.newhighcode-page .article-item {
  border: none;
  border-radius: 12px;
  background: transparent;
  padding: 14px 14px;
  display: flex;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

body.newhighcode-page .article-item:hover {
  background: var(--nh-hover);
}

body.newhighcode-page .article-item.active {
  background: color-mix(in srgb, var(--nh-primary) 3%, var(--nh-surface));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 0 0 1px color-mix(in srgb, var(--nh-primary) 6%, transparent);
  border-left: 4px solid var(--nh-primary);
}

body.newhighcode-page .article-title {
  margin: 0;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
  color: var(--nh-on-surface);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.newhighcode-page .article-meta {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--nh-on-surface-variant);
  font-size: 11px;
  font-weight: 500;
}

body.newhighcode-page .article-meta-date,
body.newhighcode-page .article-meta-count {
  white-space: nowrap;
}

body.newhighcode-page .article-meta-source {
  display: none;
}

body.newhighcode-page .article-meta-date::after {
  content: "|";
  opacity: 0.3;
  margin-left: 6px;
}

body.newhighcode-page #batchBar {
  margin: 8px 12px 0;
  border: 1px solid color-mix(in srgb, var(--nh-primary) 20%, transparent);
  background: color-mix(in srgb, var(--nh-primary) 7%, #fff);
  border-radius: 10px;
  padding: 8px 10px;
  align-items: center;
}

body.newhighcode-page #batchBar #batchExportMdBtn {
  display: none;
}

body.newhighcode-page #batchBar #batchDeleteBtn {
  margin-left: auto;
  border-radius: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: none;
  background: var(--nh-elevated);
  color: var(--nh-error);
  font-size: 12px;
  font-weight: 600;
}

body.newhighcode-page .detail-panel {
  --nh-detail-panel-padding-x: 32px;
  --nh-detail-panel-padding-top: 24px;
  background: var(--nh-surface);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.newhighcode-page .detail-header {
  padding: var(--nh-detail-panel-padding-top) var(--nh-detail-panel-padding-x) 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--nh-outline) 22%, transparent);
  background: var(--nh-surface);
}

body.newhighcode-page .detail-header-card {
  border: none;
  background: transparent;
  padding: 20px;
}

body.newhighcode-page .detail-header h2 {
  margin: 0 0 10px;
  font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}

body.newhighcode-page #detailTitle[data-full-title]:hover::after {
  content: attr(data-full-title);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  max-width: min(620px, 92vw);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  z-index: 40;
  pointer-events: none;
}

body.newhighcode-page .detail-meta {
  margin-top: 0;
  display: grid;
  gap: 6px;
}

body.newhighcode-page .detail-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

body.newhighcode-page .detail-meta-row-main {
  color: var(--nh-on-surface-variant);
  font-size: 12px;
  font-weight: 500;
}

body.newhighcode-page .detail-meta-row-sub {
  color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
  font-size: 11px;
}

body.newhighcode-page #detailUrl {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--nh-primary);
  text-decoration: none;
  font-size: 12px;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.newhighcode-page #detailUrl[hidden] {
  display: none !important;
}

body.newhighcode-page #detailUrl::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
  opacity: 0.95;
}

body.newhighcode-page #detailUpdated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.newhighcode-page #detailUpdated::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 12l3 2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
  opacity: 0.92;
}

body.newhighcode-page .detail-menu {
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 2px;
  border-radius: 0;
  border: none;
  background: transparent;
  scrollbar-width: none;
}

body.newhighcode-page .detail-menu::-webkit-scrollbar {
  display: none;
}

body.newhighcode-page .detail-menu-pop-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.newhighcode-page .detail-menu-btn {
  width: 50px;
  min-width: 50px;
  height: 62px;
  padding: 8px 4px 7px;
  border: none;
  border-radius: 9px;
  background: color-mix(in srgb, var(--nh-on-surface-variant) 8%, var(--nh-contrast-surface));
  color: #7b808a;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

body.newhighcode-page .detail-menu-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

body.newhighcode-page .detail-menu-btn span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.newhighcode-page .detail-menu-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.newhighcode-page .detail-menu-btn:hover {
  background: color-mix(in srgb, var(--nh-primary) 8%, var(--nh-contrast-surface));
  color: var(--nh-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

body.newhighcode-page .detail-menu-btn.active,
body.newhighcode-page .detail-menu-btn.is-active,
body.newhighcode-page .detail-menu-btn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--nh-primary) 13%, var(--nh-contrast-surface));
  color: var(--nh-primary);
}

body.newhighcode-page .detail-export-modal {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.newhighcode-page .detail-export-modal[hidden] {
  display: none !important;
}

body.newhighcode-page .detail-export-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 460px at 86% -10%, color-mix(in srgb, var(--nh-primary) 22%, transparent), transparent 64%),
    rgba(15, 23, 38, 0.56);
  backdrop-filter: blur(4px);
}

body.newhighcode-page .detail-export-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--nh-outline) 18%, transparent);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--nh-primary) 5%, var(--nh-elevated)) 0%,
      var(--nh-contrast-surface) 100%);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

body.newhighcode-page .detail-export-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--nh-outline) 18%, transparent);
}

body.newhighcode-page .detail-export-head-copy {
  min-width: 0;
}

body.newhighcode-page .detail-export-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nh-primary);
}

body.newhighcode-page .detail-export-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--nh-on-surface);
}

body.newhighcode-page .detail-export-meta {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--nh-on-surface-variant);
}

body.newhighcode-page .detail-export-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--nh-surface-low) 88%, var(--nh-elevated));
  color: var(--nh-on-surface-variant);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

body.newhighcode-page .detail-export-close:hover {
  background: color-mix(in srgb, var(--nh-primary) 10%, var(--nh-elevated));
  color: var(--nh-primary);
}

body.newhighcode-page .detail-export-body {
  display: grid;
  gap: 16px;
  padding: 20px 22px 22px;
  overflow: auto;
}

body.newhighcode-page .detail-export-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.newhighcode-page .detail-export-summary-card,
body.newhighcode-page .detail-export-section {
  border: 1px solid color-mix(in srgb, var(--nh-outline) 18%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--nh-surface) 94%, var(--nh-elevated));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--nh-contrast-surface-soft) 28%, transparent);
}

body.newhighcode-page .detail-export-summary-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

body.newhighcode-page .detail-export-summary-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nh-on-surface-variant);
}

body.newhighcode-page .detail-export-summary-value {
  min-width: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--nh-on-surface);
  word-break: break-word;
}

body.newhighcode-page .detail-menu-pop-item {
  border: none;
  background: transparent;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--nh-on-surface);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

body.newhighcode-page .detail-menu-pop-item:hover:not(:disabled) {
  background: color-mix(in srgb, var(--nh-primary) 10%, transparent);
  color: var(--nh-primary);
}

body.newhighcode-page .detail-menu-pop-item:disabled,
body.newhighcode-page .detail-menu-pop-item.is-busy {
  opacity: 0.6;
  cursor: wait;
}

body.newhighcode-page .detail-export-trigger svg {
  transform: translateY(-0.5px);
}

body.newhighcode-page .detail-export-heading {
  padding: 16px 16px 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--nh-on-surface);
  line-height: 1.3;
}

body.newhighcode-page .detail-export-format-list {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

body.newhighcode-page .detail-export-format-btn {
  min-height: 54px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  justify-items: start;
  align-content: center;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--nh-outline) 72%, transparent);
}

body.newhighcode-page .detail-export-format-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--nh-primary) 8%, transparent);
  border-color: color-mix(in srgb, var(--nh-primary) 24%, var(--nh-outline));
}

body.newhighcode-page .detail-export-format-btn.is-selected {
  background: color-mix(in srgb, var(--nh-primary) 10%, transparent);
  border-color: color-mix(in srgb, var(--nh-primary) 36%, var(--nh-outline));
  color: var(--nh-primary);
}

body.newhighcode-page .detail-export-format-label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

body.newhighcode-page .detail-export-format-hint {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--nh-on-surface-variant);
}

body.newhighcode-page .detail-export-format-btn.is-selected .detail-export-format-hint {
  color: color-mix(in srgb, var(--nh-primary) 82%, #4b5563);
}

body.newhighcode-page .detail-export-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--nh-on-surface-variant);
}

body.newhighcode-page .detail-export-action-section {
  display: grid;
  gap: 14px;
  padding: 16px;
}

body.newhighcode-page .detail-export-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

body.newhighcode-page .detail-export-action-btn {
  min-height: 42px;
  justify-content: center;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--nh-outline) 72%, transparent);
  background: color-mix(in srgb, var(--nh-primary) 10%, var(--nh-surface));
  color: var(--nh-primary);
}

body.newhighcode-page .detail-export-action-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--nh-primary) 24%, var(--nh-outline));
  background: color-mix(in srgb, var(--nh-primary) 16%, var(--nh-surface));
}

@media (max-width: 700px) {

  body.newhighcode-page .detail-export-modal {
    padding: 14px;
    align-items: flex-end;
  }

  body.newhighcode-page .detail-export-card {
    width: min(100%, 100vw - 12px);
    max-height: calc(100vh - 18px);
    border-radius: 24px 24px 18px 18px;
  }

  body.newhighcode-page .detail-export-head {
    padding: 18px 18px 16px;
  }

  body.newhighcode-page .detail-export-body {
    padding: 16px 18px 18px;
  }

  body.newhighcode-page .detail-export-summary,
  body.newhighcode-page .detail-export-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.newhighcode-page .detail-menu-btn.danger {
  color: var(--nh-error);
}

body.newhighcode-page .detail-delete-confirm-card {
  border: none;
  border-radius: 20px;
  background: var(--nh-elevated);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(20px);
}

body.newhighcode-page .detail-delete-confirm-card .quiz-start-head,
body.newhighcode-page .detail-delete-confirm-card .detail-delete-confirm-body,
body.newhighcode-page .detail-delete-confirm-card .detail-delete-confirm-foot {
  background: transparent;
  border-color: transparent;
}

body.newhighcode-page.dark-theme .detail-delete-confirm-card {
  background: #263044;
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.newhighcode-page .detail-delete-confirm-meta {
  color: var(--nh-on-surface-variant);
}

body.newhighcode-page .detail-delete-confirm-body {
  padding: 18px 22px 12px;
}

body.newhighcode-page .detail-delete-confirm-message {
  color: var(--nh-on-surface);
  font-size: 14px;
}

body.newhighcode-page .detail-delete-confirm-warning {
  color: color-mix(in srgb, var(--nh-on-surface-variant) 88%, transparent);
}

body.newhighcode-page .detail-delete-confirm-foot {
  padding: 0 22px 22px;
  gap: 12px;
}

body.newhighcode-page .detail-delete-confirm-foot .quiz-summary-action-btn {
  width: 100%;
  min-height: 44px;
}

body.newhighcode-page .quiz-start-modal.is-logout-confirm {
  z-index: 260;
}

body.newhighcode-page .quiz-start-modal.is-logout-confirm .quiz-start-mask {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm {
  width: min(360px, calc(100vw - 40px));
  border-radius: 22px;
  background: var(--nh-elevated);
  box-shadow:
    0 24px 56px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px color-mix(in srgb, var(--nh-outline) 60%, transparent);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto;
  color: var(--nh-on-surface);
  backdrop-filter: none;
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .quiz-start-head {
  justify-content: center;
  padding: 30px 28px 8px;
  border-bottom: none;
  background: transparent;
  text-align: center;
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .quiz-start-head>div {
  display: grid;
  justify-items: center;
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .quiz-start-head h3 {
  color: var(--nh-on-surface);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .quiz-start-close {
  display: none;
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .detail-delete-confirm-body {
  padding: 12px 30px 26px;
  gap: 0;
  text-align: center;
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .detail-delete-confirm-message {
  color: color-mix(in srgb, var(--nh-on-surface-variant) 94%, transparent);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .detail-delete-confirm-warning,
body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .detail-delete-confirm-meta {
  display: none;
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .detail-delete-confirm-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--nh-outline) 72%, transparent);
  background: transparent;
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .quiz-summary-action-btn {
  height: 56px;
  min-height: 56px;
  border-radius: 0;
  background: transparent;
  color: var(--nh-on-surface);
  box-shadow: none;
  font-size: 17px;
  font-weight: 600;
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm #detailDeleteConfirmCancelBtn {
  color: color-mix(in srgb, var(--nh-on-surface) 88%, transparent);
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .quiz-summary-action-btn:hover {
  background: var(--nh-hover);
  color: var(--nh-on-surface);
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm #detailDeleteConfirmSubmitBtn {
  color: color-mix(in srgb, var(--nh-primary) 88%, #1265d8);
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--nh-outline) 72%, transparent);
}

body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm #detailDeleteConfirmSubmitBtn:hover {
  color: color-mix(in srgb, var(--nh-primary) 78%, #0f58bd);
  background: color-mix(in srgb, var(--nh-primary) 8%, transparent);
}

body.newhighcode-page.dark-theme .quiz-start-modal.is-logout-confirm .quiz-start-mask {
  background: rgba(5, 8, 13, 0.68);
}

body.newhighcode-page.dark-theme .detail-delete-confirm-card.is-logout-confirm {
  background: color-mix(in srgb, var(--nh-elevated) 92%, var(--nh-surface-low));
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px color-mix(in srgb, var(--nh-outline) 86%, transparent);
}

body.newhighcode-page.dark-theme .detail-delete-confirm-card.is-logout-confirm #detailDeleteConfirmCancelBtn {
  color: color-mix(in srgb, var(--nh-on-surface) 92%, transparent);
}

body.newhighcode-page.dark-theme .detail-delete-confirm-card.is-logout-confirm .detail-delete-confirm-foot {
  border-top-color: color-mix(in srgb, var(--nh-outline) 86%, transparent);
}

body.newhighcode-page.dark-theme .detail-delete-confirm-card.is-logout-confirm #detailDeleteConfirmSubmitBtn {
  color: color-mix(in srgb, var(--nh-primary) 86%, #dbe7ff);
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--nh-outline) 86%, transparent);
}

body.newhighcode-page.dark-theme .detail-delete-confirm-card.is-logout-confirm #detailDeleteConfirmSubmitBtn:hover {
  background: color-mix(in srgb, var(--nh-primary) 12%, transparent);
  color: color-mix(in srgb, var(--nh-primary) 72%, #ffffff);
}

@media (max-width: 520px) {
  body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm {
    width: min(82vw, 340px);
    border-radius: 20px;
  }

  body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .quiz-start-head {
    padding: 28px 24px 8px;
  }

  body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .detail-delete-confirm-body {
    padding: 12px 24px 24px;
  }

  body.newhighcode-page .detail-delete-confirm-card.is-logout-confirm .detail-delete-confirm-foot {
    padding: 0;
  }
}

body.newhighcode-page .detail-menu-sep {
  display: none;
}

body.newhighcode-page .detail-menu-btn.ai-pill-btn {
  width: 56px !important;
  min-width: 56px;
  height: 62px;
  padding: 8px 4px 7px;
  gap: 5px;
  border-radius: 9px;
}

body.newhighcode-page .detail-menu-btn.ai-pill-btn span {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

body.newhighcode-page .detail-sort-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn {
  width: 62px;
  min-width: 62px;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px 7px;
}

body.newhighcode-page .detail-menu-btn.detail-sort-toggle-btn {
  width: 78px;
  min-width: 78px;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px 7px;
}

body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn .detail-sort-icon,
body.newhighcode-page .detail-menu-btn.detail-sort-toggle-btn .detail-sort-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn .detail-sort-label-row,
body.newhighcode-page .detail-menu-btn.detail-sort-toggle-btn .detail-sort-label-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
}

body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn .detail-sort-label-row span,
body.newhighcode-page .detail-menu-btn.detail-sort-toggle-btn .detail-sort-label-row span {
  display: inline-block;
}

body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn .detail-sort-up-arrow,
body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn .detail-sort-down-arrow {
  opacity: 0.42;
  transition: opacity 0.16s ease, stroke-width 0.16s ease;
}

body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn[data-sort-order="desc"] .detail-sort-down-arrow,
body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn[data-sort-order="asc"] .detail-sort-up-arrow {
  opacity: 1;
  stroke-width: 2.4;
}

body.newhighcode-page .detail-sort-pop-wrap {
  position: relative;
}

body.newhighcode-page .detail-sort-menu {
  min-width: 118px;
  left: 0;
  right: auto;
}

body.newhighcode-page #detailAddCustomBtn {
  width: 62px;
  min-width: 62px;
}

body.newhighcode-page #detailRenameBtn {
  width: 62px;
  min-width: 62px;
}

body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn span,
body.newhighcode-page .detail-menu-btn.detail-sort-toggle-btn span {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn,
body.newhighcode-page .detail-menu-btn.detail-sort-toggle-btn,
body.newhighcode-page #detailAddCustomBtn,
body.newhighcode-page #detailShareBtn,
body.newhighcode-page #detailRenameBtn,
body.newhighcode-page #detailQuizBtn,
body.newhighcode-page #detailFlashcardsBtn,
body.newhighcode-page #detailExportMenuBtn {
  background: color-mix(in srgb, var(--nh-on-surface-variant) 8%, var(--nh-contrast-surface));
  color: #7b808a;
}

body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn:hover,
body.newhighcode-page .detail-menu-btn.detail-sort-toggle-btn:hover,
body.newhighcode-page #detailAddCustomBtn:hover,
body.newhighcode-page #detailShareBtn:hover,
body.newhighcode-page #detailRenameBtn:hover,
body.newhighcode-page #detailQuizBtn:hover,
body.newhighcode-page #detailFlashcardsBtn:hover,
body.newhighcode-page #detailExportMenuBtn:hover {
  background: color-mix(in srgb, var(--nh-primary) 8%, var(--nh-contrast-surface));
  color: var(--nh-primary);
}

body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn.active,
body.newhighcode-page .detail-menu-btn.detail-sort-mode-btn.is-active,
body.newhighcode-page .detail-menu-btn.detail-sort-toggle-btn.is-active,
body.newhighcode-page #detailAddCustomBtn.is-active,
body.newhighcode-page #detailShareBtn.is-active,
body.newhighcode-page #detailRenameBtn.is-active,
body.newhighcode-page #detailQuizBtn.is-active,
body.newhighcode-page #detailFlashcardsBtn.is-active,
body.newhighcode-page #detailExportMenuBtn.active,
body.newhighcode-page #detailExportMenuBtn.is-active {
  background: color-mix(in srgb, var(--nh-primary) 13%, var(--nh-contrast-surface));
  color: var(--nh-primary);
}

body.newhighcode-page .detail-menu-btn.danger {
  background: color-mix(in srgb, var(--nh-error) 10%, var(--nh-contrast-surface));
  color: var(--nh-error);
}

body.newhighcode-page .detail-menu-btn.danger:hover {
  background: color-mix(in srgb, var(--nh-error) 15%, var(--nh-contrast-surface));
  color: var(--nh-error);
}

body.newhighcode-page .notes-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--nh-detail-panel-padding-top) var(--nh-detail-panel-padding-x) 32px;
  display: grid;
  gap: 16px;
  align-content: start;
}

body.newhighcode-page .note-card {
  border: 1px solid color-mix(in srgb, var(--nh-outline) 14%, transparent);
  border-radius: 12px;
  background: var(--nh-elevated);
  box-shadow: var(--nh-shadow);
  padding: 20px;
}

body.newhighcode-page .note-card:hover {
  box-shadow: var(--nh-shadow-hover);
}

body.newhighcode-page .note-main {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
}

body.newhighcode-page .note-accent-bar {
  width: 2px;
  border-radius: 999px;
}

body.newhighcode-page .note-text {
  margin: 0;
  padding-right: 38px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.05px;
  color: var(--nh-on-surface);
}

body.newhighcode-page .note-main-edit-btn {
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--nh-primary) 10%, transparent);
  color: var(--nh-primary);
}

body.newhighcode-page .note-main-edit-btn:hover {
  background: color-mix(in srgb, var(--nh-primary) 18%, transparent);
  color: var(--nh-primary);
}

body.newhighcode-page .note-note-wrap {
  margin: 0 0 16px 20px;
  width: calc(100% - 20px);
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--nh-elevated-soft);
  padding: 8px 8px 8px 10px;
  grid-template-columns: minmax(0, 1fr) 30px;
}

body.newhighcode-page .note-note {
  margin: 0;
  color: var(--nh-on-surface-variant);
  font-size: 13px;
  line-height: 1.6;
}

body.newhighcode-page .note-note-edit-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--nh-primary) 10%, transparent);
  color: var(--nh-primary);
}

body.newhighcode-page .note-note-edit-btn:hover {
  background: color-mix(in srgb, var(--nh-primary) 18%, transparent);
  color: var(--nh-primary);
}

body.newhighcode-page .card-text,
body.newhighcode-page .card-text.md-content {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.05px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.newhighcode-page .card-note {
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--nh-elevated-soft);
  color: var(--nh-on-surface-variant);
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 10px;
}

body.newhighcode-page .note-tags {
  margin-left: 20px;
  width: calc(100% - 20px);
}

body.newhighcode-page .note-tags span {
  border: none;
  border-radius: 999px;
  background: var(--nh-hover);
  color: var(--nh-on-surface-variant);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
}

body.newhighcode-page .note-footer {
  margin-top: 0;
  margin-left: 20px;
  width: calc(100% - 20px);
  border-top: 1px solid color-mix(in srgb, var(--nh-outline) 22%, transparent);
  padding-top: 12px;
}

body.newhighcode-page .note-actions {
  gap: 2px;
}

body.newhighcode-page .note-color-group {
  gap: 6px;
  margin-right: 4px;
}

body.newhighcode-page .note-color-dot {
  width: 12px;
  height: 12px;
}

body.newhighcode-page .note-color-dot:hover {
  transform: scale(1.1);
}

body.newhighcode-page .note-actions-sep {
  margin: 0 4px;
}

body.newhighcode-page .note-action-btn,
body.newhighcode-page .card-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--nh-on-surface-variant);
}

body.newhighcode-page .note-action-btn svg,
body.newhighcode-page .card-action-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.85;
}

body.newhighcode-page .note-action-btn:hover,
body.newhighcode-page .card-action-btn:hover {
  background: color-mix(in srgb, var(--nh-primary) 5%, transparent);
  color: var(--nh-primary);
}

body.newhighcode-page .note-action-btn.danger:hover {
  background: color-mix(in srgb, var(--nh-error) 10%, transparent);
  color: var(--nh-error);
}

body.newhighcode-page .note-meta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: color-mix(in srgb, var(--nh-on-surface-variant) 40%, transparent);
}

body.newhighcode-page .empty {
  border: 1px dashed color-mix(in srgb, var(--nh-outline) 60%, transparent);
  border-radius: 12px;
  background: var(--nh-surface);
}

body.newhighcode-page .hl-search-hit {
  background: #ffe39a;
  color: inherit;
  border-radius: 4px;
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.newhighcode-page .cards-grid,
body.newhighcode-page .tile-container {
  background: var(--nh-surface-low);
}

body.newhighcode-page .cards-grid {
  padding: 14px;
  gap: 12px;
}

body.newhighcode-page .card-toolbar,
body.newhighcode-page .tile-toolbar,
body.newhighcode-page .cards-grid,
body.newhighcode-page .tile-container {
  display: none;
}

body.newhighcode-page[data-view-mode="article"] .list-toolbar,
body.newhighcode-page[data-view-mode="article"] .list-subheader,
body.newhighcode-page[data-view-mode="article"] .article-list {
  display: block;
}

body.newhighcode-page[data-view-mode="card"] .list-toolbar,
body.newhighcode-page[data-view-mode="card"] .list-subheader,
body.newhighcode-page[data-view-mode="card"] .article-list,
body.newhighcode-page[data-view-mode="card"] .tile-toolbar,
body.newhighcode-page[data-view-mode="card"] .tile-container,
body.newhighcode-page[data-view-mode="card"] #batchBar {
  display: none !important;
}

body.newhighcode-page[data-view-mode="card"] .card-toolbar {
  display: flex !important;
}

body.newhighcode-page[data-view-mode="card"] .cards-grid {
  display: grid !important;
}

body.newhighcode-page[data-view-mode="tile"] .list-toolbar,
body.newhighcode-page[data-view-mode="tile"] .list-subheader,
body.newhighcode-page[data-view-mode="tile"] .card-toolbar,
body.newhighcode-page[data-view-mode="tile"] .article-list,
body.newhighcode-page[data-view-mode="tile"] .cards-grid,
body.newhighcode-page[data-view-mode="tile"] #batchBar {
  display: none !important;
}

body.newhighcode-page[data-view-mode="tile"] .tile-toolbar {
  display: flex !important;
}

body.newhighcode-page[data-view-mode="tile"] .tile-container {
  display: flex !important;
}

body.newhighcode-page .global-chat-panel {
  display: none;
  grid-column: 2 / -1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--nh-outline);
  background: var(--nh-surface-low);
}

body.newhighcode-page .global-chat-host {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.newhighcode-page .global-chat-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
  background: transparent;
}

body.newhighcode-page .home-panel {
  display: none;
  grid-column: 2 / -1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--nh-outline);
  background: var(--nh-bg);
}

body.newhighcode-page .home-host {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.newhighcode-page .home-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
  background: transparent;
}

body.newhighcode-page .reader-import-host {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.newhighcode-page .reader-import-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
  background: transparent;
}

body.newhighcode-page .custom-workspace-host {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.newhighcode-page .custom-workspace-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
  background: transparent;
}

body.newhighcode-page .pdf-workspace-panel .tool-workspace-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
  background: transparent;
}

  body.newhighcode-page .tool-workspace-panel {
    display: none;
    grid-column: 2 / -1;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    border-left: 1px solid var(--nh-outline);
    background:
      radial-gradient(circle at top left, color-mix(in srgb, var(--nh-primary) 10%, transparent), transparent 32%),
      linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
    overflow: auto;
  }

  body.newhighcode-page .tool-workspace-shell {
    min-height: 100%;
    padding: 24px;
    display: grid;
    align-content: start;
    gap: 16px;
  }

  body.newhighcode-page .tool-workspace-shell-wide {
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.newhighcode-page .tool-workspace-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 42%, transparent);
    border-radius: 24px;
    background: color-mix(in srgb, var(--nh-contrast-surface) 92%, transparent);
    box-shadow: var(--nh-shadow-panel);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 16px;
    z-index: 6;
  }

  body.newhighcode-page .tool-workspace-toolbar-copy {
    min-width: 0;
    display: grid;
    gap: 10px;
  }

  body.newhighcode-page .tool-workspace-toolbar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nh-primary) 12%, var(--nh-elevated));
    color: var(--nh-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  body.newhighcode-page .tool-workspace-toolbar-text {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  body.newhighcode-page .tool-workspace-toolbar-text strong {
    color: var(--nh-on-surface);
    font-size: 18px;
    line-height: 1.25;
  }

  body.newhighcode-page .tool-workspace-toolbar-text p {
    margin: 0;
    color: var(--nh-on-surface-variant);
    font-size: 13px;
    line-height: 1.6;
  }

  body.newhighcode-page .tool-workspace-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  body.newhighcode-page .weread-workspace-panel .tool-workspace-toolbar-actions .soft-btn,
  body.newhighcode-page .pdf-workspace-panel .tool-workspace-toolbar-actions .soft-btn {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 40%, transparent);
    background: var(--nh-contrast-surface-soft);
    color: var(--nh-on-surface);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      border-color 0.2s ease,
      background-color 0.2s ease;
  }

  body.newhighcode-page .weread-workspace-panel .tool-workspace-toolbar-actions .soft-btn:hover,
  body.newhighcode-page .pdf-workspace-panel .tool-workspace-toolbar-actions .soft-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--nh-primary) 30%, transparent);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
  }

  body.newhighcode-page .weread-workspace-panel .tool-workspace-hero,
  body.newhighcode-page .pdf-workspace-panel .tool-workspace-hero,
  body.newhighcode-page .custom-workspace-panel .tool-workspace-hero {
    display: none;
  }

  body.newhighcode-page .weread-workspace-panel .tool-workspace-shell,
  body.newhighcode-page .pdf-workspace-panel .tool-workspace-shell,
  body.newhighcode-page .custom-workspace-panel .tool-workspace-shell {
    min-height: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
  }

  body.newhighcode-page .pdf-workspace-shell {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
  }

  body.newhighcode-page .weread-workspace-shell {
    padding: 24px clamp(20px, 3vw, 40px) 28px;
  }

  body.newhighcode-page .weread-workspace-layout {
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    width: min(100%, 1240px);
    margin: 0 auto;
  }

  body.newhighcode-page .weread-workspace-main-card,
  body.newhighcode-page .weread-workspace-side-card {
    min-height: 0;
  }

  body.newhighcode-page .weread-workspace-main-card {
    display: grid;
    gap: 16px;
    align-content: start;
    width: min(100%, 1024px);
    justify-self: center;
    padding: 20px 22px 18px;
  }

  body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-main-card {
    gap: 12px;
    width: min(100%, 944px);
  }

  body.newhighcode-page .weread-workspace-toolbar-row,
  body.newhighcode-page .weread-workspace-source-panels,
  body.newhighcode-page .weread-workspace-meta-row {
    width: min(100%, 940px);
    justify-self: center;
  }

  body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-toolbar-row,
  body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-source-panels,
  body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-meta-row {
    width: min(100%, 852px);
  }

  body.newhighcode-page .weread-workspace-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  body.newhighcode-page .weread-workspace-intro {
    min-width: 0;
    display: grid;
    gap: 10px;
  }

  body.newhighcode-page .weread-workspace-intro h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .weread-workspace-intro p {
    margin: 0;
    max-width: 720px;
    color: var(--nh-on-surface-variant);
    font-size: 14px;
    line-height: 1.75;
  }

  body.newhighcode-page .weread-workspace-main-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  body.newhighcode-page .weread-workspace-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nh-primary) 8%, var(--nh-elevated));
    border: 1px solid color-mix(in srgb, var(--nh-outline) 34%, transparent);
  }

  body.newhighcode-page .weread-workspace-switch-btn {
    min-height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--nh-on-surface-variant);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }

  body.newhighcode-page .weread-workspace-switch-btn.active {
    background: var(--nh-elevated);
    color: var(--nh-primary);
    box-shadow: 0 10px 22px rgba(76, 127, 255, 0.16);
  }

  body.newhighcode-page .weread-workspace-source-panels {
    display: grid;
    gap: 16px;
  }

  body.newhighcode-page .weread-workspace-source-panel {
    --reader-accent: var(--nh-primary);
    display: none;
    gap: 16px;
  }

  body.newhighcode-page .weread-workspace-source-panel.active {
    display: grid;
  }

  body.newhighcode-page .weread-workspace-source-panel-compact {
    gap: 10px;
  }

  body.newhighcode-page .weread-workspace-source-panel[data-reader-source-panel="weread"] {
    --reader-accent: #2563eb;
  }

  body.newhighcode-page .weread-workspace-source-panel[data-reader-source-panel="douban"] {
    --reader-accent: #22c55e;
  }

  body.newhighcode-page .weread-workspace-source-panel[data-reader-source-panel="dedao"] {
    --reader-accent: #f59e0b;
  }

  body.newhighcode-page .weread-workspace-source-panel[data-reader-source-panel="zhangyue"] {
    --reader-accent: #ef4444;
  }

  body.newhighcode-page .weread-workspace-preview-card {
    display: none;
  }

  body.newhighcode-page .weread-workspace-preview-card[data-reader-theme="weread"] {
    background: linear-gradient(135deg, #2563eb, #3b82f6 55%, #60a5fa);
  }

  body.newhighcode-page .weread-workspace-preview-card[data-reader-theme="douban"] {
    background: linear-gradient(135deg, #16a34a, #22c55e 55%, #4ade80);
  }

  body.newhighcode-page .weread-workspace-preview-card[data-reader-theme="dedao"] {
    background: linear-gradient(135deg, #f59e0b, #fb923c 55%, #fdba74);
  }

  body.newhighcode-page .weread-workspace-preview-card[data-reader-theme="zhangyue"] {
    background: linear-gradient(135deg, #ef4444, #f87171 55%, #fca5a5);
  }

  body.newhighcode-page .weread-workspace-preview-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 32px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  body.newhighcode-page .weread-workspace-preview-copy {
    display: grid;
    gap: 10px;
    max-width: 520px;
  }

  body.newhighcode-page .weread-workspace-preview-copy strong {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
  }

  body.newhighcode-page .weread-workspace-preview-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 14px;
    line-height: 1.8;
  }

  body.newhighcode-page .weread-workspace-step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  body.newhighcode-page .weread-workspace-step-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    height: 100%;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--reader-accent) 22%, var(--nh-outline));
    background: linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
    box-shadow: var(--nh-shadow-soft);
  }

  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-list {
    gap: 10px;
  }

  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-item {
    gap: 10px;
    padding: 13px 14px;
    border-radius: 16px;
    box-shadow: var(--nh-shadow-soft);
  }

  body.newhighcode-page .weread-workspace-step-badge {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--reader-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--reader-accent) 34%, transparent);
  }

  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-badge {
    width: 32px;
    height: 32px;
    font-size: 13px;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--reader-accent) 30%, transparent);
  }

  body.newhighcode-page .weread-workspace-step-copy {
    display: grid;
    gap: 4px;
  }

  body.newhighcode-page .weread-workspace-step-copy strong {
    color: var(--nh-on-surface);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
  }

  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-copy strong {
    font-size: 14px;
    line-height: 1.4;
  }

  body.newhighcode-page .weread-workspace-step-copy p {
    margin: 0;
    color: var(--nh-on-surface-variant);
    font-size: 13px;
    line-height: 1.65;
  }

  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-copy p {
    font-size: 12px;
    line-height: 1.55;
  }

  body.newhighcode-page .weread-workspace-action-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  body.newhighcode-page .weread-workspace-action-copy strong {
    color: var(--nh-on-surface);
    font-size: 15px;
    font-weight: 700;
  }

  body.newhighcode-page .weread-workspace-action-copy p {
    margin: 0;
    color: var(--nh-on-surface-variant);
    max-width: 520px;
    font-size: 13px;
    line-height: 1.65;
  }

  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-copy strong {
    font-size: 14px;
  }

  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-copy p {
    max-width: 460px;
    font-size: 12px;
    line-height: 1.55;
  }

  body.newhighcode-page .weread-workspace-action-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 16px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--reader-accent) 20%, var(--nh-outline));
    border-radius: 18px;
    background: linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
  }

  body.newhighcode-page .weread-workspace-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-band {
    gap: 10px 12px;
    padding: 13px 14px;
  }

  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-row {
    gap: 8px;
  }

  body.newhighcode-page .weread-workspace-action-row .soft-btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 13px;
  }

  body.newhighcode-page .weread-workspace-import-btn {
    width: fit-content;
    min-width: 168px;
    min-height: 44px;
    padding: 0 18px;
  }

  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-row .soft-btn {
    min-height: 38px;
    padding: 0 12px;
  }

  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-import-btn {
    min-width: 154px;
    min-height: 38px;
    padding: 0 14px;
  }

  body.newhighcode-page .weread-workspace-action-tip {
    color: var(--nh-on-surface-variant);
    font-size: 13px;
    line-height: 1.6;
  }

  body.newhighcode-page .weread-workspace-note {
    margin-top: 0;
  }

  body.newhighcode-page .weread-workspace-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-meta-row {
    gap: 10px;
  }

  body.newhighcode-page .weread-workspace-inline-status {
    min-height: 100%;
    display: flex;
    align-items: center;
  }

  body.newhighcode-page .weread-workspace-inline-note {
    margin-top: 0;
    min-height: 100%;
  }

  body.newhighcode-page .weread-workspace-side-card {
    display: none;
  }

  body.newhighcode-page .weread-workspace-panel .tool-workspace-grid {
    min-height: 0;
    height: 100%;
    grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.48fr);
    align-items: stretch;
    gap: 18px;
  }

  body.newhighcode-page .custom-workspace-panel .tool-workspace-toolbar {
    display: none;
  }

  body.newhighcode-page .custom-workspace-panel .tool-workspace-grid {
    min-height: 0;
    height: 100%;
    grid-template-columns: minmax(0, 1.32fr) minmax(296px, 0.8fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "compose selector";
    align-items: stretch;
    gap: 16px;
  }

  body.newhighcode-page .weread-workspace-panel .tool-workspace-grid>.tool-workspace-card:nth-child(2) {
    display: none;
  }

  body.newhighcode-page .custom-workspace-panel .tool-workspace-editor-card {
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
  }

  body.newhighcode-page .custom-workspace-selector-card,
  body.newhighcode-page .custom-workspace-compose-card {
    min-height: 0;
    height: 100%;
    display: grid;
    gap: 10px;
  }

  body.newhighcode-page .custom-workspace-selector-card {
    grid-area: selector;
    align-content: start;
  }

  body.newhighcode-page .custom-workspace-compose-card {
    grid-area: compose;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "head"
      "input"
      "status";
  }

  body.newhighcode-page .custom-workspace-selector-head,
  body.newhighcode-page .custom-workspace-compose-head {
    align-items: flex-start;
    gap: 16px;
  }

  body.newhighcode-page .custom-workspace-compose-head {
    grid-area: head;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.newhighcode-page .custom-workspace-selector-head .tool-workspace-card-copy>span,
  body.newhighcode-page .custom-workspace-compose-head .tool-workspace-card-copy>span {
    max-width: none;
    margin-left: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--nh-on-surface-variant);
    font-weight: 500;
    text-align: left;
  }

  body.newhighcode-page .custom-workspace-selector-actions {
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  body.newhighcode-page .custom-workspace-section {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 34%, transparent);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
  }

  body.newhighcode-page .custom-workspace-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body.newhighcode-page .custom-workspace-section-head strong {
    color: var(--nh-on-surface);
    font-size: 15px;
    font-weight: 700;
  }

  body.newhighcode-page .custom-workspace-section-head span {
    color: var(--nh-on-surface-variant);
    font-size: 12px;
    line-height: 1.5;
  }

  body.newhighcode-page .custom-workspace-search-box {
    display: grid;
  }

  body.newhighcode-page .custom-workspace-search-input {
    min-height: 44px;
  }

  body.newhighcode-page .custom-workspace-article-list,
  body.newhighcode-page .custom-workspace-search-list {
    display: grid;
    gap: 10px;
  }

  body.newhighcode-page .custom-workspace-article-list {
    max-height: 190px;
    overflow-y: auto;
    padding-right: 4px;
  }

  body.newhighcode-page .custom-workspace-search-list {
    min-height: 68px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
  }

  body.newhighcode-page .custom-workspace-article-btn,
  body.newhighcode-page .custom-workspace-create-btn {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 42%, transparent);
    border-radius: 16px;
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    transition:
      transform 0.18s ease,
      border-color 0.18s ease,
      box-shadow 0.18s ease,
      background-color 0.18s ease;
  }

  body.newhighcode-page .custom-workspace-article-btn:hover,
  body.newhighcode-page .custom-workspace-create-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--nh-primary) 38%, transparent);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  }

  body.newhighcode-page .custom-workspace-article-btn.active,
  body.newhighcode-page .custom-workspace-panel[data-target-mode="new"] .custom-workspace-create-btn {
    border-color: color-mix(in srgb, var(--nh-primary) 52%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 8%, #fff);
    box-shadow: 0 14px 28px rgba(76, 127, 255, 0.14);
  }

  body.newhighcode-page.dark-theme .custom-workspace-article-btn.active,
  body.newhighcode-page.dark-theme .custom-workspace-panel[data-target-mode="new"] .custom-workspace-create-btn {
    border-color: color-mix(in srgb, var(--nh-primary) 64%, transparent);
    background:
      linear-gradient(180deg,
        color-mix(in srgb, var(--nh-primary) 24%, var(--nh-elevated-soft)) 0%,
        color-mix(in srgb, var(--nh-primary) 12%, var(--nh-elevated)) 100%);
    color: var(--nh-on-surface);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--nh-primary) 24%, transparent),
      0 14px 28px rgba(0, 0, 0, 0.24);
  }

  body.newhighcode-page .custom-workspace-article-btn-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 4px;
  }

  body.newhighcode-page .custom-workspace-article-btn-title {
    color: var(--nh-on-surface);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
  }

  body.newhighcode-page .custom-workspace-article-btn-meta {
    color: var(--nh-on-surface-variant);
    font-size: 12px;
    line-height: 1.5;
  }

  body.newhighcode-page.dark-theme .custom-workspace-article-btn.active .custom-workspace-article-btn-title {
    color: #f3f7ff;
  }

  body.newhighcode-page.dark-theme .custom-workspace-article-btn.active .custom-workspace-article-btn-meta {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 82%, #dce8ff);
  }

  body.newhighcode-page .custom-workspace-create-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--nh-primary) 10%, #fff);
    color: var(--nh-primary);
    font-size: 22px;
    font-weight: 500;
    flex: 0 0 auto;
  }

  body.newhighcode-page.dark-theme .custom-workspace-panel[data-target-mode="new"] .custom-workspace-create-icon {
    background: color-mix(in srgb, var(--nh-primary) 26%, var(--nh-surface));
    color: #dbe8ff;
  }

  body.newhighcode-page .custom-workspace-create-title-field {
    display: none;
  }

  body.newhighcode-page .custom-workspace-create-title-field .tool-workspace-input {
    min-height: 44px;
  }

  body.newhighcode-page .custom-workspace-panel[data-target-mode="new"] .custom-workspace-create-title-field {
    display: grid;
  }

  body.newhighcode-page .custom-workspace-panel[data-target-mode="new"] .custom-workspace-create-title-field .tool-workspace-input {
    border-color: color-mix(in srgb, var(--nh-primary) 52%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 10%, var(--nh-elevated-soft));
  }

  body.newhighcode-page.dark-theme .custom-workspace-panel[data-target-mode="new"] .custom-workspace-create-title-field .tool-workspace-input {
    color-scheme: dark;
    border-color: color-mix(in srgb, var(--nh-primary) 58%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 16%, var(--nh-elevated-soft));
    color: var(--nh-on-surface);
    caret-color: var(--nh-primary);
  }

  body.newhighcode-page.dark-theme .custom-workspace-panel[data-target-mode="new"] .custom-workspace-create-title-field .tool-workspace-input:focus {
    border-color: color-mix(in srgb, var(--nh-primary) 72%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 20%, var(--nh-elevated-soft));
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 26%, transparent),
      0 0 0 4px color-mix(in srgb, var(--nh-primary) 18%, transparent);
  }

  body.newhighcode-page.dark-theme .custom-workspace-panel .tool-workspace-input::placeholder {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 78%, transparent);
  }

  body.newhighcode-page.dark-theme .custom-workspace-panel .tool-workspace-input::selection {
    background: color-mix(in srgb, var(--nh-primary) 38%, transparent);
    color: #ffffff;
  }

  body.newhighcode-page .custom-workspace-empty {
    padding: 14px;
    border: 1px dashed color-mix(in srgb, var(--nh-outline) 56%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--nh-elevated-muted) 92%, transparent);
    color: var(--nh-on-surface-variant);
    font-size: 13px;
    line-height: 1.6;
  }

  body.newhighcode-page .tool-workspace-editor-card {
    min-height: 0;
    display: grid;
    gap: 16px;
  }

  body.newhighcode-page .tool-workspace-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body.newhighcode-page .tool-workspace-card-head-with-actions {
    align-items: flex-start;
    gap: 16px;
  }

  body.newhighcode-page .tool-workspace-card-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 6px;
  }

  body.newhighcode-page .tool-workspace-card-head strong {
    color: var(--nh-on-surface);
    font-size: 18px;
    font-weight: 700;
  }

  body.newhighcode-page .tool-workspace-card-head span {
    color: var(--nh-on-surface-variant);
    font-size: 12px;
    line-height: 1.5;
  }

  body.newhighcode-page .tool-workspace-textarea {
    width: 100%;
    min-height: 520px;
    height: 100%;
    resize: none;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 46%, transparent);
    border-radius: 18px;
    padding: 18px 20px;
    background: var(--nh-elevated-soft);
    color: var(--nh-on-surface);
    font: inherit;
    font-size: 14px;
    line-height: 1.75;
    outline: none;
  }

  body.newhighcode-page .weread-workspace-panel .tool-workspace-editor-card {
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.newhighcode-page .weread-workspace-panel .tool-workspace-textarea {
    min-height: clamp(520px, calc(100vh - 300px), 1080px);
  }

  body.newhighcode-page .tool-workspace-textarea:focus {
    border-color: color-mix(in srgb, var(--nh-primary) 52%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--nh-primary) 12%, transparent);
  }

  body.newhighcode-page .tool-workspace-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.newhighcode-page .custom-workspace-selected-article {
    padding: 0 18px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 34%, transparent);
    border-radius: 18px;
    background: var(--nh-contrast-surface);
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 74px;
    min-width: 0;
    overflow: hidden;
    align-self: start;
    width: 100%;
  }

  body.newhighcode-page .custom-workspace-selected-article[data-state="empty"] {
    background: color-mix(in srgb, var(--nh-surface-low) 84%, var(--nh-elevated));
  }

  body.newhighcode-page .custom-workspace-selected-kicker {
    display: none;
  }

  body.newhighcode-page .custom-workspace-selected-title {
    color: var(--nh-on-surface);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.newhighcode-page .custom-workspace-selected-summary {
    display: none;
  }

  body.newhighcode-page .tool-workspace-field {
    display: grid;
    gap: 8px;
  }

  body.newhighcode-page .tool-workspace-field-wide {
    grid-column: 1 / -1;
  }

  body.newhighcode-page .tool-workspace-field>span {
    color: var(--nh-on-surface-variant);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
  }

  body.newhighcode-page .tool-workspace-input {
    width: 100%;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 46%, transparent);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--nh-elevated-soft);
    color: var(--nh-on-surface);
    font: inherit;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    resize: none;
  }

  body.newhighcode-page .tool-workspace-input:focus {
    border-color: color-mix(in srgb, var(--nh-primary) 52%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--nh-primary) 12%, transparent);
  }

  body.newhighcode-page .tool-workspace-input-multiline {
    min-height: 96px;
    resize: vertical;
  }

  body.newhighcode-page .custom-workspace-input-panel {
    grid-area: input;
    min-height: 0;
    height: 100%;
    align-self: stretch;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 34%, transparent);
    border-radius: 18px;
    background: var(--nh-contrast-surface);
    display: flex;
    overflow: hidden;
  }

  body.newhighcode-page .custom-workspace-input-panel:focus-within {
    border-color: color-mix(in srgb, var(--nh-primary) 52%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--nh-primary) 12%, transparent);
  }

  body.newhighcode-page .custom-workspace-panel .tool-workspace-textarea {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(50%);
  }

  body.newhighcode-page .custom-workspace-editor {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: auto;
    color: var(--nh-on-surface);
    font-size: 14px;
    line-height: 1.75;
    display: flex;
    flex-direction: column;
  }

  body.newhighcode-page .custom-workspace-editor .pell-actionbar {
    display: none;
  }

  body.newhighcode-page .custom-workspace-editor .pell-button {
    width: 32px;
    height: 30px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 26%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--nh-surface) 74%, transparent);
    color: var(--nh-on-surface);
    font: inherit;
  }

  body.newhighcode-page .custom-workspace-editor .pell-button:hover {
    border-color: color-mix(in srgb, var(--nh-primary) 42%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 8%, var(--nh-surface));
  }

  body.newhighcode-page .custom-workspace-editor .pell-button-selected {
    border-color: color-mix(in srgb, var(--nh-primary) 58%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 14%, var(--nh-surface));
    color: var(--nh-primary);
  }

  body.newhighcode-page .custom-workspace-editor .pell-content {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: auto;
    padding: 12px 4px 0;
    outline: 0;
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .custom-workspace-editor .pell-content:empty::before {
    content: attr(data-placeholder);
    color: var(--nh-muted);
    pointer-events: none;
  }

  body.newhighcode-page .custom-workspace-editor .pell-content h1 {
    font-size: 26px;
  }

  body.newhighcode-page .custom-workspace-editor .pell-content h2 {
    font-size: 22px;
  }

  body.newhighcode-page .custom-workspace-editor .pell-content h3 {
    font-size: 18px;
  }

  body.newhighcode-page .custom-workspace-editor.is-disabled {
    opacity: .64;
    pointer-events: none;
  }

  @media (max-width: 980px) {
    body.newhighcode-page .custom-workspace-input-panel {
      flex-direction: column;
    }

    body.newhighcode-page .custom-workspace-editor {
      flex: 1 1 auto;
      min-height: 240px;
    }
  }

  body.newhighcode-page .custom-workspace-panel .tool-workspace-textarea:focus {
    border-color: transparent;
    box-shadow: none;
  }

  body.newhighcode-page .custom-workspace-advanced {
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    align-self: start;
  }

  body.newhighcode-page .custom-workspace-advanced>summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    color: var(--nh-on-surface);
    font-size: 13px;
    font-weight: 700;
    max-width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 44%, transparent);
    border-radius: 999px;
    background: var(--nh-elevated);
  }

  body.newhighcode-page .custom-workspace-advanced>summary::-webkit-details-marker {
    display: none;
  }

  body.newhighcode-page .custom-workspace-advanced[open]>summary {
    margin-bottom: 12px;
  }

  body.newhighcode-page .custom-workspace-advanced[open] {
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 38%, transparent);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
  }

  body.newhighcode-page .custom-workspace-advanced-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 0;
  }

  body.newhighcode-page .tool-workspace-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  body.newhighcode-page .tool-workspace-action-band {
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 38%, transparent);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  }

  body.newhighcode-page .weread-workspace-card-head {
    padding-bottom: 4px;
  }

  body.newhighcode-page .weread-workspace-actions,
  body.newhighcode-page .pdf-workspace-frame-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
    align-self: flex-start;
    margin-left: auto;
    gap: 10px;
  }

  body.newhighcode-page .weread-workspace-card-head #wereadWorkspaceDraftMeta {
    max-width: 620px;
  }

  body.newhighcode-page .weread-workspace-actions .soft-btn,
  body.newhighcode-page .pdf-workspace-frame-actions .soft-btn {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--nh-primary) 82%, #0f172a);
    background: var(--nh-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(76, 127, 255, 0.22);
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      border-color 0.2s ease,
      background-color 0.2s ease,
      color 0.2s ease;
  }

  body.newhighcode-page .weread-workspace-actions .soft-btn:hover,
  body.newhighcode-page .pdf-workspace-frame-actions .soft-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--nh-primary) 88%, #0f172a);
    background: color-mix(in srgb, var(--nh-primary) 90%, #0f172a);
    color: #fff;
    box-shadow: 0 14px 28px rgba(76, 127, 255, 0.28);
  }

  body.newhighcode-page .pdf-workspace-frame-actions .soft-btn {
    border-color: color-mix(in srgb, var(--nh-outline) 42%, transparent);
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  }

  body.newhighcode-page .pdf-workspace-frame-actions .soft-btn:hover {
    border-color: color-mix(in srgb, var(--nh-primary) 24%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 6%, var(--nh-elevated));
    color: var(--nh-on-surface);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  }

  body.newhighcode-page .weread-workspace-actions .tool-workspace-primary {
    min-height: 48px;
    padding: 0 18px;
  }

  body.newhighcode-page .weread-workspace-actions .tool-workspace-primary,
  body.newhighcode-page .weread-workspace-actions .tool-workspace-primary:hover {
    color: #fff;
  }

  body.newhighcode-page .custom-workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    margin-left: 0;
  }

  body.newhighcode-page .custom-workspace-actions .soft-btn {
    min-width: 0;
    justify-content: center;
  }

  body.newhighcode-page .custom-workspace-selector-actions .soft-btn {
    min-width: 0;
    justify-content: center;
  }

  body.newhighcode-page #customWorkspaceResetArticleBtn {
    order: 1;
  }

  body.newhighcode-page #customWorkspacePasteBtn {
    order: 2;
  }

  body.newhighcode-page #customWorkspaceClearBtn {
    order: 3;
  }

  body.newhighcode-page #customWorkspaceImportBtn {
    order: 4;
  }

  body.newhighcode-page .custom-workspace-primary-action {
    min-height: 48px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 700;
    min-width: 140px;
    width: auto;
    box-shadow: 0 16px 32px rgba(76, 127, 255, 0.22);
  }

  body.newhighcode-page .custom-workspace-status-stack {
    grid-area: status;
    display: none;
  }

  body.newhighcode-page .custom-workspace-compose-head .tool-workspace-card-copy>span {
    display: none;
  }

  body.newhighcode-page .custom-workspace-status-stack .tool-workspace-note {
    display: none;
  }

  body.newhighcode-page .custom-workspace-status-stack .tool-workspace-status[data-tone="neutral"] {
    display: none;
  }

  body.newhighcode-page .weread-workspace-panel .tool-workspace-grid>.tool-workspace-card:last-child {
    display: grid;
    align-content: start;
    gap: 16px;
  }

  body.newhighcode-page .tool-workspace-checklist {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: var(--nh-on-surface-variant);
    font-size: 13px;
    line-height: 1.65;
  }

  body.newhighcode-page .pdf-workspace-panel .tool-frame-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 14px;
    border-bottom: none;
    background: transparent;
  }

  body.newhighcode-page .tool-frame-card-fill,
  body.newhighcode-page .pdf-workspace-panel .tool-frame-card {
    min-height: 0;
    height: 100%;
    grid-template-rows: minmax(0, 1fr);
  }

  body.newhighcode-page .pdf-workspace-panel .tool-frame-card {
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    border-radius: 28px;
  }

  body.newhighcode-page .pdf-workspace-panel .tool-workspace-frame {
    min-height: 420px;
    height: 100%;
  }

  body.newhighcode-page .pdf-workspace-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 34%, transparent);
    background: var(--nh-contrast-surface);
    box-shadow: var(--nh-shadow);
  }

  body.newhighcode-page .pdf-workspace-topbar-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  body.newhighcode-page .pdf-workspace-topbar-text {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  body.newhighcode-page .pdf-workspace-topbar-text strong {
    color: var(--nh-on-surface);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
  }

  body.newhighcode-page .pdf-workspace-topbar-text p {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 13px;
    line-height: 1.55;
  }

  body.newhighcode-page .pdf-workspace-status-inline {
    min-width: 280px;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 34%, transparent);
    background: color-mix(in srgb, var(--nh-surface-low) 80%, #fff);
  }

  body.newhighcode-page .pdf-workspace-status-inline strong {
    color: var(--nh-on-surface);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
  }

  body.newhighcode-page .pdf-workspace-status-inline span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 12px;
    line-height: 1.5;
  }

  body.newhighcode-page .pdf-workspace-status-inline[data-tone="loading"] {
    border-color: color-mix(in srgb, var(--nh-primary) 28%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 8%, #fff);
  }

  body.newhighcode-page .pdf-workspace-status-inline[data-tone="success"] {
    border-color: rgba(34, 197, 94, 0.26);
    background: rgba(238, 251, 243, 0.98);
  }

  body.newhighcode-page .pdf-workspace-frame-title {
    color: var(--nh-on-surface);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
  }

  body.newhighcode-page .tool-workspace-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 40%, transparent);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--nh-shadow);
  }

  body.newhighcode-page .tool-workspace-hero-copy {
    max-width: 760px;
  }

  body.newhighcode-page .tool-workspace-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nh-primary) 12%, #fff);
    color: var(--nh-primary);
    font-size: 12px;
    font-weight: 700;
  }

  body.newhighcode-page .tool-workspace-hero h2 {
    margin: 12px 0 10px;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  body.newhighcode-page .tool-workspace-hero p {
    margin: 0;
    color: var(--nh-on-surface-variant);
    font-size: 14px;
    line-height: 1.7;
  }

  body.newhighcode-page .tool-workspace-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

  body.newhighcode-page .tool-workspace-primary {
    background: var(--nh-primary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(76, 127, 255, 0.18);
  }

  body.newhighcode-page .tool-workspace-primary:hover {
    background: color-mix(in srgb, var(--nh-primary) 92%, #fff);
    color: #fff;
  }

  body.newhighcode-page .tool-workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  body.newhighcode-page .tool-workspace-card,
  body.newhighcode-page .tool-frame-card {
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 36%, transparent);
    background: var(--nh-contrast-surface);
    box-shadow: var(--nh-shadow);
  }

  body.newhighcode-page .tool-workspace-card {
    padding: 22px 24px;
  }

  body.newhighcode-page .tool-workspace-card h3,
  body.newhighcode-page .tool-frame-head strong {
    margin: 0 0 14px;
    color: var(--nh-on-surface);
    font-size: 18px;
    font-weight: 700;
  }

  body.newhighcode-page .tool-step-list {
    margin: 0;
    padding-left: 20px;
    color: var(--nh-on-surface);
    display: grid;
    gap: 12px;
    line-height: 1.7;
  }

  body.newhighcode-page .tool-workspace-status {
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--nh-primary) 8%, #fff);
    color: var(--nh-on-surface);
    font-size: 14px;
    line-height: 1.6;
  }

  body.newhighcode-page .tool-workspace-status[data-tone="success"] {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
  }

  body.newhighcode-page .tool-workspace-status[data-tone="error"] {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
  }

  body.newhighcode-page .tool-workspace-status[data-tone="loading"] {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
  }

  body.newhighcode-page .tool-workspace-note {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--nh-secondary-container) 45%, #fff);
  }

  body.newhighcode-page .tool-workspace-note strong {
    display: block;
    margin-bottom: 6px;
    color: var(--nh-on-surface);
    font-size: 13px;
  }

  body.newhighcode-page .tool-workspace-note p,
  body.newhighcode-page .tool-frame-head p {
    margin: 0;
    color: var(--nh-on-surface-variant);
    font-size: 13px;
    line-height: 1.6;
  }

  body.newhighcode-page .tool-frame-card {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  body.newhighcode-page .tool-frame-head {
    padding: 18px 22px;
    border-bottom: 1px solid color-mix(in srgb, var(--nh-outline) 34%, transparent);
  }

  body.newhighcode-page .tool-workspace-frame {
    width: 100%;
    min-height: 680px;
    height: 100%;
    border: 0;
    background: var(--nh-elevated);
  }

  body.newhighcode-page .home-view-root {
    max-width: 1680px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    gap: 18px;
  }

  body.newhighcode-page .home-stats-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }

  body.newhighcode-page .home-stats-title-wrap h2 {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  body.newhighcode-page .home-stats-title-wrap p {
    margin: 8px 0 0;
    color: var(--nh-on-surface-variant);
    font-size: 13px;
    font-weight: 500;
  }

  body.newhighcode-page .home-period-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--nh-on-surface) 8%, transparent);
  }

  body.newhighcode-page .home-period-switch button {
    height: 36px;
    min-width: 84px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: var(--nh-on-surface-variant);
    font-size: 12px;
    font-weight: 700;
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    cursor: pointer;
  }

  body.newhighcode-page .home-period-switch button.active {
    background: var(--nh-elevated);
    color: #4a78ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  body.newhighcode-page .home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  body.newhighcode-page .home-stat-card {
    background: var(--nh-surface);
    border: 1px solid color-mix(in srgb, var(--nh-outline) 42%, transparent);
    border-radius: 22px;
    box-shadow: var(--nh-shadow);
    padding: 24px;
  }

  body.newhighcode-page .home-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }

  body.newhighcode-page .home-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
  }

  body.newhighcode-page .home-stat-icon svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  body.newhighcode-page .home-stat-icon svg path,
  body.newhighcode-page .home-stat-icon svg rect,
  body.newhighcode-page .home-stat-icon svg line,
  body.newhighcode-page .home-stat-icon svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.newhighcode-page .home-stat-icon.blue {
    background: rgba(74, 120, 255, 0.12);
    color: #4a78ff;
  }

  body.newhighcode-page .home-stat-icon.sky {
    background: rgba(74, 120, 255, 0.1);
    color: #3b82f6;
  }

  body.newhighcode-page .home-stat-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
  }

  body.newhighcode-page .home-stat-icon.purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
  }

  body.newhighcode-page .home-stat-trend {
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  }

  body.newhighcode-page .home-stat-trend.up {
    color: #22a85a;
    background: rgba(34, 168, 90, 0.12);
  }

  body.newhighcode-page .home-stat-trend.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
  }

  body.newhighcode-page .home-stat-trend.flat {
    color: var(--nh-on-surface-variant);
    background: rgba(148, 163, 184, 0.16);
  }

  body.newhighcode-page .home-stat-value {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.01em;
  }

  body.newhighcode-page .home-stat-label {
    margin: 8px 0 0;
    color: var(--nh-on-surface-variant);
    font-size: 13px;
    font-weight: 500;
  }

  body.newhighcode-page .home-stat-foot {
    margin: 16px 0 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 70%, #fff);
    font-size: 11px;
    letter-spacing: 0.06em;
    font-weight: 700;
  }

  body.newhighcode-page .home-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
  }

  body.newhighcode-page .home-main-grid>.home-panel-card {
    height: 100%;
  }

  body.newhighcode-page .home-panel-card {
    background: var(--nh-surface);
    border: 1px solid color-mix(in srgb, var(--nh-outline) 42%, transparent);
    border-radius: 22px;
    box-shadow: var(--nh-shadow);
    padding: 22px 24px;
  }

  body.newhighcode-page .home-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  body.newhighcode-page .home-panel-head h3 {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 15px;
    letter-spacing: -0.015em;
  }

  body.newhighcode-page .home-panel-head p {
    margin: 8px 0 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 82%, #fff);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
  }

  body.newhighcode-page .home-legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nh-on-surface-variant);
    font-size: 11px;
    font-weight: 600;
  }

  body.newhighcode-page .home-legend i {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
  }

  body.newhighcode-page .home-legend i.lv0 {
    background: rgba(203, 213, 225, 0.78);
  }

  body.newhighcode-page .home-legend i.lv1 {
    background: #dcfce7;
  }

  body.newhighcode-page .home-legend i.lv2 {
    background: #86efac;
  }

  body.newhighcode-page .home-legend i.lv3 {
    background: #4ade80;
  }

  body.newhighcode-page .home-legend i.lv4 {
    background: #16a34a;
  }

  body.newhighcode-page .home-calendar-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  body.newhighcode-page .home-calendar-head-copy {
    min-width: 0;
  }

  body.newhighcode-page .home-calendar-summary {
    display: grid;
    gap: 12px;
  }

  body.newhighcode-page .home-calendar-summary-line {
    margin: 0;
    color: var(--nh-on-surface);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
  }

  body.newhighcode-page .home-calendar-summary-line.is-muted {
    color: var(--nh-on-surface-variant);
  }

  body.newhighcode-page .home-calendar-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.newhighcode-page .home-calendar-metric-card {
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 52%, transparent);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 255, 0.92));
    display: grid;
    gap: 6px;
  }

  body.newhighcode-page .home-calendar-metric-card.is-skeleton {
    gap: 10px;
  }

  body.newhighcode-page .home-calendar-metric-label {
    color: var(--nh-on-surface-variant);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  body.newhighcode-page .home-calendar-metric-value {
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 20px;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  body.newhighcode-page .home-calendar-metric-note {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 80%, #fff);
    font-size: 12px;
    line-height: 1.45;
    min-height: 18px;
  }

  body.newhighcode-page .home-calendar-metric-note:empty {
    display: none;
  }

  body.newhighcode-page .home-calendar-body {
    min-height: 0;
  }

  body.newhighcode-page .home-calendar-contrib-view {
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 56%, transparent);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.96));
    padding: 16px;
  }

  body.newhighcode-page .home-calendar-contrib-view .home-calendar-layout {
    margin-top: 0;
    align-items: flex-start;
    overflow: hidden;
  }

  body.newhighcode-page .home-calendar-contrib-view .home-calendar-main {
    padding-bottom: 2px;
  }

  body.newhighcode-page .home-calendar-contrib-foot {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  body.newhighcode-page .home-calendar-contrib-note {
    color: var(--nh-on-surface);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
  }

  body.newhighcode-page .home-calendar-contrib-range {
    margin: 0;
    color: var(--nh-on-surface-variant);
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
  }

  body.newhighcode-page .home-calendar-week-view {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.newhighcode-page .home-calendar-day-card {
    flex: 1 1 0;
    min-width: 118px;
    border-radius: 18px;
    border: 1px solid rgba(74, 120, 255, 0.12);
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(244, 247, 255, 0.92));
    padding: 14px;
    display: grid;
    gap: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }

  body.newhighcode-page .home-calendar-day-card.is-skeleton {
    min-width: 118px;
  }

  body.newhighcode-page .home-calendar-day-card.is-empty-day {
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.35);
  }

  body.newhighcode-page .home-calendar-day-card.lv1,
  body.newhighcode-page .home-calendar-month-cell.lv1 {
    background: rgba(74, 120, 255, 0.09);
  }

  body.newhighcode-page .home-calendar-day-card.lv2,
  body.newhighcode-page .home-calendar-month-cell.lv2 {
    background: rgba(74, 120, 255, 0.16);
  }

  body.newhighcode-page .home-calendar-day-card.lv3,
  body.newhighcode-page .home-calendar-month-cell.lv3 {
    background: rgba(74, 120, 255, 0.24);
    border-color: rgba(74, 120, 255, 0.22);
  }

  body.newhighcode-page .home-calendar-day-card.lv4,
  body.newhighcode-page .home-calendar-month-cell.lv4 {
    background: rgba(74, 120, 255, 0.34);
    border-color: rgba(74, 120, 255, 0.26);
  }

  body.newhighcode-page .home-calendar-day-card.is-today,
  body.newhighcode-page .home-calendar-month-cell.is-today {
    box-shadow:
      0 0 0 2px rgba(74, 120, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  body.newhighcode-page .home-calendar-day-top,
  body.newhighcode-page .home-calendar-month-head,
  body.newhighcode-page .home-calendar-month-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  body.newhighcode-page .home-calendar-day-week {
    color: var(--nh-on-surface-variant);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  body.newhighcode-page .home-calendar-day-badge {
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(74, 120, 255, 0.14);
    color: #3f6dff;
    font-size: 11px;
    font-weight: 700;
  }

  body.newhighcode-page .home-calendar-day-date {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  body.newhighcode-page .home-calendar-day-count {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .home-calendar-day-count strong {
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.03em;
  }

  body.newhighcode-page .home-calendar-day-count span,
  body.newhighcode-page .home-calendar-day-meta,
  body.newhighcode-page .home-calendar-month-head p,
  body.newhighcode-page .home-calendar-month-card-head p,
  body.newhighcode-page .home-calendar-empty-state p {
    color: var(--nh-on-surface-variant);
    font-size: 12px;
    line-height: 1.5;
  }

  body.newhighcode-page .home-calendar-day-meta {
    margin: 0;
  }

  body.newhighcode-page .home-calendar-month-view,
  body.newhighcode-page .home-calendar-all-view {
    min-width: 0;
  }

  body.newhighcode-page .home-calendar-month-panel,
  body.newhighcode-page .home-calendar-month-card {
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 52%, transparent);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.94));
    padding: 16px;
  }

  body.newhighcode-page .home-calendar-month-panel.is-skeleton,
  body.newhighcode-page .home-calendar-month-card.is-skeleton {
    background: rgba(248, 250, 255, 0.92);
  }

  body.newhighcode-page .home-calendar-month-head h4,
  body.newhighcode-page .home-calendar-month-card-head h4 {
    margin: 0;
    color: var(--nh-on-surface);
    font-size: 16px;
    line-height: 1.2;
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  }

  body.newhighcode-page .home-calendar-month-head p,
  body.newhighcode-page .home-calendar-month-card-head p {
    margin: 6px 0 0;
  }

  body.newhighcode-page .home-calendar-mini-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  body.newhighcode-page .home-calendar-mini-metric {
    min-width: 0;
    padding: 7px 9px;
    border-radius: 12px;
    background: rgba(74, 120, 255, 0.08);
    color: var(--nh-on-surface);
    display: grid;
    gap: 2px;
    text-align: right;
  }

  body.newhighcode-page .home-calendar-mini-metric strong {
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.05;
  }

  body.newhighcode-page .home-calendar-mini-metric span {
    color: var(--nh-on-surface-variant);
    font-size: 10px;
    line-height: 1.3;
  }

  body.newhighcode-page .home-calendar-weekday-row {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
  }

  body.newhighcode-page .home-calendar-weekday-row.is-compact {
    margin-top: 14px;
    gap: 6px;
  }

  body.newhighcode-page .home-calendar-weekday-row span {
    color: var(--nh-on-surface-variant);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
  }

  body.newhighcode-page .home-calendar-month-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
  }

  body.newhighcode-page .home-calendar-month-grid.is-compact {
    gap: 6px;
  }

  body.newhighcode-page .home-calendar-month-cell {
    min-height: 68px;
    border-radius: 14px;
    border: 1px solid rgba(74, 120, 255, 0.1);
    background: rgba(246, 249, 255, 0.86);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }

  body.newhighcode-page .home-calendar-month-cell.is-compact {
    min-height: 48px;
    padding: 7px 6px;
    border-radius: 12px;
  }

  body.newhighcode-page .home-calendar-month-cell.is-empty-day {
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.24);
  }

  body.newhighcode-page .home-calendar-month-cell.is-future,
  body.newhighcode-page .home-calendar-month-cell.is-out-of-range {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.14);
  }

  body.newhighcode-page .home-calendar-month-cell.is-pad {
    visibility: hidden;
    pointer-events: none;
  }

  body.newhighcode-page .home-calendar-month-day {
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
  }

  body.newhighcode-page .home-calendar-month-cell.is-compact .home-calendar-month-day {
    font-size: 12px;
  }

  body.newhighcode-page .home-calendar-month-count {
    align-self: flex-end;
    color: var(--nh-on-surface-variant);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
  }

  body.newhighcode-page .home-calendar-month-cell.is-compact .home-calendar-month-count {
    display: none;
  }

  body.newhighcode-page .home-calendar-month-count.is-empty {
    opacity: 0;
  }

  body.newhighcode-page .home-calendar-all-view {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.newhighcode-page .home-calendar-month-card.is-current {
    box-shadow: 0 0 0 2px rgba(74, 120, 255, 0.12);
  }

  body.newhighcode-page .home-calendar-empty-state {
    border-radius: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.38);
    background: rgba(248, 250, 255, 0.92);
    padding: 24px 20px;
    text-align: center;
  }

  body.newhighcode-page .home-calendar-empty-state strong {
    display: block;
    color: var(--nh-on-surface);
    font-size: 14px;
    line-height: 1.4;
  }

  body.newhighcode-page .home-calendar-empty-state p {
    margin: 8px 0 0;
  }

  body.newhighcode-page .home-calendar-skeleton-line {
    display: block;
    height: 10px;
    border-radius: 999px;
    background:
      linear-gradient(90deg, rgba(226, 232, 240, 0.82), rgba(255, 255, 255, 0.96), rgba(226, 232, 240, 0.82));
    background-size: 220% 100%;
    animation: home-calendar-skeleton-pulse 1.5s ease infinite;
  }

  body.newhighcode-page .home-calendar-skeleton-line.is-wide {
    width: min(440px, 100%);
    height: 12px;
  }

  body.newhighcode-page .home-calendar-skeleton-line.is-medium {
    width: 68%;
  }

  body.newhighcode-page .home-calendar-skeleton-line.is-short {
    width: 42%;
  }

  @keyframes home-calendar-skeleton-pulse {
    0% {
      background-position: 100% 0;
    }

    100% {
      background-position: -100% 0;
    }
  }

  body.newhighcode-page .home-calendar-layout {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.newhighcode-page .home-week-labels {
    width: 52px;
    display: grid;
    grid-template-rows: repeat(7, 14px);
    gap: 6px;
    height: 134px;
    padding-top: 0;
    align-content: start;
  }

  body.newhighcode-page .home-week-labels .r1 {
    grid-row: 1;
  }

  body.newhighcode-page .home-week-labels .r3 {
    grid-row: 3;
  }

  body.newhighcode-page .home-week-labels .r5 {
    grid-row: 5;
  }

  body.newhighcode-page .home-week-labels .r7 {
    grid-row: 7;
  }

  body.newhighcode-page .home-calendar-card {
    min-height: 0;
  }

  body.newhighcode-page .home-week-labels span {
    color: var(--nh-on-surface-variant);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  body.newhighcode-page .home-calendar-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    --home-calendar-cell-size: 14px;
    --home-calendar-cell-gap: 4px;
    overflow-x: auto;
  }

  body.newhighcode-page .home-month-labels {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--home-calendar-cell-size);
    margin: 0 0 16px;
    padding: 0 2px;
    gap: var(--home-calendar-cell-gap);
    align-content: start;
    width: max-content;
    min-width: 100%;
    max-width: none;
    overflow: visible;
  }

  body.newhighcode-page .home-month-labels span {
    grid-column: auto / span 1;
    min-width: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 88%, #fff);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
  }

  body.newhighcode-page .home-month-labels span.active {
    color: #4a78ff;
  }

  body.newhighcode-page .home-month-labels span.right {
    text-align: right;
  }

  body.newhighcode-page .home-month-labels span.is-placeholder {
    opacity: 0.45;
  }

  body.newhighcode-page .home-heatmap {
    display: grid;
    grid-template-rows: repeat(7, var(--home-calendar-cell-size));
    grid-auto-flow: column;
    grid-auto-columns: var(--home-calendar-cell-size);
    gap: var(--home-calendar-cell-gap);
    align-content: start;
    width: max-content;
    min-width: 100%;
    max-width: none;
  }

  body.newhighcode-page .home-heatmap>span {
    width: var(--home-calendar-cell-size);
    height: var(--home-calendar-cell-size);
    border-radius: 3px;
    position: relative;
    transition:
      transform 140ms ease,
      box-shadow 140ms ease,
      opacity 140ms ease;
  }

  body.newhighcode-page .home-heatmap>span.is-pad {
    visibility: hidden;
  }

  body.newhighcode-page .home-heatmap>span.is-interactive {
    cursor: pointer;
  }

  body.newhighcode-page .home-heatmap>span.is-interactive:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(22, 163, 74, 0.16);
  }

  body.newhighcode-page .home-heatmap>span.is-empty-day {
    opacity: 0.78;
  }

  body.newhighcode-page .home-heatmap .lv0 {
    background: rgba(226, 232, 240, 0.92);
  }

  body.newhighcode-page .home-heatmap .lv1 {
    background: #dcfce7;
  }

  body.newhighcode-page .home-heatmap .lv2 {
    background: #86efac;
  }

  body.newhighcode-page .home-heatmap .lv3 {
    background: #4ade80;
  }

  body.newhighcode-page .home-heatmap .lv4 {
    background: #16a34a;
  }

  body.newhighcode-page .home-heatmap>span.is-active {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.22);
  }

  body.newhighcode-page .home-heatmap>span.is-active:hover {
    box-shadow:
      0 0 0 3px rgba(22, 163, 74, 0.22),
      0 8px 16px rgba(22, 163, 74, 0.18);
  }

  body.newhighcode-page .home-calendar-contrib-view.is-month-focus .home-month-labels span:not(.active) {
    opacity: 0.52;
  }

  body.newhighcode-page .home-calendar-contrib-view.is-month-focus .home-heatmap>span.is-muted-month {
    opacity: 0.26;
    filter: saturate(0.45);
  }

  body.newhighcode-page.dark-theme .home-legend i.lv0 {
    background: rgba(72, 84, 104, 0.92);
  }

  body.newhighcode-page.dark-theme .home-calendar-metric-card,
  body.newhighcode-page.dark-theme .home-calendar-contrib-view,
  body.newhighcode-page.dark-theme .home-calendar-month-panel,
  body.newhighcode-page.dark-theme .home-calendar-month-card,
  body.newhighcode-page.dark-theme .home-calendar-day-card,
  body.newhighcode-page.dark-theme .home-calendar-month-cell,
  body.newhighcode-page.dark-theme .home-calendar-empty-state {
    border-color: color-mix(in srgb, var(--nh-outline) 90%, transparent);
    box-shadow: var(--nh-shadow-soft);
  }

  body.newhighcode-page.dark-theme .home-calendar-metric-card {
    background: linear-gradient(180deg, rgba(31, 37, 47, 0.96), rgba(23, 28, 37, 0.94));
  }

  body.newhighcode-page.dark-theme .home-calendar-metric-card.is-skeleton,
  body.newhighcode-page.dark-theme .home-calendar-contrib-view,
  body.newhighcode-page.dark-theme .home-calendar-month-panel,
  body.newhighcode-page.dark-theme .home-calendar-month-card,
  body.newhighcode-page.dark-theme .home-calendar-empty-state {
    background: linear-gradient(180deg, rgba(29, 35, 45, 0.96), rgba(21, 26, 34, 0.94));
  }

  body.newhighcode-page.dark-theme .home-calendar-day-card,
  body.newhighcode-page.dark-theme .home-calendar-month-cell {
    background: linear-gradient(180deg, rgba(28, 34, 44, 0.96), rgba(21, 26, 35, 0.92));
  }

  body.newhighcode-page.dark-theme .home-calendar-day-card.is-empty-day,
  body.newhighcode-page.dark-theme .home-calendar-month-cell.is-empty-day {
    border-color: rgba(110, 124, 149, 0.36);
  }

  body.newhighcode-page.dark-theme .home-calendar-day-card.lv1,
  body.newhighcode-page.dark-theme .home-calendar-month-cell.lv1 {
    background: color-mix(in srgb, var(--nh-primary) 14%, rgba(24, 29, 38, 0.96));
  }

  body.newhighcode-page.dark-theme .home-calendar-day-card.lv2,
  body.newhighcode-page.dark-theme .home-calendar-month-cell.lv2 {
    background: color-mix(in srgb, var(--nh-primary) 24%, rgba(24, 29, 38, 0.96));
  }

  body.newhighcode-page.dark-theme .home-calendar-day-card.lv3,
  body.newhighcode-page.dark-theme .home-calendar-month-cell.lv3 {
    background: color-mix(in srgb, var(--nh-primary) 34%, rgba(24, 29, 38, 0.96));
    border-color: rgba(123, 167, 255, 0.28);
  }

  body.newhighcode-page.dark-theme .home-calendar-day-card.lv4,
  body.newhighcode-page.dark-theme .home-calendar-month-cell.lv4 {
    background: color-mix(in srgb, var(--nh-primary) 44%, rgba(24, 29, 38, 0.98));
    border-color: rgba(123, 167, 255, 0.34);
  }

  body.newhighcode-page.dark-theme .home-calendar-day-card.is-today,
  body.newhighcode-page.dark-theme .home-calendar-month-cell.is-today {
    box-shadow:
      0 0 0 2px rgba(123, 167, 255, 0.28),
      0 14px 28px rgba(0, 0, 0, 0.24);
  }

  body.newhighcode-page.dark-theme .home-calendar-day-badge {
    background: rgba(123, 167, 255, 0.16);
    color: #b8d2ff;
  }

  body.newhighcode-page.dark-theme .home-calendar-mini-metric {
    background: rgba(123, 167, 255, 0.12);
  }

  body.newhighcode-page.dark-theme .home-calendar-month-cell.is-future,
  body.newhighcode-page.dark-theme .home-calendar-month-cell.is-out-of-range {
    background: rgba(90, 104, 128, 0.14);
    border-color: rgba(111, 126, 152, 0.24);
  }

  body.newhighcode-page.dark-theme .home-calendar-skeleton-line {
    background: linear-gradient(90deg, rgba(57, 66, 81, 0.9), rgba(92, 105, 125, 0.72), rgba(57, 66, 81, 0.9));
    background-size: 220% 100%;
  }

  body.newhighcode-page.dark-theme .home-heatmap .lv0 {
    background: rgba(74, 86, 108, 0.78);
  }

  body.newhighcode-page.dark-theme .home-heatmap .lv1 {
    background: #1f6a42;
  }

  body.newhighcode-page.dark-theme .home-heatmap .lv2 {
    background: #23955a;
  }

  body.newhighcode-page.dark-theme .home-heatmap .lv3 {
    background: #2fd16f;
  }

  body.newhighcode-page.dark-theme .home-heatmap .lv4 {
    background: #52f08f;
  }

  body.newhighcode-page.dark-theme .home-heatmap>span.is-active {
    box-shadow: 0 0 0 3px rgba(82, 240, 143, 0.24);
  }

  body.newhighcode-page.dark-theme .home-heatmap>span.is-active:hover {
    box-shadow:
      0 0 0 3px rgba(82, 240, 143, 0.24),
      0 8px 18px rgba(0, 0, 0, 0.28);
  }

  body.newhighcode-page .home-review-nav {
    display: inline-flex;
    gap: 10px;
  }

  body.newhighcode-page .home-review-nav button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 65%, transparent);
    background: transparent;
    color: var(--nh-on-surface-variant);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }

  body.newhighcode-page .home-review-nav button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
  }

  body.newhighcode-page .home-review-card {
    display: flex;
    flex-direction: column;
  }

  body.newhighcode-page .home-review-quote-mark {
    margin: 4px 0 2px;
    color: rgba(74, 120, 255, 0.14);
    font-size: 48px;
    line-height: 1;
  }

  body.newhighcode-page .home-review-text {
    margin: -10px 0 0;
    color: var(--nh-on-surface);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    max-height: 12.8em;
    overflow: hidden;
    word-break: break-word;
  }

  body.newhighcode-page .home-review-note {
    margin: 12px 0 0;
    color: var(--nh-on-surface-variant);
    font-size: 13px;
    line-height: 1.7;
    max-height: 5.1em;
    overflow: hidden;
    word-break: break-word;
  }

  body.newhighcode-page .home-review-card.is-expanded .home-review-text {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
  }

  body.newhighcode-page .home-review-card.is-expanded .home-review-note {
    max-height: none;
    overflow: visible;
  }

  body.newhighcode-page .home-review-markdown {
    white-space: normal;
  }

  body.newhighcode-page .home-review-markdown> :first-child {
    margin-top: 0;
  }

  body.newhighcode-page .home-review-markdown> :last-child {
    margin-bottom: 0;
  }

  body.newhighcode-page .home-review-markdown h1,
  body.newhighcode-page .home-review-markdown h2,
  body.newhighcode-page .home-review-markdown h3 {
    margin: 8px 0 6px;
    color: var(--nh-on-surface);
    font-size: 1em;
    line-height: 1.45;
    font-weight: 800;
  }

  body.newhighcode-page .home-review-markdown p {
    margin: 0 0 8px;
  }

  body.newhighcode-page .home-review-markdown ul,
  body.newhighcode-page .home-review-markdown ol {
    margin: 8px 0;
    padding-left: 1.35em;
  }

  body.newhighcode-page .home-review-markdown li {
    margin: 3px 0;
  }

  body.newhighcode-page .home-review-markdown code {
    border-radius: 6px;
    background: color-mix(in srgb, var(--nh-on-surface-variant) 12%, transparent);
    padding: 1px 5px;
    font-size: 0.86em;
  }

  body.newhighcode-page .home-review-markdown pre {
    margin: 8px 0;
    border-radius: 8px;
    background: #111827;
    color: #f8fafc;
    padding: 10px;
    overflow-x: auto;
  }

  body.newhighcode-page .home-review-markdown pre code {
    background: transparent;
    padding: 0;
    color: inherit;
  }

  body.newhighcode-page .home-review-markdown blockquote {
    margin: 8px 0;
    border-left: 3px solid rgba(74, 120, 255, 0.5);
    background: rgba(74, 120, 255, 0.08);
    border-radius: 0 8px 8px 0;
    padding: 7px 10px;
  }

  body.newhighcode-page .home-review-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 0.88em;
  }

  body.newhighcode-page .home-review-markdown th,
  body.newhighcode-page .home-review-markdown td {
    border: 1px solid color-mix(in srgb, var(--nh-outline) 70%, transparent);
    padding: 5px 7px;
    text-align: left;
    vertical-align: top;
  }

  body.newhighcode-page .home-review-markdown a {
    color: #2563eb;
    text-decoration: underline;
  }

  body.newhighcode-page .home-review-more {
    align-self: flex-start;
    margin: 10px 0 0;
    border: 0;
    background: transparent;
    color: #4a78ff;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
  }

  body.newhighcode-page .home-review-foot {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  body.newhighcode-page .home-review-source,
  body.newhighcode-page .home-review-foot a {
    color: var(--nh-on-surface);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  body.newhighcode-page [data-home-mock="true"] .home-review-source,
  body.newhighcode-page [data-home-mock="true"] .home-review-foot a,
  body.newhighcode-page [data-home-mock="true"] .home-review-nav button,
  body.newhighcode-page [data-home-mock="true"] .home-bottom-head a,
  body.newhighcode-page [data-home-mock="true"] .home-bottom-item,
  body.newhighcode-page [data-home-mock="true"] .home-bottom-item.is-clickable {
    cursor: not-allowed;
  }

  body.newhighcode-page .home-review-meta-separator {
    width: 1px;
    height: 18px;
    background: color-mix(in srgb, var(--nh-outline) 80%, transparent);
  }

  body.newhighcode-page .home-review-foot em {
    color: var(--nh-on-surface-variant);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
  }

  body.newhighcode-page .home-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  body.newhighcode-page .home-bottom-col {
    padding: 0;
    overflow: hidden;
  }

  body.newhighcode-page .home-bottom-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 20px 20px 10px;
  }

  body.newhighcode-page .home-bottom-head h3 {
    margin: 0;
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 16px;
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .home-bottom-head a {
    color: #4a78ff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  body.newhighcode-page .home-bottom-list {
    margin: 0;
    padding: 0 14px 16px;
    list-style: none;
    display: grid;
    gap: 12px;
  }

  body.newhighcode-page .home-bottom-item {
    min-height: 84px;
    min-width: 0;
    max-width: 100%;
    border-radius: 14px;
    background: color-mix(in srgb, var(--nh-surface-low) 94%, #fff);
    border: 1px solid color-mix(in srgb, var(--nh-outline) 35%, transparent);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  body.newhighcode-page .home-bottom-item.is-clickable {
    cursor: pointer;
  }

  body.newhighcode-page .home-bottom-item.is-empty {
    opacity: 0.8;
  }

  body.newhighcode-page .home-bottom-item .content {
    min-width: 0;
    flex: 1;
  }

  body.newhighcode-page .home-bottom-item .content strong {
    display: block;
    min-width: 0;
    max-width: 100%;
    color: var(--nh-on-surface);
    font-size: 16px;
    line-height: 1.28;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.newhighcode-page .home-bottom-item .content p {
    margin: 6px 0 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--nh-on-surface-variant);
    font-size: 12px;
    font-weight: 600;
  }

  body.newhighcode-page .home-bottom-item em {
    flex: 0 0 auto;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 85%, #fff);
    font-style: normal;
    font-size: 24px;
    line-height: 1;
  }

  body.newhighcode-page .home-bottom-item.quiz .left-bar {
    width: 5px;
    align-self: stretch;
    border-radius: 4px;
    background: #4a78ff;
  }

  body.newhighcode-page .home-bottom-item.quiz .left-bar.purple {
    background: #a855f7;
  }

  body.newhighcode-page .home-bottom-item.quiz .left-bar.green {
    background: #10b981;
  }

  body.newhighcode-page .home-bottom-item.flash .left-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 120, 255, 0.14);
    color: #4a78ff;
  }

  body.newhighcode-page .home-bottom-item.flash .left-icon svg {
    width: 24px;
    height: 24px;
    display: block;
  }

  body.newhighcode-page .home-bottom-item.flash .left-icon svg rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.newhighcode-page .home-bottom-item.flash .left-icon.orange {
    background: rgba(249, 115, 22, 0.14);
    color: #f97316;
  }

  body.newhighcode-page .home-bottom-item.flash .left-icon.blue {
    background: rgba(74, 120, 255, 0.14);
    color: #4a78ff;
  }

  body.newhighcode-page .home-bottom-item.flash .left-icon.indigo {
    background: rgba(99, 102, 241, 0.14);
    color: #6366f1;
  }

  body.newhighcode-page .home-bottom-item.progress .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4a78ff;
  }

  body.newhighcode-page .home-bottom-item.progress .dot.green {
    background: #22c55e;
  }

  body.newhighcode-page .home-bottom-item.progress .dot.orange {
    background: #fb923c;
  }

  body.newhighcode-page[data-view-mode="ai"] .nav-panel,
  body.newhighcode-page[data-view-mode="ai"] .list-panel,
  body.newhighcode-page[data-view-mode="ai"] .detail-panel {
    display: none !important;
  }

  body.newhighcode-page[data-view-mode="ai"] .global-chat-panel {
    display: block;
  }

  body.newhighcode-page[data-view-mode="home"] .nav-panel,
  body.newhighcode-page[data-view-mode="home"] .list-panel,
  body.newhighcode-page[data-view-mode="home"] .detail-panel,
  body.newhighcode-page[data-view-mode="home"] .global-chat-panel {
    display: none !important;
  }

  body.newhighcode-page[data-view-mode="home"] .home-panel {
    display: block;
  }

  body.newhighcode-page[data-view-mode="weread"] .nav-panel,
  body.newhighcode-page[data-view-mode="weread"] .list-panel,
  body.newhighcode-page[data-view-mode="weread"] .detail-panel,
  body.newhighcode-page[data-view-mode="weread"] .global-chat-panel,
  body.newhighcode-page[data-view-mode="weread"] .home-panel,
  body.newhighcode-page[data-view-mode="weread"] .pdf-workspace-panel,
  body.newhighcode-page[data-view-mode="weread"] .custom-workspace-panel {
    display: none !important;
  }

  body.newhighcode-page[data-view-mode="weread"] .weread-workspace-panel {
    display: block;
  }

  body.newhighcode-page[data-view-mode="custom"] .nav-panel,
  body.newhighcode-page[data-view-mode="custom"] .list-panel,
  body.newhighcode-page[data-view-mode="custom"] .detail-panel,
  body.newhighcode-page[data-view-mode="custom"] .global-chat-panel,
  body.newhighcode-page[data-view-mode="custom"] .home-panel,
  body.newhighcode-page[data-view-mode="custom"] .weread-workspace-panel,
  body.newhighcode-page[data-view-mode="custom"] .pdf-workspace-panel {
    display: none !important;
  }

  body.newhighcode-page[data-view-mode="custom"] .custom-workspace-panel {
    display: block;
  }

  body.newhighcode-page[data-view-mode="pdf"] .nav-panel,
  body.newhighcode-page[data-view-mode="pdf"] .list-panel,
  body.newhighcode-page[data-view-mode="pdf"] .detail-panel,
  body.newhighcode-page[data-view-mode="pdf"] .global-chat-panel,
  body.newhighcode-page[data-view-mode="pdf"] .home-panel,
  body.newhighcode-page[data-view-mode="pdf"] .weread-workspace-panel,
  body.newhighcode-page[data-view-mode="pdf"] .custom-workspace-panel {
    display: none !important;
  }

  body.newhighcode-page[data-view-mode="pdf"] .pdf-workspace-panel {
    display: block;
  }

  body.newhighcode-page .card-item {
    border: 1px solid color-mix(in srgb, var(--nh-outline) 40%, transparent);
    border-radius: 14px;
    box-shadow: var(--nh-shadow);
  }

  body.newhighcode-page .tile-canvas {
    background: color-mix(in srgb, var(--nh-surface-low) 88%, var(--nh-bg));
    padding: 16px 20px 32px;
  }

  body.newhighcode-page .tile-page-card {
    border: 1px solid color-mix(in srgb, var(--nh-outline) 35%, transparent);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  body.newhighcode-page .tile-highlight-item {
    border: none;
    border-radius: 0;
    background: transparent;
  }

  body.newhighcode-page .tile-group-list {
    gap: 10px;
  }

  body.newhighcode-page .tile-highlight-text {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: -0.05px;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.newhighcode-page .tile-highlight-note {
    margin: 8px 0 0;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: var(--nh-elevated-soft);
    color: var(--nh-on-surface-variant);
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.6;
  }

  body.newhighcode-page .quiz-generate-mask {
    background:
      radial-gradient(880px 520px at 88% -10%, color-mix(in srgb, var(--nh-primary) 26%, transparent), transparent 62%),
      rgba(15, 23, 38, 0.56);
    backdrop-filter: blur(3px);
  }

  body.newhighcode-page .quiz-generate-card {
    width: min(980px, calc(100vw - 40px));
    max-height: calc(100vh - 44px);
    border: none;
    border-radius: 22px;
    background: color-mix(in srgb, var(--nh-surface-low) 82%, #fff);
    box-shadow: 0 30px 70px rgba(14, 21, 35, 0.28);
  }

  body.newhighcode-page .quiz-generate-head {
    border-bottom: none;
    padding: 18px 22px 12px;
    background:
      linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
  }

  body.newhighcode-page .quiz-generate-head h3 {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 22px;
    letter-spacing: -0.02em;
  }

  body.newhighcode-page #quizGenerateMeta {
    margin: 6px 0 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 12px;
    font-weight: 600;
  }

  body.newhighcode-page .quiz-generate-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 11px;
    background: color-mix(in srgb, #fff 92%, transparent);
    color: var(--nh-on-surface-variant);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
  }

  body.newhighcode-page .quiz-generate-close:hover {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .quiz-panel {
    padding: 2px 22px 22px;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
    align-items: start;
    gap: 14px;
    overflow-y: auto;
  }

  body.newhighcode-page .quiz-config-column,
  body.newhighcode-page .quiz-sidebar-column {
    display: grid;
    gap: 12px;
  }

  body.newhighcode-page .quiz-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.newhighcode-page .quiz-panel-head h3 {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 18px;
    letter-spacing: -0.02em;
  }

  body.newhighcode-page .quiz-status-badge {
    min-height: 24px;
    padding: 0 10px;
    border: none;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nh-on-surface) 8%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 95%, transparent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  body.newhighcode-page .quiz-status-badge[data-status="processing"] {
    background: rgba(234, 179, 8, 0.16);
    color: #8c6510;
  }

  body.newhighcode-page .quiz-status-badge[data-status="ready"] {
    background: rgba(34, 197, 94, 0.16);
    color: #146f3e;
  }

  body.newhighcode-page .quiz-status-badge[data-status="failed"] {
    background: rgba(239, 68, 68, 0.14);
    color: #a82b2b;
  }

  body.newhighcode-page #quizHintText {
    margin: 0;
    border-radius: 14px;
    background:
      linear-gradient(120deg, color-mix(in srgb, var(--nh-primary) 8%, var(--nh-elevated)) 0%, var(--nh-contrast-surface) 100%);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 86%, transparent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    padding: 10px 12px;
  }

  body.newhighcode-page .quiz-section {
    border: none;
    border-radius: 16px;
    background: var(--nh-elevated);
    box-shadow:
      0 12px 28px rgba(24, 34, 54, 0.07),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 8%, transparent);
    padding: 13px;
    display: grid;
    gap: 10px;
  }

  body.newhighcode-page .quiz-section.quiz-section-compact {
    gap: 12px;
  }

  body.newhighcode-page .quiz-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }

  body.newhighcode-page .quiz-section-head h4 {
    margin: 0;
    color: var(--nh-on-surface);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  body.newhighcode-page .quiz-section-tip {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }

  body.newhighcode-page .quiz-field,
  body.newhighcode-page .quiz-number-field {
    display: grid;
    gap: 6px;
  }

  body.newhighcode-page .quiz-field label,
  body.newhighcode-page .quiz-number-field>span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  body.newhighcode-page .quiz-field input,
  body.newhighcode-page .quiz-number-field input {
    height: 40px;
    border: none;
    border-radius: 12px;
    background: color-mix(in srgb, var(--nh-surface-low) 78%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 10%, transparent);
    color: var(--nh-on-surface);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
  }

  body.newhighcode-page .quiz-number-field input {
    text-align: center;
  }

  body.newhighcode-page .quiz-field input:focus,
  body.newhighcode-page .quiz-number-field input:focus {
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 58%, transparent),
      0 0 0 4px color-mix(in srgb, var(--nh-primary) 11%, transparent);
    background: var(--nh-elevated);
  }

  body.newhighcode-page .quiz-grid {
    display: grid;
    gap: 10px;
  }

  body.newhighcode-page .quiz-grid.quiz-grid-types {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.newhighcode-page .quiz-grid.quiz-grid-difficulty {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.newhighcode-page .quiz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  body.newhighcode-page .quiz-actions .soft-btn {
    min-height: 38px;
    border: none;
    border-radius: 12px;
    padding: 0 14px;
    background: var(--nh-elevated);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 95%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 13%, transparent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  body.newhighcode-page .quiz-actions #quizGenerateBtn {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--nh-primary) 84%, #0f3db2) 0%,
        color-mix(in srgb, var(--nh-primary) 62%, #7ca5ff) 100%);
    color: #fff;
    box-shadow: 0 14px 26px color-mix(in srgb, var(--nh-primary) 28%, transparent);
  }

  body.newhighcode-page .quiz-actions #quizGenerateBtn:hover {
    color: #fff;
  }

  body.newhighcode-page .quiz-actions .soft-btn:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
  }

  body.newhighcode-page .quiz-attempts-wrap {
    border: none;
    border-radius: 16px;
    background: var(--nh-elevated);
    box-shadow:
      0 12px 24px rgba(24, 34, 54, 0.06),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 8%, transparent);
    padding: 12px;
  }

  body.newhighcode-page .quiz-attempts-title {
    margin: 0 0 8px;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 12px;
    font-weight: 700;
  }

  body.newhighcode-page .quiz-attempt-list {
    max-height: 190px;
    overflow-y: auto;
    display: grid;
    gap: 7px;
    padding-right: 2px;
  }

  body.newhighcode-page .quiz-attempt-item {
    border: none;
    border-radius: 11px;
    background: color-mix(in srgb, var(--nh-surface-low) 88%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface) 80%, transparent);
    padding: 8px 10px;
  }

  body.newhighcode-page .quiz-attempt-item:hover {
    background: color-mix(in srgb, var(--nh-primary) 6%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 20%, transparent);
  }

  body.newhighcode-page .quiz-attempt-item.is-active {
    background: color-mix(in srgb, var(--nh-primary) 9%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 28%, transparent);
  }

  body.newhighcode-page .quiz-history-practice-btn-primary {
    min-width: 58px;
    height: 30px;
    border: none;
    border-radius: 10px;
    padding: 0 12px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--nh-primary) 84%, #0f3db2) 0%,
        color-mix(in srgb, var(--nh-primary) 62%, #7ca5ff) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 26px color-mix(in srgb, var(--nh-primary) 28%, transparent);
  }

  body.newhighcode-page .quiz-history-practice-btn-primary:hover {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--nh-primary) 84%, #0f3db2) 0%,
        color-mix(in srgb, var(--nh-primary) 62%, #7ca5ff) 100%);
    color: #fff;
  }

  body.newhighcode-page .quiz-history-practice-btn-primary:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    box-shadow: none;
  }

  body.newhighcode-page .quiz-attempt-line2,
  body.newhighcode-page .quiz-attempt-line3 {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 95%, transparent);
  }

  body.newhighcode-page .quiz-attempt-empty {
    border: none;
    border-radius: 10px;
    background: color-mix(in srgb, var(--nh-surface-low) 84%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 8%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 95%, transparent);
    padding: 10px;
  }

  body.newhighcode-page.dark-theme .quiz-generate-mask {
    background:
      radial-gradient(880px 520px at 88% -10%, color-mix(in srgb, var(--nh-primary) 18%, transparent), transparent 62%),
      rgba(5, 8, 13, 0.72);
  }

  body.newhighcode-page.dark-theme .quiz-generate-card {
    background: color-mix(in srgb, var(--nh-surface-low) 86%, var(--nh-surface));
    color: var(--nh-on-surface);
    box-shadow: var(--nh-shadow-panel);
  }

  body.newhighcode-page.dark-theme .quiz-generate-head {
    background: linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
  }

  body.newhighcode-page.dark-theme .quiz-generate-close {
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, transparent);
    color: var(--nh-on-surface-variant);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 14%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-generate-close:hover {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .quiz-panel {
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .quiz-section,
  body.newhighcode-page.dark-theme .quiz-attempts-wrap {
    background: color-mix(in srgb, var(--nh-elevated) 88%, var(--nh-surface-low));
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.28),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
  }

  body.newhighcode-page.dark-theme #quizHintText {
    background:
      linear-gradient(120deg, color-mix(in srgb, var(--nh-primary) 12%, var(--nh-elevated-soft)) 0%, var(--nh-elevated) 100%);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .quiz-section-tip,
  body.newhighcode-page.dark-theme .quiz-field label,
  body.newhighcode-page.dark-theme .quiz-number-field>span,
  body.newhighcode-page.dark-theme .quiz-attempts-title,
  body.newhighcode-page.dark-theme .quiz-attempt-line2,
  body.newhighcode-page.dark-theme .quiz-attempt-line3,
  body.newhighcode-page.dark-theme .quiz-history-status,
  body.newhighcode-page.dark-theme #quizGenerateMeta {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .quiz-status-badge {
    background: color-mix(in srgb, var(--nh-on-surface) 10%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .quiz-status-badge[data-status="processing"] {
    background: rgba(234, 179, 8, 0.2);
    color: #f2d47d;
  }

  body.newhighcode-page.dark-theme .quiz-status-badge[data-status="ready"] {
    background: rgba(34, 197, 94, 0.18);
    color: #7dd8a5;
  }

  body.newhighcode-page.dark-theme .quiz-status-badge[data-status="failed"] {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
  }

  body.newhighcode-page.dark-theme .quiz-field input,
  body.newhighcode-page.dark-theme .quiz-number-field input {
    color-scheme: dark;
    background: color-mix(in srgb, var(--nh-elevated-soft) 88%, #2f3a4d);
    color: var(--nh-on-surface);
    caret-color: var(--nh-primary);
  }

  body.newhighcode-page.dark-theme .quiz-field input:focus,
  body.newhighcode-page.dark-theme .quiz-number-field input:focus {
    background: color-mix(in srgb, var(--nh-elevated-soft) 92%, #35435c);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 62%, transparent),
      0 0 0 4px color-mix(in srgb, var(--nh-primary) 18%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-actions .soft-btn {
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, var(--nh-on-surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 13%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-actions .soft-btn:hover:not(:disabled) {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .quiz-actions #quizGenerateBtn {
    color: #fff;
    box-shadow: 0 14px 26px color-mix(in srgb, var(--nh-primary) 30%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-attempt-item {
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, var(--nh-surface-low));
    color: color-mix(in srgb, var(--nh-on-surface) 90%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 11%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-attempt-item:hover {
    background: color-mix(in srgb, var(--nh-primary) 10%, var(--nh-elevated-soft));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 28%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-attempt-item.is-active {
    background: color-mix(in srgb, var(--nh-primary) 16%, var(--nh-elevated-soft));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 42%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-attempt-empty {
    background: color-mix(in srgb, var(--nh-elevated-soft) 84%, var(--nh-surface-low));
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 11%, transparent);
  }

  @media (max-width: 1080px) {
    body.newhighcode-page .quiz-generate-card {
      width: calc(100vw - 18px);
      max-height: calc(100vh - 14px);
      border-radius: 18px;
    }

    body.newhighcode-page .quiz-generate-head {
      padding: 15px 14px 10px;
    }

    body.newhighcode-page .quiz-generate-head h3 {
      font-size: 20px;
    }

    body.newhighcode-page .quiz-panel {
      grid-template-columns: minmax(0, 1fr);
      padding: 0 14px 14px;
    }

    body.newhighcode-page .quiz-grid.quiz-grid-types {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 720px) {
    body.newhighcode-page .quiz-grid.quiz-grid-difficulty {
      grid-template-columns: minmax(0, 1fr);
    }

    body.newhighcode-page .quiz-actions .soft-btn {
      flex: 1 1 calc(50% - 10px);
    }

    body.newhighcode-page .quiz-actions #quizGenerateBtn {
      flex-basis: 100%;
    }
  }

  body.newhighcode-page .flashcard-generate-mask {
    background:
      radial-gradient(840px 500px at 86% -12%, color-mix(in srgb, var(--nh-primary) 24%, transparent), transparent 64%),
      rgba(15, 23, 38, 0.56);
    backdrop-filter: blur(3px);
  }

  body.newhighcode-page .flashcard-generate-card {
    width: min(920px, calc(100vw - 40px));
    max-height: calc(100vh - 44px);
    border: none;
    border-radius: 22px;
    background: color-mix(in srgb, var(--nh-surface-low) 82%, #fff);
    box-shadow: 0 30px 70px rgba(14, 21, 35, 0.28);
  }

  body.newhighcode-page .flashcard-generate-head {
    border-bottom: none;
    padding: 18px 22px 12px;
    background:
      linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
  }

  body.newhighcode-page .flashcard-generate-head h3 {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 22px;
    letter-spacing: -0.02em;
  }

  body.newhighcode-page #flashcardGenerateMeta {
    margin: 6px 0 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 12px;
    font-weight: 600;
  }

  body.newhighcode-page .flashcard-generate-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 11px;
    background: color-mix(in srgb, #fff 92%, transparent);
    color: var(--nh-on-surface-variant);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
  }

  body.newhighcode-page .flashcard-generate-close:hover {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .flashcard-panel {
    padding: 2px 22px 22px;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    align-items: start;
    gap: 14px;
    overflow-y: auto;
  }

  body.newhighcode-page .flashcard-config-column,
  body.newhighcode-page .flashcard-sidebar-column {
    display: grid;
    gap: 12px;
  }

  body.newhighcode-page .flashcard-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.newhighcode-page .flashcard-panel-head h3 {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 18px;
    letter-spacing: -0.02em;
  }

  body.newhighcode-page .flashcard-status-badge {
    min-height: 24px;
    padding: 0 10px;
    border: none;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nh-on-surface) 8%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 95%, transparent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  body.newhighcode-page .flashcard-status-badge[data-status="processing"] {
    background: rgba(234, 179, 8, 0.16);
    color: #8c6510;
  }

  body.newhighcode-page .flashcard-status-badge[data-status="ready"],
  body.newhighcode-page .flashcard-status-badge[data-status="completed"] {
    background: rgba(34, 197, 94, 0.16);
    color: #146f3e;
  }

  body.newhighcode-page .flashcard-status-badge[data-status="failed"] {
    background: rgba(239, 68, 68, 0.14);
    color: #a82b2b;
  }

  body.newhighcode-page #flashcardHintText {
    margin: 0;
    border-radius: 14px;
    background:
      linear-gradient(120deg, color-mix(in srgb, var(--nh-primary) 8%, var(--nh-elevated)) 0%, var(--nh-contrast-surface) 100%);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 86%, transparent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    padding: 10px 12px;
  }

  body.newhighcode-page .flashcard-section {
    border: none;
    border-radius: 16px;
    background: var(--nh-elevated);
    box-shadow:
      0 12px 28px rgba(24, 34, 54, 0.07),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 8%, transparent);
    padding: 13px;
    display: grid;
    gap: 10px;
  }

  body.newhighcode-page .flashcard-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }

  body.newhighcode-page .flashcard-section-head h4 {
    margin: 0;
    color: var(--nh-on-surface);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  body.newhighcode-page .flashcard-section-tip {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }

  body.newhighcode-page .flashcard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.newhighcode-page .flashcard-field,
  body.newhighcode-page .flashcard-number-field {
    display: grid;
    gap: 6px;
  }

  body.newhighcode-page .flashcard-field>span,
  body.newhighcode-page .flashcard-number-field>span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  body.newhighcode-page .flashcard-field select,
  body.newhighcode-page .flashcard-number-field input {
    height: 40px;
    border: none;
    border-radius: 12px;
    background: color-mix(in srgb, var(--nh-surface-low) 78%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 10%, transparent);
    color: var(--nh-on-surface);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
  }

  body.newhighcode-page .flashcard-field select {
    appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent) 50%),
      linear-gradient(135deg, color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent) 50%, transparent 50%);
    background-position:
      calc(100% - 18px) calc(50% - 1px),
      calc(100% - 12px) calc(50% - 1px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 30px;
  }

  body.newhighcode-page .flashcard-number-field input {
    text-align: center;
  }

  body.newhighcode-page .flashcard-field select:focus,
  body.newhighcode-page .flashcard-number-field input:focus {
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 58%, transparent),
      0 0 0 4px color-mix(in srgb, var(--nh-primary) 11%, transparent);
    background-color: #fff;
  }

  body.newhighcode-page.dark-theme .flashcard-field select,
  body.newhighcode-page.dark-theme .flashcard-number-field input {
    color-scheme: dark;
    background-color: color-mix(in srgb, var(--nh-elevated-soft) 88%, #2f3a4d);
    color: var(--nh-on-surface);
    caret-color: var(--nh-primary);
  }

  body.newhighcode-page.dark-theme .flashcard-field select:focus,
  body.newhighcode-page.dark-theme .flashcard-number-field input:focus {
    background-color: color-mix(in srgb, var(--nh-elevated-soft) 92%, #35435c);
    color: var(--nh-on-surface);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 62%, transparent),
      0 0 0 4px color-mix(in srgb, var(--nh-primary) 18%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-field select option {
    background-color: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .flashcard-number-field input::-webkit-outer-spin-button,
  body.newhighcode-page.dark-theme .flashcard-number-field input::-webkit-inner-spin-button {
    opacity: 0.82;
  }

  body.newhighcode-page .flashcard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  body.newhighcode-page .flashcard-actions .soft-btn {
    min-height: 38px;
    border: none;
    border-radius: 12px;
    padding: 0 14px;
    background: var(--nh-elevated);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 95%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 13%, transparent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  body.newhighcode-page .flashcard-actions #flashcardGenerateBtn {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--nh-primary) 84%, #0f3db2) 0%,
        color-mix(in srgb, var(--nh-primary) 62%, #7ca5ff) 100%);
    color: #fff;
    box-shadow: 0 14px 26px color-mix(in srgb, var(--nh-primary) 28%, transparent);
  }

  body.newhighcode-page .flashcard-actions #flashcardGenerateBtn:hover {
    color: #fff;
  }

  body.newhighcode-page .flashcard-actions .soft-btn:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
  }

  body.newhighcode-page .flashcard-sidebar-column .quiz-attempt-list {
    max-height: 220px;
  }

  body.newhighcode-page.dark-theme .flashcard-generate-mask {
    background:
      radial-gradient(840px 500px at 86% -12%, color-mix(in srgb, var(--nh-primary) 18%, transparent), transparent 64%),
      rgba(5, 8, 13, 0.72);
  }

  body.newhighcode-page.dark-theme .flashcard-generate-card {
    background: color-mix(in srgb, var(--nh-surface-low) 86%, var(--nh-surface));
    box-shadow: var(--nh-shadow-panel);
  }

  body.newhighcode-page.dark-theme .flashcard-generate-head {
    background: linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
  }

  body.newhighcode-page.dark-theme .flashcard-generate-close {
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, transparent);
    color: var(--nh-on-surface-variant);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 14%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-generate-close:hover {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .flashcard-section,
  body.newhighcode-page.dark-theme .flashcard-generate-card .quiz-attempts-wrap {
    background: color-mix(in srgb, var(--nh-elevated) 88%, var(--nh-surface-low));
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.28),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
  }

  body.newhighcode-page.dark-theme #flashcardHintText {
    background:
      linear-gradient(120deg, color-mix(in srgb, var(--nh-primary) 12%, var(--nh-elevated-soft)) 0%, var(--nh-elevated) 100%);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .flashcard-status-badge {
    background: color-mix(in srgb, var(--nh-on-surface) 10%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .flashcard-status-badge[data-status="processing"] {
    background: rgba(234, 179, 8, 0.2);
    color: #f2d47d;
  }

  body.newhighcode-page.dark-theme .flashcard-status-badge[data-status="ready"],
  body.newhighcode-page.dark-theme .flashcard-status-badge[data-status="completed"] {
    background: rgba(34, 197, 94, 0.18);
    color: #7dd8a5;
  }

  body.newhighcode-page.dark-theme .flashcard-status-badge[data-status="failed"] {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
  }

  body.newhighcode-page.dark-theme .flashcard-actions .soft-btn {
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, var(--nh-on-surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 13%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-actions .soft-btn:hover:not(:disabled) {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .flashcard-actions #flashcardGenerateBtn {
    color: #fff;
    box-shadow: 0 14px 26px color-mix(in srgb, var(--nh-primary) 30%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-generate-card .quiz-attempt-item {
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, var(--nh-surface-low));
    color: color-mix(in srgb, var(--nh-on-surface) 90%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 11%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-generate-card .quiz-attempt-item:hover {
    background: color-mix(in srgb, var(--nh-primary) 10%, var(--nh-elevated-soft));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 28%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-generate-card .quiz-attempt-item.is-active {
    background: color-mix(in srgb, var(--nh-primary) 16%, var(--nh-elevated-soft));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 42%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-generate-card .quiz-attempt-line2,
  body.newhighcode-page.dark-theme .flashcard-generate-card .quiz-attempt-line3,
  body.newhighcode-page.dark-theme .flashcard-generate-card .quiz-attempts-title,
  body.newhighcode-page.dark-theme .flashcard-generate-card .quiz-history-status,
  body.newhighcode-page.dark-theme .flashcard-section-tip,
  body.newhighcode-page.dark-theme .flashcard-field>span,
  body.newhighcode-page.dark-theme .flashcard-number-field>span,
  body.newhighcode-page.dark-theme #flashcardGenerateMeta {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .flashcard-generate-card .quiz-attempt-empty {
    background: color-mix(in srgb, var(--nh-elevated-soft) 84%, var(--nh-surface-low));
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 11%, transparent);
  }

  @media (max-width: 1080px) {
    body.newhighcode-page .flashcard-generate-card {
      width: calc(100vw - 18px);
      max-height: calc(100vh - 14px);
      border-radius: 18px;
    }

    body.newhighcode-page .flashcard-generate-head {
      padding: 15px 14px 10px;
    }

    body.newhighcode-page .flashcard-generate-head h3 {
      font-size: 20px;
    }

    body.newhighcode-page .flashcard-panel {
      grid-template-columns: minmax(0, 1fr);
      padding: 0 14px 14px;
    }
  }

  @media (max-width: 720px) {
    body.newhighcode-page .flashcard-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    body.newhighcode-page .flashcard-actions .soft-btn {
      flex: 1 1 calc(50% - 10px);
    }

    body.newhighcode-page .flashcard-actions #flashcardGenerateBtn {
      flex-basis: 100%;
    }
  }

  body.newhighcode-page.nav-collapsed .app-shell {
    grid-template-columns: 80px 0 320px minmax(420px, 1fr);
  }

  body.newhighcode-page.nav-collapsed .nav-panel {
    padding: 0;
    border-right: none;
    overflow: hidden;
  }

  body.newhighcode-page[data-view-mode="card"] .app-shell,
  body.newhighcode-page[data-view-mode="tile"] .app-shell {
    grid-template-columns: 80px 208px 1fr 0;
  }

  body.newhighcode-page[data-view-mode="ai"] .app-shell {
    grid-template-columns: 80px minmax(0, 1fr) 0 0;
  }

  body.newhighcode-page[data-view-mode="home"] .app-shell {
    grid-template-columns: 80px minmax(0, 1fr) 0 0;
  }

  body.newhighcode-page[data-view-mode="weread"] .app-shell,
  body.newhighcode-page[data-view-mode="pdf"] .app-shell,
  body.newhighcode-page[data-view-mode="custom"] .app-shell {
    grid-template-columns: 80px minmax(0, 1fr) 0 0;
  }

  body.newhighcode-page[data-view-mode="card"].nav-collapsed .app-shell,
  body.newhighcode-page[data-view-mode="tile"].nav-collapsed .app-shell {
    grid-template-columns: 80px 0 1fr 0;
  }

  body.newhighcode-page[data-view-mode="ai"].nav-collapsed .app-shell {
    grid-template-columns: 80px minmax(0, 1fr) 0 0;
  }

  body.newhighcode-page[data-view-mode="home"].nav-collapsed .app-shell {
    grid-template-columns: 80px minmax(0, 1fr) 0 0;
  }

  body.newhighcode-page[data-view-mode="weread"].nav-collapsed .app-shell,
  body.newhighcode-page[data-view-mode="pdf"].nav-collapsed .app-shell,
  body.newhighcode-page[data-view-mode="custom"].nav-collapsed .app-shell {
    grid-template-columns: 80px minmax(0, 1fr) 0 0;
  }

  body.newhighcode-page[data-view-mode="card"] .detail-panel,
  body.newhighcode-page[data-view-mode="tile"] .detail-panel {
    display: none;
  }

  @media (max-width: 1440px) {
    body.newhighcode-page .app-shell {
      grid-template-columns: 80px 192px 300px minmax(360px, 1fr);
    }

    body.newhighcode-page.nav-collapsed .app-shell {
      grid-template-columns: 80px 0 300px minmax(360px, 1fr);
    }

    body.newhighcode-page[data-view-mode="card"] .app-shell,
    body.newhighcode-page[data-view-mode="tile"] .app-shell {
      grid-template-columns: 80px 192px 1fr 0;
    }

    body.newhighcode-page[data-view-mode="ai"] .app-shell {
      grid-template-columns: 80px minmax(0, 1fr) 0 0;
    }

    body.newhighcode-page[data-view-mode="home"] .app-shell {
      grid-template-columns: 80px minmax(0, 1fr) 0 0;
    }

    body.newhighcode-page[data-view-mode="weread"] .app-shell,
    body.newhighcode-page[data-view-mode="pdf"] .app-shell,
    body.newhighcode-page[data-view-mode="custom"] .app-shell {
      grid-template-columns: 80px minmax(0, 1fr) 0 0;
    }
  }

  @media (max-width: 1180px) {
    body.newhighcode-page .tool-workspace-toolbar {
      top: 0;
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-start;
      padding: 14px 16px;
    }

    body.newhighcode-page .tool-workspace-toolbar-copy {
      width: 100%;
    }

    body.newhighcode-page .tool-workspace-toolbar-actions {
      width: 100%;
      margin-left: 0;
      justify-content: flex-start;
    }

    body.newhighcode-page .weread-workspace-panel .tool-workspace-toolbar-actions .soft-btn,
    body.newhighcode-page .pdf-workspace-panel .tool-workspace-toolbar-actions .soft-btn {
      flex: 1 1 160px;
    }

    body.newhighcode-page .weread-workspace-actions,
    body.newhighcode-page .pdf-workspace-frame-actions {
      width: 100%;
      margin-left: 0;
      justify-content: flex-start;
    }

    body.newhighcode-page .tool-workspace-card-head-with-actions {
      align-items: stretch;
    }

    body.newhighcode-page .tool-workspace-card-copy {
      width: 100%;
    }

    body.newhighcode-page .weread-workspace-actions .soft-btn,
    body.newhighcode-page .pdf-workspace-frame-actions .soft-btn {
      flex: 1 1 160px;
    }

    body.newhighcode-page .pdf-workspace-topbar {
      flex-direction: column;
      align-items: stretch;
      padding: 16px;
    }

    body.newhighcode-page .pdf-workspace-topbar-copy {
      align-items: flex-start;
    }

    body.newhighcode-page .pdf-workspace-status-inline {
      min-width: 0;
    }

    body.newhighcode-page .pdf-workspace-panel .tool-frame-head {
      flex-direction: column;
      align-items: stretch;
    }

    body.newhighcode-page .weread-workspace-panel .tool-workspace-grid,
    body.newhighcode-page .custom-workspace-panel .tool-workspace-grid {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .custom-workspace-panel .tool-workspace-grid {
      grid-template-areas:
        "compose"
        "selector";
    }

    body.newhighcode-page .weread-workspace-layout {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .weread-workspace-main-card,
    body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-main-card,
    body.newhighcode-page .weread-workspace-toolbar-row,
    body.newhighcode-page .weread-workspace-source-panels,
    body.newhighcode-page .weread-workspace-meta-row,
    body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-toolbar-row,
    body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-source-panels,
    body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-meta-row {
      width: 100%;
    }

    body.newhighcode-page .weread-workspace-toolbar-row {
      flex-direction: column;
      align-items: stretch;
    }

    body.newhighcode-page .weread-workspace-main-actions {
      width: 100%;
      margin-left: 0;
      justify-content: flex-start;
    }

    body.newhighcode-page .weread-workspace-switch {
      width: 100%;
      justify-content: flex-start;
      flex-wrap: wrap;
    }

    body.newhighcode-page .weread-workspace-switch-btn {
      flex: 1 1 120px;
    }

    body.newhighcode-page .weread-workspace-preview-copy strong {
      font-size: 24px;
    }

    body.newhighcode-page .weread-workspace-step-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.newhighcode-page .weread-workspace-meta-row,
    body.newhighcode-page .weread-workspace-action-band {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-row {
      justify-content: flex-start;
    }

    body.newhighcode-page .weread-workspace-action-row .soft-btn,
    body.newhighcode-page .weread-workspace-import-btn {
      width: 100%;
    }

    body.newhighcode-page .weread-workspace-panel .tool-workspace-textarea {
      min-height: 420px;
    }

    body.newhighcode-page .pdf-workspace-panel .tool-frame-card {
      min-height: 0;
    }

    body.newhighcode-page .pdf-workspace-panel .tool-workspace-frame {
      min-height: 360px;
    }

    body.newhighcode-page .pdf-workspace-panel .tool-frame-head {
      padding: 16px 16px 12px;
    }

    body.newhighcode-page .tool-workspace-form-grid {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .custom-workspace-panel .tool-workspace-form-grid {
      grid-template-columns: 1fr;
    }

    @media (max-width: 720px) {
      body.newhighcode-page .weread-workspace-shell {
        padding: 16px 14px 18px;
      }

      body.newhighcode-page .weread-workspace-main-card {
        padding: 16px 14px 14px;
      }

      body.newhighcode-page .weread-workspace-step-list,
      body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-list {
        grid-template-columns: 1fr;
      }
    }

    body.newhighcode-page .custom-workspace-actions {
      justify-content: flex-start;
      align-items: center;
      row-gap: 8px;
    }

    body.newhighcode-page .custom-workspace-primary-action {
      width: 100%;
    }

    body.newhighcode-page .custom-workspace-article-list,
    body.newhighcode-page .custom-workspace-search-list {
      max-height: none;
    }

    body.newhighcode-page .tool-workspace-card-head {
      flex-direction: column;
      align-items: flex-start;
    }

    body.newhighcode-page .custom-workspace-selector-head .tool-workspace-card-copy>span,
    body.newhighcode-page .custom-workspace-compose-head .tool-workspace-card-copy>span {
      max-width: none;
      margin-left: 0;
      text-align: left;
    }

    body.newhighcode-page .tool-workspace-hero {
      flex-direction: column;
    }

    body.newhighcode-page .tool-workspace-actions {
      justify-content: flex-start;
    }

    body.newhighcode-page .tool-workspace-grid {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .curator-brand-slogan,
    body.newhighcode-page .curator-user-pill,
    body.newhighcode-page .curator-notify-btn,
    body.newhighcode-page .curator-top-divider {
      display: none;
    }

    body.newhighcode-page .curator-search-box {
      width: min(320px, 56vw);
      min-width: 0;
      max-width: 320px;
      flex: 1 1 auto;
    }

    body.newhighcode-page .app-shell {
      grid-template-columns: 64px 1fr;
      grid-template-rows: 1fr 1fr 1fr;
    }

    body.newhighcode-page .rail {
      grid-row: 1 / span 3;
    }

    body.newhighcode-page .nav-panel,
    body.newhighcode-page .list-panel,
    body.newhighcode-page .detail-panel,
    body.newhighcode-page .global-chat-panel,
    body.newhighcode-page .home-panel {
      grid-column: 2;
      border-right: none;
      border-bottom: 1px solid var(--nh-outline);
    }

    body.newhighcode-page .nav-panel {
      grid-row: 1;
      max-height: 35vh;
    }

    body.newhighcode-page .list-panel {
      grid-row: 2;
      max-height: 32vh;
    }

    body.newhighcode-page .detail-panel {
      grid-row: 3;
    }

    body.newhighcode-page .global-chat-panel,
    body.newhighcode-page .home-panel {
      grid-row: 1 / span 3;
      border-bottom: none;
    }

    body.newhighcode-page .home-view-root {
      padding: 20px 14px 28px;
    }

    body.newhighcode-page .home-stats-head {
      align-items: flex-start;
      flex-direction: column;
    }

    body.newhighcode-page .home-period-switch button {
      min-width: 74px;
      font-size: 11px;
      height: 32px;
      border-radius: 12px;
    }

    body.newhighcode-page .home-stats-title-wrap h2 {
      font-size: 21px;
    }

    body.newhighcode-page .home-stats-title-wrap p {
      font-size: 12px;
    }

    body.newhighcode-page .home-stats-grid {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .home-bottom-grid {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .home-stat-card {
      padding: 18px 16px;
      border-radius: 16px;
    }

    body.newhighcode-page .home-stat-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
    }

    body.newhighcode-page .home-stat-icon svg {
      width: 20px;
      height: 20px;
    }

    body.newhighcode-page .home-stat-value {
      font-size: 28px;
    }

    body.newhighcode-page .home-stat-label {
      font-size: 13px;
    }

    body.newhighcode-page .home-panel-card {
      padding: 16px;
      border-radius: 16px;
    }

    body.newhighcode-page .home-bottom-col {
      padding: 0;
    }

    body.newhighcode-page .home-panel-head h3 {
      font-size: 14px;
    }

    body.newhighcode-page .home-panel-head p {
      font-size: 11px;
    }

    body.newhighcode-page .home-calendar-layout {
      margin-top: 14px;
      gap: 8px;
    }

    body.newhighcode-page .home-calendar-contrib-view {
      padding: 14px;
      border-radius: 16px;
    }

    body.newhighcode-page .home-week-labels {
      width: 36px;
      grid-template-rows: repeat(7, 12px);
      gap: 5px;
      height: 114px;
      padding-top: 0;
    }

    body.newhighcode-page .home-week-labels span,
    body.newhighcode-page .home-month-labels span {
      font-size: 10px;
    }

    body.newhighcode-page .home-calendar-main {
      --home-calendar-cell-size: 12px;
      --home-calendar-cell-gap: 4px;
    }

    body.newhighcode-page .home-month-labels {
      grid-auto-columns: var(--home-calendar-cell-size);
      gap: var(--home-calendar-cell-gap);
    }

    body.newhighcode-page .home-heatmap {
      grid-template-rows: repeat(7, var(--home-calendar-cell-size));
      grid-auto-columns: var(--home-calendar-cell-size);
      gap: var(--home-calendar-cell-gap);
    }

    body.newhighcode-page .home-heatmap>span {
      width: var(--home-calendar-cell-size);
      height: var(--home-calendar-cell-size);
      border-radius: 4px;
    }

    body.newhighcode-page .home-calendar-card {
      gap: 14px;
    }

    body.newhighcode-page .home-calendar-summary-line {
      font-size: 13px;
    }

    body.newhighcode-page .home-calendar-metric-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    body.newhighcode-page .home-calendar-metric-card {
      padding: 12px;
      border-radius: 14px;
    }

    body.newhighcode-page .home-calendar-metric-value {
      font-size: 18px;
    }

    body.newhighcode-page .home-calendar-week-view {
      gap: 8px;
    }

    body.newhighcode-page .home-calendar-day-card {
      min-width: 108px;
      padding: 12px;
      border-radius: 16px;
    }

    body.newhighcode-page .home-calendar-day-date {
      font-size: 20px;
    }

    body.newhighcode-page .home-calendar-day-count strong {
      font-size: 24px;
    }

    body.newhighcode-page .home-calendar-month-panel,
    body.newhighcode-page .home-calendar-month-card {
      padding: 14px;
      border-radius: 16px;
    }

    body.newhighcode-page .home-calendar-month-head,
    body.newhighcode-page .home-calendar-month-card-head {
      flex-direction: column;
      align-items: stretch;
    }

    body.newhighcode-page .home-calendar-mini-metrics {
      justify-content: flex-start;
    }

    body.newhighcode-page .home-calendar-weekday-row {
      gap: 6px;
    }

    body.newhighcode-page .home-calendar-month-grid {
      gap: 6px;
    }

    body.newhighcode-page .home-calendar-month-cell {
      min-height: 56px;
      padding: 8px 6px;
      border-radius: 12px;
    }

    body.newhighcode-page .home-calendar-month-cell.is-compact {
      min-height: 42px;
      padding: 6px 5px;
    }

    body.newhighcode-page .home-calendar-all-view {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    body.newhighcode-page .home-calendar-contrib-foot {
      align-items: flex-start;
    }

    body.newhighcode-page .home-calendar-contrib-range {
      text-align: left;
    }

    body.newhighcode-page .home-calendar-empty-state {
      padding: 18px 16px;
    }

    body.newhighcode-page .home-review-quote-mark {
      font-size: 36px;
      margin-top: 2px;
    }

    body.newhighcode-page .home-review-text {
      font-size: 14px;
      margin-top: -6px;
    }

    body.newhighcode-page .home-review-note {
      font-size: 12px;
      margin-top: 10px;
    }

    body.newhighcode-page .home-review-foot {
      margin-top: auto;
      padding-top: 12px;
      gap: 10px;
    }

    body.newhighcode-page .home-review-source,
    body.newhighcode-page .home-review-foot a {
      font-size: 12px;
    }

    body.newhighcode-page .home-review-foot em {
      font-size: 11px;
    }

    body.newhighcode-page .home-bottom-head {
      padding: 14px 14px 8px;
    }

    body.newhighcode-page .home-bottom-head h3 {
      font-size: 14px;
    }

    body.newhighcode-page .home-bottom-head a {
      font-size: 11px;
    }

    body.newhighcode-page .home-bottom-list {
      padding: 0 10px 12px;
    }

    body.newhighcode-page .home-bottom-item {
      min-height: 70px;
      border-radius: 12px;
      padding: 10px;
    }

    body.newhighcode-page .home-bottom-item .content strong {
      font-size: 14px;
    }

    body.newhighcode-page .home-bottom-item .content p {
      font-size: 11px;
    }

    body.newhighcode-page.nav-collapsed .nav-panel {
      display: none;
    }
  }

  body.newhighcode-page .flashcard-history-practice-btn {
    min-width: 58px;
    height: 30px;
    border: none;
    border-radius: 10px;
    padding: 0 12px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--nh-primary) 86%, #0f3db2) 0%,
        color-mix(in srgb, var(--nh-primary) 64%, #7ca5ff) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 18px color-mix(in srgb, var(--nh-primary) 24%, transparent);
  }

  body.newhighcode-page .flashcard-history-practice-btn:hover {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--nh-primary) 86%, #0f3db2) 0%,
        color-mix(in srgb, var(--nh-primary) 64%, #7ca5ff) 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px color-mix(in srgb, var(--nh-primary) 30%, transparent);
  }

  body.newhighcode-page .flashcard-history-practice-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  body.newhighcode-page .flashcard-practice-mask {
    background:
      radial-gradient(900px 520px at 86% -12%, color-mix(in srgb, var(--nh-primary) 22%, transparent), transparent 64%),
      rgba(15, 23, 38, 0.56);
    backdrop-filter: blur(3px);
  }

  body.newhighcode-page .flashcard-practice-card {
    border: none;
    border-radius: 22px;
    background: color-mix(in srgb, var(--nh-surface-low) 82%, #fff);
    box-shadow: 0 30px 70px rgba(14, 21, 35, 0.28);
  }

  body.newhighcode-page .flashcard-practice-head {
    border-bottom: none;
    padding: 18px 22px 12px;
    background:
      linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
  }

  body.newhighcode-page .flashcard-practice-head h3 {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 22px;
    letter-spacing: -0.02em;
  }

  body.newhighcode-page #flashcardPracticeMeta {
    margin: 6px 0 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 12px;
    font-weight: 600;
  }

  body.newhighcode-page .flashcard-practice-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 11px;
    background: color-mix(in srgb, #fff 92%, transparent);
    color: var(--nh-on-surface-variant);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
  }

  body.newhighcode-page .flashcard-practice-close:hover {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .flashcard-practice-foot {
    border-top: none;
    background: transparent;
    padding: 12px 22px 20px;
  }

  body.newhighcode-page .flashcard-practice-actions {
    width: min(860px, 100%);
    display: grid;
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr) minmax(0, 1fr) minmax(104px, auto);
    gap: 10px;
    align-items: center;
  }

  body.newhighcode-page #flashcardPrevBtn {
    grid-column: 1;
  }

  body.newhighcode-page #flashcardUnmasteredBtn {
    grid-column: 2;
  }

  body.newhighcode-page #flashcardMasteredBtn {
    grid-column: 3;
  }

  body.newhighcode-page #flashcardNextBtn {
    grid-column: 4;
  }

  body.newhighcode-page .flashcard-nav-btn {
    min-width: 104px;
    height: 44px;
    border: none;
    border-radius: 12px;
    padding: 0 14px;
    background: color-mix(in srgb, var(--nh-surface-low) 88%, #fff);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 95%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 14%, transparent);
    font-size: 14px;
    font-weight: 700;
  }

  body.newhighcode-page .flashcard-nav-btn:hover {
    color: var(--nh-on-surface);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 28%, transparent);
    background: var(--nh-elevated);
  }

  body.newhighcode-page .flashcard-review-btn {
    min-width: 0;
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
  }

  body.newhighcode-page .flashcard-review-btn.unmastered {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 100%);
    color: #b43c3c;
    box-shadow:
      inset 0 0 0 1px rgba(214, 99, 99, 0.28),
      0 10px 18px rgba(214, 99, 99, 0.12);
  }

  body.newhighcode-page .flashcard-review-btn.mastered {
    background: linear-gradient(135deg, #f3fff7 0%, #e8f8ec 100%);
    color: #1d8a4a;
    box-shadow:
      inset 0 0 0 1px rgba(62, 173, 103, 0.3),
      0 10px 18px rgba(62, 173, 103, 0.12);
  }

  body.newhighcode-page .flashcard-review-btn.unmastered:hover {
    color: #a33131;
  }

  body.newhighcode-page .flashcard-review-btn.mastered:hover {
    color: #146f3e;
  }

  body.newhighcode-page .flashcard-practice-actions button:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-practice-modal {
    color-scheme: dark;
  }

  body.newhighcode-page.dark-theme .flashcard-practice-mask {
    background:
      radial-gradient(900px 520px at 86% -12%, color-mix(in srgb, var(--nh-primary) 18%, transparent), transparent 64%),
      rgba(5, 8, 13, 0.74);
  }

  body.newhighcode-page.dark-theme .flashcard-practice-card {
    background: color-mix(in srgb, var(--nh-surface-low) 86%, var(--nh-surface));
    color: var(--nh-on-surface);
    box-shadow: var(--nh-shadow-panel);
  }

  body.newhighcode-page.dark-theme .flashcard-practice-head,
  body.newhighcode-page.dark-theme .flashcard-practice-foot {
    background:
      linear-gradient(180deg, var(--nh-contrast-surface) 0%, color-mix(in srgb, var(--nh-surface-low) 92%, transparent) 100%);
  }

  body.newhighcode-page.dark-theme .flashcard-practice-body {
    background: color-mix(in srgb, var(--nh-surface-low) 92%, #0a0d14);
  }

  body.newhighcode-page.dark-theme .flashcard-practice-close {
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, transparent);
    color: var(--nh-on-surface-variant);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 13%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-practice-close:hover {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .flashcard-progress {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .flashcard-face {
    background: color-mix(in srgb, var(--nh-surface-low) 82%, #0b1018);
    box-shadow:
      0 20px 42px rgba(0, 0, 0, 0.28),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 8%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-side,
  body.newhighcode-page.dark-theme .flashcard-side-front,
  body.newhighcode-page.dark-theme .flashcard-side-back {
    background: linear-gradient(145deg, #2b313d 0%, #1e2430 100%);
    border-color: color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  }

  body.newhighcode-page.dark-theme .flashcard-side-front {
    background: linear-gradient(145deg, #303642 0%, #222832 100%);
  }

  body.newhighcode-page.dark-theme .flashcard-side-back {
    background: linear-gradient(145deg, #282f3b 0%, #1d232d 100%);
  }

  body.newhighcode-page.dark-theme .flashcard-question,
  body.newhighcode-page.dark-theme .flashcard-answer,
  body.newhighcode-page.dark-theme .flashcard-side-front .flashcard-question,
  body.newhighcode-page.dark-theme .flashcard-side-back .flashcard-answer {
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .flashcard-hint-inline,
  body.newhighcode-page.dark-theme .flashcard-side-front .flashcard-hint-inline,
  body.newhighcode-page.dark-theme .flashcard-side-back .flashcard-hint-inline {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 86%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-preview-filters {
    background: color-mix(in srgb, var(--nh-elevated) 88%, transparent);
    border-color: color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }

  body.newhighcode-page.dark-theme .flashcard-preview-filter-btn {
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, transparent);
    border-color: color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .flashcard-preview-filter-btn:hover {
    background: var(--nh-elevated);
    border-color: color-mix(in srgb, var(--nh-primary) 28%, var(--nh-outline));
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .flashcard-preview-filter-btn.is-active {
    background: color-mix(in srgb, var(--nh-primary) 18%, var(--nh-elevated-soft));
    border-color: color-mix(in srgb, var(--nh-primary) 48%, var(--nh-outline));
    color: color-mix(in srgb, var(--nh-primary) 34%, #fff);
  }

  body.newhighcode-page.dark-theme .flashcard-preview-tip {
    background: color-mix(in srgb, var(--nh-elevated-soft) 82%, var(--nh-surface-low));
    border-color: color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .flashcard-preview-tip.is-mastered {
    background: rgba(31, 138, 82, 0.18);
    border-color: rgba(125, 216, 165, 0.34);
    color: #9fe2ba;
  }

  body.newhighcode-page.dark-theme .flashcard-preview-tip.is-unmastered {
    background: rgba(180, 60, 60, 0.18);
    border-color: rgba(252, 165, 165, 0.34);
    color: #f4b6b6;
  }

  body.newhighcode-page.dark-theme .flashcard-preview-tip.is-skipped,
  body.newhighcode-page.dark-theme .flashcard-preview-tip.is-unrated,
  body.newhighcode-page.dark-theme .flashcard-empty {
    background: color-mix(in srgb, var(--nh-elevated-soft) 82%, var(--nh-surface-low));
    border-color: color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .flashcard-review-feedback-overlay.is-mastered {
    background: rgba(23, 70, 44, 0.94);
    border-color: rgba(125, 216, 165, 0.52);
    color: #9fe2ba;
  }

  body.newhighcode-page.dark-theme .flashcard-review-feedback-overlay.is-unmastered {
    background: rgba(82, 35, 42, 0.94);
    border-color: rgba(252, 165, 165, 0.52);
    color: #f4b6b6;
  }

  body.newhighcode-page.dark-theme .flashcard-nav-btn {
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, var(--nh-on-surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 13%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-nav-btn:hover {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 30%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-review-btn.unmastered {
    background: linear-gradient(135deg, rgba(127, 49, 57, 0.78) 0%, rgba(82, 35, 42, 0.9) 100%);
    color: #ffd6d6;
    box-shadow:
      inset 0 0 0 1px rgba(252, 165, 165, 0.28),
      0 10px 18px rgba(0, 0, 0, 0.2);
  }

  body.newhighcode-page.dark-theme .flashcard-review-btn.mastered {
    background: linear-gradient(135deg, rgba(30, 93, 60, 0.78) 0%, rgba(23, 70, 44, 0.9) 100%);
    color: #d2f7df;
    box-shadow:
      inset 0 0 0 1px rgba(125, 216, 165, 0.28),
      0 10px 18px rgba(0, 0, 0, 0.2);
  }

  body.newhighcode-page.dark-theme .flashcard-review-btn.unmastered:hover {
    color: #ffe4e4;
  }

  body.newhighcode-page.dark-theme .flashcard-review-btn.mastered:hover {
    color: #e2ffeb;
  }

  body.newhighcode-page.dark-theme .flashcard-practice-actions button:disabled {
    background: color-mix(in srgb, var(--nh-elevated-soft) 72%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 72%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 10%, transparent);
  }

  @media (max-width: 860px) {
    body.newhighcode-page .flashcard-practice-card {
      width: calc(100vw - 16px);
      max-height: calc(100vh - 12px);
      border-radius: 18px;
    }

    body.newhighcode-page .flashcard-practice-head {
      padding: 14px 14px 10px;
    }

    body.newhighcode-page .flashcard-practice-head h3 {
      font-size: 20px;
    }

    body.newhighcode-page .flashcard-practice-body {
      padding: 16px 12px 18px;
    }

    body.newhighcode-page .flashcard-practice-foot {
      padding: 10px 12px 14px;
    }

    body.newhighcode-page .flashcard-practice-actions {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.newhighcode-page #flashcardPrevBtn {
      grid-row: 1;
      grid-column: 1;
    }

    body.newhighcode-page #flashcardNextBtn {
      grid-row: 1;
      grid-column: 2;
    }

    body.newhighcode-page #flashcardUnmasteredBtn {
      grid-row: 2;
      grid-column: 1;
    }

    body.newhighcode-page #flashcardMasteredBtn {
      grid-row: 2;
      grid-column: 2;
    }

    body.newhighcode-page .flashcard-nav-btn,
    body.newhighcode-page .flashcard-review-btn {
      width: 100%;
      min-width: 0;
      height: 42px;
      border-radius: 12px;
      font-size: 14px;
    }
  }

  body.newhighcode-page .flashcard-summary-screen {
    width: min(860px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 14px;
    align-content: start;
  }

  body.newhighcode-page .flashcard-summary-hero {
    border-radius: 16px;
    background:
      linear-gradient(130deg, color-mix(in srgb, var(--nh-primary) 8%, var(--nh-elevated)) 0%, var(--nh-contrast-surface) 100%);
    box-shadow:
      0 10px 24px rgba(24, 34, 54, 0.06),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
    padding: 14px 16px;
    display: grid;
    gap: 6px;
  }

  body.newhighcode-page .flashcard-summary-kicker {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 95%, transparent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.newhighcode-page .flashcard-summary-title {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  body.newhighcode-page .flashcard-summary-subtitle {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 88%, transparent);
    font-size: 13px;
    font-weight: 600;
  }

  body.newhighcode-page .flashcard-summary-card {
    border: none;
    border-radius: 20px;
    background: var(--nh-elevated);
    box-shadow:
      0 16px 34px rgba(24, 34, 54, 0.08),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: center;
  }

  body.newhighcode-page .flashcard-summary-ring-wrap {
    display: grid;
    justify-items: center;
    gap: 10px;
  }

  body.newhighcode-page .flashcard-summary-ring {
    --flashcard-mastered-ratio: 0;
    width: min(270px, 58vw);
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: conic-gradient(color-mix(in srgb, var(--nh-primary) 86%, #1f8a52) calc(var(--flashcard-mastered-ratio, 0) * 1%),
        color-mix(in srgb, var(--nh-surface-low) 88%, #fff) calc(var(--flashcard-mastered-ratio, 0) * 1%) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    box-shadow: 0 14px 28px rgba(24, 34, 54, 0.1);
  }

  body.newhighcode-page .flashcard-summary-ring::before {
    content: "";
    width: 74%;
    height: 74%;
    border-radius: 999px;
    background: var(--nh-surface);
    position: absolute;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 8%, transparent);
  }

  body.newhighcode-page .flashcard-summary-ring strong,
  body.newhighcode-page .flashcard-summary-ring span {
    position: relative;
    z-index: 1;
    color: var(--nh-on-surface);
    text-align: center;
  }

  body.newhighcode-page .flashcard-summary-ring strong {
    display: block;
    margin: 0;
    font-size: clamp(30px, 3.8vw, 48px);
    line-height: 1;
    font-weight: 700;
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  }

  body.newhighcode-page .flashcard-summary-ring span {
    display: block;
    margin: 0;
    font-size: clamp(18px, 2.2vw, 28px);
    line-height: 1;
    font-weight: 700;
    color: color-mix(in srgb, var(--nh-primary) 78%, #1f8a52);
  }

  body.newhighcode-page .flashcard-summary-ring-caption {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  body.newhighcode-page .flashcard-summary-stats {
    width: 100%;
    display: grid;
    gap: 8px;
  }

  body.newhighcode-page .flashcard-summary-stats p {
    margin: 0;
    min-height: 46px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--nh-surface-low) 84%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
    padding: 0 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-weight: 600;
  }

  body.newhighcode-page .flashcard-summary-stats strong {
    font-size: 24px;
    line-height: 1;
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .flashcard-summary-stats strong.is-mastered {
    color: #1f8a52;
  }

  body.newhighcode-page .flashcard-summary-stats strong.is-unmastered {
    color: #c13b3b;
  }

  body.newhighcode-page .flashcard-summary-screen[data-summary-tone="great"] .flashcard-summary-hero {
    background: linear-gradient(130deg, rgba(31, 138, 82, 0.14) 0%, var(--nh-contrast-surface) 100%);
  }

  body.newhighcode-page .flashcard-summary-screen[data-summary-tone="good"] .flashcard-summary-hero {
    background: linear-gradient(130deg, rgba(24, 83, 218, 0.14) 0%, var(--nh-contrast-surface) 100%);
  }

  body.newhighcode-page .flashcard-summary-screen[data-summary-tone="steady"] .flashcard-summary-hero {
    background: linear-gradient(130deg, rgba(234, 179, 8, 0.14) 0%, var(--nh-contrast-surface) 100%);
  }

  body.newhighcode-page.dark-theme .flashcard-summary-hero {
    background:
      linear-gradient(130deg, color-mix(in srgb, var(--nh-primary) 10%, var(--nh-elevated)) 0%, var(--nh-contrast-surface) 100%);
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.28),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-summary-card {
    background: color-mix(in srgb, var(--nh-elevated) 88%, var(--nh-surface-low));
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-summary-ring {
    background: conic-gradient(color-mix(in srgb, var(--nh-primary) 80%, #29a362) calc(var(--flashcard-mastered-ratio, 0) * 1%),
        color-mix(in srgb, var(--nh-elevated-soft) 88%, #0b1018) calc(var(--flashcard-mastered-ratio, 0) * 1%) 100%);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
  }

  body.newhighcode-page.dark-theme .flashcard-summary-stats p {
    background: color-mix(in srgb, var(--nh-elevated-soft) 84%, var(--nh-surface-low));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
  }

  body.newhighcode-page.dark-theme .flashcard-summary-screen[data-summary-tone="great"] .flashcard-summary-hero {
    background: linear-gradient(130deg, rgba(31, 138, 82, 0.2) 0%, var(--nh-contrast-surface) 100%);
  }

  body.newhighcode-page.dark-theme .flashcard-summary-screen[data-summary-tone="good"] .flashcard-summary-hero {
    background: linear-gradient(130deg, rgba(24, 83, 218, 0.2) 0%, var(--nh-contrast-surface) 100%);
  }

  body.newhighcode-page.dark-theme .flashcard-summary-screen[data-summary-tone="steady"] .flashcard-summary-hero {
    background: linear-gradient(130deg, rgba(234, 179, 8, 0.18) 0%, var(--nh-contrast-surface) 100%);
  }

  @media (max-width: 860px) {
    body.newhighcode-page .flashcard-summary-hero {
      padding: 12px;
    }

    body.newhighcode-page .flashcard-summary-subtitle {
      font-size: 12px;
    }

    body.newhighcode-page .flashcard-summary-card {
      grid-template-columns: minmax(0, 1fr);
      padding: 12px;
      border-radius: 16px;
    }

    body.newhighcode-page .flashcard-summary-ring {
      width: min(240px, 68vw);
    }

    body.newhighcode-page .flashcard-summary-stats strong {
      font-size: 22px;
    }
  }

  body.newhighcode-page .quiz-practice-mask {
    background:
      radial-gradient(900px 520px at 84% -12%, color-mix(in srgb, var(--nh-primary) 22%, transparent), transparent 64%),
      rgba(15, 23, 38, 0.56);
    backdrop-filter: blur(3px);
  }

  body.newhighcode-page .quiz-practice-card {
    width: min(980px, calc(100vw - 40px));
    max-height: calc(100vh - 44px);
    border: none;
    border-radius: 22px;
    background: color-mix(in srgb, var(--nh-surface-low) 82%, #fff);
    box-shadow: 0 30px 70px rgba(14, 21, 35, 0.28);
  }

  body.newhighcode-page .quiz-practice-head {
    border-bottom: none;
    padding: 18px 22px 12px;
    background:
      linear-gradient(180deg, var(--nh-contrast-surface) 0%, var(--nh-contrast-surface-soft) 100%);
  }

  body.newhighcode-page .quiz-practice-head h3 {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 22px;
    letter-spacing: -0.02em;
  }

  body.newhighcode-page #quizPracticeMeta {
    margin: 6px 0 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 12px;
    font-weight: 600;
  }

  body.newhighcode-page .quiz-practice-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 11px;
    background: color-mix(in srgb, #fff 92%, transparent);
    color: var(--nh-on-surface-variant);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
  }

  body.newhighcode-page .quiz-practice-close:hover {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .quiz-practice-body {
    overflow-y: auto;
    padding: 16px 22px 20px;
    display: grid;
    align-content: start;
  }

  body.newhighcode-page .quiz-single-screen {
    width: min(860px, 100%);
    margin: 0 auto;
    border: none;
    border-radius: 20px;
    background: var(--nh-elevated);
    box-shadow:
      0 16px 34px rgba(24, 34, 54, 0.08),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
    padding: 18px 20px;
    display: grid;
    gap: 14px;
  }

  body.newhighcode-page .quiz-single-progress {
    width: fit-content;
    margin: 0 auto;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nh-primary) 10%, #fff);
    color: color-mix(in srgb, var(--nh-primary) 84%, #183d8f);
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  body.newhighcode-page .quiz-single-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.newhighcode-page .quiz-question-type,
  body.newhighcode-page .quiz-single-phase {
    min-height: 24px;
    border-radius: 999px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  body.newhighcode-page .quiz-question-type {
    background: color-mix(in srgb, var(--nh-primary) 9%, #fff);
    color: color-mix(in srgb, var(--nh-primary) 84%, #2048a1);
  }

  body.newhighcode-page .quiz-single-phase {
    background: color-mix(in srgb, var(--nh-surface-low) 88%, #fff);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 95%, transparent);
  }

  body.newhighcode-page .quiz-single-question {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.46;
    letter-spacing: -0.01em;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.newhighcode-page .quiz-single-options {
    display: grid;
    gap: 10px;
  }

  body.newhighcode-page .quiz-single-option {
    width: 100%;
    border: none;
    border-radius: 14px;
    background: color-mix(in srgb, var(--nh-surface-low) 84%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 10%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface) 92%, transparent);
    font-size: 16px;
    line-height: 1.45;
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }

  body.newhighcode-page .quiz-single-option:hover {
    background: var(--nh-elevated);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 26%, transparent);
    transform: translateY(-1px);
  }

  body.newhighcode-page .quiz-single-option-tag {
    width: 28px;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-weight: 700;
    flex: 0 0 auto;
  }

  body.newhighcode-page .quiz-single-option-text {
    flex: 1;
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.newhighcode-page .quiz-single-option.is-selected {
    background: color-mix(in srgb, var(--nh-primary) 10%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 30%, transparent);
  }

  body.newhighcode-page .quiz-single-option.is-correct {
    background: linear-gradient(135deg, #f3fff7 0%, #e8f8ec 100%);
    color: #186f3e;
    box-shadow:
      inset 0 0 0 1px rgba(62, 173, 103, 0.3),
      0 10px 18px rgba(62, 173, 103, 0.12);
  }

  body.newhighcode-page .quiz-single-option.is-wrong {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 100%);
    color: #a33131;
    box-shadow:
      inset 0 0 0 1px rgba(214, 99, 99, 0.28),
      0 10px 18px rgba(214, 99, 99, 0.12);
  }

  body.newhighcode-page .quiz-input-wrap {
    width: 100%;
  }

  body.newhighcode-page .quiz-answer-input,
  body.newhighcode-page .quiz-answer-textarea {
    width: 100%;
    border: none;
    border-radius: 14px;
    background: color-mix(in srgb, var(--nh-surface-low) 84%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 10%, transparent);
    color: var(--nh-on-surface);
    font-size: 15px;
    line-height: 1.6;
    padding: 12px 14px;
    outline: none;
  }

  body.newhighcode-page .quiz-answer-textarea {
    min-height: 150px;
    resize: vertical;
  }

  body.newhighcode-page .quiz-answer-input:focus,
  body.newhighcode-page .quiz-answer-textarea:focus {
    background: var(--nh-elevated);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 58%, transparent),
      0 0 0 4px color-mix(in srgb, var(--nh-primary) 11%, transparent);
  }

  body.newhighcode-page .quiz-inline-feedback {
    border: none;
    border-radius: 14px;
    padding: 12px 13px;
    display: grid;
    gap: 7px;
  }

  body.newhighcode-page .quiz-inline-feedback.success {
    background: linear-gradient(135deg, #f3fff7 0%, #e8f8ec 100%);
    color: #186f3e;
    box-shadow: inset 0 0 0 1px rgba(62, 173, 103, 0.3);
  }

  body.newhighcode-page .quiz-inline-feedback.error {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 100%);
    color: #a33131;
    box-shadow: inset 0 0 0 1px rgba(214, 99, 99, 0.28);
  }

  body.newhighcode-page .quiz-inline-feedback-title,
  body.newhighcode-page .quiz-inline-feedback-correct,
  body.newhighcode-page .quiz-inline-feedback-desc {
    margin: 0;
  }

  body.newhighcode-page .quiz-inline-feedback-title {
    font-size: 16px;
    font-weight: 700;
  }

  body.newhighcode-page .quiz-inline-feedback-correct,
  body.newhighcode-page .quiz-inline-feedback-desc {
    font-size: 14px;
    line-height: 1.55;
  }

  body.newhighcode-page .quiz-explain-toggle {
    all: unset;
    cursor: pointer;
    user-select: none;
    width: fit-content;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 16%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 95%, transparent);
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
  }

  body.newhighcode-page .quiz-explain-toggle:hover {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .quiz-inline-feedback-body {
    display: block;
  }

  body.newhighcode-page .quiz-inline-feedback-body.is-collapsed {
    display: none;
  }

  body.newhighcode-page .quiz-single-selected {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 12px;
    font-weight: 600;
  }

  body.newhighcode-page .quiz-practice-foot {
    border-top: none;
    background: transparent;
    padding: 10px 22px 20px;
  }

  body.newhighcode-page .quiz-practice-actions {
    width: min(860px, 100%);
    display: grid;
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  body.newhighcode-page #quizPracticePrevBtn {
    grid-column: 1;
  }

  body.newhighcode-page #quizPracticeSubmitBtn {
    grid-column: 2;
  }

  body.newhighcode-page #quizPracticeNextBtn {
    grid-column: 3;
  }

  body.newhighcode-page .quiz-nav-btn {
    min-width: 104px;
    height: 44px;
    border: none;
    border-radius: 12px;
    padding: 0 14px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--nh-primary) 84%, #0f3db2) 0%,
        color-mix(in srgb, var(--nh-primary) 62%, #7ca5ff) 100%);
    color: #fff;
    box-shadow: 0 14px 24px color-mix(in srgb, var(--nh-primary) 28%, transparent);
    font-size: 14px;
    font-weight: 700;
  }

  body.newhighcode-page .quiz-nav-btn:hover {
    color: #fff;
  }

  body.newhighcode-page .quiz-check-btn,
  body.newhighcode-page .quiz-summary-action-btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
  }

  body.newhighcode-page .quiz-check-btn {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--nh-primary) 84%, #0f3db2) 0%,
        color-mix(in srgb, var(--nh-primary) 62%, #7ca5ff) 100%);
    color: #fff;
    box-shadow: 0 14px 24px color-mix(in srgb, var(--nh-primary) 28%, transparent);
  }

  body.newhighcode-page .quiz-check-btn:hover {
    color: #fff;
  }

  body.newhighcode-page .quiz-summary-action-btn {
    background: color-mix(in srgb, var(--nh-surface-low) 88%, #fff);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 95%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 13%, transparent);
  }

  body.newhighcode-page .quiz-summary-action-btn:hover {
    color: var(--nh-on-surface);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 28%, transparent);
    background: var(--nh-elevated);
  }

  body.newhighcode-page .quiz-summary-action-btn.is-primary {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--nh-primary) 84%, #0f3db2) 0%,
        color-mix(in srgb, var(--nh-primary) 62%, #7ca5ff) 100%);
    color: #fff;
    box-shadow: 0 14px 24px color-mix(in srgb, var(--nh-primary) 28%, transparent);
  }

  body.newhighcode-page .quiz-summary-action-btn.is-primary:hover {
    color: #fff;
  }

  body.newhighcode-page .quiz-practice-actions button:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
  }

  body.newhighcode-page .quiz-practice-actions[data-phase="summary"] {
    grid-template-columns: repeat(2, minmax(160px, 220px));
    justify-content: center;
  }

  body.newhighcode-page .quiz-practice-actions[data-phase="summary"] #quizPracticeReviewBtn {
    grid-column: 1;
  }

  body.newhighcode-page .quiz-practice-actions[data-phase="summary"] #quizPracticeRetryBtn {
    grid-column: 2;
  }

  body.newhighcode-page .quiz-summary-screen {
    width: min(860px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 14px;
    align-content: start;
  }

  body.newhighcode-page .quiz-summary-hero {
    border-radius: 16px;
    background:
      linear-gradient(130deg, color-mix(in srgb, var(--nh-primary) 8%, var(--nh-elevated)) 0%, var(--nh-contrast-surface) 100%);
    box-shadow:
      0 10px 24px rgba(24, 34, 54, 0.06),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
    padding: 14px 16px;
    display: grid;
    gap: 6px;
  }

  body.newhighcode-page .quiz-summary-kicker {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 95%, transparent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.newhighcode-page .quiz-summary-title {
    margin: 0;
    color: var(--nh-on-surface);
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  body.newhighcode-page .quiz-summary-subtitle {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 88%, transparent);
    font-size: 13px;
    font-weight: 600;
  }

  body.newhighcode-page .quiz-summary-card {
    border: none;
    border-radius: 20px;
    background: var(--nh-elevated);
    box-shadow:
      0 16px 34px rgba(24, 34, 54, 0.08),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: center;
  }

  body.newhighcode-page .quiz-summary-ring-wrap {
    display: grid;
    justify-items: center;
    gap: 10px;
  }

  body.newhighcode-page .quiz-summary-ring {
    --quiz-score-ratio: 0;
    width: min(270px, 58vw);
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: conic-gradient(color-mix(in srgb, var(--nh-primary) 86%, #1f8a52) calc(var(--quiz-score-ratio, 0) * 1%),
        color-mix(in srgb, var(--nh-surface-low) 88%, #fff) calc(var(--quiz-score-ratio, 0) * 1%) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    box-shadow: 0 14px 28px rgba(24, 34, 54, 0.1);
  }

  body.newhighcode-page .quiz-summary-ring::before {
    content: "";
    width: 74%;
    height: 74%;
    border-radius: 999px;
    background: var(--nh-surface);
    position: absolute;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 8%, transparent);
  }

  body.newhighcode-page .quiz-summary-ring strong,
  body.newhighcode-page .quiz-summary-ring span {
    position: relative;
    z-index: 1;
    color: var(--nh-on-surface);
    text-align: center;
  }

  body.newhighcode-page .quiz-summary-ring strong {
    display: block;
    margin: 0;
    font-size: clamp(30px, 3.8vw, 48px);
    line-height: 1;
    font-weight: 700;
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
  }

  body.newhighcode-page .quiz-summary-ring span {
    display: block;
    margin: 0;
    font-size: clamp(18px, 2.2vw, 28px);
    line-height: 1;
    font-weight: 700;
    color: color-mix(in srgb, var(--nh-primary) 78%, #1f8a52);
  }

  body.newhighcode-page .quiz-summary-ring-caption {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  body.newhighcode-page .quiz-summary-stats {
    width: 100%;
    display: grid;
    gap: 8px;
  }

  body.newhighcode-page .quiz-summary-stats p {
    margin: 0;
    min-height: 46px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--nh-surface-low) 84%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
    padding: 0 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-weight: 600;
  }

  body.newhighcode-page .quiz-summary-stats strong {
    font-size: 24px;
    line-height: 1;
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .quiz-summary-stats strong.is-correct {
    color: #1f8a52;
  }

  body.newhighcode-page .quiz-summary-stats strong.is-wrong {
    color: #c13b3b;
  }

  body.newhighcode-page .quiz-summary-breakdown {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  body.newhighcode-page .quiz-summary-breakdown li {
    border-radius: 12px;
    background: var(--nh-elevated);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 10%, transparent);
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 13px;
    font-weight: 600;
  }

  body.newhighcode-page .quiz-summary-sync {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 12px;
    font-weight: 600;
  }

  body.newhighcode-page .quiz-summary-sync.is-error {
    color: #c13b3b;
  }

  body.newhighcode-page .quiz-summary-screen[data-summary-tone="great"] .quiz-summary-hero {
    background: linear-gradient(130deg, rgba(31, 138, 82, 0.14) 0%, var(--nh-contrast-surface) 100%);
  }

  body.newhighcode-page .quiz-summary-screen[data-summary-tone="good"] .quiz-summary-hero {
    background: linear-gradient(130deg, rgba(24, 83, 218, 0.14) 0%, var(--nh-contrast-surface) 100%);
  }

  body.newhighcode-page .quiz-summary-screen[data-summary-tone="warm"] .quiz-summary-hero,
  body.newhighcode-page .quiz-summary-screen[data-summary-tone="steady"] .quiz-summary-hero {
    background: linear-gradient(130deg, rgba(234, 179, 8, 0.14) 0%, var(--nh-contrast-surface) 100%);
  }

  body.newhighcode-page .quiz-result-card {
    width: min(680px, 100%);
    margin: 0 auto;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #f3fff7 0%, #e8f8ec 100%);
    box-shadow: inset 0 0 0 1px rgba(62, 173, 103, 0.28);
    padding: 12px 14px;
    color: #186f3e;
    font-size: 13px;
    line-height: 1.55;
  }

  body.newhighcode-page .quiz-result-card.error {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 100%);
    box-shadow: inset 0 0 0 1px rgba(214, 99, 99, 0.28);
    color: #a33131;
  }

  body.newhighcode-page.dark-theme .quiz-practice-modal {
    color-scheme: dark;
  }

  body.newhighcode-page.dark-theme .quiz-practice-mask {
    background:
      radial-gradient(900px 520px at 84% -12%, color-mix(in srgb, var(--nh-primary) 18%, transparent), transparent 64%),
      rgba(5, 8, 13, 0.74);
  }

  body.newhighcode-page.dark-theme .quiz-practice-card {
    background: color-mix(in srgb, var(--nh-surface-low) 86%, var(--nh-surface));
    color: var(--nh-on-surface);
    box-shadow: var(--nh-shadow-panel);
  }

  body.newhighcode-page.dark-theme .quiz-practice-head,
  body.newhighcode-page.dark-theme .quiz-practice-foot {
    background:
      linear-gradient(180deg, var(--nh-contrast-surface) 0%, color-mix(in srgb, var(--nh-surface-low) 92%, transparent) 100%);
  }

  body.newhighcode-page.dark-theme .quiz-practice-body {
    background: color-mix(in srgb, var(--nh-surface-low) 92%, #0a0d14);
  }

  body.newhighcode-page.dark-theme .quiz-practice-close {
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, transparent);
    color: var(--nh-on-surface-variant);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 13%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-practice-close:hover {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .quiz-single-screen {
    background: color-mix(in srgb, var(--nh-elevated) 88%, var(--nh-surface-low));
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-single-progress,
  body.newhighcode-page.dark-theme .quiz-question-type {
    background: color-mix(in srgb, var(--nh-primary) 18%, var(--nh-elevated-soft));
    color: color-mix(in srgb, var(--nh-primary) 34%, #fff);
  }

  body.newhighcode-page.dark-theme .quiz-single-phase {
    background: color-mix(in srgb, var(--nh-on-surface) 10%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .quiz-single-question {
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .quiz-single-option {
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, var(--nh-surface-low));
    color: color-mix(in srgb, var(--nh-on-surface) 92%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-single-option:hover:not(:disabled) {
    background: color-mix(in srgb, var(--nh-primary) 10%, var(--nh-elevated-soft));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 28%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-single-option-tag {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .quiz-single-option.is-selected {
    background: color-mix(in srgb, var(--nh-primary) 16%, var(--nh-elevated-soft));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 38%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-single-option.is-correct {
    background: linear-gradient(135deg, rgba(30, 93, 60, 0.78) 0%, rgba(23, 70, 44, 0.9) 100%);
    color: #d2f7df;
    box-shadow:
      inset 0 0 0 1px rgba(125, 216, 165, 0.34),
      0 10px 18px rgba(0, 0, 0, 0.2);
  }

  body.newhighcode-page.dark-theme .quiz-single-option.is-correct .quiz-single-option-tag {
    color: #a9e8c0;
  }

  body.newhighcode-page.dark-theme .quiz-single-option.is-wrong {
    background: linear-gradient(135deg, rgba(127, 49, 57, 0.78) 0%, rgba(82, 35, 42, 0.9) 100%);
    color: #ffd6d6;
    box-shadow:
      inset 0 0 0 1px rgba(252, 165, 165, 0.34),
      0 10px 18px rgba(0, 0, 0, 0.2);
  }

  body.newhighcode-page.dark-theme .quiz-single-option.is-wrong .quiz-single-option-tag {
    color: #ffc2c2;
  }

  body.newhighcode-page.dark-theme .quiz-answer-input,
  body.newhighcode-page.dark-theme .quiz-answer-textarea {
    color-scheme: dark;
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, var(--nh-surface-low));
    color: var(--nh-on-surface);
    caret-color: var(--nh-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 12%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-answer-input:focus,
  body.newhighcode-page.dark-theme .quiz-answer-textarea:focus {
    background: var(--nh-elevated);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 58%, transparent),
      0 0 0 4px color-mix(in srgb, var(--nh-primary) 18%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-answer-input::placeholder,
  body.newhighcode-page.dark-theme .quiz-answer-textarea::placeholder {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 68%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-inline-feedback.success {
    background: linear-gradient(135deg, rgba(30, 93, 60, 0.78) 0%, rgba(23, 70, 44, 0.9) 100%);
    color: #d2f7df;
    box-shadow: inset 0 0 0 1px rgba(125, 216, 165, 0.34);
  }

  body.newhighcode-page.dark-theme .quiz-inline-feedback.error {
    background: linear-gradient(135deg, rgba(127, 49, 57, 0.78) 0%, rgba(82, 35, 42, 0.9) 100%);
    color: #ffd6d6;
    box-shadow: inset 0 0 0 1px rgba(252, 165, 165, 0.34);
  }

  body.newhighcode-page.dark-theme .quiz-explain-toggle {
    background: color-mix(in srgb, var(--nh-on-surface) 10%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, var(--nh-on-surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 13%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-inline-feedback.success .quiz-explain-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #e2ffeb;
  }

  body.newhighcode-page.dark-theme .quiz-inline-feedback.error .quiz-explain-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #ffe4e4;
  }

  body.newhighcode-page.dark-theme .quiz-explain-toggle:hover {
    background: color-mix(in srgb, var(--nh-on-surface) 16%, transparent);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .quiz-single-selected {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 88%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .quiz-summary-action-btn {
    background: color-mix(in srgb, var(--nh-elevated-soft) 86%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, var(--nh-on-surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 13%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-summary-action-btn:hover {
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
  }

  body.newhighcode-page.dark-theme .quiz-nav-btn,
  body.newhighcode-page.dark-theme .quiz-check-btn,
  body.newhighcode-page.dark-theme .quiz-summary-action-btn.is-primary {
    color: #fff;
    box-shadow: 0 14px 24px color-mix(in srgb, var(--nh-primary) 30%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-practice-actions button:disabled {
    background: color-mix(in srgb, var(--nh-elevated-soft) 72%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 72%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 10%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-summary-hero {
    background:
      linear-gradient(130deg, color-mix(in srgb, var(--nh-primary) 10%, var(--nh-elevated)) 0%, var(--nh-contrast-surface) 100%);
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.28),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-summary-card {
    background: color-mix(in srgb, var(--nh-elevated) 88%, var(--nh-surface-low));
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-summary-ring {
    background: conic-gradient(color-mix(in srgb, var(--nh-primary) 80%, #29a362) calc(var(--quiz-score-ratio, 0) * 1%),
        color-mix(in srgb, var(--nh-elevated-soft) 88%, #0b1018) calc(var(--quiz-score-ratio, 0) * 1%) 100%);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
  }

  body.newhighcode-page.dark-theme .quiz-summary-stats p,
  body.newhighcode-page.dark-theme .quiz-summary-breakdown li {
    background: color-mix(in srgb, var(--nh-elevated-soft) 84%, var(--nh-surface-low));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-on-surface) 9%, transparent);
  }

  body.newhighcode-page.dark-theme .quiz-summary-sync {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 88%, var(--nh-on-surface));
  }

  body.newhighcode-page.dark-theme .quiz-summary-sync.is-error {
    color: #fca5a5;
  }

  body.newhighcode-page.dark-theme .quiz-summary-screen[data-summary-tone="great"] .quiz-summary-hero {
    background: linear-gradient(130deg, rgba(31, 138, 82, 0.2) 0%, var(--nh-contrast-surface) 100%);
  }

  body.newhighcode-page.dark-theme .quiz-summary-screen[data-summary-tone="good"] .quiz-summary-hero {
    background: linear-gradient(130deg, rgba(24, 83, 218, 0.2) 0%, var(--nh-contrast-surface) 100%);
  }

  body.newhighcode-page.dark-theme .quiz-summary-screen[data-summary-tone="warm"] .quiz-summary-hero,
  body.newhighcode-page.dark-theme .quiz-summary-screen[data-summary-tone="steady"] .quiz-summary-hero {
    background: linear-gradient(130deg, rgba(234, 179, 8, 0.18) 0%, var(--nh-contrast-surface) 100%);
  }

  body.newhighcode-page.dark-theme .quiz-result-card {
    background: linear-gradient(135deg, rgba(30, 93, 60, 0.78) 0%, rgba(23, 70, 44, 0.9) 100%);
    color: #d2f7df;
    box-shadow: inset 0 0 0 1px rgba(125, 216, 165, 0.34);
  }

  body.newhighcode-page.dark-theme .quiz-result-card.error {
    background: linear-gradient(135deg, rgba(127, 49, 57, 0.78) 0%, rgba(82, 35, 42, 0.9) 100%);
    color: #ffd6d6;
    box-shadow: inset 0 0 0 1px rgba(252, 165, 165, 0.34);
  }

  @media (max-width: 860px) {
    body.newhighcode-page .quiz-practice-card {
      width: calc(100vw - 16px);
      max-height: calc(100vh - 12px);
      border-radius: 18px;
    }

    body.newhighcode-page .quiz-practice-head {
      padding: 14px 14px 10px;
    }

    body.newhighcode-page .quiz-practice-head h3 {
      font-size: 20px;
    }

    body.newhighcode-page .quiz-practice-body {
      padding: 12px 12px 16px;
    }

    body.newhighcode-page .quiz-single-screen {
      border-radius: 16px;
      padding: 14px 12px;
      gap: 12px;
    }

    body.newhighcode-page .quiz-single-question {
      font-size: clamp(18px, 5.5vw, 24px);
    }

    body.newhighcode-page .quiz-single-option {
      font-size: 15px;
      padding: 11px 12px;
    }

    body.newhighcode-page .quiz-practice-foot {
      padding: 10px 12px 14px;
    }

    body.newhighcode-page .quiz-practice-actions {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.newhighcode-page #quizPracticePrevBtn {
      grid-column: 1;
    }

    body.newhighcode-page #quizPracticeSubmitBtn {
      grid-column: 2;
    }

    body.newhighcode-page #quizPracticeNextBtn {
      grid-column: 1 / span 2;
    }

    body.newhighcode-page #quizPracticeReviewBtn {
      grid-column: 1;
    }

    body.newhighcode-page #quizPracticeRetryBtn {
      grid-column: 2;
    }

    body.newhighcode-page .quiz-nav-btn,
    body.newhighcode-page .quiz-check-btn,
    body.newhighcode-page .quiz-summary-action-btn {
      width: 100%;
      min-width: 0;
      height: 42px;
      border-radius: 12px;
      font-size: 14px;
    }

    body.newhighcode-page .quiz-practice-actions[data-phase="summary"] {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.newhighcode-page .quiz-summary-hero {
      padding: 12px;
    }

    body.newhighcode-page .quiz-summary-subtitle {
      font-size: 12px;
    }

    body.newhighcode-page .quiz-summary-card {
      grid-template-columns: minmax(0, 1fr);
      padding: 12px;
      border-radius: 16px;
    }

    body.newhighcode-page .quiz-summary-ring {
      width: min(240px, 68vw);
    }

    body.newhighcode-page .quiz-summary-stats strong {
      font-size: 22px;
    }

    body.newhighcode-page .quiz-summary-breakdown {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  body.newhighcode-page .home-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.newhighcode-page .home-detail-modal[hidden] {
    display: none !important;
  }

  body.newhighcode-page .home-detail-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
  }

  body.newhighcode-page .home-detail-card {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: color-mix(in srgb, var(--nh-surface) 94%, #fff);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    overflow: hidden;
  }

  body.newhighcode-page .home-detail-head,
  body.newhighcode-page .home-detail-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--nh-outline) 22%, transparent);
  }

  body.newhighcode-page .home-detail-foot {
    border-top: 1px solid color-mix(in srgb, var(--nh-outline) 22%, transparent);
    border-bottom: 0;
  }

  body.newhighcode-page .home-detail-head h3 {
    margin: 0;
    font-size: 20px;
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .home-detail-head p,
  body.newhighcode-page .home-detail-pager {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--nh-on-surface-variant);
  }

  body.newhighcode-page .home-detail-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nh-surface-low) 88%, #fff);
    color: var(--nh-on-surface-variant);
    font-size: 18px;
    cursor: pointer;
  }

  body.newhighcode-page .home-detail-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 14px 18px 18px;
  }

  body.newhighcode-page .home-detail-list {
    padding: 0;
    gap: 10px;
  }

  body.newhighcode-page .home-detail-list .home-bottom-item {
    min-height: 72px;
  }

  body.newhighcode-page .home-detail-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: var(--nh-on-surface-variant);
    font-size: 14px;
  }

  body.newhighcode-page .home-detail-foot .soft-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
  }

  @media (max-width: 860px) {
    body.newhighcode-page .home-detail-card {
      width: calc(100vw - 16px);
      max-height: calc(100vh - 12px);
      border-radius: 18px;
    }

    body.newhighcode-page .home-detail-head,
    body.newhighcode-page .home-detail-foot {
      padding-left: 12px;
      padding-right: 12px;
    }

    body.newhighcode-page .home-detail-body {
      padding: 12px;
    }
  }

  /* Final simplification pass: PDF workspace */
  body.newhighcode-page .pdf-workspace-panel .tool-workspace-shell {
    gap: 12px;
  }

  body.newhighcode-page .pdf-workspace-topbar {
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    border-color: color-mix(in srgb, var(--nh-outline) 28%, transparent);
    background: var(--nh-contrast-surface);
    box-shadow: none;
  }

  body.newhighcode-page .pdf-workspace-topbar-copy {
    flex: 1 1 auto;
    gap: 12px;
  }

  body.newhighcode-page .pdf-workspace-topbar-text {
    gap: 2px;
  }

  body.newhighcode-page .pdf-workspace-topbar-text strong {
    font-size: 16px;
    line-height: 1.3;
  }

  body.newhighcode-page .pdf-workspace-topbar-text p {
    display: none;
  }

  body.newhighcode-page .pdf-workspace-status-inline {
    min-width: 0;
    max-width: 460px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 10px;
    padding: 9px 12px;
    border-radius: 999px;
    border-color: color-mix(in srgb, var(--nh-outline) 28%, transparent);
    background: var(--nh-elevated);
  }

  body.newhighcode-page .pdf-workspace-status-inline strong {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
  }

  body.newhighcode-page .pdf-workspace-status-inline span {
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.newhighcode-page .pdf-workspace-status-inline[data-tone="loading"] {
    background: color-mix(in srgb, var(--nh-primary) 8%, var(--nh-elevated));
  }

  body.newhighcode-page .pdf-workspace-status-inline[data-tone="success"] {
    background: color-mix(in srgb, #1f8a52 14%, var(--nh-elevated));
  }

  body.newhighcode-page .pdf-workspace-panel .tool-frame-card {
    grid-template-rows: minmax(0, 1fr);
    border-radius: 22px;
  }

  body.newhighcode-page .pdf-workspace-frame-head {
    display: none !important;
  }

  body.newhighcode-page .pdf-workspace-frame-title {
    font-size: 14px;
    line-height: 1.2;
  }

  body.newhighcode-page .pdf-workspace-frame-actions {
    gap: 8px;
  }

  body.newhighcode-page #pdfWorkspaceReloadBtn,
  body.newhighcode-page #pdfWorkspaceBackBtn,
  body.newhighcode-page #pdfWorkspaceOpenBtn,
  body.newhighcode-page #pdfWorkspaceCloseBtn {
    display: none !important;
  }

  body.newhighcode-page .pdf-workspace-frame-actions .soft-btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    min-width: 118px;
    justify-content: center;
    font-weight: 700;
  }

  body.newhighcode-page #pdfWorkspaceCloseBtn {
    border-color: color-mix(in srgb, var(--nh-outline) 42%, transparent);
    background: linear-gradient(180deg,
        var(--nh-contrast-surface) 0%,
        color-mix(in srgb, var(--nh-surface-low) 88%, var(--nh-elevated)) 100%);
    color: var(--nh-on-surface);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  }

  body.newhighcode-page #pdfWorkspaceCloseBtn:hover {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(254, 242, 242, 0.98);
    color: #b91c1c;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.1);
  }

  body.newhighcode-page .pdf-workspace-panel .tool-workspace-frame {
    min-height: 460px;
    background: color-mix(in srgb, var(--nh-surface-low) 78%, var(--nh-elevated));
  }

  @media (max-width: 1180px) {
    body.newhighcode-page .pdf-workspace-topbar {
      padding: 14px 16px;
    }

    body.newhighcode-page .pdf-workspace-status-inline {
      width: 100%;
      max-width: none;
      border-radius: 14px;
      grid-template-columns: 1fr;
      gap: 4px;
    }

    body.newhighcode-page .pdf-workspace-status-inline span {
      white-space: normal;
    }
  }

  @media (max-width: 720px) {
    body.newhighcode-page .pdf-workspace-panel .tool-frame-head {
      padding: 10px 12px 6px;
    }

    body.newhighcode-page .pdf-workspace-frame-actions .soft-btn {
      flex: 1 1 120px;
    }
  }

  /* Reader import workspace: unify four sources into web-friendly mobile cards */
  body.newhighcode-page .weread-workspace-shell {
    padding: 18px clamp(12px, 2vw, 22px) 20px;
  }

  body.newhighcode-page .weread-workspace-layout {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body.newhighcode-page .weread-workspace-main-card,
  body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-main-card {
    width: 100%;
    justify-self: stretch;
    gap: 16px;
    padding: 18px clamp(14px, 2.2vw, 22px);
    border-radius: 24px;
    background: var(--nh-contrast-surface);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
  }

  body.newhighcode-page .weread-workspace-toolbar-row,
  body.newhighcode-page .weread-workspace-source-panels,
  body.newhighcode-page .weread-workspace-meta-row,
  body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-toolbar-row,
  body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-source-panels,
  body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-meta-row {
    width: 100%;
    max-width: none;
  }

  body.newhighcode-page .weread-workspace-toolbar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  body.newhighcode-page .weread-workspace-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--nh-elevated) 56%, var(--nh-surface-low));
    border: 1px solid color-mix(in srgb, var(--nh-outline) 34%, transparent);
  }

  body.newhighcode-page .weread-workspace-switch-btn {
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--nh-on-surface-variant);
    font-size: 12px;
    font-weight: 700;
  }

  body.newhighcode-page .weread-workspace-switch-btn.active {
    border-color: color-mix(in srgb, var(--nh-primary) 18%, transparent);
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  }

  body.newhighcode-page .weread-workspace-main-actions {
    width: auto;
    margin-left: 0;
  }

  body.newhighcode-page #wereadWorkspaceBackBtn {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 34%, transparent);
    border-radius: 999px;
    background: var(--nh-elevated);
    color: var(--nh-on-surface);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  }

  body.newhighcode-page .weread-workspace-source-panels,
  body.newhighcode-page .weread-workspace-source-panel,
  body.newhighcode-page .weread-workspace-source-panel-compact {
    gap: 14px;
  }

  body.newhighcode-page .weread-workspace-source-panel>.weread-workspace-preview-card,
  body.newhighcode-page .weread-workspace-source-panel[data-reader-source-panel="dedao"]>.weread-workspace-preview-card {
    display: flex;
  }

  body.newhighcode-page .weread-workspace-source-panel[data-reader-source-panel="dedao"]>.weread-workspace-step-list,
  body.newhighcode-page .weread-workspace-source-panel[data-reader-source-panel="dedao"]>.weread-workspace-action-band {
    display: grid;
  }

  body.newhighcode-page .weread-workspace-source-panel,
  body.newhighcode-page .weread-workspace-source-panel.active,
  body.newhighcode-page .weread-workspace-source-panel-compact {
    min-height: clamp(600px, calc(100vh - 280px), 680px);
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "preview steps"
      "preview action";
    column-gap: 20px;
    row-gap: 16px;
    align-items: stretch;
  }

  body.newhighcode-page .weread-workspace-preview-card {
    grid-area: preview;
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 28%, transparent);
    background: linear-gradient(135deg, var(--reader-accent), color-mix(in srgb, var(--reader-accent) 84%, #ffffff));
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
    isolation: isolate;
  }

  body.newhighcode-page .weread-workspace-preview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.28), transparent 26%),
      radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.2), transparent 28%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.14));
    z-index: 0;
  }

  body.newhighcode-page .weread-workspace-preview-card::after {
    content: "";
    position: absolute;
    right: -14%;
    bottom: -18%;
    width: clamp(180px, 38%, 280px);
    aspect-ratio: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    z-index: 0;
  }

  body.newhighcode-page .weread-workspace-preview-icon {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    font-size: 28px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  body.newhighcode-page .weread-workspace-preview-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 304px;
    min-height: 156px;
    margin-top: auto;
    display: grid;
    align-content: end;
    gap: 10px;
    text-align: left;
  }

  body.newhighcode-page .weread-workspace-preview-copy strong {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 1;
    width: auto;
    margin: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  body.newhighcode-page .weread-workspace-preview-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  body.newhighcode-page .weread-workspace-step-list,
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-list {
    grid-area: steps;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    height: 100%;
    padding: 18px 20px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 30%, transparent);
    border-radius: 24px;
    background: var(--nh-elevated);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    align-content: start;
    grid-auto-rows: minmax(0, 1fr);
  }

  body.newhighcode-page .weread-workspace-step-item,
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-item {
    height: auto;
    padding: 0 0 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  body.newhighcode-page .weread-workspace-step-item:not(:last-child),
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-item:not(:last-child) {
    margin-bottom: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--nh-outline) 24%, transparent);
  }

  body.newhighcode-page .weread-workspace-step-badge,
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-badge {
    width: 30px;
    height: 30px;
    font-size: 14px;
    box-shadow: none;
  }

  body.newhighcode-page .weread-workspace-step-copy,
  body.newhighcode-page .weread-workspace-action-copy {
    gap: 6px;
  }

  body.newhighcode-page .weread-workspace-step-copy strong,
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-copy strong {
    font-size: 14px;
    line-height: 1.45;
  }

  body.newhighcode-page .weread-workspace-step-copy p,
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-copy p {
    font-size: 13px;
    line-height: 1.58;
  }

  body.newhighcode-page .weread-workspace-action-band,
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-band {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    grid-area: action;
    align-self: start;
    gap: 12px;
    min-height: 168px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 30%, transparent);
    background: var(--nh-elevated);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  }

  body.newhighcode-page .weread-workspace-action-copy strong,
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-copy strong {
    font-size: 15px;
  }

  body.newhighcode-page .weread-workspace-action-copy p,
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-copy p {
    max-width: none;
    font-size: 13px;
    line-height: 1.58;
  }

  body.newhighcode-page .weread-workspace-action-copy {
    width: min(100%, 560px);
    justify-items: start;
    text-align: left;
  }

  body.newhighcode-page .weread-workspace-action-row,
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(220px, 100%);
    margin: 0;
    justify-items: stretch;
    justify-content: start;
  }

  body.newhighcode-page .weread-workspace-action-row .soft-btn,
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-row .soft-btn {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 30%, transparent);
    border-radius: 14px;
    background: #f7f9fc;
    color: var(--nh-on-surface);
    box-shadow: none;
    justify-content: center;
    font-size: 13px;
  }

  body.newhighcode-page .weread-workspace-action-row [data-reader-open-source] {
    justify-self: auto;
  }

  body.newhighcode-page .reader-import-action-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }

  body.newhighcode-page .reader-import-action-copy {
    width: min(100%, 560px) !important;
    justify-items: start !important;
    text-align: left !important;
  }

  body.newhighcode-page .reader-import-action-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: min(220px, 100%) !important;
    margin: 0 !important;
    justify-items: stretch !important;
    justify-content: start !important;
    align-self: flex-start !important;
  }

  body.newhighcode-page .reader-import-action-row .soft-btn,
  body.newhighcode-page .reader-import-action-row .weread-workspace-import-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
  }

  body.newhighcode-page .weread-workspace-source-panel[data-reader-source-panel="dedao"] .weread-workspace-action-band {
    align-items: flex-start;
  }

  body.newhighcode-page .weread-workspace-source-panel[data-reader-source-panel="dedao"] .weread-workspace-action-copy {
    width: min(100%, 560px);
    justify-items: start;
    text-align: left;
  }

  body.newhighcode-page .weread-workspace-source-panel[data-reader-source-panel="dedao"] .weread-workspace-action-row {
    width: min(220px, 100%);
    margin: 0;
    justify-items: stretch;
    justify-content: start;
  }

  body.newhighcode-page .weread-workspace-import-btn,
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-import-btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    border-color: color-mix(in srgb, var(--nh-primary) 82%, #1d4ed8);
    background: linear-gradient(180deg, #2f63ee, #2853d7);
    color: #fff;
    box-shadow: 0 12px 24px rgba(40, 83, 215, 0.2);
  }

  body.newhighcode-page .weread-workspace-import-btn:hover,
  body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-import-btn:hover {
    background: linear-gradient(180deg, #3268f4, #244eca);
    color: #fff;
  }

  body.newhighcode-page .weread-workspace-meta-row,
  body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-meta-row {
    gap: 12px;
  }

  body.newhighcode-page .weread-workspace-inline-status {
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 26%, transparent);
    border-radius: 16px;
    background: #f6f8fb;
    font-size: 13px;
    line-height: 1.55;
  }

  body.newhighcode-page.dark-theme .tool-workspace-status,
  body.newhighcode-page.dark-theme .weread-workspace-inline-status {
    border: 1px solid color-mix(in srgb, var(--nh-outline) 90%, transparent);
    background: linear-gradient(180deg, rgba(30, 36, 46, 0.96), rgba(23, 28, 36, 0.94));
    color: var(--nh-on-surface);
    box-shadow: var(--nh-shadow-soft);
  }

  body.newhighcode-page.dark-theme .tool-workspace-status[data-tone="success"] {
    border-color: rgba(34, 197, 94, 0.26);
    background: rgba(34, 197, 94, 0.14);
    color: #8ee2a8;
  }

  body.newhighcode-page.dark-theme .tool-workspace-status[data-tone="error"] {
    border-color: rgba(239, 68, 68, 0.26);
    background: rgba(239, 68, 68, 0.14);
    color: #ffb4ad;
  }

  body.newhighcode-page.dark-theme .tool-workspace-status[data-tone="loading"] {
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.16);
    color: #b9d4ff;
  }

  @media (max-width: 1120px) {
    body.newhighcode-page .weread-workspace-toolbar-row {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .weread-workspace-main-actions {
      width: 100%;
      justify-content: flex-start;
    }

    body.newhighcode-page .weread-workspace-source-panel,
    body.newhighcode-page .weread-workspace-source-panel.active,
    body.newhighcode-page .weread-workspace-source-panel-compact {
      min-height: 560px;
      grid-template-columns: minmax(260px, 0.84fr) minmax(0, 1.16fr);
      column-gap: 14px;
    }

    body.newhighcode-page .weread-workspace-preview-card {
      padding: 24px;
    }

    body.newhighcode-page .weread-workspace-preview-icon {
      width: 52px;
      height: 52px;
    }

    body.newhighcode-page .weread-workspace-preview-copy strong {
      font-size: 23px;
    }

    body.newhighcode-page .weread-workspace-preview-copy {
      min-height: 144px;
    }
  }

  @media (max-width: 720px) {
    body.newhighcode-page .weread-workspace-shell {
      padding: 18px 14px 20px;
    }

    body.newhighcode-page .weread-workspace-main-card,
    body.newhighcode-page .weread-workspace-panel[data-active-source="weread"] .weread-workspace-main-card {
      padding: 18px 14px;
      border-radius: 22px;
    }

    body.newhighcode-page .weread-workspace-source-panel,
    body.newhighcode-page .weread-workspace-source-panel.active,
    body.newhighcode-page .weread-workspace-source-panel-compact {
      min-height: auto;
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
      grid-template-areas:
        "preview"
        "steps"
        "action";
      row-gap: 12px;
    }

    body.newhighcode-page .weread-workspace-switch {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.newhighcode-page .weread-workspace-preview-card {
      min-height: 200px;
      padding: 22px 20px;
      border-radius: 22px;
    }

    body.newhighcode-page .weread-workspace-preview-icon {
      width: 54px;
      height: 54px;
      border-radius: 18px;
      font-size: 28px;
    }

    body.newhighcode-page .weread-workspace-preview-copy strong {
      font-size: 20px;
    }

    body.newhighcode-page .weread-workspace-preview-copy {
      min-height: 0;
    }

    body.newhighcode-page .weread-workspace-step-list,
    body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-list,
    body.newhighcode-page .weread-workspace-action-band,
    body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-band {
      height: auto;
      min-height: 0;
      padding: 16px 14px;
      border-radius: 20px;
    }

    body.newhighcode-page .weread-workspace-step-list,
    body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-list {
      grid-auto-rows: auto;
    }

    body.newhighcode-page .weread-workspace-step-item,
    body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-item {
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 14px;
      padding-bottom: 12px;
    }

    body.newhighcode-page .weread-workspace-step-badge,
    body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-badge {
      width: 28px;
      height: 28px;
      font-size: 13px;
    }

    body.newhighcode-page .weread-workspace-step-copy strong,
    body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-copy strong {
      font-size: 15px;
    }

    body.newhighcode-page .weread-workspace-step-copy p,
    body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-step-copy p {
      font-size: 14px;
    }

    body.newhighcode-page .weread-workspace-action-band,
    body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-action-band {
      padding: 14px;
      border-radius: 20px;
    }

    body.newhighcode-page .weread-workspace-import-btn,
    body.newhighcode-page .weread-workspace-source-panel-compact .weread-workspace-import-btn {
      min-height: 46px;
    }

    body.newhighcode-page .weread-workspace-preview-copy p {
      font-size: 12px;
    }
  }

  body.newhighcode-page .extension-install-tip[hidden],
  body.newhighcode-page .extension-install-guide-modal[hidden] {
    display: none !important;
  }

  body.newhighcode-page .extension-install-tip {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 140;
    width: min(100%, 100vw);
    transform: translate(-50%, calc(100% + 28px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  body.newhighcode-page .extension-install-tip.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
  }

  body.newhighcode-page .extension-install-tip-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 10px 64px;
    border-top: 1px solid color-mix(in srgb, var(--nh-primary) 18%, var(--nh-outline));
    border-radius: 0;
    background:
      linear-gradient(90deg,
        color-mix(in srgb, var(--nh-primary) 8%, var(--nh-contrast-surface)) 0%,
        var(--nh-contrast-surface) 45%,
        color-mix(in srgb, var(--nh-primary) 8%, var(--nh-contrast-surface)) 100%);
    box-shadow: 0 -8px 24px color-mix(in srgb, var(--nh-primary) 14%, transparent);
    backdrop-filter: blur(14px);
  }

  body.newhighcode-page .extension-install-tip-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  body.newhighcode-page .extension-install-tip-actions .soft-btn,
  body.newhighcode-page .extension-install-guide-actions .soft-btn {
    min-height: 36px;
    padding: 0 22px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 34%, transparent);
    border-radius: 999px;
    background: var(--nh-elevated);
    color: var(--nh-primary);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--nh-primary) 12%, transparent);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
  }

  body.newhighcode-page .extension-install-tip-actions .soft-btn:hover,
  body.newhighcode-page .extension-install-guide-actions .soft-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--nh-primary) 18%, transparent);
  }

  body.newhighcode-page .extension-install-tip-primary,
  body.newhighcode-page .extension-install-guide-primary {
    border-color: color-mix(in srgb, var(--nh-primary) 22%, transparent) !important;
    background: color-mix(in srgb, var(--nh-primary) 10%, var(--nh-elevated)) !important;
    color: var(--nh-primary) !important;
  }

  body.newhighcode-page .extension-install-tip-primary:hover,
  body.newhighcode-page .extension-install-guide-primary:hover {
    background: color-mix(in srgb, var(--nh-primary) 14%, var(--nh-elevated)) !important;
  }

  body.newhighcode-page .extension-install-tip-close,
  body.newhighcode-page .extension-install-guide-close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: color-mix(in srgb, var(--nh-primary) 42%, var(--nh-on-surface-variant));
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: none;
  }

  body.newhighcode-page .extension-install-tip-close:hover,
  body.newhighcode-page .extension-install-guide-close:hover {
    background: color-mix(in srgb, var(--nh-hover) 88%, var(--nh-elevated));
    color: var(--nh-primary);
  }

  body.newhighcode-page .extension-install-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 20px;
  }

  body.newhighcode-page .extension-install-guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(6px);
  }

  body.newhighcode-page .extension-install-guide-card {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    padding: 28px 28px 24px;
    border-radius: 28px;
    background:
      radial-gradient(circle at top right, rgba(0, 122, 255, 0.12), transparent 30%),
      var(--nh-elevated);
    box-shadow: var(--nh-shadow-panel);
    display: grid;
    gap: 16px;
  }

  body.newhighcode-page .extension-install-guide-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nh-primary) 10%, var(--nh-elevated));
    color: var(--nh-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  body.newhighcode-page .extension-install-guide-card h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
  }

  body.newhighcode-page .extension-install-guide-lead {
    margin: 0;
    color: var(--nh-on-surface-variant);
    line-height: 1.7;
  }

  body.newhighcode-page .extension-install-guide-steps {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
    color: var(--nh-on-surface);
    line-height: 1.7;
  }

  body.newhighcode-page .extension-install-guide-note {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--nh-elevated-soft);
    border: 1px solid color-mix(in srgb, var(--nh-outline) 32%, transparent);
  }

  body.newhighcode-page .extension-install-guide-note strong {
    font-size: 13px;
  }

  body.newhighcode-page .extension-install-guide-note p {
    margin: 0;
    color: var(--nh-on-surface-variant);
    line-height: 1.6;
  }

  body.newhighcode-page .extension-install-guide-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }

  @media (max-width: 1180px) {
    body.newhighcode-page.extension-install-missing .curator-notify-btn {
      display: grid;
    }
  }

  @media (max-width: 720px) {
    body.newhighcode-page .extension-install-tip {
      bottom: 0;
      width: 100%;
    }

    body.newhighcode-page .extension-install-tip-card {
      min-height: 56px;
      padding: 10px 42px 10px 12px;
    }

    body.newhighcode-page .extension-install-tip-close {
      right: 10px;
    }

    body.newhighcode-page .extension-install-tip-actions,
    body.newhighcode-page .extension-install-guide-actions {
      justify-content: center;
    }

    body.newhighcode-page .extension-install-tip-actions .soft-btn,
    body.newhighcode-page .extension-install-guide-actions .soft-btn {
      width: auto;
      justify-content: center;
    }

    body.newhighcode-page .extension-install-guide-modal {
      padding: 12px;
      align-items: flex-end;
    }

    body.newhighcode-page .extension-install-guide-card {
      width: min(100%, 100vw - 12px);
      max-height: calc(100vh - 12px);
      overflow-y: auto;
      padding: 24px 18px 18px;
      border-radius: 24px;
    }

    body.newhighcode-page .extension-install-guide-card h2 {
      font-size: 24px;
    }
  }

  body.newhighcode-page .settings-membership-panel,
  body.newhighcode-page .settings-billing-panel {
    display: grid;
    gap: 16px;
  }

  body.newhighcode-page .settings-membership-panel[hidden],
  body.newhighcode-page .settings-billing-panel[hidden] {
    display: none !important;
  }

  body.newhighcode-page .settings-membership-layout {
    display: grid;
    gap: 16px;
  }

  body.newhighcode-page .settings-membership-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 16px;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--nh-primary) 16%, var(--nh-outline));
    border-radius: 24px;
    background:
      radial-gradient(circle at top right, color-mix(in srgb, var(--nh-primary) 14%, transparent), transparent 34%),
      linear-gradient(135deg, color-mix(in srgb, var(--nh-primary) 10%, #fff) 0%, var(--nh-elevated) 48%, var(--nh-elevated-soft) 100%);
    box-shadow: var(--nh-shadow-soft);
  }

  body.newhighcode-page .settings-membership-hero-main {
    display: grid;
    align-content: start;
    gap: 14px;
  }

  body.newhighcode-page .settings-membership-pill-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  body.newhighcode-page .settings-membership-pill,
  body.newhighcode-page .settings-membership-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  body.newhighcode-page .settings-membership-pill[data-tone="success"],
  body.newhighcode-page .settings-membership-mini-badge[data-tone="success"] {
    background: linear-gradient(135deg, #ffe89a 0%, #f7c948 55%, #e2a520 100%);
    color: #5a3b00;
  }

  body.newhighcode-page .settings-membership-pill[data-tone="purple"],
  body.newhighcode-page .settings-membership-mini-badge[data-tone="purple"] {
    background: linear-gradient(135deg, #f06ab6 0%, #9f5cff 100%);
    color: #fff5ff;
  }

  body.newhighcode-page .settings-membership-pill[data-tone="gold"],
  body.newhighcode-page .settings-membership-mini-badge[data-tone="gold"] {
    background: linear-gradient(135deg, #a85a2f 0%, #e27b36 100%);
    color: #fff1dc;
  }

  body.newhighcode-page .settings-membership-pill[data-tone="warn"],
  body.newhighcode-page .settings-membership-mini-badge[data-tone="warn"] {
    background: rgba(245, 158, 11, 0.16);
    color: #9a6700;
  }

  body.newhighcode-page .settings-membership-pill[data-tone="info"],
  body.newhighcode-page .settings-membership-mini-badge[data-tone="info"] {
    background: color-mix(in srgb, var(--nh-primary) 14%, transparent);
    color: var(--nh-primary);
  }

  body.newhighcode-page .settings-membership-sync-hint {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 88%, transparent);
    font-size: 12px;
    line-height: 1.5;
  }

  body.newhighcode-page .settings-membership-plan-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .settings-membership-plan-desc {
    margin: 0;
    max-width: 560px;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 14px;
    line-height: 1.7;
  }

  body.newhighcode-page .settings-membership-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  body.newhighcode-page .settings-membership-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.newhighcode-page .settings-membership-stat,
  body.newhighcode-page .settings-membership-card {
    border: 1px solid color-mix(in srgb, var(--nh-outline) 92%, transparent);
    border-radius: 20px;
    background: linear-gradient(180deg, var(--nh-elevated) 0%, var(--nh-elevated-soft) 100%);
    box-shadow: var(--nh-shadow-soft);
  }

  body.newhighcode-page .settings-membership-stat {
    min-height: 98px;
    padding: 16px;
    display: grid;
    align-content: start;
    gap: 8px;
  }

  body.newhighcode-page .settings-membership-stat span,
  body.newhighcode-page .settings-membership-card-head span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 12px;
    line-height: 1.4;
  }

  body.newhighcode-page .settings-membership-stat strong,
  body.newhighcode-page .settings-membership-card-head strong {
    color: var(--nh-on-surface);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
  }

  body.newhighcode-page .settings-membership-alert {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.1);
    color: #8a5a00;
    font-size: 13px;
    line-height: 1.6;
  }

  body.newhighcode-page .settings-membership-dual-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 16px;
    align-items: start;
  }

  body.newhighcode-page .settings-membership-usage-layout {
    display: grid;
    gap: 16px;
  }

  body.newhighcode-page .settings-membership-feature-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 100%;
    padding: 20px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 92%, transparent);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--nh-elevated) 0%, var(--nh-elevated-soft) 100%);
    box-shadow: var(--nh-shadow-soft);
  }

  body.newhighcode-page .settings-membership-feature-card::before {
    content: "";
    position: absolute;
    top: -56px;
    right: -56px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nh-primary) 12%, transparent);
    opacity: 0.7;
    pointer-events: none;
  }

  body.newhighcode-page .settings-membership-feature-card>* {
    position: relative;
    z-index: 1;
  }

  body.newhighcode-page .settings-membership-feature-card[data-tone="success"] {
    border-color: rgba(34, 197, 94, 0.2);
  }

  body.newhighcode-page .settings-membership-feature-card[data-tone="success"]::before {
    background: rgba(34, 197, 94, 0.12);
  }

  body.newhighcode-page .settings-membership-feature-card[data-tone="warn"] {
    border-color: rgba(245, 158, 11, 0.24);
  }

  body.newhighcode-page .settings-membership-feature-card[data-tone="warn"]::before {
    background: rgba(245, 158, 11, 0.12);
  }

  body.newhighcode-page .settings-membership-feature-card[data-tone="info"] {
    border-color: color-mix(in srgb, var(--nh-primary) 22%, var(--nh-outline));
  }

  body.newhighcode-page .settings-membership-feature-card-payment::before {
    background: color-mix(in srgb, var(--nh-primary) 10%, transparent);
  }

  body.newhighcode-page .settings-membership-feature-title {
    margin: 0;
    font-family: "Manrope", "Inter", "PingFang SC", sans-serif;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--nh-on-surface);
  }

  body.newhighcode-page .settings-membership-feature-desc {
    margin: -4px 0 0;
    max-width: 40rem;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 14px;
    line-height: 1.7;
  }

  body.newhighcode-page .settings-membership-info-list {
    display: grid;
    gap: 10px;
  }

  body.newhighcode-page .settings-membership-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 80%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 4%, var(--nh-surface));
  }

  body.newhighcode-page .settings-membership-info-row span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 13px;
    line-height: 1.5;
  }

  body.newhighcode-page .settings-membership-info-row strong {
    color: var(--nh-on-surface);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    text-align: right;
  }

  body.newhighcode-page .settings-membership-pay-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.newhighcode-page .settings-membership-pay-option {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 84%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--nh-primary) 4%, var(--nh-elevated));
    padding: 16px;
    text-align: left;
    display: grid;
    gap: 10px;
    cursor: pointer;
    transition:
      transform 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      background-color 0.2s ease;
  }

  body.newhighcode-page .settings-membership-pay-option:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--nh-primary) 32%, transparent);
    box-shadow: 0 12px 24px rgba(20, 26, 40, 0.08);
    background: color-mix(in srgb, var(--nh-primary) 7%, var(--nh-elevated));
  }

  body.newhighcode-page .settings-membership-pay-option-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
  }

  body.newhighcode-page .settings-membership-pay-option-head strong {
    color: var(--nh-on-surface);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-pay-option-head span {
    color: var(--nh-primary);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
  }

  body.newhighcode-page .settings-membership-pay-option p {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 13px;
    line-height: 1.65;
  }

  body.newhighcode-page .settings-membership-inline-compare {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 84%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 3%, var(--nh-surface));
  }

  body.newhighcode-page .settings-membership-diff-table {
    display: grid;
    gap: 10px;
  }

  body.newhighcode-page .settings-membership-diff-head,
  body.newhighcode-page .settings-membership-diff-row {
    display: grid;
    grid-template-columns: minmax(96px, 1.1fr) repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.newhighcode-page .settings-membership-diff-plan,
  body.newhighcode-page .settings-membership-diff-row strong,
  body.newhighcode-page .settings-membership-diff-label {
    min-height: 52px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 82%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 4%, var(--nh-surface));
    text-align: center;
  }

  body.newhighcode-page .settings-membership-diff-plan strong,
  body.newhighcode-page .settings-membership-diff-row strong {
    color: var(--nh-on-surface);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
  }

  body.newhighcode-page .settings-membership-diff-label {
    justify-items: start;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    text-align: left;
  }

  body.newhighcode-page .settings-membership-diff-plan.is-active {
    border-color: color-mix(in srgb, var(--nh-primary) 36%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 18%, transparent);
  }

  body.newhighcode-page .settings-membership-status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  body.newhighcode-page .settings-membership-status-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 82%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 4%, var(--nh-surface));
  }

  body.newhighcode-page .settings-membership-status-item span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 12px;
    line-height: 1.45;
  }

  body.newhighcode-page .settings-membership-status-item strong {
    color: var(--nh-on-surface);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  body.newhighcode-page .settings-membership-feature-actions .settings-btn {
    flex: 1 1 180px;
  }

  body.newhighcode-page .settings-membership-grid,
  body.newhighcode-page .settings-billing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.newhighcode-page .settings-membership-grid-compact {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  body.newhighcode-page .settings-membership-card {
    padding: 18px;
    display: grid;
    align-content: start;
    gap: 12px;
  }

  body.newhighcode-page .settings-membership-card-wide {
    grid-column: 1 / -1;
  }

  body.newhighcode-page .settings-membership-section-head,
  body.newhighcode-page .settings-membership-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
  }

  body.newhighcode-page .settings-membership-section-head span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 12px;
    line-height: 1.4;
  }

  body.newhighcode-page .settings-membership-section-head strong {
    color: var(--nh-on-surface);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
  }

  body.newhighcode-page .settings-membership-kpi {
    color: var(--nh-on-surface);
    font-size: 28px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  body.newhighcode-page .settings-billing-grid .settings-membership-kpi {
    font-size: 24px;
  }

  body.newhighcode-page .settings-billing-detail-list {
    display: grid;
    gap: 10px;
  }

  body.newhighcode-page .settings-billing-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--nh-outline) 82%, transparent);
  }

  body.newhighcode-page .settings-billing-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  body.newhighcode-page .settings-billing-detail-row span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 13px;
    line-height: 1.6;
  }

  body.newhighcode-page .settings-billing-detail-row strong,
  body.newhighcode-page .settings-billing-detail-row code {
    color: var(--nh-on-surface);
    font-size: 13px;
    line-height: 1.6;
    text-align: right;
    word-break: break-all;
  }

  body.newhighcode-page .settings-billing-detail-row strong {
    font-weight: 700;
  }

  body.newhighcode-page .settings-billing-detail-row code {
    padding: 2px 8px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--nh-primary) 7%, var(--nh-surface));
    border: 1px solid color-mix(in srgb, var(--nh-outline) 80%, transparent);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  }

  body.newhighcode-page .settings-billing-note-callout {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--nh-primary) 16%, var(--nh-outline));
    background: color-mix(in srgb, var(--nh-primary) 4%, var(--nh-surface));
  }

  body.newhighcode-page .settings-billing-note-callout strong {
    color: var(--nh-on-surface);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
  }

  body.newhighcode-page .settings-billing-note-callout p {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 13px;
    line-height: 1.7;
  }

  body.newhighcode-page .settings-billing-entry-list {
    display: grid;
    gap: 12px;
  }

  body.newhighcode-page .settings-billing-entry {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 84%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 4%, var(--nh-surface));
  }

  body.newhighcode-page .settings-billing-entry-main {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  body.newhighcode-page .settings-billing-entry-main strong,
  body.newhighcode-page .settings-billing-entry-side strong {
    color: var(--nh-on-surface);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
  }

  body.newhighcode-page .settings-billing-entry-main span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 12px;
    line-height: 1.6;
  }

  body.newhighcode-page .settings-billing-entry-side {
    flex: 0 0 auto;
    text-align: right;
    display: grid;
    justify-items: end;
    gap: 8px;
  }

  body.newhighcode-page .settings-billing-mini-btn {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  body.newhighcode-page .settings-billing-payment-status,
  body.newhighcode-page .settings-billing-payment-inline-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid var(--payment-status-border);
    background: var(--payment-status-bg);
  }

  body.newhighcode-page .settings-billing-payment-status[data-status="paid"],
  body.newhighcode-page .settings-billing-payment-inline-status[data-status="paid"] {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.07);
  }

  body.newhighcode-page .settings-billing-payment-status[data-status="failed"],
  body.newhighcode-page .settings-billing-payment-inline-status[data-status="failed"],
  body.newhighcode-page .settings-billing-payment-status[data-status="cancelled"],
  body.newhighcode-page .settings-billing-payment-inline-status[data-status="cancelled"] {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(245, 158, 11, 0.08);
  }

  body.newhighcode-page .settings-billing-payment-status>div,
  body.newhighcode-page .settings-billing-payment-inline-status>div {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  body.newhighcode-page .settings-billing-payment-status span,
  body.newhighcode-page .settings-billing-payment-inline-status span {
    color: var(--payment-muted);
    font-size: 12px;
    line-height: 1.5;
  }

  body.newhighcode-page .settings-billing-payment-status strong,
  body.newhighcode-page .settings-billing-payment-inline-status strong {
    color: var(--payment-title);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 800;
    word-break: break-all;
  }

  body.newhighcode-page .settings-billing-payment-status p,
  body.newhighcode-page .settings-billing-payment-inline-status p {
    margin: 0;
    color: var(--payment-muted);
    font-size: 12px;
    line-height: 1.6;
  }

  body.newhighcode-page .settings-billing-payment-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body.newhighcode-page,
  body.newhighcode-page .settings-billing-payment-modal {
    --payment-modal-backdrop: rgba(15, 23, 42, 0.42);
    --payment-modal-glow: rgba(37, 99, 235, 0.34);
    --payment-card-bg:
      radial-gradient(circle at 68% 26%, rgba(37, 99, 235, 0.08), transparent 32%),
      linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #ffffff 100%);
    --payment-card-border: rgba(226, 232, 240, 0.9);
    --payment-card-shadow: rgba(15, 23, 42, 0.2);
    --payment-title: #0f172a;
    --payment-price: #1d4ed8;
    --payment-muted: #64748b;
    --payment-divider: #e8edf5;
    --payment-close-bg: rgba(248, 250, 252, 0.82);
    --payment-close-bg-hover: #f1f5f9;
    --payment-close-border: #e2e8f0;
    --payment-close-text: #475569;
    --payment-close-text-hover: #0f172a;
    --payment-badge-bg: #fff1e8;
    --payment-badge-text: #f97316;
    --payment-benefit-icon-bg: #dcfce7;
    --payment-benefit-icon-text: #16a34a;
    --payment-status-bg: color-mix(in srgb, var(--nh-primary) 5%, var(--nh-surface));
    --payment-status-border: color-mix(in srgb, var(--nh-primary) 18%, var(--nh-outline));
    --payment-art-card-bg: rgba(248, 251, 255, 0.72);
    --payment-art-card-border: rgba(199, 213, 235, 0.72);
    --payment-art-shadow: rgba(37, 99, 235, 0.12);
    --payment-art-line: #dbe7ff;
    --payment-art-large: linear-gradient(160deg, #e0f0ff, #a8cdfd);
    --payment-art-small: linear-gradient(160deg, #d7ccff, #8d7cf5);
    --payment-security: #94a3b8;
  }

  body.newhighcode-page .settings-billing-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 1460;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
      radial-gradient(circle at bottom right, var(--payment-modal-glow), transparent 32%),
      var(--payment-modal-backdrop);
    backdrop-filter: blur(14px);
  }

  body.newhighcode-page.settings-open .settings-billing-payment-modal {
    top: var(--settings-top-offset, 0px);
    right: 0;
    bottom: 0;
    left: var(--settings-rail-width, var(--rail-width));
    background:
      radial-gradient(circle at bottom right, color-mix(in srgb, var(--payment-modal-glow) 72%, transparent), transparent 32%),
      color-mix(in srgb, var(--payment-modal-backdrop) 58%, transparent);
  }

  body.newhighcode-page.dark-theme,
  body.newhighcode-page.dark-theme .settings-billing-payment-modal {
    --payment-modal-backdrop: rgba(2, 6, 23, 0.68);
    --payment-modal-glow: rgba(59, 130, 246, 0.22);
    --payment-card-bg:
      radial-gradient(circle at 68% 24%, rgba(96, 165, 250, 0.16), transparent 34%),
      linear-gradient(135deg, #111827 0%, #172033 58%, #0f172a 100%);
    --payment-card-border: rgba(148, 163, 184, 0.22);
    --payment-card-shadow: rgba(0, 0, 0, 0.45);
    --payment-title: #f8fafc;
    --payment-price: #8bb7ff;
    --payment-muted: #a8b5d1;
    --payment-divider: rgba(148, 163, 184, 0.18);
    --payment-close-bg: rgba(15, 23, 42, 0.76);
    --payment-close-bg-hover: rgba(30, 41, 59, 0.92);
    --payment-close-border: rgba(148, 163, 184, 0.24);
    --payment-close-text: #b9c5d8;
    --payment-close-text-hover: #ffffff;
    --payment-badge-bg: rgba(249, 115, 22, 0.14);
    --payment-badge-text: #fdba74;
    --payment-benefit-icon-bg: rgba(34, 197, 94, 0.16);
    --payment-benefit-icon-text: #86efac;
    --payment-status-bg: rgba(96, 165, 250, 0.1);
    --payment-status-border: rgba(147, 197, 253, 0.2);
    --payment-art-card-bg: rgba(30, 41, 59, 0.72);
    --payment-art-card-border: rgba(147, 197, 253, 0.24);
    --payment-art-shadow: rgba(0, 0, 0, 0.3);
    --payment-art-line: rgba(147, 197, 253, 0.28);
    --payment-art-large: linear-gradient(160deg, #334155, #60a5fa);
    --payment-art-small: linear-gradient(160deg, #7c3aed, #a78bfa);
    --payment-security: #90a2bf;
  }

  body.newhighcode-page .settings-billing-payment-modal[hidden] {
    display: none !important;
  }

  body.newhighcode-page .settings-billing-payment-card {
    position: relative;
    width: min(820px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    display: grid;
    gap: 24px;
    padding: 54px 54px 0;
    border-radius: 16px;
    border: 1px solid var(--payment-card-border);
    background: var(--payment-card-bg);
    box-shadow: 0 28px 80px var(--payment-card-shadow);
  }

  body.newhighcode-page .settings-billing-payment-close {
    position: absolute;
    top: 28px;
    right: 30px;
    width: 52px;
    height: 52px;
    border: 1px solid var(--payment-close-border);
    border-radius: 999px;
    background: var(--payment-close-bg);
    color: var(--payment-close-text);
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
  }

  body.newhighcode-page .settings-billing-payment-close:hover {
    color: var(--payment-close-text-hover);
    background: var(--payment-close-bg-hover);
  }

  body.newhighcode-page .settings-billing-payment-close:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  body.newhighcode-page .settings-billing-payment-head {
    display: grid;
    gap: 20px;
    padding-right: 0;
  }

  body.newhighcode-page .settings-billing-payment-head>span {
    color: var(--nh-primary);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
  }

  body.newhighcode-page .settings-billing-payment-head h3 {
    margin: 0;
    color: var(--payment-title);
    font-size: 38px;
    line-height: 1.1;
    font-weight: 900;
  }

  body.newhighcode-page .settings-billing-payment-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 34px;
    align-items: center;
  }

  body.newhighcode-page .settings-billing-payment-copy {
    display: grid;
    gap: 24px;
    min-width: 0;
  }

  body.newhighcode-page .settings-billing-payment-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--payment-badge-bg);
    color: var(--payment-badge-text);
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
  }

  body.newhighcode-page .settings-billing-payment-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--payment-price);
  }

  body.newhighcode-page .settings-billing-payment-price strong {
    font-size: 76px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
  }

  body.newhighcode-page .settings-billing-payment-price span {
    color: var(--payment-muted);
    font-size: 28px;
    line-height: 1.4;
    font-weight: 800;
  }

  body.newhighcode-page .settings-billing-payment-head p {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 13px;
    line-height: 1.7;
  }

  body.newhighcode-page .settings-billing-payment-benefits {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 260px;
  }

  body.newhighcode-page .settings-billing-payment-benefits li {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    border-bottom: 1px solid var(--payment-divider);
    color: var(--payment-title);
    font-size: 21px;
    line-height: 1.45;
  }

  body.newhighcode-page .settings-billing-payment-benefits li:last-child {
    border-bottom: 0;
  }

  body.newhighcode-page .settings-billing-payment-benefits span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--payment-benefit-icon-bg);
    color: var(--payment-benefit-icon-text);
    font-size: 24px;
    font-weight: 900;
  }

  body.newhighcode-page .settings-billing-payment-benefits strong {
    font-weight: 700;
  }

  body.newhighcode-page .settings-billing-payment-cta,
  body.newhighcode-page .settings-billing-channel-grid {
    display: grid;
    gap: 22px;
  }

  body.newhighcode-page .settings-billing-channel-btn {
    width: 100%;
    height: 76px;
    min-height: 76px;
    display: flex;
    place-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    gap: 18px;
    border: 1px solid #1677ff;
    border-radius: 14px;
    background: #1677ff;
    color: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }

  body.newhighcode-page .settings-billing-channel-btn:hover {
    transform: translateY(-1px);
    border-color: #0f6fff;
    background: #0f6fff;
    box-shadow: 0 18px 34px rgba(22, 119, 255, 0.26);
  }

  body.newhighcode-page .settings-billing-channel-btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  body.newhighcode-page .settings-billing-channel-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.1);
    overflow: hidden;
  }

  body.newhighcode-page .settings-billing-channel-icon img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
  }

  body.newhighcode-page .settings-billing-channel-btn[data-channel="alipay"] .settings-billing-channel-icon {
    background: #fff;
  }

  body.newhighcode-page .settings-billing-channel-btn[data-channel="wechat"] .settings-billing-channel-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
  }

  body.newhighcode-page .settings-billing-channel-btn strong {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 800;
  }

  body.newhighcode-page .settings-billing-channel-btn small {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 12px;
    line-height: 1.4;
  }

  body.newhighcode-page .settings-billing-payment-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: center;
    justify-items: center;
    color: #64748b;
    font-size: 15px;
    line-height: 1.45;
  }

  body.newhighcode-page .settings-billing-payment-trust span {
    position: relative;
    width: 100%;
    text-align: center;
  }

  body.newhighcode-page .settings-billing-payment-trust span+span::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 1px;
    height: 20px;
    background: #dbe3ef;
    transform: translateY(-50%);
  }

  body.newhighcode-page .settings-billing-payment-alipay-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff;
    color: #1677ff;
    font-size: 30px;
    font-weight: 900;
  }

  body.newhighcode-page .settings-billing-payment-security {
    margin: 0 -54px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--payment-divider);
    color: var(--payment-security);
    font-size: 15px;
    font-weight: 700;
  }

  body.newhighcode-page .settings-billing-payment-art {
    position: relative;
    min-height: 280px;
  }

  body.newhighcode-page .settings-billing-payment-art-card {
    position: absolute;
    border: 1px solid var(--payment-art-card-border);
    border-radius: 22px;
    background: var(--payment-art-card-bg);
    box-shadow: 0 20px 42px var(--payment-art-shadow);
  }

  body.newhighcode-page .settings-billing-payment-art-card.back {
    right: 18px;
    top: 18px;
    width: 240px;
    height: 220px;
    transform: rotate(-4deg);
  }

  body.newhighcode-page .settings-billing-payment-art-card.front {
    right: 74px;
    top: 76px;
    width: 220px;
    height: 176px;
    display: grid;
    place-content: center;
    gap: 16px;
    text-align: center;
  }

  body.newhighcode-page .settings-billing-payment-art-card.front span {
    color: #5b7cfa;
    font-size: 46px;
    font-weight: 900;
  }

  body.newhighcode-page .settings-billing-payment-art-card.front i {
    width: 120px;
    height: 11px;
    display: block;
    border-radius: 999px;
    background: var(--payment-art-line);
  }

  body.newhighcode-page .settings-billing-payment-crown {
    position: absolute;
    right: 68px;
    top: 64px;
    color: #f7b733;
    font-size: 54px;
    transform: rotate(12deg);
  }

  body.newhighcode-page .settings-billing-payment-orb {
    position: absolute;
    border-radius: 999px;
  }

  body.newhighcode-page .settings-billing-payment-orb.large {
    right: 0;
    bottom: 16px;
    width: 82px;
    height: 120px;
    background: var(--payment-art-large);
  }

  body.newhighcode-page .settings-billing-payment-orb.small {
    right: 92px;
    bottom: 16px;
    width: 70px;
    height: 70px;
    background: var(--payment-art-small);
  }

  body.newhighcode-page .settings-billing-payment-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }

  body.newhighcode-page .settings-membership-card-note {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 13px;
    line-height: 1.7;
  }

  body.newhighcode-page .settings-profile-entitlements {
    margin-top: 18px;
  }

  body.newhighcode-page .settings-profile-entitlement-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 84%, transparent);
    background:
      radial-gradient(circle at top right, color-mix(in srgb, var(--nh-primary) 8%, transparent), transparent 34%),
      color-mix(in srgb, var(--nh-primary) 3%, var(--nh-surface));
  }

  body.newhighcode-page .settings-profile-entitlement-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }

  body.newhighcode-page .settings-profile-entitlement-copy {
    display: grid;
    gap: 6px;
  }

  body.newhighcode-page .settings-profile-entitlement-copy>span,
  body.newhighcode-page .settings-profile-entitlement-foot-copy>span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 92%, transparent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  body.newhighcode-page .settings-profile-entitlement-copy strong,
  body.newhighcode-page .settings-profile-entitlement-foot-copy strong {
    color: var(--nh-on-surface);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
  }

  body.newhighcode-page .settings-profile-entitlement-copy p {
    margin: 0;
    max-width: 720px;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 13px;
    line-height: 1.65;
  }

  body.newhighcode-page .settings-profile-entitlement-actions {
    flex: 0 0 auto;
  }

  body.newhighcode-page .settings-profile-entitlement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  body.newhighcode-page .settings-profile-entitlement-item {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 80%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 4%, var(--nh-surface));
  }

  body.newhighcode-page .settings-profile-entitlement-item[data-tone="success"] {
    background: rgba(34, 197, 94, 0.06);
  }

  body.newhighcode-page .settings-profile-entitlement-item[data-tone="warn"] {
    background: rgba(245, 158, 11, 0.08);
  }

  body.newhighcode-page .settings-profile-entitlement-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.newhighcode-page .settings-profile-entitlement-item-head span:first-child {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 13px;
    line-height: 1.4;
  }

  body.newhighcode-page .settings-profile-entitlement-item strong {
    color: var(--nh-on-surface);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
  }

  body.newhighcode-page .settings-profile-entitlement-item p {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 12px;
    line-height: 1.6;
  }

  body.newhighcode-page .settings-profile-entitlement-foot {
    display: grid;
    gap: 12px;
  }

  body.newhighcode-page .settings-profile-source-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  body.newhighcode-page .settings-profile-source-pill {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 80%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 4%, var(--nh-surface));
  }

  body.newhighcode-page .settings-profile-source-pill[data-tone="success"] {
    background: rgba(34, 197, 94, 0.06);
  }

  body.newhighcode-page .settings-profile-source-pill[data-tone="warn"] {
    background: rgba(245, 158, 11, 0.08);
  }

  body.newhighcode-page .settings-profile-source-pill strong {
    color: var(--nh-on-surface);
    font-size: 13px;
    line-height: 1.4;
  }

  body.newhighcode-page .settings-profile-source-pill span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 12px;
    line-height: 1.55;
  }

  body.newhighcode-page .settings-membership-metric-list {
    display: grid;
    gap: 12px;
  }

  body.newhighcode-page .settings-membership-progress-stack {
    display: grid;
    gap: 12px;
  }

  body.newhighcode-page .settings-membership-metric-card {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 82%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 4%, var(--nh-surface));
  }

  body.newhighcode-page .settings-membership-metric-card[data-tone="success"] {
    background: rgba(34, 197, 94, 0.06);
  }

  body.newhighcode-page .settings-membership-metric-card[data-tone="warn"] {
    background: rgba(245, 158, 11, 0.08);
  }

  body.newhighcode-page .settings-membership-metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.newhighcode-page .settings-membership-metric-head span:first-child {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 13px;
    line-height: 1.5;
  }

  body.newhighcode-page .settings-membership-metric-value {
    color: var(--nh-on-surface);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  body.newhighcode-page .settings-membership-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body.newhighcode-page .settings-membership-metric-row span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 13px;
  }

  body.newhighcode-page .settings-membership-metric-row strong {
    color: var(--nh-on-surface);
    font-size: 15px;
    font-weight: 700;
  }

  body.newhighcode-page .settings-membership-progress {
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nh-primary) 10%, var(--nh-surface-low));
    overflow: hidden;
  }

  body.newhighcode-page .settings-membership-progress>span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--nh-primary) 76%, #fff), var(--nh-primary));
  }

  body.newhighcode-page .settings-membership-source-list,
  body.newhighcode-page .settings-membership-note-list,
  body.newhighcode-page .settings-membership-link-list {
    margin: 0;
    padding-left: 18px;
  }

  body.newhighcode-page .settings-membership-source-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 10px;
  }

  body.newhighcode-page .settings-membership-source-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--nh-primary) 5%, var(--nh-surface));
    border: 1px solid color-mix(in srgb, var(--nh-outline) 76%, transparent);
  }

  body.newhighcode-page .settings-membership-source-main {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  body.newhighcode-page .settings-membership-source-main strong {
    color: var(--nh-on-surface);
    font-size: 14px;
    line-height: 1.4;
  }

  body.newhighcode-page .settings-membership-source-main span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 12px;
    line-height: 1.55;
  }

  body.newhighcode-page .settings-membership-source-side {
    display: grid;
    justify-items: end;
    gap: 6px;
    flex: 0 0 auto;
  }

  body.newhighcode-page .settings-membership-source-side strong {
    color: var(--nh-on-surface);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
    text-align: right;
  }

  body.newhighcode-page .settings-membership-note-list {
    display: grid;
    gap: 8px;
  }

  body.newhighcode-page .settings-membership-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  body.newhighcode-page .settings-membership-compare-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 86%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 4%, var(--nh-surface));
  }

  body.newhighcode-page .settings-membership-compare-card[data-tone="success"] {
    background: rgba(34, 197, 94, 0.06);
  }

  body.newhighcode-page .settings-membership-compare-card[data-tone="warn"] {
    background: rgba(245, 158, 11, 0.08);
  }

  body.newhighcode-page .settings-membership-compare-card.is-active {
    border-color: color-mix(in srgb, var(--nh-primary) 40%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 22%, transparent);
  }

  body.newhighcode-page .settings-membership-compare-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.newhighcode-page .settings-membership-compare-head strong {
    color: var(--nh-on-surface);
    font-size: 15px;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-compare-flag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nh-primary) 14%, transparent);
    color: var(--nh-primary);
    font-size: 11px;
    font-weight: 700;
  }

  body.newhighcode-page .settings-membership-compare-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
  }

  body.newhighcode-page .settings-membership-compare-list li {
    color: var(--nh-on-surface);
    font-size: 13px;
    line-height: 1.65;
  }

  body.newhighcode-page .settings-membership-plan-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }

  body.newhighcode-page .settings-membership-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  body.newhighcode-page .settings-membership-agreement-card {
    position: relative;
    display: grid;
    gap: 14px;
    min-height: 136px;
    padding: 24px 40px 26px;
    border: 1px solid rgba(118, 132, 160, 0.18);
    border-radius: 10px;
    background:
      radial-gradient(circle at 50% 0%, rgba(226, 174, 87, 0.1), transparent 38%),
      linear-gradient(145deg, #ffffff 0%, #fbfdff 54%, #ffffff 100%);
    box-shadow:
      0 16px 32px rgba(42, 56, 81, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
  }

  body.newhighcode-page .settings-membership-agreement-card h3 {
    margin: 0;
    color: #34445c;
    text-align: center;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 900;
  }

  body.newhighcode-page .settings-membership-shared-benefits {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
    align-items: center;
  }

  body.newhighcode-page .settings-membership-shared-benefits article {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  body.newhighcode-page .settings-membership-shared-benefits article>span {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(226, 174, 87, 0.1);
    color: #e7b95e;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
  }

  body.newhighcode-page .settings-membership-shared-benefits strong {
    display: block;
    color: #162033;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-shared-benefits p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
  }

  body.newhighcode-page .settings-membership-current-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 70%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--nh-primary) 5%, var(--nh-surface));
    color: color-mix(in srgb, var(--nh-on-surface-variant) 88%, transparent);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
  }

  body.newhighcode-page .settings-membership-current-type strong {
    color: var(--nh-on-surface);
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-refresh-btn {
    min-height: 34px;
    border-radius: 4px;
    border-color: color-mix(in srgb, var(--nh-primary) 30%, var(--nh-outline));
    background: color-mix(in srgb, var(--nh-surface) 92%, var(--nh-primary));
    color: var(--nh-primary);
    font-size: 13px;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-refresh-btn:hover {
    background: color-mix(in srgb, var(--nh-primary) 10%, var(--nh-surface));
  }

  body.newhighcode-page .settings-membership-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 456px;
    gap: 0;
    overflow: hidden;
    padding: 34px 28px 20px;
    border-radius: 16px;
    border: 1px solid rgba(219, 226, 238, 0.78);
    background:
      radial-gradient(circle at 92% 4%, rgba(224, 233, 249, 0.58), transparent 34%),
      linear-gradient(145deg, #ffffff 0%, #fbfdff 54%, #ffffff 100%);
    box-shadow:
      0 18px 36px rgba(42, 56, 81, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="success"] {
    border-color: rgba(226, 165, 32, 0.38);
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="purple"] {
    border-color: rgba(167, 135, 255, 0.34);
    background:
      radial-gradient(circle at 88% 10%, rgba(141, 102, 255, 0.14), transparent 30%),
      radial-gradient(circle at 16% 0%, rgba(129, 95, 255, 0.12), transparent 34%),
      linear-gradient(145deg, #ffffff 0%, #fbfaff 56%, #ffffff 100%);
    box-shadow:
      0 18px 42px rgba(95, 70, 180, 0.12),
      0 0 0 1px rgba(155, 123, 255, 0.08) inset,
      0 0 30px rgba(132, 94, 255, 0.1);
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="gold"] {
    border-color: rgba(245, 194, 93, 0.36);
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 207, 116, 0.12), transparent 34%),
      radial-gradient(circle at 100% 10%, rgba(255, 225, 166, 0.22), transparent 30%),
      linear-gradient(155deg, #ffffff 0%, #fffdf9 48%, #ffffff 100%);
    box-shadow:
      0 18px 42px rgba(180, 124, 38, 0.11),
      0 0 0 1px rgba(240, 190, 96, 0.08) inset,
      0 0 30px rgba(240, 178, 72, 0.1);
  }

  body.newhighcode-page .settings-membership-plan-card.is-featured {
    transform: none;
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="purple"].is-featured {
    border-color: rgba(167, 135, 255, 0.46);
    box-shadow:
      0 18px 42px rgba(95, 70, 180, 0.14),
      0 0 0 1px rgba(155, 123, 255, 0.08) inset,
      0 0 32px rgba(132, 94, 255, 0.12);
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="gold"].is-featured {
    border-color: rgba(245, 194, 93, 0.48);
    box-shadow:
      0 18px 42px rgba(180, 124, 38, 0.13),
      0 0 0 1px rgba(240, 190, 96, 0.08) inset,
      0 0 30px rgba(240, 178, 72, 0.12);
  }

  body.newhighcode-page .settings-membership-plan-card.is-active {
    border-color: color-mix(in srgb, var(--nh-primary) 40%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nh-primary) 16%, transparent);
  }

  body.newhighcode-page .settings-membership-plan-card.has-ribbon {
    padding-top: 34px;
  }

  body.newhighcode-page .settings-membership-plan-discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 0 18px;
    border: 0;
    border-radius: 0 14px 0 18px;
    background: linear-gradient(180deg, #fff3ce 0%, #f6dfaa 100%);
    color: #111111;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.62) inset;
  }

  body.newhighcode-page .settings-membership-plan-card.has-discount .settings-membership-plan-price {
    margin-top: 8px;
    margin-right: 10px;
  }

  body.newhighcode-page .settings-membership-plan-top {
    display: grid;
    gap: 8px;
  }

  body.newhighcode-page .settings-membership-plan-title-row {
    min-height: 30px;
    display: flex;
    gap: 8px;
    align-items: start;
  }

  body.newhighcode-page .settings-membership-plan-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-grid;
    place-items: center;
    margin-top: 2px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #3b82f6;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="purple"] .settings-membership-plan-icon {
    background: #eee8ff;
    color: #7a4df3;
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-icon {
    background: #fff1d8;
    color: #e79c2c;
  }

  body.newhighcode-page .settings-membership-plan-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: 4px;
  }

  body.newhighcode-page .settings-membership-plan-price {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    min-width: 0;
    margin-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e7edf5;
    color: #162033;
    text-align: left;
  }

  body.newhighcode-page .settings-membership-plan-price-main {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    white-space: nowrap;
  }

  body.newhighcode-page .settings-membership-plan-price strong {
    color: #3b82f6;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
  }

  body.newhighcode-page .settings-membership-plan-price em {
    color: #162033;
    font-size: 14px;
    line-height: 1.2;
    font-style: normal;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="purple"] .settings-membership-plan-price strong,
  body.newhighcode-page .settings-membership-plan-card[data-tone="purple"] .settings-membership-plan-price em {
    color: #7447f5;
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-price strong,
  body.newhighcode-page .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-price em {
    color: #f0aa3a;
  }

  body.newhighcode-page .settings-membership-plan-price span {
    color: #7f8da3;
    font-size: 12px;
    line-height: 1.15;
    text-decoration: line-through;
  }

  body.newhighcode-page .settings-membership-plan-price-side {
    display: grid;
    gap: 2px;
    align-content: end;
    padding-bottom: 2px;
  }

  body.newhighcode-page .settings-membership-plan-price-saving {
    color: #ff5a96;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 900;
  }

  body.newhighcode-page .settings-membership-plan-price-monthly {
    color: #f0aa3a;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="purple"] .settings-membership-plan-price-monthly {
    color: #7447f5;
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-price-monthly {
    color: #f2c96f;
  }

  body.newhighcode-page .settings-membership-plan-price[data-state="free"] strong {
    color: #3b82f6;
  }

  body.newhighcode-page .settings-membership-plan-price[data-state="loading"] strong,
  body.newhighcode-page .settings-membership-plan-price[data-state="missing"] strong {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 82%, transparent);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-plan-name {
    margin: 0;
    display: flex;
    align-items: center;
    color: #162033;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-name,
  body.newhighcode-page .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-list li {
    color: #162033;
  }

  body.newhighcode-page .settings-membership-plan-focus {
    color: var(--nh-primary);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-plan-meta,
  body.newhighcode-page .settings-membership-plan-note {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-meta,
  body.newhighcode-page .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-note {
    color: #64748b;
  }

  body.newhighcode-page .settings-membership-plan-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    padding-top: 14px;
  }

  body.newhighcode-page .settings-membership-plan-list li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #34445c;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
  }

  body.newhighcode-page .settings-membership-plan-check {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #3b82f6;
    font-size: 10px;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="purple"] .settings-membership-plan-check {
    background: #eee8ff;
    color: #7447f5;
  }

  body.newhighcode-page .settings-membership-plan-check[data-disabled="true"] {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
  }

  body.newhighcode-page .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-check {
    background: #fff1d8;
    color: #f0aa3a;
  }

  body.newhighcode-page .settings-membership-plan-actions {
    display: grid;
    margin-top: auto;
    padding-top: 24px;
  }

  body.newhighcode-page .settings-membership-plan-actions .settings-btn {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 900;
  }

  body.newhighcode-page .settings-membership-plan-actions .settings-btn.current {
    border-color: #cfe2ff;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    color: #3b82f6;
    cursor: default;
  }

  body.newhighcode-page .settings-membership-plan-actions .settings-btn.purple {
    border-color: rgba(113, 110, 255, 0.46);
    background: linear-gradient(135deg, #7c4dff 0%, #3f6cff 100%);
    color: #f8fbff;
    box-shadow:
      0 12px 24px rgba(65, 92, 255, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  body.newhighcode-page .settings-membership-plan-actions .settings-btn.purple:hover {
    background: linear-gradient(135deg, #8a5cff 0%, #4d7aff 100%);
  }

  body.newhighcode-page .settings-membership-plan-actions .settings-btn.gold {
    border-color: rgba(240, 198, 110, 0.42);
    background: linear-gradient(180deg, #f0c66e 0%, #d49b42 100%);
    color: #261806;
    box-shadow:
      0 10px 22px rgba(214, 154, 54, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

  body.newhighcode-page .settings-membership-plan-actions .settings-btn.gold:hover {
    background: linear-gradient(180deg, #ffe09a 0%, #e2aa48 100%);
  }

  body.newhighcode-page .settings-membership-help-card {
    display: grid;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid color-mix(in srgb, var(--nh-outline) 76%, transparent);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--nh-surface) 0%, var(--nh-elevated-soft) 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
  }

  body.newhighcode-page .settings-membership-help-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--nh-outline) 70%, transparent);
  }

  body.newhighcode-page .settings-membership-help-head>div {
    display: grid;
    gap: 4px;
  }

  body.newhighcode-page .settings-membership-help-head span {
    color: color-mix(in srgb, var(--nh-on-surface-variant) 88%, transparent);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
  }

  body.newhighcode-page .settings-membership-help-head strong {
    color: var(--nh-on-surface);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-help-head p {
    margin: 0;
    max-width: 360px;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 88%, transparent);
    font-size: 13px;
    line-height: 1.6;
    text-align: right;
  }

  body.newhighcode-page .settings-membership-help-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  body.newhighcode-page .settings-membership-help-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--nh-primary) 4%, var(--nh-surface));
  }

  body.newhighcode-page .settings-membership-help-number {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nh-primary) 12%, transparent);
    color: var(--nh-primary);
    font-size: 12px;
    font-weight: 800;
  }

  body.newhighcode-page .settings-membership-help-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  body.newhighcode-page .settings-membership-help-copy strong {
    color: var(--nh-on-surface);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
  }

  body.newhighcode-page .settings-membership-help-copy p {
    margin: 0;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 12px;
    line-height: 1.55;
  }

  body.newhighcode-page .settings-membership-help-action,
  body.newhighcode-page .settings-membership-help-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  body.newhighcode-page .settings-membership-help-action {
    border: 1px solid color-mix(in srgb, var(--nh-primary) 24%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 8%, transparent);
    color: var(--nh-primary);
    cursor: pointer;
  }

  body.newhighcode-page .settings-membership-help-action:hover {
    border-color: color-mix(in srgb, var(--nh-primary) 38%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 12%, transparent);
  }

  body.newhighcode-page .settings-membership-help-status {
    background: color-mix(in srgb, var(--nh-on-surface-variant) 8%, transparent);
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
  }

  body.newhighcode-page .settings-membership-current-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }

  body.newhighcode-page .settings-membership-note-list li,
  body.newhighcode-page .settings-membership-link-list li {
    color: var(--nh-on-surface);
    font-size: 13px;
    line-height: 1.7;
  }

  body.newhighcode-page .settings-membership-link-list {
    display: grid;
    gap: 8px;
  }

  body.newhighcode-page .settings-membership-link-btn {
    border: none;
    background: transparent;
    padding: 0;
    color: var(--nh-primary);
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
    cursor: pointer;
  }

  body.newhighcode-page .settings-membership-link-btn:hover {
    color: color-mix(in srgb, var(--nh-primary) 84%, #000);
    text-decoration: underline;
  }

  body.newhighcode-page .settings-billing-empty-state {
    min-height: 160px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    border-radius: 18px;
    border: 1px dashed color-mix(in srgb, var(--nh-outline) 92%, transparent);
    background: color-mix(in srgb, var(--nh-primary) 4%, var(--nh-surface));
    padding: 18px;
  }

  body.newhighcode-page .settings-billing-empty-state strong {
    color: var(--nh-on-surface);
    font-size: 15px;
    font-weight: 700;
  }

  body.newhighcode-page .settings-billing-empty-state p {
    margin: 0;
    max-width: 560px;
    color: color-mix(in srgb, var(--nh-on-surface-variant) 90%, transparent);
    font-size: 13px;
    line-height: 1.7;
  }

  body.newhighcode-page.dark-theme .settings-membership-hero {
    border-color: color-mix(in srgb, var(--nh-primary) 20%, var(--nh-outline));
    background:
      radial-gradient(circle at top right, rgba(123, 167, 255, 0.16), transparent 36%),
      linear-gradient(145deg, color-mix(in srgb, var(--nh-primary) 14%, var(--nh-surface)) 0%, var(--nh-elevated) 52%, var(--nh-elevated-soft) 100%);
  }

  body.newhighcode-page.dark-theme .settings-membership-stat,
  body.newhighcode-page.dark-theme .settings-membership-card {
    border-color: color-mix(in srgb, var(--nh-outline) 96%, transparent);
    background: linear-gradient(180deg, rgba(25, 31, 41, 0.98), rgba(20, 24, 32, 0.98));
    box-shadow: var(--nh-shadow-soft);
  }

  body.newhighcode-page.dark-theme .settings-membership-pill[data-tone="success"],
  body.newhighcode-page.dark-theme .settings-membership-mini-badge[data-tone="success"] {
    background: linear-gradient(135deg, #fde68a 0%, #d69e2e 100%);
    color: #3b2600;
  }

  body.newhighcode-page.dark-theme .settings-membership-pill[data-tone="warn"],
  body.newhighcode-page.dark-theme .settings-membership-mini-badge[data-tone="warn"] {
    background: rgba(245, 158, 11, 0.18);
    color: #ffd48a;
  }

  body.newhighcode-page.dark-theme .settings-membership-pill[data-tone="info"],
  body.newhighcode-page.dark-theme .settings-membership-mini-badge[data-tone="info"] {
    background: rgba(123, 167, 255, 0.18);
    color: #c6dcff;
  }

  body.newhighcode-page.dark-theme .settings-membership-alert {
    border-color: rgba(245, 158, 11, 0.26);
    background: rgba(245, 158, 11, 0.14);
    color: #ffd48a;
  }

  body.newhighcode-page.dark-theme .settings-membership-feature-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(25, 31, 41, 0.98), rgba(20, 24, 32, 0.98));
  }

  body.newhighcode-page.dark-theme .settings-membership-feature-card[data-tone="success"] {
    border-color: rgba(34, 197, 94, 0.22);
  }

  body.newhighcode-page.dark-theme .settings-membership-feature-card[data-tone="warn"] {
    border-color: rgba(245, 158, 11, 0.24);
  }

  body.newhighcode-page.dark-theme .settings-membership-info-row,
  body.newhighcode-page.dark-theme .settings-membership-inline-compare,
  body.newhighcode-page.dark-theme .settings-membership-pay-option,
  body.newhighcode-page.dark-theme .settings-membership-metric-card,
  body.newhighcode-page.dark-theme .settings-membership-diff-plan,
  body.newhighcode-page.dark-theme .settings-membership-diff-row strong,
  body.newhighcode-page.dark-theme .settings-membership-diff-label,
  body.newhighcode-page.dark-theme .settings-membership-status-item {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(123, 167, 255, 0.06);
  }

  body.newhighcode-page.dark-theme .settings-membership-progress {
    background: rgba(123, 167, 255, 0.12);
  }

  body.newhighcode-page.dark-theme .settings-membership-progress>span {
    background: linear-gradient(90deg, #7ba7ff, #9cc2ff);
  }

  body.newhighcode-page.dark-theme .settings-membership-source-row {
    background: rgba(123, 167, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
  }

  body.newhighcode-page.dark-theme .settings-membership-compare-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(123, 167, 255, 0.06);
  }

  body.newhighcode-page.dark-theme .settings-membership-compare-card[data-tone="success"] {
    background: rgba(34, 197, 94, 0.08);
  }

  body.newhighcode-page.dark-theme .settings-membership-compare-card[data-tone="warn"] {
    background: rgba(245, 158, 11, 0.12);
  }

  body.newhighcode-page.dark-theme .settings-membership-compare-card.is-active {
    border-color: rgba(123, 167, 255, 0.32);
    box-shadow: inset 0 0 0 1px rgba(123, 167, 255, 0.18);
  }

  body.newhighcode-page.dark-theme .settings-profile-entitlement-card,
  body.newhighcode-page.dark-theme .settings-profile-entitlement-item,
  body.newhighcode-page.dark-theme .settings-profile-source-pill,
  body.newhighcode-page.dark-theme .settings-membership-plan-card,
  body.newhighcode-page.dark-theme .settings-membership-help-card,
  body.newhighcode-page.dark-theme .settings-membership-agreement-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(123, 167, 255, 0.06);
  }

  body.newhighcode-page.dark-theme .settings-membership-agreement-card {
    border-color: rgba(118, 132, 160, 0.18);
    background:
      radial-gradient(circle at 50% 0%, rgba(85, 111, 154, 0.14), transparent 38%),
      linear-gradient(145deg, #111822 0%, #0c121b 54%, #090f16 100%);
    box-shadow:
      0 16px 32px rgba(5, 8, 14, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body.newhighcode-page.dark-theme .settings-membership-agreement-card h3 {
    color: rgba(226, 234, 247, 0.9);
  }

  body.newhighcode-page.dark-theme .settings-membership-shared-benefits strong {
    color: rgba(236, 242, 255, 0.9);
  }

  body.newhighcode-page.dark-theme .settings-membership-shared-benefits p {
    color: rgba(196, 207, 226, 0.62);
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card {
    border-color: rgba(118, 132, 160, 0.18);
    background:
      radial-gradient(circle at 92% 4%, rgba(66, 87, 126, 0.18), transparent 34%),
      linear-gradient(145deg, #111822 0%, #0c121b 54%, #090f16 100%);
    box-shadow:
      0 18px 36px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body.newhighcode-page.dark-theme .settings-membership-help-head {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  body.newhighcode-page.dark-theme .settings-membership-help-item {
    background: rgba(123, 167, 255, 0.08);
  }

  body.newhighcode-page.dark-theme .settings-membership-help-number,
  body.newhighcode-page.dark-theme .settings-membership-help-action {
    background: rgba(123, 167, 255, 0.16);
    color: #c6dcff;
  }

  body.newhighcode-page.dark-theme .settings-membership-help-action {
    border-color: rgba(123, 167, 255, 0.22);
  }

  body.newhighcode-page.dark-theme .settings-membership-help-action:hover {
    border-color: rgba(123, 167, 255, 0.36);
    background: rgba(123, 167, 255, 0.22);
  }

  body.newhighcode-page.dark-theme .settings-membership-help-status {
    background: rgba(255, 255, 255, 0.08);
    color: #b8c2d8;
  }

  body.newhighcode-page.dark-theme .settings-profile-entitlement-item[data-tone="warn"],
  body.newhighcode-page.dark-theme .settings-profile-source-pill[data-tone="warn"] {
    background: rgba(245, 158, 11, 0.12);
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card.is-featured {
    box-shadow:
      0 18px 36px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="purple"] {
    border-color: rgba(135, 107, 255, 0.7);
    background:
      radial-gradient(circle at 88% 12%, rgba(123, 86, 255, 0.22), transparent 32%),
      radial-gradient(circle at 16% 0%, rgba(119, 98, 255, 0.22), transparent 34%),
      linear-gradient(145deg, #1f1a44 0%, #151631 56%, #0e1421 100%);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.32),
      0 0 0 1px rgba(136, 116, 255, 0.15) inset,
      0 0 30px rgba(111, 83, 255, 0.15);
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="purple"].is-featured {
    border-color: rgba(135, 107, 255, 0.78);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(136, 116, 255, 0.15) inset,
      0 0 32px rgba(111, 83, 255, 0.18);
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="gold"] {
    border-color: rgba(226, 174, 87, 0.56);
    background:
      radial-gradient(circle at 18% 0%, rgba(226, 174, 87, 0.16), transparent 34%),
      radial-gradient(circle at 100% 10%, rgba(255, 231, 181, 0.11), transparent 30%),
      linear-gradient(155deg, #151922 0%, #10151b 48%, #0b0f14 100%);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.32),
      0 0 0 1px rgba(226, 174, 87, 0.12) inset,
      0 0 30px rgba(226, 174, 87, 0.12);
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="gold"].is-featured {
    border-color: rgba(226, 174, 87, 0.66);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.32),
      0 0 0 1px rgba(226, 174, 87, 0.12) inset,
      0 0 30px rgba(226, 174, 87, 0.14);
  }

  body.newhighcode-page.dark-theme .settings-membership-current-type {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(123, 167, 255, 0.08);
    color: #b8c2d8;
  }

  body.newhighcode-page.dark-theme .settings-membership-current-type strong {
    color: #f5f7fb;
  }

  body.newhighcode-page.dark-theme .settings-membership-refresh-btn {
    border-color: rgba(123, 167, 255, 0.32);
    background: rgba(123, 167, 255, 0.08);
    color: #c6dcff;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-price strong {
    color: #f4f7fb;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-price em {
    color: rgba(236, 242, 255, 0.88);
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="purple"] .settings-membership-plan-price strong,
  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="purple"] .settings-membership-plan-price em {
    color: #bcd2ff;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-price strong,
  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-price em {
    color: #f8f3e8;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-price[data-state="free"] strong {
    color: #f5f7fb;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-name {
    color: #f4f7fb;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-meta,
  body.newhighcode-page.dark-theme .settings-membership-plan-note {
    color: rgba(196, 207, 226, 0.72);
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-list li,
  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-list li,
  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-name {
    color: rgba(236, 242, 255, 0.86);
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-price {
    border-bottom-color: rgba(148, 163, 184, 0.1);
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-price span {
    color: rgba(184, 194, 216, 0.72);
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-price span {
    color: rgba(184, 194, 216, 0.72);
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-discount-badge {
    background: #fff1a8;
    color: #111111;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-price-monthly {
    color: #f7d76d;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="purple"] .settings-membership-plan-price-monthly {
    color: #a7b5ff;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-price[data-state="loading"] strong,
  body.newhighcode-page.dark-theme .settings-membership-plan-price[data-state="missing"] strong {
    color: #b8c2d8;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-check {
    background: rgba(121, 136, 162, 0.18);
    color: #d3dbe9;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="purple"] .settings-membership-plan-check {
    background: rgba(142, 156, 255, 0.2);
    color: #c2cbff;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-check[data-disabled="true"] {
    background: rgba(245, 158, 11, 0.18);
    color: #ffd48a;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-check {
    background: rgba(226, 174, 87, 0.18);
    color: #f0c66e;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-icon {
    background: rgba(148, 163, 184, 0.12);
    color: #9fb1d2;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="purple"] .settings-membership-plan-icon {
    background: rgba(145, 123, 255, 0.18);
    color: #a99aff;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-card[data-tone="gold"] .settings-membership-plan-icon {
    background: rgba(226, 174, 87, 0.18);
    color: #f0c66e;
  }

  body.newhighcode-page.dark-theme .settings-membership-plan-actions .settings-btn.current {
    border-color: rgba(123, 139, 169, 0.18);
    background: rgba(6, 11, 18, 0.46);
    color: rgba(218, 226, 240, 0.72);
  }

  body.newhighcode-page.dark-theme .settings-membership-link-btn:hover {
    color: #d5e4ff;
  }

  body.newhighcode-page.dark-theme .settings-billing-detail-row {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  body.newhighcode-page.dark-theme .settings-billing-detail-row code,
  body.newhighcode-page.dark-theme .settings-billing-note-callout {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(123, 167, 255, 0.06);
  }

  body.newhighcode-page.dark-theme .settings-billing-entry {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(123, 167, 255, 0.06);
  }

  body.newhighcode-page.dark-theme .settings-billing-channel-btn {
    border-color: #1677ff;
    background: #1677ff;
    color: #fff;
  }

  body.newhighcode-page.dark-theme .settings-billing-channel-btn:hover {
    background: #0f6fff;
  }

  body.newhighcode-page.dark-theme .settings-billing-empty-state {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(123, 167, 255, 0.06);
  }

  @media (max-width: 1440px) {
    body.newhighcode-page .settings-membership-hero {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .settings-membership-plan-title {
      font-size: 24px;
    }
  }

  @media (max-width: 1180px) {

    body.newhighcode-page .settings-membership-dual-grid,
    body.newhighcode-page .settings-membership-grid,
    body.newhighcode-page .settings-billing-grid,
    body.newhighcode-page .settings-membership-hero-meta,
    body.newhighcode-page .settings-membership-status-strip,
    body.newhighcode-page .settings-profile-source-grid,
    body.newhighcode-page .settings-membership-help-list,
    body.newhighcode-page .settings-membership-plan-board,
    body.newhighcode-page .settings-membership-current-grid {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .settings-membership-compare-grid {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .settings-membership-shared-benefits {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.newhighcode-page .settings-membership-diff-head,
    body.newhighcode-page .settings-membership-diff-row {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .settings-membership-source-row {
      align-items: start;
      flex-direction: column;
    }

    body.newhighcode-page .settings-profile-entitlement-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 960px) {

    body.newhighcode-page .settings-membership-hero,
    body.newhighcode-page .settings-membership-feature-card,
    body.newhighcode-page .settings-membership-card,
    body.newhighcode-page .settings-membership-stat {
      border-radius: 18px;
    }

    body.newhighcode-page .settings-membership-hero {
      padding: 18px;
    }

    body.newhighcode-page .settings-membership-kpi {
      font-size: 24px;
    }

    body.newhighcode-page .settings-membership-feature-card {
      padding: 18px;
    }

    body.newhighcode-page .settings-membership-feature-title {
      font-size: 24px;
    }

    body.newhighcode-page .settings-profile-entitlement-card,
    body.newhighcode-page .settings-membership-help-card,
    body.newhighcode-page .settings-membership-plan-card {
      padding: 18px;
      border-radius: 20px;
    }

    body.newhighcode-page .settings-membership-agreement-card {
      padding: 18px;
    }

    body.newhighcode-page .settings-membership-shared-benefits {
      gap: 16px;
    }

    body.newhighcode-page .settings-membership-help-head {
      align-items: flex-start;
      flex-direction: column;
    }

    body.newhighcode-page .settings-membership-help-head p {
      max-width: none;
      text-align: left;
    }

    body.newhighcode-page .settings-membership-hero-actions {
      flex-direction: column;
    }

    body.newhighcode-page .settings-membership-hero-actions .settings-btn,
    body.newhighcode-page .settings-membership-feature-actions .settings-btn,
    body.newhighcode-page .settings-profile-entitlement-actions .settings-btn {
      width: 100%;
    }
  }

  @media (max-width: 720px) {
    body.newhighcode-page .settings-profile-entitlement-head {
      flex-direction: column;
    }

    body.newhighcode-page .settings-membership-help-item {
      grid-template-columns: 28px minmax(0, 1fr);
      align-items: start;
    }

    body.newhighcode-page .settings-membership-help-action,
    body.newhighcode-page .settings-membership-help-status {
      grid-column: 2;
      justify-self: start;
    }

    body.newhighcode-page .settings-membership-info-row,
    body.newhighcode-page .settings-membership-pay-option-head,
    body.newhighcode-page .settings-billing-detail-row,
    body.newhighcode-page .settings-billing-entry,
    body.newhighcode-page .settings-billing-payment-status,
    body.newhighcode-page .settings-billing-payment-inline-status {
      align-items: flex-start;
      flex-direction: column;
    }

    body.newhighcode-page .settings-membership-info-row strong {
      text-align: left;
    }

    body.newhighcode-page .settings-billing-detail-row strong,
    body.newhighcode-page .settings-billing-detail-row code {
      text-align: left;
    }

    body.newhighcode-page .settings-billing-entry-side {
      justify-items: start;
      text-align: left;
    }

    body.newhighcode-page .settings-billing-payment-actions {
      justify-content: flex-start;
      width: 100%;
    }

    body.newhighcode-page .settings-membership-pay-stack {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .settings-membership-shared-benefits {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .settings-billing-channel-grid {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .settings-billing-payment-card {
      gap: 18px;
      padding: 30px 22px 0;
    }

    body.newhighcode-page .settings-billing-payment-close {
      top: 16px;
      right: 16px;
      width: 38px;
      height: 38px;
      font-size: 24px;
    }

    body.newhighcode-page .settings-billing-payment-main {
      grid-template-columns: 1fr;
    }

    body.newhighcode-page .settings-billing-payment-art {
      display: none;
    }

    body.newhighcode-page .settings-billing-payment-head h3 {
      font-size: 30px;
    }

    body.newhighcode-page .settings-billing-payment-price strong {
      font-size: 56px;
    }

    body.newhighcode-page .settings-billing-payment-price span {
      font-size: 22px;
    }

    body.newhighcode-page .settings-billing-payment-benefits {
      max-width: none;
    }

    body.newhighcode-page .settings-billing-payment-benefits li {
      font-size: 17px;
    }

    body.newhighcode-page .settings-billing-channel-btn {
      height: 58px;
      min-height: 58px;
      font-size: 18px;
    }

    body.newhighcode-page .settings-billing-payment-trust {
      grid-template-columns: 1fr;
      gap: 8px;
    }

    body.newhighcode-page .settings-billing-payment-trust span+span::before {
      display: none;
    }

    body.newhighcode-page .settings-billing-payment-security {
      margin: 0 -22px;
      padding: 0 16px;
      text-align: center;
    }

    body.newhighcode-page .settings-membership-plan-name {
      font-size: 22px;
    }

    body.newhighcode-page .settings-membership-plan-headline {
      grid-template-columns: 1fr;
      min-height: 0;
    }

    body.newhighcode-page .settings-membership-plan-price {
      justify-items: start;
      min-width: 0;
      text-align: left;
    }

    body.newhighcode-page .settings-membership-plan-price-main {
      justify-content: flex-start;
    }

    body.newhighcode-page .settings-membership-plan-card.has-discount .settings-membership-plan-price {
      margin-top: 10px;
      margin-right: 0;
    }

    body.newhighcode-page .settings-membership-plan-discount-badge {
      max-width: calc(100% - 16px);
      min-height: 24px;
      padding: 0 10px;
      font-size: 13px;
      white-space: nowrap;
      text-align: center;
    }

    body.newhighcode-page .settings-membership-plan-price strong {
      font-size: 24px;
    }

    body.newhighcode-page .settings-membership-plan-focus,
    body.newhighcode-page .settings-profile-entitlement-copy strong,
    body.newhighcode-page .settings-profile-entitlement-foot-copy strong,
    body.newhighcode-page .settings-profile-entitlement-item strong {
      font-size: 18px;
    }
  }

  /* Embedded workspaces: remove the host gutters so iframe pages fill the inner canvas. */
  body.newhighcode-page[data-view-mode="weread"] .weread-workspace-panel,
  body.newhighcode-page[data-view-mode="custom"] .custom-workspace-panel,
  body.newhighcode-page[data-view-mode="pdf"] .pdf-workspace-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: var(--nh-bg);
  }

  body.newhighcode-page[data-view-mode="weread"] .reader-import-host,
  body.newhighcode-page[data-view-mode="custom"] .custom-workspace-host,
  body.newhighcode-page[data-view-mode="pdf"] .pdf-workspace-shell,
  body.newhighcode-page[data-view-mode="pdf"] .pdf-workspace-panel .tool-frame-card {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  body.newhighcode-page[data-view-mode="pdf"] .pdf-workspace-shell {
    padding: 0;
    gap: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
  }

  body.newhighcode-page[data-view-mode="pdf"] .pdf-workspace-panel .tool-frame-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    grid-template-rows: minmax(0, 1fr);
  }

  body.newhighcode-page[data-view-mode="pdf"] .pdf-workspace-frame-head {
    display: none !important;
  }

  body.newhighcode-page[data-view-mode="pdf"] .pdf-workspace-panel .tool-workspace-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    display: block;
    background: transparent;
  }
