@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eef3ff;
  --bg-soft: #f6f8ff;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.82);
  --text: #183153;
  --muted: #64748b;
  --line: #dbe5ff;
  --primary: #2d4bda;
  --primary-dark: #2139a8;
  --primary-soft: #eef2ff;
  --cyan: #22c5e6;
  --gold: #ffca3a;
  --success: #1f8b55;
  --warn: #d08b11;
  --danger: #b52f56;
  --shadow: 0 24px 80px rgba(36, 66, 146, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --page: 1240px;
  --font-ui: "IBM Plex Sans", "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "IBM Plex Sans", "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 230, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(45, 75, 218, 0.16), transparent 26%),
    linear-gradient(180deg, #f7f9ff 0%, #edf3ff 55%, #f8fbff 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.page-shell {
  width: min(calc(100% - 32px), var(--page));
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button-small { min-height: 42px; padding: 0 16px; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--primary), #4562f1 72%, #69dfff 100%); box-shadow: 0 18px 34px rgba(45, 75, 218, 0.24); }
.button-secondary { color: var(--text); background: rgba(255, 255, 255, 0.84); border: 1px solid var(--line); }
.button-danger { color: #fff; background: linear-gradient(135deg, #d95b5b, #c63d3d); box-shadow: 0 14px 28px rgba(198, 61, 61, 0.24); }

.topline {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 27, 59, 0.92);
  backdrop-filter: blur(18px);
}

.topline-inner,
.nav-inner,
.footer-inner,
.internal-header,
.card-head,
.internal-header-actions,
.hero-panel-header,
.pricing-header,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topline-inner {
  min-height: 62px;
  color: #f6f8ff;
}

.topline-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topline-pill,
.hero-chip,
.section-kicker,
.status-pill,
.admin-chip,
.card-overline,
.match-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.topline-pill { background: rgba(255, 255, 255, 0.12); }

.site-nav {
  position: sticky;
  top: 62px;
  z-index: 24;
  padding: 16px 0 0;
}

.nav-inner {
  padding: 16px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(25, 50, 121, 0.12);
}

.nav-brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-weight: 600; }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: #fff; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); }

.hero {
  padding: 72px 0 72px;
}

.hero-grid,
.process-grid,
.quote-grid,
.pricing-grid,
.faq-grid,
.internal-layout,
.portal-shell,
.internal-stats {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
}

.hero-copy,
.hero-panel,
.process-card,
.quote-card,
.pricing-card,
.free-banner,
.form-card,
.internal-card,
.stat-card,
.portal-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy { padding: 18px 6px 18px 0; }
.hero-chip { background: var(--primary-soft); color: var(--primary-dark); }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.7rem, 5vw, 4.8rem); max-width: 11ch; margin: 18px 0 14px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
p, span, li, small { line-height: 1.7; }
.hero-copy p,
.section-head p,
.quote-card p,
.price-note,
.form-head p,
.faq-item p,
.empty-state,
.history-item p,
.portal-side p {
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}
.hero-note-signe { width: 42px; }

.hero-panel { padding: 28px; }
.hero-panel-header span { color: var(--muted); font-weight: 700; }
.hero-panel-header strong { font-size: 0.95rem; color: var(--primary); }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.hero-metrics article,
.hero-steps div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(242, 246, 255, 0.86);
  border: 1px solid var(--line);
}
.hero-metrics strong { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 6px; }
.hero-steps { display: grid; gap: 12px; }
.hero-steps div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.hero-steps span {
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--cyan)); color: #fff; font-weight: 800;
}

.content-section { padding: 44px 0 88px; }
.muted-section { background: linear-gradient(180deg, rgba(237, 243, 255, 0.6), rgba(246, 248, 255, 0.9)); }
.section-head { align-items: end; margin-bottom: 28px; }
.section-head.single { justify-content: flex-start; }
.section-head p { max-width: 460px; }
.section-kicker, .card-overline, .match-count { background: var(--primary-soft); color: var(--primary-dark); }

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

.process-card,
.quote-card,
.pricing-card,
.free-banner,
.form-card,
.internal-card,
.stat-card,
.portal-card {
  padding: 26px;
}

.process-card span {
  display: inline-flex;
  width: 48px; height: 48px; border-radius: 16px; justify-content: center; align-items: center;
  margin-bottom: 16px; background: var(--primary-soft); font-size: 1.3rem;
}

.quote-card strong { display: block; margin-top: 18px; }

.free-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.free-banner strong { display: block; font-family: var(--font-display); font-size: 2.6rem; }
.free-points { display: flex; flex-wrap: wrap; gap: 12px; }
.free-points span {
  padding: 10px 14px; border-radius: 999px; background: #f4f7ff; border: 1px solid var(--line);
}

.pricing-header { align-items: end; margin-bottom: 18px; }
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}
.billing-toggle span { color: var(--muted); }
.billing-toggle .is-active { color: var(--text); font-weight: 700; }
.billing-toggle em { color: var(--primary); font-style: normal; }
.billing-toggle button {
  width: 58px; height: 32px; border-radius: 999px; border: 0; position: relative;
  background: rgba(45, 75, 218, 0.12); cursor: pointer;
}
.billing-toggle button::before {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  transition: transform 160ms ease;
}
.billing-toggle button.is-yearly::before { transform: translateX(26px); }

