/* UGC Baddies — AI Creator Studio — Pink Edition */

/* ── Palette ──────────────────────────────────────────────────────────────── */
:root {
  /* Core palette — Pink / Rose / Blush */
  --cream:    #FDF7F8;   /* Warm pink-white — page bg */
  --honey:    #FFF0F3;   /* Soft blush — card surfaces */
  --peach:    #FFE4EA;   /* Light rose — elevated, hover */
  --oat:      #F9C8D4;   /* Medium rose — borders, sidebar */
  --blush:    #F2A4B8;   /* Rose blush — accents */
  --sage:     #E8527A;   /* Primary rose — action */
  --sage-d:   #C83860;   /* Darker rose — hover */
  --sage-l:   #F4B8C8;   /* Lighter rose — subtle fills */

  /* Text — deep rose tones */
  --text:     #2D0F1A;
  --text-2:   #7A2840;
  --text-3:   #C07890;

  /* Rose accent */
  --lav:      #F4C0CC;
  --lav-bg:   rgba(244,192,204,0.22);

  /* Category colors */
  --c-media:     #E8527A;
  --c-avatar:    #D490A0;
  --c-vibe:      #7AAED8;
  --c-voice:     #C47A9A;
  --c-reference: #7A97D0;
  --c-product:   #C49A48;

  /* Semantic */
  --success:  #6B9B6F;
  --danger:   #C0614A;
  --warning:  #C49748;

  /* Shape */
  --r:   12px;
  --r-s:  8px;
  --r-l: 18px;
  --r-xl: 24px;

  /* Shadow — rose-toned */
  --sh-s: 0 1px 4px rgba(45,15,26,0.08), 0 0 0 1px rgba(232,82,122,0.08);
  --sh-m: 0 4px 20px rgba(45,15,26,0.10), 0 0 0 1px rgba(232,82,122,0.06);
  --sh-l: 0 12px 40px rgba(45,15,26,0.16), 0 0 0 1px rgba(232,82,122,0.08);

  /* Layout */
  --sidebar-w: 192px;
  --nav-h: 52px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { height:100%; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ── Font rules ───────────────────────────────────────────────────────────── */
.logo-script,
.landing-logo-script,
.auth-title.logo-script {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.panel-title,
.hero-title,
.modal-title,
.sidebar-group-label {
  font-family: 'Caveat', cursive;
}

/* ══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════════════════════ */

.landing {
  min-height: 100vh;
  background: var(--cream);
  background-image:
    radial-gradient(ellipse 70% 55% at 80% 10%, rgba(244,192,204,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 5%  85%, rgba(244,192,204,0.30) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255,228,234,0.20) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Floating orb decorations */
.landing::before,
.landing::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.landing::before {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,82,122,0.14) 0%, transparent 70%);
  top: -80px; right: -80px;
  animation: orbFloat 8s ease-in-out infinite;
}
.landing::after {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(244,180,196,0.18) 0%, transparent 70%);
  bottom: 80px; left: -60px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(20px,-15px) scale(1.04); }
  66%     { transform: translate(-10px,20px) scale(0.97); }
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: relative;
  z-index: 1;
}

.landing-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-logo-mark {
  color: var(--sage);
  font-size: 18px;
}

.landing-logo-script {
  font-family: 'Great Vibes', cursive;
  font-size: 26px;
  font-weight: 400;
  color: var(--sage-d);
  line-height: 1;
}

.btn-enter {
  background: var(--sage);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(232,82,122,0.35);
}
.btn-enter:hover { background: var(--sage-d); box-shadow: 0 4px 18px rgba(232,82,122,0.45); }

/* Hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 60px 40px 80px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-inner { flex: 1; max-width: 480px; }

.hero-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(232,82,122,0.10);
  border: 1px solid rgba(232,82,122,0.22);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(52px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--sage);
  background: linear-gradient(135deg, var(--sage), var(--blush));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 400px;
}

.hero-cta {
  background: linear-gradient(135deg, var(--sage), var(--sage-d));
  color: #fff;
  border: none;
  border-radius: var(--r-l);
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(232,82,122,0.38);
}
.hero-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(232,82,122,0.50); }
.hero-cta:active { transform: translateY(0); }

/* Hero visual cards */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  width: 280px;
  flex-shrink: 0;
}

