/* In Vivo Study Studio — design canvas, arms, matrix, ARRIVE strip. */

.invivo-study-studio-root .ivs-hero { margin: 0 0 18px; }
.invivo-study-studio-root .ivs-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--st-accent);
}
.invivo-study-studio-root .ivs-hero-title { margin: 4px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.invivo-study-studio-root .ivs-muted { color: var(--st-ink-soft); font-size: 12.5px; line-height: 1.45; }
.invivo-study-studio-root .ivs-notice {
  margin-top: 10px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--st-warn) 40%, var(--st-line));
  background: color-mix(in srgb, var(--st-warn) 10%, var(--st-panel)); color: var(--st-ink); border-radius: 6px; font-size: 12px;
}
.invivo-study-studio-root .ivs-subhead {
  margin: 16px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--st-ink-soft);
}
.invivo-study-studio-root .ivs-type-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-bottom: 8px;
}
.invivo-study-studio-root .ivs-type-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  padding: 12px; border: 1px solid var(--st-line); border-radius: 10px; background: var(--st-panel); color: var(--st-ink);
  border-top: 3px solid var(--st-accent); font: inherit;
}
.invivo-study-studio-root .ivs-type-card:hover { background: var(--st-line-soft); }
.invivo-study-studio-root .ivs-type-card span { color: var(--st-ink-soft); font-size: 12px; line-height: 1.4; }
.invivo-study-studio-root .ivs-type-card em { font-style: normal; font-size: 11px; color: var(--st-accent); }