.pricing-card { position: relative; }
.pricing-card-featured {
  background: linear-gradient(180deg, rgba(36, 57, 159, 0.96), rgba(45, 75, 218, 0.94));
  color: #fff;
}
.pricing-card-featured .price-note,
.pricing-card-featured li,
.pricing-card-featured p,
.pricing-card-featured .tier { color: rgba(255, 255, 255, 0.78); }
.badge {
  position: absolute; top: -12px; left: 24px; padding: 8px 12px; border-radius: 999px;
  background: var(--gold); color: #5c4300; font-size: 0.8rem; font-weight: 800;
}
.tier { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.price { font-family: var(--font-display); font-size: 2rem; margin: 12px 0 6px; }
.price-note { margin-bottom: 16px; }
.pricing-card ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }

.switcher { display: flex; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.switcher-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.switcher-button.is-active { background: linear-gradient(135deg, var(--primary), #5d7bf8); color: #fff; }
.form-panel { display: none; }
.form-panel.is-active { display: block; }
.form-card, .portal-card { display: grid; gap: 22px; }
.form-grid, .portal-grid, .mail-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid label, .portal-grid label, .mail-settings-grid label {
  display: grid;
  gap: 10px;
  font-weight: 600;
}
.form-grid label span, .portal-grid label span, .mail-settings-grid label span { font-size: 0.94rem; }
.full { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

input[readonly] {
  background: #f3f7ff;
  color: #4f6489;
}
textarea { min-height: 120px; resize: vertical; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 255, 0.88);
}
.checkbox-grid label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.checkbox-grid input { width: 18px; height: 18px; }

.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-item {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}
.faq-item button {
  width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; font-weight: 700;
}
.faq-item p { display: none; margin: 12px 0 0; }
.faq-item.is-open p, .faq-item:first-of-type p { display: block; }

.site-footer { padding: 0 0 40px; }
.footer-inner {
  padding: 22px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1b2f85, #2744ba 60%, #2c6fd8);
  color: rgba(255, 255, 255, 0.82);
}
.footer-inner img { height: 34px; width: auto; }
.footer-inner p { margin: 4px 0 0; color: rgba(255, 255, 255, 0.7); }

.flash {
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 700;
}
.flash-inline { margin-bottom: 22px; }
.flash-success { background: rgba(31, 139, 85, 0.12); color: #0e6d40; }
.flash-error { background: rgba(181, 47, 86, 0.12); color: #982347; }

.setup-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #edf3ff 0%, #e3ecff 100%);
}

.glass-card,
.setup-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.setup-shell {
  width: min(100%, 560px);
  padding: 34px;
}

.setup-logo {
  height: 42px;
  width: auto;
  margin-bottom: 24px;
}

.setup-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.setup-form label {
  display: grid;
  gap: 10px;
  font-weight: 600;
}

.admin-login-body {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background: #dbe3f2;
}

.admin-login-body::before,
.admin-login-body::after {
  display: none;
}

.admin-login-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 24px 72px;
}

.admin-login-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

.gl-light,
.gl-dark {
  position: absolute;
  will-change: transform;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.gl-light {
  width: 108vmax;
  height: 108vmax;
  left: -26%;
  top: -18%;
  background: url("../img/ellipse1.webp") center / contain no-repeat;
  opacity: 0.92;
  animation: imageFloatLight 28s ease-in-out infinite alternate;
}

.gl-dark {
  width: 108vmax;
  height: 108vmax;
  right: -20%;
  bottom: -28%;
  background: url("../img/ellipse2.webp") center / contain no-repeat;
  opacity: 0.96;
  animation: imageFloatDark 34s ease-in-out infinite alternate;
  animation-delay: -6s;
}

.gl-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 90% at 50% 50%, rgba(255, 255, 255, 0) 34%, rgba(21, 36, 82, 0.3) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(12, 28, 84, 0.08));
  pointer-events: none;
}

.admin-login-card {
  width: min(100%, 388px);
  padding: 38px 32px 30px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(71, 110, 226, 0.16)),
    rgba(20, 46, 128, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 32px 80px rgba(16, 33, 94, 0.26);
  backdrop-filter: blur(34px) saturate(1.45);
  -webkit-backdrop-filter: blur(34px) saturate(1.45);
  display: grid;
  gap: 16px;
}

.admin-login-card .flash {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.84rem;
  font-weight: 400;
  text-align: center;
}

.admin-login-card .flash-error,
.admin-login-card .flash-success {
  color: rgba(255,255,255,0.88);
}

.admin-login-body .flash {
  margin-bottom: 2px;
}

.admin-login-mark {
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.admin-login-mark img {
  width: 52px;
}

.admin-login-title {
  color: #ffffff;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
}

.admin-login-fields {
  display: grid;
  gap: 14px;
}

.admin-login-fields input {
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 26px rgba(17, 35, 91, 0.08);
  color: #163057;
  font-size: 16px;
  font-weight: 400;
  padding: 0 20px;
}

.admin-login-fields input::placeholder {
  color: #9aa6bb;
}

.admin-login-fields input:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(151, 216, 255, 0.24),
    0 12px 28px rgba(0, 0, 0, 0.1);
}

.admin-login-submit {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(97.86deg, #9bdcff 0.2%, #4c6ff0 99.8%);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 18px 34px rgba(58, 94, 226, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.admin-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(58, 94, 226, 0.34);
  filter: saturate(1.08) brightness(1.03);
}

.admin-login-submit:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.22),
    0 22px 40px rgba(58, 94, 226, 0.34);
}

.admin-login-footer {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(24, 49, 83, 0.7);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  width: calc(100% - 32px);
}

@keyframes imageFloatLight {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(5%, 4%, 0); }
  100% { transform: translate3d(-4%, 7%, 0); }
}

@keyframes imageFloatDark {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-6%, -5%, 0); }
  100% { transform: translate3d(4%, -2%, 0); }
}

