:root {
  color-scheme: light;
  --tone-dark: #1a2332;
  --tone-mid: #737b88;
  --tone-light: #f8f9fb;
  --accent: #0078d4;
  --font-caption: 12px;
  --font-label: 13px;
  --font-body: 15px;
  --font-body-lg: 18px;
  --font-card: 22px;
  --font-section: clamp(34px, 4.4vw, 62px);
  --font-hero: clamp(64px, 5.8vw, 96px);
  --weight-regular: 430;
  --weight-medium: 560;
  --weight-semibold: 680;
  --weight-bold: 780;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1280px;
  background: var(--tone-light);
  color: var(--tone-dark);
  font-family: var(--font-sans);
  font-size: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: 1.5;
}

.home-page {
  min-width: 0;
  background: #020506;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 0 max(26px, calc((100vw - 1320px) / 2 + 26px));
  border-bottom: 1px solid rgba(26, 35, 50, 0.1);
  background: color-mix(in srgb, #ffffff 96%, transparent);
}

.home-header,
.home-page .site-header.home-header {
  top: 36px;
  z-index: 39;
  height: 82px;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(4, 7, 10, 0.62);
  color: #f7fbff;
  backdrop-filter: blur(18px) saturate(140%);
}

.home-page .site-header {
  padding-right: max(24px, calc((100vw - 1320px) / 2 + 24px));
  padding-left: max(24px, calc((100vw - 1320px) / 2 + 24px));
}

.home-header .brand-word,
.home-header .nav-links a,
.home-header .text-button {
  color: rgba(247, 251, 255, 0.82);
}

.home-header .nav-links a:hover,
.home-header .nav-links a.active {
  color: #ffffff;
}

.home-header .dark-button {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.home-header .dark-button:hover {
  background: #ffffff;
  color: #070a0e;
}

.home-header .brand-mark img {
  filter: drop-shadow(0 8px 20px rgba(80, 229, 237, 0.22));
}

.maintenance-banner {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 19;
  padding: 10px 24px;
  background: rgba(18, 35, 55, 0.86);
  color: #ffffff;
  text-align: center;
  font-size: var(--font-caption);
  font-weight: var(--weight-semibold);
  backdrop-filter: blur(16px);
}

.announcement-bar {
  position: relative;
  z-index: 18;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  height: 36px;
  padding: 0 max(26px, calc((100vw - 1320px) / 2 + 26px));
  border-bottom: 1px solid rgba(26, 35, 50, 0.1);
  background: rgba(255, 255, 255, 0.94);
  color: var(--tone-dark);
  backdrop-filter: blur(14px);
}

.site-header:not(.admin-header) + .announcement-bar {
  margin-top: 64px;
}

.home-header + .announcement-bar,
.home-page .announcement-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 36px;
  margin-top: 0 !important;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, #eafcff 0%, #2846f0 24%, #2bdff0 100%);
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.home-header + .announcement-bar .announcement-label,
.home-header + .announcement-bar .announcement-item,
.home-header + .announcement-bar .announcement-time,
.home-page .announcement-bar .announcement-label,
.home-page .announcement-bar .announcement-item,
.home-page .announcement-bar .announcement-time {
  color: #ffffff;
}

.home-header + .announcement-bar .announcement-label,
.home-page .announcement-bar .announcement-label {
  color: #123047;
}

.announcement-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.announcement-viewport {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-track {
  position: relative;
  height: 100%;
  min-width: 0;
}

.announcement-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  color: var(--tone-mid);
  font-size: 13px;
  font-weight: var(--weight-medium);
  line-height: 1;
  text-overflow: ellipsis;
  transform: translateY(0);
  transition: transform 420ms ease, opacity 420ms ease;
}

.announcement-item.is-next {
  opacity: 0;
  transform: translateY(100%);
}

.announcement-track.is-animating .announcement-item.is-current {
  opacity: 0;
  transform: translateY(-100%);
}

.announcement-track.is-animating .announcement-item.is-next {
  opacity: 1;
  transform: translateY(0);
}

.announcement-time {
  flex: 0 0 auto;
  color: var(--tone-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

a.announcement-item:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .announcement-item {
    transition: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: 17px;
  font-weight: var(--weight-bold);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
}

.brand-mark img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-dot {
  display: inline-block;
  margin: 0 0.18em;
}

.nav-links {
  display: flex;
  justify-content: start;
  gap: 18px;
  margin-left: 34px;
  color: var(--tone-mid);
  font-size: var(--font-label);
  font-weight: var(--weight-medium);
}

.feature-entry-nav {
  align-items: center;
  gap: 32px;
  min-width: 0;
  white-space: nowrap;
}

.nav-links a {
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--tone-dark);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--accent);
}

.account-bar {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  white-space: nowrap;
}

.account-avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  max-width: 260px;
  border-radius: 10px;
  padding: 0 14px;
  background: var(--tone-dark);
  color: var(--tone-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.text-button {
  background: transparent;
  color: var(--tone-dark);
}

.dark-button,
.primary-button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 10px;
  padding: 0 22px;
  background: var(--accent);
  color: var(--tone-light);
  font-size: 15px;
  font-weight: var(--weight-semibold);
}

.dark-button:hover,
.primary-button:hover:not(:disabled),
.primary-link:hover {
  background: var(--tone-dark);
  color: var(--tone-light);
}

.secondary-button,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(26, 35, 50, 0.14);
  border-radius: 10px;
  padding: 0 18px;
  background: transparent;
  color: var(--tone-dark);
  font-size: 14px;
  font-weight: var(--weight-semibold);
}

.nav-auth-link {
  text-decoration: none;
}

.admin-header {
  position: sticky;
  top: 0;
}

main {
  width: 100%;
  margin: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  justify-items: center;
  align-items: stretch;
  min-height: 100vh;
  padding: 74px max(42px, calc((100vw - 1320px) / 2 + 42px)) 56px;
  background: color-mix(in srgb, var(--tone-light) 92%, var(--tone-mid));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: color-mix(in srgb, var(--tone-light) 50%, transparent);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: color-mix(in srgb, var(--tone-dark) 8%, transparent);
  pointer-events: none;
}

.hero-backdrop {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  text-align: center;
  min-width: 0;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 130px);
  margin: 0;
}

.hero-copy .eyebrow {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--tone-light);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--tone-dark);
  font-size: var(--font-caption);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 760px;
  font-size: var(--font-hero);
  font-weight: 780;
  line-height: 0.96;
  text-wrap: balance;
}

.hero-logo {
  display: inline-flex;
  align-items: baseline;
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(72px, 6.6vw, 104px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--tone-dark);
  transform: none;
  white-space: nowrap;
}

.hero-logo span {
  white-space: nowrap;
  word-break: keep-all;
}

.logo-dot {
  display: inline-block;
  margin: 0 0.18em;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: var(--font-section);
  font-weight: 780;
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 720;
  line-height: 1.14;
}

.hero-text {
  max-width: 620px;
  margin: 20px 0 0;
  color: #4f5968;
  font-size: 18px;
  font-weight: var(--weight-regular);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 58px;
  margin-bottom: 0;
  justify-content: center;
  align-self: center;
}

.hero-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--hero-poster-image, url("./assets/ai-hero-poster.png")) center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

