@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Manrope-Regular.ttf") format("truetype");
}

.toolkit-book-section {
  position: relative;
  width: min(1500px, calc(100% - 40px));
  margin: clamp(42px, 7vw, 88px) auto;
  padding: clamp(20px, 3vw, 34px) 0 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.toolkit-book-section::before {
  display: none;
}

.toolkit-book-section::after {
  display: none;
}

.toolkit-book-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
}

.toolkit-book-grid-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: min(1120px, 100%);
  margin-inline: auto;
}

.toolkit-book-grid-single .toolkit-book-frame {
  width: 100%;
}

/* Compact upper Toolkit decks use the lower deck material rules.
   Screenshot files stay original; only the shell, sizing, and display filters change. */
.toolkit-book-grid-single {
  width: min(100%, 620px);
  max-width: min(620px, 100%);
  grid-template-columns: repeat(auto-fit, minmax(210px, 280px));
  justify-content: center;
  align-items: start;
  gap: clamp(10px, 1.4vw, 16px);
  margin: clamp(10px, 1.4vw, 18px) auto clamp(18px, 2.6vw, 32px);
}

.toolkit-book-grid-single .toolkit-book-frame {
  width: min(100%, 280px);
  padding: clamp(7px, 0.9vw, 10px);
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: clamp(14px, 1.5vw, 20px);
  background:
    linear-gradient(116deg, transparent 0 16%, rgba(255, 255, 255, 0.16) 30%, transparent 48%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 7rem),
    radial-gradient(circle at 86% 18%, rgba(138, 153, 166, 0.2), transparent 8rem),
    linear-gradient(145deg, rgba(73, 80, 86, 0.96), rgba(31, 35, 39, 0.98) 54%, rgba(10, 12, 14, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 8px 8px 20px rgba(255, 255, 255, 0.06),
    inset -14px -18px 28px rgba(0, 0, 0, 0.32),
    0 18px 46px rgba(0, 0, 0, 0.3);
}

.toolkit-book-grid-single .toolkit-book-frame::before,
.toolkit-book-grid-single .toolkit-book-frame::after {
  display: none;
}

.toolkit-book-grid-single .toolkit-book-header {
  grid-template-columns: 1fr;
  place-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(5px, 0.7vw, 8px);
  padding: clamp(5px, 0.65vw, 7px) clamp(12px, 1.6vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.18) 34%, transparent 56%),
    linear-gradient(145deg, rgba(70, 77, 84, 0.92), rgba(28, 31, 35, 0.96) 58%, rgba(7, 8, 10, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -10px 18px rgba(0, 0, 0, 0.26),
    0 8px 18px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.toolkit-book-grid-single .toolkit-book-header span,
.toolkit-book-grid-single .toolkit-book-header strong {
  display: none;
}

.toolkit-book-grid-single .toolkit-book-header h2 {
  justify-self: center;
  color: rgba(234, 243, 251, 0.96);
  font-size: clamp(10px, 0.95vw, 13px);
  line-height: 1.08;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

.toolkit-book-grid-single .toolkit-book-view {
  min-height: 0;
  padding: clamp(5px, 0.7vw, 8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(12px, 1.3vw, 16px);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.1), transparent 6rem),
    linear-gradient(145deg, rgba(55, 62, 68, 0.96), rgba(24, 28, 32, 0.98) 56%, rgba(7, 8, 10, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -14px 22px rgba(0, 0, 0, 0.24);
}

.toolkit-book-grid-single .toolkit-book-page {
  padding: 0;
  border-radius: clamp(10px, 1.1vw, 14px);
  background:
    radial-gradient(circle at 50% 0%, rgba(95, 127, 154, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(18, 28, 38, 0.98), rgba(5, 8, 12, 0.99));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.toolkit-book-grid-single .toolkit-book-page img {
  width: 100%;
  max-height: 172px;
  border: 0;
  border-radius: clamp(9px, 1vw, 12px);
  object-fit: contain;
}

.toolkit-book-grid-single .toolkit-book-controls {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 5px;
  margin-top: clamp(6px, 0.8vw, 9px);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(116deg, transparent 0 22%, rgba(255, 255, 255, 0.14) 38%, transparent 58%),
    linear-gradient(145deg, rgba(70, 77, 84, 0.86), rgba(22, 25, 29, 0.96) 58%, rgba(7, 8, 10, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -10px 18px rgba(0, 0, 0, 0.24);
}

.toolkit-book-grid-single .toolkit-book-button,
.toolkit-book-grid-single .toolkit-book-fullread {
  min-width: 0;
  min-height: 24px;
  padding: 5px 7px;
  border-color: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.18) 34%, transparent 56%),
    linear-gradient(145deg, rgba(84, 91, 98, 0.9), rgba(28, 31, 35, 0.98) 58%, rgba(7, 8, 10, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -10px 16px rgba(0, 0, 0, 0.26);
  color: rgba(247, 251, 255, 0.94);
  font-size: 9px;
  line-height: 1;
}

.toolkit-book-wide {
  position: relative;
  z-index: 1;
  margin-top: clamp(58px, 7vw, 104px);
  padding: clamp(20px, 2.8vw, 38px);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: clamp(30px, 3vw, 44px);
  background:
    linear-gradient(116deg, transparent 0 12%, rgba(255, 255, 255, 0.16) 24%, transparent 38%, rgba(255, 255, 255, 0.08) 58%, transparent 78%),
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.2), transparent 16rem),
    radial-gradient(circle at 84% 12%, rgba(138, 153, 166, 0.24), transparent 16rem),
    radial-gradient(circle at 50% 108%, rgba(255, 255, 255, 0.08), transparent 18rem),
    linear-gradient(145deg, rgba(73, 80, 86, 0.98), rgba(31, 35, 39, 0.99) 50%, rgba(10, 12, 14, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 18px 18px 42px rgba(255, 255, 255, 0.07),
    inset -28px -34px 62px rgba(0, 0, 0, 0.36),
    0 44px 108px rgba(0, 0, 0, 0.42),
    0 12px 32px rgba(0, 0, 0, 0.18);
  isolation: isolate;
}

.toolkit-book-wide::before {
  content: "bear-mining.pro";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  min-width: min(250px, 62%);
  padding: 8px 32px 9px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent) center calc(100% - 6px) / calc(100% - 60px) 2px no-repeat,
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.22), transparent 6rem),
    linear-gradient(145deg, rgba(70, 77, 84, 0.98), rgba(24, 27, 31, 0.99) 58%, rgba(5, 6, 8, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -14px 24px rgba(0, 0, 0, 0.34),
    0 16px 34px rgba(0, 0, 0, 0.4);
  color: rgba(247, 251, 255, 0.95);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: lowercase;
  pointer-events: none;
}

.toolkit-book-wide::after {
  display: none;
}

.toolkit-book-shell-url {
  display: none;
}

.toolkit-book-frame {
  position: relative;
  overflow: visible;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid rgba(188, 212, 232, 0.2);
  border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(circle at 50% -12%, rgba(163, 198, 226, 0.12), transparent 36%),
    radial-gradient(circle at 10% 96%, rgba(71, 108, 139, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(10, 17, 25, 0.96), rgba(7, 13, 20, 0.98) 48%, rgba(3, 6, 10, 0.99));
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.09) inset,
    0 0 34px rgba(112, 164, 208, 0.14);
  color: #f7fbff;
  isolation: isolate;
}

.toolkit-book-frame-wide {
  position: relative;
  z-index: 2;
  width: 100%;
}

.toolkit-book-wide .toolkit-book-frame-wide {
  padding: clamp(8px, 1.25vw, 16px);
  border: 0;
  border-radius: clamp(24px, 2.6vw, 36px);
  background: transparent;
  box-shadow: none;
}

.toolkit-book-wide .toolkit-book-frame-wide::before {
  display: none;
}

.toolkit-book-wide .toolkit-book-frame-wide::after {
  display: none;
}

.toolkit-book-wide .toolkit-book-header {
  position: relative;
  z-index: 3;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(10px, 1.2vw, 16px);
  padding: clamp(10px, 1.15vw, 15px) clamp(32px, 4vw, 58px);
  border: 0;
  border-radius: clamp(20px, 2.3vw, 30px);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.2), transparent 9rem),
    linear-gradient(145deg, rgba(70, 77, 84, 0.92), rgba(28, 31, 35, 0.96) 58%, rgba(7, 8, 10, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -18px 32px rgba(0, 0, 0, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

.toolkit-book-wide .toolkit-book-header h2 {
  font-size: clamp(18px, 1.75vw, 28px);
}

.toolkit-book-wide .toolkit-book-header span,
.toolkit-book-wide .toolkit-book-header strong {
  display: none;
}

.toolkit-book-wide .toolkit-book-header {
  grid-template-columns: 1fr;
  text-align: center;
  place-items: center;
}

.toolkit-book-wide .toolkit-book-header h2 {
  justify-self: center;
}

.toolkit-book-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(204, 225, 243, 0.18);
  border-radius: calc(clamp(24px, 3vw, 36px) - 8px);
  box-shadow:
    0 0 28px rgba(137, 185, 225, 0.1) inset,
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  pointer-events: none;
}

.toolkit-book-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(214, 232, 247, 0.1), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px);
  opacity: 0.34;
  pointer-events: none;
}

.toolkit-book-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 8px 0 18px;
}

.toolkit-book-header span,
.toolkit-book-header strong {
  color: rgba(234, 243, 251, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.toolkit-book-header strong {
  justify-self: end;
  min-width: 72px;
  text-align: right;
}

.toolkit-book-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1;
  text-align: center;
  text-shadow: 0 10px 34px rgba(127, 178, 219, 0.22);
}

.toolkit-book-view {
  display: grid;
  place-items: center;
  position: relative;
  min-height: min(62vh, 660px);
  padding: clamp(10px, 1.8vw, 18px);
  overflow: hidden;
  border: 1px solid rgba(192, 218, 240, 0.22);
  border-radius: clamp(20px, 3vw, 30px);
  background:
    radial-gradient(circle at 50% 0%, rgba(136, 184, 224, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(3, 8, 13, 0.84);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.34) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 32px rgba(105, 157, 201, 0.12);
}

.toolkit-book-page {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1035 / 766;
  display: grid;
  place-items: center;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 420ms ease,
    filter 420ms ease,
    transform 420ms ease;
  pointer-events: none;
}

.toolkit-book-page::before {
  display: none;
}

.toolkit-book-page.is-active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toolkit-book-page-link {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.toolkit-book-page img {
  display: block;
  width: 104%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border: 1px solid rgba(213, 231, 246, 0.18);
  border-radius: clamp(14px, 2vw, 22px);
  background: #050a10;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.055) inset,
    0 0 34px rgba(126, 176, 218, 0.14);
}

.toolkit-book-frame-wide .toolkit-book-view {
  min-height: min(78vh, 860px);
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view {
  min-height: min(78vh, 860px);
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: clamp(20px, 2.4vw, 32px);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.15), transparent 12rem),
    radial-gradient(circle at 90% 100%, rgba(255, 255, 255, 0.055), transparent 13rem),
    linear-gradient(145deg, rgba(11, 11, 11, 0.99), rgba(38, 38, 38, 0.98) 46%, rgba(4, 4, 4, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 18px 18px 36px rgba(255, 255, 255, 0.035),
    inset 0 -28px 54px rgba(0, 0, 0, 0.46),
    0 0 28px rgba(255, 255, 255, 0.045);
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view::before {
  display: none;
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page {
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: clamp(18px, 2vw, 28px);
  background: transparent;
  box-shadow: none;
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page::before {
  display: none;
}

.toolkit-book-frame-wide .toolkit-book-page img {
  max-height: none;
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page img {
  width: 100%;
  border: 0;
  border-radius: clamp(18px, 2vw, 28px);
  background:
    linear-gradient(145deg, rgba(11, 16, 22, 0.99), rgba(3, 6, 10, 0.99));
  filter: invert(1) hue-rotate(180deg) saturate(0.78) contrast(1.08) brightness(0.86);
  box-shadow: none;
  transform: none;
}

.toolkit-book-wide .toolkit-book-controls {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 7rem),
    linear-gradient(145deg, rgba(62, 62, 62, 0.84), rgba(12, 12, 12, 0.9) 70%, rgba(0, 0, 0, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -14px 28px rgba(0, 0, 0, 0.32),
    0 18px 44px rgba(0, 0, 0, 0.24);
}

.toolkit-book-wide .toolkit-book-button {
  border-color: rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.24), transparent 7rem),
    linear-gradient(145deg, rgba(72, 72, 72, 0.92), rgba(14, 14, 14, 0.96) 70%, rgba(0, 0, 0, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -12px 24px rgba(0, 0, 0, 0.34),
    0 14px 32px rgba(0, 0, 0, 0.3);
  color: rgba(247, 251, 255, 0.96);
}

.toolkit-book-wide .toolkit-book-button:hover,
.toolkit-book-wide .toolkit-book-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.32), transparent 7rem),
    linear-gradient(145deg, rgba(86, 86, 86, 0.96), rgba(21, 21, 21, 0.98) 70%, rgba(0, 0, 0, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -14px 26px rgba(0, 0, 0, 0.36),
    0 18px 38px rgba(0, 0, 0, 0.34);
}

.toolkit-book-wide .toolkit-book-fullread {
  border-color: rgba(255, 255, 255, 0.32);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.3), transparent 8rem),
    linear-gradient(145deg, rgba(76, 76, 76, 0.94), rgba(18, 18, 18, 0.98) 68%, rgba(0, 0, 0, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -12px 22px rgba(0, 0, 0, 0.32),
    0 14px 28px rgba(0, 0, 0, 0.22),
    0 5px 12px rgba(0, 0, 0, 0.14);
}

.toolkit-book-wide .toolkit-book-fullread:hover,
.toolkit-book-wide .toolkit-book-fullread:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.2), transparent 8rem),
    linear-gradient(145deg, rgba(42, 42, 42, 0.98), rgba(8, 8, 8, 0.99) 70%, rgba(0, 0, 0, 1));
}

/* Lower wide Toolkit deck: visual shell only, screenshots stay untouched. */
.toolkit-book-wide {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(116deg, transparent 0 13%, rgba(255, 255, 255, 0.18) 25%, transparent 39%, rgba(255, 255, 255, 0.08) 60%, transparent 80%),
    radial-gradient(circle at 13% 0%, rgba(255, 255, 255, 0.22), transparent 17rem),
    radial-gradient(circle at 88% 10%, rgba(204, 213, 220, 0.22), transparent 16rem),
    radial-gradient(circle at 50% 105%, rgba(255, 255, 255, 0.08), transparent 18rem),
    linear-gradient(145deg, rgba(88, 94, 100, 0.98), rgba(39, 42, 46, 0.99) 48%, rgba(9, 10, 12, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 20px 20px 48px rgba(255, 255, 255, 0.08),
    inset -32px -38px 70px rgba(0, 0, 0, 0.38),
    0 48px 116px rgba(0, 0, 0, 0.46),
    0 12px 34px rgba(0, 0, 0, 0.22);
}

.toolkit-book-wide::before {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent) center calc(100% - 6px) / calc(100% - 54px) 2px no-repeat,
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.26), transparent 6rem),
    linear-gradient(145deg, rgba(86, 92, 98, 0.98), rgba(29, 32, 36, 0.99) 58%, rgba(5, 6, 7, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -14px 26px rgba(0, 0, 0, 0.36),
    0 16px 36px rgba(0, 0, 0, 0.42);
}

.toolkit-book-wide .toolkit-book-header {
  background:
    linear-gradient(116deg, transparent 0 20%, rgba(255, 255, 255, 0.18) 36%, transparent 55%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.22), transparent 9rem),
    linear-gradient(145deg, rgba(82, 88, 94, 0.94), rgba(31, 34, 38, 0.97) 58%, rgba(8, 9, 11, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -18px 34px rgba(0, 0, 0, 0.3),
    0 14px 30px rgba(0, 0, 0, 0.2);
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view {
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, 0.1) 32%, transparent 52%),
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.13), transparent 15rem),
    radial-gradient(circle at 92% 100%, rgba(255, 255, 255, 0.06), transparent 14rem),
    linear-gradient(145deg, rgba(52, 56, 60, 0.94), rgba(18, 20, 23, 0.98) 52%, rgba(5, 6, 8, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 20px 20px 42px rgba(255, 255, 255, 0.04),
    inset 0 -30px 56px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(255, 255, 255, 0.05);
}

.toolkit-book-wide .toolkit-book-controls {
  border-color: rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(116deg, transparent 0 16%, rgba(255, 255, 255, 0.16) 30%, transparent 50%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.18), transparent 7rem),
    linear-gradient(145deg, rgba(68, 72, 76, 0.9), rgba(20, 22, 25, 0.94) 68%, rgba(5, 6, 8, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -14px 30px rgba(0, 0, 0, 0.34),
    0 18px 44px rgba(0, 0, 0, 0.26);
}

.toolkit-book-wide .toolkit-book-button,
.toolkit-book-wide .toolkit-book-fullread {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.3), transparent 8rem),
    linear-gradient(145deg, rgba(86, 91, 96, 0.96), rgba(20, 22, 25, 0.98) 68%, rgba(4, 5, 6, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -12px 24px rgba(0, 0, 0, 0.34),
    0 15px 32px rgba(0, 0, 0, 0.26);
  color: rgba(247, 251, 255, 0.98);
}

.toolkit-book-wide .toolkit-book-button:hover,
.toolkit-book-wide .toolkit-book-button:focus-visible,
.toolkit-book-wide .toolkit-book-fullread:hover,
.toolkit-book-wide .toolkit-book-fullread:focus-visible {
  border-color: rgba(255, 255, 255, 0.46);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.2), transparent 8rem),
    linear-gradient(145deg, rgba(54, 58, 62, 0.98), rgba(12, 13, 15, 0.99) 70%, rgba(0, 0, 0, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -14px 28px rgba(0, 0, 0, 0.38),
    0 18px 38px rgba(0, 0, 0, 0.34);
}

/* Final lower Toolkit deck surface pass: match the launch card material system. */
.toolkit-book-wide {
  --toolkit-metal-edge: rgba(255, 255, 255, 0.34);
  --toolkit-metal-line: rgba(255, 255, 255, 0.22);
  --toolkit-metal-text: rgba(248, 250, 252, 0.96);
  --toolkit-metal-muted: rgba(230, 235, 240, 0.72);
  border-color: var(--toolkit-metal-edge);
  background:
    linear-gradient(118deg, transparent 0 12%, rgba(255, 255, 255, 0.2) 23%, transparent 36%, rgba(255, 255, 255, 0.08) 58%, transparent 80%),
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.24), transparent 17rem),
    radial-gradient(circle at 88% 10%, rgba(185, 194, 202, 0.22), transparent 16rem),
    radial-gradient(circle at 50% 112%, rgba(255, 255, 255, 0.07), transparent 18rem),
    linear-gradient(145deg, rgba(72, 78, 84, 0.98), rgba(32, 35, 39, 0.99) 48%, rgba(8, 9, 11, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 18px 18px 42px rgba(255, 255, 255, 0.07),
    inset -28px -34px 64px rgba(0, 0, 0, 0.42),
    0 42px 104px rgba(0, 0, 0, 0.42),
    0 12px 32px rgba(0, 0, 0, 0.2);
}

.toolkit-book-wide::before {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.84), transparent) center calc(100% - 6px) / calc(100% - 58px) 2px no-repeat,
    linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, 0.22) 34%, transparent 52%),
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.24), transparent 6rem),
    linear-gradient(145deg, rgba(66, 72, 78, 0.98), rgba(24, 27, 31, 0.99) 58%, rgba(4, 5, 6, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -13px 24px rgba(0, 0, 0, 0.36),
    0 15px 34px rgba(0, 0, 0, 0.4);
  color: var(--toolkit-metal-text);
}

.toolkit-book-wide .toolkit-book-frame-wide {
  padding: clamp(12px, 1.55vw, 22px);
  border-radius: clamp(26px, 2.8vw, 38px);
  background:
    linear-gradient(118deg, transparent 0 14%, rgba(255, 255, 255, 0.13) 26%, transparent 42%),
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.15), transparent 14rem),
    radial-gradient(circle at 88% 100%, rgba(255, 255, 255, 0.06), transparent 14rem),
    linear-gradient(145deg, rgba(47, 52, 57, 0.94), rgba(19, 21, 24, 0.98) 56%, rgba(5, 6, 8, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 14px 14px 34px rgba(255, 255, 255, 0.045),
    inset -18px -24px 46px rgba(0, 0, 0, 0.34),
    0 18px 48px rgba(0, 0, 0, 0.22);
}

.toolkit-book-wide .toolkit-book-header {
  min-width: min(440px, 100%);
  padding: clamp(10px, 1.1vw, 14px) clamp(34px, 4.4vw, 70px);
  border: 1px solid var(--toolkit-metal-line);
  background:
    linear-gradient(118deg, transparent 0 16%, rgba(255, 255, 255, 0.18) 34%, transparent 54%),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.2), transparent 8rem),
    linear-gradient(145deg, rgba(64, 70, 76, 0.96), rgba(25, 28, 32, 0.98) 58%, rgba(6, 7, 8, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -16px 30px rgba(0, 0, 0, 0.34),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.toolkit-book-wide .toolkit-book-header h2 {
  color: var(--toolkit-metal-text);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view {
  padding: clamp(10px, 1.4vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, 0.09) 31%, transparent 48%),
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.12), transparent 15rem),
    radial-gradient(circle at 92% 100%, rgba(255, 255, 255, 0.055), transparent 14rem),
    linear-gradient(145deg, rgba(35, 39, 43, 0.96), rgba(13, 15, 17, 0.99) 56%, rgba(3, 4, 5, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 18px 18px 38px rgba(255, 255, 255, 0.035),
    inset 0 -30px 58px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(255, 255, 255, 0.045);
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page {
  border-radius: clamp(16px, 2vw, 26px);
  background:
    linear-gradient(145deg, rgba(9, 11, 13, 0.96), rgba(2, 3, 4, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 44px rgba(0, 0, 0, 0.32);
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page img {
  border-radius: clamp(14px, 1.8vw, 24px);
}

.toolkit-book-wide .toolkit-book-controls {
  border-color: var(--toolkit-metal-line);
  background:
    linear-gradient(118deg, transparent 0 16%, rgba(255, 255, 255, 0.15) 30%, transparent 50%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 7rem),
    linear-gradient(145deg, rgba(60, 65, 70, 0.92), rgba(18, 20, 23, 0.96) 68%, rgba(4, 5, 6, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -14px 30px rgba(0, 0, 0, 0.36),
    0 18px 44px rgba(0, 0, 0, 0.26);
}

.toolkit-book-controls {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.toolkit-book-button {
  min-width: 132px;
  padding: 12px 18px;
  border: 1px solid rgba(214, 230, 245, 0.26);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(238, 246, 252, 0.18), rgba(29, 43, 56, 0.9)),
    rgba(15, 24, 34, 0.86);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  color: #f7fbff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.toolkit-book-button:hover,
.toolkit-book-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(235, 245, 255, 0.48);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(46, 66, 82, 0.96)),
    rgba(18, 29, 41, 0.92);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(138, 188, 229, 0.2);
}

.toolkit-book-fullread {
  position: relative;
  display: inline-flex;
  min-width: 180px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.36), transparent 8rem),
    linear-gradient(135deg, #2c343d 0%, #5d6874 48%, #1a2027 100%);
  color: #f7fbff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -12px 22px rgba(0, 0, 0, 0.28),
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 5px 12px rgba(0, 0, 0, 0.12);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.toolkit-book-fullread:hover,
.toolkit-book-fullread:focus-visible {
  border-color: rgba(255, 255, 255, 0.46);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.22), transparent 7rem),
    linear-gradient(135deg, #151b22 0%, #34404d 46%, #06080b 100%);
  transform: translateY(-2px) scale(1.012);
}

/* Lower Toolkit deck final material pass. Screenshot content remains untouched. */
.toolkit-book-wide {
  border-color: rgba(255, 255, 255, 0.32);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 86% 8%, rgba(148, 157, 166, 0.18), transparent 16rem),
    linear-gradient(118deg, transparent 0 14%, rgba(255, 255, 255, 0.16) 28%, transparent 44%, rgba(255, 255, 255, 0.06) 70%, transparent 86%),
    linear-gradient(145deg, rgba(75, 78, 81, 0.98), rgba(32, 34, 37, 0.99) 52%, rgba(8, 9, 10, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 22px 18px 50px rgba(255, 255, 255, 0.07),
    inset -30px -38px 76px rgba(0, 0, 0, 0.44),
    0 42px 96px rgba(0, 0, 0, 0.38);
}

.toolkit-book-wide .toolkit-book-frame-wide {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.14), transparent 14rem),
    linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, 0.1) 33%, transparent 54%),
    linear-gradient(145deg, rgba(48, 51, 54, 0.96), rgba(19, 20, 22, 0.98) 58%, rgba(5, 6, 7, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 14px 14px 34px rgba(255, 255, 255, 0.04),
    inset -22px -26px 52px rgba(0, 0, 0, 0.36),
    0 18px 46px rgba(0, 0, 0, 0.24);
}

.toolkit-book-wide .toolkit-book-header {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.24), transparent 8rem),
    linear-gradient(135deg, rgba(80, 84, 88, 0.98), rgba(31, 33, 36, 0.99) 56%, rgba(7, 8, 9, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -14px 28px rgba(0, 0, 0, 0.34),
    0 12px 26px rgba(0, 0, 0, 0.22);
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view,
.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.1), transparent 14rem),
    linear-gradient(145deg, rgba(24, 26, 28, 0.98), rgba(8, 9, 10, 0.99) 58%, rgba(2, 3, 3, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 18px 18px 40px rgba(255, 255, 255, 0.035),
    inset 0 -30px 56px rgba(0, 0, 0, 0.5),
    0 18px 44px rgba(0, 0, 0, 0.28);
}

.toolkit-book-wide .toolkit-book-controls {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.16), transparent 9rem),
    linear-gradient(135deg, rgba(72, 76, 80, 0.95), rgba(26, 28, 31, 0.98) 58%, rgba(5, 6, 7, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -16px 30px rgba(0, 0, 0, 0.4),
    0 16px 40px rgba(0, 0, 0, 0.26);
}

.toolkit-book-wide .toolkit-book-button,
.toolkit-book-wide .toolkit-book-fullread {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.3), transparent 7rem),
    linear-gradient(145deg, rgba(92, 96, 100, 0.96), rgba(34, 37, 41, 0.98) 54%, rgba(7, 8, 9, 0.99));
  color: rgba(248, 250, 252, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -12px 22px rgba(0, 0, 0, 0.34),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.toolkit-book-wide .toolkit-book-button:hover,
.toolkit-book-wide .toolkit-book-button:focus-visible,
.toolkit-book-wide .toolkit-book-fullread:hover,
.toolkit-book-wide .toolkit-book-fullread:focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.22), transparent 7rem),
    linear-gradient(145deg, rgba(48, 52, 57, 0.98), rgba(16, 18, 21, 0.99) 58%, rgba(3, 4, 5, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -14px 26px rgba(0, 0, 0, 0.44),
    0 16px 34px rgba(0, 0, 0, 0.28);
}

/* Toolkit screenshots keep their original data/layout; this only maps the light UI to the site's dark display theme. */
.toolkit-book-section .toolkit-book-page,
.toolkit-book-modal-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(95, 127, 154, 0.14), transparent 32%),
    linear-gradient(145deg, #0d1d2b 0%, #07121c 58%, #03070b 100%);
}

.toolkit-book-section .toolkit-book-page img,
.toolkit-book-modal-page img {
  filter: invert(1) hue-rotate(180deg) grayscale(0.12) contrast(1.12) brightness(0.96);
  mix-blend-mode: screen;
  opacity: 0.94;
}

.has-toolkit-modal {
  overflow: hidden;
}

.toolkit-book-modal[hidden] {
  display: none;
}

.toolkit-book-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.6vw, 34px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.toolkit-book-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.toolkit-book-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.14), transparent 28%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.toolkit-book-modal-dialog {
  position: relative;
  width: min(1420px, 100%);
  max-height: min(92vh, 980px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 1.6vw, 20px);
  padding: clamp(16px, 2vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(236, 244, 250, 0.24);
  border-radius: clamp(24px, 3vw, 40px);
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.13), transparent 22%, rgba(255, 255, 255, 0.07) 60%, transparent 88%),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(12, 12, 12, 0.98), rgba(35, 35, 35, 0.98) 45%, rgba(4, 4, 4, 0.99));
  box-shadow:
    0 54px 140px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 80px rgba(255, 255, 255, 0.1);
  transform: translateY(34px) scale(0.965);
  filter: blur(12px);
  transition:
    transform 420ms cubic-bezier(0.2, 0.78, 0.22, 1),
    filter 420ms ease;
}

.toolkit-book-modal.is-open .toolkit-book-modal-dialog {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.toolkit-book-modal-close {
  position: absolute;
  top: clamp(14px, 1.6vw, 22px);
  right: clamp(14px, 1.6vw, 22px);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(20, 20, 20, 0.94));
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.toolkit-book-modal-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding-right: 54px;
  color: rgba(247, 251, 255, 0.92);
}

.toolkit-book-modal-header span {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolkit-book-modal-header strong {
  font-size: 14px;
  font-weight: 800;
  color: rgba(247, 251, 255, 0.72);
}

.toolkit-book-modal-page {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: clamp(18px, 2vw, 28px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 28%),
    rgba(3, 3, 3, 0.84);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.46) inset,
    0 0 36px rgba(255, 255, 255, 0.08);
}

.toolkit-book-modal-page::after {
  content: "";
  position: absolute;
  inset: -30% -70%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.2) 49%, transparent 57%);
  opacity: 0;
  transform: translateX(-36%);
  pointer-events: none;
}

.toolkit-book-modal.is-revealed .toolkit-book-modal-page::after {
  animation: toolkit-modal-scan 900ms ease-out 1;
}

.toolkit-book-modal-page img {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.toolkit-book-modal-page.is-ready img {
  opacity: 1;
  transform: scale(1);
}

.toolkit-book-modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

@keyframes toolkit-modal-scan {
  0% {
    opacity: 0;
    transform: translateX(-36%);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(36%);
  }
}

@media (max-width: 760px) {
  .toolkit-book-section {
    width: min(100% - 24px, 620px);
    margin: 34px auto;
  }

  .toolkit-book-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .toolkit-book-frame {
    padding: 22px 14px 16px;
    border-radius: 28px;
  }

  .toolkit-book-wide {
    margin-top: 46px;
    padding: 16px 10px 14px;
    border-radius: 28px;
  }

  .toolkit-book-wide::before {
    min-width: min(210px, 72%);
    padding: 7px 22px 8px;
    font-size: 12px;
  }

  .toolkit-book-wide::after {
    inset: 8px;
    border-radius: 22px;
  }

  .toolkit-book-wide .toolkit-book-frame-wide {
    padding: 8px;
    border-radius: 24px;
  }

  .toolkit-book-wide .toolkit-book-header {
    padding: 12px 14px;
    border-radius: 20px;
  }

  .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view {
    border-radius: 20px;
  }

  .toolkit-book-wide .toolkit-book-controls {
    border-radius: 22px;
    padding: 10px;
  }

  .toolkit-book-header {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .toolkit-book-header strong {
    justify-self: center;
    text-align: center;
  }

  .toolkit-book-view {
    min-height: 360px;
  }

  .toolkit-book-page img {
    max-height: none;
  }

  .toolkit-book-controls {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .toolkit-book-fullread {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
  }

  .toolkit-book-button {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toolkit-book-page,
  .toolkit-book-button,
  .toolkit-book-fullread,
  .toolkit-book-modal,
  .toolkit-book-modal-dialog,
  .toolkit-book-modal-page img {
    transition: none;
  }

  .toolkit-book-modal.is-revealed .toolkit-book-modal-page::after {
    animation: none;
  }
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Manrope-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Manrope-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Manrope-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/Manrope-ExtraBold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --bg: #f6f6f6;
  --bg-2: #eeeeee;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(248, 248, 248, 0.76);
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.68);
  --soft: rgba(17, 17, 17, 0.48);
  --line: rgba(0, 0, 0, 0.07);
  --line-light: rgba(255, 255, 255, 0.58);
  --accent: #8e8e8e;
  --accent-2: #b8b8b8;
  --accent-soft: rgba(180, 180, 180, 0.16);
  --radius: 32px;
  --radius-lg: 40px;
  --radius-pill: 999px;
  --max: 1180px;
  --font-main: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.1);
  --shadow-deep:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -28px 56px rgba(0, 0, 0, 0.055),
    inset 24px 24px 52px rgba(255, 255, 255, 0.42),
    0 30px 76px rgba(0, 0, 0, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.055);
  font-family: var(--font-main);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 0%, rgba(210, 210, 210, 0.34), transparent 34rem),
    radial-gradient(circle at 86% 8%, rgba(232, 232, 232, 0.46), transparent 32rem),
    radial-gradient(circle at 50% 96%, rgba(245, 245, 245, 0.8), transparent 36rem),
    linear-gradient(180deg, #fafafa 0%, #f6f6f6 46%, #eeeeee 100%);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.58;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 70%);
}

.digital-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 4%, rgba(255, 255, 255, 0.88), transparent 26rem),
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.42), transparent 30rem),
    radial-gradient(circle at 50% 92%, rgba(218, 218, 218, 0.44), transparent 42rem),
    linear-gradient(145deg, #fbfbfb 0%, #eeeeee 52%, #d8d8d8 100%);
}

.digital-background::before {
  content: "";
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: -38%;
  height: 92%;
  opacity: 0.192;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 86px 86px;
  filter: blur(0.2px);
  transform: perspective(900px) rotateX(68deg) translateY(0);
  transform-origin: center bottom;
  animation: digital-room-drift 21.6s linear infinite;
}

.digital-background::after {
  content: "";
  position: absolute;
  inset: -12%;
  opacity: 0.216;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.055) 0 1px, transparent 1px 58px),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.72), transparent 22rem);
  mix-blend-mode: normal;
}

.digital-background__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.digital-background__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(246, 246, 246, 0.22) 48%, rgba(238, 238, 238, 0.3) 100%);
  backdrop-filter: blur(0.2px);
}

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

