:root {
  color-scheme: light;
  --ink: #182033;
  --muted: rgba(24, 32, 51, 0.72);
  --quiet: rgba(24, 32, 51, 0.56);
  --line: rgba(24, 32, 51, 0.14);
  --panel: rgba(255, 255, 255, 0.64);
  --panel-strong: rgba(255, 255, 255, 0.82);
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --accent: #0066cc;
  --accent-focus: #0071e3;
  --accent-soft: rgba(0, 102, 204, 0.12);
  --liquid-glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 28px 70px rgba(29, 29, 31, 0.12);
  --inner: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  --fluid-x: 50vw;
  --fluid-y: 50vh;
  --fluid-force: 0;
  --light-x: 64vw;
  --light-y: 18vh;
}

* { box-sizing: border-box; }

@keyframes tagSpin {
  0% {
    transform: perspective(700px) rotateX(0deg) rotateY(0deg) translateY(0);
  }
  42% {
    transform: perspective(700px) rotateX(8deg) rotateY(-10deg) translateY(-2px);
  }
  72% {
    transform: perspective(700px) rotateX(-4deg) rotateY(5deg) translateY(-1px);
  }
  100% {
    transform: perspective(700px) rotateX(0deg) rotateY(0deg) translateY(0);
  }
}

@keyframes optionSheen {
  0% {
    background-position: 180% 50%;
  }
  100% {
    background-position: -80% 50%;
  }
}

@keyframes signalDrift {
  0%, 100% {
    transform: translate3d(-6px, -2px, 0);
    opacity: 0.42;
  }
  45% {
    transform: translate3d(9px, 4px, 0);
    opacity: 1;
  }
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--parchment);
  font-family: "Inter", "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
}

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

button { cursor: pointer; }

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

#fluid-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background:
    radial-gradient(circle at 26% 18%, rgba(0, 102, 204, 0.12), transparent 34%),
    radial-gradient(circle at 84% 76%, rgba(255, 255, 255, 0.84), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 58%, #ececf1 100%);
}

.liquid-veil,
.lighting-field,
.pressure-lens,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.liquid-veil {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(245, 245, 247, 0.24) 42%, rgba(255, 255, 255, 0.66)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), transparent 46%, rgba(245, 245, 247, 0.92));
}

.lighting-field {
  z-index: 1;
  background:
    radial-gradient(circle at var(--light-x) var(--light-y), rgba(255, 255, 255, 0.96), transparent 22%),
    radial-gradient(circle at calc(var(--light-x) - 18vw) calc(var(--light-y) + 28vh), rgba(0, 102, 204, 0.13), transparent 34%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.72), transparent 44%, rgba(29, 29, 31, 0.035));
  mix-blend-mode: soft-light;
}

.pressure-lens {
  z-index: 2;
  width: clamp(180px, 24vw, 360px);
  height: clamp(180px, 24vw, 360px);
  border: 1px solid rgba(255, 255, 255, calc(0.36 + var(--fluid-force) * 0.28));
  border-radius: 50%;
  opacity: calc(0.08 + var(--fluid-force) * 0.48);
  transform:
    translate3d(calc(var(--fluid-x) - 50%), calc(var(--fluid-y) - 50%), 0)
    scale(calc(0.76 + var(--fluid-force) * 0.48));
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.72), transparent 9%),
    radial-gradient(circle, rgba(0, 102, 204, 0.16), transparent 34%),
    radial-gradient(circle, transparent 49%, rgba(255, 255, 255, 0.46) 58%, transparent 72%);
  box-shadow:
    inset 0 0 44px rgba(255, 255, 255, 0.52),
    0 24px calc(42px + var(--fluid-force) * 64px) rgba(0, 102, 204, 0.2);
  backdrop-filter: saturate(180%) blur(20px);
}

.grain {
  z-index: 3;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(rgba(29, 29, 31, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, 0.016) 1px, transparent 1px);
  background-size: 8px 8px, 13px 13px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
}

#app {
  position: relative;
  z-index: 4;
}

.shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
  padding: clamp(16px, 2vw, 28px);
  gap: clamp(16px, 2vw, 26px);
}

.sidebar {
  position: sticky;
  top: clamp(16px, 2vw, 28px);
  height: calc(100vh - clamp(16px, 2vw, 28px) * 2);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34) 48%, rgba(0, 102, 204, 0.07)),
    var(--liquid-glass);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--shadow), var(--inner);
}

.mobile-index-toggle,
.mobile-back-button,
.mobile-index-backdrop,
.mobile-index-drawer {
  display: none;
}

.mobile-index-close {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(24, 32, 51, 0.68);
  font-size: 22px;
  line-height: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--liquid-glass);
  box-shadow:
    0 10px 22px rgba(29, 29, 31, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.nav button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(24, 32, 51, 0.76);
  background: transparent;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  transform-origin: center;
}

.nav button.active,
.nav button:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 10px 26px rgba(29, 29, 31, 0.08);
}

