/* ── Design tokens — Dark direction ── */
:root {
  --bg:            #14110e;
  --bg-deep:       #0c0a08;
  --surface:       rgba(38, 32, 26, 0.72);
  --surface-solid: #26201a;
  --ink:           #f4ede0;
  --mute:          #9d958a;
  --soft:          #c4bcae;
  --line:          rgba(180, 160, 130, 0.14);
  --line-soft:     rgba(180, 160, 130, 0.08);
  --accent:        #e8a87c;
  --accent-soft:   rgba(232, 168, 124, 0.16);
  --accent-ink:    #f4c7a3;
  --danger:        #e87c7c;

  --font-serif:  'Inter', system-ui, sans-serif;
  --font-ui:     'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, monospace;
  --font-logo:   'Inter', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { font-size: 15px; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
textarea { font-family: inherit; }

/* ── Hero background ── */
.hero-bg {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 560px;
  background-image: url('./b32352bb-8283-450c-b5cf-fb6f2d8d0040.png');
  background-size: cover;
  background-position: center top;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 560px;
  background: linear-gradient(180deg,
    rgba(20, 17, 14, 0.45) 0%,
    rgba(20, 17, 14, 0.65) 50%,
    #14110e 100%);
  z-index: 0;
  pointer-events: none;
}

/* ── Header ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 17, 14, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 2px;
}
.brand-title {
  font-family: var(--font-logo);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-sub { font-size: 12px; color: var(--mute); margin-top: 2px; }

.top-nav { display: flex; align-items: center; gap: 8px; }

.nav-ghost {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--soft);
  padding: 8px 14px;
  transition: color .15s;
}
.nav-ghost:hover { color: var(--ink); }

.nav-primary {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1410;
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 8px;
  transition: opacity .15s;
}
.nav-primary:hover { opacity: .88; }
.nav-primary:disabled { opacity: .4; cursor: default; pointer-events: none; }

/* Auth */
.auth-panel { display: flex; align-items: center; gap: 8px; }
.user-chip { font-size: 13px; color: var(--mute); }

.login-dropdown { position: relative; }
.login-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  z-index: 200;
  backdrop-filter: blur(12px);
}
.login-menu button {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--ink);
  border-radius: 6px;
  transition: background .1s;
}
.login-menu button:hover { background: var(--accent-soft); }

/* ── Shell ── */
.app-shell {
  min-height: calc(100vh - 62px);
  position: relative;
  z-index: 1;
}

.feed-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 40px 80px;
}

/* ── Hero ── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: 76px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--soft);
  max-width: 580px;
}

/* ── Toolbar ── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 28px;
  border-bottom: 1px solid var(--line);
}

.tabs { display: flex; gap: 4px; }
.tab {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

.sort-dropdown { position: relative; margin-bottom: 1px; }
.sort-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--mute);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .15s;
}
.sort-trigger:hover { background: var(--accent-soft); color: var(--ink); }
.sort-arrow { font-size: 11px; }

.sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  z-index: 200;
}
.sort-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--ink);
  border-radius: 6px;
  transition: background .1s;
}
.sort-option:hover { background: var(--accent-soft); }
.sort-option.is-selected { color: var(--accent); font-weight: 600; background: var(--accent-soft); }

.subtabs { display: flex; gap: 4px; margin-bottom: 24px; }
.subtab {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .15s;
}
.subtab:hover { color: var(--ink); border-color: rgba(180,160,130,0.4); }
.subtab.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ── Grid ── */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* ── Card ── */
.idea-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 500px;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 235, 200, 0.04) inset,
              0 24px 60px -30px rgba(0, 0, 0, 0.6);
  transition: transform .15s, box-shadow .15s;
}
.idea-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 235, 200, 0.06) inset,
              0 32px 72px -24px rgba(0, 0, 0, 0.7);
}

.card-image { width: 100%; height: 220px; overflow: hidden; flex-shrink: 0; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.88) saturate(0.85); }
.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 17, 14, 0.10) 0%,
    rgba(20, 17, 14, 0.38) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.card-image-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
}

