:root {
  --bg: #091318;
  --panel: rgba(13, 24, 31, 0.64);
  --ink: #edf7f5;
  --muted: #a6bbc2;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #2dd4bf;
  --accent-strong: #7dded2;
  --gold: #f2b25b;
  --blue: #9aa7ff;
  --soft: rgba(45, 212, 191, 0.14);
  --glass: rgba(13, 24, 31, 0.58);
  --glass-strong: rgba(20, 34, 43, 0.72);
  --glass-dark: rgba(25, 36, 44, 0.78);
  --glass-line: rgba(255, 255, 255, 0.16);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(45, 212, 191, 0.14) 0 18%, transparent 18% 42%, rgba(154, 167, 255, 0.16) 42% 61%, transparent 61% 100%),
    linear-gradient(155deg, #071116 0%, #0d1b22 34%, #18243a 67%, #0a2826 100%),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(125deg, transparent 0 14%, rgba(45, 212, 191, 0.08) 14% 28%, transparent 28% 100%),
    linear-gradient(35deg, transparent 0 66%, rgba(242, 178, 91, 0.08) 66% 82%, transparent 82% 100%);
  background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100%;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(31, 36, 38, 0.09);
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 58px;
  flex: none;
  object-fit: contain;
}

.modern-only {
  display: none !important;
}

