:root {
  --bg: #f2f3f0;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --ink: #0d1210;
  --ink-soft: #2d3732;
  --muted: #68736d;
  --muted-2: #94a09a;
  --line: #dce2de;
  --line-strong: #c9d1cc;
  --dark: #09100d;
  --dark-raised: #111915;
  --dark-line: #2b3731;
  --lime: #d7ff45;
  --lime-strong: #b7df28;
  --lime-wash: #f5ffe3;
  --blue: #2457f5;
  --blue-wash: #edf2ff;
  --red: #c74438;
  --red-wash: #fff1ee;
  --amber: #bd771d;
  --amber-wash: #fff7e9;
  --shadow: 0 22px 65px rgba(11, 18, 14, 0.1);
  --shadow-soft: 0 10px 32px rgba(11, 18, 14, 0.06);
  --rail-width: 86px;
  --topbar-height: 78px;
  --radius: 8px;
  --font-display: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", "Microsoft YaHei", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  background:
    linear-gradient(rgba(24, 34, 28, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 28, 0.026) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
}

body {
  background: transparent;
  font-size: 13.5px;
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
}

::selection {
  color: #fff;
  background: var(--blue);
}

button,
a,
input,
textarea,
select {
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.app-shell {
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
}

.side-rail {
  top: 16px;
  bottom: 16px;
  left: 14px;
  width: 62px;
  padding: 14px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
    rgba(8, 14, 11, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 55px rgba(7, 12, 9, 0.22);
  backdrop-filter: blur(20px) saturate(1.25);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 7px;
}

.brand-word {
  font-size: 6.5px;
}

.rail-nav {
  gap: 8px;
  margin-top: 34px;
}

.rail-btn {
  width: 42px;
  height: 42px;
  border-radius: 7px;
}

.rail-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rail-btn.is-active {
  color: #fff;
  background: var(--blue);
  border-color: rgba(110, 145, 255, 0.55);
  box-shadow: 0 8px 22px rgba(36, 87, 245, 0.34);
}

.rail-btn::after {
  left: 50px;
  background: rgba(10, 16, 13, 0.94);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.rail-bottom {
  gap: 10px;
}

.avatar {
  color: var(--dark);
  background: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.topbar {
  min-height: var(--topbar-height);
  padding: 12px clamp(24px, 3.4vw, 54px);
  background: rgba(242, 243, 240, 0.78);
  border-bottom: 1px solid rgba(196, 205, 199, 0.8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(22px) saturate(1.3);
}

.title-lockup {
  gap: 4px;
}

.eyebrow {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.title-lockup h1 {
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 750;
  letter-spacing: 0;
}

.top-actions {
  gap: 8px;
}

.status-pill,
.demo-toggle,
.top-account-button {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(196, 205, 199, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 6px 18px rgba(12, 19, 15, 0.035);
  backdrop-filter: blur(16px);
}

.status-pill:hover,
.top-account-button:hover {
  background: #fff;
  border-color: #b8c2bc;
  box-shadow: var(--shadow-soft);
}

.top-account-avatar {
  color: #fff;
  background: var(--blue);
  border-color: #1744d1;
}

.account-dropdown {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(204, 212, 207, 0.92);
  box-shadow: 0 28px 75px rgba(8, 15, 11, 0.18);
  backdrop-filter: blur(24px) saturate(1.25);
}

.account-dropdown::before {
  background: rgba(255, 255, 255, 0.94);
}

.module-nav {
  top: calc(var(--topbar-height) + 11px);
  width: max-content;
  max-width: calc(100% - 36px);
  min-height: 46px;
  margin: 11px auto 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(199, 208, 202, 0.84);
  border-radius: 9px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 30px rgba(11, 18, 14, 0.06);
  backdrop-filter: blur(20px) saturate(1.3);
}

.module-nav button {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 10px;
}

.module-nav button:hover {
  background: rgba(255, 255, 255, 0.82);
}

.module-nav button.is-active {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
  box-shadow: 0 8px 20px rgba(10, 16, 13, 0.18);
}

.main-content {
  width: min(100%, 1480px);
  padding: 28px clamp(24px, 3.4vw, 54px) 88px;
}

.view.is-active {
  animation: premium-view-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-view.is-active {
  display: grid;
  gap: 26px;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  min-height: 500px;
  overflow: hidden;
  color: #f4f7f4;
  background:
    linear-gradient(90deg, rgba(6, 11, 9, 0.93) 0%, rgba(7, 13, 10, 0.76) 48%, rgba(7, 13, 10, 0.24) 100%),
    url("/assets/demo/tiktok-growth-studio.jpg") center / cover;
  border: 1px solid #26322b;
  border-radius: 12px;
}

.home-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #d7ff45 0 40%, #66d9aa 40% 70%, #ff7d45 70%);
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
}

.home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7ff45;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.home-hero-kicker i {
  width: 7px;
  height: 7px;
  background: #d7ff45;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(215, 255, 69, 0.7);
}

.home-hero h2 {
  max-width: 760px;
  margin: 20px 0 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.03;
}

.home-hero h2 em {
  color: #d7ff45;
  font-style: normal;
}

.home-hero-copy > p {
  max-width: 660px;
  color: rgba(239, 245, 240, 0.76);
  font-size: 13px;
  line-height: 1.8;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.home-hero-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
}

.home-hero-actions .hero-primary {
  color: #11170d;
  background: #d7ff45;
  border: 1px solid #c7ee3c;
}

.home-hero-actions .hero-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.home-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.home-hero-tags span {
  padding: 5px 8px;
  color: rgba(240, 245, 241, 0.76);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 8px;
}

.home-hero-panel {
  position: relative;
  z-index: 2;
  align-self: end;
  margin: 24px;
  padding: 22px;
  color: #eff5f0;
  background: rgba(9, 14, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.home-hero-panel-label {
  color: #98d7ad;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-hero-panel > strong {
  display: block;
  margin-top: 8px;
  color: #d7ff45;
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
}

.home-hero-panel > p {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
}

.home-hero-panel > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 15px 0;
}

.home-hero-panel > div span {
  padding: 6px 7px;
  color: #dbe6de;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 8px;
  text-align: center;
}

.home-hero-panel small {
  color: rgba(225, 234, 228, 0.62);
  font-size: 8px;
  line-height: 1.55;
}

.home-feature-section {
  padding: 34px 0 8px;
}

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

.home-section-kicker {
  color: #3159e8;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.home-section-heading h2 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
}

.home-section-heading > p {
  max-width: 390px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  text-align: right;
}

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

.home-feature-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1.18fr);
  min-height: 260px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 28px rgba(20, 30, 24, 0.04);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.home-feature-card:hover {
  border-color: #b8c5bd;
  box-shadow: 0 14px 34px rgba(20, 30, 24, 0.08);
  transform: translateY(-2px);
}

.home-feature-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #18201b;
}

.home-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-feature-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(8, 12, 9, 0.65), transparent 58%);
}

.home-feature-media > span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.home-feature-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.home-feature-label {
  color: #3159e8;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-feature-label i {
  margin-left: 5px;
  padding: 2px 5px;
  color: #71320d;
  background: #fff0d9;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 7px;
  font-style: normal;
}

.home-feature-copy h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.home-feature-copy p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.72;
}

.home-feature-copy p b {
  color: var(--ink);
}

.home-feature-copy button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  margin-top: auto;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 8px;
  font-weight: 750;
}

.home-feature-copy button:hover {
  background: #f4f7f4;
}

.home-feature-copy button .icon {
  width: 13px;
  height: 13px;
}

.home-feature-media-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, #17201b 0%, #263b2d 60%, #1c3749 100%);
  background-size: 20px 20px, 20px 20px, auto;
}

.home-feature-media-tool::after {
  background: linear-gradient(0deg, rgba(8, 12, 9, 0.75), transparent 65%);
}

.home-tool-orbit {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  color: #17210d;
  background: #d7ff45;
  border: 8px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.home-tool-orbit .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2;
}

.home-tool-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(215, 255, 69, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.home-tool-lines i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #d7ff45;
  border-radius: 50%;
}

.home-tool-lines i:nth-child(1) {
  top: 18px;
  right: 34px;
}

.home-tool-lines i:nth-child(2) {
  right: -3px;
  bottom: 66px;
}

.home-tool-lines i:nth-child(3) {
  bottom: 10px;
  left: 28px;
}

.home-audience-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 24px 0;
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-audience-band > div {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}

.home-audience-band > div:first-child {
  padding-left: 0;
}

.home-audience-band > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.home-audience-band span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.home-audience-band strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 14px;
}

.home-audience-band p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    padding-bottom: 24px;
  }

  .home-hero-panel {
    align-self: auto;
    max-width: 420px;
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .home-feature-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes premium-view-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.remix-hero,
.module-intro {
  color: var(--ink);
  background:
    linear-gradient(rgba(22, 31, 26, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 31, 26, 0.025) 1px, transparent 1px),
    rgba(255, 255, 255, 0.9);
  background-size: 28px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.remix-hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  min-height: 552px;
  margin-bottom: 38px;
}

.remix-hero::after {
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #7f9aff 48%, transparent 92%);
}

.remix-hero-copy {
  padding: clamp(38px, 5vw, 72px);
}

.remix-kicker,
.module-status {
  color: #1e49c9;
  background: var(--blue-wash);
  border-color: #cdd9ff;
}

.remix-kicker {
  border-radius: 5px;
  letter-spacing: 0.04em;
}

.remix-hero-copy h2 {
  max-width: 700px;
  margin: 22px 0 18px;
  color: var(--ink);
  font-size: clamp(42px, 4.45vw, 64px);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.98;
}

.remix-hero-copy h2 span {
  color: var(--blue);
}

.remix-hero-copy > p,
.module-intro-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.remix-hero-actions {
  gap: 10px;
  margin-top: 26px;
}

.hero-primary,
.hero-secondary {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 6px;
  font-size: 11px;
}

.hero-primary {
  color: #fff;
  background: var(--blue);
  border-color: #1c49d9;
  box-shadow: 0 10px 24px rgba(36, 87, 245, 0.22);
}

.hero-primary:hover {
  color: #fff;
  background: #1747dc;
  transform: translateY(-1px);
}

.hero-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
  box-shadow: 0 4px 14px rgba(10, 17, 13, 0.04);
}

