:root {
  --brand-ink: #14304d;
  --brand-surface: #fffaf2;
  --brand-surface-strong: #f3ebde;
  --brand-line: rgba(20, 48, 77, 0.12);
  --brand-primary: #0f766e;
  --brand-primary-strong: #115e59;
  --brand-accent: #e9733f;
  --brand-muted: #62748a;
  --brand-shadow: 0 24px 60px rgba(20, 48, 77, 0.08);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at top left, rgba(233, 115, 63, 0.12), transparent 32%),
    linear-gradient(180deg, #fffdf9 0%, #f7f4ee 100%);
}

body.public-form-shell {
  background:
    radial-gradient(
      circle at top left,
      color-mix(in srgb, var(--brand-accent) 20%, transparent),
      transparent 34%
    ),
    linear-gradient(180deg, #fffdf9 0%, #f7f4ee 100%);
}

a {
  color: var(--brand-primary);
}

.brand-type {
  font-family: "Fraunces", serif;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid rgba(20, 48, 77, 0.12);
  background: #fff;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.site-nav {
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--brand-line);
}

body.public-form-shell .site-nav {
  background: color-mix(in srgb, #fffaf2 94%, var(--brand-accent) 6%);
  border-bottom-color: color-mix(in srgb, var(--brand-accent) 18%, white);
}

.site-nav .navbar-brand,
.site-nav .nav-link {
  color: var(--brand-ink);
}

.site-nav .navbar-brand:hover,
.site-nav .nav-link:hover {
  color: var(--brand-primary);
}

.site-footer {
  border-top: 1px solid var(--brand-line);
  background: rgba(255, 255, 255, 0.72);
  padding: 2rem 0;
}

body.public-form-shell .site-footer {
  border-top-color: color-mix(in srgb, var(--brand-accent) 16%, white);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(9rem, max-content));
  gap: 1.5rem 3rem;
  align-items: start;
}

.site-footer__minimal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.site-footer__brand {
  max-width: 30rem;
}

.site-footer__brand-link {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--brand-ink);
  font-weight: 700;
  text-decoration: none;
}

.site-footer__brand-link:hover {
  color: var(--brand-primary);
}

.site-footer__nav {
  display: grid;
  gap: 0.35rem;
}

.site-footer__nav a {
  color: var(--brand-muted);
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus {
  color: var(--brand-primary);
  text-decoration: none;
}

.site-footer__nav a:focus-visible {
  border-radius: 0.25rem;
  outline: 2px solid color-mix(in srgb, var(--brand-primary) 45%, transparent);
  outline-offset: 0.15rem;
}

.site-footer__heading {
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inline-form {
  margin: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.hero-panel,
.surface-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--brand-line);
  border-radius: 1.5rem;
  box-shadow: var(--brand-shadow);
}

body.public-form-shell .surface-card {
  border-color: color-mix(in srgb, var(--brand-primary) 12%, white);
}

.hero-panel {
  padding: 2rem;
}

.surface-card {
  padding: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero-copy {
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--brand-muted);
}

.metric-card {
  height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--brand-surface);
  border: 1px solid rgba(20, 48, 77, 0.08);
}

.respondent-link-url-cell {
  max-width: 22rem;
}

.respondent-link-url-cell code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.respondent-link-row-actions {
  min-width: 12rem;
}

.respondent-link-availability-form .form-select,
.respondent-link-availability-form .form-control,
.respondent-link-availability-form .btn {
  min-height: 2.5rem;
}

.respondent-link-availability-form .form-select,
.respondent-link-row-form .form-select {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.respondent-link-edit-row > td {
  background: color-mix(in srgb, var(--brand-primary) 5%, white);
}

.respondent-link-edit-panel {
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, white);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
}

.respondent-link-row-form {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) minmax(16rem, 22rem) auto;
  gap: 0.75rem;
  align-items: end;
}

.respondent-link-row-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 767.98px) {
  .respondent-link-row-form {
    grid-template-columns: 1fr;
  }
}

.respondent-link-create {
  max-width: 58rem;
}

.respondent-link-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.respondent-link-mode {
  display: grid;
  gap: 0.2rem;
  min-height: 5rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--brand-line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-ink);
  text-decoration: none;
}

.respondent-link-mode:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 34%, var(--brand-line));
  color: var(--brand-primary-strong);
}