@media (prefers-reduced-motion: reduce) {
  .digital-background::before {
    opacity: 0.168;
  }

  .digital-background__canvas {
    opacity: 1;
  }

  .digital-background__overlay {
    background:
      radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.14), transparent 34rem),
      linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(246, 246, 246, 0.28) 100%);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(var(--max), calc(100% - 32px));
  min-height: 66px;
  margin: 16px auto 0;
  padding: 8px 10px 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: transform 320ms ease, background 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.site-header.scrolled {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.header-title {
  position: absolute;
  left: 22px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 220px;
  height: 52px;
  transform: translateY(-50%);
  color: #111111;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.55);
}

.header-logo-art {
  flex: 0 0 auto;
  width: auto;
  height: 50px;
  max-width: 58px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.38));
  pointer-events: none;
  user-select: none;
}

.launch-static-logo {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 220px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-pill);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.16);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.brand small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 600;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: min(100%, 720px);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -10px 22px rgba(0, 0, 0, 0.16);
}

@media (min-width: 761px) {
  body:has(.instructions-docs:not(.firmware-embedded-manual)) .site-header .header-title {
    position: fixed;
    top: clamp(12px, 1.6vh, 18px);
    left: calc(50% + var(--instructions-top-offset, (var(--instructions-fixed-width) + var(--instructions-layout-gap)) / 2));
    z-index: 81;
    justify-content: center;
    width: max-content;
    transform: translateX(-50%);
  }

  body:has(.instructions-docs:not(.firmware-embedded-manual)) .site-header .nav {
    position: fixed;
    top: clamp(78px, 9.2vh, 92px);
    left: calc(50% + var(--instructions-top-offset, (var(--instructions-fixed-width) + var(--instructions-layout-gap)) / 2));
    z-index: 80;
    transform: translateX(-50%);
  }
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: rgba(31, 31, 31, 0.78);
  font-size: 16px;
  font-weight: 700;
  transition: transform 320ms ease, background 320ms ease, color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.nav a:hover:not(.header-download-button),
.nav a.active:not(.header-download-button) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at 26% 0%, rgba(255, 255, 255, 0.42), transparent 7rem),
    linear-gradient(135deg, rgba(72, 86, 98, 0.28), rgba(255, 255, 255, 0.64) 52%, rgba(42, 51, 60, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -10px 20px rgba(38, 49, 60, 0.16),
    0 10px 26px rgba(0, 0, 0, 0.14);
  color: rgba(22, 34, 44, 0.92);
}

.hero,
.section,
.page-hero {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.82fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 138px 0 86px;
}

.page-hero {
  padding: 112px 0 36px;
}

.firmware-page-hero {
  display: grid;
  justify-items: center;
  margin-top: 0;
  padding: clamp(34px, 5vw, 62px) 0 6px;
  text-align: center;
}

.firmware-page-hero h1 {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.firmware-page-hero h1 {
  max-width: 1000px;
  margin-bottom: 18px;
  font-size: clamp(34px, 3.7vw, 45px);
  line-height: 1.08;
}

.firmware-tabs-lead-wrap {
  width: min(100% - 48px, 900px);
  margin: 0 auto clamp(34px, 5vw, 58px);
  text-align: center;
}

.firmware-tabs-lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.42;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
  color: #3f3f3f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: clamp(64px, 7.2vw, 96px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(42px, 4.7vw, 64px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.18;
}

.lead,
.section-heading p,
.card p,
.compare-card p,
.docs-content p,
.faq-list p,
.site-footer p,
.steps p,
.text-panel p,
.series-card p,
.cta-panel p {
  color: var(--muted);
}

.lead {
  max-width: 760px;
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
  transition: transform 340ms ease, border-color 340ms ease, background 340ms ease, box-shadow 340ms ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.button.primary {
  border-color: rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #d9d9d9 100%);
  color: #111111;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.metrics div,
.card,
.product-visual,
.compare-card,
.docs-sidebar,
.docs-content,
.faq-list details,
.steps div {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.98), transparent 13rem),
    radial-gradient(circle at 92% 110%, rgba(142, 142, 142, 0.16), transparent 15rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(226, 226, 226, 0.68) 54%, rgba(248, 248, 248, 0.82) 100%),
    var(--surface);
  box-shadow:
    var(--shadow-deep);
  backdrop-filter: blur(16px);
}

.metrics div {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.88);
  transition: transform 340ms ease, box-shadow 340ms ease, background 340ms ease, border-color 340ms ease;
}

.metrics div::before,
.visual-stat::before,
.visual-chart::before,
.visual-list::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.12), transparent 44%);
  opacity: 0.58;
}

.metrics div::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 42px;
  height: 3px;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2));
  opacity: 0.32;
}

.metrics div:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.98);
  background:
    radial-gradient(circle at 16% 6%, rgba(255, 255, 255, 1), transparent 12rem),
    radial-gradient(circle at 100% 100%, rgba(70, 70, 70, 0.18), transparent 10rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(190, 190, 190, 0.82)),
    var(--surface-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -30px 48px rgba(0, 0, 0, 0.085),
    0 30px 64px rgba(0, 0, 0, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.08);
}

.metrics strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--text);
  font-size: 27px;
  font-weight: 800;
}

.metrics span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.product-visual {
  position: relative;
  min-height: 360px;
  padding: 18px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border-color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.98), transparent 16rem),
    radial-gradient(circle at 92% 94%, rgba(96, 96, 96, 0.2), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(216, 216, 216, 0.76) 52%, rgba(246, 246, 246, 0.84) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -34px 58px rgba(0, 0, 0, 0.07),
    inset 28px 22px 46px rgba(255, 255, 255, 0.48),
    0 32px 78px rgba(0, 0, 0, 0.14);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: calc(var(--radius-lg) - 1px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.09), transparent 38%);
  mix-blend-mode: multiply;
  opacity: 0.42;
}

.visual-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.visual-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c8c8c8;
}

.visual-topbar span:nth-child(1) {
  background: #d8d8d8;
}

.visual-topbar span:nth-child(2) {
  background: #c0c0c0;
}

.visual-topbar span:nth-child(3) {
  background: #e2e2e2;
}

.visual-topbar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.visual-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
}

.visual-stat,
.visual-chart,
.visual-list {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 1), transparent 9rem),
    radial-gradient(circle at 100% 112%, rgba(64, 64, 64, 0.18), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(202, 202, 202, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -22px 34px rgba(0, 0, 0, 0.08),
    0 20px 38px rgba(0, 0, 0, 0.13),
    0 6px 14px rgba(0, 0, 0, 0.065);
  transition: transform 320ms ease, box-shadow 320ms ease, background 320ms ease;
}

.visual-stat:hover,
.visual-chart:hover,
.visual-list:hover {
  transform: translateY(-4px) scale(1.01);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 1), transparent 9rem),
    radial-gradient(circle at 100% 112%, rgba(42, 42, 42, 0.2), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(176, 176, 176, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -26px 38px rgba(0, 0, 0, 0.1),
    0 28px 50px rgba(0, 0, 0, 0.17),
    0 8px 20px rgba(0, 0, 0, 0.08);
}

.visual-stat {
  padding: 14px;
}

.visual-stat span,
.visual-list span {
  position: relative;
  z-index: 1;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.visual-stat strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 7px;
  color: #3f3f3f;
  font-size: 20px;
  line-height: 1.15;
}

.visual-chart {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  height: 104px;
  align-items: end;
  padding: 14px;
}

.visual-chart i {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 999px 999px 14px 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #d8d8d8 38%, #8e8e8e 74%, #4d4d4d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -12px 16px rgba(0, 0, 0, 0.2),
    0 10px 18px rgba(0, 0, 0, 0.14);
}

.visual-chart i:nth-child(1) { height: 48%; }
.visual-chart i:nth-child(2) { height: 70%; }
.visual-chart i:nth-child(3) { height: 54%; }
.visual-chart i:nth-child(4) { height: 86%; }
.visual-chart i:nth-child(5) { height: 64%; }

.visual-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.visual-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.visual-list span:last-child {
  border-bottom: 0;
}

.section {
  padding: 82px 0;
}

.empty-page {
  min-height: 52vh;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.instructions-docs {
  --instructions-fixed-width: clamp(180px, 16vw, 210px);
  --instructions-menu-width: clamp(160px, 11vw, 184px);
  --instructions-layout-gap: clamp(9px, 1.2vw, 17px);
  --instructions-content-max: 1364px;
  --instructions-doc-edge: max(10px, calc((100vw - 1800px) / 2));
  --instructions-shell-width: min(1800px, calc(100vw - 20px));
  --instructions-content-width: min(var(--instructions-content-max), calc(var(--instructions-shell-width) - var(--instructions-fixed-width) - var(--instructions-layout-gap)));
  --instructions-content-left: calc((100vw - var(--instructions-content-width)) / 2);
  --instructions-fixed-left: max(56px, calc((var(--instructions-doc-edge) + var(--instructions-layout-gap)) / 2 + 38px));
  --instructions-menu-left: max(18px, calc(var(--instructions-doc-edge) + var(--instructions-fixed-width) + var(--instructions-layout-gap) + 18px));
  width: min(1800px, calc(100% - 20px));
  margin: 112px auto 92px;
}

body:has(.instructions-docs:not(.firmware-embedded-manual)) {
  --instructions-fixed-width: clamp(180px, 16vw, 210px);
  --instructions-layout-gap: clamp(9px, 1.2vw, 17px);
  --instructions-shell-width: min(1800px, calc(100vw - 20px));
  --instructions-content-width: min(1364px, calc(var(--instructions-shell-width) - var(--instructions-fixed-width) - var(--instructions-layout-gap)));
  --instructions-content-left: calc((100vw - var(--instructions-content-width)) / 2);
  --instructions-top-offset: 0px;
}

body:has(.instructions-docs:not(.firmware-embedded-manual)) .site-header {
  width: min(var(--instructions-content-width), calc(100% - 24px));
  margin-right: auto;
  margin-left: auto;
}

.instructions-topbar {
  position: sticky;
  z-index: 12;
  top: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  margin-bottom: 34px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(231, 237, 242, 0.82)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 42px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.instructions-project {
  color: #152231;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.instructions-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructions-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 36px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.86), transparent 2.4rem),
    linear-gradient(145deg, rgba(72, 86, 98, 0.18), rgba(255, 255, 255, 0.72));
  color: #172535;
  font-size: 13px;
  font-weight: 900;
}

.instructions-intro {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.instructions-docs > .gminer-feature-tabs,
.instructions-docs > .instructions-intro {
  width: var(--instructions-content-width);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.instructions-docs > .gminer-feature-tabs .feature-tabs-panel,
.instructions-docs > .instructions-intro > * {
  margin-right: auto;
  margin-left: auto;
}

.instructions-docs > .gminer-feature-tabs {
  min-height: 0;
  padding-top: 0;
  padding-bottom: clamp(26px, 4vh, 44px);
}

.instructions-docs > .gminer-feature-tabs .feature-tabs-panel {
  width: min(100%, 1120px);
}

.instructions-intro .eyebrow {
  margin-inline: auto;
}

.instructions-intro h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
}

.instructions-intro p {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
}

.instructions-doc-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--instructions-content-width));
  gap: var(--instructions-layout-gap);
  align-items: start;
  justify-content: center;
}

.instructions-sidebar-panel,
.instructions-page-toc,
.instructions-mobile-nav details,
.instructions-doc-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.96), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(230, 236, 241, 0.72)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 52px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.instructions-sidebar-panel,
.instructions-page-toc {
  position: sticky;
  top: 176px;
  max-height: calc(100vh - 198px);
  padding: 18px;
  border-radius: 24px;
  overflow: auto;
}

.instructions-sidebar {
  min-height: 1px;
}

.instructions-sidebar-panel {
  position: fixed;
  top: clamp(72px, 9vh, 96px);
  right: clamp(12px, 1.6vw, 22px);
  left: auto;
  width: var(--instructions-fixed-width);
  box-sizing: border-box;
  max-height: none;
  padding: 10px;
  overflow: visible;
  z-index: 20;
  border-color: rgba(17, 24, 39, 0.12);
  background:
    linear-gradient(116deg, transparent 0 16%, rgba(255, 255, 255, 0.46) 34%, transparent 56%),
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.96), transparent 10rem),
    radial-gradient(circle at 96% 100%, rgba(148, 163, 184, 0.22), transparent 13rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(229, 236, 242, 0.66) 54%, rgba(248, 250, 252, 0.72) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -16px 28px rgba(15, 23, 42, 0.08),
    0 18px 42px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(22px) saturate(1.22);
}

.instructions-sidebar strong,
.instructions-page-toc strong {
  display: block;
  margin-bottom: 12px;
  color: #172535;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.instructions-sidebar strong {
  margin-bottom: 6px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.instructions-sidebar nav,
.instructions-page-toc nav,
.instructions-mobile-nav nav {
  display: grid;
  gap: 4px;
}

.instructions-sidebar nav {
  gap: 2px;
}

.instructions-sidebar-group {
  display: grid;
  gap: 2px;
}

.instructions-sidebar-group + .instructions-sidebar-group {
  margin-top: 7px;
}

.instructions-sidebar-pdf {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(22, 40, 58, 0.12);
}

.instructions-sidebar-group span {
  padding: 5px 7px 2px;
  color: #172535;
  font-size: 11.6px;
  font-weight: 900;
  line-height: 1.2;
}

.instructions-sidebar a,
.instructions-mobile-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  color: #465466;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}

.instructions-sidebar a {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 10px;
  color: #172535;
  font-size: 12.1px;
  font-weight: 850;
  line-height: 1.12;
  text-decoration: none;
}

.instructions-sidebar a::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 2px;
  left: 7px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(22, 40, 58, 0.72), transparent);
  opacity: 0.82;
  pointer-events: none;
}

.instructions-sidebar a:hover,
.instructions-sidebar a:focus-visible,
.instructions-mobile-nav a:hover,
.instructions-mobile-nav a:focus-visible {
  background: rgba(31, 45, 58, 0.08);
  color: #071321;
  outline: none;
}

.instructions-sidebar a:hover::after,
.instructions-sidebar a:focus-visible::after {
  opacity: 1;
}

.instructions-sidebar a.is-active,
.instructions-sidebar a[aria-current="true"] {
  border: 1px solid rgba(23, 37, 53, 0.24);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.96), transparent 5.5rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(223, 231, 238, 0.82));
  color: #101827;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 8px 20px rgba(15, 23, 42, 0.1);
}

.instructions-sidebar a.is-active::after,
.instructions-sidebar a[aria-current="true"]::after {
  opacity: 0.95;
}

.instructions-sidebar a.instructions-sidebar-pdf-button,
.instructions-mobile-nav a.instructions-sidebar-pdf-button {
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 0%, rgba(255, 255, 255, 0.28), transparent 58%),
    linear-gradient(145deg, rgba(83, 96, 108, 0.94), rgba(14, 24, 34, 0.96));
  color: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 22px rgba(12, 20, 30, 0.2);
}

.instructions-sidebar a.instructions-sidebar-pdf-button::after,
.instructions-mobile-nav a.instructions-sidebar-pdf-button::after {
  display: none;
}

.instructions-sidebar a.instructions-sidebar-pdf-button:hover,
.instructions-sidebar a.instructions-sidebar-pdf-button:focus-visible,
.instructions-mobile-nav a.instructions-sidebar-pdf-button:hover,
.instructions-mobile-nav a.instructions-sidebar-pdf-button:focus-visible {
  background:
    radial-gradient(circle at 26% 0%, rgba(255, 255, 255, 0.34), transparent 58%),
    linear-gradient(145deg, rgba(65, 78, 90, 0.98), rgba(7, 16, 27, 0.98));
  color: #ffffff;
}

.instructions-page-toc a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 12px 12px 0;
  color: #647386;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.instructions-page-toc .instructions-toc-title {
  margin-top: 8px;
  color: #263545;
  font-weight: 900;
}

.instructions-page-toc a.is-active {
  border-left-color: #172535;
  background: rgba(31, 45, 58, 0.08);
  color: #152231;
}

.instructions-content {
  --manual-card-gap: 140px;
  display: grid;
  gap: var(--manual-card-gap);
  justify-items: center;
  min-width: 0;
  width: 100%;
}

.instructions-doc-card {
  scroll-margin-top: 182px;
  padding: clamp(24px, 3.2vw, 42px);
  border-radius: 30px;
}

.instructions-doc-card h1 {
  margin: 0 0 6px;
  color: #152231;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.manual-section-heading {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: var(--instructions-content-max);
  margin: 12px auto -42px;
  text-align: center;
  scroll-margin-top: 182px;
}

.instructions-manual-card + .manual-section-heading {
  margin-top: calc(var(--manual-card-gap) * -0.66 + 12px);
  margin-bottom: calc(var(--manual-card-gap) * -0.66 - 42px);
}

.manual-section-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 820px);
  padding: 0 12px;
  background: linear-gradient(100deg, #101820 8%, #334352 48%, #101820 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
}

.instructions-manual-card {
  position: relative;
  overflow: visible;
  display: grid;
  gap: 0;
  width: 100%;
  max-width: var(--instructions-content-max);
  padding: clamp(8px, 0.9vw, 14px);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 42%, rgba(232, 236, 240, 0.68) 100%),
    linear-gradient(90deg, rgba(232, 236, 240, 0.58) 0%, rgba(255, 255, 255, 0.92) 18%, rgba(255, 255, 255, 0.94) 82%, rgba(232, 236, 240, 0.58) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 28px 0 52px rgba(255, 255, 255, 0.52),
    inset -28px 0 52px rgba(255, 255, 255, 0.46),
    inset 0 -42px 72px rgba(168, 185, 198, 0.16),
    0 22px 46px rgba(17, 17, 17, 0.055);
  backdrop-filter: blur(16px);
}

.instructions-manual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, rgba(232, 236, 240, 0.46), transparent 32rem),
    linear-gradient(180deg, transparent 0 52%, rgba(232, 236, 240, 0.22) 100%);
  z-index: 0;
}

.instructions-manual-card > * {
  position: relative;
  z-index: 1;
}

.manual-shot {
  position: relative;
  display: grid;
  justify-items: center;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(8px, 0.8vw, 12px);
  padding-top: clamp(28px, 2.6vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 24px 0 42px rgba(255, 255, 255, 0.2),
    inset -24px 0 42px rgba(232, 236, 240, 0.14);
  overflow: visible;
}

.manual-card-site-link {
  position: absolute;
  left: 50%;
  top: 0;
  width: max-content;
  max-width: 70%;
  min-width: 0;
  padding: 5px 13px 7px;
  border: 1px solid rgba(22, 40, 58, 0.28);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 1), transparent 4.8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 236, 240, 0.98));
  color: #111111;
  font-size: clamp(11px, 0.92vw, 14.5px);
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -10px 18px rgba(40, 46, 52, 0.08),
    0 8px 18px rgba(17, 17, 17, 0.18);
  transform: translate(-50%, -50%);
  z-index: 30;
}

.manual-card-site-link::after,
.manual-copy-text a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.75;
}

.manual-copy-text a::after {
  background: linear-gradient(90deg, transparent, rgba(22, 40, 58, 0.72), transparent);
  opacity: 0.82;
}

.manual-card-site-link::after {
  background: linear-gradient(90deg, transparent, rgba(22, 40, 58, 0.78), transparent);
  opacity: 0.9;
}

.manual-card-site-link:hover,
.manual-card-site-link:focus-visible {
  color: #111111;
  filter: brightness(1.04);
  outline: none;
}

.manual-shot img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 760px);
  height: auto;
  margin-inline: auto;
  border-radius: 16px;
  object-fit: contain;
}

.manual-shot.is-lightbox-ready {
  cursor: zoom-in;
}

.manual-shot.is-lightbox-ready:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.38);
  outline-offset: 6px;
}

.manual-shot.is-wide-shot img {
  width: 100%;
  max-height: none;
}

.manual-shot.is-wide-shot {
  padding-right: clamp(4px, 0.45vw, 8px);
  padding-left: clamp(4px, 0.45vw, 8px);
}

.has-manual-lightbox {
  overflow: hidden;
}

.manual-lightbox[hidden] {
  display: none;
}

.manual-lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.4vw, 32px);
  box-sizing: border-box;
}

.manual-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 30rem),
    rgba(10, 13, 16, 0.92);
  backdrop-filter: blur(18px);
}

.manual-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(98vw, 1720px);
  height: min(94vh, 1080px);
  padding: clamp(46px, 5vh, 64px) clamp(14px, 2.4vw, 34px) clamp(58px, 6vh, 82px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: clamp(18px, 2vw, 30px);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 24rem),
    linear-gradient(145deg, rgba(38, 45, 51, 0.94), rgba(8, 10, 12, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 80px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.manual-lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.manual-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

.manual-lightbox-site-link {
  position: absolute;
  top: clamp(12px, 1.7vh, 18px);
  left: 50%;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  min-width: 156px;
  padding: 6px 18px 7px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.22), transparent 4rem),
    linear-gradient(145deg, rgba(76, 86, 95, 0.9), rgba(20, 24, 28, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 12px 28px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  transform: translateX(-50%);
}

.manual-lightbox-site-link::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 5px;
  left: 18px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.75;
}

.manual-lightbox.is-landscape-shot .manual-lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.manual-lightbox.is-portrait-shot .manual-lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.manual-lightbox-counter {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.manual-lightbox-close,
.manual-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.28), transparent 2.4rem),
    linear-gradient(145deg, rgba(79, 89, 98, 0.92), rgba(17, 20, 24, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 26px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.manual-lightbox-close {
  top: clamp(10px, 1.4vw, 16px);
  right: clamp(10px, 1.4vw, 16px);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.manual-lightbox-nav {
  top: auto;
  bottom: clamp(14px, 2vh, 22px);
  min-width: 98px;
  width: auto;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  transform: none;
}

.manual-lightbox-prev {
  left: clamp(12px, 2vw, 24px);
}

.manual-lightbox-next {
  right: clamp(12px, 2vw, 24px);
}

.manual-lightbox-close:hover,
.manual-lightbox-close:focus-visible,
.manual-lightbox-nav:hover,
.manual-lightbox-nav:focus-visible {
  outline: none;
  filter: brightness(1.08);
}

@media (max-width: 720px) {
  .manual-lightbox {
    padding: 8px;
  }

  .manual-lightbox-dialog {
    width: 100%;
    height: 100%;
    padding: 54px 10px 62px;
    border-radius: 18px;
  }

  .manual-lightbox-image {
    max-height: 100%;
  }

  .manual-lightbox-nav {
    bottom: 12px;
    min-width: 86px;
    height: 38px;
    padding: 0 14px;
  }

  .manual-lightbox-prev {
    left: calc(50% - 70px);
  }

  .manual-lightbox-next {
    right: calc(50% - 70px);
  }
}

.manual-copy {
  margin: 0;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(232, 236, 240, 0.5) 100%),
    linear-gradient(90deg, rgba(232, 236, 240, 0.36), rgba(255, 255, 255, 0.68) 18% 82%, rgba(232, 236, 240, 0.36));
  box-shadow:
    inset 0 18px 32px rgba(255, 255, 255, 0.38),
    inset 0 -28px 42px rgba(168, 185, 198, 0.18),
    inset 28px 0 46px rgba(255, 255, 255, 0.2),
    inset -28px 0 46px rgba(168, 185, 198, 0.12);
}

.instructions-manual-card:nth-child(3n + 1) .manual-copy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(232, 236, 240, 0.5) 100%),
    linear-gradient(90deg, rgba(232, 236, 240, 0.36), rgba(255, 255, 255, 0.68) 18% 82%, rgba(232, 236, 240, 0.36));
}

.instructions-manual-card:nth-child(3n + 2) .manual-copy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(232, 236, 240, 0.5) 100%),
    linear-gradient(90deg, rgba(232, 236, 240, 0.36), rgba(255, 255, 255, 0.68) 18% 82%, rgba(232, 236, 240, 0.36));
}

.manual-copy-meta {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-copy-text {
  color: rgba(31, 47, 62, 0.92);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 400;
  line-height: 1.46;
  text-wrap: pretty;
}

.manual-copy-text p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.manual-copy-text p + p {
  margin-top: 0.36em;
}

.manual-copy-text .manual-log-structure {
  white-space: nowrap;
}

.manual-copy-text p:first-child {
  color: rgba(31, 47, 62, 0.92);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.manual-copy-text.is-dense {
  max-width: 72rem;
  color: rgba(31, 47, 62, 0.92);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 400;
  line-height: 1.46;
}

.manual-copy-text.is-dense p + p {
  margin-top: 0.36em;
}

.manual-copy-text.is-dense p:first-child {
  font-size: inherit;
}

.manual-copy-text strong {
  color: #142232;
  font-size: inherit;
  font-weight: 900;
  line-height: inherit;
}

.manual-copy-text a {
  position: relative;
  display: inline-flex;
  color: #16283a;
  font-size: inherit;
  font-weight: 900;
  line-height: inherit;
  text-decoration: none;
}

.manual-copy-text a:hover,
.manual-copy-text a:focus-visible {
  filter: brightness(1.14);
  outline: none;
}

.instructions-corner-logo {
  position: fixed;
  left: calc(var(--instructions-fixed-left) + var(--instructions-fixed-width) * 0.075);
  bottom: clamp(16px, 2.5vh, 28px);
  width: calc(var(--instructions-fixed-width) * 0.85);
  max-width: calc(100vw - 44px);
  height: auto;
  z-index: 19;
  pointer-events: none;
  filter: drop-shadow(0 20px 30px rgba(8, 10, 12, 0.18));
}

.instructions-doc-card h2,
.instructions-doc-card h3 {
  scroll-margin-top: 184px;
  color: #172535;
}

.instructions-doc-card h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: clamp(22px, 2vw, 30px);
}

.instructions-doc-card h3 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 20px;
}

.instructions-doc-card p,
.instructions-doc-card li,
.instructions-doc-card td {
  color: #4d5b6c;
  font-size: 16px;
  line-height: 1.68;
}

.instructions-doc-card-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.instructions-doc-card-head > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #1d2a38, #0e141b);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.22);
}

.instructions-doc-card-head p {
  margin: 0;
}

.instructions-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #778397;
  font-size: 13px;
  font-weight: 800;
}

.instructions-breadcrumbs a {
  color: #273749;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.instructions-details {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding-top: 18px;
}

.instructions-details summary,
.instructions-mobile-nav summary {
  cursor: pointer;
  color: #172535;
  font-weight: 900;
}

.instructions-details-body {
  margin-top: 12px;
}

.docs-note {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.docs-note strong {
  display: block;
  margin-bottom: 6px;
  color: #142231;
}

.docs-note p {
  margin: 0;
}

.docs-note.info {
  background: linear-gradient(145deg, rgba(232, 241, 248, 0.94), rgba(255, 255, 255, 0.76));
}

.docs-note.warning {
  background: linear-gradient(145deg, rgba(255, 246, 225, 0.96), rgba(255, 255, 255, 0.74));
}

.docs-steps,
.docs-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 24px;
}

.instructions-doc-card pre {
  overflow: auto;
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: #111820;
  color: #dce8f4;
}

.instructions-doc-card code {
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.docs-table {
  width: 100%;
  margin: 22px 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.docs-table th,
.docs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
  text-align: left;
}

.docs-table th {
  color: #152231;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.instructions-mobile-nav {
  display: none;
  margin-bottom: 24px;
}

.instructions-mobile-nav details {
  padding: 16px;
  border-radius: 22px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.card {
  min-height: 250px;
  padding: 30px;
  transition: transform 360ms ease, background 360ms ease, border-color 360ms ease, box-shadow 360ms ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(0, 0, 0, 0.1);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 1), transparent 14rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(206, 206, 206, 0.78)),
    var(--surface-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -24px 44px rgba(0, 0, 0, 0.06),
    0 28px 58px rgba(0, 0, 0, 0.14);
}

.text-panel,
.series-card,
.cta-panel {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.98), transparent 15rem),
    radial-gradient(circle at 100% 110%, rgba(120, 120, 120, 0.14), transparent 15rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(226, 226, 226, 0.66)),
    var(--surface);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(16px);
}

