:root {
  color-scheme: dark;
  --gallery-bg: #070c12;
  --gallery-panel: #0d141d;
  --gallery-panel-2: #111b27;
  --gallery-line: #263342;
  --gallery-muted: #9ca9ba;
  --gallery-text: #f5f7fb;
  --gallery-blue: #3887ff;
  --gallery-blue-2: #1468ef;
}

body.gallery-active {
  min-width: 320px;
  margin: 0;
  padding: 0 !important;
  overflow-x: hidden;
  color: var(--gallery-text);
  background:
    radial-gradient(circle at 78% 9%, rgb(21 105 239 / 12%), transparent 28rem),
    linear-gradient(145deg, #080d14 0%, #07101a 48%, #05090e 100%);
  font-family: "Geist", "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.gallery-active * { box-sizing: border-box; }
.gallery-active a { color: inherit; text-decoration: none; }
.gallery-active button { font: inherit; }
.gallery-active [hidden] { display: none !important; }

.gallery-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 12px 16px;
  border-radius: 8px;
  color: #06101c !important;
  background: #fff;
  transform: translateY(-160%);
}

.gallery-skip:focus { transform: translateY(0); }

.gallery-contact-strip {
  min-height: 50px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  color: #c8d0dc;
  background: rgb(3 7 12 / 76%);
}

.gallery-contact-inner,
.gallery-header-inner,
.gallery-main,
.gallery-footer-inner {
  width: min(100% - 48px, 1480px);
  margin-inline: auto;
}

.gallery-contact-inner {
  display: flex;
  align-items: center;
  min-height: 50px;
  gap: 28px;
  font-size: 14px;
}

.gallery-contact-inner span { flex: 1; }
.gallery-contact-inner a,
.gallery-footer-contact a,
.gallery-footer-legal a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.gallery-contact-inner a:hover { color: #fff; }

.gallery-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gallery-line);
  background: rgb(7 12 18 / 90%);
  backdrop-filter: blur(18px);
}

.gallery-header-inner {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  min-height: 72px;
  gap: 28px;
}

.gallery-brand {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  min-height: 44px;
  gap: 8px;
  font-size: 22px;
  letter-spacing: -.03em;
}

.gallery-brand strong { font-weight: 760; }
.gallery-brand span { color: var(--gallery-blue); font-weight: 600; }

.gallery-navigation {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 52px;
}

.gallery-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  color: #b9c3d0;
  font-size: 15px;
}

.gallery-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gallery-blue);
  content: "";
  opacity: 0;
  transform: scaleX(.5);
}

.gallery-navigation a:hover,
.gallery-navigation a[aria-current="page"] { color: #fff; }
.gallery-navigation a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }

.gallery-route-total {
  justify-self: end;
  color: var(--gallery-muted);
  font-size: 14px;
  white-space: nowrap;
}

.gallery-route-total strong { color: #fff; }
.gallery-route-total i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px 3px;
  border-radius: 50%;
  background: var(--gallery-blue);
}

.gallery-menu-button { display: none; }
.gallery-nav-meta { display: none; }

.gallery-main {
  min-height: calc(100vh - 265px);
  padding-block: 44px 84px;
}

.gallery-panel {
  border: 1px solid var(--gallery-line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgb(14 22 31 / 94%), rgb(6 12 18 / 96%));
  box-shadow: 0 30px 90px rgb(0 0 0 / 22%);
}

.gallery-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  padding: 68px 56px 160px;
  overflow: hidden;
}

.gallery-home-hero::after {
  position: absolute;
  inset: auto -8% -45% 30%;
  height: 70%;
  background: radial-gradient(ellipse, rgb(37 118 255 / 20%), transparent 70%);
  content: "";
  pointer-events: none;
}

