:root {
  --ink: #17140e;
  --muted: #746f62;
  --line: #ddd6c7;
  --bg: #f7f4ed;
  --panel: #ffffff;
  --accent: #a7792b;
  --accent-2: #b73535;
  --gold: #d6a847;
  --blue: #315f9f;
  --charcoal: #11100d;
  --shadow: 0 18px 50px rgba(23, 20, 14, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f6eddc;
  --muted: #c8b993;
  --line: rgba(255, 224, 150, 0.16);
  --bg: #0b0a08;
  --panel: #15120d;
  --accent: #d6a847;
  --accent-2: #e06a5f;
  --gold: #e0b95d;
  --blue: #7aa7e8;
  --charcoal: #090805;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body.guest-mode {
  user-select: none;
}

body.guest-mode input,
body.guest-mode textarea {
  user-select: text;
}

.guest-permission-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(214, 168, 71, 0.34);
  border-radius: 8px;
  background: rgba(214, 168, 71, 0.12);
  color: var(--ink);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.guest-permission-notice strong {
  color: var(--accent);
}

.guest-permission-notice span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

body.guest-mode [data-copy],
body.guest-mode [data-copy-current-url],
body.guest-mode a[download] {
  cursor: not-allowed;
  opacity: 0.56;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.sidebar {
  background: #11100d;
  color: #f8f3e7;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.projects-mode .sidebar {
  background: #11100d;
  background-image: none;
}

.projects-mode .community-hero,
.projects-mode .project-source-strip,
.projects-mode .community-card,
.projects-mode .community-image-placeholder,
.projects-mode .project-waterfall-progress span {
  background-image: none;
}

.projects-mode .community-card {
  background-color: #17140f;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(214, 168, 71, 0.22);
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #f1efe5;
  color: #11100d;
  font-weight: 800;
  border-radius: 8px;
}

.brand-mark.image-mark {
  overflow: hidden;
  padding: 0;
  border-color: rgba(214, 168, 71, 0.65);
  background: #090805;
  box-shadow: 0 0 0 3px rgba(214, 168, 71, 0.08);
}

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

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

.brand span {
  color: #c9b98e;
  font-size: 13px;
  margin-top: 4px;
}

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

.nav-item {
  border: 0;
  background: transparent;
  color: #e7dfcf;
  text-align: left;
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(214, 168, 71, 0.16);
  color: #ffffff;
}

.cost-rule {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(214, 168, 71, 0.22);
  border-radius: 8px;
  background: rgba(214, 168, 71, 0.08);
}

.cost-rule span {
  color: #c9b98e;
  font-size: 12px;
}

.cost-rule strong {
  display: block;
  margin: 6px 0;
  font-size: 18px;
}

.cost-rule p {
  margin: 0;
  color: #e2d8bf;
  font-size: 13px;
  line-height: 1.6;
}

.cost-rule .content-safety-rule {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(214, 168, 71, 0.2);
  color: #ffe6a7;
  font-weight: 700;
}

:root[data-theme="light"] .sidebar,
:root[data-theme="light"].projects-mode .sidebar {
  background: #ffffff;
  color: #17140e;
  border-right: 1px solid var(--line);
}

:root[data-theme="light"] .brand {
  border-bottom-color: var(--line);
}

:root[data-theme="light"] .brand span,
:root[data-theme="light"] .cost-rule span {
  color: var(--muted);
}

:root[data-theme="light"] .nav-item {
  color: var(--ink);
}

:root[data-theme="light"] .nav-item:hover,
:root[data-theme="light"] .nav-item.active {
  background: rgba(167, 121, 43, 0.12);
  color: var(--ink);
}

:root[data-theme="light"] .cost-rule {
  border-color: var(--line);
  background: #fffaf0;
}

:root[data-theme="light"] .cost-rule p {
  color: var(--muted);
}

:root[data-theme="light"] .cost-rule .content-safety-rule {
  border-top-color: rgba(167, 121, 43, 0.22);
  color: #7c4b00;
}

.platform-info-card p + p {
  margin-top: 5px;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 30px;
}

h2 {
  margin: 0;
  font-size: 18px;
}

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

.auth-actions {
  display: flex;
  gap: 8px;
}

.auth-btn {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 13px;
  cursor: pointer;
  font-weight: 700;
}

.auth-btn.register {
  color: #fff;
  border-color: var(--charcoal);
  background: var(--charcoal);
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 13, 11, 0.48);
}

.login-dialog {
  position: relative;
  width: min(380px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.login-dialog h2 {
  margin: 0;
  font-size: 24px;
}

.login-dialog label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.login-dialog input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.login-dialog p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.login-page-panel {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.embedded-login-dialog {
  width: 100%;
  box-shadow: none;
}

body.login-index-mode {
  min-height: 100vh;
  overflow: hidden;
  background: #090805;
}

body.login-index-mode .app-shell {
  display: block;
  min-height: 100vh;
}

body.login-index-mode .sidebar,
body.login-index-mode .topbar,
body.login-index-mode .theme-toggle,
body.login-index-mode .settings-dock {
  display: none;
}

body.login-index-mode .main {
  min-height: 100vh;
  padding: 0;
}

body.login-index-mode .view-root {
  min-height: 100vh;
  padding: 0;
}

.login-index-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: grid;
  align-items: center;
  justify-items: start;
  padding: clamp(24px, 5vw, 56px);
  padding-left: clamp(28px, 10vw, 140px);
  background: #090805;
}

.login-hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #fff7df;
}

.login-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: none;
}

.login-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 6, 16, 0.82) 0%, rgba(1, 6, 16, 0.42) 42%, rgba(1, 6, 16, 0.28) 62%, rgba(1, 6, 16, 0.74) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 48%, rgba(0, 0, 0, 0.72) 100%);
}

.login-hero-copy {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(680px, 100%);
  display: grid;
  align-content: end;
  gap: 14px;
  padding: clamp(32px, 6vw, 80px);
}

.login-hero-copy h1 {
  max-width: 560px;
  margin: 0;
  color: #fff7df;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.08;
}

.login-hero-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 247, 223, 0.78);
  line-height: 1.8;
}

.login-index-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f8f3e7;
  text-align: left;
}

.login-index-brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #090805;
}

.login-index-brand strong,
.login-index-brand span {
  display: block;
}

.login-index-brand span {
  margin-top: 3px;
  color: rgba(206, 226, 255, 0.82);
  font-size: 13px;
}

.login-panel {
  position: relative;
  z-index: 2;
  width: min(340px, 100%);
  display: grid;
  align-items: center;
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(255, 231, 170, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(3, 9, 18, 0.7), rgba(2, 7, 14, 0.62));
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 212, 113, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

@media (min-width: 1400px) {
  .login-index-page {
    padding-left: clamp(280px, 18.5vw, 350px);
  }

  .login-panel {
    width: min(360px, 100%);
  }
}

.login-panel-inner {
  width: 100%;
  display: grid;
  gap: 12px;
}

.login-panel-head {
  display: grid;
  gap: 4px;
}

.login-panel-head h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 22px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border: 1px solid rgba(255, 231, 170, 0.18);
  border-radius: 8px;
  padding: 5px;
  background: rgba(2, 8, 18, 0.42);
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(206, 226, 255, 0.76);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.active {
  background: linear-gradient(135deg, #f09a3c, #ffbf67);
  color: #07101e;
  box-shadow: 0 10px 24px rgba(240, 154, 60, 0.22);
}

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

.login-index-card {
  width: 100%;
  border-color: transparent;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.login-index-card label {
  color: rgba(206, 226, 255, 0.82);
}

.login-index-card input {
  min-height: 42px;
  border-color: rgba(255, 231, 170, 0.16);
  background: rgba(1, 7, 17, 0.54);
  color: #f8fbff;
}

.login-index-card input::placeholder {
  color: rgba(206, 226, 255, 0.45);
}

.login-index-card .primary-btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  margin-top: 2px;
  background: linear-gradient(135deg, #f09a3c, #ffbf67);
  color: #07101e;
  box-shadow: 0 14px 36px rgba(240, 154, 60, 0.24);
}

.login-index-card p:last-child {
  color: rgba(206, 226, 255, 0.68);
}

@media (max-width: 860px) {
  body.login-index-mode {
    overflow: auto;
  }

  .login-index-page {
    min-height: 100vh;
    padding: 22px;
    justify-items: center;
  }

  .login-hero {
    min-height: 100vh;
  }

  .login-hero-copy {
    min-height: 100vh;
    padding: 24px;
  }

  .login-hero-copy h1 {
    font-size: 30px;
  }

  .login-panel {
    min-height: auto;
    padding: 24px;
    margin-top: 0;
  }
}

.theme-toggle {
  position: fixed;
  right: 82px;
  bottom: 22px;
  z-index: 80;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 168, 71, 0.42);
  border-radius: 50%;
  padding: 0;
  background: #11100d;
  color: #fff7dd;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
  cursor: pointer;
}

.theme-icon {
  width: 22px;
  height: 22px;
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme="dark"] .theme-icon-on,
:root[data-theme="light"] .theme-icon-off {
  display: block;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(255, 224, 150, 0.74);
  outline: none;
}

:root[data-theme="light"] .theme-toggle {
  background: #ffffff;
  color: #17140e;
}

.settings-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
}

.settings-toggle {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 168, 71, 0.42);
  border-radius: 50%;
  padding: 0;
  background: #11100d;
  color: #fff7dd;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
  cursor: pointer;
}

.settings-toggle svg,
.settings-menu svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-toggle:hover,
.settings-toggle:focus-visible {
  border-color: rgba(255, 224, 150, 0.74);
  outline: none;
}

.settings-menu {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: 168px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.settings-menu[hidden] {
  display: none;
}

.settings-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.settings-menu button:hover,
.settings-menu button:focus-visible {
  background: rgba(214, 168, 71, 0.16);
  outline: none;
}

.learning-entry-grid article {
  cursor: pointer;
}

.current-url-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: -8px 0 18px;
  padding: 9px 12px;
  border: 1px solid rgba(167, 121, 43, 0.18);
  border-radius: 8px;
  background: rgba(251, 252, 250, 0.86);
}

.current-url-strip span {
  color: var(--muted);
  font-size: 12px;
}