.text-panel {
  display: grid;
  gap: 18px;
  padding: 36px;
}

.text-panel p,
.cta-panel p {
  margin-bottom: 0;
}

.card-index {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #e6e6e6 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.split-panel,
.comparison,
.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 24px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: linear-gradient(145deg, #ffffff, #dcdcdc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76), 0 8px 18px rgba(0, 0, 0, 0.08);
}

.check-list.muted li::before {
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), 0 8px 16px rgba(0, 0, 0, 0.05);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.series-card {
  min-height: 208px;
  padding: 34px;
  transition: transform 360ms ease, border-color 360ms ease, background 360ms ease, box-shadow 360ms ease;
}

.series-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(0, 0, 0, 0.1);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 1), transparent 15rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(204, 204, 204, 0.78)),
    var(--surface-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -24px 46px rgba(0, 0, 0, 0.06),
    0 26px 58px rgba(0, 0, 0, 0.13);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 42px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(235, 235, 235, 0.72)),
    radial-gradient(circle at 86% 0%, rgba(180, 180, 180, 0.18), transparent 22rem);
}

.cta-panel > div:first-child {
  max-width: 780px;
}

.steps {
  display: grid;
  gap: 16px;
}

.steps div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  transition: transform 340ms ease, box-shadow 340ms ease, background 340ms ease;
}

.steps div:hover {
  transform: translateY(-3px);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 1), transparent 13rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(206, 206, 206, 0.76)),
    var(--surface-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -22px 40px rgba(0, 0, 0, 0.06),
    0 24px 52px rgba(0, 0, 0, 0.13);
}

.steps span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #ffffff, #dcdcdc);
  color: #3f3f3f;
  font-weight: 800;
}

.steps p {
  margin-bottom: 0;
}

.compare-card {
  min-height: 280px;
  padding: 36px;
}

.compare-card.strong {
  border-color: rgba(0, 0, 0, 0.1);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 1), transparent 16rem),
    radial-gradient(circle at 100% 0%, rgba(104, 104, 104, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(210, 210, 210, 0.72));
  box-shadow: var(--shadow-deep);
}

.compare-card span {
  display: inline-flex;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(180, 180, 180, 0.18);
  color: #3f3f3f;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.docs-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.docs-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.docs-sidebar a {
  padding: 12px 15px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  transition: transform 320ms ease, background 320ms ease, color 320ms ease, box-shadow 320ms ease;
}

.docs-sidebar a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.docs-content {
  display: grid;
  gap: 28px;
  padding: 38px;
}

.docs-content article + article {
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-list details {
  padding: 26px 30px;
  transition: transform 340ms ease, background 340ms ease, box-shadow 340ms ease;
}

.faq-list details:hover {
  transform: translateY(-3px);
  background: var(--surface-strong);
  box-shadow: var(--shadow-hover);
}

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-size: 23px;
  font-weight: 800;
}

.faq-list p {
  margin-top: 16px;
  margin-bottom: 0;
}

.firmware-faq {
  padding-top: clamp(56px, 7vw, 104px);
}

.firmware-faq .section-heading {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.firmware-faq-list {
  width: min(100%, 980px);
  margin-inline: auto;
}

.firmware-faq-list details {
  overflow: hidden;
  padding: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.98), transparent 14rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(226, 226, 226, 0.66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -18px 46px rgba(0, 0, 0, 0.045),
    0 20px 52px rgba(0, 0, 0, 0.08);
}

.firmware-faq-list summary {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 28px;
  list-style: none;
}

.firmware-faq-list summary::-webkit-details-marker {
  display: none;
}

.firmware-faq-list summary::after {
  content: "+";
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.35), transparent 1.4rem),
    linear-gradient(145deg, #2d2d2d, #060606);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 26px rgba(0, 0, 0, 0.14);
  transition: transform 320ms ease, background 320ms ease;
}

.firmware-faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.firmware-faq-list details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 360ms ease, content-visibility 360ms allow-discrete;
}

.firmware-faq-list details[open]::details-content {
  block-size: auto;
}

.firmware-faq-list .faq-answer {
  padding: 0 28px 26px;
}

.firmware-faq-list .faq-answer p {
  max-width: 820px;
  margin: 0;
  color: rgba(31, 41, 51, 0.72);
  font-size: 18px;
  line-height: 1.55;
}

.firmware-faq-list .faq-answer a {
  position: relative;
  display: inline-flex;
  width: fit-content;
  color: rgba(19, 34, 50, 0.94);
  font-weight: 800;
  text-decoration: none;
  transition: color 220ms ease, filter 220ms ease;
}

.firmware-faq-list .faq-answer a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(19, 34, 50, 0.68), transparent);
  opacity: 0.82;
}

.firmware-faq-list .faq-answer a:hover,
.firmware-faq-list .faq-answer a:focus-visible {
  color: rgba(7, 20, 32, 0.98);
  filter: brightness(1.08);
}

.site-footer {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  width: 100%;
  margin-top: 28px;
  margin-inline: 0;
  padding: 18px max(42px, calc((100vw - var(--max)) / 2 + 22px)) 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 86% 120%, rgba(255, 255, 255, 0.12), transparent 18rem),
    linear-gradient(115deg, #111111 0%, #2b2b2b 42%, #080808 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -22px 44px rgba(0, 0, 0, 0.34),
    0 -14px 46px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
  overflow: visible;
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.16) 42%, transparent 68%);
  transform: translateX(-65%);
  animation: footer-sheen 7s ease-in-out infinite;
}

.site-footer strong {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.site-footer p {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.35;
}

.footer-domain {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-top: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(90deg, #ffffff 0%, #b8c1c9 48%, #ffffff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.24);
  transition: filter 240ms ease, transform 240ms ease;
}

.footer-email {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
  color: rgba(237, 245, 251, 0.82);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 220ms ease, filter 220ms ease;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: rgba(255, 255, 255, 0.96);
  filter: brightness(1.08);
}

.footer-domain::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.75;
}

.footer-domain:hover {
  filter: brightness(1.14);
  transform: translateY(-1px);
}

.footer-bottom {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin-top: -2px;
}

.footer-brand-block {
  position: static;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.footer-brand-block > div {
  min-width: 0;
}

.footer-visual {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 272px;
  gap: 8px;
  flex: 0 0 auto;
  transform: translateY(-3px);
}

.footer-logo-art {
  flex: 0 0 auto;
  width: auto;
  height: 70px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
  opacity: 1;
  pointer-events: none;
  user-select: none;
}

.footer-actions {
  position: relative;
  z-index: 7;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
}

.footer-actions .social-link,
.social-telegram-picker > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(6, 7, 8, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.14), transparent 0.5rem),
    linear-gradient(145deg, rgba(54, 58, 61, 0.96), rgba(12, 13, 14, 0.96) 58%, rgba(0, 0, 0, 0.98));
  color: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -13px 22px rgba(0, 0, 0, 0.5),
    0 12px 28px rgba(0, 0, 0, 0.28);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    color 260ms ease,
    box-shadow 260ms ease;
}

.social-telegram-picker {
  position: relative;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.social-telegram-picker > summary {
  cursor: pointer;
  list-style: none;
  outline: none;
  user-select: none;
}

.social-telegram-picker > summary::-webkit-details-marker {
  display: none;
}

.social-telegram-menu {
  position: absolute;
  z-index: 40;
  right: -6px;
  bottom: calc(100% + 12px);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 194px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18), transparent 3.8rem),
    linear-gradient(145deg, rgba(61, 66, 70, 0.98), rgba(14, 15, 16, 0.98) 62%, rgba(0, 0, 0, 0.98));
  color: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -14px 28px rgba(0, 0, 0, 0.42),
    0 20px 42px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: 82% 100%;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.social-telegram-picker[open] .social-telegram-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.social-telegram-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.16), transparent 1.8rem),
    linear-gradient(145deg, rgba(39, 43, 46, 0.98), rgba(8, 9, 10, 0.98));
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.footer-actions .social-link svg,
.social-telegram-picker > summary svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.22));
}

.footer-actions .social-link svg path,
.social-telegram-picker > summary svg path {
  fill: currentColor;
}

.footer-actions .social-link:hover,
.footer-actions .social-link:focus-visible,
.social-telegram-picker:hover > summary,
.social-telegram-picker:focus-within > summary,
.social-telegram-picker[open] > summary {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(0, 0, 0, 0.92);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.2), transparent 0.55rem),
    linear-gradient(145deg, rgba(72, 76, 80, 0.98), rgba(18, 19, 21, 0.98) 58%, rgba(0, 0, 0, 0.98));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -13px 22px rgba(0, 0, 0, 0.48),
    0 16px 34px rgba(0, 0, 0, 0.36);
}

.social-telegram-option:hover,
.social-telegram-option:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.22), transparent 1.8rem),
    linear-gradient(145deg, rgba(56, 60, 64, 0.98), rgba(12, 13, 14, 0.98));
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 22px rgba(0, 0, 0, 0.3);
}

.hero,
.page-hero,
.section {
  animation: fade-rise 520ms ease both;
}

.home-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-height: auto;
  margin-top: 96px;
  padding: clamp(86px, 10vw, 128px) 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: none;
}

.home-hero:hover {
  transform: none;
  box-shadow: none;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.home-hero::before {
  display: none;
}

.home-hero::after {
  display: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
}

.home-hero-copy {
  display: grid;
  justify-items: center;
  width: min(100%, 920px);
  min-width: 0;
  text-align: center;
}

.home-hero h1 {
  max-width: 1000px;
  margin: 0 auto 18px;
  font-size: clamp(34px, 3.7vw, 45px);
  line-height: 1.08;
  overflow-wrap: normal;
}

.home-hero h1 .h1-line {
  display: inline-block;
  white-space: nowrap;
}

.home-hero .lead {
  max-width: 680px;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.42;
}

.home-product {
  align-items: center;
}

.home-product > div:first-child,
.home-launch > div:first-child {
  padding: 22px 0;
}

.home-launch {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
  grid-template-columns: minmax(320px, 620px) minmax(260px, 1fr);
  gap: clamp(18px, 5vw, 86px);
  align-items: center;
  margin-top: 0;
  padding-top: 8px;
  padding-bottom: 42px;
}

.home-launch > .home-launch-copy {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  justify-content: stretch;
  align-self: start;
  justify-self: stretch;
  padding: 10px 0 0;
}

.home-launch .home-launch-copy {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  gap: 14px;
  justify-content: stretch;
  align-self: start;
  padding: 0;
}

.home-launch-title {
  margin: 6px 0 0;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.08;
}

.home-launch .eyebrow {
  margin: 0;
}

.launch-download-button {
  min-width: 104px;
  min-height: 38px;
  padding: 8px 17px;
  border-color: rgba(255, 255, 255, 0.28);
  font-size: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -13px 22px rgba(0, 0, 0, 0.38),
    0 14px 30px rgba(0, 0, 0, 0.2),
    0 5px 12px rgba(0, 0, 0, 0.14);
}

.home-launch .steps {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  margin-top: 0;
}

.support-note {
  width: 100%;
  max-width: 620px;
  margin: 2px 0 0;
  justify-self: center;
  color: rgba(17, 17, 17, 0.68);
  font-size: 15px;
  line-height: 1.38;
  text-align: center;
}

.support-note a,
.feature-inline-link {
  color: #111111;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.34);
}

.feature-inline-link {
  display: inline-block;
  margin-top: 10px;
}

.feature-text-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.feature-text-link:hover {
  color: inherit;
}

.brand-word-split {
  display: inline;
}

.launch-visual {
  position: relative;
  display: grid;
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  place-items: center;
  justify-self: center;
  align-self: center;
  grid-column: 2;
  grid-row: 1;
  transform: translateY(-36px);
  pointer-events: none;
}

.launch-visual::before {
  display: none;
}

.launch-video-source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.launch-video-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.18);
  opacity: 1;
}

.home-product .text-panel {
  justify-content: center;
  gap: 7px;
  padding: 28px;
}

.home-product .text-panel p,
.home-features .section-heading p,
.home-compatibility .section-heading p,
.home-cta p {
  font-size: 18px;
  line-height: 1.46;
}

.home-product .text-panel,
.home-launch .steps,
.home-comparison .compare-card,
.home-compatibility .series-card,
.home-cta {
  position: relative;
}

.home-product .text-panel::before,
.home-cta::before {
  display: none;
}

.home-features {
  position: relative;
  overflow: clip;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-features::before,
.home-features::after,
.feature-stage::before,
.feature-stage::after,
.feature-grid::before,
.feature-grid::after {
  display: none;
}

.home-features .section-heading {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.home-features .section-heading p {
  margin-right: auto;
  margin-left: auto;
}

.feature-stage {
  position: relative;
  display: grid;
  min-height: 720px;
  padding: 62px 0 46px;
  align-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feature-stage.is-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feature-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  justify-items: center;
  width: min(32vw, 320px);
  aspect-ratio: 1;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 1), transparent 13rem),
    radial-gradient(circle at 100% 112%, rgba(84, 84, 84, 0.14), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(218, 218, 218, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -22px 40px rgba(0, 0, 0, 0.055),
    0 28px 72px rgba(0, 0, 0, 0.14);
  transform: translate(-50%, -50%);
  transition: transform 520ms ease, box-shadow 520ms ease;
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.feature-core::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.12), transparent 48%);
  pointer-events: none;
}

.feature-core img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -18px 30px rgba(0, 0, 0, 0.055),
    0 18px 42px rgba(0, 0, 0, 0.1);
}

.feature-core img.feature-logo-cutout {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.feature-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(146px, 1fr));
  gap: 20px;
  min-height: 620px;
  perspective: 1400px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-features .feature-card {
  display: flex;
  min-height: 146px;
  padding: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 22px;
  text-align: center;
  transform-origin: center;
  will-change: transform, opacity, filter;
  transition:
    opacity var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay),
    filter var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay),
    transform var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay),
    box-shadow 340ms ease,
    border-color 340ms ease,
    background 340ms ease;
}

.home-features .feature-card h3 {
  max-width: 260px;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.14;
  transition: transform 360ms ease;
}

.home-features .feature-card p {
  max-width: 280px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.38;
  transition: transform 360ms ease;
}

.home-features .feature-card.no-feature-title p {
  max-width: 280px;
  font-size: 15px;
  line-height: 1.38;
  font-weight: 500;
}

.home-features .feature-card .card-index {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 12px;
  transition: transform 360ms ease;
}

.home-features .feature-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  background: rgba(255, 255, 255, 0.72);
}

.home-features .feature-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  transform: translateY(-62px);
  background: rgba(255, 255, 255, 0.72);
}

.home-features .feature-card:nth-child(2) h3 {
  max-width: 230px;
  font-size: 17px;
  line-height: 1.12;
}

.home-features .feature-card:nth-child(2) p {
  max-width: 245px;
  font-size: 14px;
  line-height: 1.34;
}

.home-features .feature-card.no-feature-title:nth-child(2) p {
  max-width: 280px;
  font-size: 15px;
  line-height: 1.38;
}

.home-features .feature-card:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.home-features .feature-card:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
}

.home-features .feature-card:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.home-features .feature-card:nth-child(6) {
  grid-column: 1;
  grid-row: 3;
}

.home-features .feature-card:nth-child(7) {
  grid-column: 2;
  grid-row: 3;
  transform: translateY(46px);
}

.home-features .feature-card:nth-child(8) {
  grid-column: 3;
  grid-row: 3;
}

.home-features .feature-card:nth-child(3n) .card-index {
  background: linear-gradient(145deg, #ffffff 0%, #e4e4e4 100%);
}

.home-features .feature-card:nth-child(1),
.home-features .feature-card:nth-child(3),
.home-features .feature-card:nth-child(6),
.home-features .feature-card:nth-child(8) {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.24), transparent 13rem),
    radial-gradient(circle at 86% 105%, rgba(255, 255, 255, 0.1), transparent 15rem),
    linear-gradient(145deg, #0f0f0f 0%, #3d3d3d 46%, #151515 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 16px 16px 38px rgba(255, 255, 255, 0.055),
    inset 0 -24px 44px rgba(0, 0, 0, 0.38),
    0 30px 70px rgba(0, 0, 0, 0.16),
    0 8px 22px rgba(0, 0, 0, 0.08);
}

.home-features .feature-card:nth-child(1) h3,
.home-features .feature-card:nth-child(3) h3,
.home-features .feature-card:nth-child(6) h3,
.home-features .feature-card:nth-child(8) h3 {
  color: #f5f5f5;
}

.home-features .feature-card:nth-child(1) p,
.home-features .feature-card:nth-child(3) p,
.home-features .feature-card:nth-child(6) p,
.home-features .feature-card:nth-child(8) p {
  color: rgba(255, 255, 255, 0.82);
}

.home-features .feature-card:nth-child(8) .feature-inline-link {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.82);
  font-size: inherit;
  font-weight: 600;
}

.home-features .feature-card:nth-child(1) .card-index,
.home-features .feature-card:nth-child(3) .card-index,
.home-features .feature-card:nth-child(6) .card-index,
.home-features .feature-card:nth-child(8) .card-index {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    rgba(64, 64, 64, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 24px rgba(0, 0, 0, 0.14);
}

.js .feature-stage .feature-card {
  opacity: 0;
  filter: blur(14px);
  transform:
    translate3d(var(--from-x), var(--from-y), 0)
    rotate(var(--from-rotate))
    scale(0.72);
}

.js .feature-stage.is-visible .feature-card {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

.js .feature-stage .feature-card.has-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

.js .feature-stage.is-visible .feature-card:nth-child(2) {
  transform: translateY(-62px) rotate(0deg) scale(1);
}

.js .feature-stage .feature-card.has-revealed:nth-child(2) {
  transform: translateY(-62px) rotate(0deg) scale(1);
}

.js .feature-stage.is-visible .feature-card:nth-child(7) {
  transform: translateY(46px) rotate(0deg) scale(1);
}

.js .feature-stage .feature-card.has-revealed:nth-child(7) {
  transform: translateY(46px) rotate(0deg) scale(1);
}

.feature-stage.is-visible .feature-core {
  transform: translate(-50%, -50%) scale(1);
}

.home-features .feature-card:hover {
  transform: translateY(-9px) scale(1.018);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -24px 44px rgba(0, 0, 0, 0.065),
    0 34px 70px rgba(0, 0, 0, 0.16);
}

.home-features .feature-card:nth-child(1):hover,
.home-features .feature-card:nth-child(3):hover,
.home-features .feature-card:nth-child(6):hover,
.home-features .feature-card:nth-child(8):hover {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.3), transparent 13rem),
    radial-gradient(circle at 92% 110%, rgba(255, 255, 255, 0.12), transparent 15rem),
    linear-gradient(145deg, #151515 0%, #494949 48%, #101010 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 16px 16px 40px rgba(255, 255, 255, 0.07),
    inset 0 -28px 50px rgba(0, 0, 0, 0.42),
    0 36px 84px rgba(0, 0, 0, 0.2),
    0 10px 26px rgba(0, 0, 0, 0.12);
}

.home-features .feature-card:hover .card-index {
  transform: translate3d(2px, -3px, 0) scale(1.04);
}

.home-features .feature-card:hover h3 {
  transform: translate3d(0, -2px, 0);
}

.home-features .feature-card:hover p {
  transform: translate3d(0, 2px, 0);
}

@keyframes feature-unfold {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform:
      translate3d(var(--from-x), var(--from-y), 0)
      rotate(var(--from-rotate))
      scale(0.72);
  }
  72% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, -10px, 0) rotate(0deg) scale(1.018);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes feature-core-settle {
  0% {
    transform: translateX(-50%) scale(0.96);
  }
  60% {
    transform: translateX(-50%) scale(1.025);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes feature-unfold-mobile {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, -90px, 0) rotate(0deg) scale(0.88);
  }
  72% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, -8px, 0) rotate(0deg) scale(1.012);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

.home-comparison {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  perspective: 1400px;
}

.home-comparison .compare-card {
  min-height: 100%;
  width: 100%;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 1), transparent 15rem),
    radial-gradient(circle at 92% 108%, rgba(90, 90, 90, 0.2), transparent 17rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(220, 220, 220, 0.74) 52%, rgba(250, 250, 250, 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -30px 56px rgba(0, 0, 0, 0.06),
    inset 24px 24px 54px rgba(255, 255, 255, 0.44),
    0 34px 80px rgba(0, 0, 0, 0.14),
    0 10px 26px rgba(0, 0, 0, 0.07);
  transform: rotateX(0deg) rotateY(0deg) translateZ(0);
  transition: transform 420ms ease, box-shadow 420ms ease, border-color 420ms ease;
  transform-style: preserve-3d;
}

.home-comparison .compare-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.12), transparent 48%);
  pointer-events: none;
}

.home-comparison .compare-card:hover {
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -34px 62px rgba(0, 0, 0, 0.075),
    inset 26px 26px 56px rgba(255, 255, 255, 0.5),
    0 42px 94px rgba(0, 0, 0, 0.17),
    0 14px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-8px) rotateX(1.5deg) rotateY(-1.5deg) scale(1.01);
}

.home-comparison .compare-card h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 3vw, 40px);
}

.home-comparison .compare-card > span,
.home-comparison .check-list {
  position: relative;
  z-index: 1;
}

.home-comparison .check-list {
  gap: 9px;
  margin-top: 20px;
}

.home-comparison .check-list li {
  font-size: 17px;
  line-height: 1.38;
}

.home-comparison .compare-card.strong {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.24), transparent 14rem),
    radial-gradient(circle at 88% 108%, rgba(255, 255, 255, 0.1), transparent 18rem),
    linear-gradient(145deg, #0f0f0f 0%, #3d3d3d 48%, #151515 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 18px 18px 40px rgba(255, 255, 255, 0.055),
    inset 0 -28px 52px rgba(0, 0, 0, 0.4),
    0 34px 82px rgba(0, 0, 0, 0.2),
    0 10px 26px rgba(0, 0, 0, 0.1);
}

.home-comparison .compare-card.strong::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.28), transparent 48%);
}

.home-comparison .compare-card.strong h2,
.home-comparison .compare-card.strong .check-list li {
  color: #f4f4f4;
}

.home-comparison .compare-card.strong > span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(65, 65, 65, 0.42);
  color: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.14);
}

.home-comparison .compare-card.strong .check-list li::before {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(82, 82, 82, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

.download-strip {
  display: flex;
  justify-content: center;
  padding-top: 8px;
  padding-bottom: 34px;
}

.download-button {
  position: relative;
  display: inline-flex;
  min-width: 238px;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.26), transparent 12rem),
    linear-gradient(135deg, #111111 0%, #4a4a4a 48%, #0a0a0a 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -20px 36px rgba(0, 0, 0, 0.34),
    0 24px 60px rgba(0, 0, 0, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 340ms ease, background 340ms ease, box-shadow 340ms ease, border-color 340ms ease;
}

.download-strip .download-button {
  min-width: 318px;
  min-height: 45px;
  padding: 0 34px;
}

.download-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.28) 44%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 620ms ease;
}

.download-button:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.36), transparent 8rem),
    linear-gradient(135deg, #2c343d 0%, #5d6874 48%, #1a2027 100%);
  transform: translateY(-3px) scale(1.012);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -22px 40px rgba(0, 0, 0, 0.38),
    0 30px 74px rgba(0, 0, 0, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

.download-button:hover::before {
  transform: translateX(120%);
}

.download-button.launch-download-button {
  min-width: 154px;
  min-height: 44px;
  padding: 9px 18px;
  border-color: rgba(255, 255, 255, 0.3);
  font-size: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -14px 24px rgba(0, 0, 0, 0.4),
    0 16px 34px rgba(0, 0, 0, 0.22),
    0 5px 14px rgba(0, 0, 0, 0.16);
}

.home-launch > div:first-child .launch-download-button {
  justify-self: center;
  width: auto;
  min-width: 174px;
  margin-top: 10px;
  transform: none;
}

.home-launch > div:first-child .launch-download-button:hover {
  transform: translateY(-2px) scale(1.012);
}

.header-download-button {
  position: relative;
  right: auto;
  top: auto;
  z-index: 1;
  margin-left: auto;
  min-width: 158px;
  border-color: rgba(255, 255, 255, 0.38);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.36), transparent 8rem),
    linear-gradient(135deg, #2c343d 0%, #5d6874 48%, #1a2027 100%);
  color: #f7fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -12px 22px rgba(0, 0, 0, 0.28),
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 5px 12px rgba(0, 0, 0, 0.12);
  transform: none;
}

.nav a.header-download-button,
.nav a.header-download-button:hover {
  color: #f7fbff;
}

.header-download-button:hover {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.22), transparent 7rem),
    linear-gradient(135deg, #151b22 0%, #34404d 46%, #06080b 100%);
  color: #ffffff;
  transform: translateY(-2px) scale(1.012);
}

.home-compatibility .series-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-compatibility .series-card {
  min-height: 168px;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.home-compatibility .series-card h3 {
  font-size: 22px;
}

.home-compatibility .series-card p {
  font-size: 17px;
  line-height: 1.42;
}

.home-launch .steps div {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 20px;
}

.home-launch .steps span {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.home-launch .steps p {
  font-size: clamp(13px, 1.08vw, 15px);
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.firmware-launch {
  display: grid;
  grid-template-columns: minmax(0, 590px) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 76px);
  align-items: center;
  justify-items: start;
  padding-top: 18px;
  padding-bottom: 30px;
}

.firmware-launch.firmware-overview {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
}

.firmware-launch-table {
  position: relative;
  overflow: hidden;
  width: min(100%, 590px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.18), transparent 16rem),
    radial-gradient(circle at 86% 12%, rgba(143, 160, 174, 0.24), transparent 15rem),
    linear-gradient(145deg, rgba(70, 77, 84, 0.96), rgba(31, 35, 39, 0.98) 52%, rgba(11, 13, 15, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 18px 18px 42px rgba(255, 255, 255, 0.06),
    inset -26px -30px 54px rgba(0, 0, 0, 0.28),
    0 28px 64px rgba(0, 0, 0, 0.16);
  transform-style: preserve-3d;
}

.firmware-launch-table::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 14%, rgba(255, 255, 255, 0.14) 25%, transparent 37%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%, rgba(0, 0, 0, 0.18));
}

.firmware-launch-table > * {
  position: relative;
  z-index: 1;
}

.firmware-launch-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.firmware-launch .eyebrow {
  min-height: 28px;
  padding: 6px 12px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
}

.firmware-launch h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.04;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.firmware-launch-summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.34;
}

.firmware-launch-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 14px 0 14px;
}

.firmware-launch-checks span {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.24;
}

.firmware-launch-checks span::before {
  content: "";
  position: absolute;
  top: 0.18em;
  left: 0;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.86), transparent 60%),
    linear-gradient(145deg, rgba(239, 243, 246, 0.74), rgba(133, 146, 156, 0.48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 8px 16px rgba(0, 0, 0, 0.14);
}

.firmware-launch-rows {
  display: grid;
  gap: 8px;
}

.firmware-launch-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 30px rgba(0, 0, 0, 0.12);
}

.firmware-launch-row > span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.94), transparent 4rem),
    linear-gradient(145deg, rgba(244, 247, 249, 0.9), rgba(147, 158, 169, 0.64));
  color: rgba(18, 24, 30, 0.84);
  font-size: 18px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 10px 20px rgba(0, 0, 0, 0.15);
}

.firmware-launch-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.26;
}

.firmware-launch-row strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

.firmware-launch-space {
  min-height: 1px;
}

.firmware-sd-guide {
  width: 100%;
  min-width: 0;
  align-self: center;
}

.firmware-sd-guide-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.96), transparent 15rem),
    radial-gradient(circle at 100% 8%, rgba(208, 218, 226, 0.52), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(238, 241, 243, 0.76) 54%, rgba(221, 226, 231, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 18px 18px 46px rgba(255, 255, 255, 0.36),
    inset -24px -28px 58px rgba(96, 108, 118, 0.12),
    0 28px 70px rgba(16, 19, 22, 0.12);
}

.firmware-sd-guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, transparent 0 16%, rgba(255, 255, 255, 0.72) 26%, transparent 39%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 48%, rgba(16, 19, 22, 0.04));
}

.firmware-sd-guide-card > * {
  position: relative;
  z-index: 1;
}

.firmware-sd-guide-card h2 {
  max-width: 780px;
  margin: 0 0 20px;
  color: #111111;
  font-size: clamp(22px, 2.35vw, 30px);
  line-height: 1.1;
  letter-spacing: 0;
}

.firmware-sd-guide-group {
  display: grid;
  gap: 10px;
}

.firmware-sd-guide-group + .firmware-sd-guide-group {
  margin-top: 18px;
}

.firmware-sd-guide-group h3 {
  margin: 0;
  color: rgba(17, 17, 17, 0.9);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.2;
  letter-spacing: 0;
}

.firmware-sd-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.firmware-sd-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: rgba(17, 17, 17, 0.72);
  font-size: clamp(13px, 1.06vw, 15px);
  line-height: 1.3;
}

.firmware-sd-steps li::before {
  content: "-";
  color: rgba(17, 17, 17, 0.86);
  font-weight: 900;
}

.firmware-sd-steps a {
  position: relative;
  color: #111111;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.firmware-sd-steps a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.18);
  opacity: 0.84;
}

.firmware-overview .firmware-features {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  align-self: center;
}

.firmware-overview .firmware-features .section-heading {
  max-width: 100%;
  margin-bottom: 12px;
}

.firmware-overview .firmware-features .section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.02;
}

.firmware-overview .firmware-features .feature-stage {
  min-height: 520px;
  padding: 0;
}

.firmware-overview .firmware-features .feature-grid {
  min-height: 500px;
  grid-template-rows: repeat(3, minmax(128px, 1fr));
  gap: 12px;
}

.firmware-overview .firmware-features .feature-card {
  min-height: 128px;
  padding: 16px 13px;
}

.firmware-overview .firmware-features .feature-card h3 {
  font-size: clamp(14px, 1.15vw, 18px);
}

.firmware-overview .firmware-features .feature-card p {
  font-size: clamp(12px, 0.92vw, 14px);
  line-height: 1.24;
}

.firmware-overview .firmware-features .feature-core {
  width: min(19vw, 214px);
  padding: 12px;
}

.firmware-overview .firmware-features .feature-stage.is-static .feature-card,
.js .firmware-overview .firmware-features .feature-stage.is-static .feature-card {
  opacity: 1 !important;
  filter: blur(0) !important;
  transition: none !important;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1) !important;
}

