/* ============================================================
   SIMEIJA — THEME: LEAN
   Swiss-grid restraint with warm-tinted neutrals and a
   content-emphasis colour (deep teal-blue) so titles and
   prose read first while metadata recedes.
   ============================================================ */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsK8ah8QA.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsD8ah8QA.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsL8ah8QA.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsE8ah8QA.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsI8ah8QA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsJ8ah8QA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsH8ag.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsK8ah8QA.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsD8ah8QA.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsL8ah8QA.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsE8ah8QA.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsI8ah8QA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsJ8ah8QA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsH8ag.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsK8ah8QA.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsD8ah8QA.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsL8ah8QA.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsE8ah8QA.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsI8ah8QA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsJ8ah8QA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsH8ag.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsK8ah8QA.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsD8ah8QA.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsL8ah8QA.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsE8ah8QA.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsI8ah8QA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsJ8ah8QA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/NGSwv5HMAFg6IuGlBNMjxLsH8ag.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper:      #fafaf7;
  --paper-2:    #f5f3ec;
  --paper-3:    #ebe8de;
  --paper-pure: #ffffff;

  --content:    #0d3b54;
  --content-2:  #1a4f6e;

  --ink:        #2b2a26;
  --ink-2:      #5a584f;
  --ink-3:      #8a8779;
  --ink-4:      #b3b0a3;

  --rule:       #e3e0d6;
  --rule-2:     #d0ccbe;

  --accent:     #0066ff;
  --warn:       #c43d3d;

  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont,
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  --r-sm: 3px;
  --r:    5px;
  --r-lg: 6px;
}

body {
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}
::selection { background: var(--accent); color: #fff; }

/* ---------- masthead ---------- */
.masthead {
  padding: 16px 32px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  height: 56px;
  align-items: center;
}
.brand { gap: 12px; align-items: center; }
.brand-mark {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--content);
}
.brand-meta {
  display: inline;
  font-size: 12px;
  color: var(--ink-3);
  border-left: 1px solid var(--rule-2);
  padding-left: 12px;
}
.topnav { gap: 20px; align-items: center; font-size: 13px; color: var(--ink-2); }
.topnav-user { color: var(--ink-3); }
.topnav-link { color: var(--ink-2); text-decoration: none; }
.topnav-link:hover { color: var(--accent); }

/* ---------- panes ---------- */
.layout { min-height: calc(100vh - 56px); }
.pane-left {
  border-right: 1px solid var(--rule);
  padding: 24px 24px 80px;
  background: var(--paper-2);
}
.pane-right {
  padding: 32px 48px 96px;
  max-width: 1080px;
  background: var(--paper);
}

/* ---------- pane title ---------- */
.pane-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.pane-title-text {
  font-weight: 600;
  font-size: 13px;
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--content);
}
.pane-count {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.new-action {
  display: block; width: 100%;
  font-size: 13px;
  color: #fff;
  background: var(--content);
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r);
  font-weight: 500;
  text-align: left;
  transition: background 100ms ease;
}
.new-action:hover { background: var(--content-2); }

/* ---------- filters ---------- */
.filters { margin: 16px 0 16px; font-size: 13px; }
.filter-summary {
  cursor: pointer; list-style: none;
  color: var(--ink-2);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.filter-summary::-webkit-details-marker { display: none; }
.filter-summary::after { content: "+"; color: var(--ink-3); font-size: 14px; line-height: 1; }
.filters[open] .filter-summary::after { content: "−"; }
.filter-grid { padding: 12px 0 4px; gap: 12px; }
.filter-label {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 4px;
  font-weight: 500;
}
.filter-input {
  width: 100%;
  background: var(--paper-pure);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 13px;
  padding: 6px 8px;
  color: var(--ink);
  height: 32px;
}
.filter-input:focus { border-color: var(--accent); }
.chips { gap: 4px; }
.chip {
  font-family: var(--sans);
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  background: var(--paper-pure);
  font-weight: 500;
  height: 24px;
  line-height: 1;
  display: inline-flex; align-items: center;
}
.chip-on { background: var(--content); color: #fff; border-color: var(--content); }

/* ---------- index entries ---------- */
.index-list { border-top: 1px solid var(--rule); }
.index-entry {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  margin: 0 -10px;
  border-radius: var(--r);
  transition: background 80ms ease;
}
.index-entry:hover { background: var(--paper-3); }
.index-entry--selected {
  background: var(--paper-pure);
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 var(--rule), 0 -1px 0 var(--rule);
}
.index-entry--selected::before {
  content: ""; position: absolute;
  left: -14px; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--content);
  border-radius: 0 2px 2px 0;
}
.ix-num {
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-bottom: 3px;
}
.ix-title {
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--content);
  font-weight: 500;
}
.ix-meta {
  font-size: 11px;
  color: var(--ink-3);
  display: flex; gap: 8px; align-items: center;
  margin-top: 6px;
}
.ix-sep { color: var(--rule-2); }
.ix-topic--empty { color: var(--ink-4); }

