:root {
  color-scheme: dark;
  --bg: #040405;
  --ink: #f8f8f3;
  --muted: rgba(248, 248, 243, 0.68);
  --soft: rgba(248, 248, 243, 0.1);
  --line: rgba(248, 248, 243, 0.16);
  --mint: #ffffff;
  --cyan: #d8d8d8;
  --rose: #b8b8b8;
  --gold: #eeeeee;
  --violet: #cfcfcf;
  --panel: rgba(10, 11, 14, 0.76);
  --panel-solid: #0d0f14;
  --shadow: rgba(0, 0, 0, 0.44);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.09), transparent 22rem),
    radial-gradient(circle at 50% 78%, rgba(255, 255, 255, 0.055), transparent 18rem),
    #000;
  color: var(--ink);
  transition:
    background 260ms ease,
    color 260ms ease;
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f1;
  --ink: #111318;
  --muted: rgba(17, 19, 24, 0.64);
  --soft: rgba(17, 19, 24, 0.08);
  --line: rgba(18, 21, 27, 0.14);
  --mint: #111318;
  --cyan: #5f646b;
  --rose: #b9b7b1;
  --gold: #2b2e34;
  --violet: #6d727a;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-solid: #ffffff;
  --shadow: rgba(32, 36, 42, 0.14);
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.09), transparent 24rem),
    radial-gradient(circle at 50% 78%, rgba(0, 0, 0, 0.045), transparent 18rem),
    linear-gradient(180deg, #ffffff 0%, #f4f2ec 100%);
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

a {
  color: inherit;
}

#flowCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.86;
  filter: blur(0.55px);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body[data-theme="light"] #flowCanvas {
  opacity: 0.58;
  filter: blur(0.7px);
}

body[data-theme="light"] .grain {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.account-entry {
  position: fixed;
  top: 32px;
  right: 86px;
  z-index: 7;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 16px 44px var(--shadow);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.account-entry:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.account-entry svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-presence {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--panel-solid);
  border-radius: 50%;
  background: var(--muted);
}

.account-entry.is-authenticated .account-presence {
  background: var(--ink);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.theme-toggle {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 7;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 16px 44px var(--shadow);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.theme-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon,
body[data-theme="light"] .theme-icon-sun {
  display: none;
}

body[data-theme="light"] .theme-icon-moon {
  display: block;
}

.app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.view {
  display: none;
  min-height: 100vh;
  padding: 32px;
}

.view.is-active {
  display: grid;
}

.home-view {
  position: relative;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 30px;
  isolation: isolate;
}

.home-view::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(78vw, 760px);
  aspect-ratio: 1 / 0.42;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, transparent 0 28%, rgba(255, 255, 255, 0.09) 31%, transparent 47%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08), transparent 64%);
  filter: blur(9px);
  opacity: 0.78;
  transform: translate(-50%, -45%) rotate(-10deg);
  pointer-events: none;
}

.hero-kicker,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-kicker {
  max-width: 760px;
  padding: 8px 16px;
  border: 1px solid rgba(248, 248, 243, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.05);
}

.home-brand-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(100%, 820px);
  min-height: 178px;
  isolation: isolate;
}

.home-brand-intro::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(92vw, 920px);
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.09), transparent 68%);
  filter: blur(26px);
  opacity: 0.72;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.home-brand-logo {
  flex: 0 0 auto;
  width: clamp(78px, 7.5vw, 104px);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24%;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42), 0 0 34px rgba(255, 255, 255, 0.055);
  animation: homeBrandLogoEnter 720ms cubic-bezier(0.2, 0.78, 0.18, 1) both;
  transition: filter 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.home-brand-copy {
  position: relative;
  width: min(100%, 780px);
  min-height: 2.45rem;
  text-align: center;
}

.home-brand-title {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.55rem, 2.35vw, 2.18rem);
  font-style: normal;
  font-weight: 820;
  line-height: 1.16;
  letter-spacing: -0.035em;
  text-align: center;
  white-space: nowrap;
  text-wrap: balance;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.22);
}

.home-brand-typewriter {
  position: relative;
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: homeBrandTypewriter 1.48s steps(18, end) 680ms both;
}

.home-brand-typewriter::after {
  content: "";
  position: absolute;
  top: 0.12em;
  bottom: 0.08em;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
  animation: homeBrandCursorTravel 1.48s steps(18, end) 680ms both;
}

.home-brand-name {
  font-weight: 900;
}

.home-brand-description {
  font-weight: 780;
}

@keyframes homeBrandLogoEnter {
  0% { opacity: 0; transform: translateY(8px) scale(0.88); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes homeBrandTypewriter {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes homeBrandCursorTravel {
  0% { left: 0; opacity: 1; }
  92% { left: calc(100% - 2px); opacity: 1; }
  100% { left: calc(100% - 2px); opacity: 0; }
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 260px));
  gap: 14px;
  width: min(100%, 540px);
}

.choice-button,
.primary-button,
.ghost-button,
.tool-button,
.match-button,
.oauth-button,
.auth-tab,
.auth-mode-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.choice-button {
  min-height: 92px;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  backdrop-filter: blur(18px);
}

.choice-button:hover,
.choice-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.1);
}

.choice-main {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.choice-meta {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-news-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 620px);
}

.home-news-actions.has-test-history .all-news-entry {
  flex: 1 1 0;
}

.personalized-entry {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.075);
}

.account-entry.is-view-hidden {
  display: none;
}

.all-news-entry {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  font-size: 0.9rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.all-news-entry:hover,
.all-news-entry:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.test-view,
.result-view,
.all-news-view {
  width: min(1280px, 100%);
  margin: 0 auto;
  align-content: start;
  gap: 18px;
}

.topbar {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.topbar h2 {
  margin: 2px 0 0;
  font-size: 1.45rem;
  line-height: 1.25;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
}

.icon-button:disabled {
  cursor: wait;
  opacity: 0.56;
}

.icon-button svg,
.tool-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progress-copy,
.news-meta {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--rose));
  transition: width 220ms ease;
}

.question-panel,
.test-submit-bar,
.result-identity,
.result-detail,
.news-section,
.auth-sheet {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(20px);
}

.question-list {
  display: grid;
  gap: 14px;
}

.question-panel {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px 20px;
  min-height: 0;
  padding: 24px;
  scroll-margin-top: 20px;
  transition: border-color 180ms ease, background 180ms ease;
}

.question-panel.is-answered {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 3px 0 0 rgba(248, 248, 243, 0.78),
    0 24px 80px var(--shadow);
}

.question-topic {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(248, 248, 243, 0.92);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.24), transparent 18%),
    radial-gradient(circle at 68% 76%, rgba(0, 0, 0, 0.72), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(12, 12, 14, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset -10px -12px 18px rgba(0, 0, 0, 0.46),
    0 10px 30px rgba(0, 0, 0, 0.24);
  font-size: clamp(0.58rem, 0.54vw, 0.66rem);
  line-height: 1.16;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: anywhere;
}

.question-topic-spacer {
  width: 64px;
  min-height: 1px;
}

.question-topic::before,
.question-topic::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.question-topic::before {
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
}

.question-topic::after {
  left: 13px;
  top: 12px;
  width: 20px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(5px);
  transform: rotate(-24deg);
}

.question-copy {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.question-number {
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.question-panel h3 {
  margin: 0;
  max-width: 900px;
  font-size: 1.3rem;
  font-weight: 650;
  line-height: 1.48;
}

.option-list {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.scale-option {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 72px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.scale-option:hover,
.scale-option.is-selected {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
}

.scale-option.is-selected {
  color: #181a1e;
  border-color: #e4e4df;
  background: #e4e4df;
  box-shadow:
    0 0 0 2px rgba(248, 248, 243, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.scale-option.is-selected::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #ecece7;
  background: #292c31;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.scale-option.is-selected strong {
  transform: scale(1.08);
}

.scale-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.scale-option span {
  display: block;
  min-width: 0;
  font-size: 0.76rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.test-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
}

.test-completion {
  display: grid;
  gap: 6px;
}

.test-completion strong {
  font-size: 1.05rem;
}

.test-completion span {
  color: var(--muted);
  font-size: 0.86rem;
}

.submit-test-button {
  min-width: 250px;
  min-height: 52px;
}

.submit-test-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  filter: grayscale(1);
}
.primary-button,
.ghost-button,
.match-button,
.tool-button,
.oauth-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
}

.primary-button,
.match-button {
  border-color: rgba(255, 255, 255, 0.58);
  color: #050505;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
  font-weight: 800;
}

.ghost-button:disabled,
.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.ghost-button:hover,
.tool-button:hover,
.oauth-button:hover,
.auth-tab:hover,
.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.result-view {
  padding-bottom: 70px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.result-identity,
.result-detail {
  padding: 28px;
}

.result-identity {
  overflow: hidden;
}

.persona-visual {
  position: relative;
  display: block;
  width: 100%;
  max-width: 560px;
  aspect-ratio: auto;
  padding: 0;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: inherit;
  font: inherit;
  text-align: inherit;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    0 0 42px var(--persona-glow, rgba(255, 255, 255, 0.12));
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  appearance: none;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.persona-visual:hover,
.persona-visual:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.4),
    0 0 52px var(--persona-glow, rgba(255, 255, 255, 0.16));
}

.persona-visual:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 4px;
}

.persona-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%),
    radial-gradient(circle at 72% 22%, var(--persona-glow, rgba(255, 255, 255, 0.12)), transparent 32%);
  mix-blend-mode: screen;
  opacity: 0.58;
  pointer-events: none;
}

.persona-visual::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.persona-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.persona-save-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(5, 6, 8, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.72;
  transform: translateY(2px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.persona-save-hint svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.persona-visual:hover .persona-save-hint,
.persona-visual:focus-visible .persona-save-hint {
  opacity: 1;
  transform: translateY(0);
  background: rgba(5, 6, 8, 0.84);
}

.result-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.result-code {
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.result-type-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.persona-official-name {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.result-identity #personaName {
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 1.22rem;
  font-weight: 650;
  line-height: 1.4;
}

.result-detail h3 {
  margin: 14px 0 10px;
  font-size: 1.5rem;
}

.persona-summary,
.result-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.probability-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.04);
}

.probability-panel h3 {
  margin-top: 0;
}

.probability-meter {
  display: grid;
  gap: 10px;
}

.probability-meter span {
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.probability-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.probability-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.42));
  transition: width 260ms ease;
}

.axis-badges,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.axis-badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(248, 248, 243, 0.82);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.86rem;
  line-height: 1.3;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 14px;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.match-button {
  width: 100%;
  min-height: 56px;
}

.profile-view {
  width: min(1180px, calc(100% - 112px));
  margin: 0 auto;
  align-content: start;
  gap: 20px;
  padding-bottom: 70px;
}

.profile-topbar {
  padding-right: 0;
}

.all-news-view .topbar {
  padding-right: 0;
}

.profile-logout {
  width: auto;
  min-height: 44px;
  padding: 0 18px;
}

.profile-topbar-actions {
  justify-self: end;
}

.profile-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.profile-sidebar,
.profile-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(20px);
}

.profile-sidebar {
  position: sticky;
  top: 32px;
  padding: 18px;
}

.profile-user-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 4px 4px 20px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--panel-solid);
  background: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
}

.profile-user-summary div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.profile-user-summary > div > strong,
.profile-user-summary > div > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-user-summary > div > span {
  color: var(--muted);
  font-size: 0.76rem;
}

