/* ==========================================================================
   FARF31.HTML

   The shape of SimpleFunctions.html, rtm.html and facsimile.html: a
   settings panel on the left, a drag handle, and a work area of tabs.
   Colours are the tokens in kvot.css, so the page follows the theme toggle.
   Class prefix: f31-.
   ========================================================================== */

.f31 {
  display: grid;
  grid-template-columns: var(--f31-side-width, 340px) 8px minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  font-family: verdana, sans-serif;
  font-size: 13px;
}

/* ---- the settings column ------------------------------------------------ */
.f31-side {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid var(--border-color);
  background: var(--bg-surface);
}
.f31-side-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 14px 10px; }
.f31-side-foot {
  flex: 0 0 auto;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.f31-resize {
  cursor: col-resize;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: transparent;
  position: relative;
  z-index: 1;
}
.f31-resize::after { content: ''; width: 3px; border-radius: 2px; transition: background 0.15s; }
.f31-resize:hover::after, .f31-resize.active::after { background: var(--color-kvot-accent); }

/* ---- a folding section -------------------------------------------------- */
.f31-sec { margin: 0 0 4px; }
.f31-sec > summary {
  margin: 10px 0 6px;
  padding: 0 0 4px 16px;
  border-bottom: 1px solid var(--border-color);
  font: 700 0.95rem RawengulkSans, sans-serif;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  position: relative;
}
.f31-sec > summary::-webkit-details-marker { display: none; }
.f31-sec > summary::before {
  content: '▸';
  position: absolute;
  left: 0;
  transition: transform 0.15s;
  color: var(--text-muted);
}
.f31-sec[open] > summary::before { transform: rotate(90deg); }
.f31-sec > summary .f31-count {
  float: right;
  font: 11px verdana, sans-serif;
  color: var(--text-muted);
}
.f31-about { margin: 0 0 8px; font-size: 11px; line-height: 1.5; color: var(--text-muted); }

/* ---- a labelled control ------------------------------------------------- */
.f31-row { display: block; margin: 0 0 8px; }
.f31-row[hidden] { display: none; }
.f31-row label { display: block; margin: 0 0 2px; color: var(--text-primary); }
.f31-row .f31-name, .f31-check .f31-name {
  display: block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.f31-row input, .f31-row select, .f31-row textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 3px 5px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  font-size: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.f31-row textarea { min-height: 80px; resize: vertical; }
.f31-row input.changed, .f31-row select.changed { border-color: var(--color-kvot-bright); }
.f31-row input:invalid { border-color: var(--color-kvot-accent); }
.f31-unit { color: var(--text-muted); font-size: 11px; margin-left: 4px; }
.f31-check { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 6px; cursor: pointer; line-height: 1.35; }
.f31-check[hidden] { display: none; }
.f31-check input { margin-top: 2px; }
.f31-check.changed > span { text-decoration: underline; text-decoration-color: var(--color-kvot-bright); text-underline-offset: 3px; }
.f31-desc { display: block; font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.f31-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.f31-muted { color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.f31-muted[hidden] { display: none; }
.f31-warn { color: var(--text-primary); font-size: 11px; line-height: 1.5; border-left: 3px solid var(--color-kvot-bright); padding-left: 6px; margin: 4px 0; }

/* ---- the hydro file list ------------------------------------------------ */
.f31-drop {
  border: 1px dashed var(--input-border);
  border-radius: 6px;
  padding: 8px;
  margin: 0 0 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
  transition: border-color 0.15s, background 0.15s;
}
.f31-drop.over { border-color: var(--color-kvot-accent); background: var(--bg-secondary); color: var(--text-primary); }
.f31-files { list-style: none; margin: 0 0 8px; padding: 0; }
.f31-files li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  padding: 5px 6px;
  margin: 0 0 4px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  font-size: 11px;
}
.f31-files .f31-file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f31-files .f31-file-meta { grid-column: 1 / -1; color: var(--text-muted); }
.f31-files .f31-file-warn { grid-column: 1 / -1; color: var(--text-primary); border-left: 3px solid var(--color-kvot-bright); padding-left: 6px; }
.f31-files button { padding: 0 6px; border: 0; background: none; color: var(--text-muted); font-size: 14px; cursor: pointer; line-height: 1; }
.f31-files button:hover { color: var(--color-kvot-accent); }

/* ---- buttons ------------------------------------------------------------ */
.f31-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.f31-btn {
  padding: 5px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent-fill);
  color: #fff;
  font: 600 12px verdana, sans-serif;
  cursor: pointer;
}
.f31-btn.secondary { background: var(--bg-primary); color: var(--text-primary); border-color: var(--border-color); }
.f31-btn.small { padding: 3px 8px; font-size: 11px; font-weight: 400; }
.f31-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.f31-btn:focus-visible { outline: 2px solid var(--color-kvot-bright); outline-offset: 1px; }

/* The status well under the buttons: fixed height, scrolls, so the buttons
   above it do not move when the message changes length. */
.f31-status {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  height: 4.35em;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
.f31-status.ok { border-color: var(--accent-success); }
.f31-status.error { border-color: var(--color-kvot-accent); color: var(--text-primary); }
.f31-status.warn { border-color: var(--color-kvot-bright); color: var(--text-primary); }

/* ---- the work area ------------------------------------------------------ */
.f31-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  margin-left: -8px;
  padding-left: 8px;
}
.f31-tabs {
  display: flex;
  gap: 2px;
  margin-left: -8px;
  padding: 6px 10px 0 18px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  flex: 0 0 auto;
  overflow-x: auto;
}
.f31-tabs button {
  padding: 6px 12px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--text-secondary);
  font: 12px verdana, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.f31-tabs button:hover { color: var(--text-primary); }
.f31-tabs button.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-color);
  font-weight: 600;
  margin-bottom: -1px;
}
.f31-pane {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px 14px;
  background: var(--bg-primary);
}
.f31-pane[hidden] { display: none; }

