:root {
  --color-ink: #f6f1ff;
  --color-graphite: #a99dc2;
  --color-fog: #08070d;
  --color-snow: #14101d;
  --color-obsidian: #030207;
  --color-silver-mist: #312445;
  --color-azure: #8f63ff;
  --color-cobalt-link: #c7adff;
  --gradient-citrus: linear-gradient(184deg, rgb(3, 2, 7) 0%, rgb(39, 24, 68) 38%, rgb(112, 74, 210) 72%, rgb(195, 151, 255) 100%);
  --finish-silver: #dce8e5;
  --finish-blush: #f2b8a7;
  --finish-citrus: #b7df74;
  --finish-indigo: #6c9ad5;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-text: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --page-max-width: 1200px;
  --radius-card: 28px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-fog);
  color: var(--color-ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-fog);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.1px;
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

#home-view .feed-heading {
  display: none;
}

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

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.nav-auth {
  background: transparent;
  color: var(--color-ink);
  padding: 0;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.26px;
}

.global-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 44px;
  background: rgba(232, 224, 247, 0.86);
  backdrop-filter: blur(20px);
}

.global-nav nav {
  width: min(var(--page-max-width), calc(100% - 24px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.global-nav a {
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.26px;
  white-space: nowrap;
}

.global-nav a.active {
  color: var(--color-cobalt-link);
  font-weight: 600;
}

.global-nav .mark {
  font-weight: 600;
  font-size: 14px;
}

.nav-search {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 220px;
}

.nav-search input {
  width: min(390px, 100%);
  height: 34px;
  border: 1px solid rgba(232, 222, 214, 0.9);
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 244, 0.78);
  color: var(--color-ink);
  font: inherit;
  font-size: 13px;
  outline: none;
  padding: 0 16px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-search input:focus {
  border-color: rgba(110, 90, 230, 0.55);
  background: var(--color-snow);
  box-shadow: 0 0 0 4px rgba(110, 90, 230, 0.1);
}

.nav-account {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-upload {
  display: none;
  border-radius: var(--radius-pill);
  background: var(--color-obsidian);
  color: var(--color-snow);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.avatar-button,
.profile-avatar {
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, #e6ffb8, transparent 28%),
    linear-gradient(145deg, #0f8f7f, #6c9ad5 48%, #ff7c67);
}

.avatar-button {
  display: none;
  width: 34px;
  height: 34px;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  display: none;
  width: 192px;
  border: 1px solid var(--color-silver-mist);
  border-radius: 12px;
  background: var(--color-snow);
  padding: 8px;
}

.profile-menu.open {
  display: block;
}

.profile-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background: transparent;
  color: var(--color-ink);
  padding: 10px 8px;
  text-align: left;
}

.profile-menu button:hover {
  background: var(--color-fog);
}

body.signed-in .nav-auth {
  display: none;
}

body.signed-in .nav-upload,
body.signed-in .avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-nav { display: none; }

.product-nav-inner {
  width: min(var(--page-max-width), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.product-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.004em;
}

.product-nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.product-nav a {
  position: relative;
  font-size: 14px;
  letter-spacing: -0.04px;
}

.product-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 3px;
  background: var(--color-ink);
}

.product-nav button,
.studio-copy button {
  border-radius: var(--radius-pill);
  background: var(--color-azure);
  color: var(--color-snow);
  padding: 8px 16px;
  font-size: 17px;
}

.hero {
  min-height: auto;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 56px 24px 40px;
  text-align: center;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.36px;
}

.hero h1 {
  max-width: 1080px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -2.11px;
}

.hero-copy {
  max-width: 650px;
  margin: 20px 0 18px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.dark-cta {
  border-radius: var(--radius-pill);
  background: var(--color-obsidian);
  color: var(--color-snow);
  padding: 8px 16px;
}

.home-banner {
  width: min(var(--page-max-width), calc(100% - 40px));
  min-height: 430px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 214, 111, 0.46), transparent 24%),
    radial-gradient(circle at 14% 18%, rgba(154, 113, 255, 0.42), transparent 28%),
    radial-gradient(circle at 58% 104%, rgba(63, 195, 183, 0.32), transparent 34%),
    linear-gradient(135deg, #fdfbff 0%, #e9dcff 46%, #c6b2f0 100%);
  box-shadow: 0 34px 90px rgba(74, 55, 120, 0.18);
  padding: 56px;
}

.home-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
  pointer-events: none;
}

.home-banner::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 253, 248, 0.72), rgba(251, 253, 248, 0));
  pointer-events: none;
}

.home-banner-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.home-banner-copy p {
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(21, 31, 34, 0.08);
  border-radius: 999px;
  background: rgba(251, 253, 248, 0.72);
  color: #4f348a;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(18px);
}

.home-banner-copy h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-display);
  color: #17111f;
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 850;
  line-height: 0.82;
  letter-spacing: 0;
}

.home-banner-copy span {
  max-width: 560px;
  color: rgba(23, 17, 31, 0.72);
  font-size: 21px;
  line-height: 1.48;
}

.home-banner-panel {
  position: relative;
  z-index: 1;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
  transform: rotate(-2deg);
}

