﻿:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-strong: #f9fbfe;
  --text: #172033;
  --muted: #647084;
  --line: #dce4ef;
  --brand: #0f6bff;
  --brand-strong: #064fc4;
  --embedded: #0a9f72;
  --ai: #7c4dff;
  --warning: #e0a100;
  --danger: #c44b56;
  --shadow: 0 20px 50px rgba(23, 32, 51, 0.11);
  --radius: 8px;
}

body.dark {
  color-scheme: dark;
  --bg: #080a0d;
  --surface: #111418;
  --surface-strong: #171b21;
  --text: #e6e8eb;
  --muted: #969ea8;
  --line: rgba(255, 255, 255, 0.09);
  --brand: #38bdf8;
  --brand-strong: #7dd3fc;
  --embedded: #34d399;
  --ai: #a78bfa;
  --warning: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(148, 163, 184, 0.028) 1px, transparent 1px),
    var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(15, 107, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 159, 114, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--text);
  font-family:
    Inter,
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  z-index: 5;
}

body.dark .sidebar {
  background: rgba(12, 15, 19, 0.92);
}

body.dark .topbar,
body.dark.tools-page .topbar {
  background: linear-gradient(to bottom, rgba(8, 10, 13, 0.94) 74%, transparent);
}

body.dark .search-wrap input,
body.dark .custom-select-trigger,
body.dark select,
body.dark input,
body.dark textarea {
  background: #101318;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

body.dark .suggestions,
body.dark .custom-options {
  background: #111418;
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

body.dark .ghost-button {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.075), rgba(52, 211, 153, 0.045)), #151922;
  box-shadow: none;
}

body.dark .ghost-button:hover {
  border-color: rgba(125, 211, 252, 0.38);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(52, 211, 153, 0.07)), #171c24;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

body.dark .primary-button,
body.dark .page-button.active {
  color: #041016;
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.16);
}

body.dark .hero-panel,
body.dark .section-block,
body.dark .project-card,
body.dark .project-card.featured,
body.dark .tool-card,
body.dark .shop-card,
body.dark .career-overview-card,
body.dark .career-rank-panel,
body.dark .paper-result-area,
body.dark .paper-citation-area,
body.dark .writer-tool-panel,
body.dark .module-card,
body.dark .serial-panel,
body.dark .serial-pro-workbench,
body.dark .about-team-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 36%),
    var(--surface-strong);
  border-color: var(--line);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

body.dark .hero-panel {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.075), transparent 42%),
    linear-gradient(315deg, rgba(52, 211, 153, 0.06), transparent 40%),
    var(--surface);
}

body.dark .project-card::before {
  background: radial-gradient(
    260px circle at var(--spotlight-x, 50%) var(--spotlight-y, 0%),
    rgba(56, 189, 248, 0.11),
    transparent 68%
  );
}

body.dark .project-card:hover,
body.dark .project-card.expanded,
body.dark .tool-card:hover,
body.dark .shop-card:hover {
  border-color: rgba(125, 211, 252, 0.32);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 107, 255, 0.16);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spinner {
  position: relative;
  width: 70.4px;
  height: 70.4px;
  flex: 0 0 70.4px;
  --clr: rgb(247, 197, 159);
  --clr-alpha: rgba(247, 197, 159, 0.1);
  animation: spinner 4.8s infinite ease;
  transform-style: preserve-3d;
}

.spinner > div {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3.5px solid var(--clr);
  background-color: var(--clr-alpha);
}

.spinner div:nth-of-type(1) {
  transform: translateZ(-35.2px) rotateY(180deg);
}

.spinner div:nth-of-type(2) {
  transform: rotateY(-270deg) translateX(50%);
  transform-origin: top right;
}

.spinner div:nth-of-type(3) {
  transform: rotateY(270deg) translateX(-50%);
  transform-origin: center left;
}

.spinner div:nth-of-type(4) {
  transform: rotateX(90deg) translateY(-50%);
  transform-origin: top center;
}

.spinner div:nth-of-type(5) {
  transform: rotateX(-90deg) translateY(50%);
  transform-origin: bottom center;
}

.spinner div:nth-of-type(6) {
  transform: translateZ(35.2px);
}

@keyframes spinner {
  0% {
    transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
  }

  50% {
    transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
  }

  100% {
    transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
  }
}

.spinner-board {
  zoom: 1.16;
}

.brand strong,
.brand span {
  display: block;
}

.true-focus {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 0.08em;
  min-height: 1.35em;
  isolation: isolate;
  white-space: nowrap;
}

.true-focus-char {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: var(--text);
  filter: blur(0.65px);
  opacity: 0.46;
  transform: translateY(1px) scale(0.98);
  transition:
    color 0.38s ease,
    filter 0.38s ease,
    opacity 0.38s ease,
    transform 0.38s ease;
}

.true-focus-char.is-focused {
  color: var(--brand-strong);
  filter: blur(0);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.true-focus-frame {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: var(--focus-left, 0px);
  width: var(--focus-width, 0px);
  height: calc(100% + 12px);
  pointer-events: none;
  transform: translateY(-50%);
  transition:
    left 0.62s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.62s cubic-bezier(0.2, 0.8, 0.2, 1);
  background:
    linear-gradient(var(--brand), var(--brand)) left top / 9px 1px no-repeat,
    linear-gradient(var(--brand), var(--brand)) left top / 1px 9px no-repeat,
    linear-gradient(var(--brand), var(--brand)) right top / 9px 1px no-repeat,
    linear-gradient(var(--brand), var(--brand)) right top / 1px 9px no-repeat,
    linear-gradient(var(--brand), var(--brand)) left bottom / 9px 1px no-repeat,
    linear-gradient(var(--brand), var(--brand)) left bottom / 1px 9px no-repeat,
    linear-gradient(var(--brand), var(--brand)) right bottom / 9px 1px no-repeat,
    linear-gradient(var(--brand), var(--brand)) right bottom / 1px 9px no-repeat;
  opacity: 0.9;
}

.true-focus-compact {
  gap: 0.06em;
  min-height: 1.2em;
}

.true-focus-compact .true-focus-char {
  color: var(--brand-strong);
  filter: blur(0.45px);
}

.true-focus-compact .true-focus-char.is-focused {
  color: var(--brand-strong);
}

.true-focus-reduced .true-focus-char {
  filter: none;
  opacity: 1;
  transform: none;
}

.true-focus-reduced .true-focus-frame {
  transition: none;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.brand .true-focus {
  margin-top: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.brand .true-focus-char {
  font-size: inherit;
}

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

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  overflow: hidden;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  transition:
    background 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-item::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 3px;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0;
  transform: scaleY(0.35);
  transform-origin: center;
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-item::after {
  content: "";
  position: absolute;
  top: var(--nav-ripple-y, 50%);
  left: var(--nav-ripple-x, 50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(15, 107, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
}

.nav-item > * {
  position: relative;
  z-index: 1;
}

.nav-item:hover,
.nav-item.active,
.nav-item.is-navigating {
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.16), rgba(15, 107, 255, 0.07)),
    rgba(15, 107, 255, 0.06);
  color: var(--brand-strong);
  box-shadow: 0 10px 24px rgba(15, 107, 255, 0.08);
  transform: translateX(2px);
}

.nav-item.active::before,
.nav-item.is-navigating::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-item.is-clicking::after {
  animation: nav-click-pulse 0.48s ease-out both;
}

.nav-item:active {
  transform: translateX(1px) scale(0.985);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.signal-panel {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.resource-visual {
  position: relative;
  height: 86px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(15, 107, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 159, 114, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(15, 107, 255, 0.13), rgba(10, 159, 114, 0.1));
  background-size: 18px 18px, 18px 18px, auto;
}

.doc-stack {
  position: absolute;
  top: 15px;
  left: 18px;
  width: 64px;
  height: 56px;
}

.doc-card {
  position: absolute;
  border: 1px solid rgba(15, 107, 255, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.1);
}

.doc-back {
  inset: 4px 0 0 10px;
  opacity: 0.78;
}

.doc-front {
  inset: 0 10px 6px 0;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 12px;
}

.doc-front i {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--embedded));
}

.doc-front i:nth-child(2) {
  width: 72%;
}

.doc-front i:nth-child(3) {
  width: 48%;
}

.code-mark,
.download-mark {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  font-weight: 900;
}

.code-mark {
  right: 22px;
  top: 16px;
  width: 48px;
  height: 34px;
  border: 1px solid rgba(124, 77, 255, 0.24);
  background: rgba(124, 77, 255, 0.1);
  color: var(--ai);
}

.download-mark {
  right: 34px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  background: rgba(10, 159, 114, 0.14);
  color: var(--embedded);
}

.resource-line {
  position: absolute;
  border-radius: 999px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--embedded), transparent);
}

.line-a {
  left: 82px;
  right: 76px;
  top: 36px;
}

.line-b {
  left: 72px;
  right: 70px;
  bottom: 27px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.signal-panel p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.signal-panel strong {
  font-size: 30px;
}

.signal-panel span {
  color: var(--muted);
  font-size: 13px;
}

.main {
  min-width: 0;
  padding: 20px 28px 110px;
  animation: page-content-in 0.58s cubic-bezier(0.2, 0.8, 0.22, 1) both;
}

body.page-entering .main {
  animation: page-content-in 0.62s cubic-bezier(0.2, 0.8, 0.22, 1) both;
}

body.page-leaving .main {
  opacity: 0;
  filter: blur(2px);
  transform: translateX(24px) rotateY(-7deg) scale(0.985);
  transition:
    opacity 0.42s ease,
    filter 0.42s ease,
    transform 0.42s cubic-bezier(0.2, 0.8, 0.22, 1);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 12px 0 20px;
  background: linear-gradient(to bottom, var(--bg) 74%, transparent);
}

body.tools-page .main {
  padding-top: 12px;
}

body.tools-page .topbar {
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 12px;
}

body.tools-page .topbar-actions {
  flex: 0 0 auto;
  align-self: center;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: none;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.search-wrap input:focus {
  border-color: var(--brand);
}

.project-search-row .search-wrap {
  display: flex;
  align-items: center;
  align-self: center;
  height: 42px;
  max-width: 520px;
}

.project-search-row .search-wrap input {
  height: 100%;
  min-width: 0;
  padding: 0 16px;
  border: 2px solid transparent;
  border-top-left-radius: 7px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 7px;
  background: #53535f;
  color: #ffffff;
  caret-color: #f7f7f8;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.project-search-row .search-wrap input::placeholder {
  color: rgba(247, 247, 248, 0.68);
}

.project-search-row .search-wrap input:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.project-search-row .search-wrap input:focus {
  border-color: #a970ff;
  background: #0e0e10;
}

.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  flex: 0 0 40px;
  margin-left: 1px;
  border: 0;
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
  background: #2a2a2d;
  color: #efeff1;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.search-submit:hover {
  background: #363638;
  color: #ffffff;
}

.search-submit:active {
  transform: translateY(1px);
}

.project-search-row .suggestions {
  top: calc(100% + 8px);
}

.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 8;
}

.suggestions.show {
  display: grid;
  gap: 6px;
}

.suggestions button {
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.suggestions button:hover {
  background: rgba(15, 107, 255, 0.1);
}

.topbar-actions,
.hero-actions,
.view-actions,
.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions {
  justify-content: flex-end;
  margin-left: auto;
}

.theme-toggle {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  font-size: 7px;
  line-height: 1;
}

.theme-toggle .bb8-toggle__container {
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.14);
}

.primary-button,
.ghost-button,
.icon-button,
.segmented,
.text-button {
  border-radius: var(--radius);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.primary-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.34) 48%, transparent 74%);
  transform: translateX(-125%);
}

.primary-button:hover::after,
.primary-button:focus-visible::after {
  animation: action-button-shine 0.72s ease both;
}

.primary-button,
.ghost-button,
.flow-detail-button,
.service-flow-inline-button {
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.segmented:hover {
  transform: translateY(-1px);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(15, 107, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.1), rgba(10, 159, 114, 0.06)),
    var(--surface-strong);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.05);
  cursor: pointer;
}

.ghost-button:hover {
  border-color: rgba(15, 107, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.14), rgba(10, 159, 114, 0.1)),
    var(--surface);
  box-shadow: 0 12px 24px rgba(15, 107, 255, 0.1);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--brand-strong);
  font-weight: 700;
}

.hero-grid {
  display: grid;
  gap: 18px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  min-height: 360px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.12), transparent 44%),
    linear-gradient(315deg, rgba(10, 159, 114, 0.14), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 6px 12px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

body.dark .studio-badge {
  background: rgba(23, 32, 51, 0.72);
}

.studio-badge img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.board-visual {
  position: relative;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 42%, rgba(15, 107, 255, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(15, 107, 255, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 159, 114, 0.12) 1px, transparent 1px),
    var(--surface-strong);
  background-size: 28px 28px;
  overflow: hidden;
}

.board-dome-visual {
  --dome-radius: 560px;
  min-height: 300px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.board-dome-visual.about-dome-gallery {
  min-height: 300px;
}

.board-dome-visual::after {
  display: none;
}

.board-dome-visual.about-dome-gallery::before {
  background: radial-gradient(circle at 52% 50%, rgba(15, 107, 255, 0.1), transparent 62%);
}

.board-dome-visual .dome-gallery-stage {
  min-height: 300px;
  perspective: 940px;
}

.board-dome-visual .dome-tile {
  width: 108px;
  height: 76px;
  margin: -38px 0 0 -54px;
}

.board-dome-visual .dome-frame {
  width: min(90%, 360px);
}

.home-hero-panel {
  grid-template-columns: minmax(0, 1fr) minmax(500px, 0.78fr);
  min-height: 430px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-dome-gallery.about-dome-gallery {
  --dome-radius: 660px;
  min-height: 410px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-dome-gallery.about-dome-gallery::before {
  display: none;
}

.home-dome-gallery .dome-gallery-stage {
  min-height: 410px;
  perspective: 1120px;
}

.home-dome-gallery .dome-tile {
  width: 126px;
  height: 88px;
  margin: -44px 0 0 -63px;
}

.home-dome-gallery .dome-edge {
  display: none;
}

@media (max-width: 760px) {
  .home-dome-gallery.about-dome-gallery {
    --dome-radius: 540px;
    min-height: 340px;
  }

  .home-dome-gallery .dome-gallery-stage {
    min-height: 340px;
    perspective: 940px;
  }

  .home-dome-gallery .dome-tile {
    width: 108px;
    height: 76px;
    margin: -38px 0 0 -54px;
  }
}

.board-lightning-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: screen;
  z-index: 0;
}

body.dark .board-lightning-canvas {
  opacity: 0.58;
}

.board-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 22%, rgba(15, 107, 255, 0.08) 48%, transparent 74%);
  transform: translateX(-115%);
  animation: board-scan 8s linear infinite;
  pointer-events: none;
  z-index: 3;
}

.board-chip {
  position: absolute;
  z-index: 2;
  top: 58px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  transform: translateX(-50%);
  animation: none;
}

.board-chip i {
  display: none;
}

.board-visual .trace,
.board-visual .node {
  display: none;
}

.board-chip i:nth-child(2) {
  top: 20px;
  left: -16px;
}

.board-chip i:nth-child(3) {
  top: 54px;
  right: -16px;
}

.board-chip i:nth-child(4) {
  bottom: 18px;
  left: -16px;
}

.board-chip i:nth-child(5) {
  bottom: 28px;
  right: -16px;
}

.trace {
  position: absolute;
  z-index: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 159, 114, 0.28);
}

