@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4c933;
  --surface-1: #ffffff;
  --surface-2: #f5f5f5;
  --text: #0b0b0f;
  --muted: #3a3a3f;
  --accent: #000000;
  --border: transparent;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --info: #2563eb;
  --radius-xl: 5px;
  --radius-lg: 5px;
  --radius-md: 5px;
  --radius-sm: 5px;
  --shadow-soft: 0 10px 22px rgba(11, 11, 15, 0.12);
  --shadow-strong: 0 20px 36px rgba(11, 11, 15, 0.2);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  border-color: transparent;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg);
}

body {
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background-color: var(--bg);
  background-image: none;
  background-repeat: no-repeat;
}

a {
  color: inherit;
  text-decoration: none;
}

a.link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  --container-pad-bottom: 60px;
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
  padding: var(--space-6) 0 var(--container-pad-bottom);
}

.topbar {
  margin-bottom: 0;
}

.topbar-inner {
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-6);
  padding: var(--space-3) 0;
}

.topbar-inner--home {
  justify-content: space-between;
  gap: var(--space-3);
}

.topbar-home-title {
  margin: 0;
  font-size: 53px;
  line-height: 51px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  height: 54px;
  max-width: min(32vw, 320px);
  flex-shrink: 0;
  margin-left: auto;
}

.brand-logo {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
}