.firmware-overview .firmware-features .feature-stage.is-static .feature-card:nth-child(1),
.firmware-overview .firmware-features .feature-stage.is-static .feature-card:nth-child(4),
.js .firmware-overview .firmware-features .feature-stage.is-static .feature-card:nth-child(1),
.js .firmware-overview .firmware-features .feature-stage.is-static .feature-card:nth-child(4) {
  transform: translate3d(-16px, 0, 0) rotate(0deg) scale(1) !important;
}

.firmware-overview .firmware-features .feature-stage.is-static .feature-card:nth-child(3),
.firmware-overview .firmware-features .feature-stage.is-static .feature-card:nth-child(5),
.js .firmware-overview .firmware-features .feature-stage.is-static .feature-card:nth-child(3),
.js .firmware-overview .firmware-features .feature-stage.is-static .feature-card:nth-child(5) {
  transform: translate3d(16px, 0, 0) rotate(0deg) scale(1) !important;
}

.firmware-overview .firmware-features .feature-stage.is-static .feature-card:nth-child(2),
.js .firmware-overview .firmware-features .feature-stage.is-static .feature-card:nth-child(2) {
  transform: translateY(-34px) rotate(0deg) scale(1) !important;
}

.firmware-overview .firmware-features .feature-stage.is-static .feature-card:nth-child(6),
.js .firmware-overview .firmware-features .feature-stage.is-static .feature-card:nth-child(6) {
  transform: translateY(34px) rotate(0deg) scale(1) !important;
}

.firmware-overview .firmware-features .feature-stage.is-static .feature-core {
  transition: none !important;
  transform: translate(-50%, -50%) scale(1);
}

.gminer-feature-tabs {
  display: flex;
  min-height: clamp(230px, 31vh, 310px);
  align-items: center;
  justify-content: center;
  padding-block: clamp(38px, 5vh, 58px);
}

.firmware-page-hero + .gminer-feature-tabs {
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 10px;
}

main > .gminer-feature-tabs:first-child {
  min-height: 0;
  padding-top: clamp(92px, 11vh, 118px);
  padding-bottom: clamp(22px, 3vh, 34px);
}

main > .gminer-feature-tabs:first-child + .firmware-page-hero {
  padding-top: clamp(20px, 3vh, 34px);
}

.feature-tabs-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 1120px);
  margin-inline: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.feature-tabs-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
  text-align: center;
}

.feature-tabs-heading .eyebrow {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.68);
  color: rgba(17, 24, 39, 0.64);
}

.feature-tabs-heading h2 {
  margin: 0;
  color: #111111;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.04;
}

.feature-tabs-list {
  display: grid;
  grid-template-columns: repeat(9, auto);
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.55vw, 7px);
  overflow: visible;
  max-width: 100%;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.feature-tabs-list::-webkit-scrollbar {
  display: none;
}

.feature-tab-trigger {
  display: grid;
  width: clamp(68px, 7.35vw, 86px);
  min-height: 88px;
  place-items: center;
  gap: 7px;
  padding: 8px 4px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: rgba(17, 24, 39, 0.78);
  cursor: pointer;
  text-align: center;
  box-shadow: none;
  transition: transform 320ms ease, color 320ms ease, background 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.feature-tab-trigger:hover,
.feature-tab-trigger.is-active {
  transform: translateY(-3px);
  color: #111111;
  background: transparent;
  box-shadow: none;
}

.feature-tab-trigger:hover .feature-tab-icon,
.feature-tab-trigger.is-active .feature-tab-icon {
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.42), transparent 4.5rem),
    linear-gradient(145deg, #2c3f50, #17212b 58%, #090909);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -15px 26px rgba(0, 0, 0, 0.34),
    0 18px 30px rgba(0, 0, 0, 0.22);
}

.feature-tab-connector {
  align-self: center;
  margin-top: -18px;
  color: rgba(17, 24, 39, 0.3);
  font-size: clamp(14px, 1.55vw, 19px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.feature-tab-icon {
  display: grid;
  width: clamp(36px, 3.8vw, 42px);
  height: clamp(36px, 3.8vw, 42px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  background:
    radial-gradient(circle at 28% 14%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08) 34%, transparent 66%),
    linear-gradient(145deg, #334454, #17212b 56%, #08090a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset -8px -10px 18px rgba(0, 0, 0, 0.46),
    0 12px 22px rgba(0, 0, 0, 0.22);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 320ms ease, color 320ms ease, background 320ms ease, box-shadow 320ms ease;
}

.feature-tab-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.feature-tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-tab-label {
  position: relative;
  display: inline-flex;
  width: fit-content;
  justify-self: center;
  color: currentColor;
  font-size: clamp(9.5px, 0.82vw, 11px);
  font-weight: 700;
  line-height: 1.18;
  opacity: 0.68;
}

.feature-tab-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: min(100%, 58px);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.42;
  transform: translateX(-50%) scaleX(0.74);
  transform-origin: center;
  transition: opacity 280ms ease, transform 280ms ease;
}

.feature-tab-trigger:hover .feature-tab-label::after,
.feature-tab-trigger.is-active .feature-tab-label::after {
  opacity: 0.76;
  transform: translateX(-50%) scaleX(1);
}

.feature-tabs-more {
  position: relative;
  display: inline-flex;
  width: fit-content;
  justify-self: center;
  margin: 4px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(17, 24, 39, 0.72);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: filter 240ms ease, transform 240ms ease;
}

.feature-tabs-more::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(17, 24, 39, 0.55), transparent);
  opacity: 0.75;
}

.feature-tabs-more:hover {
  filter: brightness(0.88);
  transform: translateY(-1px);
}

.manual-pdf-download-wrap,
.home-manual-pdf-download-wrap,
.archive-manual-pdf-download-wrap {
  width: min(920px, calc(100% - 32px));
  text-align: center;
}

.manual-pdf-download-wrap {
  margin: 29px auto 54px;
}

.manual-pdf-download-wrap--between {
  margin: 31px auto 58px;
}

.manual-pdf-download-wrap--after-manual {
  margin: 31px auto 70px;
}

.home-manual-pdf-download-wrap {
  margin: 17px auto 46px;
}

.archive-manual-pdf-download-wrap {
  margin: 22px auto 92px;
}

#manual-pdf-download-section {
  scroll-margin-top: clamp(138px, 18vh, 210px);
}

.manual-pdf-download {
  position: relative;
  display: inline-block;
  padding-bottom: 0.16em;
  color: rgba(34, 49, 62, 0.78);
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, filter 180ms ease;
}

.manual-pdf-download::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, currentColor 16%, currentColor 84%, transparent);
  opacity: 0.48;
  box-shadow: 0 6px 16px rgba(34, 49, 62, 0.18);
  transform: scaleX(0.92);
  transition: opacity 180ms ease, transform 180ms ease;
}

.manual-pdf-download:hover,
.manual-pdf-download:focus-visible {
  color: rgba(12, 25, 38, 0.92);
  filter: brightness(0.92);
}

.manual-pdf-download:hover::after,
.manual-pdf-download:focus-visible::after {
  opacity: 0.76;
  transform: scaleX(1);
}

.feature-tab-panels {
  display: grid;
  width: 100%;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: max-height 420ms ease, margin-top 320ms ease, opacity 320ms ease, transform 320ms ease;
}

.feature-tabs-panel.has-selection .feature-tab-panels {
  max-height: 420px;
  margin-top: 14px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.feature-tab-card {
  grid-area: 1 / 1;
  position: relative;
  min-height: 164px;
  padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px) clamp(70px, 6vw, 86px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.26), transparent 14rem),
    linear-gradient(145deg, rgba(26, 44, 61, 0.92), rgba(9, 12, 16, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 38px rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate3d(0, 22px, 0) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 360ms ease,
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 380ms ease,
    visibility 380ms ease;
}

.feature-tab-card.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.feature-tab-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.feature-tab-card strong {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 900;
}

.feature-tab-card-actions {
  position: absolute;
  right: clamp(18px, 2.2vw, 28px);
  bottom: clamp(16px, 2vw, 22px);
  left: clamp(18px, 2.2vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.feature-tab-card-nav {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(16, 25, 34, 0.7);
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 14%, rgba(255, 255, 255, 0.95), transparent 4.2rem),
    linear-gradient(145deg, rgba(242, 246, 249, 0.98), rgba(179, 188, 196, 0.9));
  color: #111820;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -8px 18px rgba(17, 24, 32, 0.14),
    0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 260ms ease, background 260ms ease, box-shadow 260ms ease, color 260ms ease;
}

.feature-tab-card-nav[data-tab-prev] {
  min-width: 108px;
  padding-inline: 16px;
}

.feature-tab-card-nav:hover {
  transform: translateY(-1px);
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.42), transparent 4rem),
    linear-gradient(145deg, rgba(85, 96, 106, 0.96), rgba(19, 25, 32, 0.98));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 14px 26px rgba(0, 0, 0, 0.22);
}

.feature-tab-card p {
  max-width: 980px;
  margin: 0;
  font-size: clamp(15px, 1.34vw, 18px);
  line-height: 1.55;
  white-space: pre-line;
}

.firmware-asic-table {
  padding-top: 12px;
  padding-bottom: 108px;
}

.home-supported-table {
  padding-bottom: 54px;
}

.home-supported-table + .home-features {
  padding-top: 41px;
}

.table-download-strip {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.table-download-button {
  min-height: 44px;
  padding: 0 28px;
  font-size: 15px;
}

.asic-table-intro {
  position: relative;
  z-index: 2;
  display: flex;
  width: clamp(440px, 45vw, 560px);
  min-height: 64px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 22px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 0;
  border-radius: 0 0 34px 34px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.27), transparent 14rem),
    radial-gradient(circle at 75% 18%, rgba(210, 210, 210, 0.12), transparent 14rem),
    linear-gradient(145deg, #0d0d0d 0%, #3f3f3f 45%, #151515 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 20px 18px 36px rgba(255, 255, 255, 0.06),
    inset -18px -24px 48px rgba(0, 0, 0, 0.42),
    0 18px 38px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: translateZ(0);
}

.asic-table-intro::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.28), transparent 55%);
  pointer-events: none;
}

.asic-table-intro::after {
  content: none;
}

.asic-table-intro strong {
  position: relative;
  z-index: 1;
}

.asic-table-intro strong {
  max-width: 100%;
  color: #ffffff;
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.55),
    0 0 18px rgba(255, 255, 255, 0.16);
}

.asic-table-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 1120px);
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  padding-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.28), transparent 15rem),
    radial-gradient(circle at 78% 12%, rgba(210, 210, 210, 0.13), transparent 16rem),
    radial-gradient(circle at 88% 108%, rgba(255, 255, 255, 0.11), transparent 18rem),
    linear-gradient(145deg, #0d0d0d 0%, #3f3f3f 45%, #151515 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 22px 22px 44px rgba(255, 255, 255, 0.065),
    inset -18px -24px 54px rgba(0, 0, 0, 0.48),
    0 40px 92px rgba(0, 0, 0, 0.24),
    0 12px 28px rgba(0, 0, 0, 0.14);
  transform: perspective(1400px) rotateX(1.1deg) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 420ms ease, box-shadow 420ms ease, border-color 420ms ease;
  -webkit-overflow-scrolling: touch;
}

.asic-table-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 31%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.32), transparent 54%);
  pointer-events: none;
}

.asic-table-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -34%;
  left: -18%;
  width: 68%;
  height: 138%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.18) 48%, transparent 72%);
  opacity: 0.72;
  transform: rotate(11deg);
  pointer-events: none;
}

.asic-table-shell:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 24px 24px 48px rgba(255, 255, 255, 0.075),
    inset -20px -28px 58px rgba(0, 0, 0, 0.5),
    0 48px 104px rgba(0, 0, 0, 0.26),
    0 14px 32px rgba(0, 0, 0, 0.15);
  transform: perspective(1400px) rotateX(0deg) translateY(-3px) translateZ(0);
}

.asic-table-shell:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.asic-table {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  color: #f7fbff;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}

.asic-col-name {
  width: 15%;
}

.asic-col-count {
  width: 14%;
}

.asic-col-chip {
  width: 10%;
}

.asic-col-model {
  width: 61%;
}

.asic-table th,
.asic-table td {
  padding: 7px 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
  word-break: normal;
}

.asic-table th:last-child,
.asic-table td:last-child {
  border-right: 0;
}

.asic-table tbody tr:last-child td {
  border-bottom: 0;
}

.asic-table thead th {
  height: 62px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(0, 0, 0, 0.22)),
    linear-gradient(145deg, #171717 0%, #383838 52%, #0b0b0b 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.18);
}

.asic-table tbody tr {
  height: 33px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.055)),
    rgba(14, 14, 14, 0.74);
}

.asic-table tbody tr:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.05)),
    rgba(38, 38, 38, 0.72);
}

.asic-table tbody tr:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.04)),
    rgba(64, 64, 64, 0.76);
}

.asic-table td:nth-child(1) {
  font-weight: 700;
}

.asic-table td:nth-child(2),
.asic-table td:nth-child(3) {
  color: rgba(235, 244, 255, 0.9);
}

.asic-table td:nth-child(4) {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(14px, 1.12vw, 14.4px);
  line-height: 1.32;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.asic-table.is-scrambling tbody td {
  min-height: 28px;
}

.asic-table tbody td.is-waiting {
  color: transparent;
  text-shadow: none;
}

.asic-table tbody td.is-waiting::before {
  content: "\00a0";
}

.asic-table tbody td.is-decoding {
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.22),
    0 1px 0 rgba(0, 0, 0, 0.55);
}

.asic-table-bottom-strip {
  position: relative;
  z-index: 1;
  height: 33px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 20% 100%, rgba(255, 255, 255, 0.14), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18)),
    linear-gradient(145deg, #171717 0%, #383838 52%, #0b0b0b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -12px 24px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.firmware-features .feature-stage {
  min-height: 700px;
  padding: 58px 0 58px;
}

.firmware-features .feature-grid {
  grid-template-rows: repeat(3, minmax(168px, 1fr));
  gap: 22px;
  min-height: 620px;
  align-items: stretch;
}

.firmware-features .feature-card {
  width: 100%;
  min-height: 168px;
  height: 100%;
}

.firmware-features .feature-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.firmware-features .feature-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  transform: none;
}

.firmware-features .feature-card:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.firmware-features .feature-card:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
}

.firmware-features .feature-card:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
}

.firmware-features .feature-card:nth-child(6) {
  grid-column: 2;
  grid-row: 3;
  transform: none;
}

.firmware-features .feature-core {
  width: min(30vw, 300px);
}

.js .firmware-features .feature-stage.is-visible .feature-card,
.js .firmware-features .feature-stage .feature-card.has-revealed,
.js .firmware-features .feature-stage.is-visible .feature-card:nth-child(1),
.js .firmware-features .feature-stage .feature-card.has-revealed:nth-child(1),
.js .firmware-features .feature-stage.is-visible .feature-card:nth-child(2),
.js .firmware-features .feature-stage .feature-card.has-revealed:nth-child(2),
.js .firmware-features .feature-stage.is-visible .feature-card:nth-child(3),
.js .firmware-features .feature-stage .feature-card.has-revealed:nth-child(3),
.js .firmware-features .feature-stage.is-visible .feature-card:nth-child(6),
.js .firmware-features .feature-stage .feature-card.has-revealed:nth-child(6) {
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1) !important;
}

#firmware-features .feature-stage.is-visible .feature-card,
#firmware-features .feature-stage .feature-card.has-revealed,
#firmware-features .feature-stage.is-visible .feature-card:nth-child(1),
#firmware-features .feature-stage .feature-card.has-revealed:nth-child(1),
#firmware-features .feature-stage.is-visible .feature-card:nth-child(2),
#firmware-features .feature-stage .feature-card.has-revealed:nth-child(2),
#firmware-features .feature-stage.is-visible .feature-card:nth-child(3),
#firmware-features .feature-stage .feature-card.has-revealed:nth-child(3),
#firmware-features .feature-stage.is-visible .feature-card:nth-child(6),
#firmware-features .feature-stage .feature-card.has-revealed:nth-child(6) {
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1) !important;
}

html:not(.js) #firmware-features .feature-card:nth-child(1),
html:not(.js) #firmware-features .feature-card:nth-child(4),
#firmware-features .feature-stage.is-visible .feature-card:nth-child(1),
#firmware-features .feature-stage.is-visible .feature-card:nth-child(4),
#firmware-features .feature-stage .feature-card.has-revealed:nth-child(1),
#firmware-features .feature-stage .feature-card.has-revealed:nth-child(4) {
  transform: translate3d(-72px, 0, 0) rotate(0deg) scale(1) !important;
}

html:not(.js) #firmware-features .feature-card:nth-child(3),
html:not(.js) #firmware-features .feature-card:nth-child(5),
#firmware-features .feature-stage.is-visible .feature-card:nth-child(3),
#firmware-features .feature-stage.is-visible .feature-card:nth-child(5),
#firmware-features .feature-stage .feature-card.has-revealed:nth-child(3),
#firmware-features .feature-stage .feature-card.has-revealed:nth-child(5) {
  transform: translate3d(72px, 0, 0) rotate(0deg) scale(1) !important;
}

.firmware-overview #firmware-features .feature-stage.is-visible .feature-card:nth-child(1),
.firmware-overview #firmware-features .feature-stage.is-visible .feature-card:nth-child(4),
.firmware-overview #firmware-features .feature-stage .feature-card.has-revealed:nth-child(1),
.firmware-overview #firmware-features .feature-stage .feature-card.has-revealed:nth-child(4) {
  transform: translate3d(-28px, 0, 0) rotate(0deg) scale(1) !important;
}

.firmware-overview #firmware-features .feature-stage.is-visible .feature-card:nth-child(3),
.firmware-overview #firmware-features .feature-stage.is-visible .feature-card:nth-child(5),
.firmware-overview #firmware-features .feature-stage .feature-card.has-revealed:nth-child(3),
.firmware-overview #firmware-features .feature-stage .feature-card.has-revealed:nth-child(5) {
  transform: translate3d(28px, 0, 0) rotate(0deg) scale(1) !important;
}


.firmware-comparison .compare-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.firmware-comparison .compare-card.strong p {
  color: rgba(255, 255, 255, 0.84);
}

.home-cta {
  overflow: hidden;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 1), transparent 18rem),
    radial-gradient(circle at 100% 110%, rgba(92, 92, 92, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(214, 214, 214, 0.72));
  box-shadow: var(--shadow-deep);
}

.home-cta .actions {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  min-width: 300px;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes footer-sheen {
  0%,
  46% {
    transform: translateX(-72%);
    opacity: 0;
  }
  58% {
    opacity: 0.72;
  }
  78%,
  100% {
    transform: translateX(82%);
    opacity: 0;
  }
}

@keyframes digital-room-drift {
  0% {
    background-position: 0 0, 0 0;
    transform: perspective(900px) rotateX(68deg) translateY(0);
  }
  100% {
    background-position: 0 172px, 0 172px;
    transform: perspective(900px) rotateX(68deg) translateY(86px);
  }
}

@media (max-width: 1040px) {
  body:has(.instructions-docs:not(.firmware-embedded-manual)) {
    --instructions-top-offset: 0px;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
    border-radius: 34px;
  }

  .header-title {
    position: static;
    width: 100%;
    height: 42px;
    transform: none;
  }

  .header-logo-art {
    height: 41px;
    max-width: 48px;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .header-download-button {
    position: static;
    align-self: center;
    margin-top: 0;
    margin-left: 0;
    transform: none;
  }

  .header-download-button:hover {
    transform: translateY(-2px) scale(1.012);
  }

  .launch-visual {
    grid-column: 1;
    grid-row: auto;
    width: min(336px, 100%);
    margin-inline: auto;
  }

  .hero,
  .split-panel,
  .comparison,
  .docs-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .firmware-launch {
    grid-template-columns: minmax(0, 590px) minmax(0, 1fr);
    gap: 18px;
  }

  .home-launch {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    align-items: center;
    margin-inline: auto;
  }

  .home-launch .launch-visual {
    grid-column: 2;
    grid-row: 1;
    transform: translateY(-36px);
  }

  .card-grid,
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-stage {
    min-height: 680px;
    padding: 54px 0 42px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(136px, 1fr));
    gap: 18px;
    min-height: 580px;
  }

  .feature-core {
    width: min(30vw, 280px);
  }

  .home-features .feature-card {
    min-height: 136px;
    padding: 18px;
  }

  .home-features .feature-card h3 {
    font-size: 17px;
  }

  .home-features .feature-card p {
    font-size: 14px;
  }

  .home-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    min-height: auto;
  }

  .cta-panel {
    display: grid;
  }

  .docs-sidebar {
    position: static;
  }

  .instructions-docs {
    --instructions-shell-width: min(var(--max), calc(100vw - 32px));
    width: min(100% - 32px, var(--max));
  }

  .instructions-doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .instructions-docs > .gminer-feature-tabs,
  .instructions-docs > .instructions-intro {
    width: var(--instructions-content-width);
    margin-left: auto;
    margin-right: auto;
  }

  .instructions-page-toc {
    display: none;
  }
}

@media (min-width: 761px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
    column-gap: 16px;
    align-items: center;
    justify-content: center;
  }

  .header-title {
    position: relative;
    grid-column: 1;
    left: auto;
    top: auto;
    justify-content: flex-start;
    justify-self: start;
    width: max-content;
    max-width: 100%;
    transform: none;
  }

  .nav {
    grid-column: 2;
    width: max-content;
    max-width: 100%;
    justify-self: center;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .header-download-button {
    margin-left: 8px;
  }
}

@media (max-width: 880px) {
  .firmware-launch.firmware-overview {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .firmware-overview .firmware-features {
    width: 100%;
  }

  .firmware-overview .firmware-features .feature-stage {
    min-height: 620px;
  }

  .firmware-overview #firmware-features .feature-stage.is-visible .feature-card:nth-child(1),
  .firmware-overview #firmware-features .feature-stage.is-visible .feature-card:nth-child(4),
  .firmware-overview #firmware-features .feature-stage .feature-card.has-revealed:nth-child(1),
  .firmware-overview #firmware-features .feature-stage .feature-card.has-revealed:nth-child(4),
  .firmware-overview #firmware-features .feature-stage.is-visible .feature-card:nth-child(3),
  .firmware-overview #firmware-features .feature-stage.is-visible .feature-card:nth-child(5),
  .firmware-overview #firmware-features .feature-stage .feature-card.has-revealed:nth-child(3),
  .firmware-overview #firmware-features .feature-stage .feature-card.has-revealed:nth-child(5) {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1) !important;
  }
}

@media (max-width: 760px) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  body {
    font-size: 18px;
  }

  .site-header {
    width: min(100% - 24px, var(--max));
  }

  body:has(.instructions-docs:not(.firmware-embedded-manual)) .site-header {
    width: min(100% - 24px, var(--max));
    margin-right: auto;
    margin-left: auto;
  }

  .site-header {
    top: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 28px;
  }

  .header-title {
    gap: 6px;
    font-size: 18px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav a {
    justify-content: center;
    min-height: 40px;
    padding: 9px 10px;
    font-size: 15px;
  }

  .nav .header-download-button {
    min-width: 0;
    margin-left: 0;
    white-space: nowrap;
  }

  .instructions-docs {
    width: min(100% - 24px, var(--max));
    margin-top: 28px;
    margin-bottom: 54px;
  }

  .instructions-topbar {
    top: 10px;
    min-height: 48px;
    margin-bottom: 26px;
    padding: 8px 10px 8px 14px;
    border-radius: 20px;
  }

  .instructions-intro {
    margin-bottom: 26px;
  }

  .instructions-docs > .gminer-feature-tabs,
  .instructions-docs > .instructions-intro {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .instructions-intro h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .instructions-mobile-nav {
    display: block;
  }

  .instructions-doc-layout {
    display: block;
  }

  .instructions-sidebar {
    display: none;
  }

  .instructions-content {
    --manual-card-gap: 35px;
    gap: var(--manual-card-gap);
  }

  .instructions-manual-card + .manual-section-heading {
    margin-top: -22px;
    margin-bottom: -18px;
  }

  .instructions-doc-card {
    scroll-margin-top: 86px;
    padding: 22px;
    border-radius: 24px;
  }

  .instructions-doc-card-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .instructions-doc-card-head > span {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .instructions-doc-card h2,
  .instructions-doc-card h3 {
    scroll-margin-top: 86px;
  }

  .docs-table {
    display: block;
    overflow-x: auto;
  }

  .hero,
  .section,
  .page-hero {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: auto;
    padding: 62px 0 58px;
  }

  .home-hero {
    width: min(100% - 24px, var(--max));
    margin-top: 22px;
    padding: 42px 0 52px;
    border-radius: 0;
  }

  .home-hero h1 {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 34px);
    overflow-wrap: anywhere;
  }

  .home-hero h1 .h1-line {
    white-space: normal;
  }

  .page-hero {
    padding: 66px 0 24px;
  }

  .section {
    padding: 56px 0;
  }

  .gminer-feature-tabs {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .feature-tabs-panel {
    padding: 0;
    border-radius: 0;
  }

  .feature-tabs-heading {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .feature-tabs-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 6px;
    margin-inline: 0;
    padding-inline: 0;
  }

  .feature-tab-trigger {
    width: 100%;
    min-height: 92px;
  }

  .feature-tab-connector {
    display: none;
  }

  .feature-tab-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .feature-tab-card {
    border-radius: 24px;
    min-height: 190px;
    padding-bottom: 74px;
  }

  .feature-tab-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-tab-card-actions {
    width: auto;
    justify-content: space-between;
  }

  .feature-tab-card-nav {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .feature-tab-card-nav[data-tab-prev] {
    min-width: 94px;
  }

  .firmware-asic-table {
    padding-top: 8px;
    padding-bottom: 84px;
  }

  .asic-table-intro {
    width: min(100%, 360px);
    min-height: 62px;
    padding: 9px 12px 10px;
  }

  .asic-table-intro strong {
    font-size: clamp(12px, 3.35vw, 14px);
  }

  .asic-table-shell {
    width: 100%;
    margin-inline: auto;
  }

  .asic-table {
    min-width: 0;
    font-size: 12px;
  }

  .asic-table th,
  .asic-table td {
    padding: 7px 8px;
  }

  .asic-table thead th {
    font-size: 15px;
  }

  .home-launch {
    width: min(100% - 28px, var(--max));
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: 1fr;
  }

  .firmware-launch {
    grid-template-columns: 1fr;
  }

  .firmware-launch-table {
    width: 100%;
    margin-inline: auto;
    padding: 18px;
  }

  .firmware-launch-head,
  .firmware-launch-checks {
    grid-template-columns: 1fr;
  }

  .firmware-launch-space {
    display: none;
  }

  .home-launch .launch-visual {
    grid-column: 1;
    grid-row: auto;
    width: min(300px, 100%);
    transform: none;
  }

  .launch-video-source,
  .launch-video-canvas {
    display: none !important;
  }

  .launch-static-logo {
    display: block;
    width: min(240px, 72vw);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
  }

  .home-comparison {
    grid-template-columns: 1fr;
  }

  .metrics,
  .card-grid,
  .series-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .feature-stage {
    display: block;
    min-height: auto;
    padding-top: 0;
    overflow: visible;
  }

  .feature-core {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 260px);
    margin: 0 auto 22px;
    transform: none;
  }

  .feature-stage.is-visible .feature-core {
    transform: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
    min-height: auto;
    perspective: none;
  }

  .home-features .feature-card,
  .home-features .feature-card:nth-child(1),
  .home-features .feature-card:nth-child(2),
  .home-features .feature-card:nth-child(3),
  .home-features .feature-card:nth-child(4),
  .home-features .feature-card:nth-child(5),
  .home-features .feature-card:nth-child(6),
  .home-features .feature-card:nth-child(7),
  .home-features .feature-card:nth-child(8) {
    grid-column: auto;
    grid-row: auto;
    min-height: 180px;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    will-change: auto;
  }

  .js .feature-stage .feature-card,
  .js .feature-stage.is-visible .feature-card,
  .js .feature-stage .feature-card.has-revealed,
  .js .feature-stage.is-visible .feature-card:nth-child(2),
  .js .feature-stage .feature-card.has-revealed:nth-child(2),
  .js .feature-stage.is-visible .feature-card:nth-child(7),
  .js .feature-stage .feature-card.has-revealed:nth-child(7),
  .home-features .feature-card:hover,
  .home-features .feature-card:nth-child(1):hover,
  .home-features .feature-card:nth-child(3):hover,
  .home-features .feature-card:nth-child(6):hover,
  .home-features .feature-card:nth-child(8):hover {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .home-features .feature-card:hover .card-index,
  .home-features .feature-card:hover h3,
  .home-features .feature-card:hover p,
  .compare-card,
  .card,
  .steps > div,
  .faq-list details,
  .docs-content,
  .cta-panel,
  .compare-card:hover,
  .card:hover,
  .button:hover,
  .download-button:hover,
  .nav a:hover,
  .nav a.active {
    transform: none !important;
  }

  .home-cta .actions {
    min-width: 0;
    justify-content: stretch;
  }

  .visual-chart,
  .visual-list {
    grid-column: auto;
  }

  .product-visual {
    min-height: auto;
    padding: 20px;
    border-radius: 30px;
  }

  .card,
  .text-panel,
  .series-card,
  .compare-card,
  .docs-content,
  .faq-list details,
  .cta-panel {
    padding: 24px;
    border-radius: 28px;
  }

  .steps div {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 52px);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(32px, 9vw, 42px);
  }

  h3,
  .faq-list summary {
    font-size: 21px;
  }

  .lead {
    font-size: 19px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    padding: 16px 24px 18px;
  }

  .footer-visual {
    width: 100%;
    min-width: 0;
    min-height: 0;
    justify-content: center;
  }

  .footer-brand-block {
    align-items: flex-start;
    width: 100%;
    gap: 8px;
  }

  .footer-logo-art {
    width: auto;
    height: 65px;
    opacity: 1;
  }

  .footer-actions {
    justify-content: center;
    width: min(100%, 272px);
    max-width: 100%;
  }
}

/* Final pass: rebuilt launch block and Toolkit book visibility. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.home-launch .home-launch-card {
  align-self: start;
  width: min(100%, 650px);
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #111111;
  background: transparent;
  box-shadow: none;
}

.home-launch .home-launch-title {
  margin: 0 0 16px;
  color: #111111;
  font-size: clamp(25px, 2.45vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.home-launch .home-launch-head,
.home-launch .home-launch-intro,
.home-launch .home-launch-checks {
  display: none;
}

.home-launch .home-launch-steps {
  display: grid;
  gap: 12px;
}

.home-launch .home-launch-steps div {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 0;
  padding: clamp(12px, 1.25vw, 16px) clamp(15px, 1.8vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  color: rgba(17, 17, 17, 0.72);
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 255, 255, 0.98), transparent 10rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 246, 247, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -20px 40px rgba(20, 24, 28, 0.035),
    0 18px 46px rgba(17, 17, 17, 0.08);
}

.home-launch .home-launch-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: rgba(17, 17, 17, 0.82);
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 900;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.5) 46%, rgba(218, 222, 226, 0.62) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(218, 224, 230, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 24px rgba(0, 0, 0, 0.08);
}

.home-launch .home-launch-steps p {
  margin: 0;
  color: rgba(17, 17, 17, 0.67);
  font-size: clamp(13.5px, 1.08vw, 15px);
  line-height: 1.25;
}

.home-launch .home-launch-steps strong {
  display: inline-block;
  margin-bottom: 1px;
  color: rgba(17, 17, 17, 0.72);
  font-weight: 900;
}

.home-launch .home-launch-support {
  margin: 8px auto 0;
  max-width: 640px;
  color: rgba(17, 17, 17, 0.64);
  text-align: center;
}

.home-launch .home-launch-support a {
  color: #111111;
  font-weight: 900;
  text-decoration: none;
  background:
    linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.42), transparent) center calc(100% - 1px) / 100% 2px no-repeat;
}

.home-launch .home-launch-card .launch-download-button {
  justify-self: center;
  min-width: 212px;
  min-height: 40px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .home-launch .home-launch-steps div {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .home-launch .home-launch-steps span {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 17px;
  }

  .home-launch .home-launch-title {
    font-size: 24px;
  }
}

.toolkit-book-wide::before,
.toolkit-book-modal-site {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent) center calc(100% - 7px) / calc(100% - 34px) 2.6px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent) center calc(100% - 3px) / calc(100% - 48px) 1px no-repeat,
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.28), transparent 6rem),
    linear-gradient(145deg, rgba(72, 76, 80, 0.98), rgba(20, 22, 25, 0.99) 62%, rgba(3, 4, 5, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 15px 36px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(255, 255, 255, 0.08);
}

.toolkit-book-modal-site {
  justify-self: center;
  width: max-content;
  max-width: calc(100% - 96px);
  margin: 0 auto 10px;
  padding: 5px 25px 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0 0 18px 18px;
  font-size: 0.82em;
}

.toolkit-book-modal-dialog {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.toolkit-book-wide .toolkit-book-header {
  width: fit-content;
  min-width: 0;
  padding-inline: clamp(28px, 4vw, 56px);
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view,
.toolkit-book-modal-page {
  position: relative;
  overflow: hidden;
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view::after,
.toolkit-book-modal-page::before {
  content: "";
  position: absolute;
  right: clamp(18px, 4vw, 72px);
  bottom: clamp(18px, 4vw, 72px);
  z-index: 5;
  width: min(36%, 420px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.4;
  background: url("assets/bear-mining-logo-transparent.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  mix-blend-mode: screen;
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page img,
.toolkit-book-modal-page img {
  position: relative;
  z-index: 1;
}

.toolkit-book-modal-page::after {
  z-index: 7;
}

@media (max-width: 820px) {
  .home-launch .home-launch-card {
    width: 100%;
    padding: 0;
  }

  .home-launch .home-launch-checks {
    grid-template-columns: 1fr;
  }

  .toolkit-book-modal-site {
    max-width: calc(100% - 48px);
    padding-inline: 17px;
    font-size: 11px;
  }

  .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view::after,
  .toolkit-book-modal-page::before {
    width: min(48%, 260px);
    opacity: 0.28;
  }
}

/* Site-wide centering only. Keep component sizing and visual styling intact. */
.hero,
.section,
.page-hero,
.instructions-docs,
.instructions-docs > .gminer-feature-tabs,
.instructions-docs > .instructions-intro,
.instructions-doc-layout,
.site-footer > * {
  margin-inline: auto;
}

/* Final stabilization: keep launch cards dark/readable and remove added book watermark overlays. */
.firmware-launch.firmware-overview {
  align-items: stretch;
}

.firmware-launch .firmware-launch-table {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 640px);
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.18), transparent 18rem),
    linear-gradient(118deg, transparent 0 18%, rgba(255, 255, 255, 0.12) 34%, transparent 54%),
    linear-gradient(145deg, rgba(54, 58, 62, 0.97), rgba(18, 20, 23, 0.99) 58%, rgba(5, 6, 7, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -22px 44px rgba(0, 0, 0, 0.26),
    0 28px 70px rgba(0, 0, 0, 0.22);
}

.firmware-launch .firmware-launch-head {
  display: block;
  margin-bottom: 10px;
}

.firmware-launch .firmware-launch-head h2 {
  color: #fff;
}

.firmware-launch .firmware-launch-head p {
  display: block !important;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(14px, 1.08vw, 16px);
  line-height: 1.45;
}

.firmware-launch .firmware-launch-intro {
  display: grid !important;
  gap: 8px;
  margin: 0 0 16px;
}

.firmware-launch .firmware-launch-intro h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 1.55vw, 23px);
}

