:root {
  --navy: #3A1D8A;
  --blue-light: #F3E7DD;
  --ice: #FCFBF9;
  --blue: #6E4FC2;
  --blue-pale: #F3E7DD;
  --ink: #3A1D8A;
  --ink-2: #6B5A88;
  --violet: #3A1D8A;
  --violet-soft: #F3E7DD;
  --orange: #F4651A;
  --orange-2: #F4651A;
  --accent-text: #3A1D8A;
  --paper: #ffffff;
  --mist: #FCFBF9;
  --line: #E8D8CD;
  --muted: #6B5A88;
  --text: #2A183E;
  --success: #3A1D8A;
  --danger: #B63F1B;
  --shadow: 0 18px 50px rgba(58, 29, 138, 0.11);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

[hidden],
.is-hidden {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--mist);
  min-width: 320px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(300px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 0 clamp(20px, 8vw, 150px);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.05);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  display: grid;
  line-height: 1;
  text-transform: uppercase;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 800;
}

.brand-text small {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 8px;
}

.brand-logo {
  width: 205px;
  height: auto;
  display: block;
}

.footer-logo {
  width: 230px;
}

.desktop-nav,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.desktop-nav {
  justify-content: center;
}

.topbar-actions {
  justify-content: flex-end;
}

.nav-link {
  position: relative;
  color: #fff;
  background: transparent;
  padding: 18px 0;
  font-size: 16px;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-dropdown-toggle span {
  color: var(--orange);
  font-size: 15px;
  font-weight: 850;
}

.nav-dropdown-menu {
  position: absolute;
  left: 50%;
  top: calc(100% - 2px);
  z-index: 55;
  width: 210px;
  display: grid;
  padding: 18px 0;
  background: #fff;
  border-radius: 0 0 7px 7px;
  box-shadow: 0 16px 36px rgba(58, 29, 138, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-link {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-size: 17px;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
  color: var(--violet);
  background: #FCFBF9;
  outline: none;
}

.profile-pill {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: transparent;
  white-space: nowrap;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    linear-gradient(rgba(58, 29, 138, 0.05), rgba(58, 29, 138, 0.05)),
    url("assets/avatar.png?v=20260602-client-spec") center / cover;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cta-button {
  min-height: 52px;
  min-width: 190px;
  display: inline-grid;
  grid-template-columns: 1fr 52px;
  align-items: stretch;
  color: var(--accent-text);
  background: var(--orange);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(106, 79, 194, 0.2);
}

.cta-button span,
.cta-button strong {
  display: grid;
  place-items: center;
}

.cta-button strong {
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.14) 35% 100%);
  font-size: 24px;
}

.logout-button {
  min-height: 52px;
  padding: 0 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
}

.logout-button:hover,
.logout-button:focus-visible {
  color: var(--accent-text);
  background: var(--orange);
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(106, 79, 194, 0.2);
  outline: none;
}

.icon-button {
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  background: transparent;
  color: #fff;
}

.mobile-menu-button {
  gap: 5px;
}

.mobile-menu-button span {
  width: 22px;
  height: 2px;
  background: currentColor;
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 76px;
  right: 16px;
  z-index: 40;
  display: none;
  min-width: 240px;
  padding: 18px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mobile-menu.is-open {
  display: grid;
}

.mobile-menu .nav-link {
  text-align: left;
  padding: 12px 0;
}

#app {
  min-height: 70vh;
}

.view-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 24px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(780px, calc(100vh - 132px));
  display: grid;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(58, 29, 138, 0.9) 0%, rgba(106, 79, 194, 0.78) 40%, rgba(243, 231, 221, 0.84) 100%),
    url("assets/hero-building.png?v=20260602-client-spec") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(58, 29, 138, 0.2));
  z-index: -1;
}

.hero-grid {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
  color: #fff;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.82);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  font-weight: 850;
}

.hero-copy .subtitle {
  max-width: 620px;
  margin-bottom: 34px;
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 700;
}

.hero-copy .about {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 28px 0;
}

.button-primary,
.button-secondary,
.button-ghost,
.button-danger {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button-primary {
  color: #fff;
  background: var(--ink);
}

.button-primary.orange {
  color: var(--accent-text);
  background: var(--orange);
}

.button-secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
}

.button-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.button-danger {
  color: #fff;
  background: var(--danger);
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover,
.button-danger:hover {
  transform: translateY(-1px);
}

.button-primary:hover,
.cta-button:hover {
  box-shadow: 0 16px 38px rgba(58, 29, 138, 0.22);
}

.status-panel,
.hero-card,
.panel,
.filter-panel,
.listing-card,
.drawer,
.dashboard-card,
.system-card {
  background: var(--paper);
  border: 1px solid rgba(220, 228, 238, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  color: var(--ink);
  padding: 28px;
}

.status-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.status-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.status-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--ink);
  font-weight: 850;
}

.status-item.is-complete .status-dot {
  color: #3A1D8A;
  background: #E8D8CD;
}

.status-item strong {
  display: block;
  margin-bottom: 2px;
}

.status-item small {
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--violet-soft);
  font-size: 13px;
  font-weight: 760;
}

.chip.dark {
  color: #fff;
  background: var(--ink);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.quick-tile {
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.quick-tile strong {
  display: block;
  font-size: 24px;
}

.quick-tile span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(590px, 48vw, 880px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(106, 79, 194, 0.08), rgba(58, 29, 138, 0.12)),
    url("assets/banner-bg.png?v=20260602-client-spec") center / cover no-repeat,
    var(--ink);
}

.home-hero-inner {
  width: min(1420px, calc(100% - 48px));
  min-height: clamp(590px, 48vw, 880px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 0.96fr) minmax(430px, 0.88fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}

.home-hero-visual {
  position: relative;
  align-self: end;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
}

.home-hero-visual img {
  width: min(760px, 52vw);
  margin-left: clamp(-20px, -2vw, 0px);
  object-fit: contain;
  filter: drop-shadow(0 24px 38px rgba(58, 29, 138, 0.24));
}

.home-hero-copy {
  max-width: 720px;
  padding: 40px 0 90px;
}

.home-hero-copy h1 {
  margin-bottom: 28px;
  font-size: clamp(32px, 2.55vw, 48px);
  line-height: 1.05;
  text-transform: uppercase;
}

.home-hero-subtitle {
  margin-bottom: 28px;
  font-size: clamp(25px, 2.3vw, 42px);
  line-height: 1.18;
  color: rgba(255, 255, 255, 0.92);
}

.home-hero-copy p:not(.home-hero-subtitle) {
  max-width: 560px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.3vw, 24px);
  line-height: 1.35;
}

.text-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 58px;
  margin-top: 12px;
  padding: 0 58px;
  color: var(--accent-text);
  background: var(--orange);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  box-shadow: 0 18px 36px rgba(58, 29, 138, 0.24);
  font-size: clamp(16px, 1.15vw, 22px);
  font-weight: 850;
  text-transform: uppercase;
}

