/* status.css — the public pulse. selfActual tokens, one column, readable on a phone
   in a corridor, which is where a status page is actually opened. */

:root {
  --ink: #1a1a1a;
  --paper: #faf8f4;
  --card: #ffffff;
  --line: #e7e2d8;
  --muted: #6b6560;
  --up: #2e8a4a;
  --degraded: #e8a317;
  --down: #c8472f;
  --unknown: #b9b3aa;
  --progress: #1f6fb2;
  --shadow: 0 1px 2px rgba(26, 26, 26, .06), 0 8px 24px rgba(26, 26, 26, .05);
}

* { box-sizing: border-box; }

/* The `hidden` attribute has to win.
 *
 * It works through a user-agent rule of `display: none`, which ANY author
 * `display` declaration beats — so `.ed { display: grid }` silently forced
 * every edit panel open on 26 Sep, and the tracker rendered as fourteen
 * stacked forms. The panels were in the DOM and `hidden` was set on them; the
 * attribute was simply being overridden.
 *
 * Declared once, here, rather than as `.ed[hidden]` and `.modal[hidden]` and
 * the next one somebody forgets. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 48px 16px 64px; }

.head h1 {
  font-family: Caprasimo, Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 7vw, 56px);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.head .sub { margin: 0 0 28px; color: var(--muted); }

/* ── the pulse ─────────────────────────────────────────────── */

.pulse {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 28px;
}
.pulse-text { font-size: clamp(18px, 3.4vw, 22px); font-weight: 600; }

.dot {
  width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto;
  background: var(--unknown);
}
.dot.up { background: var(--up); box-shadow: 0 0 0 4px rgba(46, 138, 74, .16); }
.dot.degraded { background: var(--degraded); box-shadow: 0 0 0 4px rgba(232, 163, 23, .18); }
.dot.down { background: var(--down); box-shadow: 0 0 0 4px rgba(200, 71, 47, .18); }

/* ── services ──────────────────────────────────────────────── */