.hero-case-first {
  isolation: isolate;
  min-height: 1320px;
  overflow: visible;
  padding-top: 82px;
  padding-bottom: 104px;
  background: linear-gradient(180deg, #040507 0%, #040507 72%, #000000 100%);
  color: #ffffff;
}

.hero-case-first::before,
.hero-case-first::after {
  display: none;
}

.imini-prism-layer {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 980px;
  overflow: hidden;
  pointer-events: none;
}

.imini-prism-depth,
.imini-prism-glow,
.imini-prism-line,
.imini-prism-canvas-shell {
  position: absolute;
  pointer-events: none;
}

.imini-prism-depth {
  inset: 0;
  background: linear-gradient(180deg, #040507 0%, #0b0d12 24%, transparent 100%);
}

.imini-prism-glow {
  border-radius: 999px;
}

.imini-prism-glow-top {
  top: -280px;
  left: 50%;
  width: 980px;
  height: 980px;
  background: radial-gradient(circle, rgba(169, 181, 33, 0.22) 0%, rgba(169, 181, 33, 0.08) 34%, rgba(0, 0, 0, 0) 72%);
  filter: blur(80px);
  transform: translateX(-50%);
}

.imini-prism-glow-right {
  top: -40px;
  right: -120px;
  width: 880px;
  height: 880px;
  background: radial-gradient(circle, rgba(79, 194, 255, 0.28) 0%, rgba(79, 194, 255, 0.12) 38%, rgba(0, 0, 0, 0) 76%);
  filter: blur(90px);
}

.imini-prism-glow-bottom {
  bottom: 80px;
  left: 50%;
  width: 1040px;
  height: 520px;
  background: radial-gradient(circle, rgba(88, 239, 214, 0.18) 0%, rgba(88, 239, 214, 0.06) 38%, rgba(0, 0, 0, 0) 74%);
  filter: blur(72px);
  transform: translateX(-50%);
}

.imini-prism-line {
  top: 0;
  right: 0;
  left: 0;
  width: min(1480px, 100%);
  height: 1px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
}

.imini-prism-canvas-shell {
  left: 50%;
  width: calc(100vw - 120px);
  height: 95%;
  opacity: 0.95;
  filter: blur(24px);
  transform: translateX(-50%);
}

.imini-prism-canvas {
  position: relative;
  width: 100%;
  height: 100%;
}

.imini-prism-canvas canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-case-first .hero-poster {
  display: none;
}

.hero-case-copy {
  z-index: 3;
  justify-content: flex-start;
  max-width: none;
  min-height: auto;
  padding-top: 166px;
}

.hero-case-first .hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: min(980px, calc(100vw - 48px));
  color: #f3f9fa;
  font-size: clamp(42px, 3.05vw, 64px);
  font-weight: 860;
  line-height: 1.16;
  text-align: center;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  white-space: normal;
}

.hero-case-first .hero-logo span {
  display: block;
  white-space: normal;
}

.hero-case-first .hero-text {
  max-width: 820px;
  margin-top: 20px;
  color: rgba(241, 248, 249, 0.78);
  font-size: clamp(26px, 2.35vw, 38px);
  font-weight: var(--weight-semibold);
  line-height: 1.34;
}

.hero-case-first .hero-actions {
  gap: 16px;
  margin-top: 64px;
  justify-content: center;
}

.hero-case-first .primary-link {
  min-width: 176px;
  min-height: 70px;
  border: 3px solid transparent;
  border-radius: 999px;
  padding: 0 38px;
  background:
    linear-gradient(#07090d, #07090d) padding-box,
    linear-gradient(102deg, #26f1ff 0%, #f0e64b 100%) border-box;
  color: #ffffff;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.26),
    0 0 34px rgba(41, 237, 255, 0.16);
  font-size: 21px;
}

.hero-case-first .primary-link:hover {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(102deg, #26f1ff 0%, #f0e64b 100%) border-box;
  color: #07090d;
}

.hero-benefit-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: min(720px, calc(100vw - 40px));
  min-height: 48px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 12px 4px 15px;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 36%),
    linear-gradient(108deg, rgba(255, 255, 255, 0.13), rgba(105, 147, 152, 0.3) 48%, rgba(255, 255, 255, 0.12));
  color: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(38, 241, 255, 0.1),
    0 18px 42px rgba(0, 0, 0, 0.18),
    0 0 28px rgba(38, 241, 255, 0.12);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  backdrop-filter: blur(12px) saturate(145%);
}

.hero-benefit-pill::before {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 32%, rgba(223, 255, 56, 0.14) 55%, rgba(38, 241, 255, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  content: "";
  pointer-events: none;
}

.hero-benefit-pill::after {
  position: absolute;
  top: 4px;
  left: 56px;
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0));
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.hero-benefit-text {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.hero-benefit-prefix,
.hero-benefit-suffix {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.48);
}

.hero-benefit-highlight {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px 1px;
  background:
    linear-gradient(104deg, #dfff38 0%, #f7fff0 42%, #38f5ff 100%);
  color: #05070c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 0 20px rgba(223, 255, 56, 0.34),
    0 0 26px rgba(38, 241, 255, 0.16);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-benefit-icon,
.hero-benefit-model {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.hero-benefit-icon {
  width: 28px;
  height: 28px;
}

.hero-benefit-models {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 2px;
}

.hero-benefit-model {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-benefit-chatgpt {
  width: 28px;
  height: 28px;
  background: transparent;
  box-shadow: none;
}

.hero-benefit-icon img,
.hero-benefit-model img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-benefit-banana img {
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.32));
}

.hero-benefit-chatgpt img {
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.hero-case-library {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: min(100%, 1236px);
  margin: 76px auto 0;
  padding: 0;
  overflow-x: clip;
  background: transparent;
  text-align: left;
}

.hero-case-first .hero-case-library {
  width: min(100%, 1236px);
  margin: 76px auto 0;
  padding: 0;
  overflow-x: clip;
  background: transparent;
}

.hero-case-library .case-library-head {
  display: none;
}

.hero-case-feature-row {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 34px;
}

.hero-glass-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero-case-feature-row article {
  --glass-image: url("https://static.iminicdn.com/resources/2.10.10-1781362618361/_next/static/media/image1.746c8629.webp");
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 124px;
  min-height: 124px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  padding: 24px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
  isolation: isolate;
  transition: all 300ms ease;
}

.hero-case-feature-row article:nth-of-type(2) {
  --glass-image: url("https://static.iminicdn.com/resources/2.10.10-1781362618361/_next/static/media/image2.17eda288.webp");
}

.hero-case-feature-row article:nth-of-type(3) {
  --glass-image: url("https://static.iminicdn.com/resources/2.10.10-1781362618361/_next/static/media/image3.cea03286.webp");
}

.hero-case-feature-row article:nth-of-type(4) {
  --glass-image: url("https://static.iminicdn.com/resources/2.10.10-1781362618361/_next/static/media/image4.36947603.webp");
}

.hero-case-feature-row article::before,
.hero-case-feature-row article::after {
  content: none;
}

.imini-card-bg {
  position: absolute;
  top: 1px;
  left: 1px;
  z-index: 0;
  width: calc(100% - 2px);
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  background-image: var(--glass-image);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
  filter: blur(0);
  transform: scale(1.1);
  transition:
    filter 300ms ease,
    transform 300ms ease;
}

.hero-case-feature-row article:hover .imini-card-bg {
  filter: blur(5px);
  transform: scale(1.2);
}

.glass-surface {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  pointer-events: none;
}

.hero-case-feature-row article:nth-of-type(1) .glass-surface {
  backdrop-filter: url("#damai-glass-filter-0") saturate(1.1);
  -webkit-backdrop-filter: url("#damai-glass-filter-0") saturate(1.1);
}

.hero-case-feature-row article:nth-of-type(2) .glass-surface {
  backdrop-filter: url("#damai-glass-filter-1") saturate(1.1);
  -webkit-backdrop-filter: url("#damai-glass-filter-1") saturate(1.1);
}

.hero-case-feature-row article:nth-of-type(3) .glass-surface {
  backdrop-filter: url("#damai-glass-filter-2") saturate(1.1);
  -webkit-backdrop-filter: url("#damai-glass-filter-2") saturate(1.1);
}

.hero-case-feature-row article:nth-of-type(4) .glass-surface {
  backdrop-filter: url("#damai-glass-filter-3") saturate(1.1);
  -webkit-backdrop-filter: url("#damai-glass-filter-3") saturate(1.1);
}

.glass-highlight {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
}

.glass-highlight-primary {
  box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.55);
}

.glass-highlight-secondary {
  box-shadow: inset 1px 0.5px 1px rgba(255, 255, 255, 0.25);
  rotate: 180deg;
}

.hero-case-feature-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  cursor: pointer;
}

.hero-feature-icon {
  position: relative;
  bottom: 4px;
  display: flex;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  color: #ffffff;
}

.hero-feature-icon svg {
  display: block;
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.hero-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  width: 176px;
}

.hero-case-feature-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  text-shadow: none;
  white-space: nowrap;
}

.hero-case-feature-row strong em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 4px;
  padding: 0 6px;
  background: #dfff38;
  color: #05070c;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.hero-case-feature-row p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  text-shadow: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-case-library .case-masonry {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(218px, 10vw, 262px);
  gap: 28px;
  height: auto;
  overflow: visible;
  column-count: initial;
  column-gap: 0;
  perspective: 1200px;
}

.hero-case-library .case-card {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  --case-y: 0px;
  --case-scale: 1;
  --case-rotate: 0deg;
  --case-float-x: 0px;
  --case-float-y: 0px;
  border: 1px solid rgba(238, 252, 255, 0.52);
  border-radius: 24px;
  background: #080d12;
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform:
    translate3d(var(--case-float-x), calc(var(--case-y) + var(--case-float-y)), 0)
    rotate(var(--case-rotate))
    scale(var(--case-scale));
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    opacity 640ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.hero-case-library .case-card[role="button"] {
  cursor: pointer;
}

.hero-case-library .case-card[role="button"]:focus-visible {
  outline: 2px solid rgba(116, 246, 255, 0.85);
  outline-offset: 5px;
}

.hero-case-library .case-card .case-card-media {
  height: 100%;
  aspect-ratio: auto;
  background: #080d12;
}

.hero-case-library .case-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 36%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(90deg, rgba(37, 240, 255, 0.1), transparent 42%, rgba(241, 230, 75, 0.08));
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.hero-case-library .case-card-placeholder {
  height: 100%;
  background:
    linear-gradient(135deg, rgba(37, 240, 255, 0.26), transparent 44%),
    linear-gradient(34deg, rgba(241, 230, 75, 0.18), transparent 46%),
    linear-gradient(180deg, #eaf7ff, #e9f8ef);
}

.hero-case-library .case-card-body {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 8px;
  padding: 64px 22px 22px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 54%, rgba(0, 0, 0, 0.88) 100%);
  box-shadow: none;
  backdrop-filter: none;
}

.hero-case-library .case-card-meta {
  justify-content: start;
  gap: 7px;
}

.hero-case-library .case-card-meta span {
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
}

.hero-case-library .case-card-meta span + span {
  background: rgba(37, 240, 255, 0.18);
  color: #aefaff;
}

.hero-case-library .case-card h3 {
  overflow: hidden;
  color: #ffffff;
  display: -webkit-box;
  font-size: 20px;
  line-height: 1.22;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-case-library .case-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: rgba(236, 248, 250, 0.7);
  font-size: 12px;
}

.hero-case-library .case-card:hover {
  --case-y: -6px;
  --case-scale: 1.012;
  border-color: rgba(238, 252, 255, 0.78);
  box-shadow:
    0 30px 78px rgba(0, 0, 0, 0.4),
    0 0 34px rgba(55, 226, 238, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.hero-case-library .case-card-media img,
.hero-case-library .case-card-placeholder {
  transform: scale(1.02);
  transition:
    filter 420ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 420ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-case-library .case-card:hover .case-card-media img,
.hero-case-library .case-card:hover .case-card-placeholder {
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.08);
}

.hero-case-library .case-card:hover .case-card-media::after {
  opacity: 0.78;
}

.tabs-section,
.history-section,
.pricing-section {
  padding: 82px max(42px, calc((100vw - 1320px) / 2 + 42px));
}

.showcase-strip {
  position: relative;
  display: block;
  padding: 110px 0 92px;
  overflow: hidden;
  background: #000000;
  color: #f7fbff;
}

.showcase-strip::before {
  display: none;
}

.model-showcase-head {
  width: min(100%, 1120px);
  margin: 0 auto 46px;
  padding: 0 24px;
  text-align: center;
}

.model-showcase-head h2 {
  display: grid;
  gap: 2px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(30px, 2.55vw, 48px);
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.1;
}

.model-ticker {
  position: relative;
  width: min(1540px, 100vw);
  margin: 0 auto;
  overflow: hidden;
}

.model-ticker::before,
.model-ticker::after {
  position: absolute;
  top: 0;
  z-index: 2;
  width: min(18vw, 220px);
  height: 100%;
  content: "";
  pointer-events: none;
}

.model-ticker::before {
  left: 0;
  background: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.86) 28%, rgba(0, 0, 0, 0) 100%);
}

.model-ticker::after {
  right: 0;
  background: linear-gradient(270deg, #000000 0%, rgba(0, 0, 0, 0.86) 28%, rgba(0, 0, 0, 0) 100%);
}

.model-ticker-row {
  overflow: hidden;
}

.model-ticker-row + .model-ticker-row {
  margin-top: 14px;
}

.model-ticker-track {
  display: flex;
  width: max-content;
  animation: modelTicker 38s linear infinite;
  will-change: transform;
}

.model-ticker-row--secondary .model-ticker-track {
  animation-name: modelTickerReverse;
  animation-duration: 42s;
}

.model-ticker:hover .model-ticker-track {
  animation-play-state: paused;
}

.model-ticker-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 28px rgba(0, 0, 0, 0.28);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(12px) saturate(120%);
}

.model-pill--muted {
  color: rgba(255, 255, 255, 0.22);
}

.model-pill--icon {
  gap: 10px;
  padding-left: 16px;
}

.model-pill img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.model-showcase-note {
  margin: 42px 0 0;
  color: rgba(255, 255, 255, 0.28);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
}

@keyframes modelTicker {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes modelTickerReverse {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.home-workflow-section {
  position: relative;
  padding: 92px max(54px, calc((100vw - 1364px) / 2 + 54px)) 116px;
  overflow: hidden;
  background: #000000;
  color: #f7fbff;
}

.home-workflow-section::before,
.home-workflow-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-workflow-section::before {
  display: none;
}

.home-workflow-section::after {
  display: none;
}

.home-process-block {
  position: relative;
  z-index: 1;
  margin: 0 auto 118px;
  max-width: 1200px;
}

.home-workflow-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 0 auto 54px;
  text-align: center;
}

.home-workflow-head h2 {
  margin: 0;
  max-width: 860px;
  color: #f7fbff;
  font-size: clamp(38px, 3vw, 58px);
  font-weight: 860;
  line-height: 1.12;
  text-wrap: balance;
}

.home-workflow-head p {
  margin: 0;
  max-width: 620px;
  color: rgba(225, 244, 247, 0.66);
  font-size: 16px;
  font-weight: var(--weight-regular);
  line-height: 1.66;
}

.home-process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.home-process-steps article {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 236px;
  overflow: hidden;
  border: 1px solid rgba(229, 252, 255, 0.18);
  border-radius: 20px;
  padding: 28px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(81, 232, 243, 0.08) 52%, rgba(255, 255, 255, 0.04)),
    rgba(8, 14, 19, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 72px rgba(0, 0, 0, 0.26);
  text-align: left;
  backdrop-filter: blur(20px) saturate(150%);
}

.home-process-steps article::after {
  content: "";
  position: absolute;
  inset: auto 22px 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #26f1ff, rgba(241, 230, 75, 0.72), transparent);
  opacity: 0.72;
}

.home-process-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border: 1px solid rgba(229, 252, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(38, 241, 255, 0.24), rgba(241, 230, 75, 0.12)),
    rgba(255, 255, 255, 0.08);
  color: #e8feff;
  box-shadow: 0 16px 34px rgba(39, 221, 255, 0.12);
}

.home-process-icon svg,
.home-tech-icon svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.home-step-label {
  color: rgba(129, 246, 255, 0.78);
  font-size: 13px;
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.home-process-steps h3 {
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  font-weight: 840;
  line-height: 1.25;
}

.home-process-steps p {
  margin: 8px 0 0;
  color: rgba(225, 244, 247, 0.66);
  font-size: 14px;
  font-weight: var(--weight-regular);
  line-height: 1.62;
}

.home-tech-block .home-workflow-head {
  margin-bottom: 44px;
}

.home-tech-block {
  position: relative;
  z-index: 1;
  max-width: 1364px;
  margin: 0 auto;
}

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

.home-tech-grid article {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
  min-height: 168px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 252, 255, 0.16);
  border-radius: 18px;
  padding: 22px 20px 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(81, 232, 243, 0.06) 48%, rgba(255, 255, 255, 0.035)),
    rgba(8, 14, 19, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-align: left;
  backdrop-filter: blur(18px) saturate(145%);
  transition:
    border-color 220ms ease,
    transform 220ms ease,
    background 220ms ease;
}

.home-tech-grid article:hover {
  border-color: rgba(129, 246, 255, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(81, 232, 243, 0.1) 48%, rgba(241, 230, 75, 0.06)),
    rgba(8, 14, 19, 0.74);
  transform: translateY(-4px);
}

.home-tech-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  border: 1px solid rgba(129, 246, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #bffbff;
}

.home-tech-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.1;
}

.home-tech-grid h3 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 820;
  line-height: 1.35;
}

.home-tech-grid p {
  margin: 0;
  color: rgba(225, 244, 247, 0.62);
  font-size: 12px;
  font-weight: var(--weight-regular);
  line-height: 1.58;
}

.section-head {
  display: grid;
  gap: 6px;
  max-width: 1040px;
  margin-bottom: 28px;
}

.section-head .eyebrow {
  color: var(--tone-dark);
}

.product-tabs,
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.tab-button,
.sub-tabs button {
  border: 1px solid rgba(26, 35, 50, 0.12);
  background: transparent;
  color: var(--tone-dark);
}

.tab-button {
  min-height: 62px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: var(--weight-semibold);
}

.tab-button span,
.sub-tabs span {
  margin-left: 8px;
  color: var(--tone-mid);
  font-size: var(--font-caption);
  font-weight: var(--weight-medium);
}

.tab-button.active,
.active-subtab {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--tone-light);
}

.tab-button.active span {
  color: var(--tone-light);
}

.disabled,
.disabled-subtab {
  opacity: 0.74;
}

.sub-tabs button {
  min-height: 42px;
  font-size: 14px;
  font-weight: var(--weight-medium);
}

.studio-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) minmax(360px, 0.66fr);
  gap: 44px;
  align-items: start;
  margin-top: 34px;
}

.side-panel,
.creator-panel,
.result-panel,
.history-list {
  background: transparent;
}

.side-panel,
.creator-panel,
.result-panel {
  height: 100%;
  padding: 0;
}

.side-panel,
.creator-panel {
  border-right: 1px solid rgba(26, 35, 50, 0.12);
  padding-right: 34px;
}

.side-panel,
.creator-panel,
.result-panel {
  display: flex;
  flex-direction: column;
}

.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
}

.profile-card div {
  display: grid;
  gap: 4px;
}

.profile-card button {
  min-height: 34px;
  padding: 0 12px;
  background: var(--tone-dark);
  color: var(--tone-light);
  font-size: var(--font-caption);
  font-weight: var(--weight-semibold);
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: var(--tone-light);
  font-weight: 820;
}

.profile-card small,
.metric-list span,
.coming-card small,
.coming-card span {
  color: var(--tone-mid);
  font-size: var(--font-caption);
  font-weight: var(--weight-medium);
}

.metric-list {
  display: grid;
  gap: 0;
  margin: 20px 0;
}

.metric-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid rgba(26, 35, 50, 0.12);
}

.metric-list div:last-child {
  border-bottom: 1px solid rgba(26, 35, 50, 0.12);
}

.metric-list strong {
  font-size: 28px;
  font-weight: 780;
  line-height: 1;
}

.coming-card {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.coming-card strong {
  font-size: 21px;
  font-weight: 720;
  line-height: 1.18;
}

.coming-card small {
  line-height: 1.55;
}

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

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tone-mid);
  font-size: var(--font-label);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.switch-line input {
  width: 18px;
  height: 18px;
  min-height: auto;
  accent-color: var(--tone-dark);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
}

.dify-config-panel {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px 0 18px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.1);
}

.dify-config-panel input {
  min-height: 40px;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 10px;
  padding: 0 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--tone-mid);
  font-size: var(--font-label);
  font-weight: var(--weight-medium);
}

.conditional-hidden {
  display: none !important;
}

.wide-field {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid rgba(26, 35, 50, 0.18);
  border-radius: 0;
  padding: 11px 0;
  background: transparent;
  color: var(--tone-dark);
  font-size: 14px;
  font-weight: var(--weight-regular);
  outline: none;
  transition:
    border-color 140ms ease,
    background 140ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--tone-dark);
}

.upload-box {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(26, 35, 50, 0.12);
}

.upload-box[hidden] {
  display: none !important;
}

.prompt-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.prompt-field {
  position: relative;
}

.prompt-field textarea {
  padding-right: 86px;
}

.prompt-polish-button {
  position: absolute;
  right: 0;
  bottom: 11px;
  min-height: 34px;
  padding: 0 12px;
  font-size: var(--font-caption);
}

.upload-box label {
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
}

.clone-upload-box {
  gap: 14px;
}

