:root {
  --ink: #0b0b0f;
  --muted: #656772;
  --line: rgba(14, 15, 20, 0.1);
  --paper: #f6f6f8;
  --panel: rgba(255, 255, 255, 0.76);
  --gold: #b69a63;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f7f7f9 0%, #efeff3 48%, #f8f8f9 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.loading-screen {
  display: grid;
  place-content: center;
  min-height: 100vh;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 66px;
  padding: 10px clamp(18px, 4vw, 44px);
  background: rgba(246, 246, 248, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.topbar button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(11, 11, 15, 0.72);
  padding: 0 15px;
  font-weight: 850;
  letter-spacing: 0;
}

.topbar > button {
  justify-self: start;
  color: var(--ink);
  font-size: 1.05rem;
}

.topbar nav {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.topbar button.active,
.topbar button:hover {
  color: #fff;
  background: var(--ink);
}

.auth-pill {
  justify-self: end;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  max-width: 360px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.auth-pill span {
  overflow: hidden;
  padding-left: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-pill button {
  min-height: 32px;
  background: #ececf0;
  color: var(--ink);
  padding: 0 12px;
}

.eyebrow,
.block-label {
  margin: 0 0 14px;
  color: rgba(11, 11, 15, 0.52);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.luxe-hero,
.manual-hero,
.request-page {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 92px) 0 clamp(54px, 8vw, 104px);
}

.hero-copy h1,
.manual-copy h1,
.request-copy h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(2.75rem, 5.2vw, 5.15rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 30px;
  color: #4e505a;
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions button,
.secondary-button,
.request-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
}

.hero-actions button,
.request-form button {
  color: #fff;
  background: var(--ink);
}

.hero-actions .ghost,
.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

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

.atelier-card {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 30%),
    linear-gradient(135deg, #18181d 0%, #0a0a0d 100%);
  color: #fff;
  padding: 24px;
  text-align: left;
  box-shadow: 0 28px 80px rgba(9, 10, 16, 0.18);
}

.atelier-card::before {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 104px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 16%, transparent 16% 100%),
    rgba(255, 255, 255, 0.08);
}

.atelier-card span,
.atelier-card strong,
.atelier-card em {
  position: relative;
  z-index: 1;
  display: block;
}

.atelier-card span {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atelier-card strong {
  max-width: 420px;
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.03;
}

.atelier-card em {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
  line-height: 1.45;
}

.luxe-section,
.manual-body {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-products {
  padding-bottom: 86px;
}

.section-title {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-title h2,
.quick-panel h2,
.playbook h2,
.practice-band h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.product-card,
.quick-panel,
.playbook,
.manager-guide,
.practice-band,
.request-form {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(10, 10, 15, 0.08);
  backdrop-filter: blur(18px);
}

.product-card {
  overflow: hidden;
  min-height: 430px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 80px rgba(10, 10, 15, 0.12);
}

.product-illustration {
  position: relative;
  height: 170px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 32%),
    linear-gradient(135deg, #111116, #2c2d34);
}

.product-illustration span {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.product-illustration span:nth-child(1) {
  left: 22px;
  top: 26px;
  width: 52%;
  height: 12px;
}

.product-illustration span:nth-child(2) {
  left: 22px;
  top: 56px;
  width: 34%;
  height: 12px;
}

.product-illustration span:nth-child(3) {
  right: 28px;
  bottom: 26px;
  width: 94px;
  height: 94px;
  border: 18px solid color-mix(in srgb, var(--accent) 58%, white);
  background: transparent;
}

.card-body {
  padding: 24px;
}

.card-meta,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-meta {
  margin-bottom: 16px;
}

.card-meta span,
.card-meta strong,
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(11, 11, 15, 0.06);
  padding: 0 12px;
  color: #42444d;
  font-size: 0.88rem;
  font-weight: 820;
}

.product-card h3,
.steps h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.16;
}

.product-card p,
.steps p,
.practice-band li,
.number-list li,
.request-copy p,
.form-status {
  color: #5a5c66;
  line-height: 1.58;
}

.manual-page {
  padding-bottom: 78px;
}

.guide-tabs {
  display: flex;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  overflow-x: auto;
}

.guide-tabs button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 16px;
  font-weight: 850;
  white-space: nowrap;
}

.guide-tabs button.active {
  color: #fff;
  background: var(--ink);
}

.guide-tabs i {
  width: 9px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
}

.manual-hero {
  align-items: stretch;
  padding-top: clamp(34px, 5vw, 72px);
}

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

.manual-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 28%),
    linear-gradient(145deg, #17171c, #07070a);
  color: #fff;
  padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 38px 90px rgba(10, 10, 15, 0.2);
}

.manual-menu p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-menu strong {
  display: block;
  max-width: 520px;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  line-height: 1.08;
}

.menu-lines {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.menu-lines a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 820;
  text-decoration: none;
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.quick-panel article,
.playbook,
.manager-guide,
.practice-band,
.request-form {
  padding: clamp(22px, 3vw, 38px);
}

.quick-panel article + article {
  border-left: 1px solid var(--line);
}

.number-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

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

.steps article {
  min-height: 220px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(11, 11, 15, 0.045);
}

.steps article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

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

.guide-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    #fff;
  padding: 24px;
}

.guide-card::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.guide-mark {
  width: 42px;
  height: 8px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--accent);
}

.guide-card h3 {
  max-width: 520px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.12;
}

.guide-card p {
  color: #555762;
  line-height: 1.56;
}

.guide-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.guide-list li {
  color: #25262d;
  line-height: 1.48;
}

.practice-band {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  background: #101014;
}

.practice-band h2,
.practice-band li {
  color: #fff;
}

.practice-band ul {
  display: grid;
  gap: 14px;
  margin: 0;
}

.request-page {
  align-items: start;
}

.request-copy {
  padding-top: clamp(12px, 4vw, 58px);
}

.request-form {
  display: grid;
  gap: 16px;
  margin-top: 0;
}

.request-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.request-form input,
.request-form textarea {
  width: 100%;
  border: 1px solid rgba(14, 15, 20, 0.16);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  color: var(--ink);
  outline: 0;
}

.request-form input:focus,
.request-form textarea:focus {
  border-color: #111113;
  box-shadow: 0 0 0 4px rgba(17, 17, 19, 0.09);
}

.request-form textarea {
  min-height: 190px;
  resize: vertical;
}

.request-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 1060px) {
  .luxe-hero,
  .manual-hero,
  .request-page,
  .quick-panel,
  .practice-band {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .steps,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .manual-menu {
    min-height: 360px;
  }

  .quick-panel article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topbar nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .auth-pill {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .luxe-hero,
  .manual-hero,
  .request-page,
  .luxe-section,
  .manual-body,
  .guide-tabs {
    width: min(100% - 22px, 1180px);
  }

  .hero-copy h1,
  .manual-copy h1,
  .request-copy h1 {
    font-size: clamp(2.15rem, 10.4vw, 3.22rem);
    line-height: 1.04;
  }

  .manual-menu,
  .product-card,
  .quick-panel,
  .playbook,
  .manager-guide,
  .practice-band,
  .request-form {
    border-radius: 22px;
  }

  .atelier-card {
    min-height: 190px;
  }
}

.source-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 34px;
}

.source-stats span {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(10, 11, 16, 0.06);
}

.source-stats strong {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1;
}

.source-stats em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.web-version,
.materials-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 34px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 22px 70px rgba(10, 11, 16, 0.07);
}

.web-version .section-title p,
.materials-section .section-title p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.65;
}

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