.trace::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--embedded), transparent);
  transform: translateX(-100%);
  animation: trace-flow 5.6s ease-in-out infinite;
}

.trace-a {
  top: 112px;
  left: 20px;
  width: 126px;
}

.trace-b {
  top: 112px;
  right: 24px;
  width: 122px;
}

.trace-c {
  top: 174px;
  left: 50%;
  width: 3px;
  height: 22px;
  background: rgba(124, 77, 255, 0.24);
  transform: translateX(-50%);
}

.trace-c::after {
  background: linear-gradient(180deg, transparent, var(--ai), transparent);
  animation-delay: 1.2s;
  animation-name: trace-flow-y;
}

.node {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(224, 161, 0, 0.14);
  animation: node-pulse 3.8s ease-in-out infinite;
}

.node-a {
  top: 105px;
  left: 20px;
}

.node-b {
  top: 105px;
  right: 22px;
  animation-delay: 0.7s;
}

.node-c {
  top: 188px;
  left: calc(50% - 7px);
  animation-delay: 1.4s;
}

.wave-card {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 20px;
  height: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  z-index: 1;
}

body.dark .wave-card {
  background: rgba(23, 32, 51, 0.7);
}

.wave-card canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.section-block,
.filter-panel,
.question-panel,
.recommend-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  isolation: isolate;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.24) 48%, transparent 70%);
  transform: translateX(-125%);
  transition: transform 0.6s ease;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 18%, rgba(15, 107, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%);
  opacity: 0.72;
}

.metric-card:hover {
  border-color: rgba(15, 107, 255, 0.42);
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.12);
  transform: translateY(-3px);
}

.metric-card:hover::before {
  transform: translateX(125%);
}

.metric-card span,
.metric-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  font-size: 34px;
}

.metric-card.embedded {
  border-left: 4px solid var(--embedded);
}

.metric-card.ai {
  border-left: 4px solid var(--ai);
}

.metric-card.match-card {
  border-left: 4px solid var(--brand);
}

.metric-number-updating {
  animation: metric-number-roll 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes metric-number-roll {
  0% {
    opacity: 0.2;
    transform: translateY(8px) scale(0.96);
    filter: blur(2px);
  }

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

.section-block {
  margin-top: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.06);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.project-search-row {
  display: grid;
  grid-template-columns: minmax(340px, 520px) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin-bottom: 18px;
}

.project-metric-strip {
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  gap: 10px;
  min-width: 0;
}

.project-metric-strip .metric-card {
  min-height: 84px;
  padding: 12px 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.44)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 10px 26px rgba(23, 32, 51, 0.06);
}

.project-metric-strip .metric-card strong {
  margin: 5px 0;
  font-size: 26px;
  line-height: 1;
}

.project-metric-strip .metric-card span,
.project-metric-strip .metric-card em {
  font-size: 12px;
  line-height: 1.35;
}

body.dark .project-metric-strip .metric-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 52%),
    #171b21;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 14px 32px rgba(0, 0, 0, 0.3);
}

body.dark .metric-card::after {
  background:
    radial-gradient(circle at 16% 18%, rgba(56, 189, 248, 0.13), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 50%);
}

.segmented {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
}

.segmented.active {
  border-color: var(--brand);
  background: rgba(15, 107, 255, 0.1);
  color: var(--brand-strong);
  font-weight: 800;
}

.project-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-areas:
    "filter content";
  gap: 18px;
}

.filter-panel {
  grid-area: filter;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 16px;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-group label,
.filter-group > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select {
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 255, 0.1);
}

.select-chevron {
  color: var(--muted);
  transition: transform 0.2s ease;
}

.custom-select.open .select-chevron {
  transform: rotate(180deg);
}

.category-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 9;
  display: grid;
  padding: 4px 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(23, 32, 51, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.16s ease,
    transform 0.2s ease;
}

.custom-select.open .category-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.category-option {
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.category-option:hover,
.category-option.active {
  background: rgba(15, 107, 255, 0.1);
  color: var(--brand-strong);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-option,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
}

.hardware-linkage-tag {
  border-color: rgba(16, 185, 129, 0.58);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(250, 204, 21, 0.22));
  color: #047857;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.08), 0 8px 20px rgba(16, 185, 129, 0.12);
}

body.dark .hardware-linkage-tag {
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(250, 204, 21, 0.14));
  color: #bbf7d0;
}

.tag-option {
  cursor: pointer;
}

.tag-option.active {
  border-color: var(--brand);
  background: rgba(15, 107, 255, 0.12);
  color: var(--brand-strong);
  font-weight: 800;
}

.project-content {
  grid-area: content;
  min-width: 0;
}

.category-cascade {
  position: relative;
  z-index: 7;
}

.category-cascade::after {
  content: "";
  position: absolute;
  top: 74px;
  left: 100%;
  display: none;
  width: 16px;
  height: 230px;
}

.category-cascade:has(.custom-select.open):has(.subcategory-panel.available)::after {
  display: block;
}

.subcategory-panel {
  position: absolute;
  top: 74px;
  left: calc(100% + 14px);
  width: 300px;
  max-height: min(420px, calc(100vh - 160px));
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.08), transparent 56%),
    var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px) scale(0.98);
  transform-origin: left top;
  transition:
    opacity 0.22s ease,
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.subcategory-panel::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transform: rotate(45deg);
}

.category-cascade:has(.custom-select.open) .subcategory-panel.available {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.subcategory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

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

.subcategory-head span {
  color: var(--muted);
  font-size: 12px;
}

.subcategory-head strong {
  margin-top: 2px;
}

.subcategory-head .text-button.active {
  color: var(--embedded);
}

.subcategory-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subtype-button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.subtype-button:hover {
  border-color: rgba(15, 107, 255, 0.55);
  color: var(--brand-strong);
  transform: translateY(-1px);
}

.subtype-button.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(15, 107, 255, 0.16), rgba(10, 159, 114, 0.12));
  color: var(--brand-strong);
  box-shadow: 0 10px 24px rgba(15, 107, 255, 0.12);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.project-grid.table-view {
  display: block;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.pagination:empty {
  display: none;
}

.pagination-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pagination-current {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(15, 107, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 107, 255, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
}

.pagination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.page-button {
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.page-button:hover:not(:disabled) {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.page-button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-self: stretch;
  height: 318px;
  min-height: 318px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--spotlight-x, 50%) var(--spotlight-y, 0%),
    rgba(15, 107, 255, 0.16),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 0.24s ease;
}

.project-card > :not(.hover-panel) {
  position: relative;
  z-index: 1;
}

.project-card:hover::before,
.project-card.expanded::before {
  opacity: 1;
}

.project-card:hover,
.project-card.expanded {
  border-color: rgba(15, 107, 255, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--embedded), var(--brand), var(--ai));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project-card:hover::after,
.project-card.expanded::after {
  opacity: 1;
}

.card-top,
.card-actions,
.resource-row,
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category-pill,
.status-pill,
.difficulty-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.category-pill.embedded {
  background: rgba(10, 159, 114, 0.12);
  color: var(--embedded);
}

.category-pill.ai {
  background: rgba(124, 77, 255, 0.12);
  color: var(--ai);
}

.difficulty-pill {
  background: rgba(224, 161, 0, 0.14);
  color: #a16f00;
}

body.dark .difficulty-pill {
  color: #ffd66c;
}
.project-card.featured {
  align-self: stretch;
  height: 318px;
  min-height: 318px;
  border-color: var(--line);
  background: var(--surface-strong);
  box-shadow: none;
}

body.dark .project-card.featured {
  box-shadow: none;
}

.project-card.featured::after {
  height: 4px;
  opacity: 0;
  background: linear-gradient(90deg, var(--embedded), var(--brand), var(--ai));
}

.project-card.featured > :not(.hover-panel) {
  position: relative;
  z-index: 1;
}

.project-card.featured:hover,
.project-card.featured.expanded {
  border-color: rgba(15, 107, 255, 0.55);
  box-shadow: var(--shadow);
}

.project-card.featured .score-row strong {
  color: var(--text);
  font-size: inherit;
}

.project-card.featured .progress span {
  background: linear-gradient(90deg, var(--embedded), var(--brand));
}

.featured-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(15, 107, 255, 0.22);
  border-radius: 999px;
  background: rgba(15, 107, 255, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.featured-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--embedded);
  box-shadow: 0 0 0 3px rgba(10, 159, 114, 0.12);
}

body.dark .featured-pill {
  color: #d8e7ff;
}

.project-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  min-height: 49px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, auto);
  align-content: start;
  min-height: 0;
}

.project-desc {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  min-height: 65px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-controller {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin: 0 0 12px;
  padding: 0 10px;
  border: 1px solid rgba(10, 159, 114, 0.28);
  border-radius: 999px;
  background: rgba(10, 159, 114, 0.1);
  color: var(--embedded);
  font-size: 12px;
  font-weight: 900;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 62px;
  margin-bottom: 14px;
  overflow: hidden;
}

.progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(100, 112, 132, 0.16);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--embedded), var(--brand));
}

.hover-panel {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -16px 26px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(101%);
  transition:
    opacity 0.2s ease,
    transform 0.24s ease;
  backdrop-filter: blur(16px);
}

body.dark .hover-panel {
  background: rgba(23, 32, 51, 0.94);
}

.project-card:hover .hover-panel,
.project-card.expanded .hover-panel {
  opacity: 1;
  transform: translateY(0);
}

.star-row {
  color: var(--warning);
  font-weight: 900;
}

.resource-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-buttons a,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.resource-buttons .github-source-button {
  position: relative;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #e8e8e8;
  color: #090909;
  box-shadow:
    6px 6px 12px rgba(197, 197, 197, 0.92),
    -6px -6px 12px rgba(255, 255, 255, 0.95);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.resource-buttons .github-source-button:hover {
  border-color: #d9d9d9;
  color: var(--brand-strong);
  transform: translateY(-1px);
}

.resource-buttons .github-source-button:active {
  color: #666;
  transform: translateY(0);
  box-shadow:
    inset 4px 4px 12px rgba(197, 197, 197, 0.9),
    inset -4px -4px 12px rgba(255, 255, 255, 0.95);
}

body.dark .resource-buttons .github-source-button {
  border-color: rgba(62, 75, 101, 0.82);
  background: #202b3c;
  color: #edf3ff;
  box-shadow:
    6px 6px 12px rgba(4, 9, 20, 0.48),
    -6px -6px 12px rgba(56, 72, 103, 0.34);
}

body.dark .resource-buttons .github-source-button:hover {
  color: #88c7ff;
  border-color: rgba(136, 199, 255, 0.52);
}

body.dark .resource-buttons .github-source-button:active {
  color: rgba(237, 243, 255, 0.68);
  box-shadow:
    inset 4px 4px 12px rgba(4, 9, 20, 0.55),
    inset -4px -4px 12px rgba(56, 72, 103, 0.32);
}

.mini-button.active {
  border-color: var(--embedded);
  color: var(--embedded);
}

.guide-button {
  border-color: rgba(15, 107, 255, 0.45);
  background: rgba(15, 107, 255, 0.1);
  color: var(--brand-strong);
}

.table-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 140px 120px 160px 160px;
  align-items: center;
  gap: 12px;
  height: auto;
  min-height: auto;
  margin-bottom: 10px;
}

.table-card .project-desc,
.table-card .project-controller,
.table-card .tags {
  display: none;
}

.table-card .hover-panel {
  position: static;
  display: none;
  grid-column: 1 / -1;
  opacity: 1;
  transform: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-card:hover .hover-panel,
.table-card.expanded .hover-panel {
  display: grid;
}

.tools-section {
  scroll-margin-top: 80px;
  margin-top: 10px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(10, 159, 114, 0.08), transparent 30%),
    var(--surface);
}

.tool-hub-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 820px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.06), transparent 42%),
    var(--surface-strong);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.05);
}

.tool-hub-label {
  display: grid;
  flex: 0 0 112px;
  gap: 2px;
  padding: 0 10px;
  border-right: 1px solid var(--line);
}