.profile-nav {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.profile-nav-button {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.profile-nav-button span {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.profile-nav-button strong {
  color: inherit;
  font-size: 0.9rem;
}

.profile-nav-button:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.profile-nav-button.is-active {
  color: #090a0c;
  border-color: #ffffff;
  background: #f5f5f2;
}

.profile-content {
  min-height: 640px;
  padding: 30px;
}

.profile-content.is-info-view {
  min-height: 0;
}

.profile-section {
  display: none;
}

.profile-section.is-active {
  display: grid;
  gap: 24px;
}

.profile-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.profile-section-heading h3,
.profile-section-heading p {
  margin: 0;
}

.profile-section-heading h3 {
  margin-top: 4px;
  font-size: 1.55rem;
}

.profile-status,
.profile-count,
.subscription-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-info-item {
  display: grid;
  gap: 12px;
  min-height: 100px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-info-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-info-item strong {
  align-self: end;
  overflow-wrap: anywhere;
  font-size: 0.96rem;
}

.profile-registration-item {
  grid-column: 1 / -1;
  min-height: 82px;
}

.profile-contact-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-contact-fields > :nth-child(3) {
  grid-column: 1 / -1;
}

.profile-phone-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.profile-phone-code-row .ghost-button {
  min-width: 112px;
  min-height: 46px;
  padding-inline: 12px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .profile-phone-code-row {
    grid-template-columns: 1fr;
  }

  .profile-phone-code-row .ghost-button {
    width: 100%;
  }
}

.profile-contact-field {
  display: grid;
  gap: 9px;
}

.profile-contact-field span {
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-contact-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.profile-contact-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.profile-contact-field input:focus {
  border-color: color-mix(in srgb, var(--ink) 40%, var(--line));
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}

.profile-phone-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.profile-phone-value:hover,
.profile-phone-value:focus-visible {
  border-color: color-mix(in srgb, var(--ink) 40%, var(--line));
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.profile-phone-value strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-phone-value em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  white-space: nowrap;
}

.profile-phone-value i {
  font-style: normal;
  transition: transform 180ms ease;
}

.profile-phone-value:hover i,
.profile-phone-value:focus-visible i {
  transform: translateX(3px);
}

.profile-contact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-contact-footer p,
.profile-contact-feedback,
.profile-user-uid {
  margin: 0;
}

.profile-contact-footer p,
.profile-user-uid {
  color: var(--muted);
  font-size: 0.72rem;
}

.profile-contact-submit {
  min-width: 104px;
}

.profile-contact-feedback {
  min-height: 1.1em;
  color: #d9978b;
  font-size: 0.75rem;
}

.profile-contact-feedback:empty {
  display: none;
}

.profile-user-uid {
  grid-column: 1 / -1;
  padding: 2px 2px 0;
  letter-spacing: 0.08em;
}

.subscription-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.035);
}

.subscription-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.subscription-card h4,
.subscription-card p {
  margin: 0;
}

.subscription-card h4 {
  margin-top: 5px;
  font-size: 1.25rem;
}

.subscription-card p,
.subscription-card small {
  color: var(--muted);
  line-height: 1.75;
}

.subscription-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subscription-profile {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.subscription-profile strong {
  font-size: 2.1rem;
  letter-spacing: 0.08em;
}

.subscription-profile span {
  color: var(--muted);
}

.aibti-test-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.aibti-test-actions h4,
.aibti-test-actions p {
  margin: 0;
}

.aibti-test-actions h4 {
  margin-top: 6px;
  font-size: 1.18rem;
}

.aibti-test-actions p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.aibti-mode-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.aibti-mode-button {
  --mode-hover-tilt: -0.35deg;
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.aibti-mode-button:nth-child(2) {
  --mode-hover-tilt: 0.35deg;
}

.aibti-mode-button.is-untested {
  border-color: rgba(255, 255, 255, 0.72);
  color: #181a1e;
  background: #e4e4df;
}

.aibti-mode-button:hover,
.aibti-mode-button:focus-visible {
  z-index: 1;
  transform: translateY(-2px) scale(1.018) rotate(var(--mode-hover-tilt));
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.aibti-mode-button strong,
.aibti-mode-button span {
  display: block;
}

.aibti-mode-button span {
  margin-top: 5px;
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.72;
}

.assessment-history {
  display: grid;
  gap: 10px;
}

.assessment-archive-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.assessment-archive-card:hover,
.assessment-archive-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.065);
}

.assessment-archive-card.is-latest {
  border-color: rgba(255, 255, 255, 0.36);
}

.assessment-code-block {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.assessment-code-block span,
.assessment-code-block small,
.assessment-archive-body > div > span,
.assessment-archive-body time {
  color: var(--muted);
  font-size: 0.72rem;
}

.assessment-code-block strong {
  font-size: 1.65rem;
  letter-spacing: 0.08em;
}

.assessment-archive-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.assessment-archive-body > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.assessment-archive-body h4,
.assessment-archive-body p {
  margin: 0;
}

.assessment-archive-body p {
  color: var(--muted);
  line-height: 1.7;
}

.assessment-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.assessment-card-footer strong {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 650;
}

.profile-empty-state {
  display: grid;
  justify-items: start;
  align-content: center;
  min-height: 410px;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.profile-empty-state.compact {
  min-height: 330px;
}

.profile-empty-state > span {
  color: var(--muted);
  font-size: 3rem;
  font-weight: 200;
}

.profile-empty-state h4 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
}

.profile-empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.profile-empty-state .ghost-button {
  width: auto;
  margin-top: 22px;
}

.news-section {
  display: grid;
  gap: 18px;
  margin-top: 10px;
  padding: 28px;
}

.all-news-view {
  width: min(1600px, calc(100% - 64px));
  padding-bottom: 70px;
}

.all-news-view .topbar {
  align-items: start;
}

.all-news-section {
  margin-top: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.all-news-heading {
  justify-content: space-between;
}

.knowledge-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  scrollbar-width: none;
}

.knowledge-nav::-webkit-scrollbar {
  display: none;
}

.knowledge-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 128px;
  padding: 15px 16px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.knowledge-tab::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: currentColor;
  opacity: 0.12;
  transform: scaleX(0.22);
  transform-origin: left center;
  transition: transform 240ms ease, opacity 240ms ease;
}

.knowledge-tab:hover {
  z-index: 1;
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.knowledge-tab:hover::after,
.knowledge-tab.is-active::after {
  opacity: 0.52;
  transform: scaleX(1);
}

.knowledge-tab.is-active {
  color: #181a1e;
  border-color: #e4e4df;
  background: #e4e4df;
}

.knowledge-index {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.knowledge-tab.is-active .knowledge-index,
.knowledge-tab.is-active .knowledge-count {
  color: rgba(24, 26, 30, 0.62);
}

.knowledge-count-description .knowledge-count-value {
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.knowledge-tab strong {
  width: 100%;
  min-width: 0;
  color: inherit;
  font-size: 1.04rem;
  font-weight: 760;
  line-height: 1.25;
}

.knowledge-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  margin-top: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.knowledge-count-value {
  color: inherit;
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.knowledge-count-unit {
  color: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.knowledge-count.is-pending {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.knowledge-count.is-pending .knowledge-count-value {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.knowledge-count.is-pending .knowledge-count-unit {
  opacity: 0.76;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.all-news-profile-button {
  position: relative;
}

.all-news-profile-button .account-presence {
  background: var(--ink);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.theme-toggle.is-inline {
  position: static;
  z-index: auto;
  flex: 0 0 auto;
  box-shadow: none;
  backdrop-filter: none;
}

.user-chip {
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading h2 {
  margin: 2px 0 0;
  font-size: 1.5rem;
}

.news-status {
  min-height: 44px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.news-status[hidden] {
  display: none !important;
}

.news-status:has(.news-mode-toggle) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
}

.news-status-copy {
  min-width: 0;
  line-height: 1.55;
}

.news-mode-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 10px 6px 12px;
  border: 1px solid rgba(117, 151, 255, 0.42);
  border-radius: 999px;
  color: #dce6ff;
  background:
    linear-gradient(135deg, rgba(90, 121, 226, 0.27), rgba(72, 188, 172, 0.13)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 7px 22px rgba(40, 76, 186, 0.13);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.news-mode-toggle i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #f5f8ff;
  background: rgba(255, 255, 255, 0.11);
  font-style: normal;
  transition: transform 220ms ease, background 180ms ease;
}

.news-mode-toggle:hover,
.news-mode-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(133, 168, 255, 0.76);
  background:
    linear-gradient(135deg, rgba(100, 134, 244, 0.36), rgba(76, 205, 184, 0.2)),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 28px rgba(48, 85, 202, 0.22);
}

.news-mode-toggle:hover i,
.news-mode-toggle:focus-visible i {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.18);
}

.news-mode-toggle:active {
  transform: translateY(0) scale(0.98);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.knowledge-content {
  min-height: 220px;
}

.module-entry {
  animation: moduleRise 520ms cubic-bezier(0.22, 0.72, 0.2, 1) both;
  animation-delay: var(--entry-delay, 0ms);
}

.report-list {
  display: grid;
  gap: 14px;
}

.report-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.report-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.report-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f7f7f3;
  background-color: #101114;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  transform-origin: center;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.report-item:hover .report-cover {
  transform: rotate(-1deg) scale(1.015);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
}

.report-cover::before,
.report-cover::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.report-cover::before {
  inset: 0;
  opacity: 0.38;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.16) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(255, 255, 255, 0.12) 50%, transparent 51%);
  background-size: 46px 46px;
}

.report-cover::after {
  right: -44px;
  bottom: -58px;
  width: 170px;
  height: 170px;
  border: 18px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.report-cover-1 {
  background:
    linear-gradient(145deg, transparent 0 52%, rgba(255, 255, 255, 0.14) 52% 64%, transparent 64%),
    #17181b;
}

.report-cover-2 {
  color: #121316;
  border-color: rgba(0, 0, 0, 0.2);
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.08) 0 22%, transparent 22% 72%, rgba(0, 0, 0, 0.12) 72%),
    #edede8;
}

.report-cover-2::before,
.report-cover-2::after {
  filter: invert(1);
}

.report-cover-3 {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.18) 0 9%, transparent 10%),
    radial-gradient(circle at 72% 28%, transparent 0 18%, rgba(255, 255, 255, 0.1) 19% 20%, transparent 21%),
    #090a0c;
}

.report-cover span,
.report-cover small,
.report-cover em,
.report-cover strong {
  position: relative;
  z-index: 1;
}

.report-cover span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
}

.report-cover strong {
  margin: auto 0 16px;
  font-size: 1.2rem;
  line-height: 1.42;
}

.report-cover small {
  opacity: 0.68;
  line-height: 1.45;
}

.report-cover em {
  margin-top: 12px;
  font-size: 0.7rem;
  font-style: normal;
  opacity: 0.56;
}

.report-body {
  min-width: 0;
}

.report-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 4px 4px 4px 0;
}

.report-body h3 {
  margin: 0;
  line-height: 1.42;
}

.report-body h3 {
  font-size: 1.35rem;
}

.content-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.76rem;
}

.content-block,
.ai-reading {
  display: grid;
  gap: 7px;
}

.content-block > span,
.ai-reading > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.content-block p,
.ai-reading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.72;
}

.ai-reading {
  padding: 13px 15px;
  border-left: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.045);
}

.ai-reading p {
  color: var(--ink);
}

.read-source {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.82rem;
}


.module-empty-list {
  display: block;
}

.module-empty {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  min-height: 250px;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.module-empty > span {
  color: var(--muted);
  font-size: 3.2rem;
  font-weight: 800;
}

.module-empty h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.module-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.news-item {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  height: 270px;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
}

.news-item:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.09);
}

.news-item.is-new {
  animation: newsFloatIn 560ms ease both;
  border-color: rgba(255, 255, 255, 0.4);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.065);
}

.news-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.news-item h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-item p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.news-item p:last-child {
  align-self: end;
  -webkit-line-clamp: 1;
}

.news-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: start;
  color: rgba(248, 248, 243, 0.68);
  font-size: 0.82rem;
}

.news-info span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

@keyframes newsFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes moduleRise {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px) scale(0.992);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.auth-view {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(14px);
}

.auth-view.is-active {
  display: grid;
}

.auth-sheet {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  padding: 30px;
  overflow-y: auto;
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.auth-sheet h2 {
  width: calc(100% - 56px);
  margin: 4px 0 20px;
  font-size: 1.55rem;
  line-height: 1.35;
}

.oauth-row,
.auth-tabs,
.auth-mode-switch {
  display: grid;
  gap: 10px;
}

.oauth-button {
  width: 100%;
}

.auth-tabs {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  margin: 18px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.auth-tab {
  min-height: 38px;
  border-radius: 6px;
}

.auth-tab[hidden] {
  display: none;
}

.auth-tab.is-active {
  color: #050505;
  background: var(--mint);
}

.auth-mode-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.auth-mode-button {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
}

.auth-mode-button.is-active {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.credential-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.credential-button {
  min-height: 36px;
  border-radius: 6px;
  color: var(--muted);
}

.credential-button.is-active {
  color: #050505;
  background: var(--mint);
}

.auth-channel-status {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.verification-send {
  min-width: 116px;
  padding-inline: 14px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.consent-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.consent-field input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.notice-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.86rem;
  line-height: 1.5;
}

.notice-consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.notice-consent small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.notice-link {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-submit {
  width: 100%;
  margin-top: 14px;
}

.user-notice-view {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
}

.user-notice-view.is-active {
  display: grid;
}

.user-notice-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, 100%);
  height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--panel-solid);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.52);
}

.user-notice-header,
.user-notice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
}

.user-notice-header {
  border-bottom: 1px solid var(--line);
}

.user-notice-header h2,
.user-notice-header p,
.user-notice-footer p {
  margin: 0;
}

.user-notice-header h2 {
  margin-top: 3px;
  font-size: 1.35rem;
}

.notice-version {
  margin-top: 5px !important;
  color: var(--muted);
  font-size: 0.76rem;
}

.user-notice-content {
  overflow-y: auto;
  padding: 24px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.user-notice-content h3 {
  margin: 26px 0 9px;
  font-size: 1rem;
  line-height: 1.5;
}

.user-notice-content h3:first-of-type {
  margin-top: 20px;
}

.user-notice-content p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.user-notice-content strong {
  color: var(--ink);
}

.notice-lead {
  padding: 14px 16px;
  border-left: 3px solid var(--ink);
  border-radius: 0 6px 6px 0;
  color: var(--ink) !important;
  background: var(--soft);
}

.user-notice-end {
  display: grid;
  place-items: center;
  min-height: 76px;
  margin-top: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.user-notice-footer {
  border-top: 1px solid var(--line);
  background: var(--panel-solid);
}

.user-notice-footer p {
  color: var(--muted);
  font-size: 0.82rem;
}

.user-notice-footer .primary-button {
  min-width: 170px;
}

.auth-feedback {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.wechat-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 8px 0 0;
  text-align: center;
}

/* News detail: text-only AI HOT reading modal */
html.hot-article-returning #homeView { display: none !important; }

.news-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 225;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.news-detail-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.news-detail-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(16px);
}

.news-detail-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(880px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(149, 156, 170, 0.13), transparent 30%),
    var(--panel-solid);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.62);
  transform: translateY(14px) scale(0.985);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}

.news-detail-modal.is-open .news-detail-dialog { transform: none; }

.news-detail-dialog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 28px 30px 24px;
  border-bottom: 1px solid var(--line);
}

.news-detail-dialog-header .eyebrow { margin: 0 0 10px; }
.news-detail-dialog-header h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin: 18px 0 0;
}
.news-detail-meta > div { display: flex; align-items: baseline; gap: 8px; }
.news-detail-meta dt { color: var(--muted); font-size: 0.7rem; }
.news-detail-meta dd { margin: 0; font-size: 0.78rem; }

.news-detail-modal-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 28px 30px 34px;
  scrollbar-gutter: stable;
}
.news-detail-modal-body p {
  max-width: 72ch;
  margin: 0;
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  font-size: 1rem;
  line-height: 1.95;
  white-space: pre-line;
}
.news-detail-modal-body p + p { margin-top: 1.2em; }

.news-detail-section-label {
  margin: 0 0 10px !important;
  color: var(--muted) !important;
  font-size: 0.66rem !important;
  font-weight: 760;
  line-height: 1.2 !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.news-detail-lead {
  display: -webkit-box;
  max-width: 68ch !important;
  overflow: hidden;
  color: var(--ink) !important;
  font-size: 1.04rem !important;
  line-height: 1.9 !important;
  white-space: normal !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-detail-extension {
  max-width: 100%;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-solid) 82%, var(--ink) 3%);
}

.news-detail-extension > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.news-detail-extension h3 { margin: 0; font-size: 1.06rem; line-height: 1.35; }
.news-detail-extension > header > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.7rem;
}

.news-detail-extension-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding-top: 20px;
}
.news-detail-extension-layout.has-image { grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.35fr); }
.news-detail-extension figure { margin: 0; overflow: hidden; border-radius: 9px; background: #111318; }
.news-detail-extension img { display: block; width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.news-detail-extension-copy p { font-size: 0.9rem; line-height: 1.82; }
.news-detail-original-title { color: var(--ink) !important; font-weight: 720; line-height: 1.5 !important; }
.news-detail-source-note {
  margin-top: 18px !important;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
  color: var(--muted) !important;
  font-size: 0.72rem !important;
  line-height: 1.65 !important;
}

.news-detail-dialog-footer {
  display: flex;
  justify-content: flex-start;
  padding: 18px 30px 22px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 90%, transparent);
}
.news-detail-dialog-footer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 720;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}
.news-detail-dialog-footer a:hover,
.news-detail-dialog-footer a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}
body[data-theme="light"] .news-detail-modal-backdrop { background: rgba(225, 224, 220, 0.78); }
body[data-theme="light"] .news-detail-dialog { box-shadow: 0 34px 92px rgba(42, 43, 46, 0.28); }
body[data-theme="light"] .news-detail-dialog-footer a { border-color: rgba(18, 20, 24, 0.25); }
body[data-theme="light"] .news-detail-dialog-footer a:hover,
body[data-theme="light"] .news-detail-dialog-footer a:focus-visible { border-color: rgba(18, 20, 24, 0.5); background: rgba(0, 0, 0, 0.045); }

@media (max-width: 680px) {
  .news-detail-modal { align-items: end; padding: 0; }
  .news-detail-dialog { width: 100%; max-height: 90vh; border-radius: 16px 16px 0 0; }
  .news-detail-dialog-header { gap: 15px; padding: 23px 20px 19px; }
  .news-detail-dialog-header h2 { font-size: 1.28rem; }
  .news-detail-meta { display: grid; gap: 7px; margin-top: 14px; }
  .news-detail-modal-body { padding: 23px 20px 28px; }
  .news-detail-modal-body p { font-size: 0.94rem; line-height: 1.85; }
  .news-detail-extension { margin-top: 22px; padding: 18px; }
  .news-detail-extension-layout.has-image { grid-template-columns: 1fr; }
  .news-detail-dialog-footer { padding: 15px 20px calc(17px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .news-detail-modal, .news-detail-dialog, .news-detail-dialog-footer a { transition: none !important; }
}

.wechat-qr-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(320px, 100%);
}

.wechat-refresh-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 14, 18, 0.9);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.38), 0 0 0 9px rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.wechat-refresh-icon:hover,
.wechat-refresh-icon:focus-visible {
  background: #191c22;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.44), 0 0 0 13px rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) rotate(-18deg) scale(1.04);
}

.wechat-refresh-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wechat-panel.is-expired .wechat-frame {
  filter: grayscale(1) brightness(0.58);
  pointer-events: none;
}

.wechat-panel.is-expired .wechat-qr-image {
  filter: grayscale(1) brightness(0.58);
}

.wechat-panel h3,
.wechat-panel p {
  margin: 0;
}

.wechat-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.wechat-qr {
  display: grid;
  place-items: center;
  width: 168px;
  aspect-ratio: 1;
  border: 12px solid #fff;
  color: #050505;
  background:
    repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 / 22px 22px;
  box-shadow: 0 0 0 1px var(--line);
}

.wechat-qr span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 8px solid #fff;
  background: #fff;
  font-weight: 800;
}

.wechat-frame {
  width: 100%;
  height: 400px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.wechat-qr-image {
  display: block;
  width: min(286px, 78vw);
  height: auto;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  user-select: none;
  -webkit-touch-callout: default;
}

.wechat-mobile-actions {
  display: grid;
  width: min(320px, 100%);
  gap: 9px;
}

.wechat-mobile-actions p {
  font-size: 0.74rem;
}

.wechat-mobile-actions .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  text-decoration: none;
}