/* ---------- status tag (lean = small rounded square + label) ---------- */
.status-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; }
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--ink-3);
  border-radius: 2px;
}
.status-new .status-dot      { background: var(--accent); }
.status-backlog .status-dot  { background: #ca8a04; }
.status-progress .status-dot { background: #16a34a; }
.status-resolved .status-dot { background: var(--ink-4); }
.status-rejected .status-dot { background: var(--warn); }

/* ---------- footer hint ---------- */
.footer-hint {
  margin-top: 24px;
  font-size: 11px;
  color: var(--ink-3);
  display: flex; gap: 6px; align-items: center;
}
.kbd {
  font-size: 10px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  padding: 1px 5px;
  color: var(--ink-3);
  background: var(--paper-pure);
  font-weight: 500;
}
.footer-hint-sep { color: var(--rule-2); margin: 0 4px; }

/* ---------- reading view ---------- */
.issue-eyebrow {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.eyebrow-sep { color: var(--rule-2); }
.eyebrow-id    { color: var(--ink-2); font-weight: 500; }
.eyebrow-topic { color: var(--ink-2); font-weight: 500; }

.issue-by-line {
  color: var(--ink-3);
  font-size: 12px;
  margin-bottom: 14px;
  line-height: 1.6;
}
.by-author { font-weight: 500; color: var(--ink-2); }
.by-meta-sep { margin: 0 4px; color: var(--rule-2); }
.by-ts { font-variant-numeric: tabular-nums; }

.issue-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 20px;
  letter-spacing: -0.015em;
  max-width: 28ch;
  color: var(--content);
}

.issue-body {
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 64ch;
  color: var(--content);
}
.issue-body p { margin: 0 0 1em; }

/* ---------- meta rail ---------- */
.meta-rail {
  top: 32px; right: 32px; width: 220px;
  font-size: 12px;
}
.rail-section { margin-bottom: 24px; }
.rail-title {
  font-size: 11px;
  color: var(--ink-3);
  padding-bottom: 8px;
  margin-bottom: 0;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.rail-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  gap: 12px;
}
.rail-row-label {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 400;
}
.rail-row-value {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.rail-row-value--muted { color: var(--ink-4); font-weight: 400; }

.rail-action {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  font-weight: 400;
}
.rail-action:hover { color: var(--accent); }
.rail-action--danger { color: var(--warn); }
.rail-action--danger:hover { color: var(--warn); font-weight: 500; }

/* ---------- section break ---------- */
.section-break { margin: 48px 0 24px; gap: 12px; align-items: center; }
.section-break-rule { display: block; flex: 1; height: 1px; background: var(--rule); }
.section-break-label {
  font-size: 12px;
  color: var(--content);
  font-weight: 600;
}

/* ---------- comments ---------- */
.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  max-width: 64ch;
}
.comment:last-of-type { border-bottom: 0; }
.comment-head {
  gap: 12px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.comment-num { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.comment-author { color: var(--content); font-weight: 600; }
.comment-ts { font-variant-numeric: tabular-nums; }
.comment-actions { gap: 12px; }
.comment-action { font-size: 12px; color: var(--ink-3); padding: 0; }
.comment-action:hover { color: var(--accent); }
.comment-action--danger:hover { color: var(--warn); }
.comment-body {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--content);
}
.comment-attach {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-2);
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper-2);
}
.comment-attach::before { content: "▢"; color: var(--ink-3); font-size: 11px; }

/* ---------- reply composer ---------- */
.reply-composer {
  margin-top: 32px; max-width: 64ch;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.reply-prompt {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
  font-weight: 500;
}
.reply-textarea {
  background: var(--paper-pure);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  line-height: 1.6;
  padding: 11px 13px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--content);
  min-height: 96px;
}
.reply-textarea::placeholder { color: var(--ink-4); }
.reply-textarea:focus { border-color: var(--accent); }
.reply-toolbar { margin-top: 12px; gap: 12px; font-size: 12px; color: var(--ink-3); }
.reply-attach {
  background: var(--paper-pure); border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-2);
  padding: 5px 10px;
  font-weight: 500;
  height: 28px;
}
.reply-attach:hover { border-color: var(--accent); color: var(--accent); }
.reply-submit {
  background: var(--content); color: #fff; border: 0;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 12px;
  padding: 7px 16px;
  font-weight: 500;
  height: 28px;
}
.reply-submit:hover { background: var(--content-2); }

