/* Market Finder Pro — visual layer. Business styles remain in styles.css. */

body.pro-ui {
  --pro-canvas: #eef2f8;
  --pro-surface: #fbfcff;
  --pro-surface-raised: #ffffff;
  --pro-ink: #10192c;
  --pro-muted: #687289;
  --pro-faint: #8f99ad;
  --pro-line: rgba(44, 61, 96, 0.11);
  --pro-line-strong: rgba(44, 61, 96, 0.19);
  --pro-cobalt: #335cff;
  --pro-cobalt-deep: #2446cc;
  --pro-cobalt-soft: #e7ecff;
  --pro-amber: #eea63a;
  --pro-amber-soft: #fff1d9;
  --pro-green: #158568;
  --pro-green-soft: #dff4ed;
  --pro-red: #c54e5a;
  --pro-red-soft: #fbe7e9;
  --pro-curve: cubic-bezier(0.32, 0.72, 0, 1);
  min-width: 320px;
  overflow-x: hidden;
  color: var(--pro-ink);
  background:
    radial-gradient(circle at 88% -8%, rgba(51, 92, 255, 0.13), transparent 28rem),
    linear-gradient(135deg, #f3f6fb 0%, var(--pro-canvas) 72%);
  font-family: "Avenir Next", Avenir, "Segoe UI Variable", sans-serif;
}

body.pro-ui::before {
  position: fixed;
  z-index: 30;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.018;
  pointer-events: none;
}

body.pro-ui *,
body.pro-ui *::before,
body.pro-ui *::after {
  box-sizing: border-box;
}

body.pro-ui button,
body.pro-ui input,
body.pro-ui textarea,
body.pro-ui select {
  font: inherit;
}

body.pro-ui button,
body.pro-ui label[for] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.pro-ui .skip-link {
  position: fixed;
  z-index: 40;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--pro-cobalt);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
  transition:
    opacity 320ms var(--pro-curve),
    transform 320ms var(--pro-curve);
}

body.pro-ui .skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.pro-ui button:focus-visible,
body.pro-ui input:focus-visible,
body.pro-ui textarea:focus-visible,
body.pro-ui select:focus-visible,
body.pro-ui [tabindex]:focus-visible,
body.pro-ui summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pro-cobalt) 28%, transparent);
  outline-offset: 3px;
}

body.pro-ui .app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: var(--app-height);
}

body.pro-ui .sidebar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  height: calc(var(--app-height) - 28px);
  margin: 14px 0 14px 14px;
  padding: 18px 14px 16px;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 36px 42px, rgba(104, 133, 255, 0.34), transparent 8rem),
    #11182a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 24px 70px rgba(29, 42, 75, 0.14);
}

body.pro-ui .sidebar::after {
  position: absolute;
  right: -42px;
  bottom: 94px;
  width: 130px;
  height: 130px;
  border: 32px solid rgba(238, 166, 58, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body.pro-ui .brand {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0 4px 26px;
  color: #fff;
  text-decoration: none;
}

body.pro-ui .brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--pro-cobalt);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 10px 24px rgba(51, 92, 255, 0.32);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

body.pro-ui .brand-mark::after {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  border: 3px solid #11182a;
  border-radius: 50%;
  background: var(--pro-amber);
  content: "";
}

body.pro-ui .brand strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

body.pro-ui .brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.pro-ui .main-nav {
  display: grid;
  gap: 7px;
  margin: 0;
}

body.pro-ui .nav-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 50px;
  padding: 7px 10px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  transition:
    transform 520ms var(--pro-curve),
    background-color 520ms var(--pro-curve),
    color 520ms var(--pro-curve);
}

body.pro-ui .nav-item:hover {
  color: rgba(255, 255, 255, 0.88);
  transform: translateX(2px);
}

body.pro-ui .nav-item.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.pro-ui .nav-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

body.pro-ui .nav-item.is-active .nav-icon {
  background: var(--pro-cobalt);
  box-shadow: 0 7px 18px rgba(51, 92, 255, 0.32);
}

body.pro-ui .nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

body.pro-ui .nav-item b {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
}

body.pro-ui .sidebar-note {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.pro-ui .sidebar-note span {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.pro-ui .sidebar-note strong {
  display: block;
  margin-top: 9px;
  color: #fff;
  font-size: 15px;
  letter-spacing: -0.03em;
}

body.pro-ui .sidebar-note p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  line-height: 1.55;
}

body.pro-ui main {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 22px 30px 48px;
}

body.pro-ui .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: end;
  min-height: 120px;
  padding: 5px 3px 22px;
  border: 0;
  animation: pro-enter 480ms var(--pro-curve) both;
}

body.pro-ui .eyebrow {
  margin: 0 0 8px;
  color: var(--pro-cobalt);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.pro-ui h1,
body.pro-ui h2,
body.pro-ui h3,
body.pro-ui p {
  text-wrap: pretty;
}

body.pro-ui .topbar h1 {
  max-width: 760px;
  margin: 0;
  color: var(--pro-ink);
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

body.pro-ui .topbar-copy {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--pro-muted);
  font-size: 11px;
  line-height: 1.55;
}

body.pro-ui .telegram-context {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  align-self: center;
  padding: 6px 10px 6px 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--pro-muted);
  box-shadow:
    inset 0 0 0 1px var(--pro-line),
    0 8px 24px rgba(36, 52, 91, 0.06);
  font-size: 10px;
  font-weight: 700;
}

