:root {
  --bg: #f7fbf7;
  --surface: #ffffff;
  --surface-2: #edf4f0;
  --ink: #151d20;
  --muted: #65727b;
  --line: #dae6df;
  --brand: #10a83a;
  --brand-dark: #182426;
  --brand-soft: #e6f8ea;
  --green: #10a83a;
  --green-soft: #e6f8ea;
  --amber: #c48700;
  --amber-soft: #fff2c8;
  --red: #c94c3c;
  --red-soft: #ffe2dd;
  --blue: #2176a5;
  --blue-soft: #e1f0f6;
  --violet: #7b61d1;
  --shadow: 0 14px 34px rgba(20, 36, 32, 0.12);
  --radius: 6px;
  --button-radius: 6px;
  --nav-h: 76px;
  --nav-lift: 0px;
  --landing-max: 1280px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  letter-spacing: 0;
}

html.auth-open {
  background: rgba(11, 18, 28, 0.56);
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 251, 247, 0) 260px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.auth-open {
  overflow: hidden;
  background: rgba(11, 18, 28, 0.56);
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button,
.primary-action,
.secondary-action,
.chip,
.icon-button,
.rail-button,
.bottom-nav button,
.auth-provider,
.landing-button,
.landing-cta,
.segmented-control button,
.region-stepper button,
.payment-option,
.integration-actions button,
.bot-actions button,
.document-version-chip {
  border-radius: var(--button-radius);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(16, 168, 58, 0.22);
  outline-offset: 2px;
}

.sprite {
  display: none;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + var(--nav-lift) + env(safe-area-inset-bottom));
}

body.is-guest .app-shell {
  display: none;
}

body.document-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(230, 248, 234, 0.72), rgba(247, 251, 247, 0) 320px),
    #f7fbf7;
}

body.not-found-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 12%, rgba(16, 168, 58, 0.16), transparent 32%),
    linear-gradient(135deg, #0d171a, #f7fbf7 58%);
  overflow: auto;
}

.not-found-shell {
  display: grid;
  width: min(920px, calc(100% - 32px));
  min-height: 100vh;
  align-content: center;
  gap: 24px;
  margin: 0 auto;
  padding: 56px 0;
}

.not-found-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 950;
}

.not-found-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: transparent;
  object-fit: contain;
}

.not-found-card {
  display: grid;
  max-width: 560px;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 24px 60px rgba(13, 30, 42, 0.18);
}

.not-found-card h1 {
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 0.95;
}

.not-found-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

body:not(.is-guest) .landing-page {
  display: none;
}

.landing-page {
  min-height: 100vh;
  overflow: hidden;
  background: #f7fbf7;
  color: var(--ink);
}

.landing-nav {
  position: fixed;
  z-index: 12;
  top: 14px;
  left: 50%;
  display: grid;
  width: min(var(--landing-max), calc(100vw - 28px));
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(14, 24, 26, 0.78);
  padding: 10px;
  box-shadow: 0 18px 42px rgba(15, 26, 20, 0.2);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.landing-brand,
.landing-links {
  display: flex;
  align-items: center;
}

.landing-brand {
  min-width: 0;
  gap: 9px;
  color: #fff;
  font-weight: 950;
  text-decoration: none;
}

.landing-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: transparent;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(16, 168, 58, 0.22))
    drop-shadow(0 8px 16px rgba(10, 24, 20, 0.2));
}

.landing-brand > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-wordmark {
  color: #f7fbf7;
  font-weight: 950;
}

.brand-wordmark strong {
  color: #25c74f;
  font-weight: inherit;
}

.landing-links {
  justify-content: center;
  gap: 6px;
}

.landing-links a,
.landing-login {
  min-height: 38px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.landing-links a {
  display: inline-flex;
  align-items: center;
}

.landing-links a:hover,
.landing-login:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.landing-login {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: 90svh;
  align-items: end;
  overflow: hidden;
  background: #0d171a;
  color: #fff;
  padding: 128px max(24px, calc((100vw - var(--landing-max)) / 2)) 8svh;
}

#landingCanvas,
.landing-hero-shade {
  position: absolute;
  inset: 0;
}

#landingCanvas {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.landing-hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 18, 20, 0.94), rgba(10, 18, 20, 0.72) 46%, rgba(10, 18, 20, 0.12)),
    linear-gradient(0deg, rgba(10, 18, 20, 0.82), rgba(10, 18, 20, 0) 46%);
  pointer-events: none;
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.landing-eyebrow {
  margin: 0 0 10px;
  color: #25c74f;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.landing-hero h1 {
  margin: 0;
  max-width: 900px;
  color: #fff;
  font-size: 6rem;
  line-height: 0.92;
}

.landing-hero-copy > p:not(.landing-eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.24rem;
  line-height: 1.55;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.landing-primary,
.landing-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 950;
}

.landing-primary {
  border: 1px solid rgba(16, 168, 58, 0.38);
  background: #e7f8ea;
  color: #172226;
}

.landing-primary:hover {
  background: #d9f4de;
}

.landing-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.landing-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.landing-section .landing-secondary,
.landing-demo-band .landing-secondary,
.landing-pricing .landing-secondary {
  border-color: rgba(23, 68, 77, 0.18);
  background: #fff;
  color: var(--brand-dark);
}

.landing-hero-status {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 7svh;
  display: grid;
  gap: 8px;
  min-width: min(280px, calc(100vw - 48px));
}

.landing-hero-status span {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  padding: 11px 13px;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.landing-hero-status span::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -34%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  content: "";
  animation: landing-status-sheen 4.8s ease-in-out infinite;
}

.landing-hero-status span:nth-child(2)::after {
  animation-delay: 1s;
}

.landing-hero-status span:nth-child(3)::after {
  animation-delay: 1.8s;
}

.landing-signal-strip {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(23, 68, 77, 0.12);
  border-bottom: 1px solid rgba(23, 68, 77, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 241, 0.92)),
    #ffffff;
}

.landing-signal-strip::before,
.landing-signal-strip::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 80px;
  content: "";
  pointer-events: none;
}

.landing-signal-strip::before {
  left: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.landing-signal-strip::after {
  right: 0;
  background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.landing-signal-track {
  display: flex;
  width: max-content;
  animation: landing-signal-roll 44s linear infinite;
}

.landing-signal-strip:hover .landing-signal-track {
  animation-play-state: paused;
}

.landing-signal-group {
  display: flex;
  gap: 10px;
  padding: 12px 10px 12px 0;
}

.landing-signal-group span {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(16, 168, 58, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-dark);
  box-shadow: 0 8px 20px rgba(20, 36, 32, 0.06);
  padding: 0 15px 0 34px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.landing-signal-group span::before {
  position: absolute;
  left: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34, 160, 107, 0.12);
  content: "";
}

.landing-section,
.landing-final {
  padding: 92px max(20px, calc((100vw - var(--landing-max)) / 2));
  scroll-margin-top: 108px;
}

#landingAbout {
  scroll-margin-top: 124px;
}

.landing-intro {
  padding-top: 68px;
}

.landing-intro .landing-section-head.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

.landing-section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.landing-section-head h2,
.landing-demo-copy h2,
.landing-final h2 {
  margin: 0;
  font-size: 3.7rem;
  line-height: 1;
}

.landing-section-head p:not(.landing-eyebrow),
.landing-demo-copy p:not(.landing-eyebrow),
.landing-final p:not(.landing-eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.landing-feature-grid,
.landing-use-grid,
.landing-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.landing-feature,
.landing-use,
.landing-price {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 14px 30px rgba(25, 38, 52, 0.07);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.landing-price {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px) saturate(1.06);
}

.landing-feature::before,
.landing-use::before,
.landing-price::before {
  display: none;
  content: "";
}

.landing-feature::after,
.landing-use::after,
.landing-price::after {
  display: none;
  content: "";
}

.landing-feature:hover,
.landing-use:hover,
.landing-price:hover {
  border-color: rgba(15, 111, 114, 0.28);
  box-shadow: 0 18px 38px rgba(25, 38, 52, 0.12);
  transform: translateY(-3px);
}

.landing-feature svg {
  width: 30px;
  height: 30px;
  color: var(--brand);
  filter: drop-shadow(0 8px 14px rgba(15, 111, 114, 0.16));
}

.landing-feature h3,
.landing-use strong,
.landing-price span,
.landing-dashboard-preview h3 {
  display: block;
  margin: 18px 0 0;
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.25;
}

.landing-feature p,
.landing-use p,
.landing-price p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.landing-process {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(238, 243, 247, 0.92), rgba(246, 248, 251, 0.96)),
    #eef3f7;
}

.landing-process::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(115deg, rgba(15, 111, 114, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  background-size: 76px 76px, 100% 100%;
  content: "";
  opacity: 0.72;
}

.landing-process .landing-section-head,
.landing-steps {
  position: relative;
  z-index: 2;
}

.process-depth-spiral {
  position: absolute;
  inset: -110px 0 -140px;
  z-index: 1;
  width: 100%;
  height: calc(100% + 250px);
  overflow: visible;
  pointer-events: none;
}

.depth-spiral-haze {
  fill: none;
  stroke: rgba(15, 111, 114, 0.12);
  stroke-linecap: round;
  stroke-width: 38;
  filter: blur(0.15px) drop-shadow(0 18px 28px rgba(15, 111, 114, 0.09));
}

.depth-spiral-line {
  fill: none;
  stroke: rgba(15, 111, 114, 0.4);
  stroke-linecap: round;
  stroke-width: 4.4;
  filter:
    drop-shadow(0 11px 18px rgba(15, 111, 114, 0.17))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.52));
  transition: none;
}