@media (max-width: 900px) {
  .admin-login-card {
    width: min(100%, 388px);
  }

  .gl-light,
  .gl-dark {
    width: 132vmax;
    height: 132vmax;
  }

  .gl-light {
    left: -52%;
    top: -18%;
  }

  .gl-dark {
    right: -42%;
    bottom: -22%;
  }
}

.internal-body, .portal-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #dfe8ff 0%, #edf3ff 100%);
}

.internal-app {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}

.internal-rail {
  background: linear-gradient(180deg, #3048c7 0%, #2f49cf 70%, #223aa7 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top-right-radius: 36px;
  border-bottom-right-radius: 36px;
}

.rail-brand img { width: 52px; margin-bottom: 14px; }
.rail-brand span { font-weight: 800; font-size: 1.1rem; }
.rail-nav { display: grid; gap: 10px; margin: 28px 0 auto; }
.rail-nav a {
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.72);
}
.rail-nav a.is-active,
.rail-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.rail-footer small { display: block; color: rgba(255, 255, 255, 0.52); margin-bottom: 10px; }

.internal-main { padding: 26px; }
.internal-kicker { color: var(--primary-dark); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
.admin-chip { background: rgba(255, 255, 255, 0.86); }
.internal-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0; }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 2rem; margin: 10px 0 4px; }
.stat-card span { color: var(--muted); font-weight: 700; }
.stat-card small { color: var(--muted); }

.internal-layout {
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: start;
  margin-bottom: 24px;
}
.internal-column { display: grid; gap: 24px; }
.internal-column.wide { grid-template-columns: 1fr; }
.toggle-card details summary {
  cursor: pointer; font-weight: 800; list-style: none;
}
.toggle-card details summary::-webkit-details-marker { display: none; }
.toggle-card details[open] summary { margin-bottom: 18px; }

.weg-list, .history-stack, .match-stack { display: grid; gap: 14px; }
.weg-item, .history-item, .match-row, .manager-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(246, 248, 255, 0.88);
  border: 1px solid var(--line);
}
.weg-item { justify-content: space-between; }
.weg-item.is-active { background: #fff; box-shadow: inset 0 0 0 2px rgba(45, 75, 218, 0.18); }
.status-neu { background: rgba(45, 75, 218, 0.1); color: #2541ba; }
.status-noch_nicht_vermittelt, .status-nonpaying { background: rgba(255, 202, 58, 0.18); color: #9e7400; }
.status-in_vermittlung { background: rgba(34, 197, 230, 0.14); color: #0c7b92; }
.status-vermittelt, .status-paying { background: rgba(31, 139, 85, 0.12); color: #13693f; }

.hero-admin-card { display: grid; gap: 18px; }
.hero-admin-tags { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.hero-admin-tags span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(246, 248, 255, 0.92);
  border: 1px solid var(--line);
}

.match-row { align-items: center; }
.match-check input { width: 20px; height: 20px; }
.match-logo {
  width: 48px; height: 48px; border-radius: 16px; object-fit: cover;
  background: #fff; border: 1px solid var(--line); flex-shrink: 0;
}
.match-copy { flex: 1; }
.match-copy strong, .manager-company strong { display: block; }
.match-copy span, .manager-company span, .manager-meta span { color: var(--muted); font-size: 0.92rem; }
.match-side { display: grid; justify-items: end; gap: 6px; }

.history-item { display: block; }
.history-item strong { display: block; }
.history-item p { margin: 4px 0 12px; }
.history-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.history-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.manager-table { display: grid; gap: 12px; }
.manager-row { justify-content: space-between; flex-wrap: wrap; }
.manager-company { display: flex; align-items: center; gap: 14px; }
.manager-meta { display: grid; gap: 4px; min-width: 200px; }

.portal-shell {
  width: min(calc(100% - 32px), 1160px);
  margin: 0 auto;
  padding: 40px 0;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}
.portal-side {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.72));
  border: 1px solid rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
}
.portal-signe { width: 62px; margin-bottom: 18px; }
.portal-kicker { color: var(--primary-dark); font-size: 0.84rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.portal-main { display: grid; gap: 22px; }
.portal-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 255, 0.88);
  border: 1px solid var(--line);
}
.portal-check input { width: 20px; height: 20px; }

.inline-form, .mail-settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 189px minmax(0, 1fr);
  gap: 23px;
  padding: 20px 20px 20px 12px;
  align-items: start;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 40px);
  position: sticky;
  top: 20px;
  padding: 24px 0 28px;
  border-radius: 94px;
  background: linear-gradient(180deg, #2f48be 0%, #2f48be 84%, #3044a6 100%);
}

.dashboard-logo {
  width: 100%;
  min-height: 150px;
  padding: 26px 0 20px;
  border-radius: 94px 94px 0 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 0%, transparent 62%, rgba(0, 0, 0, 0.34) 100%);
}

.dashboard-logo img {
  width: 64px;
}

