/* =============================================
   ATLAS TMV — STYLES
   ============================================= */

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

:root {
  --bg:         #f4f4f0;
  --surface:    #ffffff;
  --border:     #e0ddd5;
  --text:       #1a1a1a;
  --text-muted: #6b6b6b;
  --accent:     #1a1a2e;

  --realist:       #2c4a7c;
  --liberal:       #2d6a4f;
  --critical:      #8b2252;
  --constructivist:#5a3e85;
  --geopolitics:   #b35a00;
}

html { font-size: 16px; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  background: var(--accent);
  color: #fff;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.header-title h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.header-sub {
  font-size: .8rem;
  opacity: .7;
  display: block;
  margin-top: 2px;
  font-style: italic;
}
.header-controls {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}
#search {
  font-family: inherit;
  font-size: .9rem;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  background: rgba(255,255,255,.1);
  color: #fff;
  width: 260px;
  outline: none;
  transition: background .2s;
}
#search::placeholder { color: rgba(255,255,255,.5); }
#search:focus { background: rgba(255,255,255,.18); }

.btn-secondary {
  font-family: inherit;
  font-size: .85rem;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.btn-secondary:hover { background: rgba(255,255,255,.15); }

/* ── TIMELINE ── */
.timeline-section {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px;
}
.timeline-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.timeline-track {
  position: relative;
  height: 72px;
  background: var(--border);
  border-radius: 4px;
  overflow: visible;
  margin-bottom: 22px;
}
.timeline-line {
  position: absolute;
  top: 66%;
  left: 0; right: 0;
  height: 2px;
  background: #ccc;
  transform: translateY(-50%);
}

/* Wave epoch zones */
.tl-wave {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 4px;
  pointer-events: none;
}
.tl-wave-label {
  display: block;
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  padding: 4px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .8;
}

/* Year tick marks */
.tl-tick {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(0,0,0,.12);
  pointer-events: none;
}
.tl-tick-year {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .6rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-dot {
  position: absolute;
  top: 66%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform .15s;
}
.timeline-dot:hover { transform: translate(-50%, -50%) scale(1.4); }
.timeline-dot .tl-tooltip {
  display: none;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
.timeline-dot:hover .tl-tooltip { display: block; }

/* ── FILTERS ── */
.filters-section {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-right: 4px;
}
.filter-btn {
  font-family: inherit;
  font-size: .78rem;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: #999; color: var(--text); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── CARDS GRID ── */
.grid {
  max-width: 1200px;
  margin: 20px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  border-left: 4px solid var(--border);
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.card.hidden { display: none; }

.card-family { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; opacity: .7; }
.card-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.card-year { font-size: .75rem; color: var(--text-muted); margin-bottom: 10px; font-style: italic; }
.card-origins { font-size: .72rem; color: var(--text-muted); margin-bottom: 8px; font-style: italic; opacity: .8; }
.card-def { font-size: .82rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-concepts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.concept-tag {
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* family colors */
.card[data-family="realist"] { border-left-color: var(--realist); }
.card[data-family="liberal"] { border-left-color: var(--liberal); }
.card[data-family="critical"] { border-left-color: var(--critical); }
.card[data-family="constructivist"] { border-left-color: var(--constructivist); }
.card[data-family="geopolitics"] { border-left-color: var(--geopolitics); }

.card[data-family="realist"] .card-family { color: var(--realist); }
.card[data-family="liberal"] .card-family { color: var(--liberal); }
.card[data-family="critical"] .card-family { color: var(--critical); }
.card[data-family="constructivist"] .card-family { color: var(--constructivist); }
.card[data-family="geopolitics"] .card-family { color: var(--geopolitics); }

.timeline-dot[data-family="realist"] { background: var(--realist); }
.timeline-dot[data-family="liberal"] { background: var(--liberal); }
.timeline-dot[data-family="critical"] { background: var(--critical); }
.timeline-dot[data-family="constructivist"] { background: var(--constructivist); }
.timeline-dot[data-family="geopolitics"] { background: var(--geopolitics); }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  overflow-y: auto;
  padding: 40px 16px;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }

.modal {
  background: var(--surface);
  border-radius: 10px;
  max-width: 700px;
  width: 100%;
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .15s;
}
.modal-close:hover { background: var(--bg); }

.modal-family-badge {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 3px;
  color: #fff;
  margin-bottom: 12px;
}
.modal-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}
.modal-formula {
  font-size: .95rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  padding: 8px 14px;
  margin: 16px 0;
  background: var(--bg);
  border-radius: 0 4px 4px 0;
}

.modal-fields { margin-top: 16px; }
.modal-field { margin-bottom: 16px; }
.modal-field-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.modal-field-value {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text);
}

.modal-concepts-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.modal-concept-tag {
  font-size: .8rem;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
}

.field-section-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* highlight conflict/coop */
.badge-conflict {
  display: inline-block;
  background: #fce8e8;
  color: #8b2222;
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.badge-coop {
  display: inline-block;
  background: #e8f5ec;
  color: #1d5c36;
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.badge-mixed {
  display: inline-block;
  background: #fff3cd;
  color: #7a5a00;
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

/* ── COMPARE PANEL ── */
.compare-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  overflow-y: auto;
  padding: 24px 16px;
}
.compare-overlay.open { display: flex; align-items: flex-start; justify-content: center; }

.compare-panel {
  background: var(--surface);
  border-radius: 10px;
  max-width: 1100px;
  width: 100%;
  padding: 28px;
  position: relative;
}
.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.compare-header h2 { font-size: 1.2rem; }
.compare-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.compare-selectors select {
  font-family: inherit;
  font-size: .9rem;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.compare-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-col { }
.compare-col-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.compare-field { margin-bottom: 14px; }
.compare-field-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.compare-field-value {
  font-size: .85rem;
  line-height: 1.55;
}

/* Compare summary block */
.compare-summary {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.cs-block {
  flex: 1 1 220px;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .82rem;
  line-height: 1.5;
}
.cs-shared { background: #e8f5ec; }
.cs-diff   { background: #fff3cd; }
.cs-label  {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  margin-bottom: 4px;
  opacity: .7;
}

/* highlight diff in compare */
.compare-field.differs .compare-field-value {
  background: #fffbeb;
  border-left: 3px solid #f0c040;
  padding-left: 8px;
  border-radius: 0 3px 3px 0;
}

/* ── NO RESULTS ── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  font-style: italic;
  font-size: 1rem;
}

/* ── CARD PREVIEW BUTTON ── */
.card-preview-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: .9rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  padding: 0;
  font-family: inherit;
}
.card-preview-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── ENTITY PAGE ── */
.entity-back-link {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .9rem;
  transition: color .15s;
}
.entity-back-link:hover { color: #fff; }

.entity-page {
  max-width: 820px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.entity-hero {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.entity-name {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 10px 0 6px;
}

.entity-meta {
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.entity-formula {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  padding: 8px 14px;
  margin: 0 0 16px;
  background: var(--bg);
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}

.entity-body { padding-bottom: 40px; }

.entity-fields { margin-bottom: 32px; }

.entity-field-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.entity-field-value {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text);
}

.entity-field-list {
  margin: 0;
  padding-left: 1.2em;
}

/* ── RELATION GROUPS (structured) ── */
.entity-relations { margin-bottom: 32px; }

.entity-relation-group { margin-bottom: 16px; }
.entity-relation-group:last-child { margin-bottom: 0; }

.entity-relation-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.entity-related-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.entity-related-tag {
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s;
}
.entity-related-tag:hover { border-color: #999; color: var(--text); }

/* Family colors — applied to all tag styles; override below where needed */
.entity-related-tag[data-family="realist"]        { border-color: var(--realist);       color: var(--realist); }
.entity-related-tag[data-family="liberal"]        { border-color: var(--liberal);       color: var(--liberal); }
.entity-related-tag[data-family="critical"]       { border-color: var(--critical);      color: var(--critical); }
.entity-related-tag[data-family="constructivist"] { border-color: var(--constructivist);color: var(--constructivist); }
.entity-related-tag[data-family="geopolitics"]    { border-color: var(--geopolitics);   color: var(--geopolitics); }

/* ancestry — "Виросла з": subtle filled tint */
.entity-related-tag--ancestry {
  background: rgba(0,0,0,.04);
}

/* kinship — "Споріднені": default, family color takes over */

/* bridge — "Діалог попри відмінності": dashed border signals difference */
.entity-related-tag--bridge {
  border-style: dashed;
}

/* opposition — "Теоретична опозиція": warm neutral, no family color */
.entity-related-tag--opposition {
  border-color: #c8a090 !important;
  color: #7a4030 !important;
  background: #fdf6f3;
}
.entity-related-tag--opposition:hover {
  background: #faeae3;
  border-color: #b07060 !important;
  color: #5a2a1a !important;
}

/* Legacy — kept for any pre-v3.0 HTML still in cache */
.entity-related { margin-bottom: 32px; }
.entity-related-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.entity-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  gap: 16px;
}

.entity-nav-item {
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.entity-nav-item:hover { color: var(--text); }
.entity-nav-prev { text-align: left; }
.entity-nav-next { text-align: right; }

.entity-error {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}
.entity-error p { margin-bottom: 16px; font-size: 1.1rem; }
.entity-error a { color: var(--accent); text-decoration: none; }
.entity-error a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .compare-body,
  .compare-selectors { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  #search { width: 100%; }
  .modal { padding: 20px; }
}

/* ── EVIDENCE SECTION ── */
.evidence-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.evidence-heading {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.ev-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.ev-item:last-child { margin-bottom: 0; }

/* Status-based item variants — left border is the primary signal */
.ev-item--verified {
  border-left-color: #2d6a4f;
  background: #f6faf8;
}
.ev-item--draft {
  border-left-color: #d4a017;
  background: #fffdf0;
}
.ev-item--needs-source {
  border-left-color: #c0522a;
  background: #fff8f5;
}

.ev-source {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.ev-claim {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 6px;
}

.ev-quote {
  font-size: .83rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 10px;
  margin: 6px 0;
  line-height: 1.5;
}

.ev-status {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 8px;
}
.ev-status--verified     { color: #1d5c36; }
.ev-status--draft        { color: #9a6f00; }
.ev-status--needs-source { color: #a03010; }

/* ── EVIDENCE ADMIN MODE ── */
.ev-admin-banner {
  font-size: .72rem;
  color: #5a3e00;
  background: #fff3cd;
  border: 1px solid #f0c040;
  border-radius: 4px;
  padding: 6px 12px;
  margin-bottom: 14px;
}

.ev-reviewer-note {
  font-size: .78rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 4px 0 6px;
  padding: 4px 8px;
  background: rgba(0,0,0,.03);
  border-radius: 3px;
}

.ev-admin-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ev-btn {
  font-family: inherit;
  font-size: .74rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all .15s;
}
.ev-btn:hover { background: var(--bg); border-color: #999; }

.ev-btn--open    { color: #1d5c36; border-color: #2d6a4f; }
.ev-btn--copy    { color: var(--text-muted); }
.ev-btn--approve { color: #1d5c36; border-color: #2d6a4f; font-weight: 600; }
.ev-btn--reject  { color: #a03010; border-color: #c0522a; font-weight: 600; }
.ev-btn--reject-confirm { color: #7a1900; background: #fde8dc; border-color: #c0522a; }
.ev-btn--delete  { color: #7a1900; border-color: #c0522a; }

.ev-reject-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ev-reject-note {
  font-family: inherit;
  font-size: .82rem;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
}
.ev-reject-note:focus { outline: none; border-color: #c0522a; }

.ev-snippet {
  margin-top: 10px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: .75rem;
  background: #f0f4f0;
  border: 1px solid var(--border);
  border-left: 3px solid #2d6a4f;
  border-radius: 0 4px 4px 0;
  padding: 10px 14px;
  white-space: pre;
  overflow-x: auto;
  color: #1a3a1a;
}

.ev-micro-indicator {
  font-size: .72rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

/* ── ADMIN TOGGLE & FORMS ── */
.entity-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.admin-toggle-btn {
  font-family: inherit;
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s ease;
}
.admin-toggle-btn.active {
  background: #fff3cd;
  color: #5a3e00;
  border-color: #f0c040;
  font-weight: 600;
}

.ev-edit-form {
  margin-top: 10px;
  padding: 12px;
  background: rgba(0,0,0,.02);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ev-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ev-form-group label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: .05em;
}

.ev-input, .ev-textarea, .ev-select {
  font-family: inherit;
  font-size: .8rem;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
}
.ev-textarea {
  resize: vertical;
  min-height: 50px;
}
.ev-input:focus, .ev-textarea:focus, .ev-select:focus {
  outline: none;
  border-color: #999;
}

.ev-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.ev-btn--add {
  margin-top: 12px;
  background: #f0f4f0;
  border-style: dashed;
}

/* Hyperlinked source in public mode */
.ev-source a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: all .2s ease;
}
.ev-source a:hover {
  color: #1a1a1a;
  text-decoration-color: #1a1a1a;
}