.depth-spiral-dot {
  fill: rgba(255, 255, 255, 0.94);
  stroke: var(--red);
  stroke-width: 5;
  filter:
    drop-shadow(0 16px 24px rgba(23, 68, 77, 0.24))
    drop-shadow(0 0 16px rgba(201, 76, 60, 0.2));
}

.landing-steps {
  display: grid;
  gap: 18px;
  padding: 12px 0 8px;
}

.landing-steps::before {
  display: none;
}

.landing-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(23, 68, 77, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  padding: 20px;
  backdrop-filter: blur(8px) saturate(1.08);
  box-shadow: 0 14px 30px rgba(25, 38, 52, 0.05);
}

.landing-step::before {
  display: none;
}

.landing-step span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(15, 111, 114, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(25, 38, 52, 0.08);
}

.landing-step h3 {
  margin: 0;
  font-size: 1.65rem;
  overflow-wrap: anywhere;
}

.landing-step p {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1019px) {
  .landing-process {
    overflow: visible;
  }

  .process-depth-spiral,
  .pricing-depth-spiral {
    inset: -32vh -72px -32vh -82px;
    width: calc(100% + 154px);
    height: auto;
  }

  .landing-use-cases {
    position: relative;
    z-index: 3;
  }
}

.landing-use-cases {
  background: #ffffff;
}

.landing-use-grid,
.landing-price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-use {
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)),
    var(--blue-soft);
}

.landing-demo-band {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  background: #13272c;
  color: #fff;
}

.landing-dashboard-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  padding: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.landing-dashboard-preview::before {
  position: absolute;
  top: -110px;
  left: -120px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 218, 195, 0.22), rgba(123, 218, 195, 0.08) 36%, transparent 68%);
  content: "";
  filter: blur(2px);
  animation: landing-panel-glow 8s ease-in-out infinite;
}

.landing-dashboard-preview::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  content: "";
  pointer-events: none;
}

.landing-dashboard-preview > * {
  position: relative;
  z-index: 1;
}

.preview-topline,
.preview-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.preview-topline {
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 850;
}

.preview-topline strong {
  border-radius: var(--radius);
  background: var(--green-soft);
  color: #166649;
  padding: 7px 10px;
}

.landing-dashboard-preview h3 {
  margin-top: 22px;
  color: #fff;
  font-size: 2.2rem;
}

.preview-company {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.preview-case {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

.preview-reasons {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.preview-reasons span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.28;
}

.preview-reasons svg {
  width: 18px;
  height: 18px;
  color: #8feaa2;
}

.preview-tags {
  margin-top: 28px;
}

.preview-tags span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 850;
}

.landing-demo-copy {
  max-width: 620px;
}

.landing-demo-copy p:not(.landing-eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.landing-pricing {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: #f6f8fb;
}

.landing-pricing .landing-section-head,
.landing-price-grid {
  position: relative;
  z-index: 2;
}

.pricing-depth-spiral {
  position: absolute;
  inset: -150px 0 -260px;
  z-index: 1;
  width: 100%;
  height: calc(100% + 410px);
  overflow: visible;
  opacity: 0.86;
  pointer-events: none;
}

.landing-price strong {
  display: block;
  margin-top: 10px;
  color: var(--brand-dark);
  font-size: 2.2rem;
  line-height: 1;
}

.landing-price.is-featured {
  border-color: rgba(15, 111, 114, 0.34);
  background: rgba(234, 248, 246, 0.72);
}

.landing-final {
  position: relative;
  z-index: 3;
  min-height: 420px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(19, 39, 44, 0.96), rgba(19, 39, 44, 0.82)),
    #13272c;
  color: #fff;
}

.landing-final > div {
  max-width: 760px;
}

.landing-final p:not(.landing-eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.landing-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.7fr) minmax(220px, 0.8fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid rgba(23, 68, 77, 0.12);
  background: #ffffff;
  padding: 34px max(20px, calc((100vw - 1120px) / 2));
}

.footer-brand,
.footer-contact,
.footer-links {
  min-width: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 0;
  object-fit: contain;
}

.footer-brand strong,
.footer-contact span {
  display: block;
  color: var(--ink);
  font-weight: 950;
}

.footer-brand span,
.footer-contact small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.footer-contact,
.footer-links {
  display: grid;
  gap: 8px;
}

.footer-contact a,
.footer-links a,
.cookie-links a,
.document-links a {
  color: var(--brand-dark);
  font-weight: 850;
  text-decoration-color: rgba(15, 111, 114, 0.28);
  text-underline-offset: 4px;
}

.footer-contact a:hover,
.footer-links a:hover,
.cookie-links a:hover,
.document-links a:hover {
  color: var(--brand);
}

.cookie-banner {
  position: fixed;
  z-index: 28;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 430px;
  max-width: calc(100vw - 32px);
  gap: 12px;
  border: 1px solid rgba(23, 68, 77, 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 18px 42px rgba(25, 38, 52, 0.18);
  backdrop-filter: blur(16px);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-copy strong {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 950;
}

.cookie-copy,
.cookie-links a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cookie-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.cookie-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.78rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-primary,
.cookie-secondary {
  min-height: 38px;
  border-radius: var(--radius);
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 950;
}

.cookie-primary {
  border: 1px solid rgba(15, 111, 114, 0.22);
  background: var(--brand);
  color: #fff;
}

.cookie-primary:hover {
  background: var(--brand-dark);
}

.cookie-secondary {
  border: 1px solid var(--line);
  background: #f7fafb;
  color: var(--brand-dark);
}

.cookie-secondary:hover {
  border-color: rgba(15, 111, 114, 0.28);
  background: #edf7f5;
}

.scroll-top {
  position: fixed;
  z-index: 22;
  right: 18px;
  bottom: calc(18px + var(--nav-lift));
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(15, 111, 114, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-dark);
  box-shadow: 0 14px 30px rgba(25, 38, 52, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #eaf8f6;
  transform: translateY(-2px);
}

body:not(.cookie-dismissed) .scroll-top {
  bottom: calc(248px + var(--nav-lift));
}

@media (max-width: 1019px) {
  .scroll-top {
    right: 12px;
    bottom: calc(var(--nav-h) + var(--nav-lift) + 14px + env(safe-area-inset-bottom));
  }

  body:not(.cookie-dismissed) .scroll-top {
    bottom: calc(var(--nav-h) + var(--nav-lift) + 188px + env(safe-area-inset-bottom));
  }
}

.document-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.document-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.document-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
}

.document-brand img {
  width: 38px;
  height: 38px;
  border-radius: 0;
  object-fit: contain;
}

.document-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-back {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--brand-dark);
  padding: 0 13px;
  font-weight: 900;
  text-decoration: none;
}

.document-back:hover {
  border-color: rgba(15, 111, 114, 0.28);
  background: #edf7f5;
}

.document-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 42px;
  box-shadow: 0 18px 42px rgba(25, 38, 52, 0.08);
}

.document-card h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 2.6rem;
}