.card-header {
  padding: 20px 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.card-body {
  padding: 14px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.card-date { font-size: 12px; font-weight: 500; color: var(--mute); letter-spacing: .01em; }
.card-title {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.card-summary-wrap {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.card-summary-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--surface-solid));
  pointer-events: none;
}
.card-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--soft);
  background: transparent;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.card-share-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.card-read-more {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-left: auto;
}
.card-summary {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--soft);
  margin: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.card-actions { display: flex; align-items: center; gap: 8px; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #2e2720;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  z-index: 9999;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Comment count button (card footer) ── */
.comment-count-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.comment-count-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Comments section (detail view) ── */
.comment-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.comment-section-title {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}
.comment-auth-hint {
  font-size: 14px;
  color: var(--soft);
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 24px;
}
.comment-auth-hint button {
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  text-decoration: underline;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.comment-form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  resize: vertical;
  min-height: 80px;
  width: 100%;
  transition: border-color .15s;
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.comment-form-counter { font-size: 12px; color: var(--mute); }
.comment-empty {
  font-size: 14px;
  color: var(--mute);
  text-align: center;
  padding: 24px 0;
}
.comment-list { display: flex; flex-direction: column; gap: 18px; }
.comment-item { display: flex; gap: 12px; }
.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comment-content { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-author { font-size: 13px; font-weight: 600; color: var(--ink); }
.comment-date { font-size: 12px; color: var(--mute); }
.comment-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--soft);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Like button ── */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .15s;
}
.like-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.like-btn.is-liked { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.like-btn:disabled { opacity: .45; cursor: default; }
.like-btn-lg { padding: 10px 18px; font-size: 14px; gap: 8px; }
.like-heart { transition: transform .2s cubic-bezier(.34,1.56,.64,1); font-style: normal; }
.like-btn:active .like-heart { transform: scale(1.3); }

.card-report {
  font-size: 12.5px;
  color: var(--mute);
  cursor: pointer;
  background: none;
  border: none;
  transition: color .15s;
}
.card-report:hover { color: var(--danger); }
.card-report:disabled { opacity: .35; cursor: default; }

/* Status badge */
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-badge.pending  { background: rgba(254, 243, 199, 0.15); color: #fcd34d; }
.status-badge.hidden   { background: var(--line); color: var(--mute); }
.status-badge.rejected { background: rgba(254, 226, 226, 0.1); color: #fca5a5; }
.status-badge.published { background: var(--accent-soft); color: var(--accent); }

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  font-size: 15px;
  color: var(--mute);
}

/* ── Detail ── */
.detail-view .feed-shell { padding-top: 32px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mute);
  margin-bottom: 28px;
  transition: color .15s;
  background: none;
  border: none;
  cursor: pointer;
}
.back-link:hover { color: var(--ink); }

.detail-article { max-width: 720px; margin: 0 auto; }

.detail-kicker { margin-bottom: 18px; }

.detail-h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--mute);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.detail-meta-dot { color: var(--line); }

.detail-lead-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
}
.detail-lead-image img { width: 100%; height: 100%; object-fit: cover; }

.detail-body {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}
.detail-body p { margin-bottom: 20px; }
.detail-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(232, 168, 124, 0.4);
  text-underline-offset: 3px;
  word-break: break-all;
  transition: text-decoration-color .15s;
}
.detail-body a:hover { text-decoration-color: var(--accent); }
.detail-body h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 36px 0 16px;
}
.detail-body ol, .detail-body ul { padding-left: 22px; margin-bottom: 24px; }
.detail-body li { margin-bottom: 10px; }

.detail-extra-images { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.detail-extra-images img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* Prompt box */
.prompt-box {
  background: var(--accent-soft);
  border: 1px solid rgba(232, 168, 124, 0.3);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
}
.prompt-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.prompt-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.prompt-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 124, 0.35);
  background: transparent;
  cursor: pointer;
  transition: all .15s;
}
.prompt-copy:hover { background: rgba(232, 168, 124, 0.12); }
.prompt-copy.copied { color: var(--accent-ink); }
.prompt-text {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--accent-ink);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* Actions bar */
.actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  margin: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.actions-bar-left { display: flex; gap: 10px; }
.actions-bar-count { font-size: 13.5px; color: var(--mute); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--soft);
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.btn-secondary:hover { border-color: rgba(180,160,130,0.4); color: var(--ink); }

.detail-mod-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ── Compose ── */
.compose-view .feed-shell { padding-top: 32px; }
.compose-wrap { max-width: 720px; margin: 0 auto; }