body.pro-ui .telegram-dot {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 9px;
  background: var(--tg-theme-button-color, #2aabee);
  color: var(--tg-theme-button-text-color, #fff);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

body.pro-ui .topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

body.pro-ui .button {
  display: inline-flex;
  min-height: 45px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 6px 7px 6px 17px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
  transition:
    transform 520ms var(--pro-curve),
    box-shadow 520ms var(--pro-curve),
    background-color 520ms var(--pro-curve);
}

body.pro-ui .button:active {
  transform: scale(0.975);
}

body.pro-ui .button-primary {
  background: var(--pro-cobalt);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 28px rgba(51, 92, 255, 0.24);
}

body.pro-ui .button-primary:hover {
  background: var(--pro-cobalt-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 15px 34px rgba(51, 92, 255, 0.29);
  transform: translateY(-1px);
}

body.pro-ui .button-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--pro-ink);
  box-shadow:
    inset 0 0 0 1px var(--pro-line),
    0 9px 24px rgba(36, 52, 91, 0.05);
}

body.pro-ui .button-secondary:hover {
  background: #fff;
  transform: translateY(-1px);
}

body.pro-ui .button-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  transition: transform 520ms var(--pro-curve);
}

body.pro-ui .button-secondary .button-icon {
  background: var(--pro-cobalt-soft);
  color: var(--pro-cobalt);
}

body.pro-ui .button:hover .button-icon {
  transform: translate(2px, -1px) scale(1.05);
}

body.pro-ui .view {
  min-width: 0;
}

body.pro-ui .decision-map {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 13px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(18, 27, 48, 0.055);
  box-shadow: inset 0 0 0 1px rgba(44, 61, 96, 0.05);
  animation: pro-enter 500ms 20ms var(--pro-curve) both;
}

body.pro-ui .decision-map-copy {
  padding: 13px 16px;
  border-radius: 15px;
  background: var(--pro-surface-raised);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 28px rgba(36, 52, 91, 0.06);
}

body.pro-ui .decision-map-copy span {
  display: block;
  color: var(--pro-faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.pro-ui .decision-map-copy strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  letter-spacing: -0.02em;
}

body.pro-ui .decision-map-steps {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px 0 5px;
}

body.pro-ui .decision-map-steps span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--pro-muted);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

body.pro-ui .decision-map-steps b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--pro-cobalt-soft);
  color: var(--pro-cobalt);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

body.pro-ui .decision-map-steps i {
  width: min(5vw, 76px);
  height: 1px;
  background: linear-gradient(90deg, var(--pro-line-strong), transparent);
}

body.pro-ui .live-search {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(340px, 1.4fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 13px;
  padding: 19px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 10%, rgba(238, 166, 58, 0.18), transparent 15rem),
    linear-gradient(135deg, #111a31, #182344);
  color: #fff;
  box-shadow: 0 18px 46px rgba(27, 40, 78, 0.15);
  animation: pro-enter 510ms 30ms var(--pro-curve) both;
}

body.pro-ui .live-search-copy h2 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

body.pro-ui .live-search-copy p {
  max-width: 390px;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  line-height: 1.5;
}

body.pro-ui .live-kicker {
  color: #8ba4ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.pro-ui .live-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 5px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

body.pro-ui .live-search-form input {
  min-height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 11px;
}

body.pro-ui .live-search-form .button {
  min-height: 44px;
}

body.pro-ui .api-status {
  display: inline-flex;
  min-width: 120px;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.6);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

body.pro-ui .api-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58d1ad;
  box-shadow: 0 0 0 4px rgba(88, 209, 173, 0.12);
}

body.pro-ui .api-status.is-loading i {
  background: var(--pro-amber);
  animation: api-pulse 900ms ease-in-out infinite;
}

body.pro-ui .api-status.is-error {
  color: #ffadb5;
}

body.pro-ui .api-status.is-error i {
  background: #ff6f7d;
}

body.pro-ui .filter-passport {
  padding: 8px;
  border: 0;
  border-radius: 26px;
  background: rgba(18, 27, 48, 0.055);
  box-shadow: inset 0 0 0 1px rgba(44, 61, 96, 0.05);
  animation: pro-enter 520ms 40ms var(--pro-curve) both;
}

body.pro-ui .passport-head,
body.pro-ui .filter-grid {
  border: 0;
  background: var(--pro-surface);
}

body.pro-ui .passport-head {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 19px 20px 16px;
  border-radius: 19px 19px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.pro-ui .passport-head h2,
body.pro-ui .panel-toolbar h2,
body.pro-ui .candidates-head h2 {
  margin: 0;
  color: var(--pro-ink);
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

body.pro-ui .profile-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: var(--pro-canvas);
}

body.pro-ui .profile-button {
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pro-muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  transition:
    transform 460ms var(--pro-curve),
    background-color 460ms var(--pro-curve),
    color 460ms var(--pro-curve),
    box-shadow 460ms var(--pro-curve);
}

body.pro-ui .profile-button.is-active {
  background: var(--pro-surface-raised);
  color: var(--pro-cobalt);
  box-shadow: 0 5px 15px rgba(36, 52, 91, 0.08);
}

body.pro-ui .profile-button:active {
  transform: scale(0.97);
}

body.pro-ui .text-button {
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pro-cobalt);
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  transition:
    transform 420ms var(--pro-curve),
    background-color 420ms var(--pro-curve);
}

body.pro-ui .text-button:hover {
  background: var(--pro-cobalt-soft);
}

body.pro-ui .text-button:active {
  transform: scale(0.97);
}

body.pro-ui .filter-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.85fr) 2fr;
  gap: 0;
  padding: 0 20px 20px;
  border-radius: 0 0 19px 19px;
}

body.pro-ui .filter-cell {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 12px 13px;
  border: 0;
  border-left: 1px solid var(--pro-line);
  background: transparent;
}

body.pro-ui .filter-cell:first-child {
  border-left: 0;
}

