*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg-base);
  position: relative;
  overflow-x: hidden;
}

.masthead,
main,
footer,
.modal-backdrop,
.cart-drawer-backdrop {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.masthead-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
  transition: opacity 0.15s ease;
}

.brand-link:hover {
  opacity: 0.85;
}

.brand-icon {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-primary);
}

.nav-links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 6px 0;
  position: relative;
  transition: color 0.15s ease;
}

.nav-item:hover {
  color: var(--text-primary);
  background: none;
}

.nav-item.active {
  color: var(--text-primary);
}

.masthead-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.masthead-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.masthead-cart-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border-color: var(--hairline-strong);
}

.cart-label {
  font-size: 12.5px;
  letter-spacing: -0.005em;
}

.cart-count-pill {
  background-color: var(--bg-card);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.masthead-cart-btn:hover .cart-count-pill {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.masthead-divider {
  width: 1px;
  height: 16px;
  background-color: var(--hairline);
  margin: 0 2px;
}

.btn-cfx-trigger {
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  font-weight: 500;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.btn-cfx-trigger:active {
  transform: translateY(1px);
}

.cfx-icon {
  height: 12px;
  width: auto;
  object-fit: contain;
}

.cfx-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 10px;
  background: var(--bg-surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
}

.cfx-username {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cfx-logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.cfx-logout-btn:hover {
  color: var(--text-primary);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-emblem-wrap {
  margin-bottom: 18px;
}

.modal-cfx-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.modal-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-cfx-login {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin: 0 auto;
  transition: all 0.15s ease;
}

.btn-cfx-login:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.cfx-btn-emblem {
  height: 16px;
  width: auto;
  object-fit: contain;
}

.btn-primary {
  height: 40px;
  padding: 0 18px;
  background-color: var(--text-primary);
  color: var(--bg-base);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  height: 40px;
  padding: 0 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-elevated);
  border-color: rgba(238, 240, 245, 0.2);
}

.hero-section {
  border-bottom: 1px solid var(--hairline);
}

.hero-title {
  color: var(--text-primary);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-lead {
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
}

.catalog-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.catalog-heading {
  max-width: 460px;
}

.section-title {
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  line-height: 1.5;
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.custom-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  height: 34px;
  padding: 0 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 148px;
  transition: all 0.15s ease;
}

.dropdown-trigger:hover,
.dropdown-trigger.open {
  background-color: var(--bg-card);
  border-color: rgba(238, 240, 245, 0.22);
}

.dropdown-trigger-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  width: 14px;
  height: 14px;
}

.framework-logo-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

.dropdown-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.dropdown-trigger.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 168px;
  background-color: var(--bg-card);
  padding: 4px;
  z-index: 100;
}

.dropdown-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.dropdown-option:hover {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.dropdown-option.selected {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 34px;
  min-width: 200px;
  color: var(--text-muted);
}

.search-box input {
  outline: none;
  color: var(--text-primary);
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.card-media {
  width: 100%;
  background-color: var(--bg-surface);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-category {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.card-desc {
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}

.card-price {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  color: var(--text-primary);
}

.card-add-btn {
  height: 28px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.card-add-btn:hover {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

.empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.empty-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
}

.catalog-loader {
  padding: 50px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--hairline);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.compat-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.compat-head {
  margin-bottom: 32px;
  max-width: 520px;
}

.compat-grid {
  display: grid;
}

.compat-card {
  display: flex;
  flex-direction: column;
}

.compat-card-title {
  font-weight: 600;
  color: var(--text-primary);
}

.compat-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.compat-row:not(:last-child) {
  border-bottom: 1px solid rgba(238, 240, 245, 0.04);
}

.compat-key {
  color: var(--text-primary);
  font-weight: 500;
}

.compat-val {
  font-feature-settings: "tnum";
  text-align: right;
}

.faq-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.faq-head {
  margin-bottom: 32px;
  max-width: 520px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
}

.faq-item {
  background-color: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: var(--hairline-strong);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}

.faq-question {
  line-height: 1.4;
}

.faq-icon {
  font-weight: 400;
  transition: transform 0.2s ease, color 0.15s ease;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--text-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
}

.faq-answer p {
  color: var(--text-secondary);
}

.faq-answer a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer code {
  font-family: var(--font-mono);
  font-size: 11px;
  background-color: var(--bg-surface);
  border: 1px solid var(--hairline);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-primary);
}

.site-footer,
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--hairline);
  padding: 56px 0 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand-col {
  max-width: 320px;
}

.footer-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 10px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-heading {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-link .ext-arrow {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.6;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.footer-link:hover .ext-arrow {
  opacity: 1;
  color: var(--text-primary);
  transform: translate(1px, -1px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy {
  color: var(--text-secondary);
}

.footer-subtext {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-mini-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.footer-mini-link:hover {
  color: var(--text-primary);
}

.package-page-main {
  padding: 32px 0 96px 0;
  min-height: calc(100vh - 60px - 260px);
}

.package-nav-back {
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--text-primary);
}

.package-skeleton-screen {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.skeleton-box {
  position: relative;
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.skeleton-box::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.05) 55%, transparent 100% );
  animation: skeleton-shimmer 1.6s infinite ease-in-out;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
}

.skeleton-thumbnails-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.skeleton-thumb {
  width: 64px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
}

.skeleton-card {
  border-color: var(--hairline);
}

.skeleton-pill-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.skeleton-pill {
  height: 20px;
  border-radius: var(--radius-sm);
}

.skeleton-line {
  border-radius: var(--radius-sm);
}

.skeleton-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.skeleton-btn-shim {
  width: 100%;
  border-radius: var(--radius-sm);
}

.skeleton-desc-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.package-error-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  margin-bottom: 40px;
}

.package-view-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.package-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 380px);
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .package-hero-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.package-gallery-block {
  display: flex;
  flex-direction: column;
}

.package-main-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
}

.package-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.package-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.thumb-btn {
  width: 64px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--bg-surface);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease;
  flex-shrink: 0;
}

.thumb-btn.active,
.thumb-btn:hover {
  border-color: var(--text-primary);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-purchase-block {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.package-purchase-card {
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.pkg-card-top {
  display: flex;
  flex-direction: column;
}

.pkg-header-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.pkg-pill-category {
  font-family: var(--font-mono);
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pkg-hero-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
}

.pkg-hero-title.title-sm {
  font-size: 36px;
  line-height: 1.15;
}

.pkg-hero-title.title-lg {
  font-size: 26px;
  line-height: 1.25;
}

.pkg-card-bottom {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.pkg-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.pkg-price-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
}

.pkg-tax-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.pkg-cta-block {
  margin-bottom: 16px;
}

.pkg-action-btn {
  width: 100%;
  height: 42px;
  font-size: 13.5px;
  justify-content: center;
}

.pkg-support-note {
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}

.support-note-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.package-description-row {
  width: 100%;
}

.pkg-description-box {
  text-align: center;
}

@media (max-width: 640px) {
  .pkg-description-box {
    padding: 24px 20px;
  }
}

.pkg-section-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-primary);
}

.pkg-rendered-html {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-primary);
  text-align: center;
  max-width: 820px;
}

.pkg-rendered-html p {
  margin-bottom: 18px;
  color: var(--text-secondary);
  text-align: center;
}

.pkg-rendered-html p:last-child {
  margin-bottom: 0;
}

.pkg-rendered-html h1,
.pkg-rendered-html h2,
.pkg-rendered-html h3,
.pkg-rendered-html h4 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 28px 0 12px 0;
  text-align: center;
}

.pkg-rendered-html h2 {
  font-size: 18px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 8px;
}

.pkg-rendered-html h3 {
  font-size: 16px;
}

.pkg-rendered-html ul,
.pkg-rendered-html ol {
  color: var(--text-secondary);
  text-align: left;
}

.pkg-rendered-html li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.pkg-rendered-html strong,
.pkg-rendered-html b {
  color: var(--text-primary);
  font-weight: 600;
}

.pkg-rendered-html code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.pkg-rendered-html pre {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
  text-align: left;
}

.pkg-rendered-html pre code {
  background: transparent;
  border: none;
  padding: 0;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: rgba(5, 6, 9, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: flex-end;
  opacity: 1;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer {
  width: 100%;
  max-width: 420px;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: slideDrawer 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes slideDrawer {
  from {
    transform: translateX(100%);
    opacity: 0.7;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.cart-drawer-header {
  padding: 0 24px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  min-height: 64px;
  box-sizing: border-box;
  background: var(--bg-surface);
}

.cart-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.cart-count-pill {
  border-radius: 999px;
  line-height: 1;
}

.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-clear-link {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.cart-clear-link:hover {
  color: #f87171;
}

.cart-drawer-close {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.cart-drawer-close:hover {
  color: var(--text-primary);
  border-color: var(--hairline-strong);
  background: var(--bg-card);
}

.cart-drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 16px;
  margin: auto 0;
}

.cart-empty-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cart-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.cart-empty-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 260px;
  margin-bottom: 22px;
}

.cart-empty-browse-btn {
  font-size: 13px;
  padding: 8px 16px;
}

.cart-item-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cart-item-card:hover {
  border-color: var(--hairline-strong);
  background: var(--bg-card-hover);
}

.cart-item-thumb-box {
  width: 72px;
  height: 48px;
  border-radius: 4px;
  background: #000;
  border: 1px solid var(--hairline);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
  gap: 3px;
}

.cart-item-header-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-tag {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-item-title {
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.cart-item-price-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.cart-item-single-qty {
  font-size: 11px;
  color: var(--text-muted);
}

.cart-item-del-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.cart-item-del-btn:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.2);
  background: rgba(248, 113, 113, 0.06);
}

.cart-drawer-footer {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--hairline);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cart-subtotal-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.cart-subtotal-val {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.cart-meta-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.cart-meta-guarantee svg {
  flex-shrink: 0;
  color: var(--text-primary);
}

.cart-checkout-action-btn {
  width: 100%;
  height: 44px;
  font-size: 13.5px;
  font-weight: 600;
  justify-content: center;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
}

.cart-tax-notice {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.container-sm {
  max-width: 820px;
}

.legal-page {
  padding: 64px 0 96px 0;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline-strong);
}

.legal-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 20px 0;
  line-height: 1.15;
}

.legal-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: #989898;
}

.legal-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.legal-author-name {
  color: #989898;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.legal-meta-dot {
  color: #989898;
  font-size: 14px;
  line-height: 1;
}

.legal-meta-date {
  color: #989898;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-section h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-section p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: disc;
  padding-left: 20px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--text-primary);
}

.legal-section code {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
}

.footer-link.active-link {
  color: var(--text-primary);
  font-weight: 500;
}

.cart-legal-terms-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  margin-top: -4px;
}

.cart-legal-terms-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-legal-terms-note a:hover {
  color: var(--text-primary);
}

.search-box:focus-within {
  border-color: rgba(238, 240, 245, 0.35);
  background-color: var(--bg-card);
}

.search-box input:focus-visible {
  outline: none;
}

main:focus {
  outline: none;
}

section[id] {
  scroll-margin-top: 72px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100000;
  padding: 8px 14px;
  background: var(--text-primary);
  color: var(--bg-base);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.inline-error {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #ffc2c2;
  background: rgba(255, 90, 90, 0.08);
  border: 1px solid rgba(255, 90, 90, 0.3);
  border-radius: var(--radius-sm);
  text-align: left;
}

.inline-error[hidden] {
  display: none;
}

button.dropdown-option {
  width: 100%;
  background: transparent;
  border: 0;
  font-family: inherit;
  text-align: left;
}

button.dropdown-option.selected {
  background-color: var(--bg-surface);
}

.dropdown-option:focus-visible {
  outline-offset: -2px;
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-card:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
}

.faq-answer {
  visibility: hidden;
  transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease, visibility 0s linear 0.25s;
}

.faq-item.active .faq-answer {
  padding: 0 20px 16px 20px;
  visibility: visible;
  transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease, visibility 0s;
}

.btn-cfx-trigger,
.masthead-cart-btn {
  white-space: nowrap;
}

.label-short {
  display: none;
}

.pkg-description-box,
.pkg-rendered-html,
.pkg-rendered-html p,
.pkg-rendered-html h1,
.pkg-rendered-html h2,
.pkg-rendered-html h3,
.pkg-rendered-html h4 {
  text-align: left;
}

.pkg-rendered-html {
  margin: 0;
}

.pkg-rendered-html p:first-child {
  line-height: 1.65;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.pkg-rendered-html h2 {
  display: block;
}

.pkg-rendered-html ul,
.pkg-rendered-html ol {
  display: block;
  margin: 14px 0 20px 0;
  padding-left: 20px;
}

.pkg-rendered-html a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .masthead {
    padding-top: 10px;
  }
  .masthead-row {
    grid-template-columns: 1fr auto;
    row-gap: 4px;
  }
  .nav-links {
    display: flex;
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-item {
    padding: 10px 0;
  }
  section[id] {
    scroll-margin-top: 112px;
  }
}

@media (max-width: 480px) {
  .cart-label,
  .masthead-divider,
  .label-long {
    display: none;
  }
  .label-short {
    display: inline;
  }
  .masthead-actions {
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .catalog-section,
  .compat-section,
  .faq-section {
    padding: 56px 0;
  }
  .catalog-actions {
    width: 100%;
    flex-wrap: nowrap;
  }
  .search-box {
    flex: 1 1 auto;
    min-width: 0;
  }
  .search-box input {
    font-size: 16px;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    flex: 1 1 auto;
    white-space: nowrap;
  }
}

.brand-title,
.dropdown-trigger,
.dropdown-option {
  white-space: nowrap;
}

@media (pointer: coarse) {
  .card-add-btn {
    height: 36px;
    padding: 0 14px;
  }
  .cart-item-del-btn {
    width: 40px;
    height: 40px;
  }
  .cfx-logout-btn {
    padding: 8px 6px;
  }
  .modal-close {
    padding: 10px;
    top: 6px;
    right: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::before {
    transform: none;
  }
  .product-card:hover {
    transform: none;
  }
}

.card-category,
.pkg-pill-category,
.cart-item-tag,
.footer-heading,
.pkg-section-label,
.cart-count-pill,
.cfx-username,
.loader-text,
.footer-subtext,
.footer-mini-link,
.cart-clear-link,
.cart-subtotal-label,
.compat-val,
.faq-icon,
.legal-meta-row,
.legal-meta-date {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: normal;
}

.card-price,
.pkg-price-num,
.cart-item-price-val,
.cart-subtotal-val,
.compat-val {
  font-family: var(--font-sans);
  font-variant-numeric: normal;
  font-feature-settings: normal;
  letter-spacing: -0.01em;
}

.section-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15.5px;
  max-width: 40em;
}

.btn-primary,
.btn-secondary {
  height: 42px;
  font-size: 14px;
  padding: 0 20px;
}

.product-card:hover {
  transform: none;
  background-color: var(--bg-card-hover);
}

.card-media {
  height: 180px;
}

.card-category {
  font-size: 13px;
  color: var(--text-muted);
}

.card-name {
  font-size: 17px;
  letter-spacing: -0.015em;
}

.card-desc {
  font-size: 14px;
}

.compat-key {
  font-size: 14px;
}

.faq-question {
  font-weight: 500;
}

.footer-heading {
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-link {
  font-size: 14px;
}

.pkg-pill-category {
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.pkg-section-label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0 0 16px 0;
}

.pkg-rendered-html,
.pkg-rendered-html p,
.pkg-rendered-html p:first-child {
  font-size: 15.5px;
  line-height: 1.7;
}

.cart-item-tag {
  font-size: 12.5px;
  color: var(--text-muted);
}

.cart-item-title {
  font-size: 15px;
}

@media (max-width: 640px) {
  .hero-lead {
    font-size: 16.5px;
  }
  .section-title {
    font-size: 26px;
  }
}

.hero-title,
.section-title,
.pkg-section-label,
.pkg-title,
.legal-title,
.empty-title,
.modal-title {
  font-weight: 500;
}

.card-name,
.compat-card-title,
.brand-title,
.cart-drawer-title,
.btn-primary,
.btn-secondary,
.card-add-btn,
.card-price,
.pkg-price-num {
  font-weight: 500;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-lead {
  margin-bottom: 32px;
}

.catalog-section,
.compat-section,
.faq-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.product-card,
.btn-primary,
.btn-secondary,
.card-add-btn {
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

.btn-primary:active,
.btn-secondary:active,
.card-add-btn:active {
  transform: scale(0.98);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 56px 0 64px 0;
  }
  .hero-title {
    font-size: 38px;
  }
  .catalog-section,
  .compat-section,
  .faq-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
}

.compat-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.masthead {
  background-color: var(--bg-base);
  height: 64px;
}

.cart-count-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.masthead-cart-btn {
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
}

.btn-cfx-trigger {
  height: 36px;
  padding: 0 12px;
  gap: 8px;
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}

.btn-cfx-trigger:hover {
  background-color: var(--accent-soft);
  border-color: transparent;
  color: var(--text-primary);
}

.modal-backdrop,
.cart-drawer-backdrop {
  background-color: rgba(8, 8, 9, 0.72);
}

.btn-cfx-login,
.dropdown-trigger,
.card-add-btn {
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

.pkg-hero-title,
.legal-title,
.error-title,
.pkg-section-label,
.compat-card-title,
.faq-question {
  font-weight: 500;
}

.catalog-head,
.compat-head,
.faq-head {
  margin-bottom: 40px;
}

.compat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compat-card {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 24px;
}

.compat-card + .compat-card {
  border-left: 1px solid var(--hairline);
}

.compat-card-title {
  font-size: 15px;
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: 0;
}

.compat-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: baseline;
}

.compat-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 961px) {
  .faq-section .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 64px;
    align-items: start;
  }
  .faq-head {
    margin-bottom: 0;
    position: sticky;
    top: 96px;
  }
}

.faq-accordion {
  gap: 0;
  max-width: none;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
}

.faq-trigger {
  padding: 20px 0;
}

.faq-question {
  font-size: 16px;
}

.faq-item .faq-answer,
.faq-item.active .faq-answer {
  padding-left: 0;
  padding-right: 48px;
}

.faq-item.active .faq-answer {
  max-height: 240px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.65;
  max-width: 40em;
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-muted);
}

.footer-heading {
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 960px) {
  .compat-grid {
    grid-template-columns: 1fr;
  }
  .compat-card + .compat-card {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
}

@media (max-width: 640px) {
  .faq-item .faq-answer,
  .faq-item.active .faq-answer {
    padding-right: 0;
  }
  .compat-card {
    padding: 20px;
  }
}

.support-note-text,
.pkg-tax-hint {
  font-size: 13px;
  line-height: 1.6;
}

.pkg-description-box {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 16px 0 0 0;
  max-width: 46em;
}

@media (max-width: 767px) {
  .masthead {
    height: auto;
  }
}

.hero-grid {
  justify-items: center;
}

.hero-title {
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  margin-left: auto;
  margin-right: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  height: auto;
  z-index: 0;
  pointer-events: none;
  background-size: 48px 48px;
  background-position: center top;
  opacity: 1;
}

@keyframes grid-breathe {
  from { opacity: 1; }
  to { opacity: 0.25; }
}

.card-add-btn.in-cart {
  border-color: rgba(212, 178, 106, 0.35);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}

body::before {
  background-image: linear-gradient(to right, rgba(212, 178, 106, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(212, 178, 106, 0.06) 1px, transparent 1px), linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 90% 85% at 50% 40%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 40%, #000 35%, transparent 100%);
}

body::after {
  background-image: linear-gradient(to right, rgba(226, 192, 120, 0.24) 1px, transparent 1px), linear-gradient(to bottom, rgba(226, 192, 120, 0.24) 1px, transparent 1px), linear-gradient(to right, rgba(226, 192, 120, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(226, 192, 120, 0.06) 1px, transparent 1px);
  mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, 0.4) 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, 0.4) 45%, transparent 100%);
  mask-size: 640px 640px;
  -webkit-mask-size: 640px 640px;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: 30% 20%;
  -webkit-mask-position: 30% 20%;
  opacity: 0.8;
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation-duration: 4.5s;
    animation: grid-breathe-v2 4.5s ease-in-out infinite alternate;
  }
  body::after {
    animation: grid-light 16s ease-in-out infinite alternate;
  }
}

@keyframes grid-breathe-v2 {
  from { opacity: 1; }
  to { opacity: 0.45; }
}

@keyframes grid-light {
  0%   { mask-position: 15% 10%;  -webkit-mask-position: 15% 10%; }
  33%  { mask-position: 80% 25%;  -webkit-mask-position: 80% 25%; }
  66%  { mask-position: 40% 75%;  -webkit-mask-position: 40% 75%; }
  100% { mask-position: 90% 90%;  -webkit-mask-position: 90% 90%; }
}

.about-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--hairline);
}

.about-head {
  margin-bottom: 40px;
}

@media (min-width: 961px) {
  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 64px;
    align-items: start;
  }
  .about-head {
    margin-bottom: 0;
  }
}

.about-body {
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

.about-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.about-support-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-support-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.about-support .btn-primary {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .about-section {
    padding: 64px 0;
  }
  .about-support {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .about-support .btn-primary {
    justify-content: center;
  }
}

.legal-author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.legal-author-link:hover .legal-author-name {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-head .section-desc {
  margin-bottom: 32px;
}

.principles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
}

.principle {
  display: flex;
  gap: 12px;
  padding: 24px;
}

.principle:nth-child(odd) {
  border-right: 1px solid var(--hairline);
}

.principle:nth-child(-n + 2) {
  border-bottom: 1px solid var(--hairline);
}

.principle-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--signal-soft);
  color: var(--signal);
}

.principle-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.principle-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.principle-desc code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .principles {
    grid-template-columns: 1fr;
  }
  .principle {
    padding: 20px;
  }
  .principle:nth-child(odd) {
    border-right: 0;
  }
  .principle:not(:last-child) {
    border-bottom: 1px solid var(--hairline);
  }
}

.team-carousel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-slides {
  display: grid;
}

.team-slide {
  grid-area: 1 / 1;
  opacity: 1;
  transform: none;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s linear 0s;
}

.team-slide:not(.is-active) {
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
}

.team-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-arrow {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.team-arrow:hover {
  background-color: var(--accent-soft);
  border-color: var(--hairline-strong);
}

.team-arrow:active {
  transform: scale(0.96);
}

.team-count {
  min-width: 40px;
  text-align: center;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .team-slide,
  .team-slide:not(.is-active) {
    transition: none;
    transform: none;
  }
}

@media (pointer: coarse) {
  .team-arrow {
    width: 44px;
    height: 44px;
  }
}

.notfound-page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 64px);
  padding: 96px 0;
}

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.notfound-console {
  max-width: 100%;
  margin-bottom: 40px;
  padding: 12px 16px;
  border: 1px solid rgba(237, 237, 238, 0.08);
  border-radius: 10px;
  background: var(--bg-surface);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
}

.console-line {
  margin: 0;
  overflow-wrap: anywhere;
}

.console-prompt {
  color: var(--signal);
}

.console-err {
  color: var(--text-secondary);
}

.console-err .notfound-path {
  color: var(--text-primary);
}

.notfound-title {
  margin: 0;
}

.notfound .hero-lead {
  max-width: 34em;
  margin: 20px auto 0;
}

.notfound .hero-lead a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(237, 237, 238, 0.32);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms var(--ease);
}

.notfound .hero-lead a:hover {
  text-decoration-color: currentColor;
}

.notfound .hero-actions {
  margin-top: 32px;
}

@media (max-width: 767px) {
  .notfound-page {
    min-height: 0;
    padding: 64px 0;
  }
  .notfound-console {
    margin-bottom: 32px;
  }
}

:root {
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg-base: #000000;
  --bg-surface: #0a0a0b;
  --bg-card: #1c1c1e;
  --bg-card-hover: #2c2c2e;
  --bg-elevated: #2c2c2e;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #8e8e93;
  --hairline: rgba(84, 84, 88, 0.36);
  --hairline-strong: rgba(84, 84, 88, 0.65);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-text: #2997ff;
  --accent-soft: rgba(41, 151, 255, 0.14);
  --signal: #2997ff;
  --signal-soft: rgba(41, 151, 255, 0.14);
  --accent-rgb: 41, 151, 255;
  --accent-on: #fff;
  --accent-fill: var(--accent);
  --accent-fill-hover: var(--accent-hover);
  --glow-a-rgb: 90, 180, 255;
  --glow-b-rgb: 90, 180, 255;
  --accent-hi-rgb: 150, 210, 255;
  --accent-white-rgb: 212, 236, 255;
  --band-a-rgb: 10, 132, 255;
  --band-b-rgb: 10, 132, 255;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-dot: var(--font-sans);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
  font-size: 17px;
  line-height: 1.47;
  font-family: var(--font-sans);
  letter-spacing: -0.011em;
  background-color: #000;
}

body {
  background: #000;
  font-size: 17px;
}

body::before,
body::after {
  background-position: 50vw 0;
  content: none;
  background: none;
  animation: none;
}

.hero-title,
.section-title,
.pkg-title,
.pkg-hero-title,
.legal-title,
.empty-title,
.modal-title,
.notfound-title,
.cart-drawer-title,
.brand-title,
.pkg-price-num,
.card-price {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: none;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 13em;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-desc,
.hero-lead,
.card-desc,
.modal-desc {
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.card-category,
.pkg-section-label,
.footer-heading,
.compat-key {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: -0.005em;
  text-transform: none;
}

code,
pre,
.console-line,
.console-prompt,
.notfound-path {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.hero-section {
  isolation: isolate;
  padding: 152px 0 136px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(var(--accent-rgb), 0.16), transparent 70%);
  mask-image: none;
  -webkit-mask-image: none;
  background-attachment: scroll;
  background-size: auto;
  background-position: 0 0;
}

.hero-grid {
  display: block;
}

.hero-copy {
  align-items: center;
  text-align: center;
  margin: 0 auto;
  max-width: 880px;
  width: 100%;
}

.hero-lead {
  margin: 28px auto 40px;
  max-width: 30em;
  font-size: 21px;
  line-height: 1.38;
  letter-spacing: -0.012em;
}

.hero-actions {
  justify-content: center;
  gap: 16px;
  align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-cfx-trigger,
.btn-cfx-login,
.cart-checkout-action-btn,
.pkg-action-btn,
.cart-empty-browse-btn {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  border: 0;
  text-transform: none;
  box-shadow: none;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), opacity 200ms var(--ease);
}

.btn-primary,
.cart-checkout-action-btn,
.pkg-action-btn {
  background: var(--accent-fill);
  color: var(--accent-on);
}

.btn-primary:hover,
.cart-checkout-action-btn:hover,
.pkg-action-btn:hover {
  background: var(--accent-fill-hover);
  color: var(--accent-on);
}

.btn-secondary,
.cart-empty-browse-btn {
  background: transparent;
  color: var(--accent-text);
  padding: 0 8px;
}

.btn-secondary::after {
  content: " \203A";
}

.btn-secondary:hover,
.cart-empty-browse-btn:hover {
  background: transparent;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-cfx-trigger,
.btn-cfx-login {
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-primary);
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-cfx-trigger:hover,
.btn-cfx-login:hover {
  background: rgba(118, 118, 128, 0.36);
  color: var(--text-primary);
}

.btn-primary:active,
.btn-secondary:active,
.card-add-btn:active,
.btn-cfx-trigger:active {
  transform: none;
  opacity: 0.8;
}

.btn-primary:disabled {
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-muted);
}

.nav-item,
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: -0.006em;
}

.nav-item:hover,
.nav-links a:hover {
  color: var(--text-primary);
}

.brand-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-card,
.compat-card,
.package-purchase-card,
.cart-item-card,
.cart-summary-card,
.skeleton-card,
.about-support,
.principle,
.pkg-description-box {
  background: var(--bg-card);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
}

.product-card::after,
.compat-card::after {
  content: none;
}

.product-card {
  transition: background-color 250ms var(--ease);
}

.product-card:hover,
.compat-card:hover {
  background: var(--bg-card-hover);
  border-color: transparent;
}

.card-media,
.card-img {
  border-radius: 0;
}

.package-main-image-wrap,
.package-main-image {
  border-radius: var(--radius-lg);
}

.thumb-btn,
.thumb-img,
.cart-item-thumb-box,
.cart-item-img {
  border-radius: var(--radius-sm);
}

.card-name,
.compat-card-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-price {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.card-add-btn {
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 0;
  border-radius: 980px;
  min-height: 36px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 200ms var(--ease);
}

.card-add-btn:hover {
  background: rgba(var(--accent-rgb), 0.24);
  color: var(--accent-text);
}

.card-add-btn.in-cart {
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-primary);
  border: 0;
}

.search-box,
.search-box input,
.dropdown-trigger,
input,
select,
textarea {
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
}

.search-box,
.dropdown-trigger {
  background: rgba(118, 118, 128, 0.24);
  border: 0;
  min-height: 40px;
  color: var(--text-primary);
}

.search-box input {
  background: transparent;
  border: 0;
  font-size: 17px;
}

.dropdown-menu {
  background: rgba(44, 44, 46, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.dropdown-option {
  border-radius: 8px;
}

.modal-backdrop,
.cart-drawer-backdrop {
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-box {
  background: var(--bg-card);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.cart-drawer {
  background: var(--bg-surface);
  border: 0;
  border-left: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
}

.modal-close,
.cart-drawer-close {
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.24);
  border: 0;
}

.about-section,
.catalog-section,
.compat-section,
.faq-section {
  border-color: var(--hairline);
  border-bottom-style: solid;
}

.catalog-section,
.compat-section,
.faq-section,
.about-section {
  padding-top: 112px;
  padding-bottom: 112px;
}

.faq-item {
  border-color: var(--hairline);
  border-style: solid;
}

.site-footer,
.footer,
footer {
  border-top: 1px solid var(--hairline);
  border-style: solid;
  background: var(--bg-surface);
}

.footer-link,
.footer-mini-link,
.footer-text,
.footer-subtext,
.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-link:hover,
.footer-mini-link:hover {
  color: var(--text-primary);
}

.cart-count-pill,
.pkg-pill-category,
.cart-item-tag,
.cfx-user-badge {
  border-radius: 980px;
  background: rgba(118, 118, 128, 0.24);
  border: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0;
}

a {
  text-underline-offset: 3px;
}

.legal-content a,
.pkg-rendered-html a {
  color: var(--accent-text);
}

hr {
  border: 0;
  height: 1px;
  background: var(--hairline);
}

::selection {
  background: rgba(var(--accent-rgb), 0.4);
  color: #fff;
}

:focus-visible {
  outline-color: var(--signal);
  outline: 3px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (hover: none) and (pointer: coarse) {
  .card-add-btn,
  .btn-cfx-trigger,
  .btn-cfx-login {
    min-height: 44px;
  }
}

@media (max-width: 734px) {
  .hero-section {
    padding: 88px 0 80px;
  }
  .hero-title {
    font-size: 40px;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
  }
  .hero-lead {
    font-size: 19px;
    margin: 20px auto 32px;
  }
  .catalog-section,
  .compat-section,
  .faq-section,
  .about-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .masthead {
    background: #000;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .dropdown-menu {
    background: #2c2c2e;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .modal-backdrop,
  .cart-drawer-backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.hero-lead,
.section-desc,
.card-desc {
  font-weight: 400;
}

.nav-item,
.nav-links a {
  font-weight: 400;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-pixels {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.9) 40%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.9) 40%, transparent 100%);
}

.hero-pixels.is-dim {
  opacity: 0.4;
}

.tick-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.tick-ch {
  display: inline-block;
  will-change: transform;
}

.tick-line {
  position: absolute;
  left: 0;
  top: calc(100% - 4px);
  pointer-events: none;
}

.hero-section {
  padding-bottom: 200px;
}

@media (max-width: 734px) {
  .hero-section {
    padding-bottom: 140px;
  }
}

.fx-fade {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(6px);
  will-change: opacity, transform, filter;
}

.fx-fade.fx-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 1100ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--fx-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .fx-fade {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.masthead {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}

.masthead-bg {
  display: none;
}

@media (max-width: 767px) {
  .masthead.is-scrolled {
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: var(--hairline);
  }
}

@media (min-width: 768px) {
  .masthead-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }
  .masthead-bg span {
    position: absolute;
    inset: 0;
    opacity: 0;
    clip-path: inset(0px 0px 0px 0px round 0px);
    transition: clip-path 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms var(--ease);
    will-change: clip-path;
  }
  .masthead.is-compact .masthead-bg span {
    opacity: 1;
  }
  .masthead-bg .mb-glow,
  .masthead-bg .mb-line {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
    transition: left 620ms cubic-bezier(0.22, 1, 0.36, 1), top 620ms cubic-bezier(0.22, 1, 0.36, 1), width 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms var(--ease);
  }
  .masthead-bg .mb-glow {
    height: 56px;
    background: radial-gradient(50% 60% at 50% 0%, rgba(var(--glow-a-rgb), 0.45) 0%, rgba(var(--accent-rgb), 0.18) 45%, rgba(var(--accent-rgb), 0) 100%), radial-gradient(30% 35% at 50% 0%, rgba(var(--accent-hi-rgb), 0.35) 0%, rgba(var(--accent-hi-rgb), 0) 100%);
    mix-blend-mode: screen;
  }
  .masthead-bg .mb-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--glow-a-rgb), 0) 0%, rgba(var(--glow-a-rgb), 0.8) 30%, rgb(var(--accent-white-rgb)) 50%, rgba(var(--glow-b-rgb), 0.8) 70%, rgba(var(--glow-b-rgb), 0) 100%);
    filter: drop-shadow(0 0 3px rgba(var(--accent-rgb), 0.9)) drop-shadow(0 1px 8px rgba(var(--accent-rgb), 0.6));
  }
  .masthead.is-compact .masthead-bg .mb-glow {
    opacity: 1;
    transition-delay: 0ms, 0ms, 0ms, 180ms;
  }
  .masthead.is-compact .masthead-bg .mb-line {
    opacity: 1;
    transition-delay: 0ms, 0ms, 0ms, 120ms;
  }
  .masthead-bg.mb-instant .mb-glow,
  .masthead-bg.mb-instant .mb-line {
    transition: none;
  }
  .masthead-bg .mb-edge {
    background: rgba(255, 255, 255, 0.12);
  }
  .masthead-bg .mb-fill {
    background: rgba(12, 12, 16, 0.6);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
  }
  .masthead-bg.mb-instant span {
    transition: none;
  }
  .masthead .container {
    position: relative;
    z-index: 1;
  }
  .masthead.is-compact .masthead-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
  }
  .brand-link {
    position: relative;
  }
  .brand-title {
    transition: opacity 260ms var(--ease) 140ms;
  }
  .masthead.is-compact .brand-title {
    position: absolute;
    left: 34px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .masthead-bg span,
  .brand-title {
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .masthead-bg .mb-fill {
    background: #0e0e12;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.team-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background-color 250ms var(--ease);
}

.team-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  top: -60px;
  height: 160px;
  background: var(--avatar) center / cover no-repeat;
  filter: blur(40px) saturate(1.4);
  opacity: 0.32;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}

.team-card:hover {
  background: var(--bg-card-hover);
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.team-card-id {
  min-width: 0;
}

.team-card-name {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.team-card-handle {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card-role {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.team-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.team-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 980px;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 200ms var(--ease);
}

.team-card-link svg {
  color: var(--text-secondary);
}

.team-card-link:hover {
  background: rgba(118, 118, 128, 0.36);
}

@media (hover: none) and (pointer: coarse) {
  .team-card-link {
    min-height: 44px;
    padding: 0 16px;
  }
}

.team-slides {
  margin-top: 32px;
}

.team-slide.team-card {
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s linear 0s, background-color 250ms var(--ease);
}

.team-slide.team-card:not(.is-active) {
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms, background-color 250ms var(--ease);
}

.team-controls {
  margin-top: 4px;
}

.team-arrow {
  border: 0;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-primary);
}

.team-arrow:hover {
  background: rgba(118, 118, 128, 0.36);
  color: var(--text-primary);
}

.team-count {
  font-family: var(--font-sans);
  font-size: 13px;
}

.cfx-user-badge { padding-left: 4px; gap: 8px; }

.cfx-avatar {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(118, 118, 128, 0.36);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.cfx-avatar-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.cfx-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 250ms var(--ease);
}

.cfx-avatar img.is-loaded { opacity: 1; }

.cfx-user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  border-radius: 980px;
  transition: opacity 200ms var(--ease);
}

.cfx-user-link:hover { opacity: 0.8; }

.dashboard-body { min-height: 100vh; }

.dash-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 96px;
}

.dash-nav {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}

.dash-nav-item:hover {
  background: rgba(118, 118, 128, 0.14);
  color: var(--text-primary);
}

.dash-nav-item.is-active {
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-primary);
}

.dash-nav-item.is-active svg { color: var(--accent-text); }

.dash-main { outline: none; min-width: 0; }

.dash-section > * + * { margin-top: 12px; }

.dash-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.dash-lead {
  font-size: 17px;
  color: var(--text-secondary);
  margin: -12px 0 24px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dash-card-account { grid-column: 1 / -1; }

.dash-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--text-primary);
}

.dash-card-link {
  text-decoration: none;
  transition: background-color 200ms var(--ease);
}

.dash-card-link:hover { background: var(--bg-card-hover); }

.dash-card-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.dash-card-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.dash-card-heading {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.dash-muted {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.dash-muted a { color: var(--accent-text); }

.dash-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-profile-name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dash-avatar {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(118, 118, 128, 0.36);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.dash-avatar-lg { width: 64px; height: 64px; }

.dash-avatar-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-avatar-lg .dash-avatar-initial { font-size: 26px; }

.dash-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 250ms var(--ease);
}

.dash-avatar img.is-loaded { opacity: 1; }

.dash-empty {
  text-align: center;
  padding: 48px 24px;
}

.dash-empty .dash-muted { max-width: 32em; margin: 0 auto; }

.dash-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.dash-empty-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.dash-actions .btn-primary,
.dash-support .btn-primary {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.dash-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.dash-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dash-checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.dash-checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--text-secondary);
}

.dash-checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent-text);
}