.topbar > .nav {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

main {
  min-height: 100vh;
}

.wizard-shell {
  padding: 22px clamp(18px, 5vw, 72px) 0;
  background: linear-gradient(0deg, rgba(246, 244, 239, 0), #fff 80%);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stepper li {
  position: relative;
  min-width: 0;
  background: #e6e9e6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.stepper li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: -22px;
  width: 44px;
  height: 100%;
  background: inherit;
  clip-path: polygon(0 0, 50% 50%, 0 100%, 50% 100%, 100% 50%, 50% 0);
  content: "";
}

.stepper li > a,
.stepper li > span {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 28px;
  text-decoration: none;
}

.stepper li:first-child > a,
.stepper li:first-child > span {
  padding-left: 18px;
}

.stepper li span span,
.stepper li a span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  font-size: 12px;
}

.stepper .is-complete {
  background: #dcebe7;
  color: var(--accent-strong);
}

.stepper .is-active {
  background: var(--accent);
  color: #fff;
}

.wizard-page {
  min-height: calc(100vh - 220px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
  padding: clamp(36px, 6vw, 78px) clamp(18px, 5vw, 72px) 36px;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.1), transparent 48%),
    linear-gradient(0deg, #f6f4ef, #fff 82%);
}

.hero-copy {
  max-width: 760px;
  padding-top: clamp(8px, 3vw, 54px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.intake {
  display: grid;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: #3a4246;
  font-size: 13px;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd6d1;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

input,
select {
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 11px 12px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 12px;
}

button,
.as-link {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

button:disabled,
button[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.58;
}

.loading-note {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 750;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
}

.primary.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  animation: button-spin 0.75s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.primary:hover,
.primary:focus {
  background: var(--accent-strong);
}

.secondary {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.wizard-actions .as-link,
.wizard-actions button {
  min-width: 150px;
}

.notice,
.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.metric {
  color: var(--blue);
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.section {
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 72px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 24px;
}

.section-head.wide {
  grid-template-columns: minmax(0, 1fr);
}

.section-head p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
}

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

.recommendation-card,
.creative-card,
.send-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.recommendation-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.card-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-check input,
.creative-select input {
  width: 18px;
  height: 18px;
  min-height: auto;
  accent-color: var(--accent);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.card-topline strong {
  color: var(--gold);
}

.recommendation-card p {
  margin: 0;
  color: var(--muted);
}

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

.facts div {
  min-width: 0;
  padding: 10px;
  border-radius: 6px;
  background: #f5f7f5;
}

.facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.facts dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 850;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.predicate-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: #15151c;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.predicate-badges .predicate-logo-badge {
  width: 36px;
  height: 26px;
  padding: 3px 6px;
}

.predicate-logo-badge img {
  display: block;
  width: 100%;
  max-width: 26px;
  height: 100%;
  object-fit: contain;
}

.predicate-badges-media {
  display: grid;
  width: 58px;
  gap: 7px;
}

.predicate-badges-media .predicate-logo-badge-media {
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 7px;
  border-radius: 7px;
}

.predicate-badges-media .predicate-logo-badge-media img {
  max-width: none;
}

.chips span,
.tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1fr);
  gap: 20px;
  align-items: start;
}

.split .section-head {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.creative-workspace {
  display: block;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.75fr) minmax(180px, 0.75fr);
  gap: 10px;
  width: 100%;
}

.map-shell {
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dce5e1;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.catalog-map-shell #map {
  height: 100%;
  min-height: inherit;
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  outline-offset: 1px;
  background: #dce5e1;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
  user-select: none;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-popup {
  position: absolute;
  margin-bottom: 18px;
  text-align: left;
  pointer-events: none;
}

.leaflet-popup-content-wrapper {
  min-width: 190px;
  overflow: hidden;
  border: 1px solid rgba(31, 36, 38, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 36, 38, 0.22);
  pointer-events: auto;
}

.leaflet-popup-content {
  margin: 0;
}

.leaflet-popup-tip-container {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 14px;
  margin-left: -12px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 12px;
  height: 12px;
  margin: -6px auto 0;
  transform: rotate(45deg);
  border-right: 1px solid rgba(31, 36, 38, 0.12);
  border-bottom: 1px solid rgba(31, 36, 38, 0.12);
  background: #fff;
}

.leaflet-popup-close-button {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.map-popup-card {
  display: grid;
  gap: 4px;
  padding: 14px 30px 14px 14px;
}

.map-popup-card strong {
  max-width: 240px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.map-popup-card span {
  color: var(--muted);
  font-size: 12px;
}

.map-popup-card a {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control-zoom {
  margin: 10px;
  border: 1px solid rgba(31, 36, 38, 0.2);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.leaflet-control-zoom a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.creative-map-marker {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(31, 36, 38, 0.28);
}

.creative-map-marker span {
  width: 6px;
  height: 6px;
  border-radius: inherit;
  background: #fff;
}

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

#creativeForm {
  min-width: 0;
}

.creative-list {
  display: grid;
  gap: 18px;
}

.creative-service-group {
  display: grid;
  gap: 10px;
}

.creative-service-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

.creative-service-head span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.creative-service-head h2 {
  margin-top: 3px;
  font-size: 22px;
}

.creative-service-head strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

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

.creative-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.catalog-card {
  grid-template-columns: 68px minmax(0, 1fr);
  align-content: start;
  overflow: hidden;
  padding: 12px;
}

.catalog-card.no-image {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-card.has-predicate-media {
  grid-template-columns: 68px minmax(0, 1fr);
}

.catalog-media {
  display: grid;
  width: 58px;
  gap: 7px;
  align-content: start;
}

.catalog-card .creative-main {
  padding: 0;
}

.catalog-image-button {
  display: block;
  width: 58px;
  height: 58px;
  min-height: 58px;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: #dfe7e3;
  cursor: pointer;
}

.catalog-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.catalog-image-button:hover img,
.catalog-image-button:focus img {
  transform: scale(1.025);
}

.creative-select {
  display: flex;
  justify-content: center;
  padding-top: 3px;
}

.creative-main {
  display: grid;
  gap: 8px;
}

.creative-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.creative-title h3 {
  font-size: 17px;
}

.score {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.creative-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.creative-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-card .creative-description {
  display: block;
  max-height: 86px;
  overflow: auto;
  padding-right: 6px;
  font-size: 12px;
  line-height: 1.38;
  -webkit-line-clamp: unset;
}

.catalog-card .creative-description::-webkit-scrollbar {
  width: 6px;
}

.catalog-card .creative-description::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c7d3cf;
}

.creative-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  font-weight: 750;
}

.text-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-weight: 850;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(31, 36, 38, 0.28);
}

.profile-dialog::backdrop {
  background: rgba(19, 27, 30, 0.45);
}

.dialog-close {
  position: sticky;
  top: 10px;
  z-index: 2;
  float: right;
  display: grid;
  width: 38px;
  min-height: 38px;
  margin: 10px 10px 0 0;
  place-items: center;
  border: 1px solid rgba(31, 36, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.profile-view {
  display: grid;
  min-height: 0;
}

.profile-body {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 34px;
}

.profile-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-head.no-image {
  grid-template-columns: minmax(0, 1fr);
}

.profile-avatar {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dfe7e3;
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-body h2 {
  max-width: 100%;
  margin: 2px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.profile-location {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-description {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding-right: 8px;
  color: #3b4549;
  font-size: 14px;
  line-height: 1.55;
}

.profile-tags span {
  background: #f3efe7;
}

.profile-contact {
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-contact div {
  display: grid;
  gap: 2px;
}

.profile-contact dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-contact dd {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.briefing-groups {
  display: grid;
  gap: 18px;
}

.briefing-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

.briefing-card-head h2 {
  margin-top: 2px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.12;
}

.recipient-count {
  justify-self: end;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.briefing-text {
  min-height: 360px;
  border-color: var(--line);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.48;
}

.briefing-recipient-block {
  display: grid;
  gap: 10px;
}

.briefing-recipient-block h3 {
  font-size: 17px;
}

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

.briefing-recipient-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfa;
}

.briefing-recipient-list li.no-image {
  grid-template-columns: minmax(0, 1fr);
}

.briefing-recipient-list img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.briefing-recipient-list strong,
.briefing-recipient-list small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.briefing-recipient-list strong {
  font-size: 13px;
}

.briefing-recipient-list small {
  color: var(--muted);
  font-size: 12px;
}

.recipient-mail-link {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 36px;
  padding: 0 10px;
  white-space: nowrap;
}

.briefing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
}

#briefingText {
  min-height: 520px;
  border-color: var(--line);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
}

.send-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.send-panel h3 {
  font-size: 18px;
}

#recipientList {
  display: grid;
  gap: 8px;
  min-height: 80px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.recipient-groups {
  gap: 14px;
}

.recipient-groups h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14px;
}

.recipient-groups ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-page {
  padding-top: clamp(34px, 5vw, 58px);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(160px, 220px)) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.catalog-tools strong {
  white-space: nowrap;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.map-panel {
  display: grid;
  gap: 10px;
}

.map-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.map-panel-head strong {
  color: var(--ink);
}

.catalog-map-panel {
  position: sticky;
  top: 92px;
}

.catalog-map-shell {
  height: min(72vh, 680px);
  min-height: 460px;
}

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

.as-link {
  display: grid;
  place-items: center;
  padding: 0 16px;
}

footer {
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* Modern glass redesign */
.topbar {
  margin: 14px clamp(12px, 2vw, 26px) 0;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 54px rgba(30, 44, 55, 0.14);
  backdrop-filter: blur(24px) saturate(1.35);
}

.brand {
  min-width: min(360px, 100%);
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: linear-gradient(135deg, #0d9488, #5269bd 58%, #d18c2f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 12px 28px rgba(13, 148, 136, 0.24);
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  color: rgba(23, 33, 38, 0.64);
}

nav {
  gap: 8px;
}

nav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(23, 33, 38, 0.68);
  font-weight: 800;
}

nav a:hover,
nav a:focus {
  border-color: var(--glass-line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
}

.wizard-shell {
  padding-top: 20px;
  background: transparent;
}

.stepper {
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 16px 54px rgba(30, 44, 55, 0.1);
  backdrop-filter: blur(20px) saturate(1.28);
}

.stepper li {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(23, 33, 38, 0.66);
  text-transform: none;
}

.stepper li:not(:last-child)::after {
  display: none;
}

.stepper li > a,
.stepper li > span,
.stepper li:first-child > a,
.stepper li:first-child > span {
  min-height: 48px;
  padding: 0 14px;
}

.stepper li span span,
.stepper li a span {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.stepper .is-complete {
  background: rgba(13, 148, 136, 0.12);
  color: var(--accent-strong);
}

.stepper .is-active {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.94), rgba(82, 105, 189, 0.9));
  color: #fff;
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.22);
}

.hero {
  padding-top: clamp(42px, 7vw, 92px);
  background: transparent;
}

.hero-copy {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.24);
}

h1 {
  color: #111b20;
  text-wrap: balance;
}

h2,
h3 {
  color: #16232a;
}

.eyebrow {
  color: var(--accent-strong);
}

.intake,
.recommendation-card,
.creative-card,
.send-panel,
.briefing-card,
.profile-dialog,
.map-shell,
.catalog-tools,
.map-panel,
.catalog-card,
.leaflet-popup-content-wrapper {
  border: 1px solid var(--glass-line);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.28);
}

.intake,
.recommendation-card,
.briefing-card {
  border-radius: 22px;
}

.creative-card,
.catalog-card,
.send-panel {
  border-radius: 18px;
}

.recommendation-card {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.recommendation-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 80px rgba(30, 44, 55, 0.18);
}

label {
  color: rgba(23, 33, 38, 0.78);
}

input,
textarea,
select {
  border-color: rgba(255, 255, 255, 0.7);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

input:focus,
textarea:focus,
select:focus {
  outline: 4px solid rgba(13, 148, 136, 0.18);
  border-color: rgba(13, 148, 136, 0.46);
  background: rgba(255, 255, 255, 0.86);
}

button,
.as-link {
  border-radius: 999px;
}

.primary {
  background: linear-gradient(135deg, #0d9488, #5269bd);
  box-shadow: 0 14px 32px rgba(13, 148, 136, 0.22);
}

.primary:hover,
.primary:focus {
  background: linear-gradient(135deg, #0f766e, #435aa8);
}

.secondary {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.58);
}

.loading-note,
.notice,
.hint {
  border-radius: 12px;
}

.section {
  padding-top: clamp(40px, 5vw, 72px);
}

.section-head {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 58px rgba(30, 44, 55, 0.12);
  backdrop-filter: blur(22px) saturate(1.24);
}

.recommendation-grid {
  gap: 18px;
}

.card-check {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.card-check input,
.creative-select input {
  accent-color: var(--accent);
}

.card-topline strong,
.score {
  color: #5269bd;
}

.facts div {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.44);
}

.chips span,
.tag {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent-strong);
}

.filters,
.catalog-tools {
  padding: 10px;
  border-radius: 18px;
}

.list-toolbar,
.creative-service-head,
.map-panel-head {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(18px);
}

.creative-service-head h2 {
  font-size: 21px;
}

.creative-service-list,
.catalog-list,
.briefing-groups {
  gap: 14px;
}

.creative-card {
  background: rgba(255, 255, 255, 0.56);
}

.creative-select {
  align-items: start;
}

.catalog-image-button,
.briefing-recipient-list img,
.profile-avatar {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.text-button {
  color: var(--accent-strong);
}

.map-shell,
.catalog-map-shell {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
}

.leaflet-container {
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.34);
}

.leaflet-control-zoom {
  border-color: rgba(255, 255, 255, 0.74);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(30, 44, 55, 0.15);
  backdrop-filter: blur(14px);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.creative-map-marker {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #0d9488, #5269bd);
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.28);
}

.profile-dialog {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.profile-dialog::backdrop {
  background: rgba(31, 43, 51, 0.48);
  backdrop-filter: blur(6px);
}

.dialog-close {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(30, 44, 55, 0.14);
}

.briefing-text,
#briefingText {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.recipient-count,
.briefing-recipient-list li {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.46);
}

.recipient-mail-link {
  background: rgba(255, 255, 255, 0.62);
}

.catalog-map-panel {
  top: 114px;
}

@media (max-width: 1120px) {
  .hero,
  .split,
  .briefing-layout,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

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

  .map-shell {
    height: 340px;
    min-height: 300px;
  }

  #map {
    height: 100%;
    min-height: inherit;
  }

  .catalog-map-panel {
    position: static;
  }

  .catalog-map-shell {
    height: 430px;
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

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

  .stepper li {
    border-radius: 7px;
  }

  .stepper li::after {
    display: none;
  }

  .stepper li > a,
  .stepper li > span,
  .stepper li:first-child > a,
  .stepper li:first-child > span {
    padding: 0 14px;
  }

  .form-grid,
  .recommendation-grid,
  .facts,
  .filters,
  .catalog-tools,
  .creative-service-list,
  .catalog-list {
    grid-template-columns: 1fr;
  }

  .profile-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

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

  .profile-body {
    padding: 24px 20px;
  }

  .profile-head {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
  }

  .briefing-card-head,
  .briefing-recipient-list {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .creative-list {
    max-height: none;
  }

  .wizard-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Modern glass redesign v2 */
:root {
  --bg: #091318;
  --panel: rgba(13, 24, 31, 0.64);
  --ink: #edf7f5;
  --muted: #a6bbc2;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #2dd4bf;
  --accent-strong: #7dded2;
  --gold: #f2b25b;
  --blue: #9aa7ff;
  --soft: rgba(45, 212, 191, 0.14);
  --glass: rgba(13, 24, 31, 0.58);
  --glass-strong: rgba(20, 34, 43, 0.72);
  --glass-line: rgba(255, 255, 255, 0.16);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(45, 212, 191, 0.14) 0 18%, transparent 18% 42%, rgba(154, 167, 255, 0.16) 42% 61%, transparent 61% 100%),
    linear-gradient(155deg, #071116 0%, #0d1b22 34%, #18243a 67%, #0a2826 100%);
  color: var(--ink);
}

body::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(125deg, transparent 0 14%, rgba(45, 212, 191, 0.08) 14% 28%, transparent 28% 100%),
    linear-gradient(35deg, transparent 0 66%, rgba(242, 178, 91, 0.08) 66% 82%, transparent 82% 100%);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
}

.topbar {
  margin: 18px clamp(14px, 2.5vw, 34px) 0;
  padding: 12px clamp(14px, 2.4vw, 28px);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(8, 16, 21, 0.66);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(28px) saturate(1.45);
}

.brand-mark {
  border-radius: 16px;
  background: linear-gradient(135deg, #2dd4bf 0%, #6c7bff 62%, #f2b25b 100%);
  color: #071116;
  box-shadow: 0 16px 38px rgba(45, 212, 191, 0.24);
}

.brand strong {
  color: #f5fffd;
}

.brand small,
nav {
  color: rgba(237, 247, 245, 0.68);
}

nav a {
  color: rgba(237, 247, 245, 0.7);
}

nav a:hover,
nav a:focus {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.wizard-shell {
  padding-inline: clamp(14px, 4vw, 64px);
}

.stepper {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(7, 17, 22, 0.5);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.stepper li {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(237, 247, 245, 0.64);
}

.stepper li span span,
.stepper li a span {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.stepper .is-complete {
  background: rgba(45, 212, 191, 0.12);
  color: #b4fff5;
}

.stepper .is-active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.92), rgba(108, 123, 255, 0.9));
  color: #071116;
}

.hero,
.section {
  max-width: 1440px;
  margin-inline: auto;
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: clamp(20px, 3vw, 38px);
}

.hero-copy,
.section-head,
.intake,
.recommendation-card,
.creative-card,
.send-panel,
.briefing-card,
.profile-dialog,
.catalog-tools,
.map-panel,
.list-toolbar,
.creative-service-head {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(30px) saturate(1.42);
}

.hero-copy {
  position: relative;
  min-height: 430px;
  display: grid;
  align-content: end;
  padding-top: clamp(72px, 8vw, 92px);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    linear-gradient(125deg, rgba(45, 212, 191, 0.18), transparent 48%, rgba(154, 167, 255, 0.16));
}

.hero-copy::before {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 17, 22, 0.36);
  color: rgba(237, 247, 245, 0.72);
  font-size: 12px;
  font-weight: 850;
  content: "KI-Briefing Cockpit";
}

h1,
h2,
h3 {
  color: #f4fffd;
}

h1 {
  font-size: clamp(42px, 6.6vw, 86px);
}

.section-head h1 {
  font-size: clamp(30px, 4vw, 54px);
}

.hero-copy p:not(.eyebrow),
.section-head p:not(.eyebrow),
.recommendation-card p,
.creative-description,
.creative-meta,
.notice,
.hint,
.profile-description,
.profile-location,
.recipient-count,
.briefing-recipient-list small {
  color: var(--muted);
}

.eyebrow,
.creative-service-head span {
  color: #83fff1;
}

.intake {
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(7, 17, 22, 0.34);
}

label {
  color: rgba(237, 247, 245, 0.78);
}

input,
textarea,
select {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f5fffd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: rgba(237, 247, 245, 0.42);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(45, 212, 191, 0.62);
  background: rgba(255, 255, 255, 0.12);
  outline: 4px solid rgba(45, 212, 191, 0.14);
}

.primary {
  background: linear-gradient(135deg, #2dd4bf, #7c86ff);
  color: #071116;
  box-shadow: 0 18px 44px rgba(45, 212, 191, 0.24);
}

.primary:hover,
.primary:focus {
  background: linear-gradient(135deg, #5eead4, #9aa7ff);
}

.secondary,
.recipient-mail-link {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  color: #f4fffd;
}

.loading-note,
.card-check,
.facts div,
.chips span,
.tag,
.recipient-count,
.briefing-recipient-list li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.075);
}

.recommendation-card,
.briefing-card {
  border-radius: 26px;
}

.recommendation-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
}

.facts dd,
.card-topline strong,
.score {
  color: #f2b25b;
}

.chips span,
.tag {
  color: #b4fff5;
}

.creative-card,
.catalog-card {
  background: rgba(255, 255, 255, 0.075);
}

.creative-title h3,
.profile-body h2,
.recipient-groups h4,
.map-panel-head strong {
  color: #f4fffd;
}

.map-shell,
.catalog-map-shell,
.leaflet-container {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 17, 22, 0.34);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(10, 20, 27, 0.88);
  color: #f4fffd;
}

.map-popup-card strong {
  color: #f4fffd;
}

.map-popup-card span,
.leaflet-popup-close-button {
  color: rgba(237, 247, 245, 0.68);
}

.map-popup-card a,
.text-button {
  color: #83fff1;
}

.leaflet-control-zoom {
  background: rgba(10, 20, 27, 0.72);
}

.leaflet-control-zoom a {
  border-color: rgba(255, 255, 255, 0.1);
  color: #f4fffd;
}

.profile-dialog {
  background: rgba(10, 20, 27, 0.86);
}

.dialog-close {
  background: rgba(255, 255, 255, 0.1);
  color: #f4fffd;
}

.profile-avatar,
.catalog-image-button,
.briefing-recipient-list img {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.profile-contact dt {
  color: rgba(237, 247, 245, 0.56);
}

.profile-contact dd {
  color: #f4fffd;
}

.profile-tags span {
  background: rgba(154, 167, 255, 0.12);
  color: #d7dcff;
}

.briefing-text,
#briefingText {
  background: rgba(7, 17, 22, 0.42);
  color: #ecfdfb;
}

.catalog-tools {
  background: rgba(7, 17, 22, 0.42);
}

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

  .hero-copy {
    min-height: 330px;
    padding-top: 74px;
  }
}

@media (max-width: 720px) {
  .topbar {
    margin: 10px;
    border-radius: 18px;
  }

  .hero,
  .section {
    padding-inline: 14px;
  }

  .hero-copy,
  .intake,
  .section-head,
  .recommendation-card,
  .briefing-card {
    border-radius: 20px;
  }

  h1 {
    font-size: clamp(32px, 9.5vw, 48px);
  }
}

/* Kreative-in-Sachsen inspired flat theme */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #000000;
  --muted: #545454;
  --line: #000000;
  --accent: #003399;
  --accent-strong: #003399;
  --gold: #b0cb46;
  --blue: #003399;
  --soft: #f3f5f7;
  --glass: #ffffff;
  --glass-strong: #ffffff;
  --glass-dark: #000000;
  --glass-line: #000000;
  --shadow: none;
  color-scheme: light;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

html,
body {
  background: #ffffff;
  color: #000000;
  color-scheme: light;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 25px;
}

body::before {
  display: none;
}

.topbar {
  position: relative;
  margin: 0 auto;
  padding: 24px clamp(18px, 5vw, 72px);
  border: 0;
  border-bottom: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-mark {
  border-radius: 0;
  background: #003399;
  color: #ffffff;
}

.brand strong {
  color: #000000;
  font-weight: 700;
  text-transform: uppercase;
}

.brand small,
nav,
nav a {
  color: #000000;
}

nav a {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus,
.text-button:hover,
.text-button:focus {
  color: #009249;
  background: transparent;
}

.wizard-shell {
  padding-top: 28px;
  background: #ffffff;
}

.stepper {
  gap: 0;
  padding: 0;
  border: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.stepper li {
  border: 0;
  border-right: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
  text-transform: uppercase;
}

.stepper li:last-child {
  border-right: 0;
}

.stepper li span span,
.stepper li a span {
  border: 1px solid #000000;
  background: #ffffff;
  box-shadow: none;
  color: #000000;
}

.stepper .is-complete {
  background: #f4f4f4;
  color: #000000;
}

.stepper .is-active {
  background: #003399;
  color: #ffffff;
  box-shadow: none;
}

.stepper .is-active span span,
.stepper .is-active a span {
  border-color: #ffffff;
  background: #ffffff;
  color: #003399;
}

.hero,
.section,
.catalog-page {
  background: #ffffff;
}

.hero {
  max-width: 1200px;
  padding-top: clamp(34px, 5vw, 72px);
}

.hero-copy,
.section-head,
.intake,
.recommendation-card,
.creative-card,
.send-panel,
.briefing-card,
.profile-dialog,
.catalog-tools,
.map-panel,
.list-toolbar,
.creative-service-head,
.map-shell,
.catalog-map-shell,
.leaflet-container,
.leaflet-popup-content-wrapper {
  border: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-copy {
  min-height: auto;
  padding: clamp(28px, 4vw, 48px);
  align-content: start;
}

.hero-copy::before {
  position: static;
  display: inline-block;
  width: fit-content;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #003399;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
.section-head h1,
.creative-title h3,
.profile-body h2,
.recipient-groups h4,
.map-panel-head strong {
  color: #000000;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
.section-head h1 {
  font-size: 35px;
  line-height: 41px;
}

h2,
h3 {
  font-size: 35px;
  line-height: 41px;
}

.eyebrow,
.creative-service-head span {
  color: #003399;
  font-weight: 700;
}

.hero-copy p:not(.eyebrow),
.section-head p:not(.eyebrow),
.recommendation-card p,
.creative-description,
.creative-meta,
.notice,
.hint,
.profile-description,
.profile-location,
.recipient-count,
.briefing-recipient-list small,
.map-popup-card span,
.leaflet-popup-close-button {
  color: #545454;
}

label,
.profile-contact dt,
.profile-contact dd,
.briefing-recipient-list strong,
.briefing-recipient-list small {
  color: #000000;
}

input,
textarea,
select,
.briefing-text,
#briefingText {
  border: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  color: #000000;
  backdrop-filter: none;
}

input::placeholder,
textarea::placeholder {
  color: #929292;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #000000;
  background: #ffffff;
  outline: 3px solid rgba(0, 0, 0, 0.2);
}

button,
.as-link,
.primary,
.secondary,
.recipient-mail-link,
.text-button {
  border-radius: 0;
  box-shadow: none;
  text-transform: uppercase;
}

.primary,
.bsui .btn-primary {
  border: 1px solid #000000;
  background: #000000;
  color: #ffffff;
}

.primary:hover,
.primary:focus,
.secondary:hover,
.secondary:focus,
.recipient-mail-link:hover,
.recipient-mail-link:focus {
  border-color: #000000;
  background: #ffffff;
  color: #000000;
}

.secondary,
.recipient-mail-link {
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
}

.card-check,
.facts div,
.chips span,
.tag,
.recipient-count,
.briefing-recipient-list li,
.profile-tags span {
  border: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
}

.recommendation-card:hover,
.creative-card:hover,
.catalog-card:hover {
  transform: none;
  background: #ffffff;
  box-shadow: none;
}

.facts dd,
.card-topline strong,
.score,
.map-popup-card a,
.text-button {
  color: #009249;
}

.catalog-card,
.creative-card {
  background: #ffffff;
}

.profile-dialog {
  color: #000000;
}

.dialog-close {
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
}

.profile-avatar,
.catalog-image-button,
.briefing-recipient-list img {
  border-color: #000000;
  background: #ffffff;
}

.leaflet-popup-tip {
  background: #ffffff;
}

.leaflet-control-zoom {
  background: #ffffff;
}

.leaflet-control-zoom a {
  border-color: #000000;
  color: #000000;
}

@media (max-width: 900px) {
  .hero-copy {
    min-height: auto;
    padding-top: 28px;
  }
}

@media (max-width: 720px) {
  .topbar {
    margin: 0;
    border-radius: 0;
  }

  h1,
  .section-head h1,
  h2,
  h3 {
    font-size: 26px;
    line-height: 31px;
  }
}

/* KIS stylesheet alignment: flat, typographic, with official Teilmarkt marks */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #000000;
  --muted: #4f4f4f;
  --line: #000000;
  --accent: #009249;
  --accent-strong: #009249;
  --blue: #003399;
  --yellow: #ffdf31;
  --soft: #f6f6f6;
  --glass: #ffffff;
  --glass-strong: #ffffff;
  --glass-line: #000000;
  --shadow: none;
  color-scheme: light;
}

html,
body {
  background: #ffffff !important;
  color: #000000;
  color-scheme: light;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 25px;
}

body::before,
.hero-copy::before {
  display: none;
}

main {
  background: #ffffff;
}

.topbar {
  position: relative;
  margin: 0;
  padding: 24px clamp(18px, 5vw, 72px);
  border: 0;
  border-radius: 0;
  background: #000000;
  box-shadow: none;
  color: #ffffff;
  backdrop-filter: none;
}

.topbar::after {
  display: none;
}

.brand {
  min-width: min(480px, 100%);
}

.brand-mark {
  width: 50px;
  height: 50px;
  border: 2px solid #ffffff;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.brand strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 27px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand small,
nav,
nav a {
  color: #ffffff;
}

.brand small {
  max-width: none;
  font-size: 15px;
  line-height: 19px;
}

nav a {
  padding: 0 0 3px;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus {
  border-color: #009249;
  background: transparent;
  color: #ffffff;
}

.wizard-shell {
  padding-top: 30px;
  background: #ffffff;
}

.stepper {
  gap: 0;
  padding: 0;
  border: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
}

.stepper li {
  border: 0;
  border-right: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  text-transform: uppercase;
}

.stepper li:last-child {
  border-right: 0;
}

.stepper li > a,
.stepper li > span,
.stepper li:first-child > a,
.stepper li:first-child > span {
  min-height: 54px;
}

.stepper li span span,
.stepper li a span {
  border: 1px solid #000000;
  background: #ffffff;
  box-shadow: none;
  color: #000000;
}

.stepper .is-active {
  background: #000000;
  color: #ffffff;
  box-shadow: none;
}

.stepper .is-active span span,
.stepper .is-active a span {
  border-color: #ffffff;
  color: #000000;
}

.stepper .is-complete {
  background: #009249;
  color: #ffffff;
}

.stepper .is-complete span span,
.stepper .is-complete a span {
  border-color: #ffffff;
}

.hero,
.section,
.catalog-page {
  background: #ffffff;
}

.hero,
.section {
  max-width: 1240px;
}

.hero-copy,
.section-head,
.intake,
.recommendation-card,
.creative-card,
.send-panel,
.briefing-card,
.profile-dialog,
.catalog-tools,
.map-panel,
.list-toolbar,
.creative-service-head,
.map-shell,
.catalog-map-shell,
.leaflet-container,
.leaflet-popup-content-wrapper {
  border: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  color: #000000;
  backdrop-filter: none;
}

.hero-copy {
  min-height: auto;
  padding: clamp(30px, 4vw, 52px);
  align-content: start;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid #000000;
}

.section-head.wide {
  grid-template-columns: minmax(0, 1fr);
}

.section-head p:not(.eyebrow) {
  max-width: 850px;
}

h1,
h2,
h3,
.section-head h1,
.creative-title h3,
.profile-body h2,
.recipient-groups h4,
.map-panel-head strong {
  color: #000000;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
.section-head h1 {
  font-size: 35px;
  line-height: 41px;
}

h2 {
  font-size: 30px;
  line-height: 36px;
}

h3,
.recommendation-card h3,
.creative-title h3,
.catalog-card .creative-title h3,
.briefing-card-head h2,
.briefing-recipient-block h3,
.creative-service-head h2 {
  font-size: 20px;
  line-height: 25px;
}

.recommendation-card h3,
.briefing-card-head h2,
.creative-service-head h2 {
  overflow-wrap: anywhere;
}

.eyebrow,
.creative-service-head span,
.facts dd,
.card-topline strong,
.score,
.map-popup-card a,
.text-button {
  color: #009249;
}

.hero-copy p:not(.eyebrow),
.section-head p:not(.eyebrow),
.recommendation-card p,
.creative-description,
.creative-meta,
.notice,
.hint,
.profile-description,
.profile-location,
.recipient-count,
.briefing-recipient-list small,
.map-popup-card span {
  color: #4f4f4f;
}

label,
.profile-contact dt,
.profile-contact dd,
.briefing-recipient-list strong,
.briefing-recipient-list small {
  color: #000000;
}

input,
textarea,
select,
.briefing-text,
#briefingText {
  border: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  color: #000000;
  backdrop-filter: none;
}

input::placeholder,
textarea::placeholder {
  color: #777777;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #000000;
  background: #ffffff;
  outline: 3px solid rgba(0, 146, 73, 0.24);
}

button,
.as-link,
.primary,
.secondary,
.recipient-mail-link,
.text-button {
  border-radius: 0;
  box-shadow: none;
  text-transform: uppercase;
}

.primary,
.secondary:hover,
.secondary:focus,
.recipient-mail-link:hover,
.recipient-mail-link:focus {
  border: 1px solid #000000;
  background: #000000;
  color: #ffffff;
}

.primary:hover,
.primary:focus,
.secondary,
.recipient-mail-link {
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
}

.primary.is-loading {
  position: relative;
  color: #ffffff;
  white-space: normal;
  line-height: 20px;
}

.primary.is-loading::before {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
}

.intake .primary {
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
}

.card-check,
.facts div,
.chips span,
.tag,
.recipient-count,
.briefing-recipient-list li,
.profile-tags span {
  border: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
}

.card-check {
  width: 100%;
  min-width: 0;
}

.recommendation-card,
.creative-card,
.catalog-card {
  overflow: hidden;
}

.recommendation-card:hover,
.creative-card:hover,
.catalog-card:hover {
  transform: none;
  background: #ffffff;
  box-shadow: none;
}

.cluster-logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0;
  margin: 22px 0 20px;
  border: 1px solid #000000;
  border-right: 0;
  border-bottom: 0;
  background: #ffffff;
}

.catalog-cluster-strip {
  margin-top: 0;
}

.cluster-logo-button {
  display: grid;
  min-height: 118px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 16px 10px 14px;
  border: 0;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
}

.cluster-logo-button img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.cluster-logo-button strong {
  color: #000000;
  font-size: 11px;
  line-height: 15px;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.cluster-logo-button:hover,
.cluster-logo-button:focus,
.cluster-logo-button.is-active {
  background: #000000;
  color: #ffffff;
}

.cluster-logo-button:hover strong,
.cluster-logo-button:focus strong,
.cluster-logo-button.is-active strong {
  color: #ffffff;
}

.cluster-logo-button.is-active img,
.cluster-logo-button:hover img,
.cluster-logo-button:focus img {
  filter: none;
}

.cluster-logo-all {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-tools,
.filters {
  border-radius: 0;
}

.catalog-tools {
  align-items: stretch;
}

.catalog-tools strong {
  display: grid;
  place-items: center;
  padding-inline: 14px;
  border: 1px solid #000000;
  color: #000000;
}

.profile-dialog {
  color: #000000;
}

.profile-dialog::backdrop {
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: none;
}

.dialog-close {
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
}

.profile-avatar,
.catalog-image-button,
.briefing-recipient-list img {
  border-color: #000000;
  background: #ffffff;
}

.leaflet-popup-tip {
  background: #ffffff;
}

.leaflet-control-zoom,
.leaflet-control-zoom a {
  border-color: #000000;
  background: #ffffff;
  color: #000000;
}

.creative-map-marker {
  border-color: #ffffff;
  background: #009249;
  box-shadow: none;
}

.recipient-mail-link {
  justify-self: start;
  width: auto;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .section-head,
  .section-head.wide {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .brand {
    align-items: flex-start;
  }

  h1,
  .section-head h1 {
    font-size: 30px;
    line-height: 35px;
  }

  h2,
  h3,
  .recommendation-card h3,
  .creative-title h3,
  .catalog-card .creative-title h3,
  .briefing-card-head h2,
  .briefing-recipient-block h3,
  .creative-service-head h2 {
    font-size: 19px;
    line-height: 24px;
  }

  .cluster-logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.intake input:not([type="hidden"]),
.intake textarea,
.filters input,
.filters select,
.catalog-tools input,
.catalog-tools select {
  width: 100%;
  border: 1px solid #000000 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-family: "Roboto", Arial, Helvetica, sans-serif !important;
  font-size: 17px !important;
  line-height: 23px !important;
  box-shadow: none !important;
  appearance: auto;
}

.intake input:not([type="hidden"]),
.filters input,
.filters select,
.catalog-tools input,
.catalog-tools select {
  min-height: 48px;
  padding: 10px 12px !important;
}

.intake textarea {
  min-height: 124px;
  padding: 12px !important;
}

.intake input::placeholder,
.intake textarea::placeholder,
.filters input::placeholder,
.catalog-tools input::placeholder {
  color: #777777 !important;
  font-family: "Roboto", Arial, Helvetica, sans-serif !important;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
}

.topbar-actions nav {
  flex-wrap: nowrap;
  white-space: nowrap;
}

html[data-design="kis"] .brand {
  min-width: min(430px, 100%);
}

html[data-design="kis"] .brand-logo {
  height: 72px;
  max-width: min(300px, 44vw);
}

html[data-design="kis"] .brand small {
  max-width: 260px;
}

.design-switcher {
  display: flex;
  gap: 0;
  border: 1px solid currentColor;
}

html[data-design="modern"] .design-switcher {
  display: none !important;
}

.design-switcher button {
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-right: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.design-switcher button:last-child {
  border-right: 0;
}

.design-switcher button.is-active {
  background: #ffffff;
  color: #000000;
}

html[data-design="kis"] .topbar {
  position: relative;
}

/* Modern reference design */
html[data-design="modern"] {
  --max: 1180px;
  --ink: #15151c;
  --ink-soft: #4d4b5c;
  --paper: #fffaf1;
  --paper-2: #f5efe3;
  --line: rgba(21, 21, 28, 0.14);
  --white: #ffffff;
  --deep: #241643;
  --violet: #683df5;
  --pink: #ff4c98;
  --mint: #44e1a6;
  --lime: #d8ff4c;
  --sky: #6bdfff;
  --orange: #ff8b36;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shadow: 0 26px 80px rgba(23, 17, 43, 0.16);
  --shadow-soft: 0 16px 40px rgba(23, 17, 43, 0.10);
  --bg: var(--paper);
  --panel: rgba(255, 255, 255, 0.72);
  --muted: var(--ink-soft);
  --accent: var(--pink);
  --accent-strong: var(--deep);
  --blue: var(--violet);
  --gold: var(--lime);
  --soft: #f8f5ed;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: #ffffff;
  --glass-line: rgba(21, 21, 28, 0.12);
  color-scheme: light;
}

html[data-design="modern"],
html[data-design="modern"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 255, 76, 0.33), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(255, 76, 152, 0.22), transparent 28rem),
    linear-gradient(180deg, var(--paper) 0%, #ffffff 42%, var(--paper-2) 100%) !important;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px;
  line-height: 1.5;
}

html[data-design="modern"] body::before,
html[data-design="modern"] .topbar::after {
  display: none;
}

html[data-design="modern"] a {
  text-decoration: none;
}

html[data-design="modern"] main {
  background: transparent;
}

html[data-design="modern"] .topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: rgba(255, 250, 241, 0.78);
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

html[data-design="modern"] .topbar::before {
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 76px;
  border-bottom: 1px solid rgba(21, 21, 28, 0.08);
  background: rgba(255, 250, 241, 0.78);
  backdrop-filter: blur(18px);
  content: "";
  pointer-events: none;
}

html[data-design="modern"] .brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.94;
  text-transform: uppercase;
}

html[data-design="modern"] .brand-logo {
  height: 54px;
  max-width: min(220px, 42vw);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(23, 17, 43, 0.08);
}

html[data-design="modern"] .brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--deep);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: transparent;
}

html[data-design="modern"] .brand-mark::before,
html[data-design="modern"] .brand-mark::after {
  position: absolute;
  left: -7px;
  width: 62px;
  height: 10px;
  border-radius: 999px;
  transform: rotate(-14deg);
  content: "";
}

html[data-design="modern"] .brand-mark::before {
  top: 11px;
  background: var(--lime);
}

html[data-design="modern"] .brand-mark::after {
  bottom: 10px;
  background: var(--pink);
}

html[data-design="modern"] .brand strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

html[data-design="modern"] .brand small {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: none;
}

html[data-design="modern"] .topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

html[data-design="modern"] nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(21, 21, 28, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 28px rgba(23, 17, 43, 0.06);
}

html[data-design="modern"] nav a {
  padding: 0.62rem 0.86rem;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 750;
  text-transform: none;
}

html[data-design="modern"] nav a:hover,
html[data-design="modern"] nav a:focus {
  background: var(--ink);
  color: #ffffff;
}

html[data-design="modern"] .design-switcher {
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(21, 21, 28, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 28px rgba(23, 17, 43, 0.06);
}

html[data-design="modern"] .design-switcher button {
  min-height: 34px;
  padding: 0.44rem 0.68rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: none;
}

html[data-design="modern"] .design-switcher button.is-active {
  background: var(--ink);
  color: #ffffff;
}

html[data-design="modern"] .wizard-shell,
html[data-design="modern"] .hero,
html[data-design="modern"] .section,
html[data-design="modern"] .catalog-page {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
  background: transparent;
}

html[data-design="modern"] .wizard-shell {
  padding-top: 24px;
}

html[data-design="modern"] .stepper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(21, 21, 28, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 28px rgba(23, 17, 43, 0.06);
  backdrop-filter: none;
}

html[data-design="modern"] .stepper li {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.93rem;
  text-transform: none;
}

html[data-design="modern"] .stepper li:not(:last-child)::after {
  display: none;
}

html[data-design="modern"] .stepper .step-arrow {
  display: grid;
  place-items: center;
  color: var(--deep);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  opacity: 0.78;
}

html[data-design="modern"] .stepper .step-arrow::after {
  display: none;
}

html[data-design="modern"] .stepper li.is-complete + .step-arrow,
html[data-design="modern"] .stepper li.is-active + .step-arrow {
  color: var(--deep);
  opacity: 1;
}

html[data-design="modern"] .stepper li > a,
html[data-design="modern"] .stepper li > span,
html[data-design="modern"] .stepper li:first-child > a,
html[data-design="modern"] .stepper li:first-child > span {
  min-height: 46px;
  padding: 0 0.86rem;
}

html[data-design="modern"] .stepper li span span,
html[data-design="modern"] .stepper li a span {
  border: 0;
  background: rgba(36, 22, 67, 0.08);
  color: var(--deep);
  box-shadow: none;
}

html[data-design="modern"] .stepper .is-active,
html[data-design="modern"] .stepper .is-complete {
  background: var(--ink);
  color: #ffffff;
}

html[data-design="modern"] .stepper .is-complete {
  background: var(--deep);
}

html[data-design="modern"] .stepper .is-active span span,
html[data-design="modern"] .stepper .is-active a span,
html[data-design="modern"] .stepper .is-complete span span,
html[data-design="modern"] .stepper .is-complete a span {
  background: #ffffff;
  color: var(--deep);
}

html[data-design="modern"] .hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  padding-top: 62px;
  padding-bottom: 36px;
  overflow: visible;
}

html[data-design="modern"] .hero-copy {
  position: relative;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-content: start;
}

html[data-design="modern"] .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: auto;
  margin-bottom: 20px;
  padding: 0.5rem 0.82rem;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 22, 67, 0.08);
  color: var(--deep);
  font-weight: 850;
  letter-spacing: -0.01em;
  text-transform: none;
}

html[data-design="modern"] .eyebrow::before {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 15px 0 0 var(--lime), 30px 0 0 var(--sky);
  content: "";
}

html[data-design="modern"] h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(3.4rem, 8.3vw, 7.6rem);
  line-height: 0.84;
  letter-spacing: -0.095em;
  text-transform: uppercase;
}

@media (min-width: 1021px) {
  html[data-design="modern"] .hero.wizard-page .hero-copy h1 {
    max-width: 14ch;
    font-size: clamp(2.9rem, 6.4vw, 6rem);
    line-height: 0.88;
  }
}

html[data-design="modern"] .section-head h1 {
  max-width: 880px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

html[data-design="modern"] .hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

html[data-design="modern"] .wizard-page > .hero-copy > .eyebrow,
html[data-design="modern"] .wizard-page > .section-head .eyebrow {
  display: none;
}

html[data-design="modern"] .intake {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(21, 21, 28, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

html[data-design="modern"] .intake::before,
html[data-design="modern"] .recommendation-card::before,
html[data-design="modern"] .briefing-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 76, 152, 0.16), transparent 32%),
    linear-gradient(315deg, rgba(216, 255, 76, 0.22), transparent 34%);
  content: "";
  pointer-events: none;
}

html[data-design="modern"] .intake label {
  position: relative;
  z-index: 1;
  gap: 8px;
  padding: 0.78rem 0.9rem;
  border-radius: 17px;
  border: 1px solid rgba(21, 21, 28, 0.10);
  background: #f8f5ed;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 850;
}

html[data-design="modern"] .form-grid {
  position: relative;
  z-index: 1;
  gap: 10px;
}

html[data-design="modern"] .intake input:not([type="hidden"]),
html[data-design="modern"] .intake textarea,
html[data-design="modern"] .filters input,
html[data-design="modern"] .filters select,
html[data-design="modern"] .catalog-tools input,
html[data-design="modern"] .catalog-tools select {
  border: 1px solid rgba(21, 21, 28, 0.13) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.40) !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 760;
  outline: 0;
  box-shadow: none !important;
}

html[data-design="modern"] .intake input:not([type="hidden"]),
html[data-design="modern"] .filters input,
html[data-design="modern"] .filters select,
html[data-design="modern"] .catalog-tools input,
html[data-design="modern"] .catalog-tools select {
  min-height: 34px;
  padding: 7px 9px !important;
}

html[data-design="modern"] .intake textarea {
  min-height: 96px;
  padding: 9px !important;
}

html[data-design="modern"] .intake input::placeholder,
html[data-design="modern"] .intake textarea::placeholder,
html[data-design="modern"] .filters input::placeholder,
html[data-design="modern"] .catalog-tools input::placeholder {
  color: rgba(21, 21, 28, 0.48) !important;
  font-family: inherit !important;
}

html[data-design="modern"] button,
html[data-design="modern"] .as-link,
html[data-design="modern"] .primary,
html[data-design="modern"] .secondary,
html[data-design="modern"] .recipient-mail-link,
html[data-design="modern"] .text-button {
  border-radius: 999px;
  text-transform: none;
}

html[data-design="modern"] .primary,
html[data-design="modern"] .secondary:hover,
html[data-design="modern"] .secondary:focus,
html[data-design="modern"] .recipient-mail-link:hover,
html[data-design="modern"] .recipient-mail-link:focus {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(21, 21, 28, 0.18);
}

html[data-design="modern"] .intake .primary {
  position: relative;
  z-index: 1;
  min-height: 50px;
  background: var(--pink);
  border-color: var(--pink);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(255, 76, 152, 0.24);
}

html[data-design="modern"] .secondary,
html[data-design="modern"] .recipient-mail-link,
html[data-design="modern"] .as-link.secondary {
  border: 1px solid rgba(21, 21, 28, 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  box-shadow: none;
}

html[data-design="modern"] .primary:hover,
html[data-design="modern"] .primary:focus,
html[data-design="modern"] .secondary:hover,
html[data-design="modern"] .secondary:focus,
html[data-design="modern"] .recommendation-card:hover,
html[data-design="modern"] .category-card:hover {
  transform: translateY(-2px);
}

html[data-design="modern"] .section {
  padding-top: 62px;
}

html[data-design="modern"] .section-head,
html[data-design="modern"] .section-head.wide {
  display: flex;
  grid-template-columns: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-design="modern"] .section-head p:not(.eyebrow) {
  max-width: 390px;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 650;
}

html[data-design="modern"] .recommendation-grid,
html[data-design="modern"] .creative-service-list,
html[data-design="modern"] .catalog-list,
html[data-design="modern"] .briefing-groups {
  gap: 14px;
}

html[data-design="modern"] .recommendation-card,
html[data-design="modern"] .creative-card,
html[data-design="modern"] .briefing-card,
html[data-design="modern"] .send-panel,
html[data-design="modern"] .stat,
html[data-design="modern"] .cluster-logo-button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 28, 0.10);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 38px rgba(23, 17, 43, 0.07);
  color: var(--ink);
}

html[data-design="modern"] .recommendation-card,
html[data-design="modern"] .briefing-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

html[data-design="modern"] .recommendation-card > *,
html[data-design="modern"] .briefing-card > * {
  position: relative;
  z-index: 1;
}

html[data-design="modern"] h2,
html[data-design="modern"] h3,
html[data-design="modern"] .recommendation-card h3,
html[data-design="modern"] .creative-title h3,
html[data-design="modern"] .catalog-card .creative-title h3,
html[data-design="modern"] .briefing-card-head h2,
html[data-design="modern"] .briefing-recipient-block h3,
html[data-design="modern"] .creative-service-head h2 {
  color: var(--ink);
  font-family: inherit;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-transform: none;
}

html[data-design="modern"] .recommendation-card h3,
html[data-design="modern"] .creative-title h3,
html[data-design="modern"] .catalog-card .creative-title h3 {
  font-size: 1.22rem;
}

html[data-design="modern"] .facts div,
html[data-design="modern"] .card-check,
html[data-design="modern"] .chips span,
html[data-design="modern"] .predicate-badges span,
html[data-design="modern"] .tag,
html[data-design="modern"] .recipient-count,
html[data-design="modern"] .briefing-recipient-list li,
html[data-design="modern"] .profile-tags span {
  border: 1px solid rgba(21, 21, 28, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-soft);
}

html[data-design="modern"] .predicate-badges span {
  border-color: rgba(21, 21, 28, 0.24);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(216, 255, 76, 0.26);
}

html[data-design="modern"] .predicate-badges .predicate-logo-badge {
  border-color: rgba(21, 21, 28, 0.10);
  background: #ffffff;
  box-shadow: none;
}

html[data-design="modern"] .predicate-badges-media .predicate-logo-badge-media {
  width: 86px;
  height: 86px;
  min-height: 86px;
  padding: 10px;
  border-radius: 22px;
}

html[data-design="modern"] .chips span:hover,
html[data-design="modern"] .chips span:focus,
html[data-design="modern"] .tag:hover,
html[data-design="modern"] .tag:focus,
html[data-design="modern"] .chip:hover,
html[data-design="modern"] .chip:focus,
html[data-design="modern"] .chip.active {
  border-color: var(--deep);
  background: var(--deep);
  color: #ffffff;
}

html[data-design="modern"] .facts {
  gap: 8px;
}

html[data-design="modern"] .facts div {
  border-radius: 18px;
}

html[data-design="modern"] .card-topline strong,
html[data-design="modern"] .score,
html[data-design="modern"] .facts dd,
html[data-design="modern"] .text-button,
html[data-design="modern"] .map-popup-card a {
  color: var(--deep);
}

html[data-design="modern"] .leaflet-popup-content-wrapper,
html[data-design="modern"] .leaflet-popup-tip {
  background: #ffffff;
  color: var(--ink);
}

html[data-design="modern"] .map-popup-card strong {
  color: var(--ink);
}

html[data-design="modern"] .map-popup-card span,
html[data-design="modern"] .leaflet-popup-close-button {
  color: var(--ink-soft);
}

html[data-design="modern"] .map-popup-card .text-button {
  color: var(--deep);
}

html[data-design="modern"] .creative-description,
html[data-design="modern"] .creative-meta,
html[data-design="modern"] .notice,
html[data-design="modern"] .hint,
html[data-design="modern"] .profile-description,
html[data-design="modern"] .profile-location,
html[data-design="modern"] .recipient-count,
html[data-design="modern"] .briefing-recipient-list small {
  color: var(--ink-soft);
}

html[data-design="modern"] .filters,
html[data-design="modern"] .catalog-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, auto)) auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(21, 21, 28, 0.12);
  border-radius: 23px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

html[data-design="modern"] .filters {
  grid-template-columns: minmax(220px, 1fr) minmax(170px, auto);
}

html[data-design="modern"] .filters input,
html[data-design="modern"] .filters select,
html[data-design="modern"] .catalog-tools input,
html[data-design="modern"] .catalog-tools select,
html[data-design="modern"] .catalog-tools strong {
  display: grid;
  min-height: 48px;
  align-items: center;
  padding: 0.78rem 0.9rem !important;
  border: 1px solid rgba(21, 21, 28, 0.12) !important;
  border-radius: 17px !important;
  background: #f8f5ed !important;
  box-shadow: none !important;
}

html[data-design="modern"] .catalog-tools strong {
  color: var(--ink);
  font-weight: 900;
}

html[data-design="modern"] .list-toolbar,
html[data-design="modern"] .creative-service-head,
html[data-design="modern"] .map-panel-head {
  border: 1px solid rgba(21, 21, 28, 0.10);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 38px rgba(23, 17, 43, 0.07);
}

html[data-design="modern"] .creative-workspace,
html[data-design="modern"] .catalog-layout {
  position: relative;
}

html[data-design="modern"] .catalog-layout {
  padding: 24px;
  border-radius: 46px;
  background: var(--deep);
  color: #ffffff;
  box-shadow: 0 35px 90px rgba(36, 22, 67, 0.25);
}

html[data-design="modern"] .catalog-layout::before {
  position: absolute;
  width: 640px;
  height: 640px;
  right: -230px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 255, 76, 0.27), transparent 62%);
  content: "";
  pointer-events: none;
}

html[data-design="modern"] .catalog-map-panel,
html[data-design="modern"] .catalog-list {
  position: relative;
  z-index: 1;
}

html[data-design="modern"] .map-panel,
html[data-design="modern"] .map-shell,
html[data-design="modern"] .catalog-map-shell {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
  backdrop-filter: blur(20px);
}

html[data-design="modern"] .catalog-map-shell {
  overflow: hidden;
}

html[data-design="modern"] .map-panel-head strong {
  color: #ffffff;
}

html[data-design="modern"] .map-panel-head span {
  color: rgba(255, 255, 255, 0.66);
}

html[data-design="modern"] .leaflet-container {
  border: 0;
  border-radius: 24px;
}

html[data-design="modern"] .creative-map-marker {
  background: var(--lime);
  box-shadow: 0 0 0 8px rgba(216, 255, 76, 0.18), 0 18px 34px rgba(0, 0, 0, 0.18);
}

html[data-design="modern"] .catalog-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: start;
  border-radius: 24px;
  background: #ffffff;
  color: var(--ink);
}

html[data-design="modern"] .catalog-media,
html[data-design="modern"] .predicate-badges-media {
  width: 86px;
  gap: 8px;
}

html[data-design="modern"] .catalog-image-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--sky), var(--violet));
}

html[data-design="modern"] .catalog-image-button img {
  border-radius: inherit;
}

html[data-design="modern"] .cluster-logo-strip {
  gap: 14px;
  border: 0;
  background: transparent;
}

html[data-design="modern"] .cluster-logo-button {
  min-height: 150px;
  border-radius: var(--radius-md);
  border-right: 1px solid rgba(21, 21, 28, 0.10);
  border-bottom: 1px solid rgba(21, 21, 28, 0.10);
}

html[data-design="modern"] .cluster-logo-button::before {
  position: absolute;
  right: -40px;
  bottom: 20px;
  width: 140px;
  height: 28px;
  border-radius: 999px;
  background: var(--lime);
  opacity: 0.92;
  transform: rotate(-18deg);
  content: "";
}

html[data-design="modern"] .cluster-logo-button img,
html[data-design="modern"] .cluster-logo-button strong,
html[data-design="modern"] .cluster-logo-button .cluster-logo-all {
  position: relative;
  z-index: 1;
}

html[data-design="modern"] .cluster-logo-button:hover,
html[data-design="modern"] .cluster-logo-button:focus,
html[data-design="modern"] .cluster-logo-button.is-active {
  background: var(--deep);
  color: #ffffff;
  transform: translateY(-3px);
}

html[data-design="modern"] .cluster-logo-button strong,
html[data-design="modern"] .cluster-logo-button:hover strong,
html[data-design="modern"] .cluster-logo-button:focus strong,
html[data-design="modern"] .cluster-logo-button.is-active strong {
  color: currentColor;
}

html[data-design="modern"] .briefing-text,
html[data-design="modern"] #briefingText {
  border: 1px solid rgba(21, 21, 28, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: none;
}

html[data-design="modern"] .profile-dialog {
  border: 1px solid rgba(21, 21, 28, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

html[data-design="modern"] .profile-dialog::backdrop {
  background: rgba(36, 22, 67, 0.42);
  backdrop-filter: blur(8px);
}

html[data-design="modern"] .dialog-close {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
}

html[data-design="modern"] :focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  html[data-design="modern"] .primary,
  html[data-design="modern"] .secondary,
  html[data-design="modern"] .recipient-mail-link,
  html[data-design="modern"] .recommendation-card,
  html[data-design="modern"] .creative-card,
  html[data-design="modern"] .cluster-logo-button {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  }
}

@media (max-width: 1020px) {
  html[data-design="modern"] .topbar,
  html[data-design="modern"] .wizard-shell,
  html[data-design="modern"] .hero,
  html[data-design="modern"] .section,
  html[data-design="modern"] .catalog-page {
    width: min(100% - 40px, 1180px);
  }

  html[data-design="modern"] .hero,
  html[data-design="modern"] .catalog-layout {
    grid-template-columns: 1fr;
  }

  html[data-design="modern"] h1 {
    max-width: 10ch;
  }

  html[data-design="modern"] .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 14px 0;
  }

  html[data-design="modern"] .topbar::before {
    height: 138px;
  }

  html[data-design="modern"] .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  html[data-design="modern"] .catalog-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-design="modern"] .catalog-tools strong {
    justify-content: start;
  }
}

@media (max-width: 740px) {
  html[data-design="modern"] .topbar,
  html[data-design="modern"] .wizard-shell,
  html[data-design="modern"] .hero,
  html[data-design="modern"] .section,
  html[data-design="modern"] .catalog-page {
    width: min(100% - 28px, 1180px);
  }

  html[data-design="modern"] .topbar {
    position: static;
  }

  html[data-design="modern"] .topbar::before {
    display: none;
  }

  html[data-design="modern"] .topbar-actions,
  html[data-design="modern"] nav,
  html[data-design="modern"] .design-switcher,
  html[data-design="modern"] .section-head,
  html[data-design="modern"] .section-head.wide,
  html[data-design="modern"] .catalog-tools,
  html[data-design="modern"] .filters {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  html[data-design="modern"] h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  html[data-design="modern"] .hero {
    padding-top: 38px;
  }

  html[data-design="modern"] .catalog-layout {
    border-radius: 30px;
    padding: 14px;
  }

  html[data-design="modern"] .catalog-card {
    grid-template-columns: 62px 1fr;
  }

  html[data-design="modern"] .catalog-media,
  html[data-design="modern"] .predicate-badges-media {
    width: 62px;
    gap: 6px;
  }

  html[data-design="modern"] .catalog-image-button {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  html[data-design="modern"] .predicate-badges-media .predicate-logo-badge-media {
    width: 62px;
    height: 62px;
    min-height: 62px;
    padding: 7px;
    border-radius: 18px;
  }
}

/* Modern handoff completion */
html[data-design="modern"] .modern-only {
  display: revert !important;
}

html[data-design="modern"] .skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 99;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  transition: top 0.2s ease;
}

html[data-design="modern"] .skip-link:focus {
  top: 1rem;
}

html[data-design="modern"] .topbar {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(21, 21, 28, 0.08);
}

html[data-design="modern"] .topbar::before {
  display: none;
}

html[data-design="modern"] .topbar > .nav,
html[data-design="modern"] .stats,
html[data-design="modern"] .landing-section,
html[data-design="modern"] .footer-grid {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

html[data-design="modern"] .topbar > .nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

html[data-design="modern"] .topbar-actions {
  gap: 12px;
}

html[data-design="modern"] .nav-cta {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  min-width: max-content;
  padding: 0.78rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(216, 255, 76, 0.26);
}

html[data-design="modern"] .nav-cta:hover {
  transform: translateY(-1px);
}

html[data-design="modern"] .hero-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

html[data-design="modern"] .btn,
html[data-design="modern"] .map-load-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.86rem 1.08rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(21, 21, 28, 0.18);
}

html[data-design="modern"] .btn.secondary {
  border-color: rgba(21, 21, 28, 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  box-shadow: none;
}

html[data-design="modern"] .btn:hover,
html[data-design="modern"] .map-load-button:hover {
  transform: translateY(-2px);
}

html[data-design="modern"] .stats {
  padding: 12px 0 54px;
}

html[data-design="modern"] .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

html[data-design="modern"] .stat {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(21, 21, 28, 0.10);
  box-shadow: 0 12px 32px rgba(23, 17, 43, 0.06);
}

html[data-design="modern"] .stat strong {
  display: block;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

html[data-design="modern"] .stat span {
  color: var(--ink-soft);
  font-weight: 750;
}

html[data-design="modern"] .landing-section {
  padding: 62px 0;
}

html[data-design="modern"] .landing-head h2,
html[data-design="modern"] .directory-head h2,
html[data-design="modern"] .cta-band h2 {
  margin: 0;
  color: inherit;
  text-transform: uppercase;
}

html[data-design="modern"] .landing-head h2 {
  max-width: 680px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

html[data-design="modern"] .categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

html[data-design="modern"] .category-card {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 21, 28, 0.10);
  box-shadow: 0 14px 38px rgba(23, 17, 43, 0.07);
  position: relative;
  overflow: hidden;
}

html[data-design="modern"] .category-card::before {
  content: "";
  position: absolute;
  inset: auto -40px 20px auto;
  width: 140px;
  height: 28px;
  border-radius: 999px;
  transform: rotate(-18deg);
  background: var(--accent, var(--lime));
  opacity: 0.92;
}

html[data-design="modern"] .category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

html[data-design="modern"] .cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--ink);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

html[data-design="modern"] .category-card h3 {
  margin: 0 0 6px;
  font-size: 1.22rem;
  letter-spacing: -0.035em;
}

html[data-design="modern"] .category-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

html[data-design="modern"] .directory-zone {
  border-radius: 46px;
  padding: 24px;
  background: var(--deep);
  color: #ffffff;
  box-shadow: 0 35px 90px rgba(36, 22, 67, 0.25);
  overflow: hidden;
  position: relative;
}

html[data-design="modern"] .directory-zone::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -230px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 255, 76, 0.27), transparent 62%);
}