body.pro-ui .filter-cell > span,
body.pro-ui .form-grid label > span,
body.pro-ui .comment-field > span {
  color: var(--pro-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

body.pro-ui input,
body.pro-ui textarea,
body.pro-ui select {
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: #f3f5fa;
  color: var(--pro-ink);
  box-shadow:
    inset 0 0 0 1px var(--pro-line),
    inset 0 1px 2px rgba(25, 39, 73, 0.025);
  font-size: 11px;
  font-weight: 620;
  transition:
    box-shadow 480ms var(--pro-curve),
    background-color 480ms var(--pro-curve),
    transform 480ms var(--pro-curve);
}

body.pro-ui input,
body.pro-ui select {
  min-height: 39px;
  padding: 8px 10px;
}

body.pro-ui textarea {
  min-height: 78px;
  padding: 11px;
  line-height: 1.45;
  resize: vertical;
}

body.pro-ui input:hover,
body.pro-ui textarea:hover,
body.pro-ui select:hover {
  background: #f7f8fc;
}

body.pro-ui input:focus,
body.pro-ui textarea:focus,
body.pro-ui select:focus {
  background: #fff;
  box-shadow:
    inset 0 0 0 1.5px var(--pro-cobalt),
    0 0 0 4px rgba(51, 92, 255, 0.09);
}

body.pro-ui input::placeholder,
body.pro-ui textarea::placeholder {
  color: #9aa3b7;
  font-weight: 500;
}

body.pro-ui .range-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 5px;
  align-items: center;
}

body.pro-ui .range-inputs i {
  color: var(--pro-faint);
  font-size: 9px;
}

body.pro-ui .summary-strip {
  display: grid;
  grid-template-columns: 0.72fr 0.72fr 0.82fr 1.4fr;
  gap: 8px;
  margin: 13px 0;
  padding: 0;
  border: 0;
  background: transparent;
  animation: pro-enter 540ms 60ms var(--pro-curve) both;
}

body.pro-ui .summary-strip > div {
  position: relative;
  min-height: 88px;
  padding: 16px 17px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 0 0 1px var(--pro-line),
    0 12px 32px rgba(36, 52, 91, 0.055);
}

body.pro-ui .summary-strip > div::after {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pro-cobalt);
  box-shadow: 0 0 0 5px rgba(51, 92, 255, 0.08);
  content: "";
}

body.pro-ui .summary-strip > div:nth-child(2)::after {
  background: var(--pro-green);
  box-shadow: 0 0 0 5px rgba(21, 133, 104, 0.09);
}

body.pro-ui .summary-strip > div:nth-child(3)::after {
  background: var(--pro-amber);
  box-shadow: 0 0 0 5px rgba(238, 166, 58, 0.1);
}