.text-cta:hover {
  color: #fff;
  background: var(--navy);
  transform: translateY(-1px);
}

.home-hero-copy p.home-promo {
  max-width: none;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.45;
}

.benefits-section {
  --benefits-bg-scale: 1;
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 7vw, 130px) 24px clamp(92px, 8vw, 150px);
  background: #fff;
}

.benefits-pattern {
  position: absolute;
  left: -10vw;
  right: -10vw;
  top: clamp(190px, 17vw, 250px);
  height: clamp(300px, 27vw, 420px);
  opacity: 0.78;
  background-image: url("assets/bg-1.png?v=20260602-client-spec");
  background-repeat: repeat-x;
  background-position: center center;
  background-size: auto 100%;
  pointer-events: none;
  transform: scale(var(--benefits-bg-scale));
  transform-origin: center center;
  will-change: transform;
}

.benefits-section h2 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto clamp(76px, 7vw, 112px);
  color: #3A1D8A;
  font-size: clamp(34px, 3.3vw, 54px);
  line-height: 1.05;
  text-align: center;
}

.benefits-section h2 strong {
  display: block;
  color: #3A1D8A;
}

.benefits-row {
  position: relative;
  z-index: 1;
  width: min(1360px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(440px, 720px) minmax(220px, 300px);
  gap: clamp(18px, 1.8vw, 34px);
  align-items: stretch;
}

.persona-card,
.benefit-list {
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(58, 29, 138, 0.2);
}

.persona-card {
  position: relative;
  min-height: clamp(216px, 16vw, 250px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 22px 30px;
  overflow: visible;
  text-align: center;
}

.persona-illustration {
  position: absolute;
  left: 50%;
  bottom: 58px;
  width: auto;
  height: clamp(220px, 18vw, 292px);
  max-width: 122%;
  object-fit: contain;
  transform: translateX(-50%);
  pointer-events: none;
}

.persona-card strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 400;
  line-height: 1.2;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 42px);
  min-height: clamp(216px, 16vw, 250px);
  align-items: center;
  padding: clamp(26px, 2.7vw, 42px) clamp(34px, 3.8vw, 64px);
}

.benefit-list ul {
  margin: 0;
  padding-left: 18px;
}

.benefit-list li {
  margin: 7px 0;
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 400;
  line-height: 1.35;
}

.revolution-section {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 8vw, 150px) 24px 92px;
  background: #fff;
}

.home-angle {
  display: none;
}

.revolution-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
}

.revolution-copy {
  max-width: 560px;
}

.revolution-copy h2 {
  margin-bottom: 22px;
  color: #3A1D8A;
  font-size: clamp(30px, 2.9vw, 48px);
  line-height: 1.08;
}

.revolution-copy h2 strong {
  display: block;
  margin-top: 6px;
  color: var(--orange);
  font-size: 0.82em;
  line-height: 1;
}

.revolution-copy p {
  color: #6B5A88;
  font-size: clamp(20px, 1.9vw, 32px);
  line-height: 1.05;
}

.revolution-copy .lead {
  color: #6B5A88;
}

.salesman-wrap img {
  width: min(520px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 18px 34px rgba(58, 29, 138, 0.14));
}

.feature-grid {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 110px;
}

.feature-grid article {
  display: grid;
  gap: 8px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--navy);
  line-height: 1;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.feature-grid h3 {
  margin: 0;
  color: #3A1D8A;
  font-size: 22px;
  line-height: 1.05;
}

.feature-grid p {
  margin: 0;
  color: #6B5A88;
  font-size: 14px;
  line-height: 1.35;
}

.news-section {
  position: relative;
  padding: 36px 24px clamp(90px, 8vw, 150px);
  background: #fff;
}

.news-section h2 {
  width: min(1220px, 100%);
  margin: 0 auto 12px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.news-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.news-card {
  min-height: 530px;
  display: grid;
  grid-template-rows: 185px 1fr auto;
  background: #fff;
  box-shadow: 0 12px 36px rgba(58, 29, 138, 0.13);
}

.news-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}

.news-card div {
  padding: 28px 26px;
}

.news-card h3 {
  margin: 0 0 20px;
  color: #3A1D8A;
  font-size: 23px;
  line-height: 1.05;
}

.news-card p {
  color: #6B5A88;
  font-size: 14px;
  line-height: 1.5;
}

.read-more {
  margin-top: 16px;
  padding: 0;
  color: #3A1D8A;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.news-card footer {
  padding: 16px 26px 22px;
  color: #6B5A88;
  font-size: 11px;
  border-top: 1px solid #E8D8CD;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.preview-grid,
.metrics-grid,
.system-grid,
.db-grid {
  display: grid;
  gap: 18px;
}

.preview-grid {
  grid-template-columns: repeat(3, 1fr);
}

.preview-card {
  min-height: 280px;
  display: grid;
  grid-template-rows: 155px 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(58, 29, 138, 0.08);
  text-align: left;
}

.preview-card img {
  width: 100%;
  height: 155px;
  object-fit: cover;
}

.preview-card div {
  padding: 18px;
}

.preview-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 18px;
}

.preview-card p {
  color: var(--muted);
  line-height: 1.6;
}

.market-header {
  padding: 26px 0 42px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs strong {
  color: var(--ink);
}

.market-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}

.filter-panel {
  align-self: start;
  padding: 24px;
  box-shadow: none;
}

.filter-group + .filter-group {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.filter-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 780;
}

.filter-title::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: #E8D8CD;
}

.filter-panel input:not([type="checkbox"]):not([type="radio"]),
.filter-panel select,
.form-grid input:not([type="checkbox"]):not([type="radio"]),
.form-grid select,
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.dashboard-input,
.newsletter input {
  width: 100%;
  min-height: 46px;
  color: var(--text);
  background: #fff;
  border: 1px solid #E8D8CD;
  border-radius: 4px;
  padding: 0 14px;
  outline: none;
}

