:root {
  color-scheme: light;
  --ink: #171714;
  --muted: #68675f;
  --line: #dcd9cf;
  --paper: #f5f3ec;
  --surface: #fbfaf6;
  --white: #ffffff;
  --accent: #e66e2f;
  --accent-dark: #b94916;
  --gold: #d5a62e;
  --blue: #3e67b1;
  --violet: #7553a8;
  --rose: #a64b65;
  --teal: #287f75;
  --orange: #c65a28;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(28, 27, 22, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 0%, rgba(230, 110, 47, 0.08), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(230, 110, 47, 0.3);
  outline-offset: 3px;
}

.site-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 16px auto;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 20, 0.12);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.94);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #171714;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.nav-action {
  padding: 10px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #57564f;
  cursor: pointer;
  font-size: 14px;
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link.active,
.nav-action:hover {
  background: #ebe8de;
  color: var(--ink);
}

.nav-action-link,
.nav-action {
  margin-left: 8px;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 9px 14px;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: var(--paper);
  color: var(--muted);
}

.boot-screen img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  animation: breathe 1.4s ease-in-out infinite alternate;
}

@keyframes breathe {
  to { transform: translateY(-5px); opacity: 0.72; }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
  min-height: 690px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(36px, 7vw, 110px);
  background:
    linear-gradient(rgba(23, 23, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 20, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.catalog-head h1,
.auth-page h1,
.manage-head h1,
.locked-page h1 {
  margin: 22px 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(48px, 6.4vw, 94px);
  line-height: 0.98;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.85;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.button-primary {
  background: var(--ink);
  color: white;
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.full-width {
  width: 100%;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  color: #77756d;
  font-size: 12px;
}

.trust-line span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5b9b6c;
  box-shadow: 0 0 0 4px rgba(91, 155, 108, 0.13);
}

.release-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 42px;
  background: var(--ink);
  color: white;
}

.release-top {
  display: flex;
  justify-content: space-between;
  color: #cbc8bd;
  font-size: 12px;
}

.status-dot {
  color: #f3b78e;
}

.release-number {
  margin-top: 60px;
  font-family: Georgia, serif;
  font-size: clamp(112px, 13vw, 190px);
  font-weight: 400;
  line-height: 0.8;
  color: #f0a06f;
}

.release-label {
  margin-top: 24px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 26px;
}

.release-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  border-top: 1px solid #403f3a;
  border-bottom: 1px solid #403f3a;
}

.release-stats div {
  padding: 20px 8px;
  border-right: 1px solid #403f3a;
}

.release-stats div:last-child {
  border-right: 0;
}

.release-stats strong,
.release-stats span {
  display: block;
}

.release-stats strong {
  font-size: 20px;
}

.release-stats span {
  margin-top: 6px;
  color: #99978f;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.release-card > p {
  margin: 28px 0 0;
  color: #aaa89f;
  font-size: 13px;
  line-height: 1.75;
}

.flow-section,
.truth-section,
.catalog-cta,
.catalog-head,
.catalog-toolbar,
.manage-head,
.manage-layout,
.auth-page,
.locked-page {
  padding-right: clamp(24px, 5vw, 76px);
  padding-left: clamp(24px, 5vw, 76px);
}

.flow-section {
  padding-top: 96px;
  padding-bottom: 100px;
}

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

.section-heading h2,
.truth-card h2,
.catalog-cta h2 {
  margin: 14px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.team-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.flow-card {
  position: relative;
  min-height: 264px;
  padding: 24px 20px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.flow-card:last-child {
  border-right: 0;
}

.flow-card:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-5px);
}

.flow-index,
.flow-code,
.flow-card strong,
.flow-card small {
  display: block;
}

.flow-index {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 13px;
}

.flow-code {
  margin-top: 46px;
  color: var(--card-color, var(--accent));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.flow-card strong {
  margin-top: 11px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 23px;
  line-height: 1.24;
}

.flow-card small {
  margin-top: 12px;
  color: var(--muted);
}

.flow-card:hover small,
.flow-card:hover .flow-index {
  color: #bdbab0;
}

.flow-card i {
  position: absolute;
  right: -10px;
  bottom: 22px;
  z-index: 2;
  color: var(--muted);
  font-style: normal;
}

.color-amber { --card-color: var(--gold); }
.color-blue { --card-color: var(--blue); }
.color-violet { --card-color: var(--violet); }
.color-rose { --card-color: var(--rose); }
.color-teal { --card-color: var(--teal); }
.color-orange { --card-color: var(--orange); }

.truth-section {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 1px;
  padding-top: 1px;
  padding-bottom: 1px;
  background: var(--line);
}

.truth-card {
  min-height: 360px;
  padding: 44px;
  background: var(--surface);
}

.truth-primary {
  color: white;
  background: var(--accent-dark);
}

.truth-card h2 {
  max-width: 680px;
  font-size: clamp(34px, 3.5vw, 54px);
}

.truth-card h3 {
  margin: 80px 0 14px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 26px;
  font-weight: 500;
}

.truth-card p {
  color: var(--muted);
  line-height: 1.8;
}

.truth-primary p {
  max-width: 700px;
  color: #f1c9b3;
}

.truth-primary .eyebrow {
  color: #ffd7be;
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  font-weight: 700;
}

.number-mark {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 46px;
}

.catalog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.catalog-cta > div:first-child {
  max-width: 700px;
}

.catalog-cta-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.catalog-cta-actions a {
  min-width: 130px;
  padding: 25px;
  border-right: 1px solid var(--line);
  text-align: center;
  transition: background 150ms ease;
}

.catalog-cta-actions a:last-child {
  border-right: 0;
}

.catalog-cta-actions a:hover {
  background: #eeeae0;
}

.catalog-cta-actions strong,
.catalog-cta-actions span {
  display: block;
}

.catalog-cta-actions strong {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 400;
}

.catalog-cta-actions span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.service-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px clamp(24px, 5vw, 76px);
  border-bottom: 1px solid #e5c790;
  background: #fff1cf;
  color: #67470e;
  font-size: 13px;
}

.service-banner span {
  color: #8b6a2a;
}

.catalog-head {
  position: relative;
  min-height: 390px;
  padding-top: 78px;
  padding-bottom: 68px;
  border-bottom: 1px solid var(--line);
}

.catalog-head h1 {
  font-size: clamp(54px, 8vw, 110px);
  line-height: 0.9;
}

.catalog-head p {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.catalog-count {
  position: absolute;
  right: clamp(24px, 5vw, 76px);
  bottom: 64px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.catalog-count strong {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: clamp(70px, 9vw, 130px);
  font-weight: 400;
  line-height: 0.8;
}

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

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.35fr) auto;
  gap: 16px;
  align-items: end;
  padding-top: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.search-field,
.select-field,
.upload-form label,
.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-field span,
.select-field span,
.upload-form label > span,
.auth-card label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

input,
select {
  min-height: 47px;
  padding: 0 13px;
}

textarea {
  padding: 13px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

.result-total {
  padding: 14px 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.catalog-card {
  position: relative;
  display: flex;
  min-height: 370px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: var(--surface);
  transition: background 180ms ease;
}

.catalog-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: var(--card-color);
  content: "";
  transition: height 200ms ease;
}

.catalog-card:hover {
  background: #fff;
}

.catalog-card:hover::before {
  height: 100%;
}

.card-hit {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.card-topline,
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-monogram {
  color: var(--card-color);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}

.source-badge,
.kind-chip,
.state-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 10px;
}

.source-badge.community {
  border-color: #9fc6ae;
  color: #38734d;
}

.card-body {
  margin: 50px 0 34px;
}

.card-team {
  display: block;
  min-height: 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-body h2 {
  margin: 12px 0 15px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.card-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.card-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.card-bottom span + span {
  margin-left: 9px;
}

.card-bottom b {
  color: var(--ink);
  font-size: 11px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 70px 24px;
  background: var(--surface);
  text-align: center;
}

.empty-state strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
}

.empty-state p {
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 18, 16, 0.74);
  backdrop-filter: blur(6px);
}

.detail-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 22px;
  padding: 46px;
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.detail-kicker {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-modal h2 {
  margin: 20px 42px 16px 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 500;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.detail-description {
  color: var(--muted);
  line-height: 1.85;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.detail-facts div {
  padding: 18px;
  background: var(--surface);
}

.detail-facts span,
.detail-facts strong {
  display: block;
}

.detail-facts span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.detail-facts strong {
  margin-top: 7px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.protection-note {
  margin-top: 26px;
  border-radius: 14px;
  padding: 20px;
  background: #efe9dd;
}

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

.detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

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

.auth-page {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.58fr);
  gap: 80px;
  align-items: center;
  min-height: 660px;
}

.auth-page.compact-page {
  display: grid;
  grid-template-columns: minmax(320px, 560px);
  place-content: center;
}

.auth-intro h1,
.manage-head h1,
.locked-page h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.02;
}

.auth-intro p,
.manage-head p,
.locked-page p {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.auth-card,
.upload-form,
.upload-library {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 16px 50px rgba(28, 27, 22, 0.06);
}

.auth-card {
  padding: 38px;
}

.auth-card h1 {
  margin: 16px 0;
  font-size: 42px;
}

.auth-card > p {
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-card label {
  margin: 26px 0 18px;
}

.form-error,
.form-success {
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
}

.form-error {
  background: #fee7e3;
  color: #922c21;
}

.form-success {
  background: #e4f2e7;
  color: #2f6f42;
}

.locked-page {
  display: flex;
  min-height: 650px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.locked-page h1 {
  margin-bottom: 12px;
}

.locked-page p {
  margin-bottom: 28px;
}

.lock-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 34px;
}

.manage-head {
  display: flex;
  min-height: 370px;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  padding-top: 66px;
  padding-bottom: 62px;
  border-bottom: 1px solid var(--line);
}

.manage-head h1 {
  margin: 18px 0 12px;
}

.safety-rule {
  flex: 0 0 auto;
  border-left: 3px solid var(--accent);
  padding: 14px 0 14px 18px;
}

.safety-rule strong,
.safety-rule span {
  display: block;
}

.safety-rule span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.manage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 24px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 70px;
}

.upload-form,
.upload-library {
  padding: 30px;
}

.upload-library {
  position: sticky;
  top: 20px;
}

.form-title {
  display: flex;
  gap: 16px;
  align-items: start;
  margin-bottom: 26px;
}

.form-title > span {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 28px;
}

.form-title h2,
.form-title p {
  margin: 0;
}

.form-title h2 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 26px;
  font-weight: 500;
}

.form-title p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

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

.upload-form > label,
.publication-grid,
.file-grid,
.upload-form > .button {
  margin-top: 18px;
}

.publication-grid {
  border-radius: 13px;
  padding: 16px;
  background: #f3eee3;
}

.file-field {
  min-height: 126px;
  justify-content: center;
  border: 1px dashed #c8c2b5;
  border-radius: 13px;
  padding: 18px;
  background: #faf8f3;
}

.file-field input {
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 12px;
}

.file-field small {
  color: var(--muted);
  font-size: 10px;
}

.admin-list {
  display: flex;
  max-height: 780px;
  overflow: auto;
  flex-direction: column;
  gap: 11px;
}

.admin-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
}

.admin-item-main {
  display: flex;
  gap: 12px;
  align-items: start;
}

.admin-item-main h3,
.admin-item-main p {
  margin: 0;
}

.admin-item-main h3 {
  font-size: 15px;
}

.admin-item-main p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.admin-states,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.state-chip.published,
.state-chip.public {
  border-color: #9fc6ae;
  color: #347148;
}

.state-chip.draft,
.state-chip.protected {
  border-color: #dec58e;
  color: #7c5b14;
}

.small-action {
  border: 0;
  border-radius: 8px;
  padding: 7px 9px;
  background: #eeece5;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
}

.small-action:hover {
  background: #e3dfd5;
}

.small-action.danger {
  color: #9a3429;
}

.form-guidance {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  border-left: 3px solid #c48a1a;
  padding: 13px 16px;
  background: #fbf5e8;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.form-guidance strong {
  color: var(--ink);
}

.detail-actions-stack {
  align-items: flex-start;
  flex-direction: column;
}

.detail-actions-stack > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.install-head {
  min-height: 460px;
}

.install-head p {
  max-width: 800px;
}

.install-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.install-head-actions span {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #f2eee4;
}

.install-steps article {
  min-height: 230px;
  border-right: 1px solid var(--line);
  padding: 34px clamp(24px, 4vw, 48px);
}

.install-steps article:last-child {
  border-right: 0;
}

.install-steps span {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 28px;
}

.install-steps h2 {
  margin: 42px 0 10px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
  font-weight: 500;
}

.install-steps p,
.install-notice p,
.install-package p,
.install-safety p {
  color: var(--muted);
  line-height: 1.7;
}

.install-steps p {
  margin: 0;
  font-size: 13px;
}

.install-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 42px clamp(24px, 5vw, 76px) 20px;
  border: 1px solid #dfc589;
  border-radius: 16px;
  padding: 22px 24px;
  background: #fbf5e8;
}

.install-notice p {
  margin: 6px 0 0;
  font-size: 13px;
}

.install-library {
  display: grid;
  gap: 14px;
  padding: 0 clamp(24px, 5vw, 76px) 60px;
}

.install-package {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto auto;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: white;
}

.install-package-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.install-package h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 23px;
  font-weight: 500;
}

.install-package p {
  margin: 7px 0 0;
  font-size: 12px;
}

.install-package-meta,
.install-package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.install-package-meta {
  max-width: 220px;
  color: var(--muted);
  font-size: 11px;
}

.install-package-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
}

.install-package-actions {
  justify-content: flex-end;
}

.install-package-actions .button {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 12px;
}

.install-empty {
  min-height: 260px;
  place-content: center;
}

.install-safety {
  padding: 70px clamp(24px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: white;
}

.install-safety h2 {
  max-width: 760px;
  margin: 18px 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.05;
}

.install-safety p {
  max-width: 720px;
  color: #c9c5bc;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 48px));
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.toast.error {
  background: #982f25;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 44px clamp(24px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: #edeae1;
}

.site-footer strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}

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

  .release-card {
    min-height: 520px;
  }

  .team-flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow-card:nth-child(3) {
    border-right: 0;
  }

  .flow-card:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .truth-section {
    grid-template-columns: 1fr 1fr;
  }

  .truth-primary {
    grid-column: 1 / -1;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-count {
    position: static;
    justify-content: flex-end;
    margin-top: 36px;
  }

  .manage-layout {
    grid-template-columns: 1fr;
  }

  .upload-library {
    position: static;
  }

  .install-package {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .install-package-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .site-header {
    min-height: 68px;
    padding: 0 18px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link,
  .nav-action {
    margin: 0;
    text-align: left;
  }

  .hero-copy {
    padding: 72px 24px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 72px);
  }

  .release-card {
    min-height: auto;
    padding: 50px 24px;
  }

  .release-number {
    margin-top: 50px;
  }

  .section-heading,
  .catalog-cta,
  .manage-head,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

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

  .flow-card:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .flow-card:nth-child(even) {
    border-right: 0;
  }

  .flow-card:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .flow-card i {
    display: none;
  }

  .truth-section,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .truth-primary {
    grid-column: auto;
  }

  .catalog-cta-actions {
    width: 100%;
  }

  .catalog-cta-actions a {
    min-width: 0;
    padding: 20px 12px;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .catalog-head {
    min-height: auto;
  }

  .auth-page {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .manage-head {
    min-height: auto;
    align-items: start;
  }

  .form-grid,
  .file-grid {
    grid-template-columns: 1fr;
  }

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

  .install-steps article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .install-steps article:last-child {
    border-bottom: 0;
  }

  .install-steps h2 {
    margin-top: 22px;
  }

  .install-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .install-head-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .install-package {
    grid-template-columns: 1fr;
  }

  .install-package-actions {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .brand-copy small {
    display: none;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .flow-card,
  .flow-card:nth-child(3),
  .flow-card:nth-child(even) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-card:last-child {
    border-bottom: 0;
  }

  .truth-card,
  .catalog-card,
  .detail-modal,
  .auth-card,
  .upload-form,
  .upload-library {
    padding: 24px;
  }

  .catalog-cta-actions strong {
    font-size: 34px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .service-banner {
    align-items: start;
    flex-direction: column;
  }

  .detail-actions-stack > div,
  .install-package-actions {
    width: 100%;
  }
}

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