.nav button:hover {
  animation: tagSpin 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.account {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 24px rgba(29, 29, 31, 0.055);
}

.account strong,
.account span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account strong {
  color: rgba(24, 32, 51, 0.82);
  font-size: 13px;
  font-weight: 760;
}

.account span {
  margin-top: 5px;
  color: rgba(24, 32, 51, 0.56);
  font-size: 11px;
  line-height: 1.35;
}

.main {
  min-width: 0;
  padding: 8px 0 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 36px);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: linear-gradient(180deg, #101828 0%, #182033 62%, #31415f 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    6px 10px 20px rgba(0, 50, 120, 0.1);
}

.topbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 20px;
  color: rgba(11, 16, 32, 0.9);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(150%) blur(12px);
  box-shadow:
    0 8px 18px rgba(29, 29, 31, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font-weight: 720;
  line-height: 1;
  text-align: center;
  text-shadow: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 102, 204, 0.2);
  animation: tagSpin 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn.primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow:
    0 16px 34px rgba(0, 102, 204, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.btn.primary:hover {
  background: var(--accent-focus);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  animation: none;
}

.btn.danger {
  min-height: 32px;
  margin-top: 10px;
  padding: 0 12px;
  color: rgba(109, 40, 63, 0.72);
  border-color: rgba(109, 40, 63, 0.1);
  background: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 18px rgba(29, 29, 31, 0.045);
  font-size: 12px;
  font-weight: 650;
}

.btn.danger:hover {
  color: rgba(109, 40, 63, 0.92);
  border-color: rgba(109, 40, 63, 0.18);
  background: rgba(255, 255, 255, 0.62);
}

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

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

.card {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  padding: clamp(18px, 2.2vw, 28px);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34) 48%, rgba(0, 102, 204, 0.06)),
    var(--panel);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: var(--shadow), var(--inner);
}

.card h2,
.card h3 {
  margin: 0 0 12px;
}

.card p,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.hero {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: 20px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.34) 45%, rgba(0, 102, 204, 0.08)),
    linear-gradient(90deg, rgba(24, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 32, 51, 0.025) 1px, transparent 1px),
    radial-gradient(circle at var(--light-x) var(--light-y), rgba(255, 255, 255, 0.72), transparent 34%);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94), transparent 26%),
    linear-gradient(295deg, transparent 60%, rgba(0, 102, 204, 0.1));
  mask-image: linear-gradient(180deg, black, transparent 76%);
}

.hero > * {
  position: relative;
}

.hero h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(25px, 2.7vw, 38px);
  font-weight: 680;
  line-height: 1.18;
  letter-spacing: 0;
  word-break: keep-all;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background:
    linear-gradient(180deg, #101828 0%, #182033 54%, #31415f 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.66),
    7px 12px 24px rgba(0, 50, 120, 0.1);
}

.hero-main {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 230px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 999px;
  padding: 5px 10px;
  color: rgba(24, 32, 51, 0.62);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
}

.home-flowline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 520px;
  overflow: hidden;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(0, 102, 204, 0.08), transparent 35%, rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-flowline span {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(24, 32, 51, 0.66);
  font-size: 12px;
  font-weight: 760;
}

.home-flowline span + span {
  border-left: 1px solid rgba(24, 32, 51, 0.07);
}

.home-flowline span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.54);
  box-shadow: 0 0 16px rgba(0, 102, 204, 0.22);
}

.home-capabilities {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.home-capability {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 14px;
  padding: 11px 13px;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(238, 247, 255, 0.56)),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 24px rgba(24, 32, 51, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  text-align: left;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.home-capability::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.62) 44%, transparent 68%);
  transform: translateX(-115%);
  opacity: 0;
  transition: transform 520ms ease, opacity 180ms ease;
}

.home-capability:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 102, 204, 0.22);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(232, 244, 255, 0.72)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(0, 82, 170, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.home-capability:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.home-capability i {
  grid-row: 1 / span 2;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(0, 102, 204, 0.24);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(0, 102, 204, 0.26));
  box-shadow: 0 0 0 5px rgba(0, 102, 204, 0.055);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-capability:hover i {
  background: var(--accent-focus);
  box-shadow: 0 0 0 6px rgba(0, 102, 204, 0.11), 0 0 18px rgba(0, 102, 204, 0.26);
  transform: scale(1.05);
}

.home-capability span {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 780;
}

.home-capability small {
  position: relative;
  z-index: 1;
  color: rgba(24, 32, 51, 0.58);
  font-size: 12px;
  line-height: 1.38;
}

.hero-diagram {
  position: relative;
  min-height: 252px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(24, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(238, 247, 255, 0.46));
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 18px 42px rgba(24, 32, 51, 0.08);
  overflow: hidden;
}

.hero-diagram::before,
.hero-diagram::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-diagram::before {
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.22), rgba(24, 32, 51, 0.1), transparent);
}