.dashboard-nav {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.dashboard-nav a,
.dashboard-logout {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 6px 18px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  text-align: center;
  transition: color 160ms ease, background 160ms ease;
}

.dashboard-nav-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.dashboard-nav-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.dashboard-nav-icon img {
  width: 32px;
  height: 32px;
  display: block;
  opacity: 0.5;
  transition: opacity 160ms ease;
}

.dashboard-nav a:hover,
.dashboard-nav a.is-active,
.dashboard-logout:hover {
  color: #fff;
}

.dashboard-nav a:hover .dashboard-nav-icon img,
.dashboard-nav a.is-active .dashboard-nav-icon img,
.dashboard-logout:hover .dashboard-nav-icon img {
  opacity: 1;
}

.dashboard-main {
  padding: 40px 0 24px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}

.dashboard-topbar h1 {
  max-width: none;
  font-family: var(--font-ui);
  font-size: clamp(3rem, 3.4vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.dashboard-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 73px;
  min-width: 282px;
  padding: 0 28px;
  border-radius: 39px;
  background: #1c4967;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.dash-card {
  padding: 18px 20px 24px;
  border-radius: 39px;
  background: rgba(255, 255, 255, 0.98);
  border: 0;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.18);
}

.dash-card-large {
  margin-bottom: 14px;
}

.dash-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 21px;
  background: #a6e1ff;
  color: #1c4967;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}

.request-list,
.stacked-table,
.history-list,
.match-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.request-row,
.table-row-link,
.match-item,
.history-row {
  display: grid;
  align-items: center;
  gap: 18px;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(232, 231, 249, 0.5);
  border: 1px solid #d3e1f7;
}

.request-row {
  grid-template-columns: 62px minmax(0, 1.05fr) minmax(220px, 1.35fr) minmax(220px, 1fr) 164px 196px;
}

.request-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 39px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #e8e7f9;
  color: #30506d;
  font-weight: 500;
  font-size: 20px;
}

.request-name strong,
.match-info strong,
.history-row strong,
.table-row-link strong {
  display: block;
  color: #1c4967;
  font-size: 20px;
  font-weight: 500;
}

.request-name span,
.request-meta,
.match-info span,
.table-row-link span,
.company-inline span,
.history-row span,
.history-row small {
  color: var(--muted);
}

.request-name span,
.request-meta {
  font-size: 20px;
  color: #1c4967;
}

.request-name-compact,
.request-location,
.request-start {
  min-width: 0;
}

.request-name-compact strong,
.request-location,
.request-start {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.request-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #ff6767;
  font-size: 20px;
  font-weight: 400;
  white-space: nowrap;
}

.request-verify.is-verified {
  color: #82c978;
}

.request-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  padding: 0 22px;
  border-radius: 10px;
  background: #1c4967;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.dash-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 395px;
  gap: 20px;
  width: 100%;
  align-items: stretch;
}

.dash-grid-two > .dash-card {
  min-width: 0;
}

.system-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.donut-stat h3,
.metric-block strong {
  margin: 18px 0 8px;
}

.donut-stat p,
.donut-stat small,
.metric-block span {
  display: block;
  color: var(--muted);
}

.donut-ring {
  width: 162px;
  height: 162px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}

.donut-ring::before {
  content: "";
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 32px;
  top: 32px;
}

.donut-stat {
  text-align: center;
  padding: 28px 10px 6px;
}

.donut-stat h3 {
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 500;
}

.donut-stat--cyan h3,
.donut-stat--cyan p:first-of-type,
.donut-stat--cyan p:nth-of-type(2) {
  color: #57c6ff;
}

.donut-stat--cyan p:nth-of-type(2) {
  color: #0f84c2;
}

.donut-stat--violet h3,
.donut-stat--violet p:first-of-type {
  color: #716bd6;
}

.donut-stat--violet p:nth-of-type(2) {
  color: #180eba;
}

.donut-stat--green h3,
.donut-stat--green p:first-of-type,
.donut-stat--green p:nth-of-type(2) {
  color: #4fb88c;
}

.donut-stat p {
  font-size: 16px;
  line-height: 1.35;
}

.donut-stat small {
  margin-top: 12px;
  font-size: 16px;
  color: #b1b1b1;
}

.metric-block + .metric-block {
  margin-top: 84px;
}

.metric-block strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: #1c4967;
}

.sparkline {
  height: 92px;
  margin-top: 18px;
  margin-right: 8px;
}

.sparkline-blue,
.sparkline-light {
  background: transparent;
}

.sparkline svg {
  width: 100%;
  height: 100%;
  display: block;
}

.metric-block span {
  color: #1c4967;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.dash-grid-two .dash-card:last-child {
  padding-left: 40px;
  padding-right: 30px;
}

.dashboard-main > .dash-card h2,
.dashboard-main > .dash-grid-two h2 {
  margin-top: 14px;
  color: #1c4967;
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.2fr);
  gap: 24px;
}

.admin-list-card,
.admin-detail-card {
  padding: 22px 24px 26px;
}

.admin-list-card .stacked-table,
.admin-detail-card .admin-form-grid {
  margin-top: 22px;
}

.admin-list-card .table-row-link:not(.table-row-request) {
  min-height: 86px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid #dfe4f2;
  background: #f6f8ff;
  box-shadow: 0 2px 8px rgba(32, 53, 112, 0.05);
}

.admin-list-card .table-row-link.is-selected:not(.table-row-request) {
  background: #eef3ff;
  border-color: #c9d6fb;
}

.admin-list-card .table-row-link strong,
.admin-detail-card h2,
.admin-detail-card .detail-head h2 {
  color: #1c4967;
}

.admin-detail-card .detail-head {
  align-items: center;
  margin-top: 14px;
}

.admin-detail-card .match-total {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 16px;
  background: #eef3ff;
  border: 1px solid #d5def8;
  color: #30506d;
}

.admin-split--stacked {
  grid-template-columns: 1fr;
}

.request-accordion {
  display: grid;
  gap: 12px;
}

.request-accordion-shell {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.request-group {
  border-radius: 39px;
  padding: 18px 20px 20px;
  background: #ffffff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12);
}

.request-group.is-open {
  min-height: 180px;
}

.request-group.is-open .stacked-table {
  animation: requestAccordionIn 220ms ease;
  transform-origin: top center;
}

.request-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
}