.f31-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 8px;
  font-size: 12px;
}
.f31-toolbar label { display: flex; gap: 5px; align-items: center; }
.f31-toolbar label[hidden] { display: none; }
.f31-toolbar input[type="text"], .f31-toolbar select {
  padding: 2px 5px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  font-size: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.f31-toolbar .f31-spacer { flex: 1 1 auto; }

/* ---- charts and the empty state ----------------------------------------- */
.plot { width: 100%; height: max(460px, calc(100vh - 330px)); }
.plot[hidden] { display: none; }
.f31-empty { margin: 0; padding: 24px 12px 40px; color: var(--text-muted); font-size: 12px; }
.f31-empty[hidden] { display: none; }

/* ---- tables ------------------------------------------------------------- */
.f31-table-wrap { overflow: auto; max-width: 100%; }
.f31-table {
  border-collapse: collapse;
  font-size: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  white-space: nowrap;
}
.f31-table th, .f31-table td {
  padding: 3px 10px 3px 6px;
  text-align: right;
  border-bottom: 1px solid var(--table-border);
}
.f31-table th {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  user-select: none;
  z-index: 1;
}
.f31-table th.sorted::after { content: ' ▾'; color: var(--color-kvot-accent); }
.f31-table th.sorted.asc::after { content: ' ▴'; }
.f31-table th:first-child, .f31-table td:first-child { text-align: left; }
.f31-table td.text, .f31-table th.text { text-align: left; }
.f31-table tbody tr:nth-child(even) { background: var(--table-stripe); }
.f31-table tbody tr:hover { background: var(--bg-surface); }
.f31-table td.flag { color: var(--color-kvot-accent); }
.f31-table td.dim { color: var(--text-muted); }

/* The key-output table on the summary tab. */
.f31-key { border-collapse: collapse; font-size: 12px; margin: 0 0 14px; }
.f31-key th, .f31-key td { padding: 4px 14px 4px 0; border-bottom: 1px solid var(--table-border); vertical-align: top; }
.f31-key th { text-align: left; font-weight: 600; color: var(--text-primary); }
.f31-key td { text-align: right; font-family: ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.f31-key td.text { text-align: left; font-family: verdana, sans-serif; }
.f31-key thead th { text-align: right; color: var(--text-secondary); font-weight: 400; font-size: 11px; }
.f31-key thead th:first-child { text-align: left; }
.f31-key tr.total td, .f31-key tr.total th { font-weight: 700; }
.f31-key .f31-desc { font-weight: 400; max-width: 34em; white-space: normal; }
.f31-summary h3 { margin: 14px 0 6px; font: 700 1rem RawengulkSans, sans-serif; color: var(--text-primary); }
.f31-summary h3:first-child { margin-top: 2px; }
.f31-summary .f31-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 14px; }
.f31-card {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface);
}
.f31-card .f31-card-value { font: 700 1.35rem ui-monospace, Menlo, Consolas, monospace; color: var(--text-primary); }
.f31-card .f31-card-label { font-size: 11px; color: var(--text-secondary); line-height: 1.4; margin-top: 2px; }
.f31-settings-list { font-size: 12px; line-height: 1.6; columns: 2; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.f31-settings-list li { break-inside: avoid; }
.f31-settings-list code { font-size: 11px; color: var(--text-secondary); }
@media (max-width: 900px) { .f31-settings-list { columns: 1; } }

/* ---- help --------------------------------------------------------------- */
.f31-help { max-width: 64rem; line-height: 1.65; }
.f31-help h2 { margin: 4px 0 10px; font: 700 1.3rem RawengulkSans, sans-serif; color: var(--text-primary); }
.f31-help h3 { margin: 22px 0 6px; font: 700 1.05rem RawengulkSans, sans-serif; color: var(--text-primary); }
.f31-help h4 { margin: 16px 0 4px; font: 700 0.95rem verdana, sans-serif; color: var(--color-kvot-accent); }
.f31-help p { margin: 0 0 10px; }
.f31-help pre {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
}
.f31-help code { padding: 1px 4px; border-radius: 3px; background: var(--code-bg); font-size: 0.92em; }
.f31-help pre code { padding: 0; background: none; }
.f31-help .f31-eq {
  margin: 4px 0 12px 1.5em;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.05em;
  line-height: 1.8;
}
.f31-help .f31-eq i { font-style: italic; }
.f31-help table.f31-ref { border-collapse: collapse; margin: 4px 0 14px; font-size: 12px; }
.f31-help table.f31-ref td, .f31-help table.f31-ref th {
  padding: 4px 16px 4px 0;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle, rgba(128, 128, 128, 0.25));
}
.f31-help table.f31-ref th { font-weight: 600; }
.f31-help table.f31-ref code { white-space: nowrap; }