.document-card h2 {
  margin-top: 30px;
  font-size: 1.18rem;
}

.document-card p {
  color: #3b4654;
  line-height: 1.72;
}

.document-card section {
  border-top: 1px solid rgba(23, 68, 77, 0.1);
  margin-top: 24px;
  padding-top: 2px;
}

.document-card a {
  color: var(--brand-dark);
  font-weight: 850;
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  border-top: 1px solid rgba(23, 68, 77, 0.1);
  padding-top: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-hero .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

.landing-feature:nth-child(2),
.landing-use:nth-child(2),
.landing-price:nth-child(2) {
  transition-delay: 90ms;
}

.landing-feature:nth-child(3),
.landing-use:nth-child(3),
.landing-price:nth-child(3) {
  transition-delay: 180ms;
}

.landing-feature:nth-child(4) {
  transition-delay: 270ms;
}

@keyframes landing-status-sheen {
  0%,
  54% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(480%);
  }
}

@keyframes landing-signal-roll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-25%);
  }
}

@keyframes landing-mini-meter {
  0%,
  100% {
    transform: scaleX(0.52);
  }

  50% {
    transform: scaleX(1);
  }
}

@keyframes landing-panel-glow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  45% {
    transform: translate(58%, 18%) scale(1.18);
  }

  72% {
    transform: translate(116%, 42%) scale(0.88);
  }
}

@keyframes landing-bar-glint {
  0%,
  42% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes brand-halo-breathe {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.62;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.96;
  }
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .landing-nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .landing-links {
    display: none;
  }

  .landing-hero {
    align-items: end;
    padding: 112px 20px 48px;
  }

  .landing-hero h1 {
    font-size: 4.25rem;
  }

  .landing-hero-copy > p:not(.landing-eyebrow) {
    font-size: 1.12rem;
  }

  .landing-hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 420px);
    margin-top: 34px;
  }

  .landing-section,
  .landing-final {
    padding: 72px 20px;
  }

  .landing-intro {
    padding-top: 54px;
  }

  .landing-section-head h2,
  .landing-demo-copy h2,
  .landing-final h2 {
    font-size: 2.85rem;
  }

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

  .landing-use-grid,
  .landing-price-grid,
  .landing-demo-band {
    grid-template-columns: 1fr;
  }

  .landing-demo-band {
    gap: 30px;
  }

  .landing-footer {
    grid-template-columns: 1fr 1fr;
    padding: 30px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .document-card {
    padding: 32px;
  }
}

@media (max-width: 560px) {
  .landing-nav {
    top: 8px;
    width: calc(100vw - 16px);
    gap: 8px;
    padding: 8px;
  }

  .landing-brand img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .landing-brand span {
    max-width: 152px;
  }

  .landing-login {
    min-height: 36px;
    padding: 0 10px;
  }

  .landing-hero {
    min-height: 92svh;
    padding: 96px 16px 42px;
  }

  .landing-hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 18, 26, 0.98), rgba(9, 18, 26, 0.88) 58%, rgba(9, 18, 26, 0.42)),
      linear-gradient(0deg, rgba(9, 18, 26, 0.92), rgba(9, 18, 26, 0.1) 52%);
  }

  .landing-hero h1 {
    font-size: 2.78rem;
  }

  .landing-hero-copy > p:not(.landing-eyebrow) {
    font-size: 1.02rem;
  }

  .landing-actions {
    display: grid;
  }

  .landing-primary,
  .landing-secondary {
    width: 100%;
  }

  .landing-section,
  .landing-final {
    padding: 60px 16px;
  }

  .landing-intro {
    padding-top: 46px;
  }

  .landing-section-head h2,
  .landing-demo-copy h2,
  .landing-final h2 {
    font-size: 2.12rem;
  }

  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .landing-steps {
    gap: 16px;
    padding-left: 0;
  }

  .landing-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
  }

  .landing-step span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.82rem;
  }

  .landing-step h3 {
    font-size: 1.28rem;
  }

  .landing-dashboard-preview {
    padding: 20px;
  }

  .landing-dashboard-preview h3 {
    font-size: 1.55rem;
  }

  .landing-footer {
    grid-template-columns: 1fr;
    padding: 28px 16px;
  }

  .cookie-banner {
    right: auto !important;
    bottom: 0;
    left: 0 !important;
    width: 100% !important;
    max-width: 390px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    gap: 10px;
    padding: 12px;
  }

  .cookie-copy p {
    font-size: 0.78rem;
  }

  .cookie-links {
    display: grid;
    gap: 6px;
  }

  .cookie-actions {
    grid-template-columns: 1fr;
  }

  .document-shell {
    width: min(100% - 20px, 960px);
    padding-top: 12px;
  }

  .document-header {
    align-items: stretch;
  }

  .document-back {
    justify-content: center;
  }

  .document-card {
    padding: 22px;
  }

  .document-card h1 {
    font-size: 1.9rem;
  }
}

body.is-guest #resultCount,
body.is-guest #searchCount,
body.is-guest .source-item,
body.is-guest .metric-card,
body.is-guest .doc-context,
body.is-guest .document-editor,
body.is-guest .timeline,
body.is-guest .chat-preview,
body.is-guest .alert-list,
body.is-guest .integration-note,
body.is-guest .integration-section,
body.is-guest .active-tariff-panel,
body.is-guest .tariff-builder,
body.is-guest .profile-grid,
body.is-guest .billing-panel {
  filter: blur(8px);
  opacity: 0.58;
  pointer-events: none;
  user-select: none;
}

body.is-guest [data-view="profile"] .screen-header h1 {
  filter: blur(7px);
  opacity: 0.58;
}

body.is-guest .document-editor {
  color: transparent;
  text-shadow: 0 0 12px rgba(23, 32, 42, 0.44);
}

.workspace {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 12px 22px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.mobile-header,
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  margin-bottom: 10px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.58rem;
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: 1.04rem;
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand-dark);
  box-shadow: 0 6px 20px rgba(25, 38, 52, 0.08);
}

.icon-button.compact {
  width: 36px;
  height: 36px;
  box-shadow: none;
}

.signal-band {
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd7dc;
  border-radius: var(--radius);
  min-height: 236px;
  background:
    radial-gradient(circle at 18% 18%, rgba(16, 168, 58, 0.38), transparent 34%),
    radial-gradient(circle at 86% 76%, rgba(201, 76, 60, 0.5), transparent 35%),
    linear-gradient(140deg, rgba(24, 36, 38, 0.98), rgba(18, 92, 43, 0.93) 58%, rgba(201, 76, 60, 0.9)),
    #182426;
  color: #fff;
  box-shadow: var(--shadow);
}

.signal-band::before,
.signal-band::after {
  position: absolute;
  inset: auto;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.signal-band::before {
  top: -64px;
  right: -44px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  animation: signal-orbit 9s ease-in-out infinite;
}

.signal-band::after {
  bottom: -88px;
  left: -54px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(220, 248, 235, 0.16), transparent 62%);
  animation: signal-float 8s ease-in-out infinite;
}

#signalCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.76;
}

@keyframes signal-orbit {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-18px, 22px, 0) scale(1.08);
  }
}

@keyframes signal-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(22px, -18px, 0);
  }
}

.signal-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  min-height: 236px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px;
}

.search-box {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  padding: 7px 8px 7px 13px;
}

.search-box input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.search-box input::placeholder {
  color: #7c8795;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.metric-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 10px 9px;
}

.metric-card strong {
  display: block;
  margin-top: 5px;
  font-size: 1.22rem;
  line-height: 1.1;
}

.metric-card small,
.metric-label {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card.accent-green {
  border-color: rgba(34, 160, 107, 0.35);
  background: #eefcf5;
}

.metric-card.accent-amber {
  border-color: rgba(196, 135, 0, 0.35);
  background: #fff8dc;
}

.filter-strip,
.doc-toolbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 12px;
  scrollbar-width: none;
}

.filter-strip::-webkit-scrollbar,
.doc-toolbar::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0 13px;
  font-weight: 700;
}

.chip.is-active {
  border-color: rgba(15, 111, 114, 0.3);
  background:
    linear-gradient(145deg, rgba(20, 184, 63, 0.18), transparent 48%),
    var(--brand-dark);
  color: #fff;
  box-shadow:
    0 8px 20px rgba(24, 36, 38, 0.12),
    0 0 0 1px rgba(20, 184, 63, 0.08);
}

