:root {
  color-scheme: light;
  --text: #0a0a0a;
  --muted: #5a5a5c;
  --subtle: #888888;
  --line: #e5e5e5;
  --surface: #ffffff;
  --soft: #f7f7f7;
  --soft-blue: #f2fbf8;
  --primary: #0a0a0a;
  --primary-dark: #1c1c1e;
  --green: #00d4a4;
  --green-deep: #00b48a;
  --code: #1c1c1e;
  --shadow: 0 24px 48px rgba(0, 0, 0, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
}

.is-scrolled .topbar {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: rgba(10, 10, 10, .06);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar {
    background: rgba(255, 255, 255, .94);
  }
}

.nav {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 8px 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.is-scrolled .nav {
  border-color: rgba(10, 10, 10, .06);
  background: transparent;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: url("/assets/logo.png") center / contain no-repeat;
}

.brand-logo {
  display: block;
  width: 146px;
  height: 30px;
  background: url("/assets/logo-horizontal.png") left center / contain no-repeat;
}

.nav-menu {
  display: contents;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #4f5865;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(15, 23, 42, .06);
}

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

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}

.btn:hover { border-color: var(--text); }

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
}

.btn.accent {
  border-color: var(--green);
  background: var(--green);
  color: var(--primary);
}

.btn.text {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.hero {
  position: relative;
  margin-top: -72px;
  padding: 148px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% -10%, rgba(0, 212, 164, .18), transparent 42%),
    radial-gradient(circle at 92% 4%, rgba(21, 50, 74, .10), transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #f4f8f7 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 50, 74, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 50, 74, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 28% 36%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 28% 36%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero.compact {
  margin-top: -72px;
  padding: 132px 0 56px;
}

.hero.compact .hero-inner {
  text-align: center;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.hero-grid .hero-inner {
  text-align: left;
}

.hero-grid h1 {
  margin: 0 0 24px;
  max-width: none;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.08;
  font-weight: 600;
}

.hero-grid .hero-copy {
  margin: 0;
}

.hero-grid .hero-actions {
  justify-content: flex-start;
}

.hero-trust {
  margin: 28px 0 0;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 500;
}

.hero-trust span {
  color: var(--green-deep);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 212, 164, .18);
}

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

h1 {
  max-width: 980px;
  margin: 0 auto 24px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.05;
  font-weight: 600;
}

.hero-inner h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.75;
}

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

.hero-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 44px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(10, 10, 10, .04);
  border-bottom: 1px solid rgba(10, 10, 10, .04);
  background: #fbfbfc;
}

.metric {
  padding: 0 18px;
  text-align: center;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 700;
}

.metric span {
  color: #666d78;
  font-size: 15px;
  line-height: 1.45;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 700;
}

.section-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.feature-grid,
.store-grid,
.download-grid,
.two-column {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.store-page {
  padding: 56px 0 88px;
}

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

.store-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 700;
}

.store-heading p {
  margin: 0;
  color: var(--muted);
}

.store-search {
  min-width: min(360px, 100%);
}

.store-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.store-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  background: var(--surface);
}

.store-search input:focus {
  outline: 2px solid rgba(0, 212, 164, .26);
  border-color: var(--green);
}

.store-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.store-tabs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.store-tabs a.active {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.store-notice {
  margin-bottom: 24px;
  border: 1px solid #e2e6eb;
  border-radius: 10px;
  padding: 11px 13px;
  color: #5f6672;
  background: #fbfcfd;
  font-size: 14px;
  line-height: 1.6;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.catalog-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.catalog-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  position: relative;
  overflow: hidden;
}

.catalog-thumb::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.catalog-thumb span {
  position: absolute;
  left: 48px;
  right: 48px;
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: var(--text);
}

.catalog-thumb span::before,
.catalog-thumb span::after {
  content: "";
  position: absolute;
  left: 0;
  height: 9px;
  border-radius: 99px;
  background: #d8d8d8;
}

.catalog-thumb span::before {
  width: 64%;
  top: 26px;
}

.catalog-thumb span::after {
  width: 42%;
  top: 48px;
}

.theme-thumb {
  background: #f6f3ee;
}

.plugin-thumb {
  background: #eef9f5;
}

.guard-thumb {
  background: #f5f5f5;
}

.catalog-body {
  padding: 18px;
}

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

.catalog-title a {
  font-size: 18px;
  font-weight: 600;
}

.catalog-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.catalog-body p {
  min-height: 48px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.catalog-links {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.catalog-links a {
  color: var(--text);
  font-weight: 500;
}

.catalog-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.catalog-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
}

.pagination a.active {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 64px;
  padding-top: 54px;
  padding-bottom: 88px;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.docs-sidebar strong {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}

.docs-sidebar a {
  min-height: 32px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 10px;
  font-weight: 500;
}

.docs-sidebar a:hover {
  background: var(--soft);
  color: var(--text);
}

.docs-content h1 {
  margin-left: 0;
  margin-right: 0;
}

.docs-content .hero-copy {
  margin-left: 0;
  margin-right: 0;
}

.docs-content code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  padding: 2px 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .92em;
}

.docs-section {
  padding-top: 46px;
}

.docs-section h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.docs-section p {
  color: var(--muted);
}

.timeline {
  max-width: 900px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 36px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

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

.timeline-item time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.timeline-item h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.timeline-item p {
  color: var(--muted);
}

.timeline-item ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.download-grid,
.two-column {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 28px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 600;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card.highlight {
  border-color: rgba(0, 212, 164, .5);
  background: var(--soft-blue);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--text);
  font-weight: 600;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.app-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.app-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--soft-blue);
  border: 1px solid rgba(0, 212, 164, .34);
}

.app-card:nth-child(2n) .app-icon {
  background: #fafafa;
  border-color: var(--line);
}

.app-type {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.app-card h3 {
  margin-bottom: 8px;
}

.app-card p {
  color: var(--muted);
}

.app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--subtle);
  font-size: 14px;
}

.meta-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.meta-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}

