:root {
  color-scheme: light;
  --ink: #101410;
  --muted: #64736a;
  --line: #dae5de;
  --soft: #f5fff7;
  --surface: #ffffff;
  --cream: #fff7ea;
  --primary: #11e852;
  --primary-deep: #087a35;
  --teal: #096b68;
  --aqua: #2ec4b6;
  --sky: #2d9cdb;
  --coral: #ff5b4a;
  --gold: #f5b833;
  --danger: #c9372c;
  --shadow: 0 20px 60px rgba(16, 20, 16, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f7faf8;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f7faf8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-muted {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 46%, #eef7f0 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid rgba(218, 229, 222, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
}

.brand {
  display: inline-grid;
  grid-template-columns: 46px auto;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 9px 22px rgba(16, 20, 16, 0.14);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.main-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #45564c;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
  background: var(--soft);
}

.header-actions,
.hero-actions,
.form-actions,
.actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 15px;
  color: var(--ink);
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: #0bc847;
  background: var(--primary);
  color: #062b13;
}

.button.ghost {
  border-color: #ccdcd2;
  background: #ffffff;
}

.button.danger {
  border-color: #f0a29a;
  background: #fff0ee;
  color: #781f17;
}

.button.large {
  min-height: 50px;
  padding: 0 19px;
}

.button.mini {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.user-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7e3dc;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 11px;
  color: #35473d;
  font-size: 13px;
  font-weight: 760;
}

main {
  overflow: hidden;
}

.business-hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.74fr);
  gap: 40px;
  align-items: center;
  width: min(1180px, calc(100vw - 44px));
  margin: 0 auto;
  padding: 52px 0 64px;
}

.hero-content {
  display: grid;
  gap: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: 64px;
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: 33px;
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy {
  max-width: 660px;
  font-size: 19px;
}

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

.proof-row div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 13px 14px;
}

.proof-row dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.proof-row dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 900;
}

.hero-product {
  position: relative;
  min-height: 540px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid #d6e4db;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(9, 107, 104, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(9, 107, 104, 0.06) 1px, transparent 1px),
    #fbfffc;
  background-size: 44px 44px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-product::before,
.hero-product::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border: 2px dashed rgba(8, 122, 53, 0.28);
  border-radius: 999px;
}

.hero-product::after {
  width: 250px;
  height: 250px;
  border-color: rgba(45, 156, 219, 0.25);
}

.hero-logo {
  position: absolute;
  left: 34px;
  top: 34px;
  width: 82px;
  height: 82px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(16, 20, 16, 0.16);
}

.campaign-preview {
  position: relative;
  width: min(84%, 360px);
  display: grid;
  gap: 14px;
  border: 1px solid #dbe8e0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 22px;
  box-shadow: 0 18px 50px rgba(16, 20, 16, 0.14);
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #314239;
  font-size: 13px;
  font-weight: 850;
}

.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(17, 232, 82, 0.14);
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preview-tags span,
.badge {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #26362d;
  background: #eef5f1;
  font-size: 12px;
  font-weight: 820;
}

.badge.good {
  color: #073d1b;
  background: #ceffdd;
}

.badge.warning {
  color: #463200;
  background: #ffe9ad;
}

.badge.danger {
  color: #4f1711;
  background: #ffe0dc;
}

.credit-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eee9;
}

.credit-meter span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--aqua));
}

.campaign-preview small {
  color: var(--muted);
  font-weight: 720;
}

.app-search-demo {
  position: relative;
  z-index: 1;
  width: min(88%, 390px);
  display: grid;
  gap: 12px;
  border: 1px solid #dbe8e0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 14px;
  box-shadow: 0 18px 50px rgba(16, 20, 16, 0.14);
}

.hero-search-demo {
  margin-top: 62px;
}

.app-search-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-search-top div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.app-search-top span,
.app-search-top small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.app-search-top strong {
  color: #192820;
  font-size: 18px;
  line-height: 1.1;
}

.app-result-list {
  display: grid;
  gap: 8px;
}

