:root {
  --bg: #f5f7fb;
  --text: #19263b;
  --muted: #6c788c;
  --muted-2: #72819a;
  --muted-3: #8793a5;
  --border: #e0e6ef;
  --border-2: #dce3ed;
  --primary: #165cfa;
  --primary-hover: #084ce4;
  --primary-soft: #eef4ff;
  --dropzone-bg: #f7faff;
  --dropzone-border: #a6bfe6;
  --badge-bg: #e7edf7;
  --success-bg: #e7f4ec;
  --success-text: #2c6842;
  --danger-bg: #fff0ef;
  --danger-text: #aa3e35;
  --radius-card: 10px;
  --radius-btn: 7px;
  --radius-input: 6px;
  --shadow-primary: 0 2px 3px #165cfa15;
  --max: 1280px;
  --font: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font: 16px/1.5 var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px 28px;
  padding: 12px max(32px, calc(50vw - 640px));
}

.brand {
  color: var(--text);
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-card);
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
  flex-shrink: 0;
}

.brand-light {
  color: var(--muted);
  font-weight: 400;
}

.header-note {
  color: var(--muted-3);
  font-size: 13px;
  margin-right: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-user {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.nav-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  flex: 1;
  min-width: 0;
}

.nav-main > a,
.nav-dropdown-toggle {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-main > a:hover,
.nav-main > a.is-active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.is-active,
.nav-dropdown.is-active > .nav-dropdown-toggle {
  color: var(--text);
  text-decoration: none;
}

.nav-main > a.is-active,
.nav-dropdown-toggle.is-active {
  border-bottom-color: var(--primary);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 6px;
  z-index: 40;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-menu a {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}

.btn,
.primary,
.secondary {
  white-space: nowrap;
  border: 0;
  border-radius: var(--radius-btn);
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  cursor: pointer;
  font-family: inherit;
}

.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: var(--shadow-primary);
}

.primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
  color: #fff;
}

.secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
}

.secondary:hover {
  background: var(--primary-soft);
  text-decoration: none;
}

.danger {
  color: #fff;
  background: #c23b32;
  border: 0;
  border-radius: var(--radius-btn);
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.danger:hover {
  background: #a8322a;
  text-decoration: none;
  color: #fff;
}

.title-actions,
.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.check-inline {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.check-inline input {
  width: auto;
}

.muted-hint {
  font-size: 12px;
  color: var(--muted);
}

.comment-cell {
  max-width: 220px;
  font-size: 13px;
  color: var(--muted);
}

.row-actions {
  white-space: nowrap;
  display: flex;
  gap: 10px;
  align-items: center;
}

.empty-cell {
  padding: 24px;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.copy-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: #f7f9fc;
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font: inherit;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-chip:hover {
  border-color: var(--primary);
  color: var(--text);
}

.copy-chip.is-copied {
  border-color: var(--success-text);
  color: var(--success-text);
  background: var(--success-bg);
}

.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;
}

.filters-panel {
  padding: 0;
  margin-bottom: 28px;
}

.filters-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.filters-summary::-webkit-details-marker {
  display: none;
}

.filters-inner {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  margin: 0;
}

.filters-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.filters-compare {
  grid-template-columns: 1fr 1fr auto;
}

.session-picker-q {
  margin-bottom: 8px;
}

.file-drop.is-dragover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.collapsible-card {
  padding: 18px 22px;
  margin-bottom: 12px;
}

.collapsible-card > summary {
  list-style: none;
}

.collapsible-card > summary::-webkit-details-marker {
  display: none;
}

.login-help {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.artifact-check {
  width: auto;
}

.readings-panel {
  margin-bottom: 28px;
}

.readings-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 16px;
  align-items: start;
}

.readings-list {
  padding: 10px;
  max-height: 720px;
  overflow: auto;
}

.readings-family + .readings-family {
  margin-top: 12px;
}

.readings-family-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px;
}

.readings-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
}

.readings-item:hover {
  background: var(--primary-soft);
  text-decoration: none;
}

.readings-item.is-active {
  background: var(--primary-soft);
  border-color: #c5d8ff;
}

.readings-item-meta {
  font-size: 12px;
  color: var(--muted);
}

.readings-f150 {
  font-size: 12px;
  color: #3c71be;
  letter-spacing: 0.2px;
}

.readings-f150-hero {
  margin: -6px 0 16px;
  font-size: 15px;
  color: #3c71be;
  font-weight: 600;
}

