@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

/* RomeArchive Design System — Ancient Aesthetic
 * Typography: Roman-inspired (Cinzel headings, EB Garamond body)
 * Palette:   Parchment, Marble, Ink, Terracotta, Gold
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

.fas, .far, .fal, .fab { vertical-align: middle; }
.btn .fas, .btn .far, .btn .fal { margin-right: 0.25em; }

:root {
  --parchment: #F4E4BC;
  --parchment-dark: #E8D5A8;
  --parchment-deep: #DCC59A;
  --marble: #F8F9FA;
  --marble-dark: #F0F1F3;
  --ink: #2D2926;
  --ink-light: #4A4440;
  --terracotta: #C05746;
  --terracotta-light: #D97A6A;
  --terracotta-dark: #9E4536;
  --terracotta-bg: rgba(192, 87, 70, 0.08);
  --gold: #B8860B;
  --gold-light: #D4A843;
  --gold-dark: #8B6508;
  --gold-bg: rgba(184, 134, 11, 0.08);
  --olive: #556B2F;
  --olive-light: #6B8A3A;
  --stone: #8B8682;
  --stone-light: #A8A39F;
  --stone-dark: #6B6764;
  --error: #DC2626;
  --error-bg: #FEF2F2;
  --error-border: rgba(220, 38, 38, 0.2);
  --success: #16A34A;
  --success-bg: #F0FDF4;
  --success-border: rgba(22, 163, 74, 0.2);
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --warning-border: rgba(217, 119, 6, 0.2);
  --surface: #F8F9FA;
  --surface-alt: #F0EDE4;
  --text: #2D2926;
  --text-muted: #8B8682;
  --text-light: #A8A39F;
  --accent: #C05746;
  --border: #D4C5A9;
  --border-light: #E5D9C4;
  --border-lighter: #EFE8D8;
  --font-heading: 'Cinzel', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --font-body: 'EB Garamond', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --font-mono: 'Courier New', Courier, monospace;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --shadow-sm: 0 1px 3px rgba(45, 41, 38, 0.06);
  --shadow-md: 0 4px 12px rgba(45, 41, 38, 0.08);
  --shadow-lg: 0 8px 28px rgba(45, 41, 38, 0.1);
  --shadow-xl: 0 16px 48px rgba(45, 41, 38, 0.12);
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
  --content-width: 780px;
  --max-width: 1200px;
  --nav-height: 60px;
}

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

/* ── Base ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--parchment);
  background-image:
    radial-gradient(ellipse at 15% 45%, rgba(192, 87, 70, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(184, 134, 11, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(85, 107, 47, 0.02) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  min-height: 100vh;
}

::selection {
  background: var(--terracotta);
  color: var(--marble);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--parchment-dark); }
::-webkit-scrollbar-thumb { background: var(--stone-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; letter-spacing: -0.01em; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; letter-spacing: -0.005em; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--terracotta); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terracotta-light); text-decoration: underline; }
.user-link { color: inherit; }
.user-link:hover { color: var(--terracotta); text-decoration: none; }

small { font-size: 0.85rem; color: var(--stone); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.page-section {
  padding: 3rem 0;
}

.page-section:first-of-type {
  padding-top: 2rem;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  background: var(--ink);
  color: var(--marble);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--marble);
  text-decoration: none;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
  flex-shrink: 0;
}

.nav-brand:hover {
  color: var(--gold-light);
  text-decoration: none;
}

.nav-links { display: flex; gap: 0.125rem; align-items: center; }

.nav-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--marble);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--marble);
  background: rgba(255, 255, 255, 0.1);
}

.nav-divider {
  width: 1px;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 0.35rem;
}

#logout-btn {
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

#logout-btn:hover {
  color: var(--error);
  background: rgba(220, 38, 38, 0.12);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-lighter);
  text-align: center;
  color: var(--stone);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-brand {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--terracotta);
  color: var(--marble);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:hover {
  background: transparent;
  color: var(--terracotta);
  text-decoration: none;
}

.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.btn-lg { padding: 0.65rem 1.5rem; font-size: 0.95rem; }
.btn-full { width: 100%; }

.btn-outline { background: transparent; color: var(--terracotta); }
.btn-outline:hover { background: var(--terracotta); color: var(--marble); }

.btn-gold { border-color: var(--gold); background: var(--gold); color: var(--marble); }
.btn-gold:hover { background: transparent; color: var(--gold); }

.btn-ghost { border-color: transparent; background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--ink); }

.btn-danger { border-color: var(--error); background: var(--error); color: var(--marble); }
.btn-danger:hover { background: transparent; color: var(--error); }

.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: transparent; color: var(--success); }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: var(--border);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.card-body { flex: 1; }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-lighter);
  font-size: 0.85rem;
  color: var(--stone);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4rem 0 2.5rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--stone);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--stone);
  margin-top: 0.3rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--marble);
  border: 1.5px solid var(--border-lighter);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: all var(--transition);
}

.form-input:hover, .form-textarea:hover, .form-select:hover {
  border-color: var(--border);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192, 87, 70, 0.1);
  background: white;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--stone-light);
  font-style: italic;
}

.form-textarea {
  min-height: 350px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  font-size: 0.65rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--border-lighter);
  color: var(--ink-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-weight: 600;
}

.tag:hover { background: var(--border); }

.tag-olive { background: var(--olive); color: var(--marble); }
.tag-olive:hover { background: var(--olive-light); }
.tag-gold { background: var(--gold); color: var(--marble); }
.tag-gold:hover { background: var(--gold-light); }
.tag-terracotta { background: var(--terracotta); color: var(--marble); }
.tag-terracotta:hover { background: var(--terracotta-light); }
.tag-stone { background: var(--stone); color: var(--marble); }
.tag-stone:hover { background: var(--stone-light); }
.tag-outline { background: transparent; border: 1.5px solid var(--border); color: var(--stone); }
.tag-outline:hover { border-color: var(--terracotta); color: var(--terracotta); }
.tag-clickable { cursor: pointer; }
.tag-clickable:hover { background: var(--border); }

.tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }

/* ── Status badges ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  font-size: 0.62rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.2;
}

.badge-draft { background: #E5E7EB; color: #6B7280; }
.badge-proposed { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-review { background: var(--warning-bg); color: var(--gold-dark); border: 1px solid var(--warning-border); }
.badge-published { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-denied { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-border); }

/* ── Grid ─────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }

/* ── Search bar ───────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-bar .form-input {
  flex: 1;
  padding-left: 1rem;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
}

.search-bar-lg { max-width: 720px; }

/* ── Article meta ─────────────────────────────────────────── */
.article-meta {
  color: var(--stone);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.article-meta-dot {
  color: var(--border);
}

/* ── Article list ─────────────────────────────────────────── */
.article-card {
  transition: all var(--transition);
  cursor: default;
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-card h3 a {
  color: var(--ink);
  transition: color var(--transition);
}

.article-card h3 a:hover {
  color: var(--terracotta);
  text-decoration: none;
}

/* ── Diff viewer ──────────────────────────────────────────── */
.diff-viewer {
  background: var(--marble);
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  max-height: 450px;
  overflow-y: auto;
  line-height: 1.5;
}

.diff-viewer::-webkit-scrollbar { width: 6px; }
.diff-viewer::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.diff-added { background: rgba(22, 163, 74, 0.08); border-left: 3px solid var(--success); padding-left: 0.5rem; }
.diff-removed { background: rgba(220, 38, 38, 0.06); border-left: 3px solid var(--error); padding-left: 0.5rem; }

/* ── Markdown content (reading view) ──────────────────────── */
.markdown-content {
  line-height: 1.75;
  font-size: 1.1rem;
}

.markdown-content h1, .markdown-content h2, .markdown-content h3 {
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-lighter);
}

.markdown-content h1:first-child, .markdown-content h2:first-child, .markdown-content h3:first-child {
  margin-top: 0;
}

.markdown-content h1 { font-size: 2.2rem; }
.markdown-content h2 { font-size: 1.7rem; }
.markdown-content h3 { font-size: 1.35rem; }

.markdown-content p { margin-bottom: 1.25rem; }
.markdown-content ul, .markdown-content ol { margin-bottom: 1.25rem; padding-left: 1.75rem; }
.markdown-content li { margin-bottom: 0.35rem; }

.markdown-content blockquote {
  border-left: 3px solid var(--terracotta);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--stone-dark);
  font-style: italic;
  background: var(--terracotta-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem;
}

.markdown-content pre {
  background: var(--ink);
  color: #E5E7EB;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.markdown-content code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--surface-alt);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
}

.markdown-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.markdown-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.markdown-content th, .markdown-content td {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-lighter);
  text-align: left;
}

