﻿: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.is-admin .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: 100%;
  min-height: clamp(560px, calc(100vh - 44px), 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 0.76fr) minmax(620px, 1fr);
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 76% 42%, rgba(139, 88, 255, 0.5), transparent 28%),
    radial-gradient(circle at 92% 78%, rgba(218, 96, 255, 0.24), transparent 22%),
    radial-gradient(circle at 22% 24%, rgba(80, 44, 190, 0.32), transparent 30%),
    linear-gradient(108deg, #03040d 0%, #0a0921 42%, #16082c 74%, #060711 100%);
  box-shadow: none;
  padding: clamp(56px, 7vw, 112px) clamp(28px, 5vw, 112px);
}

.home-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 64% 50%, rgba(165, 104, 255, 0.62), transparent 3%),
    radial-gradient(circle at 52% 48%, rgba(116, 58, 255, 0.38), transparent 20%),
    linear-gradient(90deg, transparent 0 42%, rgba(161, 92, 255, 0.34) 52%, transparent 70%);
  filter: blur(28px);
  opacity: 0.85;
  pointer-events: none;
}

.home-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 190, 245, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(166, 120, 255, 0.9) 0 2px, transparent 3px);
  background-size: 240px 180px, 320px 260px;
  background-position: 18px 28px, 120px 84px;
  opacity: 0.34;
  pointer-events: none;
}

.home-banner-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: 650px;
}

.home-banner-copy p {
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(183, 139, 255, 0.52);
  border-radius: 999px;
  background: rgba(108, 60, 216, 0.35);
  color: #efe8ff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  backdrop-filter: blur(18px);
  box-shadow: 0 0 34px rgba(143, 99, 255, 0.22);
}

.home-banner-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  color: #ffffff;
  font-size: clamp(58px, 6.2vw, 104px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 8px 38px rgba(171, 134, 255, 0.32);
}

.home-banner-copy span {
  max-width: 720px;
  color: rgba(246, 241, 255, 0.68);
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.65;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  color: #b893ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.6vw, 28px);
}

.hero-categories i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(184, 147, 255, 0.72);
}

.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-visual {
  position: relative;
  z-index: 1;
  min-height: 560px;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.42));
}

.hero-prompt-card {
  position: absolute;
  z-index: 5;
  left: 3%;
  top: 42%;
  width: min(440px, 55%);
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(214, 184, 255, 0.6);
  border-radius: 26px;
  background: rgba(58, 28, 111, 0.72);
  color: rgba(255, 255, 255, 0.76);
  padding: 24px 24px 24px 28px;
  box-shadow: 0 0 34px rgba(160, 92, 255, 0.42), 0 18px 68px rgba(0, 0, 0, 0.34), inset 0 0 28px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.hero-prompt-card::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 430px;
  height: 150px;
  background: linear-gradient(90deg, rgba(179, 113, 255, 0.88), transparent), repeating-linear-gradient(8deg, rgba(190, 137, 255, 0.42) 0 2px, transparent 3px 14px);
  transform: translateY(-50%);
  filter: blur(1px);
  opacity: 0.7;
  pointer-events: none;
}

.hero-prompt-card span {
  max-width: 310px;
  font-size: 17px;
  line-height: 1.55;
}

.hero-prompt-card b {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b68ff, #5e35f4);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  box-shadow: 0 0 30px rgba(133, 83, 255, 0.7);
}

.hero-output {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(210, 172, 255, 0.48);
  border-radius: 26px;
  color: #fff;
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 0 30px rgba(152, 85, 255, 0.3), inset 0 0 32px rgba(255, 255, 255, 0.08);
}

.hero-output::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 36%, rgba(0, 0, 0, 0.32));
}

.hero-output small,
.hero-output strong {
  position: relative;
  z-index: 1;
}