html[data-design="modern"] .directory-head {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 10px 24px;
}

html[data-design="modern"] .directory-head h2 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

html[data-design="modern"] .directory-head p {
  margin: 0;
  max-width: 370px;
  color: rgba(255, 255, 255, 0.70);
  font-weight: 650;
}

html[data-design="modern"] .split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 14px;
}

html[data-design="modern"] .results,
html[data-design="modern"] .map-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 16px;
  backdrop-filter: blur(20px);
}

html[data-design="modern"] .result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

html[data-design="modern"] .pill-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

html[data-design="modern"] .pill-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.54rem 0.7rem;
  font-weight: 850;
}

html[data-design="modern"] .pill-tabs button.active {
  background: var(--lime);
  color: var(--deep);
  border-color: var(--lime);
}

html[data-design="modern"] .result-count {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 800;
}

html[data-design="modern"] .profile-card {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  color: var(--ink);
  margin-top: 10px;
}

html[data-design="modern"] .thumb {
  width: 86px;
  aspect-ratio: 1;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--sky), var(--violet));
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 950;
  letter-spacing: -0.06em;
  overflow: hidden;
}

html[data-design="modern"] .profile-card:nth-of-type(3) .thumb {
  background: linear-gradient(135deg, var(--lime), var(--mint));
  color: var(--deep);
}