.clone-upload-box .clone-upload-entry {
  min-height: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.clone-upload-box .clone-upload-entry + input + .clone-upload-entry {
  padding-top: 14px;
  border-top: 1px solid rgba(26, 35, 50, 0.1);
}

.clone-upload-box .clone-upload-entry small {
  color: var(--tone-mid);
  font-size: 14px;
  font-weight: var(--weight-regular);
  line-height: 1.55;
}

.upload-box label span,
.upload-box label small {
  grid-column: 1;
}

.upload-box label strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: var(--tone-dark);
  color: var(--tone-light);
  padding: 10px 15px;
  font-size: 14px;
  font-weight: var(--weight-semibold);
}

.upload-box input {
  display: none;
}

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

.file-chip {
  position: relative;
  display: grid;
  gap: 6px;
  margin: 0;
  overflow: hidden;
  font-size: var(--font-caption);
  font-weight: var(--weight-medium);
}

.file-chip img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: color-mix(in srgb, var(--tone-dark) 6%, transparent);
}

.file-chip figcaption {
  color: var(--tone-mid);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 26px;
  min-height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: rgba(26, 35, 50, 0.72);
  color: #ffffff;
  font-size: 18px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tone-dark) 24%, transparent);
}

.file-chip-remove:hover,
.file-chip-remove:focus-visible {
  background: var(--accent);
  color: #ffffff;
}

.actions,
.result-actions,
.history-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions {
  margin-top: 24px;
}

.case-share-trigger-button[hidden] {
  display: none !important;
}

.case-share-trigger-button {
  white-space: nowrap;
}

body.imini-page:not(.home-page) .case-share-trigger-button:not(:disabled) {
  border-color: rgba(38, 241, 255, 0.34);
  background:
    radial-gradient(circle at 18% 0%, rgba(38, 241, 255, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(38, 241, 255, 0.12);
}

body.imini-page:not(.home-page) .case-share-trigger-button:disabled {
  opacity: 0.56;
}

.status-line {
  padding: 14px 0;
  border-top: 1px solid rgba(26, 35, 50, 0.12);
  border-bottom: 1px solid rgba(26, 35, 50, 0.12);
  color: var(--tone-mid);
  font-size: 14px;
  font-weight: var(--weight-medium);
}

.status-line.running {
  color: var(--tone-dark);
}

.status-line.error,
.log-line.error {
  color: var(--tone-dark);
}

.progress-log {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.log-line {
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 35, 50, 0.12);
  color: var(--tone-mid);
  font-size: var(--font-caption);
  font-weight: var(--weight-medium);
  line-height: 1.45;
}

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

.image-card {
  position: relative;
  overflow: hidden;
}

.image-card-loading {
  min-height: 180px;
  border: 1px solid rgba(0, 120, 212, 0.18);
  background:
    radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 42%),
    color-mix(in srgb, var(--tone-light) 96%, var(--accent) 4%);
}

.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--tone-light);
}

.image-slot-progress {
  display: grid;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px 14px;
  text-align: center;
  color: var(--tone-dark);
}

.image-slot-progress .generation-spinner {
  width: 38px;
  height: 38px;
  border-width: 3px;
}

.image-slot-progress strong {
  color: inherit;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

.image-slot-progress small {
  color: var(--tone-mid);
  font-size: 12px;
  line-height: 1.45;
}

.image-slot-progress .generation-progress {
  width: min(132px, 80%);
  height: 7px;
}

.image-card-error {
  min-height: 180px;
  border: 1px solid rgba(215, 58, 73, 0.26);
  background:
    radial-gradient(circle at 50% 32%, rgba(215, 58, 73, 0.08), transparent 42%),
    color-mix(in srgb, var(--tone-light) 96%, #d73a49 4%);
}

.image-slot-error {
  display: grid;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px 14px;
  text-align: center;
  color: var(--tone-dark);
}

.image-slot-error > span {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: rgba(215, 58, 73, 0.13);
  color: #b4232f;
  font-size: 22px;
  font-weight: var(--weight-bold);
}

.image-slot-error strong {
  font-size: 14px;
  font-weight: var(--weight-semibold);
}

.image-slot-error small,
.image-slot-error em {
  color: var(--tone-mid);
  font-size: 12px;
  font-style: normal;
}

.image-slot-error p {
  max-width: 92%;
  margin: 0;
  color: var(--tone-mid);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.generation-loading {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 300px;
  padding: 56px 22px;
  border: 1px solid rgba(0, 120, 212, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 32%),
    color-mix(in srgb, var(--tone-light) 94%, var(--accent) 6%);
  color: var(--tone-dark);
  text-align: center;
}

.generation-loading strong {
  font-size: 18px;
  font-weight: var(--weight-semibold);
}

.generation-loading small {
  color: var(--tone-mid);
  font-size: var(--font-caption);
}

.generation-spinner {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(0, 120, 212, 0.18);
  border-top-color: var(--accent);
  border-radius: 999px;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 18%, transparent);
  animation: generation-spin 0.9s linear infinite;
}

.generation-progress {
  position: relative;
  overflow: hidden;
  width: min(280px, 80%);
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone-dark) 10%, transparent);
}

.generation-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: generation-progress 1.15s ease-in-out infinite;
}

.result-error-card {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 34px 28px;
  overflow: hidden;
  border: 1px solid rgba(210, 55, 55, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 20%, rgba(210, 55, 55, 0.13), transparent 36%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(18, 35, 55, 0.12);
  backdrop-filter: blur(18px) saturate(1.18);
  color: var(--tone-dark);
}

.result-error-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -64px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(210, 55, 55, 0.11);
  pointer-events: none;
}

.result-error-card > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(210, 55, 55, 0.14);
  color: #b3261e;
  font-size: 22px;
  font-weight: var(--weight-semibold);
}

.result-error-card strong {
  font-size: 20px;
  font-weight: var(--weight-semibold);
}

.result-error-card p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0;
  color: var(--tone-mid);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.result-error-card small {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 12px 14px;
  border: 1px solid rgba(210, 55, 55, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: #6b7280;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@keyframes generation-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes generation-progress {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(230%);
  }
}

.placeholder-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 20px;
  background: transparent;
}

.image-card a,
.image-card button {
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: 0;
  color: var(--tone-dark);
  background: transparent;
}

.image-select-control {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 10px;
  background: color-mix(in srgb, var(--tone-light) 92%, transparent);
  color: var(--tone-dark);
  font-size: var(--font-caption);
  font-weight: var(--weight-semibold);
}

.image-select-control[hidden] {
  display: none !important;
}

.image-select-control input {
  width: 15px;
  height: 15px;
  min-height: auto;
  accent-color: var(--accent);
}

.image-regenerate-button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 20;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 0 !important;
  padding: 7px 11px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--tone-dark) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  backdrop-filter: blur(12px) saturate(1.2);
  pointer-events: auto;
}

.image-edit-button {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 20;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 0 !important;
  padding: 7px 11px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--tone-dark) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  backdrop-filter: blur(12px) saturate(1.2);
  pointer-events: auto;
}

.image-regenerate-button:hover {
  background: #fff !important;
}

.image-regenerate-button:disabled,
.image-edit-button:disabled {
  cursor: wait;
  opacity: 0.86;
}

.image-card.is-regenerating img,
.image-card.is-editing img {
  filter: saturate(0.72) brightness(0.9);
}

.image-card.is-regenerating::after,
.image-card.is-editing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 48%, transparent 76%);
  animation: generation-progress 1.15s ease-in-out infinite;
}

.model-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.model-selector-button {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid rgba(26, 35, 50, 0.18);
  border-radius: 0;
  padding: 7px 0 8px;
  background: transparent;
  color: var(--tone-dark);
  text-align: left;
}

.model-selector-button:hover,
.model-selector-button:focus-visible {
  border-color: var(--accent);
}

.model-selector-button span {
  color: var(--tone-muted);
  font-size: 12px;
  font-weight: var(--weight-medium);
}

.model-selector-button strong {
  overflow: hidden;
  color: var(--tone-dark);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-selector-dialog {
  width: min(820px, calc(100vw - 36px));
  max-height: min(760px, calc(100vh - 36px));
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 14px;
  padding: 0;
  background: var(--tone-light);
  color: var(--tone-dark);
  box-shadow: 0 28px 90px rgba(26, 35, 50, 0.28);
}

.model-selector-dialog::backdrop {
  background: rgba(12, 18, 28, 0.48);
}

.model-selector-shell {
  display: grid;
  min-height: 520px;
  grid-template-rows: auto 1fr auto;
}

.model-selector-head,
.model-selector-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.1);
}

.model-selector-foot {
  border-top: 1px solid rgba(26, 35, 50, 0.1);
  border-bottom: 0;
}

.model-selector-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.model-selector-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  flex: 0 0 36px;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 50%;
  background: #ffffff;
  color: var(--tone-mid);
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.model-selector-body {
  display: grid;
  gap: 24px;
  padding: 22px;
  overflow: auto;
}

.model-selector-row {
  display: grid;
  gap: 12px;
}

.model-selector-row > span,
.model-selector-model-head > span,
.model-selector-current {
  color: var(--tone-muted);
  font-size: var(--font-label);
  font-weight: var(--weight-medium);
}

.model-route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.model-route-tab {
  min-height: 40px;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 8px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--tone-dark);
  font-size: 14px;
  font-weight: var(--weight-semibold);
}

.model-route-tab.is-active,
.model-route-tab:hover,
.model-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, #ffffff);
  color: var(--accent);
}

.model-selector-model-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.model-sort-select {
  width: auto;
  min-width: 170px;
  min-height: 38px;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.model-card {
  display: grid;
  min-height: 174px;
  align-content: start;
  gap: 10px;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 8px;
  padding: 16px 14px;
  background: #ffffff;
  color: var(--tone-dark);
  text-align: left;
}

.model-card:hover {
  border-color: rgba(0, 120, 212, 0.38);
  box-shadow: 0 18px 42px rgba(26, 35, 50, 0.12);
  transform: translateY(-1px);
}

.model-card-title {
  color: var(--tone-dark);
  font-size: 15px;
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.model-card-desc {
  min-height: 20px;
  color: #16835f;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

.model-card-costs {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(26, 35, 50, 0.1);
}

.model-card-costs em {
  color: #9a6500;
  font-size: 13px;
  font-style: normal;
  font-weight: var(--weight-semibold);
}

.model-selector-empty {
  padding: 30px 0;
  color: var(--tone-muted);
}

.model-selector-foot > div {
  display: flex;
  gap: 10px;
}

.mask-editor-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7fbff;
}

.mask-editor-dialog::backdrop {
  background: color-mix(in srgb, var(--tone-dark) 62%, transparent);
  backdrop-filter: blur(6px);
}

.mask-editor-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.28);
}

.mask-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mask-editor-head h3 {
  margin: 0;
  font-size: 22px;
}

.mask-editor-close {
  position: static;
  width: 42px;
  min-height: 42px;
  border-radius: 50%;
}

.mask-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  align-items: stretch;
}

.mask-editor-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(45deg, rgba(15, 23, 42, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15, 23, 42, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(15, 23, 42, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(15, 23, 42, 0.05) 75%);
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
}

.mask-editor-stage canvas {
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: min(68vh, 680px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.mask-editor-mask {
  cursor: crosshair;
  touch-action: none;
}

.mask-editor-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: min(68vh, 680px);
}

.mask-editor-controls label {
  display: grid;
  gap: 8px;
  color: var(--tone-mid);
  font-size: var(--font-label);
  font-weight: var(--weight-semibold);
}

.mask-editor-prompt-label {
  flex: 1 1 320px;
  min-height: 280px;
}

.mask-editor-controls textarea {
  min-height: 280px;
  resize: vertical;
}

.mask-editor-prompt-label textarea {
  flex: 1 1 auto;
}

.mask-editor-reference {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.mask-editor-reference-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mask-editor-reference-head strong {
  display: block;
  color: var(--tone-dark);
  font-size: var(--font-label);
}

.mask-editor-reference-note {
  margin: 4px 0 0;
  color: var(--tone-mid);
  font-size: var(--font-small);
  font-weight: var(--weight-regular);
  line-height: 1.45;
}

.mask-editor-reference-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
}

.mask-editor-reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.mask-editor-reference-empty,
.mask-editor-reference-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  font-size: var(--font-small);
}

.mask-editor-reference-empty {
  color: var(--tone-muted);
}

.mask-editor-reference-chip {
  gap: 6px;
  max-width: 100%;
  padding: 0 4px 0 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--surface);
  color: var(--tone-dark);
}

.mask-editor-reference-chip span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mask-editor-reference-chip button {
  display: grid;
  place-items: center;
  width: 22px;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tone-muted);
  font-size: 16px;
}

.mask-editor-brush input {
  accent-color: var(--accent);
}

.mask-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mask-editor-actions button {
  flex: 1 1 120px;
}

.mask-editor-erase.is-active {
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  color: var(--accent);
}

@media (max-width: 840px) {
  .model-selector-shell {
    min-height: 460px;
  }

  .model-selector-head,
  .model-selector-foot,
  .model-selector-body {
    padding: 16px;
  }

  .model-selector-model-head,
  .model-selector-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .model-sort-select,
  .model-selector-foot > div {
    width: 100%;
  }

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

  .mask-editor-body {
    grid-template-columns: 1fr;
  }

  .mask-editor-stage {
    min-height: 320px;
  }

  .mask-editor-controls {
    min-height: auto;
  }

  .mask-editor-prompt-label {
    flex: 0 1 auto;
    min-height: 220px;
  }

  .mask-editor-controls textarea {
    min-height: 220px;
  }

  .mask-editor-reference {
    margin-top: 0;
  }
}

.history-toolbar {
  justify-content: flex-end;
  margin: -8px 0 14px;
}

.history-list {
  display: grid;
  gap: 0;
  min-height: 120px;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(26, 35, 50, 0.12);
}

.history-item:last-child {
  border-bottom: 1px solid rgba(26, 35, 50, 0.12);
}

.history-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  line-height: 1.25;
}

.history-item small {
  color: var(--tone-mid);
  font-size: var(--font-caption);
  line-height: 1.45;
}

.case-library-section {
  padding: 96px max(54px, calc((100vw - 1320px) / 2 + 54px)) 104px;
  background: #ffffff;
}

.case-library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 42px;
}

.case-library-head h2 {
  color: #05070c;
  font-size: 38px;
  font-weight: 820;
  line-height: 1.14;
}

.case-library-head p:not(.eyebrow) {
  max-width: 620px;
  margin: 14px 0 0;
  color: #626a78;
  font-size: 15px;
  line-height: 1.62;
}