.hero-card {
  background: var(--honey);
  border: 1px solid var(--oat);
  border-radius: var(--r-l);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--sh-s);
  animation: heroFloat 4s ease-in-out infinite;
}
.hero-card:nth-child(2) { animation-delay: 0.6s; }
.hero-card:nth-child(3) { animation-delay: 1.2s; }
.hero-card:nth-child(4) { animation-delay: 1.8s; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hc-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.hc-icon { color: var(--text-2); }

.hc-generate {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--sage), var(--sage-d));
  border-color: var(--sage);
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  animation-delay: 2.4s;
  box-shadow: 0 4px 18px rgba(232,82,122,0.38);
}
.hc-generate-label {
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  font-weight: 600;
}
.hc-generate svg { color: white; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 80px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--honey);
  border: 1px solid var(--oat);
  border-radius: var(--r-l);
  padding: 28px 24px;
  box-shadow: var(--sh-s);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-m);
}
.feature-icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(232,82,122,0.10);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.landing-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  gap: 10px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   AUTH GATE
══════════════════════════════════════════════════════════════════════════ */

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, var(--honey) 0%, var(--peach) 45%, rgba(196,173,232,0.35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-gate.fading { animation: fadeOut 0.3s ease forwards; }
@keyframes fadeOut { to { opacity:0; pointer-events:none; } }

.auth-card {
  background: rgba(250,248,255,0.94);
  border: 1px solid var(--oat);
  border-radius: var(--r-xl);
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: var(--sh-l);
  backdrop-filter: blur(20px);
  position: relative;
}
@keyframes auth-shake {
  0%,100% { transform:translateX(0); }
  20%      { transform:translateX(-7px); }
  40%      { transform:translateX(7px); }
  60%      { transform:translateX(-5px); }
  80%      { transform:translateX(5px); }
}
.auth-card.shaking { animation: auth-shake 0.4s ease; }

.auth-back {
  position: absolute;
  top: 16px; left: 20px;
  font-size: 12px;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  transition: color 0.15s;
}
.auth-back:hover { color: var(--text-2); }

.auth-logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--peach), rgba(244,184,200,0.45));
  border: 1px solid var(--oat);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  color: var(--sage);
  box-shadow: 0 2px 12px rgba(232,82,122,0.18);
}
.auth-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

/* Great Vibes overrides for auth title */
.auth-title.logo-script {
  font-size: 38px;
  font-weight: 400;
  color: var(--sage-d);
  line-height: 1.1;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 28px;
}
.auth-form { display:flex; flex-direction:column; gap:10px; }

.auth-input {
  width: 100%;
  background: rgba(255,255,255,0.85);
  border: 1.5px solid var(--oat);
  border-radius: var(--r);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  text-align: center;
  letter-spacing: 0.1em;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input::placeholder { letter-spacing: 0.02em; color: var(--text-3); }
.auth-input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(232,82,122,0.13); }

.auth-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--sage), var(--sage-d));
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  transition: opacity 0.15s;
  box-shadow: 0 2px 12px rgba(232,82,122,0.28);
}
.auth-btn:hover:not(:disabled) { opacity: 0.9; }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-error {
  margin-top: 10px;
  font-size: 12px;
  color: var(--danger);
  min-height: 16px;
}

