:root {
  --bg: #030711;
  --panel: rgba(18, 26, 42, 0.72);
  --panel-strong: rgba(23, 34, 55, 0.86);
  --line: rgba(148, 176, 220, 0.16);
  --text: #f4f8ff;
  --muted: #9ca8bd;
  --soft: #c7d0df;
  --cyan: #33e8ff;
  --blue: #1578ff;
  --violet: #8747ff;
  --green: #48e0a4;
  --amber: #ffad5c;
  --danger: #ff6f91;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

.nav-subitem[href="landing-create.html"],
.nav-item[href="assets.html"],
[data-project-filter="landing"],
.feature-card[href="landing-create.html"] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 1180px;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 52% 28%, rgba(41, 128, 255, 0.34), transparent 22rem),
    radial-gradient(circle at 83% 8%, rgba(109, 56, 218, 0.2), transparent 18rem),
    linear-gradient(135deg, #050916 0%, #07111e 45%, #030711 100%);
  overflow-x: auto;
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(920px, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 23, 38, 0.92), rgba(8, 14, 24, 0.82));
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  margin: 0 8px 46px;
}

.nav-logo {
  width: 172px;
  height: 44px;
  display: block;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 16px rgba(35, 149, 255, 0.22));
  user-select: none;
}

.nav-list,
.sidebar-bottom {
  display: grid;
  gap: 10px;
}

.sidebar-bottom {
  margin-top: auto;
}

.nav-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  background: transparent;
  border-radius: 8px;
  padding: 0 16px;
  text-align: left;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: #50bdff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item:active {
  transform: translateY(1px);
}

.nav-item.upgrade {
  color: #4da1ff;
}

.nav-group {
  display: grid;
  gap: 8px;
}

.nav-sublist {
  display: grid;
  gap: 6px;
  margin: -2px 0 4px;
  padding-left: 18px;
}

.nav-sublist[hidden] {
  display: none;
}

.nav-subitem {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 18px;
  color: #8290a8;
  border-left: 1px solid rgba(148, 176, 220, 0.2);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-subitem:hover,
.nav-subitem.active {
  color: #50bdff;
  border-color: rgba(80, 189, 255, 0.45);
  background: rgba(255, 255, 255, 0.03);
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}

.icon svg,
.round-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 4px 0;
  padding: 18px 10px 0;
  border-top: 1px solid var(--line);
}

.avatar {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #17294f, #1d365f);
  color: #63caff;
  font-weight: 800;
}

.avatar.compact {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.profile strong,
.profile small {
  display: block;
}

.profile strong {
  font-size: 15px;
}

.profile small {
  margin-top: 3px;
  color: var(--muted);
}

.workspace {
  position: relative;
  padding: 34px 54px 58px;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.domain-pill,
.eyebrow,
.ghost-button,
.primary-small,
.language-toggle,
.round-button,
.text-button,
.primary-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(72, 224, 164, 0.85);
}

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

.user-actions,
.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-actions[hidden],
.user-menu[hidden] {
  display: none;
}

.user-pill {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 6px;
  color: var(--text);
  border: 1px solid rgba(148, 176, 220, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.user-pill strong,
.user-pill small {
  display: block;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.user-pill strong {
  font-size: 13px;
}

.user-pill small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.ghost-button,
.primary-small,
.round-button,
.text-button,
.primary-cta {
  color: var(--text);
}

.ghost-button,
.round-button,
.text-button {
  background: rgba(255, 255, 255, 0.055);
}

.ghost-button,
.primary-small {
  height: 42px;
  padding: 0 18px;
}

.primary-small,
.primary-cta {
  background: linear-gradient(135deg, #0d8bff, #1759ff 68%, #7437ff);
  box-shadow: 0 14px 28px rgba(21, 120, 255, 0.24);
}

.primary-cta:disabled,
.primary-small:disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.primary-cta.is-loading {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-cta.is-loading::before {
  content: "";
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: muse-spin 760ms linear infinite;
  z-index: 1;
}

.primary-cta.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.22) 48%, transparent 62% 100%);
  transform: translateX(-100%);
  animation: muse-sheen 1.45s ease-in-out infinite;
}

.round-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--soft);
  border-radius: 50%;
}

.language-menu-wrap {
  position: relative;
}

.language-toggle {
  color: #d7e9ff;
}

.language-toggle[aria-expanded="true"] {
  color: #54e9ff;
  border-color: rgba(84, 233, 255, 0.36);
  background: rgba(84, 233, 255, 0.1);
}

.language-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-menu {
  position: absolute;
  top: 50px;
  right: 0;
  z-index: 8;
  width: 96px;
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(148, 176, 220, 0.18);
  border-radius: 8px;
  background: rgba(10, 17, 30, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  height: 34px;
  color: var(--muted);
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.language-menu button:hover,
.language-menu button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(18, 129, 255, 0.92), rgba(115, 57, 255, 0.78));
}

.hero {
  position: relative;
  min-height: 292px;
  display: grid;
  place-items: center;
  margin: 12px 0 28px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 50% 18%, rgba(20, 34, 59, 0.22), transparent 34rem);
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -42px;
  width: min(1820px, calc(100% + 720px));
  height: 138px;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border-top: 1px solid rgba(172, 219, 255, 0.28);
  box-shadow:
    0 -1px 6px rgba(225, 242, 255, 0.16),
    0 -10px 22px rgba(74, 149, 255, 0.12);
  opacity: 0.88;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: min(980px, 72%);
  height: 88px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(214, 237, 255, 0.66), rgba(118, 186, 255, 0.22) 20%, rgba(60, 132, 228, 0.08) 38%, transparent 66%);
  filter: blur(12px);
  opacity: 0.72;
  pointer-events: none;
}