.web-section-card {
  padding: 22px;
  border: 1px solid rgba(14, 15, 20, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    color-mix(in srgb, var(--accent) 8%, transparent);
}

.web-section-card h3,
.material-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.web-section-card p {
  color: #4d505a;
  line-height: 1.62;
}

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

.type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 26px;
}

.type-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #4d505a;
  font-size: 0.82rem;
  font-weight: 900;
}

.type-pills b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
}

.material-groups {
  display: grid;
  gap: 26px;
}

.material-group {
  display: grid;
  gap: 12px;
}

.material-group > header {
  display: grid;
  gap: 8px;
  max-width: 880px;
}

.material-group > header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  line-height: 1.05;
}

.material-group > header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.material-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.material-card span,
.material-card small {
  display: block;
  color: rgba(11, 11, 15, 0.52);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.material-card p {
  margin-bottom: 8px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.material-card a,
.material-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.material-card a {
  color: #fff;
  background: var(--ink);
}

.material-card strong {
  color: #7b4b00;
  background: #fff0cf;
}

.material-card.restricted {
  background: #fff8ea;
}

.file-content {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.file-content summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(11, 11, 15, 0.06);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.content-text {
  display: grid;
  gap: 14px;
  max-height: 520px;
  overflow: auto;
  margin-top: 14px;
  padding-right: 4px;
}

.content-block {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.content-block h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.content-block p {
  margin: 0 0 10px;
  color: #42454e;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-table {
  display: grid;
  gap: 6px;
  overflow-x: auto;
}

.content-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
  min-width: min(760px, 100%);
}

.content-row span {
  display: block;
  padding: 8px 10px;
  border: 1px solid rgba(11, 11, 15, 0.08);
  border-radius: 10px;
  background: #fff;
  color: #343741;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

.content-row a {
  display: inline;
  min-height: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: inherit;
  white-space: normal;
}

.restricted-content .content-text {
  max-height: none;
}

.material-link-summary {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.material-link-summary > strong {
  display: block;
  margin-bottom: 10px;
  color: #343741;
  background: transparent;
  padding: 0;
  min-height: 0;
  font-size: 0.92rem;
  justify-content: flex-start;
}

.domain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.domain-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.78);
  color: #4d505a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.domain-chips b {
  color: var(--ink);
}

.material-links {
  grid-column: 1 / -1;
}

.material-links summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(11, 11, 15, 0.06);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.material-links summary span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.link-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.linked-material-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.linked-material-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.linked-material-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.linked-material-card small {
  display: block;
  margin-bottom: 6px;
  color: rgba(11, 11, 15, 0.52);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.linked-material-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.linked-material-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.linked-material-card > .linked-material-head > a {
  justify-self: start;
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.86rem;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  margin-top: 14px;
  padding-right: 4px;
}

.link-list a {
  display: grid;
  justify-content: start;
  min-height: 0;
  border: 1px solid rgba(14, 15, 20, 0.08);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  white-space: normal;
}

.link-list a small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.link-list a span {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #20222a;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.knowledge-hub {
  width: min(1180px, calc(100% - 32px));
  margin: clamp(46px, 7vw, 86px) auto;
}

.workflow-guide {
  width: min(1180px, calc(100% - 32px));
  margin: clamp(34px, 6vw, 72px) auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(14, 15, 20, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent, #111113) 13%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 80px rgba(10, 10, 16, 0.08);
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
}

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

.workflow-steps article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(14, 15, 20, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
}

.workflow-steps article > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
}

.workflow-steps small,
.role-start .block-label {
  color: rgba(11, 11, 15, 0.52);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.workflow-steps h3 {
  margin: 4px 0 8px;
  font-size: 1.18rem;
  line-height: 1.15;
}

.workflow-steps p {
  margin: 0 0 10px;
  color: #41434d;
  line-height: 1.55;
}

.workflow-steps b,
.workflow-steps em {
  display: block;
  line-height: 1.45;
}

.workflow-steps b {
  margin-bottom: 8px;
  color: var(--ink);
}

.workflow-steps em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 760;
}

.role-start {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid rgba(14, 15, 20, 0.08);
  border-radius: 24px;
  background: rgba(248, 248, 250, 0.88);
  padding: 18px;
}

.role-start article {
  border: 1px solid rgba(14, 15, 20, 0.08);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.role-start h4 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.role-start p,
.role-start strong {
  display: block;
  margin: 0;
  color: #4b4d56;
  line-height: 1.48;
}

.role-start strong {
  margin-top: 8px;
  color: var(--ink);
}

.practice-note {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--accent, #111113) 18%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent, #111113) 7%, #fff);
  padding: 16px 18px;
  color: #41434d;
  line-height: 1.5;
}

.practice-note strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.knowledge-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(260px, 1.5fr);
  gap: 12px;
  align-items: stretch;
  margin: 22px 0 16px;
}

.knowledge-stat,
.knowledge-search {
  min-height: 104px;
  border: 1px solid rgba(14, 15, 20, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 50px rgba(10, 10, 16, 0.07);
}

.knowledge-stat {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
}

.knowledge-stat strong {
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  line-height: 1;
}

.knowledge-stat span,
.knowledge-search span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.knowledge-search {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.knowledge-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(14, 15, 20, 0.1);
  border-radius: 999px;
  background: #fff;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 780;
  outline: none;
}

.knowledge-search input:focus {
  border-color: color-mix(in srgb, var(--accent, #111113) 55%, #c8c8d2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #111113) 12%, transparent);
}

.branch-menu {
  position: sticky;
  top: 78px;
  z-index: 12;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -6px 18px;
  padding: 8px 6px 14px;
  scrollbar-color: rgba(17, 17, 19, 0.48) rgba(17, 17, 19, 0.08);
  scrollbar-width: thin;
  scroll-padding-inline: 6px;
  scroll-snap-type: x proximity;
}

.branch-menu::-webkit-scrollbar {
  height: 9px;
}

.branch-menu::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.08);
}

.branch-menu::-webkit-scrollbar-thumb {
  border: 2px solid rgba(246, 246, 248, 0.92);
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.5);
}

.branch-menu a {
  display: grid;
  grid-template-columns: minmax(160px, auto) auto;
  flex: 0 0 auto;
  gap: 4px 10px;
  align-items: center;
  min-width: 260px;
  min-height: 68px;
  border: 1px solid rgba(14, 15, 20, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(10, 10, 16, 0.06);
  scroll-snap-align: start;
}

.branch-menu b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branch-menu small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 820;
  line-height: 1.25;
}

.branch-menu span {
  display: inline-grid;
  place-items: center;
  justify-self: end;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #111113;
  color: #fff;
  font-size: 0.74rem;
}

.employee-plan {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 14px;
  margin: 18px 0 22px;
}

.employee-plan article,
.branch-section,
.empty-search {
  border: 1px solid rgba(14, 15, 20, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 70px rgba(10, 10, 16, 0.08);
}

.employee-plan article {
  padding: clamp(20px, 3vw, 30px);
}

.employee-plan h3,
.branch-section h3,
.empty-search h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: 0;
}

.employee-plan ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #3f414a;
  font-weight: 720;
  line-height: 1.52;
}

.employee-plan p:last-child {
  margin-bottom: 0;
  color: #4c4e58;
  font-size: 1.02rem;
  line-height: 1.62;
}

.branch-list {
  display: grid;
  gap: 16px;
}

.branch-section {
  overflow: hidden;
}

.branch-section > header {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid rgba(14, 15, 20, 0.08);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent, #111113) 12%, transparent), transparent 32%),
    rgba(255, 255, 255, 0.52);
}

.branch-section > header p:not(.block-label) {
  max-width: 820px;
  margin: 0;
  color: #53555f;
  font-size: 1.06rem;
  font-weight: 680;
  line-height: 1.55;
}

.branch-section > header span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #111113;
  color: #fff;
  padding: 9px 13px;
  font-size: 0.8rem;
  font-weight: 900;
}

.branch-guide-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr);
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
}