.chip span {
  display: none;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  line-height: 1;
}

.chip.is-active span {
  display: grid;
}

.chip[data-filter="all"] span {
  display: none;
}

.source-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.source-grid::-webkit-scrollbar {
  display: none;
}

.source-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  flex: 0 0 74%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
}

.source-item strong,
.source-item small {
  display: block;
}

.source-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot.ok {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34, 160, 107, 0.12);
}

.status-dot.warn {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(196, 135, 0, 0.14);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.section-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.section-head.plain {
  margin-top: 0;
}

.tender-list {
  display: grid;
  gap: 10px;
}

.tender-card {
  position: relative;
  overflow: hidden;
  display: grid;
  min-width: 0;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 13px;
  box-shadow: 0 8px 24px rgba(25, 38, 52, 0.07);
}

.tender-card.is-selected {
  border-color: rgba(16, 168, 58, 0.5);
  box-shadow:
    0 12px 30px rgba(16, 168, 58, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tender-card.is-selected::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--green), rgba(16, 168, 58, 0.18));
  content: "";
}

.tender-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.score-badge {
  display: grid;
  min-width: 66px;
  min-height: 54px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: #136d47;
  font-weight: 900;
}

.score-badge.medium {
  background: var(--amber-soft);
  color: #846000;
}

.score-badge.low {
  background: var(--red-soft);
  color: #9b3026;
}

.score-badge.muted {
  background: #eef3f7;
  color: var(--muted);
  font-size: 1.2rem;
}

.tender-title {
  display: -webkit-box;
  margin-bottom: 7px;
  overflow: hidden;
  color: var(--ink);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tender-org,
.tender-meta,
.risk-text {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.tender-source-line {
  color: #50707c;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
}

.tender-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.tender-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.tender-meta strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.84rem;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.mini-action,
.card-actions .icon-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfd;
  color: var(--brand-dark);
  font-weight: 800;
}

.card-actions .icon-button {
  width: 42px;
  height: 38px;
  box-shadow: none;
}

.favorite-action.is-favorite {
  border-color: rgba(196, 135, 0, 0.36);
  background: #fff8dc;
  color: var(--amber);
}

.inspector {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 12px calc(var(--nav-h) + 12px);
}

.inspector-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  min-width: 0;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow);
}

.inspector-panel::before {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 168, 58, 0.12), transparent 64%);
  content: "";
  pointer-events: none;
}

.score-ring-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.score-ring-row > div,
.inspector-panel h2,
.inspector-panel .eyebrow,
.risk-pill span,
.check-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.score-ring {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #fff 71%, transparent 72%),
    conic-gradient(var(--ring-color) calc(var(--score) * 1%), #e8eef2 0);
}

.score-ring strong {
  font-size: 1.3rem;
}

.factor-list {
  display: grid;
  gap: 10px;
}

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

.factor-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.factor-bar {
  overflow: hidden;
  height: 8px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.factor-bar i {
  display: block;
  height: 100%;
  border-radius: var(--radius);
  background: var(--brand);
}

.risk-grid,
.checklist {
  display: grid;
  gap: 8px;
}

.risk-pill,
.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  min-width: 0;
  align-items: start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 9px 10px;
}

.risk-pill svg,
.check-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.risk-pill.warn svg {
  color: var(--amber);
}

.risk-pill.danger svg {
  color: var(--red);
}

.check-item.done svg {
  color: var(--green);
}

.check-item.pending svg {
  color: var(--amber);
}

.inspector-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.side-context-panel h2 {
  margin-bottom: 0;
  font-size: 1.24rem;
}

.side-action-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

.side-summary-list {
  display: grid;
  gap: 8px;
}

.side-summary-list div,
.side-total,
.max-side-logo {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(23, 68, 77, 0.12);
  border-radius: var(--radius);
  background: #f7fafb;
  padding: 10px;
}

.side-summary-list span,
.side-total span,
.max-side-logo span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.side-summary-list strong,
.side-total strong,
.max-side-logo strong {
  color: var(--brand-dark);
  line-height: 1.25;
}

.side-total {
  border-color: rgba(15, 111, 114, 0.22);
  background: #f1faf9;
}

.side-total strong {
  font-size: 1.4rem;
}

.max-side-logo {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.max-side-logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 0 14px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--brand-dark);
  background:
    linear-gradient(145deg, rgba(20, 184, 63, 0.18), transparent 42%),
    var(--brand-dark);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(24, 36, 38, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.primary-action::after {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130, 255, 166, 0.8), transparent);
  content: "";
  opacity: 0.8;
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand-dark);
}

.secondary-action:disabled,
.secondary-action.is-disabled {
  border-color: #d8e0e7;
  background: #eef2f5;
  color: #8a97a5;
  cursor: not-allowed;
  opacity: 0.78;
  box-shadow: none;
}

.secondary-action.is-favorite {
  border-color: rgba(196, 135, 0, 0.36);
  background: #fff8dc;
  color: var(--amber);
}

.form-layout,
.profile-grid,
.billing-panel,
.doc-context,
.doc-picker,
.application-flow-card,
.regeneration-panel,
.auto-participation-panel,
.chat-preview,
.alert-list,
.integration-platform-list,
.integration-application-list,
.integration-audit-list {
  display: grid;
  gap: 10px;
}

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

.filter-block {
  display: grid;
  gap: 6px;
}