.filter-panel input:not([type="checkbox"]):not([type="radio"]):focus,
.filter-panel select:focus,
.form-grid input:not([type="checkbox"]):not([type="radio"]):focus,
.form-grid select:focus,
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus,
.dashboard-input:focus,
.newsletter input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(106, 79, 194, 0.12);
}

.field input[readonly],
.locked-input {
  color: #6B5A88;
  background: #FCFBF9;
  cursor: not-allowed;
}

.field-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.check-list {
  display: grid;
  gap: 10px;
  color: #6B5A88;
  font-size: 14px;
}

.check-list label,
.checkbox-row,
.radio-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.check-list input[type="checkbox"],
.checkbox-row input[type="checkbox"],
.radio-row input[type="radio"] {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 3px;
  accent-color: var(--ink);
}

.filter-panel .footer-link {
  color: var(--ink);
  text-transform: none;
}

.type-switch-list {
  display: grid;
  gap: 10px;
}

.filter-type-button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
  background: #FCFBF9;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 650;
}

.filter-type-button.is-active {
  color: #fff;
  background: var(--ink);
}

.filter-reset {
  width: 100%;
  margin-top: 22px;
}

.market-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.market-title {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
}

.market-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
}

.market-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.market-controls select {
  min-width: 220px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #E8D8CD;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
}

.layout-toggle {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #E8D8CD;
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
}

.layout-toggle.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.listing-list {
  display: grid;
  gap: 16px;
}

.listing-list.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 214px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(58, 29, 138, 0.06);
  text-align: left;
}

.listing-list.grid .listing-card {
  grid-template-columns: 1fr;
}

.listing-media {
  position: relative;
  min-height: 210px;
  background: #E8D8CD;
}

.listing-media img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.listing-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  color: #fff;
  background: var(--ink);
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.listing-badge.green {
  color: #3A1D8A;
  background: #F3E7DD;
}

.listing-body {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
  padding: 28px 28px 24px;
}

.listing-body h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
}

.listing-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.price {
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  color: var(--muted);
}

.page-buttons {
  display: flex;
  gap: 8px;
}

.page-buttons button {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #E8D8CD;
  color: var(--ink);
  font-weight: 780;
}

.page-buttons button.is-active {
  color: #fff;
  background: var(--ink);
}

.page-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-content: end;
  background: rgba(58, 29, 138, 0.45);
}

.drawer {
  width: min(560px, 100vw);
  height: 100%;
  overflow: auto;
  border-radius: 0;
  box-shadow: -18px 0 40px rgba(58, 29, 138, 0.24);
}

.drawer-hero {
  position: relative;
  min-height: 240px;
}

.drawer-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: rgba(58, 29, 138, 0.9);
  font-size: 24px;
}

.drawer-content {
  padding: 30px;
}

.lock-box {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 22px;
  color: var(--ink);
  background: #FCFBF9;
  border: 1px solid #E8D8CD;
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
}

.detail-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.detail-table div {
  padding: 14px;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.detail-table small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.listing-detail-page {
  padding: 32px clamp(20px, 8vw, 150px) 70px;
  background: #fff;
}

.listing-detail-shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.detail-back {
  margin-bottom: 18px;
}

.listing-detail-hero {
  overflow: hidden;
  border-radius: 8px;
  background: #E8D8CD;
}

.listing-detail-hero img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.listing-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.listing-detail-main {
  min-width: 0;
}

.listing-detail-main h1 {
  max-width: 880px;
  margin: 18px 0 18px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.listing-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 26px;
}

.listing-detail-chips span {
  padding: 8px 10px;
  color: #6B5A88;
  background: #FCFBF9;
  border-radius: 5px;
  font-size: 14px;
}

.listing-copy-block {
  margin-top: 26px;
}

.listing-copy-block h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 20px;
}

.listing-copy-block p {
  max-width: 860px;
  color: var(--text);
  line-height: 1.75;
}

.detail-address {
  margin-top: 70px;
  color: var(--muted);
  font-size: 14px;
}

.listing-detail-aside {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 16px;
  min-height: 360px;
  padding: 28px 24px;
  background: #FCFBF9;
  border-radius: 18px;
}

.listing-detail-aside p {
  margin: 0;
  color: #6B5A88;
  line-height: 1.55;
}

.danger-text {
  color: #3A1D8A;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(58, 29, 138, 0.58);
}

.report-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 34px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(220, 228, 238, 0.95);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(58, 29, 138, 0.28);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.report-modal h2 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.report-modal p {
  max-width: 560px;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.report-form {
  display: grid;
  gap: 18px;
}

.report-checks {
  padding: 0;
  border: 0;
}

.report-checks legend {
  margin-bottom: 10px;
  font-weight: 780;
}

.report-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.report-checks legend {
  grid-column: 1 / -1;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.register-page {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(58, 29, 138, 0.9) 0%, rgba(106, 79, 194, 0.74) 36%, rgba(243, 231, 221, 0.86) 100%),
    url("assets/hero-building.png?v=20260602-client-spec") center / cover;
}

.register-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0;
  color: #fff;
}

.register-title {
  margin-bottom: 34px;
}

.register-title h1 {
  margin: 0 0 8px;
  font-size: 28px;
  text-transform: uppercase;
}

.register-title p {
  margin: 0;
  font-size: 20px;
}

.form-panel {
  color: var(--text);
  background: #fff;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 0 0 18px 18px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px 12px;
}

.field {
  display: grid;
  gap: 8px;
  grid-column: span 4;
}

.field.span-2 {
  grid-column: span 2;
}

.field.span-3 {
  grid-column: span 3;
}

.field.span-5 {
  grid-column: span 5;
}

.field.span-6 {
  grid-column: span 6;
}

.field.span-8 {
  grid-column: span 8;
}

.field.span-12 {
  grid-column: span 12;
}

.form-section-title {
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid #E8D8CD;
}

.form-section-title h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}

.form-section-title span {
  color: var(--muted);
  font-size: 15px;
}

.field label,
.field .label,
.dashboard-label {
  color: var(--text);
  font-weight: 780;
}

.field textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.dashboard-form .form-grid .field {
  max-width: none;
}

.input-unit {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E8D8CD;
  border-radius: 4px;
}

.input-unit input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text);
  background: transparent;
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
}

