/* BioStudio AI — Inventory. GraphPad-style shell: blue ribbon on top, gray
   Navigator on the left, white sheet area, sheet tabs and a status bar at the
   bottom. No right-hand sidebars. Theme-aware via the OS `.dark` class. */

.inventory-root {
  /* This class lands on the window body itself. It must stay inside the window
     manager's flex layout — absolute positioning here would cover the native
     title bar, hiding pin / minimize / maximize / close and blocking the drag
     region. The app's own shell is what fills this box. */
  position: relative;
  inset: auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.inv-app {
  --iv-blue: #2f6bd4;
  --iv-blue-dk: #21508f;
  --iv-amber: #b06f16;
  --iv-bg: #f4f6fa;
  --iv-surface: #ffffff;
  --iv-nav-bg: #eef1f6;
  --iv-line: #d7dce6;
  --iv-ink: #1f2733;
  --iv-ink-soft: #6c7686;
  --iv-hover: #e4ebf7;
  --iv-active: #d6e4fb;
  --iv-warn: #b06f16;
  --iv-warn-bg: rgba(214, 158, 46, 0.14);
  --iv-bad: #c0392b;
  --iv-bad-bg: rgba(192, 57, 43, 0.12);
  --iv-ok: #1a8f4c;
  --iv-ok-bg: rgba(26, 143, 76, 0.12);
  --iv-shadow: 0 1px 3px rgba(20, 40, 80, 0.12);

  /* Fills the window body via flex rather than absolute inset, so a project
     context bar above it still gets its space. */
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  color: var(--iv-ink);
  background: var(--iv-bg);
  overflow: hidden;
  container-type: inline-size;
  container-name: inv-app;
}

.dark .inv-app {
  --iv-bg: #1a1d24;
  --iv-surface: #20242d;
  --iv-nav-bg: #181b21;
  --iv-line: #333a47;
  --iv-ink: #e8ecf3;
  --iv-ink-soft: #9aa5b5;
  --iv-hover: #2a3140;
  --iv-active: #2f3e58;
  --iv-warn: #e0b155;
  --iv-bad: #e77b6f;
  --iv-ok: #5ec98b;
  --iv-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* --- Ribbon --------------------------------------------------------------- */

.inv-ribbon-host { flex: 0 0 auto; z-index: 20; overflow: visible; }
.inv-ribbon { background: var(--iv-surface); border-bottom: 1px solid var(--iv-line); box-shadow: var(--iv-shadow); overflow: visible; }

.inv-ribbon-strip {
  display: flex; align-items: stretch; gap: 8px;
  background: linear-gradient(180deg, var(--iv-blue), var(--iv-blue-dk));
  color: #fff; padding: 0 8px; height: 26px;
  overflow: visible; position: relative;
}
.inv-ribbon-brand { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; padding-right: 6px; }
.inv-ribbon-mark { color: #bfe0ff; font-size: 13px; }
.inv-ribbon-tabs { display: flex; align-items: stretch; gap: 1px; flex: 1; }
.inv-ribbon-tab {
  border: none; background: transparent; color: rgba(255,255,255,.82);
  padding: 0 11px; font-size: 11.5px; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; line-height: 24px;
}
.inv-ribbon-tab:hover { background: rgba(255,255,255,.12); color: #fff; }
.inv-ribbon-tab.active { color: #fff; border-bottom-color: #fff; background: rgba(255,255,255,.16); }
.inv-ribbon-strip-right { display: flex; align-items: center; gap: 8px; overflow: visible; flex: none; position: relative; z-index: 3; }
.inv-ribbon-scope { font-size: 11px; color: rgba(255,255,255,.85); white-space: nowrap; }

/* ---- Function / concept search (ribbon top-right) ---- */
.inv-fnsearch {
  position: relative; z-index: 12; flex: none; flex-shrink: 0;
  align-self: center; display: flex; align-items: center;
}
.inv-fnsearch-field {
  display: flex; align-items: center; gap: 6px;
  height: 22px; width: 178px; padding: 0 10px 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.38);
  color: #fff;
  box-sizing: border-box;
  backdrop-filter: blur(min(8px, var(--bs-max-blur, 8px)));
  -webkit-backdrop-filter: blur(min(8px, var(--bs-max-blur, 8px)));
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, width .18s ease, color .14s ease;
}
.inv-fnsearch-field:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
}
.inv-fnsearch.open .inv-fnsearch-field,
.inv-fnsearch-field.on,
.inv-fnsearch-field:focus-within {
  background: #fff;
  border-color: #fff;
  color: #1f2733;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.42),
    0 8px 22px rgba(10, 24, 56, .28);
}
.inv-fnsearch-ic { display: inline-flex; align-items: center; justify-content: center; color: inherit; opacity: .92; flex: none; }
.inv-fnsearch-ic svg {
  width: 14px; height: 14px; display: block; overflow: visible; stroke-width: 2;
}
.inv-fnsearch-input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; color: inherit;
  font: inherit; font-size: 12px; font-weight: 500; outline: none;
  padding: 0; line-height: 1;
}
.inv-fnsearch-input::-webkit-search-decoration,
.inv-fnsearch-input::-webkit-search-cancel-button { display: none; }
.inv-fnsearch-input::placeholder { color: rgba(255,255,255,.78); font-weight: 500; }
.inv-fnsearch.open .inv-fnsearch-input::placeholder,
.inv-fnsearch-field.on .inv-fnsearch-input::placeholder,
.inv-fnsearch-field:focus-within .inv-fnsearch-input::placeholder {
  color: #6c7686;
}

.inv-fnsearch-pop {
  /* Search-local tokens — OS --win-bg / --iv-surface must not wash the panel. */
  --fn-pop-bg: #ffffff;
  --fn-pop-ink: #1f2733;
  --fn-pop-muted: #5c6573;
  --fn-pop-line: #d7dce6;
  --fn-pop-accent: #2f6bd4;
  --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: 540px;
  max-width: 540px;
  width: min(540px, calc(100cqi - 40px));
  max-width: min(540px, calc(100cqi - 40px));
  max-height: min(420px, 72vh);
  isolation: isolate;
  color-scheme: light;
  background-color: #ffffff;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--fn-pop-accent) 9%, transparent), transparent 2.4rem);
  color: #1f2733;
  border: 1px solid var(--fn-pop-line);
  border-radius: 14px;
  box-shadow: var(--fn-pop-shadow);
  z-index: 60;
  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;
}
.inv-fnsearch-pop.on {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity .14s ease, transform .16s ease, visibility 0s;
}
.inv-fnsearch-head {
  display: flex; align-items: baseline; gap: 8px; flex: none;
  padding: 10px 14px 8px;
  background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--fn-pop-line) 85%, transparent);
}
.inv-fnsearch-title {
  font-size: 10.5px; font-weight: 800; letter-spacing: .72px;
  text-transform: uppercase; color: var(--fn-pop-muted);
}
.inv-fnsearch-count {
  margin-left: auto; font-size: 11px; color: var(--fn-pop-muted);
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.inv-fnsearch-pop.is-suggest .inv-fnsearch-count { display: none; }
.inv-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: transparent;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fn-pop-muted) 45%, transparent) transparent;
}
.inv-fnsearch-list::-webkit-scrollbar { width: 8px; height: 8px; }
.inv-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;
}
.inv-fnsearch-list.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.inv-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; appearance: none; -webkit-appearance: none;
  transition: background .08s ease, border-color .08s ease, color .08s ease, box-shadow .08s ease;
}
.inv-fnsearch-item:hover {
  background: color-mix(in srgb, var(--fn-pop-accent) 8%, transparent);
  border-color: color-mix(in srgb, var(--fn-pop-accent) 18%, transparent);
}
.inv-fnsearch-item.is-active,
.inv-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);
}
.inv-fnsearch-item:focus { outline: none; }
.inv-fnsearch-item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--fn-pop-accent) 65%, #fff);
  outline-offset: -2px;
}
.inv-fnsearch-item.is-active:focus-visible {
  outline-color: rgba(255,255,255,.72);
}
.inv-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%, transparent);
  color: var(--fn-pop-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fn-pop-accent) 14%, transparent);
}
.inv-fnsearch-item:hover:not(.is-active) .inv-fnsearch-item-ic {
  background: color-mix(in srgb, var(--fn-pop-accent) 18%, transparent);
}
.inv-fnsearch-item.is-active .inv-fnsearch-item-ic {
  background: rgba(255,255,255,.18); color: #fff; box-shadow: none;
}
.inv-fnsearch-item-ic svg { width: 15px; height: 15px; display: block; overflow: visible; }
.inv-fnsearch-item-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.inv-fnsearch-item-name {
  font-size: 12.5px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inv-fnsearch-item-hint {
  font-size: 10.5px; color: var(--fn-pop-muted); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inv-fnsearch-item.is-active .inv-fnsearch-item-hint { color: rgba(255,255,255,.82); }
.inv-fnsearch-pop.is-empty {
  background-image: none;
  background-color: var(--fn-pop-bg);
  color: var(--fn-pop-ink);
}
.inv-fnsearch-pop.is-empty .inv-fnsearch-list {
  grid-template-columns: minmax(0, 1fr);
  min-height: 168px;
  background-color: transparent;
}
.inv-fnsearch-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 8px; padding: 32px 28px 28px; color: var(--fn-pop-muted);
  min-height: 168px; background: transparent;
}
.inv-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%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fn-pop-accent) 16%, transparent);
}
.inv-fnsearch-empty-ic svg { width: 18px; height: 18px; overflow: visible; }
.inv-fnsearch-empty strong {
  color: var(--fn-pop-ink); font-size: 13px; font-weight: 700;
  max-width: min(420px, 100%); overflow-wrap: anywhere;
}
.inv-fnsearch-empty p { margin: 0; font-size: 12px; line-height: 1.45; max-width: 320px; }
.inv-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) 2.5%, var(--fn-pop-bg));
  font-size: 10.5px; color: var(--fn-pop-muted);
}
.inv-fnsearch-k { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.inv-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: #fff;
  box-shadow: 0 1px 0 rgba(16, 32, 72, .14), inset 0 0 0 1px var(--fn-pop-line);
}
.inv-fnsearch-pop:not(.cols-2) .inv-fnsearch-k-cols,
.inv-fnsearch-pop.is-empty .inv-fnsearch-k-move,
.inv-fnsearch-pop.is-empty .inv-fnsearch-k-cols,
.inv-fnsearch-pop.is-empty .inv-fnsearch-k-open { display: none; }