.tool-hub-label span {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.tool-hub-label strong {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.tool-hub-nav button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tool-hub-nav button {
  position: relative;
  display: grid;
  gap: 3px;
  flex: 1;
  min-height: 44px;
  overflow: hidden;
  padding: 7px 10px 7px 14px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.tool-hub-nav button::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 7px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.tool-hub-nav button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(15, 107, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
}

.tool-hub-nav button:hover,
.tool-hub-nav button.active {
  border-color: rgba(15, 107, 255, 0.48);
  box-shadow: 0 12px 28px rgba(15, 107, 255, 0.1);
  transform: translateY(-1px);
}

.tool-hub-nav button.active {
  background:
    radial-gradient(circle at 92% 18%, rgba(10, 159, 114, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(15, 107, 255, 0.18), rgba(15, 107, 255, 0.07)),
    var(--surface);
}

.tool-hub-nav button.active::before {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 107, 255, 0.12);
}

.tool-hub-nav button.is-clicking {
  transform: translateY(0) scale(0.985);
}

.tool-hub-nav button:active {
  transform: translateY(0) scale(0.985);
}

.tool-hub-nav button.is-clicking::after {
  animation: nav-click-pulse 0.42s ease-out both;
}

.tool-hub-nav button > span,
.tool-hub-nav button > strong {
  position: relative;
  z-index: 1;
}

.tool-hub-nav button > span {
  color: var(--brand-strong);
  font-weight: 900;
}

.tool-hub-nav button > strong {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.tool-page {
  display: none;
  transform-origin: center top;
  will-change: opacity, transform, filter;
}

.tool-page.active {
  display: block;
}

.tool-page.page-turn {
  animation: page-turn-in 0.34s cubic-bezier(0.2, 0.8, 0.22, 1) both;
}

.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.tool-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.tool-tab:hover {
  border-color: rgba(15, 107, 255, 0.45);
  color: var(--brand-strong);
  transform: translateY(-1px);
}

.tool-tab.active {
  border-color: var(--brand);
  background: rgba(15, 107, 255, 0.11);
  color: var(--brand-strong);
  box-shadow: 0 12px 26px rgba(15, 107, 255, 0.1);
}

.serial-workbench {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(15, 107, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.09), transparent 36%),
    linear-gradient(315deg, rgba(10, 159, 114, 0.08), transparent 34%),
    var(--surface-strong);
  animation: tool-rise 0.28s ease both;
}

.serial-workbench.is-hidden {
  display: none;
}

.serial-head,
.serial-controls,
.serial-send-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.serial-head {
  justify-content: space-between;
}

.serial-head h2,
.serial-head h3 {
  margin: 8px 0 4px;
  font-size: 22px;
}

.serial-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.serial-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(100, 112, 132, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.serial-status.connected {
  background: rgba(10, 159, 114, 0.14);
  color: var(--embedded);
}

.serial-status.error {
  background: rgba(196, 75, 86, 0.14);
  color: var(--danger);
}

.serial-controls,
.serial-send-row {
  flex-wrap: wrap;
}

.serial-controls {
  align-items: end;
}

.serial-send-row {
  align-items: end;
}

.serial-controls label {
  display: grid;
  gap: 6px;
  min-width: 112px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.serial-controls select,
.serial-controls button {
  height: 40px;
}

.serial-console-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 14px;
}

.serial-log,
.serial-chart-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.94);
}

.serial-log {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: clamp(330px, 48vh, 460px);
  padding: 12px;
  overflow: auto;
  color: #d9f7ef;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.serial-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.serial-line.muted {
  color: #8ea0b8;
}

.serial-line.tx {
  color: #9bc4ff;
}

.serial-line.system {
  color: #ffd66c;
}

.serial-chart-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  height: clamp(330px, 48vh, 460px);
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23, 32, 51, 0.9), rgba(17, 24, 39, 0.96)),
    #111827;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-toolbar strong,
.chart-toolbar span {
  display: block;
}

.chart-toolbar strong {
  color: #edf3ff;
}

.chart-toolbar span {
  margin-top: 3px;
  color: #8ea0b8;
  font-size: 12px;
  font-weight: 800;
}

.axis-controls {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.axis-controls.show {
  display: grid;
}

.axis-controls label {
  display: grid;
  gap: 4px;
  color: #8ea0b8;
  font-size: 11px;
  font-weight: 900;
}

.axis-controls input {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(142, 160, 184, 0.28);
  border-radius: 6px;
  outline: none;
  background: rgba(15, 23, 42, 0.86);
  color: #edf3ff;
}

.axis-controls input:focus {
  border-color: #67a5ff;
  box-shadow: 0 0 0 3px rgba(103, 165, 255, 0.12);
}

.serial-chart-panel canvas {
  display: block;
  width: 100%;
  min-height: 0;
  height: 100%;
  border-radius: 6px;
}

.serial-send-row input[type="text"] {
  flex: 1 1 320px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.serial-send-row input[type="text"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 255, 0.1);
}

.serial-interval {
  display: grid;
  gap: 4px;
  width: 132px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.serial-interval input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.serial-interval input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 255, 0.1);
}

.serial-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

/* Serial Pro workspace */
.serial-page .sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.serial-page .signal-panel {
  flex: 0 0 auto;
}

.serial-page .tools-section {
  padding-top: 18px;
}

.serial-pro-workbench {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-color: var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.serial-pro-workbench .serial-head {
  min-height: 94px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.serial-pro-workbench .serial-head h2 {
  margin: 5px 0 2px;
}

.serial-pro-workbench .serial-head p {
  font-size: 13px;
}

.serial-head-status,
.serial-toolbar-actions,
.serial-terminal-actions,
.serial-signal-row,
.serial-send-options,
.serial-file-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.serial-counter {
  display: grid;
  gap: 2px;
  min-width: 74px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.serial-counter strong {
  color: var(--text);
  font-size: 13px;
}

.serial-icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.serial-config-panel {
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, var(--page));
}

.serial-pro-workbench .serial-port-settings {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr)) minmax(104px, auto) minmax(76px, auto);
  align-items: end;
  gap: 10px;
}

.serial-pro-workbench .serial-port-settings label {
  min-width: 0;
}

.serial-pro-workbench .serial-port-settings select,
.serial-pro-workbench .serial-port-settings button,
.serial-send-options button,
.serial-file-controls button {
  width: 100%;
  min-height: 40px;
}

.serial-signal-row {
  min-height: 40px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.serial-signal-state {
  margin-left: auto;
  color: var(--muted);
  font-family: "Cascadia Mono", "Consolas", monospace;
}

.serial-compact-button {
  min-height: 32px;
  padding: 0 12px;
}

.serial-view-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.serial-view-tab {
  min-width: 116px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.serial-view-tab:hover {
  color: var(--text);
}

.serial-view-tab.active {
  border-bottom-color: var(--brand);
  color: var(--brand-strong);
}

.serial-view-stack {
  min-height: 600px;
  padding: 18px 22px 22px;
}

.serial-view {
  display: none;
  animation: tool-rise 0.2s ease both;
}

.serial-view.active {
  display: grid;
  gap: 14px;
}

.serial-terminal-panel,
.serial-send-panel,
.serial-quick-panel,
.serial-file-panel,
.serial-driver-panel,
.serial-pro-workbench .serial-chart-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.serial-panel-toolbar,
.serial-pro-workbench .chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, var(--page));
}

.serial-panel-toolbar strong,
.serial-panel-toolbar span {
  display: block;
}

.serial-pro-workbench .chart-toolbar strong {
  color: var(--text);
}

.serial-pro-workbench .chart-toolbar span {
  color: var(--muted);
}

.serial-panel-toolbar strong {
  color: var(--text);
  font-size: 14px;
}

.serial-panel-toolbar span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.serial-pro-workbench .serial-check {
  min-height: 30px;
  padding: 0;
  background: transparent;
  animation: none;
  white-space: nowrap;
}

.serial-pro-workbench .serial-log {
  height: clamp(300px, 42vh, 420px);
  border: 0;
  border-radius: 0;
}

.serial-terminal-actions {
  min-height: 52px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}

.serial-terminal-actions button {
  min-height: 34px;
}

.serial-send-panel {
  padding-bottom: 12px;
}

.serial-send-panel textarea {
  display: block;
  width: calc(100% - 28px);
  min-height: 82px;
  margin: 14px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font: 13px/1.5 "Cascadia Mono", "Consolas", monospace;
}

.serial-send-panel textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 255, 0.1);
}

.serial-send-options {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(126px, 1fr)) repeat(3, minmax(92px, auto));
  align-items: end;
  padding: 0 14px;
}

.serial-field-inline {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.serial-field-inline select,
.serial-field-inline input {
  width: 100%;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.serial-send-history {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 10px 14px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

#serialHistoryList {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: auto;
}

.serial-history-button,
.serial-quick-command {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.serial-pro-workbench .serial-chart-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: clamp(520px, 68vh, 680px);
  padding: 0;
}

.serial-chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  min-height: 36px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.serial-chart-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--channel-color, #67a5ff);
  box-shadow: 0 0 9px var(--channel-color, #67a5ff);
}

.serial-pro-workbench .axis-controls {
  padding: 0 14px 8px;
}

.serial-pro-workbench .serial-chart-panel canvas {
  border-radius: 0;
}

.serial-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.serial-quick-panel,
.serial-file-panel,
.serial-driver-panel {
  min-height: 260px;
}

.serial-driver-panel {
  grid-column: 1 / -1;
  min-height: 0;
}

.serial-driver-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
}

.serial-driver-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.serial-driver-main h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.serial-driver-main p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.serial-driver-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.serial-driver-actions a {
  min-height: 38px;
  white-space: nowrap;
  text-decoration: none;
}

.serial-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.serial-quick-command {
  min-height: 44px;
  text-align: left;
}

.serial-file-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 104px 104px 104px 80px;
  align-items: end;
  padding: 14px;
}

.serial-file-controls input[type="file"] {
  min-width: 0;
  color: var(--muted);
}

.serial-file-progress {
  height: 5px;
  margin: 0 14px 14px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}

.serial-file-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
  transition: width 0.18s ease;
}

@media (max-width: 1180px) {
  .deep-tool-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .serial-pro-workbench .serial-port-settings {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
  }

  .serial-send-options {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .serial-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .deep-tool-nav,
  .deep-tool-form {
    grid-template-columns: 1fr;
  }

  .serial-driver-card,
  .serial-driver-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .serial-pro-workbench .serial-head,
  .serial-head-status,
  .serial-panel-toolbar,
  .serial-pro-workbench .chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .serial-pro-workbench .serial-port-settings,
  .serial-send-options,
  .serial-file-controls {
    grid-template-columns: 1fr 1fr;
  }

  .serial-view-tabs {
    padding-inline: 12px;
    overflow-x: auto;
  }

  .serial-view-tab {
    min-width: 104px;
  }

  .serial-view-stack {
    min-height: 0;
    padding: 12px;
  }

  .serial-signal-state {
    width: 100%;
    margin-left: 0;
  }
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}

.tool-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 250px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent),
    var(--surface-strong);
  opacity: 1;
  animation: tool-rise 0.28s ease both;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    opacity 0.18s ease;
}

body.dark .tool-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--surface-strong);
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid rgba(15, 107, 255, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tool-card > * {
  position: relative;
  z-index: 1;
}

.tool-card:hover {
  border-color: rgba(15, 107, 255, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.tool-card:hover::before,
.tool-card.highlight::before {
  opacity: 1;
}

.tool-card.highlight {
  border-color: rgba(10, 159, 114, 0.42);
  background:
    linear-gradient(135deg, rgba(10, 159, 114, 0.12), transparent 46%),
    var(--surface-strong);
}

.tool-card.is-hidden {
  display: none;
}

.section-head.is-hidden,
.tool-grid.is-hidden,
.tool-tabs.is-hidden,
.pagination.is-hidden,
.deep-tool-workbench.is-hidden,
.skill-library-workbench.is-hidden,
.module-catalog-workbench.is-hidden,
.learning-route-workbench.is-hidden,
.flow-diagram-workbench.is-hidden {
  display: none;
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tool-top strong {
  color: var(--brand-strong);
  font-size: 12px;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(15, 107, 255, 0.11);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.tool-card h3 {
  margin: 2px 0 0;
  font-size: 19px;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tool-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tool-card a,
.tool-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 34px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid rgba(15, 107, 255, 0.4);
  border-radius: var(--radius);
  background: rgba(15, 107, 255, 0.08);
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.tool-card a:hover,
.tool-card button:hover:not(:disabled) {
  background: rgba(15, 107, 255, 0.15);
  transform: translateX(2px);
}

.tool-card button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.tool-card.muted-tool {
  opacity: 0.78;
}

.skill-library-workbench {
  display: grid;
  gap: 16px;
}

.skill-library-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.08), transparent 48%),
    var(--surface-strong);
}

.skill-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.skill-tab:hover,
.skill-tab.active {
  border-color: rgba(124, 58, 237, 0.42);
  background: rgba(124, 58, 237, 0.12);
  color: var(--brand-strong);
}

.skill-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 14px;
}

.skill-library-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 250px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.13), transparent 34%),
    var(--surface);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.skill-library-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.36);
  box-shadow: 0 18px 36px rgba(23, 32, 51, 0.1);
}

.skill-card-head,
.skill-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.skill-card-head span,
.skill-card-foot em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.skill-card-head strong {
  color: var(--brand-strong);
  font-size: 12px;
}

.skill-library-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.4;
}

.skill-library-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.skill-scene-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-scene-list span {
  min-height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.skill-card-foot a {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: var(--radius);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

body.dark .skill-library-tabs,
body.dark .skill-library-card {
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.08), transparent 54%),
    var(--surface-strong);
}

.tool-empty-page {
  display: grid;
  gap: 8px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--muted);
}

.tool-empty-page strong {
  color: var(--text);
  font-size: 18px;
}

.module-catalog-workbench,
.learning-route-workbench,
.flow-diagram-workbench {
  display: grid;
  gap: 16px;
}

.module-catalog-toolbar,
.learning-route-toolbar,
.flow-diagram-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.8fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.08), transparent 48%),
    var(--surface-strong);
}

.learning-route-toolbar {
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
}

.module-catalog-toolbar label,
.learning-route-toolbar label,
.flow-diagram-toolbar label {
  display: grid;
  gap: 7px;
}