.markdown-content th {
  background: var(--surface-alt);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.markdown-content tr:nth-child(even) { background: rgba(0,0,0,0.015); }

.markdown-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2.5rem 0;
}

/* ── Toast notifications ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--marble);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(calc(100% + 3rem));
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 420px;
  backdrop-filter: blur(8px);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success { background: linear-gradient(135deg, var(--success), #15803D); }
.toast-error { background: linear-gradient(135deg, var(--error), #B91C1C); }

/* ── Loading spinner ──────────────────────────────────────── */
.spinner {
  width: 2.25rem; height: 2.25rem;
  border: 2.5px solid var(--border-light);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 3rem auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.spinner-sm { width: 1.25rem; height: 1.25rem; border-width: 1.5px; margin: 0; }

/* ── Empty / Error states ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--stone);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.35;
  display: block;
}

.empty-state p { font-size: 1rem; max-width: 400px; margin: 0 auto; }

.error-state {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

/* ── Profile avatar ───────────────────────────────────────── */
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-xs { width: 20px; height: 20px; }
.avatar-sm { width: 36px; height: 36px; }

/* ── Linked account card ──────────────────────────────────── */
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.link-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }

.link-card-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.link-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.link-card-icon-discord { background: #5865F2; color: white; }
.link-card-icon-roblox { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }

.link-card-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--stone);
}