.invivo-study-studio-root .ivs-arms-wrap { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.invivo-study-studio-root .ivs-arms {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px;
}
.invivo-study-studio-root .ivs-arm {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  padding: 10px 12px; border: 1px solid var(--st-line); border-radius: 8px; background: var(--st-panel); color: var(--st-ink);
  font: inherit;
}
.invivo-study-studio-root .ivs-arm.is-control { border-left: 3px solid var(--st-ok); }
.invivo-study-studio-root .ivs-arm.is-selected { outline: 2px solid var(--st-accent); }
.invivo-study-studio-root .ivs-arm-code { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--st-ink-soft); }
.invivo-study-studio-root .ivs-arm-dose, .invivo-study-studio-root .ivs-arm-n { font-size: 12px; color: var(--st-ink-soft); }
.invivo-study-studio-root .ivs-arm-bar { height: 4px; background: var(--st-line-soft); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.invivo-study-studio-root .ivs-arm-bar-fill { height: 100%; background: var(--st-accent); }

.invivo-study-studio-root .ivs-matrix-scroll { overflow: auto; max-width: 100%; }
.invivo-study-studio-root .ivs-matrix { border-collapse: collapse; min-width: 640px; width: 100%; }
.invivo-study-studio-root .ivs-matrix th, .invivo-study-studio-root .ivs-matrix td {
  border: 1px solid var(--st-line); padding: 6px; vertical-align: top; background: var(--st-panel);
}
.invivo-study-studio-root .ivs-matrix thead th { font-size: 11px; color: var(--st-ink-soft); text-align: center; }
.invivo-study-studio-root .ivs-matrix-arm { text-align: left; min-width: 120px; }
.invivo-study-studio-root .ivs-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.invivo-study-studio-root .ivs-chip {
  min-width: 28px; border: 1px solid var(--st-line); background: var(--st-bg); color: var(--st-ink-soft);
  border-radius: 4px; font-size: 10px; font-weight: 700; padding: 2px 5px; cursor: pointer;
}
.invivo-study-studio-root .ivs-chip.is-on { background: var(--st-accent); color: #fff; border-color: transparent; }
.invivo-study-studio-root .ivs-legend { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; font-size: 11px; color: var(--st-ink-soft); }

.invivo-study-studio-root .ivs-arrive-strip {
  display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin: 0 0 12px;
  border: 1px solid var(--st-line); border-radius: 8px; background: var(--st-panel);
}
.invivo-study-studio-root .ivs-score { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.invivo-study-studio-root .ivs-score strong { font-size: 22px; line-height: 1; }
.invivo-study-studio-root .ivs-score span { font-size: 10px; letter-spacing: .06em; }
.invivo-study-studio-root .ivs-score.ok { color: var(--st-ok); }
.invivo-study-studio-root .ivs-score.warn { color: var(--st-warn); }
.invivo-study-studio-root .ivs-score.bad { color: var(--st-bad); }
.invivo-study-studio-root .ivs-arrive-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.invivo-study-studio-root .ivs-findings { display: flex; flex-direction: column; gap: 8px; }
.invivo-study-studio-root .ivs-finding { padding: 8px 10px; border-radius: 6px; border: 1px solid var(--st-line); }
.invivo-study-studio-root .ivs-finding strong { display: block; }
.invivo-study-studio-root .ivs-finding.is-error { border-color: color-mix(in srgb, var(--st-bad) 45%, var(--st-line)); }
.invivo-study-studio-root .ivs-finding.is-warning { border-color: color-mix(in srgb, var(--st-warn) 45%, var(--st-line)); }
.invivo-study-studio-root .ivs-form-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 10px; }

.invivo-study-studio-root .ivs-consort { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.invivo-study-studio-root .ivs-consort-box {
  min-width: 88px; padding: 8px 10px; border: 1px solid var(--st-line); border-radius: 8px; background: var(--st-bg);
  display: flex; flex-direction: column;
}
.invivo-study-studio-root .ivs-consort-box strong { font-size: 18px; }
.invivo-study-studio-root .ivs-consort-box span { font-size: 11px; color: var(--st-ink-soft); }
.invivo-study-studio-root .ivs-consort-arrow { color: var(--st-ink-soft); }
.invivo-study-studio-root .ivs-inlife-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.invivo-study-studio-root .ivs-row-actions { white-space: nowrap; }
.invivo-study-studio-root .ivs-row-actions .st-btn { margin-right: 4px; }
.invivo-study-studio-root .ivs-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.invivo-study-studio-root .ivs-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; justify-items: center; }
.invivo-study-studio-root .ivs-arm.is-satellite {
  border-left: 3px solid var(--st-accent);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 7px,
      color-mix(in srgb, var(--st-accent) 9%, transparent) 7px,
      color-mix(in srgb, var(--st-accent) 9%, transparent) 14px
    ),
    var(--st-panel);
}
.invivo-study-studio-root .ivs-arm.is-control.is-satellite { border-left-style: dashed; }
.invivo-study-studio-root .ivs-banner {
  display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin: 0 0 12px;
  border: 1px solid color-mix(in srgb, var(--st-warn) 50%, var(--st-line));
  background: color-mix(in srgb, var(--st-warn) 12%, var(--st-panel)); border-radius: 8px;
}
.invivo-study-studio-root .ivs-banner strong { display: block; }
.invivo-study-studio-root .ivs-replace {
  display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 8px 0 12px;
}
.invivo-study-studio-root .ivs-consort-flow {
  display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; margin-bottom: 8px;
}
.invivo-study-studio-root .ivs-inspector-stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.invivo-study-studio-root .ivs-inspector-stack > * { min-width: 0; }
.invivo-study-studio-root .ivs-finding .st-btn { margin-top: 6px; }

/* ---- Function / concept search (toolbar top-right) ---- */
.invivo-study-studio-root {
  container-type: inline-size;
  container-name: ivs-app;
}
.invivo-study-studio-root .st-toolbar {
  overflow: visible;
  position: relative;
  z-index: 24;
  flex-wrap: nowrap;
  gap: 10px;
}
.invivo-study-studio-root .st-brand {
  flex: 0 1 auto;
  min-width: 72px;
}
.invivo-study-studio-root .st-tbtns {
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.invivo-study-studio-root .st-tbtns::-webkit-scrollbar { display: none; }
.invivo-study-studio-root .st-tbtn { flex: none; white-space: nowrap; }
.invivo-study-studio-root .ivs-fnsearch {
  position: relative;
  z-index: 30;
  flex: none;
  flex-shrink: 0;
  align-self: center;
  margin-left: 4px;
}
.invivo-study-studio-root .ivs-fnsearch-field {
  display: flex; align-items: center; gap: 6px;
  height: 22px; min-height: 22px; max-height: 22px;
  width: 178px; padding: 0 10px 0 8px;
  border-radius: 999px;
  background: #f4f7fb;
  border: 1px solid var(--st-line, rgba(20, 30, 50, 0.10));
  color: var(--st-ink, #1b2230);
  box-sizing: border-box;
  overflow: hidden;
  cursor: text;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, width .18s ease, color .14s ease;
}
.invivo-study-studio-root .ivs-fnsearch-field:hover {
  background: #eef3fb;
  border-color: color-mix(in srgb, var(--st-accent, #2f6bff) 35%, var(--st-line, rgba(20, 30, 50, 0.10)));
}
.invivo-study-studio-root .ivs-fnsearch.open .ivs-fnsearch-field,
.invivo-study-studio-root .ivs-fnsearch-field.on,
.invivo-study-studio-root .ivs-fnsearch-field:focus-within {
  background: #fff;
  border-color: var(--st-accent, #2f6bff);
  color: var(--st-ink, #1b2230);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--st-accent, #2f6bff) 28%, transparent),
    0 8px 22px rgba(16, 32, 72, .14);
}
.invivo-study-studio-root .ivs-fnsearch-ic {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--st-ink-soft, #5d6675); opacity: .92; flex: none;
}
.invivo-study-studio-root .ivs-fnsearch.open .ivs-fnsearch-ic,
.invivo-study-studio-root .ivs-fnsearch-field.on .ivs-fnsearch-ic,
.invivo-study-studio-root .ivs-fnsearch-field:focus-within .ivs-fnsearch-ic {
  color: var(--st-accent, #2f6bff); opacity: 1;
}
.invivo-study-studio-root .ivs-fnsearch-ic svg {
  width: 14px; height: 14px; display: block; overflow: visible; stroke-width: 2;
}
.invivo-study-studio-root .ivs-fnsearch-input {
  flex: 1; min-width: 0; min-height: 0; height: 20px; line-height: 20px;
  border: 0; background: transparent; color: inherit;
  font: inherit; font-size: 12px; font-weight: 500; outline: none;
  padding: 0; appearance: none; -webkit-appearance: none;
}
.invivo-study-studio-root .ivs-fnsearch-input::-webkit-search-decoration,
.invivo-study-studio-root .ivs-fnsearch-input::-webkit-search-cancel-button { display: none; }
.invivo-study-studio-root .ivs-fnsearch-input::placeholder {
  color: var(--st-ink-soft, #5d6675); font-weight: 500;
}

.invivo-study-studio-root .ivs-fnsearch-pop {
  --fn-pop-bg: #fff;
  --fn-pop-ink: var(--st-ink, #1b2230);
  --fn-pop-muted: var(--st-ink-soft, #5d6675);
  --fn-pop-line: var(--st-line, #d7dce6);
  --fn-pop-accent: var(--st-accent, #2f6bff);
  --fn-pop-shadow: 0 22px 56px rgba(16, 32, 72, .28), 0 2px 8px rgba(16, 32, 72, .08);
  display: flex;
  position: absolute; top: calc(100% + 7px); right: 0;
  width: min(540px, calc(100cqi - 24px));
  max-width: calc(100cqi - 16px);
  max-height: min(420px, 72vh);
  isolation: isolate;
  background-color: var(--fn-pop-bg);
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--fn-pop-accent) 9%, var(--fn-pop-bg)),
    var(--fn-pop-bg) 2.4rem
  );
  color: var(--fn-pop-ink);
  border: 1px solid var(--fn-pop-line);
  border-radius: 14px;
  box-shadow: var(--fn-pop-shadow);
  z-index: 80;
  overflow: hidden;
  flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px) scale(.985);
  transform-origin: top right;
  transition: opacity .14s ease, transform .16s ease, visibility 0s linear .16s;
}
.invivo-study-studio-root .ivs-fnsearch-pop.on {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity .14s ease, transform .16s ease, visibility 0s;
}
.invivo-study-studio-root .ivs-fnsearch-head {
  display: flex; align-items: baseline; gap: 8px; flex: none;
  padding: 10px 14px 8px;
  background: var(--fn-pop-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--fn-pop-line) 85%, transparent);
}
.invivo-study-studio-root .ivs-fnsearch-title {
  font-size: 10.5px; font-weight: 800; letter-spacing: .72px;
  text-transform: uppercase; color: var(--fn-pop-muted);
}
.invivo-study-studio-root .ivs-fnsearch-count {
  margin-left: auto; font-size: 11px; color: var(--fn-pop-muted);
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.invivo-study-studio-root .ivs-fnsearch-pop.is-suggest .ivs-fnsearch-count { display: none; }
.invivo-study-studio-root .ivs-fnsearch-list {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 6px;
  padding: 8px; overflow: auto; min-height: 0; flex: 1 1 auto;
  background: var(--fn-pop-bg);
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fn-pop-muted) 45%, transparent) transparent;
}
.invivo-study-studio-root .ivs-fnsearch-list::-webkit-scrollbar { width: 8px; height: 8px; }
.invivo-study-studio-root .ivs-fnsearch-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--fn-pop-muted) 40%, transparent);
  border-radius: 99px; border: 2px solid transparent; background-clip: padding-box;
}
.invivo-study-studio-root .ivs-fnsearch-list.cols-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.invivo-study-studio-root .ivs-fnsearch-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; min-width: 0; text-align: left;
  border: 1px solid transparent; background: transparent;
  color: var(--fn-pop-ink); border-radius: 10px;
  padding: 6px 8px; cursor: pointer; min-height: 40px;
  box-sizing: border-box; overflow: hidden;
  font: inherit;
  transition: background .08s ease, border-color .08s ease, color .08s ease, box-shadow .08s ease;
}
.invivo-study-studio-root .ivs-fnsearch-item:hover {
  background: color-mix(in srgb, var(--fn-pop-accent) 8%, var(--fn-pop-bg));
  border-color: color-mix(in srgb, var(--fn-pop-accent) 18%, var(--fn-pop-bg));
}
.invivo-study-studio-root .ivs-fnsearch-item.is-active,
.invivo-study-studio-root .ivs-fnsearch-item:hover.is-active {
  background: var(--fn-pop-accent);
  border-color: var(--fn-pop-accent);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--fn-pop-accent) 38%, transparent);
}
.invivo-study-studio-root .ivs-fnsearch-item-ic {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--fn-pop-accent) 12%, var(--fn-pop-bg));
  color: var(--fn-pop-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fn-pop-accent) 14%, transparent);
}
.invivo-study-studio-root .ivs-fnsearch-item:hover:not(.is-active) .ivs-fnsearch-item-ic {
  background: color-mix(in srgb, var(--fn-pop-accent) 18%, var(--fn-pop-bg));
}
.invivo-study-studio-root .ivs-fnsearch-item.is-active .ivs-fnsearch-item-ic {
  background: rgba(255,255,255,.18); color: #fff; box-shadow: none;
}
.invivo-study-studio-root .ivs-fnsearch-item-ic svg {
  width: 15px; height: 15px; display: block; overflow: visible;
}
.invivo-study-studio-root .ivs-fnsearch-item-text {
  display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1;
}
.invivo-study-studio-root .ivs-fnsearch-item-name {
  font-size: 12.5px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.invivo-study-studio-root .ivs-fnsearch-item-hint {
  font-size: 10.5px; color: var(--fn-pop-muted); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.invivo-study-studio-root .ivs-fnsearch-item.is-active .ivs-fnsearch-item-hint {
  color: rgba(255,255,255,.82);
}
.invivo-study-studio-root .ivs-fnsearch-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 28px 20px 24px; color: var(--fn-pop-muted);
  background-color: var(--fn-pop-bg);
}
.invivo-study-studio-root .ivs-fnsearch-pop.is-empty .ivs-fnsearch-list,
.invivo-study-studio-root .ivs-fnsearch-pop.is-empty .ivs-fnsearch-empty {
  background-color: var(--fn-pop-bg);
}
.invivo-study-studio-root .ivs-fnsearch-empty-ic {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fn-pop-accent);
  background: color-mix(in srgb, var(--fn-pop-accent) 12%, var(--fn-pop-bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fn-pop-accent) 16%, transparent);
}
.invivo-study-studio-root .ivs-fnsearch-empty-ic svg { width: 18px; height: 18px; overflow: visible; }
.invivo-study-studio-root .ivs-fnsearch-empty strong {
  color: var(--fn-pop-ink); font-size: 13px; font-weight: 700;
  max-width: 100%; overflow-wrap: anywhere;
}
.invivo-study-studio-root .ivs-fnsearch-empty p {
  margin: 0; font-size: 12px; line-height: 1.45; max-width: 320px;
}
.invivo-study-studio-root .ivs-fnsearch-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: none;
  padding: 7px 12px 8px;
  border-top: 1px solid var(--fn-pop-line);
  background: color-mix(in srgb, var(--fn-pop-ink) 4%, var(--fn-pop-bg));
  font-size: 10.5px; color: var(--fn-pop-muted);
}
.invivo-study-studio-root .ivs-fnsearch-k {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.invivo-study-studio-root .ivs-fnsearch-k kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 16px; padding: 0 5px;
  border-radius: 4px; font: 600 10px/1 ui-sans-serif, system-ui, sans-serif;
  color: var(--fn-pop-ink);
  background: color-mix(in srgb, var(--fn-pop-ink) 8%, var(--fn-pop-bg));
  box-shadow: inset 0 0 0 1px var(--fn-pop-line);
}
.invivo-study-studio-root .ivs-fnsearch-pop:not(.cols-2) .ivs-fnsearch-k-cols,
.invivo-study-studio-root .ivs-fnsearch-pop.is-empty .ivs-fnsearch-k-move,
.invivo-study-studio-root .ivs-fnsearch-pop.is-empty .ivs-fnsearch-k-cols,
.invivo-study-studio-root .ivs-fnsearch-pop.is-empty .ivs-fnsearch-k-open { display: none; }