.current-url-strip a {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.current-url-strip a:hover {
  text-decoration: underline;
}

.current-url-strip .copy-btn {
  width: auto;
  margin: 0;
  padding: 7px 10px;
  font-size: 12px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .auth-btn {
  background: #12100c;
  color: var(--ink);
  border-color: var(--line);
}

textarea {
  resize: vertical;
}

#global-search {
  width: min(360px, 40vw);
}

.primary-btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.primary-btn:hover {
  background: #8f6623;
}

.view-root {
  display: grid;
  gap: 18px;
}

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

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

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

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.metric p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.content-grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

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

.stack {
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfa;
}

.item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

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

:root[data-theme="dark"] .main,
:root[data-theme="dark"] .view-root {
  background: var(--bg);
}

:root[data-theme="dark"] .topbar {
  color: var(--ink);
}

:root[data-theme="dark"] .current-url-strip,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .item,
:root[data-theme="dark"] .portal-card,
:root[data-theme="dark"] .prompt-content-block,
:root[data-theme="dark"] .prompt-media-section,
:root[data-theme="dark"] .case-reading-shell,
:root[data-theme="dark"] .reading-download-list,
:root[data-theme="dark"] .pending-prompt-list article {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .portal-body h3,
:root[data-theme="dark"] .masonry-body h3,
:root[data-theme="dark"] .detail-content h2,
:root[data-theme="dark"] .reading-hero h1,
:root[data-theme="dark"] .case-reading-shell h1,
:root[data-theme="dark"] .prompt-section-head h2,
:root[data-theme="dark"] .prompt-content-block h2,
:root[data-theme="dark"] .pending-prompt-list strong {
  color: var(--ink);
}

:root[data-theme="dark"] .portal-body p,
:root[data-theme="dark"] .masonry-body p,
:root[data-theme="dark"] .reading-hero p,
:root[data-theme="dark"] .detail-content p,
:root[data-theme="dark"] .pending-prompt-list small {
  color: var(--muted);
}

:root[data-theme="dark"] .prompt-content-head,
:root[data-theme="dark"] .prompt-section-head,
:root[data-theme="dark"] .reading-hero,
:root[data-theme="dark"] .panel-header {
  border-color: var(--line);
}

:root[data-theme="dark"] .pill {
  color: var(--muted);
  border-color: var(--line);
  background: #1c1811;
}

:root[data-theme="dark"] .category-chip {
  color: var(--ink);
  border-color: var(--line);
  background: #15120d;
}

:root[data-theme="dark"] .category-chip span {
  color: var(--muted);
}

:root[data-theme="dark"] .category-chip.active,
:root[data-theme="dark"] .category-chip:hover {
  color: #11100d;
  background: var(--gold);
}

:root[data-theme="dark"] .masonry-card,
:root[data-theme="dark"] .community-card,
:root[data-theme="dark"] .project-community-card {
  border-color: rgba(255, 224, 150, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    #15120d;
  color: var(--ink);
}

:root[data-theme="dark"] .masonry-card img,
:root[data-theme="dark"] .portal-media,
:root[data-theme="dark"] .reading-image-grid img {
  background: #090805;
}

:root[data-theme="dark"] .reading-article,
:root[data-theme="dark"] .reading-layout,
:root[data-theme="dark"] .reading-shell,
:root[data-theme="dark"] .prompt-reading-shell {
  color: var(--ink);
}

:root[data-theme="dark"] .reading-breadcrumb {
  color: var(--muted);
}

:root[data-theme="dark"] .reading-image-grid figcaption,
:root[data-theme="dark"] .reading-download-list a,
:root[data-theme="dark"] .knowledge-stats article,
:root[data-theme="dark"] .knowledge-source-card,
:root[data-theme="dark"] .knowledge-doc-card,
:root[data-theme="dark"] .admin-access,
:root[data-theme="dark"] .ops-message {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

:root[data-theme="dark"] .knowledge-nav a {
  border-color: var(--line);
  background: #15120d;
  color: var(--ink);
}

:root[data-theme="dark"] .knowledge-nav a.active {
  border-color: rgba(214, 168, 71, 0.52);
  background: var(--gold);
  color: #11100d;
}

:root[data-theme="dark"] .zhangdao-doc-grid .knowledge-doc-card {
  background: #1c1811;
}

:root[data-theme="dark"] .knowledge-layer {
  color: #f0d189;
  background: rgba(214, 168, 71, 0.14);
}

:root[data-theme="dark"] .knowledge-layer.risk-low {
  color: #8ee0b0;
  background: rgba(58, 142, 91, 0.18);
}

:root[data-theme="dark"] .knowledge-layer.risk-medium {
  color: #f0d189;
}

:root[data-theme="dark"] .current-url-strip a,
:root[data-theme="dark"] .reading-download-list a span,
:root[data-theme="dark"] .knowledge-source-card h3,
:root[data-theme="dark"] .knowledge-doc-card h3 {
  color: var(--ink);
}

:root[data-theme="light"] .masonry-card,
:root[data-theme="light"] .community-card,
:root[data-theme="light"] .project-community-card {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .masonry-body h3,
:root[data-theme="light"] .creator-line {
  color: var(--ink);
}

:root[data-theme="light"] .masonry-body p,
:root[data-theme="light"] .creator-line small,
:root[data-theme="light"] .project-community-card p {
  color: var(--muted);
}

:root[data-theme="light"] .copy-btn.dark {
  border-color: rgba(167, 121, 43, 0.28);
  background: rgba(167, 121, 43, 0.08);
  color: var(--accent);
}

:root[data-theme="light"] .project-source-strip,
:root[data-theme="light"] .project-community-hero,
:root[data-theme="light"] .community-reading-hero,
:root[data-theme="light"] .community-reading-panel {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

:root[data-theme="light"] .community-reading-shell,
:root[data-theme="light"] .community-reading-copy h1,
:root[data-theme="light"] .community-reading-panel h2,
:root[data-theme="light"] .post-head strong,
:root[data-theme="light"] .inspiration-post h3 {
  color: var(--ink);
}

:root[data-theme="light"] .community-reading-copy p,
:root[data-theme="light"] .community-reading-panel p:not(.eyebrow),
:root[data-theme="light"] .inspiration-post p,
:root[data-theme="light"] .post-head,
:root[data-theme="light"] .post-head small {
  color: var(--muted);
}

:root[data-theme="light"] .post-media,
:root[data-theme="light"] .post-tags span,
:root[data-theme="light"] .post-actions,
:root[data-theme="light"] .post-actions button {
  border-color: var(--line);
}

:root[data-theme="light"] .post-tags span,
:root[data-theme="light"] .post-actions button {
  color: var(--muted);
  background: #fffaf0;
}

:root[data-theme="light"] .zhangdao-knowledge-feature {
  border-color: rgba(167, 121, 43, 0.24);
  background: #ffffff;
  color: var(--ink);
}

:root[data-theme="light"] .zhangdao-feature-copy p {
  color: var(--muted);
}

:root[data-theme="light"] .zhangdao-feature-copy .asset-link,
:root[data-theme="light"] .dark-link {
  color: var(--accent);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}

.pill.strong {
  color: var(--accent);
  border-color: rgba(167, 121, 43, 0.24);
  background: rgba(167, 121, 43, 0.08);
}

.copy-btn {
  margin-top: 12px;
  border: 1px solid rgba(167, 121, 43, 0.28);
  background: rgba(167, 121, 43, 0.08);
  color: var(--accent);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.copy-btn:hover {
  background: rgba(167, 121, 43, 0.14);
}

.progress {
  height: 8px;
  background: #e7ebe7;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

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

.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfa;
}

.project-cover {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #211d15;
}

.project-card h3 {
  margin: 0;
  font-size: 18px;
}

.asset-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 12px;
  border: 1px solid rgba(167, 121, 43, 0.28);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--accent);
  background: rgba(167, 121, 43, 0.08);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.asset-link:hover {
  background: rgba(167, 121, 43, 0.14);
}

.stage-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.stage {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
}

.stage.done {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.stage.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.wide {
  grid-column: 1 / -1;
}

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

.timeline div {
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.timeline b {
  color: var(--accent-2);
  display: block;
  margin-bottom: 8px;
}

.timeline span {
  color: var(--ink);
  line-height: 1.55;
  font-size: 14px;
}

.empty {
  color: var(--muted);
  padding: 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.ops-hero > div > p:last-child,
.workbench-hero > div > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.workbench-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}

.workbench-note {
  border: 1px solid rgba(167, 121, 43, 0.24);
  border-radius: 8px;
  background: rgba(167, 121, 43, 0.08);
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.workbench-note strong {
  color: var(--accent);
  font-size: 18px;
}

.workbench-note span,
.form-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.workbench-entry-panel,
.workbench-console-panel,
.workbench-config-panel {
  display: grid;
  gap: 16px;
  border-color: rgba(23, 20, 14, 0.12);
  background: color-mix(in srgb, var(--paper) 94%, #ffffff);
}

.workbench-entry-head,
.workbench-config-head {
  align-items: end;
}

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

.workbench-entry-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.workbench-entry-card,
.workbench-config-section {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfa;
}

.workbench-entry-card h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 22px;
}

.workbench-entry-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.workbench-entry-card .status-list {
  gap: 6px;
}

.workbench-entry-card .studio-launch-actions {
  margin-top: 2px;
}

.entry-brand-lockup {
  margin: 0;
  background: rgba(214, 168, 71, 0.08);
}

.libtv-entry {
  border-color: rgba(49, 95, 159, 0.18);
  background: color-mix(in srgb, #fbfcfa 92%, rgba(49, 95, 159, 0.08));
}

.workbench-config-grid {
  align-items: start;
}

.workbench-project-list {
  display: grid;
  gap: 10px;
}

.workbench-project-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.workbench-project-entry strong,
.workbench-project-entry span {
  display: block;
}

.workbench-project-entry strong {
  color: var(--ink);
  font-size: 15px;
}

.workbench-project-entry span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workbench-maintenance-panel {
  padding: 0;
  overflow: hidden;
}

.workbench-maintenance-panel > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  padding: 16px;
  list-style: none;
}

.workbench-maintenance-panel > summary::-webkit-details-marker {
  display: none;
}

.workbench-maintenance-panel > summary span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.workbench-maintenance-panel > summary strong {
  color: var(--ink);
  font-size: 18px;
}

.workbench-maintenance-panel > summary small {
  color: var(--muted);
  font-size: 12px;
}

.workbench-maintenance-panel[open] {
  padding-bottom: 16px;
}

.workbench-maintenance-panel[open] > .workbench-config-grid,
.workbench-maintenance-panel[open] > .workbench-config-section {
  margin: 0 16px 16px;
}

.workbench-stage-section {
  padding: 16px;
}

.workbench-stage-section .workflow-rail {
  margin-top: 2px;
}

.studio-launch-panel {
  display: grid;
  gap: 16px;
}

.studio-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border: 1px solid rgba(214, 168, 71, 0.34);
  border-radius: 8px;
  padding: 8px 12px 8px 8px;
  background: rgba(17, 16, 13, 0.08);
  color: #11100d;
  font-weight: 900;
  line-height: 1;
}

.studio-brand-lockup img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.banner-brand-lockup {
  margin-bottom: 14px;
  border-color: rgba(255, 223, 143, 0.38);
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.banner-brand-lockup img {
  width: 44px;
  height: 44px;
}

.hero-brand-lockup,
.launch-brand-lockup {
  margin-bottom: 14px;
}

.studio-launch-banner {
  overflow: hidden;
  border: 1px solid rgba(95, 123, 255, 0.22);
  border-radius: 8px;
  background: #080a0d;
  aspect-ratio: 2048 / 720;
}

.studio-launch-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-logo-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(132px, 210px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3.4vw, 42px);
  min-height: clamp(360px, 34vw, 520px);
  overflow: hidden;
  border: 1px solid rgba(255, 218, 142, 0.36);
  border-radius: 8px;
  padding: clamp(24px, 4.2vw, 54px);
  background: #050607;
  color: #f8edc9;
  box-shadow: 0 28px 90px rgba(5, 7, 10, 0.36);
}

.studio-logo-stage::before,
.studio-logo-stage::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.studio-logo-stage::before {
  background:
    linear-gradient(90deg, rgba(3, 4, 7, 0.94), rgba(3, 4, 7, 0.68) 34%, rgba(3, 4, 7, 0.28) 62%, rgba(3, 4, 7, 0.74)),
    radial-gradient(circle at 22% 48%, rgba(214, 168, 71, 0.42), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(54, 111, 207, 0.22), transparent 34%);
}

.studio-logo-stage::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(135deg, transparent 0 45%, rgba(255, 218, 142, 0.18) 45.2% 45.6%, transparent 46% 100%);
  mix-blend-mode: screen;
  opacity: 0.52;
}

.studio-bg-carousel,
.studio-bg-slide,
.studio-bg-slide img {
  position: absolute;
  inset: 0;
}

.studio-bg-carousel {
  z-index: -2;
  background: #050607;
}

.studio-bg-slide {
  margin: 0;
  opacity: 0;
  animation: studioBackdropFade 18s ease-in-out infinite;
  animation-delay: calc(var(--slide-index) * 6s);
}

.studio-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.studio-logo-orbit {
  width: min(28vw, 190px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 226, 153, 0.3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.48),
    inset 0 0 32px rgba(214, 168, 71, 0.16);
  backdrop-filter: blur(7px);
}

.studio-logo-orbit img {
  width: 86%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.56));
}

.studio-logo-copy {
  max-width: 720px;
}

.studio-logo-copy span {
  display: block;
  color: #ffe091;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.68);
}

.studio-logo-copy strong {
  display: block;
  margin-top: 10px;
  color: #fff7dd;
  font-size: clamp(38px, 5.4vw, 78px);
  line-height: 0.98;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.72);
}

.studio-logo-copy p {
  max-width: 42ch;
  margin: 14px 0 0;
  color: #fff3d0;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.78);
}

.studio-logo-copy small {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  border: 1px solid rgba(255, 226, 153, 0.26);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.38);
  color: rgba(255, 244, 211, 0.82);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(7px);
}

.studio-carousel-dots {
  position: absolute;
  left: clamp(24px, 4.2vw, 54px);
  bottom: clamp(18px, 3vw, 32px);
  display: flex;
  gap: 8px;
}

.studio-carousel-dots span {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 241, 205, 0.26);
  animation: studioDotPulse 18s ease-in-out infinite;
  animation-delay: calc(var(--slide-index) * 6s);
}

@keyframes studioBackdropFade {
  0%,
  30% {
    opacity: 1;
  }
  36%,
  94% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes studioDotPulse {
  0%,
  30% {
    background: #ffe091;
    box-shadow: 0 0 14px rgba(255, 224, 145, 0.7);
  }
  36%,
  94% {
    background: rgba(255, 241, 205, 0.26);
    box-shadow: none;
  }
  100% {
    background: #ffe091;
    box-shadow: 0 0 14px rgba(255, 224, 145, 0.7);
  }
}

.studio-launch-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.studio-launch-content h2 {
  margin: 0;
  font-size: 28px;
}

.studio-launch-content p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.studio-launch-actions .primary-btn,
.studio-launch-actions .asset-link {
  margin: 0;
  text-decoration: none;
  white-space: nowrap;
}

.studio-launch-status {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.workflow-stage {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.workflow-stage > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: rgba(167, 121, 43, 0.1);
  font-weight: 900;
  font-size: 13px;
}

.workflow-stage h3,
.connector-card h3 {
  margin: 0;
  font-size: 16px;
}

.workflow-stage p,
.connector-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.connector-list {
  display: grid;
  gap: 12px;
}

.connector-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

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

.external-workflow-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  display: grid;
  gap: 12px;
}

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

.workflow-card-head h3 {
  margin: 0;
  font-size: 18px;
}

.workflow-card-head > span {
  white-space: nowrap;
  border: 1px solid rgba(49, 95, 159, 0.18);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--blue);
  background: rgba(49, 95, 159, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.external-workflow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.external-workflow-card .status-list.compact div {
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
}

.external-workflow-card .status-list span,
.external-workflow-card .status-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.command-list {
  display: grid;
  gap: 6px;
}

.command-list code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #11100d;
  color: #f8f3e7;
  font-size: 12px;
  line-height: 1.5;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
  overflow-x: auto;
}

.role-card {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.role-card > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #11100d;
  background: var(--gold);
  font-weight: 900;
}

.role-card h3 {
  margin: 0;
  font-size: 18px;
}

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

.content-safety-panel {
  border-color: rgba(214, 168, 71, 0.28);
}

.content-safety-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.safety-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.safety-topic-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fbfcfa;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.agent-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  overflow-x: visible;
}

.agent-card {
  min-height: 220px;
}

.clickable-card {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(214, 168, 71, 0.58);
  box-shadow: 0 18px 42px rgba(17, 16, 13, 0.12);
  outline: none;
}

.role-columns {
  display: grid;
  gap: 10px;
}

.role-columns div {
  display: grid;
  gap: 6px;
  align-content: start;
}

.role-columns strong {
  color: var(--ink);
  font-size: 13px;
}

.role-columns em {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--muted);
  background: #fbfcfa;
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.visibility-table {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.visibility-table div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.visibility-table strong,
.visibility-table span {
  display: block;
}

.visibility-table strong {
  color: var(--ink);
  margin-bottom: 6px;
}

.visibility-table span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-access {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.admin-access label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.admin-access .copy-btn {
  margin-top: 0;
}

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

.ops-stack {
  display: grid;
  gap: 18px;
}

.ops-message {
  border: 1px solid rgba(167, 121, 43, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--accent);
  background: rgba(167, 121, 43, 0.08);
  font-weight: 700;
}

.antpower-start-guide {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(420px, 1.12fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(17, 16, 13, 0.96), rgba(42, 32, 18, 0.9)),
    radial-gradient(circle at 80% 18%, rgba(214, 168, 71, 0.22), transparent 32%);
  color: #fff7dd;
}

.antpower-guide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.antpower-guide-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.02;
}

.antpower-guide-copy p {
  margin: 0;
  color: #e7d8b8;
  line-height: 1.7;
}

.antpower-guide-steps {
  display: grid;
  gap: 10px;
}

.antpower-guide-steps div {
  display: grid;
  grid-template-columns: 54px minmax(100px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 224, 150, 0.2);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(0, 0, 0, 0.22);
}

.antpower-guide-steps b {
  color: #d6a847;
  font-size: 22px;
}

.antpower-guide-steps strong {
  color: #fff;
}

.antpower-guide-steps span {
  color: #dfcfaa;
  line-height: 1.55;
  font-size: 13px;
}

.antpower-start-guide .studio-launch-actions {
  margin-top: 4px;
}

.antpower-start-guide .asset-link {
  color: #f4d589;
  background: rgba(255, 255, 255, 0.05);
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fbfcfa;
}

.status-list.compact {
  gap: 6px;
}

.status-list.compact div {
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 8px 9px;
}

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

.status-list strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.backup-list {
  display: grid;
  gap: 10px;
}

.home-mode {
  background: #0f0e0b;
}

.home-mode .sidebar {
  background:
    linear-gradient(180deg, rgba(214, 168, 71, 0.14), transparent 30%),
    #090805;
  border-right: 1px solid #2a2418;
}

.home-mode .main {
  background: #0f0e0b;
  color: #f8f3e7;
}

.home-mode .topbar {
  border-bottom: 1px solid #2a2418;
  padding-bottom: 18px;
}

.home-mode .eyebrow {
  color: #d6a847;
}

.home-mode #global-search {
  background: #17140f;
  color: #f8f3e7;
  border-color: #332b1d;
}

.home-mode #global-search::placeholder {
  color: #84897d;
}

.home-mode .auth-btn {
  color: #f8f3e7;
  border-color: #332b1d;
  background: #17140f;
}

.home-mode .auth-btn.register {
  color: #11100d;
  border-color: #d6a847;
  background: #d6a847;
}

.home-mode .view-root {
  gap: 42px;
}

.home-top-info {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(214, 168, 71, 0.28);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(214, 168, 71, 0.14), transparent 42%),
    linear-gradient(320deg, rgba(49, 95, 159, 0.18), transparent 46%),
    #15130f;
}