.app-result-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #dce7e0;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.app-result-card.is-sponsored {
  border-color: #b8efc8;
  box-shadow: inset 3px 0 0 var(--primary);
}

.app-result-card.is-muted {
  opacity: 0.76;
}

.app-result-image {
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 7px;
  background: #edf6f1;
}

.app-result-image img,
.app-result-image span {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.app-result-image span {
  background:
    radial-gradient(circle at 29% 30%, var(--primary) 0 14%, transparent 15%),
    radial-gradient(circle at 72% 36%, var(--coral) 0 14%, transparent 15%),
    radial-gradient(circle at 57% 75%, var(--gold) 0 16%, transparent 17%),
    linear-gradient(135deg, #f7fff9, #eaf7ff);
}

.app-result-image.accent-coral span {
  background:
    radial-gradient(circle at 28% 30%, #ff5b4a 0 18%, transparent 19%),
    radial-gradient(circle at 74% 70%, #2ec4b6 0 14%, transparent 15%),
    linear-gradient(135deg, #fff3ef, #fffaf1);
}

.app-result-image.accent-gold span {
  background:
    radial-gradient(circle at 34% 34%, #f5b833 0 18%, transparent 19%),
    radial-gradient(circle at 76% 68%, #11e852 0 14%, transparent 15%),
    linear-gradient(135deg, #fff9db, #f3fff6);
}

.app-result-image.accent-blue span {
  background:
    radial-gradient(circle at 30% 34%, #2d9cdb 0 18%, transparent 19%),
    radial-gradient(circle at 75% 70%, #ff5b4a 0 14%, transparent 15%),
    linear-gradient(135deg, #eaf7ff, #fff6f2);
}

.app-result-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.app-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #557066;
  font-size: 11px;
  font-weight: 850;
}

.app-result-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-result-copy h2,
.app-result-copy h4 {
  margin: 0;
  color: #15241c;
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.app-result-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #4a5c52;
  font-size: 12px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-result-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.section {
  width: min(1180px, calc(100vw - 44px));
  margin: 0 auto;
  padding: 74px 0;
}

.band {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding-left: max(22px, calc((100vw - 1180px) / 2));
  padding-right: max(22px, calc((100vw - 1180px) / 2));
}

.section-head {
  display: grid;
  gap: 9px;
  max-width: 760px;
  margin-bottom: 24px;
}

.feature-grid,
.pricing-grid,
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.price-card,
.panel,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card,
.price-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.feature-icon.teal {
  background: var(--teal);
}

.feature-icon.gold {
  background: var(--gold);
}

.feature-icon.coral {
  background: var(--coral);
}

.feature-icon.blue {
  background: var(--sky);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1fr);
  gap: 46px;
  align-items: start;
}

.two-column > div:first-child {
  display: grid;
  gap: 14px;
}

.audience-list,
.role-list {
  display: grid;
  gap: 10px;
}

.audience-list div,
.role-list div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.audience-list span,
.role-list span {
  color: var(--muted);
  line-height: 1.4;
}

.organization-layout {
  width: min(1180px, calc(100vw - 44px));
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0 auto 28px;
}

.organization-list {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 130px);
  overflow: auto;
}

.organization-links {
  display: grid;
  gap: 8px;
}

.organization-links a {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  text-decoration: none;
}

.organization-links a.is-active,
.organization-links a:hover {
  border-color: #b9dec5;
  background: var(--soft);
}

.organization-links span {
  color: var(--muted);
  font-size: 13px;
}

.organization-detail {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.company-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid #edf2ef;
  padding-bottom: 10px;
}

.info-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.info-list dd {
  min-width: 0;
  margin: 0;
  color: #25352d;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.pricing {
  border-top: 1px solid var(--line);
}

.price-card strong {
  font-size: 30px;
  line-height: 1;
}

.price {
  color: var(--teal);
  font-size: 22px;
  font-weight: 900;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid #cce4d3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 64px;
}

.form-page,
.auth-page,
.portal-hero,
.metric-row,
.stats-grid,
.portal-grid,
.table-section,
.table-grid {
  width: min(1180px, calc(100vw - 44px));
  margin: 0 auto;
}

.form-page {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1fr);
  gap: 34px;
  align-items: start;
  padding: 58px 0 76px;
}

.form-intro {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 15px;
}

.form-intro h1,
.auth-card h1,
.portal-hero h1 {
  font-size: 46px;
  line-height: 1;
}

.panel {
  padding: 22px;
}

.form {
  display: grid;
  gap: 18px;
}

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

.form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.form [hidden] {
  display: none !important;
}

.form label span,
.form .field-label,
.auth-card label span {
  color: #3f5047;
  font-size: 12px;
  font-weight: 850;
}

.form-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cfded5;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  padding-top: 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-deep);
  box-shadow: 0 0 0 4px rgba(17, 232, 82, 0.17);
}

.wide {
  grid-column: 1 / -1;
}

.check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #3f5047;
  line-height: 1.4;
}

.check-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--primary-deep);
}

.auth-page {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 52px 0;
}

.auth-card {
  width: min(100%, 440px);
  display: grid;
  gap: 16px;
  text-align: center;
}

.auth-card img {
  width: 78px;
  height: 78px;
  justify-self: center;
  border-radius: 18px;
}

.auth-card label {
  display: grid;
  gap: 6px;
  text-align: left;
}

.text-link {
  color: var(--teal);
  font-weight: 820;
  text-decoration: none;
}

.alert,
.flash {
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.4;
}

.alert.error,
.flash.error {
  border: 1px solid #ffc2bb;
  background: #fff0ee;
  color: #681d16;
}

.flash.success {
  border: 1px solid #b9edc7;
  background: #e6ffed;
  color: #063d1a;
}

.flash.info {
  border: 1px solid #cbdceb;
  background: #eef7ff;
  color: #173952;
}

.impersonation-bar {
  position: sticky;
  top: 78px;
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-bottom: 1px solid #f4c15c;
  background: #fff0bf;
  color: #3d2a00;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 820;
}

.impersonation-bar form {
  margin: 0;
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.flash-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 36px));
}

.portal-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 22px;
}