.module-catalog-toolbar label span,
.learning-route-toolbar label span,
.flow-diagram-toolbar label span,
.module-source-note span,
.module-result-head span,
.module-card-head span,
.module-spec-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.module-catalog-toolbar input,
.module-catalog-toolbar select,
.learning-route-toolbar select,
.flow-diagram-toolbar input,
.flow-diagram-toolbar select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.module-catalog-toolbar input:focus,
.module-catalog-toolbar select:focus,
.learning-route-toolbar select:focus,
.flow-diagram-toolbar input:focus,
.flow-diagram-toolbar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 255, 0.1);
}

.module-toolbar-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.module-catalog-layout,
.learning-route-layout,
.flow-diagram-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.module-catalog-side,
.module-catalog-main,
.learning-route-side,
.learning-route-main,
.flow-diagram-side,
.flow-diagram-main {
  display: grid;
  align-content: start;
  gap: 12px;
}

.module-catalog-side,
.learning-route-side,
.flow-diagram-side {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.learning-route-side p,
.flow-diagram-side p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.learning-route-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.learning-route-kpis div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.learning-route-kpis span,
.learning-stage-card span,
.learning-resource-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.learning-route-kpis strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
}

.learning-stage-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

.learning-stage-card,
.learning-resource-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.08), transparent 48%),
    var(--surface);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.learning-stage-card:hover,
.learning-resource-card:hover {
  border-color: rgba(15, 107, 255, 0.42);
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.1);
  transform: translateY(-2px);
}

.learning-stage-card h4,
.learning-resource-card h4 {
  margin: 8px 0;
  color: var(--text);
}

.learning-stage-card p,
.learning-resource-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.learning-stage-goal {
  color: var(--text);
  font-weight: 800;
}

.learning-stage-task {
  margin-top: 8px !important;
}

.learning-check-list {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.learning-check-list li + li {
  margin-top: 4px;
}

.learning-video-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.learning-video-chip {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 140px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 77, 79, 0.14);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(135deg, rgba(255, 77, 79, 0.08), rgba(255, 77, 79, 0.02)),
    var(--surface);
  box-shadow: 0 8px 18px rgba(255, 77, 79, 0.04);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.learning-video-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 77, 79, 0.28);
  box-shadow: 0 14px 26px rgba(255, 77, 79, 0.1);
}

.learning-video-chip strong {
  color: #e11d48;
  font-size: 12px;
  line-height: 1.3;
}

.learning-video-chip span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.learning-stage-card em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 12px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(15, 107, 255, 0.1);
  color: var(--brand-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.learning-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.learning-resource-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.learning-resource-card a {
  align-self: flex-start;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 107, 255, 0.28);
  border-radius: var(--radius);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.flow-diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.flow-diagram-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(23, 32, 51, 0.06);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.flow-diagram-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 107, 255, 0.36);
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.11);
}

.flow-diagram-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: var(--surface-strong);
  cursor: zoom-in;
}

.flow-diagram-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.flow-diagram-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.flow-diagram-body h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

.flow-diagram-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.flow-diagram-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-diagram-actions a {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 107, 255, 0.22);
  border-radius: var(--radius);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

body.dark .flow-diagram-card {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.06), transparent 52%),
    var(--surface-strong);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

body.dark .flow-diagram-preview {
  background: #0f1115;
}

body.dark .learning-stage-card,
body.dark .learning-resource-card,
body.dark .learning-route-kpis div,
body.dark .learning-video-chip {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.07), transparent 50%),
    var(--surface-strong);
}

body.dark .learning-video-chip {
  border-color: rgba(248, 113, 113, 0.18);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

body.dark .learning-video-chip strong {
  color: #f87171;
}

.module-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-chip-cloud button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.module-chip-cloud button:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
  transform: translateY(-1px);
}

.module-source-note {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.module-source-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.module-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.module-result-head strong {
  color: var(--text);
}

.module-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.module-card,
.module-empty {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.045), transparent 42%),
    var(--surface-strong);
  animation: tool-rise 0.24s ease both;
}

.module-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.module-card-head strong {
  color: var(--brand-strong);
  font-size: 12px;
}

.module-card h3 {
  margin: 0;
  line-height: 1.45;
}

.module-brand {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid rgba(15, 107, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.08), rgba(10, 159, 114, 0.06)),
    var(--surface);
}

.module-brand span {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.module-brand strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

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

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

.module-spec-grid div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.module-spec-grid strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.module-pin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.module-pin-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(10, 159, 114, 0.1);
  color: var(--embedded);
  font-size: 12px;
  font-weight: 900;
}

.module-paper-tip {
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px dashed rgba(15, 107, 255, 0.32);
  border-radius: var(--radius);
  background: var(--surface);
}

.module-paper-tip strong {
  color: var(--text);
  font-size: 13px;
}

.module-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.module-links a:hover {
  border-color: var(--brand);
  background: rgba(15, 107, 255, 0.1);
  transform: translateY(-1px);
}

.about-page .main {
  min-height: 100vh;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.1), transparent 44%),
    linear-gradient(90deg, rgba(15, 107, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10, 159, 114, 0.04) 1px, transparent 1px),
    var(--surface);
  background-size: auto, 36px 36px, 36px 36px, auto;
}

.about-hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 100%;
  position: relative;
  z-index: 2;
}

.about-hero-console {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(103, 165, 255, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.12), rgba(10, 159, 114, 0.08)),
    color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.about-hero-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(90deg, rgba(15, 107, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10, 159, 114, 0.08) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
  opacity: 0.7;
  transform: translateX(-120%);
  animation: aboutConsoleScan 7s linear infinite;
  pointer-events: none;
}

body.dark .about-hero-console {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.13), rgba(16, 185, 129, 0.08)),
    rgba(10, 18, 32, 0.54);
}

.about-console-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.about-console-stats span {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(103, 165, 255, 0.18);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.about-console-stats strong {
  color: var(--text);
  font: 900 28px/1 "Cascadia Mono", "Consolas", monospace;
}

.about-console-stats em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.about-capability-map {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.about-map-core {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 58%),
    rgba(15, 23, 42, 0.08);
}

.about-map-core::before,
.about-map-core::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(56, 189, 248, 0.36);
  border-radius: inherit;
  animation: aboutCoreOrbit 12s linear infinite;
}

.about-map-core::after {
  inset: 24px;
  border-color: rgba(16, 185, 129, 0.34);
  animation-duration: 8s;
  animation-direction: reverse;
}

.about-map-core i {
  width: 13px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.8);
}

.about-map-core strong {
  position: absolute;
  bottom: 23px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.about-map-row {
  grid-column: 2;
  display: grid;
  gap: 7px;
}

.about-map-row span {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.about-map-row em {
  position: relative;
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.18);
}

.about-map-row em::before {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--level) * 1%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bar-a), var(--bar-b));
  box-shadow: 0 0 20px color-mix(in srgb, var(--bar-a) 42%, transparent);
  animation: aboutBarPulse 2.8s ease-in-out infinite;
}

.about-hero-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-hero-tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(103, 165, 255, 0.22);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.about-dome-gallery {
  --dome-tilt-x: 50%;
  --dome-tilt-y: 50%;
  --dome-radius: 690px;
  position: relative;
  min-height: 470px;
  overflow: hidden;
  display: grid;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.about-dome-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 54% 50%, rgba(15, 107, 255, 0.08), transparent 62%);
  opacity: 0.76;
  z-index: 0;
}

.dome-gallery-head {
  display: none;
}

.dome-gallery-head div {
  display: grid;
  gap: 3px;
}

.dome-gallery-head span {
  color: rgba(219, 234, 254, 0.7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.dome-gallery-head strong {
  color: #f8fdff;
  font-size: 18px;
}

.dome-gallery-head em {
  min-width: 44px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 999px;
  color: #e0f7ff;
  font: 900 14px/1 "Cascadia Mono", "Consolas", monospace;
  background: rgba(15, 23, 42, 0.46);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.14);
}

.dome-gallery-stage {
  position: relative;
  z-index: 2;
  min-height: 470px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  border-radius: 0;
  perspective: 1160px;
  transform-style: preserve-3d;
  background: transparent;
}

.about-dome-gallery.is-dragging .dome-gallery-stage {
  cursor: grabbing;
}

.dome-sphere {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
  transition: none;
}

.about-dome-gallery.is-dragging .dome-sphere {
  transition: none;
}

.dome-tile {
  position: absolute;
  width: 132px;
  height: 92px;
  margin: -46px 0 0 -66px;
  overflow: hidden;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16);
  transform:
    rotateY(var(--theta-y))
    rotateX(var(--theta-x))
    translateZ(var(--dome-radius));
  transform-style: preserve-3d;
  transform-origin: center center;
  backface-visibility: hidden;
  cursor: pointer;
  opacity: var(--dome-alpha, 0);
  transition:
    opacity 0.18s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
  will-change: transform;
}

.dome-tile:hover {
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.24);
  filter: saturate(1.08) brightness(1.04);
}

.dome-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.dome-tile span {
  display: none;
}

.dome-tile strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dome-tile em {
  overflow: hidden;
  color: rgba(186, 230, 253, 0.88);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dome-ambient {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.62;
}

.dome-ambient-a {
  left: 12%;
  top: 16%;
  width: 110px;
  height: 110px;
  background: rgba(56, 189, 248, 0.18);
}

.dome-ambient-b {
  right: 8%;
  bottom: 8%;
  width: 140px;
  height: 140px;
  background: rgba(16, 185, 129, 0.14);
}

.dome-edge {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.dome-edge-left,
.dome-edge-right {
  top: 0;
  bottom: 0;
  width: 26%;
}

.dome-edge-left {
  left: 0;
  background: linear-gradient(90deg, var(--surface), transparent);
}

.dome-edge-right {
  right: 0;
  background: linear-gradient(270deg, var(--surface), transparent);
}

.dome-edge-top,
.dome-edge-bottom {
  left: 0;
  right: 0;
  height: 22%;
}

.dome-edge-top {
  top: 0;
  background: linear-gradient(180deg, var(--surface), transparent);
}

.dome-edge-bottom {
  bottom: 0;
  background: linear-gradient(0deg, var(--surface), transparent);
}

.dome-viewer {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.dome-viewer.open {
  opacity: 1;
  pointer-events: auto;
}

.dome-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(7px);
  cursor: zoom-out;
}

.dome-frame {
  position: relative;
  width: min(88%, 520px);
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.22s ease;
}

.dome-viewer.open .dome-frame {
  transform: scale(1) translateY(0);
}

.dome-frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  display: block;
  object-fit: cover;
}

.about-hero h1 {
  margin: 4px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
}

.about-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.about-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
}

.about-contact-modal.show {
  display: grid;
}

.about-contact-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.about-contact-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 42px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.08), transparent 48%),
    var(--surface);
  box-shadow: 0 26px 80px rgba(23, 32, 51, 0.24);
}

.about-contact-desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.about-contact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.about-contact-highlights span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(15, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 107, 255, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.about-contact-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.about-contact-qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  text-align: center;
}

.about-contact-qr-frame {
  display: grid;
  place-items: center;
  width: min(100%, 220px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: calc(var(--radius) + 2px);
  background: #fff;
}

.about-contact-modal.is-join .about-contact-dialog {
  width: min(760px, calc(100vw - 32px));
}

.about-contact-modal.is-join .about-contact-qr-grid {
  grid-template-columns: minmax(280px, 420px);
  justify-content: center;
}

.about-contact-modal.is-join .about-contact-qr-card {
  padding: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(15, 107, 255, 0.08), transparent 46%),
    var(--surface-strong);
}

.about-contact-modal.is-join .about-contact-qr-frame {
  width: min(100%, 340px);
}

.about-contact-modal.is-join .about-contact-qr-card h4 {
  font-size: 18px;
}

.about-contact-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-contact-qr-card h4 {
  margin: 0;
  color: var(--text);
}

.about-contact-qr-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

body.dark .about-contact-dialog,
body.dark .about-contact-qr-card {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.06), transparent 52%),
    var(--surface-strong);
}

.about-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  perspective: 1200px;
}

.about-profile-card {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(150px, 1fr) auto;
  padding: 18px;
  border: 1px solid rgba(103, 165, 255, 0.3);
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.32), transparent 22%),
    linear-gradient(145deg, color-mix(in srgb, var(--avatar-a) 24%, transparent), color-mix(in srgb, var(--avatar-b) 18%, transparent)),
    var(--surface-strong);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transform-style: preserve-3d;
  transition:
    transform 0.18s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.about-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 8%, rgba(255, 255, 255, 0.16) 18%, transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px);
  background-position: calc(var(--pointer-x) * 0.4) calc(var(--pointer-y) * 0.4);
  opacity: 0.54;
  mix-blend-mode: screen;
}

.about-profile-card.is-active {
  border-color: rgba(103, 165, 255, 0.72);
  box-shadow: 0 26px 60px rgba(15, 107, 255, 0.16);
}

.about-card-glow,
.about-card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-card-glow {
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--avatar-a) 32%, transparent), transparent 36%);
  opacity: 0.7;
}

.about-card-shine {
  background: linear-gradient(130deg, transparent 38%, rgba(255, 255, 255, 0.24), transparent 62%);
  transform: translateX(-42%);
  opacity: 0.18;
}

.about-avatar,
.about-photo-layer,
.about-card-main,
.about-user-info {
  position: relative;
  z-index: 1;
}

.about-avatar {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: min(150px, 62%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(145deg, var(--avatar-a), var(--avatar-b));
  color: #fff;
  box-shadow:
    0 22px 46px color-mix(in srgb, var(--avatar-a) 24%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transform: translateZ(36px);
}

.about-avatar span {
  font-size: 38px;
  font-weight: 900;
}

.about-profile-photo-card {
  grid-template-rows: minmax(260px, 1fr) auto auto;
  padding: 14px;
}

.about-photo-layer {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: calc(var(--radius) + 2px);
  background: #0f172a;
  box-shadow:
    0 24px 46px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateZ(38px);
}

.about-photo-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(180deg, transparent 46%, rgba(15, 23, 42, 0.72));
  mix-blend-mode: screen;
}

.about-photo-layer img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(1.04) contrast(1.04);
}

