@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
}
:root {
  font-family: "Inter Variable", Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
  --page: #f7f8fa;
  --surface: #fff;
  --surface-secondary: #f2f4f7;
  --surface-hover: #f8f9fc;
  --border: #e6e8ec;
  --text-primary: #202632;
  --text-secondary: #596373;
  --text-muted: #727b8c;
  --accent: #4f46e5;
  --accent-soft: #eeedff;
  --accent-hover: #4338ca;
  --success: #087f5b;
  --success-bg: #ecf8f2;
  --warning: #9d620b;
  --warning-bg: #fff8ea;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101217;
  --surface: #191c23;
  --surface-secondary: #222630;
  --surface-hover: #20242e;
  --border: #2c303b;
  --text-primary: #edf0f7;
  --text-secondary: #a9b1c1;
  --text-muted: #8f99ad;
  --accent: #818cf8;
  --accent-soft: #262944;
  --accent-hover: #a5b4fc;
  --success: #6ad5ad;
  --success-bg: #192e2a;
  --warning: #e8b463;
  --warning-bg: #2a251c;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.12);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary,
[tabindex] {
  outline: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
code {
  font-family: "JetBrains Mono Variable", ui-monospace, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
  stroke-width: 1.7;
}
button {
  border: 0;
  background: none;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  transform: translateY(-160%);
  z-index: 100;
}
.skip-link:focus {
  transform: none;
}
.site-header {
  height: 72px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1160px;
  height: 100%;
  padding: 0 24px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 620;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  color: var(--accent);
}
.brand-section {
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 450;
  color: var(--text-secondary);
  border-left: 1px solid var(--border);
  padding-left: 18px;
  margin-left: 10px;
}
.theme-control {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.theme-control button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  border-radius: 5px;
  color: var(--text-secondary);
}
.theme-control button:hover {
  background: var(--surface-hover);
}
.theme-control button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow);
}
.container {
  max-width: 1160px;
  padding: 0 24px 36px;
  margin: auto;
  min-height: calc(100vh - 72px);
}
.hero {
  padding: 38px 0 34px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.hero p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 750px;
  margin-top: 12px;
  line-height: 1.65;
}
.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.catalog-heading p {
  font-size: 12px;
  color: var(--text-secondary);
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  gap: 10px;
}
.search-box > .ui-icon {
  color: var(--text-secondary);
}
.search-box input {
  min-width: 0;
  width: 100%;
  height: 100%;
  color: var(--text-primary);
  background: none;
  border: 0;
  font-size: 13px;
}
.search-box:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-box input:focus-visible {
  outline: none;
}
.search-box input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}
.search-box input::-webkit-search-cancel-button {
  display: none;
}
.search-box button {
  font-size: 22px;
  width: 28px;
  height: 30px;
  line-height: 1;
}
.access-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.access-filter label {
  font-size: 12px;
  color: var(--text-secondary);
}
.access-filter select {
  height: 42px;
  max-width: 100%;
  padding: 0 30px 0 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0 20px;
}
.category-control {
  display: flex;
  gap: 4px;
}
.category-control button {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  min-height: 34px;
  color: var(--text-secondary);
}
.category-control button[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-soft);
}
.category-control button:hover {
  background: var(--surface-secondary);
}
.filter-row > p {
  color: var(--text-secondary);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: right;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.app-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text-primary);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.app-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.06);
}
.card-content {
  padding: 18px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.app-avatar {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 23px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--app-color) 10%, var(--surface));
  line-height: 1;
}
.app-avatar.large {
  width: 56px;
  height: 56px;
  font-size: 32px;
  border-radius: 12px;
}
.app-description {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.card-flows {
  display: grid;
  grid-template-rows: minmax(36px, auto) auto;
  gap: 8px;
  margin-top: auto;
}
.card-flow {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.flow-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 550;
  color: var(--text-secondary);
}
.flow-label svg {
  width: 13px;
  height: 13px;
}
.card-flow > span:last-child {
  overflow-wrap: anywhere;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 10px 18px;
  background: var(--surface-hover);
  border-radius: 0 0 12px 12px;
  font-size: 11px;
  color: var(--text-secondary);
}
.card-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-footer svg {
  width: 14px;
  height: 14px;
}
.view-app {
  font-weight: 550;
  color: var(--text-primary);
  white-space: nowrap;
}
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 22px;
  color: var(--text-secondary);
  font-size: 12px;
  max-width: 100%;
  line-height: 1.7;
}
.site-footer strong {
  font-weight: 500;
  color: var(--text-primary);
}
.empty-state {
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  background: var(--surface);
  padding: 44px 20px;
}
.empty-state p {
  color: var(--text-secondary);
  margin: 8px 0 18px;
}
.primary,
.secondary {
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary {
  color: #fff;
  background: var(--accent);
}
:root[data-theme="dark"] .primary {
  color: #101217;
}
.primary:hover {
  background: var(--accent-hover);
}
.secondary {
  background: var(--surface);
  border: 1px solid var(--border);
}
.secondary:hover {
  background: var(--surface-hover);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 24px;
  font-size: 12px;
  color: var(--text-secondary);
  min-height: 32px;
}
.detail-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.detail-heading h1:focus {
  outline: none;
}
.app-id {
  display: block;
  color: var(--text-secondary);
  margin-top: 5px;
}
.detail-description {
  color: var(--text-secondary);
  margin: 18px 0 28px;
  max-width: 740px;
  font-size: 14px;
  line-height: 1.65;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.detail-sidebar {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 24px;
}
.detail-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.panel h2 {
  font-size: 15px;
  margin-bottom: 16px;
}
.install ol {
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 18px;
  display: grid;
  gap: 9px;
}
.install strong {
  font-weight: 550;
  color: var(--text-primary);
}
.copy-manifest {
  width: 100%;
}
.manifest-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  margin-top: 12px;
  min-height: 30px;
}
.manifest-link svg {
  width: 13px;
  height: 13px;
}
.copy-status {
  font-size: 12px;
  margin-top: 10px;
  color: var(--text-secondary);
}
.copy-status:empty {
  display: none;
}
.copy-fallback {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}
.copy-fallback textarea {
  resize: none;
  line-height: 1.7;
  overflow-wrap: anywhere;
  width: 100%;
  background: var(--surface-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 8px;
  font-size: 11px;
  margin: 8px 0;
}
.permission-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.permission-row > svg {
  margin-top: 1px;
}
.permission-row > div {
  min-width: 0;
}
.permission-row h3 {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.permission-row p {
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.permission-note {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 11px !important;
}
.allowlist {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.allowlist li {
  background: var(--surface-secondary);
  border-radius: 5px;
  padding: 6px 8px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.allowlist code {
  font-size: 10px;
}
.permission-row:last-child {
  padding-bottom: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}
.count {
  background: var(--surface-secondary);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--text-secondary);
  font-size: 11px;
}
.section-description {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 9px 0 18px;
  line-height: 1.6;
}
.schema-section + .schema-section {
  margin-top: 30px;
}
.schema-detail {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schema-detail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.schema-detail > summary::-webkit-details-marker {
  display: none;
}
.schema-detail > summary:hover {
  background: var(--surface-hover);
}
.schema-detail > summary:focus-visible {
  outline-offset: -3px;
  border-radius: 9px;
}
.schema-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.schema-title > svg {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
  transition: transform 0.15s;
}
.schema-detail[open] .schema-title > svg {
  transform: rotate(90deg);
}
.schema-title code {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 3px;
}
.field-count {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.schema-body {
  padding: 0 16px 16px;
}
.event-description {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.7;
}
.field-list {
  margin: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.field-row dt {
  min-width: 0;
}
.field-name {
  font-size: 11px;
  font-weight: 550;
  color: var(--text-primary);
  display: block;
}
.field-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.field-meta code {
  font-size: 10px;
  color: var(--text-secondary);
}
.optional {
  font-size: 9px;
  letter-spacing: 0.025em;
  color: var(--text-secondary);
  background: var(--surface-secondary);
  border-radius: 3px;
  padding: 1px 4px;
  font-weight: 550;
}
.field-row dd {
  margin: 0;
  min-width: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.field-choices {
  margin-top: 7px;
  font-size: 11px;
}
.field-choices code {
  font-size: 10px;
}
.field-row.nested {
  padding-left: 12px;
  border-left: 2px solid var(--border);
}
.schema-value {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.no-fields {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
@media (min-width: 1400px) {
  .container,
  .header-inner {
    max-width: 1240px;
  }
  .app-grid {
    gap: 20px;
  }
  .card-content {
    padding: 20px;
  }
  .card-footer {
    padding: 10px 20px;
  }
  .detail-layout {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}
@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .panel {
    padding: 16px;
  }
  .access-filter label {
    display: none;
  }
}
@media (max-width: 650px) {
  .site-header {
    height: 64px;
  }
  .header-inner {
    padding: 0 20px;
    gap: 8px;
  }
  .brand {
    font-size: 21px;
    gap: 8px;
  }
  .brand-section {
    font-size: 11px;
    margin-left: 3px;
    padding-left: 11px;
  }
  .brand-mark {
    width: 23px;
    height: 25px;
  }
  .theme-control {
    padding: 2px;
    gap: 0;
  }
  .theme-control button {
    width: 28px;
    height: 30px;
  }
  .theme-control svg {
    width: 15px;
    height: 15px;
  }
  .container {
    padding: 0 20px 28px;
    min-height: calc(100vh - 64px);
  }
  .hero {
    padding: 26px 0 24px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 26px;
  }
  .hero p {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 10px;
  }
  .catalog-heading {
    display: block;
    margin-bottom: 16px;
  }
  .catalog-heading h2 {
    font-size: 18px;
  }
  .catalog-heading p {
    font-size: 11px;
    margin-top: 5px;
  }
  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .search-box {
    flex: none;
    height: 44px;
  }
  .access-filter {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  .access-filter label {
    display: block;
    font-size: 11px;
  }
  .access-filter select {
    height: 38px;
    font-size: 11px;
  }
  .filter-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 18px;
  }
  .category-control {
    width: 100%;
    gap: 2px;
  }
  .category-control button {
    padding: 8px 10px;
    min-height: 36px;
    font-size: 11px;
  }
  .filter-row > p {
    text-align: left;
    font-size: 11px;
  }
  .app-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .card-content {
    padding: 18px;
  }
  .app-heading {
    margin-bottom: 10px;
  }
  .app-description {
    margin-bottom: 16px;
  }
  .card-flow {
    font-size: 11px;
  }
  .card-footer {
    min-height: 42px;
  }
  .site-footer {
    font-size: 11px;
    margin-top: 24px;
  }
  .back-link {
    margin: 18px 0 20px;
  }
  .detail-heading {
    gap: 12px;
  }
  .detail-heading h1 {
    font-size: 25px;
  }
  .detail-description {
    font-size: 13px;
    margin: 16px 0 24px;
  }
  .detail-layout {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  .detail-sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: static;
    gap: 16px;
  }
  .detail-main {
    width: 100%;
  }
  .panel {
    padding: 18px;
  }
  .schema-detail > summary {
    padding: 13px 14px;
  }
  .schema-body {
    padding: 0 14px 14px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px 0;
  }
  .field-row dt {
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
  }
  .field-meta {
    margin-top: 0;
  }
  .field-row.nested {
    padding-left: 10px;
  }
  .field-count {
    font-size: 10px;
  }
  .schema-title {
    font-size: 12px;
  }
  .field-name {
    font-size: 11px;
  }
  .primary,
  .secondary {
    min-height: 42px;
  }
  .section-description {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