.case-library-stats {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 180px;
}

.case-library-stats span,
.case-library-stats strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.case-library-stats span {
  border: 1px solid rgba(26, 35, 50, 0.12);
  color: var(--tone-mid);
  font-weight: var(--weight-medium);
}

.case-library-stats strong {
  background: var(--tone-dark);
  color: var(--tone-light);
  font-weight: var(--weight-semibold);
}

.case-masonry {
  column-count: 4;
  column-gap: 22px;
}

.case-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(26, 35, 50, 0.08);
}

.case-card-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #e9edf2;
}

.case-card-1 .case-card-media {
  aspect-ratio: 3 / 4;
}

.case-card-2 .case-card-media {
  aspect-ratio: 4 / 5;
}

.case-card-3 .case-card-media {
  aspect-ratio: 1 / 1;
}

.case-card-4 .case-card-media {
  aspect-ratio: 5 / 7;
}

.case-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.case-card-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(140deg, rgba(0, 120, 212, 0.16), transparent 42%),
    linear-gradient(32deg, rgba(24, 25, 30, 0.12), transparent 48%),
    #eef2f6;
}

.case-card-body {
  display: grid;
  gap: 12px;
  padding: 16px 16px 18px;
}

.case-card-meta,
.case-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.case-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 7px;
  padding: 0 8px;
  background: #f3f6f9;
  color: #536071;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  line-height: 1;
}

.case-card h3 {
  color: #05070c;
  font-size: 18px;
  font-weight: 780;
  line-height: 1.3;
}

.case-card-footer {
  color: #687382;
  font-size: 12px;
  font-weight: var(--weight-medium);
  line-height: 1.35;
}

.case-card-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-case-library .case-card.is-case-reveal:not(.is-visible) {
  --case-y: 24px;
  opacity: 0;
}

.hero-case-library .case-card.is-visible {
  opacity: 1;
}

.home-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 340ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes hero-poster-pan {
  from {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }

  to {
    transform: scale(1.14) translate3d(1.5%, 1%, 0);
  }
}

@keyframes hero-case-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-case-feature-row article,
  .hero-case-feature-row article::before,
  .hero-case-feature-row article::after {
    animation: none;
  }

  .hero-case-library .case-card,
  .hero-case-library .case-card-media img,
  .hero-case-library .case-card-placeholder,
  .home-reveal {
    transition: none;
  }

  .hero-case-library .case-card,
  .home-reveal {
    opacity: 1;
  }

  .home-reveal {
    transform: none;
  }

  .hero-case-library .case-card {
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .home-page .site-header {
    grid-template-columns: auto 1fr;
    height: 74px;
  }

  .home-header + .announcement-bar {
    margin-top: 0;
  }

  .home-header .feature-entry-nav {
    display: none;
  }

  .home-header .account-bar {
    gap: 8px;
  }

  .hero-case-first {
    min-height: 1280px;
    padding-right: 22px;
    padding-bottom: 86px;
    padding-left: 22px;
  }

  .hero-case-copy {
    padding-top: 132px;
  }

  .hero-case-first .hero-logo {
    font-size: clamp(34px, 6vw, 54px);
  }

  .hero-case-first .hero-text {
    font-size: clamp(19px, 4vw, 25px);
  }

  .hero-case-first .hero-actions {
    margin-top: 44px;
  }

  .hero-case-first .primary-link {
    min-height: 62px;
    font-size: 18px;
  }

  .hero-case-first .hero-case-library {
    width: min(100%, 960px);
    margin-top: 58px;
  }

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

  .hero-case-library .case-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(220px, 24vw, 300px);
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .home-page .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-header .brand-word {
    font-size: 15px;
  }

  .home-header .brand-mark,
  .home-header .brand-mark img {
    width: 36px;
    height: 36px;
  }

  .home-header .text-button {
    display: none;
  }

  .hero-case-first {
    min-height: 1160px;
  }

  .hero-case-copy {
    padding-top: 118px;
  }

  .hero-case-first .hero-logo {
    font-size: clamp(30px, 8.4vw, 42px);
  }

  .hero-case-first .hero-text {
    max-width: 520px;
  }

  .hero-case-first .hero-actions {
    justify-content: center;
    margin-top: 36px;
  }

  .hero-case-first .primary-link,
  .hero-case-first .secondary-link {
    min-width: 0;
    min-height: 54px;
    padding: 0 24px;
  }

  .hero-benefit-pill {
    gap: 8px;
    min-height: 44px;
    margin-top: 28px;
    padding: 4px 10px 4px 12px;
  }

  .hero-benefit-icon {
    width: 24px;
    height: 24px;
  }

  .hero-benefit-model {
    width: 30px;
    height: 30px;
  }

  .hero-benefit-chatgpt {
    width: 24px;
    height: 24px;
  }

  .hero-benefit-chatgpt img {
    width: 100%;
    height: 100%;
  }

  .hero-benefit-text {
    gap: 4px;
  }

  .hero-benefit-prefix,
  .hero-benefit-suffix {
    font-size: 13px;
  }

  .hero-benefit-highlight {
    min-height: 24px;
    padding: 0 8px 1px;
    font-size: 15px;
  }

  .hero-case-feature-row {
    grid-template-columns: 1fr;
  }

  .hero-case-feature-row article:nth-of-type(n + 3) {
    display: none;
  }

  .hero-case-library .case-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(230px, 64vw, 340px);
    gap: 16px;
  }

  .hero-case-library .case-card {
    border-radius: 22px;
  }

  .hero-case-library .case-card-body {
    gap: 6px;
    padding: 58px 16px 16px;
  }

  .hero-case-library .case-card h3 {
    font-size: 18px;
    line-height: 1.2;
  }

  .hero-case-library .case-card-meta span {
    min-height: 22px;
    padding: 0 7px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .hero-benefit-pill {
    max-width: calc(100vw - 24px);
    gap: 7px;
  }

  .hero-benefit-prefix {
    font-size: 12px;
  }

  .hero-benefit-suffix {
    display: none;
  }

  .hero-benefit-highlight {
    font-size: 14px;
  }
}

.pricing-section {
  position: relative;
  padding-top: 94px;
  padding-bottom: 104px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 10%, rgba(38, 241, 255, 0.18), transparent 32%),
    radial-gradient(circle at 74% 18%, rgba(241, 230, 75, 0.12), transparent 30%),
    linear-gradient(180deg, #040608 0%, #071116 48%, #030506 100%);
  color: #f7fbff;
}

.pricing-section::before {
  content: "";
  position: absolute;
  top: 210px;
  left: 50%;
  width: min(1280px, calc(100vw - 96px));
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(58, 222, 255, 0.18), rgba(31, 105, 255, 0.1) 42%, transparent 72%);
  filter: blur(68px);
  transform: translateX(-50%);
  pointer-events: none;
}

.pricing-hero {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: 46px;
  text-align: center;
}

.pricing-hero h2 {
  margin: 0;
  max-width: 820px;
  color: #f7fbff;
  font-size: clamp(38px, 3vw, 58px);
  font-weight: 860;
  line-height: 1.12;
  text-wrap: balance;
}

.pricing-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(225, 244, 247, 0.66);
  font-size: 16px;
  line-height: 1.66;
}

.pricing-hero p strong {
  color: #86f7ff;
  font-size: 26px;
  font-weight: 840;
}

.pricing-plan-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(229, 252, 255, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(38, 241, 255, 0.2), rgba(241, 230, 75, 0.08)),
    rgba(255, 255, 255, 0.08);
  color: transparent;
}

.pricing-plan-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid rgba(231, 253, 255, 0.78);
  border-radius: 50%;
  box-shadow: 7px 7px 0 -4px #111a20, 7px 7px 0 -2px rgba(231, 253, 255, 0.78);
}

.pricing-plan-icon.is-dark {
  background:
    linear-gradient(135deg, #26f1ff, #f0e64b),
    rgba(255, 255, 255, 0.08);
}

.pricing-plan-icon.is-dark::before {
  border-color: #071014;
  box-shadow: 7px 7px 0 -4px #c5f3cf, 7px 7px 0 -2px #071014;
}

.pricing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  max-width: 1364px;
  margin: 0 auto;
}

.pricing-grid .pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 386px;
  overflow: hidden;
  border: 1px solid rgba(229, 252, 255, 0.18);
  border-radius: 20px;
  padding: 34px 24px 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(81, 232, 243, 0.06) 48%, rgba(255, 255, 255, 0.035)),
    rgba(8, 14, 19, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 72px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px) saturate(150%);
}

.pricing-grid .pricing-card.is-featured {
  border: 1px solid rgba(134, 247, 255, 0.55);
  padding: 34px 24px 30px;
  background:
    linear-gradient(145deg, rgba(38, 241, 255, 0.16), rgba(255, 255, 255, 0.1) 46%, rgba(241, 230, 75, 0.08)),
    rgba(9, 16, 22, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 32px 88px rgba(30, 203, 255, 0.18),
    0 26px 86px rgba(0, 0, 0, 0.34);
}

.pricing-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  margin-bottom: 26px;
}

.pricing-card-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 23px;
  font-weight: 820;
  line-height: 1.15;
}

.pricing-price {
  display: block;
  margin-bottom: 22px;
  color: #f7fbff;
  font-size: 39px;
  font-weight: 830;
  line-height: 1;
}

.pricing-feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(231, 248, 250, 0.74);
  font-size: 16px;
  line-height: 1.35;
}

.pricing-feature-list li {
  position: relative;
  padding-left: 23px;
}

.pricing-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(129, 246, 255, 0.58);
  font-size: 14px;
  font-weight: 780;
}

.pricing-feature-list li.is-strong {
  color: #ffffff;
  font-weight: var(--weight-semibold);
}

.pricing-feature-list li.is-strong::before {
  color: #86f7ff;
}

.pricing-bonus {
  color: #f0e64b;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.pricing-save-badge {
  position: absolute;
  top: 36px;
  right: 24px;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(240, 230, 75, 0.5);
  border-radius: 50%;
  background: rgba(240, 230, 75, 0.08);
  color: #f4ea64;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-13deg);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 5px 16px;
  border: 1px solid rgba(134, 247, 255, 0.38);
  background: linear-gradient(100deg, #26f1ff, #f0e64b);
  color: #071014;
  font-size: 12px;
  font-weight: var(--weight-bold);
  line-height: 1;
  white-space: nowrap;
}

.pricing-support-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 24px 0 0;
  border: 1px solid rgba(240, 230, 75, 0.24);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(240, 230, 75, 0.08);
  color: #f4ea64;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

.pricing-support-note::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f0e64b;
  box-shadow: 0 0 14px rgba(240, 230, 75, 0.62);
}

.home-notes-section {
  padding: 58px max(42px, calc((100vw - 1200px) / 2 + 42px)) 64px;
  background:
    linear-gradient(180deg, #030506 0%, #080d17 100%);
  color: #d9e3f4;
}

.home-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.home-notes-grid article {
  min-width: 0;
  border: 1px solid rgba(229, 252, 255, 0.12);
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(81, 232, 243, 0.035)),
    rgba(255, 255, 255, 0.03);
}

.home-notes-grid h2 {
  margin: 0 0 16px;
  color: #f5f8ff;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.2;
}

.home-notes-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-notes-grid li {
  position: relative;
  padding-left: 16px;
  color: rgba(218, 236, 240, 0.7);
  font-size: 13px;
  font-weight: var(--weight-medium);
  line-height: 1.45;
}

.home-notes-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #26f1ff;
  box-shadow: 0 0 12px rgba(38, 241, 255, 0.5);
  transform: translateY(-50%);
}

.home-powered-by {
  margin: 34px 0 0;
  color: #77859b;
  font-size: 13px;
  font-weight: var(--weight-medium);
  line-height: 1.4;
  text-align: center;
}

.home-copyright {
  margin: 8px 0 0;
  color: #647184;
  font-size: 12px;
  font-weight: var(--weight-medium);
  line-height: 1.45;
  text-align: center;
}

.home-copyright a {
  color: inherit;
  text-decoration: none;
}

.home-copyright a:hover {
  color: #d9e3f4;
}

.policy-page-main {
  min-height: 100vh;
  padding: 112px max(48px, calc((100vw - 980px) / 2 + 48px)) 78px;
  background: #fbfbfc;
}

.has-announcement .policy-page-main {
  padding-top: 48px;
}

.policy-article {
  color: var(--tone-dark);
}

.policy-article-head {
  margin-bottom: 34px;
}

.policy-article h1 {
  margin: 6px 0 14px;
  color: #050912;
  font-size: 44px;
  font-weight: 820;
  line-height: 1.08;
}

.policy-meta {
  display: grid;
  gap: 4px;
  color: #647184;
  font-size: 14px;
  font-weight: var(--weight-medium);
}

.policy-article section {
  margin-top: 36px;
}

.policy-article h2 {
  margin: 0 0 14px;
  color: #101827;
  font-size: 22px;
  font-weight: 780;
  line-height: 1.35;
}

.policy-article h3 {
  margin: 22px 0 8px;
  color: #1f2a3a;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.45;
}

.policy-article p,
.policy-article li,
.policy-contact-list {
  color: #3e4856;
  font-size: 15px;
  font-weight: var(--weight-regular);
  line-height: 1.85;
}

.policy-article p {
  margin: 0 0 12px;
}

.policy-inline-link {
  color: var(--accent);
  font-weight: var(--weight-semibold);
}

.policy-inline-link:hover {
  color: #005ea8;
}

.policy-article ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 24px;
}

.policy-contact-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.policy-contact-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
}

.policy-contact-list dt {
  color: #647184;
  font-weight: var(--weight-semibold);
}

.policy-contact-list dd {
  margin: 0;
}

@media (max-width: 1350px) {
  .case-masonry {
    column-count: 3;
  }

  .pricing-section {
    padding-left: 34px;
    padding-right: 34px;
  }

  .pricing-grid {
    gap: 20px;
  }

  .pricing-grid .pricing-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pricing-grid .pricing-card.is-featured {
    padding-left: 19px;
    padding-right: 19px;
  }

  .pricing-card-head h3 {
    font-size: 21px;
  }

  .pricing-price {
    font-size: 36px;
  }

  .pricing-feature-list {
    font-size: 15px;
  }
}