.input-unit span {
  padding: 0 13px;
  color: #6B5A88;
  font-size: 13px;
}

.input-unit:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(106, 79, 194, 0.12);
}

.editor-shell {
  overflow: hidden;
  background: #fff;
  border: 1px solid #E8D8CD;
  border-radius: 4px;
}

.editor-toolbar {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: #6B5A88;
  background: #FCFBF9;
  border-bottom: 1px solid #E8D8CD;
  font-size: 12px;
  font-weight: 760;
}

.editor-toolbar button {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 2px 5px;
  color: #6B5A88;
  background: transparent;
  border-radius: 4px;
  font-weight: 800;
}

.editor-toolbar button:hover,
.editor-toolbar button:focus-visible {
  color: var(--text);
  background: #FCFBF9;
  outline: none;
}

.rich-editor {
  width: 100%;
  min-height: 210px;
  padding: 14px;
  color: var(--text);
  outline: 0;
}

.rich-editor:focus {
  box-shadow: inset 0 0 0 3px rgba(106, 79, 194, 0.08);
}

.rich-editor h3,
.rich-editor p {
  margin: 0 0 10px;
}

.rich-editor ul,
.rich-editor ol {
  margin: 0 0 10px 22px;
  padding: 0;
}

.editor-hidden {
  display: none;
}

.editor-shell textarea:not(.editor-hidden) {
  width: 100%;
  min-height: 210px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.large-textarea {
  min-height: 210px !important;
}

.address-check {
  margin-top: -8px;
}

.field.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.field.checkbox-row input {
  margin-top: 3px;
}

.choice-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-field legend {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 780;
}

.choice-list {
  display: grid;
  gap: 8px;
  color: #3A1D8A;
}

.inline-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #3A1D8A;
}

.choice-list .checkbox-row,
.choice-list .radio-row,
.inline-choice-list .checkbox-row {
  min-height: 20px;
  align-items: flex-start;
}

.choice-list input,
.inline-choice-list input {
  margin-top: 3px;
}

.required {
  color: var(--orange-2);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  grid-column: span 12;
}

.choice-group {
  display: grid;
  align-content: start;
  gap: 9px;
}

.choice-group strong {
  margin-bottom: 4px;
}

.form-submit {
  grid-column: span 12;
  margin-top: 10px;
}

.form-submit .button-primary {
  width: 100%;
  min-height: 58px;
  font-size: 20px;
}

.app-tabs {
  display: flex;
  gap: 34px;
  align-items: flex-end;
  min-height: 82px;
  padding: 0 clamp(20px, 8vw, 150px);
  background: #fff;
  border-top: 1px solid #E8D8CD;
}

.app-tab {
  height: 82px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border-bottom: 4px solid transparent;
  font-size: 20px;
  font-weight: 720;
}

.app-tab.is-active {
  border-bottom-color: var(--ink);
}

.dashboard-shell {
  width: 100%;
  margin: 0;
  padding: 70px clamp(20px, 8vw, 150px);
}

.dashboard-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 46px;
}

.dashboard-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.15;
}

.entry-type-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: -22px 0 34px;
}

.entry-type-button {
  min-width: 210px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid #E8D8CD;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 20px;
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(58, 29, 138, 0.06);
}

.entry-type-button.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.dashboard-card {
  padding: 0;
  overflow: hidden;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px clamp(24px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}

.card-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
}

.settings-accordion {
  margin-top: 34px;
}

.settings-section + .settings-section {
  border-top: 1px solid var(--line);
}

.settings-toggle {
  width: 100%;
  min-height: 108px;
  color: inherit;
  background: #fff;
  text-align: left;
}

.settings-toggle:hover .collapse-icon {
  transform: translateX(-2px);
}

.settings-section.is-open .settings-toggle {
  background: #FCFBF9;
}

.settings-panel-body {
  border-top: 1px solid var(--line);
  background: #fff;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.profile-image-editor {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.profile-image-preview {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 850;
}

.collapse-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 26px;
  transition: transform 160ms ease;
}

.dashboard-form {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 5vw, 70px);
}

.dashboard-form .field {
  max-width: 640px;
}

.dashboard-form .field.wide {
  max-width: none;
}

.save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.save-row .button-primary {
  min-width: 340px;
}

.save-row .button-primary.full-submit {
  width: 100%;
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #E8D8CD;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone.is-dragging,
.upload-zone.has-files {
  color: var(--ink);
  background: #FCFBF9;
  border-color: var(--violet);
}

.upload-zone svg {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  color: #E8D8CD;
}

.upload-file-list {
  display: block;
  max-width: 720px;
  margin: 8px auto 0;
  color: #6B5A88;
  font-size: 13px;
  line-height: 1.45;
}

.my-offers-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 70px;
}

.my-offers-toolbar .button-primary {
  white-space: nowrap;
}

.pill-tabs {
  display: flex;
  gap: 12px;
}

.pill-tab {
  min-height: 78px;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #6B5A88;
  background: #FCFBF9;
  border-radius: 6px;
  font-size: 22px;
}

.pill-tab.is-active {
  color: #fff;
  background: var(--ink);
}

.count-badge {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  font-weight: 850;
}

.offer-row {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr) 210px;
  min-height: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.empty-state {
  padding: 42px;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.empty-state h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
}

.empty-state p {
  margin: 0 0 10px;
  color: var(--muted);
}

.offer-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-row-content {
  padding: 44px 38px;
}

.offer-row-content h2 {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.15;
}

.offer-stats {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
}

.offer-actions {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 44px 34px;
  border-left: 1px solid var(--line);
}

.offer-actions button {
  display: flex;
  gap: 10px;
  align-items: center;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
}

.message-list {
  display: grid;
  gap: 14px;
}

.message-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.message-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
}

.user-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.user-chat-panel {
  overflow: hidden;
}

.user-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: clamp(24px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.user-chat-header h2 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
}

.user-chat-header p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3A1D8A;
  font-weight: 800;
}

.chat-status::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
}

.user-chat-thread {
  display: grid;
  gap: 16px;
  min-height: 420px;
  max-height: 580px;
  padding: clamp(20px, 4vw, 42px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(245, 247, 251, 0.94), rgba(255, 255, 255, 0.98)),
    repeating-linear-gradient(135deg, rgba(106, 79, 194, 0.035) 0 1px, transparent 1px 22px);
}

