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

/* TOKENS */
:root {
  --bg:      #f8f8f6;
  --surface: #ffffff;
  --border:  #e5e5e2;
  --text:    #111110;
  --text-2:  #636360;
  --text-3:  #9d9d9a;

  /* For / Against — blue vs violet, no moral valence */
  --for:        #1971C2;
  --for-bg:     #E7F5FF;
  --against:    #7048E8;
  --against-bg: #F3F0FF;

  /* Agreement — neutral slate */
  --agree:    #495057;
  --agree-bg: #F1F3F5;

  /* Argument type tags */
  --e-bg: #dbe4ff; --e-fg: #3451b2;
  --c-bg: #ede9fe; --c-fg: #6741d9;
  --m-bg: #fff3bf; --m-fg: #c27700;
  --p-bg: #d3f9d8; --p-fg: #2b9a48;
  --d-bg: #f1f3f5; --d-fg: #495057;

  --yellow:    #c27700;
  --yellow-bg: #fff3bf;
}

/* BASE */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* ── NAV ─────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(248,248,246,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 52px;
  display: flex; align-items: center;
  padding: 0 24px; gap: 14px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 17px; letter-spacing: -.4px; flex-shrink: 0;
}
.logo-mark {
  width: 26px; height: 26px;
  background: var(--text); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-weight: 800; font-size: 13px;
}
.nav-search {
  flex: 1; max-width: 360px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); font-size: 13px; color: var(--text);
  outline: none; font-family: inherit;
}
.nav-search::placeholder { color: var(--text-3); }
.nav-search:focus { border-color: var(--text-2); }
.nav-gap { flex: 1; }
.btn {
  padding: 6px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer; border: none;
  font-family: inherit; transition: .15s; white-space: nowrap;
}
.btn-outline {
  background: transparent; color: var(--text-2); border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--border); color: var(--text); }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { opacity: .84; }

/* ── LAYOUT ──────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1280px; margin: 0 auto;
  align-items: start;
}

/* ── SIDEBAR ─────────────────────────────────── */
aside {
  position: sticky; top: 52px;
  height: calc(100vh - 52px); overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 28px 0;
}
.toc-label {
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); padding: 0 20px; margin-bottom: 8px;
}
.toc-list { list-style: none; }
.toc-a {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 20px; font-size: 13px; color: var(--text-2);
  text-decoration: none; transition: .1s;
}
.toc-a:hover { color: var(--text); background: rgba(0,0,0,.04); }
.toc-a.active { color: var(--text); font-weight: 500; background: rgba(0,0,0,.055); }
.pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
}
.pip-for     { background: var(--for); }
.pip-against { background: var(--against); }
.pip-neutral { background: var(--text-3); }
.aside-hr { border: none; border-top: 1px solid var(--border); margin: 16px 20px; }
.aside-row {
  display: flex; justify-content: space-between;
  padding: 4px 20px; font-size: 12px; color: var(--text-2);
}
.aside-row-label { color: var(--text-3); }

/* ── MAIN ────────────────────────────────────── */
main { padding: 44px 48px 88px; min-width: 0; }

