:root {
  --orange: #f36f21;
  --orange-dark: #c75213;
  --orange-pale: #fff1e8;
  --ink: #242424;
  --muted: #737373;
  --faint: #999999;
  --line: #e7e2dd;
  --line-strong: #d8d0c8;
  --paper: #ffffff;
  --canvas: #ffffff;
  --page-gutter: 48px;
  --content-rail-gutter: max(48px, calc(50vw - 720px));
  --shadow: 0 8px 24px rgba(50, 38, 27, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

::selection {
  color: #fff;
  background: var(--orange);
}

.app-shell {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100vw - 40px);
  min-height: 76px;
  margin-left: calc(50% - 50vw + 20px);
  padding: 0 var(--content-rail-gutter);
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 700;
}

.brand-copy small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--orange-pale);
}

.header-divider {
  width: 1px;
  height: 15px;
  margin: 0 5px;
  background: var(--line-strong);
}

.library-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 64px 0 42px;
}

.hero {
  display: block;
  width: calc(100vw - 40px);
  min-height: 0;
  margin-left: calc(50% - 50vw + 20px);
  padding: 76px var(--page-gutter) 86px;
  text-align: center;
}

.hero-content {
  min-width: 0;
  max-width: none;
}

.hero-copy {
  max-width: 1180px;
  margin: 0 auto;
}

.hero h1 {
  max-width: none;
  margin: 17px 0 20px;
  color: var(--ink);
  font-size: clamp(48px, 5.5vw, 82px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.hero h1 span {
  color: var(--orange);
  font-weight: 700;
}

.hero-description {
  max-width: 920px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1080px;
  margin: 42px auto 0;
  padding: 21px 0 19px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.hero-stat {
  display: grid;
  gap: 1px;
  padding-right: 16px;
}

.hero-stat + .hero-stat {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.hero-stat strong {
  color: var(--ink);
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
}

.hero-stat span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.search-wrap {
  max-width: 620px;
  margin-top: 25px;
}

.hero .search-box {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(50, 38, 27, 0.035);
}

.hero .search-box input {
  font-size: 15px;
}

.hero .search-status {
  min-height: 18px;
  margin: 11px 2px 0;
}

.hero-docs {
  max-width: 1400px;
  margin: 46px auto 0;
  text-align: left;
  border-top: 1px solid var(--line-strong);
}

.hero-docs-heading {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 16px;
  padding: 18px 0 14px;
}

.hero-docs-heading h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

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

.hero-doc-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 16px;
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hero-doc-item:hover,
.hero-doc-item:focus-visible {
  border-color: #efb18a;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(50, 38, 27, 0.06);
  color: var(--orange-dark);
  outline: none;
  transform: translateY(-2px);
}

.hero-doc-badge {
  display: grid;
  width: 29px;
  height: 31px;
  place-items: center;
  color: var(--orange-dark);
  background: var(--orange-pale);
  border: 1px solid #f7cdb4;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 800;
}

.hero-doc-copy {
  min-width: 0;
}

.hero-doc-copy strong,
.hero-doc-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-doc-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.hero-doc-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.hero-doc-arrow {
  color: var(--orange);
  font-size: 16px;
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  max-width: 920px;
  width: 100%;
  justify-self: end;
}

.hero-visual::before,
.hero-visual::after {
  display: none;
}

.chart-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(50, 38, 27, 0.09);
}

.chart-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--orange), #ffb47d 55%, var(--ink));
}

.chart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.chart-eyebrow {
  margin: 0 0 7px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.chart-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.chart-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: var(--muted);
  background: #fafaf9;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.chart-live i {
  width: 6px;
  height: 6px;
  background: #48a66c;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #e5f3e9;
}

.chart-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.chart-kpi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  padding: 13px 14px;
  background: #fafaf9;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.chart-kpi-featured {
  background: var(--orange-pale);
  border-color: #f7cdb4;
}

.chart-kpi span,
.chart-kpi small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.chart-kpi strong {
  grid-row: span 2;
  align-self: center;
  color: var(--ink);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 1;
}

.chart-kpi small {
  margin-top: 5px;
  font-size: 9px;
}

.chart-canvas {
  margin-top: 18px;
  padding: 15px 13px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.chart-canvas-heading,
.chart-footer,
.chart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-canvas-heading {
  padding: 0 3px;
  color: var(--muted);
  font-size: 10px;
}

.chart-canvas-heading span:last-child {
  color: var(--faint);
  font-size: 9px;
}

.coverage-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 7px;
  overflow: visible;
  font-family: "Inter", sans-serif;
}