/* ---- narrow screens ----------------------------------------------------- */
@media (max-width: 760px) {
  .f31 { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: auto; }
  .f31-side { height: auto; max-height: 50vh; border-right: 0; border-bottom: 1px solid var(--border-color); }
  .f31-resize { display: none; }
  .f31-main { margin-left: 0; padding-left: 0; }
  .f31-tabs { margin-left: 0; padding-left: 10px; }
  .plot { height: 360px; }
}

/* ==========================================================================
   What this page adds to the shared layout
   ========================================================================== */

/* A section heading with a count and an (i) on the right. */
.f31-sec > summary { display: flex; align-items: center; gap: 6px; }
.f31-sec > summary .f31-sec-title { flex: 1 1 auto; }
.f31-sec > summary .f31-count { float: none; order: 2; }
.f31-sec > summary .f31-info-slot { order: 3; }
.f31-label-line { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; }
.f31-label-line label { flex: 1 1 auto; margin: 0; }
.f31-label-line .f31-label-text { flex: 1 1 auto; color: var(--text-primary); }
#f31KaNote { margin: 0 0 4px; }
.f31-check-line { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 6px; }
.f31-check-line .f31-check { flex: 1 1 auto; margin: 0; }
.f31-check.inline { display: inline-flex; margin: 0; align-items: center; }
.f31-check.inline input { margin-top: 0; }
.f31-info-slot { display: inline-flex; flex: none; }
.f31-info-slot:empty { display: none; }

