:root {
  --bg: #e7ecef;
  --surface: rgba(246, 249, 251, 0.94);
  --surface-strong: #ffffff;
  --text: #13212b;
  --muted: #5b6b77;
  --line: rgba(19, 33, 43, 0.12);
  --accent: #1d4ed8;
  --accent-strong: #1e3a8a;
  --secondary: #0f766e;
  --secondary-strong: #115e59;
  --judicial: #9d174d;
  --glow: rgba(29, 78, 216, 0.18);
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(56, 189, 248, 0.05), transparent 22%),
    radial-gradient(circle at 82% 8%, rgba(34, 197, 94, 0.04), transparent 18%),
    linear-gradient(180deg, #010204 0%, #05070b 38%, #020406 100%);
}

.shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px 28px 28px;
  overflow: visible;
}

.authView {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  padding: 32px clamp(22px, 4vw, 56px);
  background:
    radial-gradient(circle at 20% 16%, rgba(34, 197, 94, 0.12), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.1), transparent 22%),
    linear-gradient(180deg, #020403 0%, #010302 42%, #010201 100%);
}

.authView::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(74, 222, 128, 0.04) 0%, transparent 16%, transparent 84%, rgba(74, 222, 128, 0.04) 100%),
    radial-gradient(circle at center, transparent 28%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

.matrixCanvas,
.authBackdropGrid,
.authGlow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.matrixCanvas {
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.92;
  mix-blend-mode: normal;
  filter: none;
}

.appMatrixCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  mix-blend-mode: normal;
  filter: none;
  -webkit-mask-image: radial-gradient(ellipse 68% 54% at 50% 56%, transparent 0 60%, rgba(0, 0, 0, 0.38) 74%, #000 100%);
  mask-image: radial-gradient(ellipse 68% 54% at 50% 56%, transparent 0 60%, rgba(0, 0, 0, 0.38) 74%, #000 100%);
}

#appView {
  position: relative;
  z-index: 1;
}

#appView::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 56% at 50% 60%, transparent 0 58%, rgba(1, 3, 6, 0.16) 72%, rgba(1, 3, 6, 0.42) 100%),
    linear-gradient(180deg, rgba(1, 3, 6, 0.18) 0%, rgba(1, 3, 6, 0.06) 14%, transparent 24%);
}

#appView > :not(.appMatrixCanvas) {
  position: relative;
  z-index: 1;
}

.authBackdropGrid {
  z-index: 0;
  background:
    linear-gradient(rgba(74, 222, 128, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 88%);
  opacity: 0.26;
}

.authGlow {
  z-index: 0;
  filter: blur(80px);
  opacity: 0.85;
}

.authGlowOne {
  inset: auto auto 6% -6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.5), transparent 70%);
}

.authGlowTwo {
  inset: -10% -8% auto auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.34), transparent 72%);
}

.authScene {
  width: min(1220px, 100%);
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 460px);
  gap: 34px;
  align-items: stretch;
}

.authSceneCompact {
  grid-template-columns: minmax(0, 0.96fr) minmax(390px, 430px);
  gap: 28px;
  align-items: center;
}

.authBrandPanel,
.authCard {
  position: relative;
  border-radius: 34px;
  border: 1px solid rgba(130, 255, 186, 0.11);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.authBrandPanel {
  padding: 42px;
  display: grid;
  align-content: center;
  gap: 22px;
  color: #f8fbff;
  background:
    linear-gradient(155deg, rgba(1, 5, 3, 0.92), rgba(4, 10, 8, 0.76) 50%, rgba(1, 4, 7, 0.9) 100%),
    radial-gradient(circle at 18% 24%, rgba(74, 222, 128, 0.08), transparent 24%);
  box-shadow:
    inset 0 1px 0 rgba(220, 252, 231, 0.06),
    inset 0 0 0 1px rgba(34, 197, 94, 0.04),
    0 40px 120px rgba(0, 0, 0, 0.46);
}

.authBrandPanelCompact {
  min-height: 430px;
  padding: 44px 40px;
  gap: 18px;
}

.authStatusPill {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(134, 239, 172, 0.16);
  background: rgba(3, 12, 7, 0.48);
  color: rgba(220, 252, 231, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(240, 253, 244, 0.04),
    0 0 24px rgba(34, 197, 94, 0.08);
}

.authStatusRadar {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow:
    0 0 0 0 rgba(74, 222, 128, 0.42),
    0 0 12px rgba(74, 222, 128, 0.7);
  animation: authStatusPulse 2.2s ease-out infinite;
}

.authBrandPanel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(74, 222, 128, 0.12), transparent 28%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.018) 44%, transparent 68%);
  pointer-events: none;
}

.authEyebrow {
  margin: 0;
  color: rgba(187, 247, 208, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.authTitle {
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 6.4rem);
}

.authTitle .brandRadar {
  margin-top: 0.16em;
  font-size: 0.28em;
  letter-spacing: 0.52em;
  opacity: 0.66;
}

.authLead {
  margin: 0;
  max-width: 680px;
  color: rgba(232, 244, 236, 0.82);
  font-size: 1.08rem;
  line-height: 1.72;
}

.authLeadCompact {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.66;
}

.authSignalBar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.authSignalBarCompact {
  margin-top: 42px;
}

.authSignalBar span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(134, 239, 172, 0.12);
  background: rgba(3, 12, 7, 0.58);
  color: rgba(220, 252, 231, 0.88);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(220, 252, 231, 0.04);
}