.hero-output small {
  position: absolute;
  right: 16px;
  top: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.hero-output strong {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 16px;
  line-height: 1.12;
  letter-spacing: 0.08em;
}

.card-poster { --tilt: 7deg; left: 42%; top: 0; width: 250px; height: 300px; background: radial-gradient(circle at 58% 28%, #bda3ff 0 10%, transparent 11%), radial-gradient(circle at 50% 56%, #5134a5 0 18%, transparent 19%), linear-gradient(145deg, #1c1747, #7a52ee 48%, #14051f); }
.card-product { --tilt: 6deg; right: 12%; top: 18px; width: 260px; height: 250px; background: radial-gradient(ellipse at 52% 42%, #f4dfff 0 8%, transparent 9%), radial-gradient(circle at 54% 58%, rgba(255, 190, 240, 0.55), transparent 20%), linear-gradient(145deg, #210c3b, #9e55ff 56%, #32164e); }
.card-character { --tilt: 7deg; right: 0; top: 190px; width: 320px; height: 210px; background: radial-gradient(circle at 67% 44%, #fff2ff 0 9%, transparent 10%), radial-gradient(circle at 72% 54%, rgba(197, 168, 255, 0.86), transparent 18%), linear-gradient(145deg, #130526, #4b2782 46%, #9e76ff); }
.card-image { --tilt: 10deg; left: 22%; bottom: 52px; width: 230px; height: 210px; background: radial-gradient(circle at 48% 54%, #ffd98c 0 8%, transparent 9%), linear-gradient(145deg, #11151a, #354d2d 46%, #b478ff); }
.card-video { --tilt: 8deg; left: 52%; bottom: 112px; width: 300px; height: 190px; background: radial-gradient(circle at 50% 56%, rgba(255, 255, 255, 0.8) 0 9%, transparent 10%), linear-gradient(160deg, #2b1548, #d06489 48%, #341e6e); }
.card-video::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 22px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, #ffffff 0 28%, rgba(255, 255, 255, 0.28) 29%); }
.card-brand { --tilt: 11deg; right: 7%; bottom: 30px; width: 290px; height: 220px; background: radial-gradient(circle at 68% 58%, rgba(198, 150, 255, 0.8), transparent 24%), linear-gradient(135deg, #1a0a33, #571ea3 52%, #14051f); }
.card-brand strong { font-size: 30px; letter-spacing: -0.02em; }

.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 {
  position: relative;
  display: block;
  width: 100%;
  min-height: 420px;
}

.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 {
  position: absolute;
  min-width: 0;
  display: block;
  width: 100%;
  margin: 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: auto;
}

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

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

.feed-card.large .feed-media {
  aspect-ratio: var(--feed-aspect, 3 / 5);
}

.feed-card.wide .feed-media {
  aspect-ratio: var(--feed-aspect, 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: contain;
  object-position: center;
  display: block;
  background: #050309;
}

.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;
}

.google-auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.google-auth-button:hover {
  background: #f7f7fb;
  color: #050816;
}

.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;
  }
}

/* Final Aikit-lab editorial sketch pass */
:root {
  --color-ink: #1c2420;
  --color-graphite: #677069;
  --color-fog: #f4efe2;
  --color-snow: #fffaf0;
  --color-obsidian: #1c2420;
  --color-silver-mist: #26312b;
  --color-azure: #1aa88c;
  --color-cobalt-link: #245f9f;
  --sketch-line: #1c2420;
  --sketch-paper: #fffaf0;
  --sketch-blue: #9ec7e8;
  --sketch-mint: #92d8bd;
  --sketch-yellow: #f5cc5b;
  --sketch-coral: #e87355;
  --sketch-sage: #b9cf99;
  --sketch-lilac: #b5a6d8;
}

html,
body {
  background:
    radial-gradient(circle at 12% 10%, rgba(245, 204, 91, 0.22), transparent 24%),
    radial-gradient(circle at 85% 14%, rgba(146, 216, 189, 0.2), transparent 26%),
    linear-gradient(180deg, #f4efe2 0%, #fffaf0 48%, #edf3e6 100%);
  color: var(--color-ink);
}

body::before {
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(28, 36, 32, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 36, 32, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
}

.global-nav {
  height: 54px;
  border-bottom: 2px solid var(--sketch-line);
  background: rgba(255, 250, 240, 0.88);
  color: var(--sketch-line);
}

.global-nav nav {
  width: min(1500px, calc(100% - 34px));
}

.global-nav a,
.global-nav .mark,
.nav-auth {
  color: var(--sketch-line);
}

.nav-search input {
  border: 2px solid var(--sketch-line);
  background: #fffdf7;
  color: var(--sketch-line);
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.9);
}

.nav-search input:focus {
  background: #fffdf7;
  box-shadow: 3px 3px 0 var(--sketch-mint);
}

.nav-upload,
.nav-auth {
  border: 2px solid var(--sketch-line);
  background: var(--sketch-yellow);
  color: var(--sketch-line);
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.92);
}

#home-view {
  padding-top: 0;
}

#home-view .home-banner {
  width: 100%;
  min-height: clamp(620px, calc(100vh - 54px), 900px);
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: clamp(72px, 7vw, 118px) 24px clamp(84px, 9vw, 138px);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 250, 240, 0.76) 0 22%, rgba(255, 250, 240, 0.35) 38%, transparent 56%),
    linear-gradient(180deg, rgba(244, 239, 226, 0.04) 0%, rgba(244, 239, 226, 0) 70%, #f4efe2 100%),
    url("./assets/aikit-hero-sketch.png") center center / cover no-repeat,
    #9ec7e8;
}

#home-view .home-banner::before,
#home-view .home-banner::after {
  display: none;
}

#home-view .home-banner-copy {
  max-width: 980px;
  margin: 0 auto;
  justify-items: center;
  gap: 18px;
}

#home-view .home-banner-copy p {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--sketch-line);
  padding: 0;
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 950;
  letter-spacing: 0.01em;
  text-shadow: 2px 2px 0 rgba(255, 250, 240, 0.88);
}

#home-view .home-banner-copy h1 {
  max-width: 980px;
  color: #ffffff;
  font-size: clamp(58px, 7vw, 122px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
  -webkit-text-stroke: 3px var(--sketch-line);
  text-shadow:
    0 4px 0 var(--sketch-line),
    0 10px 0 rgba(28, 36, 32, 0.14);
}

#home-view .home-banner-copy span {
  max-width: 760px;
  color: var(--sketch-line);
  font-size: clamp(20px, 1.75vw, 30px);
  font-weight: 900;
  line-height: 1.45;
  text-shadow: 2px 2px 0 rgba(255, 250, 240, 0.78);
}

#home-view .hero-categories {
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--sketch-line);
  font-family: var(--font-text);
}

#home-view .hero-categories span {
  border: 2px solid var(--sketch-line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.92);
  color: var(--sketch-line);
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.9);
  padding: 6px 13px;
}

#home-view .hero-categories span:nth-of-type(2n) {
  background: var(--sketch-yellow);
}

#home-view .hero-categories span:nth-of-type(3n) {
  background: var(--sketch-mint);
}

#home-view .hero-categories i {
  display: none;
}