.portal-hero > div:first-child {
  display: grid;
  gap: 9px;
}

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

.customer-admin {
  --customer-sidebar-width: 260px;
  --customer-admin-gap: 18px;
  width: min(1280px, calc(100vw - 44px));
  max-width: 1280px;
  display: grid;
  grid-template-columns: var(--customer-sidebar-width) minmax(0, calc(100% - var(--customer-sidebar-width) - var(--customer-admin-gap)));
  gap: var(--customer-admin-gap);
  align-items: start;
  margin: 0 auto 28px;
}

.customer-sidebar {
  position: sticky;
  top: 98px;
  width: var(--customer-sidebar-width);
  min-width: var(--customer-sidebar-width);
  max-width: var(--customer-sidebar-width);
  align-self: start;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 14px;
}

.customer-sidebar-head {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 4px 4px 14px;
}

.customer-sidebar-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.customer-sidebar-head strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.customer-menu {
  display: grid;
  gap: 6px;
}

.customer-menu a {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 12px;
  color: #334139;
  text-decoration: none;
}

.customer-menu a:hover,
.customer-menu a.is-active {
  border-color: #9fdcb1;
  background: #f3fff6;
  color: #0f2d1a;
}

.customer-menu strong {
  min-width: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.customer-menu span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.customer-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 18px;
  overflow: hidden;
  contain: inline-size;
}

.customer-content > section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.customer-content .portal-grid,
.customer-content .table-section,
.customer-content .table-grid,
.customer-content .flow-steps,
.customer-content .layout-workspace,
.customer-content .campaign-builder,
.customer-content .review-workspace {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}

.customer-content .panel,
.customer-content .portal-grid > *,
.customer-content .table-grid > *,
.customer-content .dashboard-grid > *,
.customer-content .profile-grid > *,
.customer-content .creative-grid > *,
.customer-content .layout-workspace > *,
.customer-content .review-workspace > *,
.customer-content .campaign-builder > * {
  max-width: 100%;
  min-width: 0;
}