/* ── PROP HEADER ─────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 14px;
}
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.badge-live { background: var(--for-bg); color: var(--for); }
.badge-hot  { background: var(--yellow-bg); color: var(--yellow); }

h1 {
  font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.5px;
  margin-bottom: 14px; max-width: 760px;
}
.byline {
  font-size: 12px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px;
}

/* ── STANCE BAR ──────────────────────────────── */
.stance {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 20px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 52px; max-width: 720px;
}
.stance-lbl { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.stance-track {
  flex: 1; min-width: 100px; height: 6px;
  background: var(--border); border-radius: 3px; position: relative;
}
.stance-fill {
  height: 100%;
  background: linear-gradient(to right, var(--for) 0%, var(--against) 100%);
  border-radius: 3px;
}
.stance-thumb {
  position: absolute; top: -5px; left: 41%;
  width: 14px; height: 14px;
  background: white; border: 2px solid var(--text); border-radius: 50%;
  transform: translateX(-50%); box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.stance-pct { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.stance-btns { display: flex; gap: 6px; }
.vote {
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  cursor: pointer; border: 1.5px solid; background: transparent; font-family: inherit; transition: .15s;
}
.vote-for    { border-color: var(--for);     color: var(--for); }
.vote-for:hover { background: var(--for-bg); }
.vote-against { border-color: var(--against); color: var(--against); }
.vote-against:hover { background: var(--against-bg); }

/* ── SECTION ─────────────────────────────────── */
.section { margin-bottom: 56px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 1.5px solid var(--border);
}
.section-title {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); display: flex; align-items: center; gap: 8px;
}
.s-icon {
  width: 20px; height: 20px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.ic-neutral { background: var(--border); color: var(--text-2); }
.s-count {
  font-size: 11px; color: var(--text-3);
  background: var(--border); padding: 2px 9px; border-radius: 20px;
}

/* ── MEANING ─────────────────────────────────── */
.tension-intro {
  font-size: 14px; color: var(--text-2); line-height: 1.75;
  margin-bottom: 18px; max-width: 720px;
}
.tension-intro strong { color: var(--text); font-weight: 600; }

.terms-accordion { display: flex; flex-direction: column; gap: 3px; max-width: 720px; }

.term-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.term-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; cursor: pointer; user-select: none; transition: background .1s;
}
.term-trigger:hover { background: #fafaf8; }
.term-trigger-left { display: flex; align-items: center; gap: 10px; }
.term-word { font-size: 13.5px; font-weight: 600; color: var(--text); }
.term-arr { font-size: 9px; color: var(--text-3); transition: transform .2s; }
.term-arr.open { transform: rotate(90deg); }
.term-body { display: none; padding: 12px 16px; border-top: 1px solid var(--border); }
.term-body.open { display: block; }
.term-def { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }

/* ── TAGS ────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.t-empirical    { background: var(--e-bg); color: var(--e-fg); }
.t-causal       { background: var(--c-bg); color: var(--c-fg); }
.t-moral        { background: var(--m-bg); color: var(--m-fg); }
.t-predictive   { background: var(--p-bg); color: var(--p-fg); }
.t-definitional { background: var(--d-bg); color: var(--d-fg); }

/* ── FILTER BAR ──────────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 20px;
}
.filter-lbl { font-size: 11px; color: var(--text-3); }
.pill {
  padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 500;
  cursor: pointer; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-2); font-family: inherit; transition: .15s;
}
.pill:hover { border-color: var(--text-2); }
.pill.on { background: var(--text); border-color: var(--text); color: white; }

/* ── TWO-COLUMN ARGS ─────────────────────────── */
.args-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.col-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.col-title {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.for-title     { color: var(--for); }
.against-title { color: var(--against); }
.col-count {
  font-size: 11px; color: var(--text-3);
  background: var(--border); padding: 2px 8px; border-radius: 20px;
}

/* ── ARG CARDS ───────────────────────────────── */
.arg-list { display: flex; flex-direction: column; gap: 10px; }

.arg-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid transparent; border-radius: 10px;
  padding: 16px 18px; transition: box-shadow .15s;
}
.arg-card:hover { box-shadow: 0 2px 14px rgba(0,0,0,.07); }
.arg-card.for-c     { border-left-color: var(--for); }
.arg-card.against-c { border-left-color: var(--against); }
.arg-card.agree-c   { border-left-color: var(--agree); }
.arg-card.hidden    { display: none; }

.arg-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }

.arg-text { font-size: 13.5px; line-height: 1.65; color: var(--text); margin-bottom: 12px; }

.arg-footer {
  display: flex; gap: 10px; border-top: 1px solid var(--border); padding-top: 11px;
}
.tog {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--text-2);
  cursor: pointer; background: none; border: none;
  font-family: inherit; padding: 0; transition: color .1s;
}
.tog:hover { color: var(--text); }
.tog-arr { font-size: 9px; transition: transform .2s; display: inline-block; }
.tog-arr.open { transform: rotate(90deg); }

.arg-extra { display: none; margin-top: 12px; }
.arg-extra.open { display: block; }

.ev-box {
  padding: 11px 13px; background: #f4f4f2; border-radius: 8px; margin-bottom: 7px;
}
.ev-text { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.ev-cite { font-size: 11px; color: var(--text-3); margin-top: 5px; font-style: italic; }

.lim-box {
  padding: 11px 13px; background: #fffbf0;
  border-left: 2px solid var(--yellow); border-radius: 8px;
}
.lim-label {
  font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 4px;
}
.lim-text { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }

.col-empty {
  display: none; padding: 22px 16px; text-align: center;
  font-size: 13px; color: var(--text-3);
  background: var(--surface); border: 1.5px dashed var(--border); border-radius: 10px;
}

/* ── RELATED PROPOSITIONS ────────────────────── */
.related-list { display: flex; flex-direction: column; gap: 6px; }
.related-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: inherit; transition: box-shadow .15s;
}
.related-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.related-id {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  font-family: monospace; white-space: nowrap; padding-top: 2px; min-width: 46px;
}
.related-body { flex: 1; }
.related-claim { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.related-meta  { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.edge-tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500;
}
.edge-supports    { background: var(--for-bg);     color: var(--for); }
.edge-assumes     { background: var(--against-bg); color: var(--against); }
.edge-contradicts { background: var(--yellow-bg);  color: var(--yellow); }
.edge-stub        { background: var(--border);      color: var(--text-3); }
.related-arrow { color: var(--text-3); font-size: 13px; padding-top: 2px; }

/* ── PAGE FOOTER ─────────────────────────────── */
.page-foot {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-3); flex-wrap: wrap; gap: 10px; max-width: 760px;
}
.foot-btns { display: flex; gap: 8px; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 960px)  { .args-grid { grid-template-columns: 1fr; } }
@media (max-width: 780px)  {
  .layout { grid-template-columns: 1fr; }
  aside { display: none; }
  main { padding: 28px 20px 64px; }
  h1 { font-size: 22px; }
}

/* ══ App additions ═════════════════════════════════ */
a { color: var(--for); }
.muted { color: var(--text-3); }
.inline { display: inline-flex; gap: 8px; }
.nav-form { flex: 1; max-width: 360px; display: flex; }
.nav-form .nav-search { max-width: none; width: 100%; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.btn.danger { color: #c92a2a; }
.btn.wide { width: 100%; justify-content: center; padding: 10px; margin-top: 6px; }
.show-sm { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 38px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1); min-width: 180px; padding: 6px; display: flex; flex-direction: column; z-index: 300; }
.menu-pop a, .menu-pop button { padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--text); text-decoration: none; background: none; border: none; text-align: left; font-family: inherit; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg); }
.menu-pop form { display: block; }
.menu-pop form button { width: 100%; }