.hero-secondary:hover {
  background: #fff;
  border-color: var(--line-strong);
}

.remix-facts span,
.remix-hero-copy .remix-compliance {
  color: var(--muted);
}

.remix-facts b {
  color: var(--ink);
}

.remix-hero-visual {
  min-height: 510px;
  margin: 18px 18px 18px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 42%, rgba(49, 99, 255, 0.16), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #0a110e;
  background-size: auto, 30px 30px, 30px 30px, auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(8, 14, 10, 0.2);
}

.module-intro {
  min-height: 420px;
  margin-bottom: 30px;
}

.module-intro-image,
.module-intro-drama {
  background:
    linear-gradient(rgba(22, 31, 26, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 31, 26, 0.026) 1px, transparent 1px),
    rgba(255, 255, 255, 0.92);
  background-size: 28px 28px;
}

.module-intro-copy {
  padding: clamp(34px, 4.2vw, 62px);
}

.module-intro-copy h2 {
  margin: 17px 0 14px;
  color: var(--ink);
  font-size: clamp(42px, 4.7vw, 68px);
  letter-spacing: 0;
}

.module-intro-drama .module-status {
  color: #2b54cc;
  background: var(--blue-wash);
  border-color: #cedaff;
}

.module-feature-tags span {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.imagegen-showcase {
  grid-template-columns: minmax(0, 1.42fr) minmax(150px, 0.72fr);
  grid-template-rows: 1.12fr 0.88fr;
  gap: 8px;
  padding: 18px;
  min-height: 460px;
}

.showcase-card {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  box-shadow: 0 16px 38px rgba(8, 14, 10, 0.12);
}

.showcase-card figcaption {
  right: 13px;
  bottom: 12px;
  left: 13px;
}

.showcase-card figcaption b {
  font-size: 10px;
}

.drama-showcase {
  min-height: 420px;
  border-radius: 8px;
}

.workspace-layout {
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 32px;
}

.tool-section {
  padding: 34px 0;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.section-index {
  min-width: 34px;
  height: 24px;
  color: #fff;
  background: var(--blue);
  border-color: #1c49d9;
  border-radius: 4px;
}

.section-heading > p {
  font-size: 11px;
}

.upload-grid {
  gap: 14px;
}

.upload-card {
  min-height: 238px;
  background:
    linear-gradient(rgba(27, 39, 31, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 39, 31, 0.025) 1px, transparent 1px),
    rgba(255, 255, 255, 0.78);
  background-size: 22px 22px;
  border-color: #b9c3bd;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.upload-card:hover,
.upload-card.is-dragging {
  border-color: var(--blue);
  box-shadow: 0 18px 38px rgba(17, 28, 21, 0.08);
  transform: translateY(-2px);
}

.upload-icon {
  background: var(--blue-wash);
  border-color: #d2ddff;
}

.image-upload-icon {
  background: #f2f4ff;
  border-color: #dde3ff;
}

.upload-action {
  border-radius: 5px;
  box-shadow: 0 3px 12px rgba(15, 23, 18, 0.04);
}

.engine-option {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.engine-option:hover {
  border-color: #b4bfb8;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.engine-option.is-selected {
  border-color: var(--blue);
  background: linear-gradient(180deg, #fff, #f8faff);
  box-shadow: 0 14px 34px rgba(36, 87, 245, 0.11);
}

.segment,
.image-mode-tabs {
  background: rgba(231, 235, 232, 0.76);
  border: 1px solid rgba(207, 215, 210, 0.9);
}

.segment button.is-active,
.image-mode-tabs button.is-active {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.module-chip-row button {
  background: rgba(255, 255, 255, 0.78);
}

.module-chip-row button.is-active {
  color: #1744d4;
  background: var(--blue-wash);
  border-color: #b9c9ff;
}

.module-field textarea,
.module-field select,
.auth-form input,
.admin-search input {
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.module-field textarea:focus,
.module-field select:focus,
.auth-form input:focus,
.admin-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 87, 245, 0.1);
}

.module-config-panel,
.module-preview-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.module-preview-panel {
  top: calc(var(--topbar-height) + 76px);
}

.imagegen-preview-frame {
  background:
    linear-gradient(rgba(24, 34, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 28, 0.035) 1px, transparent 1px),
    #eef1ee;
  background-size: 24px 24px;
  border-color: #c3ccc6;
}

.primary-action {
  min-height: 48px;
  color: #fff;
  background: var(--blue);
  border-color: #1d49d8;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(36, 87, 245, 0.2);
}

.primary-action:hover:not(:disabled) {
  color: #fff;
  background: #1746dd;
  transform: translateY(-1px);
}

.secondary-action {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  border-radius: 6px;
}

.secondary-action:hover {
  background: #fff;
  border-color: #aeb9b2;
  transform: translateY(-1px);
}

.inspector {
  background:
    radial-gradient(circle at 78% 10%, rgba(62, 104, 255, 0.17), transparent 28%),
    #0a110e;
  border-color: #2a3731;
  border-radius: 9px;
  box-shadow: 0 24px 70px rgba(7, 12, 9, 0.18);
}

.output-frame,
.inspector-alert,
.task-identifiers {
  border-radius: 6px;
}

.progress-track span {
  background: var(--blue);
}

.task-step.is-done i {
  background: var(--lime);
}

.history-item,
.points-ledger-row,
.billing-order,
.api-map-grid article,
.insight-metrics,
.insight-panel {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(12, 20, 15, 0.035);
}

.history-item:hover {
  border-color: #bfc9c2;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.page-heading {
  padding: 18px 0 30px;
  border-color: var(--line);
}

.page-heading h2 {
  margin: 7px 0;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: 0;
}

.filter-chip.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.empty-state {
  min-height: 390px;
  background:
    linear-gradient(rgba(24, 34, 28, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 28, 0.028) 1px, transparent 1px),
    rgba(255, 255, 255, 0.76);
  background-size: 26px 26px;
  border-color: #c5cec8;
}

.empty-state-icon {
  color: var(--blue);
  background: var(--blue-wash);
  border-color: #cfdbff;
}

.empty-state h3 {
  letter-spacing: 0;
}

.billing-guest {
  color: var(--ink);
  background:
    linear-gradient(rgba(25, 36, 29, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 36, 29, 0.03) 1px, transparent 1px),
    rgba(255, 255, 255, 0.9);
  background-size: 30px 30px;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.billing-guest-copy {
  color: var(--ink);
}

.billing-guest-copy .eyebrow,
.billing-guest-copy > p {
  color: var(--muted);
}

.billing-guest-copy h3 {
  letter-spacing: 0;
}

.auth-card,
.account-profile-card,
.account-stat-card,
.referral-panel,
.distribution-panel,
.payout-profile-panel,
.redeem-panel,
.account-security-panel,
.checkout-panel {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.billing-plan-card {
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(12, 20, 15, 0.04);
}

.billing-plan-card:hover {
  border-color: var(--plan-border);
  box-shadow: 0 22px 52px rgba(10, 18, 13, 0.1);
  transform: translateY(-4px);
}

.billing-plan-card.is-featured {
  box-shadow: 0 18px 48px var(--plan-glow);
}

.referral-panel,
.distribution-panel {
  color: var(--ink);
  background:
    linear-gradient(rgba(24, 34, 28, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 28, 0.025) 1px, transparent 1px),
    rgba(255, 255, 255, 0.9);
  background-size: 26px 26px;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.referral-copy .eyebrow,
.distribution-head .eyebrow,
.payout-settings-head .eyebrow {
  color: var(--blue);
}

.referral-copy h3,
.distribution-head h3,
.payout-settings-head h4 {
  color: var(--ink);
  letter-spacing: 0;
}

.referral-copy > p,
.distribution-head p,
.payout-settings-head p {
  color: var(--muted);
}

.referral-copy > p strong {
  color: var(--blue);
}

.referral-code-row > div span {
  color: var(--muted);
}

.referral-code-row code {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  color: #1e48c7;
  background: var(--blue-wash);
  border: 1px solid #cbd7ff;
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.referral-panel .secondary-action {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.referral-code-row .secondary-action:first-of-type {
  color: #fff;
  background: var(--blue);
  border-color: #1d49d8;
}

.referral-stats {
  gap: 1px;
  background: var(--line);
  border-color: var(--line);
  border-radius: 7px;
}

.referral-stats > div {
  background: rgba(255, 255, 255, 0.94);
  border: 0;
}

.referral-stats span,
.referral-stats small {
  color: var(--muted);
}

.referral-stats strong {
  color: var(--ink);
}

.distribution-rate {
  color: var(--ink);
  background: var(--blue-wash);
  border-color: #cbd7ff;
}

.distribution-rate span,
.distribution-rate small {
  color: var(--muted);
}

.distribution-rate strong {
  color: var(--blue);
}

.distribution-stats {
  gap: 1px;
  background: var(--line);
  border-color: var(--line);
}

.distribution-stats > div {
  background: rgba(255, 255, 255, 0.94);
}

.distribution-stats span,
.distribution-stats small {
  color: var(--muted);
}

.distribution-stats strong {
  color: var(--ink);
}

.payout-settings,
.commission-withdrawal-form {
  border-color: var(--line);
}

.payout-saved-status,
.payout-profile-statuses span {
  color: var(--muted);
  background: #f3f6f3;
  border-color: var(--line);
}

.payout-saved-status.is-ready,
.payout-profile-statuses span.is-ready {
  color: #1e48c7;
  background: var(--blue-wash);
  border-color: #cbd7ff;
}

.payout-method-tabs {
  background: #edf1ee;
  border-color: var(--line);
}

.payout-method-tabs button {
  color: var(--muted);
}

.payout-method-tabs button.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.payout-profile-form label > span,
.commission-withdrawal-form label span {
  color: var(--muted);
}

.payout-profile-form input[type="text"],
.payout-qr-field,
.commission-withdrawal-form input {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
}

.payout-qr-field b {
  color: var(--muted);
}

.payout-qr-field b.is-ready {
  color: var(--blue);
}

.payout-profile-form .secondary-action {
  color: #fff;
  background: var(--blue);
  border-color: #1d49d8;
}

.distribution-actions .secondary-action {
  color: #fff;
  background: var(--blue);
  border-color: #1d49d8;
}

.distribution-actions > span {
  color: var(--muted);
}

.commission-records {
  border-color: var(--line);
}

.commission-records-head {
  color: var(--muted);
}

.commission-records-head button {
  color: var(--blue);
}

.commission-record {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
}

.commission-record strong {
  color: var(--ink);
}

.commission-record small {
  color: var(--muted);
}

.commission-status.pending {
  color: #825413;
  background: #fff3db;
}

.commission-status.available,
.commission-status.approved,
.commission-status.paid {
  color: #1e48c7;
  background: var(--blue-wash);
}

.commission-status.reversed,
.commission-status.rejected {
  color: #a03c32;
  background: var(--red-wash);
}

.commission-empty {
  color: var(--muted);
}

.account-menu-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.support-rail-button {
  position: relative;
}

.support-rail-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: var(--dark);
  background: var(--lime);
  border: 2px solid #0a100d;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 850;
  line-height: 1;
}

.support-page-heading {
  margin-bottom: 22px;
}

.support-gate {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: 42px 24px;
  text-align: center;
  background:
    linear-gradient(rgba(24, 34, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 28, 0.03) 1px, transparent 1px),
    rgba(255, 255, 255, 0.8);
  background-size: 28px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}

.support-gate-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 15px;
  color: var(--blue);
  background: var(--blue-wash);
  border: 1px solid #cedbff;
  border-radius: 8px;
}

.support-gate h3,
.support-thread-placeholder h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 750;
}

.support-gate p,
.support-thread-placeholder p {
  max-width: 520px;
  margin: 7px 0 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.support-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.support-list-panel,
.support-thread-panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.support-list-panel {
  position: sticky;
  top: calc(var(--topbar-height) + 78px);
  overflow: hidden;
}

.support-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.support-list-head h3 {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 750;
}

.support-unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.support-ticket-filters {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.support-ticket-filters button {
  min-height: 30px;
  padding: 5px 9px;
  color: var(--muted);
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 9px;
}

.support-ticket-filters button.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.support-ticket-list {
  display: grid;
  gap: 1px;
  max-height: 620px;
  overflow-y: auto;
  background: var(--line);
}

.support-ticket-item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
}

.support-ticket-item:hover,
.support-ticket-item.is-active {
  background: #f7f9ff;
}

.support-ticket-item.is-active {
  box-shadow: 3px 0 0 var(--blue) inset;
}

.support-ticket-item-top,
.support-ticket-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.support-ticket-item-top b {
  color: var(--blue);
  font-size: 8px;
}

.support-ticket-item > strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-ticket-item > p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.support-ticket-item-foot {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
}

.support-ticket-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.support-ticket-empty .icon {
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  color: var(--blue);
}

.support-ticket-empty strong {
  color: var(--ink);
  font-size: 11px;
}

.support-ticket-empty span {
  margin-top: 4px;
  font-size: 8px;
}

.support-thread-panel {
  min-height: 610px;
  overflow: hidden;
}

.support-thread-placeholder {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 610px;
  padding: 34px;
  text-align: center;
}

.support-placeholder-visual {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 16px;
  color: var(--blue);
  background: var(--blue-wash);
  border: 1px solid #cedbff;
  border-radius: 8px;
}

.support-placeholder-visual .icon {
  width: 28px;
  height: 28px;
}

.support-thread {
  display: grid;
  min-height: 610px;
  grid-template-rows: auto minmax(260px, 1fr) auto;
}

.support-thread-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.support-ticket-id {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
}

.support-thread-head h3 {
  margin: 4px 0 7px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 750;
}

.support-thread-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 8px;
}

.support-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 7px;
  color: #1949d2;
  background: var(--blue-wash);
  border: 1px solid #cbd8ff;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
}

.support-status-badge.is-processing {
  color: #805311;
  background: #fff5df;
  border-color: #eed6a8;
}

.support-status-badge.is-replied {
  color: #1849cf;
  background: var(--blue-wash);
  border-color: #ccd9ff;
}

.support-status-badge.is-resolved,
.support-status-badge.is-closed {
  color: #5d6862;
  background: #eff2f0;
  border-color: #d8dfdb;
}

.support-message-list {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: 470px;
  padding: 20px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(24, 34, 28, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 28, 0.024) 1px, transparent 1px),
    #f7f8f6;
  background-size: 24px 24px;
}

.support-message {
  width: min(82%, 660px);
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px 8px 8px 2px;
  box-shadow: 0 4px 14px rgba(12, 20, 15, 0.04);
}

.support-message.is-user {
  justify-self: end;
  background: #edf2ff;
  border-color: #ccd9ff;
  border-radius: 8px 8px 2px 8px;
}

.support-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 7px;
}

.support-message-meta strong {
  color: var(--ink-soft);
  font-size: 8px;
}

.support-message p {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.support-reply-form {
  padding: 14px 18px 17px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
}

.support-reply-form textarea,
.support-create-form textarea,
.support-create-form input,
.support-create-form select {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
}

.support-reply-form textarea {
  min-height: 90px;
  padding: 10px;
  resize: vertical;
}

.support-compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.support-compose-foot > span {
  color: var(--muted-2);
  font-size: 8px;
}

.support-create-form {
  padding: 22px;
}

.support-create-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.support-create-head h3 {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 750;
}

.support-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.support-form-grid label {
  display: grid;
  gap: 6px;
}

.support-form-grid label.full {
  grid-column: 1 / -1;
}

.support-form-grid label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.support-create-form input,
.support-create-form select {
  height: 42px;
  padding: 0 10px;
}

.support-create-form textarea {
  min-height: 160px;
  padding: 11px;
  resize: vertical;
}

.support-create-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.support-create-foot > span {
  color: var(--muted);
  font-size: 8px;
}

.support-create-foot .primary-action {
  width: auto;
  min-width: 130px;
}

.toast {
  color: #fff;
  background: rgba(10, 17, 13, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(5, 10, 7, 0.24);
  backdrop-filter: blur(22px) saturate(1.2);
}

.modal-backdrop {
  background: rgba(8, 13, 10, 0.54);
  backdrop-filter: blur(12px);
}

.modal {
  background: rgba(252, 253, 251, 0.94);
  border-color: rgba(255, 255, 255, 0.74);
  border-radius: 10px;
  box-shadow: 0 40px 120px rgba(5, 10, 7, 0.28);
  backdrop-filter: blur(22px) saturate(1.15);
}

.demo-banner {
  color: #2444a6;
  background: rgba(237, 243, 255, 0.9);
  border-color: #cbd8ff;
  box-shadow: var(--shadow-soft);
}

.skeleton,
.skeleton-line,
.skeleton-thumb {
  position: relative;
  overflow: hidden;
  background: #e6ebe7;
}

.skeleton::after,
.skeleton-line::after,
.skeleton-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.72) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-history {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 13px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skeleton-thumb {
  width: 76px;
  aspect-ratio: 4 / 5;
  border-radius: 5px;
}

.skeleton-copy {
  display: grid;
  gap: 9px;
}

.skeleton-line {
  height: 10px;
  border-radius: 999px;
}

.skeleton-line.is-title {
  width: 34%;
  height: 15px;
}

.skeleton-line.is-meta {
  width: 72%;
}

@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1180px) {
  .remix-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  }

  .workspace-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
  }
}

@media (max-width: 980px) {
  .remix-hero {
    grid-template-columns: 1fr;
  }

  .remix-hero-visual {
    min-height: 430px;
    margin: 0 16px 16px;
  }

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

  .support-workspace {
    grid-template-columns: 1fr;
  }

  .support-list-panel {
    position: static;
  }

  .support-ticket-list {
    max-height: 340px;
  }

  .support-thread-panel,
  .support-thread,
  .support-thread-placeholder {
    min-height: 520px;
  }

  .inspector {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-shell {
    display: block;
  }

  .side-rail {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    height: 60px;
    padding: 5px 7px;
    border-radius: 10px;
    background: rgba(8, 14, 11, 0.92);
  }

  .rail-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin: 0;
  }

  .rail-nav [data-view-target="create"] {
    order: 1;
  }

  .rail-nav [data-view-target="history"] {
    order: 2;
  }

  .rail-nav [data-view-target="insights"] {
    order: 3;
  }

  .rail-nav [data-view-target="billing"] {
    order: 4;
  }

  .rail-nav .rail-btn {
    height: 48px;
    border-radius: 7px;
  }

  .rail-nav .rail-btn.is-active {
    color: #fff;
    background: rgba(36, 87, 245, 0.22);
  }

  .rail-nav .rail-btn.is-active .icon {
    color: #fff;
    background: var(--blue);
  }

  .page-shell {
    padding-bottom: 84px;
  }

  .topbar {
    min-height: 66px;
    padding: 10px 14px;
  }

  .title-lockup h1 {
    font-size: 21px;
  }

  .title-lockup .eyebrow {
    font-size: 8px;
  }

  .demo-copy small {
    display: none;
  }

  .module-nav {
    top: 74px;
    width: calc(100% - 20px);
    max-width: none;
    margin-top: 8px;
    border-radius: 8px;
  }

  .module-nav button {
    flex: 1 0 auto;
    min-height: 34px;
    padding: 7px 9px;
  }

  .home-view {
    gap: 18px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(6, 11, 9, 0.84), rgba(6, 11, 9, 0.95)),
      url("/assets/demo/tiktok-growth-studio.jpg") center / cover;
  }

  .home-hero-copy {
    padding: 34px 20px 22px;
  }

  .home-hero h2 {
    font-size: 36px;
  }

  .home-hero-panel {
    margin: 0 14px 14px;
  }

  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .home-section-heading > p {
    text-align: left;
  }

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

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

  .home-feature-media {
    min-height: 210px;
    aspect-ratio: 16 / 10;
  }

  .home-feature-copy {
    min-height: 210px;
    padding: 18px;
  }

  .home-audience-band {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .home-audience-band > div,
  .home-audience-band > div:first-child,
  .home-audience-band > div:last-child {
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-audience-band > div:last-child {
    border-bottom: 0;
  }

  .main-content {
    padding: 16px 12px 110px;
  }

  .remix-hero {
    min-height: 0;
    margin-bottom: 26px;
    border-radius: 8px;
  }

  .remix-hero-copy {
    padding: 30px 20px 16px;
  }

  .remix-hero-copy h2 {
    margin: 18px 0 14px;
    font-size: clamp(36px, 10.8vw, 44px);
  }

  .remix-hero-copy > p,
  .module-intro-copy p {
    font-size: 11px;
  }

  .remix-hero-visual {
    min-height: 420px;
    margin: 0 10px 10px;
    padding: 14px;
  }

  .module-intro {
    min-height: 0;
    margin-bottom: 22px;
    border-radius: 8px;
  }

  .module-intro-copy {
    padding: 28px 20px 22px;
  }

  .module-intro-copy h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .imagegen-showcase {
    min-height: 360px;
    padding: 12px;
  }

  .drama-showcase {
    min-height: 430px;
  }

  .module-config-panel,
  .module-preview-panel {
    padding: 16px;
  }

  .module-field textarea,
  .module-field select,
  .auth-form input,
  .change-password-form input,
  .redeem-form input,
  .checkout-panel input {
    font-size: 16px;
  }

  .workspace-layout {
    gap: 20px;
  }

  .tool-section {
    padding: 26px 0;
  }

  .upload-card {
    min-height: 218px;
  }

  .page-heading {
    padding: 14px 0 22px;
  }

  .page-heading h2 {
    font-size: 34px;
  }

  .history-item {
    border-radius: 8px;
  }

  .billing-guest-copy {
    padding: 26px 20px;
  }

  .toast-region {
    right: 12px;
    bottom: 82px;
  }

  .support-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .support-page-heading .primary-action {
    width: 100%;
  }

  .support-form-grid {
    grid-template-columns: 1fr;
  }

  .support-form-grid label.full {
    grid-column: auto;
  }

  .support-create-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .support-create-foot .primary-action {
    width: 100%;
  }

  .support-message {
    width: 92%;
  }

  .support-thread-head {
    padding: 16px;
  }

  .support-thread-head h3 {
    font-size: 20px;
  }

  .support-message-list {
    padding: 14px;
  }

  .support-create-form {
    padding: 16px;
  }
}

.drama-service-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.drama-service-note.is-ready {
  color: #28713d;
}

.drama-step-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.drama-step-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
}

.drama-step-tabs button b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--muted);
  background: #edf1ee;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 7px;
}

.drama-step-tabs button.is-active {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.drama-step-tabs button.is-active b {
  color: var(--dark);
  background: var(--lime);
}

.drama-step-tabs button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.drama-step-tabs > i {
  width: 42px;
  height: 1px;
  background: var(--line-strong);
}

.drama-production-grid {
  align-items: start;
}

.drama-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: #edf1ee;
  border-radius: 6px;
}

.drama-segment button {
  min-height: 34px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

.drama-segment button.is-active {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 2px 6px rgba(12, 19, 15, 0.06);
}

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

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

.drama-version-grid label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  min-height: 62px;
  padding: 10px;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.drama-version-grid input {
  margin: 2px 0 0;
  accent-color: #3159e8;
}

.drama-version-grid span {
  display: grid;
  gap: 3px;
}

.drama-version-grid b {
  font-size: 9px;
}

.drama-version-grid small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.drama-order-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 14px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.drama-order-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  background: #f8faf8;
}

.drama-order-summary > div.full {
  grid-column: 1 / -1;
}

.drama-order-summary span {
  color: var(--muted);
  font-size: 8px;
}

.drama-order-summary b {
  font-size: 10px;
  line-height: 1.5;
}

.drama-brand-readiness {
  padding: 10px 11px;
  margin-bottom: 12px;
  color: #765126;
  background: #fff8ea;
  border: 1px solid #efd8b1;
  border-radius: 6px;
  font-size: 9px;
  line-height: 1.55;
}

.drama-brand-readiness.is-ready {
  color: #28623b;
  background: #edf8f0;
  border-color: #cce6d4;
}

.drama-confirm-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

.drama-result-files {
  display: grid;
  gap: 7px;
}

.drama-result-files a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: #f6f9f6;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.drama-result-files a b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drama-result-files a small {
  color: var(--muted);
  font-size: 8px;
}

