/* Cockpit design system. A Material-flavoured layer over Bootstrap 5 (dbc.themes
   .BOOTSTRAP): tokens + component styles + the knowledge-editing affordances
   (rule chips, taxonomy matrix, tree tiers). Class prefix: kc-. Dash auto-serves
   this file from assets/. */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Mono:wght@400;500&display=swap");

:root {
  --kc-bg: #f8f9fa;
  --kc-surface: #ffffff;
  --kc-surface-alt: #f1f3f4;

  --kc-border: #dadce0;
  --kc-border-strong: #bdc1c6;

  --kc-text: #202124;
  --kc-text-muted: #5f6368;
  --kc-text-faint: #80868b;

  --kc-primary: #e8710a;
  --kc-primary-hover: #c75f00;
  --kc-primary-tint: #fdecdd;
  --kc-primary-ring: rgba(232, 113, 10, 0.24);

  --kc-success: #1e8e3e;
  --kc-danger: #d93025;
  --kc-danger-hover: #b3261e;
  --kc-warning: #f9ab00;

  --kc-radius: 8px;
  --kc-radius-sm: 4px;
  --kc-shadow-1: 0 1px 2px rgba(60, 64, 67, 0.15), 0 1px 3px rgba(60, 64, 67, 0.1);
  --kc-shadow-2: 0 1px 3px rgba(60, 64, 67, 0.2), 0 4px 8px rgba(60, 64, 67, 0.12);
  --kc-transition: 120ms ease;
  --kc-control-h: 34px;
  --kc-sidebar-w: 248px;
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--kc-text);
  background: var(--kc-bg);
}
h1, h2, h3, h4, h5, h6 { font-weight: 500; }

/* -- shell ---------------------------------------------------------------- */
.kc-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--kc-sidebar-w);
  background: var(--kc-surface);
  border-right: 1px solid var(--kc-border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  z-index: 100;
  overflow-y: auto;
}
.kc-content {
  margin-left: var(--kc-sidebar-w);
  background: var(--kc-bg);
  min-height: 100vh;
  padding: 1.5rem 2rem;
}
@media (max-width: 767.98px) {
  .kc-sidebar {
    position: static; width: auto; overflow-y: visible;
    border-right: 0; border-bottom: 1px solid var(--kc-border);
  }
  .kc-content { margin-left: 0; padding: 1rem; }
}
.kc-brand { display: flex; align-items: center; gap: 0.55rem; font-size: 1.15rem; font-weight: 700; }
.kc-brand-mark {
  width: 1.6rem; height: 1.6rem; border-radius: var(--kc-radius-sm);
  background: linear-gradient(135deg, var(--kc-warning), var(--kc-primary));
}
.kc-tagline { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kc-text-muted); margin: 0.35rem 0 0; }
/* Deployment badge, immediately after the app name in the brand block. Prod wears the
   danger red so a write made in the wrong window is a deliberate act; dev the info
   blue; local the neutral grey. Mirrored by the workbench's .wb-env-* badge. */