.link-card-name {
  font-size: 1rem;
  font-weight: 600;
}

/* ── Stat cards ───────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

.stat-card {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.stat-card:hover {
  border-color: var(--border);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--stone);
  font-weight: 500;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--stone);
  margin-bottom: 2rem;
  padding-top: 1.25rem;
}

.breadcrumbs a { color: var(--stone); font-weight: 500; }
.breadcrumbs a:hover { color: var(--terracotta); }
.breadcrumbs-sep { color: var(--border); font-size: 0.7rem; }

/* ── Inline alert ─────────────────────────────────────────── */
.alert {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-border); }

/* ── Proposal review card ─────────────────────────────────── */
.review-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-lighter);
}

/* ── Decorative divider ───────────────────────────────────── */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

/* ── Version History ──────────────────────────────────────── */
.version-entry {
  transition: all var(--transition);
}

.version-entry.version-current {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--surface), rgba(184, 134, 11, 0.04));
}

.version-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.version-info {
  flex: 1;
  min-width: 0;
}

.version-number {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.version-message {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.version-meta {
  font-size: 0.8rem;
  color: var(--stone);
  margin-top: 0.2rem;
}

.version-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Diff table ───────────────────────────────────────────── */
.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
}

.diff-table tr:hover {
  background: rgba(0,0,0,0.02);
}

.diff-table td {
  padding: 0.08rem 0.5rem;
  vertical-align: top;
  white-space: pre-wrap;
  word-break: break-all;
}

.diff-line-num {
  width: 2.5rem;
  min-width: 2.5rem;
  text-align: right;
  color: var(--stone-light);
  font-size: 0.68rem;
  user-select: none;
}

.diff-unchanged td {
  color: var(--stone);
}

/* ── Version overlay ──────────────────────────────────────── */
.version-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
  z-index: 300;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.version-overlay-content {
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  overflow-y: auto;
  margin-top: 1rem;
  animation: overlayIn 0.25s ease;
}

@keyframes overlayIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Pull Request / Proposal ──────────────────────────────── */
.pr-entry {
  cursor: pointer;
  transition: all var(--transition);
}

.pr-entry:hover {
  transform: translateX(4px);
  border-color: var(--border);
}

.pr-entry:active {
  transform: translateX(2px);
}

.pr-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.pr-entry-info {
  flex: 1;
  min-width: 0;
}

.pr-entry-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.pr-entry-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pr-entry-title {
  font-size: 1.15rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr-entry-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--stone);
  flex-wrap: wrap;
}

.pr-entry-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.pr-entry-note {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-lighter);
  font-size: 0.88rem;
  color: var(--stone);
  font-style: italic;
}