.dashboard-section {
  display: grid;
  gap: 18px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-title > div {
  display: grid;
  gap: 6px;
}

.portal-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.dashboard-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.action-panel {
  display: grid;
  gap: 16px;
}

.action-panel h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.action-panel p {
  color: var(--muted);
  line-height: 1.45;
}

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

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

.status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dce8e1;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px 12px;
}

.status-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.status-list strong {
  font-size: 14px;
}

.compact-table table {
  min-width: 620px;
}

.credit-workspace {
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
}

.credit-balance {
  margin-bottom: 14px;
}

.metric-row {
  margin-bottom: 18px;
}

.metric {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.metric strong {
  font-size: 30px;
}

.flow-steps {
  width: min(1180px, calc(100vw - 44px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 18px;
}

.flow-steps a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  border: 1px solid #d7e5dc;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  text-decoration: none;
}

.flow-steps a.is-active {
  border-color: #80d99a;
  background: #f2fff6;
  box-shadow: 0 10px 24px rgba(17, 232, 82, 0.12);
}

.flow-steps a.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.flow-steps span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  border-radius: 50%;
  background: #e8f8ed;
  color: #153523;
  font-size: 13px;
  font-weight: 900;
}

.flow-steps strong,
.flow-steps small {
  min-width: 0;
}

.flow-steps strong {
  color: #203229;
  font-size: 14px;
}

.flow-steps small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.users-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
}

.panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.panel-head.spaced {
  margin-top: 26px;
}

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

.package-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.package-row div {
  display: grid;
  gap: 3px;
}

.package-row span {
  color: var(--muted);
  font-size: 13px;
}

.compact-form {
  gap: 12px;
}

.event-workspace {
  grid-template-columns: minmax(0, 1.34fr) minmax(330px, 0.66fr);
}

.campaign-builder {
  width: min(1180px, calc(100vw - 44px));
  margin: 0 auto 18px;
}

.layout-workspace {
  width: min(1180px, calc(100vw - 44px));
  margin: 0 auto 18px;
}

.campaign-panel {
  display: grid;
  gap: 16px;
}

.empty-state {
  display: grid;
  gap: 10px;
  place-items: start;
}

.empty-state h2,
.empty-state h3 {
  margin: 0;
}

.selected-ad-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #d7e5dc;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 14px;
}

.selected-ad-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.selected-ad-card span,
.selected-ad-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.selected-ad-card strong {
  color: #203229;
  font-size: 18px;
}

.campaign-grid {
  align-items: start;
}

.portal-side {
  display: grid;
  gap: 18px;
}

.event-editor {
  overflow: hidden;
}

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

.editor-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid #d7e5dc;
  border-radius: 8px;
  background: #f6fbf8;
  padding: 5px;
}

.editor-steps button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #526158;
  font-weight: 850;
  cursor: pointer;
}

.editor-steps button.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 5px 14px rgba(16, 20, 16, 0.08);
}

.editor-step {
  display: grid;
  gap: 18px;
}

.choice-section {
  display: grid;
  gap: 10px;
}

.choice-label,
.manager-head span,
.rich-field > span:first-child {
  color: #3f5047;
  font-size: 12px;
  font-weight: 850;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

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

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

.choice-card {
  min-height: 72px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #d4e3da;
  border-radius: 8px;
  background: #ffffff;
  padding: 13px;
  cursor: pointer;
}

.choice-card input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--primary-deep);
}

.choice-card strong,
.choice-card span {
  min-width: 0;
  grid-column: 2;
}

.choice-card strong {
  color: #203229;
  font-size: 14px;
}

.choice-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tier-benefits {
  grid-column: 2;
  display: grid;
  gap: 5px;
  margin: 2px 0 0;
  padding-left: 16px;
  color: #506158;
  font-size: 12px;
  line-height: 1.35;
}