html[data-design="modern"] .profile-card:nth-of-type(4) .thumb {
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

html[data-design="modern"] .profile-card h3 {
  margin: 0 0 5px;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

html[data-design="modern"] .profile-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  max-width: 48ch;
}

html[data-design="modern"] .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

html[data-design="modern"] .open-badge {
  align-self: start;
  display: inline-flex;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  background: rgba(68, 225, 166, 0.18);
  color: #0f6b45;
  font-weight: 900;
  white-space: nowrap;
  font-size: 0.84rem;
}

html[data-design="modern"] .map-card {
  min-height: 530px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  overflow: hidden;
}

html[data-design="modern"] .map-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

html[data-design="modern"] .map-top strong {
  font-size: 1.2rem;
  letter-spacing: -0.035em;
}

html[data-design="modern"] .map-top span {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 750;
  font-size: 0.9rem;
}

html[data-design="modern"] .map-visual {
  position: relative;
  min-height: 370px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 25% 22%, rgba(216, 255, 76, 0.24), transparent 26%),
    radial-gradient(circle at 72% 70%, rgba(255, 76, 152, 0.22), transparent 28%),
    rgba(255, 255, 255, 0.07);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  overflow: hidden;
}

html[data-design="modern"] .map-visual::before {
  content: "";
  position: absolute;
  inset: 13%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 44% 56% 45% 55% / 52% 44% 56% 48%;
  transform: rotate(-9deg);
}