.dash-list { padding: 0; }

.dash-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
}

.dash-row + .dash-row { border-top: 1px solid var(--hairline); }

.dash-row-text { min-width: 0; }

.dash-row-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
}

.dash-logout {
  display: block;
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--bg-card);
  color: #ff453a;
  font: 500 17px var(--font-sans);
  cursor: pointer;
  transition: background-color 200ms var(--ease);
}

.dash-logout:hover { background: var(--bg-card-hover); }

.dash-update-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dash-version {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 980px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 500;
  vertical-align: 2px;
}

.dash-date {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.dash-notes {
  margin-top: 12px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--text-secondary);
}

.dash-loading { color: var(--text-muted); }

@media (max-width: 900px) {
  .dash-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 24px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .dash-nav {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(18, 18, 20, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--hairline);
  }

  .dash-nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    padding: 0;
    font-size: 11px;
    border-radius: 10px;
  }

  .dash-nav-item:hover,
  .dash-nav-item.is-active { background: transparent; }

  .dash-nav-item.is-active { color: var(--accent-text); }

  .dash-title { font-size: 30px; }

  .dash-grid { grid-template-columns: minmax(0, 1fr); }

  .dash-support {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .dash-nav { background: #121214; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.dash-updates {
  display: grid;
  gap: 12px;
}

.dash-support .btn-primary,
.dash-actions .btn-primary,
.dash-actions .btn-secondary {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .cfx-user-link .cfx-username { display: none; }
  .cfx-user-badge { gap: 6px; }
}

.dash-order { justify-content: space-between; }

.dash-order-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.dash-order-price {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.dash-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-secondary);
}