@media (max-width: 1120px) {
  .showcase-strip,
  .home-workflow-section,
  .pricing-section,
  .home-notes-section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .showcase-strip {
    padding-top: 72px;
    padding-right: 0;
    padding-left: 0;
  }

  .model-showcase-head {
    margin-bottom: 38px;
  }

  .model-ticker::before,
  .model-ticker::after {
    width: 120px;
  }

  .model-pill {
    min-height: 44px;
    padding-right: 18px;
    padding-left: 18px;
    font-size: 15px;
  }

  .home-process-steps,
  .pricing-grid,
  .home-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .showcase-strip,
  .home-workflow-section,
  .pricing-section,
  .home-notes-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .showcase-strip {
    padding-right: 0;
    padding-left: 0;
  }

  .model-showcase-head {
    margin-bottom: 30px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .model-showcase-head h2 {
    font-size: clamp(27px, 8.2vw, 36px);
  }

  .model-ticker::before,
  .model-ticker::after {
    width: 58px;
  }

  .model-ticker-row + .model-ticker-row {
    margin-top: 10px;
  }

  .model-ticker-group {
    gap: 9px;
    padding-right: 9px;
  }

  .model-pill {
    min-height: 38px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 13px;
  }

  .model-pill--icon {
    gap: 7px;
    padding-left: 12px;
  }

  .model-pill img {
    width: 21px;
    height: 21px;
  }

  .model-showcase-note {
    margin-top: 30px;
    font-size: 12px;
  }

  .home-workflow-head h2,
  .pricing-hero h2 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .home-process-steps,
  .home-tech-grid,
  .pricing-grid,
  .home-notes-grid {
    grid-template-columns: 1fr;
  }

  .home-process-steps article,
  .pricing-grid .pricing-card {
    min-height: auto;
  }
}

.detail-page-main .tabs-section {
  padding-top: 104px;
}

.has-announcement .detail-page-main .tabs-section {
  padding-top: 36px;
}

.detail-page-main .studio-layout {
  grid-template-columns: minmax(430px, 0.95fr) minmax(430px, 1fr) 300px;
  gap: 34px;
  margin-top: 0;
}

.detail-page-main .upload-panel,
.detail-page-main .result-panel,
.detail-page-main .history-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 186px);
  height: 100%;
  padding: 0;
  background: transparent;
}

.detail-page-main .result-panel .status-line,
.detail-page-main .result-panel .progress-log {
  display: none;
}

.detail-page-main .upload-panel,
.detail-page-main .result-panel {
  border-right: 1px solid rgba(26, 35, 50, 0.12);
  padding-right: 28px;
}

.detail-page-main .upload-panel .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-upload-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.12);
}

.detail-upload-summary .profile-card {
  padding-bottom: 0;
}

.detail-upload-summary .metric-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-upload-summary .metric-list div {
  display: grid;
  align-items: start;
  gap: 6px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(26, 35, 50, 0.12);
}

.detail-upload-summary .metric-list div:last-child {
  border-bottom: 0;
}

.detail-upload-summary .metric-list strong {
  font-size: 24px;
}

.history-panel .section-head {
  margin-bottom: 18px;
}

.history-panel .section-head h2 {
  font-size: 30px;
  line-height: 1.08;
}

.history-panel .history-toolbar {
  margin-bottom: 16px;
}

.history-panel .history-list {
  overflow: auto;
}

.feature-page-main {
  min-height: 100vh;
  padding: 150px max(42px, calc((100vw - 1320px) / 2 + 42px)) 72px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--tone-light) 88%, #ffffff), color-mix(in srgb, var(--accent) 10%, var(--tone-light))),
    var(--tone-light);
}

.has-announcement .feature-page-main {
  padding-top: 86px;
}

.feature-page-hero {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 222px);
  max-width: 760px;
}

.feature-page-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
}

.feature-page-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--tone-mid);
  font-size: var(--font-body-lg);
}

.feature-page-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.clone-mode-switch {
  display: grid;
  gap: 10px;
  margin: 4px 0 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.clone-mode-switch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--tone-mid);
  font-size: var(--font-caption);
  font-weight: var(--weight-bold);
}

.clone-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.clone-mode-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: color-mix(in srgb, #ffffff 68%, var(--tone-light));
  color: var(--tone-dark);
  font-size: var(--font-caption);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  text-align: center;
}

.clone-mode-option:hover {
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  color: var(--tone-dark);
}

.clone-mode-option.is-active {
  background: var(--accent);
  color: var(--tone-light);
}

.clone-mode-switch p {
  margin: 0;
  color: var(--tone-mid);
  font-size: var(--font-caption);
  line-height: 1.55;
}

.construction-page-main {
  display: grid;
  min-height: 100vh;
  padding-top: 64px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tone-dark) 38%, transparent), color-mix(in srgb, var(--tone-dark) 8%, transparent)),
    var(--construction-poster-image, url("./assets/ai-hero-poster.png")) center / cover no-repeat;
}

.has-announcement .construction-page-main {
  padding-top: 0;
}

.construction-poster {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 64px);
  max-width: none;
  overflow: hidden;
  text-align: center;
}

.construction-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -38deg,
      color-mix(in srgb, #f5b800 84%, transparent) 0 18px,
      color-mix(in srgb, var(--tone-dark) 88%, transparent) 18px 36px
    );
  clip-path: polygon(0 0, 100% 0, 100% 9%, 0 18%);
  opacity: 0.9;
  pointer-events: none;
}

.construction-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 18%;
  background:
    repeating-linear-gradient(
      -38deg,
      color-mix(in srgb, #f5b800 78%, transparent) 0 18px,
      color-mix(in srgb, var(--tone-dark) 86%, transparent) 18px 36px
    );
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.82;
  pointer-events: none;
}

.construction-poster-board {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  min-width: min(680px, calc(100vw - 160px));
  padding: 54px 72px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: color-mix(in srgb, #ffffff 88%, transparent);
  box-shadow:
    0 34px 90px color-mix(in srgb, var(--tone-dark) 38%, transparent),
    inset 0 1px 0 #ffffff;
  backdrop-filter: blur(10px) saturate(125%);
}

.construction-poster-board::before,
.construction-poster-board::after {
  content: "";
  position: absolute;
  top: -46px;
  width: 2px;
  height: 46px;
  background: color-mix(in srgb, var(--tone-dark) 42%, transparent);
}

.construction-poster-board::before {
  left: 18%;
}

.construction-poster-board::after {
  right: 18%;
}

.construction-poster .eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: var(--weight-bold);
}

.construction-poster h1 {
  margin: 0;
  color: var(--tone-dark);
  font-size: clamp(58px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
}

.construction-poster p:not(.eyebrow) {
  max-width: none;
  color: var(--tone-mid);
  font-size: 24px;
  font-weight: var(--weight-semibold);
}

.account-page-main {
  min-height: 100vh;
  padding: 118px max(56px, calc((100vw - 1160px) / 2 + 56px)) 64px;
  background: var(--tone-light);
}

.has-announcement .account-page-main {
  padding-top: 54px;
}

.account-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.account-hero h1 {
  margin: 8px 0 8px;
  font-size: 38px;
  line-height: 1.05;
}

.account-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--tone-mid);
  font-size: 16px;
}

.account-hero > span {
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
  background: #ffffff;
  color: var(--tone-mid);
  font-size: 13px;
  font-weight: var(--weight-semibold);
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.account-card {
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 16px;
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 12px 34px color-mix(in srgb, var(--tone-dark) 6%, transparent);
}

.account-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.account-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tone-dark) 6%, transparent);
  color: var(--tone-mid);
  font-size: 14px;
  font-weight: var(--weight-bold);
}

.account-card-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.account-card-head p {
  margin: 6px 0 0;
  color: var(--tone-mid);
  font-size: 14px;
}

.account-card-head strong {
  color: var(--tone-dark);
}

.account-data-list {
  display: grid;
  gap: 22px;
  margin: 0;
}

.account-profile-reset {
  width: 100%;
  margin-top: 24px;
}

.account-data-list div {
  display: grid;
  gap: 6px;
}

.account-data-list dt {
  color: var(--tone-mid);
  font-size: 13px;
}

.account-data-list dd {
  margin: 0;
  color: var(--tone-dark);
  font-size: 17px;
  word-break: break-all;
}

.recharge-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.recharge-options button {
  border: 1px solid rgba(26, 35, 50, 0.1);
  background: var(--tone-light);
  color: var(--tone-dark);
}

.account-inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.account-inline-form input,
#changePasswordDialog input {
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 10px;
  padding: 0 12px;
}

.account-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: var(--weight-medium);
}

.account-wide-card {
  grid-column: 1 / -1;
}

.credit-record-list {
  display: grid;
}

.credit-record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid rgba(26, 35, 50, 0.08);
}

.credit-record-row:first-child {
  border-top: 0;
}

.credit-record-row strong {
  display: block;
  font-size: 15px;
}

.credit-record-row small {
  color: var(--tone-mid);
  font-size: 13px;
}

.credit-record-row span {
  font-size: 16px;
  font-weight: var(--weight-bold);
}

.credit-record-row .is-positive {
  color: var(--accent);
}

.credit-record-row .is-negative {
  color: #d81b60;
}

.credit-record-empty {
  padding: 24px 0;
  color: var(--tone-mid);
}

.prompt-reverse-main {
  min-height: 100vh;
  padding: 92px max(18px, calc((100vw - 1480px) / 2 + 18px)) 28px;
  background: var(--tone-light);
  color: var(--tone-dark);
}

.has-announcement .prompt-reverse-main {
  padding-top: 36px;
}

.reverse-shell {
  display: grid;
  gap: 24px;
}

.reverse-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 10px;
  background: #ffffff;
}

.reverse-tabs button {
  min-height: 36px;
  border-radius: 7px;
  padding: 0 16px;
  background: transparent;
  color: var(--tone-mid);
}

.reverse-tabs button.active {
  background: var(--accent);
  color: var(--tone-light);
}

.reverse-tabs button:disabled {
  opacity: 0.82;
}

.reverse-workbench {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(460px, 1.1fr) minmax(410px, 1fr);
  gap: 24px;
  min-height: calc(100vh - 182px);
}

.reverse-card {
  overflow: hidden;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 12px;
  background: #ffffff;
}

.reverse-config-card,
.reverse-result-card,
.reverse-library-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.reverse-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.1);
}

.reverse-card-head h2 {
  margin: 0;
  color: var(--tone-dark);
  font-size: 14px;
  font-weight: var(--weight-semibold);
}

.reverse-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reverse-head-actions button,
.reverse-ghost-button,
.reverse-primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 11px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: var(--weight-semibold);
}

.reverse-ghost-button {
  background: color-mix(in srgb, var(--tone-dark) 5%, transparent);
  color: var(--tone-mid);
}

.reverse-primary-pill {
  background: var(--accent);
  color: var(--tone-light);
  cursor: pointer;
}

.reverse-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  margin: 28px 16px 18px;
  overflow: hidden;
  border: 1px dashed rgba(0, 120, 212, 0.34);
  border-radius: 14px;
  color: var(--tone-mid);
  text-align: center;
  cursor: pointer;
}

.reverse-demo-switch,
.reverse-dify-config-panel {
  margin: 16px;
}

.reverse-dify-config-panel {
  grid-template-columns: 1fr;
  padding: 0 0 16px;
}

.reverse-dropzone input {
  display: none;
}

.admin-page {
  min-height: calc(100vh - 76px);
  padding: 46px max(28px, calc((100vw - 1180px) / 2 + 28px)) 64px;
  background: color-mix(in srgb, var(--tone-light) 94%, var(--tone-mid));
}

.admin-login-panel,
.admin-panel {
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 12px;
  background: var(--tone-light);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--tone-dark) 7%, transparent);
}

.admin-login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: center;
  max-width: 980px;
  margin: 52px auto 0;
  padding: 42px;
}

.admin-login-panel h1,
.admin-title-row h1 {
  margin: 6px 0 10px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
}

.admin-login-panel p,
.admin-panel-head p {
  color: var(--tone-muted);
}

.admin-login-form,
.admin-settings-form {
  display: grid;
  gap: 16px;
}

.admin-login-form input,
.admin-settings-form input,
.admin-settings-form select,
.admin-settings-form textarea,
.admin-search input,
.admin-account-create-form input,
.admin-user-actions input,
.admin-risk-policy-form input,
.admin-risk-policy-form select,
.admin-risk-message-form input,
.admin-risk-message-form select,
.admin-risk-message-form textarea,
.admin-risk-controls input,
.admin-risk-controls select {
  min-height: 44px;
  border: 1px solid rgba(26, 35, 50, 0.14);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--tone-light);
}

.admin-settings-form textarea,
.admin-risk-message-form textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.admin-message {
  min-height: 20px;
  color: var(--accent);
  font-weight: var(--weight-semibold);
}

.admin-config-status {
  display: grid;
  gap: 10px;
}

.admin-config-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--tone-light);
}

.admin-config-row strong {
  color: var(--tone-dark);
}

.admin-config-row span {
  color: var(--tone-muted);
  font-weight: var(--weight-semibold);
}

.admin-config-row.is-ready span {
  color: var(--accent);
}

.admin-shell {
  display: grid;
  gap: 24px;
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 12px;
  min-width: min(460px, 100%);
}

.admin-summary-grid article {
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 10px;
  padding: 16px;
  background: var(--tone-light);
}

.admin-summary-grid span {
  display: block;
  color: var(--tone-muted);
  font-size: 13px;
}

.admin-summary-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.admin-panel {
  padding: 24px;
}

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

.admin-panel-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.admin-search {
  min-width: 260px;
}

.admin-account-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr) minmax(280px, 1.1fr);
  gap: 14px;
  margin: 0 0 18px;
}

.admin-risk-summary-grid {
  width: 100%;
  margin-bottom: 18px;
}

.admin-risk-layout {
  display: grid;
  gap: 14px;
}

.admin-risk-section {
  border: 1px solid rgba(26, 35, 50, 0.09);
  border-radius: 10px;
  background: color-mix(in srgb, var(--tone-light) 97%, var(--tone-mid));
}

.admin-risk-section summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--tone-dark);
  font-weight: var(--weight-semibold);
}

.admin-risk-policy-form,
.admin-risk-message-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.admin-risk-message-form label:nth-of-type(3) {
  grid-column: span 2;
}

.admin-risk-policy-form label,
.admin-risk-message-form label {
  display: grid;
  gap: 7px;
}

.admin-risk-policy-form label span,
.admin-risk-message-form label span {
  color: var(--tone-muted);
  font-size: 13px;
  font-weight: var(--weight-semibold);
}

.admin-risk-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.admin-risk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(26, 35, 50, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: var(--tone-light);
}

.admin-risk-main strong,
.admin-risk-main small {
  display: block;
}

