
:root {
  --bg: #0a0a0b; --fg: #f4f4f5; --muted: #a1a1aa; --subtle: #71717a;
  --border: #27272a; --card: #111113; --card-bg: #111113; --hover: #18181b;
  --input-bg: #18181b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  background: var(--bg); color: var(--fg);
  min-height: 100vh; line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,0.9); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding: 16px 32px;
  display: flex; justify-content: space-between; align-items: center;
  transition: border-color 0.2s;
}
header.scrolled { border-bottom-color: var(--border); }
.logo {
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg); text-decoration: none;
}
.header-right { display: flex; gap: 20px; align-items: center; }
.header-right a {
  font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.header-right a:hover, .header-right a.active { color: var(--fg); }

/* Layout containers */
.container { max-width: 720px; margin: 0 auto; padding: 48px 24px 100px; }
.container-wide { max-width: 960px; margin: 0 auto; padding: 48px 24px 100px; }

/* Hero */
.hero { text-align: center; margin-bottom: 48px; }
.hero h1 {
  font-size: clamp(28px, 5vw, 36px); font-weight: 400;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.hero p { font-size: 16px; color: var(--muted); font-weight: 300; }

/* Seed input */
.input-wrapper {
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 20px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrapper:focus-within {
  border-color: #3f3f46;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.03);
}
textarea {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--fg); font-size: 17px; font-family: inherit;
  resize: none; min-height: 120px; line-height: 1.6;
}
textarea::placeholder { color: #52525b; }
.form-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 12px; padding: 0 4px;
}
.hint { font-size: 13px; color: #52525b; flex: 1; min-width: 0; }

/* Minimal ghost select (category picker, contribute type fallback) */
.ghost-select {
  background: transparent; border: 1px solid var(--border); border-radius: 999px;
  color: var(--subtle); padding: 6px 12px; font-size: 12px;
  font-family: inherit; cursor: pointer; outline: none; transition: all 0.2s;
}
.ghost-select:hover, .ghost-select:focus { border-color: #3f3f46; color: var(--fg); }
.ghost-select option { background: var(--card); color: var(--fg); }

/* Text inputs (contribute form etc.) */
.text-input {
  width: 100%; background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 12px; color: var(--fg); padding: 12px 14px;
  font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s;
}
.text-input:focus { border-color: #3f3f46; }
.text-input::placeholder { color: #52525b; }

/* Success state (after publish) — demo home */
.result { display: none; text-align: center; animation: fadeIn 0.4s ease; }
.result.show { display: block; }
.result .label { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.result .url {
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  margin-bottom: 24px; word-break: break-all;
}
.result .url a {
  color: var(--fg); text-decoration: none; border-bottom: 1px solid #3f3f46;
}
.result .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.result .actions button, .result .actions a {
  background: transparent; border: 1px solid var(--border); color: var(--fg);
  border-radius: 999px; padding: 9px 18px; font-size: 13px;
  cursor: pointer; font-family: inherit; transition: background 0.2s; text-decoration: none;
}
.result .actions button:hover, .result .actions a:hover { background: rgba(255,255,255,0.05); }

/* Buttons */
.btn-primary {
  background: var(--fg); color: var(--bg); border: none;
  border-radius: 999px; padding: 10px 22px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: inherit; transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-secondary {
  background: transparent; border: 1px solid var(--border); color: var(--fg);
  border-radius: 999px; padding: 9px 18px; font-size: 13px;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.btn-secondary:hover { border-color: #3f3f46; background: rgba(255,255,255,0.04); }
.btn-secondary:active { transform: scale(0.98); }

/* Seed cards — demo home "Growing Futures" (transparent, border-only) */
.seeds-section { margin-top: 100px; width: 100%; }
.section-label {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #52525b; margin-bottom: 20px; text-align: center;
}
.seeds-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px;
}
.seed-card {
  background: transparent; border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, background 0.2s;
  display: block;
}
.seed-card:hover { border-color: #3f3f46; background: rgba(255,255,255,0.02); }
.seed-card .title { font-size: 15px; font-weight: 400; line-height: 1.4; margin-bottom: 6px; }
.seed-card .meta { font-size: 12px; color: var(--subtle); }

/* Seed detail page */
.seed-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--subtle); margin-bottom: 20px; }
.seed-id { font-variant-numeric: tabular-nums; }
.seed-title {
  font-size: clamp(24px, 5vw, 32px); font-weight: 400;
  letter-spacing: -0.025em; line-height: 1.3; margin-bottom: 24px;
}
.seed-body { font-size: 16.5px; color: #e4e4e7; line-height: 1.75; margin-bottom: 28px; white-space: pre-wrap; }
.seed-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 32px; border-bottom: 1px solid var(--border); margin-bottom: 40px;
  flex-wrap: wrap; gap: 16px;
}
.creator { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #27272a;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.creator-name { font-size: 14px; font-weight: 500; }
.creator-date { font-size: 12px; color: var(--subtle); }

/* Explore grid */
.categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }

/* Feed (live activity stream) */
.feed { display: flex; flex-direction: column; gap: 2px; }
.feed-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.feed-item:last-child { border-bottom: none; }
.feed-item .ic { flex: 0 0 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; background: #27272a; border: 1px solid var(--border); color: var(--muted); }

.cat-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font-size: 13px;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.cat-btn:hover, .cat-btn.active {
  border-color: #3f3f46; color: var(--fg);
  background: rgba(255,255,255,0.03);
}

/* Explore page — demo03 */
.page-title { font-size: 28px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 8px; }
.page-desc { font-size: 15px; color: var(--muted); margin-bottom: 48px; }
.questions-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px; margin-bottom: 64px;
}
.question-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 20px;
  text-decoration: none; color: inherit;
  transition: all 0.2s; display: flex; flex-direction: column; gap: 10px;
  min-height: 140px;
}
.question-card:hover {
  border-color: #3f3f46; background: var(--hover); transform: translateY(-1px);
}
.question-card .q { font-size: 16px; font-weight: 400; line-height: 1.45; flex: 1; }
.question-card .meta { font-size: 12px; color: var(--subtle); display: flex; justify-content: space-between; }

/* Seed rows (list view) */
.seed-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border: 1px solid var(--border);
  border-radius: 12px; text-decoration: none; color: inherit;
  transition: all 0.2s; gap: 16px;
}
.seed-row:hover { border-color: #3f3f46; background: rgba(255,255,255,0.02); }
.seed-row .title { font-size: 15px; flex: 1; }
.seed-row .info { font-size: 12px; color: var(--subtle); white-space: nowrap; }

/* "Explore this Future" tile grid — demo seed page */
.explore-label {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 20px;
}
.explore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .explore-grid { grid-template-columns: repeat(3, 1fr); } }
.explore-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 20px;
  text-decoration: none; color: inherit; transition: all 0.2s;
  display: flex; flex-direction: column; gap: 6px; min-height: 110px;
}
.explore-card:hover { border-color: #3f3f46; background: var(--hover); transform: translateY(-1px); }
.explore-card .icon { font-size: 18px; margin-bottom: 4px; opacity: 0.7; }
.explore-card .name { font-size: 15px; font-weight: 500; }
.explore-card .count { font-size: 12px; color: var(--subtle); margin-top: auto; }

/* Branches preview — demo seed page */
.branches-section { margin-top: 64px; }
.section-header {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px;
}
.section-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.section-link:hover { color: var(--fg); }
.branch-list { display: flex; flex-direction: column; gap: 8px; }
.branch-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: inherit; transition: all 0.2s; gap: 12px;
}
.branch-item:hover { border-color: #3f3f46; background: rgba(255,255,255,0.02); }
.branch-title { font-size: 14px; }
.branch-meta { font-size: 12px; color: var(--subtle); white-space: nowrap; }

/* World page */
.layout { display: flex; max-width: 1100px; margin: 0 auto; min-height: calc(100vh - 53px); }
.sidebar {
  width: 220px; flex-shrink: 0; padding: 32px 20px 40px;
  border-right: 1px solid var(--border);
  position: sticky; top: 53px; height: calc(100vh - 53px); overflow-y: auto;
}
.sidebar-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 12px; padding-left: 10px;
}
.nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-list a {
  display: block; padding: 8px 10px; font-size: 13.5px; color: var(--muted);
  text-decoration: none; border-radius: 8px; transition: all 0.15s;
}
.nav-list a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav-list a.active { color: var(--fg); background: rgba(255,255,255,0.06); }
.main-content { flex: 1; padding: 40px 40px 80px; max-width: 680px; }
.world-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--subtle); margin-bottom: 16px;
}
.world-badge span {
  background: rgba(255,255,255,0.06); padding: 3px 8px;
  border-radius: 999px; font-size: 11px;
}
.world-title {
  font-size: clamp(26px, 4vw, 34px); font-weight: 400;
  letter-spacing: -0.03em; line-height: 1.25; margin-bottom: 8px;
}
.world-tagline { font-size: 17px; color: var(--muted); margin-bottom: 24px; }
.world-meta {
  display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--subtle);
  padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px;
}
.world-meta strong { color: var(--muted); font-weight: 500; }

/* Sections */
.section { margin-bottom: 44px; }
.section-title {
  font-size: 15px; font-weight: 500; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.section-title a { font-size: 13px; color: var(--muted); text-decoration: none; }
.section-title a:hover { color: var(--fg); }
.overview-text { font-size: 16px; color: #e4e4e7; line-height: 1.75; margin-bottom: 20px; }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; text-decoration: none; color: inherit;
  transition: all 0.2s; display: flex; flex-direction: column; gap: 6px;
}
.card:hover { border-color: #3f3f46; background: var(--hover); }
.card .name { font-size: 14px; font-weight: 500; }
.card .desc { font-size: 12.5px; color: var(--subtle); line-height: 1.4; }
.card .meta { font-size: 11.5px; color: #52525b; margin-top: auto; padding-top: 6px; }

/* Timeline */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item::before {
  content: ''; position: absolute; left: -17px; top: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #3f3f46; border: 2px solid var(--bg);
}
.timeline-item .date { font-size: 12px; color: var(--subtle); margin-bottom: 4px; }
.timeline-item .event { font-size: 14.5px; }

/* Contributors */
.contributors { display: flex; flex-wrap: wrap; gap: 8px; }
.contributor {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border: 1px solid var(--border); border-radius: 999px;
  text-decoration: none; color: inherit; font-size: 13px; transition: all 0.2s;
}
.contributor:hover { border-color: #3f3f46; background: rgba(255,255,255,0.03); }
.contributor .av {
  width: 24px; height: 24px; border-radius: 50%; background: #27272a;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted);
}

/* Profile page */
.profile { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
.avatar-lg {
  width: 72px; height: 72px; border-radius: 50%; background: #27272a;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 500; color: var(--muted); flex-shrink: 0;
}
.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--subtle); }

/* Tabs */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab {
  font-size: 14px; color: var(--subtle); padding-bottom: 12px;
  cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s;
  background: none; border-top: none; border-left: none; border-right: none; font-family: inherit;
}
.tab:hover { color: var(--muted); }
.tab.active { color: var(--fg); border-bottom-color: var(--fg); }

/* Item list */
.item-list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 18px; border: 1px solid var(--border);
  border-radius: 12px; text-decoration: none; color: inherit;
  transition: all 0.2s; gap: 16px;
}
.item:hover { border-color: #3f3f46; background: rgba(255,255,255,0.02); }
.item .title { font-size: 15px; flex: 1; }
.item .meta { font-size: 12px; color: var(--subtle); white-space: nowrap; }

/* Notifications */
.notif {
  display: flex; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--border); text-decoration: none; color: inherit;
}
.notif:last-child { border-bottom: none; }
.notif.unread { background: rgba(255,255,255,0.02); }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg); margin-top: 7px; flex: 0 0 8px; }
.notif .dot.read { background: transparent; }

/* Comment */
.comment {
  border-left: 2px solid var(--border); padding: 10px 14px;
  margin-top: 10px; background: var(--hover);
  border-radius: 0 10px 10px 0;
}
.comment-form { margin-top: 24px; }
.comment-form textarea {
  min-height: 80px; background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; font-size: 14px; font-family: inherit;
  color: var(--fg); resize: vertical; width: 100%; outline: none;
}
.comment-form textarea:focus { border-color: #3f3f46; }
.comment-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }

/* Contribute form */
.contribute-types {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0;
}
.type-btn {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 8px; text-align: center; cursor: pointer; transition: all 0.2s;
  font-family: inherit; color: var(--muted); font-size: 13px;
}
.type-btn:hover { border-color: #3f3f46; color: var(--fg); background: var(--hover); }
.type-btn.selected { border-color: #3f3f46; color: var(--fg); background: var(--hover); }

/* CTA box */
.cta-box {
  margin-top: 48px; padding: 28px; border: 1px dashed #3f3f46;
  border-radius: 16px; text-align: center;
}
.cta-box p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }

/* Alerts */
.alert {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; font-size: 14px;
}
.alert.err { border-color: #ff7d7d; color: #ff7d7d; }
.alert.ok { border-color: var(--muted); color: var(--muted); }
.alert a { color: var(--fg); }

/* Contributions list */
.contrib-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.contrib-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  transition: border-color 0.2s;
}
.contrib-item:hover { border-color: #3f3f46; }
.contrib-type {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 6px;
}
.contrib-title { font-size: 15px; font-weight: 400; margin-bottom: 6px; }
.contrib-meta { font-size: 12px; color: var(--subtle); }
.contrib-body { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.6; white-space: pre-wrap; }

/* Footer — demo: quiet, centered, no heavy border */
footer { text-align: center; padding: 24px 40px; font-size: 12px; color: #3f3f46; }

/* Empty state */
.empty { text-align: center; padding: 48px 20px; color: var(--subtle); font-size: 14px; }

/* World badge in header */
.world-indicator {
  font-size: 12px; background: rgba(255,255,255,0.06);
  padding: 3px 10px; border-radius: 999px; color: var(--muted);
}

/* Responsive */
@media (max-width: 800px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static; border-right: none;
    border-bottom: 1px solid var(--border); padding: 20px 16px;
  }
  .nav-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .nav-list a { padding: 6px 12px; font-size: 13px; background: rgba(255,255,255,0.03); }
  .main-content { padding: 32px 20px 60px; }
}
@media (max-width: 640px) {
  header { padding: 14px 16px; }
  .container, .container-wide { padding: 32px 16px 80px; }
  .hero { margin-bottom: 36px; }
  .seeds-section { margin-top: 72px; }
  .seed-footer { flex-direction: column; align-items: flex-start; }
  .profile { flex-direction: column; align-items: center; text-align: center; }
  .stats { justify-content: center; }
  .item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .seed-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .contribute-types { grid-template-columns: repeat(2, 1fr); }
}

/* Fade in animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease; }

/* Toast — top-right transient notifications */
#toast-root { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--card-bg); border: 1px solid var(--border); color: var(--fg); padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease; pointer-events: auto; max-width: 320px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok  { border-color: rgba(120, 200, 130, 0.35); }
.toast.err { border-color: rgba(220, 120, 120, 0.4); }

/* Row-level inline actions (delete, reply) — visible on hover for clarity */
.row-actions { display: inline-flex; gap: 6px; margin-left: 8px; opacity: 0; transition: opacity .15s ease; }
.has-actions:hover .row-actions, .row-actions:focus-within { opacity: 1; }
.icon-btn { background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 2px 6px; font-size: 12px; border-radius: 6px; font-family: inherit; }
.icon-btn:hover { color: var(--fg); background: rgba(255,255,255,0.06); }
.icon-btn.danger:hover { color: #ff8a8a; }

.reply-form { margin-top: 8px; margin-left: 20px; padding: 12px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; display: none; }
.reply-form.open { display: block; }
.reply-form textarea { width: 100%; background: transparent; border: 0; color: var(--fg); font-family: inherit; font-size: 13px; resize: vertical; min-height: 60px; outline: none; }
.reply-form .reply-actions { display: flex; gap: 6px; margin-top: 8px; }
.reply-form .reply-actions button { padding: 6px 12px; font-size: 12px; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--fg); font-family: inherit; }
.reply-form .reply-actions .primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.confirm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 999; }
.confirm-overlay.open { display: flex; }
.confirm-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px; max-width: 400px; width: 90%; box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.confirm-box h3 { margin: 0 0 8px 0; font-size: 16px; font-weight: 500; }
.confirm-box p { margin: 0 0 20px 0; font-size: 14px; color: var(--muted); }
.confirm-box .actions { display: flex; justify-content: flex-end; gap: 8px; }
.confirm-box button { padding: 8px 16px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--fg); font-family: inherit; font-size: 14px; cursor: pointer; }
.confirm-box button.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.confirm-box button.danger { background: #ff5757; color: #fff; border-color: #ff5757; }

/* v0.6 — server-side explore (search box, link chips, pagination) + edit markers */
a.cat-btn { text-decoration: none; }
.explore-search { display: flex; gap: 10px; margin-bottom: 20px; }
.explore-search input { flex: 1; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 32px 0 8px; }
.pager a, .pager span.pg-cur { font-size: 13.5px; color: var(--muted); text-decoration: none;
  padding: 7px 16px; border: 1px solid var(--border); border-radius: 999px; }
.pager a:hover { color: var(--fg); border-color: #3f3f46; background: rgba(255,255,255,0.03); }
.pager .pg-cur { color: var(--subtle); border: 0; padding: 7px 4px; }
.edited-mark { color: var(--subtle); }

/* v0.6 — inline edit / branch panels (open state toggled by app.js) */
.edit-form { margin-top: 10px; padding: 14px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; display: none; }
.edit-form.open { display: block; }
.edit-form input, .edit-form textarea {
  width: 100%; background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--fg); padding: 10px 12px;
  font-size: 13.5px; font-family: inherit; margin-bottom: 10px; outline: none;
}
.edit-form textarea { resize: vertical; min-height: 70px; }
.edit-form .edit-actions { display: flex; gap: 8px; align-items: center; }
.edit-form .edit-actions button {
  padding: 6px 12px; font-size: 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--fg); font-family: inherit;
}
.edit-form .edit-actions .primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.edit-form select { margin-bottom: 10px; }