.category-strip {
  width: min(1500px, calc(100% - 44px));
  margin: -18px auto 18px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.category-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-scroll button,
.sort-switch button {
  min-height: 34px;
  border: 2px solid var(--sketch-line);
  border-radius: 999px;
  background: #fffdf7;
  color: var(--sketch-line);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: 2px 2px 0 rgba(28, 36, 32, 0.86);
  opacity: 1;
}

.category-scroll button span {
  display: none;
}

.category-scroll button em {
  margin-left: 6px;
  color: rgba(28, 36, 32, 0.58);
  font-style: normal;
}

.category-scroll button:nth-child(4n + 1) {
  background: #fff6cb;
}

.category-scroll button:nth-child(4n + 2) {
  background: #e8f4eb;
}

.category-scroll button:nth-child(4n + 3) {
  background: #e8f1f8;
}

.category-scroll button:nth-child(4n) {
  background: #f8e3d9;
}

.category-scroll button.active,
.sort-switch button.active {
  background: #1c2420;
  color: #fffaf0;
  border-color: #1c2420;
  box-shadow: 2px 2px 0 var(--sketch-yellow);
}

.category-scroll button.active em,
.sort-switch button.active em {
  color: rgba(255, 250, 240, 0.72);
}

.sort-switch {
  display: inline-flex;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.feed-section,
.category-view .feed-section,
.deep-view .feed-section {
  width: min(1500px, calc(100% - 44px));
}

.feed-card {
  border: 2px solid var(--sketch-line);
  border-radius: 16px;
  background: #fffdf7;
  box-shadow: 4px 4px 0 rgba(28, 36, 32, 0.82);
  transform: none;
}

.feed-card:hover {
  border-color: var(--sketch-line);
  box-shadow: 6px 6px 0 #92d8bd;
  transform: translate(-1px, -2px);
}

.feed-media {
  border: 0;
  border-radius: 14px;
  background: #f5efdf;
}

.uploaded-media {
  background: #f5efdf;
  border-radius: 14px;
}

.feed-title-reveal {
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 8px 10px;
  min-height: 0;
  border: 2px solid var(--sketch-line);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.96);
  color: var(--sketch-line);
  box-shadow: 2px 2px 0 rgba(28, 36, 32, 0.88);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.detail-backdrop {
  background: rgba(28, 36, 32, 0.48);
  backdrop-filter: blur(10px);
}

.detail-shell,
.upload-detail,
.prompt-parts-panel,
.assembled-panel,
.prompt-block,
.auth-panel,
.profile-menu {
  border: 2px solid var(--sketch-line);
  border-radius: 18px;
  background: #fffaf0;
  color: var(--sketch-line);
  box-shadow: 5px 5px 0 rgba(28, 36, 32, 0.86);
}

.detail-media-stage {
  background:
    radial-gradient(circle at 18% 16%, rgba(245, 204, 91, 0.16), transparent 26%),
    radial-gradient(circle at 82% 84%, rgba(146, 216, 189, 0.18), transparent 28%),
    #f4efe2;
}

.detail-media-stage .feed-media {
  background: #f4efe2;
}

.detail-media-stage .uploaded-media {
  background: #f4efe2;
}

.detail-info {
  background: #fffaf0;
  color: var(--sketch-line);
}

.detail-close,
.auth-close {
  border: 2px solid var(--sketch-line);
  background: #1c2420;
  color: #fffaf0;
  box-shadow: 3px 3px 0 #92d8bd;
}

.part-field textarea,
.assembled-panel textarea,
.upload-detail-form input,
.upload-detail-form textarea,
.auth-form input,
.link-upload-box input {
  border: 2px solid var(--sketch-line);
  border-radius: 10px;
  background: #fffdf7;
  color: var(--sketch-line);
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.74);
}

.detail-tags span,
.mood-chip,
.feed-tag-row span {
  border: 1.5px solid var(--sketch-line);
  background: #e8f1f8;
  color: var(--sketch-line);
  font-weight: 800;
}

.assembled-copy,
.detail-footer button,
.detail-footer a,
.upload-detail-form button[type="submit"],
.auth-form button[type="submit"],
.back-button {
  border: 2px solid var(--sketch-line);
  background: #1aa88c;
  color: #fffaf0;
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.86);
  font-weight: 900;
}

.detail-delete-button {
  background: #c94d3d !important;
  color: #fffaf0 !important;
}

.upload-preview {
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 204, 91, 0.22), transparent 24%),
    radial-gradient(circle at 82% 30%, rgba(146, 216, 189, 0.2), transparent 24%),
    #dce9ef;
}

.upload-stage {
  border: 2px dashed var(--sketch-line);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.82);
}

.upload-stage span {
  border: 2px solid var(--sketch-line);
  background: var(--sketch-yellow);
  color: var(--sketch-line);
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.86);
}

@media (max-width: 820px) {
  #home-view .home-banner {
    width: 100%;
    min-height: 680px;
    padding: 70px 18px 86px;
    background:
      radial-gradient(circle at 50% 42%, rgba(255, 250, 240, 0.84) 0 28%, rgba(255, 250, 240, 0.34) 50%, transparent 68%),
      linear-gradient(180deg, rgba(244, 239, 226, 0.08) 0%, rgba(244, 239, 226, 0) 70%, #f4efe2 100%),
      url("./assets/aikit-hero-sketch.png") center center / cover no-repeat,
      #9ec7e8;
  }

  #home-view .home-banner-copy h1 {
    font-size: clamp(42px, 13vw, 72px);
    -webkit-text-stroke: 2px var(--sketch-line);
    text-shadow:
      0 3px 0 var(--sketch-line),
      0 7px 0 rgba(28, 36, 32, 0.14);
  }

  #home-view .home-banner-copy span {
    font-size: clamp(18px, 5vw, 25px);
  }

  .category-strip {
    width: min(100% - 24px, 1500px);
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .feed-section,
  .category-view .feed-section,
  .deep-view .feed-section {
    width: min(100% - 24px, 1500px);
  }
}

/* Integrated sketch hero background */
#home-view {
  padding-top: 0;
}

#home-view .home-banner {
  width: 100%;
  min-height: clamp(620px, calc(100vh - 54px), 900px);
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  padding: clamp(72px, 7vw, 118px) 24px clamp(84px, 9vw, 138px);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 248, 231, 0.78) 0 23%, rgba(255, 248, 231, 0.34) 36%, transparent 52%),
    linear-gradient(180deg, rgba(247, 240, 223, 0.08) 0%, rgba(247, 240, 223, 0) 70%, #f7f0df 100%),
    url("./assets/aikit-hero-sketch.png") center center / cover no-repeat,
    #a9c8ff;
}

#home-view .home-banner-copy {
  justify-items: center;
  max-width: 980px;
  margin: 0 auto;
  gap: 20px;
}

#home-view .home-banner-copy p {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--sketch-line);
  padding: 0;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 950;
  letter-spacing: 0.02em;
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.84);
}

#home-view .home-banner-copy h1 {
  max-width: 980px;
  color: #ffffff;
  font-size: clamp(58px, 7.2vw, 126px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
  -webkit-text-stroke: 4px var(--sketch-line);
  text-shadow:
    0 5px 0 var(--sketch-line),
    0 11px 0 rgba(18, 18, 18, 0.16);
}

#home-view .home-banner-copy span {
  max-width: 720px;
  color: var(--sketch-line);
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 950;
  line-height: 1.42;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8);
}