.request-group-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 21px;
  color: #1c4967;
  font-size: 18px;
  font-weight: 500;
}

.request-group-chip--open {
  background: #a6e1ff;
}

.request-group-chip--running {
  background: #b0f8c3;
}

.request-group-chip--archived {
  background: #e3e3e3;
}

.request-group-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #2f48be;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.table-row-request {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 71px;
  margin-top: 10px;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid #d3e1f7;
  background: rgba(232, 231, 249, 0.5);
}

.table-row-request--open {
  grid-template-columns: 64px minmax(140px, 0.9fr) minmax(220px, 1.4fr) minmax(190px, 0.9fr) 162px 196px;
  background: rgba(193, 193, 255, 0.25);
  border-color: #c1c1ff;
}

.table-row-request--status {
  grid-template-columns: 42px minmax(220px, 0.92fr) minmax(240px, 0.88fr) minmax(260px, 0.9fr) 142px;
  padding: 12px 14px;
  background: rgba(193, 193, 255, 0.25);
  border-color: #c1c1ff;
}

.request-row-tone--is-waiting {
  background: rgba(193, 193, 255, 0.25);
  border-color: #c1c1ff;
}

.request-row-tone--is-talk {
  background: rgba(255, 217, 140, 0.25);
  border-color: #ffd98c;
}

.request-row-tone--is-success {
  background: rgba(111, 185, 106, 0.25);
  border-color: #6fb96a;
}

.request-row-tone--is-failed {
  background: rgba(255, 149, 149, 0.25);
  border-color: #ff9595;
}

.table-row-request--open:hover,
.request-row-tone--is-waiting:hover {
  background: rgba(193, 193, 255, 0.4);
}

.request-row-tone--is-talk:hover {
  background: rgba(255, 217, 140, 0.4);
}

.request-row-tone--is-success:hover {
  background: rgba(111, 185, 106, 0.4);
}

.request-row-tone--is-failed:hover {
  background: rgba(255, 149, 149, 0.4);
}

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

.status-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.request-pill--lilac {
  min-width: 62px;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  background: #e8e7f9;
  color: #1c4967;
  font-size: 20px;
  font-weight: 500;
}

.request-col-name,
.request-col-meta,
.request-col-start {
  color: #1c4967;
  font-size: 20px;
  line-height: 1.3;
}

.request-col-name {
  font-weight: 500;
}

.request-col-meta,
.request-col-start {
  font-weight: 400;
}

.request-verify-box {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 0 10px;
  border-radius: 10px;
  background: #ffffff;
  font-size: 20px;
  font-weight: 400;
  white-space: nowrap;
}

.request-verify-box.is-verified {
  color: #6fb96a;
}

.request-verify-box.is-pending {
  color: #cf4848;
}

.request-action-button,
.request-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  padding: 0 16px;
  border-radius: 10px;
  background: #1c4967;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
  transition: filter 160ms ease;
}

.table-row-request .request-action-button,
.table-row-request .request-action-link {
  color: #ffffff;
}

.table-row-request .request-col-name,
.table-row-request .request-col-meta,
.table-row-request .request-col-start {
  color: #1c4967;
}

.request-action-link {
  min-height: 44px;
  padding-inline: 14px;
  font-size: 16px;
}

.request-action-button:hover,
.request-action-link:hover {
  filter: brightness(1.08);
}

.action-badge {
  background: #1c4967;
  color: #fff;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 7px 16px;
  border-radius: 12px;
  background: #ffffff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.status-chip.is-neutral {
  color: #5d63c8;
}

.status-chip.is-waiting {
  color: #5d63c8;
}

.status-chip.is-talk {
  color: #b88a00;
}

.status-chip.is-success {
  color: #4ca55c;
}

.status-chip.is-failed {
  color: #d74c4c;
}

.detail-tabs {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.detail-tabs a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #edf2ff;
  color: #486189;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.detail-tabs a.is-active {
  background: #1c4967;
  color: #fff;
}

.weg-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(17, 31, 67, 0.24);
  box-shadow: none;
}

.weg-detail-modal {
  position: relative;
  width: min(100%, 1096px);
  max-height: calc(100vh - 68px);
  overflow: auto;
  padding: 34px 0 0;
  border-radius: 39px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(211, 225, 247, 0.82);
  box-shadow: 0 24px 80px rgba(23, 45, 100, 0.18);
}

.modal-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 16px;
  right: 22px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  color: #6b6b6b;
  font-size: 64px;
  line-height: 1;
  text-decoration: none;
}

.weg-detail-modal .detail-head {
  padding: 0 44px 0;
}

.weg-detail-modal .detail-head .dash-card-tag,
.weg-detail-modal .detail-head p {
  display: none;
}

.weg-detail-modal .detail-head h2 {
  margin: 10px 0 22px;
  font-size: 28px;
  font-weight: 500;
}

.modal-progress {
  position: relative;
  height: 10px;
  background: #e6eaf4;
}

.modal-progress-bar {
  display: block;
  height: 10px;
  background: #3850d8;
}

.modal-progress-bar--status {
  width: 36%;
}

.modal-progress-bar--basic {
  width: 56%;
}

.modal-progress-bar--history {
  width: 100%;
}

.modal-stage-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 26px 38px 22px;
  border-bottom: 1px solid #ececec;
}

.modal-stage {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #dee0ea;
  font-size: 20px;
  text-decoration: none;
  font-weight: 400;
  justify-self: start;
}

.modal-stage.is-active {
  color: #2f48be;
  font-weight: 600;
}

.modal-stage--center {
  justify-self: center;
}

.modal-stage--history {
  justify-self: end;
}

