/* ── Design tokens — Tobacco palette ── */
:root {
  --hero-bg:     #2d2418;
  --hero-ink:    #faf3e3;
  --hero-mute:   rgba(250, 243, 227, 0.72);
  --bg:          #faf4e4;
  --surface:     #ffffff;
  --surface-solid: #ffffff;
  --ink:         #241c12;
  --mute:        #7e7259;
  --soft:        #544839;
  --line:        #e6dcc1;
  --line-soft:   #f0e7cf;
  --accent:      #c45a2b;
  --accent-soft: #f5d9c4;
  --accent-ink:  #7a3215;
  --danger:      #d04040;

  --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;
}
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 section (dark top) ── */
.hero-section {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding-bottom: 56px;
}
.hero-section.no-hero {
  padding-bottom: 0;
}

/* ── Hero background photo ── */
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('./b32352bb-8283-450c-b5cf-fb6f2d8d0040.png');
  background-size: cover;
  background-position: center top;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}
.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(45, 36, 24, 0.33) 0%,
    rgba(45, 36, 24, 0.67) 65%,
    #2d2418 100%);
  z-index: 0;
  pointer-events: none;
}

/* ── Header ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
}
.brand-title {
  font-family: var(--font-logo);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hero-ink);
}
.brand-sub {
  font-size: 12.5px;
  color: var(--hero-mute);
  font-weight: 500;
}

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

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

.nav-primary {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1410;
  background: var(--accent);
  padding: 10px 18px;
  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(--hero-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(60, 40, 20, 0.14);
  z-index: 200;
}
.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); }

/* ── Hero inner ── */
.hero-inner-wrap {
  position: relative;
  z-index: 1;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 40px 0;
}

/* ── Kicker ── */
.kicker {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #1a1410;
  background: var(--accent);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.005em;
}
.kicker-dot { display: none; }

.hero-h1 {
  font-family: var(--font-serif);
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  color: var(--hero-ink);
  margin-bottom: 22px;
  white-space: nowrap;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--hero-mute);
  font-weight: 400;
}

/* ── Shell ── */
.app-shell {
  min-height: 100vh;
  position: relative;
}

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

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

.tabs { display: flex; gap: 28px; }
.tab {
  padding: 4px 0;
  padding-bottom: 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -14px;
  transition: color .15s;
  background: none;
  cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.sort-dropdown { position: relative; margin-bottom: 1px; }
.sort-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mute);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .15s, color .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(60, 40, 20, 0.12);
  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: var(--soft); }
.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: 20px;
}

/* ── Card ── */
.idea-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(40, 30, 20, 0.04), 0 6px 18px -10px rgba(60, 40, 20, 0.14);
  transition: transform .15s, box-shadow .15s;
}
.idea-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(40, 30, 20, 0.06), 0 12px 28px -8px rgba(60, 40, 20, 0.18);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.card-image-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(0,0,0,0.35) 100%);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-body {
  padding: 22px 26px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-date { font-size: 12.5px; font-weight: 500; color: var(--mute); letter-spacing: .005em; }
.card-title {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.card-summary {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--soft);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color .15s;
  flex-shrink: 0;
}
.card-share-btn:hover { color: var(--accent); }

.card-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  letter-spacing: 0.005em;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px 18px;
  flex-shrink: 0;
}
.card-actions { display: flex; align-items: center; gap: 16px; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface-solid);
  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(60, 40, 20, 0.16);
  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;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color .15s;
}
.comment-count-btn:hover { 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: none;
  padding: 0;
  cursor: pointer;
  transition: color .15s;
}
.like-btn:hover:not(:disabled) { color: var(--accent); }
.like-btn.is-liked { color: var(--accent); }
.like-btn:disabled { opacity: .45; cursor: default; }

/* Detail page like button — larger, with border */
.like-btn-lg {
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  gap: 8px;
}
.like-btn-lg:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.like-btn-lg.is-liked { background: var(--accent-soft); border-color: var(--accent-soft); }

.like-heart { transition: transform .2s cubic-bezier(.34,1.56,.64,1); font-style: normal; }
.like-btn:active .like-heart { transform: scale(1.25); }

.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(200, 160, 40, 0.18); color: #9a6800; }
.status-badge.hidden    { background: var(--line-soft); color: var(--mute); }
.status-badge.rejected  { background: rgba(200, 50, 50, 0.1); color: var(--danger); }
.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;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 48px 48px;
  box-shadow: 0 1px 0 rgba(40,30,20,0.04), 0 8px 24px -8px rgba(60,40,20,0.12);
}

.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: 10px;
  overflow: hidden;
  margin-bottom: 28px;
}
.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(196, 90, 43, 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(196, 90, 43, 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(196, 90, 43, 0.35);
  background: transparent;
  cursor: pointer;
  transition: all .15s;
}
.prompt-copy:hover { background: rgba(196, 90, 43, 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: var(--soft); 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(196, 90, 43, 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(196, 90, 43, 0.15);
  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: var(--surface);
  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(196, 90, 43, 0.14);
}
.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: var(--surface);
  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(255, 255, 255, 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: var(--soft); 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;
}
.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(208, 64, 64, 0.1);
  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: 32px 20px 60px; }
  .hero-inner    { padding: 48px 20px 0; }
  .hero-h1       { font-size: 56px; white-space: normal; }
  .hero-sub      { font-size: 16px; }
  .ideas-grid    { grid-template-columns: 1fr; }
  .detail-article { padding: 24px 20px 32px; border-radius: 12px; }
}
@media (max-width: 600px) {
  .top-nav > .nav-ghost:first-child { display: none; }
  .hero-h1    { font-size: 40px; }
  .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; }
}
