:root {
  color-scheme: dark;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.pq-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 0 8%, rgba(1, 94, 234, 0.16), transparent 30rem),
    radial-gradient(circle at 100% 18%, rgba(0, 225, 250, 0.08), transparent 28rem),
    linear-gradient(180deg, #05070b 0%, #0b0d10 46%, #05070b 100%);
  color: #f1f5f9;
}

.pq-site-shell {
  min-height: 100vh;
}

.pq-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(12, 13, 15, 0.92);
  backdrop-filter: blur(18px);
}

.pq-header-accent {
  height: 0.28rem;
  background: linear-gradient(90deg, #015eea, #00e1fa);
  box-shadow: 0 0 24px rgba(0, 225, 250, 0.22);
}

.pq-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.65rem;
  width: min(100%, 108rem);
  min-height: 4.75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pq-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding-right: 1.45rem;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
}

.pq-header-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.05rem;
  height: 3.05rem;
  flex: 0 0 auto;
}

.pq-header-mark picture,
.pq-header-mark img {
  width: 3.05rem;
  height: 3.05rem;
  display: block;
}

.pq-header-mark img {
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 225, 250, 0.2));
}

.pq-header-name {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.pq-header-nav {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.pq-header-nav::-webkit-scrollbar {
  display: none;
}

.pq-header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 4.75rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 160ms ease;
}

.pq-header-nav a:hover,
.pq-header-nav a:focus-visible,
.pq-header-nav a.is-active {
  color: #fff;
  outline: none;
}

.pq-header-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.72rem;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #015eea, #00e1fa);
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.pq-header-nav a:hover::after,
.pq-header-nav a:focus-visible::after,
.pq-header-nav a.is-active::after {
  opacity: 1;
  transform: translateY(0);
}

.pq-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.pq-header-login {
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.pq-header-login:hover,
.pq-header-login:focus-visible {
  color: #99f6ff;
  outline: none;
}

.pq-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #015eea, #00e1fa);
  padding: 0.56rem 1.15rem;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(1, 94, 234, 0.18);
  transition: filter 160ms ease, transform 160ms ease;
}

.pq-header-button:hover,
.pq-header-button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  outline: none;
}

.pq-header-button.secondary {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: #e2e8f0;
  box-shadow: none;
}

.pq-header-button.secondary:hover,
.pq-header-button.secondary:focus-visible {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(1, 94, 234, 0.12);
}

.pq-app-shell {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  min-height: 100vh;
}

.pq-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100vh;
  padding: 1rem;
  border-right: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(5, 7, 11, 0.84);
  backdrop-filter: blur(18px);
}

.pq-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.pq-brand:hover {
  background: rgba(255, 255, 255, 0.035);
}

.pq-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(1, 94, 234, 0.95), rgba(0, 225, 250, 0.86));
  box-shadow: 0 18px 50px rgba(1, 94, 234, 0.22);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.pq-brand-name,
.pq-brand-subtitle {
  display: block;
  line-height: 1.1;
}

.pq-brand-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.pq-brand-subtitle {
  margin-top: 0.18rem;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 600;
}

.pq-nav {
  display: grid;
  gap: 0.35rem;
}

.pq-nav-item {
  display: flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 650;
  transition: 160ms ease;
}

.pq-nav-item:hover,
.pq-nav-item:focus-visible {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(1, 94, 234, 0.11);
  color: #fff;
  outline: none;
}

.pq-sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.pq-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  background: rgba(1, 94, 234, 0.08);
  padding: 0.36rem 0.62rem;
  color: #bfdbfe;
  font-size: 0.72rem;
  font-weight: 700;
}

.pq-status-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #00e1fa;
  box-shadow: 0 0 0 0.25rem rgba(0, 225, 250, 0.1);
}

.pq-main {
  min-width: 0;
}

.pq-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(18px);
}

.pq-topbar-kicker {
  color: #60a5fa;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pq-topbar-title {
  margin-top: 0.1rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 750;
}

.pq-auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.pq-auth-link {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pq-auth-landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 29rem);
  align-items: center;
  gap: clamp(3rem, 9vw, 10rem);
  min-height: calc(100vh - 7rem);
  padding: clamp(4rem, 12vh, 9rem) clamp(1.25rem, 6vw, 4.5rem);
}

.pq-auth-copy {
  max-width: 46rem;
}

.pq-auth-copy h1 {
  margin-top: 0.95rem;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.98;
}

.pq-auth-copy p {
  margin-top: 1.35rem;
  max-width: 46rem;
  color: #dbeafe;
  font-size: clamp(0.98rem, 1.25vw, 1.18rem);
  line-height: 1.55;
}

.pq-auth-card {
  display: grid;
  gap: 1.35rem;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.55rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    rgba(15, 15, 15, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 30px 80px rgba(0, 0, 0, 0.35);
  padding: clamp(1.6rem, 3vw, 2.35rem);
}

.pq-auth-field {
  display: grid;
  gap: 0.55rem;
}

.pq-auth-field span {
  color: #dbeafe;
  font-size: 0.86rem;
  font-weight: 560;
  line-height: 1.2;
}

.pq-auth-field input {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.38rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.26);
  color: #f8fafc;
  font-size: 0.96rem;
  outline: none;
  padding: 0.65rem 0.78rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.pq-auth-field input:focus {
  border-color: rgba(0, 225, 250, 0.62);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.24),
    0 0 0 3px rgba(1, 94, 234, 0.16);
}

.pq-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  border-radius: 0.38rem;
  background: linear-gradient(135deg, #015eea 0%, #00e1fa 100%);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 560;
  line-height: 1.2;
  margin-top: 0.45rem;
  padding: 0.8rem 1rem;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.pq-auth-submit:hover,
.pq-auth-submit:focus-visible {
  box-shadow: 0 16px 36px rgba(1, 94, 234, 0.22);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.pq-auth-switch {
  color: #9db6d5;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 0.3rem;
  text-align: center;
}

.pq-auth-switch a {
  color: #3da8ff;
  font-weight: 650;
  text-decoration: none;
}

.pq-auth-switch a:hover,
.pq-auth-switch a:focus-visible {
  color: #8bdcff;
}

.pq-quota-modal[hidden] {
  display: none;
}

.pq-quota-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.pq-quota-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(1, 94, 234, 0.14), transparent 24rem),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.pq-quota-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.15rem;
  width: min(100%, 29rem);
  max-height: min(88vh, 44rem);
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.65rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014)),
    #101010;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 34px 100px rgba(0, 0, 0, 0.58);
  padding: clamp(1.35rem, 3vw, 2rem);
}

