:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1d212a;
  --border: #262b36;
  --text: #e6e8ee;
  --muted: #8a92a3;
  --accent: #f55036;
  --accent-hover: #ff6448;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #ef4444;
  --modal-shell: #1a1e27;
  --modal-toolbar: #12151d;
  --overlay-scrim: rgba(5, 8, 14, 0.72);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/* Light theme — activated when the profile-menu toggle sets
   <html data-theme="light">. Applies to the whole resume app UI. */
:root[data-theme="light"] {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-2: #eef1f6;
  --border: #d5dae2;
  --text: #1a2340;
  --muted: #6a7688;
  --accent: #d84528;
  --accent-hover: #f55036;
  --ok: #16a34a;
  --warn: #b45309;
  --danger: #b91c1c;
  --modal-shell: #ffffff;
  --modal-toolbar: #eef1f6;
  --overlay-scrim: rgba(30, 40, 60, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

header {
  padding: 16px 40px 14px;
  max-width: 1200px;
  margin: 0 auto;
  /* Sticky app-bar. Content scrolls under so the header + hamburger + action
     buttons stay reachable. */
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.header-text { flex: 1; min-width: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* KPR profile chip docked into the title row (moved by JS). Unfix its
   position and let flex put it next to the title. Dropdown stays anchored
   to the chip container. */
.header-top #kpr-core-account {
  position: relative;
  top: auto;
  right: auto;
  flex: 0 0 auto;
}
/* The base look of the hamburger button is set INLINE in JS (see
   relocateAccountIntoHeader in index.html) because kpr-core injects its own
   <style> block after this file and inline is the only guaranteed override.
   :hover has to live here though — you can't set pseudo-classes inline. */
.header-top #kpr-core-account-btn:hover {
  background: var(--panel-2) !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
.header-top #kpr-core-account-btn svg { width: 20px; height: 20px; display: block; }

header h1 {
  margin: 0 0 4px 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

main {
  padding: 24px 40px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.settings-bar {
  margin-bottom: 24px;
}

.settings-bar details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.settings-bar summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  user-select: none;
}
.settings-bar summary::-webkit-details-marker {
  display: none;
}

.settings-label {
  font-weight: 600;
  font-size: 14px;
}

.key-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.key-status.ok {
  color: var(--ok);
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

.settings-body {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.settings-body input {
  flex: 1;
  min-width: 240px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0 0;
  width: 100%;
}

.inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 800px) {
  .inputs {
    grid-template-columns: 1fr;
  }
  header,
  main {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ============================================================
   Native-app-feel on mobile.
   ============================================================ */
@media (max-width: 720px) {
  html { -webkit-text-size-adjust: 100%; }
  body {
    background: var(--bg);
    /* Respect iOS safe-areas so the app doesn't hide under the notch. */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Sticky app-bar with two rows: title+hamburger on top, action buttons
     below. The hamburger sits on the title line as the user asked. */
  header {
    padding: 10px 14px 10px;
  }
  .header-top { gap: 10px; margin-bottom: 8px; }
  header h1 { font-size: 20px; }
  .tagline { font-size: 12.5px; display: none; } /* hide tagline on phones */
  .header-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .header-actions > button {
    flex: 1;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }
  .header-top #kpr-core-account-btn { width: 44px; height: 44px; }

  main { padding: 14px 16px 40px; }

  /* Prevent iOS from zooming when a text input is focused. */
  textarea, input[type="text"], input[type="password"], input[type="email"] {
    font-size: 16px;
  }

  /* Touch-friendly minimum tap target. */
  button {
    min-height: 44px;
    padding: 10px 16px;
  }

  /* Action row: stack Tailor + status vertically. */
  .action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .action-row button.primary { font-size: 15px; }
  .status-msg { text-align: center; }

  /* Template picker: single column, larger thumbnails so they're readable. */
  .template-picker {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Output actions + download row: full-width buttons stack on their own row. */
  .output-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .output-actions button { width: 100%; }
  .download-row {
    flex-direction: column;
    align-items: stretch;
  }
  .download-row input[type="text"] { width: 100%; }
  .download-row button { width: 100%; }

  /* Full-screen modals — feels more like a native sheet than a floating card. */
  .preview-overlay {
    padding: 0;
    align-items: stretch;
  }
  .preview-shell,
  .preview-shell.saved-shell,
  .preview-shell.about-shell,
  .preview-shell.raw-edit-shell {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .preview-toolbar {
    /* Iron top so the close button is easy to reach with a thumb. */
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .preview-close { min-height: 40px; padding: 8px 14px; }
  .preview-paper { min-height: 100vh; padding: 12px; overflow-x: auto; }
  .raw-edit-body textarea { min-height: 65vh; }

  /* Intro banner: tighter on small screens. */
  .intro { padding: 16px; }
  .intro-title { font-size: 16px; }
  .intro-steps { font-size: 13px; margin-left: 18px; }
  .intro-head { flex-wrap: wrap; gap: 8px; }

  /* Saved-resumes rows stack Open/Rename/Delete under the title for clarity. */
  .history-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .history-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .history-actions button { flex: 1; min-width: 88px; }

  /* Compact-mode selected thumbnail: center it on mobile since it's alone. */
  .template-picker.compact { display: flex; justify-content: center; }
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel label {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

textarea,
input[type="password"],
input[type="text"] {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  resize: vertical;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}

textarea:focus,
input:focus {
  border-color: var(--accent);
}

.dropzone {
  background: var(--panel);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  padding: 24px;
  text-align: center;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: var(--panel-2);
}

.dropzone.loaded {
  border-style: solid;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.05);
}

.drop-icon {
  font-size: 32px;
  color: var(--muted);
  margin-bottom: 8px;
}

.dropzone.loaded .drop-icon {
  color: var(--ok);
}

.drop-text {
  font-size: 14px;
  color: var(--text);
}

.drop-subtext {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.link-like {
  color: var(--accent);
  text-decoration: underline;
}

.resume-preview {
  margin-top: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
}

.resume-preview summary {
  cursor: pointer;
  color: var(--muted);
  user-select: none;
}

.resume-preview pre {
  margin: 8px 0 0 0;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}

.action-row {
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

button {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}

button:hover:not(:disabled) {
  background: var(--border);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Disabled primary would otherwise be a 50%-opacity coral that reads as a
   danger button. Force a neutral treatment so users don't mistake "not ready
   yet" for "destructive". */
button.primary:disabled {
  background: var(--panel-2);
  border-color: var(--border);
  color: var(--muted);
  opacity: 1;
}

button.primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.status-msg {
  color: var(--muted);
  font-size: 13px;
  min-height: 20px;
}

.status-msg.working {
  color: var(--warn);
}

.status-msg.err {
  color: var(--danger);
}

.status-msg.ok {
  color: var(--ok);
}

.output {
  margin-top: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.output-header h2 {
  margin: 0;
  font-size: 18px;
}

.output-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#outputText {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------------- history ---------------- */
.history {
  margin-top: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.history-header h2 {
  margin: 0;
  font-size: 18px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.history-main {
  min-width: 0;
  flex: 1;
}

.history-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.history-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.history-actions button {
  padding: 6px 12px;
  font-size: 12px;
}

.history-empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 24px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------------- preview modal ---------------- */
/* Default hidden; toggled via .open class. Using a class instead of the
   [hidden] attribute because .preview-overlay { display: flex } would win
   the specificity fight against UA [hidden]{display:none} and the modal
   would show on page load. */
.preview-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-scrim);
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px 40px;
}
.preview-overlay.open { display: flex; }

.preview-shell {
  background: var(--modal-shell);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: min(880px, 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--modal-toolbar);
  border-bottom: 1px solid var(--border);
}

.preview-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-close {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 12px;
}

/* The paper — inner CSS comes from the selected template so this stays neutral. */
.preview-paper {
  background: #ffffff;
  color: #111;
  padding: 0;
  min-height: 60vh;
}

.toolbar-actions { display: flex; gap: 8px; }

/* Saved-resumes modal reuses .preview-overlay/.preview-shell for the outer
   chrome but the body stays in the app's dark theme (no white "paper"). */
.saved-shell { max-width: 720px; }
.saved-body {
  background: var(--panel);
  padding: 16px 18px 22px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Version pill next to the "About" item in the profile dropdown. Because the
   pill lives inside the kpr-core menu (styled from kpr-core.js, not this
   file), we scope it under its unique id. */
#kpr-about-btn.kpr-about-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#kpr-about-btn .kpr-about-version {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(122, 134, 158, 0.15);
  border: 1px solid rgba(122, 134, 158, 0.25);
  letter-spacing: 0.02em;
}

/* About modal — same chrome as preview/saved. */
.about-shell { max-width: 520px; }
.about-body {
  background: var(--panel);
  padding: 22px 24px 26px;
  color: var(--text);
}
.about-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.about-version-line {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.about-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 16px;
}
.about-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.about-meta b { color: var(--text); font-weight: 600; }
.about-meta a { color: var(--accent); text-decoration: none; }
.about-meta a:hover { color: var(--accent-hover); }

/* Raw-edit modal — same chrome as preview/saved, dark body with a plain-text
   editable textarea. */
.raw-edit-shell { max-width: 820px; }
.raw-edit-body {
  background: var(--panel);
  padding: 16px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 78vh;
}
.raw-edit-body textarea {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.6;
  min-height: 55vh;
}
.saved-body .history-list { gap: 8px; }
.saved-body .history-empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
/* ---------------- template picker + download row ---------------- */
.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 14px 0 8px;
}

/* ---------------- intro banner (first-time users) ---------------- */
.intro {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 22px;
}
.intro-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}
.intro-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.intro-title {
  margin: 0;
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
}
.intro-dismiss {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 12px;
  flex-shrink: 0;
}
.intro-dismiss:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--accent);
}
.intro-steps {
  margin: 6px 0 10px 22px;
  padding: 0;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.7;
}
.intro-steps li { margin: 2px 0; }
.intro-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.downloads-step {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.template-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 14px 0 18px;
}
/* Own selector to beat `display: grid` — otherwise `element.hidden = true`
   from JS silently no-ops because grid wins the specificity fight. */
.template-picker[hidden] { display: none; }
/* Compact mode: after the user picks a template, show only the selected card
   (as confirmation of what they chose) and hide the other 19. Change theme
   button re-expands. */
.template-picker.compact .template-card:not(.selected) { display: none; }
.template-card {
  background: var(--panel-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.05s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  color: inherit;
  font-family: inherit;
}
.template-card:hover { border-color: var(--accent); }
.template-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 80, 54, 0.18); }
.template-card .tc-thumb-wrap {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  align-self: center;
}
.template-card .tc-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  padding: 0 2px;
}
.template-card .tc-meta {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 0 2px;
}
.template-card .tc-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
  line-height: 1.4;
}
.template-card .tc-badge.tc-ats {
  background: rgba(74, 222, 128, 0.14);
  color: var(--ok);
  border: 1px solid rgba(74, 222, 128, 0.4);
}
.template-card .tc-badge.tc-design {
  background: rgba(122, 90, 160, 0.14);
  color: #b294e6;
  border: 1px solid rgba(122, 90, 160, 0.4);
}
.template-card .tc-desc {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.download-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.download-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.download-row input[type="text"] {
  flex: 1;
  min-width: 160px;
  padding: 8px 12px;
  font-size: 13px;
}
.download-row button { flex-shrink: 0; }

.raw-output {
  margin-top: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.raw-output summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  user-select: none;
}
.raw-output textarea {
  margin-top: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .preview-shell { width: 100%; }
}

/* ---------------- DOCX preserve-format mode ---------------- */
.mode-badge {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.4;
}
.mode-badge.docx {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--ok);
}
.mode-badge.pdf {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--warn);
}

.pill {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(74, 222, 128, 0.12);
  color: var(--ok);
  border: 1px solid rgba(74, 222, 128, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diff-count {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0;
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}

.diff-row {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.diff-row .diff-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.diff-row .diff-before {
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 6px;
}
.diff-row .diff-after {
  color: var(--text);
}