.chart-grid-lines line {
  stroke: #eceeeb;
  stroke-width: 1;
}

.chart-columns rect {
  fill: #f5f2ef;
}

.chart-y-labels text,
.chart-x-labels text {
  fill: var(--faint);
  font-size: 10px;
}

.chart-x-labels text {
  font-size: 9px;
}

.chart-line {
  fill: none;
  stroke: url(#coverageLine);
  stroke-linecap: round;
  stroke-width: 2.5;
}

.chart-points circle {
  fill: #fff;
  stroke: var(--orange);
  stroke-width: 2.5;
}

.chart-callout rect {
  fill: var(--ink);
}

.chart-callout text {
  fill: #fff;
  font-size: 10px;
  font-weight: 650;
}

.chart-legend {
  justify-content: start;
  gap: 16px;
  padding: 0 3px;
  color: var(--muted);
  font-size: 9px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot-orange {
  background: var(--orange);
}

.legend-dot-muted {
  background: #d9ddda;
}

.chart-footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
}

.chart-footer i {
  margin-right: 4px;
  color: var(--orange);
  font-size: 13px;
  font-style: normal;
}

.chart-footer span:last-child {
  color: var(--faint);
  white-space: nowrap;
}

.system-intro {
  display: block;
  width: calc(100vw - 40px);
  margin-left: calc(50% - 50vw + 20px);
  padding: 64px var(--content-rail-gutter) 0;
}

.system-lead {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.system-content {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin-top: 48px;
}

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

.system-part {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 94px;
  padding: 20px 22px;
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.system-part:hover {
  background: var(--paper);
  border-color: #efb18a;
  box-shadow: 0 8px 20px rgba(50, 38, 27, 0.045);
}

.system-part-index {
  color: var(--orange);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.system-part h2 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.system-part-status {
  padding: 5px 8px;
  color: var(--faint);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  white-space: nowrap;
}

.system-intro h1 {
  margin: 13px 0 10px;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
}

.system-intro h1 span {
  color: var(--orange);
  font-weight: 700;
}

.system-intro .intro-copy {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

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

.principle-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  min-height: 112px;
  padding: 20px;
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.principle-item:nth-child(odd) {
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.principle-item:nth-child(even) {
  padding-left: 20px;
}

.principle-number,
.module-number,
.folder-index {
  color: var(--orange);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.principle-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.principle-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.foundation-docs {
  margin-top: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(50, 38, 27, 0.045);
  overflow: hidden;
}

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

.foundation-heading h2 {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.foundation-heading > span {
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
}

.foundation-file-list {
  padding: 0 22px;
}

.foundation-file-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.foundation-file-row:last-child {
  border-bottom: 0;
}

.file-status {
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
}

.library-browser {
  display: block;
  width: calc(100vw - 40px);
  margin-left: calc(50% - 50vw + 20px);
  padding: 84px var(--content-rail-gutter) 0;
}

.modules-panel {
  min-width: 0;
}

.modules-panel .section-heading,
.documents-panel .section-heading {
  display: block;
  min-height: 112px;
  margin-bottom: 22px;
}

.modules-panel .section-hint {
  margin-top: 15px;
  line-height: 1.55;
}

.modules-panel .section-heading {
  text-align: center;
}

.modules-panel .section-heading h2 span {
  color: var(--orange);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  gap: 10px;
}

.module-card {
  display: grid;
  min-height: 88px;
  align-content: start;
  gap: 8px;
  padding: 18px;
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.module-card:last-child {
  grid-column: auto;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: #efb18a;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(50, 38, 27, 0.06);
  outline: none;
  transform: translateY(-3px);
}

.module-card.is-active {
  border-color: #efb18a;
  background: var(--orange-pale);
  box-shadow: 0 8px 20px rgba(243, 111, 33, 0.08);
}

.module-card strong {
  font-size: 14px;
  font-weight: 700;
}

.module-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.library-intro h1 {
  margin: 13px 0 10px;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
}

.intro-copy {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.library-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 130px;
  padding: 12px 0 4px 18px;
  border-left: 2px solid var(--orange);
}

.library-stat strong {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.library-stat span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.search-section {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 0 19px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(100%, 600px);
  min-height: 47px;
  padding: 0 13px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243, 111, 33, 0.12);
}

.search-box svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.search-box input {
  min-width: 0;
  flex: 1;
  padding: 3px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #a2a2a2;
}

.search-box kbd {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--faint);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
}

.search-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.quick-section {
  padding-top: 84px;
}

.documents-section {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.documents-panel {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin-top: 52px;
}

.documents-panel .folder-list {
  width: 100%;
  max-width: none;
}

.documents-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 32px;
  color: var(--muted);
  background: #fbfaf8;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  font-size: 12px;
  text-align: center;
}

.documents-empty[hidden] {
  display: none;
}

.documents-panel .section-hint {
  margin-top: 15px;
  line-height: 1.55;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-hint {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 13px 15px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--orange);
  border-radius: 5px;
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.quick-card:hover,
.quick-card:focus-visible {
  border-color: var(--orange);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.folder-icon {
  position: relative;
  display: grid;
  width: 35px;
  height: 29px;
  flex: 0 0 35px;
  place-items: center;
  color: var(--orange);
  background: var(--orange-pale);
  border: 1px solid #f7cdb4;
  border-radius: 4px;
  font-size: 0;
}

.folder-icon::before {
  position: absolute;
  top: 9px;
  left: 6px;
  width: 21px;
  height: 13px;
  content: "";
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.folder-icon::after {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 9px;
  height: 4px;
  content: "";
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.quick-card-copy {
  min-width: 0;
  flex: 1;
}

.quick-card-copy strong,
.quick-card-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-card-copy strong {
  font-size: 13px;
  font-weight: 650;
}

.quick-card-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.quick-arrow {
  color: var(--orange);
  font-size: 17px;
}

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

.folder-card {
  display: contents;
}

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

.folder-card.is-filtered-out {
  display: none;
}

.folder-heading {
  display: none;
  grid-template-columns: 26px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.folder-icon-large {
  width: 40px;
  height: 33px;
}

.section-tag {
  color: var(--faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.folder-icon-large::before {
  top: 10px;
  left: 7px;
  width: 24px;
  height: 15px;
}

.folder-icon-large::after {
  top: 7px;
  left: 9px;
}

.folder-title {
  min-width: 0;
}

.folder-title > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.folder-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.folder-title p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-count {
  padding: 3px 7px;
  color: var(--muted);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 10px;
  white-space: nowrap;
}

.folder-open {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.folder-open span {
  margin-left: 4px;
  font-size: 15px;
}

.file-list {
  display: grid;
  gap: 10px;
  padding: 0;
}

.file-list--two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.file-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 65px 50px;
  align-items: center;
  gap: 12px;
  min-height: 94px;
  padding: 14px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(50, 38, 27, 0.035);
  transition: padding 160ms ease, color 160ms ease;
}

.file-row:last-child {
  border-bottom: 1px solid var(--line);
}

.file-row:hover,
.file-row:focus-visible {
  padding-right: 24px;
  padding-left: 24px;
  border-color: #efb18a;
  color: var(--orange-dark);
  outline: none;
}

.file-row.is-hidden {
  display: none;
}

.pdf-badge {
  display: grid;
  width: 29px;
  height: 33px;
  place-items: center;
  color: var(--orange-dark);
  background: var(--orange-pale);
  border: 1px solid #f7cdb4;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
}

.file-name {
  min-width: 0;
}

.file-name strong,
.file-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.file-name small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.file-pages {
  color: var(--faint);
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.file-action {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
}

.file-action span {
  margin-left: 3px;
  font-size: 14px;
}

.empty-state {
  margin-top: 24px;
  padding: 35px 20px;
  color: var(--muted);
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 15px;
}

.empty-state span {
  font-size: 12px;
}

.empty-folder-note {
  padding: 22px;
  color: var(--faint);
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: calc(100vw - 40px);
  margin-top: 70px;
  margin-left: calc(50% - 50vw + 20px);
  padding: 21px var(--content-rail-gutter) 30px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

@media (max-width: 900px) {
  .site-header {
    padding-right: 0;
    padding-left: 0;
  }

  .brand,
  .brand-copy {
    min-width: 0;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand-copy strong {
    line-height: 1.25;
  }

  .brand-copy small,
  .header-meta span:nth-child(2) {
    white-space: nowrap;
  }

  .system-intro,
  .library-browser {
    width: 100%;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .site-footer {
    width: 100%;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .system-intro,
  .library-browser {
    display: block;
  }

  .system-content {
    margin-top: 30px;
  }

  .modules-panel .section-heading,
  .documents-panel .section-heading {
    min-height: 0;
    margin-bottom: 22px;
  }

  .module-grid,
  .documents-panel .folder-list {
    grid-column: auto;
  }

  .documents-panel {
    max-width: none;
    margin-top: 52px;
  }

  .module-grid {
    display: flex;
    gap: 10px;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .module-grid::-webkit-scrollbar {
    display: none;
  }

  .module-card,
  .module-card:last-child {
    grid-column: auto;
    flex: 0 0 min(220px, 72vw);
    scroll-snap-align: start;
  }

  .hero {
    display: block;
    width: 100%;
    margin-left: 0;
    padding: 52px 0 62px;
  }

  .hero-content {
    max-width: none;
  }

  .hero-visual {
    display: block;
    max-width: 860px;
    margin-top: 52px;
  }

}

@media (max-width: 700px) {
  .app-shell {
    width: min(100% - 24px, 580px);
  }

  .site-header {
    width: 100%;
    min-height: 68px;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .brand-copy strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .brand-copy small {
    font-size: 10px;
  }

  .header-meta {
    flex: 0 0 auto;
    font-size: 10px;
  }

  .header-meta span:nth-last-child(-n + 2),
  .header-divider {
    display: none;
  }

  .library-intro {
    align-items: start;
    padding: 44px 0 29px;
  }

  .library-intro h1 {
    font-size: 42px;
  }

  .system-intro {
    padding-top: 45px;
  }

  .hero {
    display: block;
    width: 100%;
    min-height: 0;
    margin-left: 0;
    padding: 52px 0 35px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: clamp(42px, 12vw, 62px);
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-stats {
    margin-top: 25px;
  }

  .search-wrap {
    margin-top: 35px;
  }

  .hero-docs {
    margin-top: 26px;
  }

  .hero-doc-list {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 48px;
  }

  .hero-visual::before {
    inset: 18px -6px -12px 6px;
  }

  .hero-visual::after {
    inset: 8px 6px -5px -6px;
  }

  .chart-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .chart-header h2 {
    font-size: 19px;
  }

  .chart-kpi {
    padding: 11px 10px;
  }

  .chart-kpi strong {
    font-size: 23px;
  }

  .system-intro h1 {
    font-size: 40px;
  }

  .system-parts {
    grid-template-columns: 1fr;
  }

  .system-part:last-child {
    grid-column: auto;
  }

  .system-part {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 15px;
  }

  .system-part-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 1px;
  }

  .principle-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
  }

  .principle-item,
  .principle-item:nth-child(odd),
  .principle-item:nth-child(even) {
    min-height: 0;
    padding: 17px;
    border-right: 1px solid var(--line);
  }

  .foundation-heading {
    display: block;
    padding: 17px 16px 14px;
  }

  .foundation-heading > span {
    display: block;
    margin-top: 7px;
  }

  .foundation-file-list {
    padding: 0 15px;
  }

  .foundation-file-row {
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
  }

  .foundation-file-row .file-status {
    grid-column: 2;
    margin-top: -6px;
  }

  .module-card {
    min-height: 84px;
    padding: 14px;
    border-radius: 12px;
  }

  .intro-copy {
    font-size: 13px;
  }

  .library-stat {
    display: none;
  }

  .search-section {
    display: block;
  }

  .search-box {
    width: 100%;
  }

  .search-status {
    margin-top: 9px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    min-height: 63px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 40px;
  }

  .section-hint {
    margin-top: 7px;
  }

  .folder-heading {
    display: none;
    grid-template-columns: 24px 40px minmax(0, 1fr);
    gap: 11px;
    padding: 15px;
  }

  .section-tag {
    grid-column: 3;
    margin-top: -4px;
  }

  .folder-title p {
    white-space: normal;
  }

  .file-list {
    gap: 10px;
    padding: 0;
  }

  .file-list--two-column {
    grid-template-columns: 1fr;
  }

  .file-row {
    grid-template-columns: 29px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 65px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .file-row:hover,
  .file-row:focus-visible {
    padding-right: 14px;
    padding-left: 14px;
  }

  .file-pages {
    display: none;
  }

  .file-action {
    text-align: right;
  }

  .site-footer {
    display: block;
    line-height: 1.8;
  }
}

@media (max-width: 460px) {
  .site-header {
    min-height: 64px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-copy strong {
    font-size: 12px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .header-meta span:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