.chat-bubble {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  max-width: 76%;
  align-items: end;
}

.chat-bubble > div {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px 8px 8px 2px;
  box-shadow: 0 10px 24px rgba(58, 29, 138, 0.06);
}

.chat-bubble.is-outgoing {
  grid-template-columns: minmax(0, 1fr) 42px;
  justify-self: end;
}

.chat-bubble.is-outgoing .message-icon {
  grid-column: 2;
  grid-row: 1;
  color: var(--accent-text);
  background: var(--orange);
}

.chat-bubble.is-outgoing > div {
  grid-column: 1;
  grid-row: 1;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  border-radius: 8px 8px 2px 8px;
}

.chat-bubble.is-broadcast > div {
  border-color: rgba(106, 79, 194, 0.34);
  box-shadow: inset 4px 0 0 var(--orange), 0 10px 24px rgba(58, 29, 138, 0.06);
}

.chat-bubble-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 14px;
}

.chat-bubble-meta strong {
  color: inherit;
}

.chat-bubble-meta span {
  opacity: 0.72;
}

.chat-bubble p {
  margin: 0;
  line-height: 1.55;
}

.chat-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 320px;
  color: var(--muted);
  text-align: center;
}

.chat-empty strong {
  color: var(--ink);
  font-size: 22px;
}

.user-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
  background: #fff;
  border-top: 1px solid var(--line);
}

.user-chat-composer textarea {
  min-height: 64px;
  max-height: 180px;
  resize: vertical;
}

.user-chat-composer .button-primary {
  min-height: 64px;
}

.user-chat-sidebar {
  position: sticky;
  top: 96px;
}

.user-chat-sidebar h2 {
  margin-top: 0;
  color: var(--ink);
}

.system-hero {
  padding: 60px 0 10px;
}

.metrics-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 26px;
}

.system-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-tabs {
  gap: clamp(16px, 3vw, 34px);
}

.admin-title > div {
  display: grid;
  gap: 12px;
}

.admin-workspace {
  display: grid;
  gap: 24px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-kpi {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(58, 29, 138, 0.06);
}

.admin-kpi span,
.admin-kpi small {
  color: var(--muted);
}

.admin-kpi strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 34px;
}

.admin-overview-grid,
.admin-split,
.admin-messages-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.admin-card-heading h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.admin-card-heading .button-ghost {
  min-height: 42px;
  padding: 0 14px;
}

.admin-user-list,
.admin-match-list {
  display: grid;
  gap: 12px;
}

.admin-user-list {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.admin-detail-grid div {
  padding: 16px;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-detail-grid small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.admin-detail-grid strong {
  color: var(--ink);
}

.admin-verification-card {
  display: grid;
  gap: 16px;
  margin: 0 0 22px;
  padding: 18px;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-verification-card h3 {
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.admin-verification-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-document-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-document-row strong,
.admin-document-row small {
  display: block;
}

.admin-document-row small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-action-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-username-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: end;
  margin: 0 0 22px;
  padding: 18px;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-action-panel button,
.admin-message-form .button-primary,
.admin-username-form .button-primary {
  min-height: 48px;
}

.admin-full-card {
  min-height: 520px;
}

.admin-news-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.admin-news-form {
  display: grid;
  gap: 16px;
}

.compact-news-grid {
  gap: 14px;
}

.admin-news-form textarea {
  min-height: 180px;
}

.news-image-picker {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.news-image-picker img {
  width: 168px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.news-image-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.news-upload-button {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  justify-self: start;
  padding: 0 18px;
  cursor: pointer;
}

.admin-news-list {
  display: grid;
  gap: 12px;
}

.admin-news-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-news-row img {
  width: 148px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #FCFBF9;
}

.admin-news-row strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
}

.admin-news-row small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.admin-news-row p {
  margin: 0;
  color: var(--text);
  line-height: 1.4;
}

.admin-news-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 10px;
}

.admin-news-actions .button-ghost,
.admin-news-actions .button-danger {
  min-height: 42px;
  padding: 0 14px;
}

.admin-match-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.admin-listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.admin-listing-toolbar .filter-type-button {
  width: auto;
  min-width: 150px;
  text-align: center;
}

.admin-listing-list {
  display: grid;
  gap: 12px;
}

.admin-listing-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-listing-row img {
  width: 132px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #FCFBF9;
}

.admin-listing-row strong,
.admin-listing-row span {
  display: block;
  color: var(--ink);
}

.admin-listing-row strong {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.25;
}

.admin-listing-row small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.admin-listing-row span {
  font-weight: 850;
}

.admin-listing-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 10px;
}

.admin-listing-actions .button-ghost,
.admin-listing-actions .button-danger {
  min-height: 42px;
  padding: 0 14px;
}

.admin-listing-editor {
  display: grid;
  gap: 18px;
  padding-bottom: 28px;
}

.admin-listing-editor-heading .admin-card-heading {
  margin-bottom: 0;
}

.admin-listing-editor .dashboard-title {
  margin: 0 0 24px;
}

.admin-listing-editor .dashboard-title h1 {
  font-size: clamp(26px, 2.4vw, 34px);
}

.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.match-row:hover,
.match-row:focus-visible,
.match-row.is-selected {
  border-color: rgba(58, 29, 138, 0.45);
  box-shadow: 0 14px 28px rgba(58, 29, 138, 0.08);
  outline: none;
}

.match-row.is-selected {
  background: #fff;
  transform: translateY(-1px);
}

.match-row strong {
  color: var(--ink);
  font-size: 20px;
}

.match-row p {
  margin: 7px 0;
  color: var(--text);
  line-height: 1.35;
}

.match-row small {
  color: var(--muted);
}

.match-score {
  display: grid;
  gap: 8px;
}

.match-score span {
  color: var(--ink);
  font-weight: 850;
  text-align: right;
}

.match-meter {
  height: 10px;
  overflow: hidden;
  background: #FCFBF9;
  border-radius: 999px;
}

.match-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--violet));
  border-radius: inherit;
}

.match-detail-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.match-detail-heading,
.match-action-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.match-detail-heading strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.match-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.match-listing-summary {
  padding: 16px;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.match-listing-summary small,
.match-field-values small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.match-listing-summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.3;
}

.match-listing-summary span {
  color: var(--text);
  line-height: 1.35;
}

.match-action-row {
  justify-content: flex-start;
}