.field-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.field span,
.toggle-row,
.doc-context span,
.profile-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.field input,
.field select,
.document-editor {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.field input,
.field select {
  height: 48px;
  padding: 0 12px;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 4px;
}

.segmented-control button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.segmented-control button.is-active {
  background: var(--surface);
  color: var(--brand-dark);
  box-shadow: 0 4px 12px rgba(25, 38, 52, 0.08);
}

.toggle-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.doc-context,
.profile-row {
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.doc-context {
  grid-template-columns: 1fr auto;
  margin-bottom: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.application-flow-card,
.regeneration-panel,
.auto-participation-panel {
  border: 1px solid rgba(15, 111, 114, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
  box-shadow: 0 12px 28px rgba(18, 49, 38, 0.06);
}

.application-flow-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.application-flow-head h2 {
  margin: 2px 0 0;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.application-flow-copy,
.regeneration-panel small,
.auto-participation-panel span,
.package-step-grid span {
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
}

.package-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(15, 111, 114, 0.2);
  border-radius: var(--button-radius);
  background: #f2fbfa;
  color: var(--brand-dark);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.package-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.package-step-grid article {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(23, 68, 77, 0.12);
  border-radius: var(--radius);
  background: rgba(247, 251, 252, 0.84);
  padding: 10px;
}

.regeneration-comment {
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

.auto-participation-panel {
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  align-items: end;
}

.auto-participation-panel strong,
.auto-participation-panel span {
  display: block;
}

.auto-participation-panel strong {
  margin-bottom: 3px;
}

.document-source-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid rgba(15, 111, 114, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 250, 249, 0.84));
  padding: 12px;
}

.document-source-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.document-source-head strong,
.document-source-head span {
  display: block;
}

.document-source-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.4;
}

.file-action {
  position: relative;
  cursor: pointer;
}

.file-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.document-source-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.document-source-list {
  display: grid;
  gap: 7px;
}

.document-source-item,
.document-source-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid rgba(23, 68, 77, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 9px;
}

.document-source-empty {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.35;
}

.document-source-item.is-pending {
  grid-template-columns: auto minmax(0, 1fr);
}

.document-source-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.document-source-item.is-pending svg {
  color: var(--amber);
}

.document-source-item strong,
.document-source-item span {
  display: block;
  min-width: 0;
}

.document-source-delete {
  margin-left: auto;
  flex: 0 0 auto;
}

.document-source-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-source-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.32;
}

.doc-context strong,
.profile-row strong {
  display: block;
  margin-top: 3px;
}

.profile-status,
.profile-form,
.profile-summary {
  display: grid;
  gap: 12px;
}

.profile-status {
  grid-template-columns: auto 1fr;
  align-items: start;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.profile-status svg {
  width: 20px;
  height: 20px;
}

.profile-status.is-warning {
  border-color: rgba(196, 135, 0, 0.28);
  background: #fffaf0;
}

.profile-status.is-warning svg {
  color: var(--amber);
}

.profile-status.is-ok {
  border-color: rgba(34, 160, 107, 0.28);
  background: #f2fbf7;
}

.profile-status.is-ok svg {
  color: var(--green);
}

.profile-status strong,
.profile-status span {
  display: block;
}

.profile-status span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.profile-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.profile-section-head {
  display: grid;
  gap: 4px;
}

.profile-section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.profile-fields {
  display: grid;
  gap: 10px;
}

.profile-field {
  display: grid;
  gap: 6px;
}

.profile-field span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.profile-field b {
  color: var(--red);
}

.profile-field input,
.profile-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
}

.profile-field.has-error input,
.profile-field.has-error select {
  border-color: rgba(201, 76, 60, 0.72);
  background: #fff8f6;
}

.profile-error {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.profile-source-note {
  border: 1px solid rgba(15, 111, 114, 0.16);
  border-radius: var(--radius);
  background: #f6fbfa;
  color: var(--muted);
  padding: 11px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.profile-source-note a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-form-actions {
  display: grid;
  gap: 8px;
}

.profile-summary-head {
  display: grid;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(23, 68, 77, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.profile-summary-head h2 {
  margin: 2px 0 5px;
  font-size: 1.22rem;
}

.profile-summary-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.document-editor {
  min-height: 320px;
  resize: vertical;
  padding: 14px;
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.document-editor[hidden] {
  display: none;
}

.document-editor-shell {
  position: relative;
}

.application-loader-shell.is-loading {
  min-height: 224px;
}

.application-loader-shell .document-generation-loader {
  position: static;
  min-height: 224px;
}

.document-editor-shell.is-loading .document-editor {
  color: transparent;
  caret-color: transparent;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 249, 241, 0.86)),
    var(--surface);
}

.document-generation-loader {
  position: absolute;
  inset: 1px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 40%, rgba(16, 168, 58, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(246, 252, 247, 0.92));
  padding: 28px;
  text-align: center;
  pointer-events: none;
}

.document-generation-loader[hidden] {
  display: none;
}

.document-generation-loader strong {
  color: var(--brand-dark);
  font-size: 1.08rem;
}

.document-generation-loader p {
  max-width: 430px;
  margin: -6px 0 0;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
}

.generation-orbit {
  position: relative;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(16, 168, 58, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(16, 168, 58, 0.14), rgba(255, 255, 255, 0.76));
  box-shadow:
    0 18px 42px rgba(18, 49, 38, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.generation-orbit::before,
.generation-orbit::after {
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(16, 168, 58, 0.2);
  border-radius: 50%;
  content: "";
  animation: generation-pulse 1.9s ease-in-out infinite;
}

.generation-orbit::after {
  inset: 25px;
  animation-delay: 0.35s;
}

.generation-orbit span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(16, 168, 58, 0.42);
  animation: generation-dot 1.35s ease-in-out infinite;
}

.generation-orbit span:nth-child(1) {
  top: 18px;
  left: 20px;
}

.generation-orbit span:nth-child(2) {
  top: 33px;
  right: 17px;
  animation-delay: 0.18s;
}

.generation-orbit span:nth-child(3) {
  bottom: 18px;
  left: 31px;
  animation-delay: 0.36s;
}

@keyframes generation-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@keyframes generation-dot {
  0%,
  100% {
    opacity: 0.38;
    transform: translateY(0) scale(0.9);
  }

  50% {
    opacity: 1;
    transform: translateY(-5px) scale(1.08);
  }
}

.document-version-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  padding: 12px;
}

.document-version-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.document-version-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.document-version-head strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.document-version-head span,
.document-version-empty {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.compact-action {
  min-height: 38px;
  padding: 0 11px;
  white-space: nowrap;
}

.document-version-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.document-version-list::-webkit-scrollbar {
  display: none;
}

.document-version-chip {
  display: inline-grid;
  min-width: 96px;
  gap: 2px;
  border: 1px solid rgba(15, 111, 114, 0.18);
  border-radius: var(--radius);
  background: #f7fbfc;
  color: var(--brand-dark);
  padding: 8px 10px;
  text-align: left;
}

.document-version-chip strong {
  font-weight: 950;
}

.document-version-chip span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.document-library {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.document-library-card,
.document-library-empty {
  display: grid;
  min-width: 0;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 11px;
  text-align: left;
}

.document-library-card {
  cursor: pointer;
}

.document-library-card.is-active {
  border-color: rgba(15, 111, 114, 0.44);
  background: #f2fbfa;
  box-shadow: inset 4px 0 0 var(--brand);
}

.document-library-card span,
.document-library-card small,
.document-library-empty span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.document-library-card strong,
.document-library-empty strong {
  overflow: hidden;
  color: var(--ink);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-panel {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
}

.state-panel strong {
  color: var(--ink);
  font-size: 1rem;
}

.state-panel span {
  color: var(--muted);
  line-height: 1.45;
}

.state-panel.warning {
  border-color: rgba(217, 158, 20, 0.28);
  background: #fff8e7;
}

.action-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 8px;
  margin: 10px 0 16px;
}

.package-actions {
  grid-template-columns: 1.3fr 1fr;
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.timeline article > span {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline strong,
.timeline small {
  display: block;
}

.timeline small {
  color: var(--muted);
}

.chat-bubble {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 10px 24px rgba(25, 38, 52, 0.08);
}

.max-connect-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(15, 111, 114, 0.18);
  border-radius: var(--radius);
  background: #f4fbfa;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(25, 38, 52, 0.08);
}

.max-connect-card img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.max-connect-card > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.max-connect-card span {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.max-connect-card strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.max-connect-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.max-connect-card .primary-action {
  grid-column: 1 / -1;
}

.max-connect-card.is-connected {
  border-color: rgba(34, 160, 107, 0.32);
  background: #f1fbf6;
}

.max-connect-button:disabled {
  cursor: default;
  opacity: 1;
}

.chat-bubble span {
  display: inline-block;
  margin-bottom: 9px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.chat-bubble strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.25;
}

.chat-bubble p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.bot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
}

.bot-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfd;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.alert-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.alert-item strong,
.alert-item small {
  display: block;
}

.alert-item small {
  margin-top: 3px;
  color: var(--muted);
}

.integration-note,
.integration-section,
.integration-card,
.integration-application-card,
.integration-audit-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.integration-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(241, 250, 249, 0.96), rgba(255, 255, 255, 0.96));
  padding: 13px;
}

.integration-note svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.integration-note strong,
.integration-note span,
.integration-note small {
  display: block;
  min-width: 0;
}

.integration-note span,
.integration-note small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.38;
}

.integration-note small {
  color: var(--ink);
  opacity: 0.72;
}

.integration-section {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.74);
  padding: 13px;
}

.integration-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.integration-toolbar h2 {
  margin-bottom: 0;
  font-size: 1.18rem;
}

.integration-card,
.integration-application-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(25, 38, 52, 0.06);
}

.integration-card-head,
.integration-application-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.integration-card-head strong,
.integration-application-head strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 1.25;
}

.integration-card-head span,
.integration-application-head span,
.integration-meta span,
.integration-audit-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.3;
}

.integration-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(100, 114, 130, 0.18);
  border-radius: 999px;
  background: #eef3f7;
  color: var(--muted);
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.integration-status.ok {
  border-color: rgba(34, 160, 107, 0.24);
  background: #eefcf5;
  color: #136d47;
}

.integration-status.warn {
  border-color: rgba(196, 135, 0, 0.28);
  background: #fff8dc;
  color: #846000;
}

.integration-status.danger {
  border-color: rgba(201, 76, 60, 0.28);
  background: #fff0ed;
  color: #9b3026;
}

.integration-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.integration-meta div {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(23, 68, 77, 0.1);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 8px;
}

.integration-meta strong {
  overflow-wrap: anywhere;
  color: var(--brand-dark);
  line-height: 1.2;
}

.integration-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.integration-actions button {
  min-height: 38px;
}

.integration-audit-item {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.integration-audit-item strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.integration-audit-item code {
  overflow-wrap: anywhere;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: normal;
}

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

.bid-modal {
  position: fixed;
  z-index: 34;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
}

.bid-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 22, 31, 0.58);
  backdrop-filter: blur(8px);
}

.bid-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 560px);
  overflow: hidden;
  border: 1px solid rgba(23, 68, 77, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 62px rgba(9, 22, 31, 0.28);
}