.pr-diff {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pr-diff-side {
  flex: 1;
  min-width: 0;
}

.pr-diff-header {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-lighter);
  color: var(--stone);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.diff-toggle-btn {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: normal;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  color: var(--stone);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.diff-toggle-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.diff-toggle-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

.pr-diff .diff-viewer {
  border: none;
  border-radius: 0;
  max-height: 500px;
}

.pr-diff-divider {
  width: 1px;
  background: var(--border-lighter);
  flex-shrink: 0;
}

.pr-actions {
  background: linear-gradient(135deg, var(--surface), var(--surface-alt));
  border-color: var(--border);
}

@media (max-width: 768px) {
  .pr-entry-top {
    flex-direction: column;
  }

  .pr-entry-actions {
    width: 100%;
  }

  .pr-entry-actions .btn {
    flex: 1;
  }

  .pr-diff {
    flex-direction: column;
  }

  .pr-diff-divider {
    width: 100%;
    height: 1px;
  }
}

/* ── EasyMDE theme overrides ─────────────────────────────── */
.EditorToolbar {
  background: var(--surface);
  border: 1.5px solid var(--border-lighter);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 0.4rem;
  gap: 0.1rem;
}

.EditorToolbar button {
  color: var(--stone);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.EditorToolbar button:hover {
  color: var(--terracotta);
  background: var(--terracotta-bg);
  border-color: var(--border-lighter);
}

.EditorToolbar button.active {
  color: var(--terracotta);
  background: var(--terracotta-bg);
  border-color: var(--terracotta);
}

.editor-toolbar button.separator {
  border-left: 1px solid var(--border-light);
  border-right: none;
  min-width: 1px;
  height: 1.25rem;
  margin: 0 0.2rem;
}

.CodeMirror {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--marble);
  border: 1.5px solid var(--border-lighter);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  min-height: 400px;
}

.CodeMirror-focused {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192, 87, 70, 0.08);
}

.CodeMirror-cursor {
  border-left: 2px solid var(--terracotta);
}

.CodeMirror-selected {
  background: rgba(192, 87, 70, 0.12);
}

.CodeMirror-gutters {
  background: var(--surface-alt);
  border-right: 1px solid var(--border-lighter);
}

.CodeMirror-linenumber {
  color: var(--stone-light);
  font-size: 0.72rem;
}

.CodeMirror .cm-header-1 { font-size: 1.4em; }
.CodeMirror .cm-header-2 { font-size: 1.2em; }
.CodeMirror .cm-header-3 { font-size: 1.1em; }
.CodeMirror .cm-header-1,
.CodeMirror .cm-header-2,
.CodeMirror .cm-header-3,
.CodeMirror .cm-header-4,
.CodeMirror .cm-header-5,
.CodeMirror .cm-header-6 {
  font-family: var(--font-heading);
  color: var(--ink);
}

.CodeMirror .cm-strong { color: var(--terracotta-dark); }
.CodeMirror .cm-em { font-style: italic; color: var(--olive); }
.CodeMirror .cm-link { color: var(--gold); }
.CodeMirror .cm-url { color: var(--stone); }
.CodeMirror .cm-comment { color: var(--stone-light); font-style: italic; }
.CodeMirror .cm-quote { color: var(--olive); font-style: italic; }
.CodeMirror .cm-tag { color: var(--terracotta); }
.CodeMirror .cm-image-alt-text { color: var(--gold); }

.editor-preview {
  background: var(--marble);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  padding: 1.25rem;
}

.editor-preview h1,
.editor-preview h2,
.editor-preview h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  border-bottom: 1px solid var(--border-lighter);
  padding-bottom: 0.5rem;
}

.editor-preview pre {
  background: var(--ink);
  color: #E5E7EB;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.editor-preview code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--surface-alt);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
}

.editor-preview blockquote {
  border-left: 3px solid var(--terracotta);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  color: var(--stone-dark);
  font-style: italic;
  background: var(--terracotta-bg);
}

.editor-statusbar {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--stone-light);
  padding: 0.35rem 0.6rem;
  border-top: 1.5px solid var(--border-lighter);
  background: var(--surface);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.editor-statusbar span { margin-right: 0.75rem; }

.CodeMirror-fullscreen,
.editor-toolbar.fullscreen,
.editor-preview-side {
  z-index: 200;
}

.editor-preview-side {
  border-left: 1.5px solid var(--border-lighter);
  background: var(--marble);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  padding: 1.25rem;
}