.authSignalHint {
  position: relative;
  cursor: default;
}

.authSignalTooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  min-width: 280px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(134, 239, 172, 0.14);
  background: rgba(4, 10, 8, 0.96);
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 8;
}

.authSignalTooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(134, 239, 172, 0.14);
  border-bottom: 1px solid rgba(134, 239, 172, 0.14);
  background: rgba(4, 10, 8, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.authSignalHintLeft .authSignalTooltip {
  left: 0;
  transform: translateX(0) translateY(6px);
}

.authSignalHintLeft .authSignalTooltip::after {
  left: 28px;
  transform: translateX(0) rotate(45deg);
}

.authSignalHint:hover .authSignalTooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.authSignalHintLeft:hover .authSignalTooltip {
  transform: translateX(0) translateY(0);
}

.authCard {
  width: min(100%, 460px);
  padding: 28px;
  justify-self: end;
  background:
    linear-gradient(180deg, rgba(8, 12, 12, 0.92), rgba(2, 5, 6, 0.95)),
    radial-gradient(circle at top, rgba(34, 197, 94, 0.08), transparent 32%);
  box-shadow:
    inset 0 1px 0 rgba(220, 252, 231, 0.06),
    0 34px 90px rgba(0, 0, 0, 0.5);
  color: #f8fbff;
}

.authCard::after {
  content: "";
  position: absolute;
  inset: auto 22px 0 22px;
  height: 120px;
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.18), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.authCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.07), transparent 30%),
    linear-gradient(0deg, transparent 0%, rgba(255, 255, 255, 0.025) 100%);
  pointer-events: none;
}

.authCardHeader,
.authTabs,
.googleAuthBtn,
.authDivider,
.authForm,
.authMessage {
  position: relative;
  z-index: 1;
}

.authCardHeader {
  display: grid;
  gap: 8px;
}

.authCardEyebrow {
  margin: 0;
  color: rgba(134, 239, 172, 0.82);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.authCardTitle {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.1;
  color: #f8fbff;
}

.authCardLead {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.6;
}

.authTabs {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(134, 239, 172, 0.08);
}

.authTab,
.authSubmitBtn {
  border: 0;
  border-radius: 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.authTab {
  padding: 12px 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(226, 232, 240, 0.82);
}

.authTab.is-active {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.95), rgba(5, 150, 105, 0.92));
  color: #f0fdf4;
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.24);
}

.authTab:hover,
.authSubmitBtn:hover,
.googleAuthBtn:hover {
  transform: translateY(-1px);
}

.googleAuthBtn {
  margin-top: 18px;
  min-height: 90px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  text-decoration: none;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(10, 15, 12, 0.99), rgba(12, 22, 17, 0.98)),
    radial-gradient(circle at 10% 50%, rgba(74, 222, 128, 0.18), transparent 18%);
  box-shadow:
    inset 0 1px 0 rgba(240, 253, 244, 0.05),
    0 18px 50px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(74, 222, 128, 0.08),
    0 0 36px rgba(34, 197, 94, 0.08);
}

.googleAuthBtn::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: 24px;
  background:
    conic-gradient(
      from 180deg,
      rgba(66, 133, 244, 0.18) 0deg,
      rgba(66, 133, 244, 0.62) 56deg,
      rgba(234, 67, 53, 0.58) 130deg,
      rgba(251, 188, 5, 0.62) 214deg,
      rgba(52, 168, 83, 0.6) 288deg,
      rgba(66, 133, 244, 0.18) 360deg
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.72;
  pointer-events: none;
}

.googleAuthBtn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background:
    linear-gradient(
      110deg,
      transparent 8%,
      rgba(66, 133, 244, 0.04) 18%,
      rgba(66, 133, 244, 0.9) 24%,
      rgba(234, 67, 53, 0.86) 31%,
      rgba(251, 188, 5, 0.88) 38%,
      rgba(52, 168, 83, 0.92) 45%,
      rgba(66, 133, 244, 0.18) 51%,
      transparent 60%
    ) 0 0 / 230% 230% no-repeat,
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 46%, transparent 62%),
    radial-gradient(circle at 10% 50%, rgba(74, 222, 128, 0.08), transparent 24%);
  border: 1px solid rgba(255, 255, 255, 0.045);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: googleBorderFlow 5.4s linear infinite;
  pointer-events: none;
}

.googleAuthBtn:hover {
  box-shadow:
    inset 0 1px 0 rgba(240, 253, 244, 0.08),
    0 22px 54px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(66, 133, 244, 0.16),
    0 0 30px rgba(52, 168, 83, 0.14),
    0 0 44px rgba(234, 67, 53, 0.08);
}