.pq-quota-close {
  position: absolute;
  top: 0.8rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #94a3b8;
  font-size: 1.55rem;
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease;
}

.pq-quota-close:hover,
.pq-quota-close:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.pq-quota-copy {
  padding-right: 2.25rem;
}

.pq-quota-copy h2 {
  margin-top: 0.45rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.1;
}

.pq-quota-copy p,
.pq-quota-account-note {
  color: #b9cce4;
  font-size: 0.86rem;
  line-height: 1.55;
}

.pq-quota-register {
  display: grid;
  gap: 1rem;
}

.pq-link-button {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.5rem 0.85rem;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 650;
  transition: 160ms ease;
}

.pq-link-button:hover {
  border-color: rgba(96, 165, 250, 0.26);
  background: rgba(1, 94, 234, 0.1);
  color: #fff;
}

.pq-content {
  width: min(100%, 108rem);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.pq-flash-stack {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.pq-flash {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.78rem 0.95rem;
  color: #e2e8f0;
  font-size: 0.84rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.pq-flash-error {
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
}

.pq-flash-success,
.pq-flash-message {
  border-color: rgba(74, 222, 128, 0.26);
  background: rgba(34, 197, 94, 0.08);
  color: #bbf7d0;
}

.pq-page-stack {
  display: grid;
  gap: 1.25rem;
}

.pq-home-hero {
  min-height: 23rem;
  display: grid;
  place-items: center;
  padding: clamp(1.75rem, 4.5vh, 3rem) 1rem clamp(2.2rem, 5.5vh, 4rem);
}

.pq-home-hero-inner {
  display: grid;
  justify-items: center;
  width: min(100%, 78rem);
  text-align: center;
}

.pq-home-title {
  max-width: 66rem;
  margin-top: 0;
  color: #fff;
  font-size: 2.45rem;
  line-height: 0.96;
  font-weight: 650;
  letter-spacing: 0;
}

.pq-home-subtitle {
  max-width: 57rem;
  margin-top: 1.35rem;
  color: #cbd5e1;
  font-size: 1.03rem;
  line-height: 1.65;
}

.pq-home-counter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2.45rem;
}

.pq-home-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  border: 1px solid rgba(0, 225, 250, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(0, 225, 250, 0.08), rgba(1, 94, 234, 0.08)),
    rgba(8, 24, 36, 0.76);
  padding: 0.42rem 0.75rem 0.42rem 0.52rem;
  color: #dbeafe;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.pq-home-counter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(0, 225, 250, 0.1);
  color: #00e1fa;
}

.pq-home-counter-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.pq-home-counter strong {
  color: #fff;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 650;
}

.pq-home-counter span:last-child {
  color: #f8fafc;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 560;
}

.pq-home-actions {
  justify-content: center;
  margin-top: 2.05rem;
}

@media (min-width: 768px) {
  .pq-home-title {
    font-size: 3.45rem;
  }
}

@media (min-width: 1180px) {
  .pq-home-title {
    font-size: 4.45rem;
  }
}

.pq-page-hero {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, rgba(1, 94, 234, 0.1), rgba(0, 225, 250, 0.03) 42%, rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.pq-page-hero {
  padding: clamp(1.35rem, 3vw, 2.4rem);
}

.pq-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pq-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.pq-terminal-card {
  display: grid;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1rem;
}

.pq-terminal-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding-bottom: 0.7rem;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.pq-terminal-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pq-terminal-value {
  color: #fff;
  font-weight: 800;
}

.pq-home-section {
  display: grid;
  gap: 1.2rem;
  padding: 1.2rem 0 0.2rem;
}

.pq-section-head {
  max-width: 52rem;
}

.pq-section-head h2 {
  margin-top: 0.45rem;
  color: #fff;
  font-size: 1.95rem;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: 0;
}

.pq-section-head p {
  margin-top: 0.7rem;
  color: #a6bed8;
  font-size: 0.94rem;
  line-height: 1.55;
}

.pq-how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.pq-how-step {
  position: relative;
  display: grid;
  gap: 0.85rem;
  align-content: start;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014)),
    rgba(8, 12, 18, 0.72);
  padding: 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.pq-how-step::before {
  content: "";
  position: absolute;
  top: 0;
  right: 1rem;
  left: 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 225, 250, 0.46), transparent);
}

.pq-how-step h3 {
  margin: 0;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.18;
  font-weight: 650;
}

.pq-how-step p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.55;
}

.pq-faq-list {
  display: grid;
  gap: 0.75rem;
}

.pq-faq-item {
  border: 1px solid rgba(148, 163, 184, 0.13) !important;
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(8, 12, 18, 0.72);
  padding: 0.95rem 1rem;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
}

.pq-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #f8fafc;
  font-size: 0.96rem;
  line-height: 1.25;
  font-weight: 650;
  cursor: pointer;
}

.pq-faq-item summary::-webkit-details-marker {
  display: none;
}

.pq-faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 225, 250, 0.25);
  border-radius: 999px;
  color: #99f6ff;
  font-size: 1rem;
  line-height: 1;
}

.pq-faq-item[open] summary::after {
  content: "-";
}

.pq-faq-item p {
  max-width: 62rem;
  margin-top: 0.8rem;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.58;
}

/* BrokerQuant visual compatibility for the existing PropQuant templates. */
.bg-white,
.bg-gray-50 {
  border-color: rgba(255, 255, 255, 0.07) !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
}

.bg-gray-100 {
  background-color: rgba(255, 255, 255, 0.045) !important;
}

.border,
.border-t,
.border-b,
.border-l,
.border-r,
.border-gray-100,
.border-gray-200,
.border-gray-300 {
  border-color: rgba(148, 163, 184, 0.13) !important;
}

.shadow,
.shadow-sm {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24) !important;
}