.panel-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(21, 31, 34, 0.06), rgba(21, 31, 34, 0)),
    radial-gradient(circle at 68% 32%, #f7d56f 0 10%, transparent 11%),
    linear-gradient(135deg, #151f22 0%, #4f348a 52%, #f7c8be 100%);
  box-shadow: 0 30px 70px rgba(49, 32, 88, 0.24);
}

.panel-media::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 10%;
  height: 42%;
  border-radius: 22px;
  background: rgba(251, 253, 248, 0.18);
  backdrop-filter: blur(18px);
}

.panel-media::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(251, 253, 248, 0.26);
  border-radius: 22px;
}

.panel-media span {
  position: absolute;
  display: block;
  border-radius: 20px;
  background: rgba(251, 253, 248, 0.86);
  box-shadow: 0 18px 40px rgba(21, 31, 34, 0.14);
}

.panel-media span:first-child {
  left: 12%;
  top: 15%;
  width: 40%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #fdf6f1, #f0b7c8);
}

.panel-media span:nth-child(2) {
  right: 10%;
  top: 24%;
  width: 34%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #effff6, #7dd7ca);
}

.panel-media span:nth-child(3) {
  left: 22%;
  bottom: 13%;
  width: 54%;
  height: 13%;
  border-radius: 999px;
  background: rgba(251, 253, 248, 0.9);
}

.panel-parts {
  display: grid;
  gap: 10px;
  align-content: center;
}

.panel-parts span {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(251, 253, 248, 0.72);
  color: #251b36;
  padding: 16px 15px;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 16px 36px rgba(49, 32, 88, 0.12);
  backdrop-filter: blur(18px);
}

.panel-parts span:nth-child(2) {
  transform: translateX(-18px);
}

.panel-parts span:nth-child(3) {
  transform: translateX(10px);
}

.panel-parts span:nth-child(4) {
  background: #17111f;
  color: var(--color-snow);
}

.hero-gallery {
  width: min(980px, 92vw);
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  grid-template-rows: 220px 220px;
  gap: 18px;
}

.hero-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-snow);
  padding: 28px;
  text-align: left;
}

.hero-tile span {
  display: block;
  color: var(--color-graphite);
  font-size: 14px;
  letter-spacing: -0.04px;
}

.hero-tile strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 430px;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.6px;
}

.tile-large {
  grid-row: span 2;
  min-height: 458px;
  background:
    radial-gradient(circle at 52% 58%, rgba(183, 223, 116, 0.9) 0 16%, transparent 17%),
    radial-gradient(circle at 52% 58%, rgba(0, 0, 0, 0.95) 0 34%, transparent 35%),
    var(--color-snow);
}

.tile-video {
  background:
    linear-gradient(135deg, rgba(16, 23, 25, 0.96), rgba(15, 143, 127, 0.52), rgba(108, 154, 213, 0.58)),
    var(--color-obsidian);
  color: var(--color-snow);
}

.tile-video span {
  color: rgba(255, 255, 255, 0.68);
}

.tile-video::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: 34px;
  border-left: 38px solid var(--color-snow);
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
}

.tile-note {
  background: var(--color-snow);
}

.tile-note p {
  margin: 18px 0 0;
  color: var(--color-graphite);
  font-size: 17px;
}

.intro-band,
.specs-section,
.submit-section {
  background: var(--color-snow);
}

.intro-band,
.submit-section {
  padding: 96px 24px;
}

.section-heading {
  width: min(var(--page-max-width), calc(100% - 40px));
  margin: 0 auto;
}

.section-heading.centered {
  text-align: center;
}

.section-heading h2 {
  max-width: 860px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.9px;
}

.section-heading.centered h2,
.section-heading.centered p {
  margin-left: auto;
  margin-right: auto;
}

.section-heading p {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--color-graphite);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.feature-grid {
  width: min(var(--page-max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 120px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  min-height: 360px;
  border-radius: var(--radius-card);
  background: var(--color-snow);
  padding: 28px;
}

.feature-card h3 {
  max-width: 440px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.6px;
}

.feature-card p {
  max-width: 470px;
  margin: 14px 0 0;
  color: var(--color-graphite);
}

.feature-card a {
  display: inline-block;
  margin-top: 20px;
  color: var(--color-cobalt-link);
}

.visual-card {
  display: grid;
  align-content: space-between;
}

.mini-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 148px;
  margin-bottom: 28px;
}

.mini-gallery span {
  border-radius: 18px;
  background: var(--color-fog);
}

.mini-gallery span:first-child {
  grid-row: span 2;
  background: linear-gradient(160deg, #101719, #b7df74);
}

.mini-gallery span:nth-child(2) {
  background: linear-gradient(160deg, #f2b8a7, #fbfdf8);
}

.mini-gallery span:nth-child(3) {
  background: linear-gradient(160deg, #6c9ad5, #edf4f2);
}

.compact-spec {
  margin: 28px 0 0;
  border-top: 1px solid var(--color-silver-mist);
}

.compact-spec div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-silver-mist);
}

.compact-spec dt,
.compact-spec dd {
  margin: 0;
  font-size: 14px;
}

.compact-spec dt {
  color: var(--color-graphite);
}

.dark-card {
  background: var(--color-obsidian);
  color: var(--color-snow);
}

.dark-card p {
  color: rgba(255, 255, 255, 0.72);
}

.dark-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.dark-lines span {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  padding: 12px 14px;
  font-size: 14px;
}

.gradient-showcase {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 48px;
  padding: 96px 24px;
  text-align: center;
  color: var(--color-snow);
}

.gradient-showcase.citrus {
  background: var(--gradient-citrus);
}

.gradient-showcase h2 {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 56px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.9px;
}

.gradient-showcase p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.swatches {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--finish-silver);
}

.swatch.blush {
  background: var(--finish-blush);
}

.swatch.citrus {
  background: var(--finish-citrus);
}

.swatch.indigo {
  background: var(--finish-indigo);
}

.swatch.selected {
  outline: 3px solid var(--color-snow);
  outline-offset: 3px;
}

.prompt-display {
  width: min(760px, 88vw);
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.3);
  text-align: left;
}