.googleAuthBtn:hover::before {
  opacity: 0.88;
}

.googleAuthBtn:hover::after {
  animation-duration: 3.9s;
}

.googleAuthOrb {
  width: 8px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.14), rgba(74, 222, 128, 0.84), rgba(16, 185, 129, 0.14));
  box-shadow:
    0 0 24px rgba(74, 222, 128, 0.32),
    0 0 42px rgba(34, 197, 94, 0.24);
}

.googleAuthIcon {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9) 52%, rgba(226, 232, 240, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 36px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

.googleAuthIcon svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.22));
}

.googleAuthCopy {
  display: grid;
  gap: 0;
}

.googleAuthCopy strong {
  color: #f8fbff;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(74, 222, 128, 0.08);
}

.googleAuthArrow {
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(220, 252, 231, 0.7);
  border-right: 2px solid rgba(220, 252, 231, 0.7);
  transform: rotate(45deg);
}

.googleAuthBtn,
.googleAuthBtn * {
  position: relative;
  z-index: 1;
}

@keyframes googleBorderFlow {
  from {
    background-position:
      0% 0%,
      0 0,
      0 0;
  }
  to {
    background-position:
      200% 0%,
      0 0,
      0 0;
  }
}

.authDivider {
  margin-top: 18px;
  position: relative;
  text-align: center;
  color: rgba(134, 239, 172, 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.authDivider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(134, 239, 172, 0.18), transparent);
}

.authDivider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: rgba(5, 10, 9, 0.92);
}

.authForm {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.authField {
  display: grid;
  gap: 8px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.92rem;
  font-weight: 700;
}

.authForm input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(134, 239, 172, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  color: #f8fbff;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.authForm input::placeholder {
  color: rgba(226, 232, 240, 0.42);
}

.authForm input:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.46);
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.authSubmitBtn {
  margin-top: 4px;
  min-height: 54px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #03110a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 20px 42px rgba(34, 197, 94, 0.24);
}

.authMessage {
  min-height: 24px;
  margin: 14px 2px 0;
  color: rgba(220, 252, 231, 0.76);
  font-size: 0.92rem;
  line-height: 1.5;
}

.authMessage.is-error {
  color: #fecaca;
}

.authMessage.is-success {
  color: #86efac;
}

@keyframes authStatusPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(74, 222, 128, 0.38),
      0 0 12px rgba(74, 222, 128, 0.7);
  }
  70% {
    box-shadow:
      0 0 0 9px rgba(74, 222, 128, 0),
      0 0 18px rgba(74, 222, 128, 0.34);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(74, 222, 128, 0),
      0 0 12px rgba(74, 222, 128, 0.7);
  }
}

@keyframes authRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.heroTopActions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.powerActionBtn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.powerLogoutBtn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.94), rgba(69, 10, 10, 0.98));
  box-shadow: 0 14px 30px rgba(69, 10, 10, 0.34);
}

.homeActionBtn {
  border: 1px solid rgba(147, 197, 253, 0.22);
  background: rgba(9, 18, 28, 0.58);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.26);
}

.powerActionBtn:hover {
  transform: translateY(-1px);
}

.powerLogoutBtn:hover {
  border-color: rgba(252, 165, 165, 0.52);
  box-shadow: 0 18px 34px rgba(69, 10, 10, 0.42);
}

.homeActionBtn:hover {
  border-color: rgba(191, 219, 254, 0.34);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.34);
}

.powerActionBtn:focus-visible {
  outline: 2px solid rgba(254, 202, 202, 0.72);
  outline-offset: 2px;
}

.powerGlyph {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2.5px solid #fecaca;
  border-top-color: transparent;
  border-radius: 999px;
  display: inline-block;
}

.powerGlyph::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 2.5px;
  height: 10px;
  border-radius: 999px;
  background: #fecaca;
  transform: translateX(-50%);
}

.homeGlyph {
  position: relative;
  width: 18px;
  height: 14px;
  display: inline-block;
}

.homeGlyph::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 0;
  height: 10px;
  border: 2px solid rgba(226, 232, 240, 0.94);
  border-top: 0;
  border-radius: 2px;
}

.homeGlyph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 12px;
  height: 12px;
  border-left: 2px solid rgba(226, 232, 240, 0.94);
  border-top: 2px solid rgba(226, 232, 240, 0.94);
  transform: translateX(-50%) rotate(45deg);
}

.hero,
.toolbar,
.summary,
.listRow,
.iconCard {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero,
.toolbar,
.summary {
  position: relative;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  border-radius: 30px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 18, 32, 0.9) 0%, rgba(7, 18, 32, 0.58) 38%, rgba(7, 18, 32, 0.18) 66%, rgba(7, 18, 32, 0.06) 100%),
    url("/static/hero-reference.png") center/cover no-repeat;
  color: #f8fbff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 66% 54%, rgba(96, 165, 250, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(45, 212, 191, 0.04), transparent 26%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.06), transparent 35%),
    linear-gradient(180deg, transparent, rgba(34, 197, 94, 0.04));
  pointer-events: none;
}