.dash-status-complete { background: rgba(48, 209, 88, 0.16); color: #30d158; }
.dash-status-refunded,
.dash-status-refund_pending { background: rgba(255, 159, 10, 0.16); color: #ff9f0a; }
.dash-status-chargeback,
.dash-status-declined { background: rgba(255, 69, 58, 0.16); color: #ff453a; }

.dash-order-id { color: var(--text-muted); }

@media (max-width: 480px) {
  .dash-order-id { display: none; }
}

.dash-mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text-primary);
}

.dash-subtitle {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 32px !important;
}

.dash-form {
  display: grid;
  gap: 16px;
}

.dash-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

.dash-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.dash-field em {
  font-style: normal;
  color: var(--text-muted);
}

.dash-field input,
.dash-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-primary);
  font: 400 16px/1.4 var(--font-sans);
  color-scheme: dark;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}

.dash-field textarea { resize: vertical; min-height: 120px; }

.dash-field input:focus,
.dash-field textarea:focus {
  outline: none;
  border-color: var(--accent-text);
  background: rgba(118, 118, 128, 0.3);
}

.dash-field input::placeholder,
.dash-field textarea::placeholder { color: var(--text-muted); }

.dash-form-error {
  font-size: 15px;
  color: #ff453a;
}

.dash-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.dash-form-actions .btn-primary:disabled { opacity: 0.6; cursor: default; }