.respondent-link-mode span:last-child {
  color: var(--brand-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.respondent-link-mode--active {
  border-color: color-mix(in srgb, var(--brand-primary) 48%, white);
  background: color-mix(in srgb, var(--brand-primary) 9%, white);
  color: var(--brand-primary-strong);
}

.respondent-link-create-body {
  padding-top: 0.25rem;
}

@media (max-width: 767.98px) {
  .respondent-link-mode-grid {
    grid-template-columns: 1fr;
  }
}

.domain-hero {
  padding: 1.75rem;
}

.domain-step-card {
  position: relative;
  padding-top: 1.2rem;
}

.domain-step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-primary-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.metric-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.metric-value {
  font-size: 2rem;
  line-height: 1;
}

.home-hero {
  max-width: 38rem;
}

.home-hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.home-hero-copy {
  max-width: 36rem;
  font-size: 1rem;
}

.home-pricing-line {
  color: var(--brand-muted);
  font-size: 0.95rem;
}

.home-summary-panel,
.home-list,
.home-checklist {
  display: grid;
  gap: 0.9rem;
}

.home-hero-panel {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.home-hero-panel__section + .home-hero-panel__section {
  padding-top: 1rem;
  border-top: 1px solid var(--brand-line);
}

.home-plan-stack {
  display: grid;
  gap: 0.7rem;
}

.home-plan-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: var(--brand-surface);
  border: 1px solid rgba(20, 48, 77, 0.08);
}

.home-plan-price {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.home-list {
  padding-left: 1.1rem;
  color: var(--brand-muted);
}

.home-list li {
  line-height: 1.5;
}

.home-feature-card,
.home-template-card,
.home-workspace-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.home-cta-band {
  padding: 2rem;
}

.metric-meta {
  margin-top: 0.5rem;
  color: var(--brand-muted);
  font-size: 0.88rem;
}

.analytics-metric-small {
  font-size: 1.2rem;
  line-height: 1.2;
}

.surface-alert {
  border-radius: 1rem;
  border-color: var(--brand-line);
}

.btn-primary {
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-bg: var(--brand-primary-strong);
  --bs-btn-hover-border-color: var(--brand-primary-strong);
  --bs-btn-focus-shadow-rgb: 20, 48, 77;
  --bs-btn-active-bg: var(--brand-primary-strong);
  --bs-btn-active-border-color: var(--brand-primary-strong);
  --bs-btn-disabled-bg: var(--brand-primary);
  --bs-btn-disabled-border-color: var(--brand-primary);
}

.form-check-input:checked {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.form-check-input:focus,
.form-control:focus,
.form-select:focus {
  border-color: color-mix(in srgb, var(--brand-primary) 42%, white);
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.form-select {
  border-radius: 1rem;
  border-color: rgba(20, 48, 77, 0.14);
  background-color: rgba(255, 255, 255, 0.96);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.form-select:not([multiple]) {
  appearance: none;
  min-height: 3.35rem;
  padding-right: 3rem;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.25 5.75 8 10.25l4.75-4.5' stroke='%2314304d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 246, 238, 0.96) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 1rem center, center;
  background-size: 1rem 1rem, 100% 100%;
}

.form-select[multiple] {
  min-height: 8rem;
  padding-right: 1rem;
  background-image: none;
}

.form-select:hover:not(:disabled) {
  border-color: rgba(20, 48, 77, 0.22);
}

.form-select:not([multiple]):hover:not(:disabled) {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.25 5.75 8 10.25l4.75-4.5' stroke='%2314304d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 242, 232, 0.98) 100%);
}

.form-select[multiple]:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.98);
}

.builder-select {
  position: relative;
  z-index: 1;
}

.builder-select.is-open {
  z-index: 80;
}

.builder-select__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.builder-select__trigger {
  width: 100%;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.68rem 0.9rem;
  border-radius: 0.92rem;
  border: 1px solid rgba(20, 48, 77, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 246, 238, 0.96) 100%);
  color: var(--brand-ink);
  text-align: left;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.builder-select__trigger:hover:not(:disabled),
.builder-select__trigger:focus-visible:not(:disabled),
.builder-select.is-open .builder-select__trigger {
  border-color: color-mix(in srgb, var(--brand-primary) 30%, white);
  box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--brand-primary) 14%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 242, 232, 0.98) 100%);
}

.builder-select.is-invalid .builder-select__trigger {
  border-color: #dc3545;
}

.builder-select.is-placeholder .builder-select__label {
  color: var(--brand-muted);
}

.builder-select.is-disabled .builder-select__trigger,
.builder-select__trigger:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.builder-select__label {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.builder-select__chevron {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-muted);
  transition: transform 0.18s ease, color 0.18s ease;
}

.builder-select.is-open .builder-select__chevron {
  transform: rotate(180deg);
  color: var(--brand-primary-strong);
}

.builder-select__chevron svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.builder-select__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 0.18rem;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.35rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(20, 48, 77, 0.1);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 20px 40px rgba(20, 48, 77, 0.14);
  backdrop-filter: blur(12px);
}