.admin-risk-main small {
  margin-top: 5px;
  color: var(--tone-muted);
}

.admin-risk-main pre {
  max-height: 180px;
  overflow: auto;
  margin: 8px 0 0;
  border: 1px solid rgba(26, 35, 50, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: color-mix(in srgb, var(--tone-light) 94%, var(--tone-mid));
  white-space: pre-wrap;
}

.admin-risk-actions,
.admin-risk-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-account-column {
  min-width: 0;
  border: 1px solid rgba(26, 35, 50, 0.09);
  border-radius: 10px;
  padding: 14px;
  background: color-mix(in srgb, var(--tone-light) 97%, var(--tone-mid));
}

.admin-account-column-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.admin-account-column-head h3 {
  margin: 0;
  font-size: 16px;
}

.admin-account-column-head span {
  color: var(--tone-muted);
  font-weight: var(--weight-semibold);
}

.admin-account-selected {
  margin: 0 0 10px;
  color: var(--tone-muted);
  font-size: 13px;
}

.admin-account-list {
  display: grid;
  gap: 8px;
}

.admin-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(26, 35, 50, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: var(--tone-light);
  color: var(--tone-dark);
  font: inherit;
  text-align: left;
}

.admin-announcement-list {
  display: grid;
  gap: 10px;
  margin: 0 18px 18px;
}

.admin-announcement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(26, 35, 50, 0.09);
  border-radius: 10px;
  padding: 12px;
  background: color-mix(in srgb, var(--tone-light) 98%, var(--tone-mid));
}

.admin-announcement-main {
  min-width: 0;
}

.admin-announcement-main strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--tone-dark);
  font-size: 14px;
}

.admin-announcement-main small {
  display: block;
  margin-top: 5px;
  color: var(--tone-muted);
  font-size: 12px;
}

.admin-announcement-form {
  padding: 0 18px 18px;
}

.admin-case-list {
  display: grid;
  gap: 10px;
}

.admin-case-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(26, 35, 50, 0.09);
  border-radius: 10px;
  padding: 12px;
  background: color-mix(in srgb, var(--tone-light) 98%, var(--tone-mid));
}

.admin-case-row.is-disabled {
  opacity: 0.62;
}

.admin-case-thumb {
  width: 92px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(26, 35, 50, 0.08);
  color: var(--tone-muted);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.admin-case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-case-main {
  min-width: 0;
}

.admin-case-main strong,
.admin-case-main small {
  display: block;
}

.admin-case-main strong {
  overflow-wrap: anywhere;
  color: var(--tone-dark);
  font-size: 14px;
}

.admin-case-main small {
  margin-top: 5px;
  color: var(--tone-muted);
  font-size: 12px;
}

.admin-case-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 360px;
}

.admin-api-form {
  gap: 18px;
}

.admin-api-route-list,
.admin-api-route-model-list {
  display: grid;
  gap: 14px;
}

.admin-api-route-card,
.admin-api-model-row {
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 10px;
  background: color-mix(in srgb, var(--tone-light) 97%, var(--tone-mid));
}

.admin-api-route-card {
  padding: 16px;
}

.admin-api-route-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 10px;
}

.admin-api-route-head h3 {
  margin: 0 0 5px;
}

.admin-api-route-head small,
.admin-api-route-meta,
.admin-api-route-description,
.admin-api-model-summary small,
.admin-modal-head p,
.admin-api-modal-section p {
  color: var(--tone-muted);
}

.admin-api-route-head small,
.admin-api-model-summary small {
  overflow-wrap: anywhere;
}

.admin-api-route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  font-weight: var(--weight-semibold);
}

.admin-api-route-description {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.admin-api-model-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--tone-light);
}

.admin-api-model-summary {
  min-width: 0;
}

.admin-api-model-summary strong,
.admin-api-model-summary small {
  display: block;
}

.admin-api-model-summary small {
  margin-top: 4px;
  font-size: 12px;
}

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

.admin-api-grid .wide-field {
  grid-column: span 2;
}

.admin-api-grid label {
  min-width: 0;
}

.admin-settings-form select,
.admin-api-grid select {
  min-height: 44px;
  border: 1px solid rgba(26, 35, 50, 0.14);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--tone-light);
  color: var(--tone-dark);
}

.admin-api-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 12px 0;
}

.admin-api-checkbox-row label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--tone-muted);
  font-size: 13px;
  font-weight: var(--weight-semibold);
}

.admin-api-checkbox-row input {
  width: 16px;
  height: 16px;
}

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

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-modal-nested {
  z-index: 90;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.48);
}

.admin-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(26, 35, 50, 0.14);
  border-radius: 12px;
  padding: 24px;
  background: var(--tone-light);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.admin-api-model-modal {
  width: min(1180px, 100%);
}

.admin-modal-head,
.admin-api-modal-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-modal-head h2,
.admin-api-modal-section h3 {
  margin: 0 0 6px;
}

.admin-api-modal-section {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 35, 50, 0.09);
}

.admin-modal-open {
  overflow: hidden;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-account-row.is-clickable {
  cursor: pointer;
}

.admin-account-row.is-selected {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.admin-account-main {
  min-width: 0;
}

.admin-account-main strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.admin-account-main small {
  display: block;
  margin-top: 4px;
  color: var(--tone-muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-account-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.admin-account-empty {
  border: 1px dashed rgba(26, 35, 50, 0.16);
  border-radius: 8px;
  padding: 18px 12px;
  color: var(--tone-muted);
  font-size: 13px;
  text-align: center;
}

.admin-account-create-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 35, 50, 0.09);
}

.admin-account-create-form label {
  display: grid;
  gap: 6px;
}

.admin-account-create-form label span {
  color: var(--tone-muted);
  font-size: 13px;
  font-weight: var(--weight-semibold);
}

.admin-account-create-form .admin-message,
.admin-account-column .admin-message {
  margin: 0;
}

.admin-user-detail-panel {
  margin-top: 12px;
}

.admin-user-detail-panel summary {
  cursor: pointer;
  color: var(--tone-dark);
  font-weight: var(--weight-semibold);
  margin-bottom: 12px;
}

.admin-user-list,
.admin-record-list {
  display: grid;
  gap: 12px;
}

.admin-user-card,
.admin-record-row {
  border: 1px solid rgba(26, 35, 50, 0.09);
  border-radius: 10px;
  padding: 16px;
  background: color-mix(in srgb, var(--tone-light) 96%, var(--tone-mid));
}

.admin-user-card.is-child-user {
  background: color-mix(in srgb, var(--accent) 5%, var(--tone-light));
}

.admin-user-main,
.admin-record-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.admin-user-main strong,
.admin-record-row strong {
  display: block;
  font-size: 16px;
}

.admin-user-main small,
.admin-record-row small {
  display: block;
  margin-top: 5px;
  color: var(--tone-muted);
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: var(--weight-semibold);
}

.admin-status.is-active {
  background: color-mix(in srgb, #14b86f 12%, var(--tone-light));
  color: #0f7b4d;
}

.admin-status.is-pending {
  background: color-mix(in srgb, #f4a62a 15%, var(--tone-light));
  color: #8a5a08;
}

.admin-status.is-expired {
  background: color-mix(in srgb, #d61f45 11%, var(--tone-light));
  color: #a31333;
}

.admin-user-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.admin-user-actions label,
.admin-settings-form label,
.admin-search {
  display: grid;
  gap: 7px;
}

.admin-user-actions label span,
.admin-settings-form label span,
.admin-search span {
  color: var(--tone-muted);
  font-size: 13px;
  font-weight: var(--weight-semibold);
}

.danger-text {
  color: #d61f45;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.admin-record-row .is-positive {
  color: #0f7b4d;
}

.admin-record-row .is-negative {
  color: #d61f45;
}

.admin-empty {
  border: 1px dashed rgba(26, 35, 50, 0.18);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  color: var(--tone-muted);
}

@media (max-width: 900px) {
  .case-library-head {
    grid-template-columns: 1fr;
  }

  .case-library-stats {
    justify-items: start;
  }

  .case-masonry {
    column-count: 2;
  }

  .admin-login-panel,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-title-row,
  .admin-panel-head,
  .admin-api-route-head,
  .admin-api-model-row,
  .admin-modal-head,
  .admin-api-modal-section-head,
  .admin-user-main,
  .admin-record-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-summary-grid,
  .admin-search {
    width: 100%;
    min-width: 0;
  }

  .admin-account-board,
  .admin-account-create-form,
  .admin-user-actions,
  .admin-risk-policy-form,
  .admin-risk-message-form,
  .admin-risk-row,
  .admin-api-grid,
  .admin-case-row {
    grid-template-columns: 1fr;
  }

  .admin-risk-actions,
  .admin-risk-controls {
    justify-content: flex-start;
  }

  .admin-case-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .admin-api-grid .wide-field {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .case-masonry {
    column-count: 1;
  }

  .case-share-dialog-content {
    padding: 28px 20px 22px;
  }

  .case-share-actions {
    flex-direction: column-reverse;
  }
}

.reverse-dropzone strong {
  color: var(--tone-dark);
  font-size: 15px;
}

.reverse-dropzone small {
  max-width: 260px;
  font-size: 13px;
  line-height: 1.55;
}

.reverse-upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 30px;
  font-weight: var(--weight-bold);
  line-height: 1;
}

.reverse-dropzone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reverse-dropzone.has-file::after,
.reverse-dropzone.is-dragging::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--tone-light) 68%, transparent);
}

.reverse-dropzone.has-file strong,
.reverse-dropzone.has-file small,
.reverse-dropzone.has-file .reverse-upload-icon,
.reverse-dropzone.is-dragging strong,
.reverse-dropzone.is-dragging small,
.reverse-dropzone.is-dragging .reverse-upload-icon {
  position: relative;
  z-index: 1;
}

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

.reverse-field-grid label,
.reverse-library-filters label {
  color: var(--tone-mid);
}

.reverse-field-grid select,
.reverse-library-filters input,
.reverse-library-filters select {
  min-height: 42px;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 11px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--tone-dark);
}

.reverse-run-button {
  margin: 18px 16px 0;
  min-height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--tone-light);
}

.reverse-result-card {
  min-width: 0;
  position: relative;
}

.reverse-textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 20px 16px;
  background: transparent;
  color: var(--tone-dark);
  font-size: 15px;
  line-height: 1.7;
  resize: none;
}

.reverse-textarea::placeholder {
  color: var(--tone-mid);
}

.reverse-textarea:focus {
  border-color: transparent;
}

.reverse-result-textarea {
  flex: 1;
  min-height: 520px;
}

.reverse-result-card.is-loading .reverse-result-textarea {
  color: transparent;
}

.reverse-result-card.is-loading::after {
  content: "正在反推提示词";
  position: absolute;
  inset: 56px 0 0;
  display: grid;
  place-items: center;
  padding-top: 92px;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.88);
  color: var(--tone-dark);
  font-size: 18px;
  font-weight: var(--weight-semibold);
  pointer-events: none;
}

.reverse-result-card.is-loading::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(50% - 58px);
  left: calc(50% - 27px);
  width: 54px;
  height: 54px;
  border: 4px solid rgba(0, 120, 212, 0.18);
  border-top-color: var(--accent);
  border-radius: 999px;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 18%, transparent);
  animation: generation-spin 0.9s linear infinite;
  pointer-events: none;
}

.reverse-result-card.is-error::after {
  content: attr(data-error-message);
  position: absolute;
  left: 18px;
  right: 18px;
  top: 78px;
  z-index: 2;
  min-height: 146px;
  padding: 48px 24px 24px;
  border: 1px solid rgba(210, 55, 55, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 18%, rgba(210, 55, 55, 0.13), transparent 36%),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 60px rgba(18, 35, 55, 0.12);
  backdrop-filter: blur(18px) saturate(1.18);
  color: var(--tone-dark);
  font-size: 14px;
  font-weight: var(--weight-medium);
  line-height: 1.65;
  overflow-wrap: anywhere;
  pointer-events: none;
  white-space: pre-wrap;
}

.reverse-result-card.is-error::before {
  content: "!";
  position: absolute;
  top: 100px;
  left: 42px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(210, 55, 55, 0.14);
  color: #b3261e;
  font-size: 20px;
  font-weight: var(--weight-semibold);
  pointer-events: none;
}

.reverse-library-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.1);
}

.reverse-library-list {
  display: grid;
  align-content: start;
  gap: 12px;
  flex: 1;
  padding: 16px;
  overflow: auto;
}

.reverse-empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 160px;
  border: 1px dashed rgba(26, 35, 50, 0.16);
  border-radius: 14px;
  color: var(--tone-mid);
  text-align: center;
}

.reverse-empty-state span {
  color: color-mix(in srgb, var(--tone-mid) 64%, transparent);
  font-size: 34px;
}

.reverse-empty-state strong {
  font-size: 14px;
  font-weight: var(--weight-medium);
}

.reverse-library-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 12px;
  background: var(--tone-light);
}

.reverse-library-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reverse-library-item strong {
  color: var(--tone-dark);
  font-size: 13px;
}

.reverse-library-title {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--tone-dark);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  text-align: left;
  cursor: pointer;
}

.reverse-library-title:hover {
  color: var(--accent);
}

.reverse-library-item small,
.reverse-library-item span,
.reverse-library-item p {
  margin: 0;
  color: var(--tone-mid);
  font-size: 12px;
}

.reverse-library-item p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.reverse-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reverse-copy-prompt,
.reverse-classify-prompt,
.reverse-delete-prompt {
  justify-self: start;
  min-height: 32px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 13px;
}

.reverse-classify-prompt {
  background: color-mix(in srgb, var(--tone-dark) 5%, transparent);
  color: var(--tone-mid);
}

.reverse-delete-prompt {
  background: transparent;
  color: #d61f45;
}

.reverse-library-foot {
  padding: 10px 16px;
  border-top: 1px solid rgba(26, 35, 50, 0.1);
  color: var(--tone-mid);
  font-size: 12px;
}

.reverse-save-dialog {
  width: min(440px, calc(100vw - 32px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #ffffff;
  color: var(--tone-dark);
  box-shadow: 0 26px 70px color-mix(in srgb, var(--tone-dark) 24%, transparent);
}

.reverse-save-dialog::backdrop {
  background: color-mix(in srgb, var(--tone-dark) 38%, transparent);
}

.reverse-save-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.reverse-save-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.reverse-save-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.reverse-save-head .close-button {
  position: static;
}

.reverse-save-form input {
  border: 1px solid rgba(26, 35, 50, 0.14);
  border-radius: 10px;
  padding: 0 12px;
}

.reverse-save-form select,
.reverse-dialog-textarea {
  border: 1px solid rgba(26, 35, 50, 0.14);
  border-radius: 10px;
  padding: 0 12px;
}

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

.reverse-dialog-textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.reverse-save-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.reverse-category-list {
  display: grid;
  gap: 10px;
}

.reverse-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 10px;
  background: var(--tone-light);
}

.reverse-category-item strong {
  font-size: 14px;
}

.reverse-category-item button {
  min-height: 32px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--tone-dark) 6%, transparent);
  color: var(--tone-mid);
}

