﻿/* Museo, the brand's own typefaces, shipped from the brand skill's
 * assets/fonts. The earlier fallback to Georgia was only because these had
 * not been found yet.
 */
@font-face {
  font-family: "Museo Slab";
  src: url("/assets/fonts/MuseoSlab-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Museo Slab";
  src: url("/assets/fonts/MuseoSlab-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Museo Sans";
  src: url("/assets/fonts/MuseoSans-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Museo Sans";
  src: url("/assets/fonts/MuseoSans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Museo Sans";
  src: url("/assets/fonts/MuseoSans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ProcedureAI styles.
 *
 * KR brand COLORS, deliberately not KR brand GEOMETRY.
 *
 * The palette is the brand's: KR Blue #1d4c7e for text (never pure black),
 * KR Green #aed136 as the accent, Charcoal #3c3c3c, #f9f9f9 ground. Green as a
 * background always takes blue text, never white.
 *
 * The zero-radius rule is dropped on Jason's call: the brand guidance reads as
 * print-first, every other tool in the fleet has rounded corners and soft
 * shadows, and a hard-edged grid felt unfriendly for something reviewers use
 * all day. Radius, shadow and the application-sized type scale are ours; the
 * colors are not.
 *
 * Museo Slab and Museo Sans are not available as webfonts here, so the stacks
 * fall back to Georgia and the system sans.
 */

:root {
  --kr-blue: #1d4c7e;
  --kr-blue-dark: #163c65;
  --kr-green: #aed136;
  --kr-green-dark: #99ba28;
  --kr-charcoal: #3c3c3c;
  --kr-bg: #f6f7f8;
  --kr-label: #7b8794;
  --kr-white: #ffffff;

  --kr-blue-10: #eaf0f6;
  --kr-blue-05: #f4f8fb;
  --kr-green-30: #e4f0c2;
  --kr-green-15: #f2f8e1;

  --rule: #e4e8ec;
  --rule-strong: #cdd5dd;

  /* Three states, and only one of them needs a color the brand does not have.
   *
   *   KR Blue   - the source does not cover this, so you write it
   *   KR Green  - drafted and cited
   *   red       - a summary that could not be tied to the source
   *
   * Blue for a gap rather than the gold that was here before: gold is not in
   * the palette and looked out of place, and a gap is not an error - it is
   * work waiting for you, which is exactly what the primary color should say.
   * Red stays because an error state genuinely needs one, and it matches the
   * red written into the .docx. */
  --gap: var(--kr-blue);
  --gap-strong: var(--kr-blue);
  --gap-wash: var(--kr-blue-05);
  --bad: #a4262c;
  --bad-wash: #fcf0f0;

  /* Amber for a warning banner, matching the convention the other tools use:
   * amber warns, red is an error. Used on the banners rather than on the
   * fields - a gap field is neutral work, but "you have gaps to write" is a
   * thing to draw the eye. */
  --warn: #9a6b00;
  --warn-strong: #d99b00;
  --warn-wash: #fdf6e6;

  --slab: "Museo Slab", Georgia, "Times New Roman", serif;
  --sans: "Museo Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 1px 2px rgba(22, 60, 101, 0.06), 0 2px 8px rgba(22, 60, 101, 0.05);
  --shadow-lift: 0 4px 14px rgba(22, 60, 101, 0.1);
}

* { box-sizing: border-box; }

/* Must precede anything that sets `display`: the browser hides a [hidden]
 * element with a plain UA rule, and any class setting `display: flex` beats
 * it - which once showed the progress spinner on an untouched page. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--kr-bg);
  color: var(--kr-blue);
  font: 400 15px/1.6 var(--sans);
  font-feature-settings: "tnum" 1;
}

h1, h2, h3 {
  font-family: var(--slab);
  font-weight: 700;
  color: var(--kr-blue);
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: 25px; line-height: 1.25; }
h2 { font-size: 18px; }
h3 { font-size: 15.5px; }

p { margin: 0; }
a { color: var(--kr-blue); text-underline-offset: 2px; }

.mono { font-family: var(--mono); font-size: 0.9em; }
.muted { color: var(--kr-label); }

/* ---------- the environment banner ---------- */
/*
 * Only ever rendered on nonprod and on localhost - chrome.js decides, and
 * production never gets the element at all. The orange is the same one the
 * Document Comparison and Event Aggregator tools use, so "orange bar at the
 * top" means the same thing across the firm's tools rather than being a
 * ProcedureAI invention. It is deliberately outside the brand palette: the
 * point is that it does not look like part of the product.
 */
.env-banner {
  position: sticky;
  top: 0;
  z-index: 50;                /* above the header, which is 40 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 20px;
  /* A step darker than the other tools' #f59e0b, which puts white text at
   * about 2.1:1 - unreadable by WCAG AA, on the one element whose entire job
   * is to be read. This spans roughly 4.8:1 to 6.4:1 and still reads as the
   * same orange bar at a glance. */
  background: linear-gradient(90deg, #b45309 0%, #92400e 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
}

.env-banner.local { background: linear-gradient(90deg, #0f766e 0%, #115e59 100%); }
.env-banner-icon { font-size: 14px; }

.env-banner-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- header ---------- */

.topbar {
  position: sticky;
  /* Sits below the environment banner when there is one. chrome.js measures
   * the banner and sets --env-top; with no banner this falls back to 0 and
   * the header behaves exactly as it always has. */
  top: var(--env-top, 0px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  height: 60px;
  background: var(--kr-white);
  border-bottom: 1px solid var(--rule);
}

/* The firm's logo, then the product name. Two rules from the brand guide
 * shape this: the K|R box mark is "a graphic element, NOT an alternative
 * logo", and logo files must be referenced directly rather than
 * reconstructed - so the small square icon that used to sit here was the
 * wrong idea twice over.
 *
 * The divider and the gap keep the product name from reading as part of the
 * lock-up, which stands in for the guide's clear-space rule (the width of the
 * "O" in ROSSIN on all sides).
 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex: none;
}
.kr-logo {
  height: 21px;                  /* 453x88 - keeps the proportions exactly */
  width: auto;
  display: block;
}
.brand-rule {
  width: 1px;
  height: 22px;
  background: var(--rule-strong);
  flex: none;
}
.wordmark {
  font-family: var(--slab);
  font-size: 17px;
  font-weight: 700;
  color: var(--kr-blue);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.topbar .spacer { flex: 1; }

.topbar-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--kr-label);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38ch;
}

main { max-width: 1040px; margin: 0 auto; padding: 26px 22px 72px; }
main.wide { max-width: 1240px; }

.lede { color: var(--kr-charcoal); max-width: 74ch; }

.panel {
  background: var(--kr-white);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.row { display: flex; gap: 14px; align-items: flex-start; }
.row.wrap { flex-wrap: wrap; }
.row .spacer { flex: 1; }

/* ---------- buttons ---------- */

.btn {
  appearance: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: var(--kr-white);
  color: var(--kr-blue);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover:not(:disabled) {
  border-color: var(--kr-green);
  background: var(--kr-green-15);
  color: var(--kr-blue);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--kr-green); outline-offset: 2px; }

/* The main action is green, with blue text as the brand requires. */
.btn.primary {
  background: var(--kr-green);
  border-color: var(--kr-green);
  color: var(--kr-blue);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.btn.primary:hover:not(:disabled) {
  background: var(--kr-green-dark);
  border-color: var(--kr-green-dark);
  color: var(--kr-blue);
  box-shadow: var(--shadow-lift);
}

.btn.blue { background: var(--kr-blue); border-color: var(--kr-blue); color: var(--kr-white); }
.btn.blue:hover:not(:disabled) { background: var(--kr-blue-dark); border-color: var(--kr-blue-dark); color: var(--kr-white); }

.btn.small { height: 34px; padding: 0 12px; font-size: 13px; }

.btn.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--kr-blue);
  font-weight: 500;
}
.btn.quiet:hover:not(:disabled) { background: var(--kr-blue-10); border-color: transparent; }

/* ---------- account menu ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 12px 0 6px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--kr-white);
  color: var(--kr-blue);
  font: 600 13.5px var(--sans);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.badge:hover { border-color: var(--kr-green); background: var(--kr-green-15); }
.badge:focus-visible { outline: 2px solid var(--kr-green); outline-offset: 2px; }
.badge .initials {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--kr-blue);
  color: var(--kr-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 11.5px var(--sans);
  letter-spacing: 0.04em;
  flex: none;
}
.badge .caret { color: var(--kr-label); font-size: 10px; }

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: var(--kr-white);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--shadow-lift);
  padding: 6px;
  z-index: 50;
}
.menu a, .menu button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--kr-blue);
  font: 500 14px var(--sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu a:hover, .menu button:hover { background: var(--kr-green-15); }
.menu .sep { height: 1px; background: var(--rule); margin: 5px 0; }
.menu .who {
  padding: 8px 11px 10px;
  color: var(--kr-label);
  font-size: 12.5px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 5px;
}

.pop { position: relative; }
.pop-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(430px, calc(100vw - 44px));
  background: var(--kr-white);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--shadow-lift);
  padding: 16px 18px;
  z-index: 50;
  text-align: left;
}
.pop-panel h3 { margin-bottom: 9px; }
.pop-panel ol { margin: 0; padding-left: 19px; color: var(--kr-charcoal); font-size: 13.5px; }
.pop-panel ol li { margin-bottom: 6px; }

/* ---------- drop zone ---------- */

.drop {
  border: 2px dashed var(--rule-strong);
  border-radius: var(--r-lg);
  background: var(--kr-white);
  padding: 38px 24px;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
/* The same green as a button's hover, which is the lighter of the two washes
 * and reads better. Going solid rather than dashed is what makes it register
 * without needing a heavier color. */
.drop.over {
  border-color: var(--kr-green);
  border-style: solid;
  background: var(--kr-green-15);
}
.drop.over h2 { color: var(--kr-blue); }

.drop h2 { margin-bottom: 6px; }
.drop p { color: var(--kr-label); margin: 0 0 18px; font-size: 14px; }
.drop input[type="file"] { display: none; }

.chosen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--kr-charcoal);
  margin-top: 14px;
}

/* ---------- detection ---------- */

.detect {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--kr-green);
  border-radius: var(--r);
  background: var(--kr-white);
  box-shadow: var(--shadow);
  padding: 15px 17px;
  margin-top: 14px;
}
.detect.ask { border-left-color: var(--gap-strong); background: var(--gap-wash); }
.detect .body { flex: 1; min-width: 0; }
.detect .title { font-weight: 700; }
.detect .why { color: var(--kr-charcoal); font-size: 13px; margin-top: 3px; }

.picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.picker label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--kr-white);
  padding: 8px 14px;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.picker label:hover { border-color: var(--kr-green); }
.picker label:has(input:checked) {
  border-color: var(--kr-green);
  background: var(--kr-green-15);
  box-shadow: inset 0 0 0 1px var(--kr-green);
  font-weight: 600;
}

/* ---------- progress ---------- */

.stages { list-style: none; margin: 14px 0 0; padding: 0; }
.stages li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
  color: var(--kr-label);
  font-size: 14px;
  border-top: 1px solid var(--rule);
}
.stages li:first-child { border-top: 0; }
.stages li .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--rule-strong); flex: none; }
.stages li.active { color: var(--kr-blue); font-weight: 600; }
.stages li.active .dot { background: var(--kr-green); box-shadow: 0 0 0 4px var(--kr-green-15); }
.stages li.done { color: var(--kr-charcoal); }
.stages li.done .dot { background: var(--kr-green); }

.bar { height: 6px; background: var(--rule); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--kr-green); width: 0; transition: width 0.4s; }

.spinner {
  width: 15px; height: 15px; flex: none;
  border: 2px solid var(--kr-green-30);
  border-top-color: var(--kr-green-dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- stat strip ---------- */

.stats {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  background: var(--kr-white);
  overflow: hidden;
}
.stat { padding: 13px 18px; border-left: 1px solid var(--rule); flex: 1 1 auto; min-width: 118px; }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--slab); font-size: 22px; font-weight: 700; line-height: 1.15; }
.stat span { font-size: 11px; color: var(--kr-label); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.stat.gap b { color: var(--gap); }
.stat.bad b { color: var(--bad); }
.stat.roi b { color: var(--kr-blue); }
.stat.good b { color: var(--kr-green-dark); }

/* ---------- review list ---------- */

.toolbar {
  position: sticky;
  top: 60px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 15px;
  margin: 16px 0;
  background: var(--kr-white);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.counter { font-family: var(--mono); font-size: 12.5px; color: var(--kr-label); }

.field {
  background: var(--kr-white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--kr-green);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.field.gap { border-left-color: var(--gap-strong); }
.field.unverified { border-left-color: var(--bad); }
.field.accepted {
  /* Status stays on the border - it describes the field, not your progress.
   * Acceptance is shown by flattening the card instead. */
  box-shadow: none;
  background: var(--kr-bg);
  border-color: var(--rule);
}
.field.accepted h3 { color: var(--kr-charcoal); }
.field.accepted textarea.summary { background: var(--kr-bg); border-color: var(--rule); }
.field.hidden { display: none; }

/* Cards take focus now, so the shortcuts have somewhere to apply. Without a
 * visible ring a reviewer cannot tell which field A would accept. */
.field:focus { outline: none; }
.field:focus-visible,
.field:focus-within {
  outline: 2px solid var(--kr-green);
  outline-offset: 2px;
}

.field-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.field-head h3 { flex: 1; min-width: 220px; }

.tag {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.tag.verified { color: var(--kr-blue); border-color: var(--kr-green); background: var(--kr-green-15); }
.tag.gap { color: var(--gap); border-color: var(--gap-strong); background: var(--gap-wash); }
.tag.unverified { color: var(--bad); border-color: var(--bad); background: var(--bad-wash); }
.tag.ok { color: var(--kr-blue); border-color: var(--kr-green); background: var(--kr-green); }

.instruction { color: var(--kr-label); font-size: 13px; margin: 5px 0 11px; }

textarea.summary {
  width: 100%;
  min-height: 88px;
  font: 400 14px/1.6 var(--sans);
  color: var(--kr-blue);
  padding: 11px 13px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: var(--kr-white);
  resize: vertical;
}
textarea.summary:focus { outline: 2px solid var(--kr-green); outline-offset: -1px; border-color: var(--kr-green); }
.field.gap textarea.summary { background: var(--gap-wash); }

.evidence { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.evidence summary { cursor: pointer; font-size: 13px; color: var(--kr-label); }
.evidence summary:hover { color: var(--kr-blue); }
.quote {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--kr-charcoal);
  background: var(--kr-bg);
  border-left: 3px solid var(--kr-green);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 10px 13px;
  margin: 9px 0 0;
}
.footnote { font-family: var(--mono); font-size: 12.5px; color: var(--kr-label); margin-top: 8px; }
.footnote b { color: var(--kr-blue); font-weight: 700; }

.field-actions { display: flex; align-items: center; gap: 9px; margin-top: 12px; }

.keys { font-family: var(--mono); font-size: 12px; color: var(--kr-label); }
kbd {
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--kr-bg);
  color: var(--kr-charcoal);
}

.empty { color: var(--kr-label); text-align: center; padding: 30px; }

.notice {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--bad);
  border-radius: var(--r);
  background: var(--bad-wash);
  padding: 14px 16px;
}
.notice.info { border-left-color: var(--kr-green); background: var(--kr-green-15); }

/* Banners that are also filters. Clicking one shows just those fields, so a
 * reviewer with both a warning and an error banner can go straight to
 * whichever they want to deal with first. */
.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  font: 400 14px/1.5 var(--sans);
  color: var(--kr-blue);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--kr-green);
  border-radius: var(--r);
  background: var(--kr-white);
  box-shadow: var(--shadow);
  padding: 13px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.15s;
}
.banner:hover { box-shadow: var(--shadow-lift); }
.banner:focus-visible { outline: 2px solid var(--kr-green); outline-offset: 2px; }
.banner .count {
  flex: none;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 14px var(--sans);
}
.banner .grow { flex: 1; }
.banner .action { font-weight: 700; font-size: 13px; white-space: nowrap; }

.banner.warn { border-left-color: var(--warn-strong); background: var(--warn-wash); }
.banner.warn .count { background: var(--warn-strong); color: var(--kr-blue); }
.banner.error { border-left-color: var(--bad); background: var(--bad-wash); }
.banner.error .count { background: var(--bad); color: var(--kr-white); }
.banner.on { box-shadow: inset 0 0 0 2px var(--kr-blue), var(--shadow); }

.foot { margin-top: 26px; color: var(--kr-label); font-size: 12px; text-align: center; }

@media (max-width: 760px) {
  .stat { min-width: 50%; border-left: 0; border-top: 1px solid var(--rule); }
  .toolbar { position: static; }
  .topbar { gap: 6px; padding: 0 14px; }
  .topbar-meta { display: none; }
}

/* ---------- the highlighting key on the Templates page ---------- */

/* Shows the actual convention rather than describing it: the tool reads a
 * template's highlighting to decide which fields are its work, and someone
 * preparing a template has no other way to know that yellow means "draft
 * this" and green means "leave it alone". The swatches use the real Word
 * highlight colors, not brand colors, because that is what a user will be
 * picking from Word's highlighter. */

details.key summary { cursor: pointer; }
details.key summary:hover { color: var(--kr-charcoal); }

.key-table { border-collapse: collapse; width: 100%; margin-top: 12px; }
.key-table td {
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--rule);
  vertical-align: top;
  font-size: 13.5px;
  color: var(--kr-charcoal);
}
.key-table tr:first-child td { border-top: 0; }
.key-table td:first-child { white-space: nowrap; color: var(--kr-blue); }
.key-table td:nth-child(2) { width: 46%; }

.swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  margin-right: 7px;
  vertical-align: -2px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.swatch.yellow { background: #ffff00; }
.swatch.green { background: #00ff00; }
.swatch.both { background: linear-gradient(105deg, #ffff00 50%, #00ff00 50%); }

/* Placeholders as they actually look in Word. */
.ph {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  padding: 1px 3px;
  color: #000;
}
.ph.yellow { background: #ffff00; }
.ph.green { background: #00ff00; }
.ph.both { background: linear-gradient(105deg, #ffff00 50%, #00ff00 50%); }
.ph.none { background: transparent; color: var(--kr-label); }
.ph.tool { background: #00ffff; }
.ph.flag { background: #ff0000; color: #fff; }