.heroCopy {
  max-width: 620px;
  position: relative;
  z-index: 1;
  padding-top: 0;
  transform: translateY(10px);
}

.hero .brandTitle {
  gap: 0.16em;
}

.hero .brandWordmark {
  align-items: flex-end;
}

.hero .brandLeilao,
.hero .brandX {
  font-size: clamp(3.6rem, 7vw, 6.4rem);
  line-height: 0.88;
  font-weight: 800;
}

.hero .brandLeilao {
  color: #f8fbff;
  text-shadow:
    0 2px 24px rgba(255, 255, 255, 0.08),
    0 0 1px rgba(255, 255, 255, 0.55);
}

.hero .brandX {
  margin-left: -0.04em;
  text-shadow:
    0 0 18px rgba(74, 222, 128, 0.46),
    0 0 34px rgba(74, 222, 128, 0.18),
    0 0 1px rgba(255, 255, 255, 0.32);
}

.hero .brandRadar {
  margin-top: 0.16em;
  margin-left: 0.12em;
  font-size: 0.28em;
  font-weight: 700;
  letter-spacing: 0.52em;
  opacity: 0.66;
}

.heroPulse {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at center, rgba(34, 197, 94, 0.18) 0 12%, rgba(22, 101, 52, 0.08) 12% 26%, rgba(3, 32, 18, 0.94) 26% 100%);
  border: 2px solid rgba(74, 222, 128, 0.24);
  overflow: hidden;
  box-shadow:
    inset 0 0 40px rgba(34, 197, 94, 0.18),
    0 0 40px rgba(34, 197, 94, 0.1);
}

.heroPulse::before,
.heroPulse::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.heroPulse::after {
  inset: 44px;
}

.heroPulseGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 222, 128, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 50%;
}

.heroPulseCross {
  position: absolute;
  inset: 0;
}

.heroPulseCross::before,
.heroPulseCross::after {
  content: "";
  position: absolute;
  background: rgba(74, 222, 128, 0.16);
}

.heroPulseCross::before {
  top: 50%;
  left: 18px;
  right: 18px;
  height: 1px;
  transform: translateY(-50%);
}

.heroPulseCross::after {
  left: 50%;
  top: 18px;
  bottom: 18px;
  width: 1px;
  transform: translateX(-50%);
}

.radarSweep {
  position: absolute;
  inset: -12%;
  background: conic-gradient(from 160deg, transparent 0 74%, rgba(74, 222, 128, 0.5) 86%, rgba(34, 197, 94, 0.18) 92%, transparent 100%);
  animation: sweep 4.2s linear infinite;
  border-radius: 50%;
}

.radarDot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #86efac;
  box-shadow:
    0 0 10px rgba(134, 239, 172, 0.85),
    0 0 0 6px rgba(34, 197, 94, 0.08);
}

.dotOne { top: 46px; left: 146px; }
.dotTwo { top: 112px; left: 62px; }
.dotThree { top: 150px; left: 126px; }

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.heroAside {
  min-width: 240px;
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.alertsHeroActions {
  position: relative;
  z-index: 1;
}

.heroCornerAction {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
}

.heroHint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: rgba(143, 211, 255, 0.92);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  position: absolute;
  top: 18px;
  left: 28px;
  z-index: 2;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
  color: #f8fbff;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 16px rgba(125, 211, 252, 0.12),
    0 0 1px rgba(255, 255, 255, 0.5);
}

.brandTitle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1em;
}

.brandWordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.brandLeilao {
  letter-spacing: 0.02em;
}

.brandX {
  margin-left: -0.03em;
  color: #4ade80;
  text-shadow:
    0 0 16px rgba(74, 222, 128, 0.42),
    0 0 1px rgba(255, 255, 255, 0.32);
}

.brandRadar {
  margin-left: 0.08em;
  font-size: 0.44em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  color: #f8fbff;
  opacity: 0.84;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(241, 245, 249, 0.84);
  text-shadow: 0 1px 10px rgba(7, 18, 32, 0.45);
}

.primary,
.viewBtn,
.chip,
.cityToggle {
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-strong));
  color: white;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 30px var(--glow);
  font-size: 0.86rem;
  position: absolute;
  top: 18px;
  right: 18px;
}

.primary:hover,
.viewBtn:hover,
.chip:hover,
.cityToggle:hover {
  transform: translateY(-1px);
}

.toolbar {
  margin-top: 18px;
  padding: 22px;
  display: grid;
  gap: 18px;
  border-radius: 26px;
  overflow: visible;
  z-index: 6000;
}

.toolbarTop,
.toolbarBottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  position: relative;
}

.toolbarTop {
  z-index: 7000;
}

.toolbarBottom {
  z-index: 8000;
}

.toolbar.city-open .toolbarTop {
  z-index: 9000;
}

.toolbar.city-open .toolbarBottom {
  z-index: 8000;
}

.toolbar.bank-open .toolbarTop {
  z-index: 9050;
}

.toolbar.bank-open .toolbarBottom {
  z-index: 8000;
}