.auth-dialog {
  width: min(420px, calc(100% - 32px));
  border: 0;
  padding: 0;
  background: var(--tone-light);
}

.auth-dialog::backdrop {
  background: color-mix(in srgb, var(--tone-dark) 28%, transparent);
}

.case-share-dialog {
  width: min(520px, calc(100% - 32px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #ffffff;
  color: var(--tone-dark);
  box-shadow: 0 24px 80px rgba(26, 35, 50, 0.22);
}

.case-share-dialog::backdrop {
  background: color-mix(in srgb, var(--tone-dark) 36%, transparent);
  backdrop-filter: blur(8px);
}

.case-share-dialog-content {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 34px;
}

.case-share-dialog .close-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.case-share-dialog h2 {
  max-width: 390px;
  color: #05070c;
  font-size: 26px;
  font-weight: 820;
  line-height: 1.18;
}

.case-share-reward {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--tone-dark);
  color: var(--tone-light);
}

.case-share-reward span {
  font-size: 34px;
  font-weight: 860;
  line-height: 0.95;
}

.case-share-reward small {
  font-size: 14px;
  font-weight: var(--weight-semibold);
}

.case-share-copy,
.case-share-message {
  margin: 0;
  color: var(--tone-mid);
  font-size: 14px;
  line-height: 1.65;
}

.case-share-message {
  min-height: 22px;
  color: var(--accent);
  font-weight: var(--weight-semibold);
}

.case-share-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.preview-open {
  overflow: hidden;
}

.image-preview-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 32px;
  background: color-mix(in srgb, var(--tone-dark) 58%, transparent);
}

.image-preview-layer[hidden] {
  display: none;
}

.image-preview-content {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  max-width: min(1180px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  padding: 0;
  background: transparent;
}

.image-preview-close {
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 64px;
  min-height: 64px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, #ffffff 0 18%, #eef7ff 38%, #c8d8e7 58%),
    linear-gradient(145deg, #ffffff 0%, #dce9f5 52%, #aebfcd 100%);
  backdrop-filter: blur(22px) saturate(180%);
  color: var(--tone-dark);
  font-size: 38px;
  font-weight: var(--weight-bold);
  transform: translateY(-2px);
  box-shadow:
    0 22px 50px color-mix(in srgb, var(--tone-dark) 48%, transparent),
    0 7px 14px color-mix(in srgb, var(--tone-dark) 26%, transparent),
    inset 0 2px 4px #ffffff,
    inset 0 -12px 20px rgba(52, 76, 96, 0.26);
  text-shadow: 0 1px 0 #ffffff;
}

.image-preview-content img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
}

.image-preview-meta {
  color: var(--tone-light);
  text-align: center;
  font-size: var(--font-label);
  font-weight: var(--weight-semibold);
}

.auth-content {
  display: grid;
  gap: 14px;
  padding: 30px;
}

.global-auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: var(--weight-medium);
}

.global-auth-note {
  margin: 0;
  color: var(--tone-mid);
  font-size: 13px;
  font-weight: var(--weight-medium);
}

.auth-agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tone-mid);
  font-size: 13px;
  font-weight: var(--weight-medium);
  line-height: 1.55;
}

.auth-agreement input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.auth-agreement span {
  min-width: 0;
}

.auth-agreement a {
  color: var(--tone-dark);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.auth-agreement a:hover {
  color: var(--accent);
}

.primary-button.auth-submit-blocked,
.primary-button.auth-submit-blocked:hover {
  background: color-mix(in srgb, var(--accent) 44%, #ffffff);
  color: #ffffff;
  cursor: not-allowed;
}

.global-auth-contact {
  display: inline-grid;
  justify-items: center;
  gap: 7px;
  width: fit-content;
}

.auth-activation-note {
  display: inline-grid;
  justify-items: center;
  gap: 7px;
}

.auth-activation-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-activation-main svg {
  display: block;
  width: 22px;
  height: 19px;
}

.auth-activation-main .wechat-bubble {
  fill: var(--tone-light);
}

.auth-activation-main svg circle {
  fill: currentColor;
}

.auth-activation-note strong {
  color: inherit;
  font-weight: var(--weight-medium);
}

.auth-activation-note small {
  color: inherit;
  font-size: 12px;
  font-weight: var(--weight-medium);
  line-height: 1.18;
  text-align: center;
  transform: translateX(6px);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  width: 36px;
  padding: 0;
  background: transparent;
  color: var(--tone-dark);
  font-size: 20px;
}

.image-preview-layer .image-preview-close {
  top: 18px;
  right: 18px;
  width: 64px;
  min-height: 64px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--tone-dark);
  font-size: 38px;
  font-weight: var(--weight-bold);
  text-shadow:
    0 1px 0 #ffffff,
    0 2px 12px color-mix(in srgb, var(--tone-light) 80%, transparent);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.image-preview-layer .image-preview-close:hover,
.image-preview-layer .image-preview-close:focus-visible {
  border-color: #ffffff;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.25) 0 18%, rgba(238, 247, 255, 0.25) 38%, rgba(200, 216, 231, 0.25) 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.25) 0%, rgba(220, 233, 245, 0.25) 52%, rgba(174, 191, 205, 0.25) 100%);
  box-shadow:
    0 22px 50px color-mix(in srgb, var(--tone-dark) 48%, transparent),
    0 7px 14px color-mix(in srgb, var(--tone-dark) 26%, transparent),
    inset 0 2px 4px #ffffff,
    inset 0 -12px 20px rgba(52, 76, 96, 0.26);
  transform: translateY(-2px);
}

body.imini-page:not(.home-page) {
  background:
    radial-gradient(circle at 50% -18%, rgba(72, 91, 255, 0.11), rgba(72, 91, 255, 0) 30%),
    radial-gradient(circle at 92% 0%, rgba(31, 207, 255, 0.08), rgba(31, 207, 255, 0) 26%),
    linear-gradient(180deg, #0b0b0d 0%, #070708 42%, #000000 100%);
  color: #f7fbff;
}

body.imini-page:not(.home-page)::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 82%, rgba(0, 0, 0, 0.88)),
    radial-gradient(ellipse at center 2%, rgba(68, 80, 150, 0.1), rgba(0, 0, 0, 0) 46%);
  content: "";
  pointer-events: none;
}

body.imini-page:not(.home-page) .site-header:not(.admin-header) {
  position: fixed;
  top: 0;
  z-index: 40;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 10, 0.88);
  color: #f7fbff;
  backdrop-filter: blur(18px) saturate(112%);
}

body.imini-page:not(.home-page) .brand-word,
body.imini-page:not(.home-page) .nav-links a,
body.imini-page:not(.home-page) .text-button {
  color: rgba(247, 251, 255, 0.78);
}

body.imini-page:not(.home-page) .nav-links a:hover,
body.imini-page:not(.home-page) .nav-links a.active {
  color: #ffffff;
}

body.imini-page:not(.home-page) .announcement-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 10, 0.9);
  color: rgba(247, 251, 255, 0.82);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

body.imini-page:not(.home-page) .announcement-label {
  color: #26f1ff;
}

body.imini-page:not(.home-page) .announcement-item,
body.imini-page:not(.home-page) .announcement-time {
  color: rgba(247, 251, 255, 0.7);
}

body.imini-page:not(.home-page) a.announcement-item:hover {
  color: #ffffff;
}