.hero-diagram::after {
  inset: 14px;
  border: 1px solid rgba(24, 32, 51, 0.045);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.diagram-node,
.diagram-chip {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 32, 51, 0.09);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(24, 32, 51, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(12px);
}

.diagram-node {
  width: 78px;
  height: 70px;
  border-radius: 20px;
  color: var(--accent);
  font-weight: 800;
}

.diagram-node b {
  color: rgba(24, 32, 51, 0.42);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.diagram-node em {
  color: var(--accent);
  font-size: 14px;
  font-style: normal;
  line-height: 1;
}

.diagram-chip {
  height: 38px;
  min-width: 92px;
  border-radius: 999px;
  color: rgba(24, 32, 51, 0.7);
  font-size: 12px;
  font-weight: 760;
}

.node-a { left: 9%; top: 20%; }
.node-b { left: 40%; top: 10%; }
.node-c { right: 12%; top: 34%; }
.chip-a { left: 16%; bottom: 18%; }
.chip-b { right: 12%; bottom: 14%; }

.diagram-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 102, 204, 0.08), rgba(0, 102, 204, 0.34), rgba(0, 102, 204, 0.08));
  transform-origin: left center;
}

.line-a {
  left: 29%;
  top: 33%;
  width: 118px;
  transform: rotate(-17deg);
}

.line-b {
  left: 56%;
  top: 36%;
  width: 110px;
  transform: rotate(24deg);
}

.diagram-signal {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-focus);
  box-shadow: 0 0 0 7px rgba(0, 102, 204, 0.08), 0 0 18px rgba(0, 102, 204, 0.24);
  animation: signalDrift 3.6s ease-in-out infinite;
}

.signal-a {
  left: 34%;
  top: 29%;
}

.signal-b {
  right: 28%;
  top: 43%;
  animation-delay: 1.3s;
}

.metric {
  display: grid;
  gap: 6px;
}

.metric strong {
  color: var(--accent);
  font-size: 32px;
}

.badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(0, 102, 204, 0.1);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform-origin: center;
}

.badge:hover {
  animation: tagSpin 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.form {
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: visible;
}

.field {
  display: grid;
  gap: 5px;
}

.form :is(textarea, input, button, .choice-select, .material-dock, .material-strip) {
  position: relative;
  z-index: 2;
}

.field small {
  color: rgba(24, 32, 51, 0.48);
  font-size: 13px;
  font-weight: 560;
}

.chat-form {
  align-content: start;
}

.chat-submit {
  width: fit-content;
  min-width: 112px;
  min-height: 42px;
  justify-self: start;
  padding: 0 22px;
}

.generate-submit {
  width: fit-content;
  min-width: 112px;
  max-width: 180px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  justify-self: start;
  align-self: start;
  padding: 0 22px;
  font-size: 14px;
}

.creator-form,
.creator-results {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 255, 0.58)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 64px rgba(29, 29, 31, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.creator-form textarea {
  min-height: 138px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.82)),
    #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 34px rgba(24, 32, 51, 0.055);
}

.storyboard-generate-btn {
  position: relative;
  overflow: hidden;
  width: auto !important;
  inline-size: auto;
  min-width: 112px;
  max-width: max-content;
  min-height: 44px;
  block-size: 44px;
  justify-self: start;
  align-self: start;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 720;
  box-shadow:
    0 16px 34px rgba(0, 102, 204, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.storyboard-generate-btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 34%, transparent 58%);
  background-size: 220% 100%;
  opacity: 0.65;
  animation: buttonSheen 2800ms cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.storyboard-generate-btn:hover {
  transform: translateY(-1px);
}

.free-storyboard-note {
  color: rgba(24, 32, 51, 0.58);
  font-size: 14px;
  font-weight: 650;
}

.reference-upload small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.reference-upload img {
  width: min(100%, 220px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(24, 32, 51, 0.1);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(37, 54, 86, 0.14);
}

.material-dock {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(24, 32, 51, 0.52);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.material-add {
  appearance: none;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 32, 51, 0.12);
  border-radius: 50%;
  color: rgba(24, 32, 51, 0.58);
  background: rgba(255, 255, 255, 0.74);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 54, 86, 0.08);
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.material-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-spec-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(246, 250, 255, 0.62)),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 46px rgba(29, 29, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.creator-results > h2 {
  margin-bottom: -4px;
  letter-spacing: 0;
}

.image-spec-field {
  gap: 9px;
}

.image-spec-panel.collapsed .choice-trigger,
.image-size-row .input {
  min-height: 72px;
  border-radius: 26px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(236, 246, 255, 0.72)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(24, 32, 51, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.image-spec-panel.collapsed .choice-trigger {
  grid-template-columns: 56px minmax(0, 1fr) 24px;
  gap: 8px;
  padding: 0 26px 0 20px;
}

.image-spec-panel.collapsed .choice-label {
  padding-left: 2px;
}

.image-spec-panel.collapsed .choice-select.open {
  z-index: 120;
}

.image-spec-panel.collapsed .choice-menu {
  border-radius: 20px;
}

.image-spec-panel.collapsed .choice-current-icon {
  width: 42px;
  height: 42px;
  justify-self: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(24, 32, 51, 0.08);
}

.image-size-row .input {
  padding-left: 28px;
  font-size: 16px;
}

.image-custom-size {
  min-height: 72px;
}

.material-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  overflow: visible;
  border: 1px solid rgba(24, 32, 51, 0.1);
  box-shadow: 0 12px 28px rgba(37, 54, 86, 0.12);
}

.material-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

.material-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 6;
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: rgba(190, 49, 68, 0.96);
  background: rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-weight: 860;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.92), 0 4px 10px rgba(11, 16, 32, 0.18);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.form .material-thumb > .material-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 8;
}

.material-remove:hover {
  color: #a51f36;
  background: rgba(190, 49, 68, 0.1);
  transform: scale(1.04);
}

.field span {
  color: rgba(24, 32, 51, 0.68);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

.input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  padding: 13px 15px;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.56) 44%, rgba(0, 102, 204, 0.08) 100%),
    rgba(255, 255, 255, 0.72);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -16px 30px rgba(0, 102, 204, 0.035),
    0 10px 24px rgba(29, 29, 31, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-position 600ms ease;
}