.primaryFilters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.toolbarActions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.subtleNavBtn {
  border: 1px solid rgba(29, 78, 216, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 11px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.subtleNavBtn:hover {
  color: var(--accent-strong);
  border-color: rgba(29, 78, 216, 0.2);
  background: rgba(234, 241, 255, 0.92);
}

.heroNavBtn {
  margin-top: 42px;
  margin-bottom: -4px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(10px);
}

.subtleNavBtn.is-current {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: white;
}

label,
.cityFilter,
.bankFilter {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.filterLabel {
  font-size: 0.95rem;
}

select,
input[type="search"],
.cityToggle {
  min-width: 230px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  font: inherit;
  color: var(--text);
}

.cityFilter {
  position: relative;
  min-width: 280px;
  z-index: 8500;
}

.bankFilter {
  position: relative;
  min-width: 230px;
  z-index: 8600;
}

.cityToggle {
  text-align: left;
  background: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cityCaret {
  color: var(--muted);
  font-size: 0.9rem;
}

.cityDropdown {
  position: absolute;
  top: calc(100% + 8px);
  bottom: auto;
  right: 0;
  width: 320px;
  max-height: 420px;
  padding: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  z-index: 9500;
}

.bankDropdown {
  width: 280px;
  max-height: 320px;
  overflow: auto;
  z-index: 9550;
}

.cityDropdown.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.cityOptions {
  margin-top: 10px;
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.bankOptions {
  display: grid;
  gap: 6px;
}

.cityOption,
.cityEmpty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(111, 57, 77, 0.08);
  font-weight: 600;
}

.bankOption {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(111, 57, 77, 0.08);
  font: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.bankOption:hover {
  border-color: rgba(29, 78, 216, 0.18);
  background: rgba(237, 244, 255, 0.92);
}

.bankOption.is-active {
  border-color: rgba(29, 78, 216, 0.22);
  background: rgba(226, 236, 255, 0.92);
}

.bankOptionIcon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
}

.bankOptionIcon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.bankOptionText {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.citySelectAll {
  margin-top: 10px;
}

.chips,
.viewSwitch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.chip,
.viewBtn {
  border-radius: 999px;
  padding: 10px 14px;
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.chip.is-active,
.viewBtn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
}

.chipHint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  color: inherit;
  border: 1px solid currentColor;
  opacity: 0.8;
}

.chip[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  width: 250px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  color: #e5f9ec;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
  z-index: 9800;
}

.chip[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.summary {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

.alertsPanel {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.alertsHeader,
.alertCardTop,
.alertCardActions,
.alertsMetaTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.alertsTitle {
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.05;
  color: #0f172a;
}

.alertsTitleIcon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.16), rgba(34, 158, 217, 0.06));
  box-shadow: inset 0 0 0 1px rgba(34, 158, 217, 0.12);
}

.alertsTitleIcon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.alertsEyebrow {
  margin: 0 0 6px;
  color: var(--secondary-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.alertsHeader h3 {
  margin: 0;
}

.alertsMetaTop {
  color: var(--muted);
  font-size: 0.88rem;
  justify-content: flex-end;
}

.alertsGrid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.alertForm,
.alertsList {
  display: grid;
  gap: 12px;
}

.alertsList {
  align-content: start;
}

.alertForm {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.alertForm label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.fieldLabelRow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.requiredPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c2d12;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(249, 115, 22, 0.18));
  border: 1px solid rgba(234, 88, 12, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.requiredPill.is-inline {
  margin: 0 4px;
}

.alertForm input,
.alertForm select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  font: inherit;
  color: var(--text);
}

.alertActiveCheck {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.alertActiveCheck input {
  width: auto;
}

.alertFormActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.alertModalitiesFieldset {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.alertModalitiesFieldset legend {
  padding: 0 8px;
  font-weight: 800;
  color: var(--text);
}

.alertModalitiesGrid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.alertModalityOption {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.alertModalityOption input {
  width: auto;
  margin: 0;
}

.alertModalitySelectAll {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(19, 33, 43, 0.1);
}

.alertHintRequired {
  margin-top: -4px;
}

.primaryInlineBtn {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-strong));
}

.alertHint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.alertCard {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  align-self: start;
}

.alertCard.is-paused {
  opacity: 0.82;
}

.alertCardTop strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1.02rem;
}

.alertCardTop span,
.alertCardMeta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.alertCardMeta {
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
  align-items: center;
}

.alertCardActions {
  justify-content: flex-start;
}

.alertStatus {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.alertStatus.is-active {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.alertStatus.is-paused {
  background: rgba(71, 85, 105, 0.12);
  color: #475569;
}

.favoritesPanel {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: 0.24s ease;
}

.favoritesDock {
  display: grid;
  gap: 0;
}

.favoritesDockBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
}

.favoritesDockLead {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.favoritesDockIcon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.3));
  color: #8a5b00;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 1rem;
}

.favoritesDockText {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.favoritesDockText strong {
  font-size: 0.98rem;
}

.favoritesDockText span {
  color: var(--muted);
  font-size: 0.84rem;
}

.favoritesDockControls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dockModeBtn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.dockModeBtn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: white;
}

.favoritesDockBody {
  display: grid;
  gap: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, margin-top 0.22s ease;
}

.favoritesPanel.is-expanded .favoritesDockBody,
.favoritesPanel[data-mode="open"] .favoritesDockBody {
  max-height: 1600px;
  opacity: 1;
  overflow: visible;
  transform: translateY(0);
  pointer-events: auto;
  margin-top: 14px;
}

.favoritesPanel[data-mode="closed"] .favoritesDockBar {
  opacity: 0.96;
}

.favoritesPanel[data-mode="auto"]:not(.is-expanded) {
  background: linear-gradient(135deg, rgba(246, 249, 251, 0.92), rgba(255, 255, 255, 0.88));
}

.favoritesPanel[data-mode="auto"]:not(.is-expanded) .favoritesDockBar {
  cursor: default;
}

.favoritesHeader,
.favoritesMeta,
.favoriteRow,
.favoriteActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.favoritesEyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.favoritesHeader h3,
.compareHeader h4 {
  margin: 0;
}

.favoritesMeta {
  margin-top: 10px;
  color: var(--muted);
}

.favoritesActions {
  justify-content: flex-end;
}

.secondaryBtn,
.ghostBtn,
.favoriteBtn {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.secondaryBtn {
  background: #e9f1ff;
  color: var(--accent-strong);
}

.iconOnlyBtn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.fileIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
}

.excelIcon {
  background: #107c41;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.pdfIcon {
  background: #dc2626;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.clearIcon {
  background: #475569;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.ghostBtn {
  background: white;
  color: var(--text);
}

.favoriteBtn {
  background: #fff4d8;
  color: #8a5b00;
}

.favoriteBtn.is-active {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #472b00;
}

.favoritesTable {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.favoriteRow {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.favoriteMain {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 240px;
}

.favoriteMain span,
.favoritePrice span,
.compareCheck span {
  color: var(--muted);
}

.favoritePrice {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.favoriteActions {
  justify-content: flex-end;
}

.compareCheck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.comparePanel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.compareHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.compareGrid {
  display: grid;
  grid-template-columns: 180px repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.compareLabels,
.compareColumn {
  display: grid;
  gap: 10px;
}

.compareCell {
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.compareHead {
  font-weight: 800;
}

.sourceLine {
  margin-top: 8px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.summaryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--surface-strong);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
}

.results {
  margin-top: 20px;
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.pagination {
  margin-top: 18px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.paginationWrap,
.pagerNumbers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.paginationWrap {
  justify-content: center;
}

.pagerBtn {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pagerBtn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
}

.pagerBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagerDots,
.paginationMeta {
  color: var(--muted);
}

.paginationMeta {
  margin-top: 10px;
  text-align: center;
}

.results.icon-view {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.iconCard {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 28px;
  overflow: hidden;
}

.thumbWrap {
  min-height: 220px;
  background:
    linear-gradient(140deg, rgba(29, 78, 216, 0.18), rgba(15, 118, 110, 0.16)),
    #dbe7f4;
}

.thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.cardBody {
  padding: 18px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 160, 0.12);
  color: var(--secondary-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.badge.judicial {
  background: rgba(180, 35, 90, 0.12);
  color: var(--judicial);
}

.badge.discount {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.bankMark {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(219, 234, 254, 0.55);
  border: 1px solid rgba(29, 78, 216, 0.12);
}

.bankIcon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bankMeta {
  display: grid;
  line-height: 1.15;
}

.bankMeta strong {
  font-size: 0.78rem;
}

.subtitle,
.meta,
.description,
.rowMeta,
.secondaryValue {
  color: var(--muted);
}

.description {
  line-height: 1.5;
}

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.details div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.details dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.details dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.listRow {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(260px, 1fr) minmax(180px, 0.65fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
}

.listRow h2 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
}

.listInfo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.listInfo span {
  display: grid;
  gap: 4px;
  min-width: 120px;
}

.listInfo strong,
.priceLabel {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.listPrice {
  display: grid;
  gap: 5px;
}

.listPrice strong {
  font-size: 1.15rem;
}

.listAction {
  display: flex;
  justify-content: flex-end;
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actionLink {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eaf1ff, #dbe7ff);
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 800;
}

.empty {
  padding: 28px;
  border-radius: 24px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
}

.loadingState {
  min-height: 180px;
  padding: 28px 32px;
  border-radius: 24px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.06), transparent 42%),
    linear-gradient(135deg, rgba(6, 17, 28, 0.94), rgba(10, 22, 34, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 50px rgba(0, 0, 0, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #e5f9ec;
}

.loadingRadar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  position: relative;
  flex: 0 0 72px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  background:
    radial-gradient(circle at center, rgba(34, 197, 94, 0.2) 0 16%, rgba(5, 20, 12, 0.96) 16% 100%);
  box-shadow:
    inset 0 0 22px rgba(34, 197, 94, 0.18),
    0 0 18px rgba(34, 197, 94, 0.1);
  overflow: hidden;
}

.loadingOrbit {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.18);
}

.loadingOrbit.orbitTwo {
  inset: 22px;
}

.loadingCore {
  position: absolute;
  inset: 31px;
  border-radius: 50%;
  background: rgba(134, 239, 172, 0.9);
  box-shadow: 0 0 12px rgba(134, 239, 172, 0.8);
}

.loadingSweep {
  position: absolute;
  inset: -10%;
  background: linear-gradient(90deg, transparent 0 46%, rgba(74, 222, 128, 0.72) 50%, transparent 54% 100%);
  transform-origin: 50% 50%;
  animation: loadingSweep 1.6s linear infinite;
  opacity: 0.9;
}

.loadingDot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bbf7d0;
  box-shadow: 0 0 10px rgba(187, 247, 208, 0.8);
  animation: loadingBlink 1.4s ease-in-out infinite;
}

.loadingDot.dotA {
  top: 18px;
  right: 16px;
}

.loadingDot.dotB {
  left: 14px;
  bottom: 17px;
  animation-delay: 0.4s;
}

.loadingCopy {
  display: grid;
  gap: 6px;
}

.loadingCopy strong {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.loadingCopy span {
  color: rgba(229, 249, 236, 0.72);
  font-size: 0.92rem;
}

@keyframes loadingSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes loadingBlink {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

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

  .authSceneCompact {
    grid-template-columns: 1fr;
  }

  .authCard {
    justify-self: stretch;
    width: 100%;
  }

  .authBrandPanel {
    padding: 34px;
  }

  .authStatusPill {
    position: static;
    justify-self: start;
    margin-bottom: 8px;
  }

  .alertsGrid {
    grid-template-columns: 1fr;
  }

  .listRow {
    grid-template-columns: 1fr;
  }

  .listAction {
    justify-content: flex-start;
  }

  .compareGrid {
    grid-template-columns: 160px repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 14px;
  }

  .authView {
    min-height: 100svh;
    padding: 16px 14px 28px;
    align-items: flex-start;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .authScene {
    width: min(100%, 430px);
    gap: 14px;
    margin: 0 auto;
  }

  .authSceneCompact {
    width: min(100%, 430px);
    gap: 14px;
    margin: 0 auto;
    align-items: stretch;
  }

  .authBrandPanel,
  .authCard {
    padding: 22px 18px;
    border-radius: 26px;
  }

  .authBrandPanelCompact {
    min-height: unset;
    padding: 22px 18px 18px;
    gap: 14px;
  }

  .authCard {
    padding: 22px 18px 24px;
  }

  .authTitle {
    font-size: clamp(2.55rem, 13vw, 3.8rem);
  }

  .authTitle .brandRadar {
    margin-top: 0.2em;
    font-size: 0.24em;
    letter-spacing: 0.38em;
  }

  .authLead {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .authEyebrow,
  .authCardEyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .authCardTitle {
    font-size: 1.38rem;
  }

  .authStatusPill {
    min-height: 34px;
    padding: 8px 12px;
    gap: 8px;
    font-size: 0.68rem;
  }

  .authSignalBar {
    gap: 8px;
  }

  .authSignalBarCompact {
    margin-top: 20px;
  }

  .authSignalBar span {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .authSignalTooltip {
    min-width: 220px;
    max-width: min(72vw, 280px);
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .googleAuthBtn {
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    min-height: 78px;
    padding: 14px 16px;
    border-radius: 22px;
  }

  .googleAuthBtn::before {
    border-radius: 22px;
  }

  .googleAuthBtn::after {
    border-radius: 21px;
  }

  .googleAuthOrb {
    width: 7px;
    height: 46px;
  }

  .googleAuthIcon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .googleAuthIcon svg {
    width: 24px;
    height: 24px;
  }

  .googleAuthCopy strong {
    font-size: 1.02rem;
  }

  .googleAuthArrow {
    display: none;
  }

  .authTabs {
    margin-top: 18px;
    gap: 8px;
    padding: 5px;
    border-radius: 18px;
  }

  .authTab {
    padding: 11px 10px;
    border-radius: 15px;
    font-size: 0.96rem;
  }

  .authField span {
    font-size: 0.95rem;
  }

  .authField input {
    min-height: 54px;
    padding: 15px 16px;
    border-radius: 18px;
  }

  .authSubmitBtn {
    min-height: 56px;
    border-radius: 18px;
  }

  .authDivider {
    margin-top: 16px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .hero,
  .toolbar,
  .summary,
  .alertsPanel,
  .favoritesPanel {
    padding: 16px;
    border-radius: 22px;
  }

  .hero {
    gap: 18px;
    min-height: unset;
    padding-top: 58px;
    background:
      linear-gradient(180deg, rgba(7, 18, 32, 0.94) 0%, rgba(7, 18, 32, 0.72) 52%, rgba(7, 18, 32, 0.32) 100%),
      url("/static/hero-reference.png") center/cover no-repeat;
  }

  .cityFilter,
  .cityDropdown {
    width: 100%;
    min-width: unset;
  }

  .cityDropdown {
    top: calc(100% + 10px);
    right: auto;
    left: 0;
    max-width: 100%;
    border-radius: 18px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .heroPulse {
    position: absolute;
    top: 54px;
    right: 16px;
    width: min(33vw, 132px);
    height: min(33vw, 132px);
    margin-top: 0;
    align-self: auto;
    z-index: 1;
  }

  .eyebrow {
    position: static;
    margin-bottom: 10px;
    font-size: 0.74rem;
  }

  .heroCopy {
    padding-top: 0;
    transform: none;
    max-width: calc(100% - min(33vw, 148px) - 18px);
  }

  .hero .brandRadar {
    margin-top: 0.18em;
    margin-left: 0.1em;
    font-size: 0.26em;
    letter-spacing: 0.36em;
  }

  .lead {
    margin-top: 12px;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .heroAside {
    justify-items: start;
  }

  .primary {
    position: static;
  }

  .heroTopActions {
    position: absolute;
    top: 14px;
    right: 14px;
    margin-top: 0;
    width: auto;
    justify-content: flex-end;
  }

  .powerActionBtn {
    width: 38px;
    height: 38px;
  }

  .toolbar {
    gap: 14px;
    margin-top: 14px;
  }

  .toolbarTop,
  .toolbarBottom,
  .primaryFilters,
  .toolbarActions {
    display: grid;
    width: 100%;
    gap: 12px;
  }

  .toolbarTop,
  .toolbarBottom {
    align-items: stretch;
  }

  .primaryFilters > label,
  .primaryFilters > .bankFilter,
  .primaryFilters > .cityFilter {
    width: 100%;
  }

  .toolbar label,
  .filterLabel {
    font-size: 0.9rem;
  }

  select,
  input[type="search"],
  .cityToggle {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
  }

  .chips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .chip {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    line-height: 1.35;
    border-radius: 16px;
  }

  .chip[data-tooltip]::after {
    left: 0;
    right: auto;
    bottom: calc(100% + 10px);
    transform: translateX(0) translateY(6px);
    width: min(250px, calc(100vw - 48px));
  }

  .chip[data-tooltip]:hover::after {
    transform: translateX(0) translateY(0);
  }

  .viewSwitch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .viewBtn {
    min-height: 44px;
  }

  .summaryGrid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat {
    padding: 14px;
    border-radius: 16px;
  }

  .favoritesPanel {
    margin-top: 14px;
  }

  .favoritesDockBar,
  .favoritesHeader,
  .favoritesMeta,
  .favoriteRow,
  .favoriteActions,
  .alertsMetaTop {
    flex-direction: column;
    align-items: flex-start;
  }

  .favoritesDockBar {
    min-height: unset;
  }

  .results {
    margin-top: 16px;
    gap: 12px;
  }

  .results.icon-view {
    grid-template-columns: 1fr;
  }

  .iconCard {
    border-radius: 22px;
  }

  .thumbWrap {
    min-height: 180px;
  }

  .listRow {
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .listRow h2 {
    font-size: 1rem;
  }

  .listInfo {
    gap: 8px;
  }

  .listAction {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }

  .listAction .favoriteBtn,
  .listAction .actionLink {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .alertsGrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .alertForm,
  .alertsList {
    gap: 10px;
  }

  .loadingState {
    flex-direction: column;
    text-align: center;
  }

  .favoritesDockBar,
  .alertsHeader,
  .alertCardTop,
  .alertCardActions {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .shell {
    padding: 10px;
  }

  .authView {
    padding: 12px 10px 22px;
  }

  .authScene,
  .authSceneCompact {
    width: min(100%, 390px);
  }

  .authBrandPanel,
  .authBrandPanelCompact,
  .authCard {
    padding-left: 16px;
    padding-right: 16px;
  }

  .authTitle {
    font-size: clamp(2.3rem, 14vw, 3.3rem);
  }

  .authTitle .brandRadar {
    letter-spacing: 0.32em;
  }

  .authLead {
    font-size: 0.9rem;
  }

  .authSignalBar span {
    font-size: 0.7rem;
    padding: 8px 10px;
  }

  .googleAuthBtn {
    gap: 10px;
    padding: 13px 14px;
  }

  .googleAuthCopy strong {
    font-size: 0.96rem;
  }

  .hero,
  .toolbar,
  .summary,
  .alertsPanel,
  .favoritesPanel {
    padding: 14px;
    border-radius: 20px;
  }

  .heroPulse {
    top: 58px;
    right: 14px;
    width: min(31vw, 118px);
    height: min(31vw, 118px);
  }

  h1 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .hero .brandRadar {
    margin-left: 0.08em;
    font-size: 0.24em;
    letter-spacing: 0.28em;
  }

  .lead {
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 56px;
  }

  .heroCopy {
    max-width: calc(100% - min(31vw, 132px) - 14px);
  }

  .summaryGrid {
    grid-template-columns: 1fr;
  }

  .chip,
  .viewBtn,
  .subtleNavBtn,
  .favoriteBtn,
  .actionLink {
    font-size: 0.9rem;
  }

  .thumbWrap {
    min-height: 160px;
  }

  .pagination {
    margin-bottom: 18px;
  }
}
