.floating-cta {
  position: fixed;
  right: var(--s-5);
  bottom: var(--s-5);
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: var(--s-3) var(--s-5);
  border: 0;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.floating-cta:hover { background: var(--accent-hover); transform: translateY(-2px); }
.floating-cta svg { flex: 0 0 auto; }

.proposal-dialog {
  width: min(100% - 2rem, 760px);
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink-2);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
}
.proposal-dialog::backdrop { background: rgba(20, 22, 26, .55); backdrop-filter: blur(3px); }

.proposal-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-6) var(--s-6) var(--s-4);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.proposal-dialog-head h2 { margin-bottom: var(--s-2); font-size: 1.5rem; }
.proposal-dialog-sub { margin: 0; max-width: 52ch; color: var(--ink-3); font-size: var(--fs-sm); }
.proposal-dialog-body { padding: var(--s-5) var(--s-6) var(--s-6); }
/* Inside the dialog the form is the whole surface — drop the card framing. */
.proposal-dialog-body .proposal-form { padding: 0; background: none; box-shadow: none; }

@media (max-width: 560px) {
  /* Icon-only pill: the full label would span most of a phone screen.
     Kept at 52x52 so it stays a comfortable touch target. */
  .floating-cta { width: 52px; padding: 0; justify-content: center; }
  .floating-cta span {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
  }
  .proposal-dialog { width: 100%; max-height: 92vh; border-radius: var(--r-md) var(--r-md) 0 0; }
  .proposal-dialog-head { padding: var(--s-5) var(--s-4) var(--s-3); }
  .proposal-dialog-body { padding: var(--s-4); }

}
.proposal-success { padding: var(--s-8) var(--s-4); text-align: center; }
.proposal-success .button { margin-top: var(--s-4); }