/* ══════════════════════════════════════════════════════════════════════════
   MAIN APP LAYOUT
══════════════════════════════════════════════════════════════════════════ */

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Top Nav ── */
.top-nav {
  height: var(--nav-h);
  background: var(--honey);
  border-bottom: 1px solid var(--oat);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  flex-shrink: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-logo-mark {
  color: var(--sage);
  font-size: 16px;
}

.nav-logo .logo-script {
  font-size: 24px;
  line-height: 1;
  color: var(--sage-d);
}

.nav-center { flex: 1; display: flex; justify-content: center; }

/* Brand Selector */
.brand-selector-wrap { position: relative; }

.brand-selector-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--cream);
  border: 1px solid var(--oat);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.brand-selector-btn:hover { border-color: var(--blush); background: var(--peach); }

.brand-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--cream);
  border: 1px solid var(--oat);
  border-radius: var(--r-l);
  box-shadow: var(--sh-l);
  overflow: hidden;
  z-index: 200;
  animation: dropIn 0.15s ease;
}
@keyframes dropIn {
  from { opacity:0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

.brand-dropdown-list { padding: 8px 0; }

.brand-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 16px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.brand-option:hover { background: var(--honey); }
.brand-option.active { font-weight: 600; color: var(--sage); }
.brand-option-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage-l);
  flex-shrink: 0;
}
.brand-option.active .brand-option-dot { background: var(--sage); }

.brand-dropdown-footer {
  padding: 8px;
  border-top: 1px solid var(--oat);
}
.brand-new-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  background: none;
  border: 1px dashed var(--oat);
  border-radius: var(--r-s);
  font-family: inherit;
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
}
.brand-new-btn:hover { color: var(--sage); border-color: var(--sage-l); background: var(--honey); }

/* Nav right — stat chips */
.nav-right { display: flex; gap: 8px; flex-shrink: 0; }

.stat-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--cream);
  border: 1px solid var(--oat);
  color: var(--text-3);
  white-space: nowrap;
}
.stat-chip.stat-sage { border-color: rgba(155,126,200,0.35); color: var(--sage); }

/* ── App Body ── */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--honey);
  border-right: 1px solid var(--oat);
  overflow-y: auto;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
}

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 20px; }

.sidebar-group { display: flex; flex-direction: column; gap: 2px; }

.sidebar-group-label {
  font-family: 'Caveat', cursive;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-3);
  padding: 0 8px;
  margin-bottom: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: var(--r-s);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, color 0.1s;
  position: relative;
}
.sidebar-item:hover { background: var(--peach); color: var(--text); }
.sidebar-item.active {
  background: linear-gradient(135deg, var(--sage), var(--sage-d));
  color: #fff;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(232,82,122,0.28);
}
.sidebar-item.active .si-icon { opacity: 1; }
.sidebar-item.active .sidebar-count { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); }

.si-icon {
  width: 15px; height: 15px;
  flex-shrink: 0;
  opacity: 0.6;
}
.sidebar-item:hover .si-icon,
.sidebar-item.active .si-icon { opacity: 1; }

.sidebar-item span:not(.si-icon):not(.sidebar-count) { flex: 1; }

.sidebar-count {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 100px;
  background: rgba(232,82,122,0.10);
  color: var(--text-3);
  min-width: 18px;
  text-align: center;
}

/* ── Workspace ── */
.workspace {
  flex: 1;
  overflow-y: auto;
  background: var(--cream);
  position: relative;
}

/* ── Panels ── */
.panel {
  display: none;
  padding: 32px 36px 80px;
  min-height: 100%;
  max-width: 900px;
}
.panel.active { display: block; }

.panel-header {
  margin-bottom: 28px;
}
.panel-title {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--text);
}
.panel-desc {
  font-size: 13px;
  color: var(--text-3);
}

/* ── Drop Zones ── */
.drop-zone-wrap { margin-bottom: 24px; }

.drop-zone {
  border: 1.5px dashed var(--blush);
  border-radius: var(--r-l);
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  background: rgba(250,248,255,0.6);
  position: relative;
  overflow: hidden;
}
.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(232,82,122,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.drop-zone input[type="file"] { display: none; }

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--sage-l);
  background: rgba(234,224,248,0.6);
  box-shadow: var(--sh-s);
}
.drop-zone.dragover { transform: scale(1.005); }