.kc-env-badge {
  padding: 0.05rem 0.4rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kc-env-prod { color: var(--kc-danger); border-color: var(--kc-danger); background: #fce8e6; }
.kc-env-dev { color: #1967d2; border-color: #1967d2; background: #e8f0fe; }
.kc-env-local { color: var(--kc-text-faint); border-color: var(--kc-border-strong); background: var(--kc-surface-alt); }
.kc-section-label { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kc-text-faint); margin: 0.25rem 0 0.4rem; }
/* Sidebar sections after the first (Knowledge, Admin, Test Zone) need air above
   their heading — the first one already sits under the brand's <hr>. */
.kc-nav + .kc-section-label { margin-top: 1rem; }
.kc-spacer { flex: 1 1 auto; }
.kc-user { font-size: 0.82rem; color: var(--kc-text-muted); }
.kc-user a { color: var(--kc-primary-hover); text-decoration: none; }
.kc-build { font-size: 0.7rem; color: var(--kc-text-faint); }
.kc-refresh {
  font-size: 0.72rem; color: var(--kc-text-muted); text-decoration: none;
  align-self: flex-start; margin-bottom: 0.4rem;
}
.kc-refresh:hover { color: var(--kc-primary-hover); }

/* -- login --------------------------------------------------------------- */
.kc-login-page {
  min-height: 100vh;
  margin: 0;
  padding: 1.5rem;
  display: grid;
  place-items: center;
  background: var(--kc-bg);
}
.kc-login-card {
  box-sizing: border-box;
  width: min(100%, 26rem);
  padding: 2rem;
  background: var(--kc-surface);
  border: 1px solid var(--kc-border);
  border-radius: var(--kc-radius);
  box-shadow: var(--kc-shadow-2);
}
.kc-login-form { display: grid; gap: 1rem; margin-top: 2rem; }
.kc-login-form .form-control { box-sizing: border-box; width: 100%; background: var(--kc-surface); color: var(--kc-text); }
.kc-login-error { margin: 2rem 0 1rem; padding: 0.65rem 0.8rem; color: #b3261e; background: #fce8e6; border: 1px solid #f6cbc7; border-radius: var(--kc-radius-sm); font-size: 0.85rem; }
.kc-login-error + .kc-login-form { margin-top: 0; }
.kc-login-submit { width: 100%; margin-top: 0.25rem; cursor: pointer; }

.kc-nav .nav-link {
  color: var(--kc-text-muted);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  display: flex; align-items: center;
}
.kc-nav .nav-link.active {
  background-color: var(--kc-primary-tint);
  color: var(--kc-primary-hover);
  font-weight: 700;
}
.kc-nav-count {
  margin-left: auto;
  font-size: 0.72rem; font-weight: 700;
  background: var(--kc-surface-alt); color: var(--kc-text-muted);
  padding: 0.05rem 0.5rem; border-radius: 999px;
}
.nav-link.active .kc-nav-count { background: var(--kc-primary); color: #fff; }

/* -- cards / sections ----------------------------------------------------- */
.card, .kc-card {
  background: var(--kc-surface);
  border: 1px solid var(--kc-border);
  border-radius: var(--kc-radius);
  box-shadow: none;
  transition: box-shadow var(--kc-transition);
}
.kc-card:hover { box-shadow: var(--kc-shadow-1); }
.card-body { padding: 1.5rem; }
.kc-card-title { font-size: 1.15rem; font-weight: 500; margin-bottom: 0.15rem; }
.kc-card-subtitle { font-size: 0.85rem; color: var(--kc-text-muted); margin-bottom: 1.25rem; }
.kc-section { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--kc-border); }
.kc-subhead { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kc-text-faint); margin-bottom: 0.6rem; }
.kc-actions { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.kc-actions .ms-auto { margin-left: auto; }
.kc-muted { color: var(--kc-text-muted); }

/* -- forms ---------------------------------------------------------------- */
label, .form-label { color: var(--kc-text); font-weight: 500; }
.kc-field-label { font-size: 0.78rem; font-weight: 500; color: var(--kc-text-muted); margin-bottom: 0.3rem; display: block; }
.form-control, .form-select {
  border: 1px solid var(--kc-border-strong);
  border-radius: var(--kc-radius-sm);
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--kc-primary);
  box-shadow: 0 0 0 3px var(--kc-primary-ring);
}

/* -- buttons -------------------------------------------------------------- */
.btn { font-weight: 500; font-size: 0.9rem; letter-spacing: 0.01em; border-radius: var(--kc-radius-sm); padding: 0.45rem 1rem; transition: all var(--kc-transition); }
.btn-primary, .btn-success { background-color: var(--kc-primary); border-color: var(--kc-primary); color: #fff; }
.btn-primary:hover, .btn-success:hover { background-color: var(--kc-primary-hover); border-color: var(--kc-primary-hover); }
.btn-secondary { background-color: var(--kc-surface-alt); border-color: var(--kc-border-strong); color: var(--kc-text); }
.btn-secondary:hover { background-color: #e4e6e9; border-color: var(--kc-border-strong); color: var(--kc-text); }
.btn-danger { background-color: var(--kc-danger); border-color: var(--kc-danger); }
.btn-danger:hover { background-color: var(--kc-danger-hover); border-color: var(--kc-danger-hover); }
.btn-outline-danger { color: var(--kc-danger); border-color: var(--kc-border-strong); }
.btn-outline-danger:hover { background-color: var(--kc-danger); border-color: var(--kc-danger); }
.btn-warning { background-color: var(--kc-warning); border-color: var(--kc-warning); color: #4d3800; }

/* -- badges / alerts / toasts --------------------------------------------- */
.badge { font-weight: 500; font-size: 0.72rem; padding: 0.32em 0.6em; border-radius: var(--kc-radius-sm); }
.alert { border-radius: var(--kc-radius-sm); border: 1px solid transparent; }
.alert-success { background: #e6f4ea; border-color: #ceead6; color: #1e6b32; }
.alert-danger { background: #fce8e6; border-color: #f6cbc7; color: #b3261e; }
.alert-warning { background: #fef7e0; border-color: #feefc3; color: #946200; }
.alert-info { background: #e8f0fe; border-color: #d2e3fc; color: #1967d2; }
.toast { border-radius: var(--kc-radius); border: 1px solid var(--kc-border); box-shadow: var(--kc-shadow-2); }

/* -- tables --------------------------------------------------------------- */
.table { color: var(--kc-text); font-size: 0.88rem; --bs-table-striped-bg: var(--kc-surface-alt); --bs-table-hover-bg: var(--kc-primary-tint); border-color: var(--kc-border); }
.table > thead th {
  color: var(--kc-text-muted); font-weight: 500; font-size: 0.74rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 1px solid var(--kc-border-strong); background: var(--kc-surface);
}
.table > tbody td { border-color: var(--kc-border); vertical-align: middle; }

/* -- accordions ----------------------------------------------------------- */
.accordion {
  --bs-accordion-border-color: var(--kc-border);
  --bs-accordion-active-bg: var(--kc-primary-tint);
  --bs-accordion-active-color: var(--kc-text);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px var(--kc-primary-ring);
}
.accordion-item { margin-bottom: 8px; border: 1px solid var(--kc-border); border-radius: var(--kc-radius-sm); overflow: hidden; }
.accordion-button { font-size: 0.92rem; padding: 0.55rem 1rem; color: var(--kc-text); background: var(--kc-surface); }
.accordion-button:not(.collapsed) { background: var(--kc-surface-alt); box-shadow: inset 0 -1px 0 var(--kc-border); }
.accordion-body { padding: 1.25rem 1.1rem; }

/* -- rules browser -------------------------------------------------------- */
.kc-risk-group { margin-top: 1.75rem; }
.kc-risk-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.kc-risk-accent { width: 5px; height: 1.2rem; border-radius: 3px; background: linear-gradient(180deg, var(--kc-warning), var(--kc-primary)); }
.kc-risk-name { font-size: 1.05rem; font-weight: 700; }
.kc-count { background: var(--kc-primary-tint); color: var(--kc-primary-hover); font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.55rem; border-radius: 999px; }
.kc-step-group { margin: 0 0 1rem 0.4rem; padding-left: 1rem; border-left: 2px solid var(--kc-border); }
.kc-step-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kc-text-faint); margin-bottom: 0.4rem; }

.kc-rule-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0.6rem; width: 100%; min-width: 0; }
.kc-rule-main { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: 0.6rem; min-width: 0; padding-right: 0.6rem; border-right: 1px solid var(--kc-border-strong); }
.kc-rule-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 0.92rem; color: var(--kc-primary); }
.kc-rule-title--empty { color: var(--kc-text-faint); font-weight: 500; font-style: italic; }
.kc-rule-facets { display: contents; }
.kc-rule-id { color: var(--kc-text-muted); background: var(--kc-surface-alt); border: 1px solid var(--kc-border); padding: 0.13rem 0.45rem; border-radius: var(--kc-radius-sm); font-size: 0.72rem; font-family: "Roboto Mono", monospace; }
.kc-chip { font-size: 0.72rem; font-weight: 600; padding: 0.16rem 0.5rem; border-radius: var(--kc-radius-sm); white-space: nowrap; }
.kc-chip-service { background: #e6f4ea; color: #137333; }
.kc-chip-cause { background: #e8f0fe; color: #1967d2; }
.kc-chip-wild { background: var(--kc-surface-alt); color: var(--kc-text-faint); }

/* -- taxonomy matrix ------------------------------------------------------ */
.kc-matrix-axis { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kc-text-faint); margin-bottom: 0.5rem; }
.kc-matrix-wrap { overflow: auto; max-height: 70vh; }
.kc-matrix { border-collapse: separate; border-spacing: 0; font-size: 0.85rem; }
.kc-matrix th, .kc-matrix td { border: 1px solid var(--kc-border); padding: 0.4rem 0.65rem; text-align: center; }
.kc-matrix thead th { background: var(--kc-surface-alt); color: var(--kc-text-muted); font-weight: 600; white-space: normal; overflow-wrap: break-word; max-width: 130px; position: sticky; top: 0; z-index: 1; }
.kc-matrix-corner { position: sticky; left: 0; top: 0; z-index: 3; background: var(--kc-surface) !important; }
.kc-matrix-rowhead { position: sticky; left: 0; z-index: 2; background: var(--kc-surface-alt); color: var(--kc-text); font-weight: 600; text-align: left !important; }

/* Diagonal column heads (edge matrices): the parent tier runs across the top, so a
   column need be no wider than its checkbox — the label is turned 45° to fit. The
   th holds the sticky box, the div carries the transform (a transform on a sticky
   element would break it), and the span clips a label longer than the head is tall. */
.kc-matrix-diag thead th.kc-matrix-colhead { height: 8.5rem; width: 2.6rem; max-width: none; padding: 0; vertical-align: bottom; border: 0; border-bottom: 1px solid var(--kc-border); background: var(--kc-surface); }
.kc-matrix-diag thead th.kc-matrix-colhead > div { width: 2.6rem; transform-origin: bottom left; transform: translateX(1.3rem) rotate(-45deg); }
/* A definite width, not max-width: the span is laid out inside a 2.6rem-wide div, so
   shrink-to-fit would clip every label to a column's worth of text. 11rem is what
   fits the head's height once turned 45° (11 / √2 ≈ 7.8rem); longer labels ellipsize
   and keep their full text in the title attribute. */
.kc-matrix-diag thead th.kc-matrix-colhead > div > span { display: inline-block; width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; padding: 0 0.6rem 0.35rem 0; }
/* Above every column head, whose per-column z-index (set in taxonomy.py) can climb
   to the number of columns as the heads stack right-to-left. */
.kc-matrix-diag .kc-matrix-corner { border: 0; z-index: 999; }

/* -- taxonomy tree -------------------------------------------------------- */
.kc-tree-item { margin-bottom: 6px; border: 1px solid var(--kc-border); border-left-width: 3px; border-radius: var(--kc-radius-sm); }
.kc-tree-head { display: flex; align-items: center; gap: 0.55rem; }
.kc-tree-facet { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.08rem 0.5rem; border-radius: 999px; }
.kc-tree-value { font-weight: 500; color: var(--kc-text); }
.kc-tree-count { margin-left: auto; background: var(--kc-surface-alt); color: var(--kc-text-muted); font-size: 0.7rem; font-weight: 700; padding: 0.05rem 0.5rem; border-radius: 999px; }
.kc-tree-leaf { display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.6rem; margin-bottom: 4px; border-left: 3px solid var(--kc-border); background: var(--kc-surface-alt); border-radius: var(--kc-radius-sm); }
.kc-inspection-group { margin-bottom: 0.7rem; }
.kc-inspection-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--kc-text-faint); margin-bottom: 0.3rem; }

.kc-tier-risk .kc-tree-facet { background: #fdecdd; color: #c75f00; }
.kc-tier-damage_cause .kc-tree-facet { background: #e8f0fe; color: #1967d2; }
.kc-tier-repair_step .kc-tree-facet { background: #dcf3ee; color: #0e7e6b; }
.kc-tier-craft .kc-tree-facet { background: #fff0e0; color: #b25a00; }
.kc-tier-service .kc-tree-facet { background: #f3ecfe; color: #6a2bd6; }
.kc-tier-rule .kc-tree-facet { background: #fce8f1; color: #b23a6d; }
.kc-tree-item.kc-tier-risk { border-left-color: #e8710a; }
.kc-tree-item.kc-tier-damage_cause { border-left-color: #1967d2; }
.kc-tree-item.kc-tier-repair_step { border-left-color: #0e7e6b; }
.kc-tree-item.kc-tier-craft { border-left-color: #b25a00; }
.kc-tree-item.kc-tier-service { border-left-color: #6a2bd6; }
.kc-tree-leaf.kc-tier-rule { border-left-color: #b23a6d; }

/* -- knowledge change comparisons ---------------------------------------- */
#hist-table, #ws-change-rows { max-width: 100%; overflow-x: auto; }
.kc-diff-scroll {
  width: 100%; min-width: 0; max-width: 100%; max-height: min(50vh, 32rem);
  overflow: auto; border: 1px solid var(--kc-border);
  border-radius: var(--kc-radius-sm); background: var(--kc-surface);
}
.kc-diff-scroll:focus-visible, .kc-diff-raw:focus-visible {
  outline: 2px solid var(--kc-primary); outline-offset: 2px;
}
.kc-diff-field {
  width: max-content; min-width: 100%; margin: 0; border-collapse: collapse;
  font-family: "Roboto Mono", monospace; font-size: 12px; line-height: 20px;
}
.kc-diff-heading {
  caption-side: top; padding: 0.4rem 0.55rem;
  background: var(--kc-surface-alt); color: var(--kc-text-muted);
  font-family: "Roboto", sans-serif; text-align: left; white-space: nowrap;
}
.kc-diff-heading > span + span { margin-left: 0.75rem; }
.kc-diff-label { font-weight: 700; color: var(--kc-text); }
.kc-diff-field th {
  padding: 0.1rem 0.5rem; color: var(--kc-text-muted);
  font-size: 10px; font-weight: 500; text-align: left;
}
.kc-diff-field td { padding: 2px 0.5rem; vertical-align: top; }
.kc-diff-number { width: 3.5rem; min-width: 3.5rem; text-align: right; color: var(--kc-text-muted); }
.kc-diff-sign { width: 3.5rem; min-width: 3.5rem; text-align: center; }
.kc-diff-text { white-space: pre; }
.kc-diff-added { background: #e6f4ea; }
.kc-diff-removed { background: #fce8e6; }
.kc-diff-unchanged { background: var(--kc-surface); }
.kc-diff-omitted, .kc-diff-empty { background: var(--kc-surface-alt); color: var(--kc-text-muted); }
.kc-diff-tally { margin-top: 0.4rem; font-size: 12px; }
.kc-diff-raw { min-width: 0; max-width: 100%; white-space: pre; }

/* -- release review ------------------------------------------------------- */
.kc-release-left { display: grid; gap: 1rem; }
.kc-release-summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem;
  margin-top: 0.8rem;
}
.kc-release-status {
  display: inline-flex; align-items: center; min-height: 1.5rem;
  padding: 0.12rem 0.55rem; border-radius: 999px;
  background: var(--kc-surface-alt); color: var(--kc-text-muted);
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.kc-release-status-draft { background: #e8f0fe; color: #1967d2; }
.kc-release-status-checking { background: #fef7e0; color: #946200; }
.kc-release-status-ready { background: #e6f4ea; color: #1e6b32; }
.kc-release-status-ready-with-bypass { background: #fef7e0; color: #946200; }
.kc-release-status-blocked { background: #fce8e6; color: #b3261e; }
.kc-release-meta { color: var(--kc-text-muted); font-size: 0.78rem; }
.kc-release-empty {
  padding: 1rem; border: 1px dashed var(--kc-border-strong);
  border-radius: var(--kc-radius-sm); color: var(--kc-text-muted);
  font-size: 0.85rem; text-align: center;
}
.kc-release-notice { margin: 0.85rem 0; padding: 0.65rem 0.75rem; font-size: 0.84rem; }
.kc-release-preview { position: sticky; top: 1.5rem; align-self: flex-start; min-width: 0; min-height: 28rem; }
.kc-release-preview:has(.kc-release-technical details[open]) { position: static; }
.kc-release-preview > .card { min-height: 28rem; }
.kc-release-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin: 1rem 0 0.75rem;
}
.kc-release-preview-title { margin: 0; font-size: 1.3rem; }
.kc-release-preview .kc-meta > div { display: contents; }
.kc-release-preview .kc-meta > div > span:first-child { padding-right: 0.25rem; }
.kc-release-technical {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--kc-border);
}
.kc-release-technical summary { cursor: pointer; color: var(--kc-text-muted); font-size: 0.82rem; font-weight: 500; }

@media (max-width: 991.98px) {
  .kc-release-preview { position: static; min-height: 0; }
  .kc-release-preview > .card { min-height: 0; }
}

/* -- inline catalog notes ------------------------------------------------ */
.catalog-notes-host { position: relative; }
.catalog-notes-host.is-editable td[data-dash-column="billing_notes"] { cursor: text; }
.catalog-notes-host.is-editable td[data-dash-column="billing_notes"]:hover {
  background-color: var(--kc-primary-tint);
  box-shadow: inset 0 0 0 1px var(--kc-primary);
}
.catalog-notes-cell-editing > .dash-cell-value { visibility: hidden; }
#catalog-notes-editor {
  position: absolute;
  z-index: 5;
  box-sizing: border-box;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--kc-primary);
  background: var(--kc-surface);
  color: var(--kc-text);
  visibility: hidden;
}
#catalog-notes-editor.is-positioned { visibility: visible; }
#catalog-notes-title {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
#catalog-notes-editor p { margin-bottom: 0.5rem; font-size: 0.75rem; }
#catalog-notes-text {
  box-sizing: border-box;
  width: 100%;
  min-height: 9rem;
  max-height: 60vh;
  resize: vertical;
  font-size: 0.8rem;
  line-height: 1.45;
}
#catalog-notes-editor .kc-actions { margin-top: 0.5rem; }
#catalog-notes-editor .alert { margin: 0.5rem 0 0; font-size: 0.8rem; }