.firmware-launch .firmware-launch-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(14px, 1.08vw, 16px);
  line-height: 1.45;
}

.firmware-launch .firmware-launch-summary {
  display: none;
  max-width: 100%;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(14px, 1.08vw, 16px);
  line-height: 1.45;
}

.firmware-launch .firmware-launch-checks {
  gap: 10px 14px;
  margin-bottom: 14px;
}

.firmware-launch .firmware-launch-checks div {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.firmware-launch .firmware-launch-checks span {
  width: 14px;
  height: 14px;
  padding-left: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.firmware-launch .firmware-launch-checks span::before {
  top: 0;
  left: 0;
}

.firmware-launch .firmware-launch-checks p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.28;
}

.firmware-launch .firmware-launch-checks a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.firmware-launch .firmware-launch-checks strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 800;
}

.firmware-launch .firmware-launch-row {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.14), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.firmware-launch .firmware-launch-row strong {
  color: #fff;
}

.firmware-launch .firmware-launch-row span {
  color: #111;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(218, 224, 230, 0.76));
}

.firmware-sd-steps li {
  word-spacing: normal;
  white-space: normal;
}

.firmware-sd-steps a {
  white-space: nowrap;
}

.toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

@media (max-width: 900px) {
  .firmware-launch .firmware-launch-table {
    width: 100%;
    padding: 20px;
  }

  .firmware-launch .firmware-launch-checks {
    grid-template-columns: 1fr;
  }
}

/* Final card tone pass: softer dark cards, stronger silver glass on light cards. */
.home-features .feature-card:nth-child(1),
.home-features .feature-card:nth-child(3),
.home-features .feature-card:nth-child(6),
.home-features .feature-card:nth-child(8),
.home-comparison .compare-card.strong,
.firmware-comparison .compare-card.strong,
.firmware-launch .firmware-launch-table {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.32), transparent 14rem),
    radial-gradient(circle at 88% 110%, rgba(218, 224, 230, 0.16), transparent 18rem),
    linear-gradient(145deg, #3f4549 0%, #2c3033 42%, #191b1d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 18px 18px 42px rgba(255, 255, 255, 0.06),
    inset 0 -28px 54px rgba(0, 0, 0, 0.28),
    0 30px 70px rgba(17, 17, 17, 0.18),
    0 8px 22px rgba(17, 17, 17, 0.1);
}

.home-features .feature-card:nth-child(1) h3,
.home-features .feature-card:nth-child(3) h3,
.home-features .feature-card:nth-child(6) h3,
.home-features .feature-card:nth-child(8) h3,
.home-comparison .compare-card.strong h2,
.home-comparison .compare-card.strong .check-list li,
.firmware-comparison .compare-card.strong h2,
.firmware-comparison .compare-card.strong p,
.firmware-launch .firmware-launch-head h2,
.firmware-launch .firmware-launch-intro h3,
.firmware-launch .firmware-launch-row strong {
  color: rgba(255, 255, 255, 0.96);
}

.home-features .feature-card:nth-child(1) p,
.home-features .feature-card:nth-child(3) p,
.home-features .feature-card:nth-child(6) p,
.home-features .feature-card:nth-child(8) p,
.firmware-launch .firmware-launch-head p,
.firmware-launch .firmware-launch-intro p,
.firmware-launch .firmware-launch-checks p,
.firmware-launch .firmware-launch-row {
  color: rgba(255, 255, 255, 0.84);
}

.home-features .feature-card:nth-child(1) .card-index,
.home-features .feature-card:nth-child(3) .card-index,
.home-features .feature-card:nth-child(6) .card-index,
.home-features .feature-card:nth-child(8) .card-index {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.62), transparent 54%),
    linear-gradient(145deg, rgba(230, 235, 240, 0.28), rgba(125, 134, 142, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 12px 24px rgba(0, 0, 0, 0.16);
}

.home-features .feature-card:nth-child(1):hover,
.home-features .feature-card:nth-child(3):hover,
.home-features .feature-card:nth-child(6):hover,
.home-features .feature-card:nth-child(8):hover {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.38), transparent 14rem),
    radial-gradient(circle at 92% 112%, rgba(232, 236, 240, 0.18), transparent 18rem),
    linear-gradient(145deg, #4a5054 0%, #33383b 48%, #1b1d1f 100%);
}

.home-features .feature-card:nth-child(2),
.home-features .feature-card:nth-child(4),
.home-features .feature-card:nth-child(5),
.home-features .feature-card:nth-child(7),
.home-launch .home-launch-steps div,
.text-panel,
.series-card,
.cta-panel,
.compare-card:not(.strong),
.steps div,
.firmware-sd-guide-card {
  border-color: rgba(255, 255, 255, 0.96);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 1), transparent 14rem),
    radial-gradient(circle at 92% 100%, rgba(205, 213, 221, 0.38), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 236, 240, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 18px 18px 42px rgba(255, 255, 255, 0.54),
    inset 0 -24px 48px rgba(40, 46, 52, 0.045),
    0 24px 58px rgba(17, 17, 17, 0.1);
}

.home-features .feature-card:nth-child(2) h3,
.home-features .feature-card:nth-child(4) h3,
.home-features .feature-card:nth-child(5) h3,
.home-features .feature-card:nth-child(7) h3,
.home-launch .home-launch-steps strong,
.text-panel h2,
.series-card h3,
.cta-panel h2,
.compare-card:not(.strong) h2,
.steps div strong,
.firmware-sd-guide-card h2 {
  color: rgba(17, 17, 17, 0.9);
}

.home-features .feature-card:nth-child(2) p,
.home-features .feature-card:nth-child(4) p,
.home-features .feature-card:nth-child(5) p,
.home-features .feature-card:nth-child(7) p,
.home-launch .home-launch-steps p,
.text-panel p,
.series-card p,
.cta-panel p,
.compare-card:not(.strong) p,
.steps div p,
.firmware-sd-guide-card,
.firmware-sd-guide-card li {
  color: rgba(17, 17, 17, 0.68);
}

/* Final alignment and silver controls pass. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  text-align: initial;
}

main {
  width: 100%;
  overflow-x: clip;
}

.site-header,
.page-hero,
.section,
.site-footer > * {
  margin-right: auto;
  margin-left: auto;
}

.download-button,
.button,
.table-download-button,
.feature-tabs-more,
.toolkit-book-button,
.asic-table-link {
  border-color: rgba(255, 255, 255, 0.4);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.44), transparent 8rem),
    radial-gradient(circle at 90% 100%, rgba(210, 218, 226, 0.18), transparent 10rem),
    linear-gradient(145deg, #5e6870 0%, #3d464e 48%, #20262c 100%);
  color: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 18px 16px 34px rgba(255, 255, 255, 0.07),
    inset 0 -18px 34px rgba(0, 0, 0, 0.26),
    0 22px 48px rgba(17, 17, 17, 0.18),
    0 7px 18px rgba(17, 17, 17, 0.12);
}

.download-button:hover,
.button:hover,
.table-download-button:hover,
.feature-tabs-more:hover,
.toolkit-book-button:hover,
.asic-table-link:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.34), transparent 8rem),
    radial-gradient(circle at 92% 100%, rgba(205, 213, 221, 0.14), transparent 10rem),
    linear-gradient(145deg, #47515a 0%, #303840 48%, #11161b 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 16px 14px 30px rgba(255, 255, 255, 0.055),
    inset 0 -20px 36px rgba(0, 0, 0, 0.34),
    0 26px 56px rgba(17, 17, 17, 0.22),
    0 8px 20px rgba(17, 17, 17, 0.14);
}

.nav a:not(.header-download-button):hover,
.nav a:not(.header-download-button):focus-visible {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.42), transparent 7rem),
    linear-gradient(145deg, rgba(94, 104, 112, 0.72), rgba(61, 70, 78, 0.54));
  color: rgba(17, 17, 17, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 24px rgba(17, 17, 17, 0.12);
}

.firmware-asic-table,
.home-supported-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 1180px);
}

.firmware-asic-table .asic-table-shell,
.home-supported-table .asic-table-shell {
  width: min(100%, 1088px);
  border-color: rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.34), transparent 15rem),
    radial-gradient(circle at 82% 10%, rgba(214, 222, 230, 0.16), transparent 16rem),
    radial-gradient(circle at 92% 108%, rgba(255, 255, 255, 0.13), transparent 18rem),
    linear-gradient(145deg, #3f4549 0%, #2b3034 44%, #15181b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 22px 22px 44px rgba(255, 255, 255, 0.07),
    inset -18px -24px 54px rgba(0, 0, 0, 0.34),
    0 36px 84px rgba(17, 17, 17, 0.22),
    0 11px 28px rgba(17, 17, 17, 0.12);
}

.firmware-asic-table .asic-table-intro,
.home-supported-table .asic-table-intro {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.36), transparent 12rem),
    radial-gradient(circle at 78% 12%, rgba(210, 218, 226, 0.16), transparent 14rem),
    linear-gradient(145deg, #4c5358 0%, #30363a 46%, #151719 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 18px 16px 34px rgba(255, 255, 255, 0.07),
    inset 0 -20px 38px rgba(0, 0, 0, 0.3),
    0 16px 34px rgba(17, 17, 17, 0.16);
}

.asic-table thead th {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.22), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.18)),
    linear-gradient(145deg, #3b4145 0%, #272c30 52%, #101214 100%);
  color: rgba(255, 255, 255, 0.96);
}

.asic-table tbody tr {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.045)),
    rgba(39, 43, 46, 0.86);
}

.asic-table tbody tr:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.04)),
    rgba(55, 60, 64, 0.82);
}

.asic-table th,
.asic-table td {
  border-color: rgba(226, 234, 242, 0.2);
  color: rgba(247, 251, 255, 0.92);
}

@media (max-width: 760px) {
  .download-button,
  .button,
  .table-download-button,
  .feature-tabs-more,
  .toolkit-book-button,
  .asic-table-link {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.42),
      inset 0 -14px 26px rgba(0, 0, 0, 0.24),
      0 14px 30px rgba(17, 17, 17, 0.14);
  }
}

/* Toolkit full-view presentation mode: A4 cards with a framed screenshot area and a lower notes field. */
.toolkit-book-modal {
  padding: clamp(8px, 1.2vw, 16px);
}

.toolkit-book-modal .toolkit-book-modal-dialog {
  width: min(96vw, 1180px);
  height: min(96dvh, 900px);
  max-height: calc(100dvh - 16px);
  overflow: hidden;
  align-content: start;
  justify-items: center;
  gap: clamp(5px, 0.8vh, 10px);
  padding: clamp(10px, 1.45vh, 18px) clamp(12px, 2vw, 24px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14), transparent 18rem),
    radial-gradient(circle at 0% 100%, rgba(198, 205, 212, 0.08), transparent 22rem),
    linear-gradient(145deg, rgba(68, 72, 75, 0.95), rgba(30, 32, 34, 0.98) 48%, rgba(8, 9, 10, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 28px 22px 54px rgba(255, 255, 255, 0.055),
    inset 0 -34px 70px rgba(0, 0, 0, 0.38),
    0 36px 90px rgba(0, 0, 0, 0.36);
}

.toolkit-book-modal .toolkit-book-modal-header {
  width: min(88vw, calc((96dvh - 94px) * 0.707), 800px);
}

.toolkit-book-modal .toolkit-book-modal-site {
  position: absolute;
  top: clamp(8px, 1.1vh, 14px);
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
}

.toolkit-book-modal .toolkit-book-modal-header {
  position: absolute;
  top: clamp(10px, 1.4vh, 18px);
  right: clamp(54px, 5vw, 88px);
  z-index: 6;
  display: flex;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.toolkit-book-modal .toolkit-book-modal-header span {
  display: none;
}

.toolkit-book-modal .toolkit-book-modal-header strong {
  display: inline-flex;
  min-width: 64px;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 13, 14, 0.48);
  color: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 26px rgba(0, 0, 0, 0.22);
}

.toolkit-book-modal .toolkit-book-modal-page {
  position: relative;
  display: flex;
  width: auto;
  height: min(calc(96dvh - 24px), calc(88vw * 1.414), 900px);
  max-width: 100%;
  aspect-ratio: 210 / 297;
  min-height: auto;
  margin: 0 auto;
  padding: clamp(8px, 1.15vh, 16px);
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: clamp(20px, 2.4vw, 32px);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.18), transparent 16rem) padding-box,
    radial-gradient(circle at 86% 100%, rgba(205, 213, 221, 0.11), transparent 18rem) padding-box,
    linear-gradient(145deg, rgba(72, 76, 80, 0.98), rgba(35, 38, 41, 0.99) 48%, rgba(10, 11, 12, 1)) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(188, 195, 202, 0.34) 32%, rgba(46, 49, 52, 0.92) 70%, rgba(245, 248, 250, 0.28)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 22px 18px 48px rgba(255, 255, 255, 0.065),
    inset 0 -36px 76px rgba(0, 0, 0, 0.42),
    0 44px 110px rgba(0, 0, 0, 0.4),
    0 0 44px rgba(224, 230, 236, 0.12);
}

.toolkit-book-modal .toolkit-book-modal-page img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  padding: clamp(8px, 1.2vw, 15px);
  object-fit: contain;
  object-position: top center;
  border: 2px solid transparent;
  border-radius: clamp(14px, 1.8vw, 22px);
  background:
    radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.3), transparent 34%) padding-box,
    linear-gradient(145deg, rgba(7, 8, 9, 0.98), rgba(19, 21, 23, 0.99) 52%, rgba(5, 6, 7, 1)) padding-box,
    linear-gradient(
      135deg,
      rgba(14, 15, 16, 0.98) 0%,
      rgba(78, 82, 86, 0.96) 18%,
      rgba(236, 241, 245, 1) 36%,
      rgba(255, 255, 255, 1) 50%,
      rgba(190, 199, 207, 0.88) 66%,
      rgba(44, 47, 50, 0.94) 84%,
      rgba(250, 253, 255, 0.96) 100%
    ) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -18px 42px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 18px 40px rgba(0, 0, 0, 0.24),
    0 0 30px rgba(235, 241, 247, 0.16);
}

.toolkit-book-modal .toolkit-book-modal-page::before {
  content: "" !important;
  position: absolute;
  left: 50%;
  right: auto;
  bottom: clamp(68px, 9.75vh, 99px);
  z-index: 2;
  display: block !important;
  width: min(31%, 248px);
  aspect-ratio: 1;
  opacity: 0.32;
  pointer-events: none;
  transform: translateX(-50%);
  background: url("assets/bear-mining-a4-watermark.png") center / contain no-repeat !important;
  filter: none;
  mix-blend-mode: screen;
}

.toolkit-book-modal .toolkit-book-modal-page::after {
  display: none;
  animation: none !important;
}

.toolkit-book-modal.is-revealed .toolkit-book-modal-page::after {
  animation: none !important;
}

.toolkit-book-modal .toolkit-book-modal-actions {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 1.45vh, 18px);
  z-index: 5;
  display: grid;
  width: calc(100% - clamp(28px, 5vw, 58px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 1vw, 14px);
  align-items: end;
  transform: translateX(-50%);
}

.toolkit-book-modal .toolkit-book-modal-actions .toolkit-book-button {
  min-height: 0;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: clamp(10px, 0.95vw, 13px);
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.24);
  box-shadow: none;
  transition: filter 220ms ease, transform 220ms ease;
}

.toolkit-book-modal .toolkit-book-modal-actions .toolkit-book-button::after {
  content: "";
  display: block;
  width: 78%;
  height: 1px;
  margin: 4px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  opacity: 0.78;
}

.toolkit-book-modal .toolkit-book-modal-actions .toolkit-book-button:hover,
.toolkit-book-modal .toolkit-book-modal-actions .toolkit-book-button:focus-visible {
  filter: brightness(1.18);
  transform: translateY(-1px);
}

.toolkit-book-modal .toolkit-book-modal-actions [data-toolkit-modal-prev] {
  justify-self: start;
}

.toolkit-book-modal .toolkit-book-modal-actions [data-toolkit-modal-next] {
  justify-self: end;
}

.toolkit-book-modal .toolkit-book-modal-actions [data-toolkit-modal-open-window],
.toolkit-book-modal .toolkit-book-modal-actions [data-toolkit-modal-share] {
  justify-self: center;
}

@media (max-width: 820px) {
  .toolkit-book-modal .toolkit-book-modal-dialog {
    width: 96vw;
    height: calc(100dvh - 16px);
    padding: 10px;
  }

  .toolkit-book-modal .toolkit-book-modal-header,
  .toolkit-book-modal .toolkit-book-modal-page {
    width: min(88vw, calc((100dvh - 84px) * 0.707), 620px);
  }

  .toolkit-book-modal .toolkit-book-modal-page {
    height: min(calc(100dvh - 24px), calc(88vw * 1.414), 720px);
    padding: 10px;
  }

  .toolkit-book-modal .toolkit-book-modal-header {
    right: 54px;
  }

  .toolkit-book-modal .toolkit-book-modal-actions {
    width: calc(100% - 28px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Toolkit deck previews only. Full-view modal keeps the A4 presentation size. */
#toolkit-book .toolkit-book-grid-single,
#toolkit-book .toolkit-book-wide {
  width: min(100%, 520px);
  max-width: min(100%, 520px);
  margin-inline: auto;
}

#toolkit-book .toolkit-book-grid-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-frame,
#toolkit-book .toolkit-book-wide {
  min-height: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.13), transparent 7rem),
    linear-gradient(145deg, rgba(74, 81, 87, 0.96), rgba(30, 33, 36, 0.98) 48%, rgba(12, 13, 14, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -20px 44px rgba(0, 0, 0, 0.42),
    0 18px 42px rgba(0, 0, 0, 0.25);
}

#toolkit-book .toolkit-book-wide {
  margin-top: clamp(18px, 3vw, 30px);
}

#toolkit-book .toolkit-book-wide::before {
  top: -12px;
  min-width: 124px;
  padding: 4px 13px 5px;
  border-radius: 0 0 14px 14px;
  font-size: 8px;
  letter-spacing: 0;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-frame::before,
#toolkit-book .toolkit-book-grid-single .toolkit-book-frame::after,
#toolkit-book .toolkit-book-wide::after,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide::before,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide::after,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view::after {
  content: none !important;
  display: none !important;
}

#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-header,
#toolkit-book .toolkit-book-wide .toolkit-book-header {
  display: flex;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  margin: 0 auto 7px;
  padding: 5px 12px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(16, 18, 20, 0.94) 52%, rgba(3, 4, 5, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-header span,
#toolkit-book .toolkit-book-grid-single .toolkit-book-header strong,
#toolkit-book .toolkit-book-wide .toolkit-book-header span,
#toolkit-book .toolkit-book-wide .toolkit-book-header strong {
  display: none;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-header h2,
#toolkit-book .toolkit-book-wide .toolkit-book-header h2 {
  margin: 0;
  color: rgba(236, 244, 251, 0.96);
  font-size: clamp(10px, 1.05vw, 13px);
  line-height: 1.12;
  text-align: center;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-view,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view {
  min-height: 0;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(21, 25, 29, 0.86), rgba(5, 7, 9, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -14px 28px rgba(0, 0, 0, 0.34);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-page,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page {
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-page img,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 338px;
  padding: 0;
  object-fit: contain;
  object-position: top center;
  border: 0;
  border-radius: 10px;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-controls,
#toolkit-book .toolkit-book-wide .toolkit-book-controls {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 5px;
  margin-top: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(16, 18, 20, 0.9) 52%, rgba(2, 3, 4, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-button,
#toolkit-book .toolkit-book-grid-single .toolkit-book-fullread,
#toolkit-book .toolkit-book-wide .toolkit-book-button,
#toolkit-book .toolkit-book-wide .toolkit-book-fullread {
  min-width: 0;
  min-height: 24px;
  padding: 5px 6px;
  border-radius: 999px;
  font-size: 8.5px;
  line-height: 1;
  white-space: nowrap;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-dots,
#toolkit-book .toolkit-book-wide .toolkit-book-dots {
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-dot,
#toolkit-book .toolkit-book-wide .toolkit-book-dot {
  width: 4px;
  height: 4px;
}

@media (max-width: 640px) {
  #toolkit-book .toolkit-book-grid-single,
  #toolkit-book .toolkit-book-wide {
    width: min(100%, 320px);
    max-width: min(100%, 320px);
  }

  #toolkit-book .toolkit-book-grid-single .toolkit-book-page img,
  #toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page img {
    max-height: 210px;
  }
}

/* Final Toolkit deck preview cleanup.
   Screenshots stay unchanged; only the preview shell is aligned to the main-page card style. */
#toolkit-book .toolkit-book-shell-url,
#toolkit-book .toolkit-book-wide::before {
  content: none !important;
  display: none !important;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-frame,
#toolkit-book .toolkit-book-wide {
  background:
    linear-gradient(118deg, transparent 0 16%, rgba(255, 255, 255, 0.2) 32%, transparent 52%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 7rem),
    radial-gradient(circle at 82% 16%, rgba(205, 213, 220, 0.14), transparent 8rem),
    linear-gradient(145deg, rgba(96, 100, 104, 0.96), rgba(44, 46, 49, 0.98) 48%, rgba(12, 13, 14, 0.99));
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -26px 50px rgba(0, 0, 0, 0.34),
    0 22px 44px rgba(0, 0, 0, 0.26);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-view,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.13), transparent 6rem),
    linear-gradient(145deg, rgba(72, 76, 80, 0.92), rgba(28, 30, 33, 0.98) 56%, rgba(7, 8, 9, 0.99));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -18px 32px rgba(0, 0, 0, 0.26);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-controls,
#toolkit-book .toolkit-book-wide .toolkit-book-controls {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-button,
#toolkit-book .toolkit-book-wide .toolkit-book-button,
#toolkit-book .toolkit-book-grid-single .toolkit-book-dots,
#toolkit-book .toolkit-book-wide .toolkit-book-dots {
  display: none !important;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-fullread,
#toolkit-book .toolkit-book-wide .toolkit-book-fullread {
  position: relative;
  display: inline-flex;
  min-width: 0;
  min-height: 0;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(232, 238, 242, 0.94);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.2);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-fullread::after,
#toolkit-book .toolkit-book-wide .toolkit-book-fullread::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-fullread:hover,
#toolkit-book .toolkit-book-grid-single .toolkit-book-fullread:focus-visible,
#toolkit-book .toolkit-book-wide .toolkit-book-fullread:hover,
#toolkit-book .toolkit-book-wide .toolkit-book-fullread:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* Toolkit decks final alignment: keep screenshots intact, only align shells. */
#toolkit-book.toolkit-book-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 560px));
  align-items: start;
  justify-content: space-between;
  gap: 40px;
  width: min(100%, 1160px);
  margin-inline: auto;
}

#toolkit-book .toolkit-book-grid-single,
#toolkit-book .toolkit-book-wide {
  width: 100%;
  max-width: none;
  margin: 0;
}

#toolkit-book .toolkit-book-grid-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-frame,
#toolkit-book .toolkit-book-wide {
  border-color: rgba(242, 246, 249, 0.5);
  background:
    linear-gradient(122deg, transparent 0 13%, rgba(255, 255, 255, 0.28) 30%, rgba(183, 193, 202, 0.12) 43%, transparent 58%),
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.22), transparent 7.2rem),
    radial-gradient(circle at 84% 12%, rgba(231, 238, 244, 0.18), transparent 8rem),
    linear-gradient(145deg, rgba(104, 108, 112, 0.98), rgba(46, 48, 51, 0.99) 47%, rgba(13, 14, 15, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 1px 0 0 rgba(255, 255, 255, 0.16),
    inset -1px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 -28px 52px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 42px rgba(0, 0, 0, 0.3),
    0 0 34px rgba(220, 230, 238, 0.2);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-view,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view {
  border-color: rgba(242, 246, 249, 0.32);
  background:
    linear-gradient(124deg, transparent 0 18%, rgba(255, 255, 255, 0.13) 34%, transparent 52%),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.16), transparent 6.5rem),
    linear-gradient(145deg, rgba(76, 80, 84, 0.94), rgba(31, 33, 36, 0.99) 58%, rgba(8, 9, 10, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -18px 32px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(230, 238, 245, 0.08);
}

.toolkit-book-modal .toolkit-book-modal-page::before {
  opacity: 0.4;
}

@media (max-width: 720px) {
  #toolkit-book.toolkit-book-section {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 520px);
    gap: 20px;
  }
}

/* Toolkit section decks imported from the screenshot archive. */
#toolkit-book .toolkit-folder-decks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 280px);
  justify-content: space-between;
  gap: clamp(14px, 1.8vw, 22px);
  width: min(100%, 1120px);
  margin: clamp(8px, 1.4vw, 18px) auto 0;
}

#toolkit-book .toolkit-folder-decks .toolkit-book-frame-folder:nth-child(8) {
  grid-column: 3;
}

#toolkit-book .toolkit-book-frame-folder {
  width: min(100%, 280px);
  max-width: 280px;
  padding: 10px;
  border: 1px solid rgba(242, 246, 249, 0.48);
  border-radius: 24px;
  background:
    linear-gradient(122deg, transparent 0 12%, rgba(255, 255, 255, 0.25) 31%, rgba(184, 193, 201, 0.12) 44%, transparent 60%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.2), transparent 6.6rem),
    radial-gradient(circle at 82% 14%, rgba(225, 235, 244, 0.14), transparent 7.4rem),
    linear-gradient(145deg, rgba(100, 104, 108, 0.98), rgba(43, 45, 48, 0.99) 50%, rgba(12, 13, 14, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 1px 0 0 rgba(255, 255, 255, 0.14),
    inset -1px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 -24px 44px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 18px 36px rgba(0, 0, 0, 0.26),
    0 0 26px rgba(220, 230, 238, 0.16);
}

#toolkit-book .toolkit-book-frame-folder .toolkit-book-header {
  min-height: 0;
  padding: 6px 8px;
  gap: 4px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(42, 45, 48, 0.88), rgba(8, 9, 10, 0.96));
}

#toolkit-book .toolkit-book-frame-folder .toolkit-book-header span,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-header strong {
  font-size: 7px;
  letter-spacing: 0.02em;
}

#toolkit-book .toolkit-book-frame-folder .toolkit-book-header h2 {
  font-size: 10px;
  line-height: 1.05;
}