.match-action-row .button-ghost {
  min-height: 42px;
  padding: 0 14px;
}

.match-reason-list {
  display: grid;
  gap: 10px;
}

.match-reason-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-left: 4px solid #E8D8CD;
  border-radius: 6px;
}

.match-reason-row.match {
  border-left-color: #6B5A88;
}

.match-reason-row.partial {
  border-left-color: var(--orange);
}

.match-reason-row.miss {
  border-left-color: #E8D8CD;
}

.match-reason-status {
  align-self: start;
  justify-self: start;
  padding: 8px 10px;
  color: var(--ink);
  background: #FCFBF9;
  border-radius: 999px;
  font-weight: 850;
  font-size: 13px;
}

.match-reason-row strong {
  color: var(--ink);
  font-size: 17px;
}

.match-reason-row p {
  margin: 6px 0 12px;
  color: var(--text);
  line-height: 1.4;
}

.match-field-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.match-field-values span {
  min-width: 0;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.admin-message-composer textarea {
  min-height: 170px;
}

.admin-messages-layout > .system-card:last-child {
  grid-column: 1 / -1;
}

.compliance-panel,
.message-compose {
  margin-bottom: 34px;
}

.compact-dashboard-form {
  padding-top: 28px;
  padding-bottom: 28px;
}

.verification-flow {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.verification-intro {
  max-width: 880px;
}

.verification-intro h3,
.verification-complete h3 {
  margin: 10px 0 8px;
  color: var(--text);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.15;
}

.verification-intro p,
.verification-complete p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.verification-form {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px 14px;
  padding: clamp(18px, 3vw, 30px);
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.verification-grid {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.verification-grid article {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.verification-grid strong {
  color: var(--text);
}

.verification-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.contract-summary {
  grid-column: span 12;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 6px;
}

.contract-summary h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 19px;
}

.contract-summary p {
  margin: 0;
  color: #6B5A88;
  line-height: 1.6;
}

.verification-actions {
  grid-column: span 12;
}

.verification-complete {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 30px;
  padding: clamp(18px, 3vw, 30px);
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-user-row,
.approval-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  color: var(--text);
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
}

.admin-user-row.is-selected {
  border-color: var(--ink);
  box-shadow: inset 4px 0 0 var(--ink);
}

.admin-user-row small,
.approval-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.approval-row span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.approval-row button {
  min-height: 36px;
  padding: 0 12px;
  color: #fff;
  background: var(--ink);
  border-radius: 5px;
  font-weight: 750;
}

.approval-row button:last-child {
  background: #6B5A88;
}

.admin-message-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compact-message-list {
  max-height: 360px;
  overflow: auto;
}

.info-page .system-card p {
  color: var(--muted);
  line-height: 1.65;
}

.about-page {
  background: #fff;
}

.subpage-hero {
  width: min(1260px, calc(100% - 48px));
  min-height: 168px;
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 30px clamp(34px, 8vw, 140px);
  color: #fff;
  background: #6B5A88;
  border-radius: 0 0 8px 8px;
}

.subpage-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(43px, 5.2vw, 58px);
  font-weight: 700;
  line-height: 0.95;
}

.subpage-breadcrumb {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 24px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 14px;
}

.subpage-breadcrumb button {
  color: inherit;
  background: transparent;
  padding: 0;
}

.subpage-breadcrumb span {
  color: var(--orange);
  font-weight: 850;
}

.about-copy,
.about-quality,
.team-section {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.about-copy {
  display: grid;
  gap: 26px;
  padding: 72px 0 54px;
}

.about-copy article {
  max-width: 1020px;
}

.about-copy h2,
.about-offers h2,
.about-quality h2 {
  margin-bottom: 12px;
  color: #3A1D8A;
  font-size: 20px;
  line-height: 1.3;
}

.about-copy p,
.about-offers li,
.about-quality p,
.about-quality li,
.team-member p {
  color: #3A1D8A;
  font-size: 15px;
  line-height: 1.85;
}

.about-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 7vw, 118px);
  padding: 46px max(24px, calc((100vw - 1080px) / 2)) 48px;
  background: #FCFBF9;
}

.about-offers ul,
.about-quality ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.about-offers li::marker,
.about-quality li::marker {
  color: #3A1D8A;
}

.about-quality {
  padding: 58px 0 64px;
}

.about-quality > p:last-child {
  margin-top: 22px;
}

.about-cta {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 86px 24px 82px;
  color: #fff;
  background: #3A1D8A;
  text-align: center;
}

.about-cta h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  text-transform: uppercase;
}

.about-cta p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.about-cta .button-primary {
  min-width: 230px;
  min-height: 50px;
}

.team-section {
  padding: 72px 0 88px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 76px);
}

.team-member {
  min-width: 0;
}

.team-member img {
  width: min(280px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  margin: 0 0 28px;
  border-radius: 50%;
}

.team-member h3 {
  margin-bottom: 2px;
  color: #3A1D8A;
  font-size: 21px;
  line-height: 1.22;
}

.team-member > strong {
  display: block;
  margin-bottom: 16px;
  color: #3A1D8A;
  font-size: 13px;
}

.team-member p {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.75;
}

.legal-page {
  background: #fff;
}

.legal-content {
  width: min(1080px, calc(100% - 48px));
  margin: 72px auto 96px;
  padding: clamp(28px, 4vw, 54px);
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(58, 29, 138, 0.08);
}

.legal-content h2 {
  margin: 0 0 28px;
  color: #3A1D8A;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.legal-body {
  display: grid;
  gap: 16px;
}

.legal-body h3 {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
}

.legal-body h4 {
  margin: 8px 0 -6px;
  color: var(--ink-2);
  font-size: 16px;
  text-transform: uppercase;
}

.legal-note {
  padding: 16px 18px;
  background: var(--violet-soft);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
}

.legal-body p,
.legal-body li {
  color: #3A1D8A;
  font-size: 16px;
  line-height: 1.8;
}

.legal-body p {
  margin: 0;
}

.legal-body ol,
.legal-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 24px;
}

.legal-body strong {
  color: var(--ink);
}