.modal-stage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: #dee0ea;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.modal-stage.is-active .modal-stage-icon {
  background-color: #2f48be;
}

.modal-stage--status .modal-stage-icon {
  mask-image: url('../img/Popup-WEG-Edit_Status1.svg');
  -webkit-mask-image: url('../img/Popup-WEG-Edit_Status1.svg');
}

.modal-stage--basic .modal-stage-icon {
  mask-image: url('../img/Popup-WEG-Edit_Status2.svg');
  -webkit-mask-image: url('../img/Popup-WEG-Edit_Status2.svg');
}

.modal-stage--history .modal-stage-icon {
  mask-image: url('../img/Popup-WEG-Edit_Status3.svg');
  -webkit-mask-image: url('../img/Popup-WEG-Edit_Status3.svg');
}

.modal-stage--matching .modal-stage-icon {
  mask-image: url('../img/Matching-Icon.svg');
  -webkit-mask-image: url('../img/Matching-Icon.svg');
}

.modal-stage--ready .modal-stage-icon {
  mask-image: url('../img/Readytosend-Icon.svg');
  -webkit-mask-image: url('../img/Readytosend-Icon.svg');
}

.modal-panel-wrap {
  padding: 22px 28px 0;
}

.modal-panel-card,
.modal-excluded-box {
  border-radius: 22px;
  border: 1px solid #e2e4ef;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(24, 36, 78, 0.08);
}

.modal-panel-card {
  padding: 18px 22px;
}

.status-select-row {
  display: grid;
  grid-template-columns: 36px auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 20px;
  border-radius: 18px;
  background: #f5f5fc;
  border: 1px solid #dfdeef;
}

.status-select-row--is-waiting {
  background: rgba(232, 231, 249, 0.55);
  border-color: #d3d5f2;
}

.status-select-row--is-talk {
  background: rgba(255, 244, 212, 0.85);
  border-color: #f1d16c;
}

.status-select-row--is-success {
  background: rgba(228, 248, 224, 0.9);
  border-color: #8cd388;
}

.status-select-row--is-failed {
  background: rgba(255, 233, 233, 0.92);
  border-color: #ef9f9f;
}

.status-select-row--is-talk strong,
.status-select-row--is-talk .status-select-icon,
.status-select-row--is-talk select {
  color: #b88a00;
}

.status-select-row--is-waiting strong,
.status-select-row--is-waiting .status-select-icon,
.status-select-row--is-waiting select {
  color: #5d63c8;
}

.status-select-row--is-success strong,
.status-select-row--is-success .status-select-icon,
.status-select-row--is-success select {
  color: #4ca55c;
}

.status-select-row--is-failed strong,
.status-select-row--is-failed .status-select-icon,
.status-select-row--is-failed select {
  color: #d74c4c;
}

.status-select-row strong,
.modal-field span,
.modal-choice-card strong {
  color: #1c4967;
}

.status-select-row select,
.modal-field input,
.modal-field textarea {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid #cfcfd8;
  background: #ffffff;
  font-size: 18px;
  color: #1c4967;
  padding: 10px 14px;
  font-family: var(--font-ui);
}

.status-select-shell {
  position: relative;
  display: block;
}

.status-select-shell::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 3px solid #5d63c8;
  border-bottom: 3px solid #5d63c8;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.status-select-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px !important;
  background-image: none;
}

.modal-field textarea {
  min-height: 152px;
  resize: vertical;
}

.status-select-icon img {
  width: 26px;
  height: 26px;
}

.modal-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.modal-choice-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 146px;
  padding: 22px 26px;
  border-radius: 22px;
  border: 1px solid #cdd2dc;
  cursor: pointer;
}

.modal-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modal-choice-card--blue {
  background: #d4f0ff;
  border-color: #79d2ff;
}

.modal-choice-card--muted {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.modal-choice-card span {
  display: block;
  margin-top: 8px;
  color: #40617a;
  font-size: 18px;
  line-height: 1.35;
}

.modal-choice-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #7dcfff;
  box-shadow: inset 0 0 0 7px #d4f0ff;
}

.modal-choice-card--muted .modal-choice-marker {
  border-color: #bfbfbf;
  box-shadow: inset 0 0 0 7px #f5f5f5;
}

.modal-choice-card input:checked ~ .modal-choice-marker {
  box-shadow: inset 0 0 0 7px currentColor;
  background: #ffffff;
}

.modal-choice-card--blue input:checked ~ .modal-choice-marker {
  color: #57c6ff;
}

.modal-choice-card--muted input:checked ~ .modal-choice-marker {
  color: #a4a4a4;
}

.modal-basic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 16px 18px;
}

.modal-field {
  display: grid;
  gap: 10px;
}

.modal-field--full {
  grid-column: 1 / -1;
}

.modal-field--service {
  align-self: start;
}

.modal-field--service input,
.modal-basic-grid > .modal-field:not(.modal-field--full) input {
  min-height: 58px;
}

.modal-excluded-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.modal-excluded-label img {
  width: 28px;
  height: 28px;
  display: block;
}

.modal-excluded-box {
  margin-top: 16px;
  padding: 14px 22px;
  background: #fff2f2;
  border-color: #ef9e9e;
}

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

.modal-field--excluded .modal-excluded-label {
  margin-bottom: 0;
}

.modal-field--excluded input {
  min-height: 50px;
}

.modal-save-bar {
  margin-top: 18px;
  padding: 0 0 18px;
}

.modal-save-button {
  width: 100%;
  min-height: 92px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #5566f1 0%, #4357e6 100%);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 500;
  box-shadow: 0 6px 15px #4a68ed;
  transition: filter 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

.modal-save-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px #4a68ed;
}