.dz-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  pointer-events: none;
}
.drop-zone:hover .dz-inner { color: var(--text-2); }

.dz-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.dz-hint {
  font-size: 12px;
  color: var(--text-3);
}

/* URL input row */
.url-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.url-input {
  flex: 1;
  background: var(--honey);
  border: 1px solid var(--oat);
  border-radius: var(--r-s);
  padding: 9px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.url-input:focus { border-color: var(--sage-l); }
.url-input::placeholder { color: var(--text-3); }

/* ── Library Panel ── */
.library-panel { display: flex; flex-direction: column; gap: 24px; }

.lib-group { }

.lib-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--oat);
}
.lib-group-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.lib-group-desc {
  font-size: 11px;
  color: var(--text-3);
  margin-left: 8px;
  font-weight: 400;
}

.lib-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Asset card */
.asset-card {
  width: 140px;
  background: var(--honey);
  border: 1px solid var(--oat);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.asset-card:hover { border-color: var(--blush); box-shadow: var(--sh-s); }
.asset-card:hover .asset-remove-btn { opacity: 1; }

.asset-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--peach);
  display: block;
}

.asset-card-audio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 10px;
  background: var(--peach);
  aspect-ratio: 1;
  color: var(--c-voice);
}
.asset-card-audio audio {
  width: 100%;
  max-width: 170px;
  height: 28px;
}

.asset-card-info {
  padding: 8px 10px;
}
.asset-filename {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-dims {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 1px;
}

/* AI Context */
.ai-context-status {
  font-size: 10px;
  color: var(--sage);
  margin-top: 4px;
  opacity: 0.7;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse { 0%,100% { opacity:0.4; } 50% { opacity:1; } }

.ai-context {
  margin-top: 6px;
  cursor: pointer;
  border-top: 1px solid var(--oat);
  padding-top: 6px;
}
.ai-context-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  margin-bottom: 2px;
}
.ai-context-summary {
  font-size: 10px;
  color: var(--text-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-context-full {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--oat);
}
.ai-ctx-row {
  display: flex;
  gap: 6px;
  font-size: 10px;
  line-height: 1.4;
  margin-bottom: 2px;
}
.ai-ctx-key {
  color: var(--text-3);
  text-transform: capitalize;
  flex-shrink: 0;
  min-width: 60px;
}
.ai-ctx-val { color: var(--text-2); }

.asset-card.has-context { width: 175px; }

.asset-remove-btn {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(30,21,53,0.65);
  backdrop-filter: blur(4px);
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.asset-remove-btn:hover { color: #ff8a80; }

/* Add more card */
.add-more-card {
  width: 140px;
  height: 140px;
  border: 1px dashed var(--oat);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  color: var(--text-3);
}
.add-more-card:hover { border-color: var(--blush); background: var(--honey); color: var(--text-2); }
.add-more-card.dragover { border-color: var(--sage-l); background: rgba(232,82,122,0.05); }
.add-more-card input[type="file"] { display: none; }
.add-more-icon { font-size: 22px; font-weight: 300; line-height: 1; }
.add-more-label { font-size: 10px; }

/* Ref video card */
.asset-card-refvideo { width: 180px; }
.asset-card-refvideo.has-context { width: 200px; }

.refvideo-preview {
  width: 100%;
  aspect-ratio: 9/16;
  background: var(--peach);
  max-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-s) var(--r-s) 0 0;
}
.refvideo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--c-reference);
  transition: background 0.15s;
}
.refvideo-link:hover { background: rgba(122,151,208,0.12); }
.refvideo-play-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--c-reference);
  display: flex; align-items: center; justify-content: center;
}
.refvideo-plat-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-reference);
}
.refvideo-card-video {
  width: 100%; height: 100%; object-fit: cover;
}

/* Product link cards */
.productlink-list { display: flex; flex-direction: column; gap: 8px; }