.route-card,
.tool-card,
.rule-card {
  border: 1px solid rgba(14, 15, 20, 0.08);
  border-radius: 22px;
  background: rgba(248, 248, 250, 0.84);
  padding: clamp(18px, 2.2vw, 24px);
}

.route-card {
  grid-row: span 2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 244, 248, 0.9)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent, #111113) 16%, transparent), transparent 36%);
}

.route-card ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 24px;
  color: #25262d;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  font-weight: 760;
  line-height: 1.55;
}

.tool-card .guide-list,
.rule-card .guide-list {
  margin-top: 0;
}

.branch-sources {
  border-top: 1px solid rgba(14, 15, 20, 0.08);
  background: rgba(250, 250, 252, 0.78);
}

.document-map {
  margin: 0 clamp(18px, 3vw, 30px) clamp(18px, 3vw, 30px);
  border: 1px solid rgba(14, 15, 20, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 247, 250, 0.9)),
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent, #111113) 12%, transparent), transparent 34%);
  padding: clamp(18px, 2.4vw, 26px);
}

.document-map h4 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: 0;
}

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

.document-map article {
  border: 1px solid rgba(14, 15, 20, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 16px;
}

.document-map h5 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
}

.document-map p {
  margin: 0;
  color: #4b4d56;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.58;
}