.home-top-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.home-top-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.18;
}

.home-top-copy p {
  max-width: 780px;
  margin: 0;
  color: #d6ccb7;
  font-size: 15px;
  line-height: 1.75;
}

.status-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip-row span,
.quick-entry {
  border: 1px solid #332b1d;
  border-radius: 8px;
  color: #d6ccb7;
  background: rgba(17, 16, 13, 0.62);
}

.status-chip-row span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  font-size: 12px;
}

.status-chip-row strong {
  color: #f0c25a;
}

.quick-entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.quick-entry {
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.quick-entry:hover,
.quick-entry:focus-visible {
  border-color: rgba(214, 168, 71, 0.58);
  color: #fff;
  outline: none;
}

.quick-entry.primary {
  color: #11100d;
  border-color: #d6a847;
  background: #d6a847;
}

.home-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(240, 194, 90, 0.52);
  border-radius: 8px;
  background:
    radial-gradient(circle at 74% 50%, rgba(240, 194, 90, 0.34), transparent 33%),
    radial-gradient(circle at 34% 16%, rgba(49, 95, 159, 0.38), transparent 34%),
    linear-gradient(135deg, #090704 0%, #11131a 48%, #2b120e 100%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
}

.home-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(240, 194, 90, 0.18), transparent 28%),
    linear-gradient(72deg, transparent 44%, rgba(255, 255, 255, 0.12) 45%, transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 72px);
  mix-blend-mode: screen;
}

.banner-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.banner-track::-webkit-scrollbar {
  display: none;
}

.banner-slide {
  position: relative;
  height: clamp(460px, 42vw, 660px);
  min-height: 460px;
  scroll-snap-align: start;
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(118deg, rgba(9, 7, 4, 0.96) 0%, rgba(14, 15, 21, 0.86) 42%, rgba(10, 8, 5, 0.42) 100%);
}

.banner-slide .banner-bg,
.banner-slide .banner-panorama,
.banner-slide .portal-placeholder {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
}

.banner-slide .banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0.58;
  filter: saturate(1.22) contrast(1.08) brightness(0.78) blur(14px);
  transform: scale(1.08);
}

.banner-slide .banner-panorama {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  filter: saturate(1.12) contrast(1.04) brightness(0.88);
}

.banner-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 3, 4, 0.98), rgba(6, 6, 8, 0.86) 34%, rgba(6, 6, 8, 0.38) 66%, rgba(4, 4, 5, 0.72)),
    linear-gradient(180deg, rgba(255, 225, 155, 0.12), rgba(10, 8, 6, 0.58));
}

.banner-cinematic-panel {
  position: absolute;
  z-index: 3;
  right: clamp(28px, 4vw, 58px);
  top: clamp(28px, 4vw, 58px);
  display: grid;
  gap: 8px;
  min-width: min(320px, 32vw);
  border: 1px solid rgba(255, 224, 150, 0.28);
  border-radius: 8px;
  padding: 15px 18px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 247, 221, 0.82);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
}

.banner-cinematic-panel span,
.banner-cinematic-panel small {
  color: rgba(255, 224, 150, 0.74);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.banner-cinematic-panel strong {
  color: #fff7dd;
  font-size: clamp(24px, 2.6vw, 42px);
  line-height: 1;
}

.banner-copy {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 4vw, 58px);
  bottom: clamp(26px, 4vw, 58px);
  width: min(520px, 42%);
  color: #fff;
}

.banner-copy h2 {
  max-width: 12ch;
  margin: 18px 0 12px;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.72);
}

.banner-copy p {
  margin: 0 0 20px;
  max-width: 48ch;
  color: #eee0c5;
  line-height: 1.72;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
}

.banner-dots {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.banner-dots span {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.banner-dots span.active {
  width: 34px;
  background: #d6a847;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
  gap: 18px;
  align-items: stretch;
  min-height: 360px;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid #332b1d;
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(145deg, rgba(214, 168, 71, 0.22), transparent 42%),
    linear-gradient(320deg, rgba(183, 53, 53, 0.16), transparent 44%),
    #15130f;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 148px;
  aspect-ratio: 1;
  background: url("/media/brand/ant-power-logo.png") center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.live-badge {
  align-self: flex-start;
  color: #11100d;
  background: #d6a847;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-copy h2 {
  margin: 18px 0 12px;
  font-size: 36px;
  line-height: 1.12;
  max-width: 680px;
}

.hero-copy p {
  margin: 0;
  color: #c9c0ad;
  line-height: 1.7;
  max-width: 620px;
}

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

.hero-btn {
  border: 0;
  border-radius: 8px;
  background: #d6a847;
  color: #11120f;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

.hero-btn.ghost {
  color: #f8f3e7;
  background: #211d15;
  border: 1px solid #3b3120;
}

.hero-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  height: 360px;
  min-height: 360px;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #332b1d;
  border-radius: 8px;
  background: #17140f;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.showcase-card:hover,
.showcase-card:focus-visible,
.masonry-card:hover,
.masonry-card:focus-visible {
  border-color: rgba(214, 168, 71, 0.72);
  transform: translateY(-2px);
  outline: none;
}

.showcase-card.wide {
  grid-row: span 2;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.04);
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.76));
}

.showcase-card div {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
}

.showcase-card span,
.showcase-card strong {
  display: block;
}

.showcase-card span {
  color: #f0c25a;
  font-size: 12px;
  margin-bottom: 6px;
}

.showcase-card strong {
  color: #fff;
  font-size: 18px;
}

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

.recent-create,
.recent-project {
  min-height: 138px;
  border: 1px solid #332b1d;
  border-radius: 8px;
  background: #17140f;
  padding: 16px;
}

.recent-create {
  display: grid;
  place-items: center;
  text-align: center;
}

.recent-create button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: #2a2418;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.recent-create span,
.recent-project strong {
  color: #fff;
  display: block;
  margin-top: 10px;
}

.recent-create small,
.recent-project span {
  color: #9a927f;
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.recent-thumb {
  height: 70px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #11100d;
  font-weight: 900;
  background:
    linear-gradient(135deg, #f2d37c, #d6a847 52%, #b73535);
}

.student-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  border: 1px solid #332b1d;
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(214, 168, 71, 0.18), transparent 38%),
    linear-gradient(320deg, rgba(183, 53, 53, 0.16), transparent 42%),
    #15130f;
}

.student-hero h2 {
  color: #fff;
  font-size: 36px;
  margin: 18px 0 10px;
}

.student-hero p {
  max-width: 720px;
  color: #c9c0ad;
  line-height: 1.7;
  margin: 0;
}

.student-lock {
  border: 1px solid #3b3120;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.student-lock strong {
  color: #d6a847;
  font-size: 20px;
}

.student-lock span {
  color: #9ea69a;
  line-height: 1.6;
  font-size: 13px;
}

.student-lock .hero-btn {
  justify-self: start;
  margin-top: 8px;
}

.access-hero {
  min-height: 360px;
}

.student-access {
  border: 1px solid #3b3120;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.student-access label {
  display: grid;
  gap: 8px;
  color: #d6ccb7;
  font-size: 13px;
}

.student-access input {
  background: #17140f;
  color: #f8f3e7;
  border-color: #3b3120;
}

.student-access p {
  color: #9a927f;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.student-access button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.student-card {
  border-color: rgba(214, 168, 71, 0.24);
}

.student-text-thumb {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #11100d;
  font-weight: 900;
  line-height: 1.35;
  background:
    linear-gradient(135deg, #f2d37c, #d6a847 52%, #b73535);
}

.student-text-thumb.large {
  height: 100%;
  min-height: 420px;
  font-size: 42px;
}

.home-feed {
  display: grid;
  gap: 14px;
}

.home-section {
  display: grid;
  gap: 22px;
  padding-top: 10px;
}

.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
}

.feed-head h2 {
  color: #fff;
  font-size: 24px;
}

.feed-head p {
  margin: 6px 0 0;
  color: #9a927f;
}

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

.portal-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #332b1d;
  border-radius: 8px;
  background: #17140f;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.portal-card:hover,
.portal-card:focus-visible,
.banner-slide:hover,
.banner-slide:focus-visible {
  border-color: rgba(214, 168, 71, 0.72);
  transform: translateY(-2px);
  outline: none;
}

.portal-action-card {
  border-color: rgba(214, 168, 71, 0.56);
  background:
    linear-gradient(145deg, rgba(214, 168, 71, 0.16), transparent 48%),
    #15130f;
}

.portal-action-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(49, 95, 159, 0.22), transparent 46%),
    linear-gradient(320deg, rgba(183, 53, 53, 0.14), transparent 42%),
    #17140f;
}

.portal-action-media span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 168, 71, 0.55);
  border-radius: 50%;
  color: #11100d;
  background: #d6a847;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.workflow-gateway-section {
  padding: 24px;
  border: 1px solid #332b1d;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(49, 95, 159, 0.14), transparent 42%),
    linear-gradient(320deg, rgba(214, 168, 71, 0.14), transparent 48%),
    #15130f;
}

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

.ops-gateway-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(214, 168, 71, 0.28);
  border-radius: 8px;
  color: #fff7e5;
  background: #090805;
  text-decoration: none;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ops-gateway-card:hover,
.ops-gateway-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(240, 194, 90, 0.72);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  outline: none;
}

.ops-gateway-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.04) brightness(0.82);
  transform: scale(1.01);
  transition: transform 240ms ease;
}

.ops-gateway-card:hover img,
.ops-gateway-card:focus-visible img {
  transform: scale(1.045);
}

.ops-gateway-card::before,
.ops-gateway-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ops-gateway-card::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 4, 5, 0.1), rgba(4, 4, 5, 0.88)),
    linear-gradient(110deg, rgba(9, 7, 4, 0.88), rgba(9, 7, 4, 0.24) 56%, rgba(9, 7, 4, 0.64));
}

.ops-gateway-card::after {
  z-index: 2;
  border: 1px solid rgba(255, 235, 178, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 235, 178, 0.18), transparent 26%),
    linear-gradient(315deg, rgba(49, 95, 159, 0.18), transparent 34%);
}

.ops-card-index {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 229, 158, 0.48);
  border-radius: 50%;
  color: #11100d;
  background: rgba(214, 168, 71, 0.94);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.ops-gateway-card > div {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 9px;
}

.ops-gateway-card small {
  color: #f0c25a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ops-gateway-card h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.ops-gateway-card p {
  margin: 0;
  max-width: 36em;
  color: rgba(255, 247, 229, 0.78);
  line-height: 1.65;
  font-size: 14px;
}

.studio-banner-card {
  overflow: hidden;
  border: 1px solid rgba(95, 123, 255, 0.22);
  border-radius: 8px;
  background: #080a0d;
  aspect-ratio: 2048 / 720;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.studio-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.workflow-gateway-card {
  border-color: rgba(49, 95, 159, 0.48);
}

.workflow-gateway-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(214, 168, 71, 0.12), transparent 44%),
    linear-gradient(320deg, rgba(49, 95, 159, 0.2), transparent 46%),
    #11100d;
}

.workflow-gateway-media::before,
.workflow-gateway-media::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(214, 168, 71, 0.22);
}

.workflow-gateway-media::before {
  width: 72%;
  height: 1px;
  top: 42%;
}

.workflow-gateway-media::after {
  width: 1px;
  height: 62%;
  left: 54%;
}

.workflow-gateway-media span {
  z-index: 1;
  min-width: 76px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 168, 71, 0.7);
  border-radius: 8px;
  color: #11100d;
  background: #d6a847;
  font-size: 24px;
  font-weight: 900;
}

.workflow-gateway-media img {
  z-index: 1;
  width: min(58%, 150px);
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
}

.tutorial-placeholder-card {
  cursor: default;
  border-style: dashed;
  border-color: rgba(214, 168, 71, 0.36);
}

.tutorial-placeholder-card:hover,
.tutorial-placeholder-card:focus-visible {
  transform: none;
}

.tutorial-placeholder-media {
  background:
    linear-gradient(145deg, rgba(214, 168, 71, 0.12), transparent 44%),
    linear-gradient(320deg, rgba(95, 123, 255, 0.16), transparent 46%),
    #17140f;
}

.tutorial-placeholder-media span {
  color: rgba(214, 168, 71, 0.82);
  background: rgba(17, 16, 13, 0.64);
}