#toolkit-book .toolkit-book-frame-folder .toolkit-book-view {
  margin-top: 8px;
  padding: 6px;
  border: 1px solid rgba(242, 246, 249, 0.3);
  border-radius: 17px;
  background:
    linear-gradient(124deg, transparent 0 20%, rgba(255, 255, 255, 0.13) 34%, transparent 54%),
    linear-gradient(145deg, rgba(78, 82, 86, 0.94), rgba(31, 33, 36, 0.99) 60%, rgba(8, 9, 10, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -16px 30px rgba(0, 0, 0, 0.28);
}

#toolkit-book .toolkit-book-frame-folder .toolkit-book-page {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(218, 228, 236, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 16px rgba(0, 0, 0, 0.16);
}

#toolkit-book .toolkit-book-frame-folder .toolkit-book-page img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

#toolkit-book .toolkit-book-frame-folder .toolkit-book-controls {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#toolkit-book .toolkit-book-frame-folder .toolkit-book-button,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-dots {
  display: none !important;
}

#toolkit-book .toolkit-book-frame-folder .toolkit-book-fullread {
  position: relative;
  display: inline-flex;
  min-width: 0;
  min-height: 0;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(232, 238, 242, 0.94);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

#toolkit-book .toolkit-book-frame-folder .toolkit-book-fullread::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.toolkit-book-modal .toolkit-book-modal-page::before {
  opacity: 0.5;
}

@media (max-width: 1040px) {
  #toolkit-book.toolkit-book-section {
    justify-content: center;
  }

  #toolkit-book .toolkit-folder-decks {
    grid-template-columns: repeat(2, minmax(0, 280px));
    justify-content: center;
  }

  #toolkit-book .toolkit-folder-decks .toolkit-book-frame-folder:nth-child(8) {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  #toolkit-book .toolkit-folder-decks {
    grid-template-columns: minmax(0, 280px);
  }
}

/* Final Toolkit deck sizing and fullscreen cleanup. Screenshots stay unchanged. */
#toolkit-book .toolkit-book-grid-single .toolkit-book-frame,
#toolkit-book .toolkit-book-wide,
#toolkit-book .toolkit-book-frame-folder {
  height: 282px;
  min-height: 282px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-view,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-view {
  flex: 1 1 auto;
  min-height: 0;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-page,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-page {
  min-height: 0;
}

.toolkit-book-modal .toolkit-book-modal-site {
  position: fixed;
  top: auto;
  right: auto;
  bottom: max(38px, calc(env(safe-area-inset-bottom) + 38px));
  left: 50%;
  z-index: 10024;
  display: inline-flex !important;
  width: fit-content;
  max-width: calc(100vw - 160px);
  margin: 0;
  padding: 0 2px 5px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, #ffffff 0%, #b8c1c9 48%, #ffffff 100%);
  background-clip: text;
  box-shadow: none;
  color: #ffffff;
  font-size: clamp(13px, 1.05vw, 17px);
  font-weight: 1000;
  letter-spacing: 0.025em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.32);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.toolkit-book-modal .toolkit-book-modal-site::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  opacity: 0.82;
}

.toolkit-book-modal .toolkit-book-modal-dialog {
  height: min(96dvh, 880px);
  gap: 0;
  padding: clamp(10px, 1.4vh, 16px) clamp(12px, 1.8vw, 22px);
}

.toolkit-book-modal .toolkit-book-modal-page {
  width: min(94vw, 1040px);
  height: min(calc(96dvh - 18px), 820px);
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(6px, 0.9vw, 10px);
  border: 0;
  border-radius: clamp(18px, 2vw, 28px);
  background: transparent;
  box-shadow: none;
}

.toolkit-book-modal .toolkit-book-modal-page img {
  width: min(100%, 980px);
  max-height: min(60dvh, 560px);
  margin-inline: auto;
}

/* Final firmware polish: compact scenario cards, smoother reveal, prominent supported-model link. */
.feature-tab-panels {
  transition:
    max-height 840ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 640ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 640ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms ease;
}

.feature-tabs-panel.has-selection .feature-tab-panels {
  max-height: 340px;
}

.feature-tab-card {
  min-height: 0;
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 30px) clamp(58px, 5vw, 72px);
  border-color: rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.22), transparent 14rem),
    linear-gradient(145deg, rgba(76, 86, 94, 0.96), rgba(35, 39, 42, 0.97) 42%, rgba(13, 14, 15, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -18px 34px rgba(0, 0, 0, 0.18),
    0 18px 38px rgba(0, 0, 0, 0.18);
  color: rgba(246, 248, 250, 0.86);
  transition:
    opacity 720ms ease,
    transform 920ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms ease,
    visibility 760ms ease;
}

.feature-tab-card strong {
  color: rgba(255, 255, 255, 0.94);
}

.feature-tab-card p {
  max-width: none;
}

@media (max-width: 760px) {
  .feature-tabs-panel.has-selection .feature-tab-panels {
    max-height: 520px;
  }
}

.firmware-launch .firmware-supported-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  color: #ffffff;
  font-size: clamp(20px, 2.25vw, 30px);
  font-weight: 900;
  line-height: 1.08;
  text-decoration: none;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.firmware-launch .firmware-supported-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.22em;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.32);
}

.firmware-launch .firmware-supported-link:hover,
.firmware-launch .firmware-supported-link:focus-visible {
  color: #ffffff;
  filter: brightness(1.08);
}

.toolkit-book-modal .toolkit-book-modal-page::before {
  bottom: clamp(42px, 6vh, 72px);
}

@media (max-width: 820px) {
  .toolkit-book-modal .toolkit-book-modal-page {
    width: min(92vw, 640px);
    height: min(calc(100dvh - 20px), 760px);
  }

  .toolkit-book-modal .toolkit-book-modal-page img {
    max-height: min(58dvh, 500px);
  }
}

/* Toolkit deck final presentation pass.
   Visual shell only: source screenshots and their internal content stay unchanged. */
#toolkit-book.toolkit-book-section {
  width: min(100%, 1160px);
  gap: clamp(18px, 2.8vw, 34px);
}

#toolkit-book .toolkit-folder-decks {
  width: min(100%, 1160px);
  gap: clamp(16px, 2.2vw, 26px);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-frame,
#toolkit-book .toolkit-book-wide,
#toolkit-book .toolkit-book-frame-folder {
  height: 276px;
  min-height: 276px;
  padding: 9px;
  border-color: rgba(244, 248, 251, 0.44);
  background:
    linear-gradient(122deg, transparent 0 14%, rgba(255, 255, 255, 0.24) 31%, rgba(190, 199, 207, 0.1) 44%, transparent 60%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.18), transparent 7rem),
    radial-gradient(circle at 84% 14%, rgba(225, 234, 242, 0.14), transparent 8rem),
    linear-gradient(145deg, rgba(91, 96, 100, 0.98), rgba(42, 45, 48, 0.99) 49%, rgba(12, 13, 14, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -24px 46px rgba(0, 0, 0, 0.34),
    0 18px 38px rgba(0, 0, 0, 0.26),
    0 0 28px rgba(224, 233, 240, 0.14);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-header,
#toolkit-book .toolkit-book-wide .toolkit-book-header,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-header {
  margin-bottom: 6px;
  padding: 5px 10px;
  border-radius: 999px;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-header h2,
#toolkit-book .toolkit-book-wide .toolkit-book-header h2,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-header h2 {
  font-size: 10px;
  line-height: 1.08;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-view,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-view {
  margin-top: 0;
  padding: 4px;
  border-color: rgba(244, 248, 251, 0.26);
  border-radius: 15px;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-page,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-page {
  padding: 4px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(226, 233, 240, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 7px 14px rgba(0, 0, 0, 0.14);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-page img,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page img,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-page img {
  height: 100%;
  max-height: none;
  border-radius: 7px;
  object-fit: contain;
  object-position: center;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-fullread,
#toolkit-book .toolkit-book-wide .toolkit-book-fullread,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-fullread {
  font-size: 9px;
  color: rgba(244, 248, 251, 0.96);
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-frame {
  height: 480px;
  min-height: 480px;
  padding: 14px;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-header {
  margin-bottom: 10px;
  padding: 9px 14px;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-header h2 {
  font-size: 18px;
  line-height: 1.08;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-view {
  padding: 8px;
  border-radius: 22px;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-page {
  padding: 7px;
  border-radius: 18px;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-page img {
  border-radius: 12px;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-fullread {
  font-size: 12px;
}

@media (max-width: 720px) {
  #toolkit-book > .toolkit-book-grid-single .toolkit-book-frame {
    height: 360px;
    min-height: 360px;
  }
}

.toolkit-book-modal {
  overflow: hidden;
  padding: 8px;
}

.toolkit-book-modal .toolkit-book-modal-dialog {
  width: min(96vw, 1180px);
  height: min(96dvh, 900px);
  padding: clamp(8px, 1.2vh, 14px);
}

.toolkit-book-modal .toolkit-book-modal-page {
  width: min(94vw, calc((96dvh - 18px) * 0.707), 620px);
  height: min(calc(96dvh - 18px), calc(94vw * 1.414), 860px);
  aspect-ratio: 210 / 297;
  padding: clamp(8px, 1.1vh, 12px);
  border: 1px solid rgba(244, 248, 251, 0.42);
  border-radius: clamp(18px, 2vw, 26px);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 15rem),
    linear-gradient(145deg, rgba(72, 76, 80, 0.98), rgba(35, 38, 41, 0.99) 48%, rgba(10, 11, 12, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -34px 70px rgba(0, 0, 0, 0.4),
    0 36px 90px rgba(0, 0, 0, 0.38);
}

.toolkit-book-modal .toolkit-book-modal-page img {
  width: 100%;
  height: calc(100% - clamp(104px, 15vh, 132px));
  max-height: none;
  padding: clamp(5px, 0.8vw, 8px);
  border-width: 1px;
  border-radius: clamp(12px, 1.5vw, 18px);
  object-fit: contain;
  object-position: top center;
}

.toolkit-book-modal .toolkit-book-modal-page::before {
  bottom: clamp(48px, 7vh, 76px);
  width: min(28%, 190px);
  opacity: 0.3;
}

.toolkit-book-modal .toolkit-book-modal-actions {
  bottom: clamp(8px, 1.25vh, 14px);
  width: calc(100% - clamp(24px, 4vw, 44px));
  gap: clamp(6px, 0.8vw, 12px);
}

.toolkit-book-modal .toolkit-book-modal-actions .toolkit-book-button {
  font-size: clamp(9px, 0.82vw, 12px);
}

@media (max-width: 820px) {
  .toolkit-book-modal .toolkit-book-modal-page {
    width: min(92vw, calc((100dvh - 20px) * 0.707), 520px);
    height: min(calc(100dvh - 20px), calc(92vw * 1.414), 735px);
  }

  .toolkit-book-modal .toolkit-book-modal-page img {
    height: calc(100% - 128px);
  }
}

/* Toolkit card frame normalization: every preview uses the same quiet reference shell. */
#toolkit-book .toolkit-book-grid-single .toolkit-book-frame,
#toolkit-book .toolkit-book-wide,
#toolkit-book .toolkit-book-frame-folder {
  height: 286px;
  min-height: 286px;
  padding: 10px;
  border: 1px solid rgba(234, 239, 243, 0.42);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(82, 87, 91, 0.98), rgba(34, 37, 40, 0.99) 56%, rgba(10, 11, 12, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -18px 34px rgba(0, 0, 0, 0.3),
    0 16px 32px rgba(0, 0, 0, 0.24);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-frame::before,
#toolkit-book .toolkit-book-grid-single .toolkit-book-frame::after,
#toolkit-book .toolkit-book-wide::before,
#toolkit-book .toolkit-book-wide::after,
#toolkit-book .toolkit-book-frame-folder::before,
#toolkit-book .toolkit-book-frame-folder::after {
  content: none !important;
  display: none !important;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-header,
#toolkit-book .toolkit-book-wide .toolkit-book-header,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-header {
  display: flex;
  width: 100%;
  min-height: 34px;
  margin: 0 0 8px;
  padding: 6px 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(234, 239, 243, 0.22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(52, 56, 60, 0.92), rgba(13, 14, 15, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#toolkit-book .toolkit-book-frame-folder .toolkit-book-header span,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-header strong {
  display: none !important;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-header h2,
#toolkit-book .toolkit-book-wide .toolkit-book-header h2,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-header h2 {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  color: rgba(247, 250, 253, 0.98);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-view,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-view,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-view {
  padding: 4px;
  border: 1px solid rgba(234, 239, 243, 0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(47, 51, 54, 0.94), rgba(12, 13, 14, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-page,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-page {
  padding: 4px;
  border-radius: 11px;
  background: #f7f9fb;
  box-shadow: none;
}

/* Browser comment pass: align launch text, tighten SD list markers, simplify Toolkit titles. */
.firmware-launch .firmware-supported-link {
  display: inline;
  width: auto;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-shadow: none;
}

.firmware-launch .firmware-launch-checks .firmware-supported-link {
  font-size: inherit;
  font-weight: inherit;
}

.firmware-launch .firmware-supported-link::after {
  content: none;
  display: none;
}

.firmware-launch .firmware-supported-link:hover,
.firmware-launch .firmware-supported-link:focus-visible {
  color: inherit;
  filter: none;
}

.firmware-sd-steps li {
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 4px;
}

.firmware-sd-steps li::before {
  justify-self: start;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-header,
#toolkit-book .toolkit-book-wide .toolkit-book-header,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-header {
  min-height: 34px;
  padding: 0 6px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-header h2,
#toolkit-book .toolkit-book-wide .toolkit-book-header h2,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-header h2 {
  color: rgba(247, 250, 253, 0.98);
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.08;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.44);
}

/* Browser comment pass: apply to every Toolkit deck on this page. */
#toolkit-book .toolkit-book-grid-single .toolkit-book-header,
#toolkit-book .toolkit-book-wide .toolkit-book-header,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-header {
  min-height: 42px;
  padding: 0 2px 8px;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-header h2,
#toolkit-book .toolkit-book-wide .toolkit-book-header h2,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-header h2 {
  width: 100%;
  color: rgba(247, 250, 253, 0.98);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.06;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-page,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-page {
  overflow: hidden;
  padding: 0;
  background: #f7f9fb;
}

#toolkit-book .toolkit-book-grid-single .toolkit-book-page img,
#toolkit-book .toolkit-book-wide .toolkit-book-frame-wide .toolkit-book-page img,
#toolkit-book .toolkit-book-frame-folder .toolkit-book-page img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 8px;
  transform: scale(1.075);
  transform-origin: center;
}

/* Language deck covers: large, centered, and aligned with the main-page dark panels. */
#toolkit-book.toolkit-book-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#toolkit-book > .toolkit-book-grid-single {
  width: min(100%, 560px);
  max-width: min(100%, 560px);
  margin-inline: auto;
}

#toolkit-book > .toolkit-book-language-row {
  width: min(100%, 1160px);
  max-width: min(100%, 1160px);
  grid-template-columns: repeat(2, minmax(0, 560px));
  justify-content: center;
  align-items: start;
  gap: clamp(18px, 2.4vw, 34px);
}

#toolkit-book .toolkit-book-subtitle {
  width: min(100%, 900px);
  margin: 0 auto clamp(18px, 3vw, 32px);
  color: rgba(17, 17, 17, 0.68);
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

#toolkit-book .toolkit-book-support-card {
  width: min(100%, 760px);
  margin: clamp(12px, 2vw, 20px) auto 0;
  padding: 0;
  color: rgba(17, 17, 17, 0.62);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

#toolkit-book .toolkit-book-support-card a {
  color: #111111;
  font-weight: 900;
  text-decoration: none;
  background:
    linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.42), transparent) center calc(100% - 1px) / 100% 2px no-repeat;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-frame {
  width: 100%;
  max-width: 100%;
  height: 520px;
  min-height: 520px;
  padding: 14px;
  border-color: rgba(42, 53, 64, 0.78);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(184, 199, 211, 0.24), transparent 34%),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
    radial-gradient(circle at 84% 82%, rgba(6, 10, 16, 0.52), transparent 38%),
    linear-gradient(145deg, rgba(88, 103, 116, 0.98), rgba(45, 57, 69, 0.99) 48%, rgba(14, 22, 31, 1) 100%);
  box-shadow:
    0 28px 62px rgba(5, 10, 16, 0.36),
    0 12px 30px rgba(25, 38, 49, 0.24),
    0 0 0 1px rgba(5, 9, 14, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -28px 50px rgba(2, 5, 9, 0.32),
    inset 0 0 54px rgba(150, 172, 190, 0.08);
}

@media (max-width: 980px) {
  #toolkit-book > .toolkit-book-language-row {
    width: min(100%, 560px);
    max-width: min(100%, 560px);
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 4vw, 28px);
  }
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-header {
  position: relative;
  min-height: 54px;
  padding: 0 8px 12px;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-header h2 {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: calc(100% - 120px);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  color: rgba(247, 250, 253, 0.98);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.48);
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-cover-share {
  position: absolute;
  right: 0;
  top: 0;
  color: rgba(232, 239, 245, 0.92);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-decoration: none;
  background: linear-gradient(90deg, rgba(232, 239, 245, 0.96) 0%, rgba(160, 179, 194, 0.98) 48%, rgba(232, 239, 245, 0.96) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.34);
  transition: filter 240ms ease, transform 240ms ease;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-cover-share::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(232, 239, 245, 0.68), transparent);
  opacity: 0.75;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-cover-share:hover,
#toolkit-book > .toolkit-book-grid-single .toolkit-book-cover-share:focus-visible {
  filter: brightness(1.14);
  transform: translateY(-1px);
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-view {
  padding: 7px;
  border-radius: 22px;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.12) 31%, transparent 54%),
    linear-gradient(145deg, rgba(55, 70, 83, 0.9), rgba(24, 34, 45, 0.96) 58%, rgba(7, 12, 18, 0.99));
  border-color: rgba(155, 176, 193, 0.3);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.34),
    inset 0 12px 24px rgba(255, 255, 255, 0.05);
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-page {
  position: relative;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 17px;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-page img {
  border-radius: 12px;
  border: 0;
  outline: 0;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-page > .toolkit-book-page-link {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: inherit;
  overflow: hidden;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-page > .toolkit-book-page-link > img.toolkit-book-cover-art,
#toolkit-book > .toolkit-book-grid-single .toolkit-book-page > img.toolkit-book-cover-art {
  width: 62%;
  height: 61%;
  max-width: 62%;
  max-height: 61%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  border: 0;
  outline: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
  mix-blend-mode: normal;
  transform: none;
  pointer-events: none;
  background: transparent;
}

#toolkit-book > .toolkit-book-grid-single .toolkit-book-fullread {
  font-size: 12px;
}

@media (max-width: 720px) {
  #toolkit-book > .toolkit-book-grid-single {
    width: min(100%, 340px);
    max-width: min(100%, 340px);
  }

  #toolkit-book > .toolkit-book-grid-single .toolkit-book-frame {
    height: 360px;
    min-height: 360px;
    padding: 10px;
  }

  #toolkit-book > .toolkit-book-grid-single .toolkit-book-header h2 {
    font-size: clamp(17px, 5vw, 22px);
  }

  #toolkit-book > .toolkit-book-grid-single .toolkit-book-cover-share {
    font-size: 9px;
  }
}

.feature-tabs-more {
  padding: 0 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(17, 24, 39, 0.78);
  font-size: 16px;
  text-shadow: none;
}

.feature-tabs-more:hover,
.feature-tabs-more:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(17, 24, 39, 0.9);
}

/* Browser comment pass: scenario cards fit active text and reveal more smoothly. */
.feature-tab-panels {
  width: min(100%, 1120px);
  transition:
    max-height 1680ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 1280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1280ms ease,
    transform 1400ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1400ms ease;
}

.feature-tabs-panel.has-selection .feature-tab-panels {
  max-height: min(92vh, 720px);
  margin-top: 16px;
}

.feature-tab-card {
  display: grid;
  grid-template-areas:
    "title"
    "text"
    "actions";
  min-height: 0;
  height: fit-content;
  align-self: start;
  padding: clamp(18px, 2.1vw, 26px);
  border: 1px solid rgba(240, 245, 249, 0.34);
  border-radius: clamp(24px, 2.4vw, 34px);
  background:
    linear-gradient(118deg, transparent 0 16%, rgba(255, 255, 255, 0.18) 31%, transparent 48%),
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.22), transparent 13rem),
    radial-gradient(circle at 92% 100%, rgba(212, 220, 228, 0.12), transparent 16rem),
    linear-gradient(145deg, rgba(88, 94, 100, 0.98), rgba(39, 43, 47, 0.99) 48%, rgb(12, 13, 14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -20px 38px rgba(0, 0, 0, 0.28),
    0 20px 42px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition:
    opacity 1440ms ease,
    transform 1840ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1520ms ease,
    visibility 1520ms ease,
    background-position 1840ms ease;
}

.feature-tab-card:not(.is-active) {
  position: absolute;
  inset: 0;
  width: 100%;
}

.feature-tab-card.is-active {
  position: relative;
}

.feature-tab-card-top {
  display: contents;
}

.feature-tab-card strong {
  grid-area: title;
  margin-bottom: clamp(10px, 1.2vw, 14px);
}

.feature-tab-card p {
  grid-area: text;
  max-width: 100%;
  line-height: 1.5;
}

.feature-tab-card-actions {
  grid-area: actions;
  position: static;
  margin-top: clamp(14px, 1.8vw, 22px);
  justify-content: space-between;
}

@media (max-width: 760px) {
  .feature-tabs-panel.has-selection .feature-tab-panels {
    max-height: min(92vh, 860px);
  }

  .feature-tab-card {
    padding: 18px;
    border-radius: 24px;
  }

  .feature-tab-card-actions {
    width: 100%;
  }
}

/* Browser comment pass: full deck view keeps only the main shell and cropped screenshot. */
.toolkit-book-modal .toolkit-book-modal-page {
  width: min(94vw, 1040px);
  height: auto;
  max-height: calc(96dvh - 72px);
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vh, 16px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.toolkit-book-modal .toolkit-book-modal-page::after {
  content: none !important;
  display: none !important;
}

.toolkit-book-modal .toolkit-book-modal-page::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: clamp(14px, 1.8vw, 28px);
  right: auto;
  top: clamp(14px, 1.8vw, 28px);
  bottom: auto;
  z-index: 2;
  width: min(84%, 684px);
  aspect-ratio: 460 / 180;
  transform: none;
  background: url("assets/bear-mining-a4-watermark.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  mix-blend-mode: screen;
  opacity: 0.3;
  pointer-events: none;
}

.toolkit-book-modal .toolkit-book-modal-copy {
  position: absolute;
  right: clamp(18px, 2vw, 42px);
  top: clamp(34px, 5dvh, 72px);
  bottom: clamp(108px, 13dvh, 168px);
  z-index: 4;
  width: min(36vw, 620px);
  min-width: 300px;
  padding: clamp(18px, 2vw, 34px);
  overflow: visible;
  border: 1px solid rgba(247, 250, 253, 0.44);
  border-radius: 22px;
  color: rgba(246, 249, 252, 0.94);
  background:
    linear-gradient(145deg, rgba(72, 78, 84, 0.64), rgba(25, 28, 31, 0.72) 58%, rgba(7, 8, 10, 0.72)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(210, 220, 228, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.18),
    0 0 34px rgba(225, 235, 244, 0.16);
  backdrop-filter: blur(10px);
}

.toolkit-book-modal .toolkit-book-modal-copy[hidden] {
  display: none;
}

.toolkit-book-modal .toolkit-book-modal-copy h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(20px, 1.45vw, 30px);
  line-height: 1.08;
  letter-spacing: 0;
}

.toolkit-book-modal .toolkit-book-modal-copy p {
  margin: 0;
  color: rgba(238, 244, 249, 0.86);
  font-size: clamp(13px, 0.9vw, 16px);
  line-height: 1.52;
}

.toolkit-book-modal .toolkit-book-modal-copy p + p {
  margin-top: 12px;
}

.toolkit-book-modal .toolkit-book-modal-page img {
  width: auto;
  max-width: min(100%, 980px);
  height: auto;
  max-height: calc(96dvh - 150px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

.toolkit-book-modal .toolkit-book-modal-actions {
  position: static;
  width: min(100%, 980px);
  transform: none;
}

@media (max-width: 820px) {
  .toolkit-book-modal .toolkit-book-modal-page {
    width: min(92vw, 760px);
    height: auto;
  }

  .toolkit-book-modal .toolkit-book-modal-page img {
    height: auto;
    max-height: calc(100dvh - 168px);
  }
}

/* Browser comment pass: maximize cleaned screenshots in full deck view. */
.toolkit-book-modal {
  padding: clamp(4px, 0.8vw, 10px);
}

.toolkit-book-modal .toolkit-book-modal-dialog {
  width: min(99vw, 1800px);
  height: min(98dvh, 1080px);
  padding: clamp(6px, 1vh, 12px);
}

.toolkit-book-modal .toolkit-book-modal-page {
  width: min(98vw, 1760px);
  max-height: calc(98dvh - 76px);
  gap: clamp(8px, 1.2vh, 14px);
  background: none;
  background-color: transparent;
}

.toolkit-book-modal .toolkit-book-modal-page img {
  width: 100%;
  max-width: 100%;
  max-height: calc(98dvh - 146px);
}

.toolkit-book-modal .toolkit-book-modal-actions {
  position: fixed;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 10020;
  width: min(calc(100vw - 24px), 1760px);
  transform: translateX(-50%);
}

/* Fullscreen Toolkit pages: keep screenshots wide and pin instruction text to the viewport bottom. */
.toolkit-book-modal .toolkit-book-modal-page {
  --toolkit-modal-copy-space: clamp(176px, 27dvh, 286px);
  --toolkit-modal-stage-bg:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.92), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(236, 241, 245, 0.94) 54%, rgba(214, 224, 232, 0.92));
  --toolkit-modal-panel-bg:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.78) 10%, rgba(246, 250, 253, 0.78) 50%, rgba(224, 233, 241, 0.76) 90%, rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.76) 18%, rgba(232, 240, 247, 0.74) 82%, rgba(255, 255, 255, 0));
  align-items: center;
  justify-content: flex-start;
  min-height: calc(98dvh - 76px);
  padding: clamp(8px, 0.8vw, 16px) clamp(10px, 1.1vw, 22px) var(--toolkit-modal-copy-space);
  position: relative;
}

.toolkit-book-modal .toolkit-book-modal-page:not(.has-modal-copy) {
  --toolkit-modal-copy-space: clamp(72px, 10dvh, 104px);
}

.toolkit-book-modal .toolkit-book-modal-page.is-landscape-shot {
  justify-content: flex-start;
}

.toolkit-book-modal .toolkit-book-modal-page::before {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: auto;
  top: auto;
  bottom: max(58px, calc(env(safe-area-inset-bottom) + 58px));
  width: clamp(227px, 14vw, 275px);
  aspect-ratio: 1155 / 1021;
  transform: none;
  background-position: left bottom;
  filter: none;
  mix-blend-mode: normal;
  z-index: 3;
  opacity: 0.75;
}

.toolkit-book-modal .toolkit-book-modal-gminer-mark {
  position: fixed;
  top: auto;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(58px, calc(env(safe-area-inset-bottom) + 58px));
  z-index: 3;
  width: clamp(227px, 14vw, 275px);
  aspect-ratio: 1155 / 1021;
  background: url("assets/gminer-a4-watermark.png") right bottom / contain no-repeat;
  opacity: 0.75;
  pointer-events: none;
}

.toolkit-book-modal .toolkit-book-modal-page::after {
  content: "";
  display: block !important;
  position: fixed;
  left: clamp(8px, 1vw, 18px);
  right: clamp(8px, 1vw, 18px);
  top: clamp(8px, 1dvh, 18px);
  bottom: var(--toolkit-modal-copy-space);
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: clamp(18px, 2vw, 32px);
  background: var(--toolkit-modal-stage-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -28px 60px rgba(130, 148, 164, 0.16),
    0 22px 70px rgba(28, 43, 56, 0.14);
  pointer-events: none;
}

.toolkit-book-modal .toolkit-book-modal-page img {
  align-self: center;
  position: fixed;
  left: 50%;
  top: clamp(8px, 1dvh, 18px);
  width: calc(100vw - clamp(18px, 2vw, 36px));
  max-width: calc(100vw - clamp(18px, 2vw, 36px));
  height: calc(100dvh - var(--toolkit-modal-copy-space) - clamp(20px, 2dvh, 36px));
  max-height: calc(100dvh - var(--toolkit-modal-copy-space) - clamp(20px, 2dvh, 36px));
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center center;
  background: var(--toolkit-modal-stage-bg), #edf2f6;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
  z-index: 2;
}

.toolkit-book-modal .toolkit-book-modal-page.is-landscape-shot img {
  max-height: calc(100dvh - var(--toolkit-modal-copy-space) - clamp(20px, 2dvh, 36px));
}

.toolkit-book-modal .toolkit-book-modal-page.is-wide-shot img {
  object-fit: cover;
  object-position: top center;
}

.toolkit-book-modal .toolkit-book-modal-page.is-strip-shot img {
  object-fit: contain;
  object-position: top center;
}

.toolkit-book-modal .toolkit-book-modal-page.has-short-copy {
  align-items: center;
  justify-content: flex-start;
}

.toolkit-book-modal .toolkit-book-modal-page.has-short-copy img {
  width: calc(100vw - clamp(18px, 2vw, 36px));
  max-width: calc(100vw - clamp(18px, 2vw, 36px));
  max-height: calc(100dvh - var(--toolkit-modal-copy-space) - clamp(20px, 2dvh, 36px));
}

.toolkit-book-modal .toolkit-book-modal-copy {
  position: fixed;
  left: 50%;
  right: auto;
  top: auto;
  bottom: max(64px, calc(env(safe-area-inset-bottom) + 64px));
  z-index: 10030;
  width: min(80vw, 1280px);
  min-width: 0;
  max-height: none;
  transform: translateX(-50%);
  padding: clamp(16px, 1.5vw, 24px) clamp(18px, 2vw, 32px);
  text-align: center;
  overflow: visible;
  color: #14202a;
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: clamp(20px, 2vw, 30px);
  background:
    var(--toolkit-modal-panel-bg),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(216, 226, 235, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -18px 34px rgba(130, 148, 164, 0.14),
    0 18px 54px rgba(28, 43, 56, 0.14),
    0 0 34px rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.toolkit-book-modal .toolkit-book-modal-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.72), rgba(165, 184, 200, 0.28), transparent);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.toolkit-book-modal .toolkit-book-modal-page.has-short-copy .toolkit-book-modal-copy {
  width: min(70vw, 980px);
  max-height: none;
  overflow: visible;
}

.toolkit-book-modal .toolkit-book-modal-copy h3 {
  margin-bottom: 8px;
  color: #17232e;
}

.toolkit-book-modal .toolkit-book-modal-copy p {
  max-width: min(100%, 96ch);
  margin-inline: auto;
  color: rgba(20, 32, 42, 0.82);
}

@media (max-width: 820px) {
  .toolkit-book-modal .toolkit-book-modal-dialog {
    width: 100vw;
    height: 100dvh;
    padding: 6px;
  }

  .toolkit-book-modal .toolkit-book-modal-page {
    --toolkit-modal-copy-space: clamp(182px, 34dvh, 316px);
    width: 98vw;
    max-height: calc(100dvh - 78px);
  }

  .toolkit-book-modal .toolkit-book-modal-page:not(.has-modal-copy) {
    --toolkit-modal-copy-space: clamp(70px, 10dvh, 96px);
  }

  .toolkit-book-modal .toolkit-book-modal-page img {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    height: calc(100dvh - var(--toolkit-modal-copy-space) - 22px);
    max-height: calc(100dvh - var(--toolkit-modal-copy-space) - 22px);
  }

  .toolkit-book-modal .toolkit-book-modal-page.has-short-copy img {
    max-height: calc(100dvh - var(--toolkit-modal-copy-space) - 22px);
  }

  .toolkit-book-modal .toolkit-book-modal-copy,
  .toolkit-book-modal .toolkit-book-modal-page.has-short-copy .toolkit-book-modal-copy {
    bottom: max(58px, calc(env(safe-area-inset-bottom) + 58px));
    width: 80vw;
    max-height: none;
    padding: 14px 16px;
  }
}

/* Keep the same fixed brand/navigation composition on every page. */
@media (min-width: 761px) {
  .site-header {
    min-height: clamp(124px, 13vh, 150px);
    margin-right: auto;
    margin-left: auto;
  }

  .site-header .header-title {
    position: fixed;
    top: clamp(12px, 1.6vh, 18px);
    left: 50%;
    z-index: 81;
    justify-content: center;
    width: max-content;
    max-width: calc(100vw - 32px);
    transform: translateX(-50%);
  }

  .site-header .nav {
    position: fixed;
    top: clamp(78px, 9.2vh, 92px);
    left: 50%;
    z-index: 80;
    width: max-content;
    max-width: calc(100vw - 32px);
    transform: translateX(-50%);
    flex-wrap: nowrap;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .site-header {
    min-height: clamp(144px, 18vh, 184px);
  }

  .site-header .nav {
    width: min(calc(100vw - 24px), 760px);
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 10px;
    z-index: 90;
    display: grid;
    width: min(calc(100% - 24px), var(--max));
    margin-right: auto;
    margin-left: auto;
    justify-items: center;
  }

  .header-title {
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .nav {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .nav a,
  .nav .header-download-button {
    white-space: normal;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }
}

/* Final mobile guardrails for instruction pages and screenshot fullscreen view. */
@media (max-width: 760px) {
  body:has(.instructions-docs:not(.firmware-embedded-manual)) {
    --instructions-fixed-width: 0px;
    --instructions-layout-gap: 0px;
    --instructions-shell-width: 100%;
    --instructions-content-width: 100%;
    --instructions-content-left: 0px;
  }

  .instructions-docs {
    width: min(100% - 24px, var(--max));
    max-width: calc(100vw - 24px);
    overflow-x: hidden;
  }

  .instructions-docs > .gminer-feature-tabs,
  .instructions-docs > .instructions-intro,
  .instructions-doc-layout,
  .instructions-content,
  .instructions-manual-card,
  .manual-shot,
  .manual-copy {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .instructions-manual-card,
  .manual-shot {
    overflow: hidden;
  }

  .manual-shot img {
    max-width: 100%;
    height: auto;
  }

  .manual-shot.is-wide-shot img {
    width: 100%;
  }

  .manual-copy,
  .manual-copy-text {
    overflow-wrap: anywhere;
  }

  .manual-copy-text p,
  .manual-copy-text a,
  .manual-copy-text strong,
  .manual-copy-text .manual-log-structure {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

@media (max-width: 720px) {
  .manual-lightbox {
    padding: 8px;
  }

  .manual-lightbox-dialog {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    justify-items: center;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    overflow: hidden;
    padding: 54px 10px 64px;
  }

  .manual-lightbox-figure {
    align-items: center;
    justify-items: center;
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .manual-lightbox-image,
  .manual-lightbox.is-landscape-shot .manual-lightbox-image,
  .manual-lightbox.is-portrait-shot .manual-lightbox-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 160px);
    align-self: center;
    justify-self: center;
    object-fit: contain;
  }

  .manual-lightbox-site-link {
    max-width: calc(100% - 96px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .manual-lightbox-nav {
    bottom: 12px;
    min-width: 104px;
    max-width: calc((100% - 56px) / 2);
    padding: 0 16px;
    white-space: nowrap;
  }

  .manual-lightbox-prev {
    left: max(18px, env(safe-area-inset-left));
  }

  .manual-lightbox-next {
    right: max(18px, env(safe-area-inset-right));
  }
}

.home-premium-popup[hidden] {
  display: none !important;
}

.home-premium-popup {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.home-premium-popup.is-visible {
  opacity: 1;
}

.home-premium-popup.is-closing {
  opacity: 0;
}

.home-premium-popup__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(clamp(520px, 41vw, 744px), calc(100vw - 32px));
  min-height: clamp(390px, 43vh, 516px);
  max-height: calc(100svh - 32px);
  padding: clamp(22px, 2.4vh, 30px) clamp(24px, 2.6vw, 34px) clamp(48px, 5vh, 62px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.92), transparent 31%),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.58), transparent 29%),
    radial-gradient(circle at 84% 78%, rgba(112, 137, 156, 0.36), transparent 34%),
    linear-gradient(145deg, rgba(232, 239, 244, 0.95), rgba(197, 212, 223, 0.96) 42%, rgba(132, 154, 171, 0.94) 72%, rgba(72, 88, 101, 0.9));
  box-shadow:
    0 26px 72px rgba(21, 31, 40, 0.3),
    0 10px 28px rgba(76, 97, 114, 0.2),
    0 0 0 1px rgba(31, 48, 62, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -26px 46px rgba(37, 52, 64, 0.18),
    inset 0 0 54px rgba(255, 255, 255, 0.26);
  color: #172534;
  gap: clamp(11px, 1.7vh, 18px);
  pointer-events: auto;
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 300ms ease;
}

.home-premium-popup.is-visible .home-premium-popup__panel {
  transform: translateY(0) scale(1);
}

.home-premium-popup__panel::before,
.home-premium-popup__panel::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.home-premium-popup__panel::before {
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.52) 31%, transparent 54%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%),
    radial-gradient(ellipse at 50% 108%, rgba(79, 102, 121, 0.24), transparent 42%);
  mix-blend-mode: screen;
}

.home-premium-popup__panel::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 28%),
    radial-gradient(ellipse at 50% 54%, transparent 44%, rgba(36, 52, 65, 0.22) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 25%, transparent 74%, rgba(48, 66, 80, 0.16));
}

.home-premium-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(32, 48, 61, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #263545;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  opacity: 0.76;
  place-items: center;
  transition: opacity 180ms ease, background 180ms ease, transform 180ms ease;
}

.home-premium-popup__close:hover,
.home-premium-popup__close:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  opacity: 1;
  transform: scale(1.04);
}

.home-premium-popup__logo {
  position: relative;
  z-index: 1;
  width: min(76%, 300px);
  height: clamp(118px, 15vh, 174px);
  object-fit: contain;
  filter:
    brightness(0.92)
    contrast(1.12)
    drop-shadow(0 15px 24px rgba(18, 28, 37, 0.34))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.22));
}

.home-premium-popup__message {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #152331;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 10px 28px rgba(65, 86, 103, 0.18);
}

.home-premium-popup__site {
  position: relative;
  z-index: 1;
  color: #172534;
  font-size: clamp(12px, 0.75vw, 14px);
  font-weight: 700;
  letter-spacing: 0;
}

.home-premium-popup__site::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 35, 49, 0.68), transparent);
  box-shadow: 0 6px 12px rgba(111, 132, 151, 0.18);
  content: "";
}

