/* ÃÅ¸ÃÂ¾ÃÂ»Ã‘Æ’ÃÂ·ÃÂ°ÃÂºÃ‘â‚¬ÃÂ°Ã‘Ë†ÃÂµÃÂ½ÃÂ½Ã‘â€¹ÃÂ¹ ÃÂ·ÃÂ½ÃÂ°ÃÂº Ã‘â€šÃ‘â€˜ÃÂ¼ÃÂ½ÃÂ¾ÃÂ¹ Ã‘â€šÃÂµÃÂ¼Ã‘â€¹. */
.theme-short button[data-tone="graphite"] svg .theme-half {
  fill: currentColor;
  stroke: none;
}

/* ÃÂ¢ÃÂµÃÂºÃ‘ÂÃ‘â€š ÃÂ´ÃÂµÃ‘â€šÃÂ°ÃÂ»Ã‘Å’ÃÂ½ÃÂ¾ÃÂ¹ Ã‘ÂÃ‘â€šÃ‘â‚¬ÃÂ°ÃÂ½ÃÂ¸Ã‘â€ Ã‘â€¹ ÃÂ½ÃÂ° ÃÂ¿Ã‘â‚¬ÃÂ¾ÃÂ·Ã‘â‚¬ÃÂ°Ã‘â€¡ÃÂ½ÃÂ¾ÃÂ¼ Ã‘â€žÃÂ¾ÃÂ½ÃÂµ Ã‘â€šÃ‘â€˜ÃÂ¼ÃÂ½ÃÂ¾ÃÂ¹ Ã‘â€šÃÂµÃÂ¼Ã‘â€¹. */
body[data-tone="graphite"] .product-detail,
body[data-tone="graphite"] .product-detail .detail-top h2 {
  color: #f5f7ee;
}
body[data-tone="graphite"] .product-detail .detail-top p {
  color: #c7d2c7;
}