.portal-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #211d15;
}

.portal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.portal-card:hover .portal-media img,
.portal-card:focus-visible .portal-media img {
  transform: scale(1.035);
}

.portal-card.libtv-card {
  border-color: rgba(95, 123, 255, 0.42);
}

.portal-card.libtv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(95, 123, 255, 0.24), transparent 38%),
    linear-gradient(320deg, rgba(214, 168, 71, 0.16), transparent 44%);
}

.card-source-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 16, 22, 0.62);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  backdrop-filter: blur(10px);
}

.portal-placeholder,
.detail-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  color: #11100d;
  font-weight: 900;
  background:
    linear-gradient(135deg, #f2d37c, #d6a847 52%, #b73535);
}

.portal-placeholder {
  width: 100%;
  height: 100%;
  font-size: 30px;
}

.portal-body {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 7, 5, 0.88));
}

.portal-body h3 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.portal-body p {
  margin: 6px 0 0;
  color: #c9c0ad;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-meta {
  display: flex;
  gap: 6px;
  overflow: hidden;
  margin-top: 10px;
}

.portal-meta span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #3b3120;
  border-radius: 999px;
  background: #211d15;
  color: #d6ccb7;
  padding: 4px 8px;
  font-size: 12px;
}

.card-lock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border: 1px solid rgba(214, 168, 71, 0.52);
  border-radius: 999px;
  padding: 5px 8px;
  color: #11100d;
  background: rgba(214, 168, 71, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.tutorial-portal-card .portal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(49, 95, 159, 0.18), transparent 46%);
  pointer-events: none;
}

.tutorial-private {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.tutorial-private strong {
  color: #f0c25a;
}

.tutorial-private p {
  margin: 0;
  color: #c9c0ad;
  line-height: 1.65;
}

.tutorial-status-list {
  padding: 14px;
}

.tutorial-status-list div {
  border-color: rgba(214, 168, 71, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.tutorial-status-list strong {
  color: #f4ead8;
}

.dark-empty {
  border-color: #332b1d;
  background: #17140f;
  color: #9a927f;
}

.category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-chip {
  white-space: nowrap;
  border: 1px solid #332b1d;
  background: #17140f;
  color: #d6ccb7;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
}

.category-chip span {
  margin-left: 6px;
  color: #9a927f;
  font-size: 12px;
}

.category-chip.active,
.category-chip:hover {
  color: #11100d;
  background: #d6a847;
  border-color: #d6a847;
}

.category-chip.active span,
.category-chip:hover span {
  color: rgba(17, 16, 13, 0.72);
}

.masonry-feed {
  column-count: 3;
  column-gap: 18px;
}

.community-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(180px, 260px);
  gap: 18px;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(214, 168, 71, 0.28);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 46px);
  margin-bottom: 16px;
  color: #fff7dd;
  background:
    linear-gradient(112deg, rgba(6, 5, 4, 0.94), rgba(29, 21, 12, 0.78)),
    radial-gradient(circle at 78% 12%, rgba(214, 168, 71, 0.26), transparent 34%),
    #11100d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.community-hero h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.98;
}

.community-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: #e4d4b4;
  font-size: 16px;
  line-height: 1.75;
}

.director-picks-hero {
  grid-template-columns: minmax(320px, 1fr) minmax(150px, 220px) minmax(180px, 260px);
  align-items: center;
}

.director-picks-avatar {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-self: stretch;
  margin: 0;
}

.director-picks-avatar img {
  width: min(100%, 240px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 224, 150, 0.24);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.director-picks-avatar figcaption {
  color: #d6a847;
  font-size: 13px;
  font-weight: 900;
}

.prompt-community-hero {
  background:
    linear-gradient(112deg, rgba(7, 5, 10, 0.95), rgba(28, 21, 10, 0.76)),
    radial-gradient(circle at 80% 12%, rgba(146, 111, 255, 0.18), transparent 34%),
    radial-gradient(circle at 20% 70%, rgba(214, 168, 71, 0.2), transparent 30%),
    #11100d;
}

.case-community-hero {
  background:
    linear-gradient(112deg, rgba(5, 6, 8, 0.95), rgba(37, 24, 13, 0.78)),
    radial-gradient(circle at 78% 18%, rgba(58, 123, 213, 0.2), transparent 34%),
    radial-gradient(circle at 22% 74%, rgba(214, 168, 71, 0.22), transparent 30%),
    #11100d;
}

.inspiration-hero {
  margin-bottom: 0;
  background:
    linear-gradient(112deg, rgba(5, 6, 8, 0.96), rgba(19, 14, 10, 0.8)),
    radial-gradient(circle at 76% 14%, rgba(214, 168, 71, 0.24), transparent 34%),
    radial-gradient(circle at 18% 76%, rgba(49, 95, 159, 0.22), transparent 32%),
    #11100d;
}

.inspiration-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.inspiration-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  border: 1px solid #332b1d;
  border-radius: 8px;
  padding: 16px;
  background: #15130f;
}

.inspiration-sidebar h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.inspiration-category-row {
  display: grid;
  gap: 8px;
  margin: 0;
}

.inspiration-category-row .category-chip {
  width: 100%;
  justify-content: space-between;
}

.inspiration-rules {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(214, 168, 71, 0.18);
  border-radius: 8px;
  background: rgba(214, 168, 71, 0.08);
}

.inspiration-rules strong {
  color: #f0c25a;
}

.inspiration-rules span {
  color: #b7ad99;
  font-size: 13px;
  line-height: 1.6;
}

.inspiration-feed {
  display: grid;
  gap: 14px;
}

.inspiration-composer,
.inspiration-post {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid #332b1d;
  border-radius: 8px;
  padding: 16px;
  background: #17140f;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
}

.composer-avatar,
.post-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 168, 71, 0.54);
  border-radius: 50%;
  color: #11100d;
  background: #d6a847;
  font-weight: 900;
}

.composer-fields {
  display: grid;
  gap: 12px;
}

.inspiration-composer textarea,
.inspiration-composer input,
.inspiration-composer select {
  width: 100%;
  border: 1px solid #332b1d;
  border-radius: 8px;
  color: #f8f3e7;
  background: #0f0e0b;
}

.inspiration-composer textarea {
  min-height: 104px;
  padding: 12px;
  line-height: 1.65;
}

.inspiration-composer input,
.inspiration-composer select {
  min-height: 42px;
  padding: 9px 10px;
}

.composer-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 120px minmax(180px, 1fr) auto;
  gap: 10px;
}

.inspiration-post {
  transition: border-color 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.inspiration-post:hover {
  border-color: rgba(214, 168, 71, 0.48);
  transform: translateY(-1px);
}

.inspiration-post:focus-visible {
  border-color: rgba(214, 168, 71, 0.72);
  outline: 2px solid rgba(214, 168, 71, 0.34);
  outline-offset: 2px;
}

.community-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.community-reading-shell {
  display: grid;
  gap: 18px;
  color: #fff7e5;
}

.community-reading-breadcrumb {
  color: #b7ad99;
}

.community-reading-breadcrumb a {
  color: #f0c25a;
}

.community-reading-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
  border: 1px solid #332b1d;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #15130f;
}

.community-reading-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.community-reading-copy h1 {
  margin: 14px 0 12px;
  color: #fff;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.02;
}

.community-reading-copy p {
  margin: 0;
  color: #d6ccb7;
  font-size: 16px;
  line-height: 1.78;
}

.community-reading-media {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #332b1d;
  border-radius: 8px;
  background: #090805;
}

.community-reading-media img,
.community-reading-media video {
  width: 100%;
  height: 100%;
  max-height: 720px;
  display: block;
  object-fit: contain;
}

.community-reading-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #11100d;
  background: #d6a847;
  font-size: 42px;
  font-weight: 900;
}

.community-reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 14px;
}

.community-reading-panel {
  border: 1px solid #332b1d;
  border-radius: 8px;
  padding: clamp(16px, 2.4vw, 24px);
  background: #17140f;
}

.community-reading-panel h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
}

.community-reading-panel p:not(.eyebrow) {
  margin: 0;
  color: #c9c0ad;
  line-height: 1.75;
}

.post-main {
  min-width: 0;
}

.post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #d8c8a8;
  font-size: 13px;
}

.post-head strong {
  color: #fff;
  font-size: 15px;
}

.post-head span {
  color: #f0c25a;
  font-weight: 900;
}

.post-head small {
  color: #858b7f;
}

.inspiration-post h3 {
  margin: 8px 0 6px;
  color: #fff;
  font-size: 20px;
  line-height: 1.35;
}

.inspiration-post p {
  margin: 0;
  color: #c9c0ad;
  line-height: 1.72;
}

.post-media {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #332b1d;
  border-radius: 8px;
  background: #090805;
}

.post-media img,
.post-media video {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.post-tags,
.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.post-tags span {
  border: 1px solid #3b3120;
  border-radius: 999px;
  padding: 4px 8px;
  color: #d6ccb7;
  background: #211d15;
  font-size: 12px;
}

.post-actions {
  padding-top: 12px;
  border-top: 1px solid #2a2418;
}

.post-actions button {
  border: 1px solid #332b1d;
  border-radius: 999px;
  padding: 7px 10px;
  color: #d6ccb7;
  background: rgba(17, 16, 13, 0.68);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.post-actions button:hover,
.post-actions button:focus-visible {
  border-color: rgba(214, 168, 71, 0.58);
  color: #fff;
  outline: none;
}

.community-stats {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 224, 150, 0.22);
  border-radius: 8px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.24);
}

.community-stats strong {
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.community-stats span {
  color: #d6a847;
  font-weight: 900;
}

.community-stats small {
  color: #d8c8a8;
  line-height: 1.5;
}

.community-category-row {
  margin: 0 0 18px;
}

.community-masonry {
  column-count: 4;
}

.masonry-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  border: 1px solid #332b1d;
  border-radius: 8px;
  overflow: hidden;
  background: #17140f;
  break-inside: avoid;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.community-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 36%),
    #17140f;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.masonry-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #211d15;
}

.masonry-card.tall img {
  aspect-ratio: 4 / 5;
}

.community-image-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #11100d;
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(135deg, #d6a847, #7c5a24);
  font-size: 30px;
  font-weight: 900;
}

.community-image-placeholder.prompt-placeholder {
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(135deg, #5f7bff, #d6a847);
}

.project-community-hero {
  background: #10110f;
}

.project-source-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(214, 168, 71, 0.24);
  border-radius: 8px;
  background: #17140f;
  color: #d8c8a8;
}

.project-source-strip strong,
.project-source-strip span {
  display: block;
}

.project-source-strip strong {
  color: #fff7dd;
  margin-bottom: 4px;
}

.project-source-strip.online {
  border-color: rgba(89, 196, 154, 0.34);
}

.project-source-strip.offline {
  border-color: rgba(214, 168, 71, 0.28);
}

.community-image-placeholder.project-placeholder {
  min-height: 240px;
  background: #15140f;
  color: #fff7dd;
}

.project-placeholder span {
  display: block;
  font-size: 56px;
  line-height: 1;
}

.project-placeholder small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 247, 221, 0.72);
  font-size: 11px;
  letter-spacing: 0;
}

.project-community-card .masonry-body {
  padding: 15px;
}

.project-community-card h3 {
  margin: 12px 0 8px;
}

.project-community-card p {
  color: #c8b99b;
}

.project-waterfall-progress {
  height: 7px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #2b2418;
}

.project-waterfall-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7f724f;
}

.project-card-action {
  margin-top: 12px;
  color: #d6a847;
  font-size: 13px;
  font-weight: 900;
}

.masonry-body {
  padding: 13px;
}

.creator-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #daddd6;
  font-size: 13px;
}

.creator-line small {
  color: #858b7f;
  margin-left: auto;
}

.avatar-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #11100d;
  background: #d6a847;
  font-size: 12px;
  font-weight: 900;
}

.masonry-body h3 {
  color: #fff;
  margin: 10px 0 6px;
  font-size: 16px;
  line-height: 1.45;
}

.masonry-body p {
  color: #b7ad99;
  line-height: 1.6;
  font-size: 13px;
  margin: 0;
}

.home-mode .pill {
  color: #d6ccb7;
  background: #211d15;
  border-color: #3b3120;
}

.copy-btn.dark {
  width: 100%;
  color: #f0c25a;
  background: rgba(214, 168, 71, 0.08);
  border-color: rgba(214, 168, 71, 0.28);
}

.detail-open {
  overflow: hidden;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.detail-dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(820px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(340px, 0.9fr);
  overflow: hidden;
  border: 1px solid #3b3120;
  border-radius: 8px;
  background: #12100c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  font-size: 22px;
}

.detail-media {
  min-height: 0;
  background: #090805;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.detail-media > img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.tutorial-video-player {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 150px);
  display: block;
  object-fit: contain;
  background: #050505;
}

.tutorial-reading-shell {
  color: #fff7e5;
  gap: 14px;
}

.tutorial-reading-shell .reading-breadcrumb,
.tutorial-reading-shell .reading-hero p,
.tutorial-reading-shell .reading-article p,
.tutorial-reading-shell .reading-article li {
  color: #d6ccb7;
}

.tutorial-reading-shell .reading-hero {
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 10px 0 12px;
  border-bottom-color: #332b1d;
}

.tutorial-reading-shell .reading-hero h1 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 3.2vw, 42px);
}

.tutorial-reading-shell .reading-hero p {
  max-width: 920px;
  font-size: 15px;
  line-height: 1.58;
}

.tutorial-reading-shell .reading-article,
.tutorial-reading-shell .reading-article h2,
.tutorial-reading-shell .reading-article h3,
.tutorial-reading-shell .reading-side dd {
  color: #fff7e5;
}

.tutorial-watch {
  aspect-ratio: 16 / 9;
  max-height: min(64vh, 680px);
  overflow: hidden;
  border: 1px solid #332b1d;
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.tutorial-watch img,
.tutorial-watch video {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: cover;
  display: block;
}

.tutorial-watch .tutorial-video-player {
  max-height: none;
  object-fit: contain;
}

.tutorial-reading-shell .reading-side {
  border-color: #332b1d;
  background: #15130f;
}

.tutorial-reading-shell .reading-side dt {
  color: #9a927f;
}

.reading-access-note {
  margin-top: 24px;
}

.detail-placeholder {
  min-height: 420px;
  font-size: 46px;
}

.detail-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  border-top: 1px solid #2a2418;
}