.productlink-card {
  background: var(--honey);
  border: 1px solid var(--oat);
  border-radius: var(--r);
  padding: 14px 40px 14px 16px;
  position: relative;
  transition: border-color 0.15s;
  animation: fadeSlide 0.25s ease;
}
.productlink-card:hover { border-color: var(--blush); }
.productlink-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.productlink-card-url {
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}
.productlink-card-url:hover { color: var(--sage); }
.productlink-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-2);
  align-items: center;
}
.pl-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(196,154,72,0.10);
  border: 1px solid rgba(196,154,72,0.25);
  color: var(--c-product);
}
.productlink-features {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--oat);
}
.pl-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  background: var(--c-product);
  animation: pulse 1.5s ease infinite;
}
.pl-status-ok { color: var(--success); }
.pl-status-err { color: var(--danger); }
.pl-remove-btn {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: none;
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}
.pl-remove-btn:hover { color: var(--danger); }

/* ── Queue ── */
.queue-section {
  position: fixed;
  bottom: 20px;
  right: 24px;
  width: 480px;
  background: var(--cream);
  border: 1px solid var(--oat);
  border-radius: var(--r-l);
  box-shadow: var(--sh-l);
  z-index: 500;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.2s ease;
}
@keyframes slideUp {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--oat);
  background: var(--honey);
}
.queue-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.queue-badge {
  background: var(--sage);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 100px;
}

.queue-list {
  overflow-y: auto;
  max-height: 40vh;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--oat);
}

.queue-item {
  background: var(--cream);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeSlide 0.2s ease;
}
@keyframes fadeSlide {
  from { opacity:0; transform: translateY(-5px); }
  to   { opacity:1; transform: translateY(0); }
}

.queue-thumb {
  width: 44px; height: 44px;
  border-radius: var(--r-s);
  object-fit: cover;
  background: var(--peach);
  flex-shrink: 0;
}
.queue-thumb-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-s);
  background: var(--peach);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.queue-info { flex: 1; min-width: 0; }
.queue-filename {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-meta {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.queue-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Shared Inputs & Buttons ── */
.input {
  background: var(--honey);
  border: 1px solid var(--oat);
  border-radius: var(--r-s);
  padding: 6px 10px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  width: 130px;
}
.input:focus { border-color: var(--sage-l); }
.input::placeholder { color: var(--text-3); }
.input-wide { width: 160px; }

.btn {
  padding: 6px 13px;
  border: none;
  border-radius: var(--r-s);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-sm { padding: 5px 10px; font-size: 11px; }

.btn-primary {
  background: var(--sage);
  color: #fff;
}
.btn-primary:hover { background: var(--sage-d); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-sage-sm {
  background: var(--sage);
  color: #fff;
  border: none;
  border-radius: var(--r-s);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-sage-sm:hover { background: var(--sage-d); }

.btn-ghost {
  background: transparent;
  color: var(--text-3);
  padding: 6px 8px;
}
.btn-ghost:hover { color: var(--text-2); }

.btn-danger-text {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 11px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-danger-text:hover { color: var(--danger); background: rgba(192,97,74,0.07); }

.btn-copy-brief {
  font-size: 10px;
  padding: 3px 8px;
  background: none;
  border: 1px solid var(--oat);
  border-radius: 4px;
  color: var(--text-3);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-copy-brief:hover { border-color: var(--sage-l); color: var(--sage); }

/* Badge */
.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-product   { background: rgba(232,82,122,0.08); color: var(--c-media); }
.badge-subject   { background: rgba(212,144,192,0.12); color: var(--c-avatar); }
.badge-mood      { background: rgba(122,176,216,0.12); color: var(--c-vibe); }
.badge-audio     { background: rgba(196,122,154,0.12); color: var(--c-voice); }
.badge-refvideo  { background: rgba(122,151,208,0.12); color: var(--c-reference); }

/* Empty state */
.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  border: 1px dashed var(--oat);
  border-radius: var(--r-l);
}

/* ── PROMPT WORKSPACE ── */
.prompt-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

.prompt-brief-wrap {
  background: var(--honey);
  border: 1px solid var(--oat);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: border-color 0.15s;
}
.prompt-brief-wrap:focus-within { border-color: var(--sage-l); }

.prompt-brief-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--oat);
}
.prompt-brief-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.prompt-save-status {
  font-size: 11px;
  font-weight: 500;
}
.prompt-save-status.saved { color: var(--success); }
.prompt-save-status.unsaved { color: var(--text-3); }
.prompt-save-status.error { color: var(--danger); }

.prompt-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  line-height: 1.65;
  padding: 14px 16px;
  resize: vertical;
  min-height: 110px;
}
.prompt-textarea::placeholder { color: var(--text-3); }

/* ── Attachment Selects (new dropdown style) ── */
.prompt-attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.att-select-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 110px;
  max-width: 180px;
}

.att-select-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.att-select {
  background: var(--honey);
  border: 1px solid var(--oat);
  border-radius: var(--r-s);
  padding: 7px 28px 7px 10px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-2);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23C07890' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  width: 100%;
}
.att-select:focus { border-color: var(--sage-l); box-shadow: 0 0 0 3px rgba(232,82,122,0.10); }
.att-select option { color: var(--text); background: var(--cream); }

/* (keep old attachment-item styles for compatibility) */
.attachment-item {
  background: var(--honey);
  border: 1px solid var(--oat);
  border-radius: var(--r-s);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  max-width: 200px;
  flex: 1;
}
.att-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  flex-shrink: 0;
}
.att-choose-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: var(--cream);
  border: 1px solid var(--oat);
  border-radius: 6px;
  padding: 5px 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
  overflow: hidden;
}
.att-choose-btn:hover { border-color: var(--sage-l); background: var(--peach); }
.att-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
  color: var(--text-3);
}
.att-value.selected { color: var(--text); font-weight: 500; }