#home-view .hero-categories {
  justify-content: center;
  margin-top: 24px;
}

.category-strip {
  margin-top: -18px;
  position: relative;
  z-index: 2;
}

@media (max-width: 820px) {
  #home-view .home-banner {
    width: 100%;
    min-height: 680px;
    padding: 70px 18px 86px;
    background:
      radial-gradient(circle at 50% 42%, rgba(255, 248, 231, 0.86) 0 28%, rgba(255, 248, 231, 0.36) 50%, transparent 68%),
      linear-gradient(180deg, rgba(247, 240, 223, 0.08) 0%, rgba(247, 240, 223, 0) 70%, #f7f0df 100%),
      url("./assets/aikit-hero-sketch.png") center center / cover no-repeat,
      #a9c8ff;
  }

  #home-view .home-banner-copy h1 {
    font-size: clamp(42px, 13vw, 72px);
    -webkit-text-stroke: 2px var(--sketch-line);
    text-shadow:
      0 3px 0 var(--sketch-line),
      0 7px 0 rgba(18, 18, 18, 0.14);
  }

  #home-view .home-banner-copy span {
    font-size: clamp(18px, 5vw, 25px);
  }

  .category-strip {
    margin-top: 12px;
  }
}

/* Sketch studio theme */
:root {
  --color-ink: #171717;
  --color-graphite: #5f5a52;
  --color-fog: #f7f0df;
  --color-snow: #fffaf0;
  --color-obsidian: #141414;
  --color-silver-mist: #171717;
  --color-azure: #16b99a;
  --color-cobalt-link: #0f5ac8;
  --sketch-blue: #a9c8ff;
  --sketch-mint: #27d0ad;
  --sketch-yellow: #ffd84d;
  --sketch-coral: #ff7f64;
  --sketch-paper: #fff8e7;
  --sketch-line: #121212;
}

html,
body {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 216, 77, 0.28), transparent 20%),
    radial-gradient(circle at 90% 8%, rgba(39, 208, 173, 0.22), transparent 22%),
    linear-gradient(180deg, #f7f0df 0%, #fff8e7 48%, #eef6ef 100%);
  color: var(--color-ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(18, 18, 18, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 18, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.global-nav {
  height: 54px;
  border-bottom: 3px solid var(--sketch-line);
  background: rgba(255, 248, 231, 0.92);
  color: var(--sketch-line);
  backdrop-filter: blur(14px);
}

.global-nav nav {
  width: min(1500px, calc(100% - 34px));
}

.global-nav .mark {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
}

.global-nav a {
  font-size: 14px;
  font-weight: 800;
  color: var(--sketch-line);
}

.global-nav a.active {
  color: #0f5ac8;
}

.nav-search input {
  height: 38px;
  border: 3px solid var(--sketch-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--sketch-line);
  box-shadow: 4px 4px 0 var(--sketch-line);
}

.nav-search input:focus {
  border-color: var(--sketch-line);
  background: #ffffff;
  box-shadow: 4px 4px 0 var(--sketch-yellow);
}

.nav-search input::placeholder,
.upload-detail-form input::placeholder,
.upload-detail-form textarea::placeholder,
.auth-form input::placeholder {
  color: rgba(23, 23, 23, 0.45);
}

.nav-auth,
.nav-upload {
  border: 3px solid var(--sketch-line);
  border-radius: 999px;
  background: var(--sketch-yellow);
  color: var(--sketch-line);
  padding: 7px 14px;
  font-weight: 950;
  box-shadow: 3px 3px 0 var(--sketch-line);
}

.avatar-button,
.profile-avatar {
  border: 3px solid var(--sketch-line);
  background:
    radial-gradient(circle at 34% 26%, #ffffff 0 14%, transparent 15%),
    linear-gradient(145deg, var(--sketch-mint), var(--sketch-blue) 62%, var(--sketch-coral));
  box-shadow: 3px 3px 0 var(--sketch-line);
}

.profile-menu,
.auth-panel {
  border: 3px solid var(--sketch-line);
  border-radius: 18px;
  background: var(--sketch-paper);
  color: var(--sketch-line);
  box-shadow: 7px 7px 0 var(--sketch-line);
}

.profile-menu button {
  color: var(--sketch-line);
  font-weight: 800;
}

.profile-menu button:hover {
  background: #e7f6ff;
}

#home-view {
  padding-top: 22px;
}

#home-view .home-banner {
  width: min(1500px, calc(100% - 44px));
  min-height: clamp(470px, 43vw, 700px);
  margin: 0 auto;
  border: 4px solid var(--sketch-line);
  border-radius: 30px;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(360px, 1fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(42px, 5vw, 88px);
  background:
    linear-gradient(90deg, rgba(255, 248, 231, 0.92) 0%, rgba(255, 248, 231, 0.78) 39%, rgba(255, 248, 231, 0.12) 65%, rgba(255, 248, 231, 0) 100%),
    url("./assets/aikit-hero-sketch.png") center right / cover no-repeat,
    #a9c8ff;
  box-shadow: 10px 10px 0 var(--sketch-line);
}

#home-view .home-banner::before,
#home-view .home-banner::after {
  display: none;
}

#home-view .home-banner-copy {
  gap: 20px;
  max-width: 680px;
}

#home-view .home-banner-copy p {
  width: fit-content;
  border: 3px solid var(--sketch-line);
  border-radius: 999px;
  background: var(--sketch-mint);
  color: var(--sketch-line);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.08em;
  box-shadow: 4px 4px 0 var(--sketch-line);
}

#home-view .home-banner-copy h1 {
  color: var(--sketch-line);
  font-size: clamp(48px, 5.9vw, 92px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow:
    3px 3px 0 #ffffff,
    6px 6px 0 rgba(18, 18, 18, 0.14);
}

#home-view .home-banner-copy span {
  max-width: 650px;
  color: var(--sketch-line);
  font-size: clamp(18px, 1.35vw, 23px);
  font-weight: 800;
  line-height: 1.55;
}

.hero-categories {
  gap: 11px;
  margin-top: 20px;
  color: var(--sketch-line);
  font-family: var(--font-text);
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 950;
}