.builder-select__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.72rem;
  border: 0;
  border-radius: 0.78rem;
  background: transparent;
  color: var(--brand-ink);
  text-align: left;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.builder-select__option:hover:not(:disabled),
.builder-select__option:focus-visible:not(:disabled) {
  background: color-mix(in srgb, var(--brand-primary) 8%, white);
  color: var(--brand-primary-strong);
  transform: translateY(-1px);
}

.builder-select__option.is-selected {
  background: color-mix(in srgb, var(--brand-primary) 10%, white);
  color: var(--brand-primary-strong);
}

.builder-select__option.is-disabled,
.builder-select__option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.builder-select__option-check {
  width: 1rem;
  flex: 0 0 1rem;
  color: var(--brand-primary-strong);
  font-weight: 800;
}

.builder-select__option-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.builder-select--compact .builder-select__trigger {
  min-height: 2.55rem;
  padding: 0.52rem 0.72rem;
  border-radius: 0.82rem;
  gap: 0.65rem;
  font-size: 0.96rem;
}

.builder-select--compact .builder-select__label {
  line-height: 1.2;
}

.builder-select--compact .builder-select__menu {
  max-height: 13.5rem;
  padding: 0.28rem;
  border-radius: 0.82rem;
}

.builder-select--compact .builder-select__option {
  padding: 0.5rem 0.62rem;
  border-radius: 0.72rem;
  font-size: 0.94rem;
}

.form-select:disabled {
  background-color: rgba(244, 246, 248, 0.92);
}

.auth-social-card {
  height: 100%;
}

.auth-provider-list {
  display: grid;
  gap: 0.85rem;
}

.auth-connected-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 250, 242, 0.72);
}

.auth-provider-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 250, 242, 0.72);
  color: var(--brand-ink);
  text-decoration: none;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.auth-provider-action:hover {
  color: var(--brand-ink);
  text-decoration: none;
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(255, 250, 242, 0.96);
  box-shadow: 0 14px 30px rgba(20, 48, 77, 0.08);
  transform: translateY(-1px);
}

.auth-provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 250, 242, 0.72);
}

.auth-method-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.auth-provider-copy {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.auth-provider-title {
  font-weight: 700;
  color: var(--brand-ink);
  line-height: 1.25;
}

.auth-provider-caption {
  color: var(--brand-ink-muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.auth-provider-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 1.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: rgba(20, 48, 77, 0.26);
}

.auth-provider-mark--email {
  background: var(--brand-primary);
}

.auth-provider-mark--google {
  background: #ea4335;
}

.auth-provider-mark--facebook {
  background: #1877f2;
}

.auth-provider-mark--yandex {
  background: #fc3f1d;
}

.auth-provider-mark--vk {
  background: #0077ff;
}

.auth-provider-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 2.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-primary-strong);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.auth-provider-cta:hover {
  color: var(--brand-primary-strong);
  text-decoration: none;
  background: rgba(15, 118, 110, 0.14);
  border-color: rgba(15, 118, 110, 0.24);
  transform: translateY(-1px);
}

code {
  color: var(--brand-primary-strong);
  background: rgba(15, 118, 110, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 0.4rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill--draft {
  color: #7c2d12;
  background: #ffedd5;
}

.status-pill--published {
  color: #14532d;
  background: #dcfce7;
}

.status-pill--closed {
  color: #1f2937;
  background: #e5e7eb;
}

.status-pill--neutral {
  color: var(--brand-ink);
  background: var(--brand-surface-strong);
}

.status-pill--with-action {
  gap: 0.45rem;
  padding-right: 0.45rem;
}

.status-pill__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 48, 77, 0.1);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.status-pill__info:hover,
.status-pill__info:focus-visible {
  background: rgba(20, 48, 77, 0.18);
  outline: none;
}

.template-portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.template-portal-tab,
.template-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 48, 77, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-ink);
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.template-portal-tab:hover,
.template-chip:hover,
.template-portal-tab.is-active,
.template-chip.is-active {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-primary-strong);
}

.template-chip {
  padding: 0.55rem 0.85rem;
}

.template-portal-tabs--compact {
  gap: 0.5rem;
}

.template-portal-tabs--compact .template-portal-tab {
  padding: 0.5rem 0.85rem;
}

.template-chip span {
  color: var(--brand-muted);
  font-size: 0.85rem;
}

.template-discovery-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.template-discovery-layout__sidebar {
  min-width: 0;
}

.template-discovery-layout__results {
  min-width: 0;
}

.template-filter-panel {
  position: sticky;
  top: 1.25rem;
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
}

.template-filter-panel__head {
  margin-bottom: 1.25rem;
}