.detail-thumbs img {
  width: 86px;
  height: 56px;
  object-fit: cover;
  border: 1px solid #3b3120;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.72;
}

.detail-thumbs img.active,
.detail-thumbs img:hover {
  opacity: 1;
  border-color: #d6a847;
}

.detail-content {
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  color: #f3f4ef;
}

.detail-content h2 {
  margin: 18px 0 10px;
  color: #fff;
  font-size: 28px;
  line-height: 1.22;
}

.detail-summary {
  margin: 0;
  color: #c9c0ad;
  line-height: 1.7;
}

.detail-section {
  margin-top: 20px;
  border: 1px solid #332b1d;
  border-radius: 8px;
  background: #17140f;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #332b1d;
}

.detail-section-head h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.detail-section-head .copy-btn {
  width: auto;
  margin: 0;
}

.detail-section pre {
  max-height: 300px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e7dfcf;
  font-size: 13px;
  line-height: 1.65;
}

.detail-url-section {
  background: #11100d;
}

.detail-url-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.detail-url-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.detail-url-row span {
  color: #d7c08d;
  font-size: 12px;
}

.detail-url-row a {
  min-width: 0;
  color: #f1e4c0;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.detail-url-row a:hover {
  text-decoration: underline;
}

.detail-url-row .copy-btn {
  width: auto;
  margin: 0;
  padding: 7px 10px;
  font-size: 12px;
}

.detail-source {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  color: #9a927f;
  font-size: 13px;
}

.detail-stage-row,
.detail-chain {
  padding: 14px;
}

.case-reading-shell {
  display: grid;
  gap: 22px;
  width: min(1260px, 100%);
  min-width: 0;
  max-width: 100%;
  margin: 0 auto 42px;
}

.case-reading-shell > *,
.case-reading-shell :where(.case-reading-hero, .case-hero-media, .case-hero-copy, .case-overview-grid, .case-reading-section, .case-chain, .case-dimension-grid, .case-video-frame, .case-gallery-grid, .case-asset-list, .case-prompt-code-wrap) {
  min-width: 0;
  max-width: 100%;
}

.case-reading-shell .reading-breadcrumb {
  margin-bottom: 2px;
}

.case-reading-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.58fr) minmax(0, 0.42fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 168, 71, 0.24);
  border-radius: 8px;
  background: #11100d;
  color: #fff7e5;
  box-shadow: 0 28px 80px rgba(23, 20, 14, 0.18);
}

.case-hero-media {
  height: clamp(320px, 42vw, 560px);
  min-height: 0;
  background: #050505;
}

.case-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-hero-media video {
  width: 100%;
  height: 100%;
  min-height: clamp(380px, 44vw, 620px);
  object-fit: contain;
  display: block;
  background: #050505;
}

.case-hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 46px);
}

.case-hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.04;
}

.case-hero-copy p:not(.eyebrow) {
  margin: 0;
  color: #d8c8a8;
  font-size: 16px;
  line-height: 1.75;
}

.case-hero-actions,
.case-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.case-hero-actions {
  margin-top: 4px;
}

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

.case-overview-grid div,
.case-reading-section,
.case-dimension-card,
.case-chain div,
.case-asset-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.case-overview-grid div {
  min-height: 118px;
  padding: 16px;
}

.case-overview-grid span,
.case-dimension-card span,
.case-chain b,
.case-asset-list small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.case-overview-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.case-reading-section {
  padding: clamp(18px, 3vw, 26px);
}

.case-section-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.case-section-head h2 {
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 38px);
}

.case-section-head p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.case-chain div,
.case-dimension-card {
  padding: 16px;
}

.case-chain strong,
.case-dimension-card h3 {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.case-chain span,
.case-dimension-card p {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.case-dimension-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.case-video-frame {
  overflow: hidden;
  border: 1px solid #211d15;
  border-radius: 8px;
  background: #050505;
}

.case-video-frame video {
  width: 100%;
  max-height: 720px;
  display: block;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.case-gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11100d;
}

.case-gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.case-gallery-grid figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.case-gallery-grid a,
.case-asset-list a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.case-asset-list {
  display: grid;
  gap: 10px;
}

.case-asset-list a {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
}

.case-asset-list span {
  color: var(--ink);
  font-weight: 900;
}

.case-asset-list small {
  overflow-wrap: anywhere;
}

.project-reading-progress {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 150, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.project-reading-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d6a847, #f0c25a);
}

.project-stage-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 3px 8px;
  border: 1px solid rgba(214, 168, 71, 0.28);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(214, 168, 71, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.case-file-index {
  margin-top: 18px;
}

.case-file-index h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
}

.case-file-index > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.case-file-index a {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: inherit;
  text-decoration: none;
}

.case-file-index span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.case-file-index strong {
  min-width: 0;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.case-file-index small {
  min-width: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dark-link {
  color: #f0c25a;
}

.theory-feature-section {
  margin-bottom: 26px;
}

.theory-feature-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 168, 71, 0.28);
  border-radius: 8px;
  background: #11100d;
  color: #fff7e5;
  box-shadow: var(--shadow);
}

.theory-feature-media {
  min-height: 180px;
  background: #050505;
}

.theory-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theory-feature-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
}

.theory-feature-copy h3 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
}

.theory-feature-copy p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 247, 229, 0.76);
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.theory-feature-copy .asset-link {
  color: #f0c25a;
}

.knowledge-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 300px;
  margin-bottom: 18px;
  border: 1px solid rgba(17, 16, 13, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #12100c;
  color: #fff7e5;
  box-shadow: var(--shadow);
}

.knowledge-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 16, 13, 0.92), rgba(17, 16, 13, 0.68) 52%, rgba(17, 16, 13, 0.18)),
    linear-gradient(0deg, rgba(17, 16, 13, 0.45), transparent 48%);
  pointer-events: none;
}

.knowledge-hero-copy {
  position: relative;
  z-index: 2;
  padding: 22px 26px;
  display: grid;
  align-content: center;
  gap: 16px;
  max-width: 760px;
}

.knowledge-hero-copy h2 {
  margin: 0;
  max-width: 740px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.02;
}

.knowledge-hero-copy p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 247, 229, 0.74);
  font-size: 16px;
  line-height: 1.75;
}

.knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.knowledge-hero-media {
  position: absolute;
  inset: 0;
  min-height: 0;
  overflow: hidden;
}

.knowledge-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  opacity: 0.86;
}

.knowledge-hero-media div {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  min-width: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 247, 229, 0.24);
  border-radius: 8px;
  background: rgba(17, 16, 13, 0.72);
  backdrop-filter: blur(12px);
}

.knowledge-hero-media strong {
  display: block;
  font-size: 44px;
  line-height: 1;
}

.knowledge-hero-media span {
  color: rgba(255, 247, 229, 0.72);
}

.knowledge-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.knowledge-stats article {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.knowledge-stats strong {
  display: block;
  font-size: 32px;
}

.knowledge-stats span {
  display: block;
  margin-top: 3px;
  font-weight: 800;
}

.knowledge-stats small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.knowledge-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.knowledge-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.knowledge-nav a.active {
  border-color: rgba(167, 121, 43, 0.42);
  background: var(--charcoal);
  color: #f7e3aa;
}

.knowledge-section {
  margin-bottom: 18px;
}

.knowledge-section .panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.zhangdao-knowledge-feature {
  border-color: rgba(214, 168, 71, 0.3);
  background:
    linear-gradient(135deg, rgba(17, 16, 13, 0.96), rgba(38, 30, 16, 0.92)),
    #11100d;
  color: #fff7e5;
}

.zhangdao-feature-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
}

.zhangdao-feature-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 247, 229, 0.18);
  background: #050505;
}

.zhangdao-feature-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zhangdao-feature-copy {
  display: grid;
  gap: 14px;
}

.zhangdao-feature-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1;
}

.zhangdao-feature-copy p {
  margin: 0;
  max-width: 850px;
  color: rgba(255, 247, 229, 0.76);
  line-height: 1.8;
}

.zhangdao-feature-copy .asset-link {
  color: #f0c25a;
}

.zhangdao-doc-grid .knowledge-doc-card {
  background: rgba(255, 247, 229, 0.96);
}

.knowledge-source-grid,
.knowledge-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.knowledge-source-card,
.knowledge-doc-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #fbfcfa;
}

.knowledge-doc-card {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.knowledge-doc-card:hover,
.knowledge-doc-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(167, 121, 43, 0.42);
  box-shadow: 0 18px 40px rgba(23, 20, 14, 0.12);
  outline: none;
}

.knowledge-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.knowledge-layer {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #5d4111;
  background: rgba(214, 168, 71, 0.16);
}

.knowledge-layer.risk-low {
  color: #22513b;
  background: rgba(58, 142, 91, 0.14);
}

.knowledge-layer.risk-medium {
  color: #7b5a12;
  background: rgba(214, 168, 71, 0.18);
}

.knowledge-layer.risk-high {
  color: #8a2727;
  background: rgba(183, 53, 53, 0.14);
}

.knowledge-layer.risk-internal {
  color: #2d4c83;
  background: rgba(49, 95, 159, 0.14);
}

.knowledge-source-card h3,
.knowledge-doc-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.knowledge-source-card p,
.knowledge-doc-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.knowledge-action-preview {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.knowledge-action-preview li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.knowledge-action-preview li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}

.knowledge-meta-list {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.knowledge-source-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.knowledge-admin-panel {
  margin-bottom: 18px;
  border-color: rgba(167, 121, 43, 0.28);
  background: #fffaf0;
}

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

.knowledge-admin-grid > div,
.knowledge-admin-list {
  border: 1px solid rgba(167, 121, 43, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.knowledge-admin-grid h3 {
  margin: 0 0 10px;
}

.knowledge-admin-grid p,
.knowledge-admin-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.knowledge-admin-grid p:first-of-type,
.knowledge-admin-list div:first-child {
  border-top: 0;
}

.knowledge-admin-grid strong {
  font-size: 18px;
}

.knowledge-admin-list div {
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto) auto auto;
}

.knowledge-admin-list small {
  color: var(--muted);
}

.knowledge-admin-list .copy-btn {
  margin-top: 0;
}

.knowledge-admin-list .copy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.knowledge-license-notice {
  border: 1px solid rgba(49, 95, 159, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(49, 95, 159, 0.08);
  color: #22324d;
  line-height: 1.7;
}

.knowledge-license-notice strong {
  display: block;
  margin-bottom: 6px;
}

.knowledge-license-notice p {
  margin: 0;
}

.reading-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.reading-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.reading-breadcrumb a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.reading-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: end;
  padding: 26px 0 28px;
  border-bottom: 1px solid rgba(23, 20, 14, 0.14);
}

.reading-hero h1 {
  margin: 12px 0 12px;
  max-width: 980px;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.12;
}

.reading-hero p {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.reading-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.reading-actions .copy-btn,
.reading-actions .asset-link {
  margin: 0;
  justify-content: center;
  text-align: center;
}

.prompt-reading-shell {
  color: var(--ink);
}

.prompt-reading-hero {
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
}

.prompt-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.prompt-reading-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.prompt-content-block,
.prompt-media-section,
.prompt-reading-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.prompt-content-head,
.prompt-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.prompt-content-block h2,
.prompt-section-head h2,
.prompt-reading-side h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.prompt-reading-side h2 {
  color: #fff7dd;
}

.prompt-content-block pre {
  margin: 0;
  padding: 46px clamp(18px, 3vw, 28px) clamp(18px, 3vw, 28px);
  overflow-x: auto;
  color: #f7ead0;
  background: #11100d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-code-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  background: #11100d;
}

.prompt-code-wrap pre {
  max-width: 100%;
  margin: 0;
  padding: 46px clamp(18px, 3vw, 28px) clamp(18px, 3vw, 28px);
  overflow-x: auto;
  color: #f7ead0;
  background: #11100d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prompt-code-wrap code {
  white-space: inherit;
  overflow-wrap: inherit;
  word-break: inherit;
}

.prompt-code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border-radius: 8px;
}

.prompt-code-copy svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-btn.dark.prompt-code-copy {
  width: 34px;
}

.prompt-code-copy.is-copied svg {
  display: none;
}

.prompt-code-copy.is-copied::after {
  content: "";
  width: 14px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.prompt-content-block code {
  color: inherit;
  font: inherit;
}

.prompt-content-block .code-key {
  color: #f2c96d;
}

.prompt-content-block .code-string {
  color: #9dd6a8;
}

.prompt-content-block .code-number {
  color: #8ecbff;
}

.prompt-content-block .code-boolean,
.prompt-content-block .code-null {
  color: #f39f8f;
}

.prompt-media-section {
  padding-bottom: 16px;
}

.prompt-media-section .reading-image-grid {
  padding: 16px;
}

.prompt-player-list {
  padding: 16px;
}

.prompt-media-missing {
  padding-bottom: 0;
  background: #fffaf0;
}

.prompt-media-missing p {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.prompt-reading-side {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-color: rgba(214, 168, 71, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 224, 150, 0.06), transparent 38%),
    #12100c;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.prompt-reading-side dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.prompt-reading-side dl div {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 224, 150, 0.14);
}

.prompt-reading-side dt {
  margin-bottom: 5px;
  color: #d6a847;
  font-size: 12px;
  font-weight: 900;
}

.prompt-reading-side dd {
  margin: 0;
  color: #f5ead4;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.prompt-side-media,
.prompt-director-picks,
.prompt-side-links {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 224, 150, 0.14);
}

.prompt-side-media h3,
.prompt-director-picks h3,
.prompt-side-links h3 {
  margin: 0;
  color: #fff7dd;
  font-size: 16px;
}

.prompt-director-picks > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prompt-director-picks > div a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.prompt-director-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 224, 150, 0.14);
  background: #1b1710;
  cursor: pointer;
}

.prompt-director-card img,
.prompt-director-card > span {
  width: 72px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #0c0b08;
  color: #d6a847;
  font-size: 13px;
  font-weight: 900;
}

.prompt-director-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.prompt-director-card strong,
.prompt-director-card small,
.prompt-director-picks p {
  margin: 0;
  overflow-wrap: anywhere;
}

.prompt-director-card strong {
  color: #fff7dd;
  font-size: 13px;
  line-height: 1.35;
}

.prompt-director-card small,
.prompt-director-picks p {
  color: #cbb990;
  font-size: 12px;
  line-height: 1.45;
}

.director-picks-pending {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.pending-prompt-list {
  display: grid;
  gap: 10px;
}

.pending-prompt-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  cursor: pointer;
}

.pending-prompt-list strong,
.pending-prompt-list small {
  overflow-wrap: anywhere;
}

.pending-prompt-list strong {
  color: var(--ink);
}

.pending-prompt-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.pending-prompt-list small {
  grid-column: 1 / -1;
  color: var(--muted);
}

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

.prompt-side-thumb {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #f5ead4;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.prompt-side-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 224, 150, 0.12);
  background: #0c0b08;
}

.prompt-side-thumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-side-links a {
  display: block;
  min-width: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}

:root[data-theme="light"] .prompt-reading-side {
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
}

:root[data-theme="light"] .prompt-reading-side h2,
:root[data-theme="light"] .prompt-side-media h3,
:root[data-theme="light"] .prompt-director-picks h3,
:root[data-theme="light"] .prompt-side-links h3,
:root[data-theme="light"] .prompt-director-card strong {
  color: var(--ink);
}

:root[data-theme="light"] .prompt-reading-side dl div,
:root[data-theme="light"] .prompt-side-media,
:root[data-theme="light"] .prompt-director-picks,
:root[data-theme="light"] .prompt-side-links {
  border-color: var(--line);
}

:root[data-theme="light"] .prompt-reading-side dt,
:root[data-theme="light"] .prompt-side-links a {
  color: var(--accent);
}

:root[data-theme="light"] .prompt-reading-side dd,
:root[data-theme="light"] .prompt-side-thumb {
  color: var(--ink);
}

:root[data-theme="light"] .prompt-director-card {
  border-color: var(--line);
  background: #fffaf0;
}

:root[data-theme="light"] .prompt-director-card img,
:root[data-theme="light"] .prompt-director-card > span,
:root[data-theme="light"] .prompt-side-thumb img {
  background: #fff;
}

:root[data-theme="light"] .prompt-director-card small,
:root[data-theme="light"] .prompt-director-picks p {
  color: var(--muted);
}

.reading-assets {
  display: grid;
  gap: 16px;
}

.reading-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.reading-image-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11100d;
}