.hero-categories span {
  border: 3px solid var(--sketch-line);
  border-radius: 999px;
  background: #ffffff;
  padding: 6px 13px;
  box-shadow: 3px 3px 0 var(--sketch-line);
}

.hero-categories span:nth-of-type(2n) {
  background: #ffe06d;
}

.hero-categories span:nth-of-type(3n) {
  background: #5ee0c7;
}

.hero-categories i {
  display: none;
}

.category-strip {
  width: min(1500px, calc(100% - 44px));
  margin: 24px auto 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.category-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-scroll button,
.sort-switch button {
  min-height: 38px;
  border: 3px solid var(--sketch-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--sketch-line);
  padding: 0 15px;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 3px 3px 0 var(--sketch-line);
}

.category-scroll button:nth-child(3n + 1) {
  background: #fff3a8;
}

.category-scroll button:nth-child(3n + 2) {
  background: #dff4ff;
}

.category-scroll button:nth-child(3n) {
  background: #ddfff7;
}

.category-scroll button span {
  margin-right: 6px;
}

.category-scroll button em {
  margin-left: 6px;
  font-style: normal;
  opacity: 0.58;
}

.category-scroll button.active,
.sort-switch button.active {
  background: var(--sketch-coral);
  color: #ffffff;
}

.sort-switch {
  display: flex;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.feed-section,
.category-view .feed-section,
.deep-view .feed-section {
  width: min(1500px, calc(100% - 44px));
}

.feed-grid {
  column-gap: 18px;
}

.feed-card {
  border: 4px solid var(--sketch-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 7px 7px 0 var(--sketch-line);
  transform: rotate(var(--tilt, -0.35deg));
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.feed-card:nth-child(2n) {
  --tilt: 0.45deg;
}

.feed-card:nth-child(3n) {
  --tilt: -0.75deg;
}

.feed-card:hover {
  border-color: var(--sketch-line);
  box-shadow: 11px 11px 0 var(--sketch-mint);
  transform: translate(-2px, -3px) rotate(0deg);
}

.feed-media {
  border: 0;
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.16), rgba(39, 208, 173, 0.12)),
    #fffaf0;
}

.uploaded-media {
  border-radius: 16px;
}

.feed-title-reveal {
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 3px solid var(--sketch-line);
  border-radius: 16px;
  background: #fff8e7;
  color: var(--sketch-line);
  box-shadow: 4px 4px 0 var(--sketch-line);
  font-weight: 950;
}

.type-label,
.type-image,
.type-video {
  display: none;
}

.detail-view {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  max-width: none;
  padding: 28px;
  overflow: auto;
}

.detail-view:not(.active) {
  display: none;
}

.detail-view.active {
  display: grid;
  place-items: center;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 23, 0.42);
  backdrop-filter: blur(10px);
}

.detail-modal {
  position: relative;
  z-index: 1;
  width: min(1540px, 100%);
}

.detail-shell,
.upload-detail,
.prompt-parts-panel,
.assembled-panel,
.prompt-block,
.auth-panel {
  border: 4px solid var(--sketch-line);
  border-radius: 24px;
  background: #fffaf0;
  color: var(--sketch-line);
  box-shadow: 8px 8px 0 var(--sketch-line);
}

.detail-info {
  background: #fffaf0;
  color: var(--sketch-line);
}

.detail-close,
.auth-close {
  border: 3px solid var(--sketch-line);
  background: var(--sketch-coral);
  color: #ffffff;
  box-shadow: 3px 3px 0 var(--sketch-line);
}

.detail-prompt,
.prompt-block p,
.prompt-block h3,
.detail-prompt-title,
.parts-heading,
.part-field b,
.detail-footer strong,
.detail-topline,
.auth-copy h2,
.auth-copy p:not(.auth-kicker),
.auth-kicker,
.upload-detail-form h1,
.form-kicker,
.upload-detail-form label,
.profile-header h1,
.profile-header p {
  color: var(--sketch-line);
}

.part-field textarea,
.assembled-panel textarea,
.upload-detail-form input,
.upload-detail-form textarea,
.auth-form input,
.link-upload-box input {
  border: 3px solid var(--sketch-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--sketch-line);
  box-shadow: 4px 4px 0 rgba(18, 18, 18, 0.9);
}

.detail-tags span,
.mood-chip,
.feed-tag-row span {
  border: 2px solid var(--sketch-line);
  background: #dff4ff;
  color: var(--sketch-line);
  font-weight: 850;
}

.assembled-copy,
.detail-footer button,
.detail-footer a,
.upload-detail-form button[type="submit"],
.auth-form button[type="submit"] {
  border: 3px solid var(--sketch-line);
  background: var(--sketch-mint);
  color: var(--sketch-line);
  box-shadow: 4px 4px 0 var(--sketch-line);
  font-weight: 950;
}

.upload-preview {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 216, 77, 0.3), transparent 24%),
    radial-gradient(circle at 82% 30%, rgba(39, 208, 173, 0.24), transparent 24%),
    #a9c8ff;
}

.upload-stage {
  border: 4px dashed var(--sketch-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.upload-stage span {
  border: 3px solid var(--sketch-line);
  background: var(--sketch-yellow);
  color: var(--sketch-line);
  box-shadow: 4px 4px 0 var(--sketch-line);
  font-weight: 950;
}

.back-button {
  border: 3px solid var(--sketch-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--sketch-line);
  padding: 8px 15px;
  box-shadow: 3px 3px 0 var(--sketch-line);
  font-weight: 950;
}

body.detail-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  #home-view {
    padding-top: 14px;
  }

  #home-view .home-banner {
    width: min(100% - 24px, 1500px);
    grid-template-columns: 1fr;
    min-height: 560px;
    padding: 32px 22px;
    background:
      linear-gradient(180deg, rgba(255, 248, 231, 0.96) 0%, rgba(255, 248, 231, 0.82) 46%, rgba(255, 248, 231, 0.08) 100%),
      url("./assets/aikit-hero-sketch.png") center bottom / cover no-repeat,
      #a9c8ff;
  }

  #home-view .home-banner-copy h1 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .category-strip {
    width: min(100% - 24px, 1500px);
    grid-template-columns: 1fr;
  }

  .feed-section,
  .category-view .feed-section,
  .deep-view .feed-section {
    width: min(100% - 24px, 1500px);
  }

  .detail-view {
    padding: 14px;
  }

  .detail-close {
    right: 4px;
    top: 4px;
  }
}