select {
  appearance: none;
  padding-right: 44px;
  font-weight: 760;
  font-family: "Inter", "HarmonyOS Sans SC", "MiSans", "PingFang SC", system-ui, sans-serif;
  background:
    radial-gradient(circle at right 24px center, rgba(255, 255, 255, 0.82), rgba(0, 102, 204, 0.06) 42%, transparent 44%),
    linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.86) 18%, rgba(0, 102, 204, 0.075) 34%, rgba(255, 255, 255, 0) 54%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.68) 48%, rgba(0, 102, 204, 0.045) 100%),
    rgba(255, 255, 255, 0.74);
  background-size: auto, 220% 100%, auto, auto;
  background-position: 0 0, 180% 50%, 0 0, 0 0;
}

select.enhanced-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-select {
  position: relative;
  width: 100%;
}

.choice-select.open {
  z-index: 90;
}

.choice-trigger {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  padding: 0 12px;
  color: var(--ink);
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.82) 18%, rgba(0, 102, 204, 0.08) 36%, transparent 56%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72) 50%, rgba(0, 102, 204, 0.045));
  background-size: 230% 100%, auto;
  background-position: 180% 50%, 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 10px 24px rgba(29, 29, 31, 0.06);
  font-weight: 780;
  text-align: left;
  transition:
    transform 450ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 450ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.choice-trigger:hover,