.rounded-lg,
.rounded {
  border-radius: 0.5rem !important;
}

h1,
h2,
h3,
h4,
.text-gray-900,
.text-gray-800 {
  color: #f8fafc !important;
}

.text-gray-700,
.text-gray-600 {
  color: #cbd5e1 !important;
}

.text-gray-500,
.text-gray-400 {
  color: #94a3b8 !important;
}

.text-blue-600,
.text-blue-700 {
  color: #60a5fa !important;
}

.text-green-600,
.text-green-700,
.text-green-800 {
  color: #4ade80 !important;
}

.text-red-600,
.text-red-700,
.text-red-800 {
  color: #fb7185 !important;
}

.text-amber-600,
.text-amber-700,
.text-amber-800,
.text-amber-900 {
  color: #fbbf24 !important;
}

.bg-blue-600,
.bg-gray-900 {
  border: 0 !important;
  background: linear-gradient(135deg, #015eea, #00e1fa) !important;
  color: #fff !important;
  box-shadow: 0 0 32px rgba(1, 94, 234, 0.14) !important;
}

.bg-blue-600:hover,
.bg-gray-900:hover {
  filter: brightness(1.1);
}

.bg-green-50 {
  border-color: rgba(74, 222, 128, 0.28) !important;
  background-color: rgba(34, 197, 94, 0.1) !important;
}

.bg-red-50 {
  border-color: rgba(251, 113, 133, 0.32) !important;
  background-color: rgba(251, 113, 133, 0.1) !important;
}

.bg-amber-50 {
  border-color: rgba(251, 191, 36, 0.32) !important;
  background-color: rgba(251, 191, 36, 0.1) !important;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.375rem !important;
  background-color: rgba(255, 255, 255, 0.045) !important;
  color: #f1f5f9 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.16) !important;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(1, 94, 234, 0.64) !important;
  box-shadow: 0 0 0 2px rgba(1, 94, 234, 0.18), inset 0 2px 4px rgba(0, 0, 0, 0.16) !important;
}

input::placeholder,
textarea::placeholder {
  color: #64748b !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #015eea;
}

label span,
summary {
  color: #cbd5e1;
}

details {
  border-color: rgba(148, 163, 184, 0.13) !important;
}

summary {
  transition: color 160ms ease;
}

summary:hover {
  color: #60a5fa !important;
}

table {
  color: #cbd5e1;
}

thead {
  background: rgba(255, 255, 255, 0.025);
}

th {
  color: #94a3b8 !important;
}

td {
  border-color: rgba(148, 163, 184, 0.1) !important;
  color: #cbd5e1;
}

tbody tr {
  transition: background-color 160ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.035) !important;
}

canvas {
  max-width: 100%;
}

.ranking-table {
  background: rgba(255, 255, 255, 0.02);
}

.ranking-table thead {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(1, 94, 234, 0.18), rgba(15, 23, 42, 0.96)) !important;
}

.ranking-table tbody,
.ranking-table tr {
  background: transparent !important;
}

.ranking-table td,
.ranking-table th {
  border-color: rgba(148, 163, 184, 0.12) !important;
}

.sort-header {
  color: inherit !important;
}

.sort-header.is-active {
  background: transparent !important;
  box-shadow: none !important;
}

.info-tooltip {
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.info-tooltip svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.info-tooltip::after {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background: #0b1118 !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4) !important;
}

.info-tooltip::before {
  border-bottom-color: #0b1118 !important;
}

.data-table,
.ranking-table,
table.min-w-full {
  min-width: 100%;
}

.data-table th,
.data-table td,
table.min-w-full th,
table.min-w-full td {
  padding: 0.78rem 0.9rem;
}

.max-w-md,
.max-w-3xl {
  width: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.pq-workbench {
  display: grid;
  grid-template-columns: minmax(20rem, 26rem) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.pq-workbench-left {
  position: sticky;
  top: 6.25rem;
  display: grid;
  gap: 0.85rem;
  max-height: calc(100vh - 7.25rem);
  overflow-y: auto;
  padding-right: 0.2rem;
  scrollbar-color: rgba(1, 94, 234, 0.45) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

.pq-workbench-left::-webkit-scrollbar {
  width: 7px;
}

.pq-workbench-left::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.pq-workbench-left::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(1, 94, 234, 0.8), rgba(0, 225, 250, 0.72));
  border-radius: 999px;
}

.pq-workbench-intro,
.pq-input-panel,
.pq-workbench-right,
.pq-inline-alert {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pq-workbench-intro {
  padding: 1.05rem;
}

.pq-workbench-intro h1 {
  margin-top: 0.45rem;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.08;
  font-weight: 900;
}

.pq-workbench-intro p {
  margin-top: 0.65rem;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.5;
}

.pq-variable-form {
  display: grid;
  gap: 0.85rem;
}

.pq-input-panel {
  padding: 0.95rem;
}

.pq-input-panel-head {
  margin-bottom: 0.85rem;
}

.pq-input-panel-head span {
  display: block;
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.2;
}

.pq-input-panel-head p {
  margin-top: 0.3rem;
  color: #94a3b8;
  font-size: 0.76rem;
  line-height: 1.4;
}

.pq-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.pq-field {
  display: grid;
  gap: 0.32rem;
}

.pq-field span,
.pq-radio-block > span {
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 800;
}

.pq-field input,
.pq-field select,
.pq-field textarea {
  min-height: 2.15rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.86rem;
}

.pq-radio-block {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 0.85rem;
}

.pq-radio-block label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 650;
}

.pq-compact-details {
  margin-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 0.85rem;
}

.pq-compact-details summary {
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.pq-compact-details .pq-field-grid {
  margin-top: 0.8rem;
}

.pq-mini-actions {
  display: flex;
  gap: 0.5rem;
}

.pq-mini-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 0.375rem;
  background: rgba(1, 94, 234, 0.08);
  padding: 0.42rem 0.65rem;
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 800;
}

.pq-submit-dock {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: stretch;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.75rem 0;
  backdrop-filter: none;
}

.pq-submit-dock .btn-primary {
  width: 100%;
}

.pq-workbench-right {
  min-height: calc(100vh - 8rem);
  padding: 1rem;
}

.pq-output-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 1rem;
}

.pq-output-head h2 {
  margin-top: 0.35rem;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 900;
}

.pq-output-head p {
  margin-top: 0.45rem;
  max-width: 44rem;
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.5;
}

.pq-output-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.pq-output-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pq-output-meta span {
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  background: rgba(1, 94, 234, 0.08);
  padding: 0.32rem 0.65rem;
  color: #bfdbfe;
  font-size: 0.72rem;
  font-weight: 800;
}

.pq-result-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.pq-result-summary-grid article {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.85rem;
}

.pq-output-empty {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.85rem;
}

.pq-result-summary-grid span,
.pq-output-empty span {
  display: block;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pq-result-summary-grid strong,
.pq-output-empty strong {
  display: block;
  margin-top: 0.35rem;
  color: #fff;
  font-size: 1.28rem;
  line-height: 1.1;
  font-weight: 900;
}

.pq-result-summary-grid p,
.pq-output-empty p {
  margin-top: 0.45rem;
  color: #94a3b8;
  font-size: 0.74rem;
  line-height: 1.4;
}

.pq-ranking-summary-grid {
  gap: 0.55rem;
}

.pq-ranking-summary-grid article {
  padding: 0.62rem 0.7rem;
}

.pq-ranking-summary-grid span {
  font-size: 0.58rem;
  letter-spacing: 0.075em;
}

.pq-ranking-summary-grid strong {
  margin-top: 0.24rem;
  font-size: 1.08rem;
  line-height: 1.08;
}

.pq-ranking-summary-grid p {
  margin-top: 0.28rem;
  font-size: 0.66rem;
  line-height: 1.3;
}

.pq-ranking-summary-grid .pq-best-firm-title {
  gap: 0.45rem;
  font-size: 1.05rem;
}

.pq-ranking-summary-grid .pq-firm-logo {
  width: 1.72rem;
  height: 1.72rem;
  border-radius: 0.42rem;
  font-size: 0.56rem;
}

.pq-ranking-summary-grid .pq-firm-logo img {
  padding: 0.16rem;
}

.pq-best-firm-title,
.pq-firm-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.pq-firm-cell {
  align-items: flex-start;
}

.pq-firm-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 225, 250, 0.24);
  border-radius: 0.5rem;
  background: rgba(1, 94, 234, 0.08);
  color: #99f6ff;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.pq-firm-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
}