/* Last-mile overrides after legacy refinements */
html,
body {
  background: linear-gradient(180deg, #f4efe2 0%, #fffaf0 52%, #edf3e6 100%);
  color: #1c2420;
}

#home-view {
  padding-top: 0;
}

#home-view .home-banner {
  width: 100%;
  min-height: clamp(560px, calc(100vh - 54px), 820px);
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  padding: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 78%, #f4efe2 100%),
    url("./assets/aikit-hero-final.png") center center / cover no-repeat,
    #9ec7e8;
}

#home-view .home-banner-copy h1 {
  color: #fff;
  -webkit-text-stroke: 3px #1c2420;
  text-shadow: 0 4px 0 #1c2420, 0 10px 0 rgba(28, 36, 32, 0.14);
}

#home-view .home-banner-copy p,
#home-view .home-banner-copy span {
  color: #1c2420;
}

.category-scroll button,
.sort-switch button {
  border: 2px solid #1c2420;
  background: #fffdf7;
  color: #1c2420;
  box-shadow: 2px 2px 0 rgba(28, 36, 32, 0.84);
  opacity: 1;
}

.category-scroll button span {
  display: none;
}

.category-scroll button.active,
.sort-switch button.active {
  background: #1c2420;
  color: #fffaf0;
  box-shadow: 2px 2px 0 #f5cc5b;
}

.category-scroll button em {
  color: rgba(28, 36, 32, 0.58);
}

.category-scroll button.active em {
  color: rgba(255, 250, 240, 0.72);
}

.feed-card {
  border: 2px solid #1c2420;
  border-radius: 16px;
  background: #fffdf7;
  box-shadow: 4px 4px 0 rgba(28, 36, 32, 0.82);
  transform: none;
}

.feed-card:hover {
  box-shadow: 6px 6px 0 #92d8bd;
  transform: translate(-1px, -2px);
}

.feed-title-reveal {
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 8px 10px;
  min-height: 0;
  border: 2px solid #1c2420;
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.96);
  color: #1c2420;
  box-shadow: 2px 2px 0 rgba(28, 36, 32, 0.88);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.feed-media,
.uploaded-media,
.detail-media-stage .feed-media,
.detail-media-stage .uploaded-media {
  background: #f4efe2;
}

.detail-media-stage {
  background:
    radial-gradient(circle at 18% 16%, rgba(245, 204, 91, 0.16), transparent 26%),
    radial-gradient(circle at 82% 84%, rgba(146, 216, 189, 0.18), transparent 28%),
    #f4efe2;
}

.detail-backdrop {
  background: rgba(28, 36, 32, 0.48);
  backdrop-filter: blur(10px);
}

.detail-close {
  border: 2px solid #1c2420;
  background: #1c2420;
  color: #fffaf0;
  box-shadow: 3px 3px 0 #92d8bd;
}

.prompt-block {
  border: 0;
  border-top: 1px solid rgba(28, 36, 32, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 18px 0 28px;
  margin: 0;
}

.prompt-block h3 {
  margin: 0 0 10px;
  color: #1c2420;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.prompt-block p {
  margin: 0;
  color: rgba(28, 36, 32, 0.76);
  font-size: 14px;
  line-height: 1.76;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.detail-prompt {
  padding-right: 18px;
}

.detail-info {
  padding-left: 34px;
}

.prompt-block {
  border: 0;
  border-top: 1px solid rgba(28, 36, 32, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 0 0;
  margin: 0;
}

.prompt-block h3 {
  margin: 0 0 8px;
  color: #1c2420;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.prompt-block p {
  margin: 0;
  color: rgba(28, 36, 32, 0.78);
  font-size: 14px;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.detail-prompt {
  color: #1c2420;
  font-size: 14px;
  line-height: 1.62;
}

.prompt-parts-panel,
.assembled-panel {
  border-width: 2px;
  box-shadow: 4px 4px 0 rgba(28, 36, 32, 0.62);
}

.part-field {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
}

.part-field textarea,
.assembled-panel textarea {
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.detail-tags {
  border-bottom-color: rgba(28, 36, 32, 0.14);
}

.detail-tags span {
  border: 0;
  background: transparent;
  color: #1c2420;
  padding: 0;
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 820px) {
  #home-view .home-banner {
    width: 100%;
    min-height: 680px;
    background:
      radial-gradient(circle at 50% 42%, rgba(255, 250, 240, 0.84) 0 28%, rgba(255, 250, 240, 0.34) 50%, transparent 68%),
      linear-gradient(180deg, rgba(244, 239, 226, 0.08) 0%, rgba(244, 239, 226, 0) 70%, #f4efe2 100%),
      url("./assets/aikit-hero-sketch.png") center center / cover no-repeat,
      #9ec7e8;
  }
}

/* Ultimate visual correction: keep this block last */
:root {
  --color-ink: #1c2420;
  --color-graphite: #667067;
  --color-fog: #f4efe2;
  --color-snow: #fffaf0;
  --color-obsidian: #1c2420;
  --sketch-line: #1c2420;
  --sketch-paper: #fffaf0;
  --sketch-blue: #9ec7e8;
  --sketch-mint: #92d8bd;
  --sketch-yellow: #f5cc5b;
  --sketch-coral: #e87355;
  --sketch-sage: #c7d6a7;
}

html,
body {
  background:
    radial-gradient(circle at 9% 12%, rgba(245, 204, 91, 0.2), transparent 23%),
    radial-gradient(circle at 90% 16%, rgba(146, 216, 189, 0.18), transparent 25%),
    linear-gradient(180deg, #f4efe2 0%, #fffaf0 52%, #edf3e6 100%);
  color: var(--color-ink);
}

.global-nav {
  border-bottom: 2px solid var(--sketch-line);
  background: rgba(255, 250, 240, 0.9);
}

.global-nav a,
.global-nav .mark,
.nav-auth {
  color: var(--sketch-line);
}

.nav-search input {
  border: 2px solid var(--sketch-line);
  background: #fffdf7;
  color: var(--sketch-line);
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.88);
}

.nav-upload,
.nav-auth {
  border: 2px solid var(--sketch-line);
  background: var(--sketch-yellow);
  color: var(--sketch-line);
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.88);
}

#home-view {
  padding-top: 0;
}

#home-view .home-banner {
  width: 100%;
  min-height: clamp(620px, calc(100vh - 54px), 900px);
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  padding: clamp(72px, 7vw, 118px) 24px clamp(84px, 9vw, 138px);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 250, 240, 0.76) 0 22%, rgba(255, 250, 240, 0.36) 38%, transparent 56%),
    linear-gradient(180deg, rgba(244, 239, 226, 0.04) 0%, rgba(244, 239, 226, 0) 70%, #f4efe2 100%),
    url("./assets/aikit-hero-sketch.png") center center / cover no-repeat,
    #9ec7e8;
}

#home-view .home-banner::before,
#home-view .home-banner::after {
  display: none;
}

