.topnav-calc-btn.is-open {
  background: rgba(18, 226, 204, 0.14);
  border-color: rgba(18, 226, 204, 0.45);
  color: var(--fs-teal);
}
.qc-pop {
  position: fixed;
  top: var(--qc-top, 76px);
  left: var(--qc-left, 24px);
  z-index: 70;
  width: 388px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(17, 30, 54, 0.98);
  border: 1px solid var(--fs-line);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.85);
  color: var(--fs-text);
  font-family: 'Inter', sans-serif;
}
.qc-pop[hidden] { display: none; }
.qc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.qc-head b { display: block; font-size: 16px; font-weight: 700; }
.qc-head small { font-size: 12px; color: var(--fs-muted); }
.qc-close { width: 32px; height: 32px; border-radius: 9px; border: 0; background: none; color: var(--fs-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.qc-close:hover { background: rgba(147, 163, 188, 0.1); color: var(--fs-text); }
.qc-pop :focus-visible { outline: 2px solid var(--fs-teal); outline-offset: 2px; }
.qc-label { display: block; margin-bottom: 5px; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--fs-muted); }
.qc-label .qc-tag { margin-left: 6px; }
.qc-tag { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 700; background: rgba(255, 181, 71, 0.16); color: var(--fs-warn); vertical-align: middle; }
.qc-tag.is-auto { background: rgba(46, 229, 157, 0.14); color: var(--fs-good); }
.qc-field { min-width: 0; margin-bottom: 12px; }
.qc-input { position: relative; display: flex; align-items: center; }
.qc-input span { position: absolute; font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: normal; text-transform: none; color: var(--fs-muted); pointer-events: none; }
.qc-input span.is-pre { left: 12px; }
.qc-input span.is-suf { right: 12px; }
.qc-input input, .qc-select {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 11px;
  border: 1px solid rgba(147, 163, 188, 0.25); background: rgba(6, 11, 22, 0.6);
  color: var(--fs-text); font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 600; margin: 0;
}
.qc-input span.is-pre + input { padding-left: 40px; }
.qc-input input:focus, .qc-select:focus { outline: none; border-color: var(--fs-teal); box-shadow: 0 0 0 3px rgba(18, 226, 204, 0.18); }
.qc-input input::placeholder { color: #5F6F8A; font-weight: 500; }
.qc-search { position: relative; margin-bottom: 12px; }
.qc-search .qc-input input { padding-left: 38px; font-weight: 500; }
.qc-search .qc-input svg { position: absolute; left: 12px; color: var(--fs-muted); pointer-events: none; }
.qc-sug {
  position: absolute; left: 0; right: 0; top: 50px; z-index: 3; max-height: 280px; overflow-y: auto;
  border-radius: 13px; background: #0B1426; border: 1px solid var(--fs-line); box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.8);
}
.qc-sug[hidden] { display: none; }
.qc-sug-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px;
  border: 0; border-bottom: 1px solid rgba(27, 47, 82, 0.7); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.qc-sug-item:last-child { border-bottom: 0; }
.qc-sug-item:hover, .qc-sug-item:focus-visible { background: rgba(52, 85, 219, 0.14); }
.qc-sug-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qc-sug-text { min-width: 0; font-size: 12.5px; font-weight: 600; }
.qc-sug-text b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-sug-text small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--fs-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-sug-side { flex-shrink: 0; text-align: right; font-size: 12.5px; font-weight: 700; }
.qc-sug-empty { padding: 12px; font-size: 12.5px; color: var(--fs-muted); }
.qc-badge { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.qc-badge.is-good { background: rgba(46, 229, 157, 0.14); color: var(--fs-good); }
.qc-badge.is-warn { background: rgba(255, 181, 71, 0.16); color: var(--fs-warn); }
.qc-badge.is-bad { background: rgba(255, 92, 122, 0.16); color: var(--fs-bad); }
.qc-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 9px; overflow: hidden; }
.qc-logo img { width: 70%; height: 70%; display: block; }
.qc-target { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px; border-radius: 12px; background: rgba(6, 11, 22, 0.5); border: 1px solid rgba(147, 163, 188, 0.16); font-size: 12px; color: var(--fs-muted); }
.qc-target[hidden] { display: none; }
.qc-target b { display: block; color: var(--fs-text); font-size: 13px; line-height: 1.3; }
.qc-target .qc-logo { width: 34px; height: 34px; border-radius: 10px; }
.qc-company[hidden] { display: none; }
.qc-marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.qc-mark { display: flex; align-items: center; justify-content: center; height: 54px; padding: 0; border-radius: 12px; border: 1px solid rgba(147, 163, 188, 0.2); background: rgba(6, 11, 22, 0.5); cursor: pointer; }
.qc-mark .qc-logo { width: 36px; height: 36px; border-radius: 10px; opacity: 0.55; filter: saturate(0.6); transition: opacity .15s ease, filter .15s ease; }
.qc-mark:hover .qc-logo { opacity: 0.85; }
.qc-mark[aria-pressed="true"] { border-color: var(--fs-teal); background: rgba(18, 226, 204, 0.1); }
.qc-mark[aria-pressed="true"] .qc-logo { opacity: 1; filter: none; }
.qc-types { display: flex; gap: 8px; margin-bottom: 12px; }
.qc-types[hidden] { display: none; }
.qc-types button { flex: 1; height: 38px; border-radius: 10px; border: 1px solid rgba(147, 163, 188, 0.2); background: rgba(6, 11, 22, 0.5); color: var(--fs-muted); font: inherit; font-size: 13px; cursor: pointer; }
.qc-types button[aria-pressed="true"] { border-color: var(--fs-blue); background: var(--fs-blue-soft); color: var(--fs-text); font-weight: 600; }
.qc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.qc-result { margin: 2px 0 12px; padding: 14px; border-radius: 14px; background: rgba(6, 11, 22, 0.55); border: 1px solid rgba(147, 163, 188, 0.2); }
.qc-result.is-good { border-color: rgba(46, 229, 157, 0.4); }
.qc-result.is-warn { border-color: rgba(255, 181, 71, 0.4); }
.qc-result.is-bad { border-color: rgba(255, 92, 122, 0.45); }
.qc-big { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.qc-big span { display: block; font-size: 12px; color: var(--fs-muted); }
.qc-big b { display: block; font-size: 26px; font-weight: 700; line-height: 1.15; }
.qc-big b.is-good { color: var(--fs-good); }
.qc-big b.is-warn { color: var(--fs-warn); }
.qc-big b.is-bad { color: var(--fs-bad); }
.qc-lines { margin-top: 10px; font-size: 12px; color: var(--fs-muted); }
.qc-lines div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.qc-lines div b { color: var(--fs-text); font-weight: 600; }
.qc-note { margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--fs-warn); }
.qc-hint { margin-top: 10px; font-size: 11.5px; line-height: 1.45; color: #7E8BA3; }
.qc-full { display: block; width: 100%; padding: 6px 0 0; border: 0; background: none; color: var(--fs-teal); font: inherit; font-size: 13px; text-align: center; cursor: pointer; }
.qc-full:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .qc-pop { top: 12px; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 24px); }
}
@media (max-width: 360px) {
  .qc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .qc-pop:not([hidden]) { animation: qc-in .16s ease-out; }
  @keyframes qc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