html[data-design="modern"] .pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 8px rgba(216, 255, 76, 0.18), 0 18px 34px rgba(0, 0, 0, 0.18);
}

html[data-design="modern"] .pin:nth-child(1) { left: 26%; top: 33%; }
html[data-design="modern"] .pin:nth-child(2) { left: 51%; top: 48%; background: var(--pink); box-shadow: 0 0 0 8px rgba(255, 76, 152, 0.18); }
html[data-design="modern"] .pin:nth-child(3) { left: 67%; top: 28%; background: var(--sky); box-shadow: 0 0 0 8px rgba(107, 223, 255, 0.18); }
html[data-design="modern"] .pin:nth-child(4) { left: 37%; top: 70%; background: var(--mint); box-shadow: 0 0 0 8px rgba(68, 225, 166, 0.18); }

html[data-design="modern"] .privacy-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

html[data-design="modern"] .map-load-button {
  min-height: 0;
  padding: 0.62rem 0.78rem;
  border: 0;
  background: #ffffff;
  color: var(--deep);
  box-shadow: none;
  white-space: nowrap;
}

html[data-design="modern"] .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

html[data-design="modern"] .step {
  padding: 22px;
  min-height: 230px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 21, 28, 0.10);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 38px rgba(23, 17, 43, 0.07);
  position: relative;
  overflow: hidden;
}