.prompt-display div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-ink);
}

.prompt-display span {
  color: var(--color-graphite);
  font-size: 14px;
}

.prompt-display strong {
  font-weight: 600;
}

.studio-section {
  padding: 120px 24px;
}

.studio-card {
  width: min(var(--page-max-width), calc(100% - 40px));
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  border-radius: var(--radius-card);
  background: var(--color-snow);
  padding: 28px;
}

.studio-preview {
  min-height: 460px;
  position: relative;
  border-radius: var(--radius-card);
  background: var(--color-fog);
  overflow: hidden;
}

.preview-window {
  position: absolute;
  left: 9%;
  top: 12%;
  width: 64%;
  height: 58%;
  border-radius: 24px;
  background: linear-gradient(160deg, #101719, #0f8f7f 48%, #edf4f2);
}

.preview-panel {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 42%;
  height: 46%;
  border-radius: 24px;
  background: var(--color-snow);
}

.studio-copy {
  padding: 28px;
}

.new-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
}

.studio-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.9px;
}

.studio-copy p:not(.new-label) {
  margin: 18px 0 24px;
  color: var(--color-graphite);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
}

.submit-section {
  padding-bottom: 140px;
}

.feed-section {
  width: min(var(--page-max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 140px;
}

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

.feed-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.9px;
}

.feed-heading p {
  max-width: 360px;
  margin: 0;
  color: var(--color-graphite);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.upload-composer {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  margin-bottom: 28px;
  border-radius: var(--radius-card);
  background: var(--color-snow);
  padding: 28px;
}

.composer-copy span {
  display: block;
  color: var(--color-graphite);
  font-size: 14px;
}

.composer-copy h2 {
  max-width: 440px;
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.6px;
}

.composer-copy p {
  margin: 0;
  color: var(--color-graphite);
}

.composer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.composer-form label {
  display: grid;
  gap: 7px;
  color: var(--color-graphite);
  font-size: 14px;
}

.composer-form input,
.composer-form textarea {
  width: 100%;
  border: 1px solid var(--color-silver-mist);
  border-radius: 16px;
  background: var(--color-fog);
  color: var(--color-ink);
  font: inherit;
  padding: 12px 14px;
}

.composer-form textarea {
  min-height: 116px;
  resize: vertical;
}

.image-drop,
.wide-field {
  grid-column: span 2;
}

.image-drop {
  position: relative;
  min-height: 132px;
  align-content: center;
  justify-items: center;
  border: 1px dashed var(--color-silver-mist);
  border-radius: 22px;
  background: var(--color-fog);
  text-align: center;
  overflow: hidden;
}

.image-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-drop span {
  border-radius: var(--radius-pill);
  background: var(--color-obsidian);
  color: var(--color-snow);
  padding: 8px 16px;
}

.image-drop strong {
  color: var(--color-graphite);
  font-weight: 400;
}

.composer-form button[type="submit"] {
  grid-column: span 2;
  min-height: 46px;
  border-radius: var(--radius-pill);
  background: var(--color-azure);
  color: var(--color-snow);
}

.feed-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(209, 197, 232, 0.82);
  border-radius: 18px;
  background: var(--color-snow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  animation: card-dissolve 0.52s ease forwards;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(132, 92, 226, 0.96);
  box-shadow:
    0 0 0 3px rgba(132, 92, 226, 0.22),
    0 18px 46px rgba(86, 58, 150, 0.24);
}

.feed-card:nth-child(2) { animation-delay: 0.04s; }
.feed-card:nth-child(3) { animation-delay: 0.08s; }
.feed-card:nth-child(4) { animation-delay: 0.12s; }
.feed-card:nth-child(5) { animation-delay: 0.16s; }
.feed-card:nth-child(6) { animation-delay: 0.2s; }
.feed-card:nth-child(7) { animation-delay: 0.24s; }
.feed-card:nth-child(8) { animation-delay: 0.28s; }

@keyframes card-dissolve {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feed-card.large {
  grid-row: span 2;
}

.feed-card.wide {
  grid-column: span 2;
}

.feed-media {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-fog);
}

.feed-card.large .feed-media {
  aspect-ratio: 3 / 5;
}

.feed-card.wide .feed-media {
  aspect-ratio: 16 / 10;
}

.type-label {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 2;
  color: rgba(21, 31, 34, 0.72);
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.04px;
}

.type-video {
  color: rgba(255, 255, 255, 0.78);
}

.type-detailed {
  color: rgba(21, 31, 34, 0.72);
}

.media-tracking .type-label,
.media-timeline .type-label,
.media-documentary .type-label,
.media-anime .type-label {
  color: var(--color-snow);
}

.media-object {
  position: absolute;
  display: block;
}

.media-product {
  background:
    radial-gradient(circle at 50% 58%, var(--finish-citrus) 0 14%, transparent 15%),
    radial-gradient(circle at 50% 58%, #000 0 34%, transparent 35%),
    var(--color-snow);
}

.bottle {
  left: 50%;
  bottom: 16%;
  width: 92px;
  height: 218px;
  transform: translateX(-50%);
  border-radius: 28px 28px 12px 12px;
  background: linear-gradient(180deg, #fff, #d7d7dc);
}

.media-tracking {
  background: linear-gradient(145deg, #101719, #0f8f7f 55%, #6c9ad5 82%, #071012);
}

.play-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 42px solid var(--color-snow);
  border-top: 28px solid transparent;
  border-bottom: 28px solid transparent;
}

.media-portrait {
  background: linear-gradient(180deg, #ffffff, #edf4f2);
}

.portrait {
  left: 50%;
  bottom: 0;
  width: 132px;
  height: 192px;
  transform: translateX(-50%);
  border-radius: 80px 80px 20px 20px;
  background: linear-gradient(180deg, #f2b8a7, #fff);
}

.media-timeline {
  background: #000;
}

.timeline-prompt {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  padding: 20px;
  color: var(--color-ink);
}

.timeline-prompt strong {
  font-size: 14px;
}

.timeline-prompt span {
  color: var(--color-graphite);
  font-size: 14px;
}

.media-architecture {
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(0, 0, 0, 0.08) 22% 23%, transparent 23% 76%, rgba(0, 0, 0, 0.08) 76% 77%, transparent 77%),
    linear-gradient(180deg, #fff, #f2f2f4);
}

.media-food {
  background:
    radial-gradient(circle at 50% 52%, #fff 0 23%, #e8e8ed 24% 34%, transparent 35%),
    var(--color-fog);
}

.plate {
  left: 50%;
  top: 52%;
  width: 154px;
  height: 154px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 16px solid var(--color-snow);
  background: #d7d7dc;
}

.media-fashion {
  background: linear-gradient(135deg, #f5f5f7, #ffffff);
}

.figure {
  left: 50%;
  bottom: 0;
  width: 74px;
  height: 205px;
  transform: translateX(-50%);
  border-radius: 44px 44px 0 0;
  background: linear-gradient(180deg, #101719, #6c9ad5);
}

.media-aerial {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,0,0,0.08) 1px, transparent 1px),
    var(--color-snow);
  background-size: 34px 34px;
}

.media-blush {
  background:
    radial-gradient(circle at 50% 52%, rgba(242, 184, 167, 0.92), transparent 27%),
    linear-gradient(180deg, #fff, #edf4f2);
}

.orb {
  left: 50%;
  top: 50%;
  width: 230px;
  height: 230px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #f2b8a7 56%, #0f8f7f);
}

.media-documentary {
  background: linear-gradient(145deg, #101719, #26373b, #0f8f7f);
}

.media-anime {
  background:
    linear-gradient(135deg, transparent 0 24%, #101719 24% 28%, transparent 28% 52%, #6c9ad5 52% 58%, transparent 58%),
    var(--color-snow);
}

.media-product-line {
  background: var(--color-snow);
}

.prompt-lines {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 10px;
}

.prompt-lines span {
  border-radius: 18px;
  background: var(--color-fog);
  padding: 14px 16px;
  color: var(--color-graphite);
  font-size: 14px;
}

.feed-copy {
  padding: 16px;
}

.feed-copy > span {
  color: var(--color-graphite);
  font-size: 12px;
}

.feed-copy h3 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.16px;
}

.feed-copy p {
  margin: 0;
  color: var(--color-graphite);
  font-size: 13px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.feed-tag-row span {
  border-radius: var(--radius-pill);
  background: var(--color-fog);
  color: var(--color-graphite);
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1;
}

.feed-tag-row .mood-chip {
  color: var(--color-ink);
  font-weight: 600;
}

.mood-warm {
  background: #ffe2c5;
}

.mood-dark {
  background: #d9dde0;
}

.mood-green {
  background: #dcefc9;
}

.mood-rose {
  background: #f8d8dc;
}

.mood-blue {
  background: #d7e7ff;
}

.mood-violet {
  background: #e7ddff;
}

.mood-minimal {
  background: #e7eeec;
}

.mood-gold {
  background: #f5e4b7;
}

.feed-tag-row .hashtag-chip {
  background: rgba(15, 143, 127, 0.1);
  color: var(--color-cobalt-link);
}

.hover-peek {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: rgba(251, 253, 248, 0.9);
  color: var(--color-ink);
  padding: 12px;
  opacity: 0;
  transform: translateY(8px);
  backdrop-filter: blur(16px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.hover-peek strong {
  font-size: 12px;
}

.hover-peek p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--color-graphite);
  font-size: 12px;
  line-height: 1.42;
}

.feed-card:hover .hover-peek {
  opacity: 1;
  transform: translateY(0);
}

.uploaded-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.embedded-media {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.external-media {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-content: center;
  gap: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(15, 143, 127, 0.28), transparent 34%),
    linear-gradient(145deg, #101719, #24444a);
  color: var(--color-snow);
  text-align: center;
}

.external-media strong {
  font-size: 24px;
}

.external-media span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.feed-card video.uploaded-media,
.feed-card .embedded-media {
  pointer-events: none;
}

.feed-title-reveal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 54px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.feed-card:hover .feed-title-reveal {
  opacity: 1;
  transform: translateY(0);
}

.detail-delete-button {
  background: #b33a31 !important;
}

.detail-delete-button[hidden] {
  display: none;
}

.detail-view {
  display: none;
  width: min(1760px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.upload-view,
.profile-view,
.category-view,
.deep-view {
  display: none;
  width: min(1540px, calc(100% - 80px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.upload-view.active,
.profile-view.active,
.category-view.active,
.deep-view.active {
  display: block;
}

.detail-view.active {
  display: block;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  background: transparent;
  color: var(--color-graphite);
  font-size: 14px;
}

.deep-upload {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  margin-top: 28px;
}

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

.deep-process article {
  min-height: 220px;
  border-radius: var(--radius-card);
  background: var(--color-snow);
  padding: 24px;
}

.deep-process span {
  color: var(--color-cobalt-link);
  font-weight: 700;
}

.deep-process h3 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.36px;
}

.deep-process p {
  margin: 0;
  color: var(--color-graphite);
}

.deep-form {
  display: grid;
  gap: 14px;
  border-radius: var(--radius-card);
  background: var(--color-snow);
  padding: 28px;
}

.deep-form label {
  display: grid;
  gap: 8px;
  color: var(--color-graphite);
  font-size: 14px;
}

.deep-form input,
.deep-form textarea {
  width: 100%;
  border: 1px solid var(--color-silver-mist);
  border-radius: 14px;
  background: var(--color-fog);
  color: var(--color-ink);
  font: inherit;
  padding: 13px 14px;
}

.deep-form textarea {
  min-height: 115px;
  resize: vertical;
}

.deep-form button {
  min-height: 48px;
  border-radius: var(--radius-pill);
  background: var(--color-azure);
  color: var(--color-snow);
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, 0.92fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--color-silver-mist);
  border-radius: 14px;
  background: var(--color-snow);
}

.detail-media-stage {
  min-height: min(72vh, 720px);
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
  padding: 24px;
}

.detail-media-stage .feed-media {
  width: min(100%, 980px);
  max-height: min(76vh, 780px);
  aspect-ratio: var(--detail-aspect, 16 / 10);
  min-height: 0;
  border-radius: 0;
}

.detail-media-stage .feed-media.is-portrait {
  width: auto;
  height: min(76vh, 780px);
  max-width: 100%;
}

.detail-media-stage .feed-media.is-landscape {
  width: min(100%, 980px);
  height: auto;
}

.detail-media-stage .feed-media .type-label {
  display: none;
}

.detail-media-stage .uploaded-media {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}

.detail-media-stage .embedded-media,
.detail-media-stage .external-media {
  width: 100%;
  height: 100%;
}

.detail-info {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  padding: 32px 28px 26px;
  min-height: min(72vh, 720px);
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-graphite);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.detail-topline button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  color: var(--color-graphite);
}

.detail-prompt {
  max-height: min(78vh, 860px);
  overflow-y: auto;
  padding-right: 18px;
  color: #000;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.prompt-block {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
}

.prompt-block h3 {
  margin: 0;
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.prompt-block p {
  margin: 0;
  color: #111;
  font-size: 15px;
  line-height: 1.58;
  white-space: pre-wrap;
}

.prompt-block.main-prompt {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-silver-mist);
}

.prompt-block.main-prompt p {
  font-size: 16px;
  font-weight: 500;
}

.prompt-parts-panel,
.assembled-panel {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--color-silver-mist);
  border-radius: 10px;
  background: rgba(251, 253, 248, 0.55);
}

.parts-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(209, 197, 232, 0.72);
}

.parts-heading span,
.assembled-panel h3 {
  margin: 0;
  color: #8a6a00;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.parts-heading strong {
  color: var(--color-graphite);
  font-size: 12px;
  font-weight: 500;
}

.detail-prompt-title {
  margin: 0 0 12px;
  color: var(--color-ink);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.3px;
}

.parts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.parts-empty {
  margin: 0;
  color: var(--color-graphite);
  font-size: 13px;
  line-height: 1.5;
}

.part-field {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(102, 117, 122, 0.22);
}

.part-field > span {
  display: grid;
  gap: 4px;
}

.part-field b {
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 800;
}

.part-field small {
  color: var(--color-graphite);
  font-size: 10px;
  line-height: 1.3;
}

.part-field textarea,
.assembled-panel textarea {
  width: 100%;
  border: 1px solid rgba(21, 31, 34, 0.08);
  border-radius: 6px;
  background: rgba(16, 23, 25, 0.94);
  color: var(--color-snow);
  font: inherit;
  font-size: 13px;
  line-height: 1.52;
  padding: 9px 10px;
  resize: vertical;
}

.part-field textarea {
  min-height: 58px;
  max-height: 140px;
}

.assembled-panel textarea {
  min-height: 360px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.assembled-copy {
  justify-self: end;
  min-height: 42px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #8f63ff, #5f37c8);
  color: #ffffff;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(95, 55, 200, 0.26);
}

.detail-prompt::-webkit-scrollbar {
  width: 8px;
}

.detail-prompt::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-silver-mist);
}

.detail-tags span {
  border-radius: var(--radius-pill);
  background: var(--color-fog);
  color: var(--color-graphite);
  padding: 5px 10px;
  font-size: 13px;
}

.detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.detail-footer strong {
  font-size: 15px;
}

.detail-footer div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-footer button,
.detail-footer a {
  border-radius: var(--radius-pill);
  background: var(--color-obsidian);
  color: var(--color-snow);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
}

.detail-footer a.disabled {
  display: none;
}

.upload-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(420px, 0.8fr);
  overflow: hidden;
  border: 1px solid var(--color-silver-mist);
  border-radius: 14px;
  background: var(--color-snow);
}

.upload-preview {
  min-height: 680px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: #000;
  padding: 28px;
}

.upload-stage {
  width: min(720px, 82%);
  min-height: 520px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111;
  color: var(--color-snow);
  text-align: center;
}

.link-upload-box {
  width: min(720px, 82%);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.link-upload-box span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.link-upload-box input {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-snow);
  font: inherit;
  padding: 0 16px;
  outline: none;
}

.link-upload-box input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.link-upload-box input:focus {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.upload-stage input {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  cursor: pointer;
}

.upload-stage span {
  border-radius: var(--radius-pill);
  background: var(--color-snow);
  color: var(--color-ink);
  padding: 10px 18px;
}

.upload-stage img,
.upload-stage video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upload-stage.has-media span {
  display: none;
}

.upload-stage.has-image img,
.upload-stage.has-video video {
  display: block;
}

.upload-detail-form {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 40px 32px;
}

.form-kicker {
  color: var(--color-graphite);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.upload-detail-form h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.9px;
}

.upload-detail-form label {
  display: grid;
  gap: 8px;
  color: var(--color-graphite);
  font-size: 14px;
}

.upload-detail-form input,
.upload-detail-form textarea {
  width: 100%;
  border: 1px solid var(--color-silver-mist);
  border-radius: 14px;
  background: var(--color-fog);
  color: var(--color-ink);
  font: inherit;
  padding: 13px 14px;
}

.upload-detail-form textarea {
  min-height: 260px;
  resize: vertical;
}

.select-drawer {
  overflow: hidden;
  border: 1px solid var(--color-silver-mist);
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.78);
}

.select-drawer summary {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 12px 44px 12px 16px;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}

.select-drawer summary::-webkit-details-marker {
  display: none;
}

.select-drawer summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--color-graphite);
  border-bottom: 1.5px solid var(--color-graphite);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.select-drawer[open] summary::after {
  transform: rotate(225deg);
}

.select-drawer summary span {
  font-size: 14px;
  font-weight: 600;
}

.select-drawer summary small {
  color: var(--color-graphite);
  font-size: 13px;
}

.tag-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 230px;
  margin: 0;
  overflow-y: auto;
  border: 0;
  border-top: 1px solid var(--color-silver-mist);
  padding: 12px;
  scrollbar-width: thin;
}

.tag-picker::-webkit-scrollbar {
  width: 8px;
}

.tag-picker::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(32, 28, 36, 0.28);
}

.tag-picker legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tag-picker label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(232, 222, 214, 0.9);
  border-radius: 12px;
  background: var(--color-fog);
  color: var(--color-ink);
  padding: 9px 10px;
  font-size: 13px;
}

.tag-picker label:hover {
  border-color: rgba(110, 90, 230, 0.38);
  background: var(--color-snow);
}

.tag-picker input {
  flex: 0 0 auto;
  width: auto;
  accent-color: var(--color-azure);
}

.hashtag-field small {
  color: var(--color-graphite);
  font-size: 12px;
}

.upload-detail-form button {
  min-height: 48px;
  border-radius: var(--radius-pill);
  background: var(--color-azure);
  color: var(--color-snow);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0 34px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
}

.profile-header h1 {
  margin: 0;
  font-size: 20px;
}

.profile-header p {
  margin: 2px 0 0;
  color: var(--color-graphite);
  font-size: 14px;
}

.profile-tabs {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid var(--color-silver-mist);
}

.profile-tabs button {
  position: relative;
  background: transparent;
  color: var(--color-graphite);
  padding: 0 0 14px;
  font-size: 15px;
}

.profile-tabs button.active {
  color: var(--color-ink);
  font-weight: 600;
}

.profile-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-ink);
}

.profile-content {
  min-height: 420px;
  padding: 64px 0;
}

.profile-content .feed-grid {
  width: 100%;
}

.empty-state {
  margin: 0;
  color: var(--color-graphite);
  text-align: center;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
}

.auth-modal.open {
  display: grid;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(143, 99, 255, 0.34), transparent 32%),
    rgba(3, 2, 7, 0.72);
  backdrop-filter: blur(20px);
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border-radius: var(--radius-card);
  border: 1px solid rgba(199, 173, 255, 0.2);
  background: linear-gradient(180deg, rgba(26, 20, 39, 0.98), rgba(12, 9, 19, 0.98));
  color: #f8f4ff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  padding: 28px;
}

.auth-close {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(246, 241, 255, 0.11);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.auth-kicker {
  margin: 0 0 8px;
  color: #c7adff;
  font-size: 14px;
  font-weight: 600;
}

.auth-copy h2 {
  max-width: 430px;
  margin: 0;
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.9px;
  color: #ffffff;
}

.auth-copy p:not(.auth-kicker) {
  margin: 14px 0 0;
  color: #c9bfdc;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 24px 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(199, 173, 255, 0.18);
  background: rgba(246, 241, 255, 0.06);
  padding: 4px;
}

.auth-tabs.admin-only {
  grid-template-columns: 1fr;
}

.auth-tabs button {
  border-radius: var(--radius-pill);
  background: transparent;
  color: #c9bfdc;
  padding: 8px 12px;
}

.auth-tabs button.active {
  background: linear-gradient(135deg, rgba(199, 173, 255, 0.32), rgba(143, 99, 255, 0.34));
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(199, 173, 255, 0.2) inset;
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #d8cfee;
  font-size: 14px;
}

.auth-form input {
  min-height: 46px;
  border: 1px solid rgba(199, 173, 255, 0.24);
  border-radius: 14px;
  background: rgba(246, 241, 255, 0.08);
  color: #ffffff;
  padding: 0 14px;
  font: inherit;
}

.auth-form input::placeholder {
  color: rgba(216, 207, 238, 0.46);
}

.auth-form input:focus {
  outline: 2px solid rgba(143, 99, 255, 0.62);
  outline-offset: 2px;
  border-color: rgba(199, 173, 255, 0.72);
}

.auth-form button[type="submit"] {
  min-height: 46px;
  border-radius: var(--radius-pill);
  background: var(--color-azure);
  color: var(--color-snow);
  padding: 8px 16px;
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: #c9bfdc;
  font-size: 14px;
}

.auth-message.error {
  color: #ffb29f;
}

.auth-message.success {
  color: #c7adff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  min-width: 220px;
  max-width: calc(100% - 40px);
  border: 1px solid rgba(214, 227, 223, 0.85);
  border-radius: var(--radius-pill);
  background: rgba(16, 23, 25, 0.9);
  color: var(--color-snow);
  padding: 12px 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(120, 80, 255, 0.22), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(164, 102, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #08070d 0%, #0c0814 42%, #07060b 100%);
}

.global-nav {
  border-bottom: 1px solid rgba(156, 116, 255, 0.14);
  background: rgba(8, 7, 13, 0.78);
}

.nav-search input {
  border-color: rgba(159, 125, 255, 0.22);
  background: rgba(246, 241, 255, 0.08);
  color: var(--color-ink);
}

.nav-search input:focus {
  background: rgba(246, 241, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(143, 99, 255, 0.18);
}

.nav-search input::placeholder,
.composer-form input::placeholder,
.composer-form textarea::placeholder,
.deep-form input::placeholder,
.deep-form textarea::placeholder,
.upload-detail-form input::placeholder,
.upload-detail-form textarea::placeholder,
.auth-form input::placeholder {
  color: rgba(246, 241, 255, 0.42);
}

.home-banner {
  border-color: rgba(199, 173, 255, 0.22);
  background:
    radial-gradient(circle at 78% 16%, rgba(164, 102, 255, 0.54), transparent 24%),
    radial-gradient(circle at 16% 22%, rgba(88, 54, 180, 0.46), transparent 30%),
    radial-gradient(circle at 58% 104%, rgba(111, 72, 222, 0.34), transparent 34%),
    linear-gradient(135deg, #0b0713 0%, #171024 48%, #24133f 100%);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42), 0 0 70px rgba(143, 99, 255, 0.16);
}

.home-banner::before {
  background:
    linear-gradient(rgba(199, 173, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 173, 255, 0.08) 1px, transparent 1px);
}

.home-banner::after {
  background: radial-gradient(circle, rgba(143, 99, 255, 0.24), rgba(143, 99, 255, 0));
}

.home-banner-copy p {
  border-color: rgba(199, 173, 255, 0.24);
  background: rgba(246, 241, 255, 0.1);
  color: #dbcfff;
}

.home-banner-copy h1 {
  color: var(--color-ink);
}

.home-banner-copy span {
  color: rgba(246, 241, 255, 0.72);
}

.panel-media {
  border-color: rgba(199, 173, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 68% 32%, #b998ff 0 10%, transparent 11%),
    linear-gradient(135deg, #050309 0%, #2a1750 52%, #8760e8 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), 0 0 46px rgba(143, 99, 255, 0.22);
}

.panel-media span:first-child {
  background: linear-gradient(145deg, #2b173f, #b79cff);
}

.panel-media span:nth-child(2) {
  background: linear-gradient(160deg, #1a1028, #7c55df);
}

.panel-media span:nth-child(3),
.panel-parts span {
  background: rgba(246, 241, 255, 0.12);
  color: var(--color-ink);
}

.panel-parts span {
  border-color: rgba(199, 173, 255, 0.26);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.panel-parts span:nth-child(4) {
  background: #8f63ff;
  color: #ffffff;
}

.feed-card,
.deep-process article,
.deep-form,
.upload-detail,
.detail-shell,
.upload-composer,
.studio-card,
.prompt-parts-panel,
.assembled-panel,
.auth-card {
  border-color: rgba(199, 173, 255, 0.2);
  background: rgba(20, 16, 29, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.feed-card:hover {
  border-color: rgba(183, 154, 255, 0.96);
  box-shadow:
    0 0 0 3px rgba(143, 99, 255, 0.24),
    0 18px 54px rgba(105, 67, 210, 0.34);
}

.feed-media,
.image-drop,
.deep-form input,
.deep-form textarea,
.composer-form input,
.composer-form textarea,
.upload-detail-form input,
.upload-detail-form textarea,
.select-drawer,
.tag-picker label,
.auth-form input {
  border-color: rgba(199, 173, 255, 0.2);
  background: rgba(246, 241, 255, 0.06);
  color: var(--color-ink);
}

.tag-picker label:hover,
.auth-tabs button.active {
  background: rgba(143, 99, 255, 0.22);
  color: var(--color-ink);
}

.select-drawer summary,
.upload-stage span,
.prompt-block p,
.detail-prompt,
.prompt-block h3,
.part-field b,
.feed-copy h3,
.profile-name,
.upload-detail-form h1,
.deep-process h3,
.composer-copy h2,
.feed-heading h2 {
  color: var(--color-ink);
}

.hover-peek {
  border-color: rgba(199, 173, 255, 0.24);
  background: rgba(13, 10, 20, 0.82);
  color: var(--color-ink);
}

.mood-chip,
.feed-tag-row span,
.detail-tags span {
  background: rgba(143, 99, 255, 0.16);
  color: #d7c8ff;
}

.detail-footer button,
.detail-footer a,
.nav-upload,
.composer-form button[type="submit"],
.deep-form button,
.upload-detail-form button[type="submit"],
.auth-form button[type="submit"] {
  background: linear-gradient(135deg, #8f63ff, #5f37c8);
  color: #ffffff;
}

.back-button,
.detail-topline,
.detail-topline button,
.form-kicker,
.parts-heading strong,
.part-field small,
.prompt-block p,
.feed-heading p,
.composer-copy p,
.deep-process p {
  color: var(--color-graphite);
}

.assembled-panel textarea,
.part-field textarea {
  border-color: rgba(199, 173, 255, 0.22);
  background: rgba(3, 2, 7, 0.72);
  color: var(--color-ink);
}

.parts-heading {
  border-bottom-color: rgba(199, 173, 255, 0.18);
}

@media (max-width: 820px) {
  .global-nav nav {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
  }

  .nav-search {
    flex: 0 0 240px;
  }

  .global-nav nav > a:not(.mark) {
    display: inline;
  }

  .product-nav nav a {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    letter-spacing: -1.2px;
  }

  .hero-gallery,
  .feature-grid,
  .studio-card,
  .home-banner,
  .upload-composer,
  .composer-form {
    grid-template-columns: 1fr;
  }

  .home-banner {
    min-height: auto;
    padding: 32px 24px;
    border-radius: 24px;
  }

  .home-banner-copy h1 {
    font-size: clamp(48px, 18vw, 72px);
  }

  .home-banner-copy span {
    font-size: 17px;
  }

  .home-banner-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    transform: none;
  }

  .panel-media {
    min-height: 220px;
  }

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

  .panel-parts span,
  .panel-parts span:nth-child(2),
  .panel-parts span:nth-child(3) {
    transform: none;
    padding: 12px 10px;
    text-align: center;
  }

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

  .hero-gallery {
    grid-template-rows: auto;
  }

  .tile-large {
    grid-row: auto;
    min-height: 320px;
  }

  .feature-card {
    min-height: 280px;
  }

  .studio-preview {
    min-height: 320px;
  }

  .prompt-display div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .feed-heading {
    display: block;
  }

  .feed-heading p {
    margin-top: 10px;
  }

  .feed-card.large,
  .feed-card.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .feed-card.large .feed-media,
  .feed-card.wide .feed-media {
    min-height: 220px;
  }

  .timeline-prompt {
    grid-template-columns: 1fr;
  }

  .detail-view {
    width: min(100% - 24px, 1540px);
  }

  .upload-view,
  .profile-view,
  .category-view,
  .deep-view {
    width: min(100% - 24px, 1540px);
  }

  .detail-shell,
  .upload-detail,
  .deep-upload,
  .deep-process {
    grid-template-columns: 1fr;
  }

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

  .detail-media-stage,
  .detail-shell {
    min-height: auto;
  }

  .detail-media-stage .feed-media {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .detail-media-stage .feed-media.is-portrait {
    width: min(100%, 420px);
    height: auto;
  }

  .detail-info {
    padding: 28px 22px;
  }

  .upload-preview {
    min-height: 360px;
  }

  .upload-stage {
    width: 100%;
    min-height: 360px;
  }

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

  .detail-prompt {
    max-height: none;
  }

  .image-drop,
  .wide-field,
  .composer-form button[type="submit"] {
    grid-column: span 1;
  }

  .auth-copy h2 {
    font-size: 32px;
  }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .feed-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