/* Settings row */
.prompt-settings {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.setting-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.setting-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.setting-select {
  background: var(--honey);
  border: 1px solid var(--oat);
  border-radius: var(--r-s);
  padding: 7px 10px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23C07890' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.setting-select:focus { border-color: var(--sage-l); }

.setting-cost {
  font-size: 12px;
  color: var(--text-3);
  padding-bottom: 8px;
  font-weight: 400;
}
.setting-cost strong { color: var(--text-2); }

/* Generate button */
.btn-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-d) 100%);
  color: #fff;
  border: none;
  border-radius: var(--r-l);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(232,82,122,0.38);
}
.btn-generate:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(232,82,122,0.50); }
.btn-generate:active { transform: translateY(0); }
.btn-generate:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.gen-status {
  padding: 12px 16px;
  border-radius: var(--r-s);
  font-size: 13px;
  background: var(--honey);
  border: 1px solid var(--oat);
  color: var(--text-2);
}
.gen-status.success { border-color: rgba(107,155,111,0.4); background: rgba(107,155,111,0.08); color: var(--success); }
.gen-status.error { border-color: rgba(192,97,74,0.3); background: rgba(192,97,74,0.06); color: var(--danger); }

/* ── OUTPUTS ── */
.output-run-card {
  background: var(--honey);
  border: 1px solid var(--oat);
  border-radius: var(--r-l);
  padding: 16px;
  margin-bottom: 16px;
}
.output-run-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
}
.output-run-date { color: var(--text-3); }
.output-run-stats { color: var(--text-2); font-weight: 500; }

.output-videos-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.output-video-card {
  width: 180px;
  background: var(--cream);
  border: 1px solid var(--oat);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.15s;
}
.output-video-card:hover { border-color: var(--blush); }
.output-video-wrap {
  aspect-ratio: 9/16;
  background: #1E1535;
  position: relative;
}
.output-video-wrap video { width:100%; height:100%; object-fit:contain; }
.output-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--peach);
}
.output-status {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: capitalize;
}
.output-status-done { background: rgba(107,155,111,0.1); color: var(--success); }
.output-status-queued { background: rgba(232,82,122,0.08); color: var(--text-3); }
.output-status-generating { background: rgba(232,82,122,0.09); color: var(--sage); animation: pulse 1.5s ease infinite; }
.output-status-failed { background: rgba(192,97,74,0.08); color: var(--danger); }