.modal-history-stack {
  display: grid;
  gap: 16px;
}

.modal-history-card {
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  box-shadow: 0 4px 10px rgba(24, 36, 78, 0.08);
}

.modal-history-card.is-dark {
  background: #060606;
  border-color: #202020;
}

.modal-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.modal-history-head strong {
  font-size: 18px;
  color: #3150c8;
}

.modal-history-card.is-dark .modal-history-head strong {
  color: #ffffff;
}

.modal-history-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
}

.modal-history-badge img {
  width: 20px;
  height: 20px;
}

.modal-history-list {
  display: grid;
  gap: 8px;
}

.modal-history-row {
  display: grid;
  grid-template-columns: 44px minmax(200px, 1fr) minmax(220px, 0.9fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 10px 0 0;
  border: 1px solid #c9c9c9;
  border-radius: 14px;
}

.modal-history-card.is-dark .modal-history-row {
  border-color: #707070;
}

.modal-history-name,
.modal-history-note,
.modal-history-feedback {
  font-size: 16px;
}

.modal-history-card.is-dark .modal-history-name,
.modal-history-card.is-dark .modal-history-note,
.modal-history-card.is-dark .modal-history-feedback {
  color: #ffffff;
}

.modal-history-note {
  color: #6e6e6e;
}

.modal-history-feedback.is-positive {
  color: #6bb56b;
}

.modal-history-feedback.is-negative {
  color: #e15757;
}

.weg-detail-modal--new .detail-head {
  padding: 0 44px 12px;
}

.weg-detail-modal--new .detail-head .request-pill {
  margin-bottom: 18px;
}

.weg-detail-modal--new .detail-head .request-pill--lilac {
  display: inline-flex;
}

.modal-stage-nav--open {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modal-stage-nav--open .modal-stage:first-child {
  justify-self: start;
}

.modal-stage-nav--open .modal-stage:nth-child(2) {
  justify-self: center;
}

.modal-stage-nav--open .modal-stage:last-child {
  justify-self: end;
}

.open-basics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
}

.open-basic-block {
  display: grid;
  gap: 8px;
}

.open-basic-block--full {
  grid-column: 1 / -1;
}

.open-basic-block strong,
.open-match-copy strong,
.ready-banner-copy strong,
.ready-hv-card strong {
  color: #1c4967;
  font-size: 18px;
  font-weight: 700;
}

.open-basic-block p,
.open-match-copy span,
.ready-banner-copy span,
.ready-hv-card span {
  margin: 0;
  color: #335570;
  font-size: 17px;
  line-height: 1.35;
}

.open-excluded-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  width: 100%;
  box-sizing: border-box;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid #ef9e9e;
  background: #fff0f0;
  color: #1c4967;
}

.open-excluded-box img {
  width: 32px;
  height: 32px;
}

.open-excluded-box--summary {
  align-items: flex-start;
}

.open-excluded-box--summary div {
  line-height: 1.45;
}

.modal-save-button--dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #4c4c4c;
  box-shadow: 0 6px 15px rgba(76, 76, 76, 0.28);
}

.open-match-list {
  display: grid;
  gap: 14px;
}

.open-match-card {
  display: grid;
  grid-template-columns: 28px 102px minmax(0, 1fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 14px;
  border-radius: 18px;
  border: 1px solid #ececec;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(24, 36, 78, 0.08);
}

.open-match-card input {
  width: 22px;
  height: 22px;
  margin: 0;
  appearance: auto;
  accent-color: #2f48be;
  cursor: pointer;
}

.open-match-logo {
  width: 102px;
  height: 102px;
  object-fit: cover;
  border-radius: 12px;
}

.open-match-copy strong small {
  color: #ad8f1d;
  font-size: 0.9em;
  font-weight: 700;
}

.open-match-badges {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
  justify-items: end;
  align-content: center;
  gap: 2px 4px;
}

.open-match-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 14px;
  background: #edf1f7;
  color: #335570;
  font-size: 14px;
  white-space: nowrap;
}

.open-match-badge--lead {
  grid-column: 1 / -1;
  justify-self: end;
}

.open-match-badge--lead,
.open-match-badge.is-paying {
  background: #e1f4d2;
}

.open-match-badge.is-free {
  background: #f8dede;
}

.ready-banner {
  position: relative;
  min-height: 200px;
  padding: 54px 36px 36px;
  border-radius: 22px;
  background: linear-gradient(90deg, #4370f8 0%, #153fe8 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(49, 82, 219, 0.25);
}

.ready-banner-copy {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.ready-banner-copy strong,
.ready-banner-copy span {
  color: #ffffff;
}

.ready-link-bubble {
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  background: transparent;
  box-shadow: none;
}

.ready-link-bubble img {
  width: 112px;
  height: 112px;
  display: block;
}

.ready-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding: 74px 20px 20px;
  border-radius: 22px;
  border: 1px solid #ececec;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(24, 36, 78, 0.08);
}

.ready-empty-state {
  grid-column: 1 / -1;
  padding: 28px 16px;
  text-align: center;
  color: #6980a7;
  font-size: 18px;
}

.admin-check-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-check-group legend {
  margin-bottom: 10px;
  color: #1c4967;
  font-weight: 600;
}

.admin-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-check--boxed {
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #d8deed;
  background: #f8fbff;
}

.ready-hv-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.ready-hv-card input {
  display: none;
}

.ready-hv-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.flow-tabs {
  margin-top: 18px;
}

.wizard-summary,
.summary-card {
  padding: 22px;
  border-radius: 24px;
  background: #f7f9ff;
  border: 1px solid #dbe5ff;
}

.wizard-summary-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wizard-summary-head h3,
.summary-card h4 {
  margin: 0;
  color: #1c4967;
  font-family: var(--font-ui);
  letter-spacing: -0.02em;
}

.excluded-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.excluded-boxes span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(207, 72, 72, 0.12);
  border: 1px solid rgba(207, 72, 72, 0.25);
  color: #b33f3f;
  font-weight: 500;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-top: 18px;
}