.compose-h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin: 8px 0;
}
.compose-sub {
  font-size: 16px;
  color: var(--soft);
  line-height: 1.5;
  margin: 8px 0 32px;
}

.meter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 168, 124, 0.18);
  border-radius: 10px;
  margin-bottom: 28px;
}
.meter-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  background: rgba(20, 17, 14, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.meter-text { font-size: 13.5px; color: var(--accent-ink); margin: 0; }

.idea-form { display: flex; flex-direction: column; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.field label, .field > label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .005em;
}
.field-optional { font-weight: 400; color: var(--mute); font-size: 12px; }
.field-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.field-counter.near-limit { color: var(--danger); }

.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(38, 32, 26, 0.5);
  color: var(--ink);
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-serif);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--mute); }
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.18);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
#ideaBody { min-height: 220px; }

.field-help { font-size: 12.5px; color: var(--mute); }
.field-help-inline { font-size: 12px; color: var(--mute); }

/* Drop zone */
.drop-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  background: rgba(38, 32, 26, 0.5);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop-zone:hover, .drop-zone.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.drop-zone-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  flex-shrink: 0;
}
.drop-zone-text { display: flex; flex-direction: column; gap: 2px; }
.drop-zone-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.drop-zone-help  { font-size: 12.5px; color: var(--mute); }

/* Image previews */
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.preview-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: grab;
}
.preview-item.dragging { opacity: .4; }
.preview-item.drag-over { border: 2px solid var(--accent); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-tag {
  position: absolute; bottom: 6px; left: 6px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  color: rgba(244, 237, 224, 0.9);
  background: rgba(20, 17, 14, 0.65);
  padding: 2px 6px; border-radius: 4px;
  max-width: calc(100% - 36px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  backdrop-filter: blur(4px);
}
.preview-remove {
  position: absolute; top: 5px; right: 5px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.preview-remove:hover { background: rgba(0,0,0,.8); }

/* Submit bar */
.submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.submit-bar-hint { font-size: 13px; color: var(--mute); flex: 1; }
.submit-bar-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn-ghost {
  font-size: 14px; font-weight: 500;
  color: var(--soft); background: transparent;
  border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.btn-ghost:hover { border-color: rgba(180,160,130,0.4); color: var(--ink); }

.btn-primary {
  font-size: 14px; font-weight: 600;
  color: #1a1410; background: var(--accent);
  border: none;
  padding: 11px 22px; border-radius: 8px;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-primary:hover { opacity: .88; }
.btn-primary:disabled { opacity: .45; cursor: default; }

/* ── Moderation / admin cards ── */
.feature-card, .report-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 12px;
  backdrop-filter: blur(12px);
}
.feature-card h2 {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.report-card__idea {
  font-size: 15px; font-weight: 600;
  color: var(--ink);
}
.report-card__reason {
  font-size: 14px; color: var(--soft);
  font-style: italic; margin: 8px 0;
}
.report-card__meta { font-size: 12.5px; color: var(--mute); }
.status-line { font-size: 12px; color: var(--mute); margin-bottom: 6px; }

.btn-ok {
  font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border: none; padding: 7px 14px; border-radius: 8px;
  cursor: pointer; transition: opacity .15s;
}
.btn-ok:hover { opacity: .8; }
.btn-ok:disabled { opacity: .4; cursor: default; }

.btn-danger {
  font-size: 13px; font-weight: 600;
  color: var(--danger); background: rgba(232, 124, 124, 0.12);
  border: none; padding: 7px 14px; border-radius: 8px;
  cursor: pointer; transition: opacity .15s;
}
.btn-danger:hover { opacity: .8; }

.form-status { font-size: 13.5px; color: var(--accent); padding: 10px 0; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .app-header { padding: 14px 20px; }
  .feed-shell  { padding: 48px 20px 60px; }
  .hero-h1     { font-size: 52px; }
  .ideas-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top-nav > .nav-ghost:first-child { display: none; }
  .hero-h1   { font-size: 38px; }
  .detail-h1 { font-size: 32px; }
  .compose-h1 { font-size: 30px; }
  .submit-bar { flex-direction: column; align-items: stretch; }
  .submit-bar-actions { justify-content: flex-end; }
  .hero-bg, .hero-bg-overlay { height: 400px; }
}