body.pro-ui .summary-strip span {
  display: block;
  max-width: 80%;
  color: var(--pro-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

body.pro-ui .summary-strip strong {
  display: block;
  margin-top: 12px;
  color: var(--pro-ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

body.pro-ui .summary-strip .summary-result {
  background:
    radial-gradient(circle at 100% 0, rgba(238, 166, 58, 0.18), transparent 9rem),
    #141c30;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(23, 35, 66, 0.16);
}

body.pro-ui .summary-result span {
  color: rgba(255, 255, 255, 0.48);
}

body.pro-ui .summary-result strong {
  color: #fff;
  font-size: 24px;
}

body.pro-ui .summary-strip .summary-result::after {
  background: var(--pro-amber);
  box-shadow: 0 0 0 5px rgba(238, 166, 58, 0.11);
}

body.pro-ui .workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 13px;
  align-items: start;
  animation: pro-enter 560ms 80ms var(--pro-curve) both;
}

body.pro-ui .data-panel,
body.pro-ui .analysis-panel {
  border: 0;
  background: rgba(18, 27, 48, 0.055);
  box-shadow: inset 0 0 0 1px rgba(44, 61, 96, 0.05);
}

body.pro-ui .data-panel {
  padding: 8px;
  overflow: hidden;
  border-radius: 26px;
}

body.pro-ui .panel-toolbar,
body.pro-ui .table-wrap,
body.pro-ui .panel-footer {
  background: var(--pro-surface);
}

body.pro-ui .panel-toolbar {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 20px 15px;
  border: 0;
  border-radius: 19px 19px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.pro-ui .toolbar-controls {
  display: flex;
  gap: 9px;
  align-items: center;
}

body.pro-ui .search-box {
  position: relative;
}

body.pro-ui .search-box::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 10px;
  height: 10px;
  border: 1.4px solid var(--pro-muted);
  border-radius: 50%;
  content: "";
  transform: translateY(-62%);
  pointer-events: none;
}

body.pro-ui .search-box::after {
  position: absolute;
  z-index: 1;
  top: 23px;
  left: 21px;
  width: 5px;
  height: 1.4px;
  background: var(--pro-muted);
  content: "";
  transform: rotate(45deg);
  pointer-events: none;
}

body.pro-ui .search-box input {
  width: 188px;
  padding-left: 32px;
  border-radius: 999px;
  background: var(--pro-canvas);
}

body.pro-ui .toggle {
  display: inline-flex;
  min-height: 39px;
  gap: 7px;
  align-items: center;
  padding: 5px 11px 5px 7px;
  border-radius: 999px;
  background: var(--pro-canvas);
  color: var(--pro-muted);
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

body.pro-ui .toggle input {
  position: relative;
  width: 30px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  appearance: none;
  border-radius: 999px;
  background: #d6dcea;
  box-shadow: none;
  transition: background-color 420ms var(--pro-curve);
}

body.pro-ui .toggle input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(25, 39, 73, 0.16);
  content: "";
  transition: transform 420ms var(--pro-curve);
}

body.pro-ui .toggle input:checked {
  background: var(--pro-cobalt);
}

body.pro-ui .toggle input:checked::after {
  transform: translateX(12px);
}

body.pro-ui .table-wrap {
  padding: 0 14px;
  overflow-x: auto;
}

body.pro-ui table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
  table-layout: auto;
}

body.pro-ui thead th {
  padding: 10px 9px 6px;
  border: 0;
  background: transparent;
  color: var(--pro-faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

body.pro-ui thead th:first-child {
  width: 34%;
  text-align: left;
}

body.pro-ui tbody tr {
  position: relative;
  cursor: pointer;
  transition:
    transform 540ms var(--pro-curve),
    filter 540ms var(--pro-curve);
}

body.pro-ui tbody tr:hover {
  background: transparent;
  transform: translateY(-2px);
}

body.pro-ui tbody tr:active {
  transform: translateY(0) scale(0.995);
}

body.pro-ui tbody td {
  padding: 12px 9px;
  border: 0;
  background: #f3f5fa;
  color: var(--pro-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(44, 61, 96, 0.025);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

body.pro-ui tbody td:first-child {
  border-radius: 13px 0 0 13px;
  font-family: "Avenir Next", Avenir, "Segoe UI Variable", sans-serif;
  text-align: left;
  white-space: normal;
}

body.pro-ui tbody td:last-child {
  border-radius: 0 13px 13px 0;
}

body.pro-ui tbody tr:hover td {
  background: #eef1f9;
}

body.pro-ui tbody tr.is-selected td {
  background: var(--pro-cobalt-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(51, 92, 255, 0.06);
}

body.pro-ui tbody td strong {
  display: block;
  color: var(--pro-ink);
  font-size: 10px;
  font-weight: 720;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.pro-ui tbody td small {
  display: block;
  margin-top: 4px;
  color: var(--pro-faint);
  font-size: 7px;
  font-weight: 600;
  line-height: 1.3;
}

body.pro-ui .status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--pro-green-soft);
  color: var(--pro-green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.pro-ui .status-pill.is-rejected {
  background: var(--pro-red-soft);
  color: var(--pro-red);
}

body.pro-ui .empty-state {
  margin: 9px 0 14px;
  padding: 44px 20px;
  border: 0;
  border-radius: 16px;
  background: #f3f5fa;
  color: var(--pro-muted);
  text-align: center;
}

body.pro-ui .empty-state strong {
  display: block;
  color: var(--pro-ink);
  font-size: 13px;
}

body.pro-ui .empty-state span {
  display: block;
  margin-top: 6px;
  font-size: 10px;
}

body.pro-ui .panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 14px;
  border: 0;
  border-radius: 0 0 19px 19px;
  color: var(--pro-faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

body.pro-ui .analysis-panel {
  position: sticky;
  top: 14px;
  max-height: calc(var(--app-height) - 28px);
  padding: 8px;
  overflow: auto;
  border-radius: 26px;
  scrollbar-width: thin;
  scrollbar-color: rgba(51, 92, 255, 0.28) transparent;
}

body.pro-ui .analysis-panel::-webkit-scrollbar {
  width: 5px;
}

body.pro-ui .analysis-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(51, 92, 255, 0.24);
}

body.pro-ui .analysis-placeholder,
body.pro-ui #analysisForm {
  border-radius: 19px;
  background: var(--pro-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.pro-ui .analysis-placeholder {
  display: flex;
  min-height: 480px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 34px;
  text-align: left;
}

body.pro-ui .placeholder-index {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 18px;
  background: var(--pro-cobalt);
  color: #fff;
  box-shadow: 0 15px 34px rgba(51, 92, 255, 0.24);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 20px;
}

body.pro-ui .analysis-placeholder h2 {
  max-width: 260px;
  margin: 0;
  color: var(--pro-ink);
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

body.pro-ui .analysis-placeholder > p:not(.eyebrow) {
  max-width: 280px;
  margin: 13px 0 0;
  color: var(--pro-muted);
  font-size: 10px;
  line-height: 1.6;
}

body.pro-ui .placeholder-route {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: center;
  margin-top: 34px;
}

body.pro-ui .placeholder-route span {
  display: grid;
  min-width: 38px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--pro-canvas);
  color: var(--pro-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 700;
}

body.pro-ui .placeholder-route i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--pro-line-strong), transparent);
}

body.pro-ui #analysisForm {
  overflow: hidden;
}

body.pro-ui .analysis-head {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border: 0;
}

body.pro-ui .analysis-head h2 {
  max-width: 270px;
  margin: 0;
  color: var(--pro-ink);
  font-size: 20px;
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

body.pro-ui .check-rail {
  display: flex;
  gap: 5px;
  padding: 0 20px 15px;
  overflow-x: auto;
  border: 0;
  background: transparent;
  scrollbar-width: none;
}

body.pro-ui .check-rail::-webkit-scrollbar {
  display: none;
}

body.pro-ui .check-rail span {
  display: inline-flex;
  min-height: 23px;
  gap: 4px;
  align-items: center;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--pro-green-soft);
  color: var(--pro-green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
  font-weight: 750;
  white-space: nowrap;
}

body.pro-ui .check-rail .is-fail {
  background: var(--pro-red-soft);
  color: var(--pro-red);
}

body.pro-ui .analysis-route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 0 20px 5px;
  padding: 4px;
  border-radius: 14px;
  background: var(--pro-canvas);
}

body.pro-ui .analysis-route span {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr;
  gap: 5px;
  align-items: center;
  padding: 8px 6px;
  border-radius: 10px;
  color: var(--pro-faint);
  font-size: 7px;
  font-weight: 700;
  transition:
    background-color 520ms var(--pro-curve),
    color 520ms var(--pro-curve),
    transform 520ms var(--pro-curve);
}

body.pro-ui .analysis-route b {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
}

body.pro-ui .analysis-route span.is-complete {
  background: var(--pro-surface-raised);
  color: var(--pro-green);
  box-shadow: 0 5px 14px rgba(36, 52, 91, 0.06);
}

body.pro-ui .analysis-route span.is-current {
  background: var(--pro-cobalt);
  color: #fff;
  box-shadow: 0 7px 18px rgba(51, 92, 255, 0.22);
  transform: translateY(-1px);
}

body.pro-ui .form-section {
  margin: 16px 12px 0;
  padding: 8px;
  border: 0;
  border-radius: 20px;
  background: rgba(18, 27, 48, 0.055);
  box-shadow: inset 0 0 0 1px rgba(44, 61, 96, 0.045);
}

body.pro-ui .section-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 8px 13px;
}

body.pro-ui .section-heading > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 10px;
  background: var(--pro-cobalt);
  color: #fff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 750;
  box-shadow: 0 7px 16px rgba(51, 92, 255, 0.18);
}

body.pro-ui .section-heading h3 {
  margin: 0;
  color: var(--pro-ink);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

body.pro-ui .section-heading p {
  margin: 3px 0 0;
  color: var(--pro-faint);
  font-size: 8px;
}

body.pro-ui .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--pro-surface-raised);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 26px rgba(36, 52, 91, 0.045);
}

body.pro-ui .form-grid label,
body.pro-ui .comment-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

body.pro-ui .form-grid .span-2 {
  grid-column: 1 / -1;
}

body.pro-ui .check-label {
  display: flex;
  min-height: 39px;
  grid-column: 1 / -1;
  flex-direction: row !important;
  gap: 9px !important;
  align-items: center;
  padding: 7px 10px;
  border-radius: 11px;
  background: var(--pro-canvas);
  cursor: pointer;
}

body.pro-ui .check-label input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--pro-cobalt);
  box-shadow: none;
}

body.pro-ui .check-label span {
  font-family: "Avenir Next", Avenir, "Segoe UI Variable", sans-serif !important;
  font-size: 9px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.pro-ui .sourcing-box {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 13px;
  background: var(--pro-canvas);
}

body.pro-ui .sourcing-box > div > span {
  display: block;
  color: var(--pro-ink);
  font-size: 9px;
  font-weight: 750;
}

body.pro-ui .sourcing-box small {
  display: block;
  margin-top: 2px;
  color: var(--pro-faint);
  font-size: 7px;
}

body.pro-ui .sourcing-results {
  display: grid;
  gap: 6px;
}

body.pro-ui .sourcing-results[hidden] {
  display: none;
}

body.pro-ui .sourcing-message {
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--pro-amber-soft);
  color: #9a6518;
  font-size: 8px;
  font-weight: 700;
}

body.pro-ui .sourcing-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 0;
  border-radius: 12px;
  background: #f3f5fa;
  color: var(--pro-ink);
  cursor: pointer;
  text-align: left;
}