.hero-aura {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 13, 24, 0) 0%, rgba(7, 14, 26, 0.04) 56%, rgba(8, 18, 34, 0.12) 100%);
}

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

.hero-aura::before {
  left: 50%;
  bottom: 8px;
  width: min(1960px, calc(100% + 920px));
  height: 226px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 26%, rgba(64, 143, 255, 0.3), rgba(26, 87, 182, 0.14) 18%, rgba(9, 26, 53, 0.05) 34%, transparent 58%),
    radial-gradient(ellipse at 50% 82%, rgba(8, 19, 37, 0) 0 48%, rgba(8, 20, 38, 0.22) 66%, rgba(4, 10, 21, 0.54) 100%);
  filter: blur(18px);
  opacity: 0.86;
}

.hero-aura::after {
  left: 50%;
  bottom: -18px;
  width: min(2080px, calc(100% + 1180px));
  height: 172px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(34, 110, 222, 0.22), rgba(12, 42, 88, 0.08) 28%, rgba(8, 22, 43, 0.02) 46%, transparent 72%);
  filter: blur(26px);
  opacity: 0.42;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 68vw);
  padding: 8px 0 22px;
  text-align: center;
}

.hero-content::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54px;
  width: min(620px, 92%);
  height: 108px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(7, 14, 26, 0.8), rgba(7, 14, 26, 0.26) 58%, transparent 84%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 20px;
  color: #6ee7ff;
  border-color: rgba(101, 190, 255, 0.18);
  background: linear-gradient(180deg, rgba(16, 79, 146, 0.28), rgba(11, 53, 103, 0.22));
  box-shadow:
    0 0 0 1px rgba(126, 203, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(14, 78, 156, 0.12);
  backdrop-filter: blur(12px);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero-logo {
  display: block;
  width: min(430px, 100%);
  height: auto;
  max-height: 126px;
  margin: 12px auto 0;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 18px rgba(90, 187, 255, 0.14))
    drop-shadow(0 16px 30px rgba(24, 102, 211, 0.12));
  user-select: none;
}