.dash-admin-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.dash-text-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 980px;
  background: transparent;
  color: var(--accent-text);
  font: 500 15px var(--font-sans);
  cursor: pointer;
  transition: background-color 200ms var(--ease);
}

.dash-text-btn:hover { background: var(--accent-soft); }

.dash-text-btn-danger { color: #ff453a; }
.dash-text-btn-danger:hover { background: rgba(255, 69, 58, 0.14); }

@media (max-width: 900px) {
  .dash-form-grid { grid-template-columns: minmax(0, 1fr); }
}

.dash-nav-item[hidden] { display: none !important; }

.dash-form [hidden] { display: none !important; }

.dash-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.dash-avatar-sm { width: 28px; height: 28px; }
.dash-avatar-sm .dash-avatar-initial { font-size: 12px; }

.dash-author-name {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- Dashboard v2: overview, timeline, chips, placeholders ---------- */
.dash-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dash-avatar-xl { width: 80px; height: 80px; }
.dash-avatar-xl .dash-avatar-initial { font-size: 32px; }
.dash-avatar-xs { width: 20px; height: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.dash-avatar-xs .dash-avatar-initial { font-size: 10px; }

.dash-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.dash-hero-text { min-width: 0; flex: 1; }

.dash-hero-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.dash-hero-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.dash-pill-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 980px;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-primary);
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms var(--ease);
}

.dash-pill-btn:hover { background: rgba(118, 118, 128, 0.36); }

.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 12px;
}