/* ---------- edit shell ---------- */
.edit-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 48px 96px;
  background: var(--paper);
}
.edit-eyebrow {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 24px;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.edit-back { color: var(--accent); text-decoration: none; }
.edit-back:hover { text-decoration: underline; text-underline-offset: 2px; }
.edit-eyebrow-sep { color: var(--rule-2); }

.edit-section-label {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin: 24px 0 6px;
  font-weight: 500;
}
.edit-section-label--required::after { content: " *"; color: var(--warn); }

.edit-title-input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--content);
  padding: 4px 0 12px;
}
.edit-title-input::placeholder { color: var(--ink-4); font-weight: 500; }
.edit-title-input:focus { border-bottom-color: var(--accent); }

.edit-description {
  font-size: 16px;
  line-height: 1.65;
  background: var(--paper-pure);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  min-height: 240px;
  font-family: var(--sans);
  color: var(--content);
  padding: 13px 15px;
}
.edit-description::placeholder { color: var(--ink-4); }
.edit-description:focus { border-color: var(--accent); }

.edit-attach-row { margin-top: 24px; gap: 12px; color: var(--ink-3); font-size: 12px; }
.edit-attach-button {
  background: var(--paper-pure); border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  color: var(--ink-2);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  height: 30px;
}
.edit-attach-button:hover { border-color: var(--accent); color: var(--accent); }

.edit-attrs {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}
.edit-attr-label {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-weight: 500;
}
.edit-attr-input {
  background: var(--paper-pure);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  padding: 6px 8px;
  height: 32px;
}
.edit-attr-input:focus { border-color: var(--accent); }
.edit-attr--required .edit-attr-label::after { content: " *"; color: var(--warn); }

.edit-actions {
  margin-top: 40px; gap: 8px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.edit-action--save {
  background: var(--content); color: #fff; border: 0;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 20px;
  font-weight: 500;
  height: 32px;
}
.edit-action--save:hover { background: var(--content-2); }
.edit-action--cancel,
.edit-action--delete {
  background: var(--paper-pure);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  padding: 7px 14px;
  font-weight: 500;
  height: 32px;
}
.edit-action--delete { color: var(--warn); }
.edit-action--cancel:hover { border-color: var(--ink); color: var(--ink); }
.edit-action--delete:hover { background: var(--warn); color: #fff; border-color: var(--warn); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .masthead { padding: 14px 20px; }
  .pane-left {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 20px 20px 32px;
  }
  .pane-right { padding: 24px 20px 96px; }
  .meta-rail { margin: 28px 0 0; }
  .issue-title { font-size: 22px; }
  .index-entry { margin: 0 -20px; }
  .edit-shell { padding: 24px 20px 80px; }
  .edit-title-input { font-size: 22px; }
}