.about-profile-photo-card .about-card-main {
  margin-top: 12px;
}

.about-profile-photo-card .about-user-info {
  background: rgba(15, 23, 42, 0.32);
}

.about-card-main {
  display: grid;
  gap: 8px;
  transform: translateZ(24px);
}

.about-role {
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
  color: #d8e7ff;
  font-size: 12px;
  font-weight: 900;
  line-height: 26px;
}

.about-card-main h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.35;
}

.about-card-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  transform: translateZ(30px);
}

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

.about-user-info strong {
  color: var(--text);
  font-size: 13px;
}

.about-user-info span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.about-user-info a {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
  line-height: 32px;
}

.about-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.about-process-grid div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.about-process-grid span {
  color: var(--brand-strong);
  font-weight: 900;
}

.about-process-grid strong {
  color: var(--text);
}

.about-process-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-data-section {
  position: relative;
  overflow: hidden;
}

.about-data-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(34, 197, 94, 0.14), transparent 30%),
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 48%, transparent 54% 100%);
  background-size: auto, auto, 240% 100%;
  animation: dataBoardSweep 5.8s linear infinite;
}

.team-data-board {
  --board-x: 50%;
  --board-y: 50%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(420px, 1.35fr);
  gap: 18px;
  isolation: isolate;
}

.team-data-board::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at var(--board-x) var(--board-y), rgba(96, 165, 250, 0.28), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 20px);
  opacity: 0.74;
}

.team-data-visual,
.team-data-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(103, 165, 255, 0.28);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(15, 107, 255, 0.08)),
    var(--surface-strong);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.team-data-visual {
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 18px 18px 92px;
}

.team-data-visual::after,
.team-data-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.08), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  animation: dataScan 3.2s linear infinite;
}

#teamDataCanvas {
  width: min(100%, 520px);
  height: min(100%, 360px);
  display: block;
}

.team-data-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 148px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(147, 197, 253, 0.44);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.45), transparent 20%),
    linear-gradient(145deg, rgba(15, 107, 255, 0.88), rgba(34, 197, 94, 0.74));
  color: #fff;
  box-shadow:
    0 0 42px rgba(56, 189, 248, 0.36),
    inset 0 0 22px rgba(255, 255, 255, 0.22);
  transform: translate(-50%, -50%);
}

.team-data-core span {
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.team-data-core strong,
.team-data-core em {
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0;
}

.team-data-core em {
  opacity: 0.72;
}

.project-type-dock {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.project-type-dock button {
  position: relative;
  min-height: 42px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.34), rgba(255, 255, 255, 0.05));
  color: var(--muted);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.project-type-dock button::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(96, 165, 250, 0.34), rgba(34, 197, 94, 0.2));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project-type-dock span,
.project-type-dock strong {
  position: relative;
  z-index: 1;
}

.project-type-dock span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-type-dock strong {
  color: #dff6ff;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 13px;
}

.project-type-dock button:hover,
.project-type-dock button.active {
  border-color: rgba(125, 211, 252, 0.54);
  color: #f4fbff;
  box-shadow: 0 12px 24px rgba(56, 189, 248, 0.14);
  transform: translateY(-1px);
}

.project-type-dock button.active::before {
  opacity: 1;
}

.team-data-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.data-radio-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(103, 165, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.12)),
    rgba(255, 255, 255, 0.04);
}

.data-radio-tabs label {
  position: relative;
  cursor: pointer;
}

.data-radio-tabs input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.data-radio-tabs span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.data-radio-tabs span::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.72);
  box-shadow: 0 0 0 rgba(56, 189, 248, 0);
}

.data-radio-tabs input:checked + span {
  color: #eef7ff;
  border-color: rgba(125, 211, 252, 0.42);
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(135deg, rgba(15, 107, 255, 0.72), rgba(34, 197, 94, 0.38));
  box-shadow:
    0 12px 28px rgba(15, 107, 255, 0.18),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.data-radio-tabs input:checked + span::before {
  background: #bff9ff;
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.9);
}

.team-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.team-stat-grid article {
  min-height: 132px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(103, 165, 255, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.045);
}

.team-stat-grid span,
.team-bars span,
.team-data-tags span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.team-stat-grid strong {
  color: #dff6ff;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 34px;
  line-height: 1;
}

.team-stat-grid i {
  font-style: normal;
}

.team-stat-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.team-bars {
  display: grid;
  gap: 10px;
}

.team-active-brief {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(147, 197, 253, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.04);
}

.team-active-brief > span {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.68), transparent 22%),
    linear-gradient(145deg, var(--brief-a), var(--brief-b));
  box-shadow:
    0 0 22px color-mix(in srgb, var(--brief-b) 44%, transparent),
    inset 0 0 12px rgba(255, 255, 255, 0.18);
}

.team-active-brief strong {
  color: #edf8ff;
  font-size: 16px;
}

.team-active-brief p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.team-bar {
  display: grid;
  grid-template-columns: 98px 1fr 44px;
  gap: 10px;
  align-items: center;
}

.team-bar-track {
  position: relative;
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.34);
}

.team-bar-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--value) * 1%);
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--bar-a), var(--bar-b)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 8px, transparent 8px 14px);
  box-shadow: 0 0 18px color-mix(in srgb, var(--bar-b) 42%, transparent);
  transform-origin: left;
  animation: teamBarLoad 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.team-bar strong {
  color: #e8f4ff;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 13px;
  text-align: right;
}

.team-data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-data-tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(103, 165, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

@keyframes dataBoardSweep {
  to {
    background-position: 0 0, 0 0, -240% 0;
  }
}

@keyframes dataScan {
  from {
    transform: translateY(-26%);
  }

  to {
    transform: translateY(26%);
  }
}

@keyframes teamBarLoad {
  from {
    transform: scaleX(0.06);
    filter: brightness(1.45);
  }

  to {
    transform: scaleX(1);
    filter: brightness(1);
  }
}

@keyframes heroPanelSweep {
  to {
    transform: translateX(26%);
  }
}

@keyframes heroOrbit {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes aboutConsoleScan {
  0% {
    transform: translateX(-120%);
  }

  42%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes aboutCoreOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aboutBarPulse {
  0%,
  100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.35) brightness(1.08);
  }
}

@keyframes domeTileIn {
  from {
    opacity: 0;
    filter: blur(8px) saturate(0.72);
  }

  to {
    opacity: 1;
    filter: blur(0) saturate(1);
  }
}

@media (max-width: 1280px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero-copy {
    align-content: start;
  }

  .about-dome-gallery {
    min-height: 430px;
  }

  .team-data-board {
    grid-template-columns: 1fr;
  }

  .team-data-visual {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .career-overview-grid {
    grid-template-columns: 1fr;
  }

  .about-dome-gallery {
    min-height: 390px;
    --dome-radius: 560px;
  }

  .about-console-stats {
    grid-template-columns: 1fr;
  }

  .about-capability-map {
    grid-template-columns: 1fr;
  }

  .about-map-core {
    width: 120px;
  }

  .about-map-row {
    grid-column: auto;
  }

  .dome-gallery-stage {
    min-height: 390px;
  }

  .dome-tile {
    width: 108px;
    height: 76px;
    margin: -38px 0 0 -54px;
  }

  .team-data-visual {
    min-height: 460px;
    padding-bottom: 184px;
  }

  .project-type-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-radio-tabs,
  .team-stat-grid {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .team-data-panel {
    padding: 14px;
  }

  .team-bar {
    grid-template-columns: 84px 1fr 36px;
  }

  .team-data-core {
    width: 126px;
  }

  .team-data-core span {
    font-size: 34px;
  }
}

.writer-tool-panel {
  display: grid;
  gap: 16px;
}

.writing-tool-home,
.writer-tool-panel,
.template-tool-home,
.module-catalog-workbench,
.learning-route-workbench {
  transform-origin: center top;
}

.writing-tool-home.page-turn,
.writer-tool-panel.page-turn,
.template-tool-home.page-turn,
.module-catalog-workbench.page-turn,
.learning-route-workbench.page-turn {
  animation: page-turn-in 0.34s cubic-bezier(0.2, 0.8, 0.22, 1) both;
}

.writing-tool-home.is-hidden,
.writer-tool-panel.is-hidden {
  display: none;
}

.writer-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(15, 107, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.1), transparent 48%),
    linear-gradient(315deg, rgba(10, 159, 114, 0.08), transparent 42%),
    var(--surface-strong);
}

.writer-tool-head h3 {
  margin: 8px 0 6px;
  font-size: 22px;
}

.writer-tool-head p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.7;
}

.deep-tool-workbench {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.deep-tool-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.deep-tool-nav button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.deep-tool-nav button:hover,
.deep-tool-nav button.active {
  border-color: rgba(15, 107, 255, 0.48);
  color: var(--brand-strong);
  transform: translateY(-1px);
}

.deep-tool-nav button.active {
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.16), rgba(10, 159, 114, 0.1)),
    var(--surface);
  box-shadow: 0 12px 28px rgba(15, 107, 255, 0.1);
}

.deep-tool-view {
  display: none;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 107, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.08), transparent 42%),
    var(--surface-strong);
  animation: tool-rise 0.22s ease both;
}

.deep-tool-view.active {
  display: grid;
}

.deep-tool-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.deep-tool-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.deep-tool-form span,
.tool-inline-status {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.deep-tool-form input,
.deep-tool-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.deep-tool-form input:focus,
.deep-tool-form select:focus {
  border-color: rgba(15, 107, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 255, 0.1);
}

.deep-output-field textarea {
  min-height: 220px;
  font-family: "Cascadia Mono", "Consolas", monospace;
}

.tool-inline-status {
  align-self: center;
  color: var(--muted);
}

.writer-tool-stats {
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 74px;
  border: 1px solid rgba(10, 159, 114, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 20%, rgba(10, 159, 114, 0.18), transparent 42%),
    var(--surface);
}

.writer-tool-stats strong {
  color: var(--brand-strong);
  font-size: 30px;
  line-height: 1;
}

.writer-tool-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.writer-tool-head-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.writer-control-row {
  display: flex;
  align-items: end;
  gap: 12px;
}

.writer-select-field {
  display: grid;
  gap: 8px;
  width: min(460px, 100%);
}

.writer-select-field span {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.writer-select-field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.08), rgba(10, 159, 114, 0.04)),
    var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.04);
}

.writer-select-field select:focus {
  border-color: rgba(15, 107, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 255, 0.1);
}

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

.writer-field {
  display: grid;
  gap: 8px;
}

.writer-field span {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.writer-field textarea {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background:
    linear-gradient(90deg, rgba(15, 107, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 159, 114, 0.04) 1px, transparent 1px),
    var(--surface);
  background-size: 24px 24px;
  color: var(--text);
  font-family: "Cascadia Mono", "Consolas", "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.writer-field textarea:focus {
  border-color: rgba(15, 107, 255, 0.55);
  box-shadow:
    0 0 0 3px rgba(15, 107, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.writer-field textarea[readonly] {
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.06), transparent 42%),
    var(--surface-strong);
}

.writer-disclaimer {
  padding: 12px 14px;
  border: 1px solid rgba(224, 161, 0, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(224, 161, 0, 0.1), rgba(15, 107, 255, 0.04)),
    var(--surface-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.writer-disclaimer[hidden] {
  display: none;
}

.writer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.paper-search-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.career-note {
  padding: 14px 16px;
  border: 1px solid rgba(15, 107, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.06), rgba(10, 159, 114, 0.05)),
    var(--surface-strong);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}

.career-board {
  display: grid;
  gap: 14px;
}

.career-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.career-overview-grid .career-metrics {
  display: contents;
}

.career-insight-grid {
  display: contents;
}

.career-insight-grid article {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(103, 165, 255, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.08), rgba(10, 159, 114, 0.05)),
    var(--surface);
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.06);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.career-overview-grid .metric-card {
  min-height: 126px;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
}

.career-overview-grid .metric-card strong {
  margin: 0;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 30px;
  line-height: 1;
}

.career-overview-grid .metric-card span,
.career-overview-grid .metric-card em {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.career-insight-grid article::before {
  content: "";
  position: absolute;
  right: -22px;
  top: -22px;
  width: 78px;
  aspect-ratio: 1;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 999px;
  box-shadow: inset 0 0 22px rgba(56, 189, 248, 0.08);
}

.career-insight-grid article:hover {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 16px 32px rgba(15, 107, 255, 0.1);
  transform: translateY(-3px);
}

.career-insight-grid span,
.career-insight-grid em {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.career-insight-grid strong {
  position: relative;
  color: var(--text);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 30px;
  line-height: 1;
}

.career-rank-panel {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 300px;
  padding: 16px;
  border: 1px solid rgba(103, 165, 255, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(15, 107, 255, 0.1), rgba(10, 159, 114, 0.08)),
    var(--surface);
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
}

.career-rank-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent),
    repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.07) 0 1px, transparent 1px 18px);
  opacity: 0.72;
  transform: translateX(-120%);
  animation: careerRankSweep 6.4s linear infinite;
  pointer-events: none;
}

.career-rank-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.career-rank-head span,
.career-rank-head em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.career-rank-head strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
}

.career-rank-head em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(10, 159, 114, 0.28);
  border-radius: 999px;
  background: rgba(10, 159, 114, 0.1);
  color: var(--embedded);
}

.career-rank-visual {
  position: absolute;
  right: 18px;
  top: 52px;
  width: 96px;
  aspect-ratio: 1;
  pointer-events: none;
}