.pq-ranking-shell {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pq-ranking-shell .overflow-x-auto {
  padding-bottom: 0.35rem;
}

.pq-broker-style-ranking {
  width: 100%;
  min-width: 76rem;
  border-collapse: separate;
  border-spacing: 0 0.72rem;
  background: transparent !important;
  color: #cbd5e1;
}

.pq-broker-style-ranking thead {
  background: transparent !important;
}

.pq-broker-style-ranking thead tr,
.pq-broker-style-ranking tbody tr {
  background: transparent !important;
}

.pq-broker-style-ranking th {
  position: relative;
  padding: 0 0.85rem 0.35rem;
  border: 0 !important;
  color: rgba(148, 163, 184, 0.78) !important;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.pq-broker-style-ranking th:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.12rem;
  right: 0;
  bottom: 0.48rem;
  width: 1px;
  background: rgba(148, 163, 184, 0.14);
}

.pq-broker-style-ranking th:nth-child(1),
.pq-broker-style-ranking td:nth-child(1) {
  width: 4.8rem;
}

.pq-broker-style-ranking th:nth-child(2),
.pq-broker-style-ranking td:nth-child(2) {
  width: 6.8rem;
}

.pq-broker-style-ranking th:nth-child(4),
.pq-broker-style-ranking td:nth-child(4) {
  width: 13rem;
}

.pq-broker-style-ranking th:nth-child(5),
.pq-broker-style-ranking td:nth-child(5),
.pq-broker-style-ranking th:nth-child(6),
.pq-broker-style-ranking td:nth-child(6) {
  width: 9.2rem;
}

.pq-broker-style-ranking th:nth-child(7),
.pq-broker-style-ranking td:nth-child(7) {
  width: 10.2rem;
}

.pq-broker-style-ranking th:nth-child(8),
.pq-broker-style-ranking td:nth-child(8) {
  width: 8.6rem;
}

.pq-broker-style-ranking td {
  position: relative;
  vertical-align: middle;
  padding: 0.95rem 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.13) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13) !important;
  background: rgba(255, 255, 255, 0.025);
  color: #cbd5e1;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.pq-broker-style-ranking td:first-child {
  border-left: 1px solid rgba(148, 163, 184, 0.13) !important;
  border-radius: 0.5rem 0 0 0.5rem;
}

.pq-broker-style-ranking td:last-child {
  border-right: 1px solid rgba(148, 163, 184, 0.13) !important;
  border-radius: 0 0.5rem 0.5rem 0;
}

.pq-broker-style-ranking td:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22%;
  right: 0;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.18), transparent);
}

.pq-broker-style-ranking tbody tr {
  min-height: 5.8rem;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 160ms ease;
}

.pq-broker-style-ranking tbody tr:hover td {
  border-color: rgba(1, 94, 234, 0.28) !important;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pq-broker-style-ranking .ranking-head {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pq-broker-style-ranking .sort-header {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit !important;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
}

.pq-broker-style-ranking .sort-header:hover,
.pq-broker-style-ranking .sort-header.is-active {
  border-color: transparent;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none;
}

.pq-broker-style-ranking .sort-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: inherit;
  font-size: 0;
}

.pq-broker-style-ranking .sort-indicator svg {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
}

.pq-broker-style-ranking .info-tooltip {
  width: 1rem;
  height: 1rem;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: 0;
  box-shadow: none !important;
  padding: 0 !important;
}

.pq-rank-cell,
.pq-score-cell,
.pq-metric-cell,
.pq-promo-cell,
.pq-action-cell {
  text-align: center;
}

.pq-rank-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#11151b, #11151b) padding-box,
    linear-gradient(135deg, #015eea, #00e1fa) border-box;
  box-shadow: 0 0 14px rgba(1, 94, 234, 0.14);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 750;
}

.pq-score-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.7rem;
  min-height: 2.18rem;
  border: 1px solid rgba(1, 94, 234, 0.48);
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 850;
  box-shadow: inset 0 0 18px rgba(1, 94, 234, 0.1);
}