.legal-body a {
  color: #3A1D8A;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body table {
  width: 100%;
  margin: 8px 0 18px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-body td,
.legal-body th {
  padding: 13px 16px;
  vertical-align: top;
  border: 1px solid var(--line);
}

.legal-body tr:nth-child(odd) {
  background: #FCFBF9;
}

.contact-page {
  background: #fff;
}

.contact-section {
  width: min(1240px, calc(100% - 48px));
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(54px, 7vw, 96px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(90px, 8vw, 140px) 0 110px;
}

.contact-info-list {
  display: grid;
  gap: 22px;
}

.contact-info-card {
  min-height: 66px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid #E8D8CD;
  border-radius: 34px;
  box-shadow:
    0 8px 20px rgba(58, 29, 138, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.contact-info-card-tall {
  min-height: 122px;
  align-items: start;
  border-radius: 24px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #6B5A88;
  font-size: 18px;
  line-height: 1;
}

.contact-info-card p {
  margin: 0;
  color: #3A1D8A;
  font-size: 19px;
  line-height: 1.35;
}

.contact-form {
  min-width: 0;
}

.contact-eyebrow {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 10px 18px;
  color: #6B5A88;
  background: #FCFBF9;
  border-radius: 7px;
  font-size: 18px;
}

.contact-form h2 {
  margin-bottom: 34px;
  color: var(--ink);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.05;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form-grid input,
.contact-form-grid textarea {
  width: 100%;
  min-height: 50px;
  color: var(--text);
  background: #fff;
  border: 1px solid #6B5A88;
  border-radius: 2px;
  padding: 0 18px;
  outline: none;
}

.contact-form-grid input::placeholder,
.contact-form-grid textarea::placeholder {
  color: #6B5A88;
}

.contact-form-grid textarea {
  min-height: 124px;
  padding-top: 14px;
  resize: vertical;
}

.contact-form-grid .span-2 {
  grid-column: span 2;
}

.contact-options {
  display: grid;
  gap: 5px;
  margin: 16px 0 18px;
  padding: 0;
  border: 0;
  color: #3A1D8A;
}

.contact-options legend {
  margin-bottom: 8px;
  font-size: 18px;
}

.contact-options label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 19px;
  line-height: 1.2;
}

.contact-options input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--ink);
}

.contact-submit {
  width: 100%;
  min-height: 52px;
  color: var(--accent-text);
  background: var(--orange);
  border-radius: 4px;
  font-size: 18px;
  font-weight: 760;
}

.auth-page {
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 70px 24px;
  background:
    linear-gradient(180deg, rgba(58, 29, 138, 0.82), rgba(243, 231, 221, 0.74)),
    url("assets/banner-bg.png?v=20260602-client-spec") center / cover;
}

.admin-auth-page {
  background:
    linear-gradient(180deg, rgba(58, 29, 138, 0.9), rgba(58, 29, 138, 0.82)),
    url("assets/banner-bg.png?v=20260602-client-spec") center / cover;
}

.auth-card {
  width: min(520px, 100%);
  padding: clamp(28px, 4vw, 46px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 16px 0 14px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 48px);
}

.auth-card p {
  color: var(--muted);
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.demo-credentials {
  display: grid;
  gap: 6px;
  margin: 20px 0 4px;
  padding: 14px 16px;
  color: var(--ink);
  background: #FCFBF9;
  border: 1px solid #E8D8CD;
  border-radius: 6px;
}

.demo-credentials span {
  color: #6B5A88;
  font-size: 14px;
}

.auth-form .button-primary {
  width: 100%;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.auth-actions .footer-link {
  color: var(--ink);
  text-transform: none;
}

.system-card {
  padding: 26px;
}

.system-card h2 {
  color: var(--ink);
  font-size: 26px;
}

.metric {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(58, 29, 138, 0.06);
}

.metric strong {
  display: block;
  color: var(--ink);
  font-size: 34px;
}

.metric span {
  color: var(--muted);
}

.score-list,
.cron-list {
  display: grid;
  gap: 12px;
}

.score-row,
.cron-row,
.db-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.score-row strong,
.cron-row strong,
.db-row strong {
  color: var(--ink);
}

.score-row span,
.cron-row span,
.db-row span {
  color: var(--muted);
}

.cron-row button {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 5px;
}

.db-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 6px;
}

.ranking-table th,
.ranking-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.ranking-table th {
  color: var(--ink);
  background: var(--violet-soft);
}

.footer {
  color: #fff;
  background: var(--ink);
  padding: 70px clamp(24px, 8vw, 150px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1fr 1.1fr;
  gap: 54px;
}

.footer h2 {
  margin-bottom: 24px;
  font-size: 15px;
  text-transform: uppercase;
}

.footer p,
.footer span,
.footer a,
.footer-link {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 14px;
}

.footer-link {
  display: block;
  width: max-content;
  background: transparent;
  padding: 5px 0;
  text-transform: uppercase;
}

.footer a,
.footer span {
  display: block;
  margin-bottom: 9px;
}

.newsletter input {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.newsletter button {
  min-height: 42px;
  margin-top: 10px;
  padding: 0 24px;
  color: var(--ink);
  background: #fff;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 760;
}

.form-note {
  min-height: 18px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 72px;
}

.linkedin {
  width: 22px;
  height: 22px;
  display: grid !important;
  place-items: center;
  color: var(--ink) !important;
  background: #fff;
  border-radius: 2px;
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: min(440px, calc(100vw - 32px));
  padding: 14px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.seo-fallback {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px;
  color: var(--ink);
}

.seo-fallback nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.seo-fallback a {
  color: var(--violet);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1180px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-overview-grid,
  .admin-split,
  .admin-messages-layout {
    grid-template-columns: 1fr;
  }

  .admin-messages-layout > .system-card:last-child {
    grid-column: auto;
  }

  .user-chat-layout {
    grid-template-columns: 1fr;
  }

  .user-chat-sidebar {
    position: static;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    padding: 0 24px;
  }

  .desktop-nav {
    display: none;
  }

  .icon-button {
    display: grid;
  }

  .hero-grid,
  .system-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid,
  .metrics-grid,
  .news-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-hero-inner {
    grid-template-columns: 0.9fr 1fr;
  }

  .benefits-row {
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    gap: 16px;
  }

  .persona-card {
    min-height: 205px;
  }

  .persona-illustration {
    height: 220px;
  }

  .benefit-list {
    min-height: 205px;
    padding: 24px;
    gap: 20px;
  }

  .revolution-grid {
    gap: 48px;
  }

  .offer-row {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .offer-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, max-content);
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 34px;
  }
}

@media (max-width: 860px) {
  .topbar {
    min-height: 74px;
  }

  .mobile-menu {
    top: 74px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
    object-fit: cover;
    object-position: left center;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    font-size: 9px;
    letter-spacing: 5px;
  }

  .profile-pill span:not(.avatar),
  .cta-button span {
    display: none;
  }

  .cta-button {
    min-width: 52px;
    grid-template-columns: 52px;
  }

  .logout-button {
    min-height: 46px;
    padding: 0 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    width: min(100% - 32px, 620px);
    padding: 56px 0 64px;
    grid-template-columns: 1fr;
  }

  .hero-card,
  .quick-strip {
    display: none;
  }

  .quick-strip,
  .preview-grid,
  .market-layout,
  .metrics-grid,
  .db-grid,
  .admin-grid,
  .news-grid,
  .feature-grid,
  .revolution-grid,
  .benefits-row,
  .benefit-list,
  .about-offers,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .subpage-hero,
  .about-copy,
  .about-quality,
  .team-section,
  .contact-section {
    width: calc(100% - 32px);
  }

  .subpage-hero {
    min-height: 150px;
    padding: 30px 28px;
  }

  .contact-section {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 46px;
    padding: 56px 0 70px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-grid .span-2 {
    grid-column: auto;
  }

  .contact-form h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .about-copy {
    padding: 52px 0 40px;
  }

  .about-offers {
    padding: 40px 16px;
  }

  .about-cta {
    padding: 64px 18px;
  }

  .team-section {
    padding: 56px 0 64px;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero-inner {
    width: calc(100% - 32px);
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 58px 0 72px;
  }

  .home-hero-visual {
    display: none;
  }

  .home-hero-copy {
    max-width: 100%;
    padding: 0;
  }

  .home-hero-copy h1 {
    font-size: clamp(32px, 11vw, 52px);
  }

  .home-hero-subtitle {
    font-size: 21px;
  }

  .home-hero-copy p:not(.home-hero-subtitle) {
    font-size: 17px;
    line-height: 1.55;
  }

  .text-cta {
    width: 100%;
    min-height: 56px;
    padding: 0 24px;
  }

  .home-hero-copy p.home-promo {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.45;
  }

  .benefits-section,
  .revolution-section,
  .news-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .benefits-section {
    padding-top: 64px;
    padding-bottom: 74px;
  }

  .benefits-pattern {
    top: 170px;
    height: calc(100% - 180px);
    background-size: auto 260px;
  }

  .benefits-section h2 {
    margin-bottom: 64px;
  }

  .benefits-row {
    width: min(460px, 100%);
    gap: 24px;
    align-items: stretch;
  }

  .persona-card {
    min-height: 220px;
    padding-bottom: 28px;
  }

  .persona-illustration {
    bottom: 50px;
    height: 224px;
  }

  .benefit-list {
    gap: 0;
    min-height: auto;
    padding: 28px 30px;
  }

  .benefit-list li {
    font-size: 15px;
    font-weight: 400;
  }

  .home-angle {
    display: none;
  }

  .feature-grid {
    gap: 28px;
    margin-top: 44px;
  }

  .market-toolbar,
  .my-offers-toolbar,
  .dashboard-title,
  .pagination,
  .copyright {
    align-items: stretch;
    flex-direction: column;
  }

  .market-controls {
    flex-wrap: wrap;
  }

  .market-controls select {
    min-width: min(100%, 260px);
  }

  .listing-card,
  .offer-row,
  .listing-detail-layout {
    grid-template-columns: 1fr;
  }

  .listing-detail-page {
    padding: 24px 16px 46px;
  }

  .listing-detail-aside {
    position: static;
    min-height: auto;
  }

  .report-modal {
    padding: 28px 18px;
  }

  .report-checks {
    grid-template-columns: 1fr;
  }

  .report-actions {
    flex-direction: column-reverse;
  }

  .app-tabs {
    gap: 16px;
    min-height: auto;
    padding: 0 16px;
    overflow-x: auto;
  }

  .app-tab {
    height: 68px;
    white-space: nowrap;
    font-size: 16px;
  }

  .form-grid,
  .choice-grid,
  .verification-form,
  .verification-grid {
    grid-template-columns: 1fr;
  }

  .field,
  .field.span-2,
  .field.span-3,
  .field.span-5,
  .field.span-6,
  .field.span-8,
  .field.span-12,
  .choice-grid,
  .form-submit,
  .verification-grid,
  .contract-summary,
  .verification-actions {
    grid-column: auto;
  }

  .verification-complete {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-table {
    grid-template-columns: 1fr;
  }

  .save-row .button-primary {
    min-width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 0 14px;
    gap: 10px;
  }

  .admin-kpi-grid,
  .admin-detail-grid,
  .admin-action-panel,
  .admin-document-row,
  .admin-username-form,
  .admin-news-layout,
  .admin-news-row,
  .admin-news-actions,
  .news-image-picker,
  .admin-match-layout,
  .match-pair-grid,
  .match-field-values,
  .admin-listing-row,
  .admin-listing-actions,
  .settings-grid,
  .profile-image-editor,
  .match-row,
  .user-chat-composer {
    grid-template-columns: 1fr;
  }

  .admin-listing-toolbar .filter-type-button,
  .news-image-picker img,
  .admin-news-row img,
  .admin-listing-row img {
    width: 100%;
  }

  .admin-document-row {
    align-items: stretch;
    flex-direction: column;
  }

  .match-score span {
    text-align: left;
  }

  .user-chat-header {
    flex-direction: column;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .topbar-actions {
    gap: 8px;
  }

  .brand-text {
    display: none;
  }

  .view-shell,
  .dashboard-shell {
    padding: 46px 16px;
  }

  .register-shell {
    width: calc(100% - 24px);
    padding: 44px 0;
  }

  .form-panel,
  .dashboard-form,
  .drawer-content {
    padding: 22px 16px;
  }

  .legal-content {
    width: calc(100% - 24px);
    margin: 42px auto 64px;
    padding: 22px 16px;
  }

  .legal-body p,
  .legal-body li {
    font-size: 14px;
  }

  .legal-body table {
    display: block;
    overflow-x: auto;
  }

  .card-heading {
    padding: 20px 16px;
  }

  .pill-tab {
    min-width: 96px;
    min-height: 58px;
    font-size: 16px;
  }

  .footer {
    padding: 48px 20px 24px;
  }

  .footer-logo {
    width: 205px;
  }
}