.home-premium-popup__dismiss {
  position: absolute;
  bottom: clamp(14px, 1.8vh, 22px);
  left: 50%;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(23, 35, 49, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: clamp(11px, 0.7vw, 13px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  transform: translateX(-50%);
  transition: color 180ms ease, opacity 180ms ease;
  white-space: nowrap;
}

.home-premium-popup__dismiss::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 35, 49, 0.48), transparent);
  box-shadow: 0 5px 10px rgba(111, 132, 151, 0.14);
  content: "";
}

.home-premium-popup__dismiss:hover,
.home-premium-popup__dismiss:focus-visible {
  color: #0f1b27;
  opacity: 1;
}

@media (max-width: 640px) {
  .home-premium-popup {
    padding: 16px;
  }

  .home-premium-popup__panel {
    width: min(100%, 390px);
    min-height: auto;
    padding: 26px 18px 50px;
    gap: 10px;
  }

  .home-premium-popup__logo {
    width: min(78%, 240px);
    height: clamp(108px, 22vh, 148px);
  }

  .home-premium-popup__message {
    font-size: 14px;
  }
}

.archive-version-switcher {
  display: grid;
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding-top: clamp(92px, 11vh, 118px);
  padding-bottom: clamp(24px, 3.2vh, 38px);
  gap: clamp(18px, 2.4vw, 28px);
  color: var(--ink);
}

.archive-version-tabs {
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 5vw, 84px);
  overflow: visible;
}

.archive-version-tab {
  display: grid;
  width: clamp(118px, 13vw, 156px);
  min-height: 92px;
  place-items: center;
  gap: 8px;
  padding: 8px 6px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: rgba(17, 24, 39, 0.78);
  cursor: pointer;
  text-align: center;
  transition: transform 300ms ease, color 300ms ease, filter 300ms ease;
}

.archive-version-tab:hover,
.archive-version-tab.is-active {
  color: #111111;
  transform: translateY(-3px);
}

.archive-version-tab-icon {
  display: grid;
  width: clamp(62px, 6.1vw, 78px);
  min-height: clamp(38px, 3.9vw, 44px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  background:
    radial-gradient(circle at 28% 14%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08) 34%, transparent 66%),
    linear-gradient(145deg, #334454, #17212b 56%, #08090a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset -8px -10px 18px rgba(0, 0, 0, 0.46),
    0 12px 22px rgba(0, 0, 0, 0.22);
  color: #ffffff;
  font-size: clamp(13px, 1.18vw, 16px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 300ms ease, box-shadow 300ms ease, background 300ms ease;
}

.archive-version-tab:hover .archive-version-tab-icon,
.archive-version-tab.is-active .archive-version-tab-icon {
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.42), transparent 4.5rem),
    linear-gradient(145deg, #2c3f50, #17212b 58%, #090909);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -15px 26px rgba(0, 0, 0, 0.34),
    0 18px 30px rgba(0, 0, 0, 0.22);
}

.archive-version-tab-copy {
  display: grid;
  gap: 2px;
  justify-items: center;
  font-size: clamp(14px, 1.26vw, 17px);
  line-height: 1.16;
}

.archive-version-tab-copy strong {
  position: relative;
  display: inline-flex;
  width: fit-content;
  padding-bottom: 5px;
  font-size: inherit;
  font-weight: 800;
}

.archive-version-tab-copy strong::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(17, 24, 39, 0.7), transparent);
  opacity: 0.78;
}

.archive-version-tab-copy span {
  color: rgba(17, 24, 39, 0.58);
  font-size: 0.92em;
  font-weight: 800;
}

.archive-version-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: clamp(8px, 1.1vw, 12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: clamp(22px, 3vw, 34px);
  padding: clamp(16px, 1.8vw, 22px);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.25), transparent 30%),
    linear-gradient(142deg, rgba(70, 88, 99, 0.96), rgba(27, 35, 42, 0.98) 48%, rgba(7, 12, 16, 0.98)),
    #172331;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.3),
    inset 0 -52px 90px rgba(0, 0, 0, 0.22),
    0 28px 76px rgba(13, 22, 31, 0.24);
  color: #edf5fb;
  transition: opacity 280ms ease, transform 280ms ease, max-height 320ms ease, padding 280ms ease, margin 280ms ease;
}

.archive-version-card.is-collapsed {
  max-height: 0;
  margin-top: calc(clamp(18px, 2.4vw, 28px) * -1);
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -10px, 0) scale(0.985);
}

.archive-version-close {
  position: absolute;
  z-index: 2;
  top: clamp(12px, 1.5vw, 18px);
  right: clamp(12px, 1.5vw, 18px);
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.32), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 10px 22px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.archive-version-close:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.34), 0 14px 26px rgba(0, 0, 0, 0.22);
}

.archive-version-card::before,
.archive-version-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.archive-version-card::before {
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(185, 215, 235, 0.24), transparent 32%);
  opacity: 0.82;
}

.archive-version-card::after {
  display: none;
}

.archive-version-card-head {
  display: grid;
  gap: 4px;
}

.archive-version-kicker {
  color: rgba(237, 245, 251, 0.76);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-version-card h2 {
  margin: 0;
  color: #f7fbff;
  font-size: clamp(24px, 3.1vw, 38px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.archive-version-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(8px, 1.1vw, 12px);
  align-items: start;
  justify-items: stretch;
  animation: archiveVersionPanelIn 360ms ease both;
}

.archive-version-panel[hidden] {
  display: none;
}

.archive-version-copy {
  position: relative;
  color: rgba(237, 245, 251, 0.9);
  font-size: clamp(13px, 1.02vw, 15px);
  line-height: 1.28;
}

.archive-version-copy p,
.archive-version-copy ul {
  margin: 0 0 6px;
}

.archive-version-copy p:last-child,
.archive-version-copy ul:last-child {
  margin-bottom: 0;
}

.archive-version-copy ul {
  display: grid;
  gap: 4px;
  padding-left: 18px;
}

.archive-version-copy h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.1;
}

.archive-version-copy strong,
.archive-version-size strong {
  color: #ffffff;
}

.archive-version-size {
  color: rgba(237, 245, 251, 0.95);
  font-weight: 800;
}

.archive-version-download {
  align-self: start;
  justify-self: center;
  width: fit-content;
  min-width: 72px;
  min-height: 36px;
  padding: 5px 8px;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.archive-version-nav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  min-height: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(7px, 0.9vw, 10px) 0;
}

.archive-version-nav > * {
  align-self: center;
}

.archive-version-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.24), transparent 56%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  transition: transform 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.archive-version-nav .archive-version-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.archive-version-nav button:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 14px 26px rgba(0, 0, 0, 0.22);
}

.archive-version-nav button:first-child {
  justify-self: start;
}

.archive-version-nav button:last-child {
  justify-self: end;
}

@keyframes archiveVersionPanelIn {
  from {
    transform: translate3d(0, 12px, 0);
    opacity: 0;
    filter: blur(4px);
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    filter: blur(0);
  }
}

@media (max-width: 820px) {
  .archive-version-switcher {
    width: min(100%, calc(100vw - 28px));
    padding-top: clamp(86px, 13vh, 110px);
  }

  .archive-version-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .archive-version-tab {
    width: auto;
    min-height: 84px;
  }

  .archive-version-panel {
    grid-template-columns: 1fr;
  }

  .archive-version-download {
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .archive-version-switcher {
    width: min(100%, calc(100vw - 20px));
  }

  .archive-version-card {
    padding: 16px;
  }

  .archive-version-tabs {
    grid-template-columns: 1fr;
  }

  .archive-version-tab {
    grid-template-columns: auto 1fr;
    min-height: 58px;
    justify-items: start;
    text-align: left;
  }

  .archive-version-tab-copy {
    justify-items: start;
  }

  .archive-version-nav {
    gap: 12px;
  }
}

.archive-page {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(42px, 4.9vw, 60px) 0 clamp(64px, 8vw, 108px);
  display: grid;
  gap: clamp(28px, 4vw, 54px);
}

.archive-hero {
  max-width: min(1100px, 100%);
  margin: 0 auto;
  text-align: center;
}

.archive-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(20, 31, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9), 0 16px 40px rgba(42, 57, 72, 0.09);
  color: #23313d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-panel-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #61707c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-hero h1 {
  margin: 0 0 14px;
  color: #111820;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.archive-hero-title-line {
  display: block;
}

@media (min-width: 760px) {
  .archive-hero-title-line:first-child {
    white-space: nowrap;
  }
}

.firmware-archive-link,
.archive-file-recovery .firmware-sd-guide-card a {
  position: relative;
  display: inline-flex;
  width: fit-content;
  color: inherit;
  font-weight: 900;
  text-decoration: none;
  transition: filter 240ms ease, transform 240ms ease;
}

.firmware-archive-link::after,
.archive-file-recovery .firmware-sd-guide-card a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(17, 24, 32, 0.72), transparent);
  opacity: 0.82;
}

.firmware-archive-link:hover,
.firmware-archive-link:focus-visible,
.archive-file-recovery .firmware-sd-guide-card a:hover,
.archive-file-recovery .firmware-sd-guide-card a:focus-visible {
  filter: brightness(1.1);
  outline: none;
  transform: translateY(-1px);
}

.archive-hero p {
  max-width: 820px;
  margin: 0 auto;
  color: #5c6670;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.archive-panel {
  border: 1px solid rgba(27, 42, 55, 0.12);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(236, 243, 248, 0.86)),
    rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.95), 0 24px 70px rgba(32, 45, 58, 0.1);
  padding: clamp(22px, 3vw, 36px);
}

.archive-panel h2 {
  margin: 0 0 18px;
  color: #172331;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0;
}

.archive-file-module {
  display: grid;
  width: min(1180px, 100%);
  margin-inline: auto;
  grid-template-columns: minmax(360px, 0.96fr) minmax(460px, 1.04fr);
  gap: clamp(22px, 3.2vw, 44px);
  align-items: stretch;
}

.archive-file-recovery {
  align-self: stretch;
  min-width: 0;
}

.archive-file-recovery .firmware-sd-guide-card {
  height: 100%;
  justify-content: flex-start;
  padding: clamp(18px, 2.2vw, 28px);
}

.archive-file-recovery .firmware-sd-guide-card h2 {
  margin-bottom: 16px;
  font-size: clamp(20px, 2vw, 28px);
}

.archive-file-recovery .firmware-sd-guide-group + .firmware-sd-guide-group {
  margin-top: 14px;
}

.archive-file-recovery .firmware-sd-steps {
  gap: 8px;
  font-size: clamp(14px, 1.12vw, 15.5px);
  line-height: 1.42;
}

.archive-file-recovery .firmware-sd-steps li {
  display: block;
}

.archive-file-recovery .firmware-sd-steps li::before {
  margin-right: 9px;
}

.archive-file-recovery .firmware-sd-steps a {
  display: inline;
  width: auto;
  white-space: normal;
}

.archive-file-recovery .firmware-sd-steps a::after {
  display: none;
}

.archive-file-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-self: stretch;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 28px);
  color: #edf5fb;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(142deg, rgba(70, 88, 99, 0.96), rgba(27, 35, 42, 0.98) 48%, rgba(7, 12, 16, 0.98)),
    #172331;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.3),
    inset 0 -48px 90px rgba(0, 0, 0, 0.24),
    0 28px 76px rgba(13, 22, 31, 0.24);
  transform: translate3d(0, 18px, 0);
  opacity: 0;
  animation: archiveCardReveal 520ms cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

.archive-file-card::before,
.archive-file-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.archive-file-card::before {
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(185, 215, 235, 0.24), transparent 32%);
  opacity: 0.82;
}

.archive-file-card::after {
  inset: auto 24px 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.archive-file-card .archive-panel-kicker,
.archive-file-card .archive-filter-grid label {
  color: rgba(237, 245, 251, 0.86);
}

.archive-file-card .archive-panel-kicker {
  font-size: 11px;
}

.archive-file-card h2,
.archive-file-card .archive-results-heading h2 {
  color: #f7fbff;
  font-size: clamp(21px, 2.05vw, 28px);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.archive-file-card .archive-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.archive-file-card .archive-filter-grid label {
  gap: 6px;
  font-size: 11.5px;
}

.archive-file-card .archive-filter-grid select {
  min-height: 40px;
  border-radius: 14px;
  padding-inline: 14px;
  font-size: 13px;
  background: rgba(247, 251, 253, 0.9);
  border-color: rgba(255, 255, 255, 0.34);
}

.archive-file-card__divider {
  height: 1px;
  margin: clamp(16px, 2.2vw, 24px) 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
}

.archive-file-card .archive-results-heading {
  margin-bottom: 10px;
}

.archive-file-card .archive-table-wrap {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.archive-file-card .archive-table-wrap[hidden],
.archive-file-card .archive-results-empty[hidden],
.archive-file-card .archive-mobile-results[hidden] {
  display: none;
}

.archive-file-card .archive-mobile-results {
  display: none;
}

.archive-file-card .archive-table-wrap.is-visible {
  animation: archiveResultReveal 520ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

.archive-file-card .archive-results-empty {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  padding: 16px 18px;
  color: rgba(237, 245, 251, 0.9);
  font-size: 14px;
  line-height: 1.45;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
}

.archive-file-card .archive-table {
  min-width: 0;
  table-layout: fixed;
  font-size: 12.5px;
  color: #ffffff;
  background: transparent;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.archive-file-card .archive-table th,
.archive-file-card .archive-table td {
  padding: 10px;
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.archive-file-card .archive-table th {
  color: rgba(255, 255, 255, 0.72);
}

.archive-file-card .archive-table strong {
  color: #ffffff;
}

.archive-file-card .archive-table th:nth-child(1),
.archive-file-card .archive-table td:nth-child(1) {
  width: 25%;
}

.archive-file-card .archive-table th:nth-child(2),
.archive-file-card .archive-table td:nth-child(2) {
  width: 43%;
}

.archive-file-card .archive-table th:nth-child(3),
.archive-file-card .archive-table td:nth-child(3) {
  width: 16%;
}

.archive-file-card .archive-table th:nth-child(4),
.archive-file-card .archive-table td:nth-child(4) {
  width: 16%;
  text-align: center;
  transform: translateX(-25%);
}

.archive-file-card .archive-table td {
  overflow-wrap: anywhere;
}

.archive-file-card .archive-table tbody tr {
  transform: translate3d(0, 16px, 0) scale(0.985);
  opacity: 0;
  animation: none;
  filter: blur(5px);
}

.archive-file-card .archive-table tbody tr.is-archive-row-visible {
  animation: archiveRowReveal 520ms cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
  animation-delay: calc(70ms + (var(--archive-row-index, 0) * 55ms));
}

@keyframes archiveCardReveal {
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes archiveRowReveal {
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes archiveResultReveal {
  from {
    transform: translate3d(0, 12px, 0) scale(0.985);
    opacity: 0;
    filter: blur(4px);
  }
  to {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@media (max-width: 920px) {
  .archive-file-module {
    grid-template-columns: 1fr;
  }
}

.archive-instruction ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: #465463;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.6;
}

.archive-instruction strong,
.archive-table strong {
  color: #172331;
}

.archive-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.archive-filter,
.archive-filter-grid label {
  display: grid;
  gap: 8px;
  color: #1d2a36;
  font-size: 13px;
  font-weight: 800;
}

.archive-filter select,
.archive-filter-grid select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(28, 42, 54, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #172331;
  font: inherit;
  font-weight: 700;
  padding: 0 14px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}

.archive-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(27, 42, 55, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.archive-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  color: #243442;
  font-size: 14px;
}

.archive-table th,
.archive-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(27, 42, 55, 0.09);
  text-align: left;
  vertical-align: top;
}

.archive-table th {
  color: #172331;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.archive-table tr:last-child td {
  border-bottom: 0;
}

.archive-table code {
  color: #31475a;
  font-family: inherit;
  word-break: break-all;
}

.archive-file-name {
  display: block;
  color: #172331;
  font-weight: 900;
}

.archive-file-path {
  display: block;
  margin-top: 4px;
  color: #70808d;
  font-size: 12px;
  word-break: break-all;
}

.archive-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(28, 42, 54, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #172331;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.archive-download.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.archive-toolkit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.archive-toolkit p {
  max-width: 680px;
  margin: 0;
  color: #4e5d69;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
}

.archive-changelog ul,
.archive-changelog-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-changelog li,
.archive-changelog-item {
  border: 1px solid rgba(27, 42, 55, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  padding: 16px 18px;
}

.archive-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.archive-changelog-item h3 {
  margin: 0;
  color: #172331;
  font-size: 17px;
  font-weight: 900;
}

.archive-changelog-item p {
  margin: 10px 0 0;
  color: #53626f;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .archive-page {
    width: min(100%, calc(100vw - 28px));
    padding-top: 116px;
  }

  .archive-file-module {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
  }

  .archive-filter-grid,
  .archive-file-card .archive-filter-grid,
  .archive-toolkit {
    grid-template-columns: 1fr;
  }

  .archive-toolkit {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-table {
    min-width: 0;
  }

  .archive-table,
  .archive-table thead,
  .archive-table tbody,
  .archive-table tr,
  .archive-table th,
  .archive-table td {
    display: block;
  }

  .archive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .archive-table tbody {
    display: grid;
    gap: 8px;
  }

  .archive-table tr[hidden],
  .archive-file-card .archive-table tbody tr[hidden] {
    display: none !important;
  }

  .archive-table tr {
    border: 1px solid rgba(27, 42, 55, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    overflow: hidden;
  }

  .archive-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(27, 42, 55, 0.08);
    font-size: 12px;
    line-height: 1.25;
  }

  .archive-table td:last-child {
    border-bottom: 0;
  }
}

/* Global material tuning pass: use the main-page light card palette and the dark Toolkit card material.
   Toolkit/manual deck interiors stay on their existing rendering system. */
:root {
  --bm-light-panel-bg:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.96), transparent 15rem),
    radial-gradient(circle at 100% 110%, rgba(178, 196, 210, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(228, 235, 241, 0.74)),
    rgba(248, 251, 253, 0.82);
  --bm-light-panel-bg-hover:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 1), transparent 15rem),
    radial-gradient(circle at 100% 108%, rgba(158, 179, 196, 0.22), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(216, 227, 235, 0.82)),
    rgba(248, 251, 253, 0.92);
  --bm-light-panel-border: rgba(64, 82, 98, 0.12);
  --bm-light-panel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -24px 46px rgba(32, 45, 58, 0.055),
    0 26px 70px rgba(32, 45, 58, 0.11);
  --bm-dark-panel-bg:
    radial-gradient(ellipse at 50% -12%, rgba(184, 199, 211, 0.24), transparent 34%),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
    radial-gradient(circle at 84% 82%, rgba(6, 10, 16, 0.52), transparent 38%),
    linear-gradient(145deg, rgba(88, 103, 116, 0.98), rgba(45, 57, 69, 0.99) 48%, rgba(14, 22, 31, 1) 100%);
  --bm-dark-panel-inner-bg:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(14, 22, 31, 0.48);
  --bm-dark-panel-border: rgba(42, 53, 64, 0.78);
  --bm-dark-panel-shadow:
    0 28px 62px rgba(5, 10, 16, 0.36),
    0 12px 30px rgba(25, 38, 49, 0.24),
    0 0 0 1px rgba(5, 9, 14, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -28px 50px rgba(2, 5, 9, 0.32),
    inset 0 0 54px rgba(150, 172, 190, 0.08);
}

.archive-version-switcher {
  padding-bottom: clamp(16px, 2.1vh, 25px);
  gap: clamp(12px, 1.56vw, 18px);
}

.archive-version-tabs {
  gap: clamp(18px, 4vw, 67px);
}

.archive-version-tab {
  width: clamp(94px, 10.4vw, 125px);
  min-height: 74px;
  gap: 6px;
  padding: 6px 5px;
  border-radius: 14px;
}

.archive-version-tab-icon {
  width: clamp(50px, 4.9vw, 62px);
  min-height: clamp(30px, 3.1vw, 35px);
  border-radius: 12px;
  font-size: clamp(10.5px, 0.95vw, 13px);
}

.archive-version-tab-copy {
  gap: 1px;
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.12;
}

.archive-version-tab-copy strong {
  padding-bottom: 4px;
}

.archive-page {
  padding-top: clamp(27px, 3.2vw, 39px);
}

.archive-hero,
.archive-hero h1,
.archive-panel,
.archive-file-module {
  scroll-margin-top: clamp(156px, 19vh, 208px);
}

.card,
.text-panel,
.series-card,
.cta-panel,
.compare-card,
.steps div,
.docs-sidebar,
.docs-content,
.archive-panel,
.archive-kicker,
.archive-changelog-item,
.archive-table-wrap,
.archive-file-recovery .firmware-sd-guide-card,
.home-premium-popup__panel {
  border-color: var(--bm-light-panel-border);
  background: var(--bm-light-panel-bg);
  box-shadow: var(--bm-light-panel-shadow);
}

.card:hover,
.series-card:hover,
.steps div:hover,
.compare-card.strong,
.archive-changelog-item:hover {
  border-color: rgba(64, 82, 98, 0.16);
  background: var(--bm-light-panel-bg-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -26px 48px rgba(32, 45, 58, 0.07),
    0 28px 74px rgba(32, 45, 58, 0.14);
}

.archive-version-card,
.archive-file-card,
.feature-tab-card,
.asic-table-shell,
.firmware-asic-table .asic-table-shell,
.home-supported-table .asic-table-shell,
.firmware-launch .firmware-launch-table,
.home-features .feature-card:nth-child(1),
.home-features .feature-card:nth-child(3),
.home-features .feature-card:nth-child(6),
.home-features .feature-card:nth-child(8) {
  border-color: var(--bm-dark-panel-border);
  background: var(--bm-dark-panel-bg);
  box-shadow: var(--bm-dark-panel-shadow);
}

.archive-version-card,
.archive-file-card,
.feature-tab-card,
.asic-table-shell,
.firmware-asic-table .asic-table-shell,
.home-supported-table .asic-table-shell,
.firmware-launch .firmware-launch-table {
  color: #edf5fb;
}

.archive-file-card .archive-results-empty,
.archive-file-card .archive-table tbody tr,
.archive-file-card .archive-table-wrap,
.asic-table tbody tr,
.asic-table tbody tr:nth-child(even) {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--bm-dark-panel-inner-bg);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16);
}

.asic-table tbody tr:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.16)),
    linear-gradient(145deg, rgba(50, 64, 78, 0.9), rgba(18, 26, 36, 0.96) 58%, rgba(5, 9, 14, 0.98));
}

.asic-table thead th {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.13) 38%, transparent 62%),
    linear-gradient(145deg, rgba(83, 96, 109, 0.96), rgba(26, 34, 43, 0.98) 58%, rgba(8, 12, 18, 0.99));
  color: rgba(247, 251, 255, 0.96);
}

.asic-table th,
.asic-table td {
  border-color: rgba(226, 234, 242, 0.18);
  color: rgba(237, 245, 251, 0.9);
}

.nav {
  border-color: rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.2) 34%, transparent 58%),
    linear-gradient(145deg, rgba(238, 244, 249, 0.72), rgba(178, 190, 202, 0.7) 48%, rgba(74, 86, 98, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -12px 20px rgba(20, 30, 40, 0.15),
    0 14px 34px rgba(12, 18, 26, 0.18);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.nav a {
  color: rgba(24, 36, 48, 0.82);
}

.nav a.active:not(.header-download-button),
.nav a:hover:not(.header-download-button),
.nav a:focus-visible:not(.header-download-button) {
  border-color: rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.22) 38%, transparent 60%),
    linear-gradient(145deg, rgba(83, 96, 109, 0.96), rgba(26, 34, 43, 0.98) 58%, rgba(8, 12, 18, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 16px rgba(0, 0, 0, 0.22),
    0 10px 22px rgba(18, 27, 38, 0.18);
  color: rgba(247, 251, 255, 0.96);
}

.download-button,
.button,
.table-download-button,
.feature-tabs-more,
.toolkit-book-button,
.asic-table-link,
.feature-tab-card-nav,
.archive-version-nav button,
.archive-version-nav .archive-version-download {
  border-color: rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.22) 38%, transparent 60%),
    linear-gradient(145deg, rgba(83, 96, 109, 0.96), rgba(26, 34, 43, 0.98) 58%, rgba(8, 12, 18, 0.99));
  color: rgba(247, 251, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 16px rgba(0, 0, 0, 0.22),
    0 14px 30px rgba(18, 27, 38, 0.18);
}

.download-button:hover,
.button:hover,
.table-download-button:hover,
.feature-tabs-more:hover,
.toolkit-book-button:hover,
.asic-table-link:hover,
.feature-tab-card-nav:hover,
.archive-version-nav button:hover,
.archive-version-nav .archive-version-download:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(116deg, transparent 0 16%, rgba(255, 255, 255, 0.26) 36%, transparent 60%),
    linear-gradient(145deg, rgba(96, 111, 126, 0.98), rgba(34, 43, 54, 0.99) 58%, rgba(8, 12, 18, 1));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -12px 18px rgba(0, 0, 0, 0.25),
    0 18px 38px rgba(18, 27, 38, 0.22);
}