.tier-benefits li::marker {
  color: var(--primary-deep);
}

.choice-note {
  margin: 0;
  color: #52635a;
  font-size: 13px;
  line-height: 1.45;
}

.form .choice-card strong {
  color: #203229;
  font-size: 14px;
  font-weight: 900;
}

.form .choice-card span,
.form .mini-check span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.choice-card:has(input:checked) {
  border-color: #82d69a;
  background: #f2fff6;
}

.choice-card.tier.bronze:has(input:checked) {
  border-color: #d59b64;
  background: #fff7ed;
}

.choice-card.tier.silver:has(input:checked) {
  border-color: #9eb0bd;
  background: #f2f8fb;
}

.choice-card.tier.gold:has(input:checked) {
  border-color: #d7a90e;
  background: #fff9db;
}

.price-range {
  margin-top: 2px;
}

.creative-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.48fr);
  gap: 18px;
  align-items: start;
}

.layout-editor {
  display: grid;
  gap: 18px;
}

.creative-fields {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.rich-field {
  display: grid;
  gap: 8px;
  position: relative;
}

.rich-toolbar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  justify-self: end;
}

.rich-toolbar button,
.rich-color-picker {
  width: 34px;
  height: 30px;
  border: 1px solid #cfded5;
  border-radius: 6px;
  background: #ffffff;
  color: #25352d;
  cursor: pointer;
}

.rich-color-picker {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
}

.rich-color-picker span {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--primary);
}

.rich-color-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.rich-toolbar [data-rich-color-all] {
  width: auto;
  min-width: 42px;
  padding: 0 9px;
  font-weight: 850;
}

.rich-toolbar [data-rich-reset] {
  width: auto;
  min-width: 62px;
  padding: 0 9px;
  font-weight: 850;
}

.rich-editor {
  min-height: 148px;
  border: 1px solid #cfded5;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  line-height: 1.5;
  outline: none;
}

.rich-editor:focus {
  border-color: var(--primary-deep);
  box-shadow: 0 0 0 4px rgba(17, 232, 82, 0.17);
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #87948d;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.image-manager {
  display: grid;
  gap: 12px;
}

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

.manager-head strong,
.credit-breakdown {
  border-radius: 8px;
  background: #eef7ff;
  color: #173952;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.image-grid,
.upload-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.image-tile,
.upload-preview-tile {
  display: grid;
  gap: 8px;
  border: 1px solid #d6e4db;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.image-tile img,
.upload-preview-tile img,
.ad-preview-image img,
.event-cell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-tile > img,
.upload-preview-tile > img {
  aspect-ratio: 1 / 0.78;
  height: auto;
  border-radius: 6px;
}

.image-tile input[type="text"],
.image-tile input:not([type]) {
  min-height: 36px;
  font-size: 12px;
}

.mini-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  color: #3f5047;
  font-size: 12px;
  font-weight: 780;
}

.mini-check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--primary-deep);
}

.danger-check {
  color: var(--danger);
}

.upload-drop {
  min-height: 116px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px dashed #9ac9aa;
  border-radius: 8px;
  background: #f6fff8;
  color: #224332;
  text-align: center;
  cursor: pointer;
}

.upload-drop input {
  display: none;
}

.upload-drop span {
  color: #153523;
  font-size: 16px;
  font-weight: 900;
}

.form .upload-drop span {
  color: #153523;
  font-size: 16px;
  font-weight: 900;
}

