:root {
  color-scheme: dark;
  --bg: #07080b;
  --panel: #0f141b;
  --panel-2: #161d26;
  --panel-3: #0c0f14;
  --ink: #f3f5f7;
  --muted: #9aa3af;
  --soft: #c6ccd5;
  --line: #2a303a;
  --line-strong: #3b4452;
  --accent: #e8b9e5;
  --accent-strong: #f8d9d1;
  --accent-blue: #C8B7FE;
  --accent-green: #FCD1C5;
  --accent-gradient: linear-gradient(135deg, var(--accent-green), var(--accent), var(--accent-blue));
  --accent-gradient-soft: linear-gradient(135deg, rgba(252, 209, 197, 0.42), rgba(232, 185, 229, 0.34), rgba(200, 183, 254, 0.42));
  --warm: #FCD1C5;
  --preview-bg: #0a0c10;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -8%, rgba(232, 185, 229, 0.18), transparent 28rem),
    linear-gradient(180deg, #0b0d12 0%, var(--bg) 42%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.is-home-view {
  background: #120f17;
}

body.is-home-view.home-opening {
  background: #020305;
}

button,
input,
select {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: rgba(7, 8, 11, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

body.is-home-view .topbar {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
}

.brand-button {
  display: grid;
  gap: 0;
  min-width: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.brand-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.eyebrow {
  margin: 0 0 5px;
  color: transparent;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.stats {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 7px;
  min-width: 92px;
  color: var(--muted);
}

.stats span:first-child {
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
}

.format-nav {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 18px clamp(18px, 4vw, 52px) 0;
}

body.is-home-view .format-nav {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.format-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  min-height: 72px;
  padding: 13px 14px;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: linear-gradient(180deg, #171c24, #0d1016);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

body.is-home-view .format-button {
  min-height: 62px;
  padding: 11px 13px;
  background: rgba(11, 13, 18, 0.38);
  border-color: rgba(252, 209, 197, 0.14);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

body.is-home-view .format-button .format-count {
  font-size: 22px;
}

.format-button strong,
.format-button span {
  min-width: 0;
}

.format-button strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-button span {
  color: var(--muted);
  font-size: 12px;
}

.format-button .format-count {
  grid-row: span 2;
  align-self: center;
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 840;
}

.format-button.active,
.format-button:hover {
  border-color: rgba(232, 185, 229, 0.82);
}

.format-button-external {
  background: linear-gradient(135deg, rgba(252, 209, 197, 0.08), rgba(200, 183, 254, 0.12));
}

.format-button-external .format-count {
  color: var(--ink);
}

.home-view {
  position: relative;
  display: grid;
  min-height: calc(100vh - 178px);
  padding: 26px clamp(18px, 4vw, 52px) 58px;
  z-index: 1;
}

.home-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 760px) minmax(260px, 1fr);
  grid-template-areas:
    "copy visual"
    "modules visual";
  gap: clamp(20px, 3vw, 36px) clamp(36px, 6vw, 96px);
  width: 100%;
  max-width: 1440px;
  align-items: start;
}

.home-copy {
  grid-area: copy;
  display: grid;
  align-content: start;
  gap: 16px;
  max-width: 560px;
}

.home-visual {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

body.is-home-view .home-visual {
  opacity: 1;
  visibility: visible;
}

body.is-home-view.home-opening .home-visual {
  opacity: 0;
  filter: brightness(0.2) saturate(0.45) contrast(0.9);
  animation: homeVisualAwake 1450ms 2750ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.home-waves {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.58;
  pointer-events: none;
  transform: scale(1.018);
  filter: brightness(1) saturate(1.04);
  transition:
    opacity 500ms ease,
    filter 700ms ease,
    transform 900ms ease;
}

.home-waves::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.22;
  background:
    radial-gradient(ellipse 34% 30% at 54% 52%, rgba(252, 209, 197, 0.18), rgba(200, 183, 254, 0.1) 38%, transparent 72%),
    repeating-linear-gradient(135deg, rgba(252, 209, 197, 0) 0 20px, rgba(252, 209, 197, 0.035) 20px 21px);
  transition: opacity 480ms ease;
}

.home-waves.is-ready::before {
  opacity: 0;
}

body.is-home-view.home-opening .home-waves {
  opacity: 0.06;
  filter: brightness(0.36) saturate(0.55);
  transform: scale(1.034);
  animation: homeWavesAwake 1450ms 2900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.home-heading {
  display: grid;
  gap: 11px;
  max-width: 540px;
  padding-top: clamp(0px, 1vh, 12px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

body.is-home-view.home-opening .topbar,
body.is-home-view.home-opening .format-nav,
body.is-home-view.home-opening .home-heading .eyebrow,
body.is-home-view.home-opening .home-heading h2,
body.is-home-view.home-opening .home-heading > p:not(.eyebrow),
body.is-home-view.home-opening .home-actions,
body.is-home-view.home-opening .home-module-wrap {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(10px);
}

body.is-home-view.home-opening .topbar {
  animation: homeTextAwake 760ms 180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-home-view.home-opening .format-nav {
  animation: homeTextAwake 760ms 760ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-home-view.home-opening .home-heading .eyebrow {
  animation: homeTextAwake 760ms 260ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-home-view.home-opening .home-heading h2 {
  transform: translateY(14px);
  animation: homeTitleAwake 980ms 390ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-home-view.home-opening .home-heading > p:not(.eyebrow) {
  animation: homeTextAwake 780ms 610ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-home-view.home-opening .home-actions {
  animation: homeTextAwake 760ms 850ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-home-view.home-opening .home-module-wrap {
  animation: homeModuleAwake 900ms 940ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-home-view.home-opening.is-returning-home .topbar,
body.is-home-view.home-opening.is-returning-home .format-nav,
body.is-home-view.home-opening.is-returning-home .home-heading .eyebrow,
body.is-home-view.home-opening.is-returning-home .home-heading h2,
body.is-home-view.home-opening.is-returning-home .home-heading > p:not(.eyebrow),
body.is-home-view.home-opening.is-returning-home .home-actions,
body.is-home-view.home-opening.is-returning-home .home-module-wrap,
body.is-home-view.home-opening.is-returning-home .home-visual,
body.is-home-view.home-opening.is-returning-home .home-waves {
  animation-delay: 90ms;
  animation-duration: 520ms;
}

.home-heading > p:not(.eyebrow) {
  max-width: 420px;
  color: #c7d1dc;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
}

.home-heading h2 {
  max-width: 560px;
  font-size: clamp(42px, 4.7vw, 60px);
  font-weight: 880;
  line-height: 0.98;
  letter-spacing: 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-cta {
  min-height: 42px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(12, 16, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.home-cta.primary {
  color: #171019;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  border: 0;
  font-weight: 820;
}

.home-cta:hover,
.home-cta:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.home-metrics {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 118px));
  gap: 10px;
}

.home-metrics div {
  min-height: 68px;
  padding: 12px 14px;
  background: rgba(8, 12, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.home-metrics span {
  display: block;
  color: var(--ink);
  font-size: 27px;
  font-weight: 860;
  line-height: 1;
}

.home-metrics strong {
  display: block;
  margin-top: 8px;
  color: #a9b5c2;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-panel {
  grid-area: panel;
  display: none;
  align-self: start;
  min-height: auto;
  padding: 18px;
  background: rgba(6, 10, 16, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.3);
}

.home-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.home-panel-head strong {
  color: var(--ink);
  font-size: 38px;
  font-weight: 860;
  line-height: 0.88;
}

.home-breakdown {
  display: grid;
  gap: 10px;
}

.home-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
}

.home-breakdown-row span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #dce6ef;
  font-size: 13px;
  font-weight: 740;
}

.home-breakdown-row em {
  color: var(--accent-strong);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.home-breakdown-bar {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.home-breakdown-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  border-radius: inherit;
}

.home-module-wrap {
  grid-area: modules;
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 760px;
  padding: 16px;
  background: rgba(6, 8, 13, 0.22);
  border: 1px solid rgba(252, 209, 197, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

.home-section-title {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.home-section-title h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
}

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

.module-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 8px 13px;
  min-height: 116px;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  background: rgba(9, 14, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.module-card-external {
  text-decoration: none;
  background: linear-gradient(135deg, rgba(252, 209, 197, 0.1), rgba(200, 183, 254, 0.13));
}

.module-card::after {
  position: absolute;
  inset: auto 14px 12px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(252, 209, 197, 0.9), rgba(200, 183, 254, 0.65), transparent);
  opacity: 0.58;
  transition: opacity 160ms ease;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: rgba(232, 185, 229, 0.82);
  outline: none;
  transform: translateY(-1px);
}

.module-card:hover::after,
.module-card:focus-visible::after {
  opacity: 1;
}

.module-icon {
  grid-row: 1 / span 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #171019;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  border-radius: 8px;
  font-size: 18px;
  font-weight: 860;
}

.module-card strong,
.module-card .module-meta {
  min-width: 0;
}

.module-card strong {
  overflow: hidden;
  align-self: end;
  font-size: 16px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-card .module-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-link-label {
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes homeVisualAwake {
  0% {
    opacity: 0;
    filter: brightness(0.16) saturate(0.35) contrast(0.88);
  }

  42% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
    filter: brightness(1) saturate(1) contrast(1);
  }
}

@keyframes homeWavesAwake {
  0% {
    opacity: 0.06;
    filter: brightness(0.36) saturate(0.55);
    transform: scale(1.034);
  }

  100% {
    opacity: 0.58;
    filter: brightness(1) saturate(1.04);
    transform: scale(1);
  }
}

@keyframes homeTextAwake {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes homeTitleAwake {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(14px);
  }

  58% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes homeModuleAwake {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px) scale(0.985);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-home-view.home-opening .topbar,
  body.is-home-view.home-opening .format-nav,
  body.is-home-view.home-opening .home-heading .eyebrow,
  body.is-home-view.home-opening .home-heading h2,
  body.is-home-view.home-opening .home-heading > p:not(.eyebrow),
  body.is-home-view.home-opening .home-actions,
  body.is-home-view.home-opening .home-module-wrap,
  body.is-home-view.home-opening .home-visual,
  body.is-home-view.home-opening .home-waves {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}

.quick-section {
  overflow: hidden;
  padding: 22px clamp(18px, 4vw, 44px) 4px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 19px;
  line-height: 1.2;
}

.section-heading > span {
  color: var(--muted);
  font-size: 13px;
}

.quick-rail {
  display: flex;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 12px;
  scrollbar-color: var(--line-strong) transparent;
}

.quick-card {
  flex: 0 0 156px;
  display: grid;
  grid-template-rows: 92px 34px;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  color: var(--ink);
  text-align: left;
  background: rgba(14, 18, 25, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    filter 210ms ease,
    opacity 210ms ease,
    transform 160ms ease;
}

.quick-card:hover,
.quick-card:focus-visible {
  border-color: rgba(232, 185, 229, 0.76);
  outline: none;
  transform: translateY(-1px);
}

.quick-card .media-host,
.preview {
  background-color: #080b10;
  background-image:
    radial-gradient(circle at 50% 44%, rgba(232, 185, 229, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%);
  background-position:
    0 0,
    0 0,
    0 0,
    0 8px;
  background-size:
    100% 100%,
    100% 100%,
    16px 16px,
    16px 16px;
}

.quick-card .media-host {
  width: 100%;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  transform-origin: center;
  transform-style: preserve-3d;
  transition:
    border-color 190ms ease,
    box-shadow 210ms ease,
    transform 210ms ease;
}

.quick-card:hover .media-host,
.quick-card:focus-visible .media-host {
  border-color: rgba(252, 209, 197, 0.34);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(200, 183, 254, 0.14);
  transform: perspective(760px) rotateX(4deg) rotateY(-3deg) scale(1.02);
}

.quick-section:has(.quick-card:hover) .quick-card:not(:hover),
.quick-section:has(.quick-card:focus-visible) .quick-card:not(:focus-visible) {
  opacity: 0.58;
  filter: blur(1.2px) saturate(0.76);
}

.quick-card span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--soft);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.quick-card:nth-child(4n + 1) .media-host,
.motion-card:nth-child(4n + 1) .preview {
  background-image:
    radial-gradient(circle at 50% 44%, rgba(252, 209, 197, 0.11), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%);
}

.quick-card:nth-child(4n + 2) .media-host,
.motion-card:nth-child(4n + 2) .preview {
  background-image:
    radial-gradient(circle at 50% 44%, rgba(200, 183, 254, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%);
}

.quick-card:nth-child(4n + 3) .media-host,
.motion-card:nth-child(4n + 3) .preview {
  background-image:
    radial-gradient(circle at 50% 44%, rgba(245, 198, 106, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%);
}

.layout {
  display: grid;
  grid-template-columns: minmax(238px, 282px) minmax(0, 1fr);
  gap: 22px;
  padding: 24px clamp(18px, 4vw, 44px) 44px;
}

.sidebar {
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 16px;
  background: rgba(17, 20, 26, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sidebar summary {
  display: none;
  color: var(--ink);
  font-weight: 780;
  cursor: pointer;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

input[type="search"],
select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: #0b0e13;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

select {
  color-scheme: dark;
}

input[type="search"]::placeholder {
  color: #68717f;
}

input[type="search"]:focus,
select:focus {
  border-color: rgba(252, 209, 197, 0.52);
  box-shadow:
    0 0 0 1px rgba(200, 183, 254, 0.18),
    0 0 0 4px rgba(232, 185, 229, 0.1);
}

.speed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.color-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

input[type="color"] {
  width: 44px;
  height: 34px;
  padding: 2px;
  background: #0b0e13;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 4px;
}

.color-row output {
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input[type="range"] {
  min-width: 0;
  accent-color: var(--accent);
}

output {
  color: var(--ink);
  text-align: right;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: var(--soft);
  font-weight: 650;
}

.toggle input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.dropzone {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 116px;
  place-items: center;
  padding: 16px;
  color: var(--soft);
  text-align: center;
  background: #0c1116;
  border: 1px dashed rgba(232, 185, 229, 0.48);
  border-radius: 8px;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone span {
  color: var(--muted);
  font-size: 12px;
}

.content {
  min-width: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.video-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(252, 209, 197, 0.09), rgba(200, 183, 254, 0.06) 58%, rgba(10, 13, 18, 0.96));
  border: 1px solid rgba(252, 209, 197, 0.2);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.video-spotlight-stage {
  position: relative;
  min-width: 0;
  min-height: min(58vh, 520px);
  padding: 0;
  overflow: hidden;
  background: var(--preview-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  cursor: pointer;
}

.video-spotlight-stage .media-host {
  width: 100%;
  height: 100%;
}

.video-spotlight-stage .media-host > video {
  object-fit: contain;
}

.video-spotlight-stage:hover,
.video-spotlight-stage:focus-visible {
  border-color: rgba(252, 209, 197, 0.72);
  outline: none;
  box-shadow: 0 0 0 1px rgba(200, 183, 254, 0.32), 0 18px 54px rgba(0, 0, 0, 0.42);
}

.video-spotlight-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(7, 8, 11, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
  pointer-events: none;
}

.video-spotlight-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 8px;
}

.video-spotlight-copy h2 {
  overflow: hidden;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.08;
  text-overflow: ellipsis;
}

.video-spotlight-copy p:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  background: #0e1117;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab,
.icon-button,
.actions button,
.actions a {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.tab {
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 720;
}

.tab.active {
  color: #171019;
  background: var(--accent-gradient);
}

.icon-button {
  display: inline-grid;
  width: 40px;
  place-items: center;
  color: #f8d9d1;
  background: #11151c;
  border-color: var(--line);
  font-size: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  perspective: 1100px;
}

.gallery.list {
  grid-template-columns: 1fr;
}

.web-source-heading {
  grid-column: 1 / -1;
  margin: 8px 0 2px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.history-divider {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(42px, 1fr) auto auto minmax(42px, 1fr);
  align-items: center;
  gap: 14px;
  margin: 26px 0 12px;
  color: var(--muted);
}

.history-divider::before,
.history-divider::after {
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(252, 209, 197, 0.34), rgba(200, 183, 254, 0.22));
}

.history-divider::after {
  background: linear-gradient(90deg, rgba(200, 183, 254, 0.22), rgba(252, 209, 197, 0.34), transparent);
}

.history-divider strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 820;
}

.history-divider em {
  color: rgba(156, 171, 185, 0.82);
  font-style: normal;
  font-size: 12px;
}

.motion-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(54px, auto) minmax(24px, auto) auto;
  grid-template-areas:
    "preview"
    "meta"
    "tags"
    "actions";
  gap: 10px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(18, 23, 31, 0.96), rgba(10, 13, 18, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  transition:
    border-color 160ms ease,
    filter 220ms ease,
    opacity 220ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.motion-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(252, 209, 197, 0.08), transparent 38%, rgba(200, 183, 254, 0.08));
  opacity: 0;
  transition: opacity 160ms ease;
}

.motion-card:hover,
.motion-card:focus-within {
  border-color: rgba(252, 209, 197, 0.28);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.48);
  transform: translateY(-1px);
}

.motion-card:hover::before,
.motion-card:focus-within::before {
  opacity: 1;
}

.motion-card > * {
  min-width: 0;
  max-width: 100%;
}

.gallery.list .motion-card {
  grid-template-columns: 196px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "preview meta"
    "preview tags"
    "preview actions";
  align-items: center;
}

.gallery:has(.preview:hover) .motion-card:not(:has(.preview:hover)),
.gallery:has(.preview:focus-within) .motion-card:not(:has(.preview:focus-within)) {
  opacity: 0.5;
  filter: blur(1.6px) saturate(0.7);
}

.preview {
  grid-area: preview;
  position: relative;
  contain: layout paint;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 190px;
  aspect-ratio: 16 / 10.5;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform-origin: center;
  transform-style: preserve-3d;
  transition:
    border-color 200ms ease,
    box-shadow 220ms ease,
    filter 220ms ease,
    transform 220ms ease;
}

.preview:hover,
.preview:focus-within {
  border-color: rgba(252, 209, 197, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 60px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(200, 183, 254, 0.14);
  transform: perspective(900px) rotateX(5deg) rotateY(-4deg) scale(1.025);
}

.preview::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(252, 209, 197, 0.18), transparent 34%, rgba(200, 183, 254, 0.18)),
    linear-gradient(90deg, transparent 12%, rgba(248, 217, 209, 0.34), transparent 88%);
  opacity: 0.26;
  transition: opacity 200ms ease;
}

.preview:hover::after,
.preview:focus-within::after {
  opacity: 0.72;
}

.media-host,
.media-host > lottie-player,
.media-host > img,
.media-host > video,
.media-host > canvas,
.media-host > iframe {
  display: block;
  max-width: 100%;
}

.media-host {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: min(100%, 230px);
  height: min(100%, 200px);
}

.media-host > lottie-player,
.media-host > img,
.media-host > video,
.media-host > canvas,
.media-host > iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-host.is-lottie {
  overflow: visible;
}

.media-host.is-lottie > lottie-player {
  width: 100%;
  height: 100%;
}

.preview > .media-host {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78%, 212px);
  height: min(78%, 184px);
  transform: translate(-50%, -50%);
}

.preview > .media-host.is-lottie {
  width: min(78%, 212px);
  height: min(78%, 184px);
}

.fallback-preview {
  display: grid;
  gap: 8px;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 14px;
  color: var(--soft);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}

.fallback-preview strong {
  color: var(--ink);
  font-size: 14px;
}

.fallback-preview span {
  color: var(--muted);
  font-size: 12px;
}

.media-host.media-error > .fallback-preview {
  position: absolute;
  inset: 12px;
  z-index: 1;
  background: color-mix(in srgb, var(--preview-bg) 88%, transparent);
}

.motion-meta {
  grid-area: meta;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 8px;
  align-items: start;
}

.motion-meta h2 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.path {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resolution {
  margin-top: 4px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.2;
}

.badge {
  align-self: start;
  max-width: 126px;
  overflow: hidden;
  padding: 4px 7px;
  color: #171019;
  background: linear-gradient(135deg, #FCD1C5, #C8B7FE);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 22px;
  max-height: 52px;
  overflow: hidden;
}

.tags span {
  padding: 3px 7px;
  color: #f8d9d1;
  background: rgba(232, 185, 229, 0.11);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  background:
    linear-gradient(rgba(10, 15, 21, 0.92), rgba(10, 15, 21, 0.92)) padding-box,
    var(--accent-gradient-soft) border-box;
}

.actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  gap: 7px;
}

.actions button,
.actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 7px;
  color: var(--soft);
  background:
    linear-gradient(rgba(8, 11, 16, 0.88), rgba(8, 11, 16, 0.88)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) border-box;
  border-color: transparent;
  font-size: 11px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.actions button:hover,
.actions a:hover,
.icon-button:hover {
  color: var(--ink);
  background:
    linear-gradient(rgba(8, 11, 16, 0.9), rgba(8, 11, 16, 0.9)) padding-box,
    var(--accent-gradient) border-box;
  box-shadow: 0 0 22px rgba(232, 185, 229, 0.18);
  transform: scale(1.035);
}

.detail-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-height: min(840px, calc(100vh - 28px));
  padding: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.detail-dialog[open] {
  display: grid;
  place-items: stretch;
}

.detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.detail-shell {
  overflow: auto;
  width: 100%;
  max-height: inherit;
  color: var(--ink);
  background: #10141b;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

.detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.detail-header h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  padding: 18px;
}

.detail-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
}

.detail-preview {
  position: relative;
  contain: layout paint;
  display: grid;
  place-items: center;
  min-height: min(64vh, 590px);
  background-color: var(--preview-bg);
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%);
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.detail-preview .media-host {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(94%, 760px);
  height: min(94%, 760px);
  transform: translate(-50%, -50%);
}

.detail-preview .media-host.is-lottie {
  width: min(94%, 760px);
  height: min(94%, 760px);
}

.detail-preview .media-host > iframe {
  background: #fff;
  border: 0;
  border-radius: 6px;
}

.detail-controls {
  align-self: start;
  display: grid;
  gap: 13px;
  padding: 15px;
  background: #0b0e13;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-controls button,
.detail-controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--soft);
  background: #11161e;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 740;
  text-decoration: none;
  cursor: pointer;
}

.detail-controls button:hover,
.detail-controls a:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.detail-info {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  background: #11161e;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.detail-info span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.detail-info strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
}

.detail-timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: #0b0e13;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.timeline-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.timeline-readout span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-readout strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.detail-timeline input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 0;
}

.detail-timeline input[type="range"]:disabled {
  opacity: 0.48;
}

.empty {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 300px;
  padding: 32px;
  color: var(--muted);
  text-align: center;
  background: rgba(17, 20, 26, 0.94);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}

.empty h2 {
  color: var(--ink);
  font-size: 20px;
}

code {
  padding: 2px 5px;
  color: var(--accent-strong);
  background: #0d1218;
  border: 1px solid var(--line);
  border-radius: 4px;
}

@media (max-width: 980px) {
  .home-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "panel"
      "modules";
    gap: 28px;
  }

  .home-copy {
    max-width: none;
  }

  .home-panel {
    max-width: 620px;
    min-height: auto;
  }

  .home-module-wrap {
    max-width: 760px;
  }

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

  .layout {
    grid-template-columns: 1fr;
  }

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

  .dropzone {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .home-waves {
    opacity: 0.42;
    filter: brightness(0.9) saturate(1);
  }

  body.is-home-view.home-opening .home-waves {
    animation-name: homeWavesCompactAwake;
  }

  .home-view {
    padding: 26px 18px 42px;
  }

  .home-copy {
    gap: 24px;
  }

  .home-heading h2 {
    font-size: 48px;
  }

  .home-heading > p:not(.eyebrow) {
    font-size: 15px;
  }

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

  .home-metrics div {
    min-height: 72px;
    padding: 12px;
  }

  .home-metrics span {
    font-size: 24px;
  }

  .home-panel {
    padding: 18px;
  }

  .home-panel-head strong {
    font-size: 38px;
  }

  .home-module-wrap {
    padding: 14px;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: auto;
    padding: 14px 18px;
  }

  h1 {
    font-size: 25px;
  }

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

  .quick-section {
    padding-top: 14px;
  }

  .video-spotlight {
    grid-template-columns: 1fr;
  }

  .video-spotlight-stage {
    min-height: min(64vh, 520px);
  }

  .video-spotlight-copy {
    padding: 4px 2px 8px;
  }

  .quick-rail {
    gap: 10px;
  }

  .quick-card {
    flex-basis: 140px;
    grid-template-rows: 88px 34px;
    padding: 8px;
  }

  .quick-card .media-host {
    height: 88px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .layout {
    gap: 16px;
    padding-top: 14px;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .sidebar summary {
    display: block;
  }

  .sidebar:not([open]) {
    display: block;
  }

  .sidebar:not([open]) > :not(summary) {
    display: none;
  }

  .toolbar {
    margin-bottom: 12px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .motion-card {
    gap: 12px;
  }

  .preview {
    min-height: 184px;
    aspect-ratio: 16 / 10;
  }

  .motion-meta {
    grid-template-columns: 1fr;
  }

  .badge {
    max-width: 100%;
  }

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

  .detail-body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .detail-preview {
    min-height: min(48vh, 360px);
  }

  .detail-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .detail-shell {
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .detail-header {
    padding: 16px 14px;
  }

  .detail-preview .media-host.is-lottie {
    width: min(92%, 360px);
    height: min(92%, 360px);
  }

  .gallery.list .motion-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "preview"
      "meta"
      "tags"
      "actions";
  }

  .gallery.list .preview,
  .gallery.list .motion-meta,
  .gallery.list .tags,
  .gallery.list .actions {
    width: 100%;
    min-width: 0;
  }
}

@keyframes homeWavesCompactAwake {
  0% {
    opacity: 0.06;
    filter: brightness(0.36) saturate(0.55);
    transform: scale(1.034);
  }

  100% {
    opacity: 0.42;
    filter: brightness(0.9) saturate(1);
    transform: scale(1);
  }
}
.web-library-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--line);
}
.web-library-intro h2 { margin: 0 0 10px; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.04em; }
.web-library-intro p { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.web-library-intro .web-attribution { font-size: 12px; }
.web-attribution a { color: var(--accent); text-underline-offset: 4px; }
.web-motion-card .resolution { min-height: 42px; white-space: normal; line-height: 1.6; }
.web-motion-card .preview { cursor: pointer; }
.media-host[data-kind="web"] { width: 100%; height: 100%; max-width: none; }
.media-host > .web-component-frame { width: 100%; height: 100%; border: 0; background: var(--preview-bg); }
.preview .web-component-frame { pointer-events: none; }
.preview > .media-host[data-kind="web"] { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; }
.is-web-detail .detail-stage { display: block; }
.is-web-detail .detail-controls { grid-template-columns: minmax(0, 1fr); }
.is-web-detail .detail-controls > .tags { grid-area: auto; }
.is-web-detail .detail-preview { min-height: min(52vh, 440px); }
.is-web-detail .detail-preview .media-host { inset: 0; width: 100%; height: 100%; transform: none; }
.is-web-detail .detail-preview .web-component-frame { background: var(--preview-bg); }
.web-code-panel { margin-top: 18px; min-width: 0; }
.web-code-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.web-code-heading h3 { margin: 0; font-size: 16px; }
.web-code-heading button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #17131f; color: var(--soft); font: inherit; font-size: 12px; cursor: pointer; }
.web-code-panel p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.web-code-panel pre { max-height: 240px; overflow: auto; margin: 14px 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #0b0e13; color: #d5c9ef; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.web-code-note { font-size: 12px!important; }
.web-parameters { display: grid; gap: 15px; padding: 5px 0 15px; border-bottom: 1px solid var(--line); }
.web-parameters:empty { display: none; }
.web-parameters > strong { font-size: 13px; }
.web-parameter { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; }
.web-parameter > span { grid-column: 1 / -1; }
.web-parameter input { width: 100%; min-width: 0; accent-color: #c8b7fe; }
.web-parameter output { color: var(--accent); font-size: 12px; min-width: 34px; text-align: right; }
.web-preview-error { max-width: 240px; padding: 20px; color: var(--muted); font-size: 13px; text-align: center; }
[hidden] { display: none!important; }

/* Release lanes in the custom Web library. */
.web-release-section{margin:0 0 24px;padding:22px 0 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.release-switch{display:flex;gap:6px;margin-bottom:20px;flex-wrap:wrap}
.release-switch button{padding:9px 15px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted);cursor:pointer;font-weight:650}
.release-switch button span{font-size:11px;font-weight:450;margin-left:7px}
.release-switch button[aria-pressed="true"]{color:var(--ink);background:var(--panel-2);border-color:var(--line-strong)}
.release-switch button:focus-visible,.release-download:focus-visible,.release-draft-card a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.release-summary{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.release-summary h3{margin:0 0 7px;font-size:20px;letter-spacing:-.03em}
.release-summary p{font-size:12px;color:var(--muted);line-height:1.7}
.release-download{display:grid;gap:5px;padding:12px 16px;border:1px solid var(--line-strong);background:var(--panel-2);color:var(--ink);border-radius:10px;text-decoration:none;font-size:13px}
.release-download span{color:var(--muted);font-size:11px}
.v2-drafts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px;margin-bottom:28px}
.release-draft-card{padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.draft-symbol{height:96px;display:grid;place-items:center;font-size:54px;color:var(--soft)}
.draft-status{display:inline-block;font-size:10px;color:var(--accent);padding:4px 8px;background:var(--panel-2);border-radius:5px}
.release-draft-card h3{margin:14px 0 8px;font-size:17px}.release-draft-card p,.release-placeholder{font-size:12px;color:var(--muted);line-height:1.8}
.release-draft-card a{display:inline-block;margin-top:24px;font-size:12px;color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line-strong);padding-bottom:4px}

/* Published v2 motion previews. */
.release-card-preview{display:block;width:100%;height:220px;border:0;border-radius:12px;background:#0a0c10}
.release-draft-card a+a{margin-left:20px}

.v2-drafts{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}

/* Fit each preview's complete scene inside a shared canvas, with equal safe margins. */
.release-preview-canvas{position:relative;width:100%;height:220px;overflow:hidden;border-radius:12px;background:#0a0c10}
.release-preview-canvas .release-card-preview{position:absolute;left:50%;top:50%;width:auto;height:auto;max-width:none;border-radius:0;transform:translate(-50%,-50%);transform-origin:center}
.release-draft-card .draft-status{margin-top:12px}

.release-preview-open{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;border-radius:12px;background:transparent;cursor:pointer}
.release-preview-open span{position:absolute;right:10px;bottom:10px;padding:5px 9px;border:1px solid #ffffff1c;border-radius:6px;color:#dad5e1;background:#111118d9;font-size:10px}
.release-preview-open:hover{background:#ffffff06}.release-preview-open:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.release-preview-canvas .release-card-preview{pointer-events:none}
.release-title-button{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.release-title-button:hover{color:var(--accent)}.release-title-button:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:3px}
.release-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:24px}
.release-card-actions .release-detail-button{padding:0 0 4px;border:0;border-bottom:1px solid var(--line-strong);background:transparent;color:var(--ink);font:inherit;font-size:12px;cursor:pointer}
.release-card-actions a{margin:0!important}.release-detail-button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.release-detail-dialog{width:min(1180px,calc(100vw - 32px));height:min(900px,calc(100dvh - 32px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid var(--line-strong);border-radius:18px;background:var(--panel);color:var(--ink);overflow:hidden}
.release-detail-dialog::backdrop{background:#030409bf;backdrop-filter:blur(8px)}
.release-detail-shell{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%}
.release-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid var(--line)}
.release-detail-header .eyebrow{margin:0 0 7px;font-size:10px;letter-spacing:.1em;color:var(--muted)}
.release-detail-header h2{margin:0;font-size:21px;line-height:1.4}.release-detail-header p:last-child{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.7}
.release-detail-body{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:0}
.release-detail-stage{position:relative;min-width:0;min-height:0;background:#0a0c10}
.release-detail-stage iframe{display:block;width:100%;height:100%;border:0;background:#0a0c10}
.release-detail-loading{position:absolute;inset:0;display:grid;place-items:center;margin:0;background:#0a0c10;color:var(--muted);font-size:13px;pointer-events:none}
.release-detail-aside{min-width:0;overflow:auto;padding:22px;border-left:1px solid var(--line);scrollbar-gutter:stable}
.release-detail-facts{display:grid;grid-template-columns:auto 1fr;gap:9px 18px;margin:0 0 22px;font-size:12px}.release-detail-facts:empty{display:none}.release-detail-facts dt{color:var(--muted)}.release-detail-facts dd{margin:0;text-align:right}
.release-detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:25px}.release-detail-actions a{padding:9px 11px;border:1px solid var(--line-strong);border-radius:8px;color:var(--ink);text-decoration:none;font-size:12px}.release-detail-actions a:first-child{background:var(--panel-2)}
.release-detail-docs h3{margin:0 0 16px;font-size:15px}.release-detail-usage{font-size:12px;line-height:1.85;color:var(--muted);overflow-wrap:anywhere}.release-detail-usage h4{font-size:13px;color:var(--ink);margin:20px 0 9px}.release-detail-usage h4:first-child{margin-top:0}.release-detail-usage p{margin:0 0 13px}.release-detail-usage ul{padding-left:18px}.release-detail-usage pre{padding:12px;background:#0a0c10;border:1px solid var(--line);border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;color:#d9d3e1;font-size:11px;line-height:1.75}
@media(max-width:760px){.release-detail-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:12px}.release-detail-header{padding:16px}.release-detail-header h2{font-size:18px}.release-detail-body{display:block;overflow:auto}.release-detail-stage{height:65dvh;min-height:360px}.release-detail-aside{overflow:visible;border-left:0;border-top:1px solid var(--line);padding:20px}}

.release-detail-usage pre code{padding:0;border:0;background:none;color:inherit;font:inherit;white-space:inherit}
.release-detail-aside,.release-detail-body{overscroll-behavior:contain}

/* Shared release-card rules. The Web window itself uses the same gallery for v1, v2, and v3. */
.v2-drafts .release-draft-card{display:flex;flex-direction:column;min-width:0;padding:14px;border-radius:8px}
.v2-drafts .release-preview-canvas{height:220px;border-radius:6px;background:var(--preview-bg)}
.v2-drafts .release-preview-open{border-radius:6px}
.v2-drafts .release-card-preview{background:var(--preview-bg)}
.v2-drafts h3{font-size:15px;line-height:1.5;margin:10px 0 6px;overflow-wrap:anywhere}
.release-card-meta{min-width:0;margin-top:10px}
.v2-drafts .draft-status{margin:0;font-size:10px}
.v2-drafts .release-card-note{margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}
.v2-drafts .release-card-actions{margin-top:auto;gap:6px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--line)}
.v2-drafts .release-tool,.release-playback .release-tool{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;min-height:32px;padding:6px;border:1px solid var(--line);border-radius:5px;background:var(--panel-2);color:var(--ink);cursor:pointer;text-decoration:none}
.release-tool svg{width:16px;height:16px;pointer-events:none}
.release-tool:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--panel))}
.release-tool:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.release-preview-status{position:absolute;left:12px;bottom:10px;z-index:1;color:var(--muted);font-size:11px;pointer-events:none}
.v2-drafts.list{grid-template-columns:minmax(0,1fr);gap:10px}
.v2-drafts.list .release-draft-card{display:grid;grid-template-columns:150px minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:4px 18px;align-items:center;padding:12px}
.v2-drafts.list .release-preview-canvas{grid-column:1;grid-row:1/4;height:120px}
.v2-drafts.list .release-card-meta{grid-column:2;grid-row:1;margin:0;align-self:end}
.v2-drafts.list h3{grid-column:2;grid-row:2;margin:0}
.v2-drafts.list .release-card-note{grid-column:2;grid-row:3;min-height:0;margin:0;align-self:start}
.v2-drafts.list .release-card-actions{grid-column:3;grid-row:1/4;max-width:114px;margin:0;padding:0;border:0}
.release-detail-stage{display:grid;grid-template-rows:minmax(0,1fr) auto}
.release-detail-stage iframe{min-height:0}
.release-playback{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px;border-top:1px solid var(--line);background:var(--panel)}
.release-playback select{width:66px;height:32px;border:1px solid var(--line);background:var(--panel-2);color:var(--ink);border-radius:5px;padding:3px}
.release-playback label{display:flex;align-items:center;gap:4px;font-size:12px;white-space:nowrap}
.release-playback input[type=color]{width:32px;height:30px;padding:2px;border:1px solid var(--line);border-radius:4px;background:transparent}
.release-play-state{margin-left:auto;color:var(--muted);font-size:11px}
@media(max-width:760px){.release-playback{gap:6px;padding:8px}.release-detail-stage{height:70dvh;min-height:400px}.v2-drafts.list .release-draft-card{grid-template-columns:98px minmax(0,1fr);gap:4px 10px}.v2-drafts.list .release-preview-canvas{grid-row:1/4;height:100px}.v2-drafts.list .release-card-actions{grid-column:1/3;grid-row:4;max-width:none;margin-top:8px}.v2-drafts.list .release-card-note{-webkit-line-clamp:1}.release-playback .release-tool,.v2-drafts .release-tool{width:36px;height:36px}.release-play-state{display:none}}

/* ========================================================
   Lottie Reference Column & dotLottie State Machine Styles
   ======================================================== */
.lottie-release-section {
  margin: 0 0 24px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lottie-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.lottie-switch button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.lottie-switch button:hover {
  color: var(--ink);
  background: var(--panel-2);
  border-color: var(--line-strong);
}
.lottie-switch button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.25), rgba(59, 130, 246, 0.2));
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}
.tab-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
}
.lottie-switch button[aria-pressed="true"] .tab-badge {
  background: rgba(168, 85, 247, 0.35);
  color: #f3e8ff;
}

.lottie-reference-intro {
  padding: 20px 22px;
  border: 1px solid #4a3a5e;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 0%, #201730 0%, #121019 75%);
  margin-top: 14px;
}
.reference-intro-header h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #f5edff;
}
.reference-intro-header p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #aba1b8;
  line-height: 1.6;
}
.reference-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ref-filter-pill {
  padding: 5px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: #c4b9d3;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ref-filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.ref-filter-pill.active {
  background: #a855f7;
  color: #ffffff;
  border-color: #c084fc;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.35);
}

/* Badges for State Machine & Reference Cards */
.badge-state-machine {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(59, 130, 246, 0.2)) !important;
  border: 1px solid #a855f7 !important;
  color: #e9d5ff !important;
  font-weight: 600 !important;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

/* State Machine Interactive Panel in Detail Modal */
.lottie-sm-panel {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #4c3c62;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a1525 0%, #110e17 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sm-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sm-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #f3e8ff;
}
.sm-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  font-size: 11px;
  font-weight: 500;
}
.sm-state-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.sm-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sm-tab-btn {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 11px;
  cursor: pointer;
}
.sm-tab-btn.active {
  background: rgba(168, 85, 247, 0.25);
  border-color: #a855f7;
  color: #f5edff;
  font-weight: 600;
}
.sm-controls-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sm-trigger-btn {
  padding: 7px 14px;
  border: 1px solid #5a4675;
  border-radius: 8px;
  background: #241c33;
  color: #efe8fa;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sm-trigger-btn:hover {
  background: #36294d;
  border-color: #8b5cf6;
  color: #fff;
  transform: translateY(-1px);
}
.sm-trigger-btn:active {
  transform: translateY(1px);
}
.sm-trigger-btn.active {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  border-color: #c084fc;
}
.sm-hint {
  font-size: 11px;
  color: #9f94ae;
  line-height: 1.5;
  margin: 0;
}

/* Detail Modal dotLottie Download & Action Links */
.dotlottie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dotlottie-action-btn {
  display: block;
  text-align: center;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.dotlottie-action-btn:hover {
  background: var(--panel);
  border-color: var(--accent);
  color: #fff;
}
.dotlottie-action-btn.external {
  color: #c4b5fd;
  border-color: rgba(168, 85, 247, 0.35);
}
.dotlottie-action-btn.external:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
}

/* Per-item notes sit under the preview and scroll with the dialog. */
.detail-header,
.release-detail-header {
  position: sticky;
  top: 0;
  z-index: 2;
}

.detail-header {
  background: #10141b;
}

.release-detail-header {
  background: var(--panel);
}

.release-detail-shell {
  grid-template-rows: auto minmax(min(560px, 68dvh), 1fr) auto;
  overflow: auto;
}

.detail-shell,
.release-detail-shell {
  overscroll-behavior: contain;
}

.item-comments {
  margin: 0;
  padding: 16px 18px 18px;
  background: #0b0e13;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.detail-shell > .item-comments {
  margin: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.item-comments h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 720;
}

.item-comments p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.item-comments-key {
  color: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.item-comments-note {
  margin-bottom: 0;
}

.item-comments-frame {
  min-height: 148px;
}

.item-comments-status {
  margin-bottom: 0;
}

.item-comments .giscus,
.item-comments .giscus-frame {
  width: 100%;
}

@media (max-width: 760px) {
  .release-detail-shell {
    display: block;
    overflow: auto;
  }

  .release-detail-body {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

/* Web detail: the iframe is the page's viewport and fills the stage.
   The frame keeps that stage geometry, including the band under the preview.
   Comments continue through that band at full height and the shell scrolls. */
.detail-dialog.is-web-detail {
  height: min(960px, calc(100dvh - 12px));
  max-height: calc(100dvh - 12px);
}

.detail-frame {
  display: contents;
}

.detail-comments-slot {
  display: none;
}

.is-web-detail .detail-shell {
  display: block;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.is-web-detail .detail-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) min(152px, 24dvh);
  height: 100%;
  min-height: 0;
}

.is-web-detail .detail-comments-slot {
  display: block;
  pointer-events: none;
}

.is-web-detail .detail-header {
  padding: 14px 18px;
}

.is-web-detail .detail-body {
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
  gap: 14px;
  padding: 12px 14px;
}

.is-web-detail .detail-stage {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.is-web-detail .detail-preview {
  flex: 1 1 auto;
  min-height: min(52dvh, 640px);
  height: auto;
}

.is-web-detail .detail-preview .media-host,
.is-web-detail .detail-preview .media-host.is-page-fit,
.is-web-detail .detail-preview .media-host.is-page-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  transform: none;
  overflow: hidden;
}

.is-web-detail .web-code-panel {
  max-height: none;
  margin-top: 4px;
  overflow: visible;
}

.is-web-detail .web-code-panel pre {
  max-height: 160px;
}

.is-web-detail .detail-controls {
  align-self: stretch;
  min-height: 0;
  overflow: auto;
}

.is-web-detail .detail-shell > .item-comments {
  position: relative;
  z-index: 1;
  margin: calc(-1 * min(152px, 24dvh)) 0 0;
  border-width: 1px 0 0;
  border-radius: 0;
  max-height: none;
  padding: 16px 18px 18px;
  overflow: visible;
}

.media-host.is-page-fit {
  overflow: hidden;
}

.page-fit-scale {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}

.page-fit-scale > .web-component-frame {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  background: var(--preview-bg);
}

/* Detail pages fill the stage. The document scrolls inside the iframe. */
.media-host.is-page-viewport > .web-component-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  transform: none;
  background: var(--preview-bg);
}

@media (max-width: 760px) {
  .detail-dialog.is-web-detail {
    height: auto;
    max-height: calc(100dvh - 16px);
  }

  .is-web-detail .detail-shell {
    display: block;
    height: auto;
    max-height: calc(100dvh - 16px);
    overflow: auto;
  }

  .is-web-detail .detail-frame {
    display: contents;
  }

  .is-web-detail .detail-comments-slot {
    display: none;
  }

  .is-web-detail .detail-body {
    display: block;
    height: auto;
    overflow: visible;
  }

  .is-web-detail .detail-stage {
    display: flex;
    height: auto;
  }

  .is-web-detail .detail-preview {
    flex: none;
    height: min(68dvh, 640px);
    min-height: 400px;
  }

  .is-web-detail .detail-shell > .item-comments {
    margin-top: 0;
    max-height: none;
  }
}