.bid-modal-head,
.bid-modal-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
}

.bid-modal-head {
  border-bottom: 1px solid var(--line);
}

.bid-modal-head h2 {
  font-size: 1.18rem;
}

.bid-modal-body {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.bid-warning {
  border: 1px solid rgba(196, 135, 0, 0.26);
  border-radius: var(--radius);
  background: #fff8dc;
  color: #6b5200;
  padding: 10px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.4;
}

.bid-modal-footer {
  border-top: 1px solid var(--line);
  background: #f8fbfc;
}

.switch {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: #cbd5dd;
}

.switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(25, 38, 52, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--brand);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.billing-panel {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.plan-hero {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(23, 68, 77, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 68, 77, 0.98), rgba(15, 111, 114, 0.92) 58%, rgba(45, 108, 223, 0.86)),
    var(--brand-dark);
  color: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
}

.plan-hero h2 {
  margin: 5px 0 7px;
  font-size: 1.26rem;
}

.plan-hero p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.plan-hero > strong {
  font-size: 1.86rem;
  line-height: 1;
}

.plan-kicker {
  display: inline-block;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.plan-grid {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.plan-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 13px;
  box-shadow: 0 8px 22px rgba(25, 38, 52, 0.06);
}

.plan-card.is-featured {
  border-color: rgba(34, 160, 107, 0.42);
  background: linear-gradient(180deg, #f7fffb, #ffffff);
}

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.plan-head span {
  color: var(--brand-dark);
  font-size: 1.02rem;
  font-weight: 950;
}

.plan-head strong {
  color: var(--ink);
  font-size: 1.14rem;
}

.plan-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.42;
}

.plan-region-addon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 10px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.plan-region-addon.is-active {
  border-color: rgba(15, 111, 114, 0.34);
  background: #f2fbfa;
  box-shadow: inset 3px 0 0 var(--brand);
}

.plan-region-addon strong,
.plan-region-addon small,
.plan-region-addon b {
  display: block;
}

.plan-region-addon > div:first-child strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.15;
}

.plan-region-addon small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.plan-region-addon b {
  grid-column: 1 / -1;
  justify-self: start;
  border-radius: 999px;
  background: #eef5f7;
  color: var(--brand-dark);
  padding: 5px 8px;
  font-size: 0.78rem;
  line-height: 1;
}

.plan-region-addon.is-active b {
  background: var(--brand-dark);
  color: #fff;
}

.active-tariff-panel {
  display: none;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(34, 160, 107, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 68, 77, 0.98), rgba(15, 111, 114, 0.92) 58%, rgba(34, 160, 107, 0.82)),
    var(--brand-dark);
  color: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
}

.active-tariff-panel.is-visible {
  display: grid;
}

.active-tariff-panel h2 {
  margin: 5px 0 7px;
  font-size: 1.24rem;
}

.active-tariff-panel p,
.active-tariff-panel small {
  display: block;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.active-tariff-panel > strong {
  font-size: 1.72rem;
  line-height: 1;
}

.tariff-builder {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(23, 68, 77, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 12px 30px rgba(25, 38, 52, 0.08);
}

.tariff-builder-head {
  display: grid;
  align-items: start;
  gap: 12px;
}

.tariff-builder-head h2 {
  margin: 3px 0 7px;
  font-size: 1.24rem;
}

.tariff-builder-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.42;
}

.tariff-total {
  border: 1px solid rgba(15, 111, 114, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 111, 114, 0.1), rgba(45, 108, 223, 0.08)),
    #f7fbfc;
  padding: 12px;
}

.tariff-total span,
.tariff-total small,
.tariff-total strong {
  display: block;
}

.tariff-total span,
.tariff-total small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.tariff-total strong {
  margin: 3px 0;
  color: var(--brand-dark);
  font-size: 1.86rem;
  line-height: 1;
}

.tariff-included {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(34, 160, 107, 0.22);
  border-radius: var(--radius);
  background: #f5fbf8;
  padding: 11px;
}

.tariff-included span {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tariff-included strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.tariff-sliders {
  display: grid;
  gap: 10px;
}

.tariff-slider {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(100, 114, 130, 0.22);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 12px;
}

.tariff-slider > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.tariff-slider strong {
  color: var(--ink);
  line-height: 1.18;
}

.tariff-slider b {
  border-radius: 999px;
  background: #eaf3f5;
  color: var(--brand-dark);
  padding: 5px 8px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.tariff-slider input[type="range"] {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background:
    linear-gradient(90deg, var(--brand) 0 var(--progress, 0%), #dbe5eb var(--progress, 0%) 100%);
  padding: 0;
}

.tariff-slider input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: var(--brand-dark);
  box-shadow: 0 6px 16px rgba(23, 68, 77, 0.22);
}

.tariff-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand-dark);
  box-shadow: 0 6px 16px rgba(23, 68, 77, 0.22);
}

.tariff-slider small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.tariff-slider em {
  flex: 0 0 auto;
  color: var(--brand);
  font-style: normal;
  font-weight: 950;
}

.tariff-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tariff-option {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px 10px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.tariff-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tariff-option > span {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  border: 2px solid #9eb9c8;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 5px #fff;
}

.tariff-option.is-active {
  border-color: var(--brand);
  background: rgba(230, 252, 244, 0.82);
}

.tariff-option.is-active > span {
  border-color: var(--brand);
  background: var(--brand);
}

.tariff-option.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.tariff-option strong {
  color: var(--ink);
}

.tariff-option small {
  color: var(--muted);
  line-height: 1.35;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-methods-title {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.payment-option {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 52px;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfd;
  color: var(--brand-dark);
  padding: 11px 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-radio {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #b8c8d3;
  border-radius: 50%;
  background: #fff;
}

.payment-option.is-active {
  border-color: rgba(15, 111, 114, 0.38);
  background: #f1faf9;
  box-shadow: inset 4px 0 0 var(--brand);
}

.payment-option.is-active .payment-radio {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 4px #fff;
}

.payment-methods svg {
  width: 18px;
  height: 18px;
}

.payment-option strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tariff-footer {
  display: grid;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.tariff-details-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tariff-details-list li {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(23, 68, 77, 0.12);
  border-radius: var(--radius);
  background: #f7fafb;
  padding: 9px 10px;
}

.tariff-details-list span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
}

.tariff-details-list strong {
  color: var(--brand-dark);
  font-size: 0.94rem;
  line-height: 1.18;
}

.tariff-footer b {
  color: inherit;
}

.region-stepper {
  display: grid;
  grid-template-columns: 30px 28px 30px;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius);
  background: #edf3f6;
  padding: 3px;
}

.region-stepper button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 950;
}

.region-stepper button:hover {
  border-color: rgba(15, 111, 114, 0.24);
}

.region-stepper strong {
  color: var(--brand-dark);
  text-align: center;
  font-size: 0.9rem;
}

.company-builder {
  display: grid;
  gap: 12px;
  margin: 12px 0 4px;
  border: 1px solid rgba(23, 68, 77, 0.2);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 12px 30px rgba(25, 38, 52, 0.08);
}

.builder-head {
  display: grid;
  gap: 12px;
}

.builder-head h2 {
  margin: 3px 0 7px;
  font-size: 1.24rem;
}

.builder-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.42;
}

.builder-total {
  border: 1px solid rgba(15, 111, 114, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 111, 114, 0.1), rgba(45, 108, 223, 0.08)),
    #f7fbfc;
  padding: 12px;
}

.builder-total span,
.builder-total small,
.builder-total strong {
  display: block;
}

.builder-total span,
.builder-total small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.builder-total strong {
  margin: 3px 0;
  color: var(--brand-dark);
  font-size: 1.72rem;
  line-height: 1;
}

.builder-meter {
  height: 8px;
  margin: 10px 0 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe5eb;
}

.builder-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--blue));
  transition: width 180ms ease;
}

.builder-included {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 11px;
}

.builder-included span {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.builder-included strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.builder-options {
  display: grid;
  gap: 10px;
}

.builder-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(100, 114, 130, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 252, 0.96)),
    #fff;
  padding: 12px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.builder-option:hover {
  border-color: rgba(15, 111, 114, 0.28);
  box-shadow: 0 12px 24px rgba(25, 38, 52, 0.08);
  transform: translateY(-1px);
}