/* ---- the (i) and its panel (the Kompartment pattern) ------------------- */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 17px;
  height: 17px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  vertical-align: middle;
}
.info-btn:hover { color: var(--color-kvot-accent); background: color-mix(in oklab, var(--color-kvot-accent) 12%, transparent); }
.info-btn.is-open { color: #fff; background: var(--accent-fill); }
.info-btn:focus-visible { outline: 2px solid var(--color-kvot-bright); outline-offset: 1px; }
.info-btn svg { display: block; }
.info-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 24px));
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 28px var(--shadow-color);
  animation: f31-info-in 140ms ease-out;
  font-family: verdana, sans-serif;
}
@keyframes f31-info-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .info-panel { animation: none; } }
.info-panel-head { display: flex; align-items: flex-start; gap: 8px; padding: 12px 10px 10px 16px; border-bottom: 1px solid var(--border-color); }
.info-panel-heading { flex: 1; min-width: 0; }
.info-panel-kicker { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.info-panel-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text-primary); }
.info-panel-close { flex: none; width: 28px; height: 28px; padding: 0; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--text-secondary); cursor: pointer; }
.info-panel-close:hover { color: var(--text-primary); }
.info-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 20px; font-size: 12.5px; line-height: 1.55; color: var(--text-secondary); outline: none; }
.info-panel-body p { margin: 0 0 10px; }
.info-panel-body .info-lead { color: var(--text-primary); }
.info-panel-body h3 { margin: 16px 0 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.info-panel-body ul { margin: 0 0 10px; padding-left: 18px; }
.info-panel-body li { margin-bottom: 5px; }
.info-panel-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; padding: 0 3px; border-radius: 3px; background: var(--code-bg); color: var(--text-primary); }
.info-panel-body b { color: var(--text-primary); font-weight: 600; }
.info-facts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 3px 12px; margin: 0 0 10px; }
.info-facts dt { color: var(--text-muted); }
.info-facts dd { margin: 0; color: var(--text-primary); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; overflow-wrap: anywhere; }
.info-choices dt { margin-top: 6px; color: var(--text-primary); font-weight: 600; }
.info-choices dt.is-current::after { content: ' · chosen'; font-weight: 400; color: var(--color-kvot-accent); }
.info-choices dd { margin: 0 0 4px 0; }
.info-panel-more-line { margin: 16px 0 0; padding-top: 10px; border-top: 1px solid var(--border-color); }
.info-panel-more { padding: 0; border: 0; background: none; font: inherit; font-size: 12px; text-align: left; color: var(--link-color); cursor: pointer; }
.info-panel-more:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---- the run's progress ------------------------------------------------- */
.f31-progress { height: 4px; margin: 6px 0 0; border-radius: 2px; background: var(--border-color); overflow: hidden; }
.f31-progress[hidden] { display: none; }
.f31-progress-bar { height: 100%; width: 0; background: var(--color-kvot-accent); transition: width 0.1s linear; }