.career-rank-visual i {
  position: absolute;
  inset: calc(var(--ring, 0) * 12px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 999px;
  animation: careerRankOrbit 8s linear infinite;
}

.career-rank-visual i:nth-child(1) {
  --ring: 0;
}

.career-rank-visual i:nth-child(2) {
  --ring: 1;
  animation-duration: 6s;
  animation-direction: reverse;
}

.career-rank-visual i:nth-child(3) {
  --ring: 2;
  border-color: rgba(10, 159, 114, 0.22);
  animation-duration: 4.8s;
}

.career-rank-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.career-rank-page-items {
  display: grid;
  gap: 8px;
}

.career-rank-item {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(103, 165, 255, 0.18);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  animation: careerRankIn 0.36s ease both;
  animation-delay: var(--rank-delay);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.career-rank-item:hover,
.career-rank-item.active {
  border-color: rgba(56, 189, 248, 0.44);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.12), rgba(10, 159, 114, 0.08)),
    var(--surface-strong);
  box-shadow: 0 12px 26px rgba(15, 107, 255, 0.12);
  transform: translateX(-4px);
}

.career-rank-index {
  color: var(--brand-strong);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 13px;
  font-weight: 900;
}

.career-rank-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.career-rank-main strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-rank-main i {
  position: relative;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.18);
}

.career-rank-main b {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--rank-width);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--embedded));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.34);
  animation: careerRankBar 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.career-rank-item em {
  color: var(--text);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.career-rank-note,
.career-rank-empty {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.65;
}

.career-rank-empty {
  padding: 16px;
  border: 1px dashed rgba(103, 165, 255, 0.24);
  border-radius: 8px;
  text-align: center;
}

.career-rank-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.career-rank-pager span {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.career-rank-pager button {
  min-width: 34px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(103, 165, 255, 0.24);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.career-rank-pager button:hover:not(:disabled),
.career-rank-pager button.active {
  border-color: rgba(56, 189, 248, 0.48);
  background: rgba(15, 107, 255, 0.12);
  color: var(--brand-strong);
  transform: translateY(-1px);
}

.career-rank-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.career-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) repeat(4, minmax(132px, 1fr)) minmax(174px, 1.1fr);
  gap: 10px;
  align-items: end;
}

.career-toolbar .career-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.career-toolbar .career-field span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.career-toolbar .career-field input,
.career-toolbar .career-field select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.career-toolbar-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  min-width: 0;
}

.career-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.career-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.career-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
  vertical-align: bottom;
}

.career-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(220, 228, 239, 0.82);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-table tbody tr:hover {
  background: rgba(15, 107, 255, 0.04);
}

.career-table tbody tr:last-child td {
  border-bottom: 0;
}

.career-table th:nth-child(1),
.career-table td:nth-child(1) {
  width: 180px;
}

.career-table th:nth-child(2),
.career-table td:nth-child(2) {
  width: 112px;
}

.career-table th:nth-child(3),
.career-table td:nth-child(3) {
  width: 150px;
}

.career-table th:nth-child(4),
.career-table td:nth-child(4) {
  width: 112px;
}

.career-table th:nth-child(5),
.career-table td:nth-child(5) {
  width: 160px;
}

.career-table th:nth-child(6),
.career-table td:nth-child(6) {
  width: 220px;
}

.career-table th:nth-child(7),
.career-table td:nth-child(7) {
  width: 120px;
}

.career-table th:nth-child(8),
.career-table td:nth-child(8) {
  width: 120px;
}

.career-table th:nth-child(9),
.career-table td:nth-child(9) {
  width: 120px;
}

.th-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.career-company-cell,
.career-position-cell,
.career-link-row {
  min-width: 0;
}

.career-company-cell {
  display: grid;
  gap: 4px;
}

.career-company-cell strong {
  font-size: 14px;
  line-height: 1.3;
}

.career-company-cell span {
  color: var(--muted);
  font-size: 12px;
}

.career-position-button {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(15, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 107, 255, 0.06);
  color: var(--brand-strong);
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.career-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(15, 107, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 107, 255, 0.06);
  color: var(--brand-strong);
  font-weight: 800;
  white-space: nowrap;
}

.cell-empty {
  color: var(--muted);
}

.career-empty-cell {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
}

.career-search-panel {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.career-search-panel .career-field {
  display: grid;
  gap: 8px;
}

.career-search-panel .career-field:first-child {
  grid-column: span 2;
  min-width: min(100%, 260px);
}

.career-search-panel .career-field span {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.career-search-panel .career-field input,
.career-search-panel .career-field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.career-search-panel .career-field input:focus,
.career-search-panel .career-field select:focus {
  border-color: rgba(15, 107, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 255, 0.1);
}

.career-search-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.career-search-actions .primary-button,
.career-search-actions .ghost-button {
  width: auto;
  min-width: 112px;
  white-space: nowrap;
}

.career-layout {
  align-items: start;
}

.career-legend {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(10, 159, 114, 0.22);
  border-radius: var(--radius);
  background: rgba(10, 159, 114, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.career-result-list {
  display: grid;
  gap: 10px;
}

.career-result-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 132px;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.career-result-item.is-selected {
  border-color: rgba(10, 159, 114, 0.3);
  box-shadow: inset 0 0 0 1px rgba(10, 159, 114, 0.12);
}

.career-rank {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 107, 255, 0.12), rgba(10, 159, 114, 0.12));
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 900;
}

.career-result-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.career-result-main h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.career-result-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.career-tag-row,
.career-reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.career-tag-row span,
.career-reason-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.career-reason-list span {
  border-color: rgba(10, 159, 114, 0.26);
  background: rgba(10, 159, 114, 0.08);
  color: var(--embedded);
}

.career-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-start;
}

.career-actions a,
.career-actions button {
  width: 100%;
  justify-content: center;
}

.career-queue-list {
  display: grid;
  gap: 10px;
}

.career-queue-item {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.career-queue-item.is-applied {
  border-color: rgba(10, 159, 114, 0.28);
  background:
    linear-gradient(135deg, rgba(10, 159, 114, 0.09), rgba(15, 107, 255, 0.03)),
    var(--surface-strong);
}

.career-queue-main {
  display: grid;
  gap: 4px;
}

.career-queue-main strong {
  font-size: 15px;
}

.career-queue-main em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.career-queue-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.career-queue-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.career-queue-footer {
  display: grid;
  gap: 8px;
}

.career-queue-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.paper-search-panel .paper-query-field {
  grid-column: span 2;
  min-width: min(100%, 260px);
}

.paper-search-panel .primary-button {
  width: 100%;
  min-width: 112px;
  white-space: nowrap;
}

.paper-query-field {
  display: grid;
  gap: 8px;
}

.paper-query-field span,
.paper-number-field span {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.paper-number-field {
  display: grid;
  gap: 8px;
}

.paper-query-field input,
.paper-number-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.paper-query-field input:focus,
.paper-number-field input:focus {
  border-color: rgba(15, 107, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 255, 0.1);
}

.paper-source-note {
  border-color: rgba(10, 159, 114, 0.32);
  background:
    linear-gradient(135deg, rgba(10, 159, 114, 0.1), rgba(15, 107, 255, 0.04)),
    var(--surface-strong);
}

.paper-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.paper-result-area,
.paper-citation-area {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.paper-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.paper-section-head div {
  display: grid;
  gap: 3px;
}

.paper-section-head strong {
  font-size: 16px;
}

.paper-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.paper-action-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.confirmed-paper-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(10, 159, 114, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(10, 159, 114, 0.08), transparent 48%),
    var(--surface-strong);
}

.confirmed-paper-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.confirmed-paper-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.confirmed-paper-item > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(10, 159, 114, 0.14);
  color: var(--embedded);
  font-size: 12px;
  font-weight: 900;
}

.confirmed-paper-item strong,
.confirmed-paper-item em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirmed-paper-item strong {
  font-size: 13px;
}

.confirmed-paper-item em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.paper-result-list {
  display: grid;
  gap: 10px;
}

.paper-score-legend {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(10, 159, 114, 0.24);
  border-radius: var(--radius);
  background: rgba(10, 159, 114, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.paper-result-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.paper-check {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.paper-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.paper-result-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.paper-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.paper-score-row span {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(10, 159, 114, 0.16), rgba(15, 107, 255, 0.08)),
    var(--surface);
  color: var(--embedded);
  font-size: 12px;
  font-weight: 900;
}

.paper-result-main h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.paper-result-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.paper-result-main .paper-score-reason {
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.paper-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.paper-meta-row span {
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(15, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 107, 255, 0.07);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.paper-meta-row.muted span {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.paper-output-field textarea {
  min-height: 180px;
}

.paper-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.paper-loading {
  display: grid;
  gap: 10px;
  justify-items: center;
  background: rgba(15, 107, 255, 0.035);
}

.paper-loading strong {
  color: var(--ink);
}

.paper-loading p {
  max-width: 620px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.paper-query-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.paper-query-chips span {
  padding: 4px 8px;
  border: 1px solid rgba(15, 107, 255, 0.18);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.paper-empty.compact {
  padding: 12px;
  font-size: 12px;
}

.writer-status {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.writer-notes {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(10, 159, 114, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(10, 159, 114, 0.08), transparent 44%),
    var(--surface-strong);
}

.writer-notes span {
  color: var(--embedded);
  font-weight: 900;
}

.writer-notes p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.assistant-section {
  scroll-margin-top: 80px;
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.06), transparent 36%),
    linear-gradient(90deg, rgba(15, 107, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10, 159, 114, 0.04) 1px, transparent 1px),
    var(--surface);
  background-size: auto, 44px 44px, 44px 44px, auto;
}

.section-note {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.assistant-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.assistant-section.assistant-complete .assistant-grid {
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
}

.question-panel,
.recommend-panel {
  position: relative;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), transparent),
    var(--surface);
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.06);
}

.question-panel {
  display: flex;
  flex-direction: column;
}

.answer-options {
  display: grid;
  align-content: start;
  gap: 12px;
  flex: 1 1 auto;
}

body.dark .question-panel,
body.dark .recommend-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--surface);
  box-shadow: none;
}

.question-panel::before,
.recommend-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--embedded), var(--ai));
  opacity: 0.86;
}

.question-panel h3 {
  margin-bottom: 16px;
}

.step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.step-dot {
  position: relative;
  flex: 1 1 0;
  min-width: 32px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(100, 112, 132, 0.25);
}

.step-dot i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--embedded));
  transition: width 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.answer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.035), transparent 42%),
    var(--surface-strong);
  color: var(--text);
  text-align: left;
  animation: option-slide 0.28s ease both;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.answer-card:hover {
  border-color: var(--brand);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.11), rgba(10, 159, 114, 0.08)),
    var(--surface-strong);
  box-shadow: 0 12px 28px rgba(15, 107, 255, 0.1);
  transform: translateX(4px);
}

.answer-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 107, 255, 0.14), rgba(10, 159, 114, 0.12));
  color: var(--brand-strong);
  font-weight: 900;
}

.answer-card strong,
.answer-card em {
  display: block;
}

.answer-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.assistant-result {
  display: grid;
  gap: 12px;
}

.assistant-result-list {
  display: grid;
  gap: 12px;
}

.recommend-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.recommend-head h3 {
  margin: 0 0 6px;
}

.recommend-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.assistant-empty,
.profile-panel,
.preview-project,
.assistant-matrix,
.assistant-method-note,
.assistant-result-note {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.assistant-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.profile-panel {
  display: grid;
  gap: 10px;
  animation: result-rise 0.28s ease both;
}

.assistant-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.assistant-panel-title span,
.profile-panel > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.assistant-panel-title strong {
  color: var(--brand-strong);
  font-size: 13px;
}

.assistant-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.assistant-kpi-grid div {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.assistant-kpi-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.assistant-kpi-grid strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.profile-chips,
.match-meta,
.reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-chip,
.match-meta span,
.reason-list span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-chip.muted {
  border-style: dashed;
}

.match-meta span b {
  color: var(--brand-strong);
  font-size: 11px;
}

.assistant-matrix {
  display: grid;
  gap: 12px;
  animation: result-rise 0.3s ease both;
}

.assistant-matrix-row {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.assistant-matrix-row > div:first-child {
  display: grid;
  gap: 3px;
}

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

.assistant-matrix-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.assistant-matrix-track,
.assistant-match-meter {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.assistant-matrix-track i,
.assistant-match-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--embedded));
  animation: assistantBarIn 0.72s ease-out both;
}

.assistant-method-note {
  display: grid;
  gap: 6px;
  border-style: dashed;
}

.assistant-method-note strong {
  color: var(--text);
}

.assistant-method-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.assistant-result-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.preview-list {
  display: grid;
  gap: 10px;
}

.preview-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: result-rise 0.3s ease both;
}

.preview-project strong {
  display: block;
  line-height: 1.4;
}

.preview-project em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.preview-project span {
  flex: 0 0 auto;
  color: var(--brand-strong);
  font-weight: 900;
}

.result-project {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.045), transparent 48%),
    var(--surface-strong);
  animation: result-rise 0.34s ease both;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.result-project:hover {
  border-color: rgba(15, 107, 255, 0.45);
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
  transform: translateY(-2px);
}

.result-project h3 {
  margin: 0;
  line-height: 1.45;
}

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

.reason-list {
  margin: 0;
}

.reason-list span {
  border-color: rgba(10, 159, 114, 0.3);
  background: rgba(10, 159, 114, 0.1);
  color: var(--embedded);
}

.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  animation: option-slide 0.28s ease both;
}

.assistant-final-brief {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.assistant-brief-hero,
.assistant-brief-grid div,
.assistant-brief-list,
.assistant-next-steps {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.assistant-brief-hero {
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.12), rgba(10, 159, 114, 0.08)),
    var(--surface-strong);
}

.assistant-brief-hero span,
.assistant-brief-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.assistant-brief-hero strong {
  display: block;
  margin: 8px 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.45;
}

.assistant-brief-hero p,
.assistant-next-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.assistant-brief-grid div {
  display: grid;
  gap: 6px;
}

.assistant-brief-grid strong {
  color: var(--brand-strong);
  font-size: 22px;
  line-height: 1;
}

.assistant-brief-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-brief-list strong,
.assistant-next-steps strong {
  flex: 1 1 100%;
  color: var(--text);
}

.assistant-brief-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(10, 159, 114, 0.3);
  border-radius: 999px;
  background: rgba(10, 159, 114, 0.1);
  color: var(--embedded);
  font-size: 12px;
  font-weight: 800;
}