.dash-stat { padding: 20px 24px; }

.dash-stat-value {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.dash-stat-value-sm {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dash-panel { padding: 20px 8px 8px; }

.dash-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 8px;
}

.dash-panel-link {
  font-size: 15px;
  color: var(--accent-text);
  text-decoration: none;
}

.dash-panel-link:hover { text-decoration: underline; }

.dash-mini-list { display: grid; }

.dash-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background-color 200ms var(--ease);
}

.dash-mini-row:hover { background: rgba(118, 118, 128, 0.14); }

.dash-mini-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dash-mini-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-mini-meta {
  font-size: 14px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-mini-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dash-mini-side .dash-order-price { font-size: 15px; }

.dash-mini-empty { padding: 8px 16px 14px; }
.dash-mini-empty a { color: var(--accent-text); }

/* placeholders while data loads (static, no shimmer) */
.dash-skel {
  display: block;
  border-radius: 8px;
  background: rgba(118, 118, 128, 0.16);
}

.dash-skel-num { width: 48px; height: 36px; }
.dash-skel-line { width: 70%; height: 24px; }
.dash-skel-row { height: 44px; margin: 6px 16px; border-radius: 10px; }
.dash-skel-card { height: 150px; border-radius: var(--radius-lg); }
.dash-skel-card + .dash-skel-card { margin-top: 12px; }

/* updates: filter chips */
.dash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.dash-chips[hidden] { display: none; }

.dash-chip {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 980px;
  background: rgba(118, 118, 128, 0.18);
  color: var(--text-secondary);
  font: 500 14px var(--font-sans);
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}

.dash-chip:hover { background: rgba(118, 118, 128, 0.28); color: var(--text-primary); }

.dash-chip.is-active {
  background: var(--text-primary);
  color: #000;
}

/* updates: timeline */
.dash-timeline {
  position: relative;
  padding-left: 28px;
}

.dash-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: rgba(118, 118, 128, 0.24);
}