.choice-select.open .choice-trigger {
  transform: translateY(-1px);
  border-color: rgba(0, 102, 204, 0.22);
  animation: choiceFlow 1800ms linear infinite;
  box-shadow:
    0 0 0 4px rgba(0, 102, 204, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 16px 34px rgba(0, 102, 204, 0.1);
}

.choice-current-icon,
.choice-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 50%;
  color: rgba(24, 32, 51, 0.46);
  background: rgba(255, 255, 255, 0.68);
  transition:
    color 450ms cubic-bezier(0.16, 1, 0.3, 1),
    background 450ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.choice-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-arrow {
  justify-self: end;
  color: rgba(24, 32, 51, 0.56);
  font-size: 22px;
  transform-origin: center;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.choice-select.open .choice-arrow {
  transform: rotate(180deg);
}

.choice-menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid rgba(24, 32, 51, 0.12);
  border-radius: 18px;
  padding: 6px;
  background: #ffffff;
  box-shadow:
    0 22px 44px rgba(29, 29, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 450ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.choice-select.open .choice-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.choice-option {
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 10px;
  color: rgba(24, 32, 51, 0.88);
  background: #ffffff;
  font-weight: 760;
  text-align: left;
  transition:
    color 300ms cubic-bezier(0.16, 1, 0.3, 1),
    background 300ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.choice-option:hover,
.choice-option.active {
  color: var(--ink);
  border-color: rgba(0, 102, 204, 0.12);
  background: rgba(0, 102, 204, 0.075);
  transform: translateX(2px);
}

.choice-option:hover .choice-icon,
.choice-option.active .choice-icon,
.choice-select.open .choice-current-icon {
  color: #ffffff;
  background: var(--accent);
  transform: scale(1.04);
}

@keyframes choiceFlow {
  0% {
    background-position: 180% 50%, 0 0;
  }
  100% {
    background-position: -80% 50%, 0 0;
  }
}

.input:hover,
textarea:hover,
select:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 102, 204, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -16px 30px rgba(0, 102, 204, 0.05),
    0 14px 30px rgba(29, 29, 31, 0.075);
}

select:hover,
select:focus {
  animation: optionSheen 1400ms linear infinite;
}

.input:focus,
textarea:focus,
select:focus {
  border-color: rgba(0, 102, 204, 0.42);
  box-shadow:
    0 0 0 4px rgba(0, 102, 204, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 34px rgba(0, 102, 204, 0.12);
}

select option {
  color: #182033;
  background: #f7faff;
  font-family: "Inter", "HarmonyOS Sans SC", "MiSans", "PingFang SC", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.7;
  padding: 12px 14px;
}

select option:checked {
  color: #ffffff;
  background: #2f66c8;
}

select option:hover {
  color: #101828;
  background: #eaf2ff;
}

textarea {
  min-height: 122px;
  resize: vertical;
}

.chat-log,
.task-list,
.records {
  display: grid;
  gap: 12px;
}

.chat-log,
.records {
  max-height: 500px;
  overflow: auto;
}

.chat-message {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.bubble {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: text;
  -webkit-user-select: text;
}

.chat-copy {
  min-height: 32px;
  padding: 0 12px;
  white-space: nowrap;
}

.bubble.user {
  color: var(--ink);
  background: rgba(0, 102, 204, 0.08);
}

.bubble.loading {
  color: rgba(24, 32, 51, 0.58);
  background: rgba(255, 255, 255, 0.68);
}

.task-row,
.record-row {
  display: grid;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

@media (min-width: 901px) {
  .creator-workspace {
    align-items: start;
  }

  .creator-form {
    position: sticky;
    top: 18px;
  }

  .creator-results {
    min-height: calc(100vh - 128px);
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    padding-right: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(42, 48, 58, 0.66) rgba(255, 255, 255, 0.22);
  }

  .creator-results::-webkit-scrollbar {
    width: 10px;
  }

  .creator-results::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
  }

  .creator-results::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(42, 48, 58, 0.66);
  }
}

.record-row {
  grid-template-columns: 1fr auto;
}

.task-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-color: rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(247, 250, 255, 0.52)),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    0 18px 48px rgba(29, 29, 31, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.task-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background:
    linear-gradient(90deg, rgba(0, 102, 204, 0.12), transparent 28%, transparent 72%, rgba(36, 178, 107, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), transparent 42%);
  mask-image: linear-gradient(180deg, black, transparent 76%);
}

.task-card > * {
  position: relative;
}

.task-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.task-title {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.task-title strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.task-title p {
  max-width: 820px;
  margin: 0;
  overflow-wrap: anywhere;
}

.task-time {
  margin: 0;
  color: rgba(24, 32, 51, 0.44);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.35;
}

.task-type,
.work-kicker {
  width: max-content;
  max-width: 100%;
  color: rgba(0, 102, 204, 0.78);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.task-status {
  min-width: 72px;
  justify-content: center;
  border: 1px solid rgba(0, 102, 204, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 12px;
  text-align: center;
}

.task-status.completed {
  color: #17683d;
  border-color: rgba(36, 178, 107, 0.18);
  background: rgba(36, 178, 107, 0.1);
}

.task-status.failed {
  color: #8a2d47;
  border-color: rgba(138, 45, 71, 0.16);
  background: rgba(138, 45, 71, 0.08);
}

.task-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.task-chips span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(24, 32, 51, 0.68);
  background: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 720;
}

.task-complete-line {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(36, 178, 107, 0.14);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(23, 104, 61, 0.86);
  background: rgba(36, 178, 107, 0.08);
  font-size: 12px;
  font-weight: 760;
}

.task-complete-line span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24b26b;
  box-shadow: 0 0 0 6px rgba(36, 178, 107, 0.1);
}

.task-failure-line {
  width: 100%;
  border: 1px solid rgba(190, 49, 68, 0.16);
  border-radius: 16px;
  padding: 10px 12px;
  color: rgba(132, 36, 55, 0.92);
  background: rgba(190, 49, 68, 0.07);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.55;
}

.result-preview {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.work-preview {
  width: min(680px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.62) 54%, rgba(0, 102, 204, 0.035)),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    0 26px 70px rgba(29, 29, 31, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.work-toolbar,
.work-footer,
.text-result-head,
.work-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.work-toolbar {
  padding: 2px 2px 0;
}

.work-toolbar > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.work-toolbar strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.work-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(36, 178, 107, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(23, 104, 61, 0.9);
  background: rgba(36, 178, 107, 0.1);
  font-size: 12px;
  font-weight: 780;
}

.work-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24b26b;
  box-shadow: 0 0 0 5px rgba(36, 178, 107, 0.12);
  animation: workPulse 1300ms cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.work-canvas {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(24, 32, 51, 0.075);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(238, 244, 252, 0.74)),
    linear-gradient(90deg, rgba(0, 102, 204, 0.05), transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -20px 44px rgba(0, 102, 204, 0.035);
}

.work-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.32) 18%, transparent 34%);
  background-size: 240% 100%;
  animation: workSheen 3200ms cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.work-canvas img,
.work-canvas video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: min(68vh, 620px);
  object-fit: contain;
  background: var(--pearl);
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}

.work-gallery-item {
  display: grid;
  gap: 8px;
  margin: 0;
}

.work-gallery-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 32, 51, 0.075);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 16px 38px rgba(24, 32, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.work-canvas[data-preview-media],
.work-gallery-frame[data-preview-media],
.storyboard-media-frame[data-preview-media] {
  cursor: zoom-in;
}

.work-gallery-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.work-gallery-actions {
  position: absolute;
  inset: 8px 8px auto 8px;
  display: grid;
  grid-template-columns: 34px 34px;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-gallery-frame:hover .work-gallery-actions {
  opacity: 1;
  transform: translateY(0);
}

.work-gallery-actions button,
.work-icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 26px rgba(24, 32, 51, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(160%);
}

.work-icon-btn.download {
  justify-self: start;
}

.work-icon-btn.revise {
  justify-self: end;
  color: rgba(0, 102, 204, 0.9);
}

.work-gallery-item figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(24, 32, 51, 0.58);
  font-size: 12px;
  font-weight: 720;
}

.gallery-inline-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gallery-inline-actions .btn {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
}

.image-revision-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.image-revision-panel textarea {
  min-height: 84px;
}

.image-revision-history {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.revision-chip {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.58);
}

.revision-chip span {
  max-width: 260px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.revision-chip small {
  color: rgba(24, 32, 51, 0.55);
  font-size: 11px;
  font-weight: 680;
}

.work-footer {
  color: rgba(24, 32, 51, 0.58);
  font-size: 12px;
  font-weight: 680;
}

.work-footer > span {
  min-width: 180px;
  flex: 1;
  line-height: 1.45;
}

.btn.compact {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.text-result {
  width: min(680px, 100%);
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 24px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(247, 250, 255, 0.58)),
    rgba(255, 255, 255, 0.6);
  box-shadow:
    0 18px 46px rgba(29, 29, 31, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.text-result p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-wrap;
}

.storyboard-empty,
.storyboard-card {
  margin-bottom: 14px;
}

.storyboard-card {
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(247, 250, 255, 0.62)),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 46px rgba(29, 29, 31, 0.1);
}

.storyboard-card pre {
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.7;
}

.storyboard-flowchart {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(0, 102, 204, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.storyboard-media-frame {
  position: relative;
}

.storyboard-media-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.storyboard-media-actions button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(24, 32, 51, 0.12);
  backdrop-filter: saturate(180%) blur(14px);
}

.storyboard-flowchart img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(24, 32, 51, 0.06);
}

.media-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(18px);
}

.media-preview-panel {
  position: relative;
  width: min(1120px, 96vw);
  max-height: 92vh;
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow), var(--inner);
}

.media-preview-panel > .payment-close {
  top: 18px;
  right: 18px;
}

.media-preview-head {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-right: 56px;
}

.media-preview-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.media-preview-head .btn {
  min-width: 86px;
  justify-self: end;
}

.media-preview-panel img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

.storyboard-flowchart.pending {
  color: var(--muted);
  background: rgba(245, 249, 255, 0.72);
}

.storyboard-flowchart.pending p {
  margin: 0;
  line-height: 1.55;
}

.storyboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.storyboard-next {
  flex: 1 1 220px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 102, 204, 0.16);
  border-radius: 14px;
  background: rgba(245, 249, 255, 0.78);
}

.storyboard-next strong {
  color: var(--ink);
  font-size: 13px;
}

.storyboard-next span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.storyboard-revision {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.storyboard-revision textarea {
  min-height: 82px;
}

.storyboard-history {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  margin: 10px 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(0, 102, 204, 0.045);
}

.storyboard-history p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@keyframes workPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(36, 178, 107, 0.12);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 9px rgba(36, 178, 107, 0.04);
  }
}

