:root {
  --settings-blue: #007aff;
  --settings-green: #34c759;
  --settings-orange: #ff9500;
  --settings-pink: #ff2d55;
  --settings-purple: #af52de;
  --settings-teal: #30b0c7;
  --glass: rgba(249, 249, 251, 0.78);
  --grouped: #e9e9ee;
  --separator: rgba(60, 60, 67, 0.12);
  --spring: cubic-bezier(0.22, 1.3, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --page: #f2f2f7;
  --surface: #fff;
  --ink: #1c1c1e;
  --secondary: #636366;
  --muted: #8e8e93;
  --line: #e5e5ea;
  --accent: #d9eaff;
  --accent-strong: #007aff;
  --accent-soft: #eaf3ff;
  --dark: #007aff;
  --dark-ink: #ffffff;
  --hero-art: #e8f2ff;
  --shadow: 0 18px 45px rgba(28, 28, 30, 0.07);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", 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: inherit;
  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: #007aff;
}
.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: inherit;
  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: inherit;
  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: inherit;
  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: #0064d1;
}
.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: #aeaeb2;
}
.hero-art {
  height: 350px;
  position: relative;
  isolation: isolate;
  margin-left: 4px;
  background: var(--hero-art);
  border-radius: 18px;
  background-image: radial-gradient(#8eb6e544 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 #007aff18;
  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: #76b5ff;
  border: 3px solid #f2f7ff;
  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: #182333;
  color: #c5d4e8;
  border-radius: 10px;
  box-shadow:
    0 21px 45px #132b4c26,
    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: #90a4be;
  font-family: inherit;
}
.window-bar > .icon {
  width: 13px;
  height: 13px;
}
.window-dots {
  display: flex;
  gap: 4px;
}
.window-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7c8da5;
}
.window-dots i:first-child {
  background: #0a84ff;
}
.code-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 0;
}
.code-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #90a4be;
  font-size: 9px;
  padding: 6px 8px;
  border-radius: 4px;
}
.code-tab .icon {
  width: 11px;
  height: 11px;
}
.code-tab.active {
  background: #d9eaff15;
  color: #80bdff;
}
.code-filetype {
  margin-left: auto;
  color: #8798af;
  font-size: 7px;
  letter-spacing: 1.3px;
}
.hero-code {
  padding: 17px 18px 18px;
  min-height: 146px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 2;
}
.hero-code-line {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}
.line-number {
  color: #657b98;
  min-width: 8px;
  user-select: none;
}
.code-comment {
  color: #93a8c1;
}
.code-section {
  color: #80bdff;
}
.code-domain {
  color: #e1ebf7;
}
.code-policy {
  color: #8cc6ff;
}
.window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ffffff0c;
  padding: 10px 18px;
  font-size: 8px;
  color: #8da4be;
}
.window-footer > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.window-footer i {
  display: block;
  width: 4px;
  height: 4px;
  background: #80bdff;
  border-radius: 50%;
}
.window-footer .icon {
  color: #80bdff;
  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 #132b4c09;
  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: #7b8fa9;
}
.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: inherit;
  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: #e9e9ee;
  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 #1c1c1e0a;
  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: #eaf3ff;
  color: #007aff;
  font-weight: 600;
}
.category-count {
  font-family: inherit;
  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: #b7d8ff;
}
.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: inherit;
  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: #007aff;
}
.favorite-button {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aeaeb2;
  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: #eaf3ff;
  color: #007aff;
  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: #007aff;
  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: #eaf3ff;
  border: 1px solid #d5e8ff;
  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 #c6dfff;
  background: #dcecff;
  color: #007aff;
  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 #10182830;
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
.resource-dialog::backdrop,
.guide-dialog::backdrop {
  background: #10182866;
  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: "SFMono-Regular", 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: #dce9fa;
  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: "SFMono-Regular", 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 #10182829;
  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: #000000;
  --surface: #1c1c1e;
  --ink: #f2f2f7;
  --secondary: #aeaeb2;
  --muted: #8e8e93;
  --line: #38383a;
  --accent: #173f69;
  --accent-strong: #0a84ff;
  --accent-soft: #122b48;
  --dark: #0a84ff;
  --dark-ink: #ffffff;
  --hero-art: #11253c;
  --shadow: 0 18px 45px #0002;
  color-scheme: dark;
}
[data-theme="dark"] .resource-tabs {
  background: #2c2c2e;
}
[data-theme="dark"] .category-button.active {
  background: #122b48;
  color: #60aaff;
}
[data-theme="dark"] .highlight {
  color: #f2f2f7;
}
[data-theme="dark"] .highlight:after {
  background: #164d83;
}
[data-theme="dark"] .copy-button {
  color: #60aaff;
}
[data-theme="dark"] .bottom-banner {
  background: #12243a;
  border-color: #253d58;
}
[data-theme="dark"] .banner-symbol {
  background: #173b63;
  border-color: #275d94;
  color: #80bdff;
}
[data-theme="dark"] .button-dark:hover {
  background: #409cff;
}
[data-theme="dark"] .resource-icon {
  background: color-mix(in srgb, var(--icon-color) 18%, #1c1c1e);
  color: color-mix(in srgb, var(--icon-color) 50%, #f2f2f7);
}
[data-theme="dark"] .type-label.module {
  color: #60aaff;
}
[data-theme="dark"] .featured-label {
  background: #122b48;
  color: #60aaff;
}
[data-theme="dark"] .detail-code {
  background: #111a27;
  color: #dce9fa;
}
@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: #b7d8ff;
  }
  .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);
}
.module-source-bar {
  margin-top: -10px;
}
#refresh-modules {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  padding: 8px 0 8px 10px;
  font-size: 11px;
  white-space: nowrap;
}
#refresh-modules .icon {
  width: 13px;
  height: 13px;
}
#module-source-status[data-mode="live"] {
  color: var(--accent-strong);
}
.card-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-provenance {
  overflow-wrap: anywhere;
}
.site-footer {
  flex-wrap: wrap;
}
.dialog-actions {
  flex-wrap: wrap;
}
.dialog-heading > div:last-child {
  min-width: 0;
}
.dialog-heading h2,
.dialog-heading p {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  #refresh-modules {
    font-size: 10px;
    padding: 4px 0 4px 4px;
  }
  #refresh-modules .icon {
    display: none;
  }
  .dialog-actions .button {
    flex: 1 1 auto;
  }
}
.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;
  }
}
/* iOS surfaces, inset groups, and tactile controls. */
html {
  scroll-padding-top: 112px;
  -webkit-text-size-adjust: 100%;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.015em;
}
.source-group {
  margin-bottom: 26px;
  border: 1px solid var(--separator);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
}
::selection {
  background: #007aff26;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 84px;
  background: var(--glass);
  border-bottom: 1px solid var(--separator);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}