html[data-design="modern"] .step-number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--deep);
  color: #ffffff;
  font-weight: 950;
  margin-bottom: 36px;
}

html[data-design="modern"] .step::after {
  content: "";
  position: absolute;
  right: -30px;
  top: 36px;
  width: 150px;
  height: 28px;
  border-radius: 999px;
  transform: rotate(-16deg);
  background: var(--accent, var(--lime));
}

html[data-design="modern"] .step h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

html[data-design="modern"] .step p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 650;
}

html[data-design="modern"] .cta-band {
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 34px;
  background: var(--ink);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

html[data-design="modern"] .cta-band::after {
  content: "";
  position: absolute;
  right: -100px;
  top: 50%;
  width: 430px;
  height: 46px;
  transform: rotate(-14deg);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--lime));
  opacity: 0.92;
}

html[data-design="modern"] .cta-band > * {
  position: relative;
  z-index: 1;
}

html[data-design="modern"] .cta-band h2 {
  margin: 0 0 6px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

html[data-design="modern"] .cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

html[data-design="modern"] .cta-band .btn {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  box-shadow: none;
}

html[data-design="modern"] .footer {
  padding: 46px 0 34px;
  background: var(--paper-2);
  border-top: 1px solid rgba(21, 21, 28, 0.10);
}

html[data-design="modern"] .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
  align-items: start;
}

