:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f0eee9;
  --text: #1d2327;
  --muted: #5f6a72;
  --border: #e2dfd8;
  --link: #1b5ea6;
  --accent: #ce2027; /* GXOR red, from the logo */
  --accent-contrast: #ffffff;
  --top: #050708; /* the GXOR badge's black, so the logo blends in */
  --top-text: #f3f1ec;
  --top-muted: #aab4ba;
  --ok: #1f7a43;
  --ok-bg: #e6f4ea;
  --warn: #8a5a00;
  --warn-bg: #fdf3dc;
  --err: #b42318;
  --err-bg: #fdecea;
  --info: #1b5ea6;
  --info-bg: #e8f0fb;
  --add-bg: #e6f6ea;
  --add-mark: #b5e6c2;
  --del-bg: #fdecec;
  --del-mark: #f5b8b8;
  --radius: 8px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 4px 16px rgb(0 0 0 / 0.04);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

/* Dark colors apply when the system is dark (unless the visitor picked Light), or when they picked Dark.
   Keep these two blocks identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #111518;
    --surface: #182024;
    --surface-2: #1f282d;
    --text: #e6e9eb;
    --muted: #9ba6ad;
    --border: #2c363c;
    --link: #7fb6f2;
    --accent: #d9363e;
    --accent-contrast: #ffffff;
    --top: #050708;
    --top-text: #eef0f1;
    --top-muted: #8d989f;
    --ok: #6fd39a;
    --ok-bg: #12301f;
    --warn: #f0c060;
    --warn-bg: #33270c;
    --err: #ff8a80;
    --err-bg: #3a1714;
    --info: #8fc1f5;
    --info-bg: #12263b;
    --add-bg: #11301d;
    --add-mark: #1d5a33;
    --del-bg: #3a1618;
    --del-mark: #6e2328;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #111518;
  --surface: #182024;
  --surface-2: #1f282d;
  --text: #e6e9eb;
  --muted: #9ba6ad;
  --border: #2c363c;
  --link: #7fb6f2;
  --accent: #d9363e;
  --accent-contrast: #ffffff;
  --top: #050708;
  --top-text: #eef0f1;
  --top-muted: #8d989f;
  --ok: #6fd39a;
  --ok-bg: #12301f;
  --warn: #f0c060;
  --warn-bg: #33270c;
  --err: #ff8a80;
  --err-bg: #3a1714;
  --info: #8fc1f5;
  --info-bg: #12263b;
  --add-bg: #11301d;
  --add-mark: #1d5a33;
  --del-bg: #3a1618;
  --del-mark: #6e2328;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
code, kbd, pre { font-family: var(--mono); font-size: 0.9em; }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 0.6em; }
h1 { font-size: 2rem; margin-top: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- theme switch (bottom left) */
.theme-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; gap: 2px; padding: 3px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.18);
}
.theme-switch a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; color: var(--muted); }
.theme-switch a:hover { color: var(--text); background: var(--surface-2); }
.theme-switch a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.theme-switch a[aria-current='true'] { background: var(--accent); color: var(--accent-contrast); }
.theme-switch svg { width: 18px; height: 18px; }
@media print { .theme-switch { display: none; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- top bar */
:root { --header-h: 64px; --sidebar-w: 260px; }
.topbar { background: var(--top); color: var(--top-text); position: sticky; top: 0; z-index: 20; }
/* One fixed-height row on desktop, so the full-height sidebar can sit exactly below it. */
.topbar-inner { height: var(--header-h); padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--top-text); text-decoration: none; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.brand-logo { display: block; height: 36px; width: auto; }
.search { flex: 1 1 260px; min-width: 120px; max-width: 420px; }
.search input {
  width: 100%; padding: 8px 12px; border-radius: 999px; border: 1px solid #ffffff22;
  background: #ffffff14; color: var(--top-text); font: inherit; font-size: 0.95rem;
}
.search input::placeholder { color: var(--top-muted); }
.search input:focus { outline: 2px solid var(--accent); background: #ffffff22; }
.topnav { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topnav a { white-space: nowrap; }
.topnav a { color: var(--top-muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 0.93rem; display: inline-flex; align-items: center; gap: 6px; }
.topnav a:hover, .topnav a.active { color: var(--top-text); background: #ffffff14; }
.badge { background: var(--accent); color: var(--accent-contrast); border-radius: 999px; font-size: 0.75rem; font-weight: 700; padding: 0 7px; line-height: 1.5; }
.account { margin-left: auto; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 30px rgb(0 0 0 / 0.18); padding: 8px; z-index: 30;
}
.menu-panel a, .menu-panel .linklike { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text); text-decoration: none; width: 100%; text-align: left; }
.menu-panel a:hover, .menu-panel .linklike:hover { background: var(--surface-2); }
.menu-who { display: flex; flex-direction: column; padding: 6px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; gap: 2px; }
.menu-who .muted { font-size: 0.85rem; word-break: break-all; }

.avatar { border-radius: 999px; display: inline-block; vertical-align: middle; object-fit: cover; flex: none; width: 28px; height: 28px; }
.avatar-initial { background: var(--accent); color: var(--accent-contrast); font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; }
img.avatar[width='40'], .avatar-lg { width: 40px; height: 40px; font-size: 1.1rem; }

/* ---------------------------------------------------------------- shell */
.shell { width: 100%; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); flex: 1; }

/* Desktop: the menu is a full-height panel pinned under the header that scrolls on its own. */
.sidebar {
  position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 20px 12px 80px; /* bottom: room for the theme switch */
  font-size: 0.94rem;
  /* Keep the scrollbar invisible until the pointer is over the menu, then thin. */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.sidebar:hover, .sidebar:focus-within { scrollbar-color: var(--border) transparent; }
/* Safari ignores scrollbar-color but honours these. */
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.sidebar:hover::-webkit-scrollbar-thumb { background: var(--border); }
.sidebar-toggle > summary { display: none; }
.sidebar ul { list-style: none; padding: 0; margin: 0 0 1em; }
.sidebar ul ul { padding-left: 14px; margin: 2px 0 6px; border-left: 2px solid var(--border); }
.sidebar li { margin: 1px 0; }
.sidebar a { color: var(--text); text-decoration: none; display: block; padding: 3px 8px; border-radius: 6px; }
.sidebar a:hover { background: var(--surface-2); color: var(--link); }
.sidebar a.missing { color: var(--err); }
.sidebar strong, .sidebar h2, .sidebar h3 { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1.2em 8px 0.4em; }
.sidebar p { margin: 0.4em 8px; }
/* Menu group labels ("- **Suspension**" with links nested under it) */
.sidebar li > strong { margin-top: 1em; }
.sidebar > details > .sidebar-content > ul > li > strong + ul { padding-left: 0; border-left: 0; margin: 0; }
.sidebar ul ul li > strong { text-transform: none; letter-spacing: 0; font-size: 0.85rem; margin: 0.5em 8px 0.2em; }
.sidebar-content > ul:first-child > li:first-child > strong { margin-top: 0; }
.sidebar-edit { font-size: 0.85rem; }
.sidebar-edit a { color: var(--muted); display: inline; padding: 0; }

.content { min-width: 0; width: 100%; max-width: 1060px; padding: 32px 48px 56px; }
.footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; text-align: center; padding: 18px 20px; }

/* Phones and small tablets: the header wraps and the menu becomes a collapsible block above the page. */
@media (max-width: 860px) {
  .topbar-inner { height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .topnav { order: 6; width: 100%; }
  .shell { grid-template-columns: 1fr; gap: 16px; padding: 16px 16px 48px; }
  .sidebar { position: static; height: auto; overflow: visible; background: none; border: 0; padding: 0; }
  .sidebar-toggle > summary {
    display: block; cursor: pointer; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); font-weight: 600;
  }
  .sidebar-content { padding: 8px 0 0; }
  .content { padding: 0; }
  .footer { padding-bottom: 72px; }
  h1 { font-size: 1.6rem; }
}

/* ---------------------------------------------------------------- notices */
.notice { max-width: 1240px; margin: 12px auto 0; width: calc(100% - 40px); padding: 10px 14px; border-radius: var(--radius); border: 1px solid transparent; }
.notice.inline { width: auto; margin: 0 0 18px; }
.notice p { margin: 0.3em 0; }
.notice-info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.notice-success { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.notice-warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.notice-error { background: var(--err-bg); color: var(--err); border-color: color-mix(in srgb, var(--err) 25%, transparent); }
.notice a { color: inherit; font-weight: 600; }
.empty { padding: 32px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }

/* ---------------------------------------------------------------- buttons & forms */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 0.93rem; font-weight: 600;
  text-decoration: none; cursor: pointer; line-height: 1.3; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn:focus-visible, .linklike:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { filter: brightness(1.07); border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--link); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { color: var(--err); }
.btn.btn-danger:not(.btn-ghost) { background: var(--err-bg); border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.btn-small { padding: 4px 10px; font-size: 0.85rem; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-google:hover { background: #f8f9fa; border-color: #c4c7ca; }
.g-logo { flex: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; text-decoration: underline; }
.inline-form { display: inline; }

.stack { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.93rem; }
input:not([type='radio']):not([type='checkbox']):not([type='file']), select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 11px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); border-color: var(--accent); }
input[readonly] { background: var(--surface-2); color: var(--muted); }
select { width: auto; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px 16px; background: var(--surface); }
legend { font-weight: 700; padding: 0 6px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.radio input { margin-top: 0.35em; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.prefixed { display: flex; align-items: stretch; }
.prefixed .prefix { padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--border); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); font-family: var(--mono); font-weight: 400; color: var(--muted); }
.prefixed input { border-radius: 0 var(--radius) var(--radius) 0 !important; }
.dev-login { margin-top: 28px; padding: 16px; border: 1px dashed var(--warn); border-radius: var(--radius); }
.dev-login h2 { margin: 0; font-size: 1.1rem; }

/* ---------------------------------------------------------------- page view */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 20px; }
.page-head h1 { margin: 0; flex: 1 1 320px; }
.page-actions { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.page-meta { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 12px; font-size: 0.875rem; }

.toc { float: right; margin: 0 0 16px 24px; width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: 0.9rem; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { list-style: none; padding: 0; margin: 8px 0 0; }
.toc li { margin: 3px 0; }
.toc .toc-3 { padding-left: 14px; font-size: 0.85rem; }
.toc a { text-decoration: none; }
@media (max-width: 1100px) { .toc { float: none; width: auto; margin: 0 0 20px; } }

.prose { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { border-bottom: 1px solid var(--border); padding-bottom: 0.3em; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: 80px; }
.prose img { border-radius: 6px; display: block; margin: 1em 0; }
.prose p img { display: inline-block; margin: 0.25em 0; }
.prose blockquote { margin: 1em 0; padding: 0.5em 1em; border-left: 4px solid var(--accent); background: var(--surface); color: var(--muted); border-radius: 0 var(--radius) var(--radius) 0; }
.prose pre { background: var(--surface-2); padding: 12px 14px; border-radius: var(--radius); overflow-x: auto; }
.prose :not(pre) > code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: 0.25em; }
.prose a.missing { color: var(--err); }
.prose a.external::after { content: '↗'; font-size: 0.75em; margin-left: 2px; text-decoration: none; display: inline-block; }
.table-wrap { overflow-x: auto; margin: 1em 0; }
.prose table { border-collapse: collapse; min-width: 50%; background: var(--surface); }
.prose th, .prose td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.align-center { text-align: center !important; }
.align-right { text-align: right !important; }
.embed { position: relative; margin: 1.2em 0; }
.embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; display: block; }
.embed-link { font-size: 0.85rem; }

/* ---------------------------------------------------------------- lists & tables */
table.list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.93rem; }
table.list th, table.list td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.list th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--surface-2); }
table.list tr.current td { background: color-mix(in srgb, var(--ok-bg) 60%, transparent); }
table.list td.actions { white-space: nowrap; text-align: right; }
table.list td.actions > * + * { margin-left: 10px; }
.user-cell { display: flex; gap: 10px; align-items: center; }
.stats { margin-left: 8px; font-family: var(--mono); font-size: 0.8rem; }
.plus { color: var(--ok); }
.minus { color: var(--err); }

.status, .role { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--surface-2); color: var(--muted); margin-left: 4px; white-space: nowrap; }
.status-approved, .status-current, .role-admin { background: var(--ok-bg); color: var(--ok); }
.status-pending, .status-stale, .role-pending { background: var(--warn-bg); color: var(--warn); }
.status-rejected, .role-banned { background: var(--err-bg); color: var(--err); }
.status-new, .status-merged, .role-editor { background: var(--info-bg); color: var(--info); }
.role { margin-left: 0; align-self: flex-start; margin-top: 4px; }

.meta-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; }
.meta-grid dt { color: var(--muted); font-weight: 600; }
.meta-grid dd { margin: 0; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

.card-list { margin-bottom: 28px; }
.card-list h2 { margin-top: 0; font-size: 1.1rem; }
.user-card { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); }
.user-card-info { display: flex; flex-direction: column; flex: 1 1 220px; min-width: 0; }
.user-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.role-form { display: flex; gap: 6px; align-items: center; }
.role-help { margin-top: 28px; }
.role-help dt { font-weight: 700; margin-top: 8px; }
.role-help dd { margin: 0; color: var(--muted); }

.columns { columns: 3 220px; padding-left: 1.2em; margin: 0; }
.columns li { break-inside: avoid; margin: 2px 0; }
.letter-group h2 { font-size: 1.1rem; color: var(--accent); margin: 1.4em 0 0.4em; }

.results { padding-left: 1.2em; }
.results li { margin-bottom: 16px; }
.results li > a { font-size: 1.08rem; font-weight: 600; }
.results p { margin: 4px 0 0; color: var(--muted); }
mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; padding: 0 1px; border-radius: 2px; }
.search-big { display: flex; gap: 8px; margin-bottom: 24px; max-width: 640px; }