.template-filter-panel__tags {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(20, 48, 77, 0.08);
}

.template-discovery-form .form-label {
  font-weight: 700;
}

.template-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.template-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.template-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.template-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.template-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--brand-muted);
  font-size: 0.94rem;
}

.template-card__meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 48, 77, 0.16);
}

.template-card__meta a:hover {
  color: var(--brand-primary);
  border-bottom-color: currentColor;
}

.template-card__description {
  display: -webkit-box;
  min-height: calc(1.45em * 3);
  overflow: hidden;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.template-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.template-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  min-height: 1.75rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(20, 48, 77, 0.2);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(20, 48, 77, 0.03);
  color: var(--brand-muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: none !important;
  text-decoration-line: none !important;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.template-card__tag:hover,
.template-card__tag:focus-visible {
  border-color: rgba(15, 118, 110, 0.32);
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-primary-strong);
  outline: none;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

.template-card__tag::before {
  content: "#";
  color: var(--brand-primary);
  font-weight: 800;
}

.template-card__workspace-label {
  margin-bottom: 0;
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.template-card__footer-note {
  margin-top: 0.85rem;
  color: var(--brand-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.template-empty-state {
  text-align: left;
}

.seller-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.seller-listing-card__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, max-content);
  gap: 1rem;
  align-items: start;
}

.seller-listing-card__main {
  min-width: 0;
}

.seller-listing-card__description {
  max-width: 72rem;
}

.seller-listing-metrics {
  display: grid;
  gap: 0.9rem;
  min-width: 140px;
  text-align: right;
}

.seller-listing-metrics strong {
  display: block;
  font-size: 1.1rem;
}

.seller-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  gap: 0.55rem;
  align-items: end;
  min-height: 240px;
}

.seller-chart-toolbar {
  display: grid;
  gap: 0.65rem;
  justify-items: end;
}

.seller-chart__column {
  display: grid;
  gap: 0.45rem;
  align-items: end;
}

.seller-chart__amount {
  min-height: 1.1rem;
  color: var(--brand-muted);
  font-size: 0.72rem;
  text-align: center;
  white-space: nowrap;
}

.seller-chart__track {
  position: relative;
  height: 170px;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(20, 48, 77, 0.05), rgba(20, 48, 77, 0.12));
  overflow: hidden;
}

.seller-chart__bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, var(--brand-accent), var(--brand-primary));
  min-height: 2px;
}

.seller-chart__label {
  min-height: 1rem;
  color: var(--brand-muted);
  font-size: 0.72rem;
  text-align: center;
}

.seller-summary-list {
  display: grid;
  gap: 0.8rem;
}

.seller-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(20, 48, 77, 0.08);
}

.seller-summary-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.seller-callout {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 250, 242, 0.72);
}

.seller-activity-list {
  display: grid;
  gap: 0.55rem;
}

.seller-activity-item {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(20, 48, 77, 0.08);
}

.seller-activity-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.seller-activity-item .fw-semibold {
  line-height: 1.25;
}

.seller-activity-table th,
.seller-activity-table td {
  white-space: normal;
}

[data-template-analytics].is-loading [data-template-analytics-chart],
[data-template-analytics].is-loading [data-template-analytics-summary],
[data-template-analytics].is-loading [data-template-analytics-activity],
[data-template-analytics].is-loading [data-template-analytics-metrics] {
  opacity: 0.55;
  transition: opacity 0.18s ease;
}

.form-builder__item {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 48, 77, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #fbf7ef 100%);
  overflow: visible;
}

.form-builder__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.form-builder__section-copy {
  flex: 1 1 20rem;
  display: grid;
  gap: 0.55rem;
}

.form-builder__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.75rem;
}

.form-builder__toolbar-primary,
.form-builder__toolbar-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.form-builder__toolbar-secondary {
  padding: 0.32rem 0.52rem;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(20, 48, 77, 0.08);
}

.form-builder__toolbar-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.billing-plan__meta {
  flex: 0 0 12rem;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  justify-items: end;
}

.billing-plan__price {
  white-space: nowrap;
  min-width: max-content;
}

@media (max-width: 1199.98px) {
  .billing-plan__meta {
    flex: 0 0 auto;
    justify-items: start;
    text-align: left;
  }
}

.form-builder__view-toggle .btn {
  min-width: 5.4rem;
  padding-inline: 0.8rem;
  border-radius: 0.8rem;
}

.form-builder__footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.form-builder__toolbar-note {
  max-width: 52rem;
  font-size: 0.92rem;
}