.assistant-final-brief .assistant-actions {
  margin-top: auto;
}

.assistant-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.assistant-pagination span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@keyframes assistantBarIn {
  from {
    width: 0;
  }
}

.compare-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 304px;
  z-index: 9;
  display: none;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compare-dock.show {
  display: flex;
}

.compare-dock > div:first-child {
  min-width: 160px;
}

.compare-dock span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.compare-items {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  font-size: 13px;
}

.compare-chip span {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-chip button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  background: rgba(17, 24, 39, 0.48);
}

.drawer-backdrop.show,
.modal-backdrop.show {
  display: block;
}

#guidanceModal {
  z-index: 15;
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 11;
  width: min(520px, 100vw);
  height: 100vh;
  padding: 26px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 0.24s ease;
}

.detail-drawer.open {
  transform: translateX(0);
}

.drawer-close {
  position: sticky;
  top: 0;
  margin-left: auto;
}

.drawer-hero {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.drawer-hero h2 {
  margin: 12px 0;
}

.score-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.detail-section {
  margin-top: 18px;
}

.detail-section h3 {
  margin-bottom: 10px;
}

.detail-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-modal {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 50px);
  margin: 25px auto;
  padding: 22px;
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guidance-modal {
  width: min(780px, calc(100vw - 32px));
  max-height: calc(100vh - 50px);
  margin: 25px auto;
  padding: 22px;
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.compare-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 160px repeat(var(--compare-cols), minmax(180px, 1fr));
  border-bottom: 1px solid var(--line);
}

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

.compare-cell {
  min-height: 54px;
  padding: 12px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.compare-cell:last-child {
  border-right: 0;
}

.compare-label {
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 800;
}

.compare-advantage-strip {
  display: grid;
  grid-template-columns: 160px repeat(var(--compare-cols), minmax(180px, 1fr));
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.08), transparent 46%),
    var(--surface-strong);
}

.compare-advantage-strip::before {
  content: "横向对比";
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  margin: 14px 12px;
  border: 1px solid rgba(15, 107, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.1), rgba(16, 185, 129, 0.08)),
    var(--surface);
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.compare-advantage-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  margin: 14px 12px;
  padding: 14px;
  border: 1px solid rgba(15, 107, 255, 0.24);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(15, 107, 255, 0.08);
  animation: compareAdvantageIn 460ms ease both;
  animation-delay: var(--delay);
}

.compare-advantage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: compareShine 1600ms ease-in-out;
  animation-delay: calc(var(--delay) + 220ms);
  pointer-events: none;
}

.compare-advantage-head {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
}

.compare-advantage-head span {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.compare-advantage-head strong {
  display: block;
  width: 100%;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.compare-advantage-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.compare-advantage-pills span,
.compare-win-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(16, 185, 129, 0.48);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}

.compare-advantage-pills span.is-neutral {
  min-width: 34px;
  justify-content: center;
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--muted);
  box-shadow: none;
}

.compare-best-cell {
  position: relative;
  padding-right: 58px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(250, 204, 21, 0.1)),
    var(--surface);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.22);
  animation: compareBestPulse 1800ms ease-in-out 2;
}

.compare-win-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 22px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(250, 204, 21, 0.2));
}

.cost-pressure-meter {
  display: grid;
  gap: 8px;
  max-width: 260px;
}

.cost-pressure-top,
.cost-pressure-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cost-pressure-top strong {
  color: var(--text);
  font-size: 13px;
}

.cost-pressure-top span,
.cost-pressure-scale {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cost-pressure-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cost-pressure-track span {
  display: block;
  width: var(--cost-fill);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #facc15, #ef4444);
  background-size: 500% 100%;
  background-position: calc((var(--cost-level) - 1) * 25%) 0;
  animation: costPressureFill 780ms ease-out both, costPressureGlow 1800ms ease-in-out 2;
}

.cost-pressure-meter.low .cost-pressure-track span {
  background: linear-gradient(90deg, #22c55e, #34d399);
}

.cost-pressure-meter.medium .cost-pressure-track span {
  background: linear-gradient(90deg, #22c55e, #facc15);
}

.cost-pressure-meter.high .cost-pressure-track span {
  background: linear-gradient(90deg, #facc15, #ef4444);
}

body.dark .compare-advantage-pills span,
body.dark .compare-win-badge {
  color: #bbf7d0;
}

body.dark .compare-advantage-pills span.is-neutral {
  color: var(--muted);
}

@keyframes compareAdvantageIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes compareShine {
  to {
    transform: translateX(120%);
  }
}

@keyframes compareBestPulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.22);
  }
  50% {
    box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.42), 0 0 20px rgba(16, 185, 129, 0.12);
  }
}

@keyframes costPressureFill {
  from {
    width: 0;
  }
  to {
    width: var(--cost-fill);
  }
}

@keyframes costPressureGlow {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.25) brightness(1.08);
  }
}

.guide-summary {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.1), transparent 52%),
    var(--surface-strong);
}

.guide-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-flow-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(10, 159, 114, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(10, 159, 114, 0.18), rgba(15, 107, 255, 0.08)),
    var(--surface-strong);
  color: var(--embedded);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.service-flow-inline-button:hover {
  border-color: var(--embedded);
  background:
    linear-gradient(135deg, rgba(10, 159, 114, 0.24), rgba(15, 107, 255, 0.12)),
    var(--surface);
  transform: translateY(-1px);
}

.guide-summary h3 {
  margin: 12px 0 8px;
}

.guide-summary p {
  color: var(--muted);
  line-height: 1.7;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.qr-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  text-align: center;
}

.qr-frame {
  display: grid;
  place-items: center;
  width: min(100%, 246px);
  aspect-ratio: 1;
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.qr-card-contact .qr-frame {
  width: min(100%, 220px);
  aspect-ratio: 928 / 1380;
}

.qr-frame img,
.qr-frame canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-card h3 {
  margin: 0 0 8px;
}

.qr-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.qr-card span,
.qr-note {
  color: var(--muted);
  font-size: 12px;
}

.qr-note {
  margin: 14px 0 0;
  text-align: center;
}

.shop-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 22px;
  min-height: 360px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(10, 159, 114, 0.1), transparent 36%),
    var(--surface);
  box-shadow: 0 20px 50px rgba(23, 32, 51, 0.08);
}

.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  opacity: 0.6;
  transform: translateX(-120%);
  animation: shop-sheen 7s ease-in-out infinite;
  pointer-events: none;
}

body.dark .shop-hero::before {
  opacity: 0.14;
}

.shop-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.shop-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: 0;
}

.shop-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.service-visual-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-self: center;
}

.flow-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(10, 159, 114, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(10, 159, 114, 0.12), rgba(15, 107, 255, 0.1));
  color: var(--embedded);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(10, 159, 114, 0.1);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.flow-detail-button:hover {
  border-color: var(--embedded);
  box-shadow: 0 16px 32px rgba(10, 159, 114, 0.16);
  transform: translateY(-2px);
}

.shop-device {
  position: relative;
  align-self: center;
  min-height: 270px;
  border: 1px solid rgba(15, 107, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(103, 165, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 159, 114, 0.08) 1px, transparent 1px),
    #111827;
  background-size: 26px 26px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(15, 107, 255, 0.14);
  overflow: hidden;
}

.service-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.service-flow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 9%;
  right: 9%;
  height: 2px;
  background: rgba(103, 165, 255, 0.26);
  transform: translateY(-50%);
}

.service-flow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 9%;
  width: 82%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--embedded), transparent);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  animation: service-line 6s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(15, 107, 255, 0.34);
}

.flow-scan,
.flow-pulse {
  position: absolute;
  pointer-events: none;
}

.flow-scan {
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(103, 165, 255, 0.2), transparent);
  transform: translateX(-110%);
  animation: shop-scan 5.4s ease-in-out infinite;
}

.flow-pulse {
  top: calc(50% - 5px);
  left: calc(9% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--embedded);
  box-shadow:
    0 0 0 8px rgba(10, 159, 114, 0.12),
    0 0 22px rgba(10, 159, 114, 0.6);
  animation: service-dot 6s ease-in-out infinite;
}

.service-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-steps li {
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 150px;
  padding: 12px 8px;
  border: 1px solid rgba(103, 165, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(8, 22, 42, 0.72);
  text-align: center;
  transform: translateY(0);
  animation: service-step 6s ease-in-out infinite;
  animation-delay: calc(var(--step) * 0.42s);
}

.service-steps i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border: 1px solid rgba(103, 165, 255, 0.58);
  border-radius: 999px;
  background: rgba(15, 107, 255, 0.18);
  color: #dbeafe;
  font-style: normal;
  font-weight: 900;
}

.service-steps strong {
  color: #eef6ff;
  font-size: 14px;
  line-height: 1.35;
}

.service-steps span {
  margin-top: 8px;
  color: rgba(216, 231, 255, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.payment-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(15, 107, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 159, 114, 0.06) 1px, transparent 1px),
    var(--surface-strong);
  background-size: 24px 24px;
}

.payment-flow::before,
.payment-flow::after {
  content: "";
  position: absolute;
  top: 50px;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 999px;
}

.payment-flow::before {
  background: rgba(100, 112, 132, 0.22);
}

.payment-flow::after {
  background: linear-gradient(90deg, var(--brand), var(--embedded), var(--warning));
  transform: scaleX(0);
  transform-origin: left center;
  animation: service-line 6s ease-in-out infinite;
}

.payment-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 210px;
  padding: 14px;
  border: 1px solid rgba(15, 107, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.05);
  animation: service-step 6s ease-in-out infinite;
  animation-delay: calc(var(--step) * 0.42s);
}

body.dark .payment-step {
  background: rgba(15, 23, 42, 0.7);
}

.payment-step i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 107, 255, 0.38);
  border-radius: 999px;
  background: rgba(15, 107, 255, 0.1);
  color: var(--brand-strong);
  font-style: normal;
  font-weight: 900;
}

.payment-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.payment-step p,
.payment-step span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.payment-step span {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.flow-record-panel {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(10, 159, 114, 0.28);
  border-radius: var(--radius);
  background: rgba(10, 159, 114, 0.08);
}

.flow-record-panel span {
  color: var(--muted);
  line-height: 1.65;
}

.miniapp-proof-section {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.06), transparent 44%),
    var(--surface);
}

.proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.proof-head strong {
  font-size: 15px;
}

.miniapp-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.miniapp-shot {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.miniapp-shot.wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  align-items: center;
}

.miniapp-shot-frame {
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(100, 112, 132, 0.18);
  border-radius: var(--radius);
  background: #f3f6fb;
}

.miniapp-shot-frame img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.miniapp-shot span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 107, 255, 0.1);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.miniapp-shot strong {
  display: block;
  margin-bottom: 6px;
}

.miniapp-shot p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.shop-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(103, 165, 255, 0.24), transparent);
  transform: translateX(-110%);
  animation: shop-scan 4.8s ease-in-out infinite;
}

.shop-chip {
  position: absolute;
  top: 78px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 140px;
  height: 92px;
  border: 1px solid rgba(103, 165, 255, 0.48);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 107, 255, 0.24), rgba(10, 159, 114, 0.18));
  color: #edf3ff;
  font-weight: 900;
  transform: translateX(-50%);
  box-shadow: 0 0 34px rgba(103, 165, 255, 0.22);
}

.shop-pin,
.shop-route {
  position: absolute;
  background: rgba(103, 165, 255, 0.72);
}

.shop-pin {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(103, 165, 255, 0.66);
}

.shop-pin.p1 { top: 42px; left: 52px; }
.shop-pin.p2 { right: 58px; top: 58px; }
.shop-pin.p3 { left: 70px; bottom: 48px; }
.shop-pin.p4 { right: 84px; bottom: 60px; }

.shop-route {
  height: 2px;
  transform-origin: left center;
}

.shop-route.r1 { top: 48px; left: 62px; width: 140px; }
.shop-route.r2 { top: 194px; left: 82px; width: 220px; }
.shop-route.r3 { top: 88px; right: 68px; width: 100px; transform: rotate(90deg); }

.shop-section {
  background:
    linear-gradient(135deg, rgba(15, 107, 255, 0.06), transparent 42%),
    var(--surface);
}

.shop-search-row {
  margin: 18px 0 12px;
}

.shop-search-row .search-wrap {
  display: block;
  max-width: 620px;
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}

.shop-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.shop-tab:hover,
.shop-tab.active {
  border-color: var(--brand);
  background: rgba(15, 107, 255, 0.11);
  color: var(--brand-strong);
  transform: translateY(-1px);
}

.shop-tab.custom-tab {
  border-color: rgba(10, 159, 114, 0.5);
  background: linear-gradient(135deg, rgba(10, 159, 114, 0.16), rgba(15, 107, 255, 0.12));
  color: var(--embedded);
  box-shadow: 0 10px 22px rgba(10, 159, 114, 0.1);
}

.shop-tab.custom-tab:hover,
.shop-tab.custom-tab.active {
  border-color: var(--embedded);
  background: linear-gradient(135deg, var(--embedded), var(--brand));
  color: #fff;
  box-shadow: 0 14px 28px rgba(10, 159, 114, 0.22);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
}

.shop-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 380px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent),
    var(--surface-strong);
  animation: tool-rise 0.28s ease both;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

body.dark .shop-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    var(--surface-strong);
}

.shop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid rgba(15, 107, 255, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.shop-card:hover,
.shop-card.selected {
  border-color: rgba(15, 107, 255, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.shop-card:hover::before,
.shop-card.selected::before,
.shop-card.featured::before {
  opacity: 1;
}

.shop-card.custom-service {
  border-color: rgba(10, 159, 114, 0.42);
  background:
    linear-gradient(135deg, rgba(10, 159, 114, 0.1), transparent 42%),
    linear-gradient(315deg, rgba(15, 107, 255, 0.08), transparent 38%),
    var(--surface-strong);
}

.shop-card.custom-service::before {
  border-top-color: var(--embedded);
  opacity: 1;
}

.shop-card.is-hidden {
  display: none;
}

.shop-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(100, 112, 132, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(15, 107, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 159, 114, 0.08) 1px, transparent 1px),
    #111827;
  background-size: 20px 20px;
}

.shop-card-cover-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.shop-card-visual.has-cover {
  background: #111827;
}

.shop-card-visual.has-cover::after,
.shop-card-visual.has-cover span {
  display: none;
}

.shop-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(103, 165, 255, 0.26), transparent);
  transform: translateX(-100%);
  animation: shop-scan 5.6s ease-in-out infinite;
}