.dark .inv-app .inv-fnsearch-pop,
.inv-app.dark .inv-fnsearch-pop,
#os.dark .inv-app .inv-fnsearch-pop,
.window[data-app-color-tone="dark"] .inv-app .inv-fnsearch-pop,
.dark .inv-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);
  color-scheme: dark;
  background-color: #1c212b;
  color: #e8ecf3;
  border-color: #3a4252;
}
.dark .inv-app .inv-fnsearch-pop.is-empty,
.dark .inv-fnsearch-pop.is-empty {
  background-color: #1c212b;
  background-image: none;
  color: #e8ecf3;
}
.dark .inv-app .inv-fnsearch.open .inv-fnsearch-field,
.dark .inv-app .inv-fnsearch-field.on,
.dark .inv-app .inv-fnsearch-field:focus-within,
.dark .inv-fnsearch.open .inv-fnsearch-field,
.dark .inv-fnsearch-field.on,
.dark .inv-fnsearch-field:focus-within {
  color: #1f2733;
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(91, 141, 239, .45),
    0 10px 24px rgba(0, 0, 0, .45);
}
.dark .inv-app .inv-fnsearch-item:hover:not(.is-active),
.dark .inv-fnsearch-item:hover:not(.is-active) {
  background: rgba(91, 141, 239, .14);
  border-color: rgba(91, 141, 239, .28);
}
.dark .inv-app .inv-fnsearch-item-ic,
.dark .inv-fnsearch-item-ic {
  background: rgba(91, 141, 239, .16);
  color: #9cbcff;
  box-shadow: inset 0 0 0 1px rgba(91, 141, 239, .22);
}
.dark .inv-app .inv-fnsearch-empty strong,
.dark .inv-fnsearch-empty strong { color: #e8ecf3; }
.dark .inv-app .inv-fnsearch-k kbd,
.dark .inv-fnsearch-k kbd {
  color: #e8ecf3;
  background: #2a3140;
  box-shadow: 0 1px 0 rgba(0,0,0,.4), inset 0 0 0 1px #3a4252;
}
@media (prefers-reduced-motion: reduce) {
  .inv-fnsearch-field,
  .inv-fnsearch-pop,
  .inv-fnsearch-pop.on,
  .inv-fnsearch-item { transition: none; transform: none; }
}

.inv-ribbon-body {
  display: flex; align-items: stretch; gap: 0;
  padding: 3px 2px 0; overflow-x: auto; width: 100%; box-sizing: border-box;
}
.inv-ribbon-group {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0 6px; border-right: 1px solid var(--iv-line);
  flex: 0 0 auto; width: max-content; min-width: 0;
}
.inv-ribbon-group:last-child { border-right: none; }
.inv-ribbon-items { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.inv-ribbon-items.wrap { flex-wrap: wrap; max-width: 430px; }
.inv-ribbon-smallcol { display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.inv-ribbon-grouplabel {
  text-align: center; font-size: 9px; color: var(--iv-ink-soft);
  padding: 2px 0 2px; white-space: nowrap; line-height: 1.2;
  max-width: 190px; overflow: hidden; text-overflow: ellipsis;
}

.inv-rib-big {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  width: 64px; min-height: 44px; padding: 3px 2px; gap: 1px;
  border: 1px solid transparent; border-radius: 5px; background: transparent;
  color: var(--iv-ink); cursor: pointer; font-size: 9.5px; line-height: 1.15; text-align: center;
}
.inv-rib-big:hover:not(.disabled) { background: var(--iv-hover); border-color: var(--iv-line); }
.inv-rib-big .inv-rib-icon { color: var(--iv-blue); display: inline-flex; }
.inv-rib-big .inv-rib-icon svg { width: 18px; height: 18px; }
.inv-rib-big.primary { background: var(--iv-active); border-color: #b9d2f6; font-weight: 600; }
.inv-rib-big.primary .inv-rib-icon { color: var(--iv-blue-dk); }
.inv-rib-big.danger .inv-rib-icon { color: var(--iv-bad); }
.inv-rib-label {
  max-width: 100%; overflow: hidden; overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.inv-rib-small {
  display: flex; align-items: center; gap: 4px;
  padding: 2px 6px 2px 4px; border: 1px solid transparent; border-radius: 4px;
  background: transparent; color: var(--iv-ink); cursor: pointer; font-size: 10.5px;
  max-width: 140px; text-align: left; min-height: 17px; white-space: nowrap; line-height: 1.15;
}
.inv-rib-small:hover:not(.disabled) { background: var(--iv-hover); border-color: var(--iv-line); }
.inv-rib-small .inv-rib-icon-sm { color: var(--iv-blue); display: inline-flex; flex: 0 0 auto; }
.inv-rib-small.danger, .inv-rib-small.danger .inv-rib-icon-sm { color: var(--iv-bad); }
.inv-rib-icon svg, .inv-rib-icon-sm svg { display: block; }
.inv-rib-icon-sm svg { width: 13px; height: 13px; }

.inv-rib-big.disabled, .inv-rib-small.disabled { opacity: .38; cursor: default; }

.inv-rib-control { display: flex; flex-direction: column; gap: 1px; padding: 0 3px; }
.inv-rib-control > span { font-size: 9px; color: var(--iv-ink-soft); }
.inv-rib-search, .inv-rib-barcode, .inv-rib-select {
  border: 1px solid var(--iv-line); border-radius: 4px; background: var(--iv-surface);
  color: var(--iv-ink); font: inherit; font-size: 11.5px; padding: 2px 6px; height: 22px;
}
.inv-rib-search { width: 240px; }
.inv-rib-barcode { width: 130px; }
.inv-rib-select { max-width: 168px; }
.inv-rib-search:focus, .inv-rib-barcode:focus, .inv-rib-select:focus {
  outline: none; border-color: var(--iv-blue); box-shadow: 0 0 0 2px rgba(47,107,212,.18);
}
.inv-rib-select:disabled { opacity: .45; }

/* --- Body: navigator + main ---------------------------------------------- */

.inv-body { flex: 1; display: flex; min-height: 0; }

.inv-nav {
  width: 230px; flex: 0 0 230px;
  background: var(--iv-nav-bg); border-right: 1px solid var(--iv-line);
  overflow-y: auto; overflow-x: hidden; padding-bottom: 8px;
}
.inv-nav[hidden] { display: none; }

.inv-nav-section { padding-bottom: 4px; border-bottom: 1px solid var(--iv-line); margin-bottom: 2px; }
.inv-nav-section:last-child { border-bottom: none; }
.inv-nav-sechead {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--iv-ink-soft);
}
.inv-nav-seclabel { flex: 1; }
.inv-nav-count { background: var(--iv-line); color: var(--iv-ink-soft); border-radius: 8px; font-size: 9.5px; padding: 0 6px; font-weight: 700; }

.inv-nav-item {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 4px 8px 4px 10px; border: none; border-left: 3px solid transparent;
  background: transparent; color: var(--iv-ink); font: inherit; font-size: 12px;
  cursor: pointer; text-align: left;
}
.inv-nav-item:hover { background: var(--iv-hover); }
.inv-nav-item.active { background: var(--iv-active); border-left-color: var(--iv-blue); font-weight: 600; }
.inv-nav-item.depth-1 { padding-left: 22px; font-size: 11.5px; }
.inv-nav-ico { display: inline-flex; width: 14px; flex: 0 0 14px; color: var(--iv-blue); font-size: 12px; }
.inv-nav-ico svg { width: 14px; height: 14px; }
.inv-nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-nav-badge {
  background: var(--iv-line); color: var(--iv-ink-soft); border-radius: 8px;
  font-size: 9.5px; font-weight: 700; padding: 0 5px; flex: 0 0 auto;
}
.inv-nav-item.active .inv-nav-badge { background: var(--iv-blue); color: #fff; }

.inv-main {
  flex: 1; min-width: 0; overflow: auto;
  background: var(--iv-bg); padding: 14px 16px 20px;
}

/* --- Sheet furniture ----------------------------------------------------- */

.inv-sheet-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.inv-sheet-title { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.inv-sheet-sub { margin: 2px 0 0; font-size: 12px; color: var(--iv-ink-soft); }
.inv-sheet-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-muted { color: var(--iv-ink-soft); font-size: 12.5px; margin: 0; }
.inv-hint { margin: 8px 0 0; font-size: 11.5px; color: var(--iv-ink-soft); }
.inv-note {
  margin: 0 0 10px; padding: 6px 10px; font-size: 12px;
  border-left: 3px solid var(--iv-blue); background: var(--iv-active); border-radius: 0 5px 5px 0;
}
.inv-desc { margin: 0 0 12px; font-size: 13px; }

.inv-linkbtn {
  border: 1px solid var(--iv-line); border-radius: 5px; background: var(--iv-surface);
  color: var(--iv-ink); font: inherit; font-size: 12px; padding: 4px 11px; cursor: pointer;
}
.inv-linkbtn:hover { background: var(--iv-hover); border-color: var(--iv-blue); }
.inv-linkbtn.primary { background: var(--iv-blue); border-color: var(--iv-blue-dk); color: #fff; font-weight: 600; }
.inv-linkbtn.primary:hover { background: var(--iv-blue-dk); }
.inv-linkbtn.danger { color: var(--iv-bad); border-color: var(--iv-bad); }
.inv-linkbtn.danger:hover { background: var(--iv-bad-bg); }

.inv-empty {
  display: grid; justify-items: center; gap: 6px;
  padding: 48px 20px; text-align: center; color: var(--iv-ink-soft);
}
.inv-empty-ico { color: var(--iv-blue); opacity: .7; }
.inv-empty-ico svg { width: 34px; height: 34px; }
.inv-empty-title { font-size: 15px; font-weight: 700; color: var(--iv-ink); }
.inv-empty-sub { font-size: 12.5px; max-width: 440px; }
.inv-empty .inv-linkbtn { margin-top: 8px; }

/* --- Panels & metrics ---------------------------------------------------- */

.inv-panel {
  background: var(--iv-surface); border: 1px solid var(--iv-line);
  border-radius: 8px; padding: 10px 12px 12px; margin-bottom: 12px;
}
.inv-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.inv-panel-head h3 { margin: 0; font-size: 12.5px; font-weight: 700; }
.inv-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.inv-panel-grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.inv-panel-grid .inv-panel { margin-bottom: 0; }

.inv-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 8px; margin-bottom: 14px; }
.inv-metric {
  border: 1px solid var(--iv-line); border-radius: 8px; padding: 8px 10px;
  background: var(--iv-surface); min-height: 58px;
}
.inv-metric.clickable { cursor: pointer; }
.inv-metric.clickable:hover { border-color: var(--iv-blue); background: var(--iv-hover); }
.inv-metric strong { display: block; font-size: 21px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.inv-metric span { font-size: 11px; color: var(--iv-ink-soft); }
.inv-metric.warn { border-color: var(--iv-warn); background: var(--iv-warn-bg); }
.inv-metric.warn strong { color: var(--iv-warn); }
.inv-metric.bad { border-color: var(--iv-bad); background: var(--iv-bad-bg); }
.inv-metric.bad strong { color: var(--iv-bad); }

.inv-card-list { display: grid; gap: 2px; }
.inv-row-btn {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 6px 7px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: inherit; cursor: pointer; font: inherit;
}
.inv-row-btn:hover { border-color: var(--iv-line); background: var(--iv-hover); }
.inv-row-ico { font-size: 15px; flex: 0 0 auto; }
.inv-row-main { display: grid; min-width: 0; flex: 1; }
.inv-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.inv-row-main small { color: var(--iv-ink-soft); font-size: 11px; }

.inv-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 6px; }
.inv-cat-tile {
  display: grid; justify-items: center; gap: 1px; padding: 8px 6px;
  border: 1px solid var(--iv-line); border-radius: 8px; background: var(--iv-surface);
  color: inherit; cursor: pointer; font: inherit;
}
.inv-cat-tile:hover { border-color: var(--iv-blue); background: var(--iv-hover); }
.inv-cat-tile strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.inv-cat-tile span:last-child { font-size: 10.5px; color: var(--iv-ink-soft); text-align: center; }
.inv-cat-ico { font-size: 14px; }

/* --- Chips & status pills ------------------------------------------------ */

.inv-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.inv-chip {
  font-size: 10px; line-height: 1.65; padding: 0 6px; border-radius: 999px;
  border: 1px solid var(--iv-line); white-space: nowrap;
}
.inv-chip.warn { border-color: var(--iv-warn); background: var(--iv-warn-bg); color: var(--iv-warn); }
.inv-chip.bad { border-color: var(--iv-bad); background: var(--iv-bad-bg); color: var(--iv-bad); }
.inv-chip.ok { border-color: var(--iv-ok); background: var(--iv-ok-bg); color: var(--iv-ok); }
.inv-chip.info { border-color: var(--iv-blue); background: var(--iv-active); color: var(--iv-blue-dk); }
.dark .inv-chip.info { color: #b9d2f6; }

.inv-status {
  font-size: 11px; padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--iv-line); background: var(--iv-hover);
}
.inv-status.available { border-color: var(--iv-ok); background: var(--iv-ok-bg); color: var(--iv-ok); }
.inv-status.in_use { border-color: var(--iv-blue); background: var(--iv-active); color: var(--iv-blue-dk); }
.dark .inv-status.in_use { color: #b9d2f6; }
.inv-status.maintenance { border-color: var(--iv-warn); background: var(--iv-warn-bg); color: var(--iv-warn); }
.inv-status.out_of_service, .inv-status.retired { border-color: var(--iv-bad); background: var(--iv-bad-bg); color: var(--iv-bad); }

/* --- Tables -------------------------------------------------------------- */

.inv-table-wrap {
  overflow-x: auto; background: var(--iv-surface);
  border: 1px solid var(--iv-line); border-radius: 8px;
}
.inv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.inv-table th {
  position: sticky; top: 0; z-index: 1;
  background: var(--iv-nav-bg); border-bottom: 1px solid var(--iv-line);
  padding: 6px 10px; text-align: left; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: var(--iv-ink-soft); white-space: nowrap;
}
.inv-table td { padding: 5px 10px; border-bottom: 1px solid var(--iv-line); vertical-align: middle; }
.inv-table tbody tr:last-child td { border-bottom: none; }
.inv-table th.num, .inv-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.inv-table th.inv-th-ico, .inv-table td.inv-td-ico { width: 26px; text-align: center; padding-right: 0; }
.inv-tr { cursor: pointer; }
.inv-tr:hover { background: var(--iv-hover); }
.inv-tr.selected { background: var(--iv-active); }
.inv-tr.selected td { border-bottom-color: #b9d2f6; }
.inv-cell-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inv-cell-strong { font-weight: 600; }
.inv-loc-name { font-weight: 600; }

/* --- Item detail --------------------------------------------------------- */

.inv-detail-head { margin-bottom: 12px; }
.inv-back {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px;
  border: none; background: transparent; color: var(--iv-blue);
  font: inherit; font-size: 12px; cursor: pointer; padding: 0;
}
.inv-back:hover { text-decoration: underline; }
.inv-back svg { width: 14px; height: 14px; }
.inv-detail-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.inv-detail-title h2 { margin: 0; font-size: 19px; font-weight: 700; }
.inv-detail-ico { font-size: 24px; }
.inv-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; margin-bottom: 12px; }
.inv-detail-grid .inv-panel { margin-bottom: 0; }
.inv-details { display: grid; gap: 0; }
.inv-detail {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 4px 0; border-bottom: 1px dashed var(--iv-line); font-size: 12.5px;
}
.inv-detail:last-child { border-bottom: none; }
.inv-detail > span { color: var(--iv-ink-soft); flex: 0 0 auto; }
.inv-detail strong { text-align: right; font-weight: 600; word-break: break-word; }
.inv-notes { white-space: pre-wrap; font-size: 12.5px; margin: 0; }

.inv-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.inv-tag {
  font-size: 11px; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--iv-line); background: var(--iv-surface);
  color: inherit; font-family: inherit; cursor: pointer;
}
.inv-tag:hover { border-color: var(--iv-blue); background: var(--iv-hover); }

/* --- Forms --------------------------------------------------------------- */

.inv-form { max-width: 1180px; }
.inv-form-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.inv-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 12px; align-items: start; }
.inv-form-group {
  background: var(--iv-surface); border: 1px solid var(--iv-line);
  border-radius: 8px; padding: 10px 12px 12px;
}
.inv-form-grouptitle {
  margin: 0 0 8px; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px; color: var(--iv-ink-soft);
}
.inv-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-form-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inv-form-field > span { font-size: 11px; color: var(--iv-ink-soft); }
.inv-form-field:has(.inv-textarea) { grid-column: 1 / -1; }
.inv-form-hint { font-size: 10.5px; color: var(--iv-ink-soft); }
.inv-form-actions, .inv-form-foot { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-form-foot { margin-top: 14px; }

.inv-input {
  border: 1px solid var(--iv-line); border-radius: 5px;
  background: var(--iv-surface); color: var(--iv-ink);
  font: inherit; font-size: 12.5px; padding: 4px 7px; width: 100%; box-sizing: border-box;
}
.inv-input:focus { outline: none; border-color: var(--iv-blue); box-shadow: 0 0 0 2px rgba(47,107,212,.18); }
.inv-textarea { resize: vertical; font-family: inherit; }
.inv-check { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding-top: 14px; }
.inv-import-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; margin-top: 8px;
}
.inv-import-result { margin-top: 8px; font-size: 12.5px; }
.inv-import-errors { margin: 4px 0 0 16px; padding: 0; color: var(--iv-bad); }
.inv-colgrid { display: flex; flex-wrap: wrap; gap: 5px; }
.inv-colgrid code {
  font-size: 11px; padding: 1px 7px; border-radius: 4px;
  background: var(--iv-nav-bg); border: 1px solid var(--iv-line);
}

/* --- Sheet tabs + status bar -------------------------------------------- */

.inv-sheettabs {
  display: flex; align-items: stretch; gap: 2px; flex: 0 0 auto;
  padding: 3px 6px 0; background: var(--iv-nav-bg);
  border-top: 1px solid var(--iv-line); overflow-x: auto;
}
.inv-sheettab {
  display: flex; align-items: center; gap: 5px;
  border: 1px solid var(--iv-line); border-bottom: none;
  border-radius: 6px 6px 0 0; background: var(--iv-bg); color: var(--iv-ink-soft);
  font: inherit; font-size: 11.5px; padding: 3px 9px; cursor: pointer;
  max-width: 200px; white-space: nowrap;
}
.inv-sheettab:hover { background: var(--iv-hover); color: var(--iv-ink); }
.inv-sheettab.active { background: var(--iv-surface); color: var(--iv-ink); font-weight: 600; border-color: var(--iv-blue); border-bottom: 2px solid var(--iv-surface); }
.inv-sheettab-ico { display: inline-flex; color: var(--iv-blue); }
.inv-sheettab-ico svg { width: 13px; height: 13px; }
.inv-sheettab-label { overflow: hidden; text-overflow: ellipsis; }
.inv-sheettab-close { color: var(--iv-ink-soft); font-size: 14px; line-height: 1; padding: 0 1px; border-radius: 3px; }
.inv-sheettab-close:hover { background: var(--iv-bad-bg); color: var(--iv-bad); }

.inv-statusbar {
  display: flex; align-items: center; gap: 12px; flex: 0 0 auto;
  height: 22px; padding: 0 10px; background: var(--iv-surface);
  border-top: 1px solid var(--iv-line); font-size: 11px; color: var(--iv-ink-soft);
}
.inv-status-spacer { flex: 1; }
.inv-status-cell { white-space: nowrap; }
.inv-status-cell.warn { color: var(--iv-warn); font-weight: 600; }

/* --- Selection, sorting, quick steppers, bulk bar ---------------------- */

.inv-table th.inv-th-check, .inv-table td.inv-td-check { width: 30px; padding-right: 0; text-align: center; }
.inv-table input[type="checkbox"] { accent-color: var(--iv-blue); cursor: pointer; }
.inv-tr.checked { background: color-mix(in srgb, var(--iv-blue) 7%, transparent); }
.inv-th-sort { cursor: pointer; user-select: none; }
.inv-th-sort:hover { color: var(--iv-ink); }
.inv-th-sort.on { color: var(--iv-blue); }
.inv-sort-arrow { display: inline-block; width: 10px; margin-left: 3px; font-size: 8px; vertical-align: 1px; }
.inv-table td.right { text-align: right; }
.inv-qty { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.inv-qty > span.low { color: var(--iv-warn); font-weight: 600; }
.inv-step {
  width: 20px; height: 20px; border-radius: 5px; padding: 0;
  display: inline-grid; place-items: center; line-height: 1; font-size: 13px;
  border: 1px solid var(--iv-line); background: var(--iv-surface); color: var(--iv-ink-soft);
  cursor: pointer; opacity: 0; transition: opacity .1s ease;
}
.inv-tr:hover .inv-step, .inv-step:focus-visible { opacity: 1; }
.inv-step:hover { border-color: var(--iv-blue); color: var(--iv-blue); }
.inv-bulkbar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 8px; padding: 6px 8px; border-radius: 8px;
  background: var(--iv-active); border: 1px solid color-mix(in srgb, var(--iv-blue) 35%, var(--iv-line));
}
.inv-bulkbar strong { font-size: 12.5px; margin-right: 4px; }
.inv-grow { flex: 1; }
.inv-linkbtn.small { padding: 2px 9px; font-size: 11.5px; }
.inv-linkbtn:disabled { opacity: .5; cursor: default; }
.inv-nav-badge.warn { background: var(--iv-warn-bg); color: var(--iv-warn); }
.inv-nav-badge.bad { background: var(--iv-bad-bg); color: var(--iv-bad); }

/* --- Dashboard extras ---------------------------------------------------- */

.inv-allclear {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px;
  border-radius: 8px; border: 1px solid var(--iv-line); background: var(--iv-ok-bg); color: var(--iv-ok); font-size: 12.5px; font-weight: 600;
}
.inv-allclear svg { width: 16px; height: 16px; }
.inv-bookings { display: grid; gap: 2px; }
.inv-booking { display: grid; gap: 1px; padding: 5px 2px; border-bottom: 1px dashed var(--iv-line); font-size: 12.5px; }
.inv-booking:last-child { border-bottom: none; }
.inv-booking span { color: var(--iv-ink-soft); font-size: 11.5px; }

/* --- Status bar undo ------------------------------------------------------ */

.inv-status-undo {
  border: 0; background: none; padding: 0 4px; height: 18px; border-radius: 4px;
  color: var(--iv-blue); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
}
.inv-status-undo:hover { background: var(--iv-hover); text-decoration: underline; }

/* --- In-window forms (forms.js) -------------------------------------------
   Names avoid the theme layer's -modal / dialog / -panel repaint patterns. */

.inv-app { position: relative; outline: none; }
.inv-ov {
  position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px;
  background: rgba(15, 22, 36, .34); animation: inv-fade .12s ease;
}
@keyframes inv-fade { from { opacity: 0; } }
.inv-ovbox {
  width: min(460px, 100%); max-height: 100%; overflow: auto;
  background: var(--iv-surface); color: var(--iv-ink); border: 1px solid var(--iv-line);
  border-radius: 12px; box-shadow: 0 22px 60px rgba(10, 20, 40, .3);
}
.inv-ovform { display: flex; flex-direction: column; }
.inv-ovhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 6px; }
.inv-ovhead h2 { margin: 0; font-size: 16px; font-weight: 700; }
.inv-ovhead p { margin: 3px 0 0; font-size: 12px; color: var(--iv-ink-soft); }
.inv-ovx {
  width: 28px; height: 28px; flex: none; border-radius: 50%; border: 0;
  background: var(--iv-nav-bg); color: var(--iv-ink-soft); font-size: 17px; line-height: 1; cursor: pointer;
}
.inv-ovx:hover { color: var(--iv-ink); }
.inv-ovbody { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 16px 12px; }
.inv-ovbody > .inv-seg, .inv-ovbody > .inv-ovpreview, .inv-ovbody > .inv-overror, .inv-ovbody > .inv-ovnote { grid-column: 1 / -1; }
.inv-ovfield { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inv-ovfield.full { grid-column: 1 / -1; }
.inv-ovfield > span { font-size: 11.5px; font-weight: 600; color: var(--iv-ink-soft); }
.inv-ovfield > small { font-size: 10.5px; color: var(--iv-ink-soft); }
.inv-ovfield .inv-input { height: 30px; font-size: 13px; }
.inv-ovfield textarea.inv-input { height: auto; }
.inv-ovfield .inv-check { padding-top: 0; }
.inv-ovnote { margin: 0; font-size: 12px; color: var(--iv-ink-soft); }
.inv-ovpreview { font-size: 12.5px; font-weight: 600; padding: 7px 10px; border-radius: 7px; background: var(--iv-nav-bg); font-variant-numeric: tabular-nums; }
.inv-ovpreview[hidden] { display: none; }
.inv-ovpreview .warn { color: var(--iv-warn); }
.inv-ovpreview .bad { color: var(--iv-bad); }
.inv-overror { color: var(--iv-bad); font-size: 12px; }
.inv-overror:empty { display: none; }
.inv-ovfoot { display: flex; justify-content: flex-end; gap: 6px; padding: 10px 16px 14px; border-top: 1px solid var(--iv-line); }
.inv-ovfoot .inv-linkbtn { padding: 5px 14px; font-size: 12.5px; }
.inv-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--iv-nav-bg); border: 1px solid var(--iv-line); justify-self: start; }
.inv-seg-btn {
  border: 1px solid transparent; background: transparent; color: var(--iv-ink-soft);
  font: inherit; font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.inv-seg-btn:hover { color: var(--iv-ink); }
.inv-seg-btn.on { background: var(--iv-surface); color: var(--iv-ink); border-color: var(--iv-line); box-shadow: var(--iv-shadow); }
.inv-suffixed { position: relative; display: flex; align-items: center; }
.inv-suffixed .inv-input { padding-right: 70px; }
.inv-suffixed > span { position: absolute; right: 9px; color: var(--iv-ink-soft); font-size: 12px; pointer-events: none; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Narrow windows ----------------------------------------------------- */

@media (max-width: 900px) {
  .inv-nav { width: 176px; flex-basis: 176px; }
  .inv-rib-search { width: 150px; }
  .inv-form-fields { grid-template-columns: 1fr; }
}

@container inv-app (max-width: 1080px) {
  .inv-fnsearch-field { width: 156px; }
}
@container inv-app (max-width: 920px) {
  .inv-fnsearch-field { width: 138px; padding: 0 8px 0 7px; }
  .inv-fnsearch-input { font-size: 11.5px; }
}
@container inv-app (max-width: 760px) {
  .inv-ribbon-scope { display: none; }
  .inv-fnsearch-field {
    width: 32px; max-width: 32px; padding: 0; gap: 0; justify-content: center;
  }
  .inv-fnsearch-input {
    width: 0; min-width: 0; padding: 0; opacity: 0;
  }
  .inv-fnsearch.open .inv-fnsearch-field,
  .inv-fnsearch-field.on,
  .inv-fnsearch-field:focus-within {
    width: 158px; max-width: 158px; gap: 6px; padding: 0 10px 0 8px; justify-content: flex-start;
  }
  .inv-fnsearch.open .inv-fnsearch-input,
  .inv-fnsearch-field.on .inv-fnsearch-input,
  .inv-fnsearch-field:focus-within .inv-fnsearch-input {
    width: auto; opacity: 1; pointer-events: auto; flex: 1;
  }
}

/* Beat OS per-window color-theme input/surface !important. */
#os .window[data-app-color-theme] .inv-app input.inv-fnsearch-input:not([type="color"]):not([type="range"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]),
body .window[data-app-color-theme] .inv-app input.inv-fnsearch-input:not([type="color"]):not([type="range"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]),
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-input,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-input {
  background: transparent !important;
  color: inherit !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  line-height: 1 !important;
  outline: none !important;
}
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-input::placeholder,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-input::placeholder {
  color: rgba(255,255,255,.78) !important;
  opacity: 1;
}
#os .window[data-app-color-theme] .inv-app .inv-fnsearch.open .inv-fnsearch-input::placeholder,
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-field.on .inv-fnsearch-input::placeholder,
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-field:focus-within .inv-fnsearch-input::placeholder,
body .window[data-app-color-theme] .inv-app .inv-fnsearch.open .inv-fnsearch-input::placeholder,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-field.on .inv-fnsearch-input::placeholder,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-field:focus-within .inv-fnsearch-input::placeholder {
  color: #6c7686 !important;
}
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-pop,
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-pop.is-empty,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-pop,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-pop.is-empty {
  background-color: var(--fn-pop-bg, #fff) !important;
  color: var(--fn-pop-ink, #1f2733) !important;
  border-color: var(--fn-pop-line, #d7dce6) !important;
}
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-head,
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-list,
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-empty,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-head,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-list,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-empty {
  background-color: transparent !important;
  background-image: none !important;
  color: inherit !important;
}
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-empty strong,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-empty strong {
  color: var(--fn-pop-ink, #1f2733) !important;
}
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-foot,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-foot {
  background: color-mix(in srgb, var(--fn-pop-ink) 2.5%, var(--fn-pop-bg)) !important;
  color: var(--fn-pop-muted) !important;
  border-top-color: var(--fn-pop-line) !important;
}
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-item,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-item {
  background: transparent !important;
  color: var(--fn-pop-ink) !important;
  border-color: transparent !important;
}
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-item:hover,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-item:hover {
  background: color-mix(in srgb, var(--fn-pop-accent) 8%, transparent) !important;
  border-color: color-mix(in srgb, var(--fn-pop-accent) 18%, transparent) !important;
  color: var(--fn-pop-ink) !important;
}
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-item.is-active,
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-item:hover.is-active,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-item.is-active,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-item:hover.is-active {
  background: var(--fn-pop-accent) !important;
  border-color: var(--fn-pop-accent) !important;
  color: #fff !important;
}
#os .window[data-app-color-theme] .inv-app .inv-fnsearch-item.is-active .inv-fnsearch-item-hint,
body .window[data-app-color-theme] .inv-app .inv-fnsearch-item.is-active .inv-fnsearch-item-hint {
  color: rgba(255,255,255,.82) !important;
}
#os.dark .window[data-app-color-theme] .inv-app .inv-fnsearch-item:hover:not(.is-active),
.dark #os .window[data-app-color-theme] .inv-app .inv-fnsearch-item:hover:not(.is-active) {
  background: rgba(91, 141, 239, .14) !important;
  border-color: rgba(91, 141, 239, .28) !important;
  color: #e8ecf3 !important;
}