.form-builder__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.form-builder__card-title {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.form-builder__card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.form-builder__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border-radius: 0.8rem;
  border: 1px solid rgba(20, 48, 77, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-muted);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.form-builder__icon-button:hover:not(:disabled),
.form-builder__icon-button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand-primary) 20%, white);
  background: color-mix(in srgb, var(--brand-primary) 6%, white);
  color: var(--brand-primary-strong);
}

.form-builder__icon-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.form-builder__icon-button svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.form-builder__icon-button--drag {
  cursor: grab;
}

.form-builder__icon-button--drag:active {
  cursor: grabbing;
}

.form-builder__icon-button--danger:hover:not(:disabled),
.form-builder__icon-button--danger:focus-visible:not(:disabled) {
  border-color: rgba(185, 28, 28, 0.2);
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
}

.form-builder__icon-button--collapse svg {
  transition: transform 0.18s ease;
}

.form-builder__icon-button--collapse.is-expanded svg {
  transform: rotate(180deg);
}

.form-builder__kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.form-builder__question-heading {
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.form-builder__question-heading.is-placeholder {
  color: var(--brand-muted);
  font-weight: 600;
}

.form-builder__question-overview {
  display: grid;
  gap: 0.7rem;
}

.form-builder__question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.form-builder__meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(20, 48, 77, 0.04);
  border: 1px solid rgba(20, 48, 77, 0.08);
  color: var(--brand-muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.form-builder__group-card {
  padding: 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 250, 242, 0.6);
  overflow: visible;
}

.form-builder__group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.form-builder__condition-card {
  padding: 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 255, 255, 0.88);
  overflow: visible;
}

.form-builder__logic-controls {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 48, 77, 0.08);
}

.form-builder__logic-controls-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.form-builder__compound-editor,
.form-builder__compound-stack {
  display: grid;
  gap: 0.85rem;
}

.form-builder__compound-item {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.form-builder__compound-item-main {
  flex: 1 1 15rem;
  min-width: 0;
}

.form-builder__logic-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.form-builder__logic-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(20, 48, 77, 0.08);
  color: var(--brand-muted);
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.form-builder__logic-pill:hover,
.form-builder__logic-pill:focus-visible,
.form-builder__logic-pill.is-active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand-primary) 18%, white);
  background: color-mix(in srgb, var(--brand-primary) 6%, white);
  color: var(--brand-ink);
}

.form-builder__logic-summary-note {
  max-width: 48rem;
  font-size: 0.92rem;
}

.form-builder__logic-stack {
  display: grid;
  gap: 0.9rem;
}

.form-builder__logic-panel,
.form-builder__rule-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 255, 255, 0.88);
  overflow: visible;
}

.form-builder__logic-panel {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.05), transparent 28%),
    rgba(255, 255, 255, 0.9);
}

.form-builder__logic-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.form-builder__rules-stack {
  display: grid;
  gap: 0.85rem;
}

.form-builder__rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-builder__rule-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.form-builder__rule-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 0.72rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 250, 242, 0.82);
  color: var(--brand-muted);
  cursor: grab;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.form-builder__rule-handle:hover,
.form-builder__rule-handle:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand-primary) 18%, white);
  background: color-mix(in srgb, var(--brand-primary) 6%, white);
  color: var(--brand-primary-strong);
}

.form-builder__rule-handle:active {
  cursor: grabbing;
}

.form-builder__rule-handle svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.form-builder__logic-note {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 250, 242, 0.88);
  border: 1px dashed rgba(20, 48, 77, 0.12);
  color: var(--brand-muted);
}

.form-builder__danger-row {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(20, 48, 77, 0.08);
}

.form-builder__question-alert {
  padding: 0.8rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(217, 119, 6, 0.2);
  background: rgba(255, 247, 237, 0.92);
  color: #9a3412;
  font-size: 0.9rem;
}

.form-builder__question-feedback {
  padding: 0.72rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(20, 48, 77, 0.12);
  background: rgba(247, 250, 252, 0.92);
  color: var(--brand-ink);
  font-size: 0.9rem;
}

.form-builder__question-feedback[data-tone="warning"] {
  border-color: rgba(217, 119, 6, 0.2);
  background: rgba(255, 247, 237, 0.92);
  color: #9a3412;
}

.form-builder__question-feedback[data-tone="info"] {
  border-color: rgba(15, 118, 110, 0.16);
  background: rgba(240, 253, 250, 0.92);
  color: var(--brand-primary-strong);
}

.form-builder__empty-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 1.1rem;
  border: 1px dashed rgba(20, 48, 77, 0.16);
  background:
    radial-gradient(circle at top right, rgba(233, 115, 63, 0.08), transparent 26%),
    rgba(255, 250, 242, 0.9);
}

.form-builder__empty-state-actions {
  display: grid;
  gap: 0.75rem;
  min-width: min(100%, 18rem);
}