.reading-image-grid img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
  background: #050505;
}

.prompt-media-section .reading-image-grid {
  grid-template-columns: 1fr;
}

.prompt-media-section .reading-image-grid figure {
  overflow: visible;
  border: 0;
  background: transparent;
}

.prompt-media-section .reading-image-grid img {
  max-height: 720px;
  background: transparent;
}

.reading-image-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.reading-image-grid figcaption span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-image-grid figcaption a,
.reading-download-list a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

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

.reading-player-list video,
.reading-player-list audio {
  width: 100%;
  border-radius: 8px;
  background: #050505;
}

.reading-player-list video {
  max-height: 640px;
}

.reading-download-list {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(167, 121, 43, 0.2);
  border-radius: 8px;
  background: #fffaf0;
}

.reading-download-list h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.reading-download-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reading-download-list small {
  color: var(--muted);
  font-weight: 900;
}

.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}

.reading-article {
  min-width: 0;
  padding: 8px 0 28px;
  color: #211d15;
  font-size: 17px;
  line-height: 1.95;
}

.reading-article h2,
.reading-article h3,
.reading-article h4,
.reading-article h5 {
  margin: 34px 0 12px;
  color: var(--ink);
  line-height: 1.32;
}

.reading-article h2 {
  font-size: 28px;
}

.reading-article h3 {
  font-size: 23px;
}

.reading-article h4,
.reading-article h5 {
  font-size: 20px;
}

.reading-article p,
.reading-article ul,
.reading-article ol {
  margin: 0 0 18px;
}

.reading-article ul,
.reading-article ol {
  padding-left: 1.35em;
}

.reading-article li {
  margin: 6px 0;
}

.reading-code-block {
  overflow: hidden;
  margin: 22px 0;
  border: 1px solid rgba(255, 247, 229, 0.12);
  border-radius: 8px;
  background: #11100d;
  color: #fff7e5;
}

.reading-code-block > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 247, 229, 0.12);
  color: #f0c25a;
  font-size: 13px;
  font-weight: 900;
}

.reading-code-block .copy-btn {
  margin: 0;
  border-color: rgba(240, 194, 90, 0.4);
  color: #f7e3aa;
  background: rgba(240, 194, 90, 0.08);
}

.reading-code-block pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
}

.reading-code-block code {
  color: #f7f0df;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre;
}

.reading-side {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.reading-side h2 {
  margin: 0;
  font-size: 18px;
}

.reading-side dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.reading-side dl div {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.reading-side dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.reading-side dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cost-rule {
    display: none;
  }

  .content-grid.two,
  .metric-grid,
  .timeline,
  .recent-strip,
  .home-card-grid,
  .ops-hero,
  .workbench-hero,
  .student-hero,
  .studio-logo-stage {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

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

  .community-hero {
    grid-template-columns: 1fr;
  }

  .workbench-entry-grid,
  .workbench-config-grid,
  .external-workflow-grid {
    grid-template-columns: 1fr;
  }

  .inspiration-layout {
    grid-template-columns: 1fr;
  }

  .inspiration-sidebar {
    position: static;
  }

  .masonry-feed {
    column-count: 2;
  }

  .role-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .detail-dialog {
    grid-template-columns: 1fr;
  }

  .detail-media > img {
    max-height: 360px;
  }

	  .reading-hero,
	  .reading-layout,
	  .case-reading-hero,
	  .community-reading-hero,
	  .community-reading-grid,
	  .prompt-reading-hero,
	  .prompt-reading-layout {
	    grid-template-columns: 1fr;
	  }

	  .prompt-reading-side {
	    position: static;
	  }

  .case-overview-grid,
  .case-chain,
  .case-dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reading-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reading-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 18px;
  }

  .topbar,
  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #global-search {
    width: 100%;
  }

  .nav,
  .content-grid.two,
  .metric-grid,
    .timeline,
  .form-grid,
  .home-top-info,
  .home-hero,
  .hero-showcase,
  .recent-strip,
  .home-card-grid,
  .antpower-start-guide,
  .ops-hero,
  .workbench-hero,
  .student-hero {
    grid-template-columns: 1fr;
  }

  .antpower-guide-steps div {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .antpower-guide-steps span {
    grid-column: 1 / -1;
  }

  .banner-slide,
  .banner-slide .banner-bg,
  .banner-slide .banner-panorama,
  .banner-slide .portal-placeholder {
    height: 520px;
    min-height: 520px;
  }

  .banner-slide .banner-panorama {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
  }

  .banner-slide .banner-bg {
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    opacity: 0.5;
  }

  .banner-copy {
    left: 18px;
    right: 18px;
    bottom: 20px;
    width: auto;
  }

  .banner-copy h2 {
    max-width: none;
    font-size: 34px;
  }

  .banner-cinematic-panel {
    display: none;
  }

  .banner-dots {
    display: none;
  }

  .status-list div {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 300px;
  }

  .hero-copy h2 {
    font-size: 28px;
  }

  .feed-head {
    align-items: stretch;
    flex-direction: column;
  }

  .inspiration-composer,
  .inspiration-post {
    grid-template-columns: 1fr;
  }

  .composer-avatar,
  .post-avatar {
    width: 42px;
    height: 42px;
  }

	  .composer-row {
	    grid-template-columns: 1fr;
	  }

	  .community-reading-hero {
	    padding: 16px;
	  }

	  .community-reading-copy h1 {
	    font-size: clamp(30px, 8vw, 44px);
	  }

	  .community-reading-media,
	  .community-reading-placeholder {
	    min-height: 260px;
	  }

	  .masonry-feed {
	    column-count: 1;
	  }

  .role-grid,
  .visibility-table {
    grid-template-columns: 1fr;
  }

  .detail-overlay {
    padding: 12px;
  }

  .detail-content {
    padding: 18px;
  }

  .detail-content h2 {
    font-size: 22px;
  }

  .stage-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-hero,
  .theory-feature-card,
  .zhangdao-feature-layout,
  .knowledge-admin-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-hero {
    gap: 0;
    min-height: 260px;
  }

  .knowledge-hero-copy {
    padding: 18px 20px;
  }

  .knowledge-hero-copy h2 {
    font-size: clamp(26px, 4vw, 40px);
  }

  .knowledge-hero-media {
    min-height: 0;
    max-height: none;
  }

  .knowledge-stats,
  .knowledge-source-grid,
  .knowledge-doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-admin-list div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

	  .reading-hero h1 {
	    font-size: clamp(30px, 8vw, 44px);
	  }

		  .prompt-content-head,
		  .prompt-section-head {
		    align-items: stretch;
		    flex-direction: column;
		  }

	  .prompt-content-block pre {
	    font-size: 13px;
	  }

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

  .reading-image-grid {
    grid-template-columns: 1fr;
  }

  .case-overview-grid,
  .case-chain,
  .case-dimension-grid,
  .case-asset-list a {
    grid-template-columns: 1fr;
  }

  .case-hero-media {
    height: min(64vh, 360px);
    min-height: 240px;
  }

  .case-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .studio-logo-stage {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
  }

  .studio-logo-orbit {
    width: min(48vw, 180px);
    justify-self: center;
  }

  .studio-logo-copy p {
    margin-inline: auto;
  }

  .studio-logo-copy small {
    margin-inline: auto;
  }

  .studio-carousel-dots {
    left: 50%;
    transform: translateX(-50%);
  }

  .knowledge-hero-copy {
    padding: 22px;
  }

  .knowledge-hero-media {
    min-height: 0;
    max-height: none;
  }

  .theory-feature-media {
    min-height: 190px;
  }

  .theory-feature-copy {
    padding: 18px;
  }

  .zhangdao-feature-cover {
    max-width: 260px;
  }

  .knowledge-stats,
  .knowledge-source-grid,
  .knowledge-doc-grid,
  .ops-gateway-grid {
    grid-template-columns: 1fr;
  }

  .ops-gateway-card {
    min-height: 260px;
  }

  .knowledge-admin-list div {
    grid-template-columns: 1fr;
  }

  .reading-article {
    font-size: 16px;
    line-height: 1.9;
  }

  .reading-image-grid figcaption,
  .reading-download-list a {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final sitewide theme layer: keep dark/light modes coherent after legacy page styles. */
:root[data-theme="dark"] body {
  background: #0b0a08;
  color: #f6eddc;
}

:root[data-theme="dark"] .main,
:root[data-theme="dark"] .view-root {
  background: #0b0a08;
  color: #f6eddc;
}

:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] body.home-mode .sidebar,
:root[data-theme="dark"] body.projects-mode .sidebar {
  background: #11100d;
  color: #f8f3e7;
  border-right: 1px solid rgba(255, 224, 150, 0.12);
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .current-url-strip,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .item,
:root[data-theme="dark"] .portal-card,
:root[data-theme="dark"] .masonry-card,
:root[data-theme="dark"] .community-card,
:root[data-theme="dark"] .project-community-card,
:root[data-theme="dark"] .reading-shell,
:root[data-theme="dark"] .case-reading-shell,
:root[data-theme="dark"] .prompt-content-block,
:root[data-theme="dark"] .prompt-media-section,
:root[data-theme="dark"] .prompt-reading-side,
:root[data-theme="dark"] .community-reading-hero,
:root[data-theme="dark"] .community-reading-panel,
:root[data-theme="dark"] .knowledge-stats article,
:root[data-theme="dark"] .knowledge-source-card,
:root[data-theme="dark"] .knowledge-doc-card,
:root[data-theme="dark"] .knowledge-nav a,
:root[data-theme="dark"] .reading-download-list,
:root[data-theme="dark"] .reading-download-list a,
:root[data-theme="dark"] .case-file-index a,
:root[data-theme="dark"] .pending-prompt-list article {
  border-color: rgba(255, 224, 150, 0.16);
  background-color: #15120d;
  color: #f6eddc;
}

:root[data-theme="dark"] .community-hero,
:root[data-theme="dark"] .director-picks-hero,
:root[data-theme="dark"] .project-community-hero,
:root[data-theme="dark"] .zhangdao-knowledge-feature,
:root[data-theme="dark"] .antpower-start-guide,
:root[data-theme="dark"] .studio-launch,
:root[data-theme="dark"] .knowledge-hero {
  border-color: rgba(255, 224, 150, 0.22);
  background-color: #11100d;
  color: #fff7dd;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] .portal-body h3,
:root[data-theme="dark"] .masonry-body h3,
:root[data-theme="dark"] .reading-article h2,
:root[data-theme="dark"] .reading-article h3,
:root[data-theme="dark"] .reading-article h4,
:root[data-theme="dark"] .reading-article h5,
:root[data-theme="dark"] .knowledge-doc-card h3,
:root[data-theme="dark"] .knowledge-source-card h3,
:root[data-theme="dark"] .prompt-reading-side h2,
:root[data-theme="dark"] .prompt-section-head h2,
:root[data-theme="dark"] .prompt-content-block h2,
:root[data-theme="dark"] .community-reading-copy h1,
:root[data-theme="dark"] .community-reading-panel h2,
:root[data-theme="dark"] .inspiration-post h3 {
  color: #f6eddc;
}

:root[data-theme="dark"] p,
:root[data-theme="dark"] .portal-body p,
:root[data-theme="dark"] .masonry-body p,
:root[data-theme="dark"] .reading-hero p,
:root[data-theme="dark"] .reading-article,
:root[data-theme="dark"] .knowledge-doc-card p,
:root[data-theme="dark"] .knowledge-source-card p,
:root[data-theme="dark"] .knowledge-stats small,
:root[data-theme="dark"] .community-reading-copy p,
:root[data-theme="dark"] .community-reading-panel p:not(.eyebrow),
:root[data-theme="dark"] .inspiration-post p,
:root[data-theme="dark"] .creator-line,
:root[data-theme="dark"] .creator-line small,
:root[data-theme="dark"] .prompt-reading-side dd,
:root[data-theme="dark"] .prompt-director-card small,
:root[data-theme="dark"] .prompt-director-picks p {
  color: #c8b993;
}

:root[data-theme="dark"] .pill,
:root[data-theme="dark"] .portal-meta span,
:root[data-theme="dark"] .post-tags span,
:root[data-theme="dark"] .post-actions button,
:root[data-theme="dark"] .category-chip {
  border-color: rgba(255, 224, 150, 0.16);
  background: #1c1811;
  color: #c8b993;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select,
:root[data-theme="dark"] #global-search {
  border-color: rgba(255, 224, 150, 0.18);
  background: #12100c;
  color: #f6eddc;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: rgba(246, 237, 220, 0.52);
}

:root[data-theme="dark"] .reading-image-grid figcaption,
:root[data-theme="dark"] .prompt-director-card,
:root[data-theme="dark"] .prompt-side-thumb img,
:root[data-theme="dark"] .post-media,
:root[data-theme="dark"] .community-reading-media,
:root[data-theme="dark"] .case-hero-media,
:root[data-theme="dark"] .case-gallery-grid figure,
:root[data-theme="dark"] .case-gallery-grid figcaption,
:root[data-theme="dark"] .case-overview-grid div,
:root[data-theme="dark"] .case-reading-section,
:root[data-theme="dark"] .case-chain div,
:root[data-theme="dark"] .case-dimension-card,
:root[data-theme="dark"] .case-video-frame,
:root[data-theme="dark"] .case-asset-list a,
:root[data-theme="dark"] .case-file-index,
:root[data-theme="dark"] .case-file-index a {
  border-color: rgba(255, 224, 150, 0.14);
  background: #0c0b08;
  color: #f6eddc;
}

:root[data-theme="dark"] .case-section-head h2,
:root[data-theme="dark"] .case-overview-grid strong,
:root[data-theme="dark"] .case-chain strong,
:root[data-theme="dark"] .case-dimension-card h3,
:root[data-theme="dark"] .case-asset-list span,
:root[data-theme="dark"] .case-file-index h3,
:root[data-theme="dark"] .case-file-index strong,
:root[data-theme="dark"] .case-gallery-grid figcaption span {
  color: #f6eddc;
}

:root[data-theme="dark"] .case-section-head p,
:root[data-theme="dark"] .case-chain span,
:root[data-theme="dark"] .case-dimension-card p,
:root[data-theme="dark"] .case-overview-grid span,
:root[data-theme="dark"] .case-dimension-card span,
:root[data-theme="dark"] .case-asset-list small,
:root[data-theme="dark"] .case-file-index small {
  color: #c8b993;
}

:root[data-theme="light"] body {
  background: #f7f4ed;
  color: #17140e;
}

:root[data-theme="light"] .main,
:root[data-theme="light"] .view-root {
  background: #f7f4ed;
  color: #17140e;
}

:root[data-theme="light"] .sidebar,
:root[data-theme="light"] body.home-mode .sidebar,
:root[data-theme="light"] body.projects-mode .sidebar {
  background: #ffffff;
  color: #17140e;
  border-right: 1px solid #ddd6c7;
}

:root[data-theme="light"] .topbar,
:root[data-theme="light"] .current-url-strip,
:root[data-theme="light"] .metric,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .item,
:root[data-theme="light"] .portal-card,
:root[data-theme="light"] .masonry-card,
:root[data-theme="light"] .community-card,
:root[data-theme="light"] .project-community-card,
:root[data-theme="light"] .reading-shell,
:root[data-theme="light"] .case-reading-shell,
:root[data-theme="light"] .prompt-content-block,
:root[data-theme="light"] .prompt-media-section,
:root[data-theme="light"] .prompt-reading-side,
:root[data-theme="light"] .community-reading-hero,
:root[data-theme="light"] .community-reading-panel,
:root[data-theme="light"] .knowledge-stats article,
:root[data-theme="light"] .knowledge-source-card,
:root[data-theme="light"] .knowledge-doc-card,
:root[data-theme="light"] .knowledge-nav a,
:root[data-theme="light"] .reading-download-list,
:root[data-theme="light"] .reading-download-list a,
:root[data-theme="light"] .case-file-index a,
:root[data-theme="light"] .pending-prompt-list article,
:root[data-theme="light"] .zhangdao-knowledge-feature {
  border-color: #ddd6c7;
  background-color: #ffffff;
  color: #17140e;
}

:root[data-theme="light"] .community-hero,
:root[data-theme="light"] .director-picks-hero,
:root[data-theme="light"] .project-community-hero,
:root[data-theme="light"] .antpower-start-guide,
:root[data-theme="light"] .studio-launch,
:root[data-theme="light"] .knowledge-hero {
  border-color: rgba(167, 121, 43, 0.22);
  background-color: #fffaf0;
  color: #17140e;
}

:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] h3,
:root[data-theme="light"] .portal-body h3,
:root[data-theme="light"] .masonry-body h3,
:root[data-theme="light"] .reading-article h2,
:root[data-theme="light"] .reading-article h3,
:root[data-theme="light"] .reading-article h4,
:root[data-theme="light"] .reading-article h5,
:root[data-theme="light"] .knowledge-doc-card h3,
:root[data-theme="light"] .knowledge-source-card h3,
:root[data-theme="light"] .prompt-reading-side h2,
:root[data-theme="light"] .prompt-section-head h2,
:root[data-theme="light"] .prompt-content-block h2,
:root[data-theme="light"] .community-reading-copy h1,
:root[data-theme="light"] .community-reading-panel h2,
:root[data-theme="light"] .inspiration-post h3 {
  color: #17140e;
}

:root[data-theme="light"] p,
:root[data-theme="light"] .portal-body p,
:root[data-theme="light"] .masonry-body p,
:root[data-theme="light"] .reading-hero p,
:root[data-theme="light"] .reading-article,
:root[data-theme="light"] .knowledge-doc-card p,
:root[data-theme="light"] .knowledge-source-card p,
:root[data-theme="light"] .knowledge-stats small,
:root[data-theme="light"] .community-reading-copy p,
:root[data-theme="light"] .community-reading-panel p:not(.eyebrow),
:root[data-theme="light"] .inspiration-post p,
:root[data-theme="light"] .creator-line,
:root[data-theme="light"] .creator-line small,
:root[data-theme="light"] .prompt-reading-side dd,
:root[data-theme="light"] .prompt-director-card small,
:root[data-theme="light"] .prompt-director-picks p {
  color: #746f62;
}

:root[data-theme="light"] .pill,
:root[data-theme="light"] .portal-meta span,
:root[data-theme="light"] .post-tags span,
:root[data-theme="light"] .post-actions button,
:root[data-theme="light"] .category-chip {
  border-color: #ddd6c7;
  background: #fffaf0;
  color: #746f62;
}

:root[data-theme="light"] input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] select,
:root[data-theme="light"] #global-search {
  border-color: #ddd6c7;
  background: #ffffff;
  color: #17140e;
}

:root[data-theme="light"] .reading-image-grid figcaption,
:root[data-theme="light"] .prompt-director-card,
:root[data-theme="light"] .prompt-side-thumb img,
:root[data-theme="light"] .post-media,
:root[data-theme="light"] .community-reading-media,
:root[data-theme="light"] .case-hero-media,
:root[data-theme="light"] .case-gallery-grid figure,
:root[data-theme="light"] .case-gallery-grid figcaption,
:root[data-theme="light"] .case-overview-grid div,
:root[data-theme="light"] .case-reading-section,
:root[data-theme="light"] .case-chain div,
:root[data-theme="light"] .case-dimension-card,
:root[data-theme="light"] .case-video-frame,
:root[data-theme="light"] .case-asset-list a,
:root[data-theme="light"] .case-file-index,
:root[data-theme="light"] .case-file-index a {
  border-color: #ddd6c7;
  background: #ffffff;
  color: #17140e;
}

:root[data-theme="light"] .case-section-head h2,
:root[data-theme="light"] .case-overview-grid strong,
:root[data-theme="light"] .case-chain strong,
:root[data-theme="light"] .case-dimension-card h3,
:root[data-theme="light"] .case-asset-list span,
:root[data-theme="light"] .case-file-index h3,
:root[data-theme="light"] .case-file-index strong,
:root[data-theme="light"] .case-gallery-grid figcaption span {
  color: #17140e;
}

:root[data-theme="light"] .case-section-head p,
:root[data-theme="light"] .case-chain span,
:root[data-theme="light"] .case-dimension-card p,
:root[data-theme="light"] .case-overview-grid span,
:root[data-theme="light"] .case-dimension-card span,
:root[data-theme="light"] .case-asset-list small,
:root[data-theme="light"] .case-file-index small {
  color: #746f62;
}

:root[data-theme="light"] .portal-body {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.94));
}