.output-video-info { padding: 8px 10px; }
.output-video-label { font-size: 12px; font-weight: 600; color: var(--text); }
.output-video-angle { font-size: 11px; color: var(--text-3); margin-top:1px; }
.output-video-size { font-size: 10px; color: var(--text-3); margin-top:2px; }

.outputs-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}
.outputs-empty p { margin-top: 8px; font-size: 13px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,21,53,0.45);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal-card {
  background: var(--cream);
  border: 1px solid var(--oat);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-l);
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity:0; transform: scale(0.96) translateY(8px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--oat);
  background: var(--honey);
  flex-shrink: 0;
}
.modal-title {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.modal-close-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--peach);
  border: none;
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.modal-close-btn:hover { background: var(--blush); }

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Modal for creating brand */
.modal-input {
  width: 100%;
  background: var(--honey);
  border: 1.5px solid var(--oat);
  border-radius: var(--r-s);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 16px;
}
.modal-input:focus { border-color: var(--sage-l); }
.modal-input::placeholder { color: var(--text-3); }

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.btn-ghost-sm {
  background: none;
  border: 1px solid var(--oat);
  border-radius: var(--r-s);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost-sm:hover { background: var(--peach); }

.btn-sage {
  background: var(--sage);
  color: #fff;
  border: none;
  border-radius: var(--r-s);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-sage:hover { background: var(--sage-d); }

/* Picker modal content */
.picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.picker-item {
  border: 1.5px solid var(--oat);
  border-radius: var(--r-s);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--honey);
}
.picker-item:hover { border-color: var(--sage-l); box-shadow: var(--sh-s); }
.picker-item.selected { border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage); }

.picker-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.picker-label {
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker-item.selected .picker-label { color: var(--sage); }

.picker-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--oat);
  border-radius: var(--r-s);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--honey);
  margin-bottom: 6px;
}
.picker-list-item:hover { border-color: var(--sage-l); background: var(--peach); }
.picker-list-item.selected { border-color: var(--sage); background: rgba(232,82,122,0.05); }

.picker-list-icon { color: var(--text-3); flex-shrink: 0; }
.picker-list-name { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; }
.picker-list-url { font-size: 11px; color: var(--text-3); }
.picker-list-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sage);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 10px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.picker-list-item.selected .picker-list-check { opacity: 1; }

.picker-none-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: 1px dashed var(--oat);
  border-radius: var(--r-s);
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 8px;
  text-align: center;
  transition: all 0.15s;
}
.picker-none-btn:hover { color: var(--text-2); border-color: var(--blush); }
.picker-none-btn.active { border-color: var(--sage-l); color: var(--sage); background: rgba(155,126,200,0.05); }

.picker-done-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: var(--r-s);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.picker-done-btn:hover { background: var(--sage-d); }

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 9000;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: rgba(250,248,255,0.92);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 500;
  animation: toastIn 0.25s ease;
  max-width: 360px;
  text-align: center;
  box-shadow: var(--sh-m);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes toastIn {
  from { opacity:0; transform: translateY(8px) scale(0.95); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .hero { flex-direction: column; gap: 40px; }
  .hero-visual { width: 100%; max-width: 320px; }
}
@media (max-width: 700px) {
  .sidebar { display: none; }
  .panel { padding: 24px 20px 60px; }
  .landing-nav { padding: 16px 20px; }
  .hero { padding: 40px 20px 60px; }
  .features { padding: 0 20px 60px; }
  .queue-section { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .prompt-attachments { flex-direction: column; }
  .att-select-group { max-width: none; }
}