.document-map a,
.doc-muted {
  display: inline;
  color: var(--ink);
  font-weight: 920;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.document-map a:hover {
  color: color-mix(in srgb, var(--accent, #111113) 82%, #111113);
}

.doc-muted {
  color: #7d7f88;
}

.branch-sources > summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 2.4vw, 28px);
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

.branch-sources > summary::-webkit-details-marker {
  display: none;
}

.branch-sources > summary span {
  border-radius: 999px;
  background: #111113;
  color: #fff;
  padding: 7px 11px;
  font-size: 0.76rem;
}

.branch-sources > p {
  margin: 0;
  padding: 0 clamp(18px, 2.4vw, 28px) 16px;
  color: var(--muted);
  font-weight: 720;
  line-height: 1.5;
}

.knowledge-record {
  border-bottom: 1px solid rgba(14, 15, 20, 0.08);
}

.knowledge-record:last-child {
  border-bottom: 0;
}

.knowledge-record summary {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 17px clamp(18px, 2.4vw, 28px);
  cursor: pointer;
  list-style: none;
}

.knowledge-record summary::-webkit-details-marker {
  display: none;
}

.knowledge-record summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.knowledge-record summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-record summary em {
  border-radius: 999px;
  background: #f0ebe0;
  color: #7f6230;
  padding: 6px 10px;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 900;
}

.knowledge-record[open] summary {
  background: rgba(246, 246, 248, 0.72);
}

.knowledge-record-body {
  display: grid;
  gap: 12px;
  padding: 0 clamp(18px, 2.4vw, 28px) 22px calc(clamp(18px, 2.4vw, 28px) + 142px);
}

.knowledge-path {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.knowledge-record-body > a {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.empty-search {
  padding: 28px;
}

@media (max-width: 1060px) {
  .source-stats,
  .web-section-grid,
  .knowledge-dashboard,
  .workflow-layout,
  .employee-plan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .source-stats,
  .web-section-grid,
  .knowledge-dashboard,
  .workflow-layout,
  .employee-plan,
  .link-list,
  .material-card {
    grid-template-columns: 1fr;
  }

  .source-stats,
  .web-version,
  .materials-section,
  .workflow-guide,
  .knowledge-hub {
    width: min(100% - 22px, 1180px);
  }

  .workflow-steps article {
    grid-template-columns: 1fr;
  }

  .practice-note {
    display: grid;
  }

  .knowledge-record summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .knowledge-record summary strong {
    white-space: normal;
  }

  .knowledge-record-body {
    padding: 0 18px 20px;
  }

  .branch-section > header {
    display: grid;
  }

  .branch-guide-body {
    grid-template-columns: 1fr;
  }

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

  .route-card {
    grid-row: auto;
  }

  .branch-menu a {
    min-width: 230px;
  }
}

.ai-app {
  min-height: calc(100vh - 66px);
}

.ai-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  width: min(1360px, calc(100% - 32px));
  margin: 18px auto 70px;
  align-items: start;
}

.ai-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(10, 10, 16, 0.08);
}

.ai-sidebar h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1;
}

.ai-sidebar p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.ai-menu {
  display: grid;
  gap: 8px;
}

.ai-menu button {
  display: grid;
  gap: 4px;
  min-height: 66px;
  border: 1px solid rgba(14, 15, 20, 0.08);
  border-radius: 18px;
  background: rgba(247, 247, 250, 0.86);
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
}

.ai-menu button.active,
.ai-menu button:hover {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.ai-menu strong {
  font-size: 1rem;
  line-height: 1.15;
}

.ai-menu span {
  color: currentColor;
  opacity: 0.64;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.25;
}

.ai-workspace {
  min-width: 0;
}

.ai-panel {
  display: grid;
  gap: 18px;
}

.ai-panel-head {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent, #111113) 14%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.82);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 24px 70px rgba(10, 10, 16, 0.08);
}

.ai-panel-head h2 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.ai-panel-head p:not(.eyebrow) {
  max-width: 860px;
  margin: 0;
  color: #4d505a;
  font-size: 1.08rem;
  line-height: 1.58;
}

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

.ai-stats span {
  display: grid;
  gap: 6px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
}

.ai-stats strong {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.ai-stats em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.ai-role-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 14px;
}

.ai-role-card {
  box-shadow: 0 18px 50px rgba(10, 10, 16, 0.06);
}

.branch-list.compact {
  gap: 14px;
}

.branch-list.compact .branch-section > header,
.branch-list.compact .branch-guide-body {
  padding: clamp(18px, 2.6vw, 24px);
}

.branch-list.compact .branch-sources {
  display: none;
}

.knowledge-hub.inside-ai-app {
  width: 100%;
  margin: 0;
}

.knowledge-hub.inside-ai-app > .section-title {
  display: none;
}

.knowledge-hub.inside-ai-app .branch-menu {
  position: relative;
  top: auto;
}

.ai-panel .workflow-guide {
  width: 100%;
  margin: 0;
}

@media (max-width: 980px) {
  .ai-shell {
    grid-template-columns: 1fr;
  }

  .ai-sidebar {
    position: relative;
    top: auto;
    max-height: none;
  }

  .ai-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-role-layout,
  .ai-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ai-shell {
    width: min(100% - 22px, 1360px);
  }

  .ai-menu {
    grid-template-columns: 1fr;
  }
}