.header-nav-desktop {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.header-nav-item {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.88;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.header-nav-item:hover {
  color: var(--text);
  opacity: 1;
}

.header-nav-item.active {
  color: var(--accent);
  opacity: 1;
  font-weight: 700;
}

.notice,
.error {
  margin-bottom: 12px;
  border-radius: 5px;
  border: 1px solid;
  padding: 11px 14px;
}

.notice {
  color: color-mix(in srgb, var(--success) 70%, #0f172a);
  border-color: color-mix(in srgb, var(--success) 30%, white);
  background: color-mix(in srgb, var(--success) 12%, white);
}

.error {
  color: color-mix(in srgb, var(--danger) 74%, #111827);
  border-color: color-mix(in srgb, var(--danger) 28%, white);
  background: color-mix(in srgb, var(--danger) 10%, white);
}

.warning {
  margin-bottom: 12px;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--warning) 36%, white);
  padding: 11px 14px;
  color: color-mix(in srgb, var(--warning) 72%, #111827);
  background: color-mix(in srgb, var(--warning) 10%, white);
}

.notice,
.error,
.warning,
.panel,
.card,
input[type='text'],
input[type='tel'],
input[type='email'],
input[type='url'],
input[type='number'],
textarea,
select,
button,
.btn,
.icon-btn,
.badge,
.code,
.details,
.table th,
.table td,
.home-delivery-details,
.home-leads-details,
.modal-shell,
.modal-close,
.qr-wrap,
.delete-meta,
.public-announcement-body,
.form-preview,
.form-standard,
.form-preview .announcement-body {
  border-color: transparent !important;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 50px;
  line-height: 48px;
  font-weight: 800;
}

h2 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 800;
}

h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.small {
  font-size: 14px;
  line-height: 20px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface-1) 90%, #ffffff);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface-1) 90%, #ffffff);
  padding: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.stack {
  display: grid;
  gap: 12px;
}

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

.edit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

input[type='text'],
input[type='tel'],
input[type='email'],
input[type='url'],
input[type='number'],
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface-1) 86%, #ffffff);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

input.is-invalid {
  border-color: color-mix(in srgb, var(--danger) 58%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 16%, transparent);
}

.phone-mask-error {
  margin-top: -2px;
  color: color-mix(in srgb, var(--danger) 78%, #111827);
  font-size: 13px;
  line-height: 18px;
}

button,
.btn {
  border: 1px solid var(--accent);
  border-radius: 5px;
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: var(--accent);
  color: #ffffff;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent) 92%, #000000);
  border-color: color-mix(in srgb, var(--accent) 92%, #000000);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 25%, transparent);
}

button:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.btn-secondary {
  background: var(--surface-1);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(11, 11, 15, 0.12);
}

.btn-danger {
  background: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 75%, #991b1b);
  color: #fff;
}

.btn-danger:hover {
  background: color-mix(in srgb, var(--danger) 90%, #111827);
  border-color: color-mix(in srgb, var(--danger) 86%, #7f1d1d);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--danger) 28%, transparent);
}

.btn-danger:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}

.btn-small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 20px;
}

.btn.disabled,
a.btn.disabled,
a.btn-secondary.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.icon {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.icon--optical-up {
  transform: translateY(-0.5px);
}

.icon--optical-right {
  transform: translateX(0.4px);
}

.icon-btn {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.icon-btn--ghost {
  background: var(--surface-1);
}

.icon-btn--danger {
  background: color-mix(in srgb, var(--danger) 9%, white);
  border-color: color-mix(in srgb, var(--danger) 28%, white);
  color: color-mix(in srgb, var(--danger) 82%, #7f1d1d);
}

.icon-btn:hover {
  transform: none;
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 14%, transparent);
}

.icon-btn--danger:hover {
  border-color: color-mix(in srgb, var(--danger) 48%, white);
  color: color-mix(in srgb, var(--danger) 90%, #7f1d1d);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 16%, transparent);
}

.icon-btn:active {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  color: color-mix(in srgb, var(--accent) 82%, var(--text));
}

.icon-btn--danger:active {
  border-color: color-mix(in srgb, var(--danger) 58%, white);
  color: color-mix(in srgb, var(--danger) 96%, #7f1d1d);
}

.icon-btn:focus-visible {
  outline: none;
  transform: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.icon-btn--danger:focus-visible {
  border-color: color-mix(in srgb, var(--danger) 72%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent);
}

.icon-btn[disabled],
.icon-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

[data-copy-link].is-copied {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 4px 10px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.code {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
  padding: 9px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 15px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.details {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-2);
  padding: 10px 12px;
}

.details summary {
  cursor: pointer;
  font-weight: 700;
}

.details-body {
  margin-top: 10px;
}

.field-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.field-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
}

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

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 22px;
}

.table th {
  color: var(--muted);
  font-weight: 700;
}

.page-home .container {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--space-6) + var(--safe-area-top));
  padding-bottom: calc(var(--container-pad-bottom) + var(--safe-area-bottom));
}

.home-center {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.home-stage {
  width: 100%;
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

.home-hero-subtitle {
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}

.home-announcement-subtitle {
  margin: 0;
  flex: 1;
}

.page-title {
  margin: 0;
}

.home-announcement {
  --home-textarea-target-h: clamp(200px, 52vh, 800px);
  --home-footer-bottom-air: clamp(10px, 1.2vh, 12px);
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.home-announcement .field {
  min-height: 0;
}

.home-announcement [data-home-hero-textarea='1'] {
  height: var(--home-textarea-target-h);
  min-height: var(--home-textarea-target-h);
  resize: none;
  font-size: 19px;
  line-height: 27px;
}

.announcement-counter {
  text-align: right;
}

.home-announcement-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  margin-top: 0;
  padding-bottom: var(--home-footer-bottom-air);
}

.home-save-btn {
  min-width: 152px;
}

.home-block {
  display: grid;
  gap: var(--space-4);
}

.home-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-block-title {
  margin: 0;
}

.home-forms-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.home-forms-grid .empty-state {
  grid-column: 1 / -1;
}

.is-hidden {
  display: none !important;
}

.home-delivery-details {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface-1) 90%, #ffffff);
  overflow: hidden;
}

.home-delivery-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
}

.home-delivery-summary::-webkit-details-marker {
  display: none;
}

.home-delivery-summary-title-wrap {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.home-delivery-summary::after {
  content: '▾';
  margin-left: auto;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.16s ease;
}

.home-delivery-details[open] .home-delivery-summary::after {
  transform: rotate(180deg);
}

.home-delivery-summary-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.home-delivery-body {
  border-top: 1px solid var(--border);
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.home-delivery-list {
  display: grid;
  gap: var(--space-3);
}

.home-delivery-item {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface-1) 88%, #ffffff);
  padding: var(--space-3);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
}

.home-delivery-item-main {
  display: grid;
  gap: 4px;
}

.home-delivery-item-title {
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
}

.home-delivery-item-status {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.home-delivery-item-status.is-connected {
  color: color-mix(in srgb, var(--success) 74%, #0f172a);
}

.home-delivery-item-status.is-disconnected {
  color: color-mix(in srgb, var(--muted) 86%, #111827);
}

.home-delivery-item-status.is-unavailable {
  color: color-mix(in srgb, var(--danger) 76%, #111827);
}

.home-delivery-item-hint {
  margin-top: 2px;
}

.home-delivery-item-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.home-delivery-item-action .btn {
  min-width: 126px;
}

.home-leads-details {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface-1) 90%, #ffffff);
  overflow: hidden;
}

.home-leads-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
}

.home-leads-summary::-webkit-details-marker {
  display: none;
}

.home-leads-summary::after {
  content: '▾';
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.16s ease;
}

.home-leads-details[open] .home-leads-summary::after {
  transform: rotate(180deg);
}

.home-leads-summary-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.home-leads-body .panel {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  margin-top: var(--space-3);
}

.form-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.form-edit-page.panel,
.form-edit-page .details,
.form-edit-page input[type='text'],
.form-edit-page textarea,
.form-edit-page select {
  border-color: rgba(255, 255, 255, 0.58) !important;
}

.hp-field {
  display: none !important;
}

.public-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  align-items: start;
}

.public-announcement,
.public-contact {
  min-height: 100%;
}

.public-announcement-title {
  margin: 0;
}

.public-announcement-body {
  margin-top: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, white);
  background: color-mix(in srgb, var(--surface-1) 70%, var(--surface-2));
  padding: 16px;
  color: color-mix(in srgb, var(--text) 92%, #111827);
  font-size: 16px;
  line-height: 26px;
  white-space: pre-wrap;
}

.public-contact-title {
  margin: 0;
}

.public-contact .form-stack {
  margin-top: 10px;
}

@media (min-width: 1081px) {
  .public-contact--sticky {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow: auto;
  }
}

.public-powered-by {
  margin-top: 14px;
  padding: 6px 0 2px;
  text-align: center;
  font-size: 10px;
  line-height: 14px;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
}

.public-powered-by a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.public-powered-by a:hover,
.public-powered-by a:focus-visible {
  color: var(--muted);
}

.site-footer {
  margin-top: var(--space-6);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: calc(-1 * var(--container-pad-bottom));
  border-radius: 0;
  background: #0f1116;
  color: #f3f5f8;
  padding: var(--space-4) 0;
}

.site-footer-inner {
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 26px;
}

.site-footer-link {
  color: #f3f5f8;
  font-size: 15px;
  line-height: 22px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: #ffffff;
}

.preview-title {
  margin: 0;
  font-size: 40px;
  line-height: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.form-preview {
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface-1) 90%, #ffffff);
  border-color: var(--border);
}

.form-standard {
  border-color: var(--border);
}

.form-preview .preview-title {
  color: var(--text);
}

.form-preview .announcement-body {
  margin: 4px 0 4px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, white);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface-1) 72%, var(--surface-2));
  color: color-mix(in srgb, var(--text) 90%, #111827);
  font-size: 16px;
  line-height: 26px;
  white-space: pre-wrap;
}

.form-preview--ad .form-stack {
  margin-top: 10px;
}

.form-preview .preview-btn {
  border-radius: 5px;
  background: var(--accent);
  color: #ffffff;
}

.preview-embedded {
  margin-top: 10px;
  box-shadow: none;
}

.forms-intro,
.leads-intro {
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.forms-grid {
  align-items: stretch;
}

.form-card {
  position: relative;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  justify-content: flex-start;
}

.card-edit-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.card-delete-btn {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
}

.form-card-title {
  margin-right: 56px;
}

.form-card-title-toggle {
  display: inline;
  align-items: initial;
  justify-content: initial;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  min-height: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.form-card-title-toggle:hover,
.form-card-title-toggle:active,
.form-card-title-toggle:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-card-preview-toggle {
  display: block;
  align-items: initial;
  justify-content: initial;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  min-height: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.form-card-preview-toggle:hover,
.form-card-preview-toggle:active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
  color: inherit;
}

.form-card-preview-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  overflow-wrap: anywhere;
  text-align: left;
}

.form-card.is-expanded .form-card-preview-text {
  display: block;
  -webkit-line-clamp: initial;
  line-clamp: initial;
  white-space: pre-wrap;
}

.form-card-preview-toggle:focus-visible,
.form-card-title-toggle:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.55);
  outline-offset: 2px;
}

.form-card-title-link {
  color: inherit;
  text-decoration: none;
}

.form-card-title-link:hover,
.form-card-title-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 56px;
}

.copy-action {
  position: relative;
  display: inline-flex;
}

.copy-feedback {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--accent);
  color: #ffffff;
  white-space: nowrap;
  font-size: 12px;
  line-height: 16px;
  pointer-events: none;
  z-index: 3;
}

.share-fallback-modal {
  width: min(560px, calc(100vw - 30px));
}

.share-fallback-current {
  margin-top: 0;
}

.share-fallback-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.share-fallback-actions .btn,
.share-fallback-actions .btn-secondary {
  width: 100%;
}

.share-fallback-copy {
  grid-column: 1 / -1;
}

.card-icon-btn,
.card-edit-btn,
.card-delete-btn {
  width: 44px;
  min-height: 44px;
}

.card-icon-btn .icon,
.card-edit-btn .icon,
.card-delete-btn .icon {
  width: 20px;
  height: 20px;
}

.form-card .icon-btn,
.form-card .icon-btn--danger {
  background: #e4e8ee;
  border-color: transparent !important;
  color: #1f2937;
}

.form-card .icon-btn:hover,
.form-card .icon-btn--danger:hover,
.form-card .icon-btn:active,
.form-card .icon-btn--danger:active {
  background: #d8dee7;
  border-color: transparent !important;
  color: #111827;
  box-shadow: none;
}

.form-card .icon-btn:focus-visible,
.form-card .icon-btn--danger:focus-visible {
  border-color: transparent !important;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.4);
}

.empty-state {
  display: grid;
  gap: var(--space-3);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.modal-shell {
  position: relative;
  width: min(560px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface-1) 90%, #ffffff);
  box-shadow: var(--shadow-strong);
  padding: var(--space-5);
}

.modal-shell-wide {
  width: min(720px, calc(100vw - 30px));
}

.modal-title {
  margin: 0;
  font-size: 40px;
  line-height: 48px;
  font-weight: 800;
  padding-right: 56px;
}

.modal-subtitle {
  margin-top: 8px;
  color: var(--muted);
  padding-right: 56px;
}

.modal-body {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.modal-inline-error {
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-1) 92%, #ffffff);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  padding: 0;
  z-index: 2;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--surface-1) 92%, #ffffff);
  box-shadow: none;
  transform: none;
}

.modal-close:focus-visible {
  outline: none;
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--surface-1) 92%, #ffffff);
  transform: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.modal-close:active {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
  color: color-mix(in srgb, var(--accent) 84%, var(--text));
  background: color-mix(in srgb, var(--surface-2) 76%, white);
  transform: none;
  box-shadow: none;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.modal-actions-end {
  justify-content: flex-end;
}

.delivery-choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 108px));
  justify-content: center;
  gap: clamp(16px, 4vw, 28px);
  padding: var(--space-2) 0 var(--space-1);
}