.dash-timeline > .dash-skel-card,
.dash-timeline > .dash-empty { margin-left: -28px; }

.dash-month {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 24px 0 10px;
}

.dash-month:first-child { margin-top: 4px; }

.dash-release {
  position: relative;
  margin-bottom: 12px;
}

.dash-release-dot {
  position: absolute;
  left: -27px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2c2c2e;
  box-shadow: 0 0 0 4px var(--bg-base, #000);
}

.dash-release-dot.is-latest { background: var(--accent-text); }

.dash-release-card { padding: 20px 24px; }

.dash-release-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dash-release-titles { min-width: 0; }

.dash-release-title {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.dash-release-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.dash-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.dash-badge-latest {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.dash-changes {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.dash-changes li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-primary);
}

.dash-tag {
  flex-shrink: 0;
  min-width: 66px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.dash-tag-added { background: rgba(48, 209, 88, 0.16); color: #30d158; }
.dash-tag-fixed { background: rgba(var(--accent-rgb), 0.16); color: var(--accent-text); }
.dash-tag-changed { background: rgba(255, 159, 10, 0.16); color: #ff9f0a; }
.dash-tag-removed { background: rgba(255, 69, 58, 0.16); color: #ff453a; }

.dash-tag-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin: 0 30px 0 30px;
  border-radius: 50%;
  background: var(--text-muted);
  transform: translateY(-2px);
}

.dash-release-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .dash-hero { flex-wrap: wrap; gap: 16px; }
  .dash-hero-actions { width: 100%; }
  .dash-hero-actions > * { flex: 1; justify-content: center; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-stats .dash-stat:last-child { grid-column: 1 / -1; }
  .dash-panels { grid-template-columns: minmax(0, 1fr); }
  .dash-avatar-xl { width: 64px; height: 64px; }
  .dash-hero-name { font-size: 26px; }
}

@media (max-width: 480px) {
  .dash-tag { min-width: 0; }
  .dash-tag-dot { margin: 0 4px; }
  .dash-release-card { padding: 18px; }
  .dash-mini-side .dash-status { display: none; }
}

@media (max-width: 600px) {
  .dash-release-head { flex-direction: column; gap: 8px; }
  .dash-release-badges { justify-content: flex-start; order: -1; }
  .dash-release-badges:empty { display: none; }
  .dash-timeline { padding-left: 22px; }
  .dash-timeline::before { left: 5px; }
  .dash-timeline > .dash-skel-card,
  .dash-timeline > .dash-empty { margin-left: -22px; }
  .dash-release-dot { left: -22px; width: 12px; height: 12px; top: 24px; }
}

.dash-lead-tight { margin: -4px 0 4px; font-size: 15px; }
.dash-form-grid-2 { grid-template-columns: 1fr 1fr; }
.dash-team-row { justify-content: space-between; }
.dash-team-row .dash-text-btn,
.dash-team-row .dash-badge { flex-shrink: 0; }
#team-form { margin-top: 12px; }

@media (max-width: 900px) {
  .dash-form-grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Updates v3: release tags, rich text, extras, drafts ---------- */
.dash-rtag {
  --tag: 142, 142, 147;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 980px;
  background: rgba(var(--tag), 0.16);
  color: rgb(var(--tag));
  font: 600 12px/1 var(--font-sans);
  white-space: nowrap;
}

.dash-rtag-blue   { --tag: 41, 151, 255; }
.dash-rtag-green  { --tag: 48, 209, 88; }
.dash-rtag-orange { --tag: 255, 159, 10; }
.dash-rtag-red    { --tag: 255, 69, 58; }
.dash-rtag-purple { --tag: 191, 90, 242; }
.dash-rtag-pink   { --tag: 255, 55, 95; }
.dash-rtag-teal   { --tag: 100, 210, 255; }
.dash-rtag-gray   { --tag: 152, 152, 157; }

.dash-rtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.dash-changes code,
.dash-upgrade-body code,
.dash-format-hint code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(118, 118, 128, 0.24);
  font: 13px ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.dash-changes strong,
.dash-upgrade-body strong { font-weight: 600; color: var(--text-primary); }

.dash-changes a,
.dash-upgrade-body a { color: var(--accent-text); }

.dash-release-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-top: 16px;
  border-radius: 14px;
  background: rgba(118, 118, 128, 0.16);
}

.dash-code {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #0c0c0e;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.dash-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 6px 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font: 500 13px var(--font-sans);
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}

.dash-code-copy:hover { background: rgba(118, 118, 128, 0.2); color: var(--text-primary); }

.dash-code pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  font: 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #e5e5ea;
  white-space: pre;
}

.dash-upgrade {
  margin-top: 16px;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.1);
}

.dash-upgrade summary,
.dash-more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-upgrade summary::-webkit-details-marker,
.dash-more summary::-webkit-details-marker { display: none; }

.dash-upgrade summary::before,
.dash-more summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 200ms var(--ease);
  opacity: 0.7;
}

.dash-upgrade[open] summary::before,
.dash-more[open] summary::before { transform: rotate(45deg); }

.dash-upgrade-body {
  padding: 0 14px 14px 29px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.dash-upgrade-body p + p,
.dash-upgrade-body p + ul,
.dash-upgrade-body ul + p { margin-top: 8px; }
.dash-upgrade-body ul { padding-left: 18px; display: grid; gap: 4px; }

.dash-release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dash-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 980px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 200ms var(--ease);
}

.dash-link-btn:hover { background: rgba(var(--accent-rgb), 0.24); }

.dash-badge-pin { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 214, 10, 0.14); color: #ffd60a; }
.dash-badge-draft { background: rgba(152, 152, 157, 0.2); color: var(--text-secondary); }
.dash-badge-scheduled { background: rgba(191, 90, 242, 0.16); color: #bf5af2; }
.dash-badge-live { background: rgba(48, 209, 88, 0.16); color: #30d158; }

.dash-release-dot.is-pinned { background: #ffd60a; }
.dash-release-card.is-pinned { box-shadow: inset 0 0 0 1px rgba(255, 214, 10, 0.22); }

.dash-admin-item { min-width: 0; }
.dash-admin-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* editor */
.dash-format-hint { font-size: 13px; color: var(--text-muted); margin-top: -8px; }

.dash-tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }

.dash-tag-toggle {
  cursor: pointer;
  min-height: 30px;
  opacity: 0.55;
  box-shadow: inset 0 0 0 1px transparent;
  transition: opacity 200ms var(--ease), box-shadow 200ms var(--ease);
}

.dash-tag-toggle:hover { opacity: 0.85; }
.dash-tag-toggle.is-on { opacity: 1; box-shadow: inset 0 0 0 1.5px rgb(var(--tag)); }

.dash-more {
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.1);
}

.dash-more summary em { font-style: normal; font-weight: 400; color: var(--text-muted); }

.dash-more-body {
  display: grid;
  gap: 16px;
  padding: 4px 14px 16px;
}

.dash-form-grid-code { grid-template-columns: 180px 1fr; align-items: start; }

.dash-code-input { font: 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace !important; }

.dash-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-primary);
  font: 400 16px var(--font-sans);
  color-scheme: dark;
}

.dash-links-editor { display: grid; gap: 8px; }

.dash-link-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 8px;
  align-items: center;
}