/* Final button theme layer */
:root[data-theme="dark"] {
  --button-primary-bg: #d6a847;
  --button-primary-hover: #f0c25a;
  --button-primary-text: #11100d;
  --button-surface: #1b1710;
  --button-surface-hover: #2a2114;
  --button-border: rgba(255, 224, 150, 0.24);
  --button-border-hover: rgba(255, 224, 150, 0.5);
  --button-text: #f6eddc;
  --button-muted: #c8b993;
}

:root[data-theme="light"] {
  --button-primary-bg: #a7792b;
  --button-primary-hover: #8f6623;
  --button-primary-text: #ffffff;
  --button-surface: #ffffff;
  --button-surface-hover: #fff7e5;
  --button-border: #ddd6c7;
  --button-border-hover: rgba(167, 121, 43, 0.42);
  --button-text: #17140e;
  --button-muted: #746f62;
}

:root[data-theme] .primary-btn,
:root[data-theme] .hero-btn,
:root[data-theme] .student-access button:not(:disabled) {
  border: 1px solid var(--button-primary-bg);
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

:root[data-theme] .primary-btn:hover,
:root[data-theme] .primary-btn:focus-visible,
:root[data-theme] .hero-btn:hover,
:root[data-theme] .hero-btn:focus-visible,
:root[data-theme] .student-access button:not(:disabled):hover,
:root[data-theme] .student-access button:not(:disabled):focus-visible {
  border-color: var(--button-primary-hover);
  background: var(--button-primary-hover);
  color: var(--button-primary-text);
  outline: none;
}

:root[data-theme] .copy-btn,
:root[data-theme] .copy-btn.dark,
:root[data-theme] .asset-link,
:root[data-theme] .hero-btn.ghost,
:root[data-theme] .auth-btn,
:root[data-theme] .post-actions button,
:root[data-theme] .recent-create button,
:root[data-theme] .detail-close,
:root[data-theme] .dark-link,
:root[data-theme] .reading-code-block .copy-btn,
:root[data-theme] .knowledge-admin-list .copy-btn,
:root[data-theme] .detail-url-row .copy-btn,
:root[data-theme] .detail-section-head .copy-btn {
  border: 1px solid var(--button-border);
  background: var(--button-surface);
  color: var(--button-text);
  box-shadow: none;
}

:root[data-theme] .copy-btn:hover,
:root[data-theme] .copy-btn:focus-visible,
:root[data-theme] .copy-btn.dark:hover,
:root[data-theme] .copy-btn.dark:focus-visible,
:root[data-theme] .asset-link:hover,
:root[data-theme] .asset-link:focus-visible,
:root[data-theme] .hero-btn.ghost:hover,
:root[data-theme] .hero-btn.ghost:focus-visible,
:root[data-theme] .auth-btn:hover,
:root[data-theme] .auth-btn:focus-visible,
:root[data-theme] .post-actions button:hover,
:root[data-theme] .post-actions button:focus-visible,
:root[data-theme] .recent-create button:hover,
:root[data-theme] .recent-create button:focus-visible,
:root[data-theme] .detail-close:hover,
:root[data-theme] .detail-close:focus-visible,
:root[data-theme] .dark-link:hover,
:root[data-theme] .dark-link:focus-visible {
  border-color: var(--button-border-hover);
  background: var(--button-surface-hover);
  color: var(--button-text);
  outline: none;
}

:root[data-theme] .auth-btn.register {
  border-color: var(--button-primary-bg);
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}

:root[data-theme] .nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: var(--button-muted);
}

:root[data-theme] .nav-item:hover,
:root[data-theme] .nav-item:focus-visible,
:root[data-theme] .nav-item.active {
  border-color: var(--button-border);
  background: color-mix(in srgb, var(--button-primary-bg) 16%, transparent);
  color: var(--button-text);
  outline: none;
}

:root[data-theme] .category-chip {
  border-color: var(--button-border);
  background: var(--button-surface);
  color: var(--button-text);
}

:root[data-theme] .category-chip span {
  color: var(--button-muted);
}

:root[data-theme] .category-chip.active,
:root[data-theme] .category-chip:hover,
:root[data-theme] .category-chip:focus-visible {
  border-color: var(--button-primary-bg);
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  outline: none;
}

:root[data-theme] .category-chip.active span,
:root[data-theme] .category-chip:hover span,
:root[data-theme] .category-chip:focus-visible span {
  color: color-mix(in srgb, var(--button-primary-text) 72%, transparent);
}

:root[data-theme] .theme-toggle {
  border-color: var(--button-border-hover);
  background: var(--button-surface);
  color: var(--button-text);
}

:root[data-theme] .theme-toggle:hover,
:root[data-theme] .theme-toggle:focus-visible {
  border-color: var(--button-primary-bg);
  background: var(--button-surface-hover);
  color: var(--button-text);
  outline: none;
}

:root[data-theme] .settings-toggle {
  border-color: var(--button-border-hover);
  background: var(--button-surface);
  color: var(--button-text);
}

:root[data-theme] .settings-toggle:hover,
:root[data-theme] .settings-toggle:focus-visible {
  border-color: var(--button-primary-bg);
  background: var(--button-surface-hover);
  color: var(--button-text);
  outline: none;
}

:root[data-theme] .settings-menu {
  border-color: var(--button-border);
  background: var(--button-surface);
  color: var(--button-text);
}

:root[data-theme] .settings-menu button:hover,
:root[data-theme] .settings-menu button:focus-visible {
  background: var(--button-surface-hover);
}