.firmware-asic-table .asic-table-intro,
.home-supported-table .asic-table-intro {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.13) 38%, transparent 62%),
    linear-gradient(145deg, rgba(83, 96, 109, 0.96), rgba(26, 34, 43, 0.98) 58%, rgba(8, 12, 18, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -16px 24px rgba(0, 0, 0, 0.24),
    0 14px 30px rgba(18, 27, 38, 0.18);
}

.firmware-asic-table .asic-table-intro::before,
.home-supported-table .asic-table-intro::before,
.firmware-asic-table .asic-table-shell::before,
.home-supported-table .asic-table-shell::before {
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.12) 38%, transparent 62%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.36), transparent 56%);
}

.nav a.header-download-button,
.nav a.header-download-button:hover,
.nav a.header-download-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.36), transparent 8rem),
    linear-gradient(135deg, #2c343d 0%, #5d6874 48%, #1a2027 100%);
  color: #f7fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -12px 22px rgba(0, 0, 0, 0.28),
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 5px 12px rgba(0, 0, 0, 0.12);
}

.nav a.header-download-button:hover,
.nav a.header-download-button:focus-visible {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.22), transparent 7rem),
    linear-gradient(135deg, #151b22 0%, #34404d 46%, #06080b 100%);
  color: #ffffff;
}

.firmware-asic-table .asic-table-shell,
.home-supported-table .asic-table-shell {
  background: var(--bm-dark-panel-bg);
}

.firmware-asic-table .asic-table-shell::after,
.home-supported-table .asic-table-shell::after {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.12) 38%, transparent 62%),
    linear-gradient(145deg, rgba(83, 96, 109, 0.96), rgba(26, 34, 43, 0.98) 58%, rgba(8, 12, 18, 0.99));
  opacity: 1;
  transform: none;
}

.firmware-asic-table .asic-table-bottom-strip,
.home-supported-table .asic-table-bottom-strip {
  border-top-color: rgba(226, 234, 242, 0.18);
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.12) 38%, transparent 62%),
    linear-gradient(145deg, rgba(83, 96, 109, 0.96), rgba(26, 34, 43, 0.98) 58%, rgba(8, 12, 18, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -14px 22px rgba(0, 0, 0, 0.28);
}

.site-footer {
  border-color: var(--bm-dark-panel-border);
  background: var(--bm-dark-panel-bg);
  box-shadow: var(--bm-dark-panel-shadow);
  color: #edf5fb;
}

.site-footer::before {
  background:
    linear-gradient(116deg, transparent 0 16%, rgba(255, 255, 255, 0.12) 34%, transparent 58%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.14), transparent 12rem);
  opacity: 0.7;
}

.site-footer p {
  color: rgba(237, 245, 251, 0.78);
}

.feature-tabs-more,
.feature-tabs-more:hover,
.feature-tabs-more:focus-visible {
  padding: 0 0 5px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(71, 86, 99, 0.92) !important;
  text-shadow: none;
}

.feature-tabs-more::after {
  content: none;
  display: none;
}

:where(
  .firmware-launch .firmware-supported-link,
  .firmware-archive-link,
  .feature-text-link,
  .feature-inline-link,
  .support-note a,
  .firmware-faq-list .faq-answer a,
  .faq-list a,
  .archive-file-recovery .firmware-sd-guide-card a,
  .firmware-sd-steps a,
  .manual-card-site-link
) {
  position: relative;
  display: inline;
  width: fit-content;
  border-bottom: 0 !important;
  background-image: linear-gradient(90deg, transparent, currentColor, transparent);
  background-position: 0 calc(100% - 0.02em);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  text-decoration: none !important;
  text-underline-offset: 0;
}

:where(
  .firmware-launch .firmware-supported-link,
  .firmware-archive-link,
  .feature-text-link,
  .feature-inline-link,
  .support-note a,
  .firmware-faq-list .faq-answer a,
  .faq-list a,
  .archive-file-recovery .firmware-sd-guide-card a,
  .firmware-sd-steps a,
  .manual-card-site-link
)::after {
  content: none !important;
  display: none !important;
}

:where(
  .firmware-launch .firmware-supported-link,
  .firmware-archive-link,
  .feature-text-link,
  .feature-inline-link,
  .support-note a,
  .firmware-faq-list .faq-answer a,
  .faq-list a,
  .archive-file-recovery .firmware-sd-guide-card a,
  .firmware-sd-steps a,
  .manual-card-site-link
) u {
  text-decoration: none !important;
}

.firmware-sd-nowrap {
  white-space: normal;
}

.archive-toolkit p,
.archive-changelog-item p,
.archive-panel p,
.text-panel p,
.cta-panel p,
.card p,
.series-card p,
.compare-card p {
  color: #4d5d69;
}

.archive-file-card .archive-panel-kicker,
.archive-file-card .archive-filter-grid label,
.archive-version-kicker,
.archive-version-copy,
.feature-tab-card p {
  color: rgba(237, 245, 251, 0.86);
}

.feature-tab-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -28px 50px rgba(2, 5, 9, 0.32),
    inset 0 0 54px rgba(150, 172, 190, 0.08);
}

@media (max-width: 820px) {
  .archive-version-switcher {
    padding-bottom: clamp(14px, 1.9vh, 22px);
  }

  .archive-version-tab {
    min-height: 67px;
  }
}

@media (max-width: 760px) {
  .archive-page {
    padding-top: 76px;
  }
}

html[data-lang="ru"] [data-lang-only="en"],
html[data-lang="en"] [data-lang-only="ru"],
[data-lang-only][hidden] {
  display: none !important;
}

.language-switcher {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 86;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "caption options"
    "current options";
  gap: 4px 8px;
  align-items: center;
  max-width: min(330px, calc(100vw - 32px));
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 22px;
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.18) 34%, transparent 58%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.28), transparent 7rem),
    linear-gradient(145deg, rgba(238, 244, 249, 0.78), rgba(205, 216, 226, 0.72) 46%, rgba(92, 104, 116, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -14px 24px rgba(20, 30, 40, 0.16),
    0 18px 42px rgba(12, 18, 26, 0.22);
  color: rgba(18, 29, 40, 0.96);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.language-switcher__caption {
  grid-area: caption;
  color: rgba(35, 48, 60, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.language-switcher__current {
  grid-area: current;
  display: flex;
  gap: 5px;
  align-items: baseline;
  min-width: 0;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
}

.language-switcher__current span {
  color: rgba(35, 48, 60, 0.62);
  font-weight: 800;
}

.language-switcher__current strong {
  color: rgba(12, 20, 28, 0.96);
  font-size: 12px;
  font-weight: 950;
}

.language-switcher__options {
  grid-area: options;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.44), rgba(47, 59, 72, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.language-switcher__option {
  display: inline-grid;
  min-width: 42px;
  min-height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(24, 36, 48, 0.82);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 220ms ease,
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.language-switcher__option:hover,
.language-switcher__option:focus-visible,
.language-switcher__option.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.22) 38%, transparent 60%),
    linear-gradient(145deg, rgba(83, 96, 109, 0.96), rgba(26, 34, 43, 0.98) 58%, rgba(8, 12, 18, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 16px rgba(0, 0, 0, 0.22),
    0 10px 22px rgba(18, 27, 38, 0.18);
  color: rgba(247, 251, 255, 0.96);
  outline: none;
}

html.has-manual-lightbox .language-switcher {
  z-index: 40;
}

@media (max-width: 760px) {
  .language-switcher {
    right: 10px;
    bottom: 10px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "options"
      "current";
    gap: 5px;
    width: auto;
    max-width: calc(100vw - 20px);
    padding: 7px;
    border-radius: 18px;
  }

  .language-switcher__caption {
    display: none;
  }

  .language-switcher__current {
    justify-content: center;
    font-size: 10px;
  }

  .language-switcher__current span {
    display: none;
  }

  .language-switcher__option {
    min-width: 38px;
    min-height: 30px;
    font-size: 11px;
  }
}

.language-switcher {
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  bottom: auto;
  display: inline-grid;
  grid-template-columns: 1fr;
  grid-template-areas: "options";
  gap: 0;
  width: auto;
  max-width: calc(100vw - 36px);
  padding: 4px;
  border-radius: 999px;
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.2) 34%, transparent 58%),
    linear-gradient(145deg, rgba(238, 244, 249, 0.72), rgba(178, 190, 202, 0.7) 48%, rgba(74, 86, 98, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -12px 20px rgba(20, 30, 40, 0.15),
    0 14px 34px rgba(12, 18, 26, 0.18);
}

.language-switcher__options {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.language-switcher__option {
  min-width: 38px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.firmware-toolkit-manual {
  width: min(1800px, calc(100% - 20px));
  margin: clamp(48px, 7vw, 92px) auto;
}

.firmware-toolkit-manual-slot:empty {
  display: none;
}

.firmware-embedded-manual {
  margin-top: 0;
  margin-bottom: 0;
}

.firmware-embedded-manual > .gminer-feature-tabs {
  margin-top: 0;
}

@media (max-width: 760px) {
  .language-switcher {
    top: 10px;
    right: 10px;
    bottom: auto;
    max-width: calc(100vw - 20px);
    padding: 3px;
  }

  .language-switcher__option {
    min-width: 34px;
    min-height: 28px;
    padding: 0 8px;
    font-size: 10px;
  }

  .firmware-toolkit-manual {
    width: min(100% - 12px, 1800px);
    margin-top: 38px;
  }
}

/* Global prefooter: partner rail and Toolkit showcase carousel. */
.global-prefooter {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(54px, 9vw, 102px);
  width: min(1480px, calc(100% - 28px));
  margin: clamp(54px, 7vw, 104px) auto clamp(26px, 4vw, 52px);
  overflow: hidden;
  isolation: isolate;
}

.global-prefooter::before {
  content: "";
  position: absolute;
  inset: 8% 7% auto;
  height: 46%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 50%, rgba(128, 157, 181, 0.16), transparent 34%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.12), transparent 30%);
  filter: blur(28px);
  opacity: 0.7;
  pointer-events: none;
  display: none;
}

.global-partners-section,
.global-showcase-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(116deg, transparent 0 16%, rgba(255, 255, 255, 0.11) 32%, transparent 54%),
    radial-gradient(circle at 14% 0%, rgba(169, 190, 207, 0.14), transparent 12rem),
    radial-gradient(circle at 90% 24%, rgba(73, 92, 110, 0.22), transparent 15rem),
    linear-gradient(145deg, rgba(64, 73, 82, 0.96), rgba(25, 31, 37, 0.98) 55%, rgba(7, 10, 14, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 12px 14px 28px rgba(255, 255, 255, 0.04),
    inset -18px -24px 34px rgba(0, 0, 0, 0.34),
    0 22px 64px rgba(7, 12, 18, 0.3);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

.global-partners-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  min-height: 178px;
  padding: clamp(22px, 3.2vw, 38px);
  border-radius: clamp(24px, 3vw, 40px);
}

.global-showcase-section {
  padding: clamp(24px, 3.3vw, 42px) 0 clamp(20px, 3vw, 34px);
  border-radius: clamp(26px, 3.2vw, 44px);
}

.global-section-heading {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.global-section-heading--center {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto clamp(18px, 2.6vw, 28px);
  text-align: center;
}

.global-section-heading span {
  color: rgba(197, 215, 231, 0.64);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.global-section-heading h2 {
  margin: 0;
  color: rgba(241, 247, 252, 0.98);
  font-size: clamp(28px, 3.8vw, 54px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.96;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.global-partner-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-partner-item,
.global-partner-link,
.global-partner-logo-shell {
  min-width: 0;
}

.global-partner-link,
.global-partner-logo-shell {
  display: grid;
  place-items: center;
  min-height: clamp(88px, 10vw, 124px);
  border-radius: clamp(18px, 2vw, 26px);
}

.global-partner-link {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(116deg, transparent 0 20%, rgba(255, 255, 255, 0.1) 38%, transparent 62%),
    linear-gradient(145deg, rgba(235, 241, 246, 0.09), rgba(36, 44, 52, 0.46));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -18px 28px rgba(0, 0, 0, 0.24);
  text-decoration: none;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.global-partner-link:hover,
.global-partner-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.16) 38%, transparent 62%),
    linear-gradient(145deg, rgba(235, 241, 246, 0.13), rgba(45, 56, 66, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -18px 28px rgba(0, 0, 0, 0.26),
    0 16px 34px rgba(0, 0, 0, 0.24);
  outline: none;
}

.global-partner-logo-shell img {
  width: min(78%, 250px);
  max-height: clamp(54px, 7vw, 86px);
  object-fit: contain;
  filter: grayscale(1) contrast(0.95) brightness(1.24) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
  opacity: 0.78;
  transition:
    transform 260ms ease,
    filter 260ms ease,
    opacity 260ms ease;
}

.global-partner-link:hover img,
.global-partner-link:focus-visible img {
  transform: scale(1.035);
  filter: grayscale(1) contrast(1.08) brightness(1.42) drop-shadow(0 14px 28px rgba(0, 0, 0, 0.34));
  opacity: 0.94;
}

.global-partners-section {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 210px;
  padding: clamp(26px, 3.6vw, 46px);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
}

.global-partners-section .global-section-heading {
  width: min(760px, 100%);
  gap: 0;
  text-align: center;
}

.global-partners-section .global-section-heading span {
  display: none;
}

.global-partners-section .global-section-heading h2 {
  color: rgba(17, 24, 32, 0.74);
  font-size: clamp(32px, 3.78vw, 54px);
  line-height: 1;
  text-shadow: 0 10px 24px rgba(255, 255, 255, 0.5);
}

.global-partners-section .global-partner-grid {
  width: min(100%, 1100px);
  grid-template-columns: repeat(auto-fit, minmax(220px, max-content));
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  justify-items: center;
  justify-content: center;
}

.global-partners-section .global-partner-item {
  display: grid;
  place-items: center;
  width: 100%;
  transition:
    transform 260ms ease,
    opacity 260ms ease;
}

.global-partners-section .global-partner-item:hover,
.global-partners-section .global-partner-item:focus-within {
  transform: translateY(-2px) scale(1.025);
}

.global-partners-section .global-partner-link {
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.global-partners-section .global-partner-link:hover,
.global-partners-section .global-partner-link:focus-visible {
  transform: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.global-partners-section .global-partner-logo-shell {
  width: clamp(224px, 23vw, 300px);
  height: clamp(84px, 8.8vw, 112px);
  min-height: 0;
  border-radius: 0;
}

.global-partners-section .global-partner-logo-shell img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  opacity: 0.96;
  filter: grayscale(1) contrast(1.08) brightness(0.72) drop-shadow(0 15px 28px rgba(43, 56, 70, 0.22));
}

.global-partners-section .global-partner-item:hover img,
.global-partners-section .global-partner-item:focus-within img {
  opacity: 0.96;
  filter: grayscale(1) contrast(1.08) brightness(0.72) drop-shadow(0 15px 28px rgba(43, 56, 70, 0.22));
}

.global-showcase-section {
  padding: clamp(10px, 1.6vw, 18px) 0 clamp(12px, 1.8vw, 20px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.global-showcase-section .global-section-heading {
  margin-bottom: clamp(10px, 1.5vw, 16px);
}

.global-showcase-section .global-section-heading span {
  display: none;
}

.global-showcase-section .global-section-heading h2 {
  color: rgba(17, 24, 32, 0.94);
  font-size: clamp(14px, 1.9vw, 27px);
  line-height: 1.08;
  text-shadow: none;
}

.global-section-note {
  width: min(680px, 100%);
  margin: clamp(14px, 1.7vw, 22px) auto 0;
  color: rgba(17, 24, 32, 0.58);
  font-size: clamp(10px, 0.92vw, 13px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.global-showcase-viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  padding: 4px 0 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.global-showcase-viewport::before,
.global-showcase-viewport::after {
  display: none;
  content: none;
}

.global-showcase-viewport::before {
  background: none;
}

.global-showcase-viewport::after {
  background: none;
}

.global-showcase-track {
  display: flex;
  width: max-content;
  gap: clamp(14px, 1.8vw, 24px);
  padding-inline: clamp(18px, 3vw, 42px);
  transform: translate3d(0, 0, 0);
  animation: global-showcase-marquee 10.4s linear infinite;
  animation-direction: normal;
  will-change: transform;
}

.global-showcase-viewport:hover .global-showcase-track,
.global-showcase-viewport:focus-within .global-showcase-track {
  animation-play-state: paused;
}

.global-showcase-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: clamp(174px, 15vw, 222px);
  aspect-ratio: 8 / 11;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(235, 243, 249, 0.22);
  border-radius: clamp(18px, 1.8vw, 24px);
  background:
    linear-gradient(116deg, transparent 0 16%, rgba(255, 255, 255, 0.11) 34%, transparent 58%),
    radial-gradient(circle at 22% 4%, rgba(173, 198, 220, 0.14), transparent 7rem),
    linear-gradient(145deg, rgba(57, 66, 75, 0.97), rgba(22, 28, 34, 0.99) 56%, rgba(5, 8, 12, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -18px 28px rgba(0, 0, 0, 0.32),
    0 22px 48px rgba(0, 0, 0, 0.26);
  transform: translateZ(0);
  color: inherit;
  text-decoration: none;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.global-showcase-card:hover,
.global-showcase-card:focus-visible {
  transform: translateY(-5px) scale(1.018);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -18px 28px rgba(0, 0, 0, 0.34),
    0 28px 58px rgba(0, 0, 0, 0.32);
  outline: none;
}

.global-showcase-card__media {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: calc(clamp(18px, 1.8vw, 24px) - 8px);
  background:
    radial-gradient(circle at 24% 12%, rgba(156, 179, 198, 0.12), transparent 7rem),
    linear-gradient(145deg, rgba(42, 50, 58, 0.98), rgba(15, 20, 25, 0.99) 58%, rgba(3, 6, 10, 1));
  box-shadow: none;
}

.global-showcase-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
  transition: none;
}

.global-showcase-card:hover .global-showcase-card__media img {
  transform: none;
  opacity: 1;
  filter: none;
}

.global-showcase-card__copy {
  display: grid;
  gap: 6px;
  padding: 14px 14px 16px;
}

.global-showcase-card--image-only {
  grid-template-rows: minmax(0, 1fr);
}

.global-showcase-card--image-only .global-showcase-card__media {
  margin: 0;
}

.global-showcase-card h3,
.global-showcase-card p {
  margin: 0;
}

.global-showcase-card h3 {
  color: rgba(244, 249, 253, 0.96);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
}

.global-showcase-card p {
  color: rgba(211, 224, 235, 0.76);
  font-size: clamp(11px, 0.92vw, 13px);
  font-weight: 700;
  line-height: 1.32;
}

@keyframes global-showcase-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - clamp(14px, 1.8vw, 24px)), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-showcase-track {
    animation: global-showcase-marquee 20.8s linear infinite;
  }

  .global-partner-link,
  .global-partner-logo-shell img,
  .global-showcase-card,
  .global-showcase-card__media img {
    transition: none;
  }
}

@media (max-width: 900px) {
  .global-partners-section {
    grid-template-columns: 1fr;
  }

  .global-section-heading {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .global-prefooter {
    width: min(100% - 16px, 1480px);
    margin-top: 42px;
    gap: 48px;
  }

  .global-partners-section,
  .global-showcase-section {
    border-radius: 24px;
  }

  .global-partners-section {
    min-height: 0;
    padding: 20px 14px;
  }

  .global-partner-grid {
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  }

  .global-partners-section .global-partner-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .global-partner-link,
  .global-partner-logo-shell {
    min-height: 82px;
  }

  .global-partners-section .global-partner-logo-shell {
    width: min(88vw, 340px);
    height: 109px;
  }

  .global-showcase-section {
    padding-block: 20px;
  }

  .global-showcase-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .global-showcase-viewport::before,
  .global-showcase-viewport::after {
    display: none;
  }

  .global-showcase-track {
    animation: global-showcase-marquee 15.6s linear infinite !important;
    gap: 14px;
    padding-inline: 14px;
  }

  .global-showcase-card {
    width: min(68vw, 220px);
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
}

/* Mobile polish pass: compact sticky header, centered mobile tabs and bottom manual navigation. */
@media (max-width: 760px) {
  body {
    padding-top: clamp(118px, 30vw, 142px);
    scroll-padding-top: clamp(128px, 32vw, 152px);
  }

  .site-header {
    position: fixed;
    top: max(6px, env(safe-area-inset-top));
    left: 50%;
    z-index: 95;
    display: grid;
    gap: 6px;
    justify-items: center;
    width: min(calc(100% - 18px), 420px);
    min-height: 0;
    margin: 6px auto 0;
    padding: 6px 7px 8px;
    border-radius: 26px;
    transform: translateX(-50%);
  }

  body:has(.instructions-docs:not(.firmware-embedded-manual)) .site-header {
    width: min(calc(100% - 18px), 420px);
  }

  .site-header .header-title,
  body:has(.instructions-docs:not(.firmware-embedded-manual)) .site-header .header-title {
    position: static;
    left: auto;
    top: auto;
    width: max-content;
    max-width: calc(100vw - 112px);
    height: auto;
    min-height: 34px;
    transform: none;
    gap: 7px;
    font-size: clamp(17px, 5.4vw, 22px);
    line-height: 1;
  }

  .site-header .header-logo-art {
    height: 36px;
    max-width: 44px;
  }

  .site-header .nav,
  body:has(.instructions-docs:not(.firmware-embedded-manual)) .site-header .nav {
    position: static;
    left: auto;
    top: auto;
    z-index: auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 5px;
    padding: 5px;
    border-radius: 26px;
    transform: none;
  }

  .site-header .nav a,
  .site-header .nav .header-download-button {
    min-height: 34px;
    padding: 5px 8px;
    font-size: clamp(13px, 4vw, 15px);
    line-height: 1.1;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .site-header .nav .header-download-button {
    grid-column: 5 / span 2;
    justify-self: center;
    width: 100%;
    font-size: clamp(11px, 3.25vw, 13px);
    line-height: 1.05;
  }

  .site-header .nav a:nth-child(1) {
    grid-column: 1 / span 3;
  }

  .site-header .nav a:nth-child(2) {
    grid-column: 4 / span 3;
  }

  .site-header .nav a:nth-child(3) {
    grid-column: 1 / span 2;
  }

  .site-header .nav a:nth-child(4) {
    grid-column: 3 / span 2;
  }

  .language-switcher {
    z-index: 96;
  }

  .gminer-feature-tabs {
    min-height: 0;
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .feature-tabs-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(100%, 430px);
    margin-inline: auto;
    gap: 14px 4px;
    padding: 0 4px 10px;
    justify-items: center;
  }

  .feature-tab-connector {
    display: none;
  }

  .feature-tab-trigger {
    width: 100%;
    max-width: 112px;
    min-height: 76px;
    padding: 4px 2px;
    justify-self: center;
  }

  .feature-tab-trigger:nth-of-type(1) {
    grid-column: 2 / span 2;
  }

  .feature-tab-trigger:nth-of-type(2) {
    grid-column: 4 / span 2;
  }

  .feature-tab-trigger:nth-of-type(3) {
    grid-column: 1 / span 2;
  }

  .feature-tab-trigger:nth-of-type(4) {
    grid-column: 3 / span 2;
  }

  .feature-tab-trigger:nth-of-type(5) {
    grid-column: 5 / span 2;
  }

  .feature-tab-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .feature-tab-label {
    max-width: 94px;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    line-height: 1.12;
  }

  .archive-version-switcher {
    width: min(100%, calc(100vw - 18px));
    padding-top: 58px;
    padding-bottom: 22px;
    gap: 12px;
  }

  .archive-version-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
    gap: 5px;
    align-items: start;
    justify-content: center;
  }

  .archive-version-tab {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 64px;
    gap: 5px;
    padding: 4px 2px;
    justify-items: center;
    text-align: center;
  }

  .archive-version-tab-icon {
    width: min(58px, 100%);
    min-height: 32px;
    border-radius: 12px;
    font-size: 11px;
  }

  .archive-version-tab-copy {
    justify-items: center;
    font-size: 11px;
    line-height: 1.08;
  }

  .archive-version-tab-copy strong {
    justify-content: center;
    text-align: center;
  }

  .archive-version-card {
    min-height: 1px;
  }

  .archive-page {
    padding-top: clamp(24px, 8vw, 42px);
  }

  .archive-file-module {
    gap: 16px;
  }

  .archive-file-card {
    order: 0;
    overflow: hidden;
    width: 100%;
    min-height: auto;
    opacity: 1;
    transform: none;
  }

  .archive-file-recovery {
    order: 0;
  }

  .archive-file-card .archive-table-wrap {
    overflow: visible !important;
    max-height: none !important;
  }

  .archive-file-card .archive-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
  }

  .archive-file-card .archive-table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
  }

  .archive-file-card .archive-table tbody {
    display: grid !important;
    gap: 9px;
    width: 100%;
  }

  .archive-file-card .archive-table tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    width: 100%;
    border: 1px solid rgba(225, 242, 255, 0.18);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
      rgba(7, 14, 22, 0.22);
    padding: 10px;
    overflow: visible;
  }

  .archive-file-card .archive-table tr[hidden],
  .archive-file-card .archive-table tbody tr[hidden] {
    display: none !important;
  }

  .archive-file-card .archive-table th,
  .archive-file-card .archive-table td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 11.5px;
    line-height: 1.25;
    vertical-align: middle;
  }

  .archive-file-card .archive-table td:nth-child(1) {
    font-size: 12.5px;
    font-weight: 900;
  }

  .archive-file-card .archive-table td:nth-child(2) {
    overflow-wrap: anywhere;
  }

  .archive-file-card .archive-table td:nth-child(3),
  .archive-file-card .archive-table td:nth-child(4) {
    display: inline-flex !important;
    width: auto !important;
    align-items: center;
    transform: none;
  }

  .archive-file-card .archive-download {
    min-height: 30px;
    padding: 0 12px;
    font-size: 11px;
  }

  .archive-file-card .archive-table-wrap.is-visible {
    display: none !important;
  }

  .archive-file-card .archive-mobile-results:not([hidden]) {
    display: grid !important;
    gap: 10px;
    margin-top: 10px;
    animation: archiveResultReveal 420ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
  }

  .archive-mobile-result-card {
    display: grid;
    gap: 9px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(225, 242, 255, 0.18);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
      rgba(7, 14, 22, 0.22);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.14),
      0 14px 28px rgba(3, 8, 13, 0.12);
  }

  .archive-mobile-result-card__item {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .archive-mobile-result-card__label {
    color: rgba(237, 245, 251, 0.62);
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
  }

  .archive-mobile-result-card__value {
    color: rgba(255, 255, 255, 0.94);
    font-size: 11.5px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .archive-mobile-result-card__action {
    display: flex;
    justify-content: flex-start;
    padding-top: 2px;
  }

  .archive-mobile-result-card .archive-mobile-download {
    min-height: 30px;
    padding: 0 13px;
    font-size: 11px;
  }

  .instructions-docs {
    padding-bottom: 104px;
  }

  .instructions-mobile-nav {
    position: fixed;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 89;
    display: block;
    width: min(calc(100vw - 24px), 430px);
    margin: 0;
    transform: translateX(-50%);
  }

  .instructions-mobile-nav details {
    overflow: hidden;
    padding: 0;
    border-radius: 22px;
    border-color: rgba(17, 24, 39, 0.12);
    background:
      radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.98), transparent 10rem),
      linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 234, 241, 0.88));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 16px 42px rgba(15, 23, 42, 0.18);
  }

  .instructions-mobile-nav summary {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 22px;
    color: #172535;
    font-size: clamp(18px, 5.4vw, 22px);
    font-weight: 900;
    line-height: 1.1;
    cursor: pointer;
    list-style: none;
  }

  .instructions-mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .instructions-mobile-nav summary::before {
    content: "▶";
    margin-right: 8px;
    color: #172535;
    font-size: 0.74em;
    transform-origin: center;
    transition: transform 180ms ease;
  }

  .instructions-mobile-nav details[open] summary::before {
    transform: rotate(90deg);
  }

  .instructions-mobile-nav nav {
    display: grid;
    max-height: min(56dvh, 420px);
    overflow: auto;
    padding: 0 14px 14px;
  }

  .instructions-mobile-nav .instructions-sidebar-panel {
    position: static;
    width: 100%;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .instructions-mobile-nav .instructions-sidebar-group + .instructions-sidebar-group {
    margin-top: 8px;
  }

  .instructions-mobile-nav .instructions-sidebar-group span,
  .instructions-mobile-nav .instructions-sidebar-group strong {
    padding: 8px 10px 4px;
    color: #172535;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .instructions-mobile-nav a {
    display: flex;
    width: 100%;
    padding: 10px 12px;
    color: #172535;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
  }

  .instructions-manual-card,
  .manual-shot {
    overflow: visible;
  }

  .manual-card-site-link {
    top: 0;
    max-width: calc(100% - 48px);
    white-space: nowrap;
  }
}