.is-hidden {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  max-width: min(440px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(14, 16, 22, 0.92);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
}

body[data-theme="light"] .home-view::before {
  background:
    radial-gradient(ellipse at center, transparent 0 28%, rgba(0, 0, 0, 0.1) 31%, transparent 48%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.06), transparent 66%);
  opacity: 0.52;
}

body[data-theme="light"] .hero-kicker {
  border-color: rgba(18, 21, 27, 0.14);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 44px rgba(32, 36, 42, 0.08);
}

body[data-theme="light"] .home-brand-intro::before {
  background: radial-gradient(ellipse at center, rgba(17, 19, 24, 0.085), transparent 68%);
  opacity: 0.54;
}

body[data-theme="light"] .home-brand-logo {
  border-color: rgba(17, 19, 24, 0.13);
  filter: invert(1) contrast(0.96);
  box-shadow: 0 28px 72px rgba(32, 36, 42, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.64) inset;
}

body[data-theme="light"] .home-brand-title {
  text-shadow: 0 12px 38px rgba(32, 36, 42, 0.12);
}

body[data-theme="light"] .choice-button,
body[data-theme="light"] .all-news-entry,
body[data-theme="light"] .ghost-button,
body[data-theme="light"] .tool-button,
body[data-theme="light"] .oauth-button,
body[data-theme="light"] .auth-tab,
body[data-theme="light"] .auth-mode-button,
body[data-theme="light"] .icon-button,
body[data-theme="light"] .account-entry,
body[data-theme="light"] .theme-toggle {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
}
body[data-theme="light"] .choice-button:hover,
body[data-theme="light"] .choice-button:focus-visible,
body[data-theme="light"] .all-news-entry:hover,
body[data-theme="light"] .all-news-entry:focus-visible,
body[data-theme="light"] .ghost-button:hover,
body[data-theme="light"] .tool-button:hover,
body[data-theme="light"] .oauth-button:hover,
body[data-theme="light"] .auth-tab:hover,
body[data-theme="light"] .auth-mode-button:hover,
body[data-theme="light"] .icon-button:hover,
body[data-theme="light"] .account-entry:hover,
body[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(18, 21, 27, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

body[data-theme="light"] .primary-button,
body[data-theme="light"] .match-button {
  border-color: rgba(17, 19, 24, 0.72);
  color: #ffffff;
  background: linear-gradient(90deg, #111318, #4c5058);
}

body[data-theme="light"] .progress-track {
  background: rgba(17, 19, 24, 0.08);
}

body[data-theme="light"] .progress-bar {
  background: linear-gradient(90deg, #111318, #73777e, #d7d4cd);
}

body[data-theme="light"] .question-topic {
  border-color: rgba(17, 19, 24, 0.24);
  color: rgba(17, 19, 24, 0.88);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.84), transparent 18%),
    radial-gradient(circle at 68% 76%, rgba(120, 124, 130, 0.24), transparent 42%),
    conic-gradient(
      from 132deg,
      rgba(255, 255, 255, 0.7),
      rgba(82, 86, 94, 0.32),
      rgba(255, 255, 255, 0.88),
      rgba(150, 150, 150, 0.28),
      rgba(255, 255, 255, 0.72)
    ),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(216, 216, 213, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 14px 18px 28px rgba(255, 255, 255, 0.24),
    inset -18px -22px 32px rgba(80, 84, 90, 0.2),
    0 0 0 1px rgba(17, 19, 24, 0.04),
    0 18px 46px rgba(32, 36, 42, 0.13);
}

body[data-theme="light"] .question-topic::before {
  border-color: rgba(17, 19, 24, 0.08);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.62), transparent 36%),
    radial-gradient(circle at 48% 58%, transparent 45%, rgba(0, 0, 0, 0.08) 72%);
}

body[data-theme="light"] .question-topic::after {
  background: rgba(255, 255, 255, 0.84);
}

body[data-theme="light"] .question-panel,
body[data-theme="light"] .result-identity,
body[data-theme="light"] .result-detail,
body[data-theme="light"] .news-section,
body[data-theme="light"] .auth-sheet {
  background: var(--panel);
  box-shadow: 0 24px 80px var(--shadow);
}

body[data-theme="light"] .scale-option,
body[data-theme="light"] .news-status,
body[data-theme="light"] .news-item,
body[data-theme="light"] .news-empty,
body[data-theme="light"] .probability-panel,
body[data-theme="light"] .auth-tabs,
body[data-theme="light"] .field input {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
}

body[data-theme="light"] .auth-mode-button {
  background: transparent;
}

body[data-theme="light"] .probability-panel {
  background:
    radial-gradient(circle at 12% 18%, rgba(17, 19, 24, 0.07), transparent 36%),
    rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .probability-track {
  background: rgba(17, 19, 24, 0.08);
}

body[data-theme="light"] .probability-bar {
  background: linear-gradient(90deg, #111318, rgba(17, 19, 24, 0.42));
}

body[data-theme="light"] .scale-option:hover,
body[data-theme="light"] .scale-option.is-selected,
body[data-theme="light"] .news-item:hover {
  color: var(--ink);
  border-color: rgba(17, 19, 24, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] .question-panel.is-answered {
  border-color: rgba(17, 19, 24, 0.34);
  box-shadow:
    inset 3px 0 0 rgba(17, 19, 24, 0.84),
    0 24px 80px var(--shadow);
}

body[data-theme="light"] .scale-option.is-selected {
  color: #f2f1ed;
  border-color: #303339;
  background: #303339;
  box-shadow:
    0 0 0 2px rgba(17, 19, 24, 0.16),
    0 12px 28px rgba(32, 36, 42, 0.2);
}

body[data-theme="light"] .scale-option.is-selected::after {
  color: #292c31;
  background: #ecebe6;
}

body[data-theme="light"] .news-item.is-new {
  border-color: rgba(17, 19, 24, 0.26);
  background:
    radial-gradient(circle at 18% 16%, rgba(17, 19, 24, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.86);
}

body[data-theme="light"] .knowledge-tab,
body[data-theme="light"] .report-item,
body[data-theme="light"] .module-empty {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

body[data-theme="light"] .knowledge-tab:hover,
body[data-theme="light"] .report-item:hover {
  border-color: rgba(17, 19, 24, 0.28);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 48px rgba(32, 36, 42, 0.13);
}

body[data-theme="light"] .knowledge-tab.is-active {
  color: #f2f1ed;
  border-color: #303339;
  background: #303339;
}

body[data-theme="light"] .knowledge-tab.is-active .knowledge-index,
body[data-theme="light"] .knowledge-tab.is-active .knowledge-count {
  color: rgba(242, 241, 237, 0.68);
}

body[data-theme="light"] .ai-reading {
  border-left-color: #17191d;
  background: rgba(17, 19, 24, 0.055);
}

body[data-theme="light"] .content-block p,
body[data-theme="light"] .content-meta {
  color: var(--muted);
}

body[data-theme="light"] .axis-badge,
body[data-theme="light"] .tag,
body[data-theme="light"] .news-info span {
  border-color: rgba(17, 19, 24, 0.12);
  color: rgba(17, 19, 24, 0.72);
  background: rgba(17, 19, 24, 0.045);
}

body[data-theme="light"] .news-info {
  color: rgba(17, 19, 24, 0.58);
}

body[data-theme="light"] .persona-visual {
  border-color: rgba(17, 19, 24, 0.12);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.72), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.28));
  box-shadow:
    0 22px 60px rgba(32, 36, 42, 0.16),
    0 0 42px var(--persona-glow, rgba(0, 0, 0, 0.08));
}

body[data-theme="light"] .persona-visual::before {
  opacity: 0.34;
}

body[data-theme="light"] .persona-visual::after {
  box-shadow: inset 0 0 0 1px rgba(17, 19, 24, 0.08);
}

body[data-theme="light"] .auth-view {
  background: rgba(244, 242, 236, 0.7);
}

body[data-theme="light"] .auth-tab.is-active {
  color: #ffffff;
  background: #111318;
}

body[data-theme="light"] .toast {
  border-color: rgba(17, 19, 24, 0.12);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 46px rgba(32, 36, 42, 0.14);
}

@media (max-width: 900px) {
  .view {
    padding: 22px;
  }

  .all-news-view {
    width: 100%;
  }

  .home-brand-intro {
    min-height: 166px;
  }

  .home-brand-logo {
    width: 88px;
  }

  .home-brand-title {
    font-size: clamp(1.45rem, 3.8vw, 1.85rem);
  }

  .news-list,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .knowledge-nav {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(172px, 1fr);
    padding-bottom: 7px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .knowledge-tab {
    scroll-snap-align: start;
  }

  .report-item {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }

  .question-panel .scale-option {
    min-height: 68px;
    text-align: center;
  }

  .question-panel h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 760px) {
  .test-view .topbar {
    padding-right: 58px;
  }

  .test-view .progress-copy {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .view {
    padding: 18px;
  }

  .home-view {
    gap: 20px;
  }

  .hero-kicker {
    border-radius: 8px;
  }

  .home-brand-intro {
    gap: 14px;
    min-height: 146px;
  }

  .home-brand-logo {
    width: 76px;
  }

  .home-brand-title {
    font-size: clamp(1.22rem, 5.25vw, 1.5rem);
    line-height: 1.18;
    letter-spacing: -0.045em;
  }

  .hero-actions,
  .oauth-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 40px 1fr;
  }

  .all-news-view .topbar {
    grid-template-columns: 40px 1fr auto;
    padding-right: 0;
  }

  .topbar-actions .icon-button {
    width: 38px;
    height: 38px;
  }

  .topbar-actions .theme-toggle.is-inline {
    width: 38px;
    height: 38px;
  }

  .account-entry {
    top: 18px;
    right: 68px;
    width: 40px;
    height: 40px;
  }

  .theme-toggle {
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
  }
  .progress-copy,
  .result-topbar .icon-button:last-child {
    display: none;
  }

  .question-panel,
  .result-identity,
  .result-detail,
  .news-section,
  .auth-sheet {
    padding: 20px;
  }

  .user-notice-view {
    padding: 0;
  }

  .user-notice-sheet {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .user-notice-header,
  .user-notice-content,
  .user-notice-footer {
    padding: 16px;
  }

  .user-notice-header h2 {
    font-size: 1.15rem;
  }

  .user-notice-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .user-notice-footer .primary-button {
    width: 100%;
  }

  .question-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
  }

  .question-topic {
    width: auto;
    height: 34px;
    justify-self: start;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .question-topic-spacer {
    display: none;
  }

  .question-topic::before,
  .question-topic::after {
    display: none;
  }

  .option-list {
    grid-column: 1;
    gap: 5px;
  }

  .question-panel .scale-option {
    min-height: 72px;
    padding: 8px 3px;
  }

  .scale-option span {
    font-size: 0.66rem;
  }

  .test-submit-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .submit-test-button {
    width: 100%;
    min-width: 0;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .result-code {
    font-size: 3.2rem;
  }

  .persona-official-name {
    font-size: 1.04rem;
  }

  .section-heading {
    display: grid;
  }

  .knowledge-nav {
    margin-right: -18px;
    padding-right: 18px;
  }

  .knowledge-tab {
    min-height: 116px;
    padding: 14px 15px 16px;
  }

  .knowledge-count-value {
    font-size: 1.55rem;
  }

  .report-item {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .report-cover {
    width: min(190px, 100%);
    min-height: 248px;
  }

  .report-body h3 {
    font-size: 1.16rem;
  }

  .module-empty {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 220px;
    padding: 24px;
  }

  .module-empty > span {
    font-size: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aibti-mode-button {
    transition: none;
  }

  .aibti-mode-button:hover,
  .aibti-mode-button:focus-visible {
    transform: none;
  }

  .news-item.is-new,
  .module-entry {
    animation: none;
  }

  .knowledge-tab,
  .report-item,
  .report-cover {
    transition: none;
  }
}


body[data-theme="light"] .profile-sidebar,
body[data-theme="light"] .profile-content {
  background: var(--panel);
  box-shadow: 0 24px 80px var(--shadow);
}

body[data-theme="light"] .profile-nav-button:hover,
body[data-theme="light"] .profile-info-item,
body[data-theme="light"] .subscription-card,
body[data-theme="light"] .assessment-archive-card,
body[data-theme="light"] .assessment-code-block,
body[data-theme="light"] .assessment-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.assessment-card-footer strong {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 650;
}

.profile-empty-state {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

body[data-theme="light"] .profile-nav-button.is-active {
  color: #ffffff;
  border-color: #15171b;
  background: #15171b;
}

body[data-theme="light"] .profile-avatar {
  color: #ffffff;
  background: #15171b;
}

body[data-theme="light"] .profile-contact-form,
body[data-theme="light"] .profile-contact-field input,
body[data-theme="light"] .profile-phone-value {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
}

body[data-theme="light"] .profile-contact-field input:focus {
  border-color: rgba(17, 19, 24, 0.34);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.07);
}

body[data-theme="light"] .profile-phone-value:hover,
body[data-theme="light"] .profile-phone-value:focus-visible {
  border-color: rgba(17, 19, 24, 0.34);
  background: #ffffff;
}

@media (max-width: 900px) {
  .profile-view {
    width: 100%;
  }

  .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }

  .profile-nav {
    grid-template-columns: repeat(4, minmax(138px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .profile-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 560px) {
  .profile-view .topbar {
    grid-template-columns: 40px 1fr auto;
    padding-right: 100px;
  }

  .all-news-view .topbar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding-right: 0;
  }

  .profile-logout {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .profile-sidebar,
  .profile-content {
    padding: 16px;
  }

  .profile-user-summary {
    padding-bottom: 14px;
  }

  .profile-nav {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(142px, 1fr);
  }

  .profile-nav-button {
    min-height: 46px;
  }

  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .profile-info-item {
    min-height: 88px;
  }

  .profile-contact-fields {
    grid-template-columns: 1fr;
  }

  .profile-contact-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .subscription-card {
    padding: 18px;
  }

  .subscription-profile {
    display: grid;
    gap: 6px;
  }

  .assessment-archive-card {
    grid-template-columns: 1fr;
  }

  .assessment-code-block {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .assessment-code-block span {
    grid-column: 1 / -1;
  }

  .assessment-archive-body {
    padding: 18px;
  }

  .assessment-archive-body > div:first-child {
    display: grid;
  }

  .profile-empty-state,
  .profile-empty-state.compact {
    min-height: 300px;
    padding: 22px;
  }
}
.profile-shell,
.profile-sidebar,
.profile-content,
.profile-nav {
  min-width: 0;
}

.profile-shell {
  width: 100%;
}

@media (max-width: 560px) {
  .profile-view,
  .profile-view .topbar,
  .profile-shell {
    min-width: 0;
    max-width: 100%;
  }
}
body[data-theme="light"] .aibti-test-actions {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

body[data-theme="light"] .aibti-mode-button.is-tested {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .aibti-mode-button.is-untested {
  border-color: rgba(17, 19, 24, 0.72);
  color: #f2f1ed;
  background: #303339;
}

body[data-theme="light"] .aibti-mode-button:hover,
body[data-theme="light"] .aibti-mode-button:focus-visible {
  border-color: rgba(17, 19, 24, 0.34);
  box-shadow: 0 14px 30px rgba(32, 36, 42, 0.14);
}

body[data-theme="light"] .assessment-archive-card:hover,
body[data-theme="light"] .assessment-archive-card:focus-visible {
  border-color: rgba(17, 19, 24, 0.3);
  background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 900px) {
  .aibti-test-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .profile-view .profile-topbar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding-right: 0;
  }

  .profile-topbar-actions {
    gap: 6px;
  }

  .profile-topbar-actions .profile-logout {
    width: auto;
    min-height: 38px;
    padding: 0 10px;
  }

  .profile-topbar-actions .theme-toggle.is-inline {
    width: 38px;
    height: 38px;
  }

  .home-news-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-news-actions .all-news-entry {
    width: 100%;
  }

  .aibti-test-actions {
    padding: 18px;
  }

  .aibti-mode-actions {
    grid-template-columns: 1fr;
  }

  .assessment-card-footer {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}
/* Membership access 2026-07-22 */
.membership-gate-modal{position:fixed;inset:0;z-index:180;display:none;place-items:center;padding:24px}
.membership-gate-modal.is-open{display:grid}
.membership-gate-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.78);backdrop-filter:blur(18px);cursor:default}
.membership-gate-dialog{position:relative;width:min(520px,100%);padding:28px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,rgba(27,28,31,.98),rgba(10,10,12,.98));box-shadow:0 38px 100px rgba(0,0,0,.58);transform:translateY(14px) scale(.98);opacity:0;animation:membershipGateIn .42s cubic-bezier(.2,.8,.2,1) forwards;outline:0}
@keyframes membershipGateIn{to{transform:none;opacity:1}}
.membership-gate-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.membership-gate-dialog>header p{margin:0 0 8px;color:var(--muted);font-size:.65rem;letter-spacing:.18em}
.membership-gate-dialog>header h2{margin:0;font-size:clamp(1.3rem,3vw,1.8rem);line-height:1.25}

.membership-gate-actions{display:grid;gap:10px;margin-top:22px}.membership-gate-actions .primary-button{width:100%}
.membership-learn-more{display:flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:rgba(255,255,255,.035);font-family:inherit;font-size:1rem;font-weight:800;line-height:1;letter-spacing:.01em;text-decoration:none;transition:background .2s,transform .2s,border-color .2s}.membership-learn-more:hover{background:var(--soft);border-color:var(--ink);transform:translateY(-2px)}
.membership-key-form{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.membership-key-form[hidden]{display:none}
.membership-key-form label{display:block;margin-bottom:9px;color:var(--muted);font-size:.75rem}.membership-key-form>div{display:grid;grid-template-columns:1fr auto;gap:8px}
.membership-key-form input{min-width:0;height:46px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font:700 1rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.18em;text-transform:uppercase;outline:0}.membership-key-form input:focus{border-color:var(--ink)}
.membership-key-form p{min-height:20px;margin:10px 0 0;color:var(--muted);font-size:.75rem}
.subscription-gate-card{grid-column:1/-1;width:100%;min-height:150px;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:22px;padding:28px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(120deg,var(--panel),var(--soft));color:var(--ink);text-align:left;cursor:pointer;transition:transform .25s,border-color .25s,background .25s}
.subscription-gate-card:hover{transform:translateY(-4px);border-color:var(--ink)}.subscription-gate-lock{width:54px;height:54px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%}.subscription-gate-lock svg{width:23px;fill:none;stroke:currentColor;stroke-width:1.5}
.subscription-gate-card>span:nth-child(2){display:flex;flex-direction:column;gap:6px}.subscription-gate-card small{color:var(--muted);font-size:.58rem;letter-spacing:.16em}.subscription-gate-card strong{font-size:1.12rem}.subscription-gate-card p{margin:0;color:var(--muted);font-size:.8rem}.subscription-gate-card b{color:var(--muted);font-size:.72rem;font-weight:500}.subscription-gate-card>i{font-style:normal;font-size:1.3rem}
body[data-theme=light] .membership-gate-backdrop{background:rgba(238,237,232,.82)}body[data-theme=light] .membership-gate-dialog{background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(239,239,235,.99))}
@media(max-width:620px){.membership-gate-dialog{padding:22px}.membership-key-form>div{grid-template-columns:1fr}.subscription-gate-card{grid-template-columns:auto 1fr;padding:22px}.subscription-gate-card>b,.subscription-gate-card>i{display:none}}.membership-profile-card{margin-bottom:14px}.membership-profile-link{display:inline-flex;margin-top:16px;color:var(--ink);font-size:.8rem;text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:4px}
/* Membership content preview veil 2026-07-23 */
.subscription-preview-lock {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.subscription-preview-lock::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.12), rgba(5, 5, 7, 0.4) 42%, rgba(5, 5, 7, 0.58)),
    repeating-linear-gradient(120deg, transparent 0 46px, rgba(255, 255, 255, 0.015) 47px 48px);
  -webkit-backdrop-filter: blur(10px) saturate(0.55);
  backdrop-filter: blur(10px) saturate(0.55);
}

.subscription-preview-content {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 10px;
  opacity: 0.58;
  filter: blur(9px) grayscale(0.72) contrast(0.8);
  transform: scale(0.992);
  transform-origin: top center;
  pointer-events: none;
  user-select: none;
}

.subscription-preview-lock-articles .subscription-preview-content {
  gap: 16px;
}

.subscription-preview-lock-news {
  grid-column: 1 / -1;
}

.subscription-preview-lock-news .subscription-preview-content {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.subscription-preview-lock-news .subscription-preview-cta {
  top: clamp(126px, 42vh, 430px);
}

.subscription-preview-cta {
  position: sticky;
  top: clamp(118px, 41vh, 420px);
  z-index: 4;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(470px, calc(100% - 36px));
  min-height: 184px;
  margin: clamp(52px, 8vh, 88px) auto -220px;
  padding: 27px 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  color: #f2f2ed;
  background: rgba(13, 14, 17, 0.68);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(28px) saturate(0.8);
  backdrop-filter: blur(28px) saturate(0.8);
  text-align: center;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.subscription-preview-cta:hover,
.subscription-preview-cta:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(20, 21, 24, 0.8);
  outline: none;
}

.subscription-preview-lock-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.subscription-preview-lock-icon svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.subscription-preview-cta small {
  color: rgba(242, 242, 237, 0.58);
  font-size: 0.58rem;
  letter-spacing: 0.19em;
}

.subscription-preview-cta strong {
  font-size: clamp(1.3rem, 2.2vw, 1.72rem);
  line-height: 1.2;
}

.subscription-preview-cta p {
  margin: 0;
  color: rgba(242, 242, 237, 0.64);
  font-size: 0.78rem;
}

.subscription-preview-cta > span:last-child {
  margin-top: 5px;
  font-size: 0.72rem;
}

.subscription-preview-cta i {
  display: inline-block;
  margin-left: 6px;
  font-style: normal;
  transition: transform 180ms ease;
}

.subscription-preview-cta:hover i {
  transform: translateX(4px);
}

body[data-theme="light"] .subscription-preview-lock {
  background: rgba(19, 21, 25, 0.035);
}

body[data-theme="light"] .subscription-preview-lock::after {
  background:
    linear-gradient(180deg, rgba(245, 244, 240, 0.12), rgba(245, 244, 240, 0.42) 42%, rgba(245, 244, 240, 0.62)),
    repeating-linear-gradient(120deg, transparent 0 46px, rgba(0, 0, 0, 0.018) 47px 48px);
}

body[data-theme="light"] .subscription-preview-cta {
  color: #222429;
  border-color: rgba(18, 21, 27, 0.2);
  background: rgba(250, 250, 247, 0.72);
  box-shadow: 0 28px 70px rgba(34, 38, 44, 0.18), inset 0 1px rgba(255, 255, 255, 0.86);
}

body[data-theme="light"] .subscription-preview-cta:hover,
body[data-theme="light"] .subscription-preview-cta:focus-visible {
  border-color: rgba(18, 21, 27, 0.42);
  background: rgba(255, 255, 252, 0.88);
}

body[data-theme="light"] .subscription-preview-lock-icon {
  border-color: rgba(18, 21, 27, 0.2);
}

body[data-theme="light"] .subscription-preview-cta small,
body[data-theme="light"] .subscription-preview-cta p {
  color: rgba(34, 36, 41, 0.58);
}

@media (max-width: 660px) {
  .subscription-preview-content {
    padding: 8px;
    filter: blur(8px) grayscale(0.72) contrast(0.8);
  }

  .subscription-preview-cta {
    top: 34vh;
    width: calc(100% - 26px);
    min-height: 166px;
    margin: 38px auto -194px;
    padding: 22px 20px;
    border-radius: 17px;
  }
}

@media (max-width: 900px) {
  .subscription-preview-lock-news .subscription-preview-content {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subscription-preview-cta,
  .subscription-preview-cta i {
    transition: none;
  }
}
/* 2026-07-23: stronger hierarchy for light-mode news content only. */
body[data-theme="light"] .all-news-section {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(226, 227, 229, 0.78));
}

body[data-theme="light"] .news-status {
  border-color: rgba(17, 19, 24, 0.14);
  color: #474a50;
  background: rgba(216, 218, 221, 0.76);
}

body[data-theme="light"] .news-mode-toggle {
  border-color: rgba(61, 91, 175, 0.32);
  color: #263b70;
  background:
    linear-gradient(135deg, rgba(117, 146, 226, 0.22), rgba(87, 180, 163, 0.13)),
    rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 7px 18px rgba(66, 86, 143, 0.12);
}

body[data-theme="light"] .news-mode-toggle i {
  color: #294379;
  background: rgba(57, 86, 164, 0.1);
}

body[data-theme="light"] .news-mode-toggle:hover,
body[data-theme="light"] .news-mode-toggle:focus-visible {
  border-color: rgba(57, 91, 190, 0.55);
  background:
    linear-gradient(135deg, rgba(112, 143, 231, 0.3), rgba(82, 185, 164, 0.18)),
    rgba(255, 255, 255, 0.82);
}

@media (max-width: 680px) {
  .news-status:has(.news-mode-toggle) {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

body[data-theme="light"] .news-item {
  border-color: rgba(17, 19, 24, 0.15);
  color: #222429;
  background: linear-gradient(145deg, rgba(230, 231, 233, 0.96), rgba(215, 217, 220, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 22px rgba(32, 36, 42, 0.05);
}

body[data-theme="light"] .news-item h3 { color: #24262b; }
body[data-theme="light"] .news-item p { color: #4d5056; }
body[data-theme="light"] .news-item p:last-child,
body[data-theme="light"] .news-info { color: #3f4248; }

body[data-theme="light"] .news-info span {
  border-color: rgba(17, 19, 24, 0.13);
  color: #3d4046;
  background: rgba(255, 255, 255, 0.46);
}

body[data-theme="light"] .news-item:hover {
  border-color: rgba(17, 19, 24, 0.3);
  color: #191b1f;
  background: linear-gradient(145deg, rgba(223, 225, 228, 0.98), rgba(202, 205, 209, 0.94));
  box-shadow: 0 18px 36px rgba(32, 36, 42, 0.12);
}

body[data-theme="light"] .news-item.is-new {
  border-color: rgba(17, 19, 24, 0.26);
  background: radial-gradient(circle at 18% 16%, rgba(17, 19, 24, 0.1), transparent 38%), linear-gradient(145deg, rgba(226, 228, 231, 0.96), rgba(208, 211, 215, 0.92));
}
/* Profile membership state follows the server account record. */
.subscription-status-badge{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:rgba(255,255,255,.035);font-size:.7rem;white-space:nowrap}.subscription-status-badge.is-paid{color:var(--ink);border-color:rgba(207,210,203,.34);background:rgba(207,210,203,.09)}
.membership-unlock-card,.membership-year-card{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:radial-gradient(circle at 84% 10%,rgba(255,255,255,.09),transparent 32%),linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018))}
.membership-unlock-card{display:grid;width:min(560px,100%);margin:54px auto 0;padding:34px}.membership-unlock-copy h4,.membership-unlock-copy p{margin:0}.membership-unlock-copy h4{margin-top:8px;font-size:clamp(1.35rem,3vw,1.8rem)}.membership-unlock-copy p{margin-top:10px;color:var(--muted);line-height:1.7}
.profile-membership-key-form{display:grid;gap:10px;margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}.profile-membership-key-form label{color:var(--muted);font-size:.72rem;letter-spacing:.08em}.profile-membership-key-form>div{display:grid;grid-template-columns:1fr auto;gap:10px}.profile-membership-key-form input{min-width:0;height:48px;padding:0 16px;border:1px solid var(--line);border-radius:9px;background:rgba(0,0,0,.22);color:var(--ink);font:800 1.05rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.18em;text-transform:uppercase;outline:0}.profile-membership-key-form input:focus{border-color:var(--ink)}.profile-membership-feedback{min-height:20px;margin:0;color:var(--muted);font-size:.74rem}
.membership-about-link{display:flex;align-items:center;justify-content:space-between;margin-top:20px;padding-top:18px;border-top:1px solid var(--line);color:var(--ink);font-size:.86rem;font-weight:750;text-decoration:none}.membership-about-link span{transition:transform .2s ease}.membership-about-link:hover span{transform:translate(3px,-3px)}
.membership-year-card{padding:32px}.membership-year-card::before{position:absolute;inset:-40% auto auto 58%;width:340px;height:340px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 46px rgba(255,255,255,.025),0 0 0 92px rgba(255,255,255,.012);content:"";pointer-events:none}.membership-year-head{position:relative;display:flex;align-items:start;justify-content:space-between;gap:24px}.membership-year-head h4,.membership-year-head p{margin:0}.membership-year-head h4{margin-top:8px;font-size:clamp(1.55rem,3.4vw,2.15rem)}.membership-year-head p{margin-top:10px;color:var(--muted)}
.membership-active-badge{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:999px;color:var(--ink);font-size:.72rem;white-space:nowrap}.membership-active-badge i{width:7px;height:7px;border-radius:50%;background:#cfd2cb;box-shadow:0 0 0 5px rgba(207,210,203,.1)}
.membership-time-grid{position:relative;display:grid;grid-template-columns:1fr;gap:1px;margin-top:30px;border:1px solid var(--line);background:var(--line)}.membership-time-grid>div{display:grid;gap:12px;min-height:96px;padding:20px;background:rgba(14,14,16,.92)}.membership-time-grid span{color:var(--muted);font-size:.7rem}.membership-time-grid strong{align-self:end;font-size:.94rem}
.membership-benefits{position:relative;margin-top:28px}.membership-benefits-heading h5{margin:6px 0 0;font-size:1.12rem}.membership-benefit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:16px}.membership-benefit{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:13px;min-height:74px;padding:14px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.025)}.membership-check{width:30px;height:30px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.24);border-radius:50%;font-size:.92rem}.membership-benefit>div{display:grid;gap:6px}.membership-benefit small{color:var(--muted);font-size:.62rem}.membership-benefit strong{font-size:.82rem;line-height:1.45}
.membership-benefit:last-child:nth-child(odd){grid-column:1/-1}
body[data-theme="light"] .membership-unlock-card,body[data-theme="light"] .membership-year-card{background:radial-gradient(circle at 84% 10%,rgba(0,0,0,.06),transparent 32%),linear-gradient(145deg,rgba(222,223,219,.92),rgba(244,244,241,.94))}body[data-theme="light"] .profile-membership-key-form input,body[data-theme="light"] .membership-time-grid>div{background:rgba(238,238,234,.96)}body[data-theme="light"] .membership-benefit{background:rgba(0,0,0,.035)}body[data-theme="light"] .membership-check{border-color:rgba(0,0,0,.2)}body[data-theme="light"] .subscription-status-badge.is-paid{border-color:rgba(17,19,24,.22);background:rgba(17,19,24,.07)}
@media(max-width:620px){.membership-unlock-card,.membership-year-card{padding:24px}.membership-unlock-card{margin-top:20px}.profile-membership-key-form>div,.membership-time-grid,.membership-benefit-grid{grid-template-columns:1fr}.membership-year-head{display:grid}}
/* Account favorites */
.news-item,
.report-item,
.hot-feature-card {
  position: relative;
}

.content-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.content-card-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 3px;
}

.content-favorite-toggle {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(248, 248, 243, 0.72);
  background: rgba(11, 12, 15, 0.72);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 170ms ease, color 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.content-favorite-toggle span {
  font-size: 1.18rem;
  line-height: 1;
  transform: translateY(-1px);
}

.content-favorite-toggle:hover,
.content-favorite-toggle:focus-visible {
  transform: translateY(-2px) scale(1.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(32, 34, 39, 0.94);
}

.content-favorite-toggle.is-favorite {
  color: #f2d981;
  border-color: rgba(242, 217, 129, 0.52);
  background: rgba(39, 35, 22, 0.92);
  box-shadow: 0 8px 26px rgba(176, 142, 39, 0.16);
}

.content-favorite-toggle:disabled {
  cursor: wait;
  opacity: 0.56;
}

.news-item .news-info {
  padding-right: 40px;
}

.report-item .content-favorite-toggle,
.hot-feature-card .content-favorite-toggle {
  top: 28px;
  right: 28px;
}

.report-item .report-body,
.hot-feature-card .hot-feature-body,
.news-item > :not(.content-card-link):not(.content-favorite-toggle) {
  position: relative;
  z-index: 0;
}

.favorite-focus-pulse {
  animation: favoriteFocusPulse 1.8s ease both !important;
}

@keyframes favoriteFocusPulse {
  0%, 100% { box-shadow: none; }
  30% { border-color: rgba(242, 217, 129, 0.74); box-shadow: 0 0 0 4px rgba(242, 217, 129, 0.13), 0 22px 56px rgba(0, 0, 0, 0.3); }
}

.profile-favorite-groups {
  display: grid;
  gap: 18px;
}

.profile-favorite-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.profile-favorite-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.profile-favorite-group h4 {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.profile-favorite-group header span {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
}

.profile-favorite-group > div {
  display: grid;
}

.profile-favorite-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: padding 170ms ease, background 170ms ease;
}

.profile-favorite-item:last-child {
  border-bottom: 0;
}

.profile-favorite-item span {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-favorite-item i {
  color: var(--muted);
  font-style: normal;
  transition: transform 170ms ease;
}

.profile-favorite-item:hover,
.profile-favorite-item:focus-visible {
  padding-left: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.profile-favorite-item:hover i,
.profile-favorite-item:focus-visible i {
  transform: translate(2px, -2px);
}

body[data-theme="light"] .content-favorite-toggle {
  color: rgba(23, 25, 29, 0.68);
  border-color: rgba(23, 25, 29, 0.16);
  background: rgba(242, 241, 237, 0.86);
  box-shadow: 0 9px 24px rgba(32, 36, 42, 0.12);
}

body[data-theme="light"] .content-favorite-toggle.is-favorite {
  color: #7d6413;
  border-color: rgba(125, 100, 19, 0.34);
  background: rgba(235, 222, 175, 0.94);
}

body[data-theme="light"] .profile-favorite-group {
  background: rgba(224, 224, 220, 0.58);
}

body[data-theme="light"] .profile-favorite-item:hover,
body[data-theme="light"] .profile-favorite-item:focus-visible {
  background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 640px) {
  .content-favorite-toggle {
    width: 32px;
    height: 32px;
  }
  .report-item .content-favorite-toggle,
  .hot-feature-card .content-favorite-toggle {
    top: 24px;
    right: 24px;
  }
}
/* Favorites empty state: quiet account-level styling */
.profile-favorites-empty {
  position: relative;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 26px;
  min-height: 210px !important;
  padding: 32px 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 88% 28%, rgba(255, 255, 255, 0.065), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.profile-favorites-empty::after {
  position: absolute;
  right: -74px;
  bottom: -106px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.018), 0 0 0 72px rgba(255, 255, 255, 0.01);
  content: "";
  pointer-events: none;
}

.profile-favorites-empty > span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 2rem;
  font-weight: 300;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.025);
}

.profile-favorites-empty > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.profile-favorites-empty .eyebrow {
  max-width: none;
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  line-height: 1;
}

.profile-favorites-empty h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.12rem;
}

.profile-favorites-empty p:last-child {
  max-width: none;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.5;
  white-space: nowrap;
}

body[data-theme="light"] .profile-favorites-empty {
  border-color: rgba(26, 29, 34, 0.14);
  background:
    radial-gradient(circle at 88% 28%, rgba(26, 29, 34, 0.055), transparent 28%),
    linear-gradient(135deg, rgba(222, 222, 218, 0.88), rgba(238, 238, 234, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body[data-theme="light"] .profile-favorites-empty::after {
  border-color: rgba(26, 29, 34, 0.07);
  box-shadow: 0 0 0 34px rgba(26, 29, 34, 0.022), 0 0 0 72px rgba(26, 29, 34, 0.012);
}

body[data-theme="light"] .profile-favorites-empty > span {
  color: rgba(26, 29, 34, 0.7);
  border-color: rgba(26, 29, 34, 0.14);
  background: rgba(255, 255, 255, 0.46);
}

body[data-theme="light"] .profile-favorites-empty .eyebrow {
  color: rgba(26, 29, 34, 0.45);
}

body[data-theme="light"] .profile-favorites-empty p:last-child {
  color: rgba(26, 29, 34, 0.62);
}

@media (max-width: 760px) {
  .profile-favorites-empty {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    min-height: 190px !important;
    padding: 26px 24px;
  }

  .profile-favorites-empty > span {
    width: 58px;
    height: 58px;
    font-size: 1.55rem;
  }

  .profile-favorites-empty p:last-child {
    text-wrap: pretty;
    white-space: normal;
  }
}
/* Favorite controls: rounded star geometry, metadata-safe placement, direct removal */
.content-favorite-toggle svg {
  width: 19px;
  height: 19px;
  overflow: visible;
}

.content-favorite-toggle path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 170ms ease, stroke-width 170ms ease, transform 170ms ease;
}

.content-favorite-toggle.is-favorite path {
  fill: currentColor;
  stroke-width: 1.15;
}

.content-favorite-toggle:hover path,
.content-favorite-toggle:focus-visible path {
  transform: scale(0.96);
}

.report-item .report-body .content-favorite-toggle,
.hot-feature-card .hot-feature-body .content-favorite-toggle {
  top: 31px;
  right: 4px;
}

.report-body h3,
.hot-feature-body h3 {
  padding-right: 52px;
}

.profile-favorite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.profile-favorite-row:last-child {
  border-bottom: 0;
}

.profile-favorite-row .profile-favorite-item {
  border-bottom: 0;
}

.profile-favorite-remove {
  margin-right: 12px;
  padding: 7px 11px;
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: color 170ms ease, border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.profile-favorite-remove:hover,
.profile-favorite-remove:focus-visible {
  color: #f1b7b7;
  border-color: rgba(226, 137, 137, 0.38);
  background: rgba(128, 47, 47, 0.16);
  transform: translateY(-1px);
}

.profile-favorite-remove:disabled {
  cursor: wait;
  opacity: 0.52;
}

body[data-theme="light"] .profile-favorite-remove {
  background: rgba(255, 255, 255, 0.5);
}

body[data-theme="light"] .profile-favorite-remove:hover,
body[data-theme="light"] .profile-favorite-remove:focus-visible {
  color: #8f3030;
  border-color: rgba(143, 48, 48, 0.28);
  background: rgba(143, 48, 48, 0.08);
}

.profile-favorites-empty > span svg {
  width: 30px;
  height: 30px;
}

.profile-favorites-empty > span path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .report-item .report-body .content-favorite-toggle,
  .hot-feature-card .hot-feature-body .content-favorite-toggle {
    top: 30px;
    right: 0;
  }
}

/* Keep the full-card link usable while allowing the nested favorite control to receive clicks. */
.report-item .report-body,
.hot-feature-card .hot-feature-body {
  z-index: 2;
  pointer-events: none;
}

.report-item .report-body .content-favorite-toggle,
.hot-feature-card .hot-feature-body .content-favorite-toggle {
  z-index: 4;
  pointer-events: auto;
}
.persona-visual.is-static {
  cursor: default;
}

.persona-visual.is-static:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    0 0 42px var(--persona-glow, rgba(255, 255, 255, 0.12));
}

/* Special AIBTI personas keep the probability slot reserved until calibration is complete. */
.probability-panel.is-empty p,
.probability-panel.is-empty .probability-meter {
  display: none;
}

.probability-panel.is-empty {
  min-height: 86px;
}

/* Hidden AIBTI balance medal 2026-07-27 */
#profileAibtiContent {
  display: grid;
  gap: 16px;
}

.balance-medal-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: start;
  width: min(801px, 100%);
  height: 150px;
  margin: 2px auto 0;
  padding: 28px 84px 28px 34px;
  overflow: hidden;
  color: #f4f5f2;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(105deg, rgba(7, 9, 14, 0.98), rgba(20, 25, 34, 0.91)),
    url("./assets/personas/balance-medal-celebration.png") center 42% / cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 54px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.balance-medal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 88% 44%, rgba(135, 190, 255, 0.16), transparent 31%),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(255, 255, 255, 0.018) 45px 46px);
}

.balance-medal-card:hover,
.balance-medal-card:focus-visible {
  transform: translateY(-3px) scale(1.006);
  border-color: rgba(224, 238, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 28px 66px rgba(0, 0, 0, 0.34);
}

.balance-medal-kicker {
  margin-bottom: 8px;
  color: rgba(218, 231, 247, 0.54);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.balance-medal-card strong {
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  letter-spacing: 0.02em;
}

.balance-medal-card small {
  margin-top: 8px;
  color: rgba(235, 240, 246, 0.58);
  font-size: 0.73rem;
}

.balance-medal-card > i {
  position: absolute;
  top: 50%;
  right: 34px;
  color: rgba(224, 238, 255, 0.82);
  font-size: 2rem;
  font-style: normal;
  transform: translateY(-50%);
  animation: balanceMedalSpark 2.6s ease-in-out infinite;
}

.balance-medal-orbit {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(218, 231, 247, 0.13);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 16px rgba(218, 231, 247, 0.025), 0 0 0 34px rgba(218, 231, 247, 0.014);
}

.balance-medal-modal {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: none;
  place-items: center;
  padding: 24px;
}

.balance-medal-modal.is-open {
  display: grid;
}

.balance-medal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.balance-medal-dialog {
  position: relative;
  width: min(1180px, 100%);
  overflow: hidden;
  color: #f4f5f2;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  background: #080b10;
  box-shadow: 0 48px 140px rgba(0, 0, 0, 0.72);
  outline: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.975);
  animation: balanceMedalDialogIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.balance-medal-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px 18px 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(5, 7, 10, 0.96);
}

.balance-medal-dialog-header p,
.balance-medal-dialog-header h2 {
  margin: 0;
}

.balance-medal-dialog-header p {
  color: rgba(230, 237, 245, 0.48);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}

.balance-medal-dialog-header h2 {
  margin-top: 3px;
  font-size: 1.05rem;
}

.balance-medal-celebration {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1821 / 864;
  background: #080b10;
}

.balance-medal-celebration > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.balance-medal-celebration figcaption {
  position: absolute;
  top: 7.5%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(72%, 760px);
  min-height: 92px;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.balance-medal-celebration figcaption::before {
  content: "";
  position: absolute;
  inset: 8% 8%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(5, 9, 15, 0.92), rgba(5, 9, 15, 0.42) 52%, transparent 76%);
  filter: blur(8px);
}

.balance-medal-celebration figcaption p {
  margin: 0;
  color: #f7f8f5;
  font-size: clamp(1.5rem, 3.2vw, 2.9rem);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.92);
}

.balance-medal-celebration figcaption strong {
  color: #d7eaff;
  font: inherit;
}

.balance-pixel-firework {
  position: absolute;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
}

.balance-pixel-firework-left { left: 0; }
.balance-pixel-firework-right { right: 0; }

.balance-pixel-firework i {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 6px;
  height: 6px;
  background: #d8ecff;
  box-shadow: 0 0 12px rgba(180, 220, 255, 0.82);
  animation: balancePixelFirework 1.9s steps(4, end) infinite;
}

.balance-pixel-firework i:nth-child(2) { --firework-x: 23px; --firework-y: -17px; animation-delay: 100ms; }
.balance-pixel-firework i:nth-child(3) { --firework-x: -22px; --firework-y: -15px; animation-delay: 180ms; }
.balance-pixel-firework i:nth-child(4) { --firework-x: 20px; --firework-y: 18px; animation-delay: 260ms; }
.balance-pixel-firework i:nth-child(5) { --firework-x: -21px; --firework-y: 19px; animation-delay: 340ms; }

@keyframes balanceMedalSpark {
  0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(0.86) rotate(0deg); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.08) rotate(18deg); }
}

@keyframes balanceMedalDialogIn {
  to { opacity: 1; transform: none; }
}

@keyframes balancePixelFirework {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--firework-x, 0), var(--firework-y, -25px)) scale(1); }
}

body[data-theme="light"] .balance-medal-card {
  border-color: rgba(24, 31, 40, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 48px rgba(21, 26, 34, 0.16);
}

body[data-theme="light"] .balance-medal-backdrop {
  background: rgba(225, 225, 220, 0.82);
}

@media (max-width: 720px) {
  .balance-medal-card {
    height: auto;
    min-height: 140px;
    padding: 24px 62px 24px 22px;
  }

  .balance-medal-card > i { right: 23px; }
  .balance-medal-orbit { right: -18px; }
  .balance-medal-modal { padding: 12px; }
  .balance-medal-dialog-header { min-height: 58px; padding: 10px 12px 10px 16px; }
  .balance-medal-celebration figcaption { top: 5%; min-height: 54px; }
  .balance-pixel-firework { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .balance-medal-card > i,
  .balance-pixel-firework i,
  .balance-medal-dialog {
    animation: none;
  }

  .balance-medal-dialog { opacity: 1; transform: none; }
}

/* Balance medal reveal and achievement archive 2026-07-28 */
.balance-medal-dialog.is-revealing .balance-medal-celebration,
.balance-medal-dialog.is-celebrating .balance-medal-reveal {
  display: none;
}

.balance-medal-reveal {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  min-height: min(620px, 70vh);
  padding: 48px 24px 38px;
  overflow: hidden;
  color: #fff8dc;
  border: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(217, 159, 45, 0.16), transparent 31%),
    radial-gradient(circle at 50% 28%, rgba(255, 230, 154, 0.08), transparent 25%),
    linear-gradient(145deg, #080a0e, #0c0d11 48%, #07080b);
  cursor: pointer;
}

.balance-medal-reveal::before,
.balance-medal-reveal::after {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -1;
  border: 1px solid rgba(229, 181, 70, 0.08);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.balance-medal-reveal::after {
  inset: 16% 24%;
  border-color: rgba(255, 231, 168, 0.05);
  transform: rotate(24deg);
}

.balance-medal-reveal-copy {
  position: relative;
  z-index: 4;
  margin-bottom: 30px;
  text-align: center;
  animation: balanceRevealCopyIn 800ms 120ms both cubic-bezier(0.2, 0.8, 0.2, 1);
}

.balance-medal-reveal-copy p,
.balance-medal-reveal-copy span {
  display: block;
  margin: 0;
}

.balance-medal-reveal-copy p {
  color: #fff8e2;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 820;
  letter-spacing: 0.035em;
  text-shadow: 0 5px 26px rgba(189, 126, 12, 0.24);
}

.balance-medal-reveal-copy span {
  margin-top: 8px;
  color: rgba(245, 220, 156, 0.72);
  font-size: clamp(0.78rem, 1.25vw, 0.96rem);
  letter-spacing: 0.08em;
}

.balance-gold-rays {
  position: absolute;
  top: 54%;
  left: 50%;
  z-index: 0;
  width: min(520px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 213, 103, 0.19) 0 2deg, transparent 2deg 11deg);
  -webkit-mask: radial-gradient(circle, transparent 0 24%, #000 44%, transparent 72%);
  mask: radial-gradient(circle, transparent 0 24%, #000 44%, transparent 72%);
  transform: translate(-50%, -50%);
  animation: balanceGoldRays 18s linear infinite;
}

.balance-gold-medal {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(190px, 25vw, 282px);
  aspect-ratio: 1;
  border: clamp(7px, 1vw, 11px) solid #b77712;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 27%, rgba(255, 249, 211, 0.94) 0 3%, transparent 15%),
    radial-gradient(circle at 50% 48%, #f6d16f 0 23%, #d99a25 55%, #9d5d08 76%, #f2c45b 77% 82%, #7c4505 83%);
  box-shadow:
    inset 0 0 0 5px rgba(255, 238, 164, 0.58),
    inset 0 0 0 11px rgba(112, 60, 3, 0.38),
    inset 15px 18px 28px rgba(255, 244, 187, 0.24),
    inset -18px -22px 32px rgba(92, 46, 0, 0.42),
    0 0 0 1px rgba(255, 228, 135, 0.7),
    0 0 42px rgba(240, 174, 45, 0.45),
    0 24px 70px rgba(0, 0, 0, 0.58);
  animation: balanceGoldMedalIn 1050ms 180ms both cubic-bezier(0.18, 0.86, 0.24, 1.08), balanceGoldFloat 4.6s 1.25s ease-in-out infinite;
}

.balance-gold-medal::before,
.balance-gold-medal::after,
.balance-gold-medal-ring {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.balance-gold-medal::before {
  inset: 8%;
  border: 2px dashed rgba(110, 59, 4, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 226, 132, 0.24);
}

.balance-gold-medal::after {
  inset: 17%;
  border: 1px solid rgba(255, 242, 192, 0.48);
  box-shadow: inset 0 0 22px rgba(99, 49, 0, 0.24);
}

.balance-gold-medal-ring {
  inset: -15px;
  border: 1px solid rgba(242, 194, 78, 0.2);
  box-shadow: 0 0 0 13px rgba(220, 158, 38, 0.035), 0 0 0 28px rgba(220, 158, 38, 0.018);
  animation: balanceGoldRing 2.8s ease-in-out infinite;
}

.balance-gold-medal svg {
  position: relative;
  z-index: 2;
  width: 58%;
  overflow: visible;
  filter: drop-shadow(0 4px 2px rgba(89, 42, 0, 0.4)) drop-shadow(0 -1px 0 rgba(255, 244, 196, 0.7));
}

.balance-gold-medal svg path,
.balance-gold-medal svg circle {
  fill: none;
  stroke: #704007;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.balance-gold-medal svg .balance-scale-chain { stroke-width: 4.5; }
.balance-gold-medal svg .balance-scale-pan { fill: rgba(118, 66, 5, 0.16); }
.balance-gold-medal svg circle { fill: #704007; }

.balance-medal-reveal > small {
  position: relative;
  z-index: 3;
  margin-top: 32px;
  color: rgba(245, 220, 156, 0.46);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  animation: balanceRevealHint 2.2s 1.2s ease-in-out infinite;
}

.balance-medal-dialog.is-celebrating .balance-medal-celebration {
  display: block;
  animation: balanceCelebrationIn 680ms cubic-bezier(0.16, 0.82, 0.28, 1) both;
}

.balance-medal-celebration figcaption > div {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.balance-medal-celebration figcaption small {
  display: block;
  max-width: 610px;
  color: rgba(229, 238, 248, 0.78);
  font-size: clamp(0.64rem, 1.15vw, 0.9rem);
  font-weight: 650;
  letter-spacing: 0.035em;
  line-height: 1.6;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.96);
}

#profileBadgesContent {
  display: grid;
  min-width: 0;
}

.profile-badge-collection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 14px;
}

.profile-badge-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 190px;
  padding: 24px 26px;
  overflow: hidden;
  color: #f6f3e8;
  text-align: left;
  border: 1px solid rgba(225, 181, 77, 0.22);
  border-radius: 15px;
  background:
    radial-gradient(circle at 16% 50%, rgba(224, 164, 43, 0.15), transparent 28%),
    linear-gradient(118deg, rgba(16, 15, 13, 0.98), rgba(16, 18, 22, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 236, 176, 0.08), 0 22px 52px rgba(0, 0, 0, 0.23);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.profile-badge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0 52px, rgba(255, 226, 151, 0.018) 53px 54px);
}

.profile-badge-card:hover,
.profile-badge-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(241, 205, 116, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 239, 191, 0.12), 0 28px 64px rgba(0, 0, 0, 0.32);
}

.profile-badge-medal {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1;
  border: 6px solid #a7670b;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff3bd 0 4%, transparent 16%), radial-gradient(circle, #efc75f 0 31%, #cb881a 64%, #754004 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 237, 164, 0.55), inset 0 0 0 9px rgba(97, 47, 0, 0.27), 0 0 30px rgba(220, 158, 38, 0.25);
}

.profile-badge-medal > span {
  position: absolute;
  inset: -11px;
  border: 1px solid rgba(238, 194, 91, 0.21);
  border-radius: inherit;
}

.profile-badge-medal svg {
  position: relative;
  z-index: 2;
  width: 58%;
}

.profile-badge-medal path,
.profile-badge-medal circle {
  fill: none;
  stroke: #6c3b05;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-badge-medal circle { fill: #6c3b05; }

.profile-badge-copy {
  display: grid;
  min-width: 0;
}

.profile-badge-copy small {
  color: rgba(235, 203, 126, 0.56);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.16em;
}

.profile-badge-copy strong {
  margin-top: 7px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.profile-badge-copy p,
.profile-badge-copy time {
  margin: 0;
  color: rgba(238, 237, 231, 0.62);
}

.profile-badge-copy p {
  margin-top: 7px;
  font-size: 0.82rem;
  line-height: 1.7;
}

.profile-badge-copy time {
  margin-top: 13px;
  font-size: 0.68rem;
}

.profile-badge-card > i {
  color: rgba(244, 213, 135, 0.66);
  font-size: 1.25rem;
  font-style: normal;
}

.profile-badges-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  min-height: 210px;
  padding: 34px 38px;
  color: rgba(242, 243, 240, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 22, 27, 0.9), rgba(11, 12, 15, 0.94));
}

.profile-badges-empty > span {
  color: rgba(236, 194, 94, 0.22);
  font-family: Georgia, serif;
  font-size: 4rem;
}

.profile-badges-empty h4,
.profile-badges-empty p { margin: 0; }
.profile-badges-empty h4 { margin-top: 6px; color: #f0f1ee; font-size: 1.25rem; }
.profile-badges-empty p:last-child { margin-top: 8px; color: rgba(239, 240, 236, 0.5); font-size: 0.78rem; line-height: 1.65; }

body[data-theme="light"] .profile-badge-card {
  color: #27251f;
  border-color: rgba(131, 86, 11, 0.2);
  background: radial-gradient(circle at 16% 50%, rgba(204, 147, 32, 0.14), transparent 28%), linear-gradient(118deg, #eeeae0, #deddd9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 18px 44px rgba(42, 37, 27, 0.12);
}

body[data-theme="light"] .profile-badge-copy p,
body[data-theme="light"] .profile-badge-copy time { color: rgba(37, 34, 28, 0.62); }
body[data-theme="light"] .profile-badges-empty { color: #42413d; border-color: rgba(35, 35, 32, 0.13); background: linear-gradient(135deg, #e8e7e2, #d8d8d4); }
body[data-theme="light"] .profile-badges-empty h4 { color: #20201e; }
body[data-theme="light"] .profile-badges-empty p:last-child { color: rgba(32, 32, 30, 0.58); }

@keyframes balanceGoldRays { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes balanceGoldMedalIn { from { opacity: 0; transform: translateY(26px) scale(0.58) rotate(-11deg); filter: blur(9px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes balanceGoldFloat { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }
@keyframes balanceGoldRing { 0%, 100% { opacity: 0.45; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes balanceRevealCopyIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes balanceRevealHint { 0%, 100% { opacity: 0.38; transform: translateY(0); } 50% { opacity: 0.78; transform: translateY(4px); } }
@keyframes balanceCelebrationIn { from { opacity: 0; transform: scale(1.035); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 720px) {
  .balance-medal-reveal { min-height: min(520px, 76vh); padding: 36px 18px 30px; }
  .balance-medal-reveal-copy { margin-bottom: 24px; }
  .balance-medal-reveal > small { margin-top: 26px; }
  .balance-medal-celebration figcaption { width: 88%; }
  .balance-medal-celebration figcaption > div { gap: 3px; }
  .balance-medal-celebration figcaption small { max-width: 78%; font-size: 0.5rem; line-height: 1.35; }
  .profile-badge-card { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; min-height: 160px; padding: 20px; }
  .profile-badge-medal { width: 78px; border-width: 4px; }
  .profile-badge-card > i { display: none; }
  .profile-badges-empty { grid-template-columns: 1fr; gap: 8px; padding: 26px 24px; }
  .profile-badges-empty > span { font-size: 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .balance-medal-reveal-copy,
  .balance-gold-rays,
  .balance-gold-medal,
  .balance-gold-medal-ring,
  .balance-medal-reveal > small,
  .balance-medal-dialog.is-celebrating .balance-medal-celebration {
    animation: none;
  }
}

/* Balance medal visual framework v1: low-poly octagonal award */
.balance-medal-reveal {
  background: linear-gradient(145deg, #080a0e, #0c0d11 48%, #07080b);
}

.balance-gold-rays {
  display: none;
}

.balance-gold-medal {
  width: clamp(220px, 29vw, 326px);
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter:
    drop-shadow(0 22px 28px rgba(0, 0, 0, 0.56))
    drop-shadow(0 5px 7px rgba(205, 143, 33, 0.22));
  animation:
    balanceMedalFrameEnter 940ms 160ms both cubic-bezier(0.16, 0.86, 0.22, 1.08),
    balanceMedalFrameFloat 5.4s 1.25s ease-in-out infinite;
  transition: filter 320ms ease, scale 320ms ease;
}

.balance-medal-reveal:hover .balance-gold-medal,
.balance-medal-reveal:focus-visible .balance-gold-medal {
  scale: 1.025;
  filter:
    drop-shadow(0 25px 34px rgba(0, 0, 0, 0.62))
    drop-shadow(0 6px 9px rgba(205, 143, 33, 0.3));
}

.balance-gold-medal::before,
.balance-gold-medal::after,
.balance-gold-medal-ring,
.balance-gold-medal > svg {
  display: none;
}

.balance-gold-medal > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.balance-gold-medal-sheen {
  position: absolute;
  inset: 1.5%;
  z-index: 2;
  overflow: hidden;
  clip-path: polygon(21% 0, 79% 0, 100% 23%, 100% 77%, 79% 100%, 21% 100%, 0 77%, 0 23%);
  pointer-events: none;
}

.balance-gold-medal-sheen::before {
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: -62%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 214, 0.72) 48%, rgba(246, 197, 85, 0.28) 68%, transparent);
  filter: blur(4px);
  transform: skewX(-16deg);
  mix-blend-mode: screen;
  animation: balanceMedalSurfaceSheen 4.8s 1.45s cubic-bezier(0.55, 0.06, 0.35, 0.92) infinite;
}

.profile-badge-medal {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.42));
}

.profile-badge-medal::before,
.profile-badge-medal::after,
.profile-badge-medal > span:not(.profile-badge-medal-sheen),
.profile-badge-medal > svg {
  display: none;
}

.profile-badge-medal > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.profile-badge-medal-sheen {
  position: absolute;
  inset: 2%;
  z-index: 2;
  overflow: hidden;
  clip-path: polygon(21% 0, 79% 0, 100% 23%, 100% 77%, 79% 100%, 21% 100%, 0 77%, 0 23%);
  pointer-events: none;
}

.profile-badge-medal-sheen::before {
  content: "";
  position: absolute;
  inset: -15% auto -15% -75%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 249, 222, 0.64), transparent);
  transform: skewX(-16deg);
  animation: balanceMedalSurfaceSheen 5.6s 900ms ease-in-out infinite;
}

@keyframes balanceMedalFrameEnter {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.7) rotate(-5deg);
    filter: brightness(0.58) blur(7px);
  }
  64% {
    opacity: 1;
    transform: translateY(-5px) scale(1.035) rotate(1.2deg);
    filter: brightness(1.08) blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes balanceMedalFrameFloat {
  0%, 100% { transform: translateY(0) rotate(-0.35deg); }
  50% { transform: translateY(-5px) rotate(0.35deg); }
}

@keyframes balanceMedalSurfaceSheen {
  0%, 18% { left: -62%; opacity: 0; }
  28% { opacity: 0.86; }
  48% { left: 128%; opacity: 0; }
  100% { left: 128%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .balance-gold-medal,
  .balance-gold-medal-sheen::before,
  .profile-badge-medal-sheen::before {
    animation: none !important;
  }
}


/* Empty achievement archive: confirmed static adventurer with a gentle sway */
.profile-badges-empty {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 46px;
  min-height: 220px;
  padding: 26px 46px 26px 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 54%, rgba(196, 157, 56, 0.11), transparent 27%),
    linear-gradient(135deg, rgba(20, 22, 27, 0.92), rgba(9, 10, 13, 0.96));
}
.profile-badges-empty > div:last-child { min-width: 0; }
.profile-empty-adventurer {
  position: relative;
  width: 190px;
  height: 166px;
  justify-self: center;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(216, 177, 75, 0.18);
  border-radius: 16px;
  background: rgba(6, 8, 11, 0.7);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.26);
}
.profile-empty-adventurer img {
  display: block;
  width: 158px;
  height: 158px;
  object-fit: cover;
  border-radius: 12px;
  transform-origin: 50% 86%;
  animation: profileAdventurerSway 5s ease-in-out infinite;
  will-change: transform;
}
@keyframes profileAdventurerSway {
  0%, 100% { transform: translateX(-3px) rotate(-0.75deg); }
  50% { transform: translateX(3px) rotate(0.75deg); }
}
body[data-theme="light"] .profile-badges-empty {
  background:
    radial-gradient(circle at 16% 54%, rgba(133, 101, 31, 0.12), transparent 28%),
    linear-gradient(135deg, #e7e5df, #d5d5d0);
}
body[data-theme="light"] .profile-empty-adventurer {
  border-color: rgba(117, 87, 20, 0.2);
  background: rgba(240, 238, 230, 0.82);
  box-shadow: 0 15px 24px rgba(52, 53, 45, 0.17);
}
@media (max-width: 720px) {
  .profile-badges-empty {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 22px;
    min-height: 190px;
    padding: 22px 22px 22px 14px;
  }
  .profile-empty-adventurer {
    width: 128px;
    height: 128px;
  }
  .profile-empty-adventurer img {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 460px) {
  .profile-badges-empty {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 14px 20px 8px;
  }
  .profile-empty-adventurer {
    width: 104px;
    height: 104px;
  }
  .profile-empty-adventurer img {
    width: 98px;
    height: 98px;
  }
  .profile-badges-empty h4 { font-size: 1rem; }
  .profile-badges-empty p:last-child { font-size: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-empty-adventurer img { animation: none !important; }
}


/* Personal avatar selector */
.profile-avatar-button {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.profile-avatar-button:hover { transform: translateY(-2px) scale(1.035); }
.profile-avatar-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.profile-avatar { overflow: hidden; }
.profile-avatar.has-image { background: #11151a; }
.profile-avatar img,
.avatar-current-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-edit {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 2px solid var(--panel-solid);
  border-radius: 50%;
  color: var(--panel-solid);
  background: var(--ink);
  font-size: 0.62rem;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.32);
}
.avatar-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.avatar-modal.is-open { opacity: 1; pointer-events: auto; }
.avatar-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(15px);
}
.avatar-dialog {
  position: relative;
  width: min(780px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 16%, rgba(129, 137, 151, 0.16), transparent 33%),
    var(--panel-solid);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.58);
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}
.avatar-modal.is-open .avatar-dialog { transform: none; }
.avatar-dialog > header,
.avatar-section-heading,
.avatar-upload-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.avatar-dialog > header { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.avatar-dialog > header p,
.avatar-dialog-current p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.avatar-dialog h2,
.avatar-dialog h3 { margin: 0; }
.avatar-dialog-current {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
}
.avatar-dialog-current > div { display: grid; gap: 4px; min-width: 0; }
.avatar-dialog-current strong { font-size: 1rem; }
.avatar-dialog-current span { color: var(--muted); font-size: 0.76rem; }
.avatar-current-preview {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--panel-solid);
  background: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
}
.avatar-persona-section { margin-top: 18px; }
.avatar-section-heading span { color: var(--muted); font-size: 0.76rem; }
.avatar-persona-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.avatar-persona-option {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  text-align: left;
}
.avatar-persona-option:hover { transform: translateY(-2px); border-color: var(--muted); }
.avatar-persona-option.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.avatar-persona-option img { width: 52px; height: 52px; object-fit: cover; border-radius: 7px; }
.avatar-persona-option span { display: grid; min-width: 0; gap: 3px; }
.avatar-persona-option strong { font-size: 0.8rem; }
.avatar-persona-option small { overflow: hidden; color: var(--muted); font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }
.avatar-upload-panel {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
}
.avatar-upload-panel > div { display: grid; gap: 4px; }
.avatar-upload-panel span { color: var(--muted); font-size: 0.72rem; }
.avatar-feedback { min-height: 1.2em; margin: 10px 2px 0; color: var(--muted); font-size: 0.74rem; }
body[data-theme="light"] .avatar-modal-backdrop { background: rgba(227, 226, 221, 0.74); }
body[data-theme="light"] .avatar-dialog { box-shadow: 0 34px 90px rgba(40, 42, 44, 0.25); }
@media (max-width: 720px) {
  .avatar-persona-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avatar-dialog { padding: 16px; }
}
@media (max-width: 420px) {
  .avatar-modal { padding: 10px; }
  .avatar-persona-option { grid-template-columns: 44px minmax(0, 1fr); }
  .avatar-persona-option img { width: 44px; height: 44px; }
  .avatar-upload-panel { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-modal, .avatar-dialog, .profile-avatar-button { transition: none !important; }
}

body.profile-phone-modal-open {
  overflow: hidden;
}

.profile-phone-modal {
  position: fixed;
  inset: 0;
  z-index: 235;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.profile-phone-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.profile-phone-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
}

.profile-phone-dialog {
  position: relative;
  width: min(500px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 10%, rgba(134, 143, 159, 0.14), transparent 34%),
    var(--panel-solid);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.58);
  outline: 0;
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}

.profile-phone-modal.is-open .profile-phone-dialog {
  transform: none;
}

.profile-phone-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.profile-phone-dialog > header p,
.profile-phone-dialog > header h2,
.profile-phone-dialog-copy,
.profile-phone-change-form p {
  margin: 0;
}

.profile-phone-dialog > header p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.profile-phone-dialog > header h2 {
  font-size: 1.35rem;
}

.profile-phone-stage {
  display: grid;
  grid-template-columns: auto minmax(28px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.profile-phone-stage span {
  color: var(--muted);
  font-size: 0.68rem;
}

.profile-phone-stage span.is-active,
.profile-phone-stage span.is-complete {
  color: var(--ink);
}

.profile-phone-stage i {
  height: 1px;
  background: var(--line);
}

.profile-phone-stage.is-direct-new #profilePhoneStageOld,
.profile-phone-stage.is-direct-new i {
  display: none;
}

.profile-phone-stage.is-direct-new {
  grid-template-columns: 1fr;
}

.profile-phone-dialog-copy {
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.profile-phone-change-form {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.profile-phone-change-form > .primary-button {
  width: 100%;
}

.profile-phone-change-form .profile-contact-feedback {
  min-height: 1.2em;
}

body[data-theme="light"] .profile-phone-modal-backdrop {
  background: rgba(227, 226, 221, 0.76);
}

body[data-theme="light"] .profile-phone-dialog {
  box-shadow: 0 34px 90px rgba(40, 42, 44, 0.25);
}

@media (max-width: 520px) {
  .profile-phone-modal {
    padding: 12px;
  }

  .profile-phone-dialog {
    padding: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-phone-modal,
  .profile-phone-dialog {
    transition: none !important;
  }
}


/* Home video guide and site footer 2026-08-01 */
.home-view {
  align-content: start;
  justify-items: stretch;
  gap: 0;
  padding: 0;
  text-align: left;
}

.home-view::before {
  display: none;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-content: center;
  justify-items: center;
  gap: 30px;
  padding: 108px 32px 72px;
  text-align: center;
  isolation: isolate;
}

.home-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(78vw, 760px);
  aspect-ratio: 1 / 0.42;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, transparent 0 28%, rgba(255, 255, 255, 0.09) 31%, transparent 47%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08), transparent 64%);
  filter: blur(9px);
  opacity: 0.78;
  transform: translate(-50%, -45%) rotate(-10deg);
  pointer-events: none;
}

.home-video-cue {
  display: inline-grid;
  justify-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 180ms ease;
}

.home-video-cue:hover,
.home-video-cue:focus-visible {
  color: var(--ink);
}

.home-video-cue small {
  color: currentColor;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  opacity: 0.68;
}

.home-video-cue svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: homeVideoCue 1.9s ease-in-out infinite;
}

.home-video-section {
  position: relative;
  width: min(885px, calc(100% - 64px));
  margin: 0 auto;
  padding: 112px 0 128px;
}

.home-video-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: -1;
  width: min(76vw, 920px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.065), transparent 66%);
  filter: blur(28px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.home-section-heading {
  width: min(760px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.home-section-heading h2 {
  margin: 10px 0 14px;
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(2rem, 4.6vw, 4.3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.home-section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.6vw, 1.08rem);
  line-height: 1.8;
}

.home-video-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.16), transparent 17%),
    linear-gradient(145deg, rgba(26, 27, 31, 0.96), rgba(4, 4, 5, 0.98) 68%);
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.5),
    inset 0 0 100px rgba(255, 255, 255, 0.025);
  isolation: isolate;
}

.home-video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(112deg, transparent 25%, rgba(255, 255, 255, 0.07) 49%, transparent 72%);
  transform: translateX(-115%);
  animation: homeVideoScan 6s ease-in-out infinite;
}

.home-video-shell video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.home-video-shell[data-video-state="pending"] video {
  visibility: hidden;
}

.video-guide-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.video-guide-orbit {
  position: absolute;
  z-index: -1;
  width: min(46%, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(255, 255, 255, 0.018),
    0 0 0 76px rgba(255, 255, 255, 0.012);
  animation: homeVideoOrbit 8s linear infinite;
}

.video-guide-orbit::before,
.video-guide-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.7);
}

.video-guide-orbit::before {
  left: 11%;
  top: 14%;
}

.video-guide-orbit::after {
  right: 3%;
  bottom: 28%;
}

.home-video-play {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 15px;
  padding: 20px 28px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: center;
}

.home-video-play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #050505;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 0 rgba(255, 255, 255, 0.24),
    0 20px 48px rgba(0, 0, 0, 0.34);
  animation: homeVideoPulse 2.5s ease-out infinite;
  transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.home-video-play-icon::before,
.home-video-play-icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.home-video-play-icon::before {
  inset: 7px;
  border: 1px solid rgba(7, 8, 10, 0.14);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.72);
}

.home-video-play-icon::after {
  inset: -10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 28px rgba(215, 202, 176, 0.16);
  transition: inset 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.home-video-play:hover .home-video-play-icon,
.home-video-play:focus-visible .home-video-play-icon {
  transform: scale(1.045);
  background: #fff;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.42);
}

.home-video-play:hover .home-video-play-icon::after,
.home-video-play:focus-visible .home-video-play-icon::after {
  inset: -14px;
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow: 0 0 34px rgba(215, 202, 176, 0.26);
}

.home-video-play-icon svg {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.home-video-play-copy {
  display: grid;
  gap: 5px;
}

.home-video-play-copy strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.home-video-play-copy small {
  color: var(--muted);
  font-size: 0.75rem;
}

.home-video-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.home-video-shell[data-video-state="playing"] .home-video-play,
.home-video-shell[data-video-state="playing"] .video-guide-grid,
.home-video-shell[data-video-state="playing"] .video-guide-orbit,
.home-video-shell[data-video-state="playing"] .home-video-meta {
  opacity: 0;
  pointer-events: none;
}

.home-video-shell.is-pending-pulse {
  animation: homeVideoPending 520ms ease;
}

.home-video-shell::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.48) 50%, transparent 66%);
  transform: translateX(-95%) skewX(-12deg);
}

.home-video-shell[data-video-state="starting"]::before {
  animation: homeVideoStartFlash 820ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-video-shell video {
  transition: filter 520ms ease, opacity 520ms ease, transform 900ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.home-video-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 5, 7, 0.04), rgba(4, 5, 7, 0.08) 48%, rgba(4, 5, 7, 0.32)),
    radial-gradient(circle at center, transparent 14%, rgba(4, 5, 7, 0.14) 92%);
  opacity: 1;
  transition: opacity 520ms ease, background 520ms ease;
}

.home-video-shell:not([data-video-state="pending"]) .home-video-play {
  z-index: 3;
  color: #ffffff;
  transition: opacity 300ms ease, transform 520ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.home-video-shell:not([data-video-state="pending"]) .home-video-play-copy small {
  color: rgba(255, 255, 255, 0.7);
}

.home-video-shell:not([data-video-state="pending"]) .home-video-play-icon {
  color: #07080a;
  background: rgba(255, 255, 255, 0.95);
}

.home-video-icon-replay {
  display: none;
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-video-shell[data-video-state="ready"] video,
.home-video-shell[data-video-state="error"] video,
.home-video-shell[data-video-state="ended"] video {
  filter: brightness(0.9) saturate(0.9);
  transform: scale(1.012);
}

.home-video-shell[data-video-state="paused"] video {
  opacity: 0;
  filter: none;
  transform: scale(1.008);
}

.home-video-shell[data-video-state="paused"] .home-video-shade {
  opacity: 1;
  background: #000;
  backdrop-filter: none;
}

.home-video-shell[data-video-state="starting"] video {
  filter: brightness(0.9) saturate(0.92);
  transform: scale(1.004);
}

.home-video-shell[data-video-state="playing"] video {
  filter: none;
  transform: scale(1);
}

.home-video-shell[data-video-state="starting"] .home-video-play {
  opacity: 0;
  transform: scale(1.16);
  pointer-events: none;
}

.home-video-shell[data-video-state="starting"] .home-video-shade,
.home-video-shell[data-video-state="playing"] .home-video-shade {
  opacity: 0;
}

.home-video-shell[data-video-state="ended"] .home-video-icon-play {
  display: none;
}

.home-video-shell[data-video-state="ended"] .home-video-icon-replay {
  display: block;
}

.home-video-shell[data-video-state="ended"] .home-video-play {
  animation: homeVideoReplayEnter 620ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.home-video-shell[data-video-state="ended"] .home-video-play-icon {
  animation: homeVideoReplayPulse 2.8s ease-out infinite;
}

.home-video-hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer {
  width: 100%;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(2, minmax(180px, 1fr));
  gap: 56px;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 68px 0 52px;
}

.site-footer-brand,
.site-footer-column {
  min-width: 0;
}

.site-footer-brand-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.site-footer-logo {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 71px;
  height: 62px;
  overflow: hidden;
}

.site-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1) brightness(1.35) contrast(1.05);
  opacity: 0.92;
  transition: filter 220ms ease, opacity 220ms ease;
}

.site-footer-mark {
  display: block;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.3rem, 1.7vw, 1.72rem);
  font-style: normal;
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.site-footer-brand p,
.site-footer-column p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.8;
}

.site-footer-column p {
  overflow-wrap: anywhere;
}

.site-footer-column h2 {
  margin: 0 0 16px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.site-footer-column p + p {
  margin-top: 4px;
}

.footer-pending {
  color: rgba(248, 248, 243, 0.4);
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 26px;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  color: rgba(248, 248, 243, 0.46);
  font-size: 0.68rem;
  line-height: 1.6;
}

.home-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-theme="light"] .home-hero::before {
  background:
    radial-gradient(ellipse at center, transparent 0 28%, rgba(0, 0, 0, 0.1) 31%, transparent 48%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.06), transparent 66%);
  opacity: 0.52;
}

body[data-theme="light"] .home-video-section::before {
  background: radial-gradient(circle, rgba(17, 19, 24, 0.07), transparent 66%);
}

body[data-theme="light"] .home-video-shell {
  border-color: rgba(17, 19, 24, 0.16);
  background:
    radial-gradient(circle at 50% 46%, rgba(17, 19, 24, 0.12), transparent 17%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(222, 221, 216, 0.96));
  box-shadow:
    0 36px 90px rgba(32, 36, 42, 0.18),
    inset 0 0 100px rgba(17, 19, 24, 0.025);
}

body[data-theme="light"] .video-guide-grid {
  background-image:
    linear-gradient(rgba(17, 19, 24, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, 0.07) 1px, transparent 1px);
}

body[data-theme="light"] .video-guide-orbit {
  border-color: rgba(17, 19, 24, 0.16);
  box-shadow:
    0 0 0 30px rgba(17, 19, 24, 0.025),
    0 0 0 76px rgba(17, 19, 24, 0.016);
}

body[data-theme="light"] .home-video-play-icon {
  border-color: rgba(17, 19, 24, 0.22);
  color: #fff;
  background: #111318;
  box-shadow: 0 20px 48px rgba(32, 36, 42, 0.2);
}

body[data-theme="light"] .home-video-meta {
  color: rgba(17, 19, 24, 0.46);
}

body[data-theme="light"] .home-video-shell:not([data-video-state="pending"]) .home-video-meta,
body[data-theme="light"] .home-video-shell:not([data-video-state="pending"]) .home-video-play {
  color: #ffffff;
}

body[data-theme="light"] .home-video-shell:not([data-video-state="pending"]) .home-video-play-icon {
  border-color: rgba(255, 255, 255, 0.48);
  color: #07080a;
  background: rgba(255, 255, 255, 0.95);
}

body[data-theme="light"] .site-footer {
  background: rgba(255, 255, 255, 0.46);
}

body[data-theme="light"] .site-footer-logo img {
  filter: none;
  opacity: 0.9;
}

body[data-theme="light"] .footer-pending,
body[data-theme="light"] .site-footer-legal {
  color: rgba(17, 19, 24, 0.46);
}

@keyframes homeVideoCue {
  0%, 100% { transform: translateY(0); opacity: 0.58; }
  50% { transform: translateY(5px); opacity: 1; }
}

@keyframes homeVideoPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.24), 0 20px 48px rgba(0, 0, 0, 0.34); }
  72%, 100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0), 0 20px 48px rgba(0, 0, 0, 0.34); }
}

@keyframes homeVideoOrbit {
  to { transform: rotate(360deg); }
}

@keyframes homeVideoScan {
  0%, 24% { transform: translateX(-115%); }
  60%, 100% { transform: translateX(115%); }
}

@keyframes homeVideoPending {
  50% { border-color: rgba(255, 255, 255, 0.52); transform: scale(0.996); }
}

@keyframes homeVideoStartFlash {
  0% { opacity: 0; transform: translateX(-95%) skewX(-12deg); }
  32% { opacity: 0.68; }
  100% { opacity: 0; transform: translateX(95%) skewX(-12deg); }
}

@keyframes homeVideoReplayEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes homeVideoReplayPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.22), 0 20px 48px rgba(0, 0, 0, 0.34); }
  72%, 100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0), 0 20px 48px rgba(0, 0, 0, 0.34); }
}