.builder-option.is-selected {
  border-color: rgba(15, 111, 114, 0.48);
  background:
    linear-gradient(180deg, rgba(240, 251, 249, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow:
    0 12px 26px rgba(15, 111, 114, 0.12),
    inset 4px 0 0 var(--brand);
}

.builder-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.builder-option.is-disabled:hover {
  border-color: rgba(100, 114, 130, 0.22);
  box-shadow: none;
}

.builder-option input {
  position: absolute;
  opacity: 0;
}

.builder-toggle {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid #cbd8e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 4px #eef3f7;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.builder-toggle::after {
  position: absolute;
  top: 6px;
  left: 10px;
  width: 7px;
  height: 12px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  content: "";
  opacity: 0;
  transform: rotate(45deg) scale(0.72);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.builder-option input:checked + .builder-toggle {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(15, 111, 114, 0.22);
}

.builder-option input:checked + .builder-toggle::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.builder-option input:checked ~ .builder-option-copy strong {
  color: var(--brand-dark);
}

.builder-option-copy {
  min-width: 0;
}

.builder-option-copy strong,
.builder-option-copy small {
  display: block;
}

.builder-option-copy strong {
  color: var(--ink);
  line-height: 1.18;
}

.builder-option-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.builder-option b {
  justify-self: end;
  border-radius: 999px;
  background: #eef5f7;
  color: var(--brand-dark);
  padding: 6px 9px;
  font-size: 0.88rem;
  line-height: 1;
  white-space: nowrap;
}

.builder-option.is-selected b {
  background: var(--brand-dark);
  color: #fff;
}

.builder-footer {
  display: grid;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.builder-footer span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.sbp-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(45, 108, 223, 0.22);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 10px 28px rgba(25, 38, 52, 0.08);
}

.sbp-copy h2 {
  margin: 3px 0 7px;
}

.sbp-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.42;
}

.qr-card {
  position: relative;
  display: grid;
  width: min(100%, 148px);
  aspect-ratio: 1;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.qr-card span,
.qr-card i {
  border-radius: 4px;
  background: var(--brand-dark);
}

.qr-card span:nth-child(2),
.qr-card span:nth-child(5) {
  background: var(--blue);
}

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

.filter-modal {
  position: fixed;
  z-index: 28;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 12px;
}

.filter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 28, 0.36);
  backdrop-filter: blur(8px);
}

.filter-modal-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  width: min(720px, 100%);
  max-height: min(820px, calc(100dvh - 24px));
  border: 1px solid rgba(23, 68, 77, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 62px rgba(25, 38, 52, 0.24);
}

.filter-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.filter-modal-head h2 {
  font-size: 1.24rem;
}

.filter-modal-form {
  overflow: auto;
  min-height: 0;
  padding: 14px;
  -webkit-overflow-scrolling: touch;
}

.filter-modal-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #f8fbfc;
  padding: 12px 14px;
}

.filter-modal-footer span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

body.filters-open {
  overflow: hidden;
}

.qr-card span:nth-child(3),
.qr-card span:nth-child(6) {
  background: var(--green);
}

.qr-card i {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 42px;
  height: 42px;
  background:
    linear-gradient(90deg, var(--brand-dark) 0 40%, transparent 40% 60%, var(--brand-dark) 60%),
    linear-gradient(0deg, transparent 0 35%, var(--blue) 35% 65%, transparent 65%);
}

.payment-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.payment-summary div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 10px;
}

.payment-summary span,
.payment-summary strong {
  display: block;
}

.payment-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.payment-summary strong {
  margin-top: 4px;
}

.usage-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.usage-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.usage-row div {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 8px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.usage-row i {
  display: block;
  height: 100%;
  border-radius: var(--radius);
  background: var(--violet);
}

.bottom-nav {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: var(--nav-lift);
  left: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: var(--nav-h);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.bottom-nav button span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav button.is-active {
  background:
    linear-gradient(145deg, rgba(20, 184, 63, 0.2), transparent 48%),
    var(--brand-dark);
  color: #fff;
  box-shadow:
    0 10px 22px rgba(24, 36, 38, 0.2),
    0 0 0 1px rgba(20, 184, 63, 0.1);
}

.desktop-rail {
  display: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.brand-mark::before {
  position: absolute;
  z-index: -2;
  inset: -10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 46%, rgba(40, 231, 91, 0.48) 0 14%, rgba(40, 231, 91, 0.22) 32%, transparent 68%);
  content: "";
  filter: blur(10px);
  opacity: 0.78;
}

.brand-mark::after {
  position: absolute;
  z-index: -1;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 30px;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(41, 232, 94, 0.7) 16% 84%, transparent 84%) top / 100% 8px no-repeat,
    linear-gradient(90deg, transparent 0 38%, rgba(41, 232, 94, 0.62) 38% 62%, transparent 62%) center / 100% 100% no-repeat;
  content: "";
  filter: blur(7px);
  opacity: 0.62;
}

.brand-mark img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(24, 36, 38, 0.14));
}

.guest-auth-cta {
  position: fixed;
  z-index: 14;
  right: 12px;
  bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(23, 68, 77, 0.24);
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: #fff;
  padding: 0 14px;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(23, 68, 77, 0.24);
}

body.is-guest .guest-auth-cta {
  display: inline-flex;
}

body.auth-open .guest-auth-cta {
  display: none;
}

.lock-action {
  width: 100%;
  border-color: rgba(15, 111, 114, 0.28);
  background: #f4fbfa;
  color: var(--brand-dark);
  text-align: left;
  font-weight: 900;
}

.lock-action:hover {
  border-color: rgba(15, 111, 114, 0.48);
  background: #eaf8f6;
}

.auth-gate {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: none;
  place-items: center;
  overflow: auto;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  background: rgba(11, 18, 28, 0.56);
  padding: 12px;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

body.auth-open .auth-gate {
  display: grid;
}

.auth-panel {
  position: relative;
  display: grid;
  width: min(460px, calc(100vw - 24px));
  min-width: 0;
  gap: 16px;
  border: 1px solid rgba(25, 38, 52, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  padding: 30px;
  pointer-events: auto;
  box-shadow:
    0 22px 52px rgba(25, 38, 52, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.74) inset;
}

.auth-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.auth-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.auth-copy h2 {
  overflow-wrap: anywhere;
  margin-bottom: 7px;
  font-size: 1.42rem;
  line-height: 1.1;
}

.auth-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.auth-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
}

.ghost-action {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auth-benefits span {
  display: inline-flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(15, 111, 114, 0.16);
  border-radius: var(--radius);
  background: #f7fbfc;
  color: var(--brand-dark);
  padding: 7px 9px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.auth-benefits svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--brand);
}

.auth-providers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.email-auth-form {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 111, 114, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232, 255, 247, 0.82), rgba(247, 251, 252, 0.96));
  padding: 12px;
}

.email-auth-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.email-auth-field input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
}

.email-auth-field input:focus {
  border-color: rgba(15, 111, 114, 0.55);
  outline: 3px solid rgba(15, 111, 114, 0.12);
}

.email-auth-submit,
.email-code-row .secondary-action {
  min-height: 46px;
}

.email-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.email-auth-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.auth-provider {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  font-weight: 900;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.auth-provider:hover {
  border-color: rgba(23, 68, 77, 0.25);
  box-shadow: 0 8px 20px rgba(25, 38, 52, 0.1);
  transform: translateY(-1px);
}

.auth-provider:disabled {
  cursor: default;
  opacity: 0.68;
  transform: none;
}

.auth-provider:disabled:hover {
  box-shadow: none;
}

.auth-provider.vk {
  border-color: rgba(39, 135, 245, 0.24);
  background: #f5f9ff;
}

.auth-provider.max {
  border-color: rgba(15, 111, 114, 0.2);
  background: #f3fbfa;
}

.auth-provider.ok {
  border-color: rgba(238, 130, 8, 0.26);
  background: #fff8ee;
}

.auth-provider span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.auth-provider strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.96rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: normal;
}

.auth-provider small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: normal;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.auth-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(23, 68, 77, 0.14);
  border-radius: var(--radius);
  background: #fbfcfd;
  color: var(--muted);
  padding: 11px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.auth-note span {
  overflow-wrap: anywhere;
}