.page { max-width: 1040px; margin: 0 auto; padding: 40px 24px 80px; }
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -.4px; margin-bottom: 10px; line-height: 1.3; }
.page-title a { color: inherit; }
.lede { color: var(--text-2); margin-bottom: 22px; max-width: 720px; }
.h2 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 28px 0 12px; display: flex; justify-content: space-between; align-items: baseline; }
.h2 .more { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.empty-line { font-size: 13.5px; color: var(--text-3); }
.flash { max-width: 1040px; margin: 16px auto 0; padding: 10px 16px; background: var(--for-bg); color: var(--for); border-radius: 8px; font-size: 13px; }
.notice { padding: 10px 14px; background: var(--yellow-bg); color: #7a4b00; border-radius: 8px; font-size: 13px; margin-bottom: 20px; }
.error { padding: 10px 14px; background: #fff0f0; color: #c92a2a; border: 1px solid #ffc9c9; border-radius: 8px; font-size: 13.5px; margin-bottom: 18px; }
.stub-box { padding: 16px 18px; background: var(--surface); border: 1.5px dashed var(--border); border-radius: 10px; font-size: 14px; color: var(--text-2); margin-bottom: 36px; max-width: 760px; }
.badge-stub { background: var(--border); color: var(--text-2); }
.badge-lock { background: #ffe3e3; color: #c92a2a; }
.tension-intro p + p, .arg-text p + p, .term-def p + p, .ev-text p + p, .lim-text p + p, .talk-body p + p { margin-top: 8px; }
.arg-text p { margin: 0; }
.arg-list.narrow { max-width: 760px; }
.vote.on.vote-for { background: var(--for); color: #fff; }
.vote.on.vote-against { background: var(--against); color: #fff; }
.stance form { margin: 0; }
.edge-related { background: var(--agree-bg); color: var(--agree); }
.related-claim a, .snip { color: inherit; }
.snip { font-size: 12px; color: var(--text-2); display: block; width: 100%; margin-top: 2px; }
.snip mark { background: var(--yellow-bg); color: inherit; border-radius: 3px; padding: 0 2px; }
.ulink { color: var(--text-2); font-weight: 500; text-decoration: none; }
.ulink:hover { text-decoration: underline; }

.site-foot { max-width: 1280px; margin: 0 auto; padding: 22px 24px 40px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-3); }
.site-foot a { color: var(--text-2); }

/* Home */
.hero { padding: 24px 0 36px; max-width: 760px; }
.hero h1 { font-size: 34px; letter-spacing: -.9px; line-height: 1.15; margin-bottom: 14px; }
.hero-search { display: flex; gap: 8px; margin: 6px 0 14px; max-width: 620px; }
.hero-search input { flex: 1; padding: 11px 16px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 15px; background: var(--surface); outline: none; }
.hero-search input:focus { border-color: var(--text-2); }
.hero-stats { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; }

/* Lists */
.changes { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.changes li { padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.ch-time { color: var(--text-3); font-size: 12px; min-width: 96px; }
.ch-claim { color: var(--text); flex: 1; min-width: 200px; }
.ch-meta { color: var(--text-2); font-size: 12px; width: 100%; padding-left: 104px; }
.new-tag { color: #2b9a48; font-weight: 600; }
.pager { display: flex; gap: 8px; margin-top: 20px; }
a.pill { text-decoration: none; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
.admin-row { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; font-size: 13px; }

/* Diff */
.diff { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; overflow-x: auto; }
.dl { padding: 1px 14px; white-space: pre-wrap; word-break: break-word; }
.ds { display: inline-block; width: 18px; color: var(--text-3); user-select: none; }
.dadd { background: #ebfbee; } .dadd .ds { color: #2b9a48; }
.ddel { background: #fff0f0; } .ddel .ds { color: #c92a2a; }
.dgap { color: var(--text-3); background: var(--bg); }

/* Talk */
.talk { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; max-width: 760px; }
.talk-msg { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.talk-msg.hidden-msg { opacity: .5; border-style: dashed; }
.talk-head { font-size: 12px; color: var(--text-3); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.talk-head a { color: var(--text-3); }
.talk-body { font-size: 14px; }
.talk-form { max-width: 760px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.linkbtn { background: none; border: none; color: var(--text-3); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

/* Auth */
.auth-box { max-width: 380px; margin: 20px auto; }
.auth-box form { display: flex; flex-direction: column; gap: 14px; }
.hp { position: absolute; left: -9999px; }

/* Prose */
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--text-2); margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--text); }

/* Editor */
.editor-wrap { max-width: 860px; }
.ed-section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.ed-section-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.ed-section-help { font-size: 12.5px; color: var(--text-3); margin-bottom: 12px; }
.ed-label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.ed-input { width: 100%; padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text); outline: none; }
.ed-input:focus { border-color: var(--text-2); }
.ed-input.sm { width: auto; }
textarea.ed-input { resize: vertical; min-height: 64px; line-height: 1.55; }
.ed-claim { font-size: 18px; font-weight: 600; padding: 10px 12px; }
.ed-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ed-item { border: 1px solid var(--border); border-left: 3px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fcfcfb; display: flex; flex-direction: column; gap: 8px; }
.ed-item.for { border-left-color: var(--for); }
.ed-item.against { border-left-color: var(--against); }
.ed-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed-tools { display: flex; gap: 4px; }
.ed-tools button { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; cursor: pointer; font-size: 12px; color: var(--text-2); }
.ed-tools button:hover { background: var(--border); }
.ed-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-tags label { cursor: pointer; }
.ed-tags input { display: none; }
.ed-tags .tag { opacity: .35; border: 1px solid transparent; }
.ed-tags input:checked + .tag { opacity: 1; border-color: currentColor; }
.ed-add { background: none; border: 1.5px dashed var(--border); border-radius: 8px; padding: 8px 12px; width: 100%; cursor: pointer; color: var(--text-2); font: inherit; font-size: 13px; }
.ed-add:hover { border-color: var(--text-2); color: var(--text); }
.ed-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ed-small { font-size: 12px; color: var(--text-2); display: flex; gap: 6px; align-items: center; font-weight: 500; }
.ed-rel { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; align-items: start; margin-bottom: 8px; position: relative; }
.ed-sugg { position: absolute; left: 158px; right: 40px; top: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.1); z-index: 50; }
.ed-sugg button { display: block; width: 100%; text-align: left; padding: 7px 10px; background: none; border: none; font: inherit; font-size: 13px; cursor: pointer; }
.ed-sugg button:hover { background: var(--bg); }
.ed-sugg b { font-family: monospace; font-weight: 600; color: var(--text-3); margin-right: 6px; }
.ed-actions { display: flex; gap: 8px; margin-top: 14px; }
.ed-more summary { font-size: 12px; color: var(--text-2); cursor: pointer; font-weight: 500; }
.ed-more[open] summary { margin-bottom: 8px; }
.ed-more > div { display: flex; flex-direction: column; gap: 8px; }

/* Graph */
.graph-wrap { display: flex; flex-direction: column; height: calc(100vh - 52px); }
.graph-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 24px; border-bottom: 1px solid var(--border); }
.graph-bar .hint { margin: 0; }
#graph { flex: 1; width: 100%; display: block; cursor: grab; background: var(--bg); }
.graph-legend { display: flex; gap: 12px; font-size: 12px; color: var(--text-2); }
.lg::before { content: ''; display: inline-block; width: 16px; height: 2px; vertical-align: middle; margin-right: 5px; }
.lg-supports::before { background: var(--for); }
.lg-contradicts::before { background: var(--yellow); }
.lg-assumes::before { background: var(--against); }
.lg-related::before { background: var(--text-3); }

@media (max-width: 960px) { .ed-cols, .home-grid { grid-template-columns: 1fr; } }
@media (max-width: 780px) {
  .hide-sm { display: none; }
  .show-sm { display: block; }
  .nav { padding: 0 12px; gap: 8px; }
  .nav .btn-solid { font-size: 0; padding: 6px 10px; }
  .nav .btn-solid::after { content: '+'; font-size: 16px; }
  .page { padding: 28px 16px 64px; }
  .hero h1 { font-size: 26px; }
  .ch-meta { padding-left: 0; }
  .ed-row2 { grid-template-columns: 1fr; }
  .ed-rel { grid-template-columns: 1fr auto; }
  .ed-rel select { grid-column: 1 / -1; }
  .ed-sugg { left: 0; right: 0; top: auto; }
  .page-foot { flex-direction: column; align-items: flex-start; }
  .foot-btns { flex-wrap: wrap; }
}
aside a { color: var(--text-2); text-decoration: none; }
aside a:hover { color: var(--text); }