/* ÃÂ¢ÃÂµÃ‘â€¦ÃÂ½ÃÂ¾ÃÂ»ÃÂ¾ÃÂ³ÃÂ¸ÃÂ¸ ÃÂ² ÃÂºÃÂ°Ã‘â‚¬Ã‘â€šÃÂ¾Ã‘â€¡ÃÂºÃÂ°Ã‘â€¦ Ã‘â€¡ÃÂ¸Ã‘â€šÃÂ°Ã‘Å½Ã‘â€šÃ‘ÂÃ‘Â ÃÂºÃÂ°ÃÂº Ã‘ÂÃ‘â€šÃ‘â‚¬ÃÂ¾ÃÂºÃÂ° ÃÂºÃÂ¾ÃÂ´ÃÂ°. */
.product .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
}
.product .tags > span {
  display: inline-flex;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.product .tags > span + span::before {
  content: none;
}
.product .tags .tech-separator {
  color: var(--ink);
  font: inherit;
}

/* ÃÅ¡ÃÂ¾ÃÂ¼ÃÂ¿ÃÂ°ÃÂºÃ‘â€šÃÂ½Ã‘â€¹ÃÂ¹ ÃÂ³ÃÂ»ÃÂ°ÃÂ²ÃÂ½Ã‘â€¹ÃÂ¹ ÃÂ±ÃÂ°ÃÂ½ÃÂ½ÃÂµÃ‘â‚¬: Ã‘â€šÃÂµÃÂºÃ‘ÂÃ‘â€š Ã‘ÂÃÂ»ÃÂµÃÂ²ÃÂ°, ÃÂ¸ÃÂ·ÃÂ¾ÃÂ±Ã‘â‚¬ÃÂ°ÃÂ¶ÃÂµÃÂ½ÃÂ¸ÃÂµ ÃÂ¸ ÃÂ²ÃÂ¸ÃÂ´ÃÂ¶ÃÂµÃ‘â€šÃ‘â€¹ Ã‘ÂÃÂ¿Ã‘â‚¬ÃÂ°ÃÂ²ÃÂ°. */
.hero-section {
  width: 100%;
  margin-left: 0;
}
.hero-section .hero {
  min-height: 540px;
  border: 1px solid #ffffff26;
  border-radius: 28px;
  background: #1e2a25;
  box-shadow: 0 20px 45px #07181026;
}
.hero-section .hero-bg {
  border-radius: inherit;
  background: #1e2a25;
}
.hero-section .hero-bg .hero-art {
  inset: 0 0 0 auto;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.06) contrast(1.14) saturate(1.20);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.hero-section .hero-bg::after {
  background: linear-gradient(90deg, #1e2a25 0%, #1e2a25 34%, #1e2a25d9 41%, #1e2a2533 51%, transparent 61%);
}
.hero-section .hero-copy {
  display: flex;
  flex-direction: column;
  width: 55%;
  max-width: 650px;
  margin: 0;
  padding: 58px 18px 106px 52px;
}
.hero-section .hero-copy .actions {
  margin-top: auto;
}
.hero-section .hero h1 {
  max-width: 560px;
  margin: 25px 0 22px;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -2.8px;
}
.hero-section .hero-desc {
  max-width: 420px;
  overflow-wrap: anywhere;
}
.hero-section .hero h1,
.hero-section .hero .eyebrow,
.hero-section .hero .actions .btn {
  overflow-wrap: anywhere;
}
.hero-section .hero-controls {
  left: 52px;
  right: 30px;
  bottom: 25px;
}
.hero-section .side-note {
  display: block !important;
  right: 26px;
  top: 23px;
}
.hero-section .float-top {
  right: -12px;
  top: 80px;
}
.hero-section .float-bottom {
  right: calc(10% + min(31%, 340px) - 45px);
  bottom: 85px;
  z-index: 10;
}
.hero-section .code-window {
  right: 10%;
  top: 140px;
  width: min(31%, 340px);
  max-height: none;
  overflow: visible;
}
.hero-section .code-window .hero-widget-content {
  max-height: none;
  overflow: visible;
  margin-top: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hero-section .float-top .round-icon,
.hero-section .float-bottom .tick {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.hero-section .float-top .round-icon svg,
.hero-section .float-bottom .tick svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.hero-section .float-bottom .check-row { align-items: center; }
.hero-section .float-bottom .check-row > div { min-width: 0; }
.hero-section .float-card strong,
.hero-section .float-card .tiny,
.hero-section .code-window strong,
.hero-section .code-window label { overflow-wrap: anywhere; }

/* ÃÅ¾ÃÂ±Ã‘â€°ÃÂ¸ÃÂ¹ ÃÂ³ÃÂ»Ã‘ÂÃÂ½Ã‘â€ ÃÂµÃÂ²Ã‘â€¹ÃÂ¹ Ã‘ÂÃ‘â€šÃÂ¸ÃÂ»Ã‘Å’ ÃÂ´ÃÂ»Ã‘Â ÃÂ²Ã‘ÂÃÂµÃ‘â€¦ ÃÂ¿ÃÂ»ÃÂ°ÃÂ²ÃÂ°Ã‘Å½Ã‘â€°ÃÂ¸Ã‘â€¦ ÃÂºÃÂ°Ã‘â‚¬Ã‘â€šÃÂ¾Ã‘â€¡ÃÂµÃÂº */
.hero-section .hero-widget-set .float-card,
.hero-section .hero-widget-set .code-window {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: none;
}

/* Ãâ€”ÃÂ°ÃÂ³Ã‘â‚¬Ã‘Æ’ÃÂ¶ÃÂµÃÂ½ÃÂ½ÃÂ¾ÃÂµ ÃÂ¸ÃÂ·ÃÂ¾ÃÂ±Ã‘â‚¬ÃÂ°ÃÂ¶ÃÂµÃÂ½ÃÂ¸ÃÂµ ÃÂ·ÃÂ°ÃÂ¿ÃÂ¾ÃÂ»ÃÂ½Ã‘ÂÃÂµÃ‘â€š ÃÂºÃÂ°Ã‘â‚¬Ã‘â€šÃÂ¾Ã‘â€¡ÃÂºÃ‘Æ’; ÃÂ·ÃÂ°Ã‘â€šÃÂµÃÂ¼ÃÂ½ÃÂµÃÂ½ÃÂ¸ÃÂµ Ã‘Æ’ÃÂ´ÃÂµÃ‘â‚¬ÃÂ¶ÃÂ¸ÃÂ²ÃÂ°ÃÂµÃ‘â€š Ã‘â€¡ÃÂ¸Ã‘â€šÃÂ°ÃÂµÃÂ¼ÃÂ¾Ã‘ÂÃ‘â€šÃ‘Å’ Ã‘â€šÃÂµÃÂºÃ‘ÂÃ‘â€šÃÂ° ÃÂ¸ ÃÂ¸ÃÂºÃÂ¾ÃÂ½ÃÂºÃÂ¸. */
.hero-section .hero-widget-set .has-image { isolation: isolate; }
.hero-section .hero-widget-set .has-image > .hero-widget-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: inherit;
  object-fit: cover;
}
.hero-section .hero-widget-set .has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, #061a19a8, #061a19d9);
  pointer-events: none;
}
.hero-section .hero-widget-set .has-image > :not(.hero-widget-image) { position: relative; z-index: 2; }
.hero-section .hero-widget-set .has-image,
.hero-section .hero-widget-set .has-image .tiny,
.hero-section .hero-widget-set .has-image label,
.hero-section .hero-widget-set .has-image pre { 
  color: #ffffff; 
  text-shadow: 0 2px 10px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.9); 
  letter-spacing: 0.02em;
}
.hero-section .hero-widget-set .has-image strong {
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,1);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero-section .hero-widget-set .has-image .round-icon,
.hero-section .hero-widget-set .has-image .tick,
.hero-section .hero-widget-set .has-image .widget-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid #ffffff55;
  border-radius: 7px;
  background: #071b1bc9;
  color: #efff82;
  backdrop-filter: blur(5px);
}
.hero-section .hero-widget-set .has-image .tick { flex: 0 0 30px; margin-bottom: 0; }
.hero-section .hero-widget-set .has-image .widget-icon svg { width: 17px; height: 17px; }
.hero-section .hero-widget-set .has-image .mini-chart i { background: #c4ff8c; }
.hero-section .hero-widget-set .has-image .mini-chart i:nth-child(2n) { background: #e9ffd0; }

@media (max-width: 900px) {
  .hero-section .hero {
    min-height: 0;
  }
  .hero-section .hero-copy {
    width: 100%;
    max-width: none;
    padding: 44px 32px 30px;
  }
  .hero-section .hero h1 {
    max-width: 650px;
    font-size: clamp(37px, 6vw, 54px);
  }
  .hero-section .hero-bg .hero-art {
    width: 100%;
    filter: brightness(.45);
  }
  .hero-section .hero-bg::after {
    background: linear-gradient(90deg, #1e2a25f2, #1e2a25a8);
  }
  .hero-section .hero-widget-set.is-active {
    position: relative;
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    padding: 0 32px 90px;
  }
  .hero-section .hero-widget-set.is-active .float-card,
  .hero-section .hero-widget-set.is-active .code-window {
    position: relative;
    inset: auto;
    flex: 1 1 190px;
    width: auto;
    min-width: 0;
    max-width: none;
    transform: none;
    animation: none;
    max-height: none;
    overflow: visible;
  }
  .hero-section .hero-controls {
    left: 32px;
    right: 32px;
  }
}

@media (max-width: 560px) {
  .hero-section .hero {
    border-radius: 20px;
  }
  .hero-section .hero-copy {
    padding: 36px 22px 28px;
  }
  .hero-section .hero h1 {
    margin: 20px 0;
    font-size: clamp(34px, 9vw, 46px);
    letter-spacing: -1.8px;
  }
  .hero-section .hero-copy .actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-section .side-note {
    display: none !important;
  }
  .hero-section .hero-widget-set.is-active {
    padding: 0 22px 88px;
  }
  .hero-section .hero-controls {
    left: 22px;
    right: 22px;
    gap: 8px;
  }
  .hero-section .hero-widget-set.is-active .float-card,
  .hero-section .hero-widget-set.is-active .code-window {
    flex-basis: 100%;
  }
}

/* ÃÅ¡ÃÂ°Ã‘â‚¬Ã‘â€šÃÂ¾Ã‘â€¡ÃÂºÃÂ° ÃÂ¿Ã‘â‚¬ÃÂ¾ÃÂ´Ã‘Æ’ÃÂºÃ‘â€šÃÂ° ÃÂ¾Ã‘â€šÃÂºÃ‘â‚¬Ã‘â€¹ÃÂ²ÃÂ°ÃÂµÃ‘â€šÃ‘ÂÃ‘Â ÃÂ² ÃÂ¿Ã‘â‚¬ÃÂ¾ÃÂºÃ‘â‚¬Ã‘Æ’Ã‘â€¡ÃÂ¸ÃÂ²ÃÂ°ÃÂµÃÂ¼ÃÂ¾ÃÂ¼ ÃÂ¾ÃÂºÃÂ½ÃÂµ ÃÂºÃÂ°Ã‘â€šÃÂ°ÃÂ»ÃÂ¾ÃÂ³ÃÂ°. */
.modal.product-modal {
  width: min(960px, calc(100% - 32px));
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal.product-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 10;
}
.modal.product-modal .modal-body {
  padding: 32px 34px 42px;
}
.modal.product-modal .product-detail .detail-top h2 {
  font-size: clamp(32px, 4vw, 48px);
}
.modal.product-modal .product-detail .detail-top p {
  color: var(--muted);
}
.modal.product-modal .detail-content h2,
.modal.product-modal .reviews h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -.6px;
}
/* Ãâ€™ ÃÂ³ÃÂ°ÃÂ»ÃÂµÃ‘â‚¬ÃÂµÃÂµ ÃÂ¿ÃÂ¾ÃÂºÃÂ°ÃÂ·ÃÂ°ÃÂ½Ã‘â€¹ ÃÂ²Ã‘ÂÃÂµ ÃÂ·ÃÂ°ÃÂ³Ã‘â‚¬Ã‘Æ’ÃÂ¶ÃÂµÃÂ½ÃÂ½Ã‘â€¹ÃÂµ ÃÂºÃÂ°ÃÂ´Ã‘â‚¬Ã‘â€¹ ÃÂ±ÃÂµÃÂ· ÃÂ¾ÃÂ±Ã‘â‚¬ÃÂµÃÂ·ÃÂ°ÃÂ½ÃÂ¸Ã‘Â ÃÂ¸ ÃÂ´ÃÂµÃÂºÃÂ¾Ã‘â‚¬ÃÂ°Ã‘â€šÃÂ¸ÃÂ²ÃÂ½Ã‘â€¹Ã‘â€¦ ÃÂ½ÃÂ°ÃÂ»ÃÂ¾ÃÂ¶ÃÂµÃÂ½ÃÂ¸ÃÂ¹. */
.product-gallery { margin: 28px 0 24px; }
.interactive-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-main-stage {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0b1513;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.gallery-main-stage.is-loading img { opacity: 0.5; }
.gallery-caption {
  position: absolute;
  bottom: 12px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  pointer-events: none;
  max-width: calc(100% - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-expand-btn .icon { width: 18px; height: 18px; }
.gallery-main-stage:hover .gallery-expand-btn { opacity: 1; }

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.gallery-thumb {
  flex: 0 0 calc(20% - 6.4px);
  aspect-ratio: 16 / 10;
  padding: 0;
  margin: 0;
  background: #111d1a;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.5;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb.is-active {
  border-color: #c2f77b;
  opacity: 1;
}

/* Ãâ€ºÃÂ°ÃÂ¹Ã‘â€šÃÂ±ÃÂ¾ÃÂºÃ‘Â */
.gallery-lightbox {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-lightbox.is-open::backdrop {
  opacity: 1;
}
.gallery-lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-lightbox.is-open .gallery-lightbox-content {
  opacity: 1;
  visibility: visible;
}
.gallery-lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.gallery-lightbox.is-open img { transform: scale(1); }
.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
  z-index: 2;
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.product-gallery-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.product-gallery-video { margin-top: 22px; }
.product-gallery-video h3 { margin: 0 0 12px; font-size: 18px; }
.product-gallery-video video {
  display: block;
  width: 100%;
  max-height: 480px;
  border-radius: 12px;
  background: #071410;
}
@media (max-width: 600px) {
  .product-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .product-gallery-item.is-featured,
  .product-gallery-grid.is-single .product-gallery-item { grid-column: 1 / -1; grid-row: span 2; }
  .product-gallery-grid.is-pair .product-gallery-item:not(.is-featured) { grid-column: 1 / -1; grid-row: span 2; }
  .product-gallery-grid.is-trio .product-gallery-item:not(.is-featured) { grid-column: span 1; grid-row: span 1; }
  .product-gallery-item figcaption { font-size: 9px; }
}
.product-demo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 28px;
  padding: 15px 22px;
  border-radius: 9px;
  background: #dff5c8;
  color: #17372a;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.product-demo-cta:hover {
  background: #c9efad;
}
.product-demo-cta.is-unavailable {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: default;
}
.product-demo-cta.is-unavailable:hover {
  background: var(--surface);
}
.product-demo-cta .icon {
  width: 17px;
  height: 17px;
}
.product-description {
  max-width: 760px;
}
.product-description p {
  color: var(--muted);
  line-height: 1.75;
  white-space: normal;
}
.product-detail .free-download-panel,
.product-detail .free-download-panel h2,
.product-detail .free-download-panel p {
  color: #203a30;
}

/* ÃÅ¸ÃÂ¾ÃÂ²Ã‘â€šÃÂ¾Ã‘â‚¬ ÃÂºÃÂ°Ã‘â€šÃÂµÃÂ³ÃÂ¾Ã‘â‚¬ÃÂ¸ÃÂ¹ Ã‘â‚¬Ã‘ÂÃÂ´ÃÂ¾ÃÂ¼ Ã‘Â ÃÂ·ÃÂ°ÃÂ³ÃÂ¾ÃÂ»ÃÂ¾ÃÂ²ÃÂºÃÂ¾ÃÂ¼ ÃÂºÃÂ¾ÃÂ»ÃÂ»ÃÂµÃÂºÃ‘â€ ÃÂ¸ÃÂ¸. */
.catalog-quick-categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.catalog-quick-categories > span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.catalog-quick-categories a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
}
.catalog-quick-categories a:hover,
.catalog-quick-categories a:focus-visible {
  border-color: #bddb8e;
  background: #e9f7cf;
  color: #203a30;
}
.catalog-quick-categories a span {
  color: #87a966;
}

.site-logo {
  width: 176px;
  height: auto;
}

/* ÃÂ¡ÃÂµÃ‘â€šÃÂºÃÂ° ÃÂ¾Ã‘ÂÃ‘â€šÃÂ°Ã‘â€˜Ã‘â€šÃ‘ÂÃ‘Â Ã‘â€šÃÂ¾ÃÂ»Ã‘Å’ÃÂºÃÂ¾ ÃÂ²ÃÂ½Ã‘Æ’Ã‘â€šÃ‘â‚¬ÃÂ¸ ÃÂ³ÃÂ»ÃÂ°ÃÂ²ÃÂ½ÃÂ¾ÃÂ³ÃÂ¾ ÃÂ±ÃÂ°ÃÂ½ÃÂ½ÃÂµÃ‘â‚¬ÃÂ° ÃÂ¸ ÃÂ¸Ã‘ÂÃ‘â€¡ÃÂµÃÂ·ÃÂ°ÃÂµÃ‘â€š ÃÂ¿ÃÂµÃ‘â‚¬ÃÂµÃÂ´ Ã‘â€žÃÂ¾Ã‘â€šÃÂ¾ÃÂ³Ã‘â‚¬ÃÂ°Ã‘â€žÃÂ¸ÃÂµÃÂ¹. */
.hero-section .hero-wall-grid {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 43%;
  pointer-events: none;
  background: url("brand/funnel-grid.webp") left center / cover no-repeat;
  opacity: .05;
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 92%);
}

/* ÃÂ¢ÃÂ¸Ã‘â€¦ÃÂ¸ÃÂµ ÃÂ´ÃÂµÃÂºÃÂ¾Ã‘â‚¬ÃÂ°Ã‘â€šÃÂ¸ÃÂ²ÃÂ½Ã‘â€¹ÃÂµ Ã‘â€žÃ‘â‚¬ÃÂ°ÃÂ³ÃÂ¼ÃÂµÃÂ½Ã‘â€šÃ‘â€¹ ÃÂºÃÂ¾ÃÂ´ÃÂ° ÃÂ½ÃÂ° ÃÂ´ÃÂ°ÃÂ»Ã‘Å’ÃÂ½ÃÂµÃÂ¼ Ã‘â€žÃÂ¾ÃÂ½ÃÂµ Ã‘ÂÃ‘â€šÃ‘â‚¬ÃÂ°ÃÂ½ÃÂ¸Ã‘â€ Ã‘â€¹. */
.code-watermarks {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  color: #8eaa94;
  opacity: .045;
  font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .04em;
}
.code-watermark { position: absolute; white-space: nowrap; }
.watermark-a { top: 19%; left: 4%; transform: rotate(-16deg); }
.watermark-b { top: 44%; right: 2%; transform: rotate(14deg); }
.watermark-c { top: 69%; left: 8%; transform: rotate(-8deg); }
.watermark-d { bottom: 12%; right: 8%; transform: rotate(9deg); }
body[data-tone="ivory"] .code-watermarks { color: #31543d; opacity: .035; }

@media (max-width: 900px) {
  .hero-section .hero-wall-grid {
    display: none;
  }
}

/* ÃÂ ÃÂ°ÃÂ·ÃÂ¼Ã‘â€¹Ã‘â€šÃÂ°Ã‘Â ÃÂºÃÂ¾ÃÂ¿ÃÂ¸Ã‘Â Ã‘â€ ÃÂµÃÂ½Ã‘â€šÃ‘â‚¬ÃÂ°ÃÂ»Ã‘Å’ÃÂ½ÃÂ¾ÃÂ³ÃÂ¾ ÃÂ¸ÃÂ·ÃÂ¾ÃÂ±Ã‘â‚¬ÃÂ°ÃÂ¶ÃÂµÃÂ½ÃÂ¸Ã‘Â ÃÂ¿ÃÂ¾ÃÂ´ÃÂ±ÃÂ¸Ã‘â‚¬ÃÂ°ÃÂµÃ‘â€š Ã‘â€šÃÂ¾ÃÂ½ ÃÂ¿ÃÂ¾ÃÂ´ ÃÂºÃÂ°ÃÂ¶ÃÂ´Ã‘Æ’Ã‘Å½ ÃÂºÃÂ°Ã‘â‚¬Ã‘â€šÃÂ¾Ã‘â€¡ÃÂºÃ‘Æ’. */
.product .product-top.has-photo-backdrop,
.product-detail .detail-preview.has-photo-backdrop {
  position: relative;
  isolation: isolate;
  background: #dce8d8;
}
.product .product-top .product-photo-backdrop,
.product-detail .detail-preview .product-photo-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
  filter: blur(36px) saturate(.8) brightness(1.07);
  opacity: .72;
  pointer-events: none;
}
.product .product-top .preview-button,
.product-detail .detail-preview .project-showcase {
  position: relative;
  z-index: 1;
}

/* ÃÂ¦ÃÂµÃÂ½Ã‘â€šÃ‘â‚¬ÃÂ°ÃÂ»Ã‘Å’ÃÂ½ÃÂ°Ã‘Â Ã‘â€žÃÂ¾Ã‘â€šÃÂ¾ÃÂ³Ã‘â‚¬ÃÂ°Ã‘â€žÃÂ¸Ã‘Â ÃÂ·ÃÂ°ÃÂºÃ‘â‚¬Ã‘â€¹ÃÂ²ÃÂ°ÃÂµÃ‘â€š ÃÂ´ÃÂ²ÃÂ° ÃÂ±ÃÂ¾ÃÂºÃÂ¾ÃÂ²Ã‘â€¹Ã‘â€¦ ÃÂ¼ÃÂ°ÃÂºÃÂµÃ‘â€šÃÂ° Ã‘â€šÃÂ¾ÃÂ»Ã‘Å’ÃÂºÃÂ¾ ÃÂ¿Ã‘â‚¬ÃÂ¸ ÃÂ½ÃÂ°ÃÂ²ÃÂµÃÂ´ÃÂµÃÂ½ÃÂ¸ÃÂ¸ ÃÂ¼Ã‘â€¹Ã‘Ë†Ã‘Å’Ã‘Å½. */
@media (hover: hover) and (pointer: fine) {
  .product .product-top .showcase-main {
    transition: left .38s ease, top .38s ease, width .38s ease, height .38s ease, transform .38s ease, border-radius .38s ease;
  }
  .product .product-top .showcase-main:hover,
  .product .product-top .preview-button:focus-visible .showcase-main {
    left: 0;
    top: 0;
    z-index: 6;
    width: 100%;
    height: 100%;
    border-radius: 0;
    transform: none;
  }
  .product .product-top .showcase-main:hover .showcase-landing,
  .product .product-top .preview-button:focus-visible .showcase-main .showcase-landing {
    height: calc(100% - 24px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .product .product-top .showcase-main {
    transition: none;
  }
}

@media (max-width: 560px) {
  .modal.product-modal {
    width: calc(100% - 16px);
    max-height: 96vh;
  }
  .modal.product-modal .modal-body {
    padding: 22px 18px 30px;
  }
}

/* ÃÅ¡ÃÂ¾Ã‘â‚¬ÃÂ¾Ã‘â€šÃÂºÃÂ¾ÃÂµ ÃÂ¾ÃÂ±Ã‘Å Ã‘ÂÃ‘ÂÃÂ½ÃÂµÃÂ½ÃÂ¸ÃÂµ ÃÂ½ÃÂ°ÃÂ·ÃÂ½ÃÂ°Ã‘â€¡ÃÂµÃÂ½ÃÂ¸Ã‘Â ÃÂ¿ÃÂ»ÃÂ¾Ã‘â€°ÃÂ°ÃÂ´ÃÂºÃÂ¸ ÃÂ¿ÃÂµÃ‘â‚¬ÃÂµÃÂ´ ÃÂ³ÃÂ»ÃÂ°ÃÂ²ÃÂ½Ã‘â€¹ÃÂ¼ ÃÂ±ÃÂ°ÃÂ½ÃÂ½ÃÂµÃ‘â‚¬ÃÂ¾ÃÂ¼. */
.market-intro {
  position: relative;
  padding: 6px 0 24px 0;
  border-left: none;
}
.market-intro-copy { max-width: 1100px; }
.market-intro-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b9ed79;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
.market-intro-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.market-intro h1 {
  margin: 10px 0 7px;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.17;
  letter-spacing: -.045em;
  font-weight: 600;
}
.market-intro h1 em { color: #efff82; font-style: normal; }
.market-intro p {
  max-width: 930px;
  margin: 0;
  color: #c5cec5;
  font-size: 14px;
  line-height: 1.6;
}
body[data-tone="ivory"] .market-intro { border-left-color: #6c9548; }
body[data-tone="ivory"] .market-intro-label,
body[data-tone="ivory"] .market-intro h1 em { color: #587a2e; }
body[data-tone="ivory"] .market-intro p { color: #536357; }

/* ÃÂ¡ÃÂ²ÃÂµÃ‘â€šÃÂ»ÃÂ°Ã‘Â ÃÂ¸ Ã‘â€šÃ‘â€˜ÃÂ¼ÃÂ½ÃÂ°Ã‘Â ÃÂ¿ÃÂ¾ÃÂ´ÃÂ»ÃÂ¾ÃÂ¶ÃÂºÃÂ¸ ÃÂºÃÂ°Ã‘â€šÃÂµÃÂ³ÃÂ¾Ã‘â‚¬ÃÂ¸ÃÂ¹ ÃÂ¿ÃÂ¾ Ã‘â‚¬ÃÂµÃ‘â€žÃÂµÃ‘â‚¬ÃÂµÃÂ½Ã‘ÂÃÂ°ÃÂ¼. */
body[data-tone="graphite"] .category-section .category:not(.active) {
  border-color: #263930;
  background: #1c2b23;
  color: #f4f7ef;
}
body[data-tone="ivory"] .category-section .category:not(.active) {
  border-color: #edf0ec;
  background: #f6f7f5;
  color: #15231b;
}
body[data-tone] .category-section .category.active {
  border-color: #c5e76b;
  background: #efff82;
  color: #102019;
}
body[data-tone] .category-section .category.active .cat-icon {
  background: #0c1426;
  color: #efff82;
}
body[data-tone="graphite"] .category-section .category:not(.active) small { color: #c4d0c3; }
body[data-tone="ivory"] .category-section .category:not(.active) small { color: #68766a; }
body[data-tone] .category-section .category.active small { color: #263726; }
.category-section .category-bg { opacity: .05; }

.catalog .section-head h2 .catalog-heading-accent { color: #efff82; }
body[data-tone="ivory"] .catalog .section-head h2 .catalog-heading-accent { color: #587a2e; }
.catalog .section-head .brand-wordmark { text-transform: none; }

/* ÃÅ¸Ã‘Æ’Ã‘ÂÃ‘â€šÃÂ¾ÃÂ¹ Ã‘â‚¬ÃÂµÃÂ·Ã‘Æ’ÃÂ»Ã‘Å’Ã‘â€šÃÂ°Ã‘â€š ÃÂ·ÃÂ°ÃÂ½ÃÂ¸ÃÂ¼ÃÂ°ÃÂµÃ‘â€š ÃÂ²Ã‘ÂÃ‘Å½ Ã‘ÂÃ‘â€šÃ‘â‚¬ÃÂ¾ÃÂºÃ‘Æ’ Ã‘ÂÃÂµÃ‘â€šÃÂºÃÂ¸ ÃÂ¸ ÃÂ½ÃÂµ Ã‘â‚¬ÃÂ°Ã‘ÂÃ‘â€šÃ‘ÂÃÂ³ÃÂ¸ÃÂ²ÃÂ°ÃÂµÃ‘â€š ÃÂºÃÂ½ÃÂ¾ÃÂ¿ÃÂºÃ‘Æ’. */
#products > .catalog-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 210px;
  padding: 30px 22px;
  text-align: center;
  border: 1px dashed #53645a;
  border-radius: 16px;
  background: #1b2a23;
}
#products > .catalog-empty h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.25;
  letter-spacing: -.025em;
}
#products > .catalog-empty p {
  margin: 0;
  color: #c5cec5;
  font-size: 13px;
  line-height: 1.5;
}
#products > .catalog-empty .catalog-empty-reset {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 9px 13px;
  border: 1px solid #d8f5aa;
  border-radius: 8px;
  background: #e7ffad;
  color: #15271b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
#products > .catalog-empty .catalog-empty-reset:hover {
  background: #f1ffca;
  transform: translateY(-2px);
}
body[data-tone="ivory"] #products > .catalog-empty {
  border-color: #c6d0c3;
  background: #f3f5ef;
}
body[data-tone="ivory"] #products > .catalog-empty p { color: #607064; }

@media (max-width: 600px) {
  .market-intro { padding: 2px 0 20px 0; }
  .market-intro h1 { font-size: 28px; }
  .market-intro p { font-size: 12px; }
  #products > .catalog-empty { min-height: 190px; padding: 26px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  #products > .catalog-empty .catalog-empty-reset { transition: none; }
}

/* =========================================
   Modern Favorite Buttons (Hearts)
   ========================================= */

/* Overrides for product cards heart button */
.product-grid .favorite,
body[data-tone] .product-grid .favorite,
/* Overrides for header heart button */
.topbar .iconbtn[href*="favorites"],
.navtools .iconbtn[href*="favorites"] {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s, box-shadow 0.2s !important;
}

.product-grid .favorite:hover,
body[data-tone] .product-grid .favorite:hover,
.topbar .iconbtn[href*="favorites"]:hover,
.navtools .iconbtn[href*="favorites"]:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.1) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Active State (Saved) */
body[data-tone] .product-grid .favorite[aria-pressed="true"] {
  background: linear-gradient(135deg, #c2f77b 0%, #9be044 100%) !important;
  color: #0b1513 !important;
  border-color: #c2f77b !important;
  box-shadow: 0 0 15px rgba(194, 247, 123, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  animation: heartPulse 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* =========================================
   Refined 3D Badges (Soft colors, 3D effect)
   ========================================= */

.catalog-badge,
#hero-kicker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  
  /* 3D Physical effect */
  border: 1px solid rgba(0, 0, 0, 0.4) !important;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2) !important;
  
  text-shadow: 0 1px 1px rgba(0,0,0,0.4) !important;
  
  /* Fix stretching in flex containers */
  align-self: flex-start !important;
  width: fit-content !important;
  margin-bottom: 8px; /* specific for hero kicker */
}

/* Specific Badge Colors (Desaturated, elegant gradients) */
.badge-new,
#hero-kicker {
  background: linear-gradient(180deg, #4b7342 0%, #31522a 100%) !important;
  color: #d8f5d1 !important;
}

.badge-updated {
  background: linear-gradient(180deg, #6b823e 0%, #465c1e 100%) !important;
  color: #e8f572 !important;
}

.badge-free {
  background: linear-gradient(180deg, #376a7d 0%, #224c5c 100%) !important;
  color: #d1eff7 !important;
}

.badge-featured, .badge-hit {
  background: linear-gradient(180deg, #5a427a 0%, #3c2957 100%) !important;
  color: #ebdff7 !important;
}

.badge-discount {
  background: linear-gradient(180deg, #8a3342 0%, #631e2b 100%) !important;
  color: #f7d1d8 !important;
}

/* Default fallback */
.catalog-badge:not([class*="badge-"]) {
  background: linear-gradient(180deg, #555 0%, #333 100%) !important;
  color: #eaeaea !important;
}

/* =========================================
   Logout Button refinement (semi-transparent)
   ========================================= */
   
form[action*="logout"] button.account {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

form[action*="logout"] button.account:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Перспективная сетка страницы: слой находится над фоном body и под содержимым. */
.scene-backdrop {
  display: block !important; /* Во встроенных стилях этот слой скрыт через !important. */
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 57% 76%, #000 18%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 70% at 57% 76%, #000 18%, transparent 100%);
}

.topbar, main, .footer {
  position: relative;
  z-index: 1;
}

.scene-grid {
  position: absolute;
  inset: auto;
  left: -35vw;
  top: 37vh;
  width: 180vw;
  height: 160vh;
  /* Верхняя граница плоскости растворяется до появления линий у горизонта. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .2) 12%, #000 32%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .2) 12%, #000 32%, #000 78%, transparent 100%);
  transform-origin: 62% top;
  transform: rotateZ(-13deg) rotateX(68deg) scale(1.35);
}

.scene-grid::before {
  content: "";
  position: absolute;
  inset: -48px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridMove 18s linear infinite;
  will-change: transform;
}

body[data-tone="ivory"] .scene-grid::before {
  background-image:
    linear-gradient(rgba(20, 47, 31, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 47, 31, .09) 1px, transparent 1px);
}

@keyframes gridMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, 48px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .scene-grid::before { animation: none; will-change: auto; }
}


/* Hide scrollbar for modal but keep it scrollable */
dialog.product-modal::-webkit-scrollbar,
.modal::-webkit-scrollbar,
#modal::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  display: none !important;
}

dialog.product-modal,
.modal,
#modal,
.modal-body {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
}

/* =========================================
   Responsive Header & Logout Button
   ========================================= */

@media (max-width: 768px) {
  .header .wrap.nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
    padding: 15px 10px !important;
    height: auto !important;
  }
  .navtools {
    width: 100% !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .navlinks {
    display: none !important; /* Hide links on very small mobile to save space, or keep them? Keep them below. */
  }
}

/* Semi-transparent logout button */
.navtools form button.account,
.navtools button[type="submit"] {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}
body[data-tone="ivory"] .navtools form button.account,
body[data-tone="ivory"] .navtools button[type="submit"] {
  background: rgba(0, 0, 0, 0.03) !important;
  color: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Footer layout alignment fix */
.footer-main {
  display: flex !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 1300px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
}
@media (max-width: 768px) {
  .footer-main {
    padding: 0 20px !important;
    gap: 30px !important;
  }
}

/* Custom colors for Tone Picker active buttons */
.tone-picker button[data-tone="graphite"][aria-pressed="true"] {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
.tone-picker button[data-tone="graphite"][aria-pressed="true"] i {
  background: #475569 !important;
}
.tone-picker button[data-tone="ivory"][aria-pressed="true"] {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
.tone-picker button[data-tone="ivory"][aria-pressed="true"] i {
  background: #94a3b8 !important;
}
/* Техническая строка: спокойная сетка и единый фирменный акцент в обеих темах. */
.topbar {
  background-color: #0b1b15 !important;
  background-image: linear-gradient(90deg, #d5ff7306 1px, transparent 1px),
                    linear-gradient(180deg, #d5ff7304 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  color: #d4dfd6 !important;
  border-bottom: 1px solid #d5ff7333 !important;
}
.topbar .wrap {
  min-height: 34px;
  gap: 20px;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace !important;
  letter-spacing: .025em;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}
.topbar .wrap > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.topbar a {
  color: #d5ff73 !important;
  font: inherit !important;
  font-weight: 600 !important;
  text-underline-offset: 4px;
}
.topbar a:hover {
  color: #f1ffc9 !important;
  text-decoration: underline;
}
.topbar .dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin: 0;
  border-radius: 1px;
  background: #d5ff73 !important;
  box-shadow: 0 0 0 3px #d5ff7312;
}
body[data-tone="graphite"] .topbar {
  background-color: #0b1b15 !important;
  color: #d4dfd6 !important;
  border-bottom-color: #d5ff7333 !important;
}
body[data-tone="graphite"] .topbar a {
  color: #d5ff73 !important;
}
body[data-tone="graphite"] .topbar .dot {
  background: #d5ff73 !important;
}


/* =========================================
   Modal Header & Favorite Button Alignment
   ========================================= */
.modal-head {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

#modal-label {
  font-size: 14px !important;
  margin: 0 !important;
  color: var(--ink) !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px;
}

.modal-close {
  flex-shrink: 0 !important;
}

/* Glass Favorite Button in Modal Header */
.modal-glass-fav {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}
body[data-tone="ivory"] .modal-glass-fav {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.modal-glass-fav:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.05) !important;
}
.modal-glass-fav svg {
  width: 16px !important;
  height: 16px !important;
  color: #ffffff !important;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2px !important;
}
body[data-tone="ivory"] .modal-glass-fav svg {
  color: #111 !important;
  stroke: #111 !important;
}
body[data-tone="graphite"] #modal-label {
  color: #f8fafc !important;
}

/* Position heart right after the title */
.modal-fav-injected {
  position: static !important;
  margin: 0 0 0 15px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  padding: 0 !important;
}
.modal-fav-injected svg {
  width: 16px !important;
  height: 16px !important;
}

/* Push close button to the right end and match size */
.modal-close {
  margin-left: auto !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  padding: 0 !important;
}

/* Fill the heart icon when active */
.modal-glass-fav[aria-pressed="true"] svg {
  fill: #ffffff !important;
}
body[data-tone="ivory"] .modal-glass-fav[aria-pressed="true"] svg {
  fill: #111 !important;
}

/* Remove borders from hero banner widgets */
.hero .float-card,
.hero .code-window {
  border: none !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
}
@keyframes scroll-marquee-classic {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Шапка сохраняет закрепление независимо от слоя фоновой сетки. */
.header { position: sticky; top: 0; z-index: 20; }
.mobile-menu-toggle, .mobile-account-links { display: none; }
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: inline-flex;
    padding: 9px 12px;
    border: 1px solid currentColor;
    border-radius: 10px;
    background: transparent;
    color: inherit;
  }
  .header .wrap.nav { height: auto; min-height: 80px; flex-wrap: wrap; gap: 12px; }
  .header .navlinks { display: none !important; }
  .header .navlinks.is-open {
    display: flex !important;
    flex-direction: column;
    order: 4;
    width: 100%;
    gap: 0;
    padding-bottom: 12px;
  }
  .header .navlinks.is-open a { padding: 12px; }
  .mobile-account-links { display: flex; flex-direction: column; gap: 8px; }
}