.gallery-hero-copy { position: relative; z-index: 2; align-self: center; max-width: 680px; }
.gallery-eyebrow {
  margin: 0 0 10px;
  color: var(--gallery-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.gallery-hero-copy h1 {
  margin: 0;
  font-family: "Inter Tight", "Geist", sans-serif;
  font-size: clamp(48px, 5vw, 80px);
  line-height: .98;
  letter-spacing: -.055em;
}

.gallery-hero-copy h1 em { color: var(--gallery-blue); font-style: normal; }
.gallery-hero-copy > p:not(.gallery-eyebrow) { max-width: 620px; margin: 24px 0 0; color: #b7c1cf; font-size: 20px; }
.gallery-hero-actions { display: flex; gap: 14px; margin-top: 32px; }

.gallery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--gallery-blue);
  border-radius: 9px;
  font-size: 15px;
  font-weight: 650;
}

.gallery-button span { margin-left: 22px; font-size: 20px; }
.gallery-button-primary { background: linear-gradient(120deg, var(--gallery-blue-2), var(--gallery-blue)); }
.gallery-button-secondary { color: #75aaff !important; background: rgb(7 15 24 / 74%); }

.gallery-hero-visual { position: relative; align-self: center; min-height: 340px; }
.gallery-window {
  position: absolute;
  width: min(80%, 470px);
  aspect-ratio: 1.55;
  border: 1px solid #4d6074;
  border-radius: 10px;
  background: linear-gradient(145deg, #172231, #0b121c);
  box-shadow: 0 25px 70px rgb(0 0 0 / 45%);
}

.gallery-window::before {
  position: absolute;
  inset: 28px 0 auto;
  height: 1px;
  background: #435065;
  content: "";
}

.gallery-window i { position: relative; top: 10px; left: 14px; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #758397; }
.gallery-window span { position: absolute; top: 54px; left: 24px; width: 44%; height: 42%; border-radius: 6px; background: linear-gradient(135deg, #1f72e7, #104ba6); }
.gallery-window b { position: absolute; top: 54px; right: 24px; width: 38%; height: 9px; border-radius: 6px; background: #3b4656; box-shadow: 0 25px #253142, 0 45px #253142, 0 65px #253142; }
.gallery-window-back { top: 10px; right: 8%; }
.gallery-window-front { right: -2%; bottom: 0; width: min(62%, 360px); }

.gallery-category-row {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
}

.gallery-category-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  min-height: 114px;
  padding: 17px 14px;
  border: 1px solid var(--gallery-line);
  border-radius: 12px;
  background: linear-gradient(145deg, #121b25, #0c131a);
}

.gallery-category-icon { grid-row: 1 / 3; align-self: start; margin-right: 11px; color: var(--gallery-blue); font-size: 23px; line-height: 1; }
.gallery-category-card strong { font-size: 14px; }
.gallery-category-card > span:not(.gallery-category-icon) { align-self: end; color: var(--gallery-muted); font-size: 12px; }
.gallery-category-card b { grid-row: 1 / 3; align-self: end; color: #d7e1ed; font-size: 18px; font-weight: 400; }

.gallery-section-block { margin-top: 56px; }
.gallery-section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; gap: 24px; }
.gallery-section-heading h2 { margin: 0; font-family: "Inter Tight", sans-serif; font-size: 28px; letter-spacing: -.03em; }
.gallery-section-heading > a { min-height: 44px; color: #77abff; }
.gallery-section-heading code { color: #91a1b4; }

.gallery-grid { display: grid; gap: 16px; }
.gallery-template-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-template-catalog { grid-template-columns: repeat(4, 1fr); }
.gallery-catalog-grid { grid-template-columns: repeat(5, 1fr); }
.gallery-variant-grid { grid-template-columns: repeat(4, 1fr); }
.gallery-ecommerce-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-product-grid { grid-template-columns: repeat(4, 1fr); }
.gallery-ui-grid { grid-template-columns: repeat(4, 1fr); }

.gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gallery-line);
  border-radius: 12px;
  background: linear-gradient(145deg, #111923, #0b121a);
  box-shadow: 0 14px 35px rgb(0 0 0 / 12%);
}

.gallery-card-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--gallery-line);
  background: #101721;
}

.gallery-template-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-template-preview img:not([src]) { opacity: 0; }
.gallery-card-body { display: flex; align-items: end; justify-content: space-between; min-height: 78px; padding: 14px; gap: 12px; }
.gallery-card-body div { min-width: 0; }
.gallery-card-body strong { display: block; overflow: hidden; font-size: 15px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.gallery-card-body span { display: block; overflow: hidden; margin-top: 5px; color: var(--gallery-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.gallery-card-body b { flex: 0 0 auto; color: #67a1ff; font-size: 12px; font-weight: 550; white-space: nowrap; }
.gallery-card-body b span { display: inline; margin-left: 5px; color: inherit; font-size: 16px; }

.gallery-abstract-preview { padding: 12%; background: radial-gradient(circle at calc(18% + var(--card-index) * 7%) 40%, rgb(49 129 255 / 23%), transparent 45%), #101823; }
.gallery-abstract-preview > span { position: absolute; display: block; border: 1px solid #334255; border-radius: 6px; background: #17212d; }
.gallery-abstract-preview > span:nth-child(1) { top: 25%; left: 9%; width: 22%; height: 50%; }
.gallery-abstract-preview > span:nth-child(2) { top: 18%; left: 35%; width: 28%; height: 64%; border-color: #347ee4; background: linear-gradient(145deg, #193a69, #152233); }
.gallery-abstract-preview > span:nth-child(3) { top: 29%; right: 9%; width: 23%; height: 42%; }
.gallery-abstract-preview > span:nth-child(4) { top: 38%; left: 42%; width: 14%; height: 3px; border: 0; border-radius: 4px; background: #5792e8; box-shadow: 0 10px #34465e, 0 20px #34465e; }
.gallery-abstract-preview > i { position: absolute; top: 39%; left: 16%; width: 8%; aspect-ratio: 1; border: 1px solid #4b8cef; border-radius: 50%; }
.gallery-abstract-preview[data-preview-type="backgrounds"] { background: radial-gradient(circle at calc(20% + var(--card-index) * 6%) 40%, #1977f7, transparent 18%), linear-gradient(calc(120deg + var(--card-index) * 10deg), #09111b, #1d1761 45%, #07101b); }
.gallery-abstract-preview[data-preview-type="buttons"] > span:nth-child(1) { top: 37%; left: 22%; width: 56%; height: 28%; border-color: #3e86ef; background: linear-gradient(120deg, #145ed0, #2f82ff); }
.gallery-abstract-preview[data-preview-type="buttons"] > span:not(:nth-child(1)),
.gallery-abstract-preview[data-preview-type="buttons"] > i { display: none; }
.gallery-abstract-preview[data-preview-type="color-swatch"] { background: linear-gradient(135deg, #0d1621, #15243a); }
.gallery-abstract-preview[data-preview-type="color-swatch"] > span { top: 27%; width: 22%; height: 46%; border: 4px solid #e6edf7; border-radius: 50%; }
.gallery-abstract-preview[data-preview-type="color-swatch"] > span:nth-child(1) { left: 12%; background: #2563eb; }
.gallery-abstract-preview[data-preview-type="color-swatch"] > span:nth-child(2) { left: 30%; background: #0ea371; }
.gallery-abstract-preview[data-preview-type="color-swatch"] > span:nth-child(3) { right: 30%; background: #c026d3; }
.gallery-abstract-preview[data-preview-type="color-swatch"] > span:nth-child(4) { right: 12%; background: #f59e0b; box-shadow: none; }
.gallery-abstract-preview[data-preview-type="color-swatch"] > i { display: none; }
.gallery-abstract-preview[data-preview-type="ecommerce"] > span:nth-child(2),
.gallery-abstract-preview[data-preview-type="product"] > span:nth-child(2) { background: #e6e8eb; }

.gallery-page-heading { display: flex; align-items: end; justify-content: space-between; margin: 10px 0 30px; gap: 32px; }
.gallery-page-heading h1 { margin: 0; font-family: "Inter Tight", sans-serif; font-size: clamp(40px, 4vw, 62px); line-height: 1; letter-spacing: -.045em; }
.gallery-page-heading > div > p:last-child { max-width: 680px; margin: 14px 0 0; color: #aab6c6; font-size: 17px; }
.gallery-heading-meta { display: flex; flex-direction: column; align-items: end; gap: 12px; }
.gallery-heading-meta > span { padding: 10px 14px; border: 1px solid var(--gallery-line); border-radius: 9px; color: #bdc7d4; font-family: ui-monospace, monospace; font-size: 13px; }

.gallery-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.gallery-filter-row button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--gallery-line);
  border-radius: 999px;
  color: #d6deea;
  background: #111924;
  cursor: pointer;
}
.gallery-filter-row button[aria-pressed="true"] { border-color: var(--gallery-blue); color: #fff; background: var(--gallery-blue-2); }

.gallery-motion-note { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 13px; border: 1px solid var(--gallery-line); border-radius: 9px; color: #b5c0cf; font-size: 13px; }
.gallery-motion-note span { color: var(--gallery-blue); font-size: 20px; }
.gallery-subheading { margin-top: 42px; }

.gallery-ui-layout { display: grid; grid-template-columns: 230px 1fr; align-items: start; gap: 22px; }
.gallery-ui-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--gallery-line); border-radius: 12px; background: #0d151f; }
.gallery-ui-sidebar h2 { margin: 4px 8px 10px; font-size: 15px; }
.gallery-ui-sidebar a { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: #c2ccd8; font-size: 13px; }
.gallery-ui-sidebar a span { color: var(--gallery-blue); font-size: 17px; }
.gallery-ui-sidebar a b { color: #75869b; font-size: 11px; }
.gallery-ui-sidebar a:hover,
.gallery-ui-sidebar a.is-active { color: #fff; background: linear-gradient(120deg, #1663d8, #2d83ff); }
.gallery-ui-sidebar a.is-active span,
.gallery-ui-sidebar a.is-active b { color: #fff; }

.gallery-swatch-grid {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border: 1px solid var(--gallery-line);
  border-radius: 18px;
  background: #0c131c;
  box-shadow: 0 30px 90px rgb(0 0 0 / 22%);
}

.gallery-swatch-controls { padding: clamp(28px, 4vw, 58px); }
.gallery-swatch-control-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.gallery-swatch-control-heading h2 { margin: 0; font-family: "Inter Tight", sans-serif; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; }
.gallery-swatch-control-heading > span { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #38506e; border-radius: 50%; color: #8ab6ff; background: #101d2d; font-family: "Inter Tight", sans-serif; font-weight: 750; }
.gallery-swatch-intro { max-width: 440px; margin: 16px 0 26px; color: #9eacbd; }
.gallery-swatch-states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 26px; }
.gallery-swatch-states button {
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #34475d;
  border-radius: 9px;
  color: #aebaca;
  background: #101923;
  cursor: pointer;
}
.gallery-swatch-states button[aria-pressed="true"] { border-color: #4b93ff; color: #fff; background: #17345c; box-shadow: inset 0 0 0 1px #4b93ff; }
.gallery-swatch-input-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: end; gap: 12px; }
.gallery-swatch-picker { width: 72px; height: 58px; padding: 5px; border: 1px solid #43556a; border-radius: 10px; background: #101923; cursor: pointer; }
.gallery-swatch-picker::-webkit-color-swatch-wrapper { padding: 0; }
.gallery-swatch-picker::-webkit-color-swatch,
.gallery-swatch-picker::-moz-color-swatch { border: 0; border-radius: 6px; }
.gallery-swatch-hex { min-width: 0; }
.gallery-swatch-hex span { display: block; margin-bottom: 7px; color: #c5ceda; font-size: 13px; font-weight: 650; }
.gallery-swatch-hex input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid #43556a;
  border-radius: 10px;
  color: #f7f9fc;
  background: #0a1119;
  font: 650 18px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .02em;
}
.gallery-swatch-hex input[aria-invalid="true"] { border-color: #ff7373; box-shadow: inset 0 0 0 1px #ff7373; }
.gallery-swatch-error { margin: 10px 0 0; color: #ff9a9a; font-size: 13px; }
.gallery-swatch-origin { display: flex; align-items: center; min-height: 72px; margin-top: 22px; padding: 14px 16px; border: 1px solid #2c3c4f; border-radius: 11px; background: #0a1119; gap: 12px; }
.gallery-swatch-origin-dot { width: 13px; height: 13px; flex: 0 0 auto; border: 3px solid rgb(255 255 255 / 72%); border-radius: 50%; background: var(--swatch-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--swatch-color) 25%, transparent); }
.gallery-swatch-origin div { display: grid; gap: 2px; }
.gallery-swatch-origin small { color: #7f8da0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.gallery-swatch-origin strong { font-size: 14px; }

.gallery-swatch-preview { position: relative; display: flex; min-height: 600px; overflow: hidden; isolation: isolate; }
.gallery-swatch-preview > img { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-swatch-preview-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgb(3 8 14 / 72%), rgb(3 8 14 / 20%) 75%), linear-gradient(0deg, rgb(3 8 14 / 58%), transparent 55%); }
.gallery-swatch-preview::after { position: absolute; z-index: -1; inset: auto -10% -32% 20%; height: 70%; background: radial-gradient(circle, color-mix(in srgb, var(--swatch-color) 45%, transparent), transparent 65%); content: ""; }
.gallery-swatch-preview-copy { align-self: end; max-width: 590px; padding: clamp(36px, 5vw, 72px); }
.gallery-swatch-preview-copy > span { display: inline-flex; margin-bottom: 18px; padding: 8px 11px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 999px; color: #fff; background: rgb(3 8 14 / 38%); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(8px); }
.gallery-swatch-preview-copy h2 { margin: 0; color: #fff; font-family: "Inter Tight", sans-serif; font-size: clamp(48px, 6vw, 82px); line-height: .92; letter-spacing: -.06em; text-shadow: 0 3px 30px rgb(0 0 0 / 45%); }
.gallery-swatch-preview-copy h2 em {
  padding: 0 .09em .04em;
  border-radius: .09em;
  color: var(--swatch-contrast);
  background: var(--swatch-color);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-style: normal;
}
.gallery-swatch-preview-copy p { margin: 22px 0 28px; color: #e2e9f2; font-size: 17px; text-shadow: 0 2px 15px #000; }
.gallery-swatch-preview-copy button { min-width: 160px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 9px; color: var(--swatch-contrast); background: var(--swatch-color); font-weight: 750; box-shadow: 0 16px 34px color-mix(in srgb, var(--swatch-color) 34%, transparent); cursor: pointer; }
.gallery-swatch-preview-note { position: absolute; top: 18px; right: 18px; margin: 0; padding: 7px 9px; border-radius: 7px; color: #dce5ef; background: rgb(3 8 14 / 65%); font-size: 11px; backdrop-filter: blur(8px); }

.gallery-swatch-state-notes { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); margin-top: 18px; overflow: hidden; border: 1px solid var(--gallery-line); border-radius: 14px; background: #0c131c; }
.gallery-swatch-notes-heading,
.gallery-swatch-state-notes article { min-width: 0; padding: 24px; }
.gallery-swatch-state-notes article { border-left: 1px solid var(--gallery-line); }
.gallery-swatch-notes-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.gallery-swatch-state-notes article > span { color: #669eff; font: 700 11px/1 ui-monospace, monospace; }
.gallery-swatch-state-notes article h3 { margin: 12px 0 6px; font-size: 16px; }
.gallery-swatch-state-notes article p { margin: 0; color: #8f9dad; font-size: 13px; }

.gallery-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; min-height: 44px; margin-bottom: 20px; gap: 12px; color: #92a0b2; font-size: 14px; }
.gallery-breadcrumbs a { color: #70a8ff; }
.gallery-breadcrumbs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -8px -6px; padding: 8px 6px; }
.gallery-breadcrumbs strong { color: #fff; }

.gallery-viewport-switcher { display: inline-grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; border: 1px solid var(--gallery-line); border-radius: 10px; overflow: hidden; }
.gallery-viewport-switcher button { display: flex; align-items: center; justify-content: center; min-width: 150px; min-height: 48px; border: 0; border-right: 1px solid var(--gallery-line); color: #aab6c5; background: #0d141d; cursor: pointer; }
.gallery-viewport-switcher button:last-child { border-right: 0; }
.gallery-viewport-switcher button[aria-pressed="true"] { color: #6da6ff; background: #152133; box-shadow: inset 0 0 0 2px #3c8cff; }
.gallery-viewport-switcher button span { width: 14px; height: 18px; margin-right: 9px; border: 1px solid currentcolor; border-radius: 2px; }
.gallery-viewport-switcher button[data-preview-viewport="desktop"] span { width: 22px; height: 15px; }
.gallery-viewport-switcher button[data-preview-viewport="tablet"] span { width: 17px; height: 20px; }

.gallery-inspector-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; border: 1px solid var(--gallery-line); border-radius: 16px; overflow: hidden; background: #0c131c; }
.gallery-preview-panel { min-width: 0; padding: 24px; }
.gallery-preview-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.gallery-preview-heading h1 { margin: 0; font-size: 24px; }
.gallery-preview-heading button { min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid #4b6590; border-radius: 8px; color: #8bb7ff; background: #101a27; cursor: pointer; }
.gallery-preview-heading button span { margin-left: 6px; }
.gallery-preview-stage { display: flex; justify-content: center; min-height: 740px; padding: 12px; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #151e2a, #09101a); }
.gallery-preview-frame { width: 100%; max-width: 100%; height: 716px; overflow: hidden; border: 1px solid #526173; border-radius: 9px; background: #fff; box-shadow: 0 24px 60px rgb(0 0 0 / 35%); }
.gallery-preview-frame[data-viewport="tablet"] { width: 768px; }
.gallery-preview-frame[data-viewport="mobile"] { width: 390px; }
.gallery-preview-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

.gallery-inspector-meta { border-left: 1px solid var(--gallery-line); background: linear-gradient(180deg, #111925, #0b121a); }
.gallery-inspector-meta div { display: flex; flex-direction: column; padding: 22px; border-bottom: 1px solid var(--gallery-line); gap: 6px; }
.gallery-inspector-meta span { color: #8f9bad; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.gallery-inspector-meta strong { font-size: 16px; }
.gallery-inspector-meta code { overflow-wrap: anywhere; color: #c3d0e1; font-size: 12px; }
.gallery-inspector-meta p { margin: 0; padding: 22px; color: #8f9bad; font-size: 13px; }

.gallery-neighbors { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; border: 1px solid var(--gallery-line); border-radius: 12px; overflow: hidden; }
.gallery-neighbors > *:nth-child(2) { border-left: 1px solid var(--gallery-line); }
.gallery-neighbors a { display: flex; align-items: center; min-height: 86px; padding: 14px 18px; gap: 16px; }
.gallery-neighbors a:nth-child(2) { flex-direction: row-reverse; text-align: right; }
.gallery-neighbors i { color: #dbe6f2; font-size: 27px; font-style: normal; }
.gallery-neighbors span { display: flex; flex-direction: column; }
.gallery-neighbors small { color: #8d9aab; }
.gallery-neighbors strong { color: #74aaff; }

.gallery-footer { border-top: 1px solid var(--gallery-line); background: #070b10; }
.gallery-footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 24px; }
.gallery-footer-contact,
.gallery-footer-legal { display: flex; gap: 30px; color: #aeb9c7; font-size: 14px; }
.gallery-mobile-contact { display: none; }

.gallery-active :is(a, button, input):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--gallery-blue);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery-navigation a::after,
  .gallery-card,
  .gallery-category-card,
  .gallery-button,
  .gallery-filter-row button { transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease; }
  .gallery-card:hover,
  .gallery-category-card:hover { border-color: #3e8cff; transform: translateY(-3px); box-shadow: 0 18px 45px rgb(0 0 0 / 28%), 0 0 0 1px rgb(44 127 255 / 24%); }
  .gallery-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgb(20 104 239 / 28%); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-active *,
  .gallery-active *::before,
  .gallery-active *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (max-width: 1180px) {
  .gallery-header-inner { grid-template-columns: auto 1fr auto; }
  .gallery-navigation { gap: 28px; justify-self: center; }
  .gallery-route-total { display: none; }
  .gallery-home-hero { grid-template-columns: 1.1fr .9fr; padding-inline: 38px; }
  .gallery-category-row { grid-template-columns: repeat(4, 1fr); }
  .gallery-home-hero { padding-bottom: 280px; }
  .gallery-template-catalog,
  .gallery-variant-grid,
  .gallery-ui-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-catalog-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .gallery-contact-strip { display: none; }
  .gallery-contact-inner,
  .gallery-header-inner,
  .gallery-main,
  .gallery-footer-inner { width: min(100% - 32px, 1480px); }
  .gallery-header-inner { grid-template-columns: 1fr auto; min-height: 70px; }
  .gallery-menu-button { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid #344152; border-radius: 10px; background: #111923; gap: 5px; }
  .gallery-menu-button span { display: block; width: 23px; height: 2px; background: #edf2f8; }
  .gallery-navigation { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--gallery-line); background: #090f16; }
  .gallery-navigation.is-open { display: grid; }
  .gallery-navigation a { min-height: 48px; padding: 0 12px; border-radius: 8px; }
  .gallery-navigation a[aria-current="page"] { background: #111d2b; }
  .gallery-navigation a::after { display: none; }
  .gallery-nav-meta { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--gallery-line); }
  .gallery-nav-meta a:first-child { grid-column: 1 / -1; }
  .gallery-main { padding-block: 28px 112px; }
  .gallery-home-hero { display: block; min-height: 0; padding: 42px 28px 330px; }
  .gallery-hero-visual { display: none; }
  .gallery-category-row { grid-template-columns: repeat(2, 1fr); }
  .gallery-template-grid,
  .gallery-template-catalog,
  .gallery-catalog-grid,
  .gallery-variant-grid,
  .gallery-ui-grid,
  .gallery-product-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-ui-layout { grid-template-columns: 1fr; }
  .gallery-ui-sidebar { position: static; display: grid; grid-template-columns: repeat(4, 1fr); }
  .gallery-ui-sidebar h2 { grid-column: 1 / -1; }
  .gallery-inspector-grid { grid-template-columns: 1fr; }
  .gallery-inspector-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--gallery-line); border-left: 0; }
  .gallery-inspector-meta p { grid-column: 1 / -1; }
  .gallery-swatch-grid { grid-template-columns: 1fr; }
  .gallery-swatch-preview { min-height: 540px; }
  .gallery-swatch-state-notes { grid-template-columns: repeat(3, 1fr); }
  .gallery-swatch-notes-heading { grid-column: 1 / -1; border-bottom: 1px solid var(--gallery-line); }
  .gallery-swatch-state-notes article:first-of-type { border-left: 0; }
  .gallery-footer { display: none; }
  .gallery-mobile-contact { display: grid; grid-template-columns: 2fr 1fr 1fr; min-height: 68px; padding-bottom: env(safe-area-inset-bottom, 0); border-top: 1px solid #334155; background: #090f16; }
  .gallery-mobile-contact a { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px; border-right: 1px solid #334155; font-size: 13px; text-align: center; }
  .gallery-mobile-contact a:first-child { color: #fff; font-weight: 700; background: linear-gradient(120deg, #1265e9, #2f82ff); }
}

@media (max-width: 639px) {
  .gallery-contact-inner,
  .gallery-header-inner,
  .gallery-main,
  .gallery-footer-inner { width: min(100% - 24px, 1480px); }
  .gallery-brand { font-size: 20px; }
  .gallery-main { padding-top: 22px; }
  .gallery-home-hero { padding: 32px 20px 552px; border-radius: 14px; }
  .gallery-hero-copy h1 { font-size: 43px; }
  .gallery-hero-copy > p:not(.gallery-eyebrow) { font-size: 16px; }
  .gallery-hero-actions { flex-direction: column; }
  .gallery-button { width: 100%; }
  .gallery-category-row { grid-template-columns: 1fr; }
  .gallery-category-card { min-height: 64px; grid-template-rows: 1fr; align-items: center; }
  .gallery-category-icon { grid-row: 1; align-self: center; }
  .gallery-category-card > span:not(.gallery-category-icon) { justify-self: end; align-self: center; }
  .gallery-category-card b { display: none; }
  .gallery-section-heading { align-items: start; }
  .gallery-section-heading > a { font-size: 13px; }
  .gallery-template-grid,
  .gallery-template-catalog,
  .gallery-catalog-grid,
  .gallery-variant-grid,
  .gallery-ecommerce-grid,
  .gallery-ui-grid,
  .gallery-product-grid { grid-template-columns: 1fr; }
  .gallery-template-card { display: grid; grid-template-columns: 1.25fr 1fr; }
  .gallery-template-card .gallery-card-preview { aspect-ratio: auto; min-height: 170px; border-right: 1px solid var(--gallery-line); border-bottom: 0; }
  .gallery-template-card .gallery-card-body { flex-direction: column; align-items: stretch; justify-content: center; min-width: 0; min-height: 170px; }
  .gallery-template-card .gallery-card-body strong { font-size: 19px; }
  .gallery-template-card .gallery-card-body strong { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
  .gallery-template-card .gallery-card-body b { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 14px; border-radius: 7px; color: #fff; background: linear-gradient(120deg, #1467ec, #2e82ff); }
  .gallery-page-heading { display: block; margin-top: 6px; }
  .gallery-page-heading h1 { font-size: 42px; }
  .gallery-heading-meta { align-items: start; margin-top: 18px; }
  .gallery-filter-row { flex-wrap: nowrap; margin-right: -12px; padding-right: 12px; overflow-x: auto; scrollbar-width: none; }
  .gallery-filter-row::-webkit-scrollbar { display: none; }
  .gallery-filter-row button { flex: 0 0 auto; }
  .gallery-ui-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .gallery-viewport-switcher { display: grid; width: 100%; }
  .gallery-viewport-switcher button { min-width: 0; padding: 0 8px; font-size: 13px; }
  .gallery-preview-panel { padding: 12px; }
  .gallery-preview-heading button span { display: none; }
  .gallery-preview-stage { min-height: 650px; padding: 6px; }
  .gallery-preview-frame { height: 636px; }
  .gallery-inspector-meta { grid-template-columns: 1fr 1fr; }
  .gallery-inspector-meta div:nth-child(3) { grid-column: 1 / -1; }
  .gallery-swatch-controls { padding: 24px 18px; }
  .gallery-swatch-control-heading > span { display: none; }
  .gallery-swatch-preview { min-height: 480px; }
  .gallery-swatch-preview-copy { padding: 30px 22px; }
  .gallery-swatch-preview-copy h2 { font-size: 50px; }
  .gallery-swatch-preview-note { top: 12px; right: 12px; left: 12px; text-align: center; }
  .gallery-swatch-state-notes { grid-template-columns: 1fr; }
  .gallery-swatch-state-notes article { border-top: 1px solid var(--gallery-line); border-left: 0; }
  .gallery-neighbors a { min-height: 92px; padding: 10px; gap: 8px; }
  .gallery-neighbors i { font-size: 20px; }
  .gallery-neighbors strong { font-size: 13px; }
  .gallery-neighbors small { font-size: 11px; }
  .gallery-mobile-contact { grid-template-columns: 1.55fr .85fr 1fr; }
  .gallery-mobile-contact a { padding-inline: 5px; font-size: 11px; }
}

@media (max-width: 390px) {
  .gallery-template-card { grid-template-columns: 1.1fr 1fr; }
  .gallery-template-card .gallery-card-preview,
  .gallery-template-card .gallery-card-body { min-height: 156px; }
}