.meta-item strong {
  color: var(--text);
  text-align: right;
  font-weight: 600;
}

.code-block {
  overflow-x: auto;
  margin: 0;
  border-radius: 8px;
  background: var(--code);
  color: #edf5ff;
  padding: 26px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.85;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer .site-shell {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.empty-state {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  color: var(--muted);
  background: var(--soft);
  text-align: center;
}

.admin-body {
  background: #f5f6f7;
  color: #171717;
}

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

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #dedede;
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.admin-brand {
  margin-bottom: 26px;
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-nav a,
.admin-side-foot a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #5f6368;
  font-weight: 600;
}

.admin-nav a:hover,
.admin-nav a.active,
.admin-side-foot a:hover {
  background: #f1f3f4;
  color: #111;
}

.admin-side-foot {
  margin-top: auto;
  display: grid;
  gap: 4px;
}

.admin-main {
  padding: 34px;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-page-head h1 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.1;
}

.admin-page-head p {
  margin: 0;
  color: #6a6a6a;
}

.admin-kicker {
  margin-bottom: 8px !important;
  color: #008f70 !important;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}

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

.admin-stats article,
.admin-panel,
.admin-form-panel,
.admin-login-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

.admin-stats article {
  padding: 20px;
}

.admin-stats span {
  color: #6a6a6a;
  font-size: 14px;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid #e5e5e5;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.admin-panel-head a,
.admin-panel-head span {
  color: #5f6368;
  font-size: 14px;
  font-weight: 600;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  background: #fafafa;
  color: #6a6a6a;
  font-weight: 600;
  text-align: left;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #ececec;
  padding: 14px 16px;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table td strong {
  display: block;
  margin-bottom: 3px;
}

.admin-table td span {
  color: #777;
  font-size: 13px;
}

.admin-roadmap {
  margin-top: 18px;
}

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

.admin-roadmap-grid article {
  min-height: 132px;
  border-right: 1px solid #ececec;
  padding: 18px;
}

.admin-roadmap-grid article:last-child {
  border-right: 0;
}

.admin-roadmap-grid strong {
  display: block;
  margin-bottom: 10px;
}

.admin-roadmap-grid span {
  color: #666;
  font-size: 14px;
}

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

.admin-actions a,
.admin-actions button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.admin-actions button {
  color: #b42318;
}

.admin-actions button:not(.danger) {
  color: #08775f;
}

.admin-alert {
  margin-bottom: 18px;
  border: 1px solid #cfe8dd;
  border-radius: 10px;
  padding: 11px 13px;
  background: #f6fffb;
  color: #13624d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.admin-alert.error {
  border-color: #f1c8c3;
  background: #fff8f7;
  color: #a73a32;
}

.admin-source-note {
  margin: -4px 0 18px;
  border: 1px solid #e2e6eb;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fbfcfd;
  color: #5f6672;
  font-size: 14px;
  line-height: 1.55;
}

.admin-source-note strong {
  color: #111;
  font-weight: 600;
}

.admin-source-note span {
  margin-left: 8px;
}

.admin-form-panel {
  padding: 22px;
}

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

.admin-form-panel label,
.admin-login-card label {
  display: grid;
  gap: 8px;
  color: #555;
  font-size: 14px;
  font-weight: 500;
}

.admin-form-panel input,
.admin-form-panel select,
.admin-form-panel textarea,
.admin-login-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dde2e8;
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  color: #111;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.admin-form-panel textarea {
  resize: vertical;
  line-height: 1.6;
}

.admin-form-panel input:focus,
.admin-form-panel select:focus,
.admin-form-panel textarea:focus,
.admin-login-card input:focus {
  outline: 0;
  border-color: #9aa5b1;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, .06);
}

.field-error {
  color: #a73a32;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.admin-wide {
  margin-top: 16px;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% -8%, rgba(0, 212, 164, .10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.admin-login-card {
  width: min(430px, 100%);
  border: 1px solid rgba(10, 10, 10, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.admin-login-brand {
  margin-bottom: 26px;
  font-size: 16px;
}

.admin-login-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
}

.admin-login-card p {
  margin-bottom: 22px;
  color: #5f6672;
  line-height: 1.65;
}

.admin-login-card button {
  width: 100%;
  margin-top: 18px;
}

.admin-login-card small {
  display: block;
  margin-top: 18px;
  color: #6b7280;
  text-align: center;
}

.admin-login-card small a {
  color: var(--text);
  font-weight: 500;
}

.install-card {
  width: min(640px, 100%);
}

.install-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.install-checks span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dde3ea;
  border-radius: 999px;
  background: #fff;
  color: #4d5560;
  font-size: 13px;
  font-weight: 500;
}

.install-checks .ok {
  border-color: #cfd8e3;
  background: #fff;
  color: #2f6f4f;
}

.install-checks .bad {
  border-color: #f2c6c6;
  background: #fff5f5;
  color: #b42318;
}

.install-section {
  margin: 22px 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: #3f4650;
  border-top: 1px solid #eee;
  padding-top: 18px;
}

.install-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.admin-alert.error > div + div {
  margin-top: 6px;
}

.api-token-value {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  background: #1c1c1c;
  color: #6ee7b7;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
  user-select: all;
}

@media (max-width: 900px) {
  .nav {
    position: relative;
    gap: 12px;
    min-height: 58px;
  }

  .nav-burger {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .nav-menu {
    display: block;
    order: 4;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 32px rgba(0, 0, 0, .08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .24s ease, opacity .2s ease;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-links a {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 10px;
  }

  .nav-actions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .nav-toggle:checked ~ .nav-menu {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
  }

  .nav:has(.nav-toggle:checked) {
    border-color: rgba(10, 10, 10, .08);
    background: rgba(255, 255, 255, .9);
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    margin-top: -74px;
    padding: 116px 0 52px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8f7 100%);
  }

  .hero::after {
    display: none;
  }

  .hero.compact {
    margin-top: -74px;
    padding: 104px 0 44px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-grid .hero-inner,
  .hero-grid h1,
  .hero-grid .hero-copy {
    text-align: center;
  }

  .hero-grid h1 {
    font-size: clamp(28px, 7.5vw, 40px);
  }

  .hero-grid .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-grid .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    text-align: center;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    padding: 34px 18px;
  }

  .metric {
    padding: 6px 10px;
  }

  .metric:nth-child(2n) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .feature-grid,
  .download-grid,
  .two-column,
  .docs-layout,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    gap: 26px;
    padding-top: 40px;
    padding-bottom: 68px;
  }

  .docs-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .docs-sidebar strong {
    width: 100%;
  }

  .docs-sidebar a {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
  }

  .store-heading {
    display: block;
  }

  .store-search {
    margin-top: 20px;
  }

  .store-tabs a {
    border-radius: 10px;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #dedede;
  }

  .admin-nav,
  .admin-side-foot {
    display: flex;
    flex-wrap: wrap;
  }

  .admin-main {
    padding: 20px;
  }

  .admin-stats,
  .admin-form-grid,
  .admin-roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-roadmap-grid article:nth-child(2n) {
    border-right: 0;
  }

  .admin-roadmap-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid #ececec;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    padding: 8px 0;
  }

  .nav {
    border-radius: 14px;
    padding: 0 8px;
  }

  .brand-logo {
    width: 132px;
  }

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

  .hero-actions .btn {
    flex: 1 1 140px;
    min-width: 0;
    padding: 0 14px;
    white-space: nowrap;
  }

  .hero-media {
    width: min(100% - 20px, 1120px);
    margin-top: 38px;
    border-radius: 16px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 30px 16px;
  }

  .metric,
  .metric:nth-child(2n),
  .metric:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 0;
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }

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

  .admin-login {
    align-items: start;
    padding: 18px 14px;
  }

  .admin-login-card {
    margin-top: 10px;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
  }

  .admin-login-card h1 {
    font-size: 26px;
  }

  .admin-login-brand {
    margin-bottom: 22px;
  }

  .admin-login-card p {
    margin-bottom: 18px;
  }

  .admin-login-card input {
    min-height: 46px;
  }

  .install-checks span {
    flex: 1 1 130px;
    justify-content: center;
  }

  .metric strong {
    font-size: clamp(30px, 10vw, 42px);
  }

  .metric span {
    font-size: 13px;
  }

  .admin-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page-head .btn {
    width: 100%;
  }

  .admin-stats,
  .admin-form-grid,
  .admin-roadmap-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .admin-roadmap-grid article,
  .admin-roadmap-grid article:nth-child(2n),
  .admin-roadmap-grid article:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #ececec;
  }

  .admin-roadmap-grid article:last-child {
    border-bottom: 0;
  }

  .admin-actions {
    min-width: 96px;
  }
}