.drama-script-review {
  padding: 12px;
  background: #fffaf0;
  border: 1px solid #ecd8b6;
  border-radius: 7px;
}

.drama-script-review textarea {
  width: 100%;
  min-height: 180px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  font: inherit;
  font-size: 10px;
  line-height: 1.65;
}

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

.module-field > input[type="url"],
.module-field > input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  font: inherit;
  font-size: 10px;
}

.module-field > input[type="url"]:focus,
.module-field > input[type="text"]:focus {
  border-color: #93a8e8;
  box-shadow: 0 0 0 3px rgba(49, 89, 232, 0.08);
}

.drama-guide-upload {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 11px 12px;
  margin-bottom: 14px;
  color: #405047;
  background: #f6f8f6;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
}

.drama-guide-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drama-guide-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: #2b54c9;
  background: #edf2ff;
  border-radius: 6px;
}

.drama-guide-upload > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.drama-guide-upload strong {
  font-size: 10px;
}

.drama-guide-upload small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drama-rights-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 14px;
  color: #5b665f;
  font-size: 9px;
  line-height: 1.55;
}

.drama-rights-confirm input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: #3159e8;
}

.drama-job-status {
  display: grid;
  gap: 8px;
  padding: 13px;
  color: #21382a;
  background: #f0f6ee;
  border: 1px solid #d7e5d3;
  border-radius: 7px;
}