.row {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 10px;
}
.row-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-name { font-weight: 600; font-size: 17px; }
.row-state { margin-left: auto; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.row-state.up { color: var(--up); }
.row-state.degraded { color: var(--degraded); }
.row-state.down { color: var(--down); }
.row-state.unknown { color: var(--muted); }

.bars { display: flex; gap: 2px; margin: 12px 0 8px; height: 30px; align-items: stretch; }
.bar { flex: 1 1 0; border-radius: 2px; background: var(--up); min-width: 0; }
.bar.partial { background: var(--degraded); }
.bar.bad { background: var(--down); }
.bar.none { background: #ece8e0; }

.legend {
  display: flex; justify-content: space-between;
  font: 12px/1.4 "IBM Plex Mono", ui-monospace, monospace; color: var(--muted);
}

/* ── incidents ─────────────────────────────────────────────── */

.incidents h2, .products h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 32px 0 12px; font-weight: 600;
}
.inc {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--degraded);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 8px;
}
.inc.high { border-left-color: var(--down); }
.inc.open { background: #fffaf0; }
.inc-sum { font-weight: 500; }
.inc-when { font: 12px/1.5 "IBM Plex Mono", ui-monospace, monospace; color: var(--muted); margin-top: 4px; }
.none-note { color: var(--muted); }

/* ── footer ────────────────────────────────────────────────── */

.foot { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 16px; }
.foot p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.fine { font-size: 12px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2efe9; --paper: #16150f; --card: #201e18; --line: #333026;
    --muted: #a7a196; --unknown: #55514a; --progress: #6cb4ee;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
  :root:not([data-theme="light"]) .bar.none { background: #2b281f; }
  :root:not([data-theme="light"]) .inc.open { background: #241f14; }
}

/* ── the shell ──────────────────────────────────────────────────
   Three pages behind one rail, matching the console's shape: ink rail,
   paper content. Added 2026-09-24 when the status page became a small
   site rather than one page. */

.shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  background: #101418;
  color: #f7f8fa;
  padding: 22px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  /* The rail stays put while the page scrolls. `align-self: start` is what makes
     sticky work inside the grid — a grid item stretches to the row height by
     default, which leaves nothing for `top` to stick against. The height and
     overflow are for the rail's own sake: if it ever grows past the viewport
     (admin adds nav items), it scrolls inside itself rather than cutting off. */
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 18px;
  text-decoration: none;
}
.wordmark img { display: block; height: auto; max-width: 132px; filter: brightness(0) invert(1); }
.wordmark span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8b919c;
}
.wordmark:hover { text-decoration: none; }

.nav-group { display: flex; flex-direction: column; }
.nav-item {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: #c2c8d2;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .04); text-decoration: none; }
.nav-item.on {
  color: #fff;
  font-weight: 600;
  border-left-color: #38bdf8;
  background: rgba(56, 189, 248, .08);
}

.rail-foot { margin-top: auto; padding: 0 18px; }
.rail-foot p { font-size: 12px; line-height: 1.5; color: #6d737d; }

/* ── the admin corner ───────────────────────────────────────────────────
   Quiet on purpose. A visitor should see a gear and nothing that suggests
   there is a door here; the controls only appear once somebody is through
   it. Sits under the alpha note, at the foot of the rail. */

.rail-admin {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #23282f;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rail-gear { margin-right: 7px; opacity: .75; }
.rail-who {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: #c2c8d2;
  overflow-wrap: anywhere;
}
.rail-link {
  display: inline-block;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: #8b919c;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.rail-link:hover { color: #f7f8fa; text-decoration: underline; }
.rail-link:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

.main { max-width: 900px; padding: 48px 28px 64px; }
.head h1 {
  font-family: Caprasimo, Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 46px);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.head .sub { margin: 0 0 28px; color: var(--muted); max-width: 62ch; }

@media (max-width: 720px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  /* A horizontal bar at this width, so it keeps sticking to the top but takes
     its own height rather than the viewport's. */
  .rail {
    flex-direction: row; align-items: center; gap: 0; padding: 12px; flex-wrap: wrap;
    height: auto; overflow: visible;
  }
  .wordmark { padding: 0 12px 0 6px; }
  .nav-group { flex-direction: row; }
  .nav-item { border-left: 0; border-bottom: 3px solid transparent; padding: 8px 12px; }
  .nav-item.on { border-left: 0; border-bottom-color: #38bdf8; }
  .rail-foot { display: none; }
  .main { padding: 28px 16px 48px; }
}

/* ── the update tracker: lanes ──────────────────────────────────
   Shaped like the service rows above it — what it is on the left, where it is
   on the right, one sentence underneath. The colour carries the phase, so the
   sentence never repeats it: that sentence is the only thing a human has to
   keep current, and it stays true through a phase change on its own. */

.updates h2 {
  font-family: Caprasimo, Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  margin: 34px 0 12px;
}
.intro { padding: 16px 18px; margin-bottom: 8px; }
.intro p { margin-bottom: 8px; }

.lane-order {
  margin-top: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--muted);
}
.lane-key { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.lane-key-item { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }

.lane {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.lane-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lane-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.lane-phases { display: flex; gap: 3px; flex: none; }
/* Wide enough to read as a progress track, not as dots. */
.ph {
  width: 26px;
  height: 7px;
  border-radius: 2px;
  background: var(--line);
}
.ph.done { background: #9dd9a8; }        /* behind us */
.ph.at { background: var(--up); }        /* where it is now */
.ph.untouched { background: var(--down); } /* logged and nothing more */

.lane-now {
  margin-top: 7px;
  font-size: 13px;
  color: var(--body, var(--muted));
  line-height: 1.5;
}

.lane-reports {
  margin: 4px 0 0;
  font: 12px/1.4 "IBM Plex Mono", ui-monospace, monospace;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lane-toggle {
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.lane-toggle:hover { color: var(--ink); }

.lane-more {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.lane-more p { font-size: 13px; margin-bottom: 8px; line-height: 1.55; }
.lane-more p:last-child { margin-bottom: 0; }
.lane-from { font-size: 12px; color: var(--muted); }

@media (max-width: 620px) {
  /* The phases drop below the title rather than squeezing it to nothing. */
  .lane-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ph { width: 100%; min-width: 34px; }
  .lane-phases { width: 100%; }
}

/* ── feedback ───────────────────────────────────────────────────── */

.feedback { padding: 20px 22px; }
.feedback p { margin-bottom: 10px; }
.fb-form { margin-top: 18px; }
.fb-field { margin-bottom: 14px; }
.fb-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.fb-field .fine { margin-top: 4px; }
.fb-input {
  width: 100%;
  font: 15px/1.5 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}
.fb-input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
textarea.fb-input { resize: vertical; min-height: 140px; }

/* Off-screen rather than display:none — a bot reading the DOM sees a
   normal field, a person never does. */
.fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.fb-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.btn {
  font: 600 15px/1 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 11px 20px;
  cursor: pointer;
}
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.fb-status { font-size: 13px; color: var(--muted); }
.fb-status.bad { color: var(--down); }
.fb-status.good { color: var(--up); }

/* ── the lane's +/- ─────────────────────────────────────────────────────
   Only rendered for a signed-in admin, so none of this reaches a visitor.
   Sits at the right of the lane's top row, after the phase bar: the thing
   you press is next to the thing it changes, which is the whole point of
   editing in situ rather than from a dashboard. */

.lane-ctl {
  display: flex;
  gap: 4px;
  margin-left: 10px;
  flex: 0 0 auto;
}
.phase-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line, #d8d4cc);
  border-radius: 6px;
  background: transparent;
  color: var(--ink, #1a1a1a);
  font: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.phase-btn:hover:not(:disabled) { background: var(--ink, #1a1a1a); color: #fff; }
.phase-btn:focus-visible { outline: 2px solid var(--ink, #1a1a1a); outline-offset: 2px; }
/* An end stop is a no-op server-side, so the button that would do nothing
   also looks like it will do nothing. */
.phase-btn:disabled { opacity: .3; cursor: default; }

.lane-error {
  margin: 6px 0 0;
  font-size: 13px;
  color: #b3352a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phase-btn { border-color: #3a3630; color: #ece7dd; }
  :root:not([data-theme="light"]) .phase-btn:hover:not(:disabled) { background: #ece7dd; color: #14120f; }
  :root:not([data-theme="light"]) .lane-error { color: #e8796c; }
}

/* ── the admin surface ──────────────────────────────────────────────────
   Every selector below renders only for a signed-in admin, except .sub and
   .hp, which are the public subscribe box. A visitor's page is unchanged. */

.ed {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.ed-field { display: grid; gap: 4px; }
.ed-label {
  font: 12px/1.4 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ed-hint { font-size: 12px; color: var(--muted); }
.ed-input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.ed-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.ed-input.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
textarea.ed-input { resize: vertical; }

.ed-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-save, .ed-cancel, .ed-delete {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.ed-cancel { background: transparent; color: var(--ink); }
/* Destructive, and it looks it. The row it removes was somebody's report. */
.ed-delete { background: transparent; color: var(--down); border-color: var(--down); }
.ed-save:disabled, .ed-delete:disabled { opacity: .5; cursor: default; }
.ed-save:hover:not(:disabled) { opacity: .9; }

.phase-btn.wide { width: auto; padding: 0 10px; font-size: 13px; }

/* ── the note log ───────────────────────────────────────────────────── */

.notes {
  margin: 10px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.note-add { display: grid; gap: 8px; margin-bottom: 14px; }
.note-add .ed-save { justify-self: start; }

.note {
  border-top: 1px solid var(--line);
  padding: 10px 0 8px;
}
.note-body { margin: 0 0 4px; font-size: 15px; }
.note-meta {
  margin: 0;
  font: 12px/1.5 "IBM Plex Mono", ui-monospace, monospace;
  color: var(--muted);
}
/* A sent note is history: somebody has read it in their inbox and the server
   refuses to change it. Shown quieter so that reads before it is clicked. */
.note.sent .note-body { color: var(--muted); }
.note-acts { display: flex; gap: 12px; margin-top: 6px; }
.note-acts .rail-link { color: var(--muted); font-size: 12px; }
.note-acts .rail-link:hover { color: var(--ink); }

/* ── the send modal ─────────────────────────────────────────────────── */

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(16, 20, 24, .55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  z-index: 50;
}
.modal {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 22px;
  width: min(760px, 100%);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.modal h2 { margin: 0; font-family: Caprasimo, Georgia, serif; font-weight: 400; font-size: 24px; }
.draft {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.draft h3 { margin: 0 0 4px; font-size: 15px; }

/* ── subscribe (public) ─────────────────────────────────────────────── */

.sub { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.sub h2 { margin: 0 0 4px; font-size: 17px; }
.sub-form { display: grid; gap: 10px; margin-top: 12px; max-width: 420px; }
.sub-kinds { display: flex; gap: 16px; flex-wrap: wrap; }
.sub-check { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.sub-form .ed-save { justify-self: start; }
/* The honeypot: off-screen rather than display:none, because some bots skip
   anything hidden and this one is meant to be filled in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sub-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.sub-mail { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; overflow-wrap: anywhere; }
.sub-state {
  margin-left: auto;
  font: 12px/1.4 "IBM Plex Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sub-state.ok { color: var(--up); }
.sub-state.wait { color: var(--degraded); }
.sub-state.bad { color: var(--down); }

@media (max-width: 620px) {
  .modal { padding: 16px; }
  .lane-ctl { flex-wrap: wrap; }
}

/* ── issues (admin) ─────────────────────────────────────────────────────
   #/admin/issues: every report the gateway stored, for Jay and Brad. Signed-in
   only, like the rest of this section. A row is a button that opens in place;
   the state chip carries the colour so the text never has to say it twice. */

.iss-summary {
  margin: 0 0 14px;
  font: 13px/1.5 "IBM Plex Mono", ui-monospace, monospace;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.iss-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px 12px;
  align-items: end;
  margin-bottom: 14px;
}
.iss-filters .ed-input { padding: 7px 9px; font-size: 14px; }
.iss-top-only { grid-column: 1 / -1; color: var(--muted); }

.iss-bulk {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.iss-bulk .ed-input { width: auto; padding: 7px 9px; font-size: 14px; }
.iss-bulk .ed-save, .iss-bulk .ed-cancel { padding: 7px 14px; }
.iss-bulk .lane-error { flex-basis: 100%; margin: 0; }
.iss-bulk-n { font-weight: 600; font-variant-numeric: tabular-nums; }
.iss-link {
  background: none; border: 0; padding: 0;
  font: inherit; font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.iss-link:hover { color: var(--ink); }

.iss-listhead {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
}
.iss-listhead .fine { margin: 0; }
.iss-list { display: grid; gap: 8px; }

.iss-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.iss-row.open { box-shadow: var(--shadow); border-color: var(--muted); }
.iss-top { display: flex; align-items: flex-start; gap: 10px; padding: 12px; }
.iss-top > input { margin-top: 4px; flex: 0 0 auto; }
.iss-head {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 6px;
  background: none; border: 0; padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.iss-head:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.iss-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.iss-text { font-size: 15px; overflow-wrap: anywhere; }
.iss-who {
  font: 12px/1.4 "IBM Plex Mono", ui-monospace, monospace;
  color: var(--muted);
}

.iss-chip, .iss-state {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font: 11px/1.6 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .03em;
  white-space: nowrap;
}
.iss-chip.quiet { color: var(--muted); }
.iss-chip.super { border-color: var(--ink); font-weight: 600; }
.iss-chip.missed { color: var(--down); border-color: var(--down); font-weight: 600; }
.iss-state { text-transform: uppercase; font-weight: 600; }
.iss-state.s-new         { color: var(--degraded); border-color: var(--degraded); }
.iss-state.s-triaged     { color: var(--ink); border-color: var(--ink); }
.iss-state.s-in_progress { color: var(--progress); border-color: var(--progress); }
.iss-state.s-done        { color: var(--up); border-color: var(--up); }
.iss-state.s-wont_fix    { color: var(--muted); }
.iss-state.s-duplicate   { color: var(--muted); border-style: dashed; }

.iss-detail { padding: 0 12px 14px 38px; display: grid; gap: 12px; }
.iss-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  padding: 12px 14px;
  border-left: 3px solid var(--line);
  background: var(--paper);
  border-radius: 0 8px 8px 0;
}
.iss-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 14px;
  margin: 0;
  font-size: 13px;
}
.iss-facts dt { color: var(--muted); font: 12px/1.6 "IBM Plex Mono", ui-monospace, monospace; }
.iss-facts dd { margin: 0; overflow-wrap: anywhere; }
.iss-kids { display: grid; gap: 4px; }
.iss-kid { margin: 0; font-size: 14px; }
.iss-ed { margin: 0; }
.iss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 12px; }
.iss-grid .ed-input:disabled { opacity: .55; }
.iss-detail .notes { margin: 0; }
.iss-hist summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.iss-hist .note-meta { margin: 4px 0 0; }

.iss-import {
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.iss-import summary { cursor: pointer; font-weight: 600; }
.iss-import-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.iss-import-row input[type=file] { max-width: 100%; font-size: 14px; }

@media (max-width: 620px) {
  .iss-detail { padding-left: 12px; }
  .iss-facts { grid-template-columns: minmax(0, 1fr); }
  .iss-facts dd { margin-bottom: 6px; }
}
