﻿@font-face {
  font-family: Manrope;
  src: url('/manrope-cyrillic.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url('/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.project-picker {
  max-width: 45vw;
  overflow: hidden;
}
.project-picker span {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.project-picker { flex-shrink: 1; min-width: 100px; }
.project-picker > span { color: var(--color-accent-text); }
.balance { font-variant-numeric: tabular-nums; flex-shrink: 0; }
.project-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-price { font-variant-numeric: tabular-nums; }
@media (max-width: 540px) {
  .service-bar { gap: 6px; }
  .service-bar .service-divider, .balance > .icon { display: none; }
  .project-picker { width: 140px; }
  .balance { font-size: 11px; }
  .service-bar .account { padding: 0 6px; }
}
.brand-word {
  font-weight: 750;
}
.nav-section + .nav-section {
  margin-top: 4px;
}
.account {
  border: 1px solid var(--color-border-strong);
}
.workspace {
  scrollbar-width: thin;
}
#app > .loading-label {
  padding: 32px;
}
.data-table.matrix {
  min-width: 100%;
  width: auto;
  table-layout: auto;
}
.matrix .key-cell {
  min-width: 220px;
  width: 31%;
  max-width: 420px;
}
.matrix .key-cell button {
  color: var(--color-text);
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  font-size: 15px;
}
.matrix .key-cell button:hover {
  color: var(--color-accent-text);
}
.matrix .key-cell button:focus-visible {
  outline-offset: 0;
}
.matrix th,
.matrix td {
  padding-left: 12px;
  padding-right: 12px;
}
.matrix td {
  font-size: 13px;
}
.matrix .tag {
  display: inline-block;
  font-size: 12px;
  background: #edf2f8;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 2px;
  color: #536780;
}
.matrix th .date-label {
  display: inline-block;
}
.matrix .url {
  max-width: 240px;
  overflow-wrap: anywhere;
}
.metric-note {
  line-height: 1.3;
}
.dist-row {
  grid-template-columns: minmax(40px, 1fr) 35px 20px;
}
.report-filters .select-control select {
  width: auto !important;
}
.report-filters {
  gap: 2px;
}
.report-filters .btn {
  flex: 0 0 auto;
}
.report-filters .filter-divider {
  display: inline-block;
}
.mode-section {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mode-section .heading-desc {
  margin-left: 6px;
}
.report-scroll {
  overflow: auto;
  min-height: 0;
}
.scroll-panel {
  padding: 16px;
}
.query-tags,
.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.secondary {
  color: var(--color-muted);
  font-size: 12px;
}
.source-note {
  color: var(--color-muted);
  font-size: 12px;
  margin-left: auto;
}
.source-note svg {
  width: 14px;
  height: 14px;
}
.empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--color-muted);
}
.empty strong {
  display: block;
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 5px;
}
.empty .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
}
.split {
  display: grid;
  grid-template-columns: minmax(210px, 30%) minmax(0, 1fr);
  overflow: hidden;
  min-height: 200px;
  flex: 1;
}
.record-list {
  overflow: auto;
  border-right: 1px solid var(--color-border);
}
.record-list button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 12px;
  background: white;
  display: block;
  text-align: left;
  overflow-wrap: anywhere;
}
.record-list button span,
.record-list button small {
  display: block;
}
.record-list button small {
  color: var(--color-muted);
  margin-top: 3px;
}
.record-list button:hover {
  background: var(--color-hover);
}
.record-list button[aria-pressed='true'] {
  border-left: 3px solid var(--color-accent);
  padding-left: 9px;
  background: var(--color-accent-soft);
}
.record-view {
  min-width: 0;
  overflow: auto;
  padding: 18px 22px;
}
.record-view h2,
dialog h2 {
  font-size: 18px;
  font-weight: 650;
}
.record-view header {
  margin-bottom: 14px;
}
.results {
  list-style: none;
  padding: 0;
  margin: 0;
}
.results li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--color-border);
}
.results li > div {
  min-width: 0;
}
.results .rank-number {
  min-width: 27px;
  padding: 3px;
  text-align: center;
  background: #edf2f8;
  border-radius: 4px;
  color: #5f728b;
}
.results li.owned .rank-number {
  color: #176347;
  background: #d5eddf;
}
.results a {
  font-size: 15px;
  font-weight: 600;
}
.results small {
  display: block;
  color: #477559;
  overflow-wrap: anywhere;
}
.results p {
  color: var(--color-muted);
  margin-top: 4px;
}
.answer-body {
  line-height: 1.55;
}
.answer-body p {
  white-space: pre-wrap;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.answer-body h3,
.source-list h3 {
  font-size: 14px;
  margin: 15px 0 5px;
}
.source-list a {
  display: inline-block;
  padding: 3px 7px;
  background: var(--color-accent-soft);
  border-radius: 4px;
  margin: 3px 4px 0 0;
}
.graph-distribution {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
}
.graph-distribution h2 {
  font-size: 14px;
}
.graph-track {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.graph-track i {
  display: block;
  height: 12px;
  background: var(--color-chart-blue);
  border-radius: 2px;
}
.graph-track .track {
  background: #f4f6fa;
}
#detail {
  width: min(540px, calc(100vw - 28px));
  max-height: 85dvh;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  padding: 20px;
  color: var(--color-text);
  box-shadow: 0 12px 42px #20344833;
}
#detail::backdrop {
  background: #27364655;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.edit-query {
  display: grid;
  gap: 12px;
}
.edit-query label,
.edit-query legend {
  font-weight: 600;
  font-size: 13px;
}
.edit-query label input:not([type='checkbox']) {
  display: block;
  margin-top: 4px;
}
.edit-query input:not([type='checkbox']) {
  padding: 7px 9px;
  border: 1px solid var(--color-border-strong);
  border-radius: 5px;
  width: 100%;
}
.edit-query fieldset {
  display: flex;
  gap: 12px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
}
.form-error {
  color: var(--color-danger);
}
#feedback:not(:empty) {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 6px;
  color: white;
  background: #384a62;
}
.section-settings {
  overflow: auto;
}
.engine-icon {width:16px;height:16px;flex-shrink:0}
.batch-partial {display:grid;gap:12px}
.batch-partial[hidden] {display:none}
.batch-variants {max-height:240px;overflow:auto}
.batch-variant {display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--color-border);font-size:12px}
.batch-variant>span:last-child {margin-left:auto;white-space:nowrap}
.partial-check-link {display:block;width:fit-content;margin-top:12px;color:var(--color-accent-text);text-decoration:underline}
.engine-control {height:30px;font-size:12px;padding:5px 8px;white-space:nowrap}
.engine-control>.icon:last-child {width:12px;height:12px}
@media (max-width: 800px) {
  .report-filters .filter-divider {
    display: none;
  }
  .source-note {
    display: none;
  }
  .split {
    grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
  }
  .record-view {
    padding: 12px;
  }
}
@media (max-width: 600px) {
  .shell {
    --width-sidebar: 42px;
  }
  .sidebar .brand {
    padding: 0 7px;
  }
  .sidebar .nav-section,
  .sidebar-bottom {
    padding-left: 3px;
    padding-right: 3px;
  }
  .sidebar .nav-item {
    min-height: 42px;
  }
  .service-bar {
    gap: 3px;
  }
  .service-bar .btn {
    padding: 4px 6px;
    font-size: 12px;
  }
  .service-bar .demo-badge {
    display: none;
  }
  .project-picker {
    width: auto;
    max-width: 49%;
  }
  .search-input {
    min-width: 130px;
  }
  .report-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    min-height: 44px;
  }
  .report-filters > * {
    flex-shrink: 0;
  }
  .summary {
    min-height: 96px;
  }
  .summary .summary-card,
  .summary .dynamics-card {
    height: 92px;
  }
  .split {
    display: flex;
    flex-direction: column;
  }
  .record-list {
    flex-shrink: 0;
    max-height: 120px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .record-list button {
    min-height: 40px;
    padding: 5px 9px;
  }
  .table-panel {
    min-height: 240px;
  }
  .matrix .key-cell {
    min-width: 200px;
  }
  .table-toolbar .segmented {
    order: 0;
  }
  .mode-section {
    flex-wrap: wrap;
  }
}
#report:not(.section-settings) {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
}
.section-settings {
  flex: 1;
  min-height: 0;
}
.report-filters .icon-btn:first-child {
  color: #fff;
  background: var(--color-accent-text);
}
.edit-query select {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid var(--color-border-strong);
  border-radius: 5px;
  padding: 7px;
}
@media (max-height: 650px) {
  #report:not(.section-settings) {
    min-height: min-content;
  }
  .table-panel {
    min-height: 340px;
  }
}
.answer-body .answer-citation {
  font-size: 11px;
  vertical-align: super;
  margin: 0 2px;
}
.answer-body .answer-table {
  max-width: 100%;
  overflow: auto;
}
@media (max-width: 800px) {
  .sidebar-bottom [data-action='collapse'] {
    display: none;
  }
}