.shop-card-visual span {
  position: absolute;
  display: block;
  border-radius: 6px;
}

.shop-card-visual span:nth-child(1) {
  left: 22px;
  top: 22px;
  width: 54px;
  height: 34px;
  background: rgba(103, 165, 255, 0.34);
}

.shop-card-visual span:nth-child(2) {
  right: 26px;
  top: 34px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(10, 159, 114, 0.7);
}

.shop-card-visual span:nth-child(3) {
  left: 34px;
  right: 34px;
  bottom: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--embedded));
}

.shop-card-visual.power span:nth-child(1) { background: rgba(224, 161, 0, 0.45); }
.shop-card-visual.rf span:nth-child(2) { border-radius: 999px; }
.shop-card-visual.model span:nth-child(1) { width: 72px; }
.shop-card-visual.signal span:nth-child(3) { height: 18px; background: repeating-linear-gradient(90deg, var(--brand), var(--brand) 8px, transparent 8px, transparent 16px); }
.shop-card-visual.custom span:nth-child(1) { background: rgba(10, 159, 114, 0.36); }
.shop-card-visual.custom span:nth-child(2) { border-color: rgba(15, 107, 255, 0.78); transform: rotate(45deg); }
.shop-card-visual.custom span:nth-child(3) { height: 4px; background: linear-gradient(90deg, var(--embedded), var(--brand), var(--warning)); }
.shop-card-visual.course span:nth-child(1),
.shop-card-visual.docs span:nth-child(1),
.shop-card-visual.bundle span:nth-child(1) { background: rgba(237, 243, 255, 0.24); }

.shop-card-top,
.shop-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-card-top span,
.shop-card-top strong {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.shop-card-top span {
  background: rgba(15, 107, 255, 0.1);
  color: var(--brand-strong);
}

.shop-card-top strong {
  background: rgba(10, 159, 114, 0.1);
  color: var(--embedded);
}

.shop-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

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

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.shop-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.shop-price {
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.shop-price button {
  min-height: 34px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(15, 107, 255, 0.4);
  border-radius: var(--radius);
  background: rgba(15, 107, 255, 0.08);
  color: var(--brand-strong);
  font-weight: 900;
}

.shop-price button.selected {
  border-color: var(--embedded);
  background: rgba(10, 159, 114, 0.12);
  color: var(--embedded);
}

@keyframes board-scan {
  0% {
    transform: translateX(-115%);
  }

  45%,
  100% {
    transform: translateX(115%);
  }
}

@keyframes chip-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 8px rgba(15, 107, 255, 0.05),
      0 18px 40px rgba(15, 107, 255, 0.16);
  }

  50% {
    box-shadow:
      0 0 0 14px rgba(10, 159, 114, 0.07),
      0 22px 48px rgba(15, 107, 255, 0.2);
  }
}

@keyframes trace-flow {
  0%,
  25% {
    transform: translateX(-100%);
  }

  70%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes trace-flow-y {
  0%,
  25% {
    transform: translateY(-100%);
  }

  70%,
  100% {
    transform: translateY(100%);
  }
}

@keyframes node-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(224, 161, 0, 0.14);
  }

  50% {
    transform: scale(1.14);
    box-shadow: 0 0 0 12px rgba(224, 161, 0, 0.07);
  }
}

@keyframes option-slide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes result-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes tool-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@keyframes page-content-in {
  from {
    opacity: 0;
    filter: blur(2px);
    transform: translateX(22px) rotateY(-7deg) scale(0.985);
  }

  64% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-2px) rotateY(1deg) scale(1);
  }

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

@keyframes page-turn-in {
  from {
    opacity: 0;
    filter: blur(2px);
    transform: translateX(22px) rotateY(-7deg) scale(0.985);
  }

  62% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-2px) rotateY(1deg) scale(1);
  }

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

@keyframes nav-click-pulse {
  0% {
    opacity: 0.52;
    transform: translate(-50%, -50%) scale(0);
  }

  70% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(10);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(13);
  }
}

@keyframes shop-sheen {
  0%,
  18% {
    transform: translateX(-120%);
  }

  46%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes shop-scan {
  0%,
  22% {
    transform: translateX(-110%);
  }

  62%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes service-line {
  0%,
  10% {
    transform: translateY(-50%) scaleX(0);
  }

  72%,
  100% {
    transform: translateY(-50%) scaleX(1);
  }
}

@keyframes service-dot {
  0%,
  10% {
    left: calc(9% - 5px);
  }

  28% {
    left: calc(29.5% - 5px);
  }

  46% {
    left: calc(50% - 5px);
  }

  64% {
    left: calc(70.5% - 5px);
  }

  82%,
  100% {
    left: calc(91% - 5px);
  }
}

@keyframes service-step {
  0%,
  18%,
  100% {
    border-color: rgba(103, 165, 255, 0.28);
    box-shadow: none;
    transform: translateY(0);
  }

  28%,
  46% {
    border-color: rgba(10, 159, 114, 0.72);
    box-shadow:
      0 18px 34px rgba(10, 159, 114, 0.14),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-6px);
  }
}

@keyframes action-button-shine {
  from {
    transform: translateX(-125%);
  }

  to {
    transform: translateX(125%);
  }
}

@keyframes careerRankSweep {
  0% {
    transform: translateX(-120%);
  }

  46%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes careerRankOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes careerRankIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes careerRankBar {
  from {
    width: 0;
  }

  to {
    width: var(--rank-width);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }

  .primary-button::after,
  .metric-card::before,
  .project-card::before {
    transition: none;
    animation: none;
  }

  .board-visual::after,
  .board-chip,
  .trace::after,
  .node,
  .answer-card,
  .profile-panel,
  .assistant-matrix,
  .assistant-matrix-track i,
  .assistant-match-meter i,
  .preview-project,
  .result-project,
  .tool-card,
  .shop-hero::before,
  .shop-scan,
  .flow-scan,
  .flow-pulse,
  .service-flow::after,
  .service-steps li,
  .payment-flow::after,
  .payment-step,
  .shop-card,
  .shop-card-visual::after,
  .assistant-actions,
  .main,
  .tool-page.page-turn,
  .nav-item.is-clicking::after,
  .tool-hub-nav button.is-clicking::after {
    animation: none;
  }

  body.page-leaving .main {
    transition: none;
  }
}

@media (max-width: 1180px) {
  .hero-panel,
  .assistant-grid {
    grid-template-columns: 1fr;
  }

  .project-search-row {
    grid-template-columns: 1fr;
  }

  .project-search-row .search-wrap {
    max-width: none;
  }

  .project-metric-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .writer-grid {
    grid-template-columns: 1fr;
  }

  .career-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .career-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-toolbar-actions {
    grid-column: span 3;
    justify-content: flex-start;
  }

  .paper-layout,
  .paper-search-panel {
    grid-template-columns: 1fr;
  }

  .career-search-panel .career-field:first-child {
    grid-column: span 1;
    min-width: 0;
  }

  .career-search-actions {
    justify-content: flex-start;
  }

  .tool-hub-nav {
    flex-wrap: wrap;
    max-width: none;
  }

  .shop-hero {
    grid-template-columns: 1fr;
  }

  .service-steps li {
    min-height: 132px;
  }

  .payment-flow {
    grid-template-columns: 1fr;
  }

  .payment-flow::before,
  .payment-flow::after {
    display: none;
  }

  .miniapp-shot-grid,
  .miniapp-shot.wide {
    grid-template-columns: 1fr;
  }

  .miniapp-shot.wide {
    grid-column: auto;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .serial-console-grid {
    grid-template-columns: 1fr;
  }

  .module-catalog-toolbar,
  .module-catalog-layout,
  .learning-route-toolbar,
  .learning-route-layout,
  .flow-diagram-toolbar,
  .flow-diagram-layout,
  .about-hero {
    grid-template-columns: 1fr;
  }

  .learning-stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-resource-grid {
    grid-template-columns: 1fr;
  }

  .flow-diagram-grid {
    grid-template-columns: 1fr;
  }

  .skill-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-profile-grid,
  .about-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .signal-panel {
    display: none;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .main {
    padding: 16px 16px 110px;
  }

  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid,
  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-overview-grid .career-metrics {
    display: contents;
  }

  .career-insight-grid {
    display: contents;
  }

  .career-toolbar-actions {
    grid-column: span 2;
  }

  .project-layout {
    grid-template-areas:
      "filter"
      "content";
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assistant-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .assistant-matrix-row {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .subcategory-panel {
    top: calc(100% + 8px);
    left: 0;
    width: min(320px, calc(100vw - 48px));
    transform: translateY(-8px) scale(0.98);
  }

  .subcategory-panel::before {
    top: -7px;
    left: 28px;
    border: 0;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .category-cascade:has(.custom-select.open) .subcategory-panel.available {
    transform: translateY(0) scale(1);
  }

  .compare-dock {
    left: 16px;
    right: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .sidebar {
    padding: 16px;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-actions {
    align-self: flex-end;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-actions {
    justify-content: flex-start;
  }

  .project-metric-strip {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .section-block {
    padding: 18px;
  }

  .board-visual {
    min-height: 260px;
  }

  .filter-panel,
  .project-grid,
  .tool-grid,
  .shop-grid,
  .metric-grid,
  .module-result-grid,
  .module-spec-grid,
  .learning-stage-list,
  .learning-route-kpis {
    grid-template-columns: 1fr;
  }

  .learning-resource-card {
    flex-direction: column;
  }

  .skill-library-grid {
    grid-template-columns: 1fr;
  }

  .module-toolbar-actions,
  .module-result-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .about-profile-grid,
  .about-process-grid {
    grid-template-columns: 1fr;
  }

  .about-profile-card {
    min-height: 390px;
  }

  .assistant-kpi-grid {
    grid-template-columns: 1fr;
  }

  .assistant-matrix-row {
    grid-template-columns: 1fr;
  }

  .assistant-result-note,
  .preview-project,
  .assistant-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .career-toolbar {
    grid-template-columns: 1fr;
  }

  .career-toolbar-actions {
    grid-column: span 1;
  }

  body.tools-page .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  body.tools-page .tool-hub-nav {
    flex-wrap: wrap;
  }

  body.tools-page .tool-hub-label {
    flex: 1 1 100%;
    min-height: 28px;
    padding: 0;
    border-right: 0;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  body.tools-page .tool-hub-nav button {
    min-width: min(170px, 100%);
  }

  .writer-tool-head,
  .writer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .paper-section-head,
  .paper-action-inline {
    align-items: stretch;
    flex-direction: column;
  }

  .career-search-panel .career-field:first-child {
    grid-column: span 1;
    min-width: 0;
  }

  .career-search-actions {
    justify-content: flex-start;
  }

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

  .paper-result-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .career-result-item {
    grid-template-columns: 1fr;
  }

  .career-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .career-actions a,
  .career-actions button {
    width: auto;
    flex: 1 1 0;
  }

  .writer-status {
    margin-left: 0;
  }

  .service-flow {
    padding: 18px;
  }

  .service-flow::before,
  .service-flow::after,
  .flow-pulse {
    display: none;
  }

  .service-steps {
    grid-template-columns: 1fr;
  }

  .service-steps li {
    min-height: auto;
    justify-items: start;
    text-align: left;
  }

  .proof-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .serial-head,
  .serial-controls,
  .serial-send-row {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .axis-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .serial-controls label,
  .serial-send-row input[type="text"],
  .serial-interval,
  .serial-controls button,
  .serial-send-row button {
    width: 100%;
  }

  .table-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compare-row {
    grid-template-columns: 120px repeat(var(--compare-cols), minmax(150px, 1fr));
  }

  .compare-advantage-strip {
    grid-template-columns: 120px repeat(var(--compare-cols), minmax(150px, 1fr));
  }

  .qr-grid {
    grid-template-columns: 1fr;
  }
}

body.dark .studio-badge,
body.dark .wave-card {
  background: rgba(17, 20, 24, 0.76);
}

body.dark .project-card,
body.dark .project-card.featured,
body.dark .tool-card,
body.dark .shop-card,
body.dark .metric-card,
body.dark .paper-result-item,
body.dark .career-result-item,
body.dark .module-card,
body.dark .qr-card,
body.dark .drawer-hero,
body.dark .detail-section,
body.dark .compare-cell,
body.dark .guidance-modal,
body.dark .drawer-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 42%),
    #171b21;
  border-color: rgba(255, 255, 255, 0.09);
}

body.dark .hero-panel {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.075), transparent 42%),
    linear-gradient(315deg, rgba(52, 211, 153, 0.055), transparent 40%),
    #111418;
}

body.dark .project-card:hover,
body.dark .project-card.expanded,
body.dark .tool-card:hover,
body.dark .shop-card:hover,
body.dark .career-result-item:hover,
body.dark .paper-result-item:hover,
body.dark .module-card:hover {
  border-color: rgba(125, 211, 252, 0.34);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.44);
}

body.dark .pagination,
body.dark .compare-label,
body.dark .compare-advantage-strip,
body.dark .cost-pressure-track,
body.dark .tag,
body.dark .page-button,
body.dark .segmented,
body.dark .subtype-button,
body.dark .shop-tab,
body.dark .career-rank-row,
body.dark .serial-view-tab {
  background: #111418;
  border-color: rgba(255, 255, 255, 0.09);
}

body.dark .resource-buttons .github-source-button {
  background: #151922;
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--text);
}

body.dark .page-button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #041016;
}

body.dark .pagination-current {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(125, 211, 252, 0.32);
  color: var(--brand-strong);
}