.dash-link-row input {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-primary);
  font: 400 15px var(--font-sans);
}

.dash-link-row input:focus { outline: none; border-color: var(--accent-text); }

.dash-add-link { justify-self: start; padding: 0 4px; }
.dash-add-link[hidden] { display: none; }

.dash-publish {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  padding-top: 4px;
}

.dash-segment {
  display: inline-flex;
  padding: 3px;
  border: 0;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.24);
}

.dash-segment label { position: relative; cursor: pointer; }

.dash-segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dash-segment span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}

.dash-segment input:checked + span {
  background: #636366;
  color: var(--text-primary);
}

.dash-segment input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.dash-schedule { min-width: 220px; }
.dash-schedule input:disabled { opacity: 0.45; }

.dash-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
}

.dash-check input { width: 18px; height: 18px; accent-color: var(--accent); }

.dash-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 44px; }

.dash-swatch {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgb(var(--tag));
  cursor: pointer;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 200ms var(--ease);
}

.dash-swatch.is-on { box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px rgb(var(--tag)); }

@media (max-width: 900px) {
  .dash-form-grid-code { grid-template-columns: minmax(0, 1fr); }
  .dash-link-row { grid-template-columns: minmax(0, 1fr); }
  .dash-link-row .dash-text-btn { justify-self: start; }
}