.readings-detail {
  margin: 0;
  min-height: 280px;
}

.readings-subtitle {
  margin: 0 0 10px;
  font-size: 14px;
}

.finding-form {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 960px) {
  .readings-layout {
    grid-template-columns: 1fr;
  }
  .readings-list {
    max-height: 280px;
  }
}

main.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px 32px 0;
}

.eyebrow {
  letter-spacing: 1.5px;
  color: #576a88;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.title-row h1 {
  letter-spacing: -1.1px;
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.18;
}

.intro {
  color: var(--muted);
  margin: 14px 0 0;
}

.stats {
  border-left: 1px solid #dde4ee;
  gap: 40px;
  padding-left: 36px;
  display: flex;
}

.stats div {
  flex-direction: column;
  gap: 6px;
  min-width: 80px;
  display: flex;
}

.stats strong {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.stats span {
  color: var(--muted-2);
  font-size: 13px;
}

.stats .is-missing strong,
.catalog-missing,
.catalog-missing strong {
  color: #B91C1C;
}

.card,
.filters,
.empty {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.filters {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 18px;
  padding: 24px;
  margin-bottom: 28px;
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

input,
select,
textarea {
  font: inherit;
  font-weight: 600;
  color: #263a54;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-input);
  padding: 12px 13px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #d3e5ff;
  border-color: var(--primary);
}

.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.list-toolbar h2 {
  letter-spacing: -0.3px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.count {
  color: #586a84;
  vertical-align: middle;
  background: var(--badge-bg);
  border-radius: 5px;
  margin-left: 7px;
  padding: 3px 8px;
  font-size: 12px;
  display: inline-block;
}

.empty {
  text-align: center;
  flex-direction: column;
  align-items: center;
  padding: 55px 24px;
  display: flex;
}

.empty h3 {
  margin: 16px 0 8px;
  font-size: 18px;
}

.empty p {
  color: var(--muted);
  max-width: 420px;
  margin: 0 0 20px;
}

.flash {
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.flash-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.flash-error {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.flash-info {
  background: var(--primary-soft);
  color: #3c71be;
}

.flash-warning {
  background: #fff6e5;
  color: #8a5b00;
  border: 1px solid #f0d28a;
}

.site-footer {
  color: var(--muted-3);
  border-top: 1px solid #dee5ef;
  justify-content: space-between;
  margin-top: 38px;
  padding: 25px 0;
  font-size: 12px;
  display: flex;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.file-drop {
  background: var(--dropzone-bg);
  border: 1px dashed var(--dropzone-border);
  border-radius: 8px;
  color: #4476bb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 23px;
  text-align: center;
  cursor: pointer;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  background: #fafbfd;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  background: var(--badge-bg);
  color: #586a84;
}

.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: #fff6e5; color: #8a5b00; }
.badge-error, .badge-critical { background: var(--danger-bg); color: var(--danger-text); }
.badge-info { background: var(--primary-soft); color: #3c71be; }

.form-stack .field + .field { margin-top: 14px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 960px) {
  .site-header {
    height: auto;
    flex-wrap: wrap;
    padding: 16px 18px;
    gap: 12px;
  }

  .header-note,
  .nav-main {
    width: 100%;
    margin-right: 0;
    flex-wrap: wrap;
    order: 3;
  }

  .header-actions {
    margin-left: auto;
  }

  main.page {
    padding: 29px 18px 0;
  }

  .title-row {
    flex-direction: column;
  }

  .stats {
    border-left: 0;
    padding-left: 0;
    gap: 20px;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 16px;
  }

  .title-row h1 {
    font-size: 29px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 15px;
  }
}

/* ---------- Stage 2+ components ---------- */

.form-card {
  padding: 24px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.kv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px 28px;
  margin: 0;
}

.kv dt {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.kv dd {
  margin: 0;
  font-size: 14px;
  word-break: break-word;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 10px;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 14px;
  cursor: pointer;
}

.check-row input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.inline-upload {
  display: flex;
  gap: 12px;
  align-items: center;
}

.inline-upload input[type="file"] {
  max-width: 420px;
}

.file-list {
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}

.pager {
  display: flex;
  gap: 6px;
  margin: 20px 0 0;
  flex-wrap: wrap;
}

.pager-item {
  min-width: 36px;
  padding: 7px 10px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

a.pager-item:hover {
  background: var(--primary-soft);
  text-decoration: none;
}

.pager-item.is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pager-item.is-disabled {
  color: var(--muted-3);
}

.sparkline {
  display: block;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  background: #eef2f8;
  padding: 1px 5px;
  border-radius: 4px;
}

.filters .field + .field {
  margin-top: 0;
}

.filters {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
  .filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .filters { grid-template-columns: 1fr; }
  .inline-upload { flex-direction: column; align-items: stretch; }
}

/* Artifact color tags */
.color-chip {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.color-chip-red { background: #e5484d; }
.color-chip-orange { background: #f5a524; }
.color-chip-yellow { background: #f5d90a; }
.color-chip-green { background: #30a46c; }
.color-chip-blue { background: #3b82f6; }
.color-chip-purple { background: #8b5cf6; }
.color-chip-gray { background: #8b95a8; }

tr.artifact-color-red > td:first-child,
tr.artifact-color-orange > td:first-child,
tr.artifact-color-yellow > td:first-child,
tr.artifact-color-green > td:first-child,
tr.artifact-color-blue > td:first-child,
tr.artifact-color-purple > td:first-child,
tr.artifact-color-gray > td:first-child {
  box-shadow: inset 4px 0 0 0 var(--artifact-mark, transparent);
}
tr.artifact-color-red { --artifact-mark: #e5484d; background: rgba(229, 72, 77, 0.06); }
tr.artifact-color-orange { --artifact-mark: #f5a524; background: rgba(245, 165, 36, 0.08); }
tr.artifact-color-yellow { --artifact-mark: #e5c200; background: rgba(245, 217, 10, 0.12); }
tr.artifact-color-green { --artifact-mark: #30a46c; background: rgba(48, 164, 108, 0.07); }
tr.artifact-color-blue { --artifact-mark: #3b82f6; background: rgba(59, 130, 246, 0.07); }
tr.artifact-color-purple { --artifact-mark: #8b5cf6; background: rgba(139, 92, 246, 0.08); }
tr.artifact-color-gray { --artifact-mark: #8b95a8; background: rgba(139, 149, 168, 0.1); }

tr.artifact-edit-row td {
  padding-top: 0;
  border-top: 0;
  background: inherit;
}
tr.artifact-edit-row + tr { border-top: 1px solid var(--border); }

.inline-meta-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 0 10px;
}
.inline-meta-form input[type="text"] {
  flex: 1 1 220px;
  min-width: 160px;
  margin: 0;
}
.inline-meta-form select {
  width: auto;
  min-width: 140px;
  margin: 0;
}
.inline-meta-form button {
  margin: 0;
}

.file-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.file-meta-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(180px, 2fr) 160px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #f7f9fc;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
}
.file-meta-name {
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
}
.file-meta-row input,
.file-meta-row select {
  margin: 0;
}

@media (max-width: 720px) {
  .file-meta-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Live Data catalog ---------- */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.catalog-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.catalog-card:hover {
  border-color: #b9c7db;
  box-shadow: 0 8px 24px rgba(30, 50, 80, .06);
}

.catalog-card.is-inactive {
  opacity: .62;
}

.catalog-card-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.catalog-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.catalog-card .mono {
  color: var(--muted);
  margin: 0;
}

.catalog-meta {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.catalog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.catalog-stats strong {
  color: var(--text);
  margin-right: 4px;
}

.subtabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  overflow-x: auto;
}

.subtabs a {
  padding: 12px 16px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.subtabs a:hover {
  color: var(--text);
}

.subtabs a.is-active {
  color: var(--text);
  border-bottom-color: var(--primary);
}

.table-scroll {
  padding: 0;
  overflow: auto;
}

.catalog-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.param-name {
  font-weight: 600;
}

.param-en {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.muted {
  color: var(--muted);
}

.source-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.source-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.catalog-table tr.row-empty td {
  background: #FECACA;
  color: #B91C1C;
}

.catalog-table tr.row-empty .param-en,
.catalog-table tr.row-empty .muted {
  color: #B91C1C;
}

.empty-mark {
  color: #B91C1C;
  font-weight: 600;
}

.stat-empty strong {
  color: #B91C1C;
}

.row-actions {
  white-space: nowrap;
}

.row-actions a {
  font-weight: 600;
  font-size: 13px;
}

.sources-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.source-editor-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: #fafbfd;
}

.source-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.notes-block {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  background: #fafbfd;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