.form-builder__empty-recovery {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px dashed rgba(185, 28, 28, 0.18);
  background: rgba(254, 242, 242, 0.72);
}

.form-builder__deleted-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(185, 28, 28, 0.22);
  background: rgba(254, 242, 242, 0.92);
}

.form-builder__item.is-question-deleted {
  border-style: dashed;
  border-color: rgba(185, 28, 28, 0.16);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.98) 0%, rgba(254, 242, 242, 0.92) 100%);
}

.form-builder__item.is-question-collapsed [data-question-body] {
  display: none;
}

.form-builder__item.is-question-warning {
  border-color: rgba(217, 119, 6, 0.24);
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.08);
}

.form-builder__rule-card.is-logic-rule-dragging {
  opacity: 0.74;
  box-shadow: 0 16px 34px rgba(20, 48, 77, 0.12);
}

.form-builder__rule-card.is-logic-rule-drop-before {
  box-shadow: inset 0 4px 0 0 color-mix(in srgb, var(--brand-primary) 56%, white);
}

.form-builder__rule-card.is-logic-rule-drop-after {
  box-shadow: inset 0 -4px 0 0 color-mix(in srgb, var(--brand-primary) 56%, white);
}

.form-builder__item.is-question-dragging {
  opacity: 0.72;
  box-shadow: 0 18px 40px rgba(20, 48, 77, 0.12);
}

.form-builder__item.is-question-drop-before {
  box-shadow: inset 0 4px 0 0 color-mix(in srgb, var(--brand-primary) 56%, white);
}

.form-builder__item.is-question-drop-after {
  box-shadow: inset 0 -4px 0 0 color-mix(in srgb, var(--brand-primary) 56%, white);
}

.form-builder__item.is-question-drop-blocked {
  box-shadow: inset 0 0 0 2px rgba(217, 119, 6, 0.32);
}

.logic-map-modal {
  border: 1px solid rgba(20, 48, 77, 0.08);
  border-radius: 1.25rem;
}

.logic-map-table th,
.logic-map-table td {
  min-width: 14rem;
  vertical-align: top;
  border-color: rgba(20, 48, 77, 0.08);
}

.logic-map-table th:first-child,
.logic-map-table td:first-child {
  min-width: 16rem;
}

.logic-map__stack {
  display: grid;
  gap: 0.75rem;
}

.logic-map__mode,
.logic-map__note {
  padding: 0.72rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 250, 242, 0.72);
  color: var(--brand-ink);
}

.logic-map__block {
  display: grid;
  gap: 0.6rem;
  padding: 0.8rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.logic-map__block--tree[data-depth="1"] {
  background: rgba(255, 250, 242, 0.72);
}

.logic-map__block--tree[data-depth="2"],
.logic-map__block--tree[data-depth="3"] {
  background: rgba(247, 250, 252, 0.88);
}

.logic-map__block-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.logic-map__block-list {
  display: grid;
  gap: 0.45rem;
}

.logic-map__line {
  display: grid;
  gap: 0.2rem;
  padding-left: 0.8rem;
  border-left: 2px solid rgba(15, 118, 110, 0.12);
}

.logic-map__line--route {
  margin-top: 0.2rem;
  border-left-color: rgba(233, 115, 63, 0.18);
}

.logic-map__line-subject {
  font-weight: 600;
  color: var(--brand-ink);
}

.logic-map__line-op,
.logic-map__line-value {
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.survey-runtime {
  display: grid;
  gap: 1.25rem;
}

.survey-runtime__header,
.survey-runtime__navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.survey-runtime__progress {
  min-width: 5.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(20, 48, 77, 0.08);
  text-align: center;
  font-weight: 700;
}

.survey-runtime__questions {
  display: grid;
}

.survey-question,
.survey-runtime__captcha {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 250, 242, 0.9) 100%);
}

.survey-question__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.survey-question__index,
.survey-question__required {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.survey-question__index {
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-primary-strong);
}

.survey-question__required {
  background: rgba(233, 115, 63, 0.12);
  color: #b45309;
}

.survey-multi {
  display: grid;
  gap: 0.9rem;
}

.survey-multi__item {
  padding: 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.survey-other-input {
  padding: 0.95rem 1rem 0.35rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 250, 242, 0.78);
}

.survey-other-input__label {
  font-weight: 600;
}

.form-builder__catalog-preview {
  display: grid;
  gap: 0.55rem;
}

.form-builder__catalog-preview-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.survey-matrix {
  display: grid;
  gap: 0.75rem;
}

.survey-matrix__scroll {
  overflow-x: auto;
}

.survey-matrix__table {
  width: 100%;
  min-width: 32rem;
  border-collapse: separate;
  border-spacing: 0;
}