.primary-cta {
  height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

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

.section-heading p,
.launch-panel p,
.settings-head p {
  color: #54e9ff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading h2,
.launch-panel h2,
.settings-head h2 {
  margin-top: 7px;
  font-size: 26px;
  line-height: 1.15;
}

.text-button {
  height: 38px;
  padding: 0 14px;
  color: var(--soft);
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
}

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

.feature-card,
.project-card,
.launch-panel,
.metrics-panel,
.coming-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(27, 39, 61, 0.78), rgba(12, 20, 33, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-card {
  min-height: 212px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(80, 189, 255, 0.45);
  background: linear-gradient(145deg, rgba(31, 51, 80, 0.82), rgba(12, 20, 33, 0.8));
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 26px;
  color: #fff;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 20px;
}

.feature-card p {
  min-height: 66px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.arrow-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-top: auto;
  color: var(--soft);
  border-radius: 50%;
  background: transparent;
}

.coming-panel {
  min-height: 212px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(19, 29, 47, 0.72), rgba(9, 16, 28, 0.74)),
    radial-gradient(circle at 88% 0%, rgba(80, 189, 255, 0.14), transparent 11rem);
}

.coming-head p {
  color: #54e9ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.coming-head h3 {
  margin-top: 7px;
  font-size: 18px;
}

.coming-list {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.coming-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(148, 176, 220, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.coming-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #7ddcff;
  background: rgba(80, 189, 255, 0.12);
}

.coming-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coming-item strong,
.coming-item small {
  display: block;
}

.coming-item strong {
  font-size: 14px;
}

.coming-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  margin: 34px 0;
}

.launch-panel,
.metrics-panel {
  min-height: 176px;
}

.launch-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
  background:
    linear-gradient(90deg, rgba(15, 28, 49, 0.84), rgba(8, 16, 30, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(51, 232, 255, 0.18), transparent 17rem);
}

.launch-panel span {
  display: block;
  max-width: 520px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.metrics-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 18px;
}

.metric {
  display: grid;
  gap: 9px;
  padding: 0 18px;
}

.metric + .metric {
  border-left: 1px solid var(--line);
}

.metric strong {
  font-size: 30px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.project-card {
  overflow: hidden;
  background: transparent;
}

.project-thumb {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #0d1422;
}

.project-thumb.has-result {
  background-color: #0d1422;
  background-position: center;
  background-size: cover;
}

.project-thumb.has-result:not(.has-video-result),
.image-preview-card.has-result {
  cursor: zoom-in;
}

.project-thumb.has-result:not(.has-video-result):focus-visible,
.image-preview-card.has-result:focus-visible {
  outline: 2px solid rgba(84, 233, 255, 0.82);
  outline-offset: 3px;
}

.project-thumb.has-result::before,
.project-thumb.has-result::after {
  display: none;
}

.project-thumb.has-video-result video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-thumb::before,
.project-thumb::after {
  content: "";
  position: absolute;
}

.thumb-comic {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px) 0 0 / 33.3% 100%,
    linear-gradient(180deg, #22314d 0%, #08101d 100%);
}

.thumb-comic::before {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.thumb-comic::after {
  right: 22px;
  bottom: 18px;
  width: 74px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.thumb-product {
  background: radial-gradient(circle at 58% 45%, #f4f7fb 0 18%, #8e9bad 19% 20%, transparent 21%), linear-gradient(135deg, #f0f4f7, #aeb8c5);
}

.thumb-product::before {
  left: 32%;
  bottom: 16px;
  width: 82px;
  height: 96px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, #10151d, #f8fbff 24%, #1a202a 25% 29%, #f9fbff 30%);
  box-shadow: 20px 16px 38px rgba(0, 0, 0, 0.22);
}

.thumb-brand {
  background: radial-gradient(circle at 72% 45%, rgba(55, 218, 255, 0.32), transparent 9rem), linear-gradient(135deg, #08101d, #101829);
}

.thumb-brand::before {
  left: 28px;
  top: 30px;
  width: 96px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, #33e8ff, #176eff 58%, #8e36ff);
}

.thumb-brand::after {
  right: 26px;
  bottom: 24px;
  width: 128px;
  height: 12px;
  border-radius: 999px;
  background: rgba(80, 189, 255, 0.78);
  box-shadow: 0 0 26px rgba(80, 189, 255, 0.75);
}

.thumb-landing {
  background: linear-gradient(135deg, #f7f9fc, #e9eef6);
}

.thumb-landing::before {
  left: 24px;
  top: 28px;
  width: 154px;
  height: 18px;
  background: #101828;
  box-shadow: 0 30px 0 #101828, 0 60px 0 rgba(16, 24, 40, 0.22);
}

.thumb-landing::after {
  right: 18px;
  top: 22px;
  width: 90px;
  height: 92px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f88ff, #35e8ff);
}

.project-body {
  padding: 15px 16px 18px;
  background: rgba(6, 12, 22, 0.72);
}

.project-body h3 {
  font-size: 16px;
}

.project-body p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  justify-content: end;
  background: rgba(1, 5, 12, 0.56);
  backdrop-filter: blur(10px);
}

.settings-overlay[hidden] {
  display: none;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(3, 7, 17, 0.72);
  backdrop-filter: blur(18px);
}

.auth-overlay[hidden] {
  display: none;
}

.auth-panel {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(148, 176, 220, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 28, 48, 0.98), rgba(9, 15, 27, 0.98));
  box-shadow: var(--shadow);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.auth-form .field {
  margin-bottom: 0;
}

.auth-message {
  min-height: 18px;
  color: #7ddcff;
  font-size: 13px;
}

.auth-switch {
  justify-self: center;
}

.settings-panel {
  width: 430px;
  height: 100vh;
  padding: 30px;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 25, 43, 0.98), rgba(7, 12, 22, 0.98));
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.46);
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.setting-block {
  display: grid;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.setting-block h3 {
  font-size: 18px;
}

.setting-block p,
.setting-block span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.setting-block.compact {
  gap: 8px;
}

.setting-block.compact strong {
  color: var(--text);
  line-height: 1.4;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.segmented button {
  height: 42px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.segmented button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(18, 129, 255, 0.94), rgba(115, 57, 255, 0.86));
}

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

.more-item {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(148, 176, 220, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.more-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #7ddcff;
  border-radius: 8px;
  background: rgba(80, 189, 255, 0.12);
}

.more-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.more-item strong,
.more-item small {
  display: block;
}

.more-item strong {
  font-size: 14px;
}

.more-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

a.nav-item,
a.feature-card {
  text-decoration: none;
}

.create-workspace {
  padding-bottom: 42px;
}

.create-title {
  margin: 26px 0 18px;
}

.create-title p {
  color: #54e9ff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.create-title h1 {
  margin-top: 8px;
  font-size: 44px;
  line-height: 1.05;
}

.create-title span {
  display: block;
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 410px;
  gap: 20px;
  align-items: start;
}

.tool-panel,
.preview-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(24, 36, 58, 0.82), rgba(10, 17, 29, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tool-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.preview-panel {
  position: sticky;
  top: 28px;
  padding: 20px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

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

.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.field span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 176, 220, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  outline: 0;
}

.field input,
.field select {
  height: 46px;
  padding: 0 13px;
}

.field select option,
select option {
  color: #f4f8ff;
  background: #101827;
}

.field select option:checked,
select option:checked {
  color: #ffffff;
  background: #1759ff;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
  padding: 13px;
  line-height: 1.55;
}

.duration-field {
  align-content: start;
}

.range-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid rgba(148, 176, 220, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.range-row input[type="range"] {
  height: 4px;
  padding: 0;
  border: 0;
  accent-color: var(--blue);
  background: transparent;
}

.range-value {
  color: #dff8ff;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(199, 208, 223, 0.5);
}

.upload-field {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(84, 233, 255, 0.32);
  border-radius: 8px;
  color: var(--text);
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(84, 233, 255, 0.12), transparent 5rem),
    rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.upload-field:hover {
  border-color: rgba(84, 233, 255, 0.55);
  background:
    radial-gradient(circle at 50% 24%, rgba(84, 233, 255, 0.18), transparent 5rem),
    rgba(255, 255, 255, 0.05);
}

.upload-field:active {
  transform: translateY(1px);
}

.upload-field.compact {
  min-height: 104px;
}

.upload-field input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-field span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.upload-field strong {
  color: #e8fbff;
  font-size: 15px;
  font-weight: 800;
}

.upload-note {
  min-height: 18px;
  display: grid;
  gap: 8px;
  color: #8fdcff;
  font-size: 12px;
  line-height: 1.5;
}

.upload-summary {
  color: #8fdcff;
  font-weight: 700;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 108px);
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  max-height: 386px;
  overflow-y: auto;
}

.upload-preview-item {
  position: relative;
  width: 108px;
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
}

.upload-preview-item img {
  display: block;
  width: 108px;
  height: 108px;
  object-fit: cover;
  border: 1px solid rgba(148, 176, 220, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, transform 160ms ease;
}

.upload-preview-item:hover img,
.upload-preview-item:focus-visible img {
  border-color: rgba(84, 233, 255, 0.58);
  transform: translateY(-1px);
}

.upload-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(4, 10, 20, 0.74);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.upload-preview-remove:hover,
.upload-preview-remove:focus-visible {
  border-color: rgba(255, 120, 150, 0.7);
  background: rgba(220, 48, 88, 0.9);
}

.upload-preview-item em {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #d8f5ff;
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview-more strong {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  color: #e8fbff;
  border: 1px solid rgba(148, 176, 220, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 36px;
  background: rgba(2, 7, 16, 0.82);
  backdrop-filter: blur(14px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox figure {
  width: min(920px, 94vw);
  display: grid;
  gap: 12px;
  margin: 0;
}

.image-lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(148, 176, 220, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.image-lightbox figcaption {
  overflow: hidden;
  color: #e8fbff;
  font-size: 13px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148, 176, 220, 0.2);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 26px;
  line-height: 1;
}

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

.upload-box {
  min-height: 126px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 18px;
  color: var(--text);
  text-align: center;
  border: 1px dashed rgba(84, 233, 255, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(84, 233, 255, 0.13), transparent 5rem),
    rgba(255, 255, 255, 0.035);
}

.upload-box.single {
  width: 100%;
}

.upload-box strong {
  font-size: 16px;
}

.upload-box small {
  color: var(--muted);
  line-height: 1.45;
}

.wide {
  width: 100%;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.preview-head span {
  font-weight: 700;
  color: #f7fbff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 14px rgba(80, 189, 255, 0.1);
}

.preview-panel .text-button {
  color: #cfe7ff;
}

.preview-panel .text-button:hover {
  color: #ffffff;
}

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

.image-preview-grid[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.image-preview-grid[data-count="5"],
.image-preview-grid[data-count="6"],
.image-preview-grid[data-count="7"],
.image-preview-grid[data-count="8"],
.image-preview-grid[data-count="9"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-preview-grid[data-count="1"] .image-preview-card {
  aspect-ratio: 16 / 10;
}

.image-preview-card {
  aspect-ratio: 1;
  border: 1px solid rgba(148, 176, 220, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 55% 38%, rgba(255, 255, 255, 0.86) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 58%, rgba(84, 233, 255, 0.28), transparent 6rem),
    linear-gradient(145deg, rgba(15, 35, 61, 0.9), rgba(5, 10, 19, 0.92));
}

.image-preview-card.muted {
  opacity: 0.46;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%) 0 0 / 22px 22px,
    rgba(255, 255, 255, 0.035);
}

.image-preview-card.has-result {
  position: relative;
  background-color: #0d1422;
  background-position: center;
  background-size: cover;
  opacity: 1;
}

.outpaint-result-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 30px;
  padding: 0 10px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(5, 10, 18, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.outpaint-result-btn:hover {
  border-color: rgba(84, 233, 255, 0.62);
  background: rgba(17, 93, 170, 0.82);
}

.outpaint-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 7, 16, 0.82);
  backdrop-filter: blur(14px);
}

.outpaint-modal-card {
  width: min(1180px, 96vw);
  border: 1px solid rgba(148, 176, 220, 0.18);
  border-radius: 8px;
  background: rgba(9, 16, 29, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.outpaint-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(148, 176, 220, 0.12);
}

.outpaint-modal-head h3 {
  margin: 0;
  color: #f7fbff;
  font-size: 20px;
}

.outpaint-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
  padding: 20px;
}

.outpaint-modal-stage {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(148, 176, 220, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%) 0 0 / 22px 22px,
    rgba(255, 255, 255, 0.035);
}

.outpaint-modal-preview {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 100%;
}

.outpaint-modal-canvas {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid rgba(84, 233, 255, 0.46);
  border-radius: 8px;
  background: rgba(84, 233, 255, 0.08);
  cursor: nwse-resize;
  touch-action: none;
  transition: width 120ms ease, height 120ms ease;
}

.outpaint-modal-original {
  position: absolute;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
  pointer-events: none;
  transition: width 120ms ease, height 120ms ease, left 120ms ease, top 120ms ease;
}

.outpaint-modal-original img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.outpaint-size-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 8px;
  color: #e8fbff;
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.outpaint-handle {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(84, 233, 255, 0.95);
  box-shadow: 0 0 18px rgba(84, 233, 255, 0.52);
}

.outpaint-handle-tl {
  top: -6px;
  left: -6px;
  cursor: nwse-resize;
}

.outpaint-handle-tr {
  top: -6px;
  right: -6px;
  cursor: nesw-resize;
}

.outpaint-handle-bl {
  bottom: -6px;
  left: -6px;
  cursor: nesw-resize;
}

.outpaint-handle-br {
  right: -6px;
  bottom: -6px;
  cursor: nwse-resize;
}

.is-outpaint-dragging,
.is-outpaint-dragging * {
  cursor: nwse-resize !important;
  user-select: none;
}

.outpaint-modal-form {
  display: grid;
  align-content: start;
  gap: 14px;
}

.outpaint-error {
  margin: 0;
  color: #ffb4b4;
  font-size: 13px;
}

.image-preview-grid.is-generating .image-preview-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(84, 233, 255, 0.34);
  opacity: 1;
  animation: muse-pulse 1.18s ease-in-out infinite;
}

.image-preview-grid.is-generating .image-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 36%, rgba(84, 233, 255, 0.24) 48%, transparent 62% 100%);
  transform: translateX(-100%);
  animation: muse-sheen 1.7s ease-in-out infinite;
}

.image-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.outpaint-ratios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.outpaint-ratio-btn {
  min-height: 38px;
  border: 1px solid rgba(148, 176, 220, 0.16);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.outpaint-ratio-btn.active {
  color: #ffffff;
  border-color: rgba(84, 233, 255, 0.44);
  background: linear-gradient(135deg, rgba(18, 129, 255, 0.72), rgba(115, 57, 255, 0.62));
}

.video-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.video-tabs button {
  min-height: 44px;
  color: var(--muted);
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

.video-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(18, 129, 255, 0.94), rgba(115, 57, 255, 0.8));
}

.support-note {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(84, 233, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(84, 233, 255, 0.08), rgba(115, 57, 255, 0.06)),
    rgba(255, 255, 255, 0.025);
}

.support-note strong {
  color: #dff8ff;
  font-size: 14px;
}

.support-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

[data-video-panel] {
  display: grid;
  gap: 18px;
}

[data-video-panel][hidden] {
  display: none;
}

.check-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 14px;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.video-preview {
  position: relative;
  overflow: hidden;
  height: 230px;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  border: 1px solid rgba(148, 176, 220, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(84, 233, 255, 0.2), transparent 9rem),
    linear-gradient(145deg, rgba(13, 24, 42, 0.92), rgba(5, 10, 18, 0.94));
}

.video-preview span {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d8bff, #7437ff);
  clip-path: polygon(28% 18%, 28% 82%, 82% 50%);
}

.video-preview.draft-preview span {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 1px),
    linear-gradient(135deg, #0d8bff, #7437ff);
  clip-path: none;
}

.video-preview.draft-preview span::before,
.video-preview.draft-preview span::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.video-preview.draft-preview span::before {
  top: 18px;
  box-shadow: 0 8px 0 rgba(255, 255, 255, 0.52);
}

.video-preview.draft-preview span::after {
  top: 34px;
  right: 22px;
}

.video-preview.is-generating {
  border-color: rgba(84, 233, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(84, 233, 255, 0.08), 0 0 38px rgba(24, 129, 255, 0.18);
}

.video-preview.is-generating::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(84, 233, 255, 0.18) 48%, transparent 62% 100%),
    radial-gradient(circle at 50% 46%, rgba(84, 233, 255, 0.18), transparent 8rem);
  transform: translateX(-100%);
  animation: muse-sheen 1.8s ease-in-out infinite;
}

.video-preview.is-generating span {
  animation: muse-pulse 1.05s ease-in-out infinite;
}

.video-preview.has-result {
  background-color: #0d1422;
  background-position: center;
  background-size: cover;
}

.video-preview.has-result::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.04), rgba(5, 10, 18, 0.62));
}

.video-preview.has-result span {
  display: none;
}

.video-preview.has-video-result {
  place-content: stretch;
  padding: 0;
}

.video-preview.has-video-result::after {
  display: none;
}

.video-preview.has-video-result .result-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  z-index: 2;
}

.video-preview.has-result strong,
.video-preview.has-result small {
  position: relative;
  z-index: 1;
}

.video-preview.has-video-result strong,
.video-preview.has-video-result small {
  display: none;
}

.video-preview.is-generating strong::after {
  content: "";
  display: inline-block;
  width: 18px;
  text-align: left;
  animation: muse-dots 1.2s steps(4, end) infinite;
}

.video-preview small,
.queue-list span,
.preview-status span {
  color: var(--muted);
}

.video-preview[data-tone="warn"] small {
  color: #ffca65;
}

.video-preview strong {
  color: #f7fbff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.video-preview small {
  color: #d4deef;
}

.queue-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.preview-status {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 176, 220, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.video-preview.is-generating + .preview-status {
  border-color: rgba(84, 233, 255, 0.26);
  background: linear-gradient(135deg, rgba(84, 233, 255, 0.08), rgba(115, 57, 255, 0.06));
}

.preview-status span {
  font-size: 13px;
  line-height: 1.55;
}

.preview-status span:first-child {
  color: #e5f7ff;
  font-weight: 800;
}

.preview-action {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  color: #e8fbff;
  border-color: rgba(84, 233, 255, 0.28);
  background: rgba(84, 233, 255, 0.08);
}

.queue-list span {
  padding: 10px 12px;
  border: 1px solid rgba(148, 176, 220, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
}

.queue-list strong,
.queue-list small {
  display: block;
}

.queue-list strong {
  color: var(--soft);
  font-size: 13px;
}

.queue-list small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-preview {
  min-height: 420px;
  padding: 24px;
  border: 1px solid rgba(148, 176, 220, 0.16);
  border-radius: 8px;
  background: linear-gradient(160deg, #f8fbff, #dfe8f6);
}

.landing-nav,
.landing-hero-line,
.landing-copy-line,
.landing-cta,
.landing-card-row span {
  border-radius: 999px;
  background: #101828;
}

.landing-nav {
  width: 160px;
  height: 14px;
  opacity: 0.28;
}

.landing-hero-line {
  width: 82%;
  height: 34px;
  margin-top: 58px;
}

.landing-copy-line {
  width: 58%;
  height: 14px;
  margin-top: 20px;
  opacity: 0.42;
}

.landing-cta {
  width: 132px;
  height: 38px;
  margin-top: 28px;
  background: linear-gradient(135deg, #0d8bff, #35e8ff);
}

.landing-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 72px;
}

.landing-card-row span {
  height: 92px;
  border-radius: 8px;
  opacity: 0.16;
}

.library-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(24, 36, 58, 0.82), rgba(10, 17, 29, 0.76)),
    radial-gradient(circle at 100% 0%, rgba(51, 232, 255, 0.1), transparent 18rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.library-head p {
  color: #54e9ff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.library-head h2 {
  margin-top: 7px;
  font-size: 26px;
}

.project-table {
  display: grid;
  gap: 12px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.project-filters button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid rgba(148, 176, 220, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

.project-filters button.active {
  color: #fff;
  border-color: rgba(84, 233, 255, 0.36);
  background: linear-gradient(135deg, rgba(18, 129, 255, 0.94), rgba(115, 57, 255, 0.8));
}

.project-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 14px;
  height: 104px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 176, 220, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.project-row > div:not(.project-thumb) {
  min-width: 0;
  overflow: hidden;
}

.project-row .link-button {
  justify-self: end;
}

.project-thumb.mini {
  width: 116px;
  height: 78px;
  border-radius: 8px;
}

.project-row h3,
.asset-card h3 {
  font-size: 17px;
}

.project-row h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-row p,
.asset-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.project-meta {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.project-meta span {
  flex: 0 0 auto;
}

.project-meta span:last-child {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(199, 208, 223, 0.4);
}

.project-empty {
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(148, 176, 220, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  color: #7ddcff;
  border: 1px solid rgba(84, 233, 255, 0.24);
  border-radius: 999px;
  background: rgba(84, 233, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.asset-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(4, auto);
  gap: 10px;
  margin-bottom: 18px;
}

.asset-toolbar input {
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid rgba(148, 176, 220, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  outline: 0;
}

.asset-toolbar input::placeholder {
  color: rgba(199, 208, 223, 0.5);
}

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

.asset-card {
  padding: 12px;
  border: 1px solid rgba(148, 176, 220, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.asset-thumb {
  height: 170px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 176, 220, 0.12);
}

.asset-product {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
    linear-gradient(135deg, #dfe8f6, #a8b5c7);
}

.asset-reference {
  background:
    radial-gradient(circle at 70% 25%, rgba(51, 232, 255, 0.24), transparent 8rem),
    linear-gradient(145deg, #07101f, #152544);
}

.asset-generated {
  background:
    radial-gradient(circle at 50% 44%, rgba(84, 233, 255, 0.22), transparent 7rem),
    linear-gradient(145deg, rgba(19, 34, 58, 0.95), rgba(4, 8, 16, 0.95));
}

.asset-brand {
  background:
    radial-gradient(circle at 48% 45%, rgba(51, 232, 255, 0.2), transparent 8rem),
    linear-gradient(135deg, #07101f, #020610);
  position: relative;
}

.asset-brand::before {
  content: "M";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #56e7ff;
  font-size: 78px;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-shadow: 0 0 28px rgba(51, 232, 255, 0.52);
}

@media (max-width: 1260px) {
  body {
    min-width: 1060px;
  }

  .app-shell {
    grid-template-columns: 232px minmax(820px, 1fr);
  }

  .workspace {
    padding-inline: 34px;
  }

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

  .workflow-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1300px) {
  .video-tabs {
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  }

  .form-grid.two:has([data-model-select]) {
    grid-template-columns: minmax(250px, 1.45fr) minmax(110px, 0.55fr);
  }
}

@media (max-width: 900px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .app-shell {
    grid-template-columns: 188px minmax(0, 1fr);
  }

  .sidebar {
    padding: 24px 10px 18px;
  }

  .brand {
    margin: 0 8px 32px;
  }

  .nav-logo {
    width: 150px;
  }

  .nav-item {
    gap: 10px;
    padding: 0 12px;
  }

  .nav-sublist {
    padding-left: 12px;
  }

  .workspace {
    min-width: 0;
    padding: 26px 20px 44px;
  }

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

  .create-title {
    margin-top: 36px;
  }

  .create-title h1 {
    font-size: 36px;
  }

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

  .preview-panel {
    position: static;
  }

  .video-tabs {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  }

  .video-tabs button {
    min-height: 44px;
    padding: 0 8px;
  }

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

@media (max-width: 640px) {
  .app-shell {
    grid-template-columns: 164px minmax(0, 1fr);
  }

  .nav-logo {
    width: 132px;
  }

  .nav-item {
    min-height: 44px;
    font-size: 14px;
  }

  .workspace {
    padding-inline: 16px;
  }

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

  .form-grid.two,
  .form-grid.three,
  .form-grid.four,
  .upload-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .upload-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(96px, 108px));
  }

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

html,
body {
  min-width: 1180px;
  min-height: 720px;
  overflow: auto;
}

.app-shell {
  min-width: 1180px;
  min-height: 720px;
}

.sidebar {
  min-height: 720px;
}

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

@keyframes muse-sheen {
  0% {
    transform: translateX(-100%);
  }
  54%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes muse-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.08);
    filter: brightness(1.22);
  }
}

@keyframes muse-dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75%,
  100% {
    content: "...";
  }
}