.pq-challenge-cell {
  min-width: 18rem;
}

.pq-broker-style-ranking .pq-firm-cell {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.pq-broker-style-ranking .pq-firm-logo {
  width: 2.85rem;
  height: 2.85rem;
  border-color: rgba(0, 225, 250, 0.28);
  border-radius: 0.55rem;
  background: rgba(1, 94, 234, 0.1);
  box-shadow: inset 0 0 22px rgba(1, 94, 234, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
}

.pq-challenge-name {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pq-challenge-program {
  margin-top: 0.24rem;
  color: #8aa1b7;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
}

.pq-account-summary {
  margin-top: 0.48rem;
  color: #64748b;
  font-size: 0.64rem;
  line-height: 1.35;
}

.pq-account-details {
  margin-top: 0.46rem;
}

.pq-account-details summary {
  color: #38bdf8 !important;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 650;
  line-height: 1.3;
}

.pq-account-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
  max-width: 30rem;
  padding: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.025);
}

.pq-account-row {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) minmax(4rem, 0.7fr) minmax(4rem, 0.7fr);
  gap: 0.55rem;
  align-items: center;
  color: #cbd5e1;
  font-size: 0.64rem;
  line-height: 1.35;
}

.pq-account-row span {
  color: #ffffff;
  font-weight: 700;
}

.pq-account-row em {
  margin-left: 0.2rem;
  color: #64748b;
  font-style: normal;
}

.pq-account-ev {
  text-align: right;
  font-weight: 750;
}

.pq-account-ev.is-positive {
  color: #22c55e;
}

.pq-account-ev.is-negative {
  color: #fb7185;
}

.pq-metric-row {
  display: grid;
  justify-items: center;
  gap: 0.42rem;
}

.pq-metric-main {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
}

.pq-metric-main.is-muted {
  color: #64748b;
}

.pq-metric-sub {
  margin-top: 0.3rem;
  color: #74849a;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
}

.pq-approval-cell .pq-metric-main,
.pq-difficulty-value {
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: 0;
}

.pq-difficulty-value.is-easy {
  color: #22c55e;
  text-shadow: 0 0 16px rgba(34, 197, 94, 0.16);
}

.pq-difficulty-value.is-medium {
  color: #fbbf24;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.14);
}

.pq-difficulty-value.is-hard {
  color: #fb7185;
  text-shadow: 0 0 16px rgba(251, 113, 133, 0.14);
}

.pq-approval-progress {
  position: relative;
  width: min(8.6rem, 100%);
  height: 0.46rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18);
}