:root[data-theme] .workbench-entry-panel,
:root[data-theme] .workbench-config-panel,
:root[data-theme] .workbench-entry-card,
:root[data-theme] .workbench-config-section,
:root[data-theme] .workflow-stage,
:root[data-theme] .connector-card,
:root[data-theme] .external-workflow-card {
  border-color: var(--button-border);
  background: var(--button-surface);
  color: var(--button-text);
}

:root[data-theme] .libtv-entry {
  background: color-mix(in srgb, var(--button-surface) 92%, var(--button-primary-bg));
}

:root[data-theme] .workflow-stage > span {
  background: color-mix(in srgb, var(--button-primary-bg) 12%, transparent);
  color: var(--button-text);
}

:root[data-theme] button:disabled,
:root[data-theme] .copy-btn:disabled,
:root[data-theme] .primary-btn:disabled,
:root[data-theme] .hero-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

/* Final tag theme layer */
:root[data-theme="dark"] .pill,
:root[data-theme="dark"] .portal-meta span,
:root[data-theme="dark"] .post-tags span {
  border-color: rgba(255, 224, 150, 0.34);
  background: linear-gradient(180deg, #17120b, #0c0a07);
  color: #fff4d2;
  box-shadow: inset 0 1px 0 rgba(255, 244, 210, 0.08);
}

:root[data-theme="dark"] .pill.strong {
  border-color: rgba(240, 194, 90, 0.66);
  background: #d6a847;
  color: #11100d;
}

:root[data-theme="light"] .pill,
:root[data-theme="light"] .portal-meta span,
:root[data-theme="light"] .post-tags span {
  border-color: #ddd6c7;
  background: #fffaf0;
  color: #5f5748;
  box-shadow: none;
}

:root[data-theme="light"] .pill.strong {
  border-color: rgba(167, 121, 43, 0.38);
  background: rgba(167, 121, 43, 0.1);
  color: #8f6623;
}

/* Final agent and detail theme layer */
:root[data-theme="dark"] .role-card,
:root[data-theme="dark"] .agent-card {
  border-color: rgba(255, 224, 150, 0.18);
  background: #15120d;
  color: #f6eddc;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .role-card:hover,
:root[data-theme="dark"] .role-card:focus-visible,
:root[data-theme="dark"] .agent-card:hover,
:root[data-theme="dark"] .agent-card:focus-visible {
  border-color: rgba(255, 224, 150, 0.52);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] .role-card h3 {
  color: #f6eddc;
}

:root[data-theme="dark"] .role-card p {
  color: #c8b993;
}

:root[data-theme="dark"] .role-card > span {
  border-color: rgba(255, 224, 150, 0.42);
  background: #d6a847;
  color: #11100d;
}

:root[data-theme="dark"] .workbench-note {
  border-color: rgba(255, 224, 150, 0.18);
  background: #0c0b08;
  color: #f6eddc;
}

:root[data-theme="dark"] .workbench-note strong {
  color: #fff4d2;
}

:root[data-theme="dark"] .workbench-note span {
  color: #c8b993;
}

:root[data-theme="dark"] .content-safety-panel {
  border-color: rgba(255, 224, 150, 0.22);
  background: #11100d;
  color: #f6eddc;
}

:root[data-theme="dark"] .content-safety-panel p {
  color: #d8c8a8;
}

:root[data-theme="dark"] .safety-topic-row span {
  border-color: rgba(255, 224, 150, 0.2);
  background: #18140e;
  color: #fff4d2;
}

:root[data-theme="dark"] .ops-hero,
:root[data-theme="dark"] #ops-health .panel {
  border-color: rgba(255, 224, 150, 0.18);
  background: #11100d;
}

:root[data-theme="dark"] .ops-hero input,
:root[data-theme="dark"] #global-search {
  color-scheme: dark;
  appearance: none;
  border-color: rgba(255, 224, 150, 0.28) !important;
  background: #090805 !important;
  color: #fff4d2 !important;
  caret-color: #d6a847;
  box-shadow: inset 0 0 0 1px rgba(255, 224, 150, 0.04) !important;
}

:root[data-theme="dark"] .ops-hero input:focus,
:root[data-theme="dark"] #global-search:focus {
  outline: 2px solid rgba(214, 168, 71, 0.46);
  outline-offset: 2px;
  background: #0c0b08 !important;
}

:root[data-theme="dark"] .ops-hero input:-webkit-autofill,
:root[data-theme="dark"] #global-search:-webkit-autofill {
  -webkit-text-fill-color: #fff4d2;
  box-shadow: 0 0 0 1000px #090805 inset !important;
  transition: background-color 9999s ease-out;
}

:root[data-theme="dark"] .status-list div {
  border-color: rgba(255, 224, 150, 0.14);
  background: #0c0b08;
  color: #f6eddc;
}

:root[data-theme="dark"] .status-list span,
:root[data-theme="dark"] .admin-access label,
:root[data-theme="dark"] .admin-access p,
:root[data-theme="dark"] .empty {
  color: #c8b993;
}

:root[data-theme="dark"] .status-list strong {
  color: #fff4d2;
}

:root[data-theme="dark"] #ops-health .empty {
  border-color: rgba(255, 224, 150, 0.18);
  background: #0c0b08;
}

:root[data-theme="dark"] .detail-dialog,
:root[data-theme="dark"] .detail-content,
:root[data-theme="dark"] .detail-section,
:root[data-theme="dark"] .detail-url-section {
  border-color: rgba(255, 224, 150, 0.16);
  background: #12100c;
  color: #f6eddc;
}

:root[data-theme="dark"] .detail-media,
:root[data-theme="dark"] .detail-placeholder {
  border-color: rgba(255, 224, 150, 0.14);
  background: #090805;
  color: #d6a847;
}

:root[data-theme="dark"] .detail-content h2,
:root[data-theme="dark"] .detail-section-head h3 {
  color: #f6eddc;
}

:root[data-theme="dark"] .detail-section-head {
  border-bottom-color: rgba(255, 224, 150, 0.16);
}

:root[data-theme="dark"] .detail-summary,
:root[data-theme="dark"] .detail-section pre,
:root[data-theme="dark"] .detail-url-row span {
  color: #c8b993;
}

:root[data-theme="dark"] .detail-url-row a {
  color: #fff4d2;
}

:root[data-theme="dark"] .project-reading-progress {
  border-color: rgba(255, 224, 150, 0.22);
  background: #0c0b08;
}

:root[data-theme="dark"] .project-stage-status {
  border-color: rgba(255, 224, 150, 0.26);
  background: #17120b;
  color: #fff4d2;
}

:root[data-theme="dark"] .project-reading-hero {
  border-color: rgba(255, 224, 150, 0.22);
  background: #11100d;
  color: #fff7e5;
}

:root[data-theme="dark"] .project-hero-copy p:not(.eyebrow) {
  color: #d8c8a8;
}

:root[data-theme="light"] .role-card,
:root[data-theme="light"] .agent-card {
  border-color: #ddd6c7;
  background: #ffffff;
  color: #17140e;
  box-shadow: 0 18px 50px rgba(23, 20, 14, 0.08);
}

:root[data-theme="light"] .role-card:hover,
:root[data-theme="light"] .role-card:focus-visible,
:root[data-theme="light"] .agent-card:hover,
:root[data-theme="light"] .agent-card:focus-visible {
  border-color: rgba(167, 121, 43, 0.42);
  box-shadow: 0 18px 42px rgba(23, 20, 14, 0.12);
}

:root[data-theme="light"] .role-card h3 {
  color: #17140e;
}

:root[data-theme="light"] .role-card p {
  color: #746f62;
}

:root[data-theme="light"] .role-card > span {
  border-color: rgba(167, 121, 43, 0.2);
  background: #d6a847;
  color: #11100d;
}

:root[data-theme="light"] .workbench-note {
  border-color: #ddd6c7;
  background: #fffaf0;
  color: #17140e;
}

:root[data-theme="light"] .workbench-note strong {
  color: #17140e;
}

:root[data-theme="light"] .workbench-note span {
  color: #746f62;
}

:root[data-theme="light"] .content-safety-panel {
  border-color: rgba(167, 121, 43, 0.24);
  background: #ffffff;
  color: #17140e;
}

:root[data-theme="light"] .content-safety-panel p {
  color: #625c4f;
}

:root[data-theme="light"] .safety-topic-row span {
  border-color: #ddd6c7;
  background: #fffaf0;
  color: #5d3b00;
}

:root[data-theme="light"] .detail-dialog,
:root[data-theme="light"] .detail-content,
:root[data-theme="light"] .detail-section,
:root[data-theme="light"] .detail-url-section {
  border-color: #ddd6c7;
  background: #ffffff;
  color: #17140e;
}

:root[data-theme="light"] .detail-media,
:root[data-theme="light"] .detail-placeholder {
  border-color: #ddd6c7;
  background: #fffaf0;
  color: #8f6623;
}

:root[data-theme="light"] .detail-content h2,
:root[data-theme="light"] .detail-section-head h3 {
  color: #17140e;
}

:root[data-theme="light"] .detail-section-head {
  border-bottom-color: #ddd6c7;
}

:root[data-theme="light"] .detail-summary,
:root[data-theme="light"] .detail-section pre,
:root[data-theme="light"] .detail-url-row span {
  color: #746f62;
}

:root[data-theme="light"] .detail-url-row a {
  color: #8f6623;
}

:root[data-theme="light"] .project-reading-progress {
  border-color: #ddd6c7;
  background: #fffaf0;
}

:root[data-theme="light"] .project-stage-status {
  border-color: rgba(167, 121, 43, 0.28);
  background: rgba(167, 121, 43, 0.08);
  color: #8f6623;
}

:root[data-theme="light"] .project-reading-hero {
  border-color: rgba(167, 121, 43, 0.22);
  background: #fffaf0;
  color: #17140e;
}

:root[data-theme="light"] .project-hero-copy p:not(.eyebrow) {
  color: #746f62;
}

.fusion-portal-hero {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 760px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(214, 168, 71, 0.26);
  border-radius: 8px;
  background: #080705;
  box-shadow: var(--shadow);
  color: #fff7e5;
}

.fusion-portal-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.fusion-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 4, 0.94), rgba(7, 6, 4, 0.56), rgba(7, 6, 4, 0.18)),
    linear-gradient(0deg, rgba(7, 6, 4, 0.9), transparent 48%);
}

.fusion-hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 70%);
  padding: clamp(30px, 5vw, 72px);
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
}

.fusion-hero-copy h2,
.fusion-hero h2 {
  margin: 12px 0;
  color: #fff7e5;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.fusion-hero-copy p,
.fusion-hero p {
  max-width: 720px;
  color: #e0d1ad;
  font-size: 17px;
  line-height: 1.8;
}

.fusion-hero-console {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 42px);
  z-index: 1;
  display: grid;
  gap: 8px;
  width: min(320px, 34%);
  border: 1px solid rgba(214, 168, 71, 0.32);
  border-radius: 8px;
  background: rgba(9, 8, 5, 0.72);
  padding: 16px;
  backdrop-filter: blur(12px);
}

.fusion-hero-console strong,
.fusion-count-panel strong {
  color: #f0c66a;
  font-size: 18px;
}

.fusion-hero-console span {
  color: #d4c196;
  font-size: 13px;
}

.fusion-section,
.fusion-table-section,
.fusion-hero {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
}

.fusion-hero.compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  align-items: center;
  gap: 24px;
  background: #11100d;
  color: #fff7e5;
}

.fusion-hero.compact img {
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
  object-fit: cover;
}

.fusion-card-grid,
.fusion-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.fusion-card-grid.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.fusion-card,
.fusion-source-grid article,
.fusion-count-panel,
.production-timeline article {
  border: 1px solid rgba(214, 168, 71, 0.2);
  border-radius: 8px;
  background: rgba(214, 168, 71, 0.07);
  padding: 18px;
}

.fusion-card > span,
.fusion-source-grid span,
.production-timeline article > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.fusion-card h3,
.production-timeline h3 {
  margin: 9px 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}

.fusion-card p,
.fusion-source-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.fusion-source-grid strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.fusion-mini-dl {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
}

.fusion-mini-dl div {
  display: grid;
  gap: 3px;
}

.fusion-mini-dl dt {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.fusion-mini-dl dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.fusion-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.fusion-table-head,
.fusion-table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.7fr 0.8fr 0.9fr 1.4fr;
  min-width: 980px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.mapping-table .fusion-table-head,
.mapping-table .fusion-table-row {
  grid-template-columns: 1.6fr 1fr 0.8fr 1fr 1fr 1fr 0.9fr;
}

.fusion-table-head {
  background: rgba(214, 168, 71, 0.16);
  color: var(--accent);
  font-weight: 800;
}

.fusion-table-row strong {
  color: var(--ink);
}

.fusion-table-row span {
  color: var(--muted);
  line-height: 1.45;
}

.production-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.production-timeline article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #d6a847;
  color: #11100d;
  font-size: 16px;
}

.production-timeline article {
  display: grid;
  align-content: start;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.production-timeline article:hover,
.production-timeline article:focus-visible {
  border-color: rgba(214, 168, 71, 0.5);
  background: rgba(214, 168, 71, 0.11);
  outline: none;
  transform: translateY(-1px);
}

.production-timeline .asset-link {
  width: fit-content;
  margin-top: 4px;
}

.fusion-count-panel {
  display: grid;
  place-items: center;
  min-height: 170px;
  text-align: center;
}

.fusion-count-panel strong {
  display: block;
  font-size: 44px;
}

.fusion-count-panel span {
  color: #d4c196;
}

:root[data-theme="light"] .fusion-hero.compact {
  background: #fffaf0;
  color: #17140e;
}

:root[data-theme="light"] .fusion-hero h2,
:root[data-theme="light"] .fusion-hero p {
  color: #17140e;
}

:root[data-theme="light"] .fusion-hero p {
  color: #746f62;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .fusion-portal-hero {
    aspect-ratio: auto;
    min-height: 680px;
  }

  .fusion-hero-copy {
    width: 100%;
    padding: 28px;
    justify-content: flex-start;
  }

  .fusion-hero-console {
    left: 28px;
    right: 28px;
    width: auto;
  }

  .fusion-hero.compact {
    grid-template-columns: 1fr;
  }
}