.editor-preview-active-side {
  display: block;
}

/* ── Section headings ─────────────────────────────────────── */
.section-heading {
  margin-bottom: 1rem;
}

/* ── Card with accent line variants ───────────────────────── */
.card-accent-terracotta { border-left: 3px solid var(--terracotta); }
.card-accent-gold { border-left: 3px solid var(--gold); }
.card-accent-olive { border-left: 3px solid var(--olive); }

/* ── Skeleton loading ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--border-lighter) 25%, var(--border-light) 50%, var(--border-lighter) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text { height: 1rem; margin-bottom: 0.5rem; }
.skeleton-text-sm { height: 0.75rem; width: 60%; margin-bottom: 0.5rem; }
.skeleton-block { height: 200px; margin-bottom: 1rem; }

/* ── Roman ornament ───────────────────────────────────────── */
.ornament {
  text-align: center;
  color: var(--border);
  font-size: 1.5rem;
  line-height: 1;
  margin: 1.5rem 0;
  user-select: none;
  letter-spacing: 0.5em;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .nav-inner { flex-wrap: wrap; gap: 0.35rem; padding: 0 1rem; }
  .nav-links { flex-wrap: wrap; gap: 0.1rem; }
  .nav-links a { font-size: 0.68rem; padding: 0.35rem 0.45rem; }

  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 2.25rem; margin-bottom: 0.5rem; }
  .hero p { font-size: 1.1rem; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }

  .review-actions { flex-direction: column; }
  .review-actions .btn { width: 100%; }

  .container, .container-narrow { padding: 0 1.25rem; }

  .markdown-content { font-size: 1rem; }
  .markdown-content h1 { font-size: 1.8rem; }
  .markdown-content h2 { font-size: 1.4rem; }

  .version-entry-header { flex-direction: column; align-items: flex-start; }
  .version-actions { width: 100%; }
  .version-actions .btn { flex: 1; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .search-bar { flex-direction: column; }
  .card { padding: 1.25rem; }
  .stats { grid-template-columns: 1fr; }
  .breadcrumbs { font-size: 0.75rem; flex-wrap: wrap; }
  .container, .container-narrow { padding: 0 1rem; }
  .nav-inner { padding: 0 1rem; }
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-lighter);
  margin-bottom: 0.75rem;
}

.tab {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--stone);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.tab:hover {
  color: var(--ink);
  border-bottom-color: var(--border-light);
}

.tab-active,
.tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--terracotta);
  font-weight: 600;
}

/* ── Comments ─────────────────────────────────────────────── */
.comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-lighter);
}

.comment:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.comment-header strong {
  font-weight: 600;
  color: var(--ink);
}

.comment-time {
  color: var(--stone);
  font-size: 0.8rem;
}

.comment-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-light);
  white-space: pre-wrap;
}

.comment-count {
  font-size: 0.9rem;
  color: var(--stone);
  font-weight: 400;
}

.comments-empty {
  color: var(--stone);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem 0;
}

/* ── PR Header ────────────────────────────────────────────── */
.pr-title-area {
  margin-bottom: 1rem;
}

.pr-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.pr-title {
  margin-bottom: 0;
  flex: 1;
  font-size: 1.75rem;
}

.pr-badges {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

.pr-ref {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  color: var(--stone);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.pr-number {
  color: var(--stone-light);
  font-size: 0.85rem;
}

.pr-separator {
  color: var(--stone-light);
  font-size: 0.85rem;
  opacity: 0.6;
}

.pr-author-avatar {
  display: inline-flex;
  align-items: center;
}

.pr-author-name {
  font-weight: 600;
  color: var(--ink);
}

.pr-action-text {
  color: var(--stone);
  font-size: 0.88rem;
}

.pr-action-text strong {
  font-weight: 600;
  color: var(--ink);
}

.pr-timestamp {
  color: var(--stone);
  font-size: 0.85rem;
}

.pr-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0.25rem;
}

.pr-edit-link {
  margin-top: 0.5rem;
}

/* ── PR State Labels ──────────────────────────────────────── */
.pr-state-label {
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
  border: 1px solid;
}

.pr-state-draft {
  background: var(--surface-alt);
  border-color: var(--stone-light);
  color: var(--stone);
}

/* ── Merge Status Box ─────────────────────────────────────── */
.merge-status-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.merge-status-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
  margin-top: 0.05rem;
}