body.imini-page:not(.home-page) .dark-button,
body.imini-page:not(.home-page) .primary-button,
body.imini-page:not(.home-page) .primary-link,
body.imini-page:not(.home-page) .reverse-run-button,
body.imini-page:not(.home-page) .reverse-primary-pill {
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#07080c, #07080c) padding-box,
    linear-gradient(105deg, #26f1ff 0%, #6d6bff 100%) border-box;
  color: #ffffff;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.26),
    0 0 22px rgba(67, 93, 255, 0.16);
}

body.imini-page:not(.home-page) .dark-button:hover,
body.imini-page:not(.home-page) .primary-button:hover:not(:disabled),
body.imini-page:not(.home-page) .primary-link:hover,
body.imini-page:not(.home-page) .reverse-run-button:hover,
body.imini-page:not(.home-page) .reverse-primary-pill:hover {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(105deg, #26f1ff 0%, #6d6bff 100%) border-box;
  color: #05070c;
}

body.imini-page:not(.home-page) .secondary-button,
body.imini-page:not(.home-page) .secondary-link,
body.imini-page:not(.home-page) .reverse-head-actions button,
body.imini-page:not(.home-page) .reverse-ghost-button {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 251, 255, 0.84);
  backdrop-filter: blur(12px) saturate(130%);
}

body.imini-page:not(.home-page) .secondary-button:hover,
body.imini-page:not(.home-page) .secondary-link:hover,
body.imini-page:not(.home-page) .reverse-head-actions button:hover,
body.imini-page:not(.home-page) .reverse-ghost-button:hover {
  border-color: rgba(38, 241, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.imini-page:not(.home-page) .detail-page-main .tabs-section,
body.imini-page:not(.home-page) .prompt-reverse-main,
body.imini-page:not(.home-page) .feature-page-main,
body.imini-page:not(.home-page) .account-page-main,
body.imini-page:not(.home-page) .policy-page-main {
  background: transparent;
}

body.imini-page:not(.home-page) .detail-page-main .tabs-section {
  padding-top: 112px;
  padding-bottom: 72px;
}

body.imini-page:not(.home-page) .prompt-reverse-main,
body.imini-page:not(.home-page) .feature-page-main,
body.imini-page:not(.home-page) .account-page-main,
body.imini-page:not(.home-page) .policy-page-main {
  padding-top: 126px;
}

body.has-announcement.imini-page:not(.home-page) .detail-page-main .tabs-section {
  padding-top: 42px;
}

body.has-announcement.imini-page:not(.home-page) .prompt-reverse-main,
body.has-announcement.imini-page:not(.home-page) .feature-page-main,
body.has-announcement.imini-page:not(.home-page) .account-page-main,
body.has-announcement.imini-page:not(.home-page) .policy-page-main {
  padding-top: 48px;
}

body.imini-page:not(.home-page) .studio-layout,
body.imini-page:not(.home-page) .reverse-workbench,
body.imini-page:not(.home-page) .account-grid {
  gap: 22px;
}

body.imini-page:not(.home-page) .creator-panel,
body.imini-page:not(.home-page) .result-panel,
body.imini-page:not(.home-page) .history-panel,
body.imini-page:not(.home-page) .reverse-card,
body.imini-page:not(.home-page) .account-card,
body.imini-page:not(.home-page) .policy-article,
body.imini-page:not(.home-page) .construction-poster-board,
body.imini-page:not(.home-page) .model-selector-shell,
body.imini-page:not(.home-page) .mask-editor-shell,
body.imini-page:not(.home-page) .auth-dialog,
body.imini-page:not(.home-page) .case-share-dialog,
body.imini-page:not(.home-page) .reverse-save-dialog {
  border: 1px solid rgba(229, 252, 255, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(18, 18, 22, 0.88);
  color: #f7fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 58px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(110%);
}

body.imini-page:not(.home-page) .detail-page-main .upload-panel,
body.imini-page:not(.home-page) .detail-page-main .result-panel,
body.imini-page:not(.home-page) .detail-page-main .history-panel {
  min-height: calc(100vh - 206px);
  padding: 24px;
}

body.imini-page:not(.home-page) .detail-page-main .upload-panel,
body.imini-page:not(.home-page) .detail-page-main .result-panel {
  border-right: 1px solid rgba(229, 252, 255, 0.16);
}

body.imini-page:not(.home-page) .panel-title h3,
body.imini-page:not(.home-page) .section-head h2,
body.imini-page:not(.home-page) .reverse-card-head h2,
body.imini-page:not(.home-page) .account-card-head h2,
body.imini-page:not(.home-page) .feature-page-hero h1,
body.imini-page:not(.home-page) .account-hero h1,
body.imini-page:not(.home-page) .policy-article h1,
body.imini-page:not(.home-page) .policy-article h2,
body.imini-page:not(.home-page) .policy-article h3 {
  color: #ffffff;
}

body.imini-page:not(.home-page) .eyebrow,
body.imini-page:not(.home-page) label,
body.imini-page:not(.home-page) .metric-list span,
body.imini-page:not(.home-page) .policy-meta,
body.imini-page:not(.home-page) .account-hero p:not(.eyebrow),
body.imini-page:not(.home-page) .account-card-head p,
body.imini-page:not(.home-page) .account-data-list dt,
body.imini-page:not(.home-page) .feature-page-hero p:not(.eyebrow),
body.imini-page:not(.home-page) .reverse-field-grid label,
body.imini-page:not(.home-page) .reverse-library-filters label {
  color: rgba(226, 244, 247, 0.68);
}

body.imini-page:not(.home-page) input,
body.imini-page:not(.home-page) select,
body.imini-page:not(.home-page) textarea,
body.imini-page:not(.home-page) .model-selector-button,
body.imini-page:not(.home-page) .reverse-field-grid select,
body.imini-page:not(.home-page) .reverse-library-filters input,
body.imini-page:not(.home-page) .reverse-library-filters select,
body.imini-page:not(.home-page) .account-inline-form input,
body.imini-page:not(.home-page) #changePasswordDialog input,
body.imini-page:not(.home-page) .reverse-save-form input,
body.imini-page:not(.home-page) .reverse-save-form select,
body.imini-page:not(.home-page) .reverse-dialog-textarea {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding-right: 13px;
  padding-left: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.imini-page:not(.home-page) .model-selector-button {
  gap: 2px;
  min-height: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  padding: 7px 13px 8px;
  text-align: left;
}

body.imini-page:not(.home-page) .model-selector-button span,
body.imini-page:not(.home-page) .model-selector-row > span,
body.imini-page:not(.home-page) .model-selector-model-head > span,
body.imini-page:not(.home-page) .model-selector-current {
  color: rgba(226, 244, 247, 0.68);
}

body.imini-page:not(.home-page) .model-selector-button strong,
body.imini-page:not(.home-page) .model-selector-head h2,
body.imini-page:not(.home-page) .model-card-title {
  color: #ffffff;
}

body.imini-page:not(.home-page) textarea,
body.imini-page:not(.home-page) .reverse-dialog-textarea {
  padding-top: 12px;
  padding-bottom: 12px;
}

body.imini-page:not(.home-page) input:focus,
body.imini-page:not(.home-page) select:focus,
body.imini-page:not(.home-page) textarea:focus,
body.imini-page:not(.home-page) .model-selector-button:focus-visible,
body.imini-page:not(.home-page) .model-selector-button:hover {
  border-color: rgba(38, 241, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(38, 241, 255, 0.12);
}

body.imini-page:not(.home-page) input::placeholder,
body.imini-page:not(.home-page) textarea::placeholder,
body.imini-page:not(.home-page) .reverse-textarea::placeholder {
  color: rgba(226, 244, 247, 0.36);
}

body.imini-page:not(.home-page) option {
  background: #111114;
  color: #ffffff;
}

body.imini-page:not(.home-page) .detail-upload-summary,
body.imini-page:not(.home-page) .upload-box,
body.imini-page:not(.home-page) .model-selector-head,
body.imini-page:not(.home-page) .model-selector-foot,
body.imini-page:not(.home-page) .reverse-card-head,
body.imini-page:not(.home-page) .reverse-library-filters,
body.imini-page:not(.home-page) .reverse-library-foot,
body.imini-page:not(.home-page) .status-line,
body.imini-page:not(.home-page) .log-line {
  border-color: rgba(255, 255, 255, 0.12);
}

body.imini-page:not(.home-page) .metric-list div,
body.imini-page:not(.home-page) .detail-upload-summary .metric-list div,
body.imini-page:not(.home-page) .account-hero > span {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.05);
}

body.imini-page:not(.home-page) .metric-list div:last-child,
body.imini-page:not(.home-page) .detail-upload-summary .metric-list div:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

body.imini-page:not(.home-page) .metric-list strong,
body.imini-page:not(.home-page) .account-data-list dd,
body.imini-page:not(.home-page) .account-card-head strong {
  color: #ffffff;
}

body.imini-page:not(.home-page) .upload-box label strong {
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#07080c, #07080c) padding-box,
    linear-gradient(105deg, #26f1ff 0%, #6d6bff 100%) border-box;
  color: #ffffff;
}

body.imini-page:not(.home-page) .file-chip img,
body.imini-page:not(.home-page) .image-card-loading,
body.imini-page:not(.home-page) .history-item,
body.imini-page:not(.home-page) .model-route-tab,
body.imini-page:not(.home-page) .model-card,
body.imini-page:not(.home-page) .reverse-library-item,
body.imini-page:not(.home-page) .reverse-category-item,
body.imini-page:not(.home-page) .reverse-empty-state,
body.imini-page:not(.home-page) .recharge-options button {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(21, 21, 25, 0.88);
  color: rgba(247, 251, 255, 0.86);
}

body.imini-page:not(.home-page) .image-slot-progress {
  color: #f7fbff;
}

body.imini-page:not(.home-page) .image-slot-progress .generation-spinner {
  border-color: rgba(38, 241, 255, 0.16);
  border-top-color: #26f1ff;
  box-shadow: 0 0 28px rgba(38, 241, 255, 0.2);
}

body.imini-page:not(.home-page) .image-slot-progress strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 780;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

body.imini-page:not(.home-page) .image-slot-progress small {
  color: rgba(229, 252, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
}

body.imini-page:not(.home-page) .image-slot-progress .generation-progress {
  background: rgba(229, 252, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(229, 252, 255, 0.08);
}

body.imini-page:not(.home-page) .model-selector-dialog {
  border-color: rgba(229, 252, 255, 0.16);
  background: rgba(18, 18, 22, 0.96);
  color: #f7fbff;
}

body.imini-page:not(.home-page) .model-selector-close {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 251, 255, 0.84);
}

body.imini-page:not(.home-page) .model-route-tab.is-active,
body.imini-page:not(.home-page) .model-route-tab:hover,
body.imini-page:not(.home-page) .model-card.is-active {
  border-color: rgba(38, 241, 255, 0.52);
  background: rgba(38, 241, 255, 0.1);
  color: #ffffff;
}

body.imini-page:not(.home-page) .model-card:hover {
  border-color: rgba(38, 241, 255, 0.38);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body.imini-page:not(.home-page) .model-card-desc {
  color: rgba(38, 241, 255, 0.8);
}

body.imini-page:not(.home-page) .model-card-costs {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.imini-page:not(.home-page) .model-card-costs em {
  color: rgba(255, 224, 122, 0.9);
}

body.imini-page:not(.home-page) .reverse-tabs {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(14px) saturate(110%);
}

body.imini-page:not(.home-page) .reverse-tabs button {
  border-radius: 999px;
  color: rgba(247, 251, 255, 0.72);
}

body.imini-page:not(.home-page) .reverse-tabs button.active {
  background: #ffffff;
  color: #05070c;
}

body.imini-page:not(.home-page) .reverse-dropzone {
  border-color: rgba(38, 241, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03)),
    rgba(21, 21, 25, 0.72);
  color: rgba(226, 244, 247, 0.7);
}

body.imini-page:not(.home-page) .reverse-dropzone strong,
body.imini-page:not(.home-page) .reverse-library-item strong,
body.imini-page:not(.home-page) .reverse-library-title {
  color: #ffffff;
}

body.imini-page:not(.home-page) .reverse-textarea {
  background: transparent;
  color: #ffffff;
}

body.imini-page:not(.home-page) .reverse-upload-icon,
body.imini-page:not(.home-page) .account-card-icon {
  background:
    linear-gradient(135deg, rgba(38, 241, 255, 0.16), rgba(109, 107, 255, 0.18));
  color: #ffffff;
}

body.imini-page:not(.home-page) .policy-article {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px;
}

body.imini-page:not(.home-page) .policy-article p,
body.imini-page:not(.home-page) .policy-article li,
body.imini-page:not(.home-page) .policy-contact-list,
body.imini-page:not(.home-page) .reverse-library-item small,
body.imini-page:not(.home-page) .reverse-library-item span,
body.imini-page:not(.home-page) .reverse-library-item p,
body.imini-page:not(.home-page) .file-chip figcaption,
body.imini-page:not(.home-page) .status-line,
body.imini-page:not(.home-page) .log-line,
body.imini-page:not(.home-page) .progress-log {
  color: rgba(226, 244, 247, 0.72);
}

body.imini-page:not(.home-page) .policy-inline-link,
body.imini-page:not(.home-page) .account-message,
body.imini-page:not(.home-page) .reverse-library-title:hover {
  color: #26f1ff;
}

body.imini-page:not(.home-page) .feature-page-hero {
  max-width: 860px;
}

body.imini-page:not(.home-page) .construction-poster-board {
  padding: 42px;
}

body.imini-page:not(.home-page) .auth-dialog::backdrop,
body.imini-page:not(.home-page) .case-share-dialog::backdrop,
body.imini-page:not(.home-page) .reverse-save-dialog::backdrop,
body.imini-page:not(.home-page) .model-selector-dialog::backdrop,
body.imini-page:not(.home-page) .mask-editor-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

body.imini-page:not(.home-page) .close-button {
  color: rgba(247, 251, 255, 0.82);
}

body.imini-page:not(.home-page) .mask-editor-shell {
  background:
    radial-gradient(circle at 14% 0%, rgba(38, 241, 255, 0.12), transparent 32%),
    radial-gradient(circle at 95% 10%, rgba(109, 107, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    rgba(18, 18, 22, 0.94);
}

body.imini-page:not(.home-page) .mask-editor-head h3 {
  color: #ffffff;
}

body.imini-page:not(.home-page) .mask-editor-stage {
  border-color: rgba(229, 252, 255, 0.18);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    rgba(5, 7, 12, 0.72);
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0,
    0 0;
  background-size:
    20px 20px,
    20px 20px,
    20px 20px,
    20px 20px,
    auto;
}

body.imini-page:not(.home-page) .mask-editor-reference {
  border-color: rgba(229, 252, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.imini-page:not(.home-page) .mask-editor-reference-head strong,
body.imini-page:not(.home-page) .mask-editor-reference-chip {
  color: #ffffff;
}

body.imini-page:not(.home-page) .mask-editor-reference-note,
body.imini-page:not(.home-page) .mask-editor-reference-empty {
  color: rgba(226, 244, 247, 0.7);
}

body.imini-page:not(.home-page) .mask-editor-reference-chip {
  border-color: rgba(229, 252, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

body.imini-page:not(.home-page) .mask-editor-reference-chip button {
  color: rgba(247, 251, 255, 0.82);
}

body.imini-page:not(.home-page) .mask-editor-reference-chip button:hover {
  color: #26f1ff;
}

body.imini-page:not(.home-page) .mask-editor-size {
  accent-color: #26f1ff;
}

body.imini-page:not(.home-page) .case-share-dialog {
  background:
    radial-gradient(circle at 18% 0%, rgba(38, 241, 255, 0.12), transparent 34%),
    radial-gradient(circle at 96% 16%, rgba(109, 107, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    rgba(18, 18, 22, 0.94);
}

body.imini-page:not(.home-page) .case-share-dialog .eyebrow {
  color: rgba(229, 252, 255, 0.76);
}

body.imini-page:not(.home-page) .case-share-dialog h2 {
  color: #ffffff;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

body.imini-page:not(.home-page) .case-share-reward {
  border: 1px solid rgba(38, 241, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(38, 241, 255, 0.14), rgba(109, 107, 255, 0.18)),
    rgba(10, 15, 28, 0.86);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.3);
}

body.imini-page:not(.home-page) .case-share-reward small {
  color: rgba(229, 252, 255, 0.9);
}

body.imini-page:not(.home-page) .case-share-copy {
  color: rgba(226, 244, 247, 0.78);
}

body.imini-page:not(.home-page) .case-share-message {
  color: #26f1ff;
}

body.imini-page:not(.home-page) .case-share-actions .primary-button {
  color: #ffffff;
}

body.imini-page:not(.home-page) .case-share-actions .secondary-button {
  color: rgba(247, 251, 255, 0.92);
}

body.imini-page:not(.home-page) {
  min-width: 0;
  --fluid-page-gutter: clamp(24px, 4vw, 144px);
  --fluid-panel-gap: clamp(18px, 1.4vw, 36px);
}

body.imini-page:not(.home-page) .site-header:not(.admin-header),
body.imini-page:not(.home-page) .announcement-bar {
  padding-right: var(--fluid-page-gutter);
  padding-left: var(--fluid-page-gutter);
}

body.imini-page:not(.home-page) .detail-page-main .tabs-section,
body.imini-page:not(.home-page) .prompt-reverse-main,
body.imini-page:not(.home-page) .feature-page-main,
body.imini-page:not(.home-page) .account-page-main,
body.imini-page:not(.home-page) .policy-page-main {
  padding-right: var(--fluid-page-gutter);
  padding-left: var(--fluid-page-gutter);
}

body.imini-page:not(.home-page) .studio-layout,
body.imini-page:not(.home-page) .reverse-workbench,
body.imini-page:not(.home-page) .account-grid {
  width: 100%;
  gap: var(--fluid-panel-gap);
}

body.imini-page:not(.home-page) .studio-layout {
  grid-template-columns:
    minmax(420px, 1.02fr)
    minmax(520px, 1.36fr)
    minmax(300px, 0.72fr);
}

body.imini-page:not(.home-page) .reverse-workbench {
  grid-template-columns:
    minmax(360px, 0.9fr)
    minmax(520px, 1.34fr)
    minmax(380px, 1fr);
}

body.imini-page:not(.home-page) .account-grid {
  grid-template-columns: repeat(2, minmax(420px, 1fr));
}

body.imini-page:not(.home-page) .creator-panel,
body.imini-page:not(.home-page) .upload-panel,
body.imini-page:not(.home-page) .result-panel,
body.imini-page:not(.home-page) .history-panel,
body.imini-page:not(.home-page) .reverse-card,
body.imini-page:not(.home-page) .account-card {
  min-width: 0;
}

body.imini-page:not(.home-page) .policy-article {
  width: min(100%, 1180px);
  max-width: none;
}

body.imini-page:not(.home-page) .feature-page-hero {
  max-width: min(1040px, 76vw);
}

@media (min-width: 1800px) {
  body.imini-page:not(.home-page) {
    --fluid-page-gutter: clamp(88px, 5vw, 180px);
  }

  body.imini-page:not(.home-page) .studio-layout {
    grid-template-columns:
      minmax(500px, 1.08fr)
      minmax(680px, 1.52fr)
      minmax(340px, 0.78fr);
  }

  body.imini-page:not(.home-page) .reverse-workbench {
    grid-template-columns:
      minmax(420px, 0.95fr)
      minmax(660px, 1.42fr)
      minmax(460px, 1fr);
  }
}

@media (max-width: 1280px) {
  body.imini-page:not(.home-page) {
    --fluid-page-gutter: clamp(18px, 4.8vw, 44px);
  }

  body.imini-page:not(.home-page) .site-header:not(.admin-header) {
    grid-template-columns: auto 1fr;
    height: auto;
    min-height: 68px;
  }

  body.imini-page:not(.home-page) .nav-links {
    display: none;
  }

  body.imini-page:not(.home-page) .account-bar {
    justify-self: end;
  }

  body.imini-page:not(.home-page) .studio-layout,
  body.imini-page:not(.home-page) .reverse-workbench,
  body.imini-page:not(.home-page) .account-grid {
    grid-template-columns: 1fr;
  }

  body.imini-page:not(.home-page) .detail-page-main .upload-panel,
  body.imini-page:not(.home-page) .detail-page-main .result-panel {
    border-right: 0;
    padding-right: 0;
  }

  body.imini-page:not(.home-page) .feature-page-hero {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  body.imini-page:not(.home-page) .site-header:not(.admin-header) {
    gap: 12px;
  }

  body.imini-page:not(.home-page) .detail-page-main .tabs-section,
  body.imini-page:not(.home-page) .prompt-reverse-main,
  body.imini-page:not(.home-page) .feature-page-main,
  body.imini-page:not(.home-page) .account-page-main,
  body.imini-page:not(.home-page) .policy-page-main {
    padding-top: 104px;
  }

  body.imini-page:not(.home-page) .policy-article,
  body.imini-page:not(.home-page) .construction-poster-board {
    padding: 28px;
  }
}