.drama-job-status > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drama-job-status span,
.drama-job-status small {
  font-size: 9px;
  line-height: 1.55;
}

.drama-job-status b {
  font-family: var(--font-mono);
  font-size: 9px;
}

.drama-job-status > i {
  display: block;
  height: 5px;
  overflow: hidden;
  background: #dbe5d8;
  border-radius: 999px;
}

.drama-job-status > i em {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8ba90f, #3159e8);
  border-radius: inherit;
  transition: width 240ms ease;
}

.drama-download-result {
  justify-content: center;
  margin-top: 10px;
}

.module-label-with-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 3px;
}

.module-free-badge {
  position: absolute;
  top: -12px;
  right: -18px;
  padding: 2px 5px;
  color: #2b1200;
  background: linear-gradient(135deg, #ffca3a, #ff6b35);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  box-shadow:
    0 0 0 2px rgba(255, 138, 42, 0.12),
    0 6px 16px rgba(255, 94, 46, 0.3);
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.module-nav button.is-active .module-free-badge {
  border-color: #111;
  box-shadow: 0 5px 15px rgba(255, 131, 37, 0.45);
}

.module-intro-watermark {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  min-height: 390px;
  padding: 0;
  margin-bottom: 28px;
  overflow: hidden;
}

.module-intro-watermark .module-intro-copy {
  padding: 46px clamp(30px, 5vw, 74px);
}

.module-intro-watermark .module-status {
  color: #a9470f;
  background: #fff4e7;
  border-color: #f4d5b7;
}

.watermark-showcase {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #182019;
}

.watermark-showcase::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(12, 18, 14, 0.38), transparent 45%),
    linear-gradient(0deg, rgba(10, 15, 12, 0.55), transparent 45%);
}