body.pro-ui .sourcing-offer strong {
  display: block;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pro-ui .sourcing-offer small {
  display: block;
  margin-top: 3px;
  color: var(--pro-faint);
  font-size: 7px;
}

body.pro-ui .sourcing-offer b {
  color: var(--pro-cobalt);
  font-size: 11px;
  white-space: nowrap;
}

body.pro-ui .economics-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 16px 20px 0;
  overflow: hidden;
  border: 0;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 36px rgba(23, 35, 66, 0.15);
}

body.pro-ui .economics-card div {
  min-height: 76px;
  padding: 14px;
  border: 0;
  background: #141c30;
}

body.pro-ui .economics-card span {
  display: block;
  color: rgba(255, 255, 255, 0.46);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

body.pro-ui .economics-card strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

body.pro-ui .economics-card strong.is-negative {
  color: #ff8993;
}

body.pro-ui .quick-verdict {
  margin: 16px 20px 0;
  padding: 16px;
  border: 0;
  border-radius: 17px;
  background: var(--pro-amber-soft);
  box-shadow: inset 0 0 0 1px rgba(185, 115, 20, 0.08);
}

body.pro-ui .quick-verdict-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

body.pro-ui .quick-verdict-head span {
  color: #a46b16;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.pro-ui .quick-verdict-head strong {
  max-width: 180px;
  color: var(--pro-red);
  font-size: 9px;
  font-weight: 750;
  text-align: right;
}

body.pro-ui .quick-verdict-head strong.is-pass {
  color: var(--pro-green);
}

body.pro-ui .quick-check-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

body.pro-ui .quick-check-list span {
  color: #8d651f;
  font-size: 8px;
  font-weight: 650;
}

body.pro-ui .quick-check-list .is-pass {
  color: var(--pro-green);
}

body.pro-ui .audit-details {
  margin: 16px 20px 0;
  overflow: hidden;
  border: 0;
  border-radius: 17px;
  background: var(--pro-canvas);
  box-shadow: inset 0 0 0 1px var(--pro-line);
}

body.pro-ui .audit-details summary {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 15px 42px 15px 16px;
  cursor: pointer;
  list-style: none;
}

body.pro-ui .audit-details summary::-webkit-details-marker {
  display: none;
}

body.pro-ui .audit-details summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: var(--pro-surface-raised);
  color: var(--pro-cobalt);
  content: "+";
  font-family: "SFMono-Regular", Consolas, monospace;
  transform: translateY(-50%);
  transition: transform 520ms var(--pro-curve);
}

body.pro-ui .audit-details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

body.pro-ui .audit-details summary span {
  color: var(--pro-ink);
  font-size: 10px;
  font-weight: 750;
}

body.pro-ui .audit-details summary small {
  margin-top: 4px;
  color: var(--pro-faint);
  font-size: 7px;
}

body.pro-ui .audit-fields {
  display: grid;
  gap: 9px;
  padding: 4px 12px 12px;
}

body.pro-ui .audit-fields > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.pro-ui .audit-fields > label > span {
  color: var(--pro-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.pro-ui .comment-field {
  margin: 16px 20px 0;
}

body.pro-ui .button-full {
  width: calc(100% - 40px);
  margin: 16px 20px 20px;
  padding-right: 17px;
}

body.pro-ui .import-note {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 13px;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.53);
  color: var(--pro-faint);
  box-shadow: inset 0 0 0 1px var(--pro-line);
  font-size: 8px;
}

body.pro-ui .import-note strong {
  color: var(--pro-ink);
  font-size: 9px;
  white-space: nowrap;
}

body.pro-ui .candidates-head {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 13px;
  padding: 22px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 0 0 1px var(--pro-line),
    0 12px 32px rgba(36, 52, 91, 0.055);
}

body.pro-ui .candidates-head p:last-child {
  max-width: 370px;
  margin: 0;
  color: var(--pro-muted);
  font-size: 10px;
  line-height: 1.55;
}

body.pro-ui .candidate-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

body.pro-ui .candidate-card {
  padding: 8px;
  border: 0;
  border-radius: 24px;
  background: rgba(18, 27, 48, 0.055);
  box-shadow: inset 0 0 0 1px rgba(44, 61, 96, 0.05);
  transition:
    transform 580ms var(--pro-curve),
    box-shadow 580ms var(--pro-curve);
}

body.pro-ui .candidate-card:hover {
  transform: translateY(-3px);
}

body.pro-ui .candidate-card > header,
body.pro-ui .candidate-card > footer,
body.pro-ui .candidate-metrics {
  background: var(--pro-surface);
}

body.pro-ui .candidate-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px;
  border-radius: 17px 17px 0 0;
}