.survey-matrix__table th,
.survey-matrix__table td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid rgba(20, 48, 77, 0.08);
  text-align: center;
  vertical-align: middle;
}

.survey-matrix__table thead th {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 250, 242, 0.92);
  position: sticky;
  top: 0;
  z-index: 1;
}

.survey-matrix__table th[scope="row"] {
  min-width: 12rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-ink);
  background: rgba(255, 255, 255, 0.68);
}

.survey-matrix__choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
}

@media (max-width: 767.98px) {
  .survey-matrix__table {
    min-width: 28rem;
  }
}

.survey-runtime__navigation-copy {
  flex: 1 1 14rem;
}

.form-settings-panel {
  display: grid;
  gap: 0;
}

.form-settings__intro {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.65rem;
}

.form-settings__group {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.1rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(20, 48, 77, 0.1);
}

.form-settings__group--lead {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-settings__publish-section {
  gap: 1rem;
}

.form-settings__section-head {
  display: grid;
  gap: 0.25rem;
}

.form-settings__section-head .text-muted {
  display: none;
}

.form-settings__spam-section {
  margin: 0;
  gap: 0.75rem;
}

.form-settings__workspace-summary,
.form-settings__domain-state {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: rgba(255, 250, 242, 0.72);
}

.form-settings__domain-state-copy {
  min-width: 0;
  flex: 1 1 18rem;
}

.form-settings__domain-state-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.form-settings__domain-state[data-mode="upgrade"] {
  border-color: rgba(20, 48, 77, 0.12);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.98) 0%, rgba(255, 246, 236, 0.94) 100%);
}

.form-settings__domain-state[data-mode="quota"] {
  border-color: rgba(182, 74, 74, 0.18);
  background: linear-gradient(180deg, rgba(255, 247, 247, 0.98) 0%, rgba(255, 238, 236, 0.96) 100%);
}

.form-settings__domain-state[data-mode="select"] {
  border-color: color-mix(in srgb, var(--brand-primary) 18%, white);
  background: color-mix(in srgb, var(--brand-primary) 5%, white);
}

.builder-actions .disabled {
  pointer-events: none;
  opacity: 0.55;
}

.pricing-hero-copy {
  max-width: 48rem;
}

.pricing-hero-actions {
  flex: 0 0 auto;
}

.pricing-auth-note {
  max-width: 22rem;
  padding: 1rem 1.15rem;
}

.pricing-compare {
  padding: 0;
  overflow: hidden;
}

.pricing-compare__scroll {
  overflow-x: auto;
}

.pricing-table {
  min-width: 780px;
  margin-bottom: 0;
}

.pricing-table th,
.pricing-table td {
  padding: 1.1rem 1rem;
  vertical-align: top;
  border-color: rgba(20, 48, 77, 0.08);
}

.pricing-table thead th {
  background: rgba(255, 251, 245, 0.88);
}

.pricing-table__feature-col {
  width: 250px;
  min-width: 250px;
  font-size: 0.95rem;
  color: var(--bs-secondary-color);
}

.pricing-table__feature-label {
  display: block;
  color: var(--brand-ink);
  font-weight: 700;
  line-height: 1.25;
}

.pricing-table__feature-help,
.pricing-table__feature-note,
.pricing-table__value-help {
  display: block;
  max-width: 20rem;
  margin-top: 0.25rem;
  color: var(--brand-muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
}

.pricing-table__feature-note {
  color: color-mix(in srgb, var(--brand-muted) 82%, var(--brand-primary));
}

.pricing-table__value-help {
  max-width: 13rem;
}

.pricing-table__plan-col {
  min-width: 185px;
}

.pricing-table__plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 0.2rem;
}

.pricing-table__plan-price {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-ink);
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.pricing-table__plan-price span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--bs-secondary-color);
  margin-left: 0.2rem;
}

.pricing-table__plan-copy {
  font-size: 0.94rem;
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .home-hero {
    max-width: none;
  }

  .pricing-auth-note {
    max-width: none;
  }
}

.form-card__timestamp {
  min-width: 150px;
}

.form-card__actions {
  align-items: center;
}

.form-card__menu {
  min-width: 13rem;
}

.form-card__public-link {
  margin-top: 0.35rem;
}

.branding-form__section {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(20, 48, 77, 0.08);
}

.branding-form__section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.branding-form__section-copy {
  max-width: 42rem;
}

.branding-shell {
  width: 100%;
}

.branding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.branding-panel {
  height: 100%;
  padding: 1.35rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(20, 48, 77, 0.08);
  background: color-mix(in srgb, white 92%, var(--brand-surface));
}