.merge-status-text strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.merge-status-desc {
  font-size: 0.85rem;
  opacity: 0.85;
}

.merge-status-by {
  font-size: 0.82rem;
  opacity: 0.7;
  display: block;
  margin-top: 0.15rem;
}

.merge-status-clean {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.merge-status-conflict {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}

.merge-status-draft {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--stone-dark);
}

.merge-status-merged {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.merge-status-closed {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--stone-dark);
}

/* ── Draft Banner ─────────────────────────────────────────── */
.draft-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.draft-banner-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--warning);
}

.draft-banner-icon {
  font-size: 1rem;
}

/* ── PR Action Bar ────────────────────────────────────────── */
.pr-actions-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pr-action-hint {
  font-size: 0.82rem;
  color: var(--stone);
}

/* ── PR List Entry ────────────────────────────────────────── */
.pr-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.pr-list-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-lighter);
  border-bottom: none;
  cursor: pointer;
  transition: background var(--transition);
  background: var(--surface);
}

.pr-list-entry:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.pr-list-entry:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-bottom: 1px solid var(--border-lighter);
}

.pr-list-entry:only-child {
  border-radius: var(--radius-md);
}

.pr-list-entry:hover {
  background: rgba(0,0,0,0.015);
}

.pr-list-entry:active {
  background: rgba(0,0,0,0.025);
}

.pr-list-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.5;
  color: var(--stone);
  margin-top: 0.1rem;
}

.pr-list-body {
  flex: 1;
  min-width: 0;
}

.pr-list-title-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}

.pr-list-title {
  font-size: 1rem;
  color: var(--terracotta);
  font-weight: 600;
}

.pr-list-title:hover {
  text-decoration: underline;
}

.pr-list-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stone-light);
}

.pr-list-tag {
  font-size: 0.68rem !important;
}

.pr-list-meta {
  font-size: 0.82rem;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.pr-list-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.pr-list-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pr-list-conflict-note {
  font-size: 0.78rem;
  color: var(--error);
}

/* ── Button variants ──────────────────────────────────────── */


/* ── Moderation entry ─────────────────────────────────────── */
.moderation-entry {
  border-left: 3px solid var(--terracotta);
}

/* ── Conflict Resolution Modal ────────────────────────────── */
.conflict-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 300;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.conflict-modal {
  width: 100%;
  max-width: 960px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: overlayIn 0.25s ease;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.conflict-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-lighter);
}

.conflict-modal-header h2 {
  font-size: 1.15rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.conflict-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.conflict-modal-desc {
  font-size: 0.9rem;
  color: var(--stone);
  margin-bottom: 1rem;
}

.conflict-diff {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-lighter);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.conflict-diff-side {
  flex: 1;
  min-width: 0;
}

.conflict-diff-header {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.65rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-lighter);
  color: var(--stone);
}

.conflict-diff-body {
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 240px;
  overflow-y: auto;
  background: var(--marble);
  color: var(--ink);
}

.conflict-diff-divider {
  width: 1px;
  background: var(--border-lighter);
  flex-shrink: 0;
}

.conflict-textarea {
  min-height: 300px;
}

.conflict-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-lighter);
}

@media (max-width: 768px) {
  .conflict-diff {
    flex-direction: column;
  }
  .conflict-diff-divider {
    width: 100%;
    height: 1px;
  }
  .conflict-modal {
    max-height: 95vh;
  }
  .conflict-modal-body {
    padding: 1rem;
  }
}

/* ── Responsive additions ─────────────────────────────────── */
@media (max-width: 768px) {
  .pr-title { font-size: 1.6rem; }
  .pr-list-entry { padding: 0.75rem 1rem; }
  .merge-status-box { padding: 0.75rem 1rem; }
  .draft-banner-inner { flex-direction: column; align-items: flex-start; }
  .pr-actions-bar { flex-direction: column; align-items: stretch; }
  .pr-list-actions { flex-direction: column; align-items: flex-end; }
}

@media (max-width: 480px) {
  .pr-title { font-size: 1.35rem; }
  .pr-ref { font-size: 0.85rem; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .pr-list-entry { flex-wrap: wrap; }
  .pr-list-badge { width: 100%; }
}