html[data-design="modern"] .footer h2,
html[data-design="modern"] .footer h3 {
  margin-top: 0;
  letter-spacing: -0.04em;
}

html[data-design="modern"] .footer p,
html[data-design="modern"] .footer a {
  color: var(--ink-soft);
  font-weight: 700;
}

html[data-design="modern"] .footer-links {
  display: grid;
  gap: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  html[data-design="modern"] .pin {
    animation: pulse 2.2s ease-in-out infinite;
  }

  html[data-design="modern"] .pin:nth-child(2) { animation-delay: 0.25s; }
  html[data-design="modern"] .pin:nth-child(3) { animation-delay: 0.5s; }
  html[data-design="modern"] .pin:nth-child(4) { animation-delay: 0.75s; }

  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
  }
}

@media (max-width: 1020px) {
  html[data-design="modern"] nav .modern-only,
  html[data-design="modern"] .nav-cta {
    display: none !important;
  }

  html[data-design="modern"] .hero,
  html[data-design="modern"] .split {
    grid-template-columns: 1fr;
  }

  html[data-design="modern"] .categories {
    grid-template-columns: repeat(3, 1fr);
  }

  html[data-design="modern"] .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 740px) {
  html[data-design="modern"] .topbar > .nav,
  html[data-design="modern"] .stats,
  html[data-design="modern"] .landing-section,
  html[data-design="modern"] .footer-grid {
    width: min(100% - 28px, var(--max));
  }

  html[data-design="modern"] .topbar > .nav {
    min-height: 68px;
    align-items: stretch;
  }

  html[data-design="modern"] .landing-section {
    padding: 46px 0;
  }

  html[data-design="modern"] .landing-head,
  html[data-design="modern"] .directory-head,
  html[data-design="modern"] .cta-band,
  html[data-design="modern"] .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  html[data-design="modern"] .categories,
  html[data-design="modern"] .steps,
  html[data-design="modern"] .stats-grid {
    grid-template-columns: 1fr;
  }

  html[data-design="modern"] .directory-zone {
    border-radius: 30px;
    padding: 14px;
  }

  html[data-design="modern"] .profile-card {
    grid-template-columns: 62px 1fr;
  }

  html[data-design="modern"] .thumb {
    width: 62px;
    border-radius: 18px;
  }

  html[data-design="modern"] .open-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  html[data-design="modern"] .map-card {
    min-height: auto;
  }

  html[data-design="modern"] .map-visual {
    min-height: 300px;
  }

  html[data-design="modern"] .privacy-note {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Final layout refinements */
html[data-design="modern"] .brand {
  align-items: center;
  flex-direction: row;
  gap: 12px;
  text-align: left;
}

html[data-design="modern"] .brand > div {
  text-align: left;
}

html[data-design="modern"] .brand-logo {
  display: block;
}

html[data-design="modern"] .menu-toggle {
  display: none;
}

html[data-design="modern"] .directory-zone .split {
  grid-template-columns: 1fr;
}

html[data-design="modern"] .directory-zone .results {
  grid-column: 1 / -1;
}

html[data-design="modern"] .stepper .is-active > a:hover,
html[data-design="modern"] .stepper .is-active > a:focus,
html[data-design="modern"] .stepper .is-complete > a:hover,
html[data-design="modern"] .stepper .is-complete > a:focus {
  color: #ffffff !important;
}

html[data-design="modern"] .stepper .is-active > a:hover span,
html[data-design="modern"] .stepper .is-active > a:focus span,
html[data-design="modern"] .stepper .is-complete > a:hover span,
html[data-design="modern"] .stepper .is-complete > a:focus span {
  color: var(--deep);
}

html[data-design="modern"] .briefing-recipient-list li {
  border-radius: 14px;
}

html[data-design="modern"] .steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html[data-design="modern"] .catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  overflow: visible;
}

html[data-design="modern"] .catalog-layout::before {
  display: none;
}

html[data-design="modern"] .catalog-map-panel,
html[data-design="modern"] .catalog-list {
  min-width: 0;
}

html[data-design="modern"] .catalog-map-panel {
  position: relative;
  top: auto;
  z-index: 2;
}

html[data-design="modern"] .catalog-list {
  position: relative;
  z-index: 1;
}

html[data-design="modern"] .creative-map-marker {
  background: var(--pink);
  border-color: #ffffff;
  box-shadow: none;
}

html[data-design="modern"] .place-map-marker {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--deep);
  box-shadow: none;
}