@keyframes workSheen {
  0% {
    background-position: 180% 50%;
  }
  100% {
    background-position: -70% 50%;
  }
}

@keyframes buttonSheen {
  0% {
    background-position: 180% 50%;
  }
  100% {
    background-position: -70% 50%;
  }
}

.payment-box {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.payment-box img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: white;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.72), transparent 30%),
    rgba(245, 245, 247, 0.62);
  backdrop-filter: blur(18px) saturate(160%);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.78), transparent 32%),
    rgba(245, 245, 247, 0.68);
  backdrop-filter: blur(18px) saturate(160%);
}

.recharge-modal {
  position: fixed;
  inset: 0;
  z-index: 29;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 48% 22%, rgba(255, 255, 255, 0.78), transparent 32%),
    rgba(245, 245, 247, 0.66);
  backdrop-filter: blur(18px) saturate(160%);
}

.payment-panel {
  position: relative;
  width: min(430px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  padding: 24px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.56) 54%, rgba(0, 102, 204, 0.06)),
    var(--panel-strong);
  box-shadow:
    0 34px 84px rgba(29, 29, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.recharge-panel {
  width: min(560px, 100%);
}

.confirm-panel {
  width: min(440px, 100%);
}

.confirm-cost {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 102, 204, 0.12);
  border-radius: 18px;
  background: rgba(0, 102, 204, 0.06);
  text-align: center;
}

.confirm-cost strong {
  color: var(--accent);
  font-size: 24px;
}

.confirm-cost span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.recharge-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.recharge-choice {
  min-height: 96px;
  display: grid;
  gap: 6px;
  align-content: center;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 18px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(29, 29, 31, 0.06);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.recharge-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 102, 204, 0.22);
  background: rgba(255, 255, 255, 0.82);
}

.recharge-choice strong {
  font-size: 15px;
}

.recharge-choice span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.task-progress {
  position: relative;
  width: min(320px, 100%);
  height: 10px;
  margin: 10px 0 6px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(236, 242, 250, 0.72)),
    rgba(24, 32, 51, 0.045);
  box-shadow:
    0 12px 28px rgba(0, 102, 204, 0.08),
    inset 0 1px 2px rgba(29, 29, 31, 0.08);
}