.watermark-showcase > img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.watermark-preview-ui {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 14px;
  color: #f5f7f4;
  background: rgba(10, 16, 12, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.watermark-preview-ui > span {
  color: #8ee4a7;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.watermark-preview-ui > strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watermark-preview-ui > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.watermark-preview-ui i,
.watermark-preview-ui b {
  padding: 4px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
}

.watermark-preview-ui i {
  color: #d7ff45;
  background: rgba(78, 106, 15, 0.44);
}

.watermark-preview-ui b {
  color: #dce9ff;
  background: rgba(47, 77, 128, 0.48);
}

.module-feature-tags .is-free {
  color: #71320d;
  background: #fff0d9;
  border-color: #f2c58c;
}

.watermark-url-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.watermark-url-field input {
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  font: inherit;
  font-size: 10px;
}

.watermark-url-field input:focus {
  border-color: #93a8e8;
  box-shadow: 0 0 0 3px rgba(49, 89, 232, 0.08);
}

.watermark-url-field button {
  padding: 0 13px;
  color: #25407c;
  background: #edf2ff;
  border: 1px solid #cfdafa;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 750;
}

.watermark-quick-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.watermark-quick-notes span {
  padding: 5px 7px;
  color: #536159;
  background: #f5f7f5;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 8px;
}

.watermark-tool-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.watermark-result-panel {
  min-height: 430px;
}

.watermark-quota-pill {
  padding: 5px 8px;
  color: #315118;
  background: #eff8df;
  border: 1px solid #d6e8b8;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
}

.watermark-quota-pill.is-member {
  color: #274184;
  background: #edf2ff;
  border-color: #cfdafa;
}

.watermark-quota-pill.is-empty {
  color: #8a3527;
  background: #fff0ed;
  border-color: #f2cdc6;
}

.watermark-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 310px;
  color: var(--muted);
  text-align: center;
}

.watermark-empty .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
}

.watermark-empty strong {
  color: var(--ink);
  font-size: 12px;
}

.watermark-empty span {
  max-width: 270px;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.65;
}

.watermark-result {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.watermark-result-main {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 13px;
}

.watermark-result-main > img,
.watermark-cover-empty {
  width: 116px;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  background: #edf1ee;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.watermark-cover-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.watermark-result-main > div:last-child {
  min-width: 0;
}

.watermark-ready-label {
  display: inline-flex;
  padding: 3px 6px;
  color: #246737;
  background: #e9f8ed;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 800;
}

.watermark-result-main h4 {
  margin: 9px 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.watermark-result-main p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.watermark-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.watermark-stats span {
  padding: 4px 6px;
  color: #5a655e;
  background: #f4f6f4;
  border-radius: 4px;
  font-size: 8px;
}

.watermark-options {
  display: grid;
  gap: 7px;
}

.watermark-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 43px;
  padding: 8px 10px;
  color: #1e3828;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.watermark-options a:hover {
  border-color: #aebbd2;
  transform: translateY(-1px);
}

.watermark-options a > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.watermark-options b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watermark-options small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  white-space: nowrap;
}

.watermark-result-note {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.drama-plan-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drama-plan-heading h3 {
  margin-top: 3px;
  font-size: 16px;
}

.drama-plan-empty {
  margin-top: 8px;
}

.drama-plan-result {
  display: grid;
  gap: 14px;
  max-height: min(680px, calc(100vh - 250px));
  padding-right: 5px;
  margin-top: 14px;
  overflow-y: auto;
}

.drama-plan-summary {
  padding: 14px;
  background: #f3f7f2;
  border: 1px solid #d8e5d6;
  border-radius: 7px;
}

.drama-plan-summary h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.drama-plan-summary p {
  color: #4d5b53;
  font-size: 10px;
  line-height: 1.65;
}

.drama-plan-summary .drama-plan-hook {
  margin-bottom: 8px;
  color: #1c522d;
  font-weight: 750;
}

.drama-plan-section {
  display: grid;
  gap: 8px;
}

.drama-plan-section > span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drama-plan-section > p,
.drama-plan-section li {
  color: #35423a;
  font-size: 10px;
  line-height: 1.72;
}

.drama-plan-section ul,
.drama-plan-section ol {
  display: grid;
  gap: 5px;
  padding-left: 18px;
  margin: 0;
}

.drama-plan-section.is-warning {
  padding: 12px;
  background: #fff8ec;
  border: 1px solid #f0dcc0;
  border-radius: 6px;
}

.drama-scene-list {
  display: grid;
  gap: 8px;
}

.drama-scene-list article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.drama-scene-list article > b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: #263b2d;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 8px;
}

.drama-scene-list article > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.drama-scene-list small {
  color: #7a857f;
  font-family: var(--font-mono);
  font-size: 7px;
}

.drama-scene-list p,
.drama-scene-list blockquote,
.drama-scene-list em {
  margin: 0;
  font-size: 9px;
  line-height: 1.55;
}

.drama-scene-list blockquote {
  padding-left: 8px;
  color: #1e4e2e;
  border-left: 2px solid #a7c73f;
}

.drama-scene-list em {
  color: #59665e;
  font-style: normal;
}

.drama-hashtags {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .module-field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .drama-step-tabs {
    justify-content: stretch;
  }

  .drama-step-tabs button {
    flex: 1;
    justify-content: center;
  }

  .drama-step-tabs > i {
    width: 15px;
  }

  .drama-range-grid,
  .drama-version-grid,
  .drama-order-summary {
    grid-template-columns: 1fr;
  }

  .drama-order-summary > div.full {
    grid-column: auto;
  }

  .drama-confirm-actions {
    grid-template-columns: 1fr;
  }

  .drama-plan-result {
    max-height: none;
  }

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

  .module-intro-watermark .module-intro-copy {
    padding: 30px 20px 24px;
  }

  .watermark-showcase,
  .watermark-showcase > img {
    min-height: 330px;
  }

  .watermark-tool-grid {
    grid-template-columns: 1fr;
  }

  .module-free-badge {
    top: -9px;
    right: -14px;
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after,
  .skeleton-line::after,
  .skeleton-thumb::after {
    animation: none;
  }
}

/* TikTok growth case library */
.cases-view.is-active {
  display: grid;
  gap: 30px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.cases-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(280px, 0.76fr);
  min-width: 0;
  max-width: 100%;
  min-height: 438px;
  overflow: hidden;
  color: #f6f8f5;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #09100d;
  background-size: 34px 34px;
  border: 1px solid #26342c;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(7, 13, 9, 0.18);
}

.cases-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, #d7ff45, #3159e8);
}

.cases-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 74px);
}