/* ---------------------------------------------------------------- editor */
.editor { display: flex; flex-direction: column; gap: 12px; }
.editor textarea { font-family: var(--mono); font-size: 0.92rem; line-height: 1.55; min-height: 420px; resize: vertical; tab-size: 2; }
.editor textarea.dragging { outline: 3px dashed var(--accent); }
.editor-tabs { display: flex; gap: 4px; align-items: center; border-bottom: 1px solid var(--border); }
.editor-tabs [role='tab'] { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.editor-tabs [role='tab'][aria-selected='true'] { color: var(--text); border-bottom-color: var(--accent); }
.editor-tabs .spacer { flex: 1; }
.upload-btn { cursor: pointer; }
.preview { min-height: 420px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cheatsheet { font-size: 0.9rem; }
.cheatsheet summary { cursor: pointer; color: var(--link); }
.cheatsheet table { border-collapse: collapse; margin-top: 8px; }
.cheatsheet td { padding: 4px 12px 4px 0; border-bottom: 1px solid var(--border); vertical-align: top; }

/* ---------------------------------------------------------------- diffs */
.diff-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; }
table.diff { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.84rem; line-height: 1.5; }
table.diff td { padding: 0 8px; vertical-align: top; }
table.diff td.ln { width: 1%; color: var(--muted); text-align: right; user-select: none; border-right: 1px solid var(--border); white-space: nowrap; opacity: 0.7; }
table.diff td.code { white-space: pre-wrap; word-break: break-word; }
table.diff .sign { user-select: none; display: inline-block; width: 1.2em; color: var(--muted); }
tr.diff-add td.code { background: var(--add-bg); }
tr.diff-del td.code { background: var(--del-bg); }
tr.diff-add mark { background: var(--add-mark); }
tr.diff-del mark { background: var(--del-mark); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--err) 60%, transparent); }
tr.diff-gap td { background: var(--surface-2); color: var(--muted); text-align: center; font-family: var(--font); font-size: 0.8rem; padding: 3px; }
.review-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
del { color: var(--err); }
ins { color: var(--ok); text-decoration: none; font-weight: 600; }