@media (max-width: 760px) {
  .home-video-section {
    width: min(100% - 36px, 680px);
    padding: 88px 0 96px;
  }

  .home-section-heading {
    margin-bottom: 30px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 28px;
    width: calc(100% - 36px);
    padding: 50px 0 38px;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer-legal {
    width: calc(100% - 36px);
  }
}

@media (max-width: 560px) {
  .home-view {
    gap: 0;
    padding: 0;
  }

  .home-hero {
    min-height: 100svh;
    gap: 20px;
    padding: 96px 18px 58px;
  }

  .home-video-section {
    width: calc(100% - 28px);
    padding: 76px 0 84px;
  }

  .home-section-heading h2 {
    font-size: clamp(1.85rem, 10vw, 2.7rem);
  }

  .home-video-shell {
    min-height: 220px;
    border-radius: 10px;
  }

  .home-video-play {
    gap: 10px;
    padding: 14px;
  }

  .home-video-play-icon {
    width: 64px;
    height: 64px;
  }

  .home-video-play-icon svg {
    width: 28px;
    height: 28px;
  }

  .home-video-meta {
    left: 12px;
    right: 12px;
    bottom: 10px;
    font-size: 0.55rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer-brand {
    grid-column: auto;
  }

  .site-footer-brand-heading {
    gap: 12px;
  }

  .site-footer-logo {
    width: 46px;
    height: 40px;
  }

  .site-footer-legal {
    flex-direction: column;
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-brand-logo,
  .home-brand-typewriter,
  .home-brand-typewriter::after {
    animation: none;
  }

  .home-brand-typewriter {
    clip-path: none;
  }

  .home-brand-typewriter::after {
    display: none;
  }

  .home-video-cue svg,
  .home-video-shell::after,
  .home-video-shell::before,
  .video-guide-orbit,
  .home-video-play-icon,
  .home-video-shell.is-pending-pulse {
    animation: none;
  }

  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 2026-08-02 model radar navigation count */
.knowledge-count-models .knowledge-count-value {
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}


/* AIBTI single-question illustrated flow · 2026-08-03 */
.test-view {
  width: min(1040px, 100%);
  padding-bottom: 48px;
}

.test-view .progress-track,
.test-view .topbar,
.test-view .question-list,
.test-view .test-navigation-bar {
  width: min(960px, 100%);
  margin-inline: auto;
}

.test-view .progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.question-list[data-transition="forward"] .is-single-question {
  animation: quizQuestionForward 440ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.question-list[data-transition="backward"] .is-single-question {
  animation: quizQuestionBackward 400ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.question-panel.is-single-question {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border-color: rgba(248, 248, 243, 0.18);
  background:
    linear-gradient(145deg, rgba(22, 24, 29, 0.94), rgba(8, 9, 12, 0.96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.question-panel.is-single-question.is-answered {
  border-color: rgba(248, 248, 243, 0.28);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.question-illustration {
  position: relative;
  width: 100%;
  height: clamp(220px, 31vw, 310px);
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(248, 248, 243, 0.12);
  background: #090b0f;
  isolation: isolate;
}

.question-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 4, 7, 0.04) 42%, rgba(3, 4, 7, 0.66) 100%),
    linear-gradient(90deg, rgba(3, 4, 7, 0.22), transparent 30% 72%, rgba(3, 4, 7, 0.18));
  pointer-events: none;
}

.question-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transform: scale(1.015);
  animation: quizImageSettle 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.question-illustration figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.question-body {
  display: grid;
  gap: 22px;
  padding: 28px 30px 30px;
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.is-single-question .question-topic {
  display: inline-flex;
  width: auto;
  height: 30px;
  margin: 0;
  padding: 0 11px;
  border-radius: 999px;
  border-color: rgba(248, 248, 243, 0.2);
  color: rgba(248, 248, 243, 0.7);
  background: rgba(248, 248, 243, 0.055);
  box-shadow: none;
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap;
}

.is-single-question .question-topic::before,
.is-single-question .question-topic::after {
  display: none;
}

.is-single-question .question-number {
  font-size: 0.7rem;
  letter-spacing: 0.11em;
}

.is-single-question .question-copy {
  gap: 8px;
}

.is-single-question .question-copy h3 {
  max-width: 860px;
  font-size: clamp(1.42rem, 2.2vw, 1.9rem);
  font-weight: 680;
  line-height: 1.38;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.is-single-question .question-copy h3:focus {
  outline: none;
}

.is-single-question .question-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.is-single-question .option-list {
  display: grid;
  grid-column: auto;
  grid-template-columns: 1fr;
  gap: 9px;
}

.is-single-question .scale-option {
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 56px;
  padding: 9px 14px;
  border-color: rgba(248, 248, 243, 0.14);
  border-radius: 9px;
  color: rgba(248, 248, 243, 0.74);
  background: rgba(248, 248, 243, 0.035);
  text-align: left;
  transform: none;
}

.is-single-question .scale-option:hover,
.is-single-question .scale-option:focus-visible {
  color: var(--ink);
  border-color: rgba(248, 248, 243, 0.34);
  background: rgba(248, 248, 243, 0.075);
  transform: translateX(3px);
}

.is-single-question .scale-option.is-selected {
  color: #111318;
  border-color: #eeeae1;
  background: linear-gradient(90deg, #f3efe7, #d8d6d1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transform: translateX(3px);
}

.is-single-question .scale-option strong {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
  line-height: 1;
  transform: none;
}

.is-single-question .scale-option span {
  font-size: 0.86rem;
  line-height: 1.35;
}

.is-single-question .scale-option.is-selected::after {
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}

.is-single-question .option-list.needs-answer {
  animation: quizNeedAnswer 360ms ease;
}

.test-navigation-bar {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 20px 68px rgba(0, 0, 0, 0.34);
}

.test-navigation-bar .test-completion {
  justify-items: center;
  text-align: center;
}

.test-navigation-bar .test-completion strong {
  font-size: 0.88rem;
}

.test-navigation-bar .test-completion span {
  font-size: 0.76rem;
}

.question-nav-button,
.test-navigation-bar .submit-test-button {
  min-width: 126px;
  min-height: 46px;
}

.test-navigation-bar [hidden] {
  display: none !important;
}

@keyframes quizQuestionForward {
  from { opacity: 0; transform: translate3d(24px, 0, 0) scale(0.992); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes quizQuestionBackward {
  from { opacity: 0; transform: translate3d(-24px, 0, 0) scale(0.992); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes quizImageSettle {
  from { opacity: 0.45; transform: scale(1.045); filter: saturate(0.72); }
  to { opacity: 1; transform: scale(1.015); filter: saturate(1); }
}

@keyframes quizNeedAnswer {
  0%, 100% { transform: translateX(0); }
  28% { transform: translateX(-5px); }
  62% { transform: translateX(5px); }
}

body[data-theme="light"] .question-panel.is-single-question {
  border-color: rgba(17, 19, 24, 0.13);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 78px rgba(41, 46, 54, 0.15);
}

body[data-theme="light"] .question-panel.is-single-question.is-answered {
  border-color: rgba(17, 19, 24, 0.2);
  box-shadow: 0 28px 78px rgba(41, 46, 54, 0.15);
}

body[data-theme="light"] .question-illustration {
  border-bottom-color: rgba(17, 19, 24, 0.12);
}

body[data-theme="light"] .question-illustration img {
  filter: brightness(1.06) saturate(0.86);
}

body[data-theme="light"] .is-single-question .question-topic {
  border-color: rgba(17, 19, 24, 0.14);
  color: rgba(17, 19, 24, 0.64);
  background: rgba(17, 19, 24, 0.045);
}

body[data-theme="light"] .is-single-question .scale-option {
  border-color: rgba(17, 19, 24, 0.12);
  color: rgba(17, 19, 24, 0.72);
  background: rgba(17, 19, 24, 0.025);
}

body[data-theme="light"] .is-single-question .scale-option:hover,
body[data-theme="light"] .is-single-question .scale-option:focus-visible {
  color: var(--ink);
  border-color: rgba(17, 19, 24, 0.26);
  background: rgba(17, 19, 24, 0.055);
}

body[data-theme="light"] .is-single-question .scale-option.is-selected {
  color: #f6f5f1;
  border-color: #25282e;
  background: linear-gradient(90deg, #202329, #4d5159);
}

body[data-theme="light"] .test-navigation-bar {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 62px rgba(41, 46, 54, 0.13);
}

@media (max-width: 680px) {
  .test-view {
    padding-inline: 14px;
  }

  .test-view .topbar {
    padding-right: 50px;
  }

  .question-illustration {
    height: clamp(160px, 50vw, 210px);
  }

  .question-illustration figcaption {
    left: 14px;
    right: 14px;
    bottom: 11px;
    font-size: 0.58rem;
  }

  .question-body {
    gap: 17px;
    padding: 19px 16px 20px;
  }

  .is-single-question .question-copy h3 {
    font-size: 1.25rem;
    line-height: 1.42;
  }

  .is-single-question .question-copy p {
    font-size: 0.75rem;
  }

  .is-single-question .scale-option {
    min-height: 53px;
    padding: 8px 12px;
  }

  .is-single-question .scale-option span {
    font-size: 0.78rem;
  }

  .test-navigation-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
  }

  .test-navigation-bar .question-nav-button,
  .test-navigation-bar .submit-test-button {
    width: 100%;
    min-width: 0;
  }

  .test-navigation-bar .submit-test-button {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .question-list[data-transition] .is-single-question,
  .question-illustration img,
  .is-single-question .option-list.needs-answer {
    animation: none;
  }
}


/* Max AI founder and about page */
.home-section-heading h2 {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.site-footer-about-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer-column-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.site-footer-column-title h2 {
  margin: 0;
}

.site-footer-column-title svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.site-footer-about-link:hover,
.site-footer-about-link:focus-visible {
  color: var(--ink);
  transform: translateX(3px);
}

.site-footer-about-link:hover .site-footer-column-title svg,
.site-footer-about-link:focus-visible .site-footer-column-title svg {
  transform: translateX(4px);
}

.about-view {
  align-content: start;
  justify-items: center;
  gap: 18px;
  background: transparent;
}

.about-topbar,
.about-paper,
.about-footer {
  width: min(1120px, 100%);
}

.about-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.about-topbar > div {
  min-width: 0;
}

.about-topbar p,
.about-topbar span {
  margin: 0;
}

.about-topbar > div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.about-topbar-year {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.about-paper {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 16, 20, 0.92);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.22);
}

.about-index {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.45fr);
  min-height: 430px;
  border-bottom: 1px solid var(--line);
}

.about-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(46px, 6vw, 72px);
}

.about-hero h1 {
  max-width: 890px;
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(2.55rem, 4.4vw, 4.15rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.about-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.9;
}

.about-manifesto {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.about-manifesto span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.about-manifesto strong {
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
}

.about-purpose {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: clamp(52px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

.about-purpose header {
  max-width: 760px;
}

.about-purpose h2,
.about-bp h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.about-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
  align-self: end;
}

.about-purpose-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.95;
}

.founder-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  min-height: 690px;
  border-bottom: 1px solid var(--line);
}

.founder-portrait-wrap {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  border-right: 1px solid var(--line);
  background: #d7d2ca;
}

.founder-portrait-wrap > span {
  position: absolute;
  top: 24px;
  left: 26px;
  z-index: 2;
  padding: 7px 9px;
  color: #17191d;
  background: rgba(247, 246, 241, 0.72);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  backdrop-filter: blur(12px);
}

.founder-portrait-wrap img {
  width: 100%;
  height: 100%;
  min-height: 690px;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(0.84) contrast(1.02);
}

.founder-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 96px);
}

.founder-role {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.founder-story h2 {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(2.8rem, 4.7vw, 4.6rem);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.founder-intro {
  max-width: 600px;
  margin: 28px 0 42px;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.75;
}

.founder-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.founder-facts > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.founder-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.founder-facts dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.founder-achievements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.founder-achievements article {
  position: relative;
  min-height: 390px;
  padding: clamp(44px, 5vw, 64px);
}

.founder-achievements article + article {
  border-left: 1px solid var(--line);
}

.about-card-number {
  position: absolute;
  top: 26px;
  right: 30px;
  color: rgba(248, 248, 243, 0.15);
  font-family: Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
}

.founder-achievements h3 {
  position: relative;
  max-width: 510px;
  margin: 0 0 34px;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.founder-achievements ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.founder-achievements li {
  position: relative;
  padding: 16px 0 16px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.75;
}

.founder-achievements li::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.about-bp {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: clamp(44px, 8vw, 110px);
  padding: clamp(52px, 6vw, 76px);
  background: rgba(255, 255, 255, 0.014);
}

.about-bp > div > p:last-child {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.about-bp-download {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 18px;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: not-allowed;
  opacity: 0.74;
}

.about-bp-download span {
  font-size: 0.92rem;
  font-weight: 700;
}

.about-bp-download small {
  color: var(--muted);
  font-size: 0.68rem;
}

.about-bp-download svg {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 2px 18px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

body[data-theme="light"] .about-view {
  background: transparent;
}

body[data-theme="light"] .about-paper {
  background: rgba(248, 247, 243, 0.94);
  box-shadow: 0 18px 54px rgba(32, 36, 42, 0.1);
}

body[data-theme="light"] .about-manifesto {
  background: rgba(17, 19, 24, 0.018);
}

body[data-theme="light"] .about-card-number {
  color: rgba(17, 19, 24, 0.12);
}

body[data-theme="light"] .about-bp {
  background: rgba(17, 19, 24, 0.012);
}

body[data-theme="light"] .about-bp-download {
  background: rgba(17, 19, 24, 0.025);
}

/* 2026-08-14 shared user feedback */
.global-feedback-button { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(14,16,20,.92); box-shadow: 0 14px 44px rgba(0,0,0,.28); backdrop-filter: blur(18px); }
.global-feedback-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.global-feedback-button span { font-size: .76rem; font-weight: 700; }
.global-feedback-button:hover { transform: translateY(-2px); border-color: currentColor; }
.feedback-modal { position: fixed; inset: 0; z-index: 130; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.66); backdrop-filter: blur(14px); }
.feedback-modal.is-open { display: grid; }
.feedback-dialog { width: min(610px,100%); max-height: min(820px,calc(100vh - 40px)); overflow: auto; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #0e1014; box-shadow: 0 28px 100px rgba(0,0,0,.5); }
.feedback-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.feedback-dialog header p { margin: 0 0 5px; color: var(--muted); font: 700 .62rem/1 "IBM Plex Mono",monospace; letter-spacing: .12em; }
.feedback-dialog h2 { margin: 0; font-size: 1.45rem; }
.feedback-dialog header button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 7px; color: inherit; background: transparent; font-size: 1.35rem; }
.feedback-dialog form { display: grid; gap: 17px; padding: 24px; }
.feedback-dialog label { display: grid; gap: 8px; color: var(--muted); font-size: .75rem; }
.feedback-dialog input,.feedback-dialog textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: rgba(255,255,255,.035); resize: vertical; }
.feedback-dialog input:focus,.feedback-dialog textarea:focus { outline: 1px solid var(--ink); outline-offset: 2px; }
#feedbackFormStatus { min-height: 18px; margin: 0; color: var(--muted); font-size: .72rem; }
#submitFeedbackButton,.feedback-success button { min-height: 44px; border: 0; border-radius: 7px; color: #101216; background: #efefea; font-weight: 800; }
.feedback-success { padding: 52px 30px; text-align: center; }
.feedback-success > span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 50%; font-size: 1.4rem; }
.feedback-success h3 { margin: 0 0 10px; font-size: 1.5rem; }
.feedback-success p { max-width: 430px; margin: 0 auto 24px; color: var(--muted); line-height: 1.8; }
.feedback-success button { min-width: 150px; }
body[data-theme="light"] .global-feedback-button { color: #17191d; background: rgba(255,255,255,.92); }
body[data-theme="light"] .feedback-dialog { color: #17191d; background: #fff; }
body[data-theme="light"] .feedback-dialog input,body[data-theme="light"] .feedback-dialog textarea { background: #f5f5f2; }
body.feedback-open { overflow: hidden; }
@media(max-width:640px){.global-feedback-button{right:14px;bottom:14px}.global-feedback-button span{display:none}.global-feedback-button{width:46px;padding:0;justify-content:center}.feedback-modal{padding:10px}.feedback-dialog{max-height:calc(100vh - 20px)}}

@media (max-width: 920px) {
  .about-hero,
  .founder-section {
    grid-template-columns: 1fr;
  }

  .about-manifesto {
    min-height: 250px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .about-purpose,
  .about-bp {
    grid-template-columns: 1fr;
  }

  .founder-portrait-wrap,
  .founder-portrait-wrap img {
    min-height: 620px;
  }
}

@media (max-width: 640px) {
  .home-section-heading h2 {
    font-size: clamp(0.98rem, 4.5vw, 1.28rem);
    letter-spacing: -0.055em;
  }

  .about-view {
    gap: 14px;
    padding: 18px 14px;
  }

  .about-topbar-year {
    display: none;
  }

  .about-paper {
    border-radius: 9px;
  }

  .about-hero {
    min-height: auto;
  }

  .about-hero-copy,
  .about-purpose,
  .founder-story,
  .founder-achievements article,
  .about-bp {
    padding: 48px 24px;
  }

  .about-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .about-purpose-grid,
  .founder-achievements {
    grid-template-columns: 1fr;
  }

  .about-purpose-grid {
    gap: 20px;
  }

  .founder-portrait-wrap,
  .founder-portrait-wrap img {
    min-height: 500px;
  }

  .founder-achievements article {
    min-height: auto;
  }

  .founder-achievements article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .founder-facts > div {
    grid-template-columns: 64px 1fr;
  }

  .about-footer {
    flex-direction: column;
  }
}

.news-load-more { grid-column: 1 / -1; justify-self: center; margin: 20px auto; min-height: 44px; }