.delivery-choice-option {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.delivery-choice-link {
  width: 88px;
  min-width: 88px;
  min-height: 88px;
  border-radius: 24px;
  border-color: color-mix(in srgb, var(--accent) 10%, transparent);
  background: color-mix(in srgb, var(--surface-1) 92%, white);
  color: var(--accent);
  box-shadow: 0 10px 22px rgba(11, 11, 15, 0.08);
}

.delivery-choice-link .icon {
  width: 34px;
  height: 34px;
}

.delivery-choice-link:hover {
  background: color-mix(in srgb, var(--surface-1) 86%, var(--bg));
  border-color: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: 0 12px 26px rgba(11, 11, 15, 0.12);
}

.delivery-choice-link:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent), 0 12px 26px rgba(11, 11, 15, 0.12);
}

.delivery-choice-link:active {
  transform: none;
  background: color-mix(in srgb, var(--surface-2) 88%, white);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 8px 18px rgba(11, 11, 15, 0.08);
}

.delivery-choice-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

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

.share-left {
  display: grid;
  gap: 8px;
}

.qr-wrap {
  width: 220px;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-wrap img {
  width: 196px;
  height: 196px;
}

.share-right {
  display: grid;
  gap: var(--space-3);
}

.share-actions {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.share-actions .share-primary {
  grid-column: 1 / -1;
}

.share-warning {
  margin-top: var(--space-1);
}

.delete-form-modal {
  width: min(540px, calc(100vw - 30px));
  position: relative;
}

.danger-note {
  color: color-mix(in srgb, var(--danger) 72%, #0f172a);
}

.delete-meta {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-2);
  padding: var(--space-3);
  display: grid;
  gap: var(--space-1);
}

.delete-form-name,
.delete-form-leads {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.recipient-grid {
  margin-top: var(--space-2);
}

.recipient-card {
  display: grid;
  gap: var(--space-3);
}

.recipient-form {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.auth-panel,
.thanks-panel {
  width: min(700px, 100%);
}

@media (max-width: 1024px) {
  .container {
    width: min(100%, calc(100vw - 28px));
  }

  .topbar-inner {
    width: min(100%, calc(100vw - 28px));
    gap: var(--space-5);
    padding: var(--space-3) 0;
  }

  .topbar-home-title {
    font-size: 35px;
    line-height: 43px;
  }

  .brand-lockup {
    height: 48px;
    max-width: min(40vw, 280px);
  }

  .header-right {
    gap: 18px;
  }

  .header-nav-desktop {
    gap: 16px;
  }

  .header-nav-item {
    font-size: 15px;
    line-height: 22px;
  }

  h1,
  .preview-title,
  .modal-title {
    font-size: 32px;
    line-height: 40px;
  }

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

  .public-layout {
    grid-template-columns: 1fr;
  }

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

  .share-left {
    justify-items: center;
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    gap: var(--space-3);
    padding: var(--space-2) 0;
  }

  .topbar-home-title {
    font-size: 31px;
    line-height: 39px;
  }

  .brand-lockup {
    height: 42px;
    max-width: min(58vw, 240px);
  }

  .home-stage {
    gap: var(--space-5);
    grid-template-columns: 1fr;
  }

  .home-forms-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-subtitle {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    --container-pad-bottom: 36px;
    width: calc(100vw - 20px);
    padding: var(--space-4) 0 var(--container-pad-bottom);
  }

  h1,
  .preview-title,
  .modal-title {
    font-size: 28px;
    line-height: 36px;
  }

  h2 {
    font-size: 24px;
    line-height: 32px;
  }

  h3 {
    font-size: 20px;
    line-height: 28px;
  }

  h1,
  h2,
  h3 {
    text-align: left;
  }

  .topbar {
    margin-bottom: 0;
  }

  .topbar-inner {
    width: calc(100vw - 20px);
    gap: var(--space-2);
    padding: var(--space-2) 0;
  }

  .topbar-home-title {
    font-size: 28px;
    line-height: 36px;
  }

  .brand-lockup {
    height: 38px;
    max-width: min(62vw, 210px);
  }

  .panel {
    border-radius: 5px;
    padding: 16px;
  }

  .home-leads-summary {
    padding: var(--space-3);
  }

  .home-delivery-summary {
    padding: var(--space-3);
  }

  .home-delivery-summary-title {
    font-size: 20px;
    line-height: 28px;
  }

  .home-leads-summary-title {
    font-size: 20px;
    line-height: 28px;
  }

  .page-home .container {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: calc(var(--space-4) + var(--safe-area-top));
    padding-bottom: calc(var(--container-pad-bottom) + var(--safe-area-bottom));
  }

  .home-center {
    align-items: flex-start;
  }

  .home-announcement {
    gap: var(--space-3);
  }

  .home-stage {
    gap: var(--space-4);
  }

  .home-forms-grid {
    gap: var(--space-3);
  }

  .home-delivery-item {
    grid-template-columns: 1fr;
  }

  .home-delivery-item-action {
    justify-content: stretch;
  }

  .home-delivery-item-action .btn {
    width: 100%;
  }

  .home-announcement [data-home-hero-textarea='1'] {
    height: var(--home-textarea-target-h);
    min-height: var(--home-textarea-target-h);
  }

  .home-announcement {
    --home-footer-bottom-air: clamp(8px, 1.8vh, 12px);
  }

  .home-announcement-subtitle {
    margin-top: 0;
    font-size: 16px;
    line-height: 22px;
  }

  .home-announcement-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
  }

  .home-save-btn {
    align-self: auto;
    min-width: 138px;
  }

  .public-layout {
    gap: 12px;
  }

  .modal-shell,
  .modal-shell-wide {
    width: calc(100vw - 20px);
    border-radius: 5px;
    padding: var(--space-4);
  }

  .modal-title,
  .modal-subtitle {
    padding-left: 48px;
    padding-right: 48px;
  }

  .modal-actions {
    justify-content: stretch;
  }

  .modal-actions .btn,
  .modal-actions .btn-secondary,
  .share-actions .btn,
  .share-actions .btn-secondary,
  .share-fallback-actions .btn,
  .share-fallback-actions .btn-secondary {
    width: 100%;
  }

  .share-actions,
  .share-fallback-actions {
    grid-template-columns: 1fr;
  }

  .delivery-choice-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .delivery-choice-link {
    width: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 22px;
  }

  .delivery-choice-link .icon {
    width: 30px;
    height: 30px;
  }

  .delivery-choice-label {
    font-size: 13px;
    line-height: 18px;
  }

  .site-footer {
    margin-top: var(--space-4);
    padding: var(--space-3) 0;
  }

  .site-footer-inner {
    width: calc(100vw - 20px);
  }

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

@media (min-width: 1025px) and (hover: hover) {
  .form-card .card-edit-btn,
  .form-card .form-card-actions,
  .form-card .card-delete-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
  }

  .form-card:hover .card-edit-btn,
  .form-card:hover .form-card-actions,
  .form-card:hover .card-delete-btn,
  .form-card:focus-within .card-edit-btn,
  .form-card:focus-within .form-card-actions,
  .form-card:focus-within .card-delete-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}


@media (hover: none) {
  .icon-btn:hover {
    box-shadow: none;
    border-color: var(--border);
    color: var(--muted);
  }

  .icon-btn--danger:hover {
    border-color: color-mix(in srgb, var(--danger) 28%, white);
    color: color-mix(in srgb, var(--danger) 82%, #7f1d1d);
    background: color-mix(in srgb, var(--danger) 9%, white);
  }

  .form-card .icon-btn:hover,
  .form-card .icon-btn--danger:hover {
    border-color: transparent !important;
    color: #111827;
    background: #d8dee7;
  }

  .delivery-choice-link:hover {
    border-color: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
    background: color-mix(in srgb, var(--surface-1) 92%, white);
    box-shadow: 0 10px 22px rgba(11, 11, 15, 0.08);
  }
}