.cases-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #d7ff45;
  background: rgba(215, 255, 69, 0.08);
  border: 1px solid rgba(215, 255, 69, 0.22);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.cases-hero h2 {
  max-width: 760px;
  margin: 20px 0 16px;
  color: #f7faf7;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.2vw, 86px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

.cases-hero h2 em {
  color: #d7ff45;
  font-style: normal;
}

.cases-hero-copy > p {
  max-width: 680px;
  color: rgba(235, 242, 237, 0.68);
  font-size: 12px;
  line-height: 1.8;
}

.cases-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.cases-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  color: rgba(242, 247, 243, 0.82);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  font-size: 8px;
}

.cases-hero-meta b {
  color: #d7ff45;
  font-family: var(--font-mono);
  font-size: 7px;
}

.cases-signal-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  width: calc(100% - 52px);
  max-width: 340px;
  margin: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.cases-signal-panel > span {
  color: #a8b8ae;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cases-signal-panel > strong {
  display: block;
  margin: 13px 0 0;
  color: #f7faf7;
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.8;
}

.cases-signal-panel > p {
  margin: 13px 0 18px;
  color: #d7ff45;
  font-size: 11px;
  font-weight: 750;
}

.cases-signal-panel > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.cases-signal-panel > div span {
  padding: 8px 4px;
  color: #d7e1da;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  text-align: center;
}

