/* Discover shares the platform theme; this layer changes presentation only. */
html:root body[data-discover-page] {
  --dc-bg: var(--bg0, #0a0e1a);
  --dc-surface: var(--bg1, #0f1422);
  --dc-raised: var(--bg2, #131a2c);
  --dc-hover: var(--bg3, #1a2340);
  --dc-line: var(--brd, #25324b);
  --dc-text: var(--t1, #e8ecf1);
  --dc-muted: var(--t2, #a6b0c1);
  --dc-subtle: var(--t3, #7f8ca2);
  --dc-accent: #7ba8f5;
  --dc-accent-soft: #192a43;
  --dc-warm: #d3ad67;
  --dc-warm-soft: #29251d;
  --dc-warm-line: #5b4c2f;
  --dc-warm-icon: #252118;
  --dc-warm-action: #302819;
  color: var(--dc-text);
  background: var(--dc-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

html.light-mode:root body[data-discover-page] {
  --dc-bg: #f6f7f9;
  --dc-surface: #fff;
  --dc-raised: #f1f3f6;
  --dc-hover: #eef2f7;
  --dc-line: #e1e5eb;
  --dc-text: #18212e;
  --dc-muted: #536173;
  --dc-subtle: #697588;
  --dc-accent: #245eb7;
  --dc-accent-soft: #eaf0fa;
  --dc-warm: #896426;
  --dc-warm-soft: #f6f0e3;
  --dc-warm-line: #ddcfad;
  --dc-warm-icon: #f0e7d4;
  --dc-warm-action: #eee3c9;
}

html:root body[data-discover-page]::before,
html:root body[data-discover-page] .discover-kicker,
html:root body[data-discover-page] .section-number,
html:root body[data-discover-page] .academy-network,
html:root body[data-discover-page] .academy-command-footer,
html:root body[data-discover-page] .reward-orbit-dot,
html:root body[data-discover-page] .academy-command::before,
html:root body[data-discover-page] .academy-hero::before,
html:root body[data-discover-page] .detail-banner::before,
html:root body[data-discover-page] .detail-banner::after,
html:root body[data-discover-page] .reward-quick-card::before,
html:root body[data-discover-page] .reward-quick-card::after { display: none; }

html:root body[data-discover-page] .discover-app,
html:root body[data-discover-page="hub"] .discover-hub {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 20px 34px;
}

html:root body[data-discover-page] .discover-app :is(h1,h2,h3,p,strong,small,a,button,span) {
  overflow-wrap: anywhere;
}

html:root body[data-discover-page] .discover-app :is(a,button,input):focus-visible {
  outline: 2px solid var(--dc-accent);
  outline-offset: 3px;
}

html:root body[data-discover-page] .discover-heading-pro {
  min-height: 0;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
}
html:root body[data-discover-page] .discover-heading-pro > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
html:root body[data-discover-page] .discover-heading h1 {
  flex: 0 0 auto;
  margin: 0;
  color: var(--dc-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.35px;
  overflow-wrap: normal;
  white-space: nowrap;
}
html:root body[data-discover-page] .discover-heading p {
  min-width: 0;
  margin: 0;
  padding-left: 10px;
  overflow: hidden;
  border-left: 1px solid var(--dc-line);
  color: var(--dc-muted);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html:root body[data-discover-page] :is(.discover-help-link,.discover-icon-button,.discover-back,.detail-header-action) {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  color: var(--dc-muted);
  background: var(--dc-surface);
  box-shadow: none;
  font-size: 18px;
}
html:root body[data-discover-page="hub"] .discover-heading-pro .discover-help-link {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 4px solid transparent;
  border-radius: 50%;
  color: var(--dc-accent);
  background: var(--dc-accent-soft);
  background-clip: padding-box;
  font-size: 15px;
}
html:root body[data-discover-page="hub"] .discover-heading-pro .discover-help-link:active {
  color: var(--dc-text);
  background: var(--dc-hover);
}

html:root body[data-discover-page] .discover-search {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  color: var(--dc-subtle);
  background: var(--dc-surface);
  box-shadow: none;
}

html:root body[data-discover-page="hub"] .discover-reward-feature {
  min-height: 82px;
  margin: 0 0 12px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--dc-warm-line);
  border-radius: 12px;
  color: var(--dc-text);
  background: linear-gradient(110deg, var(--dc-surface) 0%, var(--dc-warm-soft) 100%);
  box-shadow: none;
}
html:root body[data-discover-page="hub"] .discover-reward-feature:active {
  background: var(--dc-warm-soft);
}
html:root body[data-discover-page="hub"] .discover-reward-feature .reward-quick-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dc-warm-line);
  border-radius: 11px;
  color: var(--dc-warm);
  background: var(--dc-warm-icon);
}
html:root body[data-discover-page="hub"] .discover-reward-feature .reward-quick-icon .ecxs-feature-icon {
  width: 34px;
  height: 34px;
}
html:root body[data-discover-page="hub"] .discover-reward-feature .quick-copy {
  min-width: 0;
}
html:root body[data-discover-page="hub"] .discover-reward-feature .quick-copy strong {
  display: block;
  color: var(--dc-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}
html:root body[data-discover-page="hub"] .discover-reward-feature .quick-copy small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--dc-muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html:root body[data-discover-page="hub"] .discover-reward-feature .reward-quick-action {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--dc-warm-line);
  border-radius: 8px;
  color: var(--dc-warm);
  background: var(--dc-warm-action);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}
html:root body[data-discover-page="hub"] .discover-reward-feature .reward-quick-action b { font-weight: 650; }
html:root body[data-discover-page="hub"] .discover-reward-feature .reward-quick-action i { font-size: 9px; }
html:root body[data-discover-page] .discover-search:focus-within {
  border-color: var(--dc-accent);
  background: var(--dc-surface);
  box-shadow: none;
}
html:root body[data-discover-page] .discover-search input {
  color: var(--dc-text) !important;
  -webkit-text-fill-color: var(--dc-text);
  background: transparent !important;
  border-color: transparent !important;
  font-size: 13px;
  caret-color: var(--dc-accent);
}
html:root body[data-discover-page] .discover-search input::placeholder {
  color: var(--dc-subtle) !important;
  -webkit-text-fill-color: var(--dc-subtle);
}
html:root body[data-discover-page] .discover-search button {
  width: 36px;
  height: 40px;
  flex: 0 0 36px;
  color: var(--dc-muted);
  background: transparent;
}

html:root body[data-discover-page="hub"] .academy-command {
  min-height: 58px;
  margin: 0 0 12px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--dc-line);
  border-radius: 11px;
  background: var(--dc-surface);
  box-shadow: none;
}
html:root body[data-discover-page="hub"] .academy-command-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--dc-accent);
  border: 1px solid var(--dc-line);
  border-radius: 9px;
  background: var(--dc-raised);
}
html:root body[data-discover-page="hub"] .academy-command-mark .ecxs-feature-icon { width: 29px; height: 29px; }
html:root body[data-discover-page="hub"] .academy-command-copy { min-width: 0; padding: 0; }
html:root body[data-discover-page="hub"] .academy-command .academy-badge {
  display: none;
}
html:root body[data-discover-page] .academy-badge i { color: var(--dc-subtle); }
html:root body[data-discover-page="hub"] .academy-command h2 {
  margin: 0;
  color: var(--dc-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.1px;
}
html:root body[data-discover-page="hub"] .academy-command p {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--dc-muted);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html:root body[data-discover-page="hub"] .academy-command .academy-cta {
  min-height: 32px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
  color: var(--dc-accent);
  background: var(--dc-raised);
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
html:root body[data-discover-page="hub"] .academy-command .academy-cta:active {
  background: var(--dc-hover);
}
html:root body[data-discover-page="hub"] .academy-command .academy-cta i { font-size: 9px; }

html:root body[data-discover-page] .discover-section-title {
  min-height: 0;
  margin: 24px 0 11px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 12px;
}
html:root body[data-discover-page="hub"] .core-section-title { margin-top: 18px; }
html:root body[data-discover-page] .discover-section-title h2 {
  margin: 0;
  color: var(--dc-text);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
}
html:root body[data-discover-page] .section-note {
  color: var(--dc-subtle);
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
}

html:root body[data-discover-page="hub"] .professional-quick-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html:root body[data-discover-page="hub"] .professional-quick-grid .quick-card:nth-child(n) {
  min-width: 0;
  min-height: 110px;
  padding: 13px;
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  grid-template-rows: 36px auto;
  align-items: center;
  gap: 8px;
  text-align: start;
  background: var(--dc-surface);
  box-shadow: none;
  transform: none;
  transition: background-color .15s ease, border-color .15s ease;
}
html:root body[data-discover-page="hub"] .professional-quick-grid .quick-card:nth-child(n):hover,
html:root body[data-discover-page="hub"] .professional-quick-grid .quick-card:nth-child(n):active {
  border-color: var(--dc-line);
  background: var(--dc-hover);
  box-shadow: none;
  transform: none;
}
html:root body[data-discover-page="hub"] .professional-quick-grid .quick-card:nth-child(n) .quick-icon {
  grid-column: 1;
  grid-row: 1;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 0;
  color: var(--dc-accent);
  background: transparent;
  box-shadow: none;
  font-size: 25px;
}
html:root body[data-discover-page] .quick-icon .ecxs-feature-icon { width: 31px; height: 31px; }
html:root body[data-discover-page] .quick-copy { width: 100%; min-width: 0; }
html:root body[data-discover-page="hub"] .professional-quick-grid .quick-copy {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
}
html:root body[data-discover-page] .quick-copy strong {
  color: var(--dc-text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
}
html:root body[data-discover-page] .quick-copy small {
  margin-top: 3px;
  color: var(--dc-muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.45;
  white-space: normal;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
html:root body[data-discover-page] .quick-count {
  position: static;
  grid-column: 3;
  grid-row: 1;
  min-width: 26px;
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--dc-subtle);
  background: var(--dc-raised);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

html:root body[data-discover-page] .guide-list {
  overflow: hidden;
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  background: var(--dc-surface);
  box-shadow: none;
}
html:root body[data-discover-page] .guide-row {
  min-height: 91px;
  padding: 16px;
  grid-template-columns: 32px minmax(0, 1fr) 12px;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--dc-line);
  background: transparent;
}
html:root body[data-discover-page] .guide-row:last-child { border-bottom: 0; }
html:root body[data-discover-page] .guide-row:active { background: var(--dc-hover); }
html:root body[data-discover-page] .guide-row-icon {
  width: 32px;
  height: 36px;
  border: 0;
  border-radius: 0;
  color: var(--dc-muted);
  background: transparent;
  box-shadow: none;
  font-size: 23px;
}
html:root body[data-discover-page] .guide-row-icon .ecxs-feature-icon { width: 28px; height: 28px; }
html:root body[data-discover-page] .guide-row-copy small {
  margin-bottom: 3px;
  color: var(--dc-subtle);
  font-size: 10.5px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0;
}
html:root body[data-discover-page] .guide-row-copy strong { color: var(--dc-text); font-size: 14px; line-height: 1.5; font-weight: 600; }
html:root body[data-discover-page] .guide-row-copy p {
  margin-top: 4px;
  color: var(--dc-muted);
  font-size: 12px;
  line-height: 1.65;
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
}
html:root body[data-discover-page] .guide-row > .fa-chevron-right { color: var(--dc-subtle); font-size: 10px; }
html:root body[data-discover-page] .discover-search-empty {
  min-height: 128px;
  padding: 24px;
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  color: var(--dc-muted);
  background: var(--dc-surface);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

html:root body[data-discover-page] .discover-service-grid {
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--dc-surface);
  box-shadow: none;
}
html:root body[data-discover-page] .discover-service-grid a {
  min-height: 91px;
  padding: 15px 7px;
  gap: 9px;
  border-right: 1px solid var(--dc-line);
  color: var(--dc-muted);
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
}
html:root body[data-discover-page] .discover-service-grid a:last-child { border-right: 0; }
html:root body[data-discover-page] .discover-service-grid a:active { color: var(--dc-text); background: var(--dc-hover); }
html:root body[data-discover-page] .discover-service-grid :is(i,[data-feature-icon]) { color: var(--dc-muted); font-size: 20px; }
html:root body[data-discover-page] .discover-service-grid .ecxs-feature-icon { width: 24px; height: 24px; }

/* Category pages and articles use the same quiet surfaces and readable scale. */
html:root body[data-discover-page="detail"] .detail-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: auto;
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  margin: 0 -20px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  gap: 12px;
  border-bottom: 1px solid var(--dc-line);
  background: var(--dc-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html:root body[data-discover-page="detail"] .detail-header h1 {
  min-width: 0;
  color: var(--dc-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
}
html:root body[data-discover-page="detail"] .detail-intro {
  display: block;
  margin: 0;
  padding: 26px 0 0;
}
html:root body[data-discover-page="detail"] .detail-intro h2 { margin: 0; color: var(--dc-text); font-size: 26px; line-height: 1.3; font-weight: 650; }
html:root body[data-discover-page="detail"] .detail-intro p { margin: 9px 0 0; color: var(--dc-muted); font-size: 14px; line-height: 1.65; }
html:root body[data-discover-page="detail"] .detail-banner {
  min-height: 0;
  margin: 20px 0;
  padding: 17px;
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  background: var(--dc-surface);
  box-shadow: none;
}
html:root body[data-discover-page="detail"] .detail-banner-icon {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  color: var(--dc-accent);
  background: transparent;
  box-shadow: none;
  font-size: 27px;
}
html:root body[data-discover-page="detail"] .detail-banner > div:last-child { width: auto; min-width: 0; }
html:root body[data-discover-page="detail"] .detail-banner h3 { margin: 0 0 6px; color: var(--dc-text); font-size: 15px; font-weight: 600; line-height: 1.5; }
html:root body[data-discover-page="detail"] .detail-banner p { margin: 0; color: var(--dc-muted); font-size: 12.5px; line-height: 1.6; }
html:root body[data-discover-page="detail"] .detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  background: var(--dc-surface);
}
html:root body[data-discover-page="detail"] .detail-card {
  min-height: 112px;
  padding: 18px 16px;
  grid-template-columns: 38px minmax(0, 1fr) 10px;
  align-items: start;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--dc-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html:root body[data-discover-page="detail"] .detail-card:last-child { border-bottom: 0; }
html:root body[data-discover-page="detail"] .detail-card:hover,
html:root body[data-discover-page="detail"] .detail-card:active { transform: none; background: var(--dc-hover); box-shadow: none; }
html:root body[data-discover-page="detail"] .detail-card-icon {
  width: 38px;
  height: 40px;
  border: 0;
  border-radius: 0;
  color: var(--dc-accent);
  background: transparent;
  box-shadow: none;
  font-size: 28px;
}
html:root body[data-discover-page="detail"] .detail-card-icon .ecxs-feature-icon { width: 33px; height: 33px; }
html:root body[data-discover-page="detail"] .detail-card h3 { margin: 0 0 6px; color: var(--dc-text); font-size: 16px; font-weight: 600; line-height: 1.5; }
html:root body[data-discover-page="detail"] .detail-card p { margin: 0; color: var(--dc-muted); font-size: 13px; line-height: 1.65; }
html:root body[data-discover-page="detail"] .detail-card-badge {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--dc-subtle);
  background: transparent;
  font-size: 10.5px;
  line-height: 1.5;
  font-weight: 500;
}
html:root body[data-discover-page="detail"] .detail-card-action { display: block; margin-top: 9px; color: var(--dc-accent); font-size: 12px; line-height: 1.5; }
html:root body[data-discover-page="detail"] .detail-card-chevron { align-self: center; color: var(--dc-subtle); font-size: 10px; }

html:root body[data-discover-page="detail"] .steps-panel {
  margin: 24px 0 0;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--dc-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html:root body[data-discover-page="detail"] .steps-panel h3 { margin: 0 0 13px; color: var(--dc-text); font-size: 16px; line-height: 1.45; font-weight: 600; }
html:root body[data-discover-page="detail"] .steps { display: grid; grid-template-columns: 1fr; gap: 8px; }
html:root body[data-discover-page="detail"] .step {
  min-height: 44px;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  flex-direction: row;
  justify-content: flex-start;
  gap: 11px;
  color: var(--dc-muted);
  background: transparent;
  font-size: 13px;
  line-height: 1.6;
  text-align: start;
}
html:root body[data-discover-page="detail"] .step strong { width: 26px; height: 26px; color: var(--dc-muted); background: var(--dc-raised); box-shadow: none; font-size: 12px; }
html:root body[data-discover-page="detail"] .step + .step::before { display: none; }
html:root body[data-discover-page="detail"] .safety-guide {
  margin: 0;
  padding: 15px;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--dc-line);
  border-radius: 10px;
  color: var(--dc-muted);
  background: var(--dc-surface);
  box-shadow: none;
}
html:root body[data-discover-page="detail"] .safety-guide-icon { width: 28px; height: 32px; border-radius: 0; color: var(--dc-muted); background: transparent; font-size: 23px; }
html:root body[data-discover-page="detail"] .safety-guide li { color: var(--dc-muted); font-size: 13px; line-height: 1.7; }
html:root body[data-discover-page="detail"] .safety-guide li::before { width: 4px; height: 4px; color: var(--dc-subtle); background: var(--dc-subtle); box-shadow: none; }
html:root body[data-discover-page="detail"] .category-action {
  min-height: 46px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--dc-line);
  border-radius: 9px;
  color: var(--dc-accent);
  background: var(--dc-surface);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

html:root body[data-discover-page="detail"] .tutorial-page { margin-top: 0; padding: 0 0 10px; }
html:root body[data-discover-page="detail"] .tutorial-hero {
  min-height: 0;
  margin: 0;
  padding: 25px 0 19px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  border: 0;
  border-bottom: 1px solid var(--dc-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html:root body[data-discover-page="detail"] .tutorial-hero-icon {
  width: 42px;
  height: 46px;
  border: 0;
  border-radius: 0;
  color: var(--dc-accent);
  background: transparent;
  box-shadow: none;
  font-size: 32px;
}
html:root body[data-discover-page="detail"] .tutorial-hero-icon .ecxs-feature-icon { width: 38px; height: 38px; }
html:root body[data-discover-page="detail"] .tutorial-kicker { color: var(--dc-subtle); font-size: 11px; line-height: 1.5; font-weight: 500; letter-spacing: 0; }
html:root body[data-discover-page="detail"] .tutorial-hero h2 { margin: 6px 0 10px; color: var(--dc-text); font-size: 24px; font-weight: 650; line-height: 1.35; letter-spacing: -.35px; }
html:root body[data-discover-page="detail"] .tutorial-hero p { max-width: none; margin: 0; color: var(--dc-muted); font-size: 13.5px; line-height: 1.75; }
html:root body[data-discover-page="detail"] .tutorial-facts { margin: 16px 0 4px; gap: 7px; }
html:root body[data-discover-page="detail"] .tutorial-fact { min-height: 0; padding: 6px 9px; border: 0; border-radius: 5px; color: var(--dc-muted); background: var(--dc-raised); font-size: 11px; font-weight: 500; line-height: 1.5; }
html:root body[data-discover-page="detail"] .tutorial-sections { margin-top: 4px; gap: 0; }
html:root body[data-discover-page="detail"] .tutorial-section { padding: 24px 0; border: 0; border-bottom: 1px solid var(--dc-line); border-radius: 0; background: transparent; box-shadow: none; }
html:root body[data-discover-page="detail"] .tutorial-section:last-child { border-bottom: 0; }
html:root body[data-discover-page="detail"] .tutorial-section-head { margin-bottom: 12px; gap: 9px; align-items: baseline; }
html:root body[data-discover-page="detail"] .tutorial-section-index { width: auto; height: auto; min-width: 22px; border-radius: 0; color: var(--dc-subtle); background: transparent; font-size: 11px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; }
html:root body[data-discover-page="detail"] .tutorial-section h3 { margin: 0; color: var(--dc-text); font-size: 17px; line-height: 1.5; font-weight: 650; }
html:root body[data-discover-page="detail"] .tutorial-section ul { margin: 0; padding: 0; gap: 0; }
html:root body[data-discover-page="detail"] .tutorial-section li { margin: 0 0 10px; padding-left: 14px; color: var(--dc-muted); font-size: 14px; line-height: 1.8; }
html:root body[data-discover-page="detail"] .tutorial-section li:last-child { margin-bottom: 0; }
html:root body[data-discover-page="detail"] .tutorial-section li strong { color: var(--dc-text); font-weight: 600; }
html:root body[data-discover-page="detail"] .tutorial-section li::before { top: .8em; left: 1px; width: 4px; height: 4px; background: var(--dc-subtle); box-shadow: none; }
html:root body[data-discover-page="detail"] .tutorial-notice { margin-top: 10px; padding: 16px; border: 1px solid var(--dc-line); border-radius: 9px; color: var(--dc-warm); background: var(--dc-warm-soft); }
html:root body[data-discover-page="detail"] .tutorial-notice p { margin: 0; color: inherit; font-size: 12.5px; line-height: 1.75; }
html:root body[data-discover-page="detail"] .tutorial-notice i { color: var(--dc-warm); }
html:root body[data-discover-page="detail"] .tutorial-actions { margin-top: 22px; gap: 10px; }
html:root body[data-discover-page="detail"] .tutorial-action {
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #3168bb;
  border-radius: 9px;
  color: #fff;
  background: #3168bb;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}
html:root body[data-discover-page="detail"] .tutorial-action.secondary { color: var(--dc-text); border-color: var(--dc-line); background: var(--dc-surface); }
html:root body[data-discover-page="detail"] .tutorial-action-icon { flex: 0 0 22px; }
html:root body[data-discover-page="detail"] .tutorial-action-label { min-width: 0; }

/* Retain the renderer's visibility contract when a category or topic changes. */
html:root body[data-discover-page] .discover-app [hidden] { display: none !important; }

@media (max-width: 440px) {
  html:root body[data-discover-page] .discover-app,
  html:root body[data-discover-page="hub"] .discover-hub { padding-inline: 14px; }
  /* Match the narrow-screen container inset exactly. A -16px margin against
     14px padding made the sticky detail header two pixels wider per side and
     introduced horizontal page scrolling at 320px. */
  html:root body[data-discover-page="detail"] .detail-header { margin-inline: -14px; padding-inline: 10px; }
  html:root body[data-discover-page="hub"] .discover-heading-pro { padding-top: calc(7px + env(safe-area-inset-top, 0px)) !important; padding-bottom: 7px !important; }
  html:root body[data-discover-page="hub"] .discover-reward-feature { min-height: 78px; padding: 11px 12px; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  html:root body[data-discover-page="hub"] .discover-reward-feature .reward-quick-icon { width: 40px; height: 40px; }
  html:root body[data-discover-page="hub"] .discover-reward-feature .reward-quick-icon .ecxs-feature-icon { width: 31px; height: 31px; }
  html:root body[data-discover-page="hub"] .professional-quick-grid .quick-card:nth-child(n) { min-height: 106px; padding: 12px; }
  html:root body[data-discover-page="hub"] .academy-command { min-height: 56px; padding: 8px 10px; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; }
  html:root body[data-discover-page="hub"] .academy-command-mark { width: 32px; height: 32px; border-radius: 8px; }
  html:root body[data-discover-page="hub"] .academy-command-mark .ecxs-feature-icon { width: 27px; height: 27px; }
  html:root body[data-discover-page] .discover-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:root body[data-discover-page] .discover-service-grid a { min-height: 72px; padding: 13px 11px; flex-direction: row; gap: 10px; text-align: start; font-size: 12px; }
  html:root body[data-discover-page] .discover-service-grid a:nth-child(2n) { border-right: 0; }
  html:root body[data-discover-page] .discover-service-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--dc-line); }
  html:root body[data-discover-page] .discover-service-grid a > span:first-child { flex: 0 0 24px; }
  html:root body[data-discover-page="detail"] .tutorial-hero { grid-template-columns: 35px minmax(0, 1fr); gap: 12px; }
  html:root body[data-discover-page="detail"] .tutorial-hero-icon { width: 35px; height: 40px; }
  html:root body[data-discover-page="detail"] .tutorial-hero-icon .ecxs-feature-icon { width: 33px; height: 33px; }
  html:root body[data-discover-page="detail"] .tutorial-hero h2 { font-size: 22px; }
  html:root body[data-discover-page="detail"] .tutorial-actions { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  html:root body[data-discover-page="hub"] .discover-heading-pro > div { display: block; }
  html:root body[data-discover-page="hub"] .discover-heading h1 { font-size: 20px; }
  html:root body[data-discover-page="hub"] .discover-heading p {
    margin-top: 2px;
    padding-left: 0;
    border-left: 0;
    font-size: 10.5px;
  }
}

@media (max-width: 350px) {
  html:root body[data-discover-page="hub"] .discover-reward-feature { grid-template-columns: 38px minmax(0, 1fr) 30px; gap: 8px; }
  html:root body[data-discover-page="hub"] .discover-reward-feature .reward-quick-icon { width: 38px; height: 38px; }
  html:root body[data-discover-page="hub"] .discover-reward-feature .reward-quick-action { width: 30px; padding: 0; }
  html:root body[data-discover-page="hub"] .discover-reward-feature .reward-quick-action b { display: none; }
  html:root body[data-discover-page="hub"] .academy-command { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 8px; }
  html:root body[data-discover-page="hub"] .academy-command .academy-cta { width: 32px; padding: 0; }
  html:root body[data-discover-page="hub"] .academy-command .academy-cta span { display: none; }
  html:root body[data-discover-page="hub"] .professional-quick-grid { gap: 7px; }
  html:root body[data-discover-page="hub"] .professional-quick-grid .quick-card:nth-child(n) { padding: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html:root body[data-discover-page] .discover-app * { scroll-behavior: auto; transition: none !important; animation: none !important; }
}