html[data-design="modern"] .place-map-marker span {
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: var(--lime);
}

html[data-design="modern"] .catalog-map-shell,
html[data-design="modern"] .place-map-shell {
  height: min(58vh, 560px);
  min-height: 430px;
}

html[data-design="modern"] #placesMap {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

html[data-design="modern"] .place-tools {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(170px, auto)) auto;
}

html[data-design="modern"] .place-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-design="modern"] .place-card {
  grid-template-columns: 120px 1fr;
}

html[data-design="modern"] .place-image-button {
  width: 120px;
  height: 120px;
}

html[data-design="modern"] .place-gallery {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 8px;
  padding: 8px;
}

html[data-design="modern"] .place-gallery img {
  width: 100%;
  height: 170px;
  border-radius: 16px;
  object-fit: cover;
}

html[data-design="modern"] .place-gallery img:first-child {
  grid-row: span 2;
  height: 348px;
}

html[data-design="modern"] .creative-map-marker span {
  background: #ffffff;
}

html[data-design="modern"] .eyebrow::before {
  width: 9px;
  flex: 0 0 9px;
  margin-right: 30px;
}

html[data-design="modern"] .profile-head .eyebrow {
  gap: 0.55rem;
}

@media (max-width: 1020px) {
  html[data-design="modern"] .catalog-layout {
    grid-template-columns: 1fr;
  }

  html[data-design="modern"] .place-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-design="modern"] .place-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  html[data-design="modern"] .brand-logo {
    max-width: min(210px, 70vw);
  }

  html[data-design="modern"] .brand {
    align-items: center;
    max-width: calc(100% - 58px);
  }

  html[data-design="modern"] .brand small {
    display: block;
    max-width: 18ch;
  }

  html[data-design="modern"] .topbar > .nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
  }

  html[data-design="modern"] .menu-toggle {
    display: inline-grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 10px;
    border: 1px solid rgba(21, 21, 28, 0.14);
    border-radius: 14px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(23, 17, 43, 0.06);
  }

  html[data-design="modern"] .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  html[data-design="modern"] .topbar-actions {
    display: none;
    width: 100%;
    margin-left: 0;
  }

  html[data-design="modern"] .topbar.is-menu-open .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  html[data-design="modern"] .topbar.is-menu-open nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  html[data-design="modern"] .topbar.is-menu-open nav a,
  html[data-design="modern"] .topbar.is-menu-open .nav-cta {
    justify-content: center;
    width: 100%;
  }

  html[data-design="modern"] .topbar.is-menu-open .nav-cta {
    display: inline-flex !important;
  }

  html[data-design="modern"] .catalog-layout {
    grid-template-columns: 1fr;
  }

  html[data-design="modern"] .catalog-map-panel {
    position: relative;
    top: auto;
    order: 1;
  }

  html[data-design="modern"] .catalog-list {
    order: 2;
  }

  html[data-design="modern"] .catalog-map-shell,
  html[data-design="modern"] .place-map-shell {
    height: 360px;
    min-height: 360px;
  }

  html[data-design="modern"] .place-tools,
  html[data-design="modern"] .place-list,
  html[data-design="modern"] .place-card {
    grid-template-columns: 1fr;
  }

  html[data-design="modern"] .place-image-button {
    width: 100%;
    height: 180px;
  }

  html[data-design="modern"] .place-gallery {
    grid-template-columns: 1fr;
  }

  html[data-design="modern"] .place-gallery img,
  html[data-design="modern"] .place-gallery img:first-child {
    height: 210px;
  }

  html[data-design="modern"] .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  html[data-design="modern"] .topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    margin: 0;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(21, 21, 28, 0.10);
    background: rgba(255, 250, 241, 0.94);
    backdrop-filter: blur(16px);
  }

  html[data-design="modern"] .topbar > .nav {
    width: 100%;
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: center;
    gap: 10px;
  }

  html[data-design="modern"] .brand {
    min-width: 0;
    max-width: none;
    gap: 9px;
  }

  html[data-design="modern"] .brand-logo {
    width: 108px;
    max-width: 108px;
    height: auto;
    border-radius: 12px;
  }

  html[data-design="modern"] .brand small {
    max-width: 14ch;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.035em;
  }

  html[data-design="modern"] .menu-toggle {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-self: center end;
    border-radius: 16px;
  }

  html[data-design="modern"] .topbar-actions {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    margin: 4px 0 0;
    padding: 10px;
    border: 1px solid rgba(21, 21, 28, 0.12);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(23, 17, 43, 0.12);
  }

  html[data-design="modern"] .topbar.is-menu-open .topbar-actions {
    display: grid;
    gap: 8px;
  }

  html[data-design="modern"] .topbar.is-menu-open nav {
    display: grid;
    width: 100%;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  html[data-design="modern"] .topbar.is-menu-open nav a {
    min-height: 42px;
    justify-content: center;
    padding: 0.62rem 0.75rem;
    border-radius: 14px;
    font-size: 1rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  html[data-design="modern"] .topbar.is-menu-open .nav-cta {
    min-height: 48px;
    justify-content: center;
    width: 100%;
    padding: 0.76rem 1rem;
    font-size: 1rem;
  }

  html[data-design="modern"] .wizard-shell {
    padding-top: 10px;
  }

  html[data-design="modern"] .stepper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border-radius: 20px;
    overflow: hidden;
  }

  html[data-design="modern"] .stepper .step-arrow {
    display: none;
  }

  html[data-design="modern"] .stepper li {
    min-width: 0;
    border-radius: 15px;
    font-size: 0.72rem;
    overflow: hidden;
  }

  html[data-design="modern"] .stepper li > a,
  html[data-design="modern"] .stepper li > span,
  html[data-design="modern"] .stepper li:first-child > a,
  html[data-design="modern"] .stepper li:first-child > span {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 3px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.05;
    white-space: normal;
  }

  html[data-design="modern"] .stepper li > a > span,
  html[data-design="modern"] .stepper li > span > span {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    line-height: 1;
  }
}

@media (max-width: 740px) {
  html[data-design="modern"] .hero.wizard-page {
    padding-top: 32px;
    gap: 24px;
  }

  html[data-design="modern"] h1,
  html[data-design="modern"] .hero.wizard-page .hero-copy h1 {
    max-width: 9.5ch;
    font-size: clamp(3rem, 13vw, 4.1rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
  }

  html[data-design="modern"] .hero-copy p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 1.12rem;
    line-height: 1.5;
  }

  html[data-design="modern"] .wizard-shell {
    width: min(100% - 28px, var(--max));
    padding-top: 12px;
  }

  html[data-design="modern"] .stepper {
    display: flex !important;
    align-items: center;
    gap: 7px;
    padding: 7px;
    border-radius: 999px;
    overflow: hidden;
  }

  html[data-design="modern"] .stepper .step-arrow {
    display: none !important;
  }

  html[data-design="modern"] .stepper li {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 999px;
    overflow: hidden;
  }

  html[data-design="modern"] .stepper li > a,
  html[data-design="modern"] .stepper li > span,
  html[data-design="modern"] .stepper li:first-child > a,
  html[data-design="modern"] .stepper li:first-child > span {
    min-height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1;
  }

  html[data-design="modern"] .stepper li > a > span,
  html[data-design="modern"] .stepper li > span > span {
    width: 30px;
    height: 30px;
    margin: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--deep) !important;
    font-size: 0.9rem !important;
    font-weight: 950;
  }

  html[data-design="modern"] .stepper .is-active > a > span,
  html[data-design="modern"] .stepper .is-active > span > span,
  html[data-design="modern"] .stepper .is-complete > a > span,
  html[data-design="modern"] .stepper .is-complete > span > span {
    background: #ffffff;
    color: var(--deep) !important;
  }
}