.upload-drop small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.upload-preview-tile span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ad-preview-shell {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

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

.preview-shell-head > div:first-child {
  display: grid;
  gap: 3px;
}

.preview-shell-head strong {
  color: #203229;
  font-size: 18px;
}

.preview-surface {
  max-height: 720px;
  overflow-y: auto;
  border: 4px solid #17231d;
  border-radius: 12px;
  background: #f7faf8;
  padding: 12px;
  box-shadow: 0 18px 38px rgba(16, 20, 16, 0.12);
}

.app-search-demo.in-preview {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  box-shadow: none;
}

.app-search-demo.in-preview .app-search-top strong {
  font-size: 16px;
}

.app-search-demo.in-preview .app-result-card {
  min-height: 76px;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 7px;
}

.app-search-demo.in-preview .app-result-image {
  width: 64px;
  height: 64px;
}

.preview-detail-label {
  margin: 3px 0 8px;
  color: #61746a;
  font-size: 11px;
  font-weight: 850;
}

.ad-preview-shell .ad-preview-card {
  position: static;
  box-shadow: none;
}

.ad-preview-card {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #d5e3da;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(16, 20, 16, 0.12);
}

.ad-preview-card.image_left,
.ad-preview-card.image_right {
  grid-template-columns: minmax(96px, 0.46fr) minmax(0, 0.54fr);
}

.ad-preview-card.image_right .ad-preview-image {
  order: 2;
}

.ad-preview-card.gallery_after .ad-preview-image {
  order: 2;
}

.ad-preview-image {
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(17, 232, 82, 0.2), rgba(45, 156, 219, 0.18)),
    #eef6f2;
}

.ad-preview-image span {
  width: 100%;
  min-height: 180px;
  display: block;
  background:
    radial-gradient(circle at 26% 28%, var(--primary) 0 13%, transparent 14%),
    radial-gradient(circle at 70% 34%, var(--coral) 0 12%, transparent 13%),
    radial-gradient(circle at 55% 72%, var(--gold) 0 15%, transparent 16%),
    linear-gradient(135deg, #f7fff9, #eaf7ff);
}

.ad-preview-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: #f8fbf9;
}

.ad-preview-content .ad-preview-gallery {
  padding: 0;
  background: transparent;
}

.ad-preview-gallery img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  border-radius: 6px;
  object-fit: cover;
}

.ad-preview-content {
  display: grid;
  gap: 11px;
  align-content: start;
  padding: 16px;
}

.ad-preview-content h3 {
  font-size: 22px;
}

.ad-preview-body {
  color: #3a4c42;
  font-size: 14px;
  line-height: 1.5;
}

.ad-preview-body:empty {
  display: none;
}

.ad-preview-body p {
  color: inherit;
}

.ad-preview-content .button {
  justify-self: start;
}

.event-cell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.event-cell img {
  width: 54px;
  height: 42px;
  border-radius: 6px;
}

.event-cell div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.event-cell span {
  color: var(--muted);
  font-size: 12px;
}

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

.field-with-action .button {
  min-height: 44px;
  white-space: nowrap;
}

.municipality-picker-field small {
  color: #52635a;
  font-size: 12px;
  line-height: 1.35;
}

.region-picker-field {
  display: grid;
  gap: 8px;
}

.region-picker-field small {
  color: #52635a;
  font-size: 12px;
  line-height: 1.35;
}

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

.region-check {
  border: 1px solid #d7e5dc;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.region-check:has(input:checked) {
  border-color: #82d69a;
  background: #effff4;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(8, 23, 18, 0.48);
  padding: 24px;
}

.municipality-modal {
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #cfe2d5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(14, 39, 27, 0.24);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.modal-head {
  border-bottom: 1px solid #e0eee5;
}

.modal-head div {
  display: grid;
  gap: 2px;
}

.modal-head span {
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
}

.modal-head h3 {
  margin: 0;
  color: #17231d;
  font-size: 22px;
}

.municipality-regions {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 16px 18px;
}

.municipality-region {
  display: grid;
  gap: 10px;
  border: 1px solid #e0eee5;
  border-radius: 8px;
  background: #f9fcfa;
  padding: 12px;
}

.municipality-region h4 {
  margin: 0;
  color: #203229;
  font-size: 14px;
}

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

.municipality-check {
  border: 1px solid #d7e5dc;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.municipality-check:has(input:checked) {
  border-color: #82d69a;
  background: #effff4;
}

.modal-actions {
  border-top: 1px solid #e0eee5;
  background: #f8fcf9;
}