.branding-panel--identity {
  min-width: 0;
}

.branding-field-narrow {
  max-width: 32rem;
}

.branding-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 22rem;
}

.branding-color-field .mb-3 {
  margin-bottom: 0;
}

.branding-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.branding-form__checkbox-input {
  flex: 0 0 auto;
  margin: 0.28rem 0 0;
}

.branding-form__checkbox-label {
  line-height: 1.35;
}

.branding-form__checkbox-input:checked {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.branding-form__checkbox-input:focus {
  border-color: color-mix(in srgb, var(--brand-primary) 42%, white);
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.branding-form__checkbox-input[disabled] {
  opacity: 0.55;
}

.branding-upgrade-callout {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, white);
  background: color-mix(in srgb, var(--brand-primary) 5%, white);
}

.branding-upgrade-callout__title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--brand-ink);
}

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

  .branding-field-narrow,
  .branding-color-grid {
    max-width: none;
  }
}

.form-card__public-link-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--brand-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-card__public-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.form-card__public-link-anchor {
  color: var(--brand-muted);
  font-size: 0.96rem;
  line-height: 1.45;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 48, 77, 0.16);
  word-break: break-all;
}

.form-card__public-link-anchor:hover {
  color: var(--brand-primary);
  border-bottom-color: currentColor;
}

.form-card__copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 0.8rem;
  flex: 0 0 auto;
}

.form-card__copy-button svg {
  width: 1rem;
  height: 1rem;
}

.form-card__copy-button.is-copied {
  color: var(--brand-primary);
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.18);
}

.form-card__copy-button.is-copy-error {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.form-card__copy-feedback {
  min-width: 3.8rem;
  color: var(--brand-muted);
  font-size: 0.82rem;
}

.workspace-summary__action {
  align-self: flex-start;
  white-space: nowrap;
}

.workspace-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.workspace-feature-list li {
  position: relative;
  padding-left: 1.45rem;
}

.workspace-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.9);
  box-shadow: 0 0 0 0.28rem rgba(15, 118, 110, 0.12);
}

.subtle-popover {
  max-width: 20rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 48, 77, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(20, 48, 77, 0.08);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.subtle-popover .popover-header {
  padding: 0.85rem 1rem 0.45rem;
  background: transparent;
  color: var(--brand-ink);
  border-bottom: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.subtle-popover .popover-body {
  padding: 0 1rem 1rem;
  color: var(--brand-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.subtle-popover.bs-popover-auto[data-popper-placement^="bottom"] > .popover-arrow::before,
.subtle-popover.bs-popover-bottom > .popover-arrow::before {
  border-bottom-color: rgba(20, 48, 77, 0.1);
}

.subtle-popover.bs-popover-auto[data-popper-placement^="bottom"] > .popover-arrow::after,
.subtle-popover.bs-popover-bottom > .popover-arrow::after {
  border-bottom-color: rgba(255, 255, 255, 0.96);
}

.domain-card {
  scroll-margin-top: 6rem;
}

.domain-callout,
.domain-side-note,
.domain-empty-state,
.dns-record {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(20, 48, 77, 0.1);
  background: rgba(255, 250, 242, 0.78);
}

.domain-callout__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dns-record__grid {
  display: grid;
  gap: 0.75rem;
}

.dns-record__label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-wrap {
  overflow: hidden;
}

.analytics-progress {
  height: 0.7rem;
  background: #edf2f7;
}

.analytics-progress .progress-bar {
  background: linear-gradient(
    90deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 100%
  );
}

.star-rating {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.star-rating__button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.star-rating__button:hover,
.star-rating__button.is-active {
  color: #f59e0b;
  transform: translateY(-1px);
}

#div_id_captcha > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 767.98px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .surface-card,
  .domain-hero {
    padding: 1.25rem;
  }

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

  .seller-metric-grid {
    grid-template-columns: 1fr;
  }

  .form-settings__workspace-summary,
  .form-settings__domain-state {
    padding: 0.9rem 1rem;
  }

  .form-builder__card-head {
    flex-direction: column;
  }

  .form-builder__card-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .form-builder__toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .form-builder__toolbar-secondary {
    width: 100%;
    justify-content: space-between;
  }

  .auth-provider-action,
  .auth-provider-row {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-provider-cta {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .dns-record__grid {
    grid-template-columns: 110px minmax(0, 1.3fr) minmax(0, 1.7fr);
  }
}

@media (max-width: 991.98px) {
  .template-discovery-layout {
    grid-template-columns: 1fr;
  }

  .template-filter-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .seller-listing-metrics {
    min-width: 0;
    text-align: left;
  }

  .seller-listing-card__summary {
    grid-template-columns: 1fr;
  }
}