#home-view .home-banner-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#home-view .home-banner-copy p {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--sketch-line);
  padding: 0;
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 950;
}

#home-view .home-banner-copy h1 {
  max-width: 980px;
  color: #ffffff;
  font-size: clamp(58px, 7vw, 122px);
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
  -webkit-text-stroke: 3px var(--sketch-line);
  text-shadow: 0 4px 0 var(--sketch-line), 0 10px 0 rgba(28, 36, 32, 0.14);
}

#home-view .home-banner-copy span {
  max-width: 760px;
  color: var(--sketch-line);
  font-size: clamp(20px, 1.75vw, 30px);
  font-weight: 900;
  line-height: 1.45;
}

#home-view .hero-categories {
  justify-content: center;
  gap: 10px;
  color: var(--sketch-line);
  font-family: var(--font-text);
}

#home-view .hero-categories span {
  border: 2px solid var(--sketch-line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.94);
  color: var(--sketch-line);
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.86);
  padding: 6px 13px;
}

#home-view .hero-categories span:nth-of-type(2n) {
  background: var(--sketch-yellow);
}

#home-view .hero-categories span:nth-of-type(3n) {
  background: var(--sketch-mint);
}

#home-view .hero-categories i {
  display: none;
}

.category-strip {
  width: min(1500px, calc(100% - 44px));
  margin: -18px auto 18px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.category-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-scroll button,
.sort-switch button {
  min-height: 34px;
  border: 2px solid var(--sketch-line);
  border-radius: 999px;
  background: #fffdf7;
  color: var(--sketch-line);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 2px 2px 0 rgba(28, 36, 32, 0.84);
  opacity: 1;
}

.category-scroll button span {
  display: none;
}

.category-scroll button em {
  margin-left: 6px;
  color: rgba(28, 36, 32, 0.58);
  font-style: normal;
}

.category-scroll button:nth-child(4n + 1) {
  background: #fff6cb;
}

.category-scroll button:nth-child(4n + 2) {
  background: #e8f4eb;
}

.category-scroll button:nth-child(4n + 3) {
  background: #e8f1f8;
}

.category-scroll button:nth-child(4n) {
  background: #f8e3d9;
}

.category-scroll button.active,
.sort-switch button.active {
  background: var(--sketch-line);
  color: var(--sketch-paper);
  border-color: var(--sketch-line);
  box-shadow: 2px 2px 0 var(--sketch-yellow);
}

.category-scroll button.active em {
  color: rgba(255, 250, 240, 0.72);
}

.sort-switch {
  display: flex;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

.feed-card {
  border: 2px solid var(--sketch-line);
  border-radius: 16px;
  background: #fffdf7;
  box-shadow: 4px 4px 0 rgba(28, 36, 32, 0.82);
  transform: none;
}

.feed-card:hover {
  border-color: var(--sketch-line);
  box-shadow: 6px 6px 0 var(--sketch-mint);
  transform: translate(-1px, -2px);
}

.feed-media,
.uploaded-media {
  background: #f5efdf;
  border-radius: 14px;
}

.feed-title-reveal {
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 8px 10px;
  min-height: 0;
  border: 2px solid var(--sketch-line);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.96);
  color: var(--sketch-line);
  box-shadow: 2px 2px 0 rgba(28, 36, 32, 0.88);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.detail-backdrop {
  background: rgba(28, 36, 32, 0.48);
  backdrop-filter: blur(10px);
}

.detail-media-stage {
  background:
    radial-gradient(circle at 18% 16%, rgba(245, 204, 91, 0.16), transparent 26%),
    radial-gradient(circle at 82% 84%, rgba(146, 216, 189, 0.18), transparent 28%),
    #f4efe2;
}

.detail-media-stage .feed-media,
.detail-media-stage .uploaded-media {
  background: #f4efe2;
}

.detail-shell,
.upload-detail,
.prompt-parts-panel,
.assembled-panel,
.prompt-block,
.auth-panel,
.profile-menu {
  border: 2px solid var(--sketch-line);
  border-radius: 18px;
  background: #fffaf0;
  color: var(--sketch-line);
  box-shadow: 5px 5px 0 rgba(28, 36, 32, 0.86);
}

.detail-info {
  background: #fffaf0;
  color: var(--sketch-line);
}

.detail-close,
.auth-close {
  border: 2px solid var(--sketch-line);
  background: var(--sketch-line);
  color: var(--sketch-paper);
  box-shadow: 3px 3px 0 var(--sketch-mint);
}

.part-field textarea,
.assembled-panel textarea,
.upload-detail-form input,
.upload-detail-form textarea,
.auth-form input,
.link-upload-box input {
  border: 2px solid var(--sketch-line);
  border-radius: 10px;
  background: #fffdf7;
  color: var(--sketch-line);
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.74);
}

.detail-tags span,
.mood-chip,
.feed-tag-row span {
  border: 1.5px solid var(--sketch-line);
  background: #e8f1f8;
  color: var(--sketch-line);
  font-weight: 800;
}

.assembled-copy,
.detail-footer button,
.detail-footer a,
.upload-detail-form button[type="submit"],
.auth-form button[type="submit"],
.back-button {
  border: 2px solid var(--sketch-line);
  background: #1aa88c;
  color: #fffaf0;
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.86);
  font-weight: 900;
}