@media (max-width: 600px) {
  .dash-update-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .dash-update-head .dash-admin-actions { margin-left: -12px; flex-wrap: wrap; }
  .dash-update { min-width: 0; }
}

/* ---------- Admin page ---------- */
.dash-nav-label {
  padding: 0 12px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-nav-sep {
  display: block;
  height: 1px;
  margin: 10px 12px;
  background: var(--hairline);
}

.dash-nav-back { color: var(--text-muted); }

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-head .dash-lead { margin-top: -16px; }

.admin-new-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

.admin-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-stats .dash-stat:last-child { grid-column: auto; }

#admin-recent .dash-mini-side { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 900px) {
  .dash-nav-label,
  .dash-nav-sep { display: none; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats .dash-stat:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .admin-head { flex-direction: column; }
  .admin-new-btn { width: 100%; justify-content: center; }
  #admin-recent .dash-mini-side .dash-rtag,
  #admin-recent .dash-mini-side .dash-badge-pin { display: none; }
}

/* ---------- Admin v2: permissions, roles, lookups ---------- */
[data-perm][hidden],
.dash-nav-label[hidden] { display: none !important; }

.dash-nav-label { margin-top: 14px; }
.dash-nav-label[data-group] { padding-bottom: 6px; }

.dash-form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.dash-role-select {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-primary);
  font: 500 14px var(--font-sans);
  color-scheme: dark;
}

.dash-admin-actions { align-items: center; }

.dash-roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.dash-role { padding: 20px; }

.dash-role-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dash-role-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.dash-perm-pill {
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(118, 118, 128, 0.14);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.dash-perm-pill.is-on { background: rgba(48, 209, 88, 0.16); color: #30d158; }

.dash-perms {
  display: grid;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}

.dash-perms legend {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.dash-perm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.12);
  cursor: pointer;
}

.dash-perm input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.dash-perm span { display: grid; gap: 2px; }
.dash-perm strong { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.dash-perm em { font-style: normal; font-size: 13px; color: var(--text-muted); }

.dash-search {
  display: flex;
  gap: 10px;
  margin-bottom: 16px !important;
}

.dash-search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-primary);
  font: 400 16px var(--font-sans);
}

.dash-search input:focus { outline: none; border-color: var(--accent-text); }
.dash-search .btn-primary { flex-shrink: 0; }

.dash-lookup-card { padding: 24px; }

.dash-lookup-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-lookup-id { min-width: 0; }
.dash-lookup-id .dash-hero-name { font-size: 26px; }

.dash-lookup-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.dash-lookup-value {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.dash-lookup-value .dash-muted { font-size: 14px; font-weight: 400; }
.dash-lookup-value.is-warn { color: #ff9f0a; }

.dash-order-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms var(--ease);
}

.dash-order-btn:hover { background: rgba(118, 118, 128, 0.12); }
.dash-order-btn:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.dash-order-btn:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.dash-order-btn:only-child { border-radius: var(--radius-lg); }

.dash-order-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dash-order-detail-head .dash-hero-name { font-size: 22px; white-space: normal; word-break: break-all; }

.dash-details {
  display: grid;
  margin: 20px 0 0;
  border-top: 1px solid var(--hairline);
}

.dash-details > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.dash-details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-details dt { font-size: 14px; color: var(--text-muted); }
.dash-details dd { margin: 0; font-size: 15px; color: var(--text-primary); min-width: 0; overflow-wrap: anywhere; }
.dash-details dd p + p { margin-top: 6px; }

.dash-link-plain {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  cursor: pointer;
}

.dash-link-plain:hover { text-decoration: underline; }
.dash-reveal { min-height: 28px; padding: 0 8px; font-size: 13px; }
.dash-plain-list { list-style: none; display: grid; gap: 4px; }

@media (max-width: 900px) {
  .dash-form-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .dash-lookup-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .dash-search { flex-direction: column; }
  .dash-details > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dash-order-detail-head { flex-direction: column; }
  .dash-order-detail-head .dash-order-side { align-items: flex-start; flex-direction: row; }
  .dash-team-row { flex-wrap: wrap; }
}

/* ---------- Admin: website users ---------- */
.dash-subhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 12px;
}

.dash-subhead .dash-subtitle { margin: 0 !important; }
.dash-subhead .dash-subtitle .dash-muted { font-size: 17px; font-weight: 400; margin-left: 4px; }

.dash-filter {
  width: 240px;
  max-width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-primary);
  font: 400 15px var(--font-sans);
}

.dash-filter:focus { outline: none; border-color: var(--accent-text); }
.dash-site-user .dash-row-text { flex: 1; min-width: 0; }
.dash-site-user .dash-avatar { width: 36px; height: 36px; flex-shrink: 0; }
.dash-site-user .dash-avatar-initial { font-size: 15px; }

@media (max-width: 600px) {
  .dash-subhead { flex-direction: column; align-items: stretch; }
  .dash-filter { width: 100%; }
}

/* ---------- Admin: bans and staff ---------- */
.dash-badge-staff { background: rgba(var(--accent-rgb), 0.16); color: var(--accent-text); }
.dash-badge-banned { background: rgba(255, 69, 58, 0.16); color: #ff6961; }
.dash-row-title .dash-badge { margin-left: 6px; vertical-align: 1px; }

.dash-account-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.dash-account-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
.dash-account-actions, .dash-staff-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dash-btn-sm { height: 34px; padding: 0 14px; }
.dash-account-actions .dash-role-select { min-height: 34px; }
.dash-btn-danger { color: #ff6961; }
.dash-btn-danger:hover { border-color: rgba(255, 69, 58, 0.5); }
.dash-btn-danger-solid { background-color: #ff453a; color: #fff; }
.dash-btn-danger-solid:hover { background-color: #ff6961; }

.dash-ban-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 69, 58, 0.06);
  border: 1px solid rgba(255, 69, 58, 0.2);
}

.dash-ban-form[hidden] { display: none; }

@media (max-width: 600px) {
  .dash-account-bar { flex-direction: column; align-items: stretch; }
}

/* ---------- Admin: appearance ---------- */
.dash-theme-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.dash-color-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-color-input input[type="color"] {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
}

.dash-color-input input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.dash-color-input input[type="color"]::-webkit-color-swatch { border: 1px solid var(--hairline-strong); border-radius: 12px; }
.dash-color-input input[type="color"]::-moz-color-swatch { border: 1px solid var(--hairline-strong); border-radius: 12px; }
.dash-color-input input[type="text"] { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: lowercase; }
.dash-color-input input.is-invalid { border-color: #ff453a !important; }

.dash-theme-colors input[type="range"] { width: 100%; height: 44px; accent-color: var(--accent); }

.dash-theme-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.dash-theme-preset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 6px;
  border: 0;
  border-radius: 980px;
  background: rgba(118, 118, 128, 0.18);
  color: var(--text-secondary);
  font: 500 13px var(--font-sans);
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}

.dash-theme-preset:hover { background: rgba(118, 118, 128, 0.3); color: var(--text-primary); }
.dash-theme-swatch { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

.dash-theme-preview {
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-base);
  border: 1px solid var(--hairline);
}

.dash-theme-strip { height: 56px; background: var(--accent-fill); }

.dash-theme-preview-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.dash-theme-btn { pointer-events: none; }
.dash-theme-link { color: var(--accent-text); font-size: 15px; }

@media (max-width: 900px) {
  .dash-theme-colors { grid-template-columns: minmax(0, 1fr); }
}