.area-price-panel,
.radius-price-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #d6e5dc;
  border-radius: 8px;
  background: #f8fcf9;
  padding: 12px;
}

.price-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.price-panel-head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.price-panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.price-panel-head strong {
  color: #203229;
  font-size: 14px;
  line-height: 1.25;
}

.price-panel-head > strong {
  flex: 0 0 auto;
  border: 1px solid #bceac9;
  border-radius: 999px;
  background: #effff4;
  padding: 6px 10px;
  color: #0f5529;
  font-size: 12px;
}

.area-price-panel p,
.radius-price-panel p {
  margin: 0;
  color: #52635a;
  font-size: 13px;
  line-height: 1.45;
}

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

.area-price-grid button,
.radius-price-grid button {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid #d3e1d8;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.area-price-grid button:hover,
.radius-price-grid button:hover,
.area-price-grid button.is-active,
.radius-price-grid button.is-active {
  border-color: #80d99b;
  background: #f0fff4;
}

.area-price-grid span,
.radius-price-grid span {
  color: #203229;
  font-size: 12px;
  font-weight: 900;
}

.area-price-grid strong,
.radius-price-grid strong {
  color: #153523;
  font-size: 13px;
}

.area-price-grid small,
.radius-price-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.pricing-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #d7e5dc;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.pricing-box div {
  display: grid;
  gap: 3px;
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
}

.pricing-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.pricing-box strong {
  color: #153523;
  font-size: 18px;
}

.minimum-note,
.included-ideas {
  display: grid;
  gap: 6px;
  border-radius: 8px;
  padding: 12px;
}

.minimum-note {
  border: 1px solid #ffe0a3;
  background: #fff8e7;
  color: #463200;
}

.minimum-note span,
.included-ideas {
  color: #5b4a23;
  font-size: 13px;
  line-height: 1.4;
}

.included-ideas {
  border: 1px solid #cae9d3;
  background: #f1fff5;
  color: #254733;
}

.included-ideas ul {
  margin: 0;
  padding-left: 18px;
}

.review-workspace {
  width: min(1180px, calc(100vw - 44px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 18px;
  align-items: start;
  margin: 0 auto 18px;
}

.review-preview,
.review-summary {
  display: grid;
  gap: 16px;
}

.review-summary form {
  margin: 0;
}

.warning-note {
  display: grid;
  gap: 6px;
  border: 1px solid #f6c4be;
  border-radius: 8px;
  background: #fff3f1;
  color: #5b241e;
  padding: 12px;
}

.warning-note span {
  color: #6f3b35;
  font-size: 13px;
  line-height: 1.4;
}

.table-section,
.table-grid {
  margin-bottom: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stat-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.table-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 0;
}

.table-section .panel-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  padding: 18px 20px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) minmax(150px, 0.6fr) minmax(240px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}

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

.filter-bar label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

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

.geocode-panel {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.geocode-progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 1px solid #bfe9cc;
  border-radius: 999px;
  background: #eef9f1;
}

.geocode-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #11e852;
  transition: width 180ms ease;
}

.geocode-status-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 14px;
}

.geocode-status-line strong {
  color: var(--ink);
}

.geocode-controls {
  border: 0;
  padding: 0;
}

.source-list {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
}

.source-item {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.7fr) minmax(420px, auto);
  gap: 14px;
  align-items: center;
  border: 1px solid #e5eee8;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px 14px;
}

.source-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.source-copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.source-copy span,
.source-meta span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.source-meta,
.source-actions,
.source-status-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.source-actions {
  display: grid;
  grid-template-columns: auto auto auto auto;
  justify-content: end;
}

.source-actions form {
  margin: 0;
}

.source-status-form select {
  width: 142px;
  min-height: 36px;
}

.source-create {
  border-top: 1px solid var(--line);
  padding: 0;
}

.source-create summary {
  cursor: pointer;
  list-style: none;
  color: var(--teal);
  font-weight: 900;
  padding: 16px 20px;
}

.source-create summary::-webkit-details-marker {
  display: none;
}