.pq-approval-progress span {
  display: block;
  height: 100%;
  min-width: 0.12rem;
  border-radius: inherit;
  background: linear-gradient(90deg, #015eea, #00e1fa);
  box-shadow: 0 0 14px rgba(0, 225, 250, 0.18);
}

.pq-approval-progress span.is-good {
  background: linear-gradient(90deg, #16a34a, #22c55e);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.18);
}

.pq-approval-progress span.is-warn {
  background: linear-gradient(90deg, #d97706, #fbbf24);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.16);
}

.pq-approval-progress span.is-bad {
  background: linear-gradient(90deg, #e11d48, #fb7185);
  box-shadow: 0 0 14px rgba(251, 113, 133, 0.18);
}

.pq-promo-button {
  display: inline-grid;
  min-width: 7.5rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background:
    linear-gradient(#07111f, #07111f) padding-box,
    linear-gradient(135deg, #015eea, #118bff, #00e1fa) border-box;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 225, 250, 0.08);
  transition:
    filter 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.pq-promo-button:hover,
.pq-promo-button:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 0 24px rgba(0, 225, 250, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.pq-promo-button.is-copied {
  box-shadow: 0 0 26px rgba(0, 225, 250, 0.24);
}

.pq-promo-button.is-copy-error {
  box-shadow: 0 0 26px rgba(251, 113, 133, 0.22);
}

.pq-promo-label,
.pq-promo-code {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  padding: 0.22rem 0.65rem;
  line-height: 1;
}

.pq-promo-label {
  background: linear-gradient(135deg, #015eea, #118bff 46%, #00e1fa);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pq-promo-code {
  gap: 0.34rem;
  background: rgba(3, 12, 28, 0.96);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.pq-promo-code svg {
  width: 0.85rem;
  height: 0.85rem;
  color: #00e1fa;
}

.pq-promo-empty {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.pq-visit-site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.1rem;
  min-height: 2.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#151e2e, #151e2e) padding-box,
    linear-gradient(135deg, #015eea, #00e1fa) border-box;
  box-shadow: 0 0 14px rgba(1, 94, 234, 0.1);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.pq-visit-site-button:hover,
.pq-visit-site-button:focus-visible {
  color: #dbeafe !important;
  filter: brightness(1.08);
  box-shadow: 0 0 20px rgba(0, 225, 250, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.pq-visit-site-button.is-disabled {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  color: #64748b !important;
  cursor: not-allowed;
}

.pq-output-empty {
  display: grid;
  align-content: center;
  min-height: 24rem;
  margin-top: 1rem;
  text-align: center;
}

.pq-inline-alert {
  padding: 0.8rem;
  color: #fecdd3;
  font-size: 0.82rem;
}

.pq-inline-alert a {
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: none;
}

.pq-inline-alert a:hover {
  color: #e0f2fe;
}

.pq-inline-alert-error {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(251, 113, 133, 0.08);
}

@media (max-width: 1023px) {
  .pq-header-inner {
    grid-template-columns: 1fr auto;
    gap: 0.85rem 1rem;
    padding: 0.75rem 1rem 0;
  }

  .pq-header-brand {
    border-right: 0;
    padding-right: 0;
  }

  .pq-header-nav {
    grid-column: 1 / -1;
    order: 3;
    gap: 1.15rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
  }

  .pq-header-nav a {
    min-height: 3.1rem;
  }

  .pq-header-nav a::after {
    bottom: 0.35rem;
  }

  .pq-app-shell {
    grid-template-columns: 1fr;
  }

  .pq-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  }

  .pq-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pq-sidebar-footer {
    display: none;
  }

  .pq-hero-grid {
    grid-template-columns: 1fr;
  }

  .pq-auth-landing {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
    padding: 3rem 0.5rem 4.5rem;
  }

  .pq-auth-copy h1,
  .pq-auth-copy p {
    max-width: 42rem;
  }

}

@media (max-width: 640px) {
  .pq-header-inner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pq-header-actions {
    justify-content: stretch;
    width: 100%;
  }

  .pq-header-actions > a,
  .pq-header-actions > form,
  .pq-header-actions button {
    flex: 1 1 auto;
  }

  .pq-header-login,
  .pq-header-button {
    width: 100%;
  }

  .pq-header-nav {
    width: 100%;
    padding-bottom: 0.1rem;
  }

  .pq-topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }

  .pq-auth-actions,
  .pq-auth-actions > a,
  .pq-auth-actions > form,
  .pq-auth-actions button {
    width: 100%;
  }

  .pq-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pq-content {
    padding: 1.2rem 1rem 2.25rem;
  }

  .pq-page-hero {
    padding: 1.1rem;
  }

  .pq-auth-landing {
    padding: 2rem 0 3rem;
  }

  .pq-auth-copy h1 {
    font-size: 2.25rem;
    line-height: 1.05;
  }

  .pq-auth-card {
    padding: 1.25rem;
  }
}

.pq-screen-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pq-screen-head .page-title {
  max-width: 48rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.pq-screen-head .page-subtitle {
  max-width: 48rem;
}

.pq-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.pq-head-meta span {
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  background: rgba(1, 94, 234, 0.08);
  padding: 0.32rem 0.65rem;
  color: #bfdbfe;
  font-size: 0.72rem;
  font-weight: 750;
}

.pq-results,
.admin-workspace {
  display: grid;
  gap: 1.2rem;
}

.pq-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.pq-kpi-card,
.pq-analytics-panel,
.admin-panel,
.admin-firm-panel {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.pq-kpi-card {
  min-height: 8.5rem;
  padding: 1rem;
}

.pq-kpi-label {
  display: block;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pq-kpi-value {
  display: block;
  margin-top: 0.45rem;
  color: #f8fafc;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 850;
}

.pq-positive {
  color: #4ade80 !important;
}

.pq-negative {
  color: #fb7185 !important;
}

.pq-warning {
  color: #fbbf24 !important;
}

.pq-kpi-note {
  margin-top: 0.55rem;
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.35;
}

.pq-meter {
  position: relative;
  height: 0.52rem;
  margin-top: 0.9rem;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.28), rgba(251, 191, 36, 0.26), rgba(74, 222, 128, 0.34));
}

.pq-meter span,
.pq-meter i {
  position: absolute;
  top: 0;
  bottom: 0;
}

.pq-meter span {
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.42);
}

.pq-meter i {
  width: 2px;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.pq-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  gap: 1rem;
  align-items: stretch;
}

.pq-chart-grid,
.pq-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pq-chart-wide {
  grid-column: 1 / -1;
}

.pq-analytics-panel {
  min-width: 0;
  padding: 1rem;
}

.pq-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.pq-panel-head h2 {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 820;
  line-height: 1.2;
}

.pq-panel-head p,
.pq-panel-note {
  margin-top: 0.28rem;
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.45;
}

.pq-chart-frame {
  position: relative;
  height: 13.75rem;
  min-height: 13.75rem;
}

.pq-chart-lg {
  height: 17.5rem;
  min-height: 17.5rem;
}

.pq-chart-sensitivity {
  height: 16rem;
  min-height: 16rem;
}

.pq-chart-frame canvas {
  width: 100% !important;
  height: 100% !important;
}

.pq-decision-panel {
  display: flex;
  flex-direction: column;
}

.pq-read-stack {
  display: grid;
  gap: 0.65rem;
}

.pq-read-card,
.pq-break-even {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.028);
  padding: 0.8rem;
}

.pq-read-card span {
  display: block;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pq-read-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #e2e8f0;
  font-size: 0.78rem;
  line-height: 1.42;
}

.pq-tone-good {
  border-color: rgba(74, 222, 128, 0.24) !important;
  background: rgba(34, 197, 94, 0.08) !important;
}

.pq-tone-warn {
  border-color: rgba(251, 191, 36, 0.28) !important;
  background: rgba(251, 191, 36, 0.08) !important;
}

.pq-tone-bad {
  border-color: rgba(251, 113, 133, 0.3) !important;
  background: rgba(251, 113, 133, 0.08) !important;
}

.pq-break-even {
  margin-top: 0.85rem;
}

.pq-break-even strong {
  display: block;
  margin-top: 0.35rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 850;
}

.pq-break-even p {
  margin-top: 0.45rem;
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.45;
}

.pq-failure-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

.pq-failure-strip div {
  border: 1px solid rgba(251, 113, 133, 0.18);
  border-radius: 0.45rem;
  background: rgba(251, 113, 133, 0.06);
  padding: 0.65rem;
}

.pq-failure-strip span {
  display: block;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pq-failure-strip strong {
  display: block;
  margin-top: 0.28rem;
  color: #fb7185;
  font-size: 1rem;
  font-weight: 850;
}

.pq-phase-flow {
  display: grid;
  gap: 0.6rem;
}

.pq-phase-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 4.5rem;
  gap: 0.75rem;
  align-items: center;
}

.pq-phase-row > span,
.pq-phase-row > strong {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 750;
}

.pq-phase-row > strong {
  text-align: right;
}

.pq-phase-track {
  display: flex;
  height: 2.15rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.42rem;
  background: rgba(255, 255, 255, 0.035);
}

.pq-phase-track i {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.pq-phase-pass {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(0, 225, 250, 0.5));
}

.pq-phase-fail {
  background: rgba(251, 113, 133, 0.72);
}

.pq-definition-grid {
  display: grid;
  grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 1fr);
  gap: 0.6rem 1rem;
  color: #cbd5e1;
  font-size: 0.84rem;
}

.pq-definition-grid dt {
  color: #94a3b8;
}

.pq-definition-grid dd {
  color: #f8fafc;
  text-align: right;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 16rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 6.25rem;
  z-index: 4;
}

.admin-sidebar-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.65rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(8, 12, 18, 0.86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  padding: 0.85rem;
}

.admin-sidebar-brand {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 0.85rem;
}

.admin-sidebar-brand > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
}

.admin-sidebar-brand > span picture,
.admin-sidebar-brand > span img {
  width: 2.85rem;
  height: 2.85rem;
  display: block;
}

.admin-sidebar-brand > span img {
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 225, 250, 0.18));
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-brand strong {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.1;
}

.admin-sidebar-brand small {
  margin-top: 0.2rem;
  color: #94a3b8;
  font-size: 0.72rem;
}

.admin-side-nav {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.admin-nav-class {
  display: grid;
  gap: 0.32rem;
}

.admin-nav-class > span {
  color: #60a5fa;
  font-size: 0.64rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  padding: 0 0.35rem;
  text-transform: uppercase;
}

.admin-nav-link {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.48rem;
  padding: 0.48rem 0.52rem;
  color: #cbd5e1;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.admin-nav-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.028);
  color: #94a3b8;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 560;
}

.admin-nav-link b {
  overflow: hidden;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible,
.admin-nav-link.is-active {
  border-color: rgba(96, 165, 250, 0.26);
  background: rgba(1, 94, 234, 0.11);
  color: #fff;
  outline: none;
}

.admin-nav-link:hover i,
.admin-nav-link:focus-visible i,
.admin-nav-link.is-active i {
  border-color: rgba(0, 225, 250, 0.28);
  background: rgba(0, 225, 250, 0.08);
  color: #99f6ff;
}

#admin-overview,
#admin-metrics,
#admin-access,
#admin-usage,
#admin-create-firm,
#admin-catalog {
  scroll-margin-top: 6.25rem;
}

.admin-screen-head {
  margin-bottom: 0;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-stat {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.admin-stat span,
.admin-stat em {
  display: block;
  color: #94a3b8;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin-top: 0.35rem;
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 850;
}

.admin-stat em {
  margin-top: 0.45rem;
  letter-spacing: 0;
  text-transform: none;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-dashboard-card {
  display: grid;
  min-height: 10rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-dashboard-card:hover,
.admin-dashboard-card:focus-visible {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(1, 94, 234, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.admin-dashboard-card span {
  color: #60a5fa;
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-dashboard-card strong {
  margin-top: 0.55rem;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.2;
}

.admin-dashboard-card p {
  margin-top: 0.5rem;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-create-drawer {
  padding: 0.9rem 1rem;
}

.admin-create-drawer > summary {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 650;
  cursor: pointer;
}

.admin-create-drawer[open] > summary {
  margin-bottom: 0.9rem;
}

.admin-catalog-workbench {
  display: grid;
  grid-template-columns: minmax(15rem, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-catalog-index {
  position: sticky;
  top: 6.25rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 7.5rem);
  min-height: 28rem;
  overflow: hidden;
}

.admin-search-field {
  margin-top: 0.9rem;
}

.admin-firm-index-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.admin-firm-index-list::-webkit-scrollbar,
.admin-firm-detail-shell::-webkit-scrollbar {
  width: 0.45rem;
}

.admin-firm-index-list::-webkit-scrollbar-thumb,
.admin-firm-detail-shell::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.admin-firm-tab {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
  color: #e2e8f0;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-firm-tab:hover,
.admin-firm-tab:focus-visible,
.admin-firm-tab.is-active {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(1, 94, 234, 0.1);
  outline: none;
}

.admin-firm-tab.is-active {
  transform: translateX(2px);
}

.admin-firm-tab-main,
.admin-firm-tab-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
}

.admin-firm-tab-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.admin-firm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 225, 250, 0.24);
  border-radius: 0.45rem;
  background: rgba(1, 94, 234, 0.08);
  color: #99f6ff;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.admin-firm-icon.large {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.55rem;
  font-size: 0.76rem;
}

.admin-firm-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
}

.admin-firm-tab-main strong,
.admin-firm-tab-main em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-firm-tab-main strong {
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.2;
}

.admin-firm-tab-main em {
  color: #94a3b8;
  font-size: 0.72rem;
  font-style: normal;
}

.admin-firm-tab-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.admin-firm-tab-meta i {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.18rem 0.45rem;
  color: #94a3b8;
  font-size: 0.66rem;
  font-style: normal;
}

.admin-filter-empty {
  margin-top: 0.85rem;
}

.admin-firm-detail-shell {
  max-height: calc(100vh - 7.5rem);
  min-height: 28rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.admin-firm-panel.admin-firm-detail {
  display: none;
}

.admin-firm-panel.admin-firm-detail.is-active {
  display: grid;
}

.admin-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.admin-panel,
.admin-firm-panel {
  padding: 1rem;
}

.admin-panel-head,
.admin-section-title,
.admin-firm-head,
.admin-program-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-panel-head h2,
.admin-section-title h2,
.admin-firm-head h3,
.admin-program-head h4 {
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 850;
}

.admin-section-title {
  margin-bottom: 0.8rem;
}

.admin-panel-head p,
.admin-section-title p {
  margin-top: 0.28rem;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-quota-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-quota-submit,
.admin-form-action {
  justify-self: start;
}

.admin-field {
  display: grid;
  gap: 0.35rem;
}

.admin-field span {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: end;
}

.admin-span-2 {
  grid-column: span 2;
}

.admin-span-4 {
  grid-column: 1 / -1;
}

.admin-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-toggle,
.admin-toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
}

.admin-toggle {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.4rem 0.68rem;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 750;
}

.admin-toggle input {
  width: 0.95rem;
  height: 0.95rem;
}

.admin-danger-button {
  border: 1px solid rgba(251, 113, 133, 0.32);
  border-radius: 0.375rem;
  background: rgba(251, 113, 133, 0.08);
  padding: 0.48rem 0.78rem;
  color: #fecdd3;
  font-size: 0.78rem;
  font-weight: 800;
  transition: 160ms ease;
}

.admin-danger-button:hover {
  background: rgba(251, 113, 133, 0.14);
  color: #fff;
}

.admin-table-shell {
  max-height: 20rem;
  margin-top: 0.8rem;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.5rem;
}

.admin-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.admin-table th,
.admin-table td {
  padding: 0.72rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-table td span {
  margin-top: 0.16rem;
  color: #94a3b8;
}

.admin-empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.018);
  padding: 1.1rem;
  color: #94a3b8;
  font-size: 0.84rem;
  text-align: center;
}

.admin-catalog {
  display: grid;
  gap: 1rem;
}

.admin-firm-panel {
  display: grid;
  gap: 1rem;
}

.admin-firm-title-row,
.admin-program-title-row,
.admin-chip-row,
.admin-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.admin-meta-line,
.admin-chip-row {
  margin-top: 0.42rem;
}

.admin-meta-line span,
.admin-chip-row span {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.24rem 0.52rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 750;
}

.admin-status {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  padding: 0.22rem 0.55rem;
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-status.is-active {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
}

.admin-firm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-disclosure {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.018);
  padding: 0.75rem;
}

.admin-disclosure.compact {
  margin-top: 0.8rem;
}

.admin-disclosure summary {
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-disclosure:not([open]) > :not(summary),
.admin-create-drawer:not([open]) > :not(summary) {
  display: none !important;
}

.admin-stacked-form {
  display: grid;
  gap: 0.8rem;
}

.admin-program-list {
  display: grid;
  gap: 0.85rem;
}

.admin-program-row {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 1rem;
}

.admin-user-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.admin-user-row {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.018);
  padding: 0.9rem;
}

.admin-user-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-user-head h3 {
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}

.admin-account-zone {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.admin-account-create,
.admin-account-form {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(7rem, 0.8fr) minmax(8rem, 1fr) auto auto;
  gap: 0.65rem;
  align-items: end;
}

.admin-account-list {
  display: grid;
  gap: 0.55rem;
}

.admin-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.018);
  padding: 0.7rem;
}

@media (max-width: 1180px) {
  .pq-workbench {
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  }

  .pq-result-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pq-kpi-grid,
  .pq-how-grid,
  .admin-stat-grid,
  .admin-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pq-results-grid,
  .admin-two-column {
    grid-template-columns: 1fr;
  }

  .admin-quota-grid,
  .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-span-4 {
    grid-column: 1 / -1;
  }

  .admin-catalog-workbench {
    grid-template-columns: minmax(13rem, 0.38fr) minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    top: auto;
  }

  .admin-sidebar-card {
    padding: 0.75rem;
  }

  .admin-side-nav {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .admin-side-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-nav-class {
    min-width: 10.5rem;
  }

  .admin-catalog-workbench {
    grid-template-columns: 1fr;
  }

  .admin-catalog-index {
    position: relative;
    top: auto;
    max-height: none;
    min-height: 0;
  }

  .admin-firm-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 18rem;
  }

  .admin-firm-detail-shell {
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 820px) {
  .pq-workbench {
    grid-template-columns: 1fr;
  }

  .pq-workbench-left {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .pq-workbench-right {
    min-height: 28rem;
  }

  .pq-output-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pq-screen-head,
  .admin-panel-head,
  .admin-section-title,
  .admin-firm-head,
  .admin-program-head,
  .admin-user-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pq-chart-grid,
  .pq-config-grid,
  .admin-firm-actions,
  .admin-firm-index-list {
    grid-template-columns: 1fr;
  }

  .admin-account-create,
  .admin-account-form,
  .admin-account-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pq-field-grid,
  .pq-result-summary-grid {
    grid-template-columns: 1fr;
  }

  .pq-output-empty {
    min-height: 18rem;
  }

  .pq-kpi-grid,
  .pq-how-grid,
  .admin-stat-grid,
  .admin-dashboard-grid,
  .admin-quota-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .pq-home-section {
    padding-top: 0.8rem;
  }

  .pq-section-head h2 {
    font-size: 1.55rem;
  }

  .pq-how-step {
    min-height: 0;
  }

  .admin-span-2 {
    grid-column: auto;
  }

  .pq-failure-strip {
    grid-template-columns: 1fr;
  }

  .pq-phase-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .pq-phase-row > strong {
    text-align: left;
  }
}

/* Lighter typography pass: keep hierarchy, remove the heavy display weight. */
.pq-body {
  font-weight: 400;
}

.pq-body h1,
.pq-body h2,
.pq-body h3,
.pq-body h4,
.pq-body strong,
.pq-body .font-bold,
.pq-body .page-title,
.pq-header-name,
.pq-workbench-intro h1,
.pq-output-head h2,
.pq-kpi-value,
.pq-break-even strong,
.pq-result-summary-grid strong,
.pq-output-empty strong,
.admin-stat strong,
.admin-panel-head h2,
.admin-section-title h2,
.admin-firm-head h3,
.admin-program-head h4,
.admin-user-head h3,
.admin-dashboard-card strong,
.admin-firm-tab-main strong,
.admin-sidebar-brand strong {
  font-weight: 650 !important;
}

.pq-body .font-semibold,
.pq-header-mark,
.pq-header-button,
  .pq-header-login,
  .pq-header-nav a,
  .pq-auth-copy h1,
  .pq-auth-field span,
  .pq-auth-submit,
  .pq-kpi-label,
  .pq-input-panel-head span,
  .pq-field span,
.pq-radio-block > span,
.pq-read-card span,
.pq-failure-strip span,
.pq-phase-row > span,
.pq-phase-row > strong,
.admin-stat span,
.admin-stat em,
.admin-field span,
.admin-toggle,
.admin-status,
.admin-meta-line span,
.admin-chip-row span,
.pq-output-meta span,
.admin-dashboard-card span,
.admin-firm-tab-meta i,
.admin-nav-class > span,
.admin-nav-link i {
  font-weight: 560 !important;
}

.pq-body .font-medium,
.pq-brand-name,
.pq-nav-item,
.pq-link-button,
.pq-terminal-value,
.pq-read-card strong,
.pq-failure-strip strong,
.admin-danger-button,
.admin-disclosure summary,
.admin-create-drawer > summary,
.admin-nav-link b {
  font-weight: 520 !important;
}