/* ---- summary ------------------------------------------------------------ */
.f31-summary .f31-table td.name, .f31-summary .f31-table th.name { font-family: verdana, sans-serif; font-weight: 600; text-align: left; }
.f31-legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.f31-warnings { margin: 0 0 12px; padding: 0; list-style: none; }
.f31-warnings li { font-size: 12px; line-height: 1.5; border-left: 3px solid var(--color-kvot-bright); padding: 2px 0 2px 8px; margin: 0 0 4px; }
.f31-warnings li.ok { border-left-color: var(--accent-success); }
.f31-summary .f31-table tr.f31-bad td { color: var(--color-kvot-accent); font-weight: 600; }
.f31-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 22px; margin: 0 0 12px; max-width: 80rem; font-size: 12px; }
.f31-kv > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid var(--table-border); }
.f31-kv b { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.f31-kv span { font-family: ui-monospace, Menlo, Consolas, monospace; text-align: right; color: var(--text-secondary); }
.plot.short { height: 300px; }

/* ---- the input tab: nuclides and release series ------------------------- */
.f31-input { max-width: 80rem; }
.f31-input h3 { margin: 4px 0 8px; font: 700 1rem RawengulkSans, sans-serif; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.f31-input h3 .f31-grow { flex: 1 1 auto; }
.f31-nuc-table input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  padding: 2px 4px;
  border: 1px solid var(--input-border);
  border-radius: 3px;
  background: var(--input-bg);
  font: 12px ui-monospace, Menlo, Consolas, monospace;
  color: var(--text-primary);
}
.f31-nuc-table input.name { width: 6.5em; }
.f31-nuc-table input.num { width: 7.5em; text-align: right; }
.f31-nuc-table td, .f31-nuc-table th { vertical-align: middle; }
.f31-nuc-table td.center, .f31-nuc-table th.center { text-align: center; }
.f31-nuc-table th { cursor: default; }
.f31-nuc-table td.key { color: var(--text-muted); font-size: 11px; text-align: left; }
.f31-nuc-table td.chain { color: var(--text-muted); font-family: verdana, sans-serif; font-size: 11px; text-align: left; white-space: normal; min-width: 10em; }
.f31-nuc-table button.icon { padding: 0 5px; border: 0; background: none; color: var(--text-muted); font-size: 13px; cursor: pointer; line-height: 1; }
.f31-nuc-table button.icon:hover { color: var(--color-kvot-accent); }
.f31-nuc-table button.icon:disabled { opacity: 0.3; cursor: default; }
.f31-nuc-table tr.bad input.name { border-color: var(--color-kvot-accent); }
.f31-series { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 8px; }
@media (max-width: 1100px) { .f31-series { grid-template-columns: 1fr; } }
.f31-series textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 220px;
  padding: 6px 8px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text-primary);
  font: 12px ui-monospace, Menlo, Consolas, monospace;
  resize: vertical;
}
.f31-series textarea.bad { border-color: var(--color-kvot-accent); }
.f31-shapes { margin: 8px 0 0; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-surface); }
.f31-shapes .f31-inline3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.f31-shapes label { display: block; font-size: 11px; color: var(--text-secondary); margin: 0 0 2px; }
.f31-shapes input, .f31-shapes select {
  box-sizing: border-box;
  width: 100%;
  padding: 2px 4px;
  border: 1px solid var(--input-border);
  border-radius: 3px;
  font: 12px ui-monospace, Menlo, Consolas, monospace;
}
.f31-srcpick { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.f31-srcpick button { padding: 3px 10px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-primary); color: var(--text-secondary); font: 12px verdana, sans-serif; cursor: pointer; }
.f31-srcpick button.active { background: var(--accent-fill); border-color: transparent; color: #fff; }
.f31-chip { display: inline-block; padding: 0 6px; margin: 0 4px 3px 0; border: 1px solid var(--border-color); border-radius: 10px; font-size: 11px; color: var(--text-secondary); }
.f31-chip.src { border-color: var(--color-kvot-accent); color: var(--text-primary); }

/* ---- the response picker ------------------------------------------------ */
.f31-pairs { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0 0 6px; font-size: 11px; }
.f31-pairs label { display: inline-flex; gap: 4px; align-items: center; color: var(--text-secondary); }
.f31-more { margin: 6px 0; }

/* ---- help --------------------------------------------------------------- */
.f31-help ul { margin: 0 0 10px; padding-left: 20px; }
.f31-help li { margin: 0 0 6px; }
.f31-help table.f31-ref td:first-child { white-space: nowrap; font-weight: 600; }
.f31-build { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 11px; }