.detail-delete-button {
  background: #c94d3d !important;
  color: #fffaf0 !important;
}

@media (max-width: 820px) {
  #home-view .home-banner {
    width: 100%;
    min-height: 680px;
    padding: 70px 18px 86px;
    background:
      radial-gradient(circle at 50% 42%, rgba(255, 250, 240, 0.84) 0 28%, rgba(255, 250, 240, 0.34) 50%, transparent 68%),
      linear-gradient(180deg, rgba(244, 239, 226, 0.08) 0%, rgba(244, 239, 226, 0) 70%, #f4efe2 100%),
      url("./assets/aikit-hero-sketch.png") center center / cover no-repeat,
      #9ec7e8;
  }

  #home-view .home-banner-copy h1 {
    font-size: clamp(42px, 13vw, 72px);
    -webkit-text-stroke: 2px var(--sketch-line);
    text-shadow: 0 3px 0 var(--sketch-line), 0 7px 0 rgba(28, 36, 32, 0.14);
  }

  #home-view .home-banner-copy span {
    font-size: clamp(18px, 5vw, 25px);
  }

  .category-strip {
    width: min(100% - 24px, 1500px);
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .feed-grid {
    min-height: 420px;
  }
}
/* Last-mile overrides after legacy refinements */
html,
body {
  background: linear-gradient(180deg, #f4efe2 0%, #fffaf0 52%, #edf3e6 100%);
  color: #1c2420;
}

.global-nav {
  border-bottom: 2px solid #1c2420;
  background: rgba(255, 250, 240, 0.9);
}

.global-nav a,
.global-nav .mark,
.nav-auth {
  color: #1c2420;
}

.nav-search input {
  border: 2px solid #1c2420;
  background: #fffdf7;
  color: #1c2420;
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.88);
}

.nav-upload,
.nav-auth {
  border: 2px solid #1c2420;
  background: #f5cc5b;
  color: #1c2420;
  box-shadow: 3px 3px 0 rgba(28, 36, 32, 0.88);
}

#home-view {
  padding-top: 0;
}

#home-view .home-banner {
  width: 100%;
  min-height: clamp(620px, calc(100vh - 54px), 900px);
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  padding: clamp(72px, 7vw, 118px) 24px clamp(84px, 9vw, 138px);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 250, 240, 0.76) 0 22%, rgba(255, 250, 240, 0.36) 38%, transparent 56%),
    linear-gradient(180deg, rgba(244, 239, 226, 0.04) 0%, rgba(244, 239, 226, 0) 70%, #f4efe2 100%),
    url("./assets/aikit-hero-sketch.png") center center / cover no-repeat,
    #9ec7e8;
}

#home-view .home-banner::before,
#home-view .home-banner::after {
  display: none;
}

#home-view .home-banner-copy {
  max-width: 980px;
  margin: 0 auto;
  justify-items: center;
}

#home-view .home-banner-copy p,
#home-view .home-banner-copy span {
  color: #1c2420;
}

#home-view .home-banner-copy h1 {
  max-width: 980px;
  color: #fff;
  font-size: clamp(48px, 6vw, 104px);
  font-weight: 950;
  line-height: 1.12;
  text-align: center;
  -webkit-text-stroke: 2px #1c2420;
  text-shadow: 0 3px 0 #1c2420, 0 8px 0 rgba(28, 36, 32, 0.14);
}

.category-strip {
  width: min(1500px, calc(100% - 44px));
  margin: -18px auto 18px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.category-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-scroll button,
.sort-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1c2420;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 850;
  box-shadow: none;
  opacity: 1;
}

.category-scroll button span {
  display: none;
}

.category-scroll button em {
  margin-left: 6px;
  color: rgba(28, 36, 32, 0.58);
  font-style: normal;
}

.category-scroll button:nth-child(4n + 1),
.category-scroll button:nth-child(4n + 2),
.category-scroll button:nth-child(4n + 3),
.category-scroll button:nth-child(4n) {
  background: transparent;
}

.category-scroll button.active,
.sort-switch button.active {
  background: transparent;
  color: #1c2420;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.category-scroll button.active em {
  color: rgba(255, 250, 240, 0.72);
}

.sort-switch {
  display: flex;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

.feed-card {
  border: 2px solid #1c2420;
  border-radius: 16px;
  background: #fffdf7;
  box-shadow: 4px 4px 0 rgba(28, 36, 32, 0.82);
  transform: none;
}

.feed-card:hover {
  box-shadow: 5px 5px 0 rgba(28, 36, 32, 0.34);
  transform: translate(-1px, -2px);
}

.feed-media,
.uploaded-media,
.detail-media-stage .feed-media,
.detail-media-stage .uploaded-media {
  background: #f4efe2;
  border-radius: 14px;
}

.feed-title-reveal {
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.28;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72), 0 1px 1px rgba(0, 0, 0, 0.8);
}

.detail-backdrop {
  background: rgba(28, 36, 32, 0.48);
  backdrop-filter: blur(10px);
}

.detail-media-stage {
  background:
    radial-gradient(circle at 18% 16%, rgba(245, 204, 91, 0.16), transparent 26%),
    radial-gradient(circle at 82% 84%, rgba(146, 216, 189, 0.18), transparent 28%),
    #f4efe2;
}

.detail-close {
  border: 2px solid #1c2420;
  background: #1c2420;
  color: #fffaf0;
  box-shadow: 3px 3px 0 #92d8bd;
}

@media (max-width: 820px) {
  #home-view .home-banner {
    width: 100%;
    min-height: 520px;
    background:
      linear-gradient(180deg, transparent 0%, transparent 74%, #f4efe2 100%),
      url("./assets/aikit-hero-final.png") center center / cover no-repeat,
      #9ec7e8;
  }

  .category-strip {
    width: min(100% - 24px, 1500px);
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
}