.summary-card p {
  margin: 10px 0 0;
  color: #486189;
}

.history-row-detailed {
  align-items: start;
}

.history-row-detailed small {
  display: block;
}

.table-row-link:not(.table-row-request) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.table-row-link.is-selected:not(.table-row-request) {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(28, 73, 103, 0.18);
}

.table-row-request.is-selected {
  box-shadow: inset 0 0 0 1px rgba(28, 73, 103, 0.18);
}

.row-badges,
.detail-facts,
.form-actions,
.portal-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-badge,
.match-total {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf2ff;
  color: #486189;
  font-size: 0.88rem;
  font-weight: 700;
}

.subsection {
  margin-top: 28px;
}

.subsection h3 {
  margin-bottom: 14px;
}

.compact {
  margin-top: 10px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.detail-facts {
  margin-top: 18px;
}

.detail-facts span {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f4f8ff;
  border: 1px solid var(--line);
  color: #486189;
}

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

.match-item input {
  width: 20px;
  height: 20px;
}

.match-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.history-row {
  gap: 8px;
}

.history-row small {
  font-size: 0.9rem;
}

.company-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.admin-form-grid label {
  display: grid;
  gap: 12px;
  font-weight: 600;
}

.admin-form-grid label span {
  font-size: 0.96rem;
  color: #1c4967;
}

.admin-detail-card .admin-form-grid input,
.admin-detail-card .admin-form-grid select,
.admin-detail-card .admin-form-grid textarea {
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid #d8deed;
  background: #fbfcff;
  padding: 0 16px;
  color: #274a67;
  font-family: var(--font-ui);
  font-size: 17px;
}

.admin-detail-card .admin-form-grid textarea {
  min-height: 148px;
  padding: 14px 16px;
  resize: vertical;
}

.admin-detail-card .form-actions {
  margin-top: 8px;
}

.admin-detail-card .button.button-primary {
  min-height: 62px;
  border-radius: 18px;
  font-size: 18px;
}

.admin-detail-card .button.button-danger {
  min-height: 58px;
  border-radius: 18px;
  font-size: 17px;
}

.inline-delete-form {
  margin-top: 16px;
}

.admin-qa-card {
  margin-top: 18px;
  padding: 20px 22px 22px;
  border-radius: 24px;
  background: #f7f9ff;
  box-shadow: 0 2px 8px rgba(32, 53, 112, 0.05);
}

.admin-qa-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.admin-qa-grid label {
  display: grid;
  gap: 10px;
}

.admin-qa-grid label span {
  color: #1c4967;
  font-size: 0.94rem;
  font-weight: 600;
}

.admin-qa-grid input {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid #d8deed;
  background: #ffffff;
  padding: 0 16px;
  color: #274a67;
  font-family: var(--font-ui);
  font-size: 15px;
}

.admin-qa-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-qa-actions form {
  margin: 0;
}

.admin-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 255, 0.88);
  border: 1px solid var(--line);
}

.admin-check input {
  width: 18px;
  height: 18px;
}

.settings-card {
  max-width: 980px;
}

.top-gap {
  margin-top: 18px;
}

@keyframes requestAccordionIn {
  0% {
    opacity: 0;
    transform: translateY(-6px) scaleY(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .process-grid,
  .quote-grid,
  .pricing-grid,
  .faq-grid,
  .internal-layout,
  .portal-shell,
  .internal-stats,
  .dashboard-app,
  .dash-grid-two,
  .admin-split,
  .system-stats {
    grid-template-columns: 1fr;
  }

  .table-row-request--open,
  .table-row-request--status,
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .topline-inner,
  .nav-inner,
  .footer-inner,
  .section-head,
  .pricing-header,
  .internal-header,
  .card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-grid,
  .portal-grid,
  .mail-settings-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .free-banner,
  .manager-row,
  .dashboard-topbar,
  .detail-head,
  .request-row,
  .match-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-row-request {
    gap: 10px;
  }

  .request-action-button,
  .request-action-link,
  .request-verify-box {
    width: 100%;
    justify-content: center;
  }
  .request-row,
  .match-item,
  .table-row-link,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .internal-app { grid-template-columns: 1fr; }
  .internal-rail {
    border-radius: 0 0 28px 28px;
    gap: 18px;
  }
  .dashboard-app {
    padding: 12px;
    gap: 18px;
  }
  .dashboard-sidebar {
    border-radius: 28px;
  }
  .dashboard-home-link {
    min-width: 0;
    width: 100%;
  }
  .dashboard-sidebar {
    border-radius: 32px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .dashboard-logo {
    border-radius: 28px;
  }
  .dashboard-nav a,
  .dashboard-logout,
  .request-pill,
  .request-name strong,
  .request-name span,
  .request-meta,
  .request-verify,
  .request-action {
    font-size: 16px;
  }

  .dashboard-nav-icon,
  .dashboard-nav-icon svg,
  .dashboard-nav-icon img {
    width: 30px;
    height: 30px;
  }

  .request-group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-row-request {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .request-row {
    grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1fr);
  }

  .request-location,
  .request-start,
  .request-verify {
    grid-column: 2 / -1;
  }

  .request-action {
    grid-column: 2 / -1;
    justify-self: end;
  }
}