.task-progress::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 122, 255, 0.22), transparent 32%),
    radial-gradient(circle at 78% 50%, rgba(36, 178, 107, 0.18), transparent 34%);
  opacity: 0.72;
}

.task-progress span {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 102, 204, 0.92), rgba(36, 178, 107, 0.9) 64%, rgba(120, 214, 255, 0.92));
  box-shadow: 0 0 22px rgba(0, 102, 204, 0.28);
  transition: width 420ms ease;
}

.task-progress.indeterminate::before {
  animation: progressAura 2200ms cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.task-progress.indeterminate span {
  width: 38%;
  min-width: 38%;
  animation: progressSweep 1800ms cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes progressSweep {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

@keyframes progressAura {
  0%,
  100% {
    transform: translateX(-12%) scaleX(0.92);
    opacity: 0.52;
  }
  50% {
    transform: translateX(12%) scaleX(1.05);
    opacity: 0.92;
  }
}

.payment-panel h2 {
  margin: 0;
}

.payment-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 50%;
  color: rgba(24, 32, 51, 0.68);
  background: rgba(255, 255, 255, 0.72);
}

.payment-summary {
  width: 100%;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.payment-summary strong {
  font-size: 22px;
}

.payment-summary span {
  color: var(--muted);
}

.payment-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.payment-success-animation {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
}

.success-ring {
  position: absolute;
  inset: 8px;
  border: 4px solid rgba(0, 122, 255, 0.18);
  border-top-color: #24b26b;
  border-radius: 50%;
  animation: successRing 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.success-check {
  width: 46px;
  height: 24px;
  border-left: 6px solid #24b26b;
  border-bottom: 6px solid #24b26b;
  transform: rotate(-45deg) scale(0.7);
  animation: successCheck 680ms 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes successRing {
  0% {
    opacity: 0;
    transform: rotate(-90deg) scale(0.72);
  }
  65% {
    opacity: 1;
    transform: rotate(18deg) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes successCheck {
  0% {
    opacity: 0;
    transform: rotate(-45deg) scale(0.35) translate(10px, -10px);
  }
  100% {
    opacity: 1;
    transform: rotate(-45deg) scale(1) translate(0, 0);
  }
}

.admin-page {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px);
}

.admin-layout {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.admin-orders {
  display: grid;
  gap: 12px;
}

.admin-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.qr-large {
  width: min(100%, 280px);
  border-radius: 20px;
  background: white;
}

.status {
  color: var(--accent);
  font-weight: 700;
}

.admin-notice {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 50;
  width: min(420px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(109, 40, 63, 0.14);
  border-radius: 22px;
  padding: 18px 22px;
  color: rgba(84, 28, 50, 0.94);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow:
    0 22px 60px rgba(29, 29, 31, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.5;
  text-align: center;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 40;
  width: max-content;
  max-width: min(430px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  padding: 16px 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: var(--shadow), var(--inner);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.5;
  text-align: center;
}

.auth {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 42px);
}

.auth .card {
  width: min(520px, 100%);
  padding: clamp(26px, 4vw, 42px);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.52) 52%, rgba(0, 102, 204, 0.08)),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    0 30px 80px rgba(29, 29, 31, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.auth h1 {
  margin-top: 28px;
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.auth .muted {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.65;
}

.auth .form .btn.primary {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  font-size: 17px;
}

.auth-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  color: rgba(24, 32, 51, 0.58);
  font-size: 14px;
  font-weight: 650;
}

.recover-switch {
  margin-top: 4px;
}

.auth-switch button {
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 780;
  line-height: 1.4;
}

.auth-switch button:hover {
  color: var(--accent-focus);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs button {
  flex: 1;
}

@media (max-width: 1080px) {
  .grid.cols-4,
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html,
  body {
    min-height: 100%;
    overscroll-behavior-y: none;
    background: #f3f6fb;
  }

  #app {
    min-height: 100dvh;
    background:
      linear-gradient(180deg, #f8fbff 0%, #f3f6fb 52%, #eef3f8 100%);
  }

  #fluid-canvas,
  .liquid-veil,
  .lighting-field,
  .pressure-lens {
    display: none;
  }

  .grain {
    display: none;
  }

  body {
    overflow-x: hidden;
  }

  .shell {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    padding: 10px;
    background: transparent;
  }

  .mobile-back-button {
    position: fixed;
    left: 10px;
    top: 12px;
    z-index: 24;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    color: rgba(24, 32, 51, 0.78);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(29, 29, 31, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px) saturate(160%);
    font-size: 34px;
    font-weight: 520;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-back-button.visible {
    opacity: 0.82;
    pointer-events: auto;
    transform: translateX(0);
  }

  .mobile-index-toggle {
    position: fixed;
    right: 10px;
    top: 44%;
    z-index: 24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 42px rgba(29, 29, 31, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px) saturate(160%);
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-index-toggle.visible {
    opacity: 0.9;
    pointer-events: auto;
    transform: translateX(0);
  }

  .mobile-back-button,
  .mobile-index-toggle {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(29, 29, 31, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    will-change: opacity, transform;
  }

  .mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 6px);
    grid-auto-rows: 6px;
    gap: 5px;
  }

  .mobile-menu-grid i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 102, 204, 0.86);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.08);
  }

  .mobile-index-backdrop {
    position: fixed;
    inset: 0;
    z-index: 22;
    display: block;
    background: rgba(24, 32, 51, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .mobile-index-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-index-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 23;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 14px;
    width: min(312px, 84vw);
    height: 100dvh;
    padding: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.68);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 255, 0.76)),
      rgba(255, 255, 255, 0.82);
    box-shadow: -24px 0 60px rgba(29, 29, 31, 0.18);
    transform: translateX(104%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .mobile-index-drawer.open {
    transform: translateX(0);
  }

  .mobile-index-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-index-account {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(0, 102, 204, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    color: rgba(24, 32, 51, 0.62);
    font-size: 12px;
  }

  .mobile-index-account strong {
    color: var(--ink);
    font-size: 15px;
  }

  .mobile-index-account em {
    color: rgba(0, 102, 204, 0.82);
    font-style: normal;
    font-weight: 800;
  }

  .mobile-index-nav {
    overflow-y: auto;
    padding-right: 2px;
  }

  .mobile-index-logout {
    min-height: 38px;
    justify-self: stretch;
  }

  .sidebar {
    display: none;
  }

  .brand {
    margin-bottom: 4px;
  }

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

  .nav button {
    min-height: 38px;
    padding: 0 10px;
    text-align: center;
    font-size: 14px;
  }

  .account {
    gap: 4px;
    padding: 10px;
    border-radius: 18px;
  }

  .account .btn {
    min-height: 36px;
  }

  .main {
    padding: 0 0 24px;
    min-width: 0;
    background: transparent;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .card,
  .form,
  .storyboard-card {
    min-width: 0;
    border-radius: 22px;
    padding: 14px;
  }

  .task-card,
  .creator-results,
  .creator-form {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.74)),
      #f8fbff;
    box-shadow:
      0 8px 24px rgba(24, 32, 51, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .task-card::before {
    display: none;
  }

  .task-list,
  .creator-results {
    transform: translateZ(0);
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field textarea {
    min-height: 118px;
  }

  .choice-trigger,
  .input,
  .field textarea {
    min-width: 0;
    appearance: none;
    -webkit-appearance: none;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92)),
      #ffffff;
    background-size: auto;
    background-position: 0 0;
    animation: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    caret-color: var(--accent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .choice-trigger:hover,
  .choice-select.open .choice-trigger,
  select:hover,
  select:focus {
    animation: none;
  }

  .input:focus,
  .field textarea:focus,
  .choice-select.open .choice-trigger {
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  }

  .image-spec-panel {
    padding: 12px;
    border-radius: 18px;
  }

  .image-spec-panel.collapsed .choice-trigger,
  .image-size-row .input,
  .image-custom-size {
    min-height: 60px;
    border-radius: 20px;
  }

  .storyboard-flowchart {
    padding: 10px;
    border-radius: 16px;
  }

  .storyboard-flowchart img {
    aspect-ratio: auto;
    max-height: 52vh;
  }

  .storyboard-media-actions {
    top: 8px;
    right: 8px;
  }

  .storyboard-media-actions button {
    width: 32px;
    height: 32px;
  }

  .storyboard-card pre {
    max-height: 280px;
  }

  .storyboard-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .storyboard-actions .btn,
  .generate-submit {
    width: 100%;
  }

  .material-thumb {
    width: 68px;
    height: 68px;
  }

  .media-preview-modal {
    padding: 10px;
  }

  .media-preview-panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 20px;
    padding: 12px;
  }

  .media-preview-panel > .payment-close {
    top: 12px;
    right: 12px;
  }

  .media-preview-head {
    grid-template-columns: 1fr auto;
    padding-right: 52px;
  }

  .task-row,
  .record-row {
    grid-template-columns: 1fr;
  }

  .task-heading {
    grid-template-columns: 1fr;
  }

  .task-status,
  .task-complete-line {
    width: 100%;
  }

  .work-preview,
  .text-result {
    width: 100%;
    border-radius: 22px;
  }

  .work-toolbar,
  .work-footer,
  .text-result-head {
    align-items: stretch;
    flex-direction: column;
  }

  .work-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .work-actions .btn,
  .text-result-head .btn {
    width: 100%;
  }

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

  .work-gallery-actions {
    opacity: 1;
    transform: none;
  }

  .payment-box,
  .admin-order {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 255, 0.68)),
      linear-gradient(90deg, rgba(24, 32, 51, 0.026) 1px, transparent 1px),
      linear-gradient(180deg, rgba(24, 32, 51, 0.022) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
  }

  .hero h2 {
    font-size: 30px;
  }

  .hero-diagram {
    min-height: 210px;
    backdrop-filter: none;
  }

  .diagram-node,
  .diagram-chip {
    backdrop-filter: none;
  }

  .diagram-signal {
    animation: none;
  }

  .diagram-node {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .nav button {
    transition: none;
    animation: none !important;
  }

  .badge {
    animation: none !important;
  }
}