body.pro-ui .candidate-card header span {
  color: var(--pro-cobalt);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.pro-ui .candidate-card h3 {
  margin: 8px 0 0;
  color: var(--pro-ink);
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

body.pro-ui .icon-button {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--pro-canvas);
  color: var(--pro-muted);
  cursor: pointer;
  transition:
    transform 440ms var(--pro-curve),
    background-color 440ms var(--pro-curve),
    color 440ms var(--pro-curve);
}

body.pro-ui .icon-button:hover {
  background: var(--pro-red-soft);
  color: var(--pro-red);
  transform: rotate(8deg);
}

body.pro-ui .candidate-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 18px 18px;
}

body.pro-ui .candidate-metrics div {
  padding: 12px;
  background: var(--pro-canvas);
}

body.pro-ui .candidate-metrics div:first-child {
  border-radius: 12px 0 0 12px;
}

body.pro-ui .candidate-metrics div:last-child {
  border-radius: 0 12px 12px 0;
}

body.pro-ui .candidate-metrics span {
  display: block;
  color: var(--pro-faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
  text-transform: uppercase;
}

body.pro-ui .candidate-metrics strong {
  display: block;
  margin-top: 7px;
  color: var(--pro-ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

body.pro-ui .candidate-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 16px;
  border-radius: 0 0 17px 17px;
}

body.pro-ui .candidate-card footer > span {
  color: var(--pro-faint);
  font-size: 8px;
}

body.pro-ui .candidate-empty {
  padding: 70px 24px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--pro-line);
  text-align: center;
}

body.pro-ui .candidate-empty > span {
  color: var(--pro-cobalt);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.pro-ui .candidate-empty h2 {
  margin: 10px auto 20px;
  color: var(--pro-ink);
  font-size: 24px;
  letter-spacing: -0.04em;
}

body.pro-ui .toast {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 17px;
  border: 0;
  border-radius: 14px;
  background: #141c30;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 16px 44px rgba(20, 28, 48, 0.23);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 520ms var(--pro-curve),
    transform 520ms var(--pro-curve);
}

body.pro-ui .toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.pro-ui .toast.is-error {
  background: var(--pro-red);
}

body.pro-ui .toast button {
  min-height: 30px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}

html.telegram-mini-app.telegram-dark {
  color-scheme: dark;
}

html.telegram-mini-app body.pro-ui {
  --pro-canvas: var(--tg-theme-bg-color, #eef2f8);
  --pro-surface: var(--tg-theme-secondary-bg-color, #fbfcff);
  --pro-surface-raised: var(--tg-theme-section-bg-color, #fff);
  --pro-ink: var(--tg-theme-text-color, #10192c);
  --pro-muted: var(--tg-theme-subtitle-text-color, var(--tg-theme-hint-color, #687289));
  --pro-faint: var(--tg-theme-hint-color, #8f99ad);
  --pro-cobalt: var(--tg-theme-button-color, #335cff);
  --pro-cobalt-deep: var(--tg-theme-button-color, #2446cc);
  --pro-cobalt-soft: color-mix(in srgb, var(--pro-cobalt) 15%, var(--pro-surface));
  --pro-amber-soft: color-mix(in srgb, var(--pro-amber) 17%, var(--pro-surface));
  --pro-green-soft: color-mix(in srgb, var(--pro-green) 15%, var(--pro-surface));
  --pro-red-soft: color-mix(in srgb, var(--pro-red) 14%, var(--pro-surface));
  --pro-line: color-mix(in srgb, var(--tg-theme-hint-color, #687289) 18%, transparent);
  --pro-line-strong: color-mix(in srgb, var(--tg-theme-hint-color, #687289) 28%, transparent);
  color: var(--pro-ink);
  background: var(--pro-canvas);
}

html.telegram-mini-app body.pro-ui .topbar h1,
html.telegram-mini-app body.pro-ui .passport-head h2,
html.telegram-mini-app body.pro-ui .panel-toolbar h2,
html.telegram-mini-app body.pro-ui .analysis-head h2,
html.telegram-mini-app body.pro-ui .analysis-placeholder h2,
html.telegram-mini-app body.pro-ui .section-heading h3,
html.telegram-mini-app body.pro-ui .summary-strip strong,
html.telegram-mini-app body.pro-ui .candidate-card h3 {
  color: var(--pro-ink);
}

html.telegram-mini-app body.pro-ui .summary-strip .summary-result strong {
  color: #fff;
}

html.telegram-mini-app body.pro-ui input,
html.telegram-mini-app body.pro-ui textarea,
html.telegram-mini-app body.pro-ui select,
html.telegram-mini-app body.pro-ui tbody td,
html.telegram-mini-app body.pro-ui .form-grid,
html.telegram-mini-app body.pro-ui .passport-head,
html.telegram-mini-app body.pro-ui .filter-grid,
html.telegram-mini-app body.pro-ui .panel-toolbar,
html.telegram-mini-app body.pro-ui .table-wrap,
html.telegram-mini-app body.pro-ui .panel-footer,
html.telegram-mini-app body.pro-ui .analysis-placeholder,
html.telegram-mini-app body.pro-ui #analysisForm {
  border-color: transparent;
  background: var(--pro-surface);
  color: var(--pro-ink);
}

html.telegram-mini-app body.pro-ui tbody tr {
  background: var(--pro-surface);
}

@keyframes pro-enter {
  from {
    opacity: 0.42;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  body.pro-ui .app-shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  body.pro-ui main {
    padding-right: 22px;
    padding-left: 22px;
  }

  body.pro-ui .filter-grid {
    grid-template-columns: 1.2fr repeat(3, 0.8fr);
  }

  body.pro-ui .filter-cell-wide {
    grid-column: 1 / -1;
    border-top: 1px solid var(--pro-line);
    border-left: 0;
  }

  body.pro-ui .workspace-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  }

  body.pro-ui thead th:nth-child(5),
  body.pro-ui tbody td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 980px) {
  body.pro-ui {
    background: var(--pro-canvas);
  }

  body.pro-ui .app-shell {
    display: block;
  }

  body.pro-ui .sidebar {
    position: fixed;
    z-index: 10;
    top: auto;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 5px;
    overflow: visible;
    border-radius: 18px;
    background: rgba(17, 24, 42, 0.92);
    backdrop-filter: blur(18px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 18px 48px rgba(17, 24, 42, 0.28);
  }

  body.pro-ui .sidebar::after,
  body.pro-ui .brand,
  body.pro-ui .sidebar-note {
    display: none;
  }

  body.pro-ui .main-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  body.pro-ui .nav-item {
    min-height: 48px;
    grid-template-columns: 29px auto auto;
    justify-content: center;
    border-radius: 14px;
    font-size: 10px;
  }

  body.pro-ui .nav-icon {
    width: 29px;
    height: 29px;
  }

  body.pro-ui main {
    width: 100%;
    padding: 18px 16px calc(94px + env(safe-area-inset-bottom, 0px));
  }

  body.pro-ui .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    min-height: 0;
    padding: 5px 0 20px;
  }

  body.pro-ui .topbar > div:first-child {
    grid-column: 1 / -1;
  }

  body.pro-ui .topbar h1 {
    max-width: 620px;
    font-size: clamp(30px, 8vw, 42px);
  }

  body.pro-ui .topbar-copy {
    max-width: 620px;
  }

  body.pro-ui .telegram-context {
    align-self: center;
  }

  body.pro-ui .decision-map {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  body.pro-ui .decision-map-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body.pro-ui .decision-map-copy strong {
    margin: 0;
  }

  body.pro-ui .decision-map-steps {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 10px 8px;
  }

  body.pro-ui .decision-map-steps span {
    justify-content: center;
    font-size: 7px;
  }

  body.pro-ui .decision-map-steps i {
    display: none;
  }

  body.pro-ui .decision-map {
    overflow: hidden;
  }

  body.pro-ui .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.pro-ui .filter-cell {
    border-top: 1px solid var(--pro-line);
    border-left: 0;
  }

  body.pro-ui .filter-cell:nth-child(even) {
    border-left: 1px solid var(--pro-line);
  }

  body.pro-ui .filter-cell-wide {
    grid-column: 1 / -1;
    border-left: 0 !important;
  }

  body.pro-ui .workspace-grid {
    display: block;
  }

  body.pro-ui .analysis-panel {
    position: static;
    max-height: none;
    margin-top: 13px;
    overflow: visible;
  }

  body.pro-ui .candidate-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.pro-ui main {
    padding-right: 12px;
    padding-left: 12px;
  }

  body.pro-ui .topbar h1 {
    max-width: 360px;
    font-size: 34px;
  }

  body.pro-ui .topbar-copy {
    max-width: 350px;
    font-size: 10px;
  }

  body.pro-ui .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: 1 / -1;
    width: 100%;
  }

  body.pro-ui .topbar-actions .button {
    width: 100%;
  }

  body.pro-ui .telegram-context[hidden] + .topbar-actions {
    grid-column: 1 / -1;
  }

  body.pro-ui .decision-map-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  body.pro-ui .decision-map-copy strong {
    margin-top: 5px;
  }

  body.pro-ui .live-search {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  body.pro-ui .api-status {
    justify-content: flex-start;
  }

  body.pro-ui .passport-head,
  body.pro-ui .panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  body.pro-ui .profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
  }

  body.pro-ui .summary-strip {
    grid-template-columns: 1fr 1fr;
  }

  body.pro-ui .summary-strip .summary-result {
    grid-column: 1 / -1;
  }

  body.pro-ui .summary-strip > div {
    min-height: 86px;
  }

  body.pro-ui .toolbar-controls {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  body.pro-ui .search-box input {
    width: 100%;
  }

  body.pro-ui .table-wrap {
    padding: 8px 10px 10px;
    overflow: visible;
  }

  body.pro-ui table,
  body.pro-ui tbody {
    display: block;
  }

  body.pro-ui thead {
    display: none;
  }

  body.pro-ui tbody {
    display: grid;
    gap: 8px;
  }

  body.pro-ui tbody tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border-radius: 16px;
    background: #f3f5fa;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 0 0 1px var(--pro-line);
  }

  body.pro-ui tbody tr:hover {
    transform: none;
  }

  body.pro-ui tbody td,
  body.pro-ui tbody td:first-child,
  body.pro-ui tbody td:last-child {
    display: block;
    padding: 11px 12px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
  }

  body.pro-ui tbody tr.is-selected td {
    background: transparent;
    box-shadow: none;
  }

  body.pro-ui tbody tr.is-selected {
    background: var(--pro-cobalt-soft);
    box-shadow:
      inset 0 0 0 1.5px color-mix(in srgb, var(--pro-cobalt) 34%, transparent),
      0 10px 24px rgba(51, 92, 255, 0.08);
  }

  body.pro-ui tbody td:first-child {
    position: relative;
    grid-column: 1 / -1;
    padding: 15px 45px 12px 14px;
  }

  body.pro-ui tbody td:first-child::after {
    position: absolute;
    top: 50%;
    right: 14px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: #fff;
    color: var(--pro-cobalt);
    content: "→";
    font-family: "SFMono-Regular", Consolas, monospace;
    transform: translateY(-50%);
  }

  body.pro-ui tbody td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--pro-faint);
    content: attr(data-label);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.pro-ui tbody td:first-child::before,
  body.pro-ui tbody td:last-child::before {
    display: none;
  }

  body.pro-ui tbody td:nth-child(5),
  body.pro-ui tbody td:nth-child(6) {
    display: none;
  }

  body.pro-ui tbody td:last-child {
    position: absolute;
    top: 11px;
    right: 50px;
    padding: 0;
  }

  body.pro-ui .panel-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  body.pro-ui .analysis-panel {
    padding: 5px;
    border-radius: 21px;
  }

  body.pro-ui .analysis-placeholder {
    min-height: 390px;
    padding: 28px;
  }

  body.pro-ui .economics-card {
    grid-template-columns: repeat(2, 1fr);
  }

  body.pro-ui .candidate-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  body.pro-ui .candidate-metrics div:first-child {
    border-radius: 12px 0 0 0;
  }

  body.pro-ui .candidate-metrics div:nth-child(2) {
    border-radius: 0 12px 0 0;
  }

  body.pro-ui .candidate-metrics div:nth-child(3) {
    border-radius: 0 0 0 12px;
  }

  body.pro-ui .candidate-metrics div:last-child {
    border-radius: 0 0 12px 0;
  }
}

@media (max-width: 430px) {
  body.pro-ui .topbar {
    display: flex;
    flex-direction: column;
  }

  body.pro-ui .telegram-context {
    order: 2;
  }

  body.pro-ui .topbar-actions {
    order: 3;
  }

  body.pro-ui .filter-grid {
    grid-template-columns: 1fr 1fr;
    padding-right: 12px;
    padding-left: 12px;
  }

  body.pro-ui .filter-cell {
    padding-right: 8px;
    padding-left: 8px;
  }

  body.pro-ui .filter-cell:first-child,
  body.pro-ui .filter-cell-wide {
    grid-column: 1 / -1;
  }

  body.pro-ui .filter-cell:nth-child(2) {
    border-left: 0;
  }

  body.pro-ui .filter-cell:nth-child(3) {
    border-left: 1px solid var(--pro-line);
  }

  body.pro-ui .summary-strip strong {
    font-size: 18px;
  }

  body.pro-ui .form-grid {
    grid-template-columns: 1fr;
  }

  body.pro-ui .form-grid .span-2 {
    grid-column: auto;
  }

  body.pro-ui .live-search {
    padding: 17px;
  }

  body.pro-ui .live-search-form {
    grid-template-columns: 1fr;
  }

  body.pro-ui .live-search-form .button {
    width: 100%;
  }

  body.pro-ui .sourcing-box {
    align-items: stretch;
    flex-direction: column;
  }

  body.pro-ui .analysis-route {
    margin-right: 12px;
    margin-left: 12px;
  }

  body.pro-ui .analysis-route span {
    display: grid;
    min-height: 39px;
    grid-template-columns: 1fr;
    gap: 2px;
    justify-content: center;
    padding: 7px 4px;
    font-size: 6.5px;
    text-align: center;
  }

  body.pro-ui .analysis-route b {
    font-size: 6px;
  }

  body.pro-ui .form-section {
    margin-right: 8px;
    margin-left: 8px;
  }

  body.pro-ui .economics-card,
  body.pro-ui .quick-verdict,
  body.pro-ui .audit-details,
  body.pro-ui .comment-field {
    margin-right: 12px;
    margin-left: 12px;
  }

  body.pro-ui .button-full {
    width: calc(100% - 24px);
    margin-right: 12px;
    margin-left: 12px;
  }
}

@media (max-width: 980px) {
  html.telegram-mini-app body.pro-ui .sidebar {
    background: color-mix(in srgb, var(--pro-surface) 88%, transparent);
    box-shadow:
      inset 0 0 0 1px var(--pro-line),
      0 18px 48px rgba(17, 24, 42, 0.18);
  }

  html.telegram-mini-app body.pro-ui .nav-item {
    color: var(--pro-muted);
  }

  html.telegram-mini-app body.pro-ui .nav-item.is-active {
    background: var(--pro-cobalt);
    color: var(--tg-theme-button-text-color, #fff);
  }

  html.telegram-mini-app body.pro-ui.telegram-analysis-open .sidebar,
  html.telegram-mini-app body.pro-ui.telegram-analysis-open .topbar,
  html.telegram-mini-app body.pro-ui.telegram-analysis-open .decision-map,
  html.telegram-mini-app body.pro-ui.telegram-analysis-open .live-search,
  html.telegram-mini-app body.pro-ui.telegram-analysis-open .filter-passport,
  html.telegram-mini-app body.pro-ui.telegram-analysis-open .summary-strip,
  html.telegram-mini-app body.pro-ui.telegram-analysis-open .data-panel,
  html.telegram-mini-app body.pro-ui.telegram-analysis-open .import-note {
    display: none;
  }

  html.telegram-mini-app body.pro-ui.telegram-analysis-open main {
    padding: 8px 8px calc(26px + var(--tg-content-safe-area-inset-bottom, 0px));
  }

  html.telegram-mini-app body.pro-ui.telegram-analysis-open .workspace-grid {
    display: block;
  }

  html.telegram-mini-app body.pro-ui.telegram-analysis-open .analysis-panel {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  html.telegram-mini-app body.pro-ui.telegram-analysis-open #analysisForm {
    border-radius: 18px;
  }

  html.telegram-mini-app body.pro-ui #saveCandidate {
    display: none;
  }
}

@keyframes api-pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pro-ui *,
  body.pro-ui *::before,
  body.pro-ui *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