.dark .invivo-study-studio-root .ivs-fnsearch-field {
  background: #252a34;
  border-color: #3a4252;
  color: #e8ecf3;
}
.dark .invivo-study-studio-root .ivs-fnsearch-field:hover {
  background: #2c3340;
  border-color: #5b8def;
}
.dark .invivo-study-studio-root .ivs-fnsearch-ic { color: #9aa5b5; }
.dark .invivo-study-studio-root .ivs-fnsearch-input::placeholder { color: #9aa5b5; }
.dark .invivo-study-studio-root .ivs-fnsearch.open .ivs-fnsearch-field,
.dark .invivo-study-studio-root .ivs-fnsearch-field.on,
.dark .invivo-study-studio-root .ivs-fnsearch-field:focus-within {
  background: #1c212b;
  border-color: #5b8def;
  color: #e8ecf3;
  box-shadow:
    0 0 0 2px rgba(91, 141, 239, .45),
    0 10px 24px rgba(0, 0, 0, .45);
}
.dark .invivo-study-studio-root .ivs-fnsearch.open .ivs-fnsearch-ic,
.dark .invivo-study-studio-root .ivs-fnsearch-field.on .ivs-fnsearch-ic,
.dark .invivo-study-studio-root .ivs-fnsearch-field:focus-within .ivs-fnsearch-ic {
  color: #9cbcff;
}
.dark .invivo-study-studio-root .ivs-fnsearch-pop {
  --fn-pop-bg: #1c212b;
  --fn-pop-ink: #e8ecf3;
  --fn-pop-muted: #9aa5b5;
  --fn-pop-line: #3a4252;
  --fn-pop-accent: #5b8def;
  --fn-pop-shadow: 0 28px 64px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  background-color: #1c212b;
  background-image: linear-gradient(180deg, #22283a, #1c212b 2.4rem);
}
.dark .invivo-study-studio-root .ivs-fnsearch-head,
.dark .invivo-study-studio-root .ivs-fnsearch-list,
.dark .invivo-study-studio-root .ivs-fnsearch-empty,
.dark .invivo-study-studio-root .ivs-fnsearch-pop.is-empty .ivs-fnsearch-list,
.dark .invivo-study-studio-root .ivs-fnsearch-pop.is-empty .ivs-fnsearch-empty {
  background: #1c212b;
  background-color: #1c212b;
}
.dark .invivo-study-studio-root .ivs-fnsearch-foot {
  background: #191e27;
  border-top-color: #3a4252;
}
.dark .invivo-study-studio-root .ivs-fnsearch-item:hover:not(.is-active) {
  background: rgba(91, 141, 239, .14);
  border-color: rgba(91, 141, 239, .28);
}
.dark .invivo-study-studio-root .ivs-fnsearch-item-ic {
  background: rgba(91, 141, 239, .16);
  color: #9cbcff;
  box-shadow: inset 0 0 0 1px rgba(91, 141, 239, .22);
}
.dark .invivo-study-studio-root .ivs-fnsearch-k kbd {
  color: #e8ecf3;
  background: #2a3140;
  box-shadow: inset 0 0 0 1px #3a4252;
}

@media (prefers-reduced-motion: reduce) {
  .invivo-study-studio-root .ivs-fnsearch-field,
  .invivo-study-studio-root .ivs-fnsearch-pop,
  .invivo-study-studio-root .ivs-fnsearch-pop.on,
  .invivo-study-studio-root .ivs-fnsearch-item { transition: none; transform: none; }
}

@container ivs-app (max-width: 1080px) {
  .ivs-fnsearch .ivs-fnsearch-field { width: 156px; }
  .st-tbtn { padding: 5px 9px; }
}
@container ivs-app (max-width: 920px) {
  .ivs-fnsearch { width: 32px; height: 22px; }
  .ivs-fnsearch .ivs-fnsearch-field { width: 32px; padding: 0; gap: 0; justify-content: center; cursor: pointer; }
  .ivs-fnsearch .ivs-fnsearch-input {
    width: 0; min-width: 0; padding: 0; opacity: 0; pointer-events: none;
  }
  .ivs-fnsearch.open .ivs-fnsearch-field,
  .ivs-fnsearch .ivs-fnsearch-field.on,
  .ivs-fnsearch .ivs-fnsearch-field:focus-within {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin-block: auto;
    width: 168px;
    padding: 0 10px 0 8px;
    gap: 6px;
    justify-content: flex-start;
    cursor: text;
    z-index: 40;
  }
  .ivs-fnsearch.open .ivs-fnsearch-input,
  .ivs-fnsearch .ivs-fnsearch-field.on .ivs-fnsearch-input,
  .ivs-fnsearch .ivs-fnsearch-field:focus-within .ivs-fnsearch-input {
    width: auto; opacity: 1; pointer-events: auto; flex: 1;
  }
  .st-toolbar { gap: 8px; padding: 6px 10px; }
  .st-tbtn { padding: 5px 8px; font-size: 12px; }
}
@container ivs-app (max-width: 760px) {
  .ivs-fnsearch.open .ivs-fnsearch-field,
  .ivs-fnsearch .ivs-fnsearch-field.on,
  .ivs-fnsearch .ivs-fnsearch-field:focus-within {
    width: 148px;
  }
}