.cases-signal-panel small {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  color: rgba(226, 235, 229, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 8px;
  line-height: 1.65;
}

.cases-library {
  min-width: 0;
  max-width: 100%;
  padding-top: 3px;
  container-type: inline-size;
}

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

.cases-section-kicker {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.cases-section-heading h3 {
  margin: 7px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.cases-section-heading > p {
  max-width: 470px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  text-align: right;
}

.tiktok-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.tiktok-case-card {
  position: relative;
  min-width: 0;
  padding: 11px;
  overflow: hidden;
  background:
    linear-gradient(rgba(20, 29, 24, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 29, 24, 0.018) 1px, transparent 1px),
    rgba(255, 255, 255, 0.94);
  background-size: 28px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(12, 20, 15, 0.045);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.tiktok-case-card:hover {
  border-color: #bac4be;
  box-shadow: 0 18px 38px rgba(12, 20, 15, 0.09);
  transform: translateY(-2px);
}

.tiktok-case-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 1px 2px 10px;
}

.tiktok-case-card-head span {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.tiktok-case-card-head i {
  padding: 4px 6px;
  color: #7b5610;
  background: #fff7dd;
  border: 1px solid #f0ddb0;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 6px;
  font-style: normal;
  font-weight: 750;
}

.tiktok-case-card-head i.is-live {
  color: #275d36;
  background: #eaf7ed;
  border-color: #b8ddc2;
}

.tiktok-phone {
  position: relative;
  width: min(218px, 90%);
  aspect-ratio: 9 / 19.2;
  margin: 0 auto;
  padding: 6px;
  background: #101412;
  border: 1px solid #303833;
  border-radius: 30px;
  box-shadow:
    0 22px 48px rgba(8, 12, 10, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.tiktok-phone::before,
.tiktok-phone::after {
  position: absolute;
  left: -3px;
  width: 3px;
  content: "";
  background: #2c332f;
  border-radius: 2px 0 0 2px;
}

.tiktok-phone::before {
  top: 86px;
  height: 38px;
}

.tiktok-phone::after {
  top: 134px;
  height: 54px;
}

.tiktok-phone-notch {
  position: absolute;
  z-index: 5;
  top: 11px;
  left: 50%;
  width: 42%;
  height: 17px;
  background: #101412;
  border-radius: 0 0 12px 12px;
  transform: translateX(-50%);
}

.tiktok-phone-notch::after {
  position: absolute;
  top: 5px;
  right: 14px;
  width: 4px;
  height: 4px;
  content: "";
  background: #25334d;
  border-radius: 50%;
}

.tiktok-phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fbfbfb;
  border-radius: 23px;
}

.tiktok-case-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tiktok-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 21px;
  padding: 4px 10px 0;
  color: #171817;
  font-family: var(--font-mono);
  font-size: 5px;
  font-weight: 800;
}

.tiktok-phone-status span:last-child {
  font-size: 4px;
}

.tiktok-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 3px 10px;
  color: #181918;
  border-bottom: 1px solid #e5e5e5;
}

.tiktok-screen-header strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.tiktok-screen-header span {
  font-size: 9px;
}

.tiktok-profile-skeleton {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 10px 7px;
}

.tiktok-profile-avatar {
  display: block;
  width: 46px;
  height: 46px;
  background:
    linear-gradient(135deg, #dadde0, #b8bdc1);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #e3e5e7;
}

.tiktok-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.tiktok-profile-stats span {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.tiktok-profile-stats b {
  color: #202220;
  font-family: var(--font-mono);
  font-size: 9px;
}

.tiktok-profile-stats small {
  color: #818582;
  font-size: 5px;
}

.tiktok-profile-id {
  display: grid;
  gap: 5px;
  padding: 2px 11px 10px;
}

.tiktok-profile-id strong {
  color: #1b1d1b;
  font-size: 8px;
}

.tiktok-profile-id span {
  color: #8a8e8b;
  font-size: 5px;
}

.tiktok-profile-id button {
  width: 62px;
  min-height: 17px;
  margin-top: 2px;
  color: #1b1d1b;
  background: #fff;
  border: 1px solid #d6d8d6;
  border-radius: 3px;
  font-size: 5px;
  font-weight: 750;
}

.tiktok-video-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 25px;
  border-bottom: 1px solid #e4e5e4;
}

.tiktok-video-tabs span,
.tiktok-video-tabs b {
  position: relative;
  display: grid;
  place-items: center;
  color: #8a8e8b;
  font-size: 6px;
  font-weight: 650;
}

.tiktok-video-tabs b {
  color: #171817;
}

.tiktok-video-tabs b::after {
  position: absolute;
  right: 35%;
  bottom: -1px;
  left: 35%;
  height: 1px;
  content: "";
  background: #171817;
}

.tiktok-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
}

.tiktok-video-grid i {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #dfe2e0;
}

.tiktok-video-grid i:nth-child(3n + 1) {
  background: #d6dcda;
}

.tiktok-video-grid i:nth-child(3n + 2) {
  background: #e5e7e4;
}

.tiktok-video-grid i:nth-child(3n) {
  background: #ccd3d0;
}

.tiktok-video-grid i::before {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 24%;
  aspect-ratio: 1;
  content: "";
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  transform: translateX(-50%);
}

.tiktok-video-grid i::after {
  position: absolute;
  right: 17%;
  bottom: 12%;
  left: 17%;
  height: 38%;
  content: "";
  background: rgba(255, 255, 255, 0.46);
  border-radius: 42% 42% 8px 8px;
}

.tiktok-bottom-nav {
  position: absolute;
  right: 7px;
  bottom: 5px;
  left: 7px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  place-items: center;
  min-height: 26px;
  color: #171817;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #e5e5e5;
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.tiktok-bottom-nav span:nth-child(3) {
  display: grid;
  place-items: center;
  width: 23px;
  height: 16px;
  color: #fff;
  background: #1d1f1d;
  border-radius: 4px;
  font-size: 7px;
}

.tiktok-upload-state {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 43px;
  left: 14px;
  display: grid;
  justify-items: center;
  padding: 12px 8px;
  color: #313733;
  background: rgba(250, 252, 250, 0.9);
  border: 1px dashed #adb5b0;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(23, 30, 26, 0.12);
  backdrop-filter: blur(8px);
}

.tiktok-upload-state .icon {
  width: 17px;
  height: 17px;
  margin-bottom: 5px;
  color: #3159e8;
}

.tiktok-upload-state strong {
  font-size: 7px;
}

.tiktok-upload-state span {
  margin-top: 2px;
  color: #8b938e;
  font-family: var(--font-mono);
  font-size: 5px;
}

.tiktok-case-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 3px 2px;
}

.tiktok-case-copy > span {
  order: 2;
  flex: 0 0 auto;
  padding: 4px 6px;
  color: #56645c;
  background: #f4f7f5;
  border: 1px solid #e2e8e4;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tiktok-case-copy h4 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
}

.tiktok-case-copy p {
  display: none;
}

@container (min-width: 1180px) {
  .tiktok-case-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .tiktok-phone {
    width: min(210px, 92%);
  }
}

@container (max-width: 760px) {
  .tiktok-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.cases-note-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cases-note-band span {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.cases-note-band p {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .cases-hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.58fr);
  }
}

@media (max-width: 900px) {
  .cases-hero {
    grid-template-columns: 1fr;
  }

  .cases-hero-copy {
    padding: 38px 30px 24px;
  }

  .cases-signal-panel {
    width: auto;
    max-width: none;
    margin: 8px 30px 30px;
  }

  .cases-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .cases-section-heading > p {
    max-width: 680px;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .cases-view.is-active {
    gap: 20px;
  }

  .cases-hero {
    min-height: 0;
    border-radius: 8px;
  }

  .cases-hero-copy {
    padding: 30px 20px 20px;
  }

  .cases-kicker {
    font-size: 6px;
  }

  .cases-hero h2 {
    margin: 16px 0 12px;
    font-size: clamp(44px, 15vw, 60px);
  }

  .cases-hero-copy > p {
    font-size: 10px;
  }

  .cases-hero-meta {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    margin-top: 18px;
  }

  .cases-hero-meta span {
    min-height: 30px;
  }

  .cases-signal-panel {
    margin: 0 20px 20px;
    padding: 18px;
  }

  .cases-signal-panel > strong {
    font-size: 64px;
  }

  .tiktok-case-grid {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    margin-right: -12px;
    padding: 2px 12px 16px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .tiktok-case-grid::-webkit-scrollbar {
    display: none;
  }

  .tiktok-case-card {
    width: min(78vw, 282px);
    flex: 0 0 min(78vw, 282px);
    scroll-snap-align: start;
  }

  .tiktok-phone {
    width: min(230px, 90%);
  }

  .cases-note-band {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}