.header-inner {
  gap: 22px;
}
.brand {
  font-weight: 750;
  letter-spacing: -1.15px;
}
.brand-light {
  font-weight: 500;
}
.brand-mark {
  transform: none;
  gap: 3px;
}
.brand-mark i {
  background: var(--accent-strong);
  border-radius: 4px;
}
.main-nav {
  height: 44px;
  padding: 4px;
  margin-left: 0;
  gap: 3px;
  border: 1px solid var(--separator);
  border-radius: 14px;
  background: color-mix(in srgb, var(--grouped) 75%, transparent);
}
.nav-item {
  height: 34px;
  padding: 0 15px;
  font-size: 13px;
  border-radius: 10px;
  font-weight: 550;
}
.nav-item.active {
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07), 0 0 1px rgba(0, 0, 0, 0.06);
}
.nav-item.active::after {
  display: none;
}
.saved-nav span {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 6px;
}
.guide-link,
.button-text,
.site-footer > a:last-child {
  color: var(--accent-strong);
}
.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--grouped) 65%, transparent);
}
.hero {
  padding-top: 70px;
  padding-bottom: 80px;
}
.eyebrow,
.section-eyebrow {
  color: var(--accent-strong);
  font-weight: 650;
  letter-spacing: 1.7px;
}
h1 {
  font-weight: 750;
  letter-spacing: -2.7px;
  line-height: 1.3;
}
.highlight {
  color: var(--accent-strong);
}
.highlight::after {
  height: 11px;
  bottom: 4px;
  left: 0;
  right: 0;
  border-radius: 6px;
  background: #007aff15;
  transform: none;
}
.hero-description {
  font-size: 15px;
  line-height: 1.85;
}
.hero-note {
  letter-spacing: 0;
}
.button {
  min-height: 46px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
}
.button-dark {
  color: #fff;
  background: var(--accent-strong);
  box-shadow: 0 4px 12px #007aff20;
}
.button-dark:hover,
[data-theme="dark"] .button-dark:hover {
  background: color-mix(in srgb, var(--accent-strong) 90%, #000);
}
.button-outline {
  border-color: var(--separator);
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.hero-art {
  border-radius: 32px;
  border: 1px solid #007aff0d;
  background-color: var(--hero-art);
  background-image: radial-gradient(ellipse at 80% 5%, #ffffffaa, transparent 70%), radial-gradient(#007aff17 0.7px, transparent 0.7px);
  background-size: auto, 17px 17px;
}
.hero-art::after {
  border-radius: inherit;
}
.orbit {
  border-color: #007aff15;
}
.code-window {
  background: #182333;
  color: #dce9fa;
  border: 1px solid #ffffff20;
  border-radius: 20px;
  transform: rotate(-2deg);
  box-shadow: 0 24px 45px #142b4930, 0 1px 0 #ffffff26 inset;
}
.window-bar {
  color: #9aadc6;
}
.window-dots i {
  background: #61748d;
}
.window-dots i:first-child {
  background: #0a84ff;
}
.code-tab {
  border-radius: 7px;
  color: #98abc3;
}
.code-tab.active {
  color: #8dc6ff;
  background: #0a84ff26;
}
.code-section,
.window-footer .icon {
  color: #8dc6ff;
}
.connection-chip {
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-color: color-mix(in srgb, var(--surface) 60%, var(--line));
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 24px #132b4c0e;
}
.chip-icon {
  border-radius: 10px;
}
.section-heading h2 {
  font-weight: 700;
  letter-spacing: -0.9px;
}
.upstream-bar {
  min-height: 80px;
  margin-bottom: 0;
  padding: 17px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.module-source-bar {
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  border-top: 0;
  border-radius: 0;
}
.module-source-bar::before {
  content: "";
  position: absolute;
  height: 1px;
  top: 0;
  left: 72px;
  right: 20px;
  background: var(--separator);
}
.upstream-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
  background: var(--accent-strong);
}
.upstream-icon .icon {
  width: 20px;
  height: 20px;
}
.module-source-bar .upstream-icon {
  background: var(--settings-purple);
}
.upstream-description > a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
}
.upstream-description > p {
  margin-top: 3px;
  color: var(--secondary);
}
#module-source-status[data-mode="live"],
#upstream-status[data-mode="live"] {
  color: var(--secondary);
}
#refresh-upstream,
#refresh-modules {
  min-height: 36px;
  padding: 8px 11px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 11px;
  font-weight: 550;
}
.resource-toolbar {
  border-bottom: 0;
  padding-bottom: 12px;
}
.resource-tabs {
  background: var(--grouped);
  border: 1px solid var(--separator);
  border-radius: 13px;
  padding: 4px;
  gap: 3px;
}
.resource-tab {
  min-height: 37px;
  padding-inline: 15px;
  font-size: 12px;
  border-radius: 9px;
}
.resource-tab.active {
  box-shadow: 0 1px 5px #0000000c, 0 0 1px #00000012;
  font-weight: 650;
}
.search-box {
  min-height: 45px;
  background: var(--surface);
  border-color: transparent;
  border-radius: 13px;
  box-shadow: 0 1px 0 #00000003;
  padding-inline: 14px 10px;
}
.search-box:focus-within {
  border-color: #007aff55;
  box-shadow: 0 0 0 3px #007aff12;
}
.search-box input {
  font-size: 13px;
}
.search-box kbd {
  color: var(--muted);
  background: var(--page);
  border: 0;
  border-radius: 5px;
}
.collection-layout {
  grid-template-columns: 198px minmax(0, 1fr);
  gap: 26px;
  padding-top: 22px;
}
.sidebar-label {
  padding-left: 16px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15px;
}
.category-list {
  display: flex;
  gap: 0;
  padding: 6px 0;
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: 20px;
  overflow: hidden;
}
.category-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--settings-blue);
  color: #fff;
  box-shadow: inset 0 0 0 0.5px #0000000a;
}
.category-glyph .icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}
[data-category="system"] .category-glyph { background: #8e8e93; }
[data-category="development"] .category-glyph { background: #5856d6; }
[data-category="privacy"] .category-glyph { background: var(--settings-green); }
[data-category="communication"] .category-glyph { background: #30b94d; }
[data-category="media"] .category-glyph { background: var(--settings-pink); }
[data-category="ai"] .category-glyph { background: var(--settings-purple); }
[data-category="games"] .category-glyph { background: var(--settings-orange); }
[data-category="purify"] .category-glyph { background: var(--settings-teal); }
[data-category="unlock"] .category-glyph { background: var(--settings-orange); }
[data-category="translation"] .category-glyph { background: #5856d6; }
[data-category="other"] .category-glyph { background: #8e8e93; }
.category-button {
  position: relative;
  min-height: 48px;
  padding: 10px 14px;
  gap: 10px;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  color: var(--ink);
  background: transparent;
}
.category-list .category-button + .category-button::before {
  content: "";
  position: absolute;
  left: 50px;
  right: 14px;
  top: 0;
  height: 1px;
  background: var(--separator);
}
.category-button > .icon {
  width: 17px;
  height: 17px;
  color: var(--accent-strong);
}
.category-button::after {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border: solid var(--muted);
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
  opacity: 0.65;
}
.category-button.active,
[data-theme="dark"] .category-button.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 600;
}
.category-button.active::after {
  border-color: var(--accent-strong);
}
.category-count {
  font-size: 10px;
  font-weight: 400;
  color: var(--secondary);
  opacity: 1;
}
.sidebar-line {
  display: none;
}
.saved-filter {
  margin-top: 14px;
  border: 1px solid var(--separator);
  background: var(--surface);
  border-radius: 15px;
}
.sidebar-tip {
  padding: 18px 16px;
  margin: 18px 0 0;
  border: 1px solid var(--separator);
  border-radius: 20px;
  background: var(--surface);
}
.sidebar-tip button {
  color: var(--accent-strong);
}
.results-bar {
  min-height: 32px;
}
.resource-grid {
  gap: 18px;
}
.resource-card {
  border: 1px solid var(--separator);
  border-radius: 24px;
  box-shadow: 0 2px 9px rgba(28, 28, 30, 0.025), 0 10px 28px rgba(28, 28, 30, 0.02);
  transition: transform 460ms var(--spring), box-shadow 380ms var(--ease-out), border-color 300ms ease;
}
.resource-card:hover {
  transform: none;
  border-color: var(--separator);
  box-shadow: 0 2px 9px rgba(28, 28, 30, 0.025), 0 10px 28px rgba(28, 28, 30, 0.02);
}
.card-body {
  padding: 22px 21px 20px;
}
.resource-icon,
[data-theme="dark"] .resource-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.resource-icon > .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.75;
}
.card-top {
  margin-bottom: 18px;
}
.type-label {
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0.6px;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: var(--page);
  color: var(--secondary);
}
.type-label.module,
[data-theme="dark"] .type-label.module {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.favorite-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--muted);
}
.favorite-button .icon {
  width: 17px;
  height: 17px;
}
.card-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.35px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.featured-label,
[data-theme="dark"] .featured-label {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 5px;
  font-size: 8px;
  font-weight: 500;
}
.card-description {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0;
  color: var(--secondary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card-tag {
  border: 0;
  border-radius: 6px;
  padding: 4px 7px;
  background: var(--page);
  font-size: 10px;
}
.card-provenance {
  margin-top: 14px;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.card-footer {
  padding: 12px 17px;
  gap: 5px;
  border-color: var(--separator);
  background: transparent;
  flex-wrap: wrap;
  row-gap: 9px;
}
.card-meta {
  font-size: 9px;
}
.card-actions {
  gap: 10px;
}
.preview-button {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 500;
}
.copy-button,
[data-theme="dark"] .copy-button {
  min-height: 32px;
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 550;
}
.copy-button:hover {
  background: color-mix(in srgb, var(--accent-strong) 15%, var(--surface));
}
.pagination {
  border-color: var(--separator);
  margin-top: 30px;
}
.pagination button {
  min-height: 40px;
  padding-inline: 14px;
  border-color: var(--separator);
  border-radius: 12px;
  color: var(--accent-strong);
  font-weight: 500;
}
.empty-state {
  border: 1px solid var(--separator);
  border-radius: 24px;
  background: var(--surface);
}
.bottom-banner,
[data-theme="dark"] .bottom-banner {
  padding: 30px;
  border-radius: 26px;
  border: 1px solid var(--separator);
  background: var(--surface);
}
.banner-symbol,
[data-theme="dark"] .banner-symbol {
  background: var(--accent-soft);
  border: 0;
  color: var(--accent-strong);
  border-radius: 14px;
  transform: none;
}
.bottom-banner h2 {
  font-weight: 650;
}
.site-footer {
  border-color: var(--separator);
}
.resource-dialog,
.guide-dialog {
  border: 1px solid var(--separator);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 100px #00000026;
}
.resource-dialog::backdrop,
.guide-dialog::backdrop {
  background: #10182855;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.dialog-close {
  color: var(--secondary);
  background: var(--grouped);
}
.dialog-heading h2 {
  font-weight: 650;
}
.dialog-source {
  margin-bottom: 19px;
  padding: 12px 14px;
  border: 1px solid var(--separator);
  border-radius: 13px;
  background: var(--page);
  line-height: 1.6;
}
.detail-tabs {
  gap: 3px;
  border: 1px solid var(--separator);
  border-radius: 12px;
  padding: 4px;
  background: var(--grouped);
}
.detail-tabs button {
  flex: 1 1 0;
  min-height: 34px;
  padding: 8px 5px;
  border-radius: 8px;
  font-size: 11px;
}
.detail-tabs button.active {
  color: var(--accent-strong);
  background: var(--surface);
  box-shadow: 0 1px 4px #0000000d;
}
.detail-tabs button.active::after {
  display: none;
}
#detail-code-panel,
#detail-raw-panel {
  border-radius: 16px;
  border-color: var(--separator);
}
.detail-code,
[data-theme="dark"] .detail-code {
  background: #182333;
  color: #dce9fa;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.detail-code-header {
  background: var(--page);
  border-color: var(--separator);
}
.policy-field input {
  border-color: var(--separator);
  border-radius: 12px;
}
.dialog-notice {
  background: var(--page);
  padding: 12px;
  border-radius: 12px;
}
.guide-steps {
  gap: 0;
  margin-block: 24px;
  padding: 0 16px;
  border: 1px solid var(--separator);
  border-radius: 20px;
  background: var(--page);
}
.guide-step {
  padding: 18px 0;
}
.guide-step + .guide-step {
  border-top: 1px solid var(--separator);
}
.step-icon {
  border-radius: 12px;
}
.toast {
  z-index: 100;
  border: 1px solid #ffffff30;
  border-radius: 20px;
  background: #1c1c1ee8;
  color: #fff;
  box-shadow: 0 8px 32px #0000001a;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  white-space: normal;
  transition: opacity 250ms ease, transform 480ms var(--spring);
}
.toast .icon {
  color: #64b5ff;
}
button,
.button,
.resource-tab,
.nav-item,
.search-box,
.category-button {
  transition: transform 420ms var(--spring), background 220ms ease, color 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
button:active:not(:disabled),
a.button:active {
  transform: scale(0.96);
  transition-duration: 90ms;
}
.card-title-button:active,
.category-button:active {
  transform: scale(0.98);
}
.resource-card:active {
  transform: scale(0.992);
  transition-duration: 120ms;
}
[data-theme="dark"] {
  --glass: rgba(28, 28, 30, 0.78);
  --grouped: #2c2c2e;
  --separator: rgba(84, 84, 88, 0.48);
  --settings-blue: #0a84ff;
  --settings-green: #30d158;
  --settings-orange: #ff9f0a;
  --settings-pink: #ff375f;
  --settings-purple: #bf5af2;
  --settings-teal: #40c8e0;
}
[data-theme="dark"] .highlight {
  color: var(--accent-strong);
}
[data-theme="dark"] .highlight::after {
  background: #0a84ff20;
}
[data-theme="dark"] .resource-tabs {
  background: var(--grouped);
}
[data-theme="dark"] .hero-art {
  background-image: radial-gradient(ellipse at 80% 5%, #0a84ff16, transparent 70%), radial-gradient(#0a84ff22 0.7px, transparent 0.7px);
}
[data-theme="dark"] .connection-chip {
  border-color: #ffffff15;
}
[data-theme="dark"] .code-window {
  background: #101923;
}
@media (hover: hover) and (pointer: fine) {
  .resource-card:hover {
    transform: translateY(-6px);
    border-color: #007aff2b;
    box-shadow: 0 8px 18px rgba(28, 28, 30, 0.04), 0 20px 40px rgba(28, 28, 30, 0.07);
  }
  .resource-card:active {
    transform: translateY(-2px) scale(0.992);
  }
  .button:hover {
    transform: translateY(-2px);
  }
  .button:active {
    transform: scale(0.96);
  }
  .category-button:hover:not(.active),
  .nav-item:hover:not(.active) {
    background: color-mix(in srgb, var(--accent-soft) 65%, var(--surface));
    color: var(--accent-strong);
  }
}
@media (min-width: 721px) and (max-width: 1150px) {
  .header-inner {
    gap: 15px;
  }
  .main-nav {
    gap: 2px;
  }
  .nav-item {
    padding-inline: 11px;
    font-size: 12px;
  }
  .collection-layout {
    grid-template-columns: 177px minmax(0, 1fr);
    gap: 22px;
  }
  .category-button {
    padding-inline: 12px;
    gap: 8px;
    font-size: 11px;
  }
  .card-body {
    padding: 20px 18px;
  }
  .card-title {
    font-size: 15px;
  }
  .card-footer {
    padding-inline: 14px;
  }
  .resource-grid {
    gap: 15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 721px) and (max-width: 920px) {
  .header-inner {
    gap: 10px;
  }
  .brand {
    font-size: 23px;
  }
  .header-actions {
    gap: 8px;
  }
  .guide-link {
    font-size: 10px;
  }
  .main-nav {
    padding: 3px;
  }
  .nav-item {
    padding-inline: 10px;
    font-size: 11px;
  }
}
@media (max-width: 720px) {
  html {
    scroll-padding-top: 145px;
  }
  .site-header {
    height: 124px;
  }
  .header-inner {
    width: calc(100% - 36px);
    gap: 8px 14px;
    padding-block: 12px;
  }
  .brand {
    font-size: 23px;
  }
  .header-actions {
    gap: 10px;
  }
  .guide-link {
    min-height: 36px;
    font-size: 11px;
  }
  .main-nav {
    height: 42px;
    margin-top: 0;
    justify-content: stretch;
    gap: 3px;
    border-radius: 13px;
  }
  .nav-item {
    flex: 1 1 auto;
    justify-content: center;
    height: 32px;
    padding-inline: 8px;
    font-size: 12px;
    border-radius: 9px;
  }
  .page-width {
    width: calc(100% - 36px);
  }
  .hero {
    padding-top: 40px;
    padding-bottom: 50px;
    gap: 36px;
  }
  h1 {
    font-size: clamp(42px, 11.9vw, 56px);
    letter-spacing: -2.3px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .button {
    min-height: 46px;
    font-size: 12px;
  }
  .hero-art {
    width: calc(100% - 8px);
    margin-inline: 4px;
    border-radius: 26px;
  }
  .code-window {
    border-radius: 17px;
  }
  .chip-bottom {
    right: 0;
  }
  .section-heading h2 {
    font-size: 23px;
    letter-spacing: -0.7px;
  }
  .upstream-bar {
    min-height: 82px;
    padding: 16px 13px;
    gap: 10px;
    border-radius: 0;
    align-items: center;
  }
  .module-source-bar {
    margin-bottom: 0;
    border-radius: 0;
  }
  .source-group {
    margin-bottom: 22px;
    border-radius: 20px;
  }
  .module-source-bar::before {
    left: 59px;
    right: 13px;
  }
  .upstream-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .upstream-icon .icon {
    width: 18px;
    height: 18px;
  }
  .upstream-description > a {
    font-size: 11px;
    line-height: 1.5;
  }
  .upstream-description > p {
    font-size: 10px;
    line-height: 1.5;
    margin-top: 5px;
  }
  #refresh-upstream,
  #refresh-modules {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 10px;
  }
  .resource-toolbar {
    gap: 13px;
    padding-bottom: 6px;
  }
  .resource-tabs {
    width: 100%;
    align-self: stretch;
  }
  .resource-tab {
    flex: 1 1 0;
    justify-content: center;
    min-height: 37px;
    padding-inline: 7px;
    gap: 5px;
    font-size: 11px;
  }
  .resource-tab > span {
    font-size: 9px;
  }
  .search-box {
    min-height: 46px;
  }
  .search-box input {
    font-size: 16px;
  }
  .collection-layout {
    display: flex;
    gap: 21px;
    padding-top: 20px;
  }
  .sidebar-label {
    display: block;
    font-size: 11px;
    margin-bottom: 10px;
    padding-left: 14px;
  }
  .category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 4px 0;
    border-radius: 20px;
  }
  .category-button {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    gap: 8px;
    font-size: 11px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .category-button .icon {
    display: block;
    width: 16px;
    height: 16px;
  }
  .category-glyph {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
  .category-count {
    font-size: 10px;
  }
  .category-button::after {
    width: 4px;
    height: 4px;
    flex-basis: 4px;
  }
  .category-list .category-button + .category-button::before {
    left: 45px;
    right: 13px;
  }
  .category-list .category-button:nth-child(2)::before {
    display: none;
  }
  .category-list .category-button:nth-child(odd) {
    border-right: 1px solid var(--separator);
  }
  .category-list .category-button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }
  .category-list .category-button:last-child:nth-child(odd)::before {
    left: 45px;
    right: 13px;
  }
  .resource-grid {
    gap: 16px;
    grid-template-columns: 1fr;
  }
  .resource-card {
    border-radius: 24px;
  }
  .card-body {
    padding: 22px;
  }
  .card-title {
    font-size: 17px;
  }
  .card-description {
    min-height: 0;
    font-size: 13px;
    line-height: 1.85;
  }
  .card-footer {
    padding: 12px 18px;
  }
  .card-provenance {
    font-size: 11px;
  }
  .card-tag {
    font-size: 10px;
  }
  .copy-button,
  .preview-button {
    min-height: 44px;
    font-size: 11px;
  }
  .favorite-button {
    width: 44px;
    height: 44px;
  }
  .pagination button {
    min-height: 44px;
  }
  .bottom-banner {
    padding: 23px 21px;
    gap: 14px;
    border-radius: 24px;
  }
  .bottom-banner > .button {
    margin-left: 53px;
    min-height: 42px;
  }
  .resource-dialog,
  .guide-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 28px);
    padding: 23px;
    border-radius: 26px;
  }
  .dialog-heading {
    gap: 12px;
  }
  .dialog-heading h2 {
    font-size: 20px;
  }
  .dialog-actions {
    gap: 9px;
  }
  .dialog-actions .button {
    min-height: 44px;
    padding-inline: 12px;
  }
  .guide-steps {
    padding-inline: 14px;
  }
  .policy-field input {
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  .page-width,
  .header-inner {
    width: calc(100% - 28px);
  }
  .brand {
    font-size: 21px;
  }
  .header-actions {
    gap: 6px;
  }
  .guide-link {
    font-size: 10px;
  }
  .category-button {
    gap: 6px;
    padding-inline: 11px;
  }
  .category-button > .icon {
    width: 14px;
    height: 14px;
  }
  .upstream-description > a {
    font-size: 10px;
  }
  .upstream-description > p {
    font-size: 9px;
  }
  .card-body {
    padding: 20px;
  }
  .card-actions {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .resource-card:hover,
  .resource-card:active,
  .button:hover,
  .button:active,
  button:active:not(:disabled),
  a.button:active {
    transform: none !important;
  }
}
/* Brand assets keep their original color and a readable canvas in both themes. */
.resource-icon.has-brand-icon,
[data-theme="dark"] .resource-icon.has-brand-icon {
  background: #fff;
  color: var(--accent-strong);
  border: 1px solid rgba(60, 60, 67, 0.09);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.025);
}
.app-icon {
  display: block;
  width: 29px;
  height: 29px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}
.app-icon-fallback {
  display: none;
}
.app-icon[hidden] + .app-icon-fallback {
  display: block;
}
.dialog-heading .has-brand-icon .app-icon {
  width: 32px;
  height: 32px;
}
