:root {
  --page: #f8f9f6;
  --surface: #fff;
  --ink: #222b29;
  --secondary: #748078;
  --muted: #919a93;
  --line: #e3e7df;
  --accent: #d2ee9c;
  --accent-strong: #77a244;
  --accent-soft: #eef5e5;
  --dark: #25332e;
  --dark-ink: #eff6eb;
  --hero-art: #eaf0e3;
  --shadow: 0 18px 45px rgba(30, 45, 29, 0.07);
  font-family: "DM Sans", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}
button svg,
a svg {
  flex-shrink: 0;
}
.icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.page-width {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}
.site-header {
  height: 90px;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}
.header-inner {
  height: 100%;
  width: min(1328px, calc(100% - 80px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.3px;
  white-space: nowrap;
}
.brand-light {
  font-weight: 500;
}
.brand-period {
  color: var(--accent-strong);
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 3px;
  transform: skew(-18deg);
}
.brand-mark i {
  display: block;
  width: 6px;
  background: var(--ink);
  border-radius: 2px;
}
.brand-mark i:nth-child(1) {
  height: 15px;
}
.brand-mark i:nth-child(2) {
  height: 28px;
  background: var(--accent-strong);
}
.brand-mark i:nth-child(3) {
  height: 21px;
}
.main-nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 30px;
  margin-left: 30px;
}
.nav-item {
  height: 100%;
  position: relative;
  font-size: 14px;
  color: var(--secondary);
  padding: 0 2px;
  white-space: nowrap;
}
.nav-item:hover,
.nav-item.active {
  color: var(--ink);
}
.nav-item.active {
  font-weight: 600;
}
.nav-item.active:after {
  content: "";
  position: absolute;
  width: 19px;
  height: 3px;
  background: var(--accent-strong);
  border-radius: 2px;
  bottom: 19px;
  left: 50%;
  transform: translateX(-50%);
}
.saved-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}
.saved-nav span {
  min-width: 17px;
  font-size: 10px;
  background: var(--accent);
  padding: 2px 4px;
  border-radius: 4px;
  color: #35482d;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.guide-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.guide-link svg {
  width: 15px;
  height: 15px;
}
.header-divider {
  height: 20px;
  width: 1px;
  background: var(--line);
}
.icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.icon-button:hover {
  background: var(--accent-soft);
}
.theme-toggle {
  color: var(--secondary);
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 58px;
  padding-bottom: 68px;
}
.hero-copy {
  padding: 5px 0;
}
.eyebrow {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 23px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2.8px;
  line-height: 1.35;
}
.highlight {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.highlight:after {
  content: "";
  position: absolute;
  bottom: 5px;
  height: 20px;
  left: -2px;
  right: 2px;
  background: var(--accent);
  z-index: -1;
  transform: rotate(-1deg);
}
.highlight-dot {
  color: var(--accent-strong);
  font-family: "DM Sans", sans-serif;
  font-size: 71px;
  line-height: 0;
  position: relative;
  left: 5px;
}
.hero-description {
  font-size: 14px;
  line-height: 1.95;
  color: var(--secondary);
  margin-top: 24px;
  letter-spacing: 0.2px;
}
.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 26px;
  align-items: center;
}
.button {
  min-height: 43px;
  border-radius: 7px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  transform: translateY(-1px);
}
.button .icon {
  width: 17px;
  height: 17px;
}
.button-dark {
  background: var(--dark);
  color: var(--dark-ink);
}
.button-dark:hover {
  background: #3c5145;
}
.button-text {
  padding-inline: 8px;
  color: var(--ink);
  font-size: 12px;
  gap: 7px;
}
.button-text .icon {
  width: 19px;
  height: 19px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 10px;
}
.hero-note svg {
  width: 13px;
  height: 13px;
  color: var(--accent-strong);
}
.note-dot {
  margin: 0 2px;
  color: #b9c2b6;
}
.hero-art {
  height: 350px;
  position: relative;
  isolation: isolate;
  margin-left: 4px;
  background: var(--hero-art);
  border-radius: 18px;
  background-image: radial-gradient(#b8c4ae70 0.7px, transparent 0.7px);
  background-size: 15px 15px;
  margin-top: 7px;
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--hero-art), transparent 40%);
  z-index: -1;
  border-radius: 18px;
}
.orbit {
  position: absolute;
  border: 1px solid #b8c8a54f;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.orbit-one {
  width: 340px;
  height: 340px;
  left: 95px;
  top: -1px;
}
.orbit-two {
  width: 270px;
  height: 270px;
  left: 130px;
  top: 34px;
}
.art-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #abc785;
  border: 3px solid #eff5e7;
  box-sizing: content-box;
  border-radius: 50%;
}
.dot-one {
  top: 45px;
  right: 38px;
}
.dot-two {
  bottom: 39px;
  left: 47px;
}
.code-window {
  position: absolute;
  top: 63px;
  left: 42px;
  right: 37px;
  background: #27342f;
  color: #c8d3c7;
  border-radius: 10px;
  box-shadow:
    0 21px 45px #21332129,
    0 1px 0 #ffffff4d inset;
  overflow: hidden;
  transform: rotate(-3deg);
}
.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ffffff0c;
  font-size: 9px;
  color: #81958a;
  font-family: "DM Sans", sans-serif;
}
.window-bar > .icon {
  width: 13px;
  height: 13px;
}
.window-dots {
  display: flex;
  gap: 4px;
}
.window-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #728274;
}
.window-dots i:first-child {
  background: #b2c28b;
}
.code-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 0;
}
.code-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #889c90;
  font-size: 9px;
  padding: 6px 8px;
  border-radius: 4px;
}
.code-tab .icon {
  width: 11px;
  height: 11px;
}
.code-tab.active {
  background: #d2ee9c15;
  color: #d3eea6;
}
.code-filetype {
  margin-left: auto;
  color: #637b6d;
  font-size: 7px;
  letter-spacing: 1.3px;
}
.hero-code {
  padding: 17px 18px 18px;
  min-height: 146px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  line-height: 2;
}
.hero-code-line {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}
.line-number {
  color: #536d5f;
  min-width: 8px;
  user-select: none;
}
.code-comment {
  color: #7d9484;
}
.code-section {
  color: #d3eea6;
}
.code-domain {
  color: #dbe3d6;
}
.code-policy {
  color: #a9c4dc;
}
.window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ffffff0c;
  padding: 10px 18px;
  font-size: 8px;
  color: #8fa18c;
}
.window-footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.window-footer i {
  display: block;
  width: 4px;
  height: 4px;
  background: #c4e79f;
  border-radius: 50%;
}
.window-footer .icon {
  color: #c4e79f;
  width: 11px;
  height: 11px;
}
.connection-chip {
  position: absolute;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 25px #25412b09;
  border-radius: 10px;
  gap: 10px;
  z-index: 1;
}
.chip-top {
  top: -12px;
  left: 25px;
  padding: 12px 13px;
  transform: rotate(-3deg);
  font-size: 9px;
  line-height: 1.6;
  color: var(--secondary);
}
.chip-top strong {
  font-weight: 500;
  color: var(--ink);
}
.chip-icon {
  display: flex;
  width: 31px;
  height: 31px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.chip-icon .icon {
  width: 17px;
  height: 17px;
}
.mini-dot {
  width: 5px;
  height: 5px;
  background: var(--accent-strong);
  border-radius: 50%;
  margin: 0 0 17px 15px;
}
.chip-bottom {
  right: 6px;
  bottom: -11px;
  padding: 13px 15px;
  transform: rotate(3deg);
}
.chip-bottom strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.chip-bottom div > span {
  display: block;
  font-size: 8px;
  margin-top: 4px;
  color: var(--secondary);
  letter-spacing: 0.3px;
}
.tiny-wave {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-left: 18px;
}
.tiny-wave i {
  width: 3px;
  background: var(--accent-strong);
  border-radius: 3px;
  height: 11px;
}
.tiny-wave i:nth-child(2) {
  height: 20px;
}
.tiny-wave i:nth-child(3) {
  height: 13px;
}
.tiny-wave i:nth-child(4) {
  height: 25px;
}
.tiny-wave i:nth-child(5) {
  height: 16px;
}
.art-caption {
  position: absolute;
  bottom: 14px;
  left: 23px;
  font-size: 6px;
  letter-spacing: 1.7px;
  color: #8d9c83;
}
.resource-section {
  padding-top: 5px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 29px;
}
.section-eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 9px;
}
.section-heading h2 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.title-dot {
  font-family: "DM Sans", sans-serif;
  color: var(--accent-strong);
  padding-left: 5px;
}
.section-heading > p {
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 4px;
}
.resource-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.resource-tabs {
  display: flex;
  gap: 6px;
  background: #edf0e9;
  padding: 4px;
  border-radius: 8px;
}
.resource-tab {
  font-size: 12px;
  color: var(--secondary);
  padding: 9px 14px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.resource-tab > span {
  font-size: 10px;
  opacity: 0.75;
}
.resource-tab.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 6px #2837220a;
  font-weight: 600;
}
.resource-tab.active > span {
  color: var(--accent-strong);
  opacity: 1;
}
.search-box {
  width: 326px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 0 10px 0 12px;
  color: var(--muted);
}
.search-box .icon {
  width: 16px;
  height: 16px;
}
.search-box:focus-within {
  border-color: var(--accent-strong);
}
.search-box input {
  width: 100%;
  min-width: 0;
  outline: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 0;
  font-size: 11px;
}
.search-box input::placeholder {
  color: var(--muted);
}
.search-box kbd {
  background: var(--page);
  font-family: inherit;
  border: 1px solid var(--line);
  font-size: 9px;
  white-space: nowrap;
  border-radius: 4px;
  padding: 3px 5px;
}
.collection-layout {
  display: grid;
  grid-template-columns: 179px minmax(0, 1fr);
  gap: 30px;
  padding-top: 27px;
}
.sidebar {
  padding-right: 2px;
}
.sidebar-label {
  color: var(--muted);
  font-size: 10px;
  padding-left: 12px;
  margin-bottom: 13px;
  letter-spacing: 0.5px;
}
.category-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.category-button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 9px;
  min-height: 39px;
  padding: 10px 11px;
  border-radius: 6px;
  text-align: left;
  font-size: 11px;
  color: var(--secondary);
  transition: background 0.15s;
}
.category-button .icon {
  width: 15px;
  height: 15px;
}
.category-button > span:nth-child(2) {
  flex: 1;
}
.category-button:hover {
  background: var(--accent-soft);
}
.category-button.active {
  background: #e9efdf;
  color: #465c34;
  font-weight: 600;
}
.category-count {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  opacity: 0.7;
}
.sidebar-line {
  height: 1px;
  background: var(--line);
  margin: 17px 10px 11px;
}
.saved-filter.active {
  background: var(--accent-soft);
}
.sidebar-tip {
  position: relative;
  margin: 30px 0 0 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 14px;
  background: linear-gradient(145deg, var(--surface), var(--accent-soft));
}
.tip-symbol .icon {
  width: 21px;
  height: 21px;
  color: var(--accent-strong);
  margin-bottom: 12px;
}
.sidebar-tip h3 {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 7px;
}
.sidebar-tip p {
  font-size: 10px;
  color: var(--secondary);
  line-height: 1.9;
}
.sidebar-tip button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 12px 0 0;
  color: var(--ink);
}
.sidebar-tip button .icon {
  width: 13px;
  height: 13px;
}
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 28px;
  margin-bottom: 17px;
  font-size: 11px;
}
.results-bar > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.results-total {
  font-size: 10px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
#clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent-strong);
  font-size: 10px;
  padding: 0;
}
#clear-filters .icon {
  width: 11px;
  height: 11px;
}
.sort-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  flex-shrink: 0;
}
.sort-control > .icon {
  width: 12px;
  height: 12px;
}
.sort-control select {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 10px;
  color: var(--secondary);
  outline: none;
  padding: 4px 12px 4px 0;
  cursor: pointer;
}
.sort-control > .icon:last-child {
  position: absolute;
  right: 0;
  width: 9px;
  pointer-events: none;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.resource-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #bfcdb5;
}
.card-body {
  padding: 19px 18px 17px;
  flex: 1;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.resource-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
  color: var(--icon-color);
}
.resource-icon > .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.5;
}
.resource-icon .letter-icon {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -1px;
  line-height: 1;
}
.card-top-right {
  display: flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  margin-right: -6px;
}
.type-label {
  font-size: 8px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.type-label.module {
  background: var(--accent-soft);
  border-color: transparent;
  color: #71895a;
}
.favorite-button {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #afb8ae;
  border-radius: 5px;
}
.favorite-button .icon {
  width: 15px;
  height: 15px;
  stroke-width: 1.4;
}
.favorite-button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.favorite-button.saved {
  color: var(--accent-strong);
}
.favorite-button.saved .icon {
  fill: var(--accent);
  stroke: var(--accent-strong);
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.2px;
  line-height: 1.5;
}
.card-title-button {
  display: block;
  text-align: left;
  padding: 0;
}
.card-title-button:hover {
  color: var(--accent-strong);
}
.featured-label {
  font-size: 7px;
  font-weight: 500;
  background: #f0f5e7;
  color: #829c55;
  padding: 3px 5px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.card-description {
  color: var(--secondary);
  font-size: 10px;
  line-height: 1.9;
  margin-top: 8px;
  min-height: 38px;
}
.card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.card-tag {
  font-size: 8px;
  padding: 3px 6px;
  border-radius: 3px;
  color: var(--secondary);
  background: var(--page);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.card-footer {
  padding: 11px 17px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  background: color-mix(in srgb, var(--page) 40%, var(--surface));
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: var(--muted);
  white-space: nowrap;
}
.card-meta .icon {
  width: 10px;
  height: 10px;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.preview-button {
  font-size: 9px;
  color: var(--secondary);
  padding: 5px 0;
  white-space: nowrap;
}
.preview-button:hover {
  color: var(--ink);
}
.copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 9px;
  background: var(--accent-soft);
  color: #526a3b;
  border-radius: 4px;
  padding: 6px 8px;
  white-space: nowrap;
  transition: background 0.15s;
}
.copy-button:hover {
  background: var(--accent);
}
.copy-button .icon {
  width: 11px;
  height: 11px;
}
.collection-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.collection-end > span {
  width: 26px;
  height: 1px;
  background: var(--line);
}
.collection-end p {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.6px;
}
.empty-state {
  text-align: center;
  padding: 70px 20px 80px;
}
.empty-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 14px;
  margin: 0 auto 20px;
}
.empty-icon .icon {
  width: 23px;
  height: 23px;
}
.empty-state h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 23px;
}
.empty-state .button {
  font-size: 11px;
  min-height: 39px;
}
.bottom-banner {
  margin-top: 64px;
  margin-bottom: 51px;
  padding: 27px 31px;
  background: #edf2e6;
  border: 1px solid #e0e7d7;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.banner-symbol {
  height: 47px;
  width: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfdbc2;
  background: #e4ecd8;
  color: #728d54;
  border-radius: 10px;
  transform: rotate(-6deg);
}
.banner-symbol .icon {
  width: 24px;
  height: 24px;
}
.bottom-banner h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.bottom-banner p {
  font-size: 11px;
  color: var(--secondary);
  margin-top: 7px;
}
.bottom-banner > .button {
  margin-left: auto;
  font-size: 11px;
  min-height: 39px;
  padding: 11px 16px;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding: 25px 0 30px;
}
.footer-brand {
  font-size: 17px;
  letter-spacing: -0.8px;
  gap: 8px;
}
.footer-brand .brand-mark {
  width: 20px;
  height: 22px;
  gap: 2px;
}
.footer-brand .brand-mark i {
  width: 4px;
}
.footer-brand .brand-mark i:nth-child(1) {
  height: 11px;
}
.footer-brand .brand-mark i:nth-child(2) {
  height: 21px;
}
.footer-brand .brand-mark i:nth-child(3) {
  height: 15px;
}
.site-footer p {
  font-size: 9px;
  color: var(--muted);
}
.site-footer > a:last-child {
  font-size: 9px;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.site-footer > a:last-child .icon {
  width: 11px;
  height: 11px;
}
.resource-dialog,
.guide-dialog {
  width: min(620px, calc(100% - 32px));
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 30px 100px #10221930;
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
.resource-dialog::backdrop,
.guide-dialog::backdrop {
  background: #14241d66;
  backdrop-filter: blur(5px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dialog-top > .type-label {
  font-size: 10px;
}
.dialog-close {
  margin: -8px -9px -8px 0;
  color: var(--secondary);
}
.dialog-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}
.dialog-heading .resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}
.dialog-heading h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.dialog-heading p {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.8;
  margin-top: 7px;
}
.resource-dialog > .card-tags {
  margin: 17px 0 23px;
}
.resource-dialog .card-tag {
  font-size: 10px;
}
.detail-tabs {
  display: flex;
  gap: 21px;
  border-bottom: 1px solid var(--line);
}
.detail-tabs button {
  font-size: 12px;
  padding: 10px 0 13px;
  color: var(--secondary);
  position: relative;
}
.detail-tabs button.active {
  color: var(--ink);
  font-weight: 600;
}
.detail-tabs button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 2px;
  left: 0;
  right: 0;
  background: var(--accent-strong);
}
#detail-code-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 17px;
  overflow: hidden;
}
.detail-code-header {
  background: var(--page);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 13px;
  font-size: 10px;
  color: var(--secondary);
  font-family: Consolas, monospace;
}
.detail-code-header button {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  padding: 2px 0;
}
.detail-code-header .icon {
  width: 12px;
  height: 12px;
}
.detail-code {
  margin: 0;
  padding: 17px 15px;
  background: var(--dark);
  color: #d5e3ca;
  overflow: auto;
  max-height: 310px;
  font:
    11px/1.9 Consolas,
    "Courier New",
    monospace;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-instructions {
  font-size: 12px;
  line-height: 1.95;
  padding: 20px 3px 8px;
  color: var(--secondary);
}
.detail-instructions h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.detail-instructions p + p {
  margin-top: 10px;
}
.detail-instructions code {
  font-family: Consolas, monospace;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 2px 4px;
  border-radius: 3px;
}
.detail-instructions a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detail-instructions .source-line {
  margin-top: 18px;
  font-size: 11px;
}
.dialog-notice {
  font-size: 10px;
  line-height: 1.6;
  color: var(--secondary);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 16px;
}
.dialog-notice .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  flex-shrink: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 22px;
}
.button-outline {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}
.button-outline:hover {
  background: var(--page);
}
.dialog-actions .button {
  font-size: 11px;
  min-height: 40px;
  gap: 8px;
}
.dialog-actions .icon {
  width: 14px;
  height: 14px;
}
.guide-dialog {
  width: min(540px, calc(100% - 32px));
  padding: 30px;
}
.guide-dialog .section-eyebrow {
  margin: 0;
}
.guide-dialog > h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.guide-intro {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.9;
}
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 30px 0;
}
.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.step-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-icon .icon {
  width: 18px;
  height: 18px;
}
.guide-step h3 {
  font-size: 14px;
  margin: 0 0 7px;
  font-weight: 600;
}
.guide-step p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--secondary);
}
.guide-docs {
  font-size: 11px;
  min-height: 40px;
  gap: 10px;
}
.guide-docs .icon {
  width: 14px;
  height: 14px;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 15px);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: 9px;
  box-shadow: 0 6px 30px #14271e29;
  font-size: 12px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: calc(100% - 32px);
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast .icon {
  color: var(--accent);
  width: 17px;
  height: 17px;
}
[data-theme="dark"] {
  --page: #17201b;
  --surface: #202b24;
  --ink: #e0e9de;
  --secondary: #a0ae9d;
  --muted: #82917f;
  --line: #334031;
  --accent: #bbd992;
  --accent-strong: #a9c581;
  --accent-soft: #2d3b26;
  --dark: #c7e49b;
  --dark-ink: #223120;
  --hero-art: #273324;
  --shadow: 0 18px 45px #0002;
  color-scheme: dark;
}
[data-theme="dark"] .resource-tabs {
  background: #242f22;
}
[data-theme="dark"] .category-button.active {
  background: #34442b;
  color: #c1daa5;
}
[data-theme="dark"] .highlight {
  color: #dbe8c8;
}
[data-theme="dark"] .highlight:after {
  background: #536a38;
}
[data-theme="dark"] .copy-button {
  color: #bbd4a1;
}
[data-theme="dark"] .bottom-banner {
  background: #283724;
  border-color: #3a4a31;
}
[data-theme="dark"] .banner-symbol {
  background: #34492b;
  border-color: #4d633f;
  color: #b2ca92;
}
[data-theme="dark"] .button-dark:hover {
  background: #b6d48a;
}
[data-theme="dark"] .resource-icon {
  background: color-mix(in srgb, var(--icon-color) 18%, #202b24);
  color: color-mix(in srgb, var(--icon-color) 50%, #e0e9de);
}
[data-theme="dark"] .type-label.module {
  color: #bbd4a1;
}
[data-theme="dark"] .featured-label {
  background: #34442b;
  color: #bbd4a1;
}
[data-theme="dark"] .detail-code {
  background: #17231a;
  color: #d5e3ca;
}
@media (min-width: 1450px) {
  .hero {
    padding-top: 71px;
    padding-bottom: 79px;
    gap: 76px;
  }
  h1 {
    font-size: 64px;
  }
  .hero-art {
    height: 375px;
  }
  .code-window {
    top: 70px;
    left: 47px;
    right: 42px;
  }
  .hero-code {
    font-size: 11px;
    min-height: 156px;
  }
  .card-body {
    padding: 21px;
  }
  .card-footer {
    padding-inline: 20px;
  }
  .card-description {
    font-size: 11px;
  }
  .card-title {
    font-size: 15px;
  }
  .resource-grid {
    gap: 19px;
  }
}
@media (max-width: 1150px) {
  .page-width {
    width: calc(100% - 64px);
  }
  .header-inner {
    width: calc(100% - 54px);
  }
  .main-nav {
    gap: 23px;
    margin-left: 0;
  }
  .hero {
    gap: 25px;
    padding-top: 50px;
    padding-bottom: 58px;
  }
  h1 {
    font-size: 49px;
  }
  .hero-art {
    height: 330px;
  }
  .hero-code {
    font-size: 8.5px;
    min-height: 136px;
  }
  .code-window {
    left: 27px;
    right: 20px;
  }
  .orbit-one {
    left: 35px;
  }
  .orbit-two {
    left: 70px;
  }
  .chip-top {
    left: 17px;
  }
  .chip-bottom {
    right: -7px;
  }
  .hero-description {
    font-size: 13px;
  }
  .collection-layout {
    grid-template-columns: 154px minmax(0, 1fr);
    gap: 24px;
  }
  .resource-grid {
    gap: 12px;
  }
  .card-body {
    padding: 16px 13px;
  }
  .card-footer {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .card-actions {
    margin-left: auto;
  }
  .card-description {
    font-size: 10px;
  }
  .card-title {
    font-size: 13px;
  }
  .featured-label {
    display: none;
  }
  .resource-icon {
    width: 36px;
    height: 36px;
  }
  .card-top {
    margin-bottom: 14px;
  }
  .type-label {
    font-size: 7px;
  }
  .sidebar-tip {
    padding: 14px 11px;
  }
  .brand {
    font-size: 23px;
  }
  .header-actions {
    gap: 13px;
  }
  .resource-tab {
    padding-inline: 12px;
  }
  .search-box {
    width: 290px;
  }
}
@media (max-width: 950px) {
  .main-nav {
    gap: 19px;
  }
  .nav-item {
    font-size: 12px;
  }
  .brand {
    font-size: 21px;
    gap: 7px;
  }
  .header-actions {
    gap: 10px;
  }
  .guide-link {
    font-size: 11px;
  }
  .header-divider {
    display: none;
  }
  .site-header {
    height: 78px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 23px;
  }
  .hero-art {
    height: 300px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .hero-description {
    font-size: 11px;
  }
  .hero-actions {
    gap: 7px;
  }
  .hero-actions .button {
    font-size: 11px;
    min-height: 39px;
    padding: 11px 14px;
  }
  .hero-actions .button-text {
    padding-inline: 4px;
  }
  .hero-note {
    font-size: 8px;
    gap: 5px;
  }
  .highlight:after {
    height: 16px;
  }
  .highlight-dot {
    font-size: 60px;
  }
  .code-window {
    top: 61px;
    left: 17px;
    right: 16px;
  }
  .hero-code {
    font-size: 7px;
    padding: 13px 12px;
    min-height: 116px;
  }
  .hero-code-line {
    gap: 8px;
  }
  .window-bar {
    padding: 10px 12px;
  }
  .code-tabs {
    padding-inline: 11px;
  }
  .chip-top {
    font-size: 8px;
    padding: 9px 10px;
    left: 10px;
  }
  .chip-bottom {
    padding: 10px;
    right: -3px;
    bottom: 0;
  }
  .chip-bottom strong {
    font-size: 9px;
  }
  .chip-bottom div > span {
    font-size: 7px;
  }
  .tiny-wave {
    margin-left: 8px;
  }
  .art-caption {
    bottom: 12px;
    font-size: 5px;
    left: 13px;
  }
  .connection-chip {
    gap: 7px;
  }
  .chip-icon {
    width: 27px;
    height: 27px;
  }
  .chip-icon .icon {
    width: 15px;
    height: 15px;
  }
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .collection-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 25px;
  }
  .card-body {
    padding: 19px 18px;
  }
  .card-footer {
    padding-inline: 17px;
  }
  .card-title {
    font-size: 14px;
  }
  .card-description {
    font-size: 11px;
  }
  .featured-label {
    display: inline;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .search-box {
    width: 270px;
  }
  .resource-tab {
    font-size: 11px;
    padding-inline: 11px;
  }
  .resource-tab > span {
    font-size: 9px;
  }
  .section-heading > p {
    font-size: 10px;
  }
  .bottom-banner {
    margin-top: 45px;
  }
  .site-footer p {
    font-size: 8px;
  }
}
@media (max-width: 720px) {
  .page-width {
    width: calc(100% - 40px);
  }
  .header-inner {
    width: calc(100% - 40px);
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
  }
  .site-header {
    height: 112px;
  }
  .brand {
    font-size: 23px;
  }
  .header-actions {
    margin-left: auto;
  }
  .main-nav {
    order: 3;
    width: 100%;
    height: 40px;
    justify-content: flex-start;
    gap: 29px;
    margin-top: 7px;
  }
  .nav-item {
    font-size: 12px;
  }
  .nav-item.active:after {
    bottom: 0;
  }
  .guide-link {
    font-size: 11px;
  }
  .hero {
    padding-top: 38px;
    padding-bottom: 50px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy {
    padding-left: 4px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 19px;
  }
  h1 {
    font-size: 52px;
    letter-spacing: -2.5px;
    line-height: 1.3;
  }
  .highlight-dot {
    font-size: 65px;
  }
  .hero-description {
    font-size: 13px;
    margin-top: 20px;
  }
  .hero-actions {
    gap: 17px;
    margin-top: 23px;
  }
  .hero-actions .button {
    min-height: 43px;
    font-size: 12px;
    padding-inline: 17px;
  }
  .hero-actions .button-text {
    padding-inline: 3px;
  }
  .hero-note {
    font-size: 9px;
    gap: 7px;
    margin-top: 21px;
  }
  .hero-art {
    margin: 6px 5px 0;
    height: 320px;
    max-width: 510px;
    width: calc(100% - 10px);
    justify-self: center;
  }
  .code-window {
    left: 32px;
    right: 31px;
    top: 62px;
  }
  .hero-code {
    font-size: 9px;
    min-height: 130px;
    padding: 16px;
  }
  .hero-code-line {
    gap: 12px;
  }
  .window-bar {
    font-size: 9px;
  }
  .code-tabs {
    padding-inline: 15px;
  }
  .chip-top {
    left: 18px;
    font-size: 9px;
    top: -13px;
    padding: 11px;
  }
  .chip-bottom {
    right: 2px;
    bottom: -12px;
    padding: 12px;
  }
  .chip-bottom strong {
    font-size: 10px;
  }
  .chip-bottom div > span {
    font-size: 8px;
  }
  .orbit-one {
    left: calc(50% - 170px);
  }
  .orbit-two {
    left: calc(50% - 135px);
  }
  .art-caption {
    font-size: 6px;
    left: 20px;
    bottom: 14px;
  }
  .section-heading {
    padding-bottom: 21px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .section-heading > p {
    display: none;
  }
  .section-eyebrow {
    font-size: 8px;
  }
  .resource-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding-bottom: 20px;
  }
  .resource-tabs {
    align-self: flex-start;
  }
  .resource-tab {
    font-size: 12px;
    padding: 10px 15px;
  }
  .search-box {
    width: 100%;
    min-height: 43px;
  }
  .search-box input {
    font-size: 12px;
  }
  .collection-layout {
    display: flex;
    flex-direction: column;
    gap: 19px;
    padding-top: 18px;
  }
  .sidebar {
    padding: 0;
  }
  .sidebar-label,
  .sidebar-line,
  .sidebar-tip,
  .saved-filter {
    display: none;
  }
  .category-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
  }
  .category-button {
    width: auto;
    padding: 8px 10px;
    min-height: 34px;
    font-size: 10px;
    gap: 6px;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .category-button .icon {
    width: 12px;
    height: 12px;
  }
  .category-button.active {
    border-color: #d7e3c5;
  }
  .category-count {
    font-size: 9px;
  }
  .results-bar {
    margin-bottom: 15px;
    font-size: 11px;
  }
  .resource-grid {
    gap: 13px;
  }
  .card-body {
    padding: 17px 14px 16px;
  }
  .card-footer {
    padding: 10px 12px;
    min-height: 45px;
  }
  .card-actions {
    gap: 10px;
  }
  .card-top {
    margin-bottom: 15px;
  }
  .card-title {
    font-size: 13px;
  }
  .card-description {
    font-size: 10px;
    min-height: 38px;
  }
  .featured-label {
    display: none;
  }
  .card-tags {
    gap: 4px;
  }
  .card-tag {
    font-size: 8px;
    padding-inline: 5px;
  }
  .card-meta {
    font-size: 8px;
  }
  .card-actions {
    gap: 8px;
  }
  .preview-button {
    font-size: 9px;
  }
  .copy-button {
    font-size: 9px;
    padding: 6px 7px;
  }
  .bottom-banner {
    gap: 14px;
    padding: 22px 20px;
    margin-top: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
  }
  .banner-symbol {
    width: 39px;
    height: 39px;
  }
  .banner-symbol .icon {
    width: 21px;
    height: 21px;
  }
  .bottom-banner h2 {
    font-size: 16px;
  }
  .bottom-banner p {
    font-size: 10px;
  }
  .bottom-banner > .button {
    margin-left: 53px;
    margin-top: 0;
    font-size: 11px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 22px;
  }
  .footer-brand {
    font-size: 18px;
  }
  .site-footer p {
    order: 3;
    width: 100%;
    font-size: 9px;
  }
  .site-footer > a:last-child {
    margin-left: auto;
    font-size: 9px;
  }
  .toast {
    font-size: 11px;
    padding: 12px 16px;
  }
  .hero-art .window-footer {
    padding: 9px 15px;
  }
  .hero-art .window-footer > span {
    font-size: 7px;
  }
}
@media (max-width: 400px) {
  .page-width,
  .header-inner {
    width: calc(100% - 32px);
  }
  .main-nav {
    gap: 23px;
  }
  .guide-link {
    font-size: 10px;
  }
  .header-actions {
    gap: 6px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-mark {
    width: 26px;
  }
  .hero {
    padding-top: 32px;
  }
  h1 {
    font-size: 47px;
  }
  .hero-art {
    height: 290px;
  }
  .code-window {
    left: 20px;
    right: 20px;
    top: 58px;
  }
  .hero-code {
    font-size: 7.8px;
    min-height: 118px;
    padding: 12px;
  }
  .hero-code-line {
    gap: 9px;
  }
  .chip-bottom {
    right: -2px;
  }
  .art-caption {
    font-size: 5px;
    left: 12px;
  }
  .resource-tabs {
    gap: 2px;
  }
  .resource-tab {
    padding-inline: 11px;
    font-size: 11px;
  }
  .category-button {
    font-size: 9px;
    padding: 7px 8px;
  }
  .category-button .icon {
    display: none;
  }
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .card-body {
    padding: 20px;
  }
  .card-footer {
    padding-inline: 19px;
    min-height: 47px;
  }
  .card-description {
    min-height: 0;
    font-size: 11px;
  }
  .card-title {
    font-size: 15px;
  }
  .resource-icon {
    width: 41px;
    height: 41px;
  }
  .featured-label {
    display: inline;
  }
  .card-tag {
    font-size: 9px;
  }
  .preview-button,
  .copy-button {
    font-size: 10px;
  }
  .card-meta {
    font-size: 9px;
  }
  .card-actions {
    gap: 15px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .resource-dialog,
  .guide-dialog {
    padding: 22px;
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  .dialog-heading p {
    font-size: 11px;
  }
  .dialog-notice {
    font-size: 9px;
  }
  .dialog-actions .button {
    padding-inline: 12px;
  }
  .guide-dialog > h2 {
    font-size: 23px;
  }
  .bottom-banner {
    padding: 20px 16px;
    gap: 11px;
  }
  .bottom-banner h2 {
    font-size: 15px;
  }
  .bottom-banner p {
    font-size: 9px;
  }
  .bottom-banner > .button {
    margin-left: 50px;
  }
  .header-actions .icon-button {
    width: 28px;
  }
  .footer-brand {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
.orbit {
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  left: 50%;
  transform: translateX(-50%);
}
.card-title {
  font-size: 16px;
}
.card-description {
  font-size: 12px;
  line-height: 1.85;
  min-height: 44px;
}
.card-tag {
  font-size: 10px;
}
.card-meta {
  font-size: 10px;
}
.preview-button,
.copy-button {
  font-size: 11px;
}
.type-label {
  font-size: 9px;
}
.category-button {
  font-size: 12px;
}
.category-count,
.sidebar-label {
  font-size: 11px;
}
.sidebar-tip h3 {
  font-size: 12px;
}
.sidebar-tip p,
.sidebar-tip button {
  font-size: 11px;
}
.results-bar {
  font-size: 12px;
}
.results-total,
.sort-control select {
  font-size: 11px;
}
.resource-tab {
  font-size: 13px;
}
.search-box input {
  font-size: 12px;
}
.hero-note {
  font-size: 11px;
}
.site-footer p,
.site-footer > a:last-child {
  font-size: 11px;
}
.collection-end p {
  font-size: 11px;
}
@media (min-width: 721px) and (max-width: 1150px) {
  .card-title {
    font-size: 14px;
  }
  .card-description {
    font-size: 11px;
  }
  .card-tag {
    font-size: 9px;
  }
  .card-meta {
    font-size: 9px;
  }
  .preview-button,
  .copy-button {
    font-size: 10px;
  }
  .category-button {
    font-size: 11px;
  }
  .hero-note {
    font-size: 9px;
  }
  .resource-tab {
    font-size: 12px;
  }
}
@media (max-width: 720px) {
  .card-title {
    font-size: 14px;
  }
  .card-description {
    font-size: 12px;
  }
  .card-tag,
  .card-meta {
    font-size: 10px;
  }
  .preview-button,
  .copy-button {
    font-size: 11px;
  }
  .category-button {
    font-size: 11px;
  }
  .category-count {
    font-size: 10px;
  }
  .resource-tab {
    font-size: 12px;
  }
  .hero-note {
    font-size: 10px;
  }
  .search-box input {
    font-size: 16px;
  }
  .search-box kbd {
    display: none;
  }
  .site-footer p,
  .site-footer > a:last-child {
    font-size: 10px;
  }
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .card-body {
    padding: 20px;
  }
  .card-footer {
    padding: 10px 17px;
  }
  .featured-label {
    display: inline;
    font-size: 8px;
  }
}
@media (pointer: coarse) {
  .copy-button,
  .preview-button,
  .category-button {
    min-height: 40px;
  }
  .favorite-button {
    width: 40px;
    height: 40px;
    margin: -5px -6px 0 0;
  }
  .icon-button {
    min-width: 40px;
    min-height: 40px;
  }
  .guide-link {
    min-height: 40px;
  }
}

.upstream-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 17px;
  margin-bottom: 21px;
  background: var(--accent-soft);
}
.upstream-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--accent-strong);
  flex-shrink: 0;
}
.upstream-description {
  flex: 1;
  min-width: 0;
}
.upstream-description > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.upstream-description > a .icon {
  width: 12px;
  height: 12px;
}
.upstream-description > p {
  margin-top: 5px;
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.7;
}
#upstream-status[data-mode="live"] {
  color: var(--accent-strong);
}
#refresh-upstream {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  padding: 8px 0 8px 10px;
  font-size: 11px;
  white-space: nowrap;
}
#refresh-upstream .icon {
  width: 13px;
  height: 13px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.card-title {
  overflow-wrap: anywhere;
}
.card-title .featured-label {
  flex-shrink: 0;
}
.card-provenance {
  margin-top: 13px;
  font-size: 10px;
  color: var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 28px;
}
.pagination button {
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 6px;
  background: var(--surface);
  font-size: 11px;
}
.pagination button:hover:not(:disabled) {
  background: var(--accent-soft);
}
.pagination p {
  color: var(--secondary);
  font-size: 11px;
}
.site-footer p {
  line-height: 1.9;
}
.site-footer p a:hover {
  color: var(--accent-strong);
}
.dialog-source {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin: -9px 0 19px;
  font-size: 10px;
  color: var(--secondary);
}
.dialog-source a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 15px;
  padding-top: 18px;
}
.policy-field label {
  font-size: 12px;
  font-weight: 500;
}
.policy-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  background: var(--page);
  font-size: 12px;
}
.policy-field input::placeholder {
  color: var(--muted);
}
.policy-field p {
  grid-column: 1 / -1;
  color: var(--secondary);
  font-size: 10px;
  line-height: 1.8;
}
#detail-raw-panel {
  border: 1px solid var(--line);
  margin-top: 17px;
  border-radius: 8px;
  overflow: hidden;
}
#detail-code-panel .detail-code {
  white-space: pre;
  overflow-wrap: normal;
}
#detail-raw-panel .detail-code-header {
  gap: 12px;
  line-height: 1.7;
}
#raw-retry {
  flex-shrink: 0;
  color: var(--accent-strong);
}
.resource-grid[aria-busy="true"] {
  opacity: 0.6;
}
@media (max-width: 720px) {
  .upstream-bar {
    padding: 12px;
    gap: 8px;
    align-items: flex-start;
  }
  .upstream-icon {
    width: 20px;
    height: 25px;
  }
  .upstream-icon .icon {
    width: 17px;
    height: 17px;
  }
  .upstream-description > a {
    font-size: 11px;
    line-height: 1.7;
    display: inline;
  }
  .upstream-description > a .icon {
    display: inline;
    vertical-align: middle;
  }
  .upstream-description > p {
    font-size: 10px;
  }
  #refresh-upstream {
    font-size: 10px;
    padding: 4px 0 4px 4px;
  }
  #refresh-upstream .icon {
    display: none;
  }
  .resource-tab {
    padding-inline: 10px;
    gap: 5px;
    font-size: 11px;
  }
  .policy-field {
    grid-template-columns: 1fr;
  }
  .policy-field input {
    font-size: 16px;
  }
  .card-provenance {
    font-size: 11px;
  }
}