.auth-note svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.ghost-action {
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 12px;
  bottom: calc(var(--nav-h) + 12px);
  left: 12px;
  display: block;
  visibility: hidden;
  opacity: 0;
  border: 1px solid rgba(23, 68, 77, 0.18);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  font-weight: 800;
  box-shadow: var(--shadow);
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 680px) {
  .source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .source-item {
    flex: none;
  }

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

  .compact-list {
    grid-template-columns: 1fr;
  }

  .plan-hero {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .active-tariff-panel,
  .tariff-builder-head,
  .tariff-footer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tariff-total {
    min-width: 220px;
  }

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

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

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

  .profile-field.wide,
  .profile-summary-head,
  .profile-form-actions {
    grid-column: 1 / -1;
  }

  .profile-form-actions,
  .profile-summary-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .builder-head,
  .builder-footer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .builder-total {
    min-width: 190px;
  }

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

  .sbp-panel {
    grid-template-columns: 1.1fr 190px;
    align-items: center;
  }

  .qr-card {
    width: min(100%, 190px);
  }

  .sbp-panel .primary-action,
  .payment-summary {
    grid-column: 1 / -1;
  }

  .auth-gate {
    top: 0;
    align-items: center;
  }
}

@media (max-width: 679px) {
  .company-builder {
    margin-bottom: calc(var(--nav-h) + 16px);
  }

  .tariff-builder {
    margin-bottom: 0;
  }
}

@media (max-width: 1019px) {
  :root {
    --nav-h: 84px;
    --nav-lift: 0px;
  }

  .app-shell {
    overflow-x: hidden;
  }

  .workspace {
    width: 100%;
    max-width: 100vw;
  }

  .inspector {
    display: none;
  }

  .screen-header > div,
  .mobile-header > div {
    min-width: 0;
  }

  .screen-header h1,
  .mobile-header h1 {
    overflow-wrap: anywhere;
  }

  .billing-header-pay {
    display: none;
  }

  .bottom-nav {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .workspace {
    padding-right: 9px;
    padding-left: 9px;
  }

  .landing-nav {
    width: calc(100vw - 12px);
  }

  .landing-brand span {
    max-width: 118px;
    font-size: 0.9rem;
  }

  .screen-header,
  .mobile-header {
    gap: 8px;
  }

  h1 {
    font-size: 1.38rem;
  }

  .score-badge {
    min-width: 52px;
    min-height: 46px;
  }

  .tender-card {
    padding: 11px;
  }

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

  .card-actions {
    grid-template-columns: minmax(0, 1fr) 40px 40px;
  }

  .card-actions .icon-button {
    width: 40px;
  }

  .bottom-nav {
    padding-right: 4px;
    padding-left: 4px;
  }

  .bottom-nav button {
    gap: 2px;
    font-size: 0.58rem;
  }

  .bottom-nav svg {
    width: 18px;
    height: 18px;
  }

  .filter-modal {
    padding: 8px;
  }

  .filter-modal-panel {
    max-height: calc(100dvh - 16px);
  }

  .filter-modal-footer {
    grid-template-columns: 1fr;
  }

  .integration-toolbar,
  .integration-card-head,
  .integration-application-head,
  .bid-modal-head,
  .bid-modal-footer {
    grid-template-columns: 1fr;
  }

  .integration-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .auth-gate {
    place-items: center;
  }

  .auth-panel {
    width: min(336px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow: auto;
    gap: 10px;
    padding: 18px;
  }

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

  .auth-mark {
    width: 50px;
    height: 50px;
  }

  .auth-mark img {
    width: 50px;
    height: 50px;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .auth-benefits span {
    min-height: 34px;
  }

  .auth-providers {
    gap: 8px;
  }

  .ghost-action {
    min-height: 40px;
    height: 40px;
  }

  .auth-copy h2 {
    font-size: 1.22rem;
  }

  .auth-provider {
    gap: 9px;
    min-height: 56px;
    padding: 9px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .auth-provider strong {
    font-size: 0.86rem;
  }

  .auth-provider small {
    font-size: 0.68rem;
  }

  .auth-note {
    padding: 8px;
    font-size: 0.72rem;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .tariff-options {
    grid-template-columns: 1fr;
  }

  .tariff-details-list {
    grid-template-columns: 1fr;
  }

  .tariff-slider small {
    align-items: flex-start;
    flex-direction: column;
  }

  .builder-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .builder-option b {
    grid-column: 2;
  }
}

@media (min-width: 1020px) {
  .app-shell {
    display: grid;
    width: min(calc(100vw - 24px), 1880px);
    grid-template-columns: 84px minmax(0, 1fr) minmax(340px, 420px);
    gap: 0;
    justify-content: center;
    margin: 0 auto;
    padding-bottom: 0;
  }

  body[data-view="billing"] .app-shell {
    grid-template-columns: 84px minmax(0, 1fr) minmax(420px, 520px);
  }

  .desktop-rail {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
    padding: 18px 12px;
    backdrop-filter: blur(18px);
  }

  .rail-button {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
  }

  .rail-button.is-active {
    border-color: rgba(23, 68, 77, 0.18);
    background:
      radial-gradient(circle at 28% 22%, rgba(26, 220, 82, 0.22), transparent 42%),
      var(--brand-dark);
    color: #fff;
    box-shadow:
      0 12px 24px rgba(24, 36, 38, 0.16),
      0 0 0 1px rgba(20, 184, 63, 0.08);
  }

  .rail-button.is-active::after {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #25d957;
    box-shadow: 0 0 0 4px rgba(37, 217, 87, 0.14);
    content: "";
  }

  .rail-bottom {
    margin-top: auto;
  }

  .workspace {
    width: 100%;
    margin: 0;
    padding: 24px;
  }

  .mobile-header,
  .screen-header {
    min-height: 74px;
  }

  .signal-band {
    min-height: 300px;
  }

  .signal-content {
    min-height: 300px;
    padding: 22px;
  }

  .inspector {
    position: sticky;
    top: 0;
    min-width: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    border-left: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    padding: 24px 18px;
    backdrop-filter: blur(18px);
  }

  body[data-view="billing"] .inspector {
    padding-right: 22px;
    padding-left: 22px;
  }

  body[data-view="billing"] .side-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="billing"] .side-total {
    grid-column: 1 / -1;
  }

  .inspector-panel {
    box-shadow: none;
  }

  .toast {
    top: 24px;
    right: 24px;
    bottom: auto;
    left: auto;
    width: min(360px, calc(100vw - 48px));
    padding: 13px 14px;
    transform: translateX(28px);
  }

  .toast.is-visible {
    transform: translateX(0);
  }

  .guest-auth-cta {
    top: 24px;
    right: 24px;
    bottom: auto;
  }

  .bottom-nav {
    display: none;
  }
}

@media (min-width: 1440px) {
  .app-shell {
    grid-template-columns: 84px minmax(0, 1fr) minmax(400px, 460px);
  }

  body[data-view="billing"] .app-shell {
    grid-template-columns: 84px minmax(0, 1fr) minmax(500px, 600px);
  }

  .inspector {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (min-width: 1800px) {
  .app-shell {
    grid-template-columns: 84px minmax(0, 1fr) minmax(430px, 500px);
  }

  body[data-view="billing"] .app-shell {
    grid-template-columns: 84px minmax(0, 1fr) minmax(560px, 660px);
  }
}

@media (max-width: 360px) {
  .workspace,
  .inspector {
    padding-right: 9px;
    padding-left: 9px;
  }

  .signal-content {
    padding: 13px;
  }

  .metric-grid,
  .tender-meta,
  .bot-actions,
  .action-row {
    grid-template-columns: 1fr;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .card-actions .icon-button {
    width: 100%;
  }

  .auth-panel {
    padding: 22px;
  }

  .auth-providers {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .document-source-head,
  .document-source-actions,
  .application-flow-head,
  .package-step-grid,
  .auto-participation-panel,
  .action-row {
    grid-template-columns: 1fr;
  }

  .package-status-pill {
    width: fit-content;
  }

  .file-action {
    width: 100%;
  }
}

button,
.primary-action,
.secondary-action,
.chip,
.icon-button,
.rail-button,
.bottom-nav button,
.auth-provider,
.landing-button,
.landing-cta,
.segmented-control button,
.region-stepper button,
.payment-option,
.integration-actions button,
.bot-actions button,
.document-version-chip {
  border-radius: var(--button-radius);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