.source-create summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e9fff0;
  color: var(--teal);
  margin-right: 8px;
}

.source-create[open] summary::before {
  content: "-";
}

.source-create form {
  border-top: 1px solid var(--line);
  padding: 20px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.section-form {
  border-top: 1px solid var(--line);
  padding: 20px;
}

.section-form .inline-head {
  border-bottom: 0;
  margin-bottom: 0;
  padding: 0;
}

.inline-table-form {
  display: grid;
  grid-template-columns: minmax(136px, 0.9fr) minmax(136px, 0.8fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 390px;
}

.inline-table-form select,
.inline-table-form input {
  min-height: 36px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table-wrap.small table {
  min-width: 560px;
}

th,
td {
  border-bottom: 1px solid #edf2ef;
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #46574d;
  background: #fbfdfb;
  font-size: 12px;
  font-weight: 900;
}

td {
  color: #27372f;
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  width: min(1180px, calc(100vw - 44px));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin: 48px auto 0;
  padding: 26px 0 34px;
  color: var(--muted);
}

.site-footer div:first-child {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--teal);
  font-weight: 780;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 18px;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .business-hero,
  .form-page,
  .customer-admin,
  .portal-grid,
  .creative-grid,
  .flow-steps,
  .layout-workspace,
  .review-workspace,
  .dashboard-grid,
  .profile-grid,
  .credit-workspace,
  .filter-bar,
  .table-grid,
  .two-column,
  .organization-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .customer-sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .customer-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .customer-menu a {
    flex: 0 0 190px;
  }

  .organization-list {
    position: static;
    max-height: none;
  }

  .ad-preview-shell,
  .ad-preview-card {
    position: static;
  }

  .business-hero {
    min-height: 0;
    padding-top: 34px;
  }

  .form-intro {
    position: static;
  }

  .feature-grid,
  .pricing-grid,
  .metric-row,
  .stats-grid,
  .area-price-grid,
  .radius-price-grid,
  .region-check-grid,
  .municipality-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .source-actions {
    justify-content: flex-start;
    grid-template-columns: repeat(4, max-content);
  }
}

@media (max-width: 660px) {
  .business-hero,
  .section,
  .form-page,
  .auth-page,
  .portal-hero,
  .customer-admin,
  .metric-row,
  .stats-grid,
  .portal-grid,
  .flow-steps,
  .layout-workspace,
  .review-workspace,
  .campaign-builder,
  .table-section,
  .table-grid,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  h1,
  .form-intro h1,
  .auth-card h1,
  .portal-hero h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  .feature-grid,
  .pricing-grid,
  .metric-row,
  .portal-metrics,
  .form-grid,
  .choice-grid.two,
  .choice-grid.three,
  .image-grid,
  .upload-preview,
  .field-with-action,
  .area-price-grid,
  .radius-price-grid,
  .region-check-grid,
  .municipality-check-grid,
  .pricing-box,
  .proof-row {
    grid-template-columns: 1fr;
  }

  .source-list {
    padding: 0 14px;
  }

  .source-actions,
  .source-status-form {
    width: 100%;
  }

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

  .source-actions .source-status-form {
    grid-column: 1 / -1;
  }

  .source-status-form select {
    flex: 1 1 180px;
    width: auto;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .municipality-modal {
    max-height: calc(100vh - 28px);
  }

  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-sidebar {
    padding: 12px;
  }

  .customer-sidebar-head {
    padding-bottom: 10px;
  }

  .hero-product {
    min-height: 430px;
  }

  .portal-hero,
  .company-identity,
  .cta-strip,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand span {
    font-size: 18px;
  }

  .package-row {
    align-items: stretch;
    flex-direction: column;
  }

  .selected-ad-card {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-table-form {
    grid-template-columns: 1fr;
    min-width: 220px;
  }

  .editor-head,
  .preview-shell-head,
  .manager-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ad-preview-card.image_left,
  .ad-preview-card.image_right {
    grid-template-columns: 1fr;
  }
}